@bigbinary/neeto-integrations-frontend 2.12.7 → 3.0.0

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/dist/index.js CHANGED
@@ -8,39 +8,79 @@ import React__default, { useState, useEffect, useRef } from 'react';
8
8
  import classnames from 'classnames';
9
9
  import { humanize, noop, isPresent, keysToSnakeCase, _findBy, isNotEmpty } from '@bigbinary/neeto-cist';
10
10
  import { withT, useMutationWithInvalidation, withTitle, useQueryParams, useStateWithDependency } from '@bigbinary/neeto-commons-frontend/react-utils';
11
- import { Check } from '@bigbinary/neeto-icons';
12
- import { Typography, Button, Tooltip, Callout, Modal as Modal$1 } from '@bigbinary/neetoui';
11
+ import Check from '@bigbinary/neeto-icons/Check';
12
+ import Button from '@bigbinary/neetoui/Button';
13
+ import Tooltip from '@bigbinary/neetoui/Tooltip';
14
+ import Typography from '@bigbinary/neetoui/Typography';
13
15
  import { Trans, useTranslation } from 'react-i18next';
14
16
  import i18next, { t as t$1 } from 'i18next';
17
+ import { useQuery } from '@tanstack/react-query';
15
18
  import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
16
- import { useQuery } from 'react-query';
17
19
  import axios from 'axios';
18
20
  import Container from '@bigbinary/neeto-molecules/Container';
19
21
  import Header from '@bigbinary/neeto-molecules/Header';
20
22
  import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
21
23
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
22
- import { Form as Form$2, Input, Select, ActionBlock } from '@bigbinary/neetoui/formik';
24
+ import Input from '@bigbinary/neetoui/formik/Input';
25
+ import FormikForm from '@bigbinary/neetoui/formik/Form';
26
+ import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
27
+ import { useHistory } from 'react-router-dom';
28
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
23
29
  import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
24
- import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google, Zoom as Zoom$1 } from '@bigbinary/neeto-icons/misc';
30
+ import GoogleCalendarIcon from '@bigbinary/neeto-icons/misc/GoogleCalendar';
31
+ import Google from '@bigbinary/neeto-icons/misc/Google';
32
+ import Callout from '@bigbinary/neetoui/Callout';
25
33
  import { prop, equals, isEmpty } from 'ramda';
34
+ import Select from '@bigbinary/neetoui/formik/Select';
26
35
  import * as yup from 'yup';
36
+ import ZoomIcon from '@bigbinary/neeto-icons/misc/Zoom';
37
+ import NeetoUIModal from '@bigbinary/neetoui/Modal';
38
+ import DailyIcon from '@bigbinary/neeto-icons/misc/Daily';
27
39
  import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
28
40
 
29
- function _extends$1() {
30
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
31
- for (var i = 1; i < arguments.length; i++) {
32
- var source = arguments[i];
33
- for (var key in source) {
34
- if (Object.prototype.hasOwnProperty.call(source, key)) {
35
- target[key] = source[key];
36
- }
37
- }
38
- }
39
- return target;
40
- };
41
- return _extends$1.apply(this, arguments);
41
+ function _typeof(o) {
42
+ "@babel/helpers - typeof";
43
+
44
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
45
+ return typeof o;
46
+ } : function (o) {
47
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
48
+ }, _typeof(o);
49
+ }
50
+
51
+ function _toPrimitive(input, hint) {
52
+ if (_typeof(input) !== "object" || input === null) return input;
53
+ var prim = input[Symbol.toPrimitive];
54
+ if (prim !== undefined) {
55
+ var res = prim.call(input, hint || "default");
56
+ if (_typeof(res) !== "object") return res;
57
+ throw new TypeError("@@toPrimitive must return a primitive value.");
58
+ }
59
+ return (hint === "string" ? String : Number)(input);
42
60
  }
43
61
 
