@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.
package/react-utils.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useState, useEffect, useDebugValue, useRef, useImperativeHandle, forwardRef } from 'react';
3
3
  import { Button, Callout, Typography, Dropdown, Input, Label, Checkbox, Toastr, Tag, Pane, PageLoader, Table, NoData, Alert, Tooltip, Spinner, Switch } from '@bigbinary/neetoui';
4
- import i18next, { t } from 'i18next';
4
+ import i18next, { t as t$1 } from 'i18next';
5
5
  import { mergeLeft, curryN, isNil, complement as complement$1, isEmpty, either as either$1, curry, includes, __, filter, trim, toLower, identity, without, append, prop as prop$1, fromPairs, keys, values, last as last$1, pluck, any, uniq, intersection, difference, pick, assoc, not as not$2, toPairs } from 'ramda';
6
6
  import { Trans, useTranslation } from 'react-i18next';
7
- import { Search, MenuHorizontal, Info as Info$3, Copy, Check, Close, Delete, Edit, Plus, Help, MenuVertical, Clock, ChatBubble, LeftArrow as LeftArrow$1, User, Settings } from '@bigbinary/neeto-icons';
7
+ import { Search, MenuHorizontal, Info as Info$3, Copy, Check, Close, Delete, Edit, Plus, Help, ExternalLink, Undo, MenuVertical, Clock, ChatBubble, LeftArrow as LeftArrow$1, User, Settings } from '@bigbinary/neeto-icons';
8
8
  import { Container, Header as Header$1, SubHeader, Sidebar as Sidebar$1, AppSwitcher } from '@bigbinary/neetoui/layouts';
9
9
  import { Input as Input$1, Form as Form$2, Button as Button$1, MultiEmailInput, Select, Checkbox as Checkbox$1 } from '@bigbinary/neetoui/formik';
10
10
  import { Formik, Form as Form$1, FieldArray, ErrorMessage, useFormikContext } from 'formik';
