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