62
+ function _toPropertyKey(arg) {
63
+ var key = _toPrimitive(arg, "string");
64
+ return _typeof(key) === "symbol" ? key : String(key);
65
+ }
66
+
67
+ function _defineProperty(obj, key, value) {
68
+ key = _toPropertyKey(key);
69
+ if (key in obj) {
70
+ Object.defineProperty(obj, key, {
71
+ value: value,
72
+ enumerable: true,
73
+ configurable: true,
74
+ writable: true
75
+ });
76
+ } else {
77
+ obj[key] = value;
78
+ }
79
+ return obj;
80
+ }
81
+
82
+ function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
83
+ function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
44
84
  var Manage$1 = withT(function (_ref) {
45
85
  var t = _ref.t,
46
86
  _ref$title = _ref.title,
@@ -84,129 +124,109 @@ var Manage$1 = withT(function (_ref) {
84
124
  _ref$isConnectDisable = _ref.isConnectDisabled,
85
125
  isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
86
126
  _ref$connectTooltipPr = _ref.connectTooltipProps,
87
- connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr;
88
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
89
- className: "mx-auto w-full max-w-3xl"
90
- }, /*#__PURE__*/React__default.createElement("div", {
91
- className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
92
- }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
93
- className: "neeto-ui-text-gray-600",
94
- size: 48
95
- }), /*#__PURE__*/React__default.createElement("div", {
96
- className: "space-y-2"
97
- }, /*#__PURE__*/React__default.createElement("div", {
98
- className: "flex items-center space-x-4"
99
- }, /*#__PURE__*/React__default.createElement(Typography, {
100
- className: "neeto-ui-text-gray-800 mb-0.5",
101
- style: "h2",
102
- weight: "semibold"
103
- }, title), isConnected && /*#__PURE__*/React__default.createElement("div", {
104
- className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1"
105
- }, /*#__PURE__*/React__default.createElement(Check, {
106
- size: 24
107
- }))), /*#__PURE__*/React__default.createElement(Typography, {
108
- style: "body1",
109
- weight: "normal",
110
- className: classnames("neeto-ui-text-gray-800", {
111
- "break-all": isConnected
112
- })
113
- }, description), helpDocUrl && /*#__PURE__*/React__default.createElement(Typography, {
114
- className: "neeto-ui-text-gray-800",
115
- style: "body2",
116
- weight: "normal"
117
- }, /*#__PURE__*/React__default.createElement(Trans, {
118
- i18nKey: "neetoIntegrations.common.helpDocUrl",
119
- components: {
120
- helpLink: /*#__PURE__*/React__default.createElement(Button, {
121
- href: helpDocUrl,
122
- style: "link",
123
- target: "_blank"
127
+ connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr,
128
+ _ref$buttonProps = _ref.buttonProps,
129
+ buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
130
+ _ref$secondaryButtonP = _ref.secondaryButtonProps,
131
+ secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
132
+ return /*#__PURE__*/jsxs(Fragment, {
133
+ children: [/*#__PURE__*/jsx("div", {
134
+ className: "mx-auto w-full max-w-3xl",
135
+ children: /*#__PURE__*/jsxs("div", {
136
+ className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6",
137
+ children: [Icon && /*#__PURE__*/jsx(Icon, {
138
+ className: "neeto-ui-text-gray-600",
139
+ size: 48
140
+ }), /*#__PURE__*/jsxs("div", {
141
+ className: "space-y-2",
142
+ children: [/*#__PURE__*/jsxs("div", {
143
+ className: "flex items-center space-x-4",
144
+ children: [/*#__PURE__*/jsx(Typography, {
145
+ className: "neeto-ui-text-gray-800 mb-0.5",
146
+ style: "h2",
147
+ weight: "semibold",
148
+ children: title
149
+ }), isConnected && /*#__PURE__*/jsx("div", {
150
+ className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1",
151
+ children: /*#__PURE__*/jsx(Check, {
152
+ size: 24
153
+ })
154
+ })]
155
+ }), /*#__PURE__*/jsx(Typography, {
156
+ style: "body1",
157
+ weight: "normal",
158
+ className: classnames("neeto-ui-text-gray-800", {
159
+ "break-all": isConnected
160
+ }),
161
+ children: description
162
+ }), helpDocUrl && /*#__PURE__*/jsx(Typography, {
163
+ className: "neeto-ui-text-gray-800",
164
+ style: "body2",
165
+ weight: "normal",
166
+ children: /*#__PURE__*/jsx(Trans, {
167
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
168
+ components: {
169
+ helpLink: /*#__PURE__*/jsx(Button, {
170
+ href: helpDocUrl,
171
+ style: "link",
172
+ target: "_blank"
173
+ })
174
+ },
175
+ values: {
176
+ integration: integrationName || humanize(integration)
177
+ }
178
+ })
179
+ })]
180
+ }), isConnected ? /*#__PURE__*/jsxs("div", {
181
+ className: "space-x-2",
182
+ children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread$8({
183
+ "data-cy": "manage-button",
184
+ href: manageUrl,
185
+ target: manageUrl ? "_blank" : "_self",
186
+ to: managePath,
187
+ label: t("neetoIntegrations.common.manageIntegration", {
188
+ integration: integrationName || humanize(integration)
189
+ })
190
+ }, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread$8({
191
+ "data-cy": "disconnect-button",
192
+ style: "secondary",
193
+ label: t("neetoIntegrations.common.disconnectIntegration", {
194
+ integration: integrationName || humanize(integration)
195
+ }),
196
+ onClick: function onClick() {
197
+ return setIsDisconnectAlertOpen(true);
198
+ }
199
+ }, secondaryButtonProps))]
200
+ }) : /*#__PURE__*/jsx("div", {
201
+ children: /*#__PURE__*/jsx(Tooltip, _objectSpread$8(_objectSpread$8({
202
+ disabled: !isConnectDisabled
203
+ }, connectTooltipProps), {}, {
204
+ children: /*#__PURE__*/jsx("span", {
205
+ children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread$8({
206
+ "data-cy": "connect-button",
207
+ disabled: isConnectDisabled,
208
+ href: connectUrl,
209
+ to: connectPath,
210
+ label: t("neetoIntegrations.common.connectIntegration", {
211
+ integration: integrationName || humanize(integration)
212
+ }),
213
+ onClick: onConnect
214
+ }, buttonProps))
215
+ })
216
+ }))
217
+ })]
124
218
  })
125
- },
126
- values: {
127
- integration: integrationName || humanize(integration)
128
- }
129
- }))), isConnected ? /*#__PURE__*/React__default.createElement("div", {
130
- className: "space-x-2"
131
- }, (managePath || manageUrl) && /*#__PURE__*/React__default.createElement(Button, {
132
- "data-cy": "manage-button",
133
- href: manageUrl,
134
- target: manageUrl ? "_blank" : "_self",
135
- to: managePath,
136
- label: t("neetoIntegrations.common.manageIntegration", {
137
- integration: integrationName || humanize(integration)
138
- })
139
- }), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
140
- "data-cy": "disconnect-button",
141
- style: "secondary",
142
- label: t("neetoIntegrations.common.disconnectIntegration", {
143
- integration: integrationName || humanize(integration)
144
- }),
145
- onClick: function onClick() {
146
- return setIsDisconnectAlertOpen(true);
147
- }
148
- })) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
149
- disabled: !isConnectDisabled
150
- }, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
151
- "data-cy": "connect-button",
152
- disabled: isConnectDisabled,
153
- href: connectUrl,
154
- to: connectPath,
155
- label: t("neetoIntegrations.common.connectIntegration", {
156
- integration: integrationName || humanize(integration)
157
- }),
158
- onClick: onConnect
159
- })))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
160
- isDisconnecting: isDisconnecting,
161
- onClose: onClose,
162
- onDisconnect: onDisconnect,
163
- isOpen: isDisconnectAlertOpen,
164
- message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
165
- title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
166
- }));
219
+ }), /*#__PURE__*/jsx(DisconnectAlert, {
220
+ isDisconnecting: isDisconnecting,
221
+ onClose: onClose,
222
+ onDisconnect: onDisconnect,
223
+ isOpen: isDisconnectAlertOpen,
224
+ message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
225
+ title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
226
+ })]
227
+ });
167
228
  });
168
229
 
169
- function _typeof(o) {
170
- "@babel/helpers - typeof";
171
-
172
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
173
- return typeof o;
174
- } : function (o) {
175
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
176
- }, _typeof(o);
177
- }
178
-
179
- function _toPrimitive(input, hint) {
180
- if (_typeof(input) !== "object" || input === null) return input;
181
- var prim = input[Symbol.toPrimitive];
182
- if (prim !== undefined) {
183
- var res = prim.call(input, hint || "default");
184
- if (_typeof(res) !== "object") return res;
185
- throw new TypeError("@@toPrimitive must return a primitive value.");
186
- }
187
- return (hint === "string" ? String : Number)(input);
188
- }
189
-
190
- function _toPropertyKey(arg) {
191
- var key = _toPrimitive(arg, "string");
192
- return _typeof(key) === "symbol" ? key : String(key);
193
- }
194
-
195
- function _defineProperty(obj, key, value) {
196
- key = _toPropertyKey(key);
197
- if (key in obj) {
198
- Object.defineProperty(obj, key, {
199
- value: value,
200
- enumerable: true,
201
- configurable: true,
202
- writable: true
203
- });
204
- } else {
205
- obj[key] = value;
206
- }
207
- return obj;
208
- }
209
-
210
230
  var INTEGRATIONS_ENGINE_BASE_URL = "/neeto_integrations";
211
231
  var TWILIO_CONFIGURATION_BASE_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/twilio/sms_configurations");
212
232
  var INTEGRATIONS_ENGINE_DAILY_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/daily");
@@ -237,23 +257,25 @@ var QUERY_KEYS = {
237
257
  ZOOM_DETAILS: "zoom-details"
238
258
  };
239
259
 
240
- function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
241
- function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
260
+ function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
261
+ function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
242
262
  var useCreateDaily = function useCreateDaily() {
243
263
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
244
- return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
245
- keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
264
+ return useMutationWithInvalidation(dailiesApi.create, _objectSpread$7({
265
+ keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
246
266
  }, options));
247
267
  };
248
268
  var useFetchDaily = function useFetchDaily() {
249
- return useQuery(QUERY_KEYS.DAILY_CO_DETAILS, dailiesApi.show, {
269
+ return useQuery({
270
+ queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],
271
+ queryFn: dailiesApi.show,
250
272
  staleTime: DEFAULT_STALE_TIME
251
273
  });
252
274
  };
253
275
  var useDestroyDaily = function useDestroyDaily(_ref) {
254
276
  var onSuccess = _ref.onSuccess;
255
277
  return useMutationWithInvalidation(dailiesApi.destroy, {
256
- keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS],
278
+ keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],
257
279
  onSuccess: onSuccess
258
280
  });
259
281
  };
@@ -343,15 +365,19 @@ function _objectWithoutProperties(source, excluded) {
343
365
  }
344
366
 
345
367
  var _excluded = ["className", "children"];
