@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/GoogleCalender.js
CHANGED
|
@@ -3,7 +3,9 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
3
3
|
import { humanize, noop, isPresent, isNotEmpty } from '@bigbinary/neeto-cist';
|
|
4
4
|
import { buildUrl, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils';
|
|
5
5
|
import { Daily as Daily$1, GoogleCalendar as GoogleCalendar$1, Google } from '@bigbinary/neeto-icons/misc';
|
|
6
|
-
import
|
|
6
|
+
import Typography from '@bigbinary/neetoui/Typography';
|
|
7
|
+
import Callout from '@bigbinary/neetoui/Callout';
|
|
8
|
+
import Button from '@bigbinary/neetoui/Button';
|
|
7
9
|
import { Trans, useTranslation } from 'react-i18next';
|
|
8
10
|
import '@bigbinary/neeto-molecules/IntegrationCard';
|
|
9
11
|
import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
@@ -11,6 +13,7 @@ import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughM
|
|
|
11
13
|
import classnames from 'classnames';
|
|
12
14
|
import { withT, useMutationWithInvalidation, withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
13
15
|
import { Check } from '@bigbinary/neeto-icons';
|
|
16
|
+
import Tooltip from '@bigbinary/neetoui/Tooltip';
|
|
14
17
|
import i18next, { t as t$1 } from 'i18next';
|
|
15
18
|
import { DEFAULT_STALE_TIME } from '@bigbinary/neeto-commons-frontend/constants';
|
|
16
19
|
import { useQuery } from 'react-query';
|
|
@@ -19,9 +22,15 @@ import Container from '@bigbinary/neeto-molecules/Container';
|
|
|
19
22
|
import Header from '@bigbinary/neeto-molecules/Header';
|
|
20
23
|
import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
|
|
21
24
|
import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
|
|
22
|
-
import
|
|
25
|
+
import Input from '@bigbinary/neetoui/formik/Input';
|
|
26
|
+
import FormikForm from '@bigbinary/neetoui/formik/Form';
|
|
27
|
+
import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
|
|
28
|
+
import { useHistory } from 'react-router-dom';
|
|
29
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
23
30
|
import 'ramda';
|
|
31
|
+
import '@bigbinary/neetoui/formik/Select';
|
|
24
32
|
import * as yup from 'yup';
|
|
33
|
+
import NeetoUIModal from '@bigbinary/neetoui/Modal';
|
|
25
34
|
import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
26
35
|
|
|
27
36
|
function _typeof(o) {
|
|
@@ -136,21 +145,8 @@ function _slicedToArray(arr, i) {
|
|
|
136
145
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
137
146
|
}
|
|
138
147
|
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
142
|
-
var source = arguments[i];
|
|
143
|
-
for (var key in source) {
|
|
144
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
145
|
-
target[key] = source[key];
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return target;
|
|
150
|
-
};
|
|
151
|
-
return _extends$1.apply(this, arguments);
|
|
152
|
-
}
|
|
153
|
-
|
|
148
|
+
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; }
|
|
149
|
+
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; }
|
|
154
150
|
var Manage$1 = withT(function (_ref) {
|
|
155
151
|
var t = _ref.t,
|
|
156
152
|
_ref$title = _ref.title,
|
|
@@ -194,86 +190,107 @@ var Manage$1 = withT(function (_ref) {
|
|
|
194
190
|
_ref$isConnectDisable = _ref.isConnectDisabled,
|
|
195
191
|
isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
|
|
196
192
|
_ref$connectTooltipPr = _ref.connectTooltipProps,
|
|
197
|
-
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
193
|
+
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr,
|
|
194
|
+
_ref$buttonProps = _ref.buttonProps,
|
|
195
|
+
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
196
|
+
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
197
|
+
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
|
|
198
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
199
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
200
|
+
className: "mx-auto w-full max-w-3xl",
|
|
201
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
202
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6",
|
|
203
|
+
children: [Icon && /*#__PURE__*/jsx(Icon, {
|
|
204
|
+
className: "neeto-ui-text-gray-600",
|
|
205
|
+
size: 48
|
|
206
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
207
|
+
className: "space-y-2",
|
|
208
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
209
|
+
className: "flex items-center space-x-4",
|
|
210
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
211
|
+
className: "neeto-ui-text-gray-800 mb-0.5",
|
|
212
|
+
style: "h2",
|
|
213
|
+
weight: "semibold",
|
|
214
|
+
children: title
|
|
215
|
+
}), isConnected && /*#__PURE__*/jsx("div", {
|
|
216
|
+
className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1",
|
|
217
|
+
children: /*#__PURE__*/jsx(Check, {
|
|
218
|
+
size: 24
|
|
219
|
+
})
|
|
220
|
+
})]
|
|
221
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
222
|
+
style: "body1",
|
|
223
|
+
weight: "normal",
|
|
224
|
+
className: classnames("neeto-ui-text-gray-800", {
|
|
225
|
+
"break-all": isConnected
|
|
226
|
+
}),
|
|
227
|
+
children: description
|
|
228
|
+
}), helpDocUrl && /*#__PURE__*/jsx(Typography, {
|
|
229
|
+
className: "neeto-ui-text-gray-800",
|
|
230
|
+
style: "body2",
|
|
231
|
+
weight: "normal",
|
|
232
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
233
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
234
|
+
components: {
|
|
235
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
236
|
+
href: helpDocUrl,
|
|
237
|
+
style: "link",
|
|
238
|
+
target: "_blank"
|
|
239
|
+
})
|
|
240
|
+
},
|
|
241
|
+
values: {
|
|
242
|
+
integration: integrationName || humanize(integration)
|
|
243
|
+
}
|
|
244
|
+
})
|
|
245
|
+
})]
|
|
246
|
+
}), isConnected ? /*#__PURE__*/jsxs("div", {
|
|
247
|
+
className: "space-x-2",
|
|
248
|
+
children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread$5({
|
|
249
|
+
"data-cy": "manage-button",
|
|
250
|
+
href: manageUrl,
|
|
251
|
+
target: manageUrl ? "_blank" : "_self",
|
|
252
|
+
to: managePath,
|
|
253
|
+
label: t("neetoIntegrations.common.manageIntegration", {
|
|
254
|
+
integration: integrationName || humanize(integration)
|
|
255
|
+
})
|
|
256
|
+
}, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread$5({
|
|
257
|
+
"data-cy": "disconnect-button",
|
|
258
|
+
style: "secondary",
|
|
259
|
+
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
260
|
+
integration: integrationName || humanize(integration)
|
|
261
|
+
}),
|
|
262
|
+
onClick: function onClick() {
|
|
263
|
+
return setIsDisconnectAlertOpen(true);
|
|
264
|
+
}
|
|
265
|
+
}, secondaryButtonProps))]
|
|
266
|
+
}) : /*#__PURE__*/jsx("div", {
|
|
267
|
+
children: /*#__PURE__*/jsx(Tooltip, _objectSpread$5(_objectSpread$5({
|
|
268
|
+
disabled: !isConnectDisabled
|
|
269
|
+
}, connectTooltipProps), {}, {
|
|
270
|
+
children: /*#__PURE__*/jsx("span", {
|
|
271
|
+
children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread$5({
|
|
272
|
+
"data-cy": "connect-button",
|
|
273
|
+
disabled: isConnectDisabled,
|
|
274
|
+
href: connectUrl,
|
|
275
|
+
to: connectPath,
|
|
276
|
+
label: t("neetoIntegrations.common.connectIntegration", {
|
|
277
|
+
integration: integrationName || humanize(integration)
|
|
278
|
+
}),
|
|
279
|
+
onClick: onConnect
|
|
280
|
+
}, buttonProps))
|
|
281
|
+
})
|
|
282
|
+
}))
|
|
283
|
+
})]
|
|
234
284
|
})
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
target: manageUrl ? "_blank" : "_self",
|
|
245
|
-
to: managePath,
|
|
246
|
-
label: t("neetoIntegrations.common.manageIntegration", {
|
|
247
|
-
integration: integrationName || humanize(integration)
|
|
248
|
-
})
|
|
249
|
-
}), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
|
|
250
|
-
"data-cy": "disconnect-button",
|
|
251
|
-
style: "secondary",
|
|
252
|
-
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
253
|
-
integration: integrationName || humanize(integration)
|
|
254
|
-
}),
|
|
255
|
-
onClick: function onClick() {
|
|
256
|
-
return setIsDisconnectAlertOpen(true);
|
|
257
|
-
}
|
|
258
|
-
})) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
|
|
259
|
-
disabled: !isConnectDisabled
|
|
260
|
-
}, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
|
|
261
|
-
"data-cy": "connect-button",
|
|
262
|
-
disabled: isConnectDisabled,
|
|
263
|
-
href: connectUrl,
|
|
264
|
-
to: connectPath,
|
|
265
|
-
label: t("neetoIntegrations.common.connectIntegration", {
|
|
266
|
-
integration: integrationName || humanize(integration)
|
|
267
|
-
}),
|
|
268
|
-
onClick: onConnect
|
|
269
|
-
})))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
|
|
270
|
-
isDisconnecting: isDisconnecting,
|
|
271
|
-
onClose: onClose,
|
|
272
|
-
onDisconnect: onDisconnect,
|
|
273
|
-
isOpen: isDisconnectAlertOpen,
|
|
274
|
-
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
275
|
-
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
276
|
-
}));
|
|
285
|
+
}), /*#__PURE__*/jsx(DisconnectAlert, {
|
|
286
|
+
isDisconnecting: isDisconnecting,
|
|
287
|
+
onClose: onClose,
|
|
288
|
+
onDisconnect: onDisconnect,
|
|
289
|
+
isOpen: isDisconnectAlertOpen,
|
|
290
|
+
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
291
|
+
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
292
|
+
})]
|
|
293
|
+
});
|
|
277
294
|
});
|
|
278
295
|
|
|
279
296
|
var INTEGRATIONS_ENGINE_BASE_URL = "/neeto_integrations";
|
|
@@ -303,11 +320,11 @@ var QUERY_KEYS = {
|
|
|
303
320
|
ZOOM_DETAILS: "zoom-details"
|
|
304
321
|
};
|
|
305
322
|
|
|
306
|
-
function ownKeys$
|
|
307
|
-
function _objectSpread$
|
|
323
|
+
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; }
|
|
324
|
+
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; }
|
|
308
325
|
var useCreateDaily = function useCreateDaily() {
|
|
309
326
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
310
|
-
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$
|
|
327
|
+
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
|
|
311
328
|
keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
|
|
312
329
|
}, options));
|
|
313
330
|
};
|
|
@@ -354,15 +371,19 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
354
371
|
}
|
|
355
372
|
|
|
356
373
|
var _excluded = ["className", "children"];
|
|
374
|
+
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; }
|
|
375
|
+
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; }
|
|
357
376
|
var ExternalLink = function ExternalLink(_ref) {
|
|
358
377
|
var _ref$className = _ref.className,
|
|
359
378
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
360
379
|
_ref$children = _ref.children,
|
|
361
380
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
362
381
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
363
|
-
return /*#__PURE__*/
|
|
382
|
+
return /*#__PURE__*/jsx("a", _objectSpread$3(_objectSpread$3({
|
|
364
383
|
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
365
|
-
}, props),
|
|
384
|
+
}, props), {}, {
|
|
385
|
+
children: children
|
|
386
|
+
}));
|
|
366
387
|
};
|
|
367
388
|
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
368
389
|
|
|
@@ -382,6 +403,7 @@ var Form = function Form(_ref) {
|
|
|
382
403
|
breadcrumbs = _ref.breadcrumbs;
|
|
383
404
|
var _useTranslation = useTranslation(),
|
|
384
405
|
t = _useTranslation.t;
|
|
406
|
+
var history = useHistory();
|
|
385
407
|
var _useState = useState(false),
|
|
386
408
|
_useState2 = _slicedToArray(_useState, 2),
|
|
387
409
|
isDemoModalOpen = _useState2[0],
|
|
@@ -397,70 +419,78 @@ var Form = function Form(_ref) {
|
|
|
397
419
|
return createDaily(payload);
|
|
398
420
|
};
|
|
399
421
|
if (isConnecting) {
|
|
400
|
-
return /*#__PURE__*/
|
|
422
|
+
return /*#__PURE__*/jsx(PageLoader, {});
|
|
401
423
|
}
|
|
402
|
-
return /*#__PURE__*/
|
|
403
|
-
isHeaderFixed: true
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
424
|
+
return /*#__PURE__*/jsxs(Container, {
|
|
425
|
+
isHeaderFixed: true,
|
|
426
|
+
children: [/*#__PURE__*/jsx(Header, {
|
|
427
|
+
breadcrumbs: breadcrumbs,
|
|
428
|
+
title: /*#__PURE__*/jsxs("span", {
|
|
429
|
+
className: "flex items-center gap-2",
|
|
430
|
+
children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
|
|
431
|
+
title: t("neetoIntegrations.daily.connect.title"),
|
|
432
|
+
description: /*#__PURE__*/jsx(Trans, {
|
|
433
|
+
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
434
|
+
components: {
|
|
435
|
+
externalLink: /*#__PURE__*/jsx(ExternalLink$1, {
|
|
436
|
+
"data-cy": "api-key-help-doc-link",
|
|
437
|
+
href: helpDocUrl,
|
|
438
|
+
rel: "noreferrer",
|
|
439
|
+
target: "_blank"
|
|
440
|
+
})
|
|
441
|
+
}
|
|
442
|
+
}),
|
|
443
|
+
helpLinkProps: {
|
|
444
|
+
label: /*#__PURE__*/jsx(Button, {
|
|
445
|
+
className: "mt-8",
|
|
446
|
+
label: t("neetoIntegrations.daily.walkthroughText"),
|
|
447
|
+
style: "link",
|
|
448
|
+
onClick: function onClick() {
|
|
449
|
+
return setIsDemoModalOpen(true);
|
|
450
|
+
}
|
|
451
|
+
})
|
|
428
452
|
}
|
|
453
|
+
})]
|
|
454
|
+
})
|
|
455
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
456
|
+
className: "mx-auto w-full max-w-md",
|
|
457
|
+
children: [/*#__PURE__*/jsx(FormikForm, {
|
|
458
|
+
formikProps: {
|
|
459
|
+
initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
|
|
460
|
+
validationSchema: DAILY_CO_VALIDATION_SCHEMA,
|
|
461
|
+
onSubmit: handleSubmit
|
|
462
|
+
},
|
|
463
|
+
children: /*#__PURE__*/jsxs("div", {
|
|
464
|
+
className: "mt-14 w-full space-y-2",
|
|
465
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
466
|
+
className: "block min-h-20",
|
|
467
|
+
children: /*#__PURE__*/jsx(Input, {
|
|
468
|
+
autoFocus: true,
|
|
469
|
+
required: true,
|
|
470
|
+
label: t("neetoIntegrations.daily.apiKey"),
|
|
471
|
+
name: "apiKey"
|
|
472
|
+
})
|
|
473
|
+
}), /*#__PURE__*/jsx(ActionBlock, {
|
|
474
|
+
cancelButtonProps: {
|
|
475
|
+
onClick: function onClick() {
|
|
476
|
+
return history.goBack();
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
isSubmitting: isConnecting,
|
|
480
|
+
submitButtonProps: {
|
|
481
|
+
label: t("neetoIntegrations.common.connect")
|
|
482
|
+
}
|
|
483
|
+
})]
|
|
429
484
|
})
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
}
|
|
440
|
-
}, function (_ref2) {
|
|
441
|
-
var dirty = _ref2.dirty;
|
|
442
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
443
|
-
className: "mt-14 w-full space-y-5"
|
|
444
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
445
|
-
className: "block min-h-20"
|
|
446
|
-
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
447
|
-
autoFocus: true,
|
|
448
|
-
required: true,
|
|
449
|
-
label: t("neetoIntegrations.daily.apiKey"),
|
|
450
|
-
name: "apiKey"
|
|
451
|
-
})), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
452
|
-
disabled: isConnecting || !dirty,
|
|
453
|
-
label: t("neetoIntegrations.common.connect"),
|
|
454
|
-
loading: isConnecting,
|
|
455
|
-
type: "submit"
|
|
456
|
-
})));
|
|
457
|
-
}), /*#__PURE__*/React__default.createElement(WalkthroughModal, {
|
|
458
|
-
videoUrl: videoUrl,
|
|
459
|
-
isOpen: isDemoModalOpen,
|
|
460
|
-
onClose: function onClose() {
|
|
461
|
-
return setIsDemoModalOpen(false);
|
|
462
|
-
}
|
|
463
|
-
})));
|
|
485
|
+
}), /*#__PURE__*/jsx(WalkthroughModal, {
|
|
486
|
+
videoUrl: videoUrl,
|
|
487
|
+
isOpen: isDemoModalOpen,
|
|
488
|
+
onClose: function onClose() {
|
|
489
|
+
return setIsDemoModalOpen(false);
|
|
490
|
+
}
|
|
491
|
+
})]
|
|
492
|
+
})]
|
|
493
|
+
});
|
|
464
494
|
};
|
|
465
495
|
var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
466
496
|
|
|
@@ -494,8 +524,8 @@ var Manage = function Manage(_ref) {
|
|
|
494
524
|
var handleDisconnect = function handleDisconnect() {
|
|
495
525
|
return destroyIntegration("daily");
|
|
496
526
|
};
|
|
497
|
-
if (isFetching || isDisconnecting) return /*#__PURE__*/
|
|
498
|
-
return /*#__PURE__*/
|
|
527
|
+
if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
|
|
528
|
+
return /*#__PURE__*/jsx(Manage$1, {
|
|
499
529
|
isConnected: isConnected,
|
|
500
530
|
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
501
531
|
isDisconnecting: isDisconnecting,
|
|
@@ -505,19 +535,19 @@ var Manage = function Manage(_ref) {
|
|
|
505
535
|
connect: true
|
|
506
536
|
}),
|
|
507
537
|
integration: "daily",
|
|
508
|
-
description: isConnected ? /*#__PURE__*/
|
|
538
|
+
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
509
539
|
i18nKey: "neetoIntegrations.daily.yourApiKey",
|
|
510
540
|
values: {
|
|
511
541
|
apiKey: apiKey
|
|
512
542
|
},
|
|
513
543
|
components: {
|
|
514
|
-
wrapper: /*#__PURE__*/
|
|
544
|
+
wrapper: /*#__PURE__*/jsx("div", {
|
|
515
545
|
className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
|
|
516
546
|
}),
|
|
517
|
-
span: /*#__PURE__*/
|
|
547
|
+
span: /*#__PURE__*/jsx("span", {
|
|
518
548
|
className: "break-all text-sm"
|
|
519
549
|
}),
|
|
520
|
-
copy: /*#__PURE__*/
|
|
550
|
+
copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
521
551
|
className: "flex-shrink-0 self-start",
|
|
522
552
|
style: "text",
|
|
523
553
|
value: apiKey
|
|
@@ -556,12 +586,12 @@ var Daily = function Daily(_ref) {
|
|
|
556
586
|
_ref2$apiKey = _ref2.apiKey,
|
|
557
587
|
apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
|
|
558
588
|
if (isPresent(apiKey) && !isOnboarding || !connect) {
|
|
559
|
-
return /*#__PURE__*/
|
|
589
|
+
return /*#__PURE__*/jsx(Manage, {
|
|
560
590
|
description: description,
|
|
561
591
|
onDisconnect: onDisconnect
|
|
562
592
|
});
|
|
563
593
|
}
|
|
564
|
-
return /*#__PURE__*/
|
|
594
|
+
return /*#__PURE__*/jsx(Form$1, {
|
|
565
595
|
helpDocUrl: helpDocUrl,
|
|
566
596
|
onConnect: onConnect,
|
|
567
597
|
videoUrl: videoUrl
|
|
@@ -575,42 +605,47 @@ var Stepper = function Stepper(_ref) {
|
|
|
575
605
|
var isActiveOrCompleted = function isActiveOrCompleted(activeStatus, completedStatus) {
|
|
576
606
|
return activeStatus || completedStatus;
|
|
577
607
|
};
|
|
578
|
-
return /*#__PURE__*/
|
|
579
|
-
className: "flex gap-4"
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
608
|
+
return /*#__PURE__*/jsx("ul", {
|
|
609
|
+
className: "flex gap-4",
|
|
610
|
+
children: steps === null || steps === void 0 ? void 0 : steps.map(function (_ref2) {
|
|
611
|
+
var step = _ref2.step,
|
|
612
|
+
label = _ref2.label,
|
|
613
|
+
isActive = _ref2.isActive,
|
|
614
|
+
isCompleted = _ref2.isCompleted;
|
|
615
|
+
return /*#__PURE__*/jsxs("li", {
|
|
616
|
+
className: "flex items-center gap-4",
|
|
617
|
+
children: [step !== "1" && /*#__PURE__*/jsx("div", {
|
|
618
|
+
className: classnames("w-10 border-b", {
|
|
619
|
+
"neeto-ui-border-gray-800": isActiveOrCompleted(isActive, isCompleted),
|
|
620
|
+
"neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
|
|
621
|
+
})
|
|
622
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
623
|
+
className: "flex items-center gap-2",
|
|
624
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
625
|
+
className: classnames("neeto-ui-rounded-full neeto-ui-gray-600 flex h-6 w-6 items-center justify-center border", {
|
|
626
|
+
"neeto-ui-bg-success-600 neeto-ui-border-success-600 neeto-ui-text-white": isActive,
|
|
627
|
+
"neeto-ui-bg-primary-600 neeto-ui-border-primary-600 neeto-ui-text-white": isCompleted,
|
|
628
|
+
"neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
|
|
629
|
+
}),
|
|
630
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
631
|
+
component: "span",
|
|
632
|
+
style: "body2",
|
|
633
|
+
weight: "normal",
|
|
634
|
+
children: step
|
|
635
|
+
})
|
|
636
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
637
|
+
style: "body2",
|
|
638
|
+
weight: "normal",
|
|
639
|
+
className: classnames({
|
|
640
|
+
"neeto-ui-text-gray-800": isActiveOrCompleted(isActive, isCompleted),
|
|
641
|
+
"neeto-ui-text-gray-600": !isActiveOrCompleted(isActive, isCompleted)
|
|
642
|
+
}),
|
|
643
|
+
children: label
|
|
644
|
+
})]
|
|
645
|
+
})]
|
|
646
|
+
}, step);
|
|
647
|
+
})
|
|
648
|
+
});
|
|
614
649
|
};
|
|
615
650
|
|
|
616
651
|
var Modal = function Modal(_ref) {
|
|
@@ -621,18 +656,23 @@ var Modal = function Modal(_ref) {
|
|
|
621
656
|
_ref$steps = _ref.steps,
|
|
622
657
|
steps = _ref$steps === void 0 ? {} : _ref$steps,
|
|
623
658
|
children = _ref.children;
|
|
624
|
-
return /*#__PURE__*/
|
|
659
|
+
return /*#__PURE__*/jsxs(NeetoUIModal, {
|
|
625
660
|
isOpen: isOpen,
|
|
626
661
|
onClose: onClose,
|
|
627
662
|
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-transform-none w-screen overflow-y-auto",
|
|
628
|
-
size: "fullScreen"
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
663
|
+
size: "fullScreen",
|
|
664
|
+
children: [/*#__PURE__*/jsx(NeetoUIModal.Header, {
|
|
665
|
+
children: /*#__PURE__*/jsx(Stepper, {
|
|
666
|
+
steps: steps
|
|
667
|
+
})
|
|
668
|
+
}), /*#__PURE__*/jsx(NeetoUIModal.Body, {
|
|
669
|
+
className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow",
|
|
670
|
+
children: /*#__PURE__*/jsx("div", {
|
|
671
|
+
className: "neeto-ui-w-full py-10",
|
|
672
|
+
children: children
|
|
673
|
+
})
|
|
674
|
+
})]
|
|
675
|
+
});
|
|
636
676
|
};
|
|
637
677
|
|
|
638
678
|
function getDefaultExportFromCjs (x) {
|
|
@@ -717,6 +757,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
|
717
757
|
var propTypesExports = propTypes.exports;
|
|
718
758
|
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
719
759
|
|
|
760
|
+
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; }
|
|
761
|
+
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; }
|
|
720
762
|
var Connect = withT(function (_ref) {
|
|
721
763
|
var t = _ref.t,
|
|
722
764
|
Icon = _ref.Icon,
|
|
@@ -724,32 +766,61 @@ var Connect = withT(function (_ref) {
|
|
|
724
766
|
title = _ref$title === void 0 ? "" : _ref$title,
|
|
725
767
|
_ref$description = _ref.description,
|
|
726
768
|
description = _ref$description === void 0 ? "" : _ref$description,
|
|
769
|
+
_ref$integration = _ref.integration,
|
|
770
|
+
integration = _ref$integration === void 0 ? "" : _ref$integration,
|
|
771
|
+
_ref$integrationName = _ref.integrationName,
|
|
772
|
+
integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
|
|
773
|
+
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
774
|
+
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
727
775
|
_ref$buttonProps = _ref.buttonProps,
|
|
728
776
|
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
729
777
|
_ref$onConnect = _ref.onConnect,
|
|
730
778
|
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
731
779
|
children = _ref.children,
|
|
732
780
|
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
733
|
-
return /*#__PURE__*/
|
|
734
|
-
className: "mx-auto w-full max-w-3xl"
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
781
|
+
return /*#__PURE__*/jsxs("div", {
|
|
782
|
+
className: "mx-auto w-full max-w-3xl",
|
|
783
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
784
|
+
className: "mb-6 flex flex-col gap-y-2",
|
|
785
|
+
children: [/*#__PURE__*/jsx(Icon, {
|
|
786
|
+
size: 48
|
|
787
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
788
|
+
className: "flex flex-col gap-y-1",
|
|
789
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
790
|
+
style: "h2",
|
|
791
|
+
children: title
|
|
792
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
793
|
+
style: "body2",
|
|
794
|
+
children: description
|
|
795
|
+
})]
|
|
796
|
+
})]
|
|
797
|
+
}), helpDocUrl && /*#__PURE__*/jsx("div", {
|
|
798
|
+
className: "mb-4",
|
|
799
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
800
|
+
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
801
|
+
components: {
|
|
802
|
+
helpLink: /*#__PURE__*/jsx(Button, {
|
|
803
|
+
className: "text-xs",
|
|
804
|
+
href: helpDocUrl,
|
|
805
|
+
size: "small",
|
|
806
|
+
style: "link",
|
|
807
|
+
target: "_blank"
|
|
808
|
+
})
|
|
809
|
+
},
|
|
810
|
+
values: {
|
|
811
|
+
integration: integrationName || humanize(integration)
|
|
812
|
+
}
|
|
813
|
+
})
|
|
814
|
+
}), children, /*#__PURE__*/jsxs("div", {
|
|
815
|
+
className: "flex w-full items-center gap-x-3",
|
|
816
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$2({
|
|
817
|
+
label: t("neetoIntegrations.common.connect"),
|
|
818
|
+
onClick: onConnect
|
|
819
|
+
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread$2({
|
|
820
|
+
style: "secondary"
|
|
821
|
+
}, secondaryButtonProps))]
|
|
822
|
+
})]
|
|
823
|
+
});
|
|
753
824
|
});
|
|
754
825
|
Connect.prototypes = {
|
|
755
826
|
/**
|
|
@@ -823,6 +894,8 @@ const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
|
823
894
|
height: 344
|
|
824
895
|
}))));
|
|
825
896
|
|
|
897
|
+
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; }
|
|
898
|
+
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; }
|
|
826
899
|
var Finish = withT(function (_ref) {
|
|
827
900
|
var t = _ref.t,
|
|
828
901
|
_ref$onClick = _ref.onClick,
|
|
@@ -834,20 +907,23 @@ var Finish = withT(function (_ref) {
|
|
|
834
907
|
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
835
908
|
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
836
909
|
children = _ref.children;
|
|
837
|
-
return /*#__PURE__*/
|
|
838
|
-
className: "mx-auto w-full max-w-3xl"
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
910
|
+
return /*#__PURE__*/jsxs("div", {
|
|
911
|
+
className: "mx-auto w-full max-w-3xl",
|
|
912
|
+
children: [/*#__PURE__*/jsx(SvgSuccess, {}), /*#__PURE__*/jsx(Typography, {
|
|
913
|
+
className: "mb-6 mt-4",
|
|
914
|
+
style: "h2",
|
|
915
|
+
weight: "semibold",
|
|
916
|
+
children: title
|
|
917
|
+
}), children, /*#__PURE__*/jsxs("div", {
|
|
918
|
+
className: "flex w-full items-center gap-x-2",
|
|
919
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread$1({
|
|
920
|
+
onClick: onClick,
|
|
921
|
+
label: t("neetoIntegrations.common.continue")
|
|
922
|
+
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/jsx(Button, _objectSpread$1({
|
|
923
|
+
style: "secondary"
|
|
924
|
+
}, secondaryButtonProps))]
|
|
925
|
+
})]
|
|
926
|
+
});
|
|
851
927
|
});
|
|
852
928
|
Finish.prototypes = {
|
|
853
929
|
/**
|
|
@@ -939,41 +1015,47 @@ var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
|
939
1015
|
return stepsClone;
|
|
940
1016
|
});
|
|
941
1017
|
}, [activeTab]);
|
|
942
|
-
return /*#__PURE__*/
|
|
1018
|
+
return /*#__PURE__*/jsxs(Modal, {
|
|
943
1019
|
steps: steps,
|
|
944
1020
|
isOpen: true,
|
|
945
|
-
onClose: handleClose
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1021
|
+
onClose: handleClose,
|
|
1022
|
+
children: [activeTab === STEPS.connect && /*#__PURE__*/jsxs("div", {
|
|
1023
|
+
className: "mx-auto w-full max-w-3xl",
|
|
1024
|
+
children: [/*#__PURE__*/jsx(GoogleCalendar$1, {
|
|
1025
|
+
size: 48
|
|
1026
|
+
}), /*#__PURE__*/jsx(Typography, {
|
|
1027
|
+
className: "mb-4 mt-2",
|
|
1028
|
+
style: "h2",
|
|
1029
|
+
children: t("neetoIntegrations.google.connect.title")
|
|
1030
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
1031
|
+
className: "flex w-full flex-col items-start",
|
|
1032
|
+
children: [/*#__PURE__*/jsx(Callout, {
|
|
1033
|
+
className: "block leading-5",
|
|
1034
|
+
children: /*#__PURE__*/jsx(Trans, {
|
|
1035
|
+
components: {
|
|
1036
|
+
bold: /*#__PURE__*/jsx("strong", {})
|
|
1037
|
+
},
|
|
1038
|
+
i18nKey: "neetoIntegrations.google.connect.reminderToAcceptPermissions",
|
|
1039
|
+
values: {
|
|
1040
|
+
selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
|
|
1041
|
+
}
|
|
1042
|
+
})
|
|
1043
|
+
}), permissionImage && /*#__PURE__*/jsx("div", {
|
|
1044
|
+
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border",
|
|
1045
|
+
children: /*#__PURE__*/jsx("img", {
|
|
1046
|
+
src: permissionImage
|
|
1047
|
+
})
|
|
1048
|
+
})]
|
|
1049
|
+
}), /*#__PURE__*/jsx(Button, {
|
|
1050
|
+
icon: Google,
|
|
1051
|
+
label: t("neetoIntegrations.google.connect.signIn"),
|
|
1052
|
+
onClick: fetchAuthorizationUrl
|
|
1053
|
+
})]
|
|
1054
|
+
}), activeTab === STEPS.finish && /*#__PURE__*/jsx(Finish, {
|
|
1055
|
+
title: t("neetoIntegrations.google.finish.title"),
|
|
1056
|
+
onClick: handleRedirect
|
|
1057
|
+
})]
|
|
1058
|
+
});
|
|
977
1059
|
};
|
|
978
1060
|
|
|
979
1061
|
export { GoogleCalendar as default };
|