@@ -1325,12 +1325,12 @@ var ContactUs = function ContactUs() {
1325
1325
  components: {
1326
1326
  button: /*#__PURE__*/React__default.createElement(Button, {
1327
1327
  className: "ml-1",
1328
- label: t("neetoCommons.browserSupport.contactUs.buttonLabel"),
1328
+ label: t$1("neetoCommons.browserSupport.contactUs.buttonLabel"),
1329
1329
  style: "link",
1330
1330
  onClick: function onClick() {
1331
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
1332
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
1333
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
1331
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
1332
+ (_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();
1333
+ (_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();
1334
1334
  }
1335
1335
  })
1336
1336
  }
@@ -1422,10 +1422,10 @@ var UnsupportedBrowser = function UnsupportedBrowser(_ref) {
1422
1422
  var browserName = _ref.browserName,
1423
1423
  browserVersion = _ref.browserVersion;
1424
1424
  return /*#__PURE__*/React__default.createElement(Trans, {
1425
- i18nKey: "neetoCommons.browserSupport.unsupportedBrowser",
1426
1425
  components: {
1427
1426
  contactUs: /*#__PURE__*/React__default.createElement(ContactUs, null)
1428
1427
  },
1428
+ i18nKey: "neetoCommons.browserSupport.unsupportedBrowser",
1429
1429
  values: {
1430
1430
  browserName: browserName,
1431
1431
  browserVersion: getBrowserMajorVersion(browserVersion)
@@ -1439,9 +1439,9 @@ var DownloadLink = function DownloadLink(_ref) {
1439
1439
  i18nKey: "neetoCommons.browserSupport.downloadLink.main",
1440
1440
  components: {
1441
1441
  button: /*#__PURE__*/React__default.createElement(Button, {
1442
- label: t("neetoCommons.browserSupport.downloadLink.buttonLabel"),
1443
- style: "link",
1444
- href: link
1442
+ href: link,
1443
+ label: t$1("neetoCommons.browserSupport.downloadLink.buttonLabel"),
1444
+ style: "link"
1445
1445
  })
1446
1446
  }
1447
1447
  });
@@ -1472,7 +1472,7 @@ var BrowserSupport = function BrowserSupport(_ref) {
1472
1472
  var _ref$overrides = _ref.overrides,
1473
1473
  overrides = _ref$overrides === void 0 ? {} : _ref$overrides;
1474
1474
  var platformInfo = platform.parse(navigator.userAgent);
1475
- var browserName = platformInfo.name || t("neetoCommons.browserSupport.unknownBrowserMsg");
1475
+ var browserName = platformInfo.name || t$1("neetoCommons.browserSupport.unknownBrowserMsg");
1476
1476
  var browserVersion = platformInfo.version || "";
1477
1477
  var supportedBrowserVersionsMap = mergeLeft(overrides, DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS);
1478
1478
  var requiredMinBrowserVersion = getRequiredMinBrowserVersion(browserName, supportedBrowserVersionsMap);
@@ -1489,8 +1489,8 @@ var BrowserSupport = function BrowserSupport(_ref) {
1489
1489
  }, isUnsupportedBrowserVersion ? /*#__PURE__*/React__default.createElement(UnsupportedBrowserVersion, {
1490
1490
  browserName: browserName,
1491
1491
  browserVersion: browserVersion,
1492
- requiredMinBrowserVersion: requiredMinBrowserVersion,
1493
- downloadPageLink: downloadPageLink
1492
+ downloadPageLink: downloadPageLink,
1493
+ requiredMinBrowserVersion: requiredMinBrowserVersion
1494
1494
  }) : /*#__PURE__*/React__default.createElement(UnsupportedBrowser, {
1495
1495
  browserName: browserName,
1496
1496
  browserVersion: browserVersion
@@ -1548,38 +1548,14 @@ var isNotEmpty = /*#__PURE__*/complement$1(isEmpty);
1548
1548
  var isNotPresent = /*#__PURE__*/either$1(isNil, isEmpty);
1549
1549
  var isPresent = /*#__PURE__*/complement$1(isNotPresent);
1550
1550
 
1551
- var slugify = function slugify(string) {
1552
- return string.toString().toLowerCase().replace(/\s+/g, "-") // Replace spaces with -
1553
- .replace(/&/g, "-and-") // Replace & with 'and'
1554
- .replace(/[^\w-]+/g, "") // Remove all non-word characters
1555
- .replace(/--+/g, "-") // Replace multiple - with single -
1556
- .replace(/^-+/, "") // Trim - from start of text
1557
- .replace(/-+$/, "");
1558
- }; // Trim - from end of text
1559
-
1560
- var humanize = function humanize(string) {
1561
- 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();
1562
- string = string.charAt(0).toUpperCase() + string.slice(1);
1563
- return string;
1564
- };
1565
1551
  var snakeToCamelCase = function snakeToCamelCase(string) {
1566
1552
  return string.replace(/(_\w)/g, function (letter) {
1567
1553
  return letter[1].toUpperCase();
1568
1554
  });
1569
1555
  };
1570
- var camelToSnakeCase = function camelToSnakeCase(string) {
1571
- return string.replace(/[A-Z]/g, function (letter) {
1572
- return "_".concat(letter.toLowerCase());
1573
- });
1574
- };
1575
1556
  var capitalize = function capitalize(string) {
1576
1557
  return string.charAt(0).toUpperCase() + string.slice(1);
1577
1558
  };
1578
- nullSafe(slugify);
1579
- nullSafe(humanize);
1580
- nullSafe(snakeToCamelCase);
1581
- nullSafe(camelToSnakeCase);
1582
- nullSafe(capitalize);
1583
1559
 
1584
1560
  var matchesImpl = function matchesImpl(pattern, object) {
1585
1561
  var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
@@ -1736,18 +1712,18 @@ var Columns = function Columns(_ref) {
1736
1712
  buttonStyle: "text",
1737
1713
  closeOnSelect: false,
1738
1714
  label: "Columns",
1715
+ position: "bottom-end",
1739
1716
  onClose: function onClose() {
1740
1717
  return setSearchTerm("");
1741
- },
1742
- position: "bottom-end"
1718
+ }
1743
1719
  }, dropdownProps), /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement("div", null, isSearchable && /*#__PURE__*/React__default.createElement(Input, _extends$3({
1744
1720
  className: "neeto-ui-px-3 neeto-ui-py-2",
1745
1721
  "data-cy": "neeto-ui-columns-search",
1746
- onChange: handleSearch,
1747
1722
  placeholder: "Search columns",
1748
1723
  prefix: /*#__PURE__*/React__default.createElement(Search, null),
1749
1724
  type: "search",
1750
- value: searchTerm
1725
+ value: searchTerm,
1726
+ onChange: handleSearch
1751
1727
  }, searchProps)), isNotEmpty(filteredColumns) ? filteredColumns.map(function (_ref4) {
1752
1728
  var dataIndex = _ref4.dataIndex,
1753
1729
  key = _ref4.key,
@@ -1758,11 +1734,11 @@ var Columns = function Columns(_ref) {
1758
1734
  className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
1759
1735
  htmlFor: dataIndex
1760
1736
  }, /*#__PURE__*/React__default.createElement(Checkbox, _extends$3({
1761
- id: dataIndex,
1762
- name: dataIndex,
1763
1737
  checked: !hiddenColumns.includes(dataIndex),
1764
1738
  "data-cy": "neeto-ui-columns-checkbox",
1739
+ id: dataIndex,
1765
1740
  label: title,
1741
+ name: dataIndex,
1766
1742
  onChange: handleChange
1767
1743
  }, checkboxProps))));
1768
1744
  }) : /*#__PURE__*/React__default.createElement("span", {
@@ -2318,25 +2294,17 @@ const createImpl = (createState) => {
2318
2294
  return useBoundStore;
2319
2295
  };
2320
2296
  const create$9 = (createState) => createState ? createImpl(createState) : createImpl;
2321
- var react = (createState) => {
2322
- if ((import.meta.env && import.meta.env.MODE) !== "production") {
2323
- console.warn(
2324
- "[DEPRECATED] default export is deprecated, instead import { create } from'zustand'"
2325
- );
2326
- }
2327
- return create$9(createState);
2328
- };
2329
2297
 
2330
2298
  var useDisplayErrorPage = function useDisplayErrorPage() {
2331
2299
  return useErrorDisplayStore(prop$1("show404Page"));
2332
2300
  };
2333
- var useErrorDisplayStore = react(function () {
2301
+ var useErrorDisplayStore = create$9(function () {
2334
2302
  return {
2335
2303
  show404Page: false
2336
2304
  };
2337
2305
  });
2338
2306
 
2339
- function useDebounce(value) {
2307
+ var useDebounce = function useDebounce(value) {
2340
2308
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
2341
2309
  var _useState = useState(value),
2342
2310
  _useState2 = _slicedToArray(_useState, 2),
@@ -2351,7 +2319,7 @@ function useDebounce(value) {
2351
2319
  };
2352
2320
  }, [value]);
2353
2321
  return debouncedValue;
2354
- }
2322
+ };
2355
2323
 
2356
2324
  var useFuncDebounce = function useFuncDebounce(func) {
2357
2325
  var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
@@ -2372,6 +2340,7 @@ var useFuncDebounce = function useFuncDebounce(func) {
2372
2340
  };
2373
2341
 
2374
2342
  var useForceUpdate = function useForceUpdate() {
2343
+ // eslint-disable-next-line react/hook-use-state
2375
2344
  var _useState = useState(0),
2376
2345
  _useState2 = _slicedToArray(_useState, 2),
2377
2346
  setValue = _useState2[1];
@@ -2387,14 +2356,14 @@ var useIsElementVisibleInDom = function useIsElementVisibleInDom(target) {
2387
2356
  var _useState = useState(false),
2388
2357
  _useState2 = _slicedToArray(_useState, 2),
2389
2358
  isIntersecting = _useState2[0],
2390
- setIntersecting = _useState2[1];
2359
+ setIsIntersecting = _useState2[1];
2391
2360
  var forceUpdate = useForceUpdate();
2392
2361
  useEffect(function () {
2393
2362
  if (!target) return forceUpdate();
2394
2363
  var observer = new IntersectionObserver(function (_ref) {
2395
2364
  var _ref2 = _slicedToArray(_ref, 1),
2396
2365
  entry = _ref2[0];
2397
- return setIntersecting(entry.isIntersecting);
2366
+ return setIsIntersecting(entry.isIntersecting);
2398
2367
  }, options);
2399
2368
  observer.observe(target);
2400
2369
  return function () {
@@ -2454,7 +2423,7 @@ var INITIAL_VALUES$1 = {
2454
2423
  hostname: ""
2455
2424
  };
2456
2425
  var CUSTOM_DOMAIN_VALIDATION_SCHEMA = yup.object().shape({
2457
- hostname: yup.string().required(t("neetoCommons.customDomain.formikValidation.required")).matches(HOSTNAME_REGEX, t("neetoCommons.customDomain.formikValidation.valid"))
2426
+ hostname: yup.string().required(t$1("neetoCommons.customDomain.formikValidation.required")).matches(HOSTNAME_REGEX, t$1("neetoCommons.customDomain.formikValidation.valid"))
2458
2427
  });
2459
2428
 
2460
2429
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -3505,25 +3474,25 @@ var TagBlock = function TagBlock(_ref) {
3505
3474
  "flex-col items-start": stacked
3506
3475
  })
3507
3476
  }, status === "failed" ? /*#__PURE__*/React__default.createElement(Tag, {
3477
+ indicatorStyle: "danger",
3508
3478
  label: t("neetoCommons.customDomain.status.".concat(camelCasedStatus)),
3509
- style: "secondary",
3510
- indicatorStyle: "danger"
3479
+ style: "secondary"
3511
3480
  }) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tag, {
3512
- label: t("neetoCommons.customDomain.status.txt.".concat(camelCasedStatus)),
3481
+ indicatorStyle: isTxtValidated ? "success" : "warning",
3513
3482
  style: "secondary",
3514
- indicatorStyle: isTxtValidated ? "success" : "warning"
3483
+ label: t("neetoCommons.customDomain.status.txt.".concat(camelCasedStatus))
3515
3484
  }), isTxtValidated && /*#__PURE__*/React__default.createElement("div", {
3516
3485
  className: classnames("flex items-center justify-between gap-2", {
3517
3486
  "w-full": stacked
3518
3487
  })
3519
3488
  }, /*#__PURE__*/React__default.createElement(Tag, {
3520
- label: t("neetoCommons.customDomain.status.cname.".concat(camelCasedStatus)),
3489
+ indicatorStyle: status === "active" ? "success" : "warning",
3521
3490
  style: "secondary",
3522
- indicatorStyle: status === "active" ? "success" : "warning"
3491
+ label: t("neetoCommons.customDomain.status.cname.".concat(camelCasedStatus))
3523
3492
  }), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
3524
- label: t("neetoCommons.customDomain.validation.buttonLabel.cnameCheck"),
3525
3493
  className: "text-xs",
3526
3494
  style: "link",
3495
+ label: t("neetoCommons.customDomain.validation.buttonLabel.cnameCheck"),
3527
3496
  onClick: handleValidateCname
3528
3497
  }))));
3529
3498
  };
@@ -3532,13 +3501,13 @@ var Menu = Dropdown.Menu,
3532
3501
  MenuItem = Dropdown.MenuItem;
3533
3502
  var renderColumnData = function renderColumnData(enableManagePane, enableDeleteAlert) {
3534
3503
  return [{
3535
- title: t("neetoCommons.customDomain.customDomain", {
3504
+ title: t$1("neetoCommons.customDomain.customDomain", {
3536
3505
  count: ENTITY_COUNT.singular
3537
3506
  }),
3538
3507
  dataIndex: "hostname",
3539
3508
  key: "hostname"
3540
3509
  }, {
3541
- title: t("neetoCommons.common.status"),
3510
+ title: t$1("neetoCommons.common.status"),
3542
3511
  dataIndex: "status",
3543
3512
  key: "status",
3544
3513
  render: function render(status) {
@@ -3557,21 +3526,21 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
3557
3526
  }
3558
3527
  }, /*#__PURE__*/React__default.createElement(Dropdown, {
3559
3528
  autoWidth: true,
3560
- icon: MenuHorizontal,
3561
3529
  buttonProps: {
3562
3530
  style: "text"
3563
3531
  },
3532
+ icon: MenuHorizontal,
3564
3533
  position: "bottom-end",
3565
3534
  strategy: "fixed"
3566
3535
  }, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
3567
3536
  onClick: function onClick() {
3568
3537
  return enableManagePane(customDomain);
3569
3538
  }
3570
- }, t("neetoCommons.common.actions.edit")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
3539
+ }, t$1("neetoCommons.common.actions.edit")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
3571
3540
  onClick: function onClick() {
3572
3541
  return enableDeleteAlert(customDomain);
3573
3542
  }
3574
- }, t("neetoCommons.common.actions.delete")))));
3543
+ }, t$1("neetoCommons.common.actions.delete")))));
3575
3544
  }
3576
3545
  }];
3577
3546
  };