368
+ function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
369
+ function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
346
370
  var ExternalLink = function ExternalLink(_ref) {
347
371
  var _ref$className = _ref.className,
348
372
  className = _ref$className === void 0 ? "" : _ref$className,
349
373
  _ref$children = _ref.children,
350
374
  children = _ref$children === void 0 ? null : _ref$children,
351
375
  props = _objectWithoutProperties(_ref, _excluded);
352
- return /*#__PURE__*/React__default.createElement("a", _extends$1({
376
+ return /*#__PURE__*/jsx("a", _objectSpread$6(_objectSpread$6({
353
377
  className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
354
- }, props), children);
378
+ }, props), {}, {
379
+ children: children
380
+ }));
355
381
  };
356
382
  var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
357
383
 
@@ -371,6 +397,7 @@ var Form = function Form(_ref) {
371
397
  breadcrumbs = _ref.breadcrumbs;
372
398
  var _useTranslation = useTranslation(),
373
399
  t = _useTranslation.t;
400
+ var history = useHistory();
374
401
  var _useState = useState(false),
375
402
  _useState2 = _slicedToArray(_useState, 2),
376
403
  isDemoModalOpen = _useState2[0],
@@ -381,75 +408,83 @@ var Form = function Form(_ref) {
381
408
  }
382
409
  }),
383
410
  createDaily = _useCreateDaily.mutate,
384
- isConnecting = _useCreateDaily.isLoading;
411
+ isConnecting = _useCreateDaily.isPending;
385
412
  var handleSubmit = function handleSubmit(payload) {
386
413
  return createDaily(payload);
387
414
  };
388
415
  if (isConnecting) {
389
- return /*#__PURE__*/React__default.createElement(PageLoader, null);
416
+ return /*#__PURE__*/jsx(PageLoader, {});
390
417
  }
391
- return /*#__PURE__*/React__default.createElement(Container, {
392
- isHeaderFixed: true
393
- }, /*#__PURE__*/React__default.createElement(Header, {
394
- breadcrumbs: breadcrumbs,
395
- title: /*#__PURE__*/React__default.createElement("span", {
396
- className: "flex items-center gap-2"
397
- }, t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/React__default.createElement(HelpPopover, {
398
- title: t("neetoIntegrations.daily.connect.title"),
399
- description: /*#__PURE__*/React__default.createElement(Trans, {
400
- i18nKey: "neetoIntegrations.daily.helpDoc",
401
- components: {
402
- externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
403
- "data-cy": "api-key-help-doc-link",
404
- href: helpDocUrl,
405
- rel: "noreferrer",
406
- target: "_blank"
407
- })
408
- }
409
- }),
410
- helpLinkProps: {
411
- label: /*#__PURE__*/React__default.createElement(Button, {
412
- className: "mt-8",
413
- label: t("neetoIntegrations.daily.walkthroughText"),
414
- style: "link",
415
- onClick: function onClick() {
416
- return setIsDemoModalOpen(true);
418
+ return /*#__PURE__*/jsxs(Container, {
419
+ isHeaderFixed: true,
420
+ children: [/*#__PURE__*/jsx(Header, {
421
+ breadcrumbs: breadcrumbs,
422
+ title: /*#__PURE__*/jsxs("span", {
423
+ className: "flex items-center gap-2",
424
+ children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
425
+ title: t("neetoIntegrations.daily.connect.title"),
426
+ description: /*#__PURE__*/jsx(Trans, {
427
+ i18nKey: "neetoIntegrations.daily.helpDoc",
428
+ components: {
429
+ externalLink: /*#__PURE__*/jsx(ExternalLink$1, {
430
+ "data-cy": "api-key-help-doc-link",
431
+ href: helpDocUrl,
432
+ rel: "noreferrer",
433
+ target: "_blank"
434
+ })
435
+ }
436
+ }),
437
+ helpLinkProps: {
438
+ label: /*#__PURE__*/jsx(Button, {
439
+ className: "mt-8",
440
+ label: t("neetoIntegrations.daily.walkthroughText"),
441
+ style: "link",
442
+ onClick: function onClick() {
443
+ return setIsDemoModalOpen(true);
444
+ }
445
+ })
417
446
  }
447
+ })]
448
+ })
449
+ }), /*#__PURE__*/jsxs("div", {
450
+ className: "mx-auto w-full max-w-md",
451
+ children: [/*#__PURE__*/jsx(FormikForm, {
452
+ formikProps: {
453
+ initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
454
+ validationSchema: DAILY_CO_VALIDATION_SCHEMA,
455
+ onSubmit: handleSubmit
456
+ },
457
+ children: /*#__PURE__*/jsxs("div", {
458
+ className: "mt-14 w-full space-y-2",
459
+ children: [/*#__PURE__*/jsx("div", {
460
+ className: "block min-h-20",
461
+ children: /*#__PURE__*/jsx(Input, {
462
+ autoFocus: true,
463
+ required: true,
464
+ label: t("neetoIntegrations.daily.apiKey"),
465
+ name: "apiKey"
466
+ })
467
+ }), /*#__PURE__*/jsx(ActionBlock, {
468
+ cancelButtonProps: {
469
+ onClick: function onClick() {
470
+ return history.goBack();
471
+ }
472
+ },
473
+ isSubmitting: isConnecting,
474
+ submitButtonProps: {
475
+ label: t("neetoIntegrations.common.connect")
476
+ }
477
+ })]
418
478
  })
419
- }
420
- }))
421
- }), /*#__PURE__*/React__default.createElement("div", {
422
- className: "mx-auto w-full max-w-md"
423
- }, /*#__PURE__*/React__default.createElement(Form$2, {
424
- formikProps: {
425
- initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
426
- validationSchema: DAILY_CO_VALIDATION_SCHEMA,
427
- onSubmit: handleSubmit
428
- }
429
- }, function (_ref2) {
430
- var dirty = _ref2.dirty;
431
- return /*#__PURE__*/React__default.createElement("div", {
432
- className: "mt-14 w-full space-y-5"
433
- }, /*#__PURE__*/React__default.createElement("div", {
434
- className: "block min-h-20"
435
- }, /*#__PURE__*/React__default.createElement(Input, {
436
- autoFocus: true,
437
- required: true,
438
- label: t("neetoIntegrations.daily.apiKey"),
439
- name: "apiKey"
440
- })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
441
- disabled: isConnecting || !dirty,
442
- label: t("neetoIntegrations.common.connect"),
443
- loading: isConnecting,
444
- type: "submit"
445
- })));
446
- }), /*#__PURE__*/React__default.createElement(WalkthroughModal, {
447
- videoUrl: videoUrl,
448
- isOpen: isDemoModalOpen,
449
- onClose: function onClose() {
450
- return setIsDemoModalOpen(false);
451
- }
452
- })));
479
+ }), /*#__PURE__*/jsx(WalkthroughModal, {
480
+ videoUrl: videoUrl,
481
+ isOpen: isDemoModalOpen,
482
+ onClose: function onClose() {
483
+ return setIsDemoModalOpen(false);
484
+ }
485
+ })]
486
+ })]
487
+ });
453
488
  };
454
489
  var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
455
490
 
@@ -478,35 +513,35 @@ var Manage = function Manage(_ref) {
478
513
  }
479
514
  }),
480
515
  destroyIntegration = _useDestroyDaily.mutate,
481
- isDisconnecting = _useDestroyDaily.isLoading;
516
+ isDisconnecting = _useDestroyDaily.isPending;
482
517
  var isConnected = isPresent(apiKey);
483
518
  var handleDisconnect = function handleDisconnect() {
484
519
  return destroyIntegration("daily");
485
520
  };
