@bigbinary/neeto-integrations-frontend 2.12.6 → 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 +2 -2
- package/dist/Daily.cjs.js +288 -206
- package/dist/Daily.cjs.js.map +1 -1
- package/dist/Daily.js +281 -206
- package/dist/Daily.js.map +1 -1
- package/dist/GoogleCalender.cjs.js +384 -284
- package/dist/GoogleCalender.cjs.js.map +1 -1
- package/dist/GoogleCalender.js +375 -284
- 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 +292 -210
- package/dist/Zoom.cjs.js.map +1 -1
- package/dist/Zoom.js +286 -211
- package/dist/Zoom.js.map +1 -1
- package/dist/index.cjs.js +526 -412
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +516 -412
- 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,27 +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';
|
|
36
|
+
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
27
37
|
|
|
28
|
-
function
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return target;
|
|
39
|
-
};
|
|
40
|
-
return _extends$1.apply(this, arguments);
|
|
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);
|
|
41
46
|
}
|
|
42
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);
|
|
57
|
+
}
|
|
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; }
|
|
43
81
|
var Manage$1 = withT(function (_ref) {
|
|
44
82
|
var t = _ref.t,
|
|
45
83
|
_ref$title = _ref.title,
|
|
@@ -83,129 +121,109 @@ var Manage$1 = withT(function (_ref) {
|
|
|
83
121
|
_ref$isConnectDisable = _ref.isConnectDisabled,
|
|
84
122
|
isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
|
|
85
123
|
_ref$connectTooltipPr = _ref.connectTooltipProps,
|
|
86
|
-
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr
|
|
87
|
-
|
|
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
|
-
|
|
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
|
+
})]
|
|
123
215
|
})
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
target: manageUrl ? "_blank" : "_self",
|
|
134
|
-
to: managePath,
|
|
135
|
-
label: t("neetoIntegrations.common.manageIntegration", {
|
|
136
|
-
integration: integrationName || humanize(integration)
|
|
137
|
-
})
|
|
138
|
-
}), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
|
|
139
|
-
"data-cy": "disconnect-button",
|
|
140
|
-
style: "secondary",
|
|
141
|
-
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
142
|
-
integration: integrationName || humanize(integration)
|
|
143
|
-
}),
|
|
144
|
-
onClick: function onClick() {
|
|
145
|
-
return setIsDisconnectAlertOpen(true);
|
|
146
|
-
}
|
|
147
|
-
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
|
|
148
|
-
disabled: !isConnectDisabled
|
|
149
|
-
}, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
|
|
150
|
-
"data-cy": "connect-button",
|
|
151
|
-
disabled: isConnectDisabled,
|
|
152
|
-
href: connectUrl,
|
|
153
|
-
to: connectPath,
|
|
154
|
-
label: t("neetoIntegrations.common.connectIntegration", {
|
|
155
|
-
integration: integrationName || humanize(integration)
|
|
156
|
-
}),
|
|
157
|
-
onClick: onConnect
|
|
158
|
-
})))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
159
|
-
isDisconnecting: isDisconnecting,
|
|
160
|
-
onClose: onClose,
|
|
161
|
-
onDisconnect: onDisconnect,
|
|
162
|
-
isOpen: isDisconnectAlertOpen,
|
|
163
|
-
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
164
|
-
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
165
|
-
}));
|
|
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
|
+
});
|
|
166
225
|
});
|
|
167
226
|
|
|
168
|
-
function _typeof(o) {
|
|
169
|
-
"@babel/helpers - typeof";
|
|
170
|
-
|
|
171
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
172
|
-
return typeof o;
|
|
173
|
-
} : function (o) {
|
|
174
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
175
|
-
}, _typeof(o);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
function _toPrimitive(input, hint) {
|
|
179
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
180
|
-
var prim = input[Symbol.toPrimitive];
|
|
181
|
-
if (prim !== undefined) {
|
|
182
|
-
var res = prim.call(input, hint || "default");
|
|
183
|
-
if (_typeof(res) !== "object") return res;
|
|
184
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
185
|
-
}
|
|
186
|
-
return (hint === "string" ? String : Number)(input);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
function _toPropertyKey(arg) {
|
|
190
|
-
var key = _toPrimitive(arg, "string");
|
|
191
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
function _defineProperty(obj, key, value) {
|
|
195
|
-
key = _toPropertyKey(key);
|
|
196
|
-
if (key in obj) {
|
|
197
|
-
Object.defineProperty(obj, key, {
|
|
198
|
-
value: value,
|
|
199
|
-
enumerable: true,
|
|
200
|
-
configurable: true,
|
|
201
|
-
writable: true
|
|
202
|
-
});
|
|
203
|
-
} else {
|
|
204
|
-
obj[key] = value;
|
|
205
|
-
}
|
|
206
|
-
return obj;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
227
|
var INTEGRATIONS_ENGINE_BASE_URL = "/neeto_integrations";
|
|
210
228
|
var TWILIO_CONFIGURATION_BASE_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/twilio/sms_configurations");
|
|
211
229
|
var INTEGRATIONS_ENGINE_DAILY_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/daily");
|
|
@@ -236,11 +254,11 @@ var QUERY_KEYS = {
|
|
|
236
254
|
ZOOM_DETAILS: "zoom-details"
|
|
237
255
|
};
|
|
238
256
|
|
|
239
|
-
function ownKeys$
|
|
240
|
-
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; }
|
|
241
259
|
var useCreateDaily = function useCreateDaily() {
|
|
242
260
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
243
|
-
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$
|
|
261
|
+
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$7({
|
|
244
262
|
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
245
263
|
}, options));
|
|
246
264
|
};
|
|
@@ -342,15 +360,19 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
342
360
|
}
|
|
343
361
|
|
|
344
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; }
|
|
345
365
|
var ExternalLink = function ExternalLink(_ref) {
|
|
346
366
|
var _ref$className = _ref.className,
|
|
347
367
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
348
368
|
_ref$children = _ref.children,
|
|
349
369
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
350
370
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
351
|
-
return /*#__PURE__*/
|
|
371
|
+
return /*#__PURE__*/jsx("a", _objectSpread$6(_objectSpread$6({
|
|
352
372
|
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
353
|
-
}, props),
|
|
373
|
+
}, props), {}, {
|
|
374
|
+
children: children
|
|
375
|
+
}));
|
|
354
376
|
};
|
|
355
377
|
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
356
378
|
|
|
@@ -370,6 +392,7 @@ var Form = function Form(_ref) {
|
|
|
370
392
|
breadcrumbs = _ref.breadcrumbs;
|
|
371
393
|
var _useTranslation = useTranslation(),
|
|
372
394
|
t = _useTranslation.t;
|
|
395
|
+
var history = useHistory();
|
|
373
396
|
var _useState = useState(false),
|
|
374
397
|
_useState2 = _slicedToArray(_useState, 2),
|
|
375
398
|
isDemoModalOpen = _useState2[0],
|
|
@@ -385,70 +408,78 @@ var Form = function Form(_ref) {
|
|
|
385
408
|
return createDaily(payload);
|
|
386
409
|
};
|
|
387
410
|
if (isConnecting) {
|
|
388
|
-
return /*#__PURE__*/
|
|
411
|
+
return /*#__PURE__*/jsx(PageLoader, {});
|
|
389
412
|
}
|
|
390
|
-
return /*#__PURE__*/
|
|
391
|
-
isHeaderFixed: true
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
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
|
+
})
|
|
416
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
|
+
})]
|
|
417
473
|
})
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
}, function (_ref2) {
|
|
429
|
-
var dirty = _ref2.dirty;
|
|
430
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
431
|
-
className: "mt-14 w-full space-y-5"
|
|
432
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
433
|
-
className: "block min-h-20"
|
|
434
|
-
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
435
|
-
autoFocus: true,
|
|
436
|
-
required: true,
|
|
437
|
-
label: t("neetoIntegrations.daily.apiKey"),
|
|
438
|
-
name: "apiKey"
|
|
439
|
-
})), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
440
|
-
disabled: isConnecting || !dirty,
|
|
441
|
-
label: t("neetoIntegrations.common.connect"),
|
|
442
|
-
loading: isConnecting,
|
|
443
|
-
type: "submit"
|
|
444
|
-
})));
|
|
445
|
-
}), /*#__PURE__*/React__default.createElement(WalkthroughModal, {
|
|
446
|
-
videoUrl: videoUrl,
|
|
447
|
-
isOpen: isDemoModalOpen,
|
|
448
|
-
onClose: function onClose() {
|
|
449
|
-
return setIsDemoModalOpen(false);
|
|
450
|
-
}
|
|
451
|
-
})));
|
|
474
|
+
}), /*#__PURE__*/jsx(WalkthroughModal, {
|
|
475
|
+
videoUrl: videoUrl,
|
|
476
|
+
isOpen: isDemoModalOpen,
|
|
477
|
+
onClose: function onClose() {
|
|
478
|
+
return setIsDemoModalOpen(false);
|
|
479
|
+
}
|
|
480
|
+
})]
|
|
481
|
+
})]
|
|
482
|
+
});
|
|
452
483
|
};
|
|
453
484
|
var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
454
485
|
|
|
@@ -482,8 +513,8 @@ var Manage = function Manage(_ref) {
|
|
|
482
513
|
var handleDisconnect = function handleDisconnect() {
|
|
483
514
|
return destroyIntegration("daily");
|
|
484
515
|
};
|
|
485
|
-
if (isFetching || isDisconnecting) return /*#__PURE__*/
|
|
486
|
-
return /*#__PURE__*/
|
|
516
|
+
if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
|
|
517
|
+
return /*#__PURE__*/jsx(Manage$1, {
|
|
487
518
|
isConnected: isConnected,
|
|
488
519
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
489
520
|
isDisconnecting: isDisconnecting,
|
|
@@ -493,15 +524,23 @@ var Manage = function Manage(_ref) {
|
|
|
493
524
|
connect: true
|
|
494
525
|
}),
|
|
495
526
|
integration: "daily",
|
|
496
|
-
description: isConnected ? /*#__PURE__*/
|
|
497
|
-
components: {
|
|
498
|
-
underline: /*#__PURE__*/React__default.createElement("u", {
|
|
499
|
-
className: "font-medium"
|
|
500
|
-
})
|
|
501
|
-
},
|
|
527
|
+
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
502
528
|
i18nKey: "neetoIntegrations.daily.yourApiKey",
|
|
503
529
|
values: {
|
|
504
530
|
apiKey: apiKey
|
|
531
|
+
},
|
|
532
|
+
components: {
|
|
533
|
+
wrapper: /*#__PURE__*/jsx("div", {
|
|
534
|
+
className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
|
|
535
|
+
}),
|
|
536
|
+
span: /*#__PURE__*/jsx("span", {
|
|
537
|
+
className: "break-all text-sm"
|
|
538
|
+
}),
|
|
539
|
+
copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
540
|
+
className: "flex-shrink-0 self-start",
|
|
541
|
+
style: "text",
|
|
542
|
+
value: apiKey
|
|
543
|
+
})
|
|
505
544
|
}
|
|
506
545
|
}) : description,
|
|
507
546
|
title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect.account"),
|
|
@@ -536,12 +575,12 @@ var Daily = function Daily(_ref) {
|
|
|
536
575
|
_ref2$apiKey = _ref2.apiKey,
|
|
537
576
|
apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
|
|
538
577
|
if (isPresent(apiKey) && !isOnboarding || !connect) {
|
|
539
|
-
return /*#__PURE__*/
|
|
578
|
+
return /*#__PURE__*/jsx(Manage, {
|
|
540
579
|
description: description,
|
|
541
580
|
onDisconnect: onDisconnect
|
|
542
581
|
});
|
|
543
582
|
}
|
|
544
|
-
return /*#__PURE__*/
|
|
583
|
+
return /*#__PURE__*/jsx(Form$1, {
|
|
545
584
|
helpDocUrl: helpDocUrl,
|
|
546
585
|
onConnect: onConnect,
|
|
547
586
|
videoUrl: videoUrl
|
|
@@ -581,8 +620,8 @@ var STEPS = {
|
|
|
581
620
|
finish: t$1("neetoIntegrations.common.finish")
|
|
582
621
|
};
|
|
583
622
|
|
|
584
|
-
function ownKeys$
|
|
585
|
-
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; }
|
|
586
625
|
var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
587
626
|
var permissionImage = _ref.permissionImage,
|
|
588
627
|
fetchAuthorizationUrl = _ref.fetchAuthorizationUrl,
|
|
@@ -600,56 +639,62 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
600
639
|
useEffect(function () {
|
|
601
640
|
setSteps(function () {
|
|
602
641
|
var stepsClone = _toConsumableArray(steps);
|
|
603
|
-
stepsClone[0] = _objectSpread$
|
|
642
|
+
stepsClone[0] = _objectSpread$5(_objectSpread$5({}, steps[0]), {}, {
|
|
604
643
|
isActive: activeTab === STEPS.connect,
|
|
605
644
|
isCompleted: activeTab !== STEPS.connect
|
|
606
645
|
});
|
|
607
|
-
stepsClone[1] = _objectSpread$
|
|
646
|
+
stepsClone[1] = _objectSpread$5(_objectSpread$5({}, steps[1]), {}, {
|
|
608
647
|
isActive: activeTab === STEPS.finish,
|
|
609
648
|
isCompleted: activeTab === STEPS.finish
|
|
610
649
|
});
|
|
611
650
|
return stepsClone;
|
|
612
651
|
});
|
|
613
652
|
}, [activeTab]);
|
|
614
|
-
return /*#__PURE__*/
|
|
653
|
+
return /*#__PURE__*/jsxs(Modal, {
|
|
615
654
|
steps: steps,
|
|
616
655
|
isOpen: true,
|
|
617
|
-
onClose: handleClose
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
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
|
+
});
|
|
649
694
|
};
|
|
650
695
|
|
|
651
|
-
function ownKeys$
|
|
652
|
-
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; }
|
|
653
698
|
var ConfigurationForm = function ConfigurationForm(_ref) {
|
|
654
699
|
var _errors$twilioPhoneNu;
|
|
655
700
|
var phoneNumberOptions = _ref.phoneNumberOptions,
|
|
@@ -671,42 +716,46 @@ var ConfigurationForm = function ConfigurationForm(_ref) {
|
|
|
671
716
|
useEffect(function () {
|
|
672
717
|
selectedPhoneNumber && setFieldValue("twilioPhoneNumber", selectedPhoneNumber);
|
|
673
718
|
}, [selectedPhoneNumber, initialValues]);
|
|
674
|
-
return /*#__PURE__*/
|
|
675
|
-
className: "flex w-full flex-col gap-4"
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
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
|
+
});
|
|
706
755
|
};
|
|
707
756
|
|
|
708
|
-
function ownKeys$
|
|
709
|
-
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; }
|
|
710
759
|
var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrable) {
|
|
711
760
|
return axios.get(TWILIO_CONFIGURATION_BASE_URL, {
|
|
712
761
|
params: integrable
|
|
@@ -721,7 +770,7 @@ var getTwilioPhoneNumbers = function getTwilioPhoneNumbers(data) {
|
|
|
721
770
|
});
|
|
722
771
|
};
|
|
723
772
|
var createTwilioConfiguration = function createTwilioConfiguration(payload, integrable) {
|
|
724
|
-
return axios.post(TWILIO_CONFIGURATION_BASE_URL, _objectSpread$
|
|
773
|
+
return axios.post(TWILIO_CONFIGURATION_BASE_URL, _objectSpread$3(_objectSpread$3({}, payload), integrable));
|
|
725
774
|
};
|
|
726
775
|
var twilioApi = {
|
|
727
776
|
fetchTwilioSmsConfiguration: fetchTwilioSmsConfiguration,
|
|
@@ -843,8 +892,8 @@ var buildPhoneNumberOptions = function buildPhoneNumberOptions(phoneNumbers) {
|
|
|
843
892
|
});
|
|
844
893
|
};
|
|
845
894
|
|
|
846
|
-
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; }
|
|
847
|
-
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; }
|
|
848
897
|
var Twilio = function Twilio(_ref) {
|
|
849
898
|
var _ref$integrable = _ref.integrable,
|
|
850
899
|
integrable = _ref$integrable === void 0 ? null : _ref$integrable,
|
|
@@ -873,11 +922,11 @@ var Twilio = function Twilio(_ref) {
|
|
|
873
922
|
}, phoneNumberOptions);
|
|
874
923
|
var isLoading = isPhoneNumbersLoading || isConfigurationLoading;
|
|
875
924
|
var isSubmitDisabled = function isSubmitDisabled(values) {
|
|
876
|
-
return equals(_objectSpread(_objectSpread({}, configuration), {}, {
|
|
925
|
+
return equals(_objectSpread$2(_objectSpread$2({}, configuration), {}, {
|
|
877
926
|
twilioPhoneNumber: selectedPhoneNumber
|
|
878
927
|
}), values) || isLoading;
|
|
879
928
|
};
|
|
880
|
-
return /*#__PURE__*/
|
|
929
|
+
return /*#__PURE__*/jsx(FormikForm, {
|
|
881
930
|
className: "mx-auto flex w-full max-w-md flex-col p-5",
|
|
882
931
|
formikProps: {
|
|
883
932
|
enableReinitialize: true,
|
|
@@ -885,27 +934,30 @@ var Twilio = function Twilio(_ref) {
|
|
|
885
934
|
initialValues: configuration,
|
|
886
935
|
innerRef: formRef,
|
|
887
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
|
+
});
|
|
888
960
|
}
|
|
889
|
-
}, function (formikProps) {
|
|
890
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ConfigurationForm, {
|
|
891
|
-
formikProps: formikProps,
|
|
892
|
-
initialFocusRef: initialFocusRef,
|
|
893
|
-
phoneNumberOptions: phoneNumberOptions,
|
|
894
|
-
selectedPhoneNumber: selectedPhoneNumber
|
|
895
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
896
|
-
className: "mt-4 flex items-center gap-x-2"
|
|
897
|
-
}, /*#__PURE__*/React__default.createElement(ActionBlock, {
|
|
898
|
-
cancelButtonProps: {
|
|
899
|
-
onClick: onClose,
|
|
900
|
-
disabled: false
|
|
901
|
-
},
|
|
902
|
-
className: "space-x-3",
|
|
903
|
-
submitButtonProps: {
|
|
904
|
-
label: phoneNumberOptions ? t("neetoIntegrations.common.saveChanges") : t("neetoIntegrations.common.verify"),
|
|
905
|
-
disabled: isSubmitDisabled(formikProps.values),
|
|
906
|
-
loading: isSubmitting || isPhoneNumbersLoading && !(configuration !== null && configuration !== void 0 && configuration.twilioAuthToken)
|
|
907
|
-
}
|
|
908
|
-
})));
|
|
909
961
|
});
|
|
910
962
|
};
|
|
911
963
|
|
|
@@ -973,8 +1025,8 @@ var Zoom = function Zoom(_ref) {
|
|
|
973
1025
|
var handleDisconnect = function handleDisconnect() {
|
|
974
1026
|
return destroyIntegration("zoom");
|
|
975
1027
|
};
|
|
976
|
-
if (isLoading) return /*#__PURE__*/
|
|
977
|
-
return /*#__PURE__*/
|
|
1028
|
+
if (isLoading) return /*#__PURE__*/jsx(PageLoader, {});
|
|
1029
|
+
return /*#__PURE__*/jsx(Manage$1, {
|
|
978
1030
|
connectUrl: connectUrl,
|
|
979
1031
|
isConnected: isConnected,
|
|
980
1032
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
@@ -982,9 +1034,9 @@ var Zoom = function Zoom(_ref) {
|
|
|
982
1034
|
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
983
1035
|
Icon: Zoom$1,
|
|
984
1036
|
integration: "zoom",
|
|
985
|
-
description: isConnected ? /*#__PURE__*/
|
|
1037
|
+
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
986
1038
|
components: {
|
|
987
|
-
underline: /*#__PURE__*/
|
|
1039
|
+
underline: /*#__PURE__*/jsx("u", {
|
|
988
1040
|
className: "font-medium"
|
|
989
1041
|
})
|
|
990
1042
|
},
|
|
@@ -1009,42 +1061,47 @@ var Stepper = function Stepper(_ref) {
|
|
|
1009
1061
|
var isActiveOrCompleted = function isActiveOrCompleted(activeStatus, completedStatus) {
|
|
1010
1062
|
return activeStatus || completedStatus;
|
|
1011
1063
|
};
|
|
1012
|
-
return /*#__PURE__*/
|
|
1013
|
-
className: "flex gap-4"
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
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
|
-
|
|
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
|
+
});
|
|
1048
1105
|
};
|
|
1049
1106
|
|
|
1050
1107
|
var Modal = function Modal(_ref) {
|
|
@@ -1055,18 +1112,23 @@ var Modal = function Modal(_ref) {
|
|
|
1055
1112
|
_ref$steps = _ref.steps,
|
|
1056
1113
|
steps = _ref$steps === void 0 ? {} : _ref$steps,
|
|
1057
1114
|
children = _ref.children;
|
|
1058
|
-
return /*#__PURE__*/
|
|
1115
|
+
return /*#__PURE__*/jsxs(NeetoUIModal, {
|
|
1059
1116
|
isOpen: isOpen,
|
|
1060
1117
|
onClose: onClose,
|
|
1061
1118
|
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-transform-none w-screen overflow-y-auto",
|
|
1062
|
-
size: "fullScreen"
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
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
|
+
});
|
|
1070
1132
|
};
|
|
1071
1133
|
|
|
1072
1134
|
function getDefaultExportFromCjs (x) {
|
|
@@ -1151,6 +1213,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
|
1151
1213
|
var propTypesExports = propTypes.exports;
|
|
1152
1214
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1153
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; }
|
|
1154
1218
|
var Connect = withT(function (_ref) {
|
|
1155
1219
|
var t = _ref.t,
|
|
1156
1220
|
Icon = _ref.Icon,
|
|
@@ -1158,32 +1222,61 @@ var Connect = withT(function (_ref) {
|
|
|
1158
1222
|
title = _ref$title === void 0 ? "" : _ref$title,
|
|
1159
1223
|
_ref$description = _ref.description,
|
|
1160
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,
|
|
1161
1231
|
_ref$buttonProps = _ref.buttonProps,
|
|
1162
1232
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
1163
1233
|
_ref$onConnect = _ref.onConnect,
|
|
1164
1234
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
1165
1235
|
children = _ref.children,
|
|
1166
1236
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
1167
|
-
return /*#__PURE__*/
|
|
1168
|
-
className: "mx-auto w-full max-w-3xl"
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
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
|
+
});
|
|
1187
1280
|
});
|
|
1188
1281
|
Connect.prototypes = {
|
|
1189
1282
|
/**
|
|
@@ -1231,7 +1324,7 @@ var Demo = function Demo(_ref) {
|
|
|
1231
1324
|
var _useTranslation = useTranslation(),
|
|
1232
1325
|
t = _useTranslation.t;
|
|
1233
1326
|
var renderVideo = function renderVideo(videoUrl) {
|
|
1234
|
-
return isYouTubeLink(videoUrl) ? /*#__PURE__*/
|
|
1327
|
+
return isYouTubeLink(videoUrl) ? /*#__PURE__*/jsx("iframe", {
|
|
1235
1328
|
allowFullScreen: true,
|
|
1236
1329
|
className: "aspect-video border-none",
|
|
1237
1330
|
frameBorder: "0",
|
|
@@ -1239,30 +1332,36 @@ var Demo = function Demo(_ref) {
|
|
|
1239
1332
|
src: videoUrl,
|
|
1240
1333
|
title: renderText(iframeTitle, t("neetoIntegrations.demo.iFrameTitle")),
|
|
1241
1334
|
type: "text/html"
|
|
1242
|
-
}) : /*#__PURE__*/
|
|
1335
|
+
}) : /*#__PURE__*/jsx("video", {
|
|
1243
1336
|
autoPlay: true,
|
|
1244
1337
|
controls: true,
|
|
1245
1338
|
muted: true,
|
|
1246
1339
|
className: "neeto-ui-rounded-xl aspect-video w-full max-w-3xl cursor-pointer",
|
|
1247
|
-
id: "walkthrough-video"
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1340
|
+
id: "walkthrough-video",
|
|
1341
|
+
children: /*#__PURE__*/jsx("source", {
|
|
1342
|
+
src: videoUrl
|
|
1343
|
+
})
|
|
1344
|
+
});
|
|
1251
1345
|
};
|
|
1252
|
-
return /*#__PURE__*/
|
|
1253
|
-
className: "mx-auto w-full max-w-3xl"
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
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
|
+
});
|
|
1266
1365
|
};
|
|
1267
1366
|
Demo.prototypes = {
|
|
1268
1367
|
/**
|
|
@@ -1313,6 +1412,8 @@ const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
1313
1412
|
height: 344
|
|
1314
1413
|
}))));
|
|
1315
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; }
|
|
1316
1417
|
var Finish = withT(function (_ref) {
|
|
1317
1418
|
var t = _ref.t,
|
|
1318
1419
|
_ref$onClick = _ref.onClick,
|
|
@@ -1324,20 +1425,23 @@ var Finish = withT(function (_ref) {
|
|
|
1324
1425
|
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
1325
1426
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
1326
1427
|
children = _ref.children;
|
|
1327
|
-
return /*#__PURE__*/
|
|
1328
|
-
className: "mx-auto w-full max-w-3xl"
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
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
|
+
});
|
|
1341
1445
|
});
|
|
1342
1446
|
Finish.prototypes = {
|
|
1343
1447
|
/**
|