@@ -3584,16 +3553,16 @@ var recordData = function recordData(customDomain) {
3584
3553
  var recordName = isTxtValidated ? hostname : "_acme-challenge.".concat(hostname);
3585
3554
  var recordValue = isTxtValidated ? dnsTarget : txtValue;
3586
3555
  var recordType = isTxtValidated ? "CNAME" : "TXT";
3587
- var recordDescription = t("neetoCommons.customDomain.validation.desc", {
3556
+ var recordDescription = t$1("neetoCommons.customDomain.validation.desc", {
3588
3557
  record: recordType
3589
3558
  });
3590
- var recordNameLabel = t("neetoCommons.customDomain.validation.record", {
3559
+ var recordNameLabel = t$1("neetoCommons.customDomain.validation.record", {
3591
3560
  record: recordType,
3592
- type: t("neetoCommons.common.name")
3561
+ type: t$1("neetoCommons.common.name")
3593
3562
  });
3594
- var recordValueLabel = t("neetoCommons.customDomain.validation.record", {
3563
+ var recordValueLabel = t$1("neetoCommons.customDomain.validation.record", {
3595
3564
  record: recordType,
3596
- type: t("neetoCommons.common.value")
3565
+ type: t$1("neetoCommons.common.value")
3597
3566
  });
3598
3567
  return {
3599
3568
  recordName: recordName,
@@ -3615,8 +3584,8 @@ var Record = function Record(_ref) {
3615
3584
  return /*#__PURE__*/React__default.createElement("div", {
3616
3585
  className: "grid gap-4 mt-6"
3617
3586
  }, customDomain.status !== "active" && /*#__PURE__*/React__default.createElement(Callout, {
3618
- style: "info",
3619
- icon: Info$3
3587
+ icon: Info$3,
3588
+ style: "info"
3620
3589
  }, recordDescription), /*#__PURE__*/React__default.createElement(Input, {
3621
3590
  disabled: true,
3622
3591
  "data-cy": joinHyphenCase(recordNameLabel),
@@ -3630,8 +3599,8 @@ var Record = function Record(_ref) {
3630
3599
  }
3631
3600
  })
3632
3601
  }), /*#__PURE__*/React__default.createElement(Input, {
3633
- "data-cy": joinHyphenCase(recordValueLabel),
3634
3602
  disabled: true,
3603
+ "data-cy": joinHyphenCase(recordValueLabel),
3635
3604
  label: recordValueLabel,
3636
3605
  value: recordValue,
3637
3606
  suffix: /*#__PURE__*/React__default.createElement(Button, {
@@ -3686,12 +3655,12 @@ var CustomDomainInfo = function CustomDomainInfo(_ref) {
3686
3655
  }, /*#__PURE__*/React__default.createElement(Trans, {
3687
3656
  i18nKey: "neetoCommons.customDomain.messageBlock.dnsStatus"
3688
3657
  }), /*#__PURE__*/React__default.createElement(Button, {
3689
- style: "link",
3690
3658
  href: "mailto:support@neeto.com",
3691
- label: "support@neeto.com"
3659
+ label: "support@neeto.com",
3660
+ style: "link"
3692
3661
  })), /*#__PURE__*/React__default.createElement(Callout, {
3693
- style: "info",
3694
- icon: Info$3
3662
+ icon: Info$3,
3663
+ style: "info"
3695
3664
  }, t("neetoCommons.customDomain.messageBlock.cnameAddedTime", {
3696
3665
  time: timeFormat.fromNow(time)
3697
3666
  })));
@@ -3847,16 +3816,16 @@ var Manage = function Manage(_ref) {
3847
3816
  }, /*#__PURE__*/React__default.createElement(Formik, {
3848
3817
  enableReinitialize: true,
3849
3818
  initialValues: customDomain || INITIAL_VALUES$1,
3850
- validationSchema: CUSTOM_DOMAIN_VALIDATION_SCHEMA,
3851
3819
  validateOnBlur: isCreating,
3852
3820
  validateOnChange: isCreating,
3821
+ validationSchema: CUSTOM_DOMAIN_VALIDATION_SCHEMA,
3853
3822
  onSubmit: handleSubmit
3854
3823
  }, function (_ref2) {
3855
3824
  var dirty = _ref2.dirty;
3856
3825
  return /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
3826
+ "data-cy": "add-custom-domain-pane-heading",
3857
3827
  style: "h2",
3858
- weight: "semibold",
3859
- "data-cy": "add-custom-domain-pane-heading"
3828
+ weight: "semibold"
3860
3829
  }, customDomain ? t("neetoCommons.common.actions.editTitle", {
3861
3830
  entity: t("neetoCommons.customDomain.customDomain", {
3862
3831
  count: ENTITY_COUNT.singular
@@ -3868,10 +3837,10 @@ var Manage = function Manage(_ref) {
3868
3837
  }))), /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement("div", {
3869
3838
  className: "space-y-6 w-full"
3870
3839
  }, !!customDomain && /*#__PURE__*/React__default.createElement(TagBlock, {
3871
- status: customDomain.status,
3872
- isCnameRecordsAdded: customDomain.addedCnameAt,
3840
+ stacked: true,
3873
3841
  handleValidateCname: handleValidateCname,
3874
- stacked: true
3842
+ isCnameRecordsAdded: customDomain.addedCnameAt,
3843
+ status: customDomain.status
3875
3844
  }), /*#__PURE__*/React__default.createElement("div", {
3876
3845
  className: "space-y-2"
3877
3846
  }, /*#__PURE__*/React__default.createElement(Label, {
@@ -3881,31 +3850,31 @@ var Manage = function Manage(_ref) {
3881
3850
  }) : t("neetoCommons.customDomain.label")), /*#__PURE__*/React__default.createElement("div", {
3882
3851
  className: "flex items-start gap-2"
3883
3852
  }, /*#__PURE__*/React__default.createElement(Input$1, {
3884
- disabled: !!customDomain,
3885
3853
  autoFocus: true,
3854
+ "data-cy": "custom-domain-input-field",
3855
+ disabled: !!customDomain,
3886
3856
  name: "hostname",
3887
- placeholder: t("neetoCommons.customDomain.placeholder"),
3888
- "data-cy": "custom-domain-input-field"
3857
+ placeholder: t("neetoCommons.customDomain.placeholder")
3889
3858
  }), !customDomain && /*#__PURE__*/React__default.createElement(Button, {
3859
+ "data-cy": "submit-custom-domain-button",
3890
3860
  disabled: !dirty || isCreating,
3861
+ icon: Check,
3891
3862
  loading: isCreating,
3892
3863
  style: "primary",
3893
- type: "submit",
3894
- icon: Check,
3895
- "data-cy": "submit-custom-domain-button"
3864
+ type: "submit"
3896
3865
  }))), !!customDomain && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Record, {
3897
3866
  customDomain: customDomain
3898
3867
  }), customDomain.status === "pending_txt_validation" && /*#__PURE__*/React__default.createElement(Button, {
3899
- label: t("neetoCommons.customDomain.validation.buttonLabel.txt"),
3900
- onClick: handleValidateTxt,
3868
+ "data-cy": "validate-txt-record-button",
3901
3869
  disabled: isValidating,
3902
3870
  loading: isValidating,
3903
- "data-cy": "validate-txt-record-button"
3871
+ label: t("neetoCommons.customDomain.validation.buttonLabel.txt"),
3872
+ onClick: handleValidateTxt
3904
3873
  }), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(Button, {
3905
3874
  "data-cy": "validate-cname-record-button",
3875
+ loading: isCnameValidating || isUpdating,
3906
3876
  label: t("neetoCommons.customDomain.validation.buttonLabel.cnameAdded"),
3907
- onClick: handleUpdateCname,
3908
- loading: isCnameValidating || isUpdating
3877
+ onClick: handleUpdateCname
3909
3878
  }), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(CustomDomainInfo, {
3910
3879
  time: customDomain.addedCnameAt
3911
3880
  })))));
@@ -3955,8 +3924,16 @@ var CustomDomain = function CustomDomain(_ref) {
3955
3924
  setIsAlertOpen(true);
3956
3925
  };
3957
3926
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Container, null, /*#__PURE__*/React__default.createElement(Header$1, _extends$3({
3958
- title: t("neetoCommons.customDomain.customDomain", {
3959
- count: ENTITY_COUNT.plural
3927
+ actionBlock: /*#__PURE__*/React__default.createElement(Button, {
3928
+ "data-cy": "add-new-custom-domain-button",
3929
+ label: t("neetoCommons.common.actions.addNew", {
3930
+ entity: t("neetoCommons.customDomain.customDomain", {
3931
+ count: ENTITY_COUNT.singular
3932
+ }).toLocaleLowerCase()
3933
+ }),
3934
+ onClick: function onClick() {
3935
+ return enableManagePane(null);
3936
+ }
3960
3937
  }),
3961
3938
  searchProps: {
3962
3939
  value: searchTerm,
@@ -3970,16 +3947,8 @@ var CustomDomain = function CustomDomain(_ref) {
3970
3947
  }),
3971
3948
  "data-cy": "custom-domain-search-field"
3972
3949
  },
3973
- actionBlock: /*#__PURE__*/React__default.createElement(Button, {
3974
- "data-cy": "add-new-custom-domain-button",
3975
- label: t("neetoCommons.common.actions.addNew", {
3976
- entity: t("neetoCommons.customDomain.customDomain", {
3977
- count: ENTITY_COUNT.singular
3978
- }).toLocaleLowerCase()
3979
- }),
3980
- onClick: function onClick() {
3981
- return enableManagePane(null);
3982
- }
3950
+ title: t("neetoCommons.customDomain.customDomain", {
3951
+ count: ENTITY_COUNT.plural
3983
3952
  })
3984
3953
  }, headerProps)), isLoading && /*#__PURE__*/React__default.createElement("div", {
3985
3954
  className: "w-full h-screen"
@@ -3987,24 +3956,19 @@ var CustomDomain = function CustomDomain(_ref) {
3987
3956
  className: "w-full flex-grow"
3988
3957
  }, /*#__PURE__*/React__default.createElement(SubHeader, {
3989
3958
  leftActionBlock: /*#__PURE__*/React__default.createElement(Typography, {
3990
- component: "h4",
3991
- className: "neeto-ui-gray-800 font-semibold"
3959
+ className: "neeto-ui-gray-800 font-semibold",
3960
+ component: "h4"
3992
3961
  }, t("neetoCommons.customDomain.customDomainWithCount", {
3993
3962
  count: data === null || data === void 0 ? void 0 : (_data$customDomains = data.customDomains) === null || _data$customDomains === void 0 ? void 0 : _data$customDomains.length
3994
3963
  }))
3995
3964
  }), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table, {
3996
- rowData: data === null || data === void 0 ? void 0 : data.customDomains,
3997
- columnData: renderColumnData(enableManagePane, enableDeleteAlert),
3998
3965
  allowRowClick: false,
3999
- rowSelection: false
3966
+ rowData: data === null || data === void 0 ? void 0 : data.customDomains,
3967
+ rowSelection: false,
3968
+ columnData: renderColumnData(enableManagePane, enableDeleteAlert)
4000
3969
  }))) : /*#__PURE__*/React__default.createElement("div", {
4001
3970
  className: "flex h-full w-full flex-grow items-center justify-center"
4002
3971
  }, /*#__PURE__*/React__default.createElement(NoData, {
4003
- title: t("neetoCommons.common.notFound.title", {
4004
- entity: t("neetoCommons.customDomain.customDomain", {
4005
- count: ENTITY_COUNT.plural
4006
- }).toLocaleLowerCase()
4007
- }),
4008
3972
  primaryButtonProps: {
4009
3973
  label: t("neetoCommons.common.actions.addNew", {
4010
3974
  entity: t("neetoCommons.customDomain.customDomain", {
@@ -4014,36 +3978,41 @@ var CustomDomain = function CustomDomain(_ref) {
4014
3978
  onClick: function onClick() {
4015
3979
  return enableManagePane(null);
4016
3980
  }
4017
- }
3981
+ },
3982
+ title: t("neetoCommons.common.notFound.title", {
3983
+ entity: t("neetoCommons.customDomain.customDomain", {
3984
+ count: ENTITY_COUNT.plural
3985
+ }).toLocaleLowerCase()
3986
+ })
4018
3987
  })))), /*#__PURE__*/React__default.createElement(Manage, {
4019
3988
  customDomain: customDomain,
4020
3989
  isOpen: isPaneOpen,
3990
+ setCustomDomain: setCustomDomain,
4021
3991
  onClose: function onClose() {
4022
3992
  return setIsPaneOpen(false);
4023
- },
4024
- setCustomDomain: setCustomDomain
3993
+ }
4025
3994
  }), /*#__PURE__*/React__default.createElement(Alert, {
3995
+ cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
4026
3996
  isOpen: isAlertOpen,
3997
+ isSubmitting: isDeleting,
4027
3998
  submitButtonLabel: t("neetoCommons.common.deleteAlert.yes"),
4028
- cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
4029
- title: t("neetoCommons.common.deleteAlert.title", {
4030
- entity: t("neetoCommons.customDomain.customDomain", {
4031
- count: ENTITY_COUNT.singular
4032
- }).toLocaleLowerCase()
4033
- }),
4034
3999
  message: /*#__PURE__*/React__default.createElement(Trans, {
4035
4000
  i18nKey: "neetoCommons.customDomain.alertMessage",
4036
4001
  values: {
4037
4002
  hostname: customDomain === null || customDomain === void 0 ? void 0 : customDomain.hostname
4038
4003
  }
4039
4004
  }),
4040
- onSubmit: function onSubmit() {
4041
- return deleteCustomDomain(customDomain === null || customDomain === void 0 ? void 0 : customDomain.id);
4042
- },
4005
+ title: t("neetoCommons.common.deleteAlert.title", {
4006
+ entity: t("neetoCommons.customDomain.customDomain", {
4007
+ count: ENTITY_COUNT.singular
4008
+ }).toLocaleLowerCase()
4009
+ }),
4043
4010
  onClose: function onClose() {
4044
4011
  return setIsAlertOpen(false);
4045
4012
  },
4046
- isSubmitting: isDeleting
4013
+ onSubmit: function onSubmit() {
4014
+ return deleteCustomDomain(customDomain === null || customDomain === void 0 ? void 0 : customDomain.id);
4015
+ }
4047
4016
  }));
4048
4017
  };
4049
4018
 
@@ -4059,8 +4028,8 @@ var DateFormat = fromPairs(keys(timeFormat).map(function (key) {
4059
4028
  style: "body2"
4060
4029
  }, typographyProps), timeFormat[key](date));
4061
4030
  return key === "extended" ? dateDisplay : /*#__PURE__*/React__default.createElement(Tooltip, _extends$3({
4062
- position: "top",
4063
- content: timeFormat.extended(date)
4031
+ content: timeFormat.extended(date),
4032
+ position: "top"
4064
4033
  }, tooltipProps), dateDisplay);
4065
4034
  }];
4066
4035
  }));
@@ -4117,32 +4086,32 @@ var FallbackComponent = function FallbackComponent() {
4117
4086
  }, /*#__PURE__*/React__default.createElement("div", {
4118
4087
  className: "m-auto mb-8 flex items-center justify-center"
4119
4088
  }, /*#__PURE__*/React__default.createElement(SvgFallbackComponent, null)), /*#__PURE__*/React__default.createElement(Typography, {
4089
+ className: "mb-4",
4120
4090
  component: "h2",
4121
4091
  style: "h2",
4122
- weight: "semibold",
4123
- className: "mb-4"
4092
+ weight: "semibold"
4124
4093
  }, t("neetoCommons.fallbackComponent.somethingWentWrong")), /*#__PURE__*/React__default.createElement(Typography, {
4094
+ className: "mb-8 text-gray-600",
4125
4095
  component: "p",
4126
4096
  style: "body1",
4127
- weight: "normal",
4128
- className: "mb-8 text-gray-600"
4097
+ weight: "normal"
4129
4098
  }, /*#__PURE__*/React__default.createElement(Trans, {
4130
4099
  i18nKey: "neetoCommons.fallbackComponent.description",
4131
4100
  components: {
4132
4101
  reloading: /*#__PURE__*/React__default.createElement(Button, {
4133
- label: t("neetoCommons.fallbackComponent.reloadingButtonLabel"),
4134
4102
  style: "link",
4103
+ label: t("neetoCommons.fallbackComponent.reloadingButtonLabel"),
4135
4104
  onClick: function onClick() {
4136
4105
  return window.location.reload();
4137
4106
  }
4138
4107
  }),
4139
4108
  contactus: /*#__PURE__*/React__default.createElement(Button, {
4140
- label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
4141
4109
  style: "link",
4110
+ label: t("neetoCommons.fallbackComponent.contactusButtonLabel"),
4142
4111
  onClick: function onClick() {
4143
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
4144
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
4145
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
4112
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
4113
+ (_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();
4114
+ (_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();
4146
4115
  }
4147
4116
  })
4148
4117
  }
@@ -4173,8 +4142,8 @@ var HoneybadgerErrorBoundary = function HoneybadgerErrorBoundary(_ref) {
4173
4142
  /*#__PURE__*/
4174
4143
  // @ts-ignore
4175
4144
  React__default.createElement(HoneybadgerErrorBoundary$1, {
4176
- honeybadger: honeybadger,
4177
- ErrorComponent: ErrorComponent
4145
+ ErrorComponent: ErrorComponent,
4146
+ honeybadger: honeybadger
4178
4147
  }, children)
4179
4148
  );
4180
4149
  };
@@ -7298,13 +7267,13 @@ var INITIAL_VALUES = {
7298
7267
  ipEnd: ""
7299
7268
  };
7300
7269
  var IP_RESTRICTION_FORM_VALIDATION = yup.object().shape({
7301
- ipStart: yup.string().validIPv4(t("neetoCommons.ipRestriction.validations.invalidIp")).required(),
7302
- ipEnd: yup.string().validIPv4(t("neetoCommons.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
7270
+ ipStart: yup.string().validIPv4(t$1("neetoCommons.ipRestriction.validations.invalidIp")).required(),
7271
+ ipEnd: yup.string().validIPv4(t$1("neetoCommons.ipRestriction.validations.invalidIp")).when("ipStart", function (ipStart, schema) {
7303
7272
  return schema.test({
7304
7273
  test: function test(ipEnd) {
7305
7274
  return isValidIPv4String(ipEnd) && isValidIPv4String(ipStart) && isValidIPv4Range(ipStart, ipEnd);
7306
7275
  },
7307
- message: t("neetoCommons.ipRestriction.validations.ipEndGreaterThanIpStart")
7276
+ message: t$1("neetoCommons.ipRestriction.validations.ipEndGreaterThanIpStart")
7308
7277
  });
7309
7278
  }).required()
7310
7279
  });
@@ -7458,11 +7427,11 @@ var Row = function Row(_ref) {
7458
7427
  return /*#__PURE__*/React__default.createElement("div", {
7459
7428
  className: "flex w-full flex-row justify-between bg-white px-1 py-2"
7460
7429
  }, /*#__PURE__*/React__default.createElement(Typography, {
7461
- style: "body2",
7462
- className: "w-4/12 flex-grow px-3 py-2 text-left"
7430
+ className: "w-4/12 flex-grow px-3 py-2 text-left",
7431
+ style: "body2"
7463
7432
  }, data.ipStart), /*#__PURE__*/React__default.createElement(Typography, {
7464
- style: "body2",
7465
- className: "w-4/12 flex-grow px-3 py-2 text-left"
7433
+ className: "w-4/12 flex-grow px-3 py-2 text-left",
7434
+ style: "body2"
7466
7435
  }, data.ipEnd), /*#__PURE__*/React__default.createElement("div", {
7467
7436
  className: "w-4/12 flex-grow px-3 py-2 text-center"
7468
7437
  }, /*#__PURE__*/React__default.createElement(Button, {
@@ -7476,9 +7445,9 @@ var Row = function Row(_ref) {
7476
7445
  return setIsDeleteIpRangeAlertOpen(true);
7477
7446
  }
7478
7447
  }), /*#__PURE__*/React__default.createElement(Alert, {
7448
+ cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
7479
7449
  isOpen: isDeleteIpRangeAlertOpen,
7480
7450
  submitButtonLabel: t("neetoCommons.common.deleteAlert.yes"),
7481
- cancelButtonLabel: t("neetoCommons.common.deleteAlert.no"),
7482
7451
  message: t("neetoCommons.ipRestriction.allowedIpRangeConfirmation", data),
7483
7452
  title: t("neetoCommons.common.deleteAlert.title", {
7484
7453
  entity: t("neetoCommons.ipRestriction.allowedIpRangeTitle")
@@ -57194,7 +57163,7 @@ var languageLoaders = {
57194
57163
  return Promise.resolve().then(function () { return cssExtras; });
57195
57164
  }),
57196
57165
  css: createLanguageAsyncLoader("css", function () {
57197
- return Promise.resolve().then(function () { return css$3; });
57166
+ return Promise.resolve().then(function () { return css$4; });
57198
57167
  }),
57199
57168
  csv: createLanguageAsyncLoader("csv", function () {
57200
57169
  return Promise.resolve().then(function () { return csv; });
@@ -65606,10 +65575,10 @@ var markup$2 = /*#__PURE__*/_mergeNamespaces({
65606
65575
  'default': markup_1
65607
65576
  }, [markup_1]);
65608
65577
 
65609
- var css_1 = css$2;
65610
- css$2.displayName = 'css';
65611
- css$2.aliases = [];
65612
- function css$2(Prism) {
65578
+ var css_1 = css$3;
65579
+ css$3.displayName = 'css';
65580
+ css$3.aliases = [];
65581
+ function css$3(Prism) {
65613
65582
  (function (Prism) {
65614
65583
  var string =
65615
65584
  /(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;
@@ -65684,7 +65653,7 @@ function css$2(Prism) {
65684
65653
  })(Prism);
65685
65654
  }
65686
65655
 
65687
- var css$3 = /*#__PURE__*/_mergeNamespaces({
65656
+ var css$4 = /*#__PURE__*/_mergeNamespaces({
65688
65657
  __proto__: null,
65689
65658
  'default': css_1
65690
65659
  }, [css_1]);
@@ -65926,7 +65895,7 @@ var h = hastscript.exports;
65926
65895
  var decode = parseEntities_1;
65927
65896
  var Prism = prismCore.exports;
65928
65897
  var markup = markup_1;
65929
- var css$1 = css_1;
65898
+ var css$2 = css_1;
65930
65899
  var clike = clike_1;
65931
65900
  var js = javascript_1;
65932
65901
 
@@ -65954,7 +65923,7 @@ refract.listLanguages = listLanguages;
65954
65923
 
65955
65924
  // Register bundled grammars.
65956
65925
  register(markup);
65957
- register(css$1);
65926
+ register(css$2);
65958
65927
  register(clike);
65959
65928
  register(js);
65960
65929
 
@@ -90195,9 +90164,9 @@ var CodeBlock = function CodeBlock(_ref) {
90195
90164
  }, /*#__PURE__*/React__default.createElement("div", {
90196
90165
  className: "neeto-ui-bg-primary-100 flex w-full items-center justify-between gap-2 p-3"
90197
90166
  }, title && /*#__PURE__*/React__default.createElement(Typography, {
90198
- style: "h4",
90199
90167
  className: "m-0",
90200
- "data-cy": "code-block-title-text"
90168
+ "data-cy": "code-block-title-text",
90169
+ style: "h4"
90201
90170
  }, title), /*#__PURE__*/React__default.createElement("div", {
90202
90171
  className: "flex items-center justify-end gap-2"
90203
90172
  }, sendViaEmail ? /*#__PURE__*/React__default.createElement(Button, {
@@ -90205,17 +90174,17 @@ var CodeBlock = function CodeBlock(_ref) {
90205
90174
  style: "secondary",
90206
90175
  onClick: sendViaEmail
90207
90176
  }) : null, showCopyButton && /*#__PURE__*/React__default.createElement(Button, {
90208
- style: "primary",
90209
90177
  icon: isCopied ? Check : Copy,
90178
+ style: "primary",
90210
90179
  label: isCopied ? t("neetoCommons.widget.installation.snippet.copied") : t("neetoCommons.widget.installation.snippet.copy"),
90211
90180
  onClick: function onClick() {
90212
90181
  return copyToClipboard(codeString);
90213
90182
  }
90214
90183
  }))), /*#__PURE__*/React__default.createElement(SyntaxHighlighter, {
90215
- language: "javascript",
90216
- style: a11yDark,
90184
+ className: "neeto-ui-bg-gray-800 m-0",
90217
90185
  customStyle: codeStyles,
90218
- className: "neeto-ui-bg-gray-800 m-0"
90186
+ language: "javascript",
90187
+ style: a11yDark
90219
90188
  }, codeString));
90220
90189
  };
90221
90190
 
@@ -90386,24 +90355,24 @@ var CodeSnippet = function CodeSnippet(_ref) {
90386
90355
  }, t("neetoCommons.widget.email.title"))), /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement("div", {
90387
90356
  className: "space-y-4 w-full"
90388
90357
  }, /*#__PURE__*/React__default.createElement(MultiEmailInput, {
90358
+ required: true,
90389
90359
  label: "".concat(t("neetoCommons.widget.email.fields.emails.label"), "*"),
90390
90360
  name: "emails",
90391
- placeholder: t("neetoCommons.widget.email.fields.emails.placeholder"),
90392
- required: true
90361
+ placeholder: t("neetoCommons.widget.email.fields.emails.placeholder")
90393
90362
  }), /*#__PURE__*/React__default.createElement(Input$1, {
90363
+ required: true,
90394
90364
  label: t("neetoCommons.widget.email.fields.subject.label"),
90395
90365
  name: "subject",
90396
- type: "text",
90397
- required: true
90366
+ type: "text"
90398
90367
  }), /*#__PURE__*/React__default.createElement(Typography, {
90399
90368
  style: "body2"
90400
90369
  }, body), /*#__PURE__*/React__default.createElement(CodeBlock, {
90401
90370
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90402
90371
  codeString: codeString,
90403
- showCopyButton: false,
90404
90372
  codeStyles: {
90405
90373
  maxHeight: 300
90406
- }
90374
+ },
90375
+ showCopyButton: false
90407
90376
  }))), /*#__PURE__*/React__default.createElement(Pane.Footer, {
90408
90377
  className: "gap-x-2"
90409
90378
  }, /*#__PURE__*/React__default.createElement(Button, {
@@ -90442,8 +90411,8 @@ var SelectionTabs = function SelectionTabs(_ref) {
90442
90411
  className: "mb-1",
90443
90412
  key: widget
90444
90413
  }, primarySelectedWidget !== widget ? /*#__PURE__*/React__default.createElement(Switch, {
90445
- label: "neeto".concat(capitalize(widget)),
90446
90414
  checked: selectedWidgets.includes(widget),
90415
+ label: "neeto".concat(capitalize(widget)),
90447
90416
  onChange: function onChange() {
90448
90417
  return updateSelectedWidgets(widget);
90449
90418
  }
@@ -90457,9 +90426,9 @@ var SelectionTabs = function SelectionTabs(_ref) {
90457
90426
  }, /*#__PURE__*/React__default.createElement("div", {
90458
90427
  className: "font-semibold text-base"
90459
90428
  }, "neeto", formattedPrimaryWidget), /*#__PURE__*/React__default.createElement("a", {
90460
- href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL,
90429
+ rel: "noreferrer",
90461
90430
  target: "_blank",
90462
- rel: "noreferrer"
90431
+ href: primarySelectedWidget ? WIDGET_KB_HELP_URL[primarySelectedWidget] : WIDGET_KB_BASE_URL
90463
90432
  }, /*#__PURE__*/React__default.createElement(Help, {
90464
90433
  size: 16
90465
90434
  }))), /*#__PURE__*/React__default.createElement("div", {
@@ -90519,11 +90488,6 @@ var EmbedCode = function EmbedCode(_ref) {
90519
90488
  ref: bodyRef
90520
90489
  }, /*#__PURE__*/React__default.createElement(Trans, {
90521
90490
  i18nKey: "neetoCommons.widget.email.body.values.embedCode",
90522
- values: {
90523
- selectedWidgets: getSelectedWidgetsCombinedText(selectedWidgets),
90524
- neetoKbUrl: NEETO_CHAT_CONFIGURE_URL,
90525
- helpEmail: INSTALLATION_HELP_EMAIL
90526
- },
90527
90491
  components: {
90528
90492
  p: /*#__PURE__*/React__default.createElement("p", {
90529
90493
  style: {
@@ -90531,17 +90495,22 @@ var EmbedCode = function EmbedCode(_ref) {
90531
90495
  }
90532
90496
  }),
90533
90497
  configureLink: /*#__PURE__*/React__default.createElement("a", {
90534
- href: NEETO_CHAT_CONFIGURE_URL,
90535
- target: "_blank",
90536
90498
  className: "neeto-ui-text-primary-800",
90537
- rel: "noreferrer"
90499
+ href: NEETO_CHAT_CONFIGURE_URL,
90500
+ rel: "noreferrer",
90501
+ target: "_blank"
90538
90502
  }),
90539
90503
  mail: /*#__PURE__*/React__default.createElement("a", {
90540
- href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
90541
- target: "_blank",
90542
90504
  className: "neeto-ui-text-primary-800",
90543
- rel: "noreferrer"
90505
+ href: "mailto:".concat(INSTALLATION_HELP_EMAIL),
90506
+ rel: "noreferrer",
90507
+ target: "_blank"
90544
90508
  })
90509
+ },
90510
+ values: {
90511
+ selectedWidgets: getSelectedWidgetsCombinedText(selectedWidgets),
90512
+ neetoKbUrl: NEETO_CHAT_CONFIGURE_URL,
90513
+ helpEmail: INSTALLATION_HELP_EMAIL
90545
90514
  }
90546
90515
  }))
90547
90516
  };
@@ -90551,9 +90520,6 @@ var EmbedCode = function EmbedCode(_ref) {
90551
90520
  subject: t("neetoCommons.widget.email.fields.subject.values.userIdentity"),
90552
90521
  body: /*#__PURE__*/React__default.createElement(Trans, {
90553
90522
  i18nKey: "neetoCommons.widget.email.body.values.userIdentity",
90554
- values: {
90555
- userIdentityKbUrl: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90556
- },
90557
90523
  components: {
90558
90524
  p: /*#__PURE__*/React__default.createElement("p", {
90559
90525
  style: {
@@ -90561,11 +90527,14 @@ var EmbedCode = function EmbedCode(_ref) {
90561
90527
  }
90562
90528
  }),
90563
90529
  configureLink: /*#__PURE__*/React__default.createElement("a", {
90564
- href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL,
90565
- target: "_blank",
90566
90530
  className: "neeto-ui-text-primary-800",
90567
- rel: "noreferrer"
90531
+ rel: "noreferrer",
90532
+ target: "_blank",
90533
+ href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90568
90534
  })
90535
+ },
90536
+ values: {
90537
+ userIdentityKbUrl: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90569
90538
  }
90570
90539
  })
90571
90540
  };
@@ -90575,9 +90544,6 @@ var EmbedCode = function EmbedCode(_ref) {
90575
90544
  subject: t("neetoCommons.widget.email.fields.subject.values.sessionContext"),
90576
90545
  body: /*#__PURE__*/React__default.createElement(Trans, {
90577
90546
  i18nKey: "neetoCommons.widget.email.body.values.sessionContext",
90578
- values: {
90579
- sessionContextKbUrl: NEETO_REPLAY_CONFIGURE_URL
90580
- },
90581
90547
  components: {
90582
90548
  p: /*#__PURE__*/React__default.createElement("p", {
90583
90549
  style: {
@@ -90585,11 +90551,14 @@ var EmbedCode = function EmbedCode(_ref) {
90585
90551
  }
90586
90552
  }),
90587
90553
  configureLink: /*#__PURE__*/React__default.createElement("a", {
90588
- href: NEETO_REPLAY_CONFIGURE_URL,
90589
- target: "_blank",
90590
90554
  className: "neeto-ui-text-primary-800",
90591
- rel: "noreferrer"
90555
+ href: NEETO_REPLAY_CONFIGURE_URL,
90556
+ rel: "noreferrer",
90557
+ target: "_blank"
90592
90558
  })
90559
+ },
90560
+ values: {
90561
+ sessionContextKbUrl: NEETO_REPLAY_CONFIGURE_URL
90593
90562
  }
90594
90563
  })
90595
90564
  };
@@ -90623,19 +90592,16 @@ var EmbedCode = function EmbedCode(_ref) {
90623
90592
  className: "mx-auto mb-4 w-full",
90624
90593
  "data-testid": "embed-code-block"
90625
90594
  }, /*#__PURE__*/React__default.createElement(CodeBlock, {
90626
- codeString: getEmbedCodeString(),
90627
90595
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90628
- title: /*#__PURE__*/React__default.createElement("div", null, "Embed code"),
90596
+ codeString: getEmbedCodeString(),
90629
90597
  sendViaEmail: function sendViaEmail() {
90630
90598
  return handleSendViaEmail(EMAIL_TYPES.embedCode);
90631
- }
90599
+ },
90600
+ title: /*#__PURE__*/React__default.createElement("div", null, "Embed code")
90632
90601
  })), /*#__PURE__*/React__default.createElement("div", {
90633
90602
  className: "w-full"
90634
90603
  }, /*#__PURE__*/React__default.createElement(Trans, {
90635
90604
  i18nKey: "neetoCommons.widget.installation.instructions.placement",
90636
- values: {
90637
- selectedWidgets: isNotEmpty(selectedWidgets) ? getSelectedWidgetsCombinedText(selectedWidgets, true) : "none of the widgets"
90638
- },
90639
90605
  components: {
90640
90606
  fontBold: /*#__PURE__*/React__default.createElement("span", {
90641
90607
  className: "font-semibold"
@@ -90643,24 +90609,27 @@ var EmbedCode = function EmbedCode(_ref) {
90643
90609
  fontNormal: /*#__PURE__*/React__default.createElement("span", {
90644
90610
  className: "font-normal"
90645
90611
  })
90612
+ },
90613
+ values: {
90614
+ selectedWidgets: isNotEmpty(selectedWidgets) ? getSelectedWidgetsCombinedText(selectedWidgets, true) : "none of the widgets"
90646
90615
  }
90647
90616
  }, "Place the embed code in your HTML file. This will embed the selected widgets in your website."))), enabledWidgets.chat || enabledWidgets.replay ? /*#__PURE__*/React__default.createElement("div", {
90648
90617
  className: "mx-auto w-full max-w-2xl flex-grow flex-col items-center justify-start mb-6"
90649
90618
  }, /*#__PURE__*/React__default.createElement("div", {
90650
90619
  className: "mx-auto mb-4 w-full"
90651
90620
  }, /*#__PURE__*/React__default.createElement(CodeBlock, {
90652
- codeString: getSampleUserIdentity(enabledWidgets),
90653
90621
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90622
+ codeString: getSampleUserIdentity(enabledWidgets),
90654
90623
  sendViaEmail: function sendViaEmail() {
90655
90624
  return handleSendViaEmail(EMAIL_TYPES.userIdentity);
90656
90625
  },
90657
90626
  title: /*#__PURE__*/React__default.createElement("div", {
90658
90627
  className: "flex items-center justify-start"
90659
90628
  }, /*#__PURE__*/React__default.createElement("div", null, "User identity (Optional)"), /*#__PURE__*/React__default.createElement("a", {
90660
- href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL,
90661
- target: "_blank",
90629
+ className: "ml-1",
90662
90630
  rel: "noreferrer",
90663
- className: "ml-1"
90631
+ target: "_blank",
90632
+ href: enabledWidgets.chat ? NEETO_CHAT_USER_IDENTITY_URL : NEETO_REPLAY_CONFIGURE_URL
90664
90633
  }, /*#__PURE__*/React__default.createElement(Help, {
90665
90634
  size: 16
90666
90635
  })))
@@ -90671,18 +90640,18 @@ var EmbedCode = function EmbedCode(_ref) {
90671
90640
  }, /*#__PURE__*/React__default.createElement("div", {
90672
90641
  className: "mx-auto mb-4 w-full"
90673
90642
  }, /*#__PURE__*/React__default.createElement(CodeBlock, {
90674
- codeString: SAMPLE_CONTEXT_CODE_STRING,
90675
90643
  className: "neeto-ui-bg-primary-100 neeto-ui-rounded-xl overflow-hidden",
90644
+ codeString: SAMPLE_CONTEXT_CODE_STRING,
90676
90645
  sendViaEmail: function sendViaEmail() {
90677
90646
  return handleSendViaEmail(EMAIL_TYPES.sessionContext);
90678
90647
  },
90679
90648
  title: /*#__PURE__*/React__default.createElement("div", {
90680
90649
  className: "flex items-center justify-start"
90681
90650
  }, /*#__PURE__*/React__default.createElement("div", null, "Session context (Optional)"), /*#__PURE__*/React__default.createElement("a", {
90651
+ className: "ml-1",
90682
90652
  href: NEETO_REPLAY_CONFIGURE_URL,
90683
- target: "_blank",
90684
90653
  rel: "noreferrer",
90685
- className: "ml-1"
90654
+ target: "_blank"
90686
90655
  }, /*#__PURE__*/React__default.createElement(Help, {
90687
90656
  size: 16
90688
90657
  })))
@@ -90716,6 +90685,125 @@ var PrivateRoute = function PrivateRoute(_ref) {
90716
90685
  });
90717
90686
  };
90718
90687
 
90688
+ var PublishBlock = function PublishBlock(_ref) {
90689
+ var entityId = _ref.entityId,
90690
+ publishMutation = _ref.publishMutation,
90691
+ resetDraftMutation = _ref.resetDraftMutation,
90692
+ renderDraftButtons = _ref.renderDraftButtons,
90693
+ renderPublishButtons = _ref.renderPublishButtons,
90694
+ _ref$resetAlertProps = _ref.resetAlertProps,
90695
+ resetAlertProps = _ref$resetAlertProps === void 0 ? {} : _ref$resetAlertProps;
90696
+ var _useTranslation = useTranslation(),
90697
+ t = _useTranslation.t;
90698
+ var _useState = useState(false),
90699
+ _useState2 = _slicedToArray(_useState, 2),
90700
+ isResetAlertOpen = _useState2[0],
90701
+ setIsResetAlertOpen = _useState2[1];
90702
+ var _publishMutation = publishMutation(),
90703
+ publishForm = _publishMutation.mutate,
90704
+ isPublishing = _publishMutation.isLoading;
90705
+ var _resetDraftMutation = resetDraftMutation(),
90706
+ resetForm = _resetDraftMutation.mutate,
90707
+ isResetting = _resetDraftMutation.isLoading;
90708
+ var handleReset = function handleReset() {
90709
+ return resetForm(entityId, {
90710
+ onSuccess: function onSuccess() {
90711
+ return setIsResetAlertOpen(false);
90712
+ }
90713
+ });
90714
+ };
90715
+ var ViewDraftButton = function ViewDraftButton(props) {
90716
+ return /*#__PURE__*/React__default.createElement(Button, _extends$3({
90717
+ "data-cy": "view-draft-button",
90718
+ "data-testid": "view-draft-button",
90719
+ icon: ExternalLink,
90720
+ style: "secondary",
90721
+ target: "_blank",
90722
+ tooltipProps: {
90723
+ content: t("neetoCommons.publishBlock.viewDraftVersion"),
90724
+ position: "top"
90725
+ }
90726
+ }, props));
90727
+ };
90728
+ var ResetDraftButton = function ResetDraftButton(props) {
90729
+ return /*#__PURE__*/React__default.createElement(Button, _extends$3({
90730
+ "data-cy": "draft-button",
90731
+ "data-testid": "draft-button",
90732
+ disabled: isResetting,
90733
+ icon: Undo,
90734
+ loading: isResetting,
90735
+ style: "secondary",
90736
+ tooltipProps: {
90737
+ content: t("neetoCommons.publishBlock.deleteDraftVersion"),
90738
+ position: "top"
90739
+ },
90740
+ onClick: function onClick() {
90741
+ return setIsResetAlertOpen(true);
90742
+ }
90743
+ }, props));
90744
+ };
90745
+ var PublishButton = function PublishButton(props) {
90746
+ return /*#__PURE__*/React__default.createElement(Button, _extends$3({
90747
+ "data-cy": "publish-button",
90748
+ "data-testid": "publish-button",
90749
+ label: t("neetoCommons.common.actions.publish"),
90750
+ loading: isPublishing,
90751
+ onClick: function onClick() {
90752
+ return publishForm(entityId);
90753
+ }
90754
+ }, props, {
90755
+ disabled: isPublishing || props.disabled
90756
+ }));
90757
+ };
90758
+ var PublishPreviewButton = function PublishPreviewButton(props) {
90759
+ return /*#__PURE__*/React__default.createElement(Button, _extends$3({
90760
+ className: classnames({
90761
+ "pointer-events-none": props.disabled
90762
+ }),
90763
+ "data-cy": "publish-preview-button",
90764
+ "data-testid": "publish-preview-button",
90765
+ icon: ExternalLink,
90766
+ target: "_blank",
90767
+ tooltipProps: {
90768
+ content: t("neetoCommons.publishBlock.viewPublishedVersion"),
90769
+ position: "top"
90770
+ }
90771
+ }, props));
90772
+ };
90773
+ var draftBlockButtons = renderDraftButtons({
90774
+ ViewDraftButton: ViewDraftButton,
90775
+ ResetDraftButton: ResetDraftButton
90776
+ });
90777
+ return /*#__PURE__*/React__default.createElement("div", {
90778
+ className: "neeto-commons-publish-block"
90779
+ }, draftBlockButtons && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
90780
+ className: "flex items-center gap-2"
90781
+ }, /*#__PURE__*/React__default.createElement(Typography, {
90782
+ className: "neeto-ui-text-gray-700",
90783
+ lineHeight: "normal",
90784
+ style: "body2"
90785
+ }, t("neetoCommons.common.actions.draft")), /*#__PURE__*/React__default.createElement("div", {
90786
+ className: "space-x-1"
90787
+ }, draftBlockButtons)), /*#__PURE__*/React__default.createElement("div", {
90788
+ className: "neeto-ui-bg-gray-300 h-full w-px"
90789
+ })), /*#__PURE__*/React__default.createElement("div", {
90790
+ className: "neeto-commons-publish-block__action-btn"
90791
+ }, renderPublishButtons({
90792
+ PublishButton: PublishButton,
90793
+ PublishPreviewButton: PublishPreviewButton
90794
+ })), /*#__PURE__*/React__default.createElement(Alert, _extends$3({
90795
+ "data-cy": "reset-alert",
90796
+ "data-testid": "reset-alert",
90797
+ isOpen: isResetAlertOpen,
90798
+ isSubmitting: isResetting,
90799
+ submitButtonLabel: t("neetoCommons.common.actions.reset"),
90800
+ onClose: function onClose() {
90801
+ return setIsResetAlertOpen(false);
90802
+ },
90803
+ onSubmit: handleReset
90804
+ }, resetAlertProps)));
90805
+ };
90806
+
90719
90807
  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; }
90720
90808
  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; }
90721
90809
  var REMOVE_SELECT_DOWN_ARROW = {
@@ -91223,14 +91311,14 @@ var Form = function Form(_ref) {
91223
91311
  }, /*#__PURE__*/React__default.createElement("div", {
91224
91312
  className: "mt-1 flex w-16 items-center justify-start"
91225
91313
  }, /*#__PURE__*/React__default.createElement(Checkbox$1, {
91314
+ "aria-label": "wdays[".concat(index, "].available"),
91226
91315
  checked: values.wdays[index].available,
91227
91316
  "data-cy": joinHyphenCase(day, "weekly-hours-checkbox"),
91228
91317
  id: "day",
91229
91318
  name: "wdays[".concat(index, "].available"),
91230
91319
  onChange: function onChange() {
91231
91320
  return handleCheckbox(setFieldValue, values);
91232
- },
91233
- "aria-label": "wdays[".concat(index, "].available")
91321
+ }
91234
91322
  }), /*#__PURE__*/React__default.createElement(Typography, {
91235
91323
  className: "ml-2 capitalize",
91236
91324
  component: "span",
@@ -91238,10 +91326,10 @@ var Form = function Form(_ref) {
91238
91326
  style: "body2",
91239
91327
  weight: "semibold"
91240
91328
  }, t("neetoCommons.schedule.days.".concat(day)))), /*#__PURE__*/React__default.createElement(ScheduleRow, {
91329
+ day: day,
91241
91330
  setFieldValue: setFieldValue,
91242
91331
  values: values,
91243
- wdayIndex: index,
91244
- day: day
91332
+ wdayIndex: index
91245
91333
  }), /*#__PURE__*/React__default.createElement(Dropdown, {
91246
91334
  closeOnSelect: true,
91247
91335
  buttonStyle: "secondary",
@@ -91272,9 +91360,9 @@ var Form = function Form(_ref) {
91272
91360
  }, /*#__PURE__*/React__default.createElement(Label, {
91273
91361
  className: "w-full cursor-pointer capitalize"
91274
91362
  }, /*#__PURE__*/React__default.createElement(Checkbox, {
91363
+ checked: wdaysToCopy.includes(day),
91275
91364
  id: day,
91276
91365
  label: t("neetoCommons.schedule.days.".concat(day)),
91277
- checked: wdaysToCopy.includes(day),
91278
91366
  onChange: function onChange(e) {
91279
91367
  return handleCopyChange(e, day);
91280
91368
  }
@@ -91320,14 +91408,14 @@ var Fields = function Fields(_ref) {
91320
91408
  className: "space-y-4"
91321
91409
  }, values.wdays.map(function (item, index) {
91322
91410
  return /*#__PURE__*/React__default.createElement(Form, {
91411
+ day: DAYS.find(function (day) {
91412
+ return day === item.wday;
91413
+ }),
91323
91414
  handleCopy: handleCopy,
91324
91415
  index: index,
91325
91416
  key: item.wday,
91326
91417
  setFieldValue: setFieldValue,
91327
- values: values,
91328
- day: DAYS.find(function (day) {
91329
- return day === item.wday;
91330
- })
91418
+ values: values
91331
91419
  });
91332
91420
  }));
91333
91421
  }
@@ -91366,8 +91454,8 @@ var Header = function Header(_ref) {
91366
91454
  }, isEditing ? /*#__PURE__*/React__default.createElement("div", {
91367
91455
  className: "flex items-center space-x-4"
91368
91456
  }, /*#__PURE__*/React__default.createElement(Button, {
91369
- label: !dirty ? t("neetoCommons.common.actions.cancel") : t("neetoCommons.common.actions.reset"),
91370
91457
  style: "secondary",
91458
+ label: !dirty ? t("neetoCommons.common.actions.cancel") : t("neetoCommons.common.actions.reset"),
91371
91459
  onClick: handleReset
91372
91460
  }), /*#__PURE__*/React__default.createElement(Button, {
91373
91461
  "data-cy": "weekly-hours-save-changes-button",
@@ -91382,11 +91470,11 @@ var Header = function Header(_ref) {
91382
91470
  style: "h3",
91383
91471
  weight: "semibold"
91384
91472
  }, t("neetoCommons.schedule.weeklyHours")), /*#__PURE__*/React__default.createElement(Dropdown, {
91473
+ icon: MenuVertical,
91385
91474
  buttonProps: {
91386
91475
  style: "text",
91387
91476
  "data-testid": "weekly-hours-edit-dropdown-icon"
91388
- },
91389
- icon: MenuVertical
91477
+ }
91390
91478
  }, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
91391
91479
  "data-cy": "weekly-hours-edit-link",
91392
91480
  onClick: function onClick() {
@@ -91467,9 +91555,9 @@ var Schedule = /*#__PURE__*/forwardRef(function (_ref, scheduleRef) {
91467
91555
  isEditing: isEditing,
91468
91556
  setIsEditing: setIsEditing
91469
91557
  }), isEditing || !showHeader ? /*#__PURE__*/React__default.createElement(Form$1, null, /*#__PURE__*/React__default.createElement(Fields, {
91470
- scheduleRef: scheduleRef,
91471
91558
  handleCopy: handleCopy,
91472
- handleValuesChanged: handleValuesChanged
91559
+ handleValuesChanged: handleValuesChanged,
91560
+ scheduleRef: scheduleRef
91473
91561
  })) : /*#__PURE__*/React__default.createElement(DisplayAvailability, {
91474
91562
  periods: periods
91475
91563
  }))));
@@ -91525,8 +91613,8 @@ var buildProductLogo = function buildProductLogo() {
91525
91613
  }
91526
91614
  return {
91527
91615
  logo: /*#__PURE__*/React__default.createElement(ProductLogo, {
91528
- width: PRODUCT_LOGO_WIDTH,
91529
- height: PRODUCT_LOGO_HEIGHT
91616
+ height: PRODUCT_LOGO_HEIGHT,
91617
+ width: PRODUCT_LOGO_WIDTH
91530
91618
  })
91531
91619
  };
91532
91620
  };
@@ -91555,9 +91643,9 @@ var Sidebar = function Sidebar(_ref) {
91555
91643
  window.location.href = "/logout";
91556
91644
  };
91557
91645
  var openChatWidget = function openChatWidget() {
91558
- var _window, _window$NeetoChat, _window2, _window2$NeetoChat;
91559
- (_window = window) === null || _window === void 0 ? void 0 : (_window$NeetoChat = _window.NeetoChat) === null || _window$NeetoChat === void 0 ? void 0 : _window$NeetoChat.contextualHelp.openWidget();
91560
- (_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$NeetoChat = _window2.NeetoChat) === null || _window2$NeetoChat === void 0 ? void 0 : _window2$NeetoChat.contextualHelp.maximizeWidget();
91646
+ var _window$NeetoChat, _window$NeetoChat$con, _window$NeetoChat2, _window$NeetoChat2$co;
91647
+ (_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();
91648
+ (_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();
91561
91649
  };
91562
91650
  var profileInfo = mergeLeft(profileInfoOverrides, {
91563
91651
  name: "".concat(globalProps.user.firstName, " ").concat(globalProps.user.lastName),
@@ -91591,23 +91679,28 @@ var Sidebar = function Sidebar(_ref) {
91591
91679
  isCollapsed: true,
91592
91680
  appName: "neeto".concat(capitalize(appName)),
91593
91681
  navLinks: navLinks,
91594
- profileInfo: profileInfo,
91595
91682
  organizationInfo: organizationInfo,
91683
+ profileInfo: profileInfo,
91684
+ showAppSwitcher: showAppSwitcher,
91596
91685
  onAppSwitcherToggle: function onAppSwitcherToggle() {
91597
91686
  return setIsAppSwitcherOpen(not$2);
91598
- },
91599
- showAppSwitcher: showAppSwitcher
91687
+ }
91600
91688
  }), showAppSwitcher && /*#__PURE__*/React__default.createElement(AppSwitcher, {
91689
+ activeApp: capitalize(appName),
91690
+ environment: process.env.RAILS_ENV,
91601
91691
  isOpen: isAppSwitcherOpen,
91692
+ neetoApps: globalProps.neetoApps,
91602
91693
  onClose: function onClose() {
91603
91694
  return setIsAppSwitcherOpen(false);
91604
- },
91605
- neetoApps: globalProps.neetoApps,
91606
- activeApp: capitalize(appName),
91607
- environment: process.env.RAILS_ENV
91695
+ }
91608
91696
  }));
91609
91697
  };
91610
91698
 
91699
+ 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}}
91700
+
91701
+ 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}";
91702
+ n(css$1,{});
91703
+
91611
91704
  var NeetoWidget = {
91612
91705
  EmbedCode: EmbedCodeQueryClient,
91613
91706
  WIDGET_TYPES: WIDGET_TYPES
@@ -91866,10 +91959,11 @@ var handleMetaClick = curry(function (history, params, event) {
91866
91959
 
91867
91960
  var withTitle = function withTitle(Component) {
91868
91961
  var title = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
91869
- return function PageTitle(props) {
91962
+ var PageTitle = function PageTitle(props) {
91870
91963
  var pageTitle = title ? "".concat(title, " | ").concat(globalProps.appName) : globalProps.appName;
91871
91964
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Helmet, null, /*#__PURE__*/React__default.createElement("title", null, pageTitle)), /*#__PURE__*/React__default.createElement(Component, props));
91872
91965
  };
91966
+ return PageTitle;
91873
91967
  };
91874
91968
 
91875
91969
  var setWithoutModifyingActions = function setWithoutModifyingActions(set) {
@@ -91988,7 +92082,7 @@ var LOGIN_FORM_VALIDATION_SCHEMA = yup.object().shape({
91988
92082
  password: yup.string().required("Password is required")
91989
92083
  });
91990
92084
 
91991
- function SignInForm(_ref) {
92085
+ var SignInForm = function SignInForm(_ref) {
91992
92086
  var handleFormSubmit = _ref.handleFormSubmit;
91993
92087
  var emailFromSearchParams = function emailFromSearchParams() {
91994
92088
  return new URLSearchParams(window.location.search).get("email") || "";
@@ -92009,30 +92103,30 @@ function SignInForm(_ref) {
92009
92103
  className: "mb-6"
92010
92104
  }, /*#__PURE__*/React__default.createElement(Input$1, {
92011
92105
  required: true,
92012
- label: "Email",
92013
- name: "email",
92106
+ "data-cy": "login-email-text-field",
92014
92107
  "data-test-id": "login-email",
92015
- "data-cy": "login-email-text-field"
92108
+ label: "Email",
92109
+ name: "email"
92016
92110
  })), /*#__PURE__*/React__default.createElement("div", {
92017
92111
  className: "mb-6"
92018
92112
  }, /*#__PURE__*/React__default.createElement(Input$1, {
92019
92113
  required: true,
92020
- type: "password",
92114
+ "data-cy": "login-password-text-field",
92115
+ "data-test-id": "login-password",
92021
92116
  label: "Password",
92022
92117
  name: "password",
92023
- "data-test-id": "login-password",
92024
- "data-cy": "login-password-text-field"
92118
+ type: "password"
92025
92119
  })), /*#__PURE__*/React__default.createElement(Button$1, {
92026
- style: "secondary",
92027
- type: "submit",
92120
+ fullWidth: true,
92121
+ "data-cy": "login-submit-button",
92028
92122
  "data-test-id": "login-submit-button",
92029
92123
  label: "Login",
92030
- fullWidth: true,
92031
- "data-cy": "login-submit-button"
92124
+ style: "secondary",
92125
+ type: "submit"
92032
92126
  })));
92033
- }
92127
+ };
92034
92128
 
92035
- function SignIn(_ref) {
92129
+ var SignIn = function SignIn(_ref) {
92036
92130
  var handleSubmit = _ref.handleSubmit;
92037
92131
  var _useState = useState(null),
92038
92132
  _useState2 = _slicedToArray(_useState, 2),
@@ -92103,19 +92197,19 @@ function SignIn(_ref) {
92103
92197
  }, "Login to your", " ", /*#__PURE__*/React__default.createElement("b", {
92104
92198
  "data-test-id": "organization-name"
92105
92199
  }, globalProps.organization.name), " ", "account"), /*#__PURE__*/React__default.createElement(Button, {
92106
- style: "primary",
92107
- size: "large",
92108
- label: "Login as Oliver",
92200
+ fullWidth: true,
92109
92201
  disabled: isSubmitting,
92202
+ label: "Login as Oliver",
92110
92203
  loading: isSubmitting,
92111
- onClick: loginAsOliver,
92112
- fullWidth: true
92204
+ size: "large",
92205
+ style: "primary",
92206
+ onClick: loginAsOliver
92113
92207
  }), /*#__PURE__*/React__default.createElement("div", {
92114
92208
  className: "my-6 text-center text-lg font-semibold"
92115
92209
  }, "OR"), /*#__PURE__*/React__default.createElement(SignInForm, {
92116
92210
  handleFormSubmit: handleFormSubmit
92117
92211
  })));
92118
- }
92212
+ };
92119
92213
 
92120
92214
  var _1cExports = require_1c();
92121
92215
 
@@ -95365,4 +95459,4 @@ var zig = /*#__PURE__*/_mergeNamespaces({
95365
95459
  'default': zigExports
95366
95460
  }, [zigExports]);
95367
95461
 
95368
- export { BrowserSupport, Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, IpRestriction, SignIn as LoginPage, NeetoWidget, PrivateRoute, Schedule, Sidebar, TimeFormat, destroyBrowserSubscription, handleMetaClick, registerBrowserNotifications, useDebounce, useDisplayErrorPage, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions, withTitle };
95462
+ export { BrowserSupport, Columns, CustomDomain, DateFormat, ErrorPage, HoneybadgerErrorBoundary, IpRestriction, SignIn as LoginPage, NeetoWidget, PrivateRoute, PublishBlock, Schedule, Sidebar, TimeFormat, destroyBrowserSubscription, handleMetaClick, registerBrowserNotifications, useDebounce, useDisplayErrorPage, useFuncDebounce, useIsElementVisibleInDom, useLocalStorage, useOnClickOutside, usePrevious, useUpdateEffect, withImmutableActions, withTitle };