486
- if (isFetching || isDisconnecting) return /*#__PURE__*/React__default.createElement(PageLoader, null);
487
- return /*#__PURE__*/React__default.createElement(Manage$1, {
521
+ if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
522
+ return /*#__PURE__*/jsx(Manage$1, {
488
523
  isConnected: isConnected,
489
524
  isDisconnectAlertOpen: isDisconnectAlertOpen,
490
525
  isDisconnecting: isDisconnecting,
491
526
  setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
492
- Icon: Daily$1,
527
+ Icon: DailyIcon,
493
528
  connectPath: buildUrl(window.location.pathname, {
494
529
  connect: true
495
530
  }),
496
531
  integration: "daily",
497
- description: isConnected ? /*#__PURE__*/React__default.createElement(Trans, {
532
+ description: isConnected ? /*#__PURE__*/jsx(Trans, {
498
533
  i18nKey: "neetoIntegrations.daily.yourApiKey",
499
534
  values: {
500
535
  apiKey: apiKey
501
536
  },
502
537
  components: {
503
- wrapper: /*#__PURE__*/React__default.createElement("div", {
538
+ wrapper: /*#__PURE__*/jsx("div", {
504
539
  className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
505
540
  }),
506
- span: /*#__PURE__*/React__default.createElement("span", {
541
+ span: /*#__PURE__*/jsx("span", {
507
542
  className: "break-all text-sm"
508
543
  }),
509
- copy: /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
544
+ copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
510
545
  className: "flex-shrink-0 self-start",
511
546
  style: "text",
512
547
  value: apiKey
@@ -545,12 +580,12 @@ var Daily = function Daily(_ref) {
545
580
  _ref2$apiKey = _ref2.apiKey,
546
581
  apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
547
582
  if (isPresent(apiKey) && !isOnboarding || !connect) {
548
- return /*#__PURE__*/React__default.createElement(Manage, {
583
+ return /*#__PURE__*/jsx(Manage, {
549
584
  description: description,
550
585
  onDisconnect: onDisconnect
551
586
  });
552
587
  }
553
- return /*#__PURE__*/React__default.createElement(Form$1, {
588
+ return /*#__PURE__*/jsx(Form$1, {
554
589
  helpDocUrl: helpDocUrl,
555
590
  onConnect: onConnect,
556
591
  videoUrl: videoUrl
@@ -590,8 +625,8 @@ var STEPS = {
590
625
  finish: t$1("neetoIntegrations.common.finish")
591
626
  };
592
627
 
593
- function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
594
- function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
628
+ function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
629
+ function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
595
630
  var GoogleCalendar = function GoogleCalendar(_ref) {
596
631
  var permissionImage = _ref.permissionImage,
597
632
  fetchAuthorizationUrl = _ref.fetchAuthorizationUrl,
@@ -609,56 +644,62 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
609
644
  useEffect(function () {
610
645
  setSteps(function () {
611
646
  var stepsClone = _toConsumableArray(steps);
612
- stepsClone[0] = _objectSpread$3(_objectSpread$3({}, steps[0]), {}, {
647
+ stepsClone[0] = _objectSpread$5(_objectSpread$5({}, steps[0]), {}, {
613
648
  isActive: activeTab === STEPS.connect,
614
649
  isCompleted: activeTab !== STEPS.connect
615
650
  });
616
- stepsClone[1] = _objectSpread$3(_objectSpread$3({}, steps[1]), {}, {
651
+ stepsClone[1] = _objectSpread$5(_objectSpread$5({}, steps[1]), {}, {
617
652
  isActive: activeTab === STEPS.finish,
618
653
  isCompleted: activeTab === STEPS.finish
619
654
  });
620
655
  return stepsClone;
621
656
  });
622
657
  }, [activeTab]);
623
- return /*#__PURE__*/React__default.createElement(Modal, {
658
+ return /*#__PURE__*/jsxs(Modal, {
624
659
  steps: steps,
625
660
  isOpen: true,
626
- onClose: handleClose
627
- }, activeTab === STEPS.connect && /*#__PURE__*/React__default.createElement("div", {
628
- className: "mx-auto w-full max-w-3xl"
629
- }, /*#__PURE__*/React__default.createElement(GoogleCalendar$1, {
630
- size: 48
631
- }), /*#__PURE__*/React__default.createElement(Typography, {
632
- className: "mb-4 mt-2",
633
- style: "h2"
634
- }, t("neetoIntegrations.google.connect.title")), /*#__PURE__*/React__default.createElement("div", {
635
- className: "flex w-full flex-col items-start"
636
- }, /*#__PURE__*/React__default.createElement(Callout, {
637
- className: "block leading-5"
638
- }, /*#__PURE__*/React__default.createElement(Trans, {
639
- components: {
640
- bold: /*#__PURE__*/React__default.createElement("strong", null)
641
- },
642
- i18nKey: "neetoIntegrations.google.connect.reminderToAcceptPermissions",
643
- values: {
644
- selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
645
- }
646
- })), permissionImage && /*#__PURE__*/React__default.createElement("div", {
647
- className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border"
648
- }, /*#__PURE__*/React__default.createElement("img", {
649
- src: permissionImage
650
- }))), /*#__PURE__*/React__default.createElement(Button, {
651
- icon: Google,
652
- label: t("neetoIntegrations.google.connect.signIn"),
653
- onClick: fetchAuthorizationUrl
654
- })), activeTab === STEPS.finish && /*#__PURE__*/React__default.createElement(Finish, {
655
- title: t("neetoIntegrations.google.finish.title"),
656
- onClick: handleRedirect
657
- }));
661
+ onClose: handleClose,
662
+ children: [activeTab === STEPS.connect && /*#__PURE__*/jsxs("div", {
663
+ className: "mx-auto w-full max-w-3xl",
664
+ children: [/*#__PURE__*/jsx(GoogleCalendarIcon, {
665
+ size: 48
666
+ }), /*#__PURE__*/jsx(Typography, {
667
+ className: "mb-4 mt-2",
668
+ style: "h2",
669
+ children: t("neetoIntegrations.google.connect.title")
670
+ }), /*#__PURE__*/jsxs("div", {
671
+ className: "flex w-full flex-col items-start",
672
+ children: [/*#__PURE__*/jsx(Callout, {
673
+ className: "block leading-5",
674
+ children: /*#__PURE__*/jsx(Trans, {
675
+ components: {
676
+ bold: /*#__PURE__*/jsx("strong", {})
677
+ },
678
+ i18nKey: "neetoIntegrations.google.connect.reminderToAcceptPermissions",
679
+ values: {
680
+ selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
681
+ }
682
+ })
683
+ }), permissionImage && /*#__PURE__*/jsx("div", {
684
+ className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border",
685
+ children: /*#__PURE__*/jsx("img", {
686
+ src: permissionImage
687
+ })
688
+ })]
689
+ }), /*#__PURE__*/jsx(Button, {
690
+ icon: Google,
691
+ label: t("neetoIntegrations.google.connect.signIn"),
692
+ onClick: fetchAuthorizationUrl
693
+ })]
694
+ }), activeTab === STEPS.finish && /*#__PURE__*/jsx(Finish, {
695
+ title: t("neetoIntegrations.google.finish.title"),
696
+ onClick: handleRedirect
697
+ })]
698
+ });
658
699
  };
659
700
 
660
- function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
661
- function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
701
+ function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
702
+ function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
662
703
  var ConfigurationForm = function ConfigurationForm(_ref) {
663
704
  var _errors$twilioPhoneNu;
664
705
  var phoneNumberOptions = _ref.phoneNumberOptions,
@@ -680,42 +721,46 @@ var ConfigurationForm = function ConfigurationForm(_ref) {
680
721
  useEffect(function () {
681
722
  selectedPhoneNumber && setFieldValue("twilioPhoneNumber", selectedPhoneNumber);
682
723
  }, [selectedPhoneNumber, initialValues]);
683
- return /*#__PURE__*/React__default.createElement("div", {
684
- className: "flex w-full flex-col gap-4"
685
- }, /*#__PURE__*/React__default.createElement("div", {
686
- className: "flex w-full"
687
- }, /*#__PURE__*/React__default.createElement(Input, {
688
- required: true,
689
- autoFocus: !isUsingOverlay,
690
- "data-testid": "integrations-twilio-sid",
691
- label: t("neetoIntegrations.twilio.sid"),
692
- name: "twilioSid",
693
- ref: initialFocusRef
694
- })), /*#__PURE__*/React__default.createElement("div", {
695
- className: "flex w-full"
696
- }, /*#__PURE__*/React__default.createElement(Input, {
697
- required: true,
698
- "data-testid": "integrations-twilio-auth-token",
699
- label: t("neetoIntegrations.twilio.authToken"),
700
- name: "twilioAuthToken"
701
- })), phoneNumberOptions && /*#__PURE__*/React__default.createElement("div", {
702
- className: "flex w-full"
703
- }, /*#__PURE__*/React__default.createElement(Select, {
704
- error: (_errors$twilioPhoneNu = errors.twilioPhoneNumber) === null || _errors$twilioPhoneNu === void 0 ? void 0 : _errors$twilioPhoneNu.value,
705
- label: t("neetoIntegrations.common.phNo"),
706
- name: "twilioPhoneNumber",
707
- options: phoneNumberOptions,
708
- size: "large",
709
- onChange: function onChange(selected) {
710
- return setValues(_objectSpread$2(_objectSpread$2({}, values), {}, {
711
- twilioPhoneNumber: selected
712
- }));
713
- }
714
- })));
724
+ return /*#__PURE__*/jsxs("div", {
725
+ className: "flex w-full flex-col gap-y-4",
726
+ children: [/*#__PURE__*/jsx("div", {
727
+ className: "flex w-full",
728
+ children: /*#__PURE__*/jsx(Input, {
729
+ required: true,
730
+ autoFocus: !isUsingOverlay,
731
+ "data-testid": "integrations-twilio-sid",
732
+ label: t("neetoIntegrations.twilio.sid"),
733
+ name: "twilioSid",
734
+ ref: initialFocusRef
735
+ })
736
+ }), /*#__PURE__*/jsx("div", {
737
+ className: "flex w-full",
738
+ children: /*#__PURE__*/jsx(Input, {
739
+ required: true,
740
+ "data-testid": "integrations-twilio-auth-token",
741
+ label: t("neetoIntegrations.twilio.authToken"),
742
+ name: "twilioAuthToken"
743
+ })
744
+ }), phoneNumberOptions && /*#__PURE__*/jsx("div", {
745
+ className: "flex w-full",
746
+ children: /*#__PURE__*/jsx(Select, {
747
+ error: (_errors$twilioPhoneNu = errors.twilioPhoneNumber) === null || _errors$twilioPhoneNu === void 0 ? void 0 : _errors$twilioPhoneNu.value,
748
+ label: t("neetoIntegrations.common.phNo"),
749
+ name: "twilioPhoneNumber",
750
+ options: phoneNumberOptions,
751
+ size: "large",
752
+ onChange: function onChange(selected) {
753
+ return setValues(_objectSpread$4(_objectSpread$4({}, values), {}, {
754
+ twilioPhoneNumber: selected
755
+ }));
756
+ }
757
+ })
758
+ })]
759
+ });
715
760
  };
716
761
 
717
- function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
718
- function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
762
+ function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
763
+ function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
719
764
  var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrable) {
720
765
  return axios.get(TWILIO_CONFIGURATION_BASE_URL, {
721
766
  params: integrable
@@ -730,7 +775,7 @@ var getTwilioPhoneNumbers = function getTwilioPhoneNumbers(data) {
730
775
  });
731
776
  };
732
777
  var createTwilioConfiguration = function createTwilioConfiguration(payload, integrable) {
733
- return axios.post(TWILIO_CONFIGURATION_BASE_URL, _objectSpread$1(_objectSpread$1({}, payload), integrable));
778
+ return axios.post(TWILIO_CONFIGURATION_BASE_URL, _objectSpread$3(_objectSpread$3({}, payload), integrable));
734
779
  };
735
780
  var twilioApi = {
736
781
  fetchTwilioSmsConfiguration: fetchTwilioSmsConfiguration,
@@ -741,9 +786,11 @@ var twilioApi = {
741
786
 
742
787
  var useFetchTwilioSmsConfiguration = function useFetchTwilioSmsConfiguration(_ref) {
743
788
  var integrable = _ref.integrable;
744
- return useQuery([QUERY_KEYS.TWILIO_SMS_CONFIGURATION, integrable === null || integrable === void 0 ? void 0 : integrable.integrableType, integrable === null || integrable === void 0 ? void 0 : integrable.integrableId], function () {
745
- return twilioApi.fetchTwilioSmsConfiguration(integrable);
746
- }, {
789
+ return useQuery({
790
+ queryKey: [QUERY_KEYS.TWILIO_SMS_CONFIGURATION, integrable === null || integrable === void 0 ? void 0 : integrable.integrableType, integrable === null || integrable === void 0 ? void 0 : integrable.integrableId],
791
+ queryFn: function queryFn() {
792
+ return twilioApi.fetchTwilioSmsConfiguration(integrable);
793
+ },
747
794
  select: function select(response) {
748
795
  var _smsConfiguration$twi, _smsConfiguration$twi2, _smsConfiguration$twi3;
749
796
  var smsConfiguration = response.smsConfiguration;
@@ -759,11 +806,13 @@ var useFetchTwilioPhoneNumbers = function useFetchTwilioPhoneNumbers(_ref2) {
759
806
  var _formRef$current, _formRef$current2;
760
807
  var credentials = _ref2.credentials,
761
808
  formRef = _ref2.formRef;
762
- return useQuery([QUERY_KEYS.TWILIO_PHONE_NUMBERS, {
763
- credentials: credentials
764
- }], function () {
765
- return twilioApi.getTwilioPhoneNumbers(keysToSnakeCase(credentials));
766
- }, {
809
+ return useQuery({
810
+ queryKey: [QUERY_KEYS.TWILIO_PHONE_NUMBERS, {
811
+ credentials: credentials
812
+ }],
813
+ queryFn: function queryFn() {
814
+ return twilioApi.getTwilioPhoneNumbers(keysToSnakeCase(credentials));
815
+ },
767
816
  enabled: !!(credentials !== null && credentials !== void 0 && credentials.twilio_sid) || !!(credentials !== null && credentials !== void 0 && credentials.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current = formRef.current) !== null && _formRef$current !== void 0 && (_formRef$current = _formRef$current.values) !== null && _formRef$current !== void 0 && _formRef$current.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current2 = formRef.current) !== null && _formRef$current2 !== void 0 && (_formRef$current2 = _formRef$current2.values) !== null && _formRef$current2 !== void 0 && _formRef$current2.twilioAuthToken),
768
817
  select: prop("phoneNumbers"),
769
818
  retry: false
@@ -774,7 +823,7 @@ var useCreateTwilioConfiguration = function useCreateTwilioConfiguration(_ref3)
774
823
  return useMutationWithInvalidation(function (payload) {
775
824
  return twilioApi.createTwilioConfiguration(payload, integrable);
776
825
  }, {
777
- keysToInvalidate: [QUERY_KEYS.TWILIO_SMS_CONFIGURATION, integrable === null || integrable === void 0 ? void 0 : integrable.integrableType, integrable === null || integrable === void 0 ? void 0 : integrable.integrableId]
826
+ keysToInvalidate: [[QUERY_KEYS.TWILIO_SMS_CONFIGURATION, integrable === null || integrable === void 0 ? void 0 : integrable.integrableType, integrable === null || integrable === void 0 ? void 0 : integrable.integrableId]]
778
827
  });
779
828
  };
780
829
 
@@ -805,7 +854,7 @@ var useTwilio = function useTwilio(_ref) {
805
854
  integrable: integrable
806
855
  }),
807
856
  saveConfiguration = _useCreateTwilioConfi.mutate,
808
- isSubmitting = _useCreateTwilioConfi.isLoading;
857
+ isSubmitting = _useCreateTwilioConfi.isPending;
809
858
  var handleSubmit = function handleSubmit(values) {
810
859
  var _values$twilioPhoneNu;
811
860
  var payload = {
@@ -852,8 +901,8 @@ var buildPhoneNumberOptions = function buildPhoneNumberOptions(phoneNumbers) {
852
901
  });
853
902
  };
854
903
 
855
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
856
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
904
+ function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
905
+ function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
857
906
  var Twilio = function Twilio(_ref) {
858
907
  var _ref$integrable = _ref.integrable,
859
908
  integrable = _ref$integrable === void 0 ? null : _ref$integrable,
@@ -882,11 +931,11 @@ var Twilio = function Twilio(_ref) {
882
931
  }, phoneNumberOptions);
883
932
  var isLoading = isPhoneNumbersLoading || isConfigurationLoading;
884
933
  var isSubmitDisabled = function isSubmitDisabled(values) {
885
- return equals(_objectSpread(_objectSpread({}, configuration), {}, {
934
+ return equals(_objectSpread$2(_objectSpread$2({}, configuration), {}, {
886
935
  twilioPhoneNumber: selectedPhoneNumber
887
936
  }), values) || isLoading;
888
937
  };
889
- return /*#__PURE__*/React__default.createElement(Form$2, {
938
+ return /*#__PURE__*/jsx(FormikForm, {
890
939
  className: "mx-auto flex w-full max-w-md flex-col p-5",
891
940
  formikProps: {
892
941
  enableReinitialize: true,
@@ -894,27 +943,30 @@ var Twilio = function Twilio(_ref) {
894
943
  initialValues: configuration,
895
944
  innerRef: formRef,
896
945
  onSubmit: handleSubmit
946
+ },
947
+ children: function children(formikProps) {
948
+ return /*#__PURE__*/jsxs(Fragment, {
949
+ children: [/*#__PURE__*/jsx(ConfigurationForm, {
950
+ formikProps: formikProps,
951
+ initialFocusRef: initialFocusRef,
952
+ phoneNumberOptions: phoneNumberOptions,
953
+ selectedPhoneNumber: selectedPhoneNumber
954
+ }), /*#__PURE__*/jsx("div", {
955
+ className: "mt-8",
956
+ children: /*#__PURE__*/jsx(ActionBlock, {
957
+ isSubmitting: isSubmitting,
958
+ cancelButtonProps: {
959
+ onClick: onClose
960
+ },
961
+ submitButtonProps: {
962
+ label: phoneNumberOptions ? t("neetoIntegrations.common.saveChanges") : t("neetoIntegrations.common.verify"),
963
+ disabled: isSubmitDisabled(formikProps.values) || isSubmitting,
964
+ loading: isSubmitting || isPhoneNumbersLoading && !(configuration !== null && configuration !== void 0 && configuration.twilioAuthToken)
965
+ }
966
+ })
967
+ })]
968
+ });
897
969
  }
898
- }, function (formikProps) {
899
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ConfigurationForm, {
900
- formikProps: formikProps,
901
- initialFocusRef: initialFocusRef,
902
- phoneNumberOptions: phoneNumberOptions,
903
- selectedPhoneNumber: selectedPhoneNumber
904
- }), /*#__PURE__*/React__default.createElement("div", {
905
- className: "mt-4 flex items-center gap-x-2"
906
- }, /*#__PURE__*/React__default.createElement(ActionBlock, {
907
- cancelButtonProps: {
908
- onClick: onClose,
909
- disabled: false
910
- },
911
- className: "space-x-3",
912
- submitButtonProps: {
913
- label: phoneNumberOptions ? t("neetoIntegrations.common.saveChanges") : t("neetoIntegrations.common.verify"),
914
- disabled: isSubmitDisabled(formikProps.values),
915
- loading: isSubmitting || isPhoneNumbersLoading && !(configuration !== null && configuration !== void 0 && configuration.twilioAuthToken)
916
- }
917
- })));
918
970
  });
919
971
  };
920
972
 
@@ -935,14 +987,16 @@ var zoomApi = {
935
987
  };
936
988
 
937
989
  var useShowZoom = function useShowZoom() {
938
- return useQuery(QUERY_KEYS.ZOOM_DETAILS, zoomApi.show, {
990
+ return useQuery({
991
+ queryKey: [QUERY_KEYS.ZOOM_DETAILS],
992
+ queryFn: zoomApi.show,
939
993
  staleTime: DEFAULT_STALE_TIME
940
994
  });
941
995
  };
942
996
  var useDestroyZoom = function useDestroyZoom(_ref) {
943
997
  var _onSuccess = _ref.onSuccess;
944
998
  return useMutationWithInvalidation(zoomApi.destroy, {
945
- keysToInvalidate: [QUERY_KEYS.ZOOM_DETAILS],
999
+ keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],
946
1000
  onSuccess: function onSuccess() {
947
1001
  return _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess();
948
1002
  }
@@ -977,23 +1031,23 @@ var Zoom = function Zoom(_ref) {
977
1031
  }
978
1032
  }),
979
1033
  destroyIntegration = _useDestroyZoom.mutate,
980
- isDisconnecting = _useDestroyZoom.isLoading;
1034
+ isDisconnecting = _useDestroyZoom.isPending;
981
1035
  var isConnected = isPresent(email);
982
1036
  var handleDisconnect = function handleDisconnect() {
983
1037
  return destroyIntegration("zoom");
984
1038
  };
985
- if (isLoading) return /*#__PURE__*/React__default.createElement(PageLoader, null);
986
- return /*#__PURE__*/React__default.createElement(Manage$1, {
1039
+ if (isLoading) return /*#__PURE__*/jsx(PageLoader, {});
1040
+ return /*#__PURE__*/jsx(Manage$1, {
987
1041
  connectUrl: connectUrl,
988
1042
  isConnected: isConnected,
989
1043
  isDisconnectAlertOpen: isDisconnectAlertOpen,
990
1044
  isDisconnecting: isDisconnecting,
991
1045
  setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
992
- Icon: Zoom$1,
1046
+ Icon: ZoomIcon,
993
1047
  integration: "zoom",
994
- description: isConnected ? /*#__PURE__*/React__default.createElement(Trans, {
1048
+ description: isConnected ? /*#__PURE__*/jsx(Trans, {
995
1049
  components: {
996
- underline: /*#__PURE__*/React__default.createElement("u", {
1050
+ underline: /*#__PURE__*/jsx("u", {
997
1051
  className: "font-medium"
998
1052
  })
999
1053
  },
@@ -1018,42 +1072,47 @@ var Stepper = function Stepper(_ref) {
1018
1072
  var isActiveOrCompleted = function isActiveOrCompleted(activeStatus, completedStatus) {
1019
1073
  return activeStatus || completedStatus;
1020
1074
  };
1021
- return /*#__PURE__*/React__default.createElement("ul", {
1022
- className: "flex gap-4"
1023
- }, steps === null || steps === void 0 ? void 0 : steps.map(function (_ref2) {
1024
- var step = _ref2.step,
1025
- label = _ref2.label,
1026
- isActive = _ref2.isActive,
1027
- isCompleted = _ref2.isCompleted;
1028
- return /*#__PURE__*/React__default.createElement("li", {
1029
- className: "flex items-center gap-4",
1030
- key: step
1031
- }, step !== "1" && /*#__PURE__*/React__default.createElement("div", {
1032
- className: classnames("w-10 border-b", {
1033
- "neeto-ui-border-gray-800": isActiveOrCompleted(isActive, isCompleted),
1034
- "neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
1035
- })
1036
- }), /*#__PURE__*/React__default.createElement("div", {
1037
- className: "flex items-center gap-2"
1038
- }, /*#__PURE__*/React__default.createElement("div", {
1039
- className: classnames("neeto-ui-rounded-full neeto-ui-gray-600 flex h-6 w-6 items-center justify-center border", {
1040
- "neeto-ui-bg-success-600 neeto-ui-border-success-600 neeto-ui-text-white": isActive,
1041
- "neeto-ui-bg-primary-600 neeto-ui-border-primary-600 neeto-ui-text-white": isCompleted,
1042
- "neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
1043
- })
1044
- }, /*#__PURE__*/React__default.createElement(Typography, {
1045
- component: "span",
1046
- style: "body2",
1047
- weight: "normal"
1048
- }, step)), /*#__PURE__*/React__default.createElement(Typography, {
1049
- style: "body2",
1050
- weight: "normal",
1051
- className: classnames({
1052
- "neeto-ui-text-gray-800": isActiveOrCompleted(isActive, isCompleted),
1053
- "neeto-ui-text-gray-600": !isActiveOrCompleted(isActive, isCompleted)
1054
- })
1055
- }, label)));
1056
- }));
1075
+ return /*#__PURE__*/jsx("ul", {
1076
+ className: "flex gap-4",
1077
+ children: steps === null || steps === void 0 ? void 0 : steps.map(function (_ref2) {
1078
+ var step = _ref2.step,
1079
+ label = _ref2.label,
1080
+ isActive = _ref2.isActive,
1081
+ isCompleted = _ref2.isCompleted;
1082
+ return /*#__PURE__*/jsxs("li", {
1083
+ className: "flex items-center gap-4",
1084
+ children: [step !== "1" && /*#__PURE__*/jsx("div", {
1085
+ className: classnames("w-10 border-b", {
1086
+ "neeto-ui-border-gray-800": isActiveOrCompleted(isActive, isCompleted),
1087
+ "neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
1088
+ })
1089
+ }), /*#__PURE__*/jsxs("div", {
1090
+ className: "flex items-center gap-2",
1091
+ children: [/*#__PURE__*/jsx("div", {
1092
+ className: classnames("neeto-ui-rounded-full neeto-ui-gray-600 flex h-6 w-6 items-center justify-center border", {
1093
+ "neeto-ui-bg-success-600 neeto-ui-border-success-600 neeto-ui-text-white": isActive,
1094
+ "neeto-ui-bg-primary-600 neeto-ui-border-primary-600 neeto-ui-text-white": isCompleted,
1095
+ "neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
1096
+ }),
1097
+ children: /*#__PURE__*/jsx(Typography, {
1098
+ component: "span",
1099
+ style: "body2",
1100
+ weight: "normal",
1101
+ children: step
1102
+ })
1103
+ }), /*#__PURE__*/jsx(Typography, {
1104
+ style: "body2",
1105
+ weight: "normal",
1106
+ className: classnames({
1107
+ "neeto-ui-text-gray-800": isActiveOrCompleted(isActive, isCompleted),
1108
+ "neeto-ui-text-gray-600": !isActiveOrCompleted(isActive, isCompleted)
1109
+ }),
1110
+ children: label
1111
+ })]
1112
+ })]
1113
+ }, step);
1114
+ })
1115
+ });
1057
1116
  };
1058
1117
 
1059
1118
  var Modal = function Modal(_ref) {
@@ -1064,18 +1123,23 @@ var Modal = function Modal(_ref) {
1064
1123
  _ref$steps = _ref.steps,
1065
1124
  steps = _ref$steps === void 0 ? {} : _ref$steps,
1066
1125
  children = _ref.children;
1067
- return /*#__PURE__*/React__default.createElement(Modal$1, {
1126
+ return /*#__PURE__*/jsxs(NeetoUIModal, {
1068
1127
  isOpen: isOpen,
1069
1128
  onClose: onClose,
1070
1129
  className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-transform-none w-screen overflow-y-auto",
1071
- size: "fullScreen"
1072
- }, /*#__PURE__*/React__default.createElement(Modal$1.Header, null, /*#__PURE__*/React__default.createElement(Stepper, {
1073
- steps: steps
1074
- })), /*#__PURE__*/React__default.createElement(Modal$1.Body, {
1075
- className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow"
1076
- }, /*#__PURE__*/React__default.createElement("div", {
1077
- className: "neeto-ui-w-full py-10"
1078
- }, children)));
1130
+ size: "fullScreen",
1131
+ children: [/*#__PURE__*/jsx(NeetoUIModal.Header, {
1132
+ children: /*#__PURE__*/jsx(Stepper, {
1133
+ steps: steps
1134
+ })
1135
+ }), /*#__PURE__*/jsx(NeetoUIModal.Body, {
1136
+ className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow",
1137
+ children: /*#__PURE__*/jsx("div", {
1138
+ className: "neeto-ui-w-full py-10",
1139
+ children: children
1140
+ })
1141
+ })]
1142
+ });
1079
1143
  };
1080
1144
 
1081
1145
  function getDefaultExportFromCjs (x) {
@@ -1160,6 +1224,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
1160
1224
  var propTypesExports = propTypes.exports;
1161
1225
  var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1162
1226
 
1227
+ function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1228
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1163
1229
  var Connect = withT(function (_ref) {
1164
1230
  var t = _ref.t,
1165
1231
  Icon = _ref.Icon,
@@ -1167,32 +1233,61 @@ var Connect = withT(function (_ref) {
1167
1233
  title = _ref$title === void 0 ? "" : _ref$title,
1168
1234
  _ref$description = _ref.description,
1169
1235
  description = _ref$description === void 0 ? "" : _ref$description,
1236
+ _ref$integration = _ref.integration,
1237
+ integration = _ref$integration === void 0 ? "" : _ref$integration,
1238
+ _ref$integrationName = _ref.integrationName,
1239
+ integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
1240
+ _ref$helpDocUrl = _ref.helpDocUrl,
1241
+ helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
1170
1242
  _ref$buttonProps = _ref.buttonProps,
1171
1243
  buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
1172
1244
  _ref$onConnect = _ref.onConnect,
1173
1245
  onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
1174
1246
  children = _ref.children,
1175
1247
  secondaryButtonProps = _ref.secondaryButtonProps;
1176
- return /*#__PURE__*/React__default.createElement("div", {
1177
- className: "mx-auto w-full max-w-3xl"
1178
- }, /*#__PURE__*/React__default.createElement("div", {
1179
- className: "mb-6 flex flex-col gap-y-2"
1180
- }, /*#__PURE__*/React__default.createElement(Icon, {
1181
- size: 48
1182
- }), /*#__PURE__*/React__default.createElement("div", {
1183
- className: "flex flex-col gap-y-1"
1184
- }, /*#__PURE__*/React__default.createElement(Typography, {
1185
- style: "h2"
1186
- }, title), /*#__PURE__*/React__default.createElement(Typography, {
1187
- style: "body2"
1188
- }, description))), children, /*#__PURE__*/React__default.createElement("div", {
1189
- className: "flex w-full items-center gap-x-3"
1190
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
1191
- label: t("neetoIntegrations.common.connect"),
1192
- onClick: onConnect
1193
- }, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
1194
- style: "secondary"
1195
- }, secondaryButtonProps))));
1248
+ return /*#__PURE__*/jsxs("div", {
1249
+ className: "mx-auto w-full max-w-3xl",
1250
+ children: [/*#__PURE__*/jsxs("div", {
1251
+ className: "mb-6 flex flex-col gap-y-2",
1252
+ children: [/*#__PURE__*/jsx(Icon, {
1253
+ size: 48
1254
+ }), /*#__PURE__*/jsxs("div", {
1255
+ className: "flex flex-col gap-y-1",
1256
+ children: [/*#__PURE__*/jsx(Typography, {
1257
+ style: "h2",
1258
+ children: title
1259
+ }), /*#__PURE__*/jsx(Typography, {
1260
+ style: "body2",
1261
+ children: description
1262
+ })]
1263
+ })]
1264
+ }), helpDocUrl && /*#__PURE__*/jsx("div", {
1265
+ className: "mb-4",
1266
+ children: /*#__PURE__*/jsx(Trans, {
1267
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
1268
+ components: {
1269
+ helpLink: /*#__PURE__*/jsx(Button, {
1270
+ className: "text-xs",
1271
+ href: helpDocUrl,
1272
+ size: "small",
1273
+ style: "link",
1274
+ target: "_blank"
1275
+ })
1276
+ },
1277
+ values: {
1278
+ integration: integrationName || humanize(integration)
1279
+ }
1280
+ })
1281
+ }), children, /*#__PURE__*/jsxs("div", {
1282
+ className: "flex w-full items-center gap-x-3",
1283
+ children: [/*#__PURE__*/jsx(Button, _objectSpread$1({
1284
+ label: t("neetoIntegrations.common.connect"),
1285
+ onClick: onConnect
1286
+ }, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread$1({
1287
+ style: "secondary"
1288
+ }, secondaryButtonProps))]
1289
+ })]
1290
+ });
1196
1291
  });
1197
1292
  Connect.prototypes = {
1198
1293
  /**
@@ -1240,7 +1335,7 @@ var Demo = function Demo(_ref) {
1240
1335
  var _useTranslation = useTranslation(),
1241
1336
  t = _useTranslation.t;
1242
1337
  var renderVideo = function renderVideo(videoUrl) {
1243
- return isYouTubeLink(videoUrl) ? /*#__PURE__*/React__default.createElement("iframe", {
1338
+ return isYouTubeLink(videoUrl) ? /*#__PURE__*/jsx("iframe", {
1244
1339
  allowFullScreen: true,
1245
1340
  className: "aspect-video border-none",
1246
1341
  frameBorder: "0",
@@ -1248,30 +1343,36 @@ var Demo = function Demo(_ref) {
1248
1343
  src: videoUrl,
1249
1344
  title: renderText(iframeTitle, t("neetoIntegrations.demo.iFrameTitle")),
1250
1345
  type: "text/html"
1251
- }) : /*#__PURE__*/React__default.createElement("video", {
1346
+ }) : /*#__PURE__*/jsx("video", {
1252
1347
  autoPlay: true,
1253
1348
  controls: true,
1254
1349
  muted: true,
1255
1350
  className: "neeto-ui-rounded-xl aspect-video w-full max-w-3xl cursor-pointer",
1256
- id: "walkthrough-video"
1257
- }, /*#__PURE__*/React__default.createElement("source", {
1258
- src: videoUrl
1259
- }));
1351
+ id: "walkthrough-video",
1352
+ children: /*#__PURE__*/jsx("source", {
1353
+ src: videoUrl
1354
+ })
1355
+ });
1260
1356
  };
1261
- return /*#__PURE__*/React__default.createElement("div", {
1262
- className: "mx-auto w-full max-w-3xl"
1263
- }, /*#__PURE__*/React__default.createElement("div", {
1264
- className: "mb-6 flex flex-col gap-y-1"
1265
- }, /*#__PURE__*/React__default.createElement(Typography, {
1266
- style: "h2"
1267
- }, renderText(title, t("neetoIntegrations.demo.title"))), /*#__PURE__*/React__default.createElement(Typography, {
1268
- style: "body2"
1269
- }, renderText(subtitle, t("neetoIntegrations.demo.subtitle")))), children, videoUrl && /*#__PURE__*/React__default.createElement("div", {
1270
- className: "mb-8"
1271
- }, renderVideo(videoUrl)), /*#__PURE__*/React__default.createElement(Button, {
1272
- label: t("neetoIntegrations.common.finish"),
1273
- onClick: onClose
1274
- }));
1357
+ return /*#__PURE__*/jsxs("div", {
1358
+ className: "mx-auto w-full max-w-3xl",
1359
+ children: [/*#__PURE__*/jsxs("div", {
1360
+ className: "mb-6 flex flex-col gap-y-1",
1361
+ children: [/*#__PURE__*/jsx(Typography, {
1362
+ style: "h2",
1363
+ children: renderText(title, t("neetoIntegrations.demo.title"))
1364
+ }), /*#__PURE__*/jsx(Typography, {
1365
+ style: "body2",
1366
+ children: renderText(subtitle, t("neetoIntegrations.demo.subtitle"))
1367
+ })]
1368
+ }), children, videoUrl && /*#__PURE__*/jsx("div", {
1369
+ className: "mb-8",
1370
+ children: renderVideo(videoUrl)
1371
+ }), /*#__PURE__*/jsx(Button, {
1372
+ label: t("neetoIntegrations.common.finish"),
1373
+ onClick: onClose
1374
+ })]
1375
+ });
1275
1376
  };
1276
1377
  Demo.prototypes = {
1277
1378
  /**
@@ -1322,6 +1423,8 @@ const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
1322
1423
  height: 344
1323
1424
  }))));
1324
1425
 
1426
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1427
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1325
1428
  var Finish = withT(function (_ref) {
1326
1429
  var t = _ref.t,
1327
1430
  _ref$onClick = _ref.onClick,
@@ -1333,20 +1436,23 @@ var Finish = withT(function (_ref) {
1333
1436
  _ref$secondaryButtonP = _ref.secondaryButtonProps,
1334
1437
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
1335
1438
  children = _ref.children;
1336
- return /*#__PURE__*/React__default.createElement("div", {
1337
- className: "mx-auto w-full max-w-3xl"
1338
- }, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
1339
- className: "mb-6 mt-4",
1340
- style: "h2",
1341
- weight: "semibold"
1342
- }, title), children, /*#__PURE__*/React__default.createElement("div", {
1343
- className: "flex w-full items-center gap-x-2"
1344
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
1345
- onClick: onClick,
1346
- label: t("neetoIntegrations.common.continue")
1347
- }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
1348
- style: "secondary"
1349
- }, secondaryButtonProps))));
1439
+ return /*#__PURE__*/jsxs("div", {
1440
+ className: "mx-auto w-full max-w-3xl",
1441
+ children: [/*#__PURE__*/jsx(SvgSuccess, {}), /*#__PURE__*/jsx(Typography, {
1442
+ className: "mb-6 mt-4",
1443
+ style: "h2",
1444
+ weight: "semibold",
1445
+ children: title
1446
+ }), children, /*#__PURE__*/jsxs("div", {
1447
+ className: "flex w-full items-center gap-x-2",
1448
+ children: [/*#__PURE__*/jsx(Button, _objectSpread({
1449
+ onClick: onClick,
1450
+ label: t("neetoIntegrations.common.continue")
1451
+ }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/jsx(Button, _objectSpread({
1452
+ style: "secondary"
1453
+ }, secondaryButtonProps))]
1454
+ })]
1455
+ });
1350
1456
  });
1351
1457
  Finish.prototypes = {
1352
1458
  /**