@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/dist/Zoom.js CHANGED
@@ -1,13 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useState } from 'react';
3
- import { isPresent, noop, isNotEmpty, humanize } from '@bigbinary/neeto-cist';
3
+ import { isPresent, noop, humanize, isNotEmpty } from '@bigbinary/neeto-cist';
4
4
  import { Daily as Daily$1, Zoom as Zoom$1 } from '@bigbinary/neeto-icons/misc';
5
5
  import PageLoader from '@bigbinary/neeto-molecules/PageLoader';
6
6
  import { useTranslation, Trans } from 'react-i18next';
7
7
  import classnames from 'classnames';
8
8
  import { useMutationWithInvalidation, withTitle, useQueryParams, withT } from '@bigbinary/neeto-commons-frontend/react-utils';
9
9
  import { Check } from '@bigbinary/neeto-icons';
10
- import { Button, Typography, Tooltip } from '@bigbinary/neetoui';
10
+ import Button from '@bigbinary/neetoui/Button';
11
+ import Tooltip from '@bigbinary/neetoui/Tooltip';
12
+ import Typography from '@bigbinary/neetoui/Typography';
11
13
  import '@bigbinary/neeto-molecules/IntegrationCard';
12
14
  import DisconnectAlert from '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
13
15
  import WalkthroughModal from '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
@@ -18,10 +20,17 @@ import axios from 'axios';
18
20
  import Container from '@bigbinary/neeto-molecules/Container';
19
21
  import Header from '@bigbinary/neeto-molecules/Header';
20
22
  import HelpPopover from '@bigbinary/neeto-molecules/HelpPopover';
21
- import { Form as Form$2, Input } from '@bigbinary/neetoui/formik';
23
+ import Input from '@bigbinary/neetoui/formik/Input';
24
+ import FormikForm from '@bigbinary/neetoui/formik/Form';
25
+ import ActionBlock from '@bigbinary/neetoui/formik/ActionBlock';
26
+ import { useHistory } from 'react-router-dom';
27
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
22
28
  import { buildUrl } from '@bigbinary/neeto-commons-frontend/utils';
29
+ import '@bigbinary/neetoui/Callout';
23
30
  import 'ramda';
31
+ import '@bigbinary/neetoui/formik/Select';
24
32
  import * as yup from 'yup';
33
+ import '@bigbinary/neetoui/Modal';
25
34
  import CopyToClipboardButton from '@bigbinary/neeto-molecules/CopyToClipboardButton';
26
35
 
27
36
  function _arrayWithHoles(arr) {
@@ -79,21 +88,6 @@ function _slicedToArray(arr, i) {
79
88
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
80
89
  }
81
90
 
82
- function _extends$1() {
83
- _extends$1 = Object.assign ? Object.assign.bind() : function (target) {
84
- for (var i = 1; i < arguments.length; i++) {
85
- var source = arguments[i];
86
- for (var key in source) {
87
- if (Object.prototype.hasOwnProperty.call(source, key)) {
88
- target[key] = source[key];
89
- }
90
- }
91
- }
92
- return target;
93
- };
94
- return _extends$1.apply(this, arguments);
95
- }
96
-
97
91
  function _typeof(o) {
98
92
  "@babel/helpers - typeof";
99
93
 
@@ -164,11 +158,11 @@ var QUERY_KEYS = {
164
158
  ZOOM_DETAILS: "zoom-details"
165
159
  };
166
160
 
167
- 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; }
168
- 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; }
161
+ 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; }
162
+ 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; }
169
163
  var useCreateDaily = function useCreateDaily() {
170
164
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
171
- return useMutationWithInvalidation(dailiesApi.create, _objectSpread({
165
+ return useMutationWithInvalidation(dailiesApi.create, _objectSpread$4({
172
166
  keysToInvalidate: [QUERY_KEYS.DAILY_CO_DETAILS]
173
167
  }, options));
174
168
  };
@@ -215,15 +209,19 @@ function _objectWithoutProperties(source, excluded) {
215
209
  }
216
210
 
217
211
  var _excluded = ["className", "children"];
212
+ 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; }
213
+ 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; }
218
214
  var ExternalLink = function ExternalLink(_ref) {
219
215
  var _ref$className = _ref.className,
220
216
  className = _ref$className === void 0 ? "" : _ref$className,
221
217
  _ref$children = _ref.children,
222
218
  children = _ref$children === void 0 ? null : _ref$children,
223
219
  props = _objectWithoutProperties(_ref, _excluded);
224
- return /*#__PURE__*/React__default.createElement("a", _extends$1({
220
+ return /*#__PURE__*/jsx("a", _objectSpread$3(_objectSpread$3({
225
221
  className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
226
- }, props), children);
222
+ }, props), {}, {
223
+ children: children
224
+ }));
227
225
  };
228
226
  var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
229
227
 
@@ -243,6 +241,7 @@ var Form = function Form(_ref) {
243
241
  breadcrumbs = _ref.breadcrumbs;
244
242
  var _useTranslation = useTranslation(),
245
243
  t = _useTranslation.t;
244
+ var history = useHistory();
246
245
  var _useState = useState(false),
247
246
  _useState2 = _slicedToArray(_useState, 2),
248
247
  isDemoModalOpen = _useState2[0],
@@ -258,70 +257,78 @@ var Form = function Form(_ref) {
258
257
  return createDaily(payload);
259
258
  };
260
259
  if (isConnecting) {
261
- return /*#__PURE__*/React__default.createElement(PageLoader, null);
260
+ return /*#__PURE__*/jsx(PageLoader, {});
262
261
  }
263
- return /*#__PURE__*/React__default.createElement(Container, {
264
- isHeaderFixed: true
265
- }, /*#__PURE__*/React__default.createElement(Header, {
266
- breadcrumbs: breadcrumbs,
267
- title: /*#__PURE__*/React__default.createElement("span", {
268
- className: "flex items-center gap-2"
269
- }, t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/React__default.createElement(HelpPopover, {
270
- title: t("neetoIntegrations.daily.connect.title"),
271
- description: /*#__PURE__*/React__default.createElement(Trans, {
272
- i18nKey: "neetoIntegrations.daily.helpDoc",
273
- components: {
274
- externalLink: /*#__PURE__*/React__default.createElement(ExternalLink$1, {
275
- "data-cy": "api-key-help-doc-link",
276
- href: helpDocUrl,
277
- rel: "noreferrer",
278
- target: "_blank"
279
- })
280
- }
281
- }),
282
- helpLinkProps: {
283
- label: /*#__PURE__*/React__default.createElement(Button, {
284
- className: "mt-8",
285
- label: t("neetoIntegrations.daily.walkthroughText"),
286
- style: "link",
287
- onClick: function onClick() {
288
- return setIsDemoModalOpen(true);
262
+ return /*#__PURE__*/jsxs(Container, {
263
+ isHeaderFixed: true,
264
+ children: [/*#__PURE__*/jsx(Header, {
265
+ breadcrumbs: breadcrumbs,
266
+ title: /*#__PURE__*/jsxs("span", {
267
+ className: "flex items-center gap-2",
268
+ children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
269
+ title: t("neetoIntegrations.daily.connect.title"),
270
+ description: /*#__PURE__*/jsx(Trans, {
271
+ i18nKey: "neetoIntegrations.daily.helpDoc",
272
+ components: {
273
+ externalLink: /*#__PURE__*/jsx(ExternalLink$1, {
274
+ "data-cy": "api-key-help-doc-link",
275
+ href: helpDocUrl,
276
+ rel: "noreferrer",
277
+ target: "_blank"
278
+ })
279
+ }
280
+ }),
281
+ helpLinkProps: {
282
+ label: /*#__PURE__*/jsx(Button, {
283
+ className: "mt-8",
284
+ label: t("neetoIntegrations.daily.walkthroughText"),
285
+ style: "link",
286
+ onClick: function onClick() {
287
+ return setIsDemoModalOpen(true);
288
+ }
289
+ })
289
290
  }
291
+ })]
292
+ })
293
+ }), /*#__PURE__*/jsxs("div", {
294
+ className: "mx-auto w-full max-w-md",
295
+ children: [/*#__PURE__*/jsx(FormikForm, {
296
+ formikProps: {
297
+ initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
298
+ validationSchema: DAILY_CO_VALIDATION_SCHEMA,
299
+ onSubmit: handleSubmit
300
+ },
301
+ children: /*#__PURE__*/jsxs("div", {
302
+ className: "mt-14 w-full space-y-2",
303
+ children: [/*#__PURE__*/jsx("div", {
304
+ className: "block min-h-20",
305
+ children: /*#__PURE__*/jsx(Input, {
306
+ autoFocus: true,
307
+ required: true,
308
+ label: t("neetoIntegrations.daily.apiKey"),
309
+ name: "apiKey"
310
+ })
311
+ }), /*#__PURE__*/jsx(ActionBlock, {
312
+ cancelButtonProps: {
313
+ onClick: function onClick() {
314
+ return history.goBack();
315
+ }
316
+ },
317
+ isSubmitting: isConnecting,
318
+ submitButtonProps: {
319
+ label: t("neetoIntegrations.common.connect")
320
+ }
321
+ })]
290
322
  })
291
- }
292
- }))
293
- }), /*#__PURE__*/React__default.createElement("div", {
294
- className: "mx-auto w-full max-w-md"
295
- }, /*#__PURE__*/React__default.createElement(Form$2, {
296
- formikProps: {
297
- initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
298
- validationSchema: DAILY_CO_VALIDATION_SCHEMA,
299
- onSubmit: handleSubmit
300
- }
301
- }, function (_ref2) {
302
- var dirty = _ref2.dirty;
303
- return /*#__PURE__*/React__default.createElement("div", {
304
- className: "mt-14 w-full space-y-5"
305
- }, /*#__PURE__*/React__default.createElement("div", {
306
- className: "block min-h-20"
307
- }, /*#__PURE__*/React__default.createElement(Input, {
308
- autoFocus: true,
309
- required: true,
310
- label: t("neetoIntegrations.daily.apiKey"),
311
- name: "apiKey"
312
- })), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Button, {
313
- disabled: isConnecting || !dirty,
314
- label: t("neetoIntegrations.common.connect"),
315
- loading: isConnecting,
316
- type: "submit"
317
- })));
318
- }), /*#__PURE__*/React__default.createElement(WalkthroughModal, {
319
- videoUrl: videoUrl,
320
- isOpen: isDemoModalOpen,
321
- onClose: function onClose() {
322
- return setIsDemoModalOpen(false);
323
- }
324
- })));
323
+ }), /*#__PURE__*/jsx(WalkthroughModal, {
324
+ videoUrl: videoUrl,
325
+ isOpen: isDemoModalOpen,
326
+ onClose: function onClose() {
327
+ return setIsDemoModalOpen(false);
328
+ }
329
+ })]
330
+ })]
331
+ });
325
332
  };
326
333
  var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
327
334
 
@@ -355,8 +362,8 @@ var Manage$1 = function Manage$1(_ref) {
355
362
  var handleDisconnect = function handleDisconnect() {
356
363
  return destroyIntegration("daily");
357
364
  };
358
- if (isFetching || isDisconnecting) return /*#__PURE__*/React__default.createElement(PageLoader, null);
359
- return /*#__PURE__*/React__default.createElement(Manage, {
365
+ if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
366
+ return /*#__PURE__*/jsx(Manage, {
360
367
  isConnected: isConnected,
361
368
  isDisconnectAlertOpen: isDisconnectAlertOpen,
362
369
  isDisconnecting: isDisconnecting,
@@ -366,19 +373,19 @@ var Manage$1 = function Manage$1(_ref) {
366
373
  connect: true
367
374
  }),
368
375
  integration: "daily",
369
- description: isConnected ? /*#__PURE__*/React__default.createElement(Trans, {
376
+ description: isConnected ? /*#__PURE__*/jsx(Trans, {
370
377
  i18nKey: "neetoIntegrations.daily.yourApiKey",
371
378
  values: {
372
379
  apiKey: apiKey
373
380
  },
374
381
  components: {
375
- wrapper: /*#__PURE__*/React__default.createElement("div", {
382
+ wrapper: /*#__PURE__*/jsx("div", {
376
383
  className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
377
384
  }),
378
- span: /*#__PURE__*/React__default.createElement("span", {
385
+ span: /*#__PURE__*/jsx("span", {
379
386
  className: "break-all text-sm"
380
387
  }),
381
- copy: /*#__PURE__*/React__default.createElement(CopyToClipboardButton, {
388
+ copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
382
389
  className: "flex-shrink-0 self-start",
383
390
  style: "text",
384
391
  value: apiKey
@@ -417,12 +424,12 @@ var Daily = function Daily(_ref) {
417
424
  _ref2$apiKey = _ref2.apiKey,
418
425
  apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
419
426
  if (isPresent(apiKey) && !isOnboarding || !connect) {
420
- return /*#__PURE__*/React__default.createElement(Manage$1, {
427
+ return /*#__PURE__*/jsx(Manage$1, {
421
428
  description: description,
422
429
  onDisconnect: onDisconnect
423
430
  });
424
431
  }
425
- return /*#__PURE__*/React__default.createElement(Form$1, {
432
+ return /*#__PURE__*/jsx(Form$1, {
426
433
  helpDocUrl: helpDocUrl,
427
434
  onConnect: onConnect,
428
435
  videoUrl: videoUrl
@@ -528,6 +535,8 @@ var factoryWithThrowingShims = function factoryWithThrowingShims() {
528
535
  var propTypesExports = propTypes.exports;
529
536
  var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
530
537
 
538
+ 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; }
539
+ 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; }
531
540
  var Connect = withT(function (_ref) {
532
541
  var t = _ref.t,
533
542
  Icon = _ref.Icon,
@@ -535,32 +544,61 @@ var Connect = withT(function (_ref) {
535
544
  title = _ref$title === void 0 ? "" : _ref$title,
536
545
  _ref$description = _ref.description,
537
546
  description = _ref$description === void 0 ? "" : _ref$description,
547
+ _ref$integration = _ref.integration,
548
+ integration = _ref$integration === void 0 ? "" : _ref$integration,
549
+ _ref$integrationName = _ref.integrationName,
550
+ integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
551
+ _ref$helpDocUrl = _ref.helpDocUrl,
552
+ helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
538
553
  _ref$buttonProps = _ref.buttonProps,
539
554
  buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
540
555
  _ref$onConnect = _ref.onConnect,
541
556
  onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
542
557
  children = _ref.children,
543
558
  secondaryButtonProps = _ref.secondaryButtonProps;
544
- return /*#__PURE__*/React__default.createElement("div", {
545
- className: "mx-auto w-full max-w-3xl"
546
- }, /*#__PURE__*/React__default.createElement("div", {
547
- className: "mb-6 flex flex-col gap-y-2"
548
- }, /*#__PURE__*/React__default.createElement(Icon, {
549
- size: 48
550
- }), /*#__PURE__*/React__default.createElement("div", {
551
- className: "flex flex-col gap-y-1"
552
- }, /*#__PURE__*/React__default.createElement(Typography, {
553
- style: "h2"
554
- }, title), /*#__PURE__*/React__default.createElement(Typography, {
555
- style: "body2"
556
- }, description))), children, /*#__PURE__*/React__default.createElement("div", {
557
- className: "flex w-full items-center gap-x-3"
558
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
559
- label: t("neetoIntegrations.common.connect"),
560
- onClick: onConnect
561
- }, buttonProps)), secondaryButtonProps && /*#__PURE__*/React__default.createElement(Button, _extends$1({
562
- style: "secondary"
563
- }, secondaryButtonProps))));
559
+ return /*#__PURE__*/jsxs("div", {
560
+ className: "mx-auto w-full max-w-3xl",
561
+ children: [/*#__PURE__*/jsxs("div", {
562
+ className: "mb-6 flex flex-col gap-y-2",
563
+ children: [/*#__PURE__*/jsx(Icon, {
564
+ size: 48
565
+ }), /*#__PURE__*/jsxs("div", {
566
+ className: "flex flex-col gap-y-1",
567
+ children: [/*#__PURE__*/jsx(Typography, {
568
+ style: "h2",
569
+ children: title
570
+ }), /*#__PURE__*/jsx(Typography, {
571
+ style: "body2",
572
+ children: description
573
+ })]
574
+ })]
575
+ }), helpDocUrl && /*#__PURE__*/jsx("div", {
576
+ className: "mb-4",
577
+ children: /*#__PURE__*/jsx(Trans, {
578
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
579
+ components: {
580
+ helpLink: /*#__PURE__*/jsx(Button, {
581
+ className: "text-xs",
582
+ href: helpDocUrl,
583
+ size: "small",
584
+ style: "link",
585
+ target: "_blank"
586
+ })
587
+ },
588
+ values: {
589
+ integration: integrationName || humanize(integration)
590
+ }
591
+ })
592
+ }), children, /*#__PURE__*/jsxs("div", {
593
+ className: "flex w-full items-center gap-x-3",
594
+ children: [/*#__PURE__*/jsx(Button, _objectSpread$2({
595
+ label: t("neetoIntegrations.common.connect"),
596
+ onClick: onConnect
597
+ }, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread$2({
598
+ style: "secondary"
599
+ }, secondaryButtonProps))]
600
+ })]
601
+ });
564
602
  });
565
603
  Connect.prototypes = {
566
604
  /**
@@ -634,6 +672,8 @@ const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
634
672
  height: 344
635
673
  }))));
636
674
 
675
+ 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; }
676
+ 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; }
637
677
  var Finish = withT(function (_ref) {
638
678
  var t = _ref.t,
639
679
  _ref$onClick = _ref.onClick,
@@ -645,20 +685,23 @@ var Finish = withT(function (_ref) {
645
685
  _ref$secondaryButtonP = _ref.secondaryButtonProps,
646
686
  secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
647
687
  children = _ref.children;
648
- return /*#__PURE__*/React__default.createElement("div", {
649
- className: "mx-auto w-full max-w-3xl"
650
- }, /*#__PURE__*/React__default.createElement(SvgSuccess, null), /*#__PURE__*/React__default.createElement(Typography, {
651
- className: "mb-6 mt-4",
652
- style: "h2",
653
- weight: "semibold"
654
- }, title), children, /*#__PURE__*/React__default.createElement("div", {
655
- className: "flex w-full items-center gap-x-2"
656
- }, /*#__PURE__*/React__default.createElement(Button, _extends$1({
657
- onClick: onClick,
658
- label: t("neetoIntegrations.common.continue")
659
- }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/React__default.createElement(Button, _extends$1({
660
- style: "secondary"
661
- }, secondaryButtonProps))));
688
+ return /*#__PURE__*/jsxs("div", {
689
+ className: "mx-auto w-full max-w-3xl",
690
+ children: [/*#__PURE__*/jsx(SvgSuccess, {}), /*#__PURE__*/jsx(Typography, {
691
+ className: "mb-6 mt-4",
692
+ style: "h2",
693
+ weight: "semibold",
694
+ children: title
695
+ }), children, /*#__PURE__*/jsxs("div", {
696
+ className: "flex w-full items-center gap-x-2",
697
+ children: [/*#__PURE__*/jsx(Button, _objectSpread$1({
698
+ onClick: onClick,
699
+ label: t("neetoIntegrations.common.continue")
700
+ }, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/jsx(Button, _objectSpread$1({
701
+ style: "secondary"
702
+ }, secondaryButtonProps))]
703
+ })]
704
+ });
662
705
  });
663
706
  Finish.prototypes = {
664
707
  /**
@@ -704,6 +747,8 @@ function n(n, r) {
704
747
  var css = ".intrinsic-container{height:0;overflow:hidden;position:relative}.intrinsic-container-16x9{padding-bottom:56.25%}.intrinsic-container-4x3{padding-bottom:75%}.intrinsic-container iframe{height:100%;left:0;position:absolute;top:0;width:100%}";
705
748
  n(css,{});
706
749
 
750
+ 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; }
751
+ 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; }
707
752
  var Manage = withT(function (_ref) {
708
753
  var t = _ref.t,
709
754
  _ref$title = _ref.title,
@@ -747,86 +792,107 @@ var Manage = withT(function (_ref) {
747
792
  _ref$isConnectDisable = _ref.isConnectDisabled,
748
793
  isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
749
794
  _ref$connectTooltipPr = _ref.connectTooltipProps,
750
- connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr;
751
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
752
- className: "mx-auto w-full max-w-3xl"
753
- }, /*#__PURE__*/React__default.createElement("div", {
754
- className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6"
755
- }, Icon && /*#__PURE__*/React__default.createElement(Icon, {
756
- className: "neeto-ui-text-gray-600",
757
- size: 48
758
- }), /*#__PURE__*/React__default.createElement("div", {
759
- className: "space-y-2"
760
- }, /*#__PURE__*/React__default.createElement("div", {
761
- className: "flex items-center space-x-4"
762
- }, /*#__PURE__*/React__default.createElement(Typography, {
763
- className: "neeto-ui-text-gray-800 mb-0.5",
764
- style: "h2",
765
- weight: "semibold"
766
- }, title), isConnected && /*#__PURE__*/React__default.createElement("div", {
767
- className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1"
768
- }, /*#__PURE__*/React__default.createElement(Check, {
769
- size: 24
770
- }))), /*#__PURE__*/React__default.createElement(Typography, {
771
- style: "body1",
772
- weight: "normal",
773
- className: classnames("neeto-ui-text-gray-800", {
774
- "break-all": isConnected
775
- })
776
- }, description), helpDocUrl && /*#__PURE__*/React__default.createElement(Typography, {
777
- className: "neeto-ui-text-gray-800",
778
- style: "body2",
779
- weight: "normal"
780
- }, /*#__PURE__*/React__default.createElement(Trans, {
781
- i18nKey: "neetoIntegrations.common.helpDocUrl",
782
- components: {
783
- helpLink: /*#__PURE__*/React__default.createElement(Button, {
784
- href: helpDocUrl,
785
- style: "link",
786
- target: "_blank"
795
+ connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr,
796
+ _ref$buttonProps = _ref.buttonProps,
797
+ buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
798
+ _ref$secondaryButtonP = _ref.secondaryButtonProps,
799
+ secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
800
+ return /*#__PURE__*/jsxs(Fragment, {
801
+ children: [/*#__PURE__*/jsx("div", {
802
+ className: "mx-auto w-full max-w-3xl",
803
+ children: /*#__PURE__*/jsxs("div", {
804
+ className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6",
805
+ children: [Icon && /*#__PURE__*/jsx(Icon, {
806
+ className: "neeto-ui-text-gray-600",
807
+ size: 48
808
+ }), /*#__PURE__*/jsxs("div", {
809
+ className: "space-y-2",
810
+ children: [/*#__PURE__*/jsxs("div", {
811
+ className: "flex items-center space-x-4",
812
+ children: [/*#__PURE__*/jsx(Typography, {
813
+ className: "neeto-ui-text-gray-800 mb-0.5",
814
+ style: "h2",
815
+ weight: "semibold",
816
+ children: title
817
+ }), isConnected && /*#__PURE__*/jsx("div", {
818
+ className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1",
819
+ children: /*#__PURE__*/jsx(Check, {
820
+ size: 24
821
+ })
822
+ })]
823
+ }), /*#__PURE__*/jsx(Typography, {
824
+ style: "body1",
825
+ weight: "normal",
826
+ className: classnames("neeto-ui-text-gray-800", {
827
+ "break-all": isConnected
828
+ }),
829
+ children: description
830
+ }), helpDocUrl && /*#__PURE__*/jsx(Typography, {
831
+ className: "neeto-ui-text-gray-800",
832
+ style: "body2",
833
+ weight: "normal",
834
+ children: /*#__PURE__*/jsx(Trans, {
835
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
836
+ components: {
837
+ helpLink: /*#__PURE__*/jsx(Button, {
838
+ href: helpDocUrl,
839
+ style: "link",
840
+ target: "_blank"
841
+ })
842
+ },
843
+ values: {
844
+ integration: integrationName || humanize(integration)
845
+ }
846
+ })
847
+ })]
848
+ }), isConnected ? /*#__PURE__*/jsxs("div", {
849
+ className: "space-x-2",
850
+ children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread({
851
+ "data-cy": "manage-button",
852
+ href: manageUrl,
853
+ target: manageUrl ? "_blank" : "_self",
854
+ to: managePath,
855
+ label: t("neetoIntegrations.common.manageIntegration", {
856
+ integration: integrationName || humanize(integration)
857
+ })
858
+ }, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread({
859
+ "data-cy": "disconnect-button",
860
+ style: "secondary",
861
+ label: t("neetoIntegrations.common.disconnectIntegration", {
862
+ integration: integrationName || humanize(integration)
863
+ }),
864
+ onClick: function onClick() {
865
+ return setIsDisconnectAlertOpen(true);
866
+ }
867
+ }, secondaryButtonProps))]
868
+ }) : /*#__PURE__*/jsx("div", {
869
+ children: /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({
870
+ disabled: !isConnectDisabled
871
+ }, connectTooltipProps), {}, {
872
+ children: /*#__PURE__*/jsx("span", {
873
+ children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread({
874
+ "data-cy": "connect-button",
875
+ disabled: isConnectDisabled,
876
+ href: connectUrl,
877
+ to: connectPath,
878
+ label: t("neetoIntegrations.common.connectIntegration", {
879
+ integration: integrationName || humanize(integration)
880
+ }),
881
+ onClick: onConnect
882
+ }, buttonProps))
883
+ })
884
+ }))
885
+ })]
787
886
  })
788
- },
789
- values: {
790
- integration: integrationName || humanize(integration)
791
- }
792
- }))), isConnected ? /*#__PURE__*/React__default.createElement("div", {
793
- className: "space-x-2"
794
- }, (managePath || manageUrl) && /*#__PURE__*/React__default.createElement(Button, {
795
- "data-cy": "manage-button",
796
- href: manageUrl,
797
- target: manageUrl ? "_blank" : "_self",
798
- to: managePath,
799
- label: t("neetoIntegrations.common.manageIntegration", {
800
- integration: integrationName || humanize(integration)
801
- })
802
- }), onDisconnect && /*#__PURE__*/React__default.createElement(Button, {
803
- "data-cy": "disconnect-button",
804
- style: "secondary",
805
- label: t("neetoIntegrations.common.disconnectIntegration", {
806
- integration: integrationName || humanize(integration)
807
- }),
808
- onClick: function onClick() {
809
- return setIsDisconnectAlertOpen(true);
810
- }
811
- })) : /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Tooltip, _extends$1({
812
- disabled: !isConnectDisabled
813
- }, connectTooltipProps), /*#__PURE__*/React__default.createElement("span", null, (connectPath || connectUrl || onConnect) && /*#__PURE__*/React__default.createElement(Button, {
814
- "data-cy": "connect-button",
815
- disabled: isConnectDisabled,
816
- href: connectUrl,
817
- to: connectPath,
818
- label: t("neetoIntegrations.common.connectIntegration", {
819
- integration: integrationName || humanize(integration)
820
- }),
821
- onClick: onConnect
822
- })))))), /*#__PURE__*/React__default.createElement(DisconnectAlert, {
823
- isDisconnecting: isDisconnecting,
824
- onClose: onClose,
825
- onDisconnect: onDisconnect,
826
- isOpen: isDisconnectAlertOpen,
827
- message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
828
- title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
829
- }));
887
+ }), /*#__PURE__*/jsx(DisconnectAlert, {
888
+ isDisconnecting: isDisconnecting,
889
+ onClose: onClose,
890
+ onDisconnect: onDisconnect,
891
+ isOpen: isDisconnectAlertOpen,
892
+ message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
893
+ title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
894
+ })]
895
+ });
830
896
  });
831
897
 
832
898
  var show = function show() {
@@ -893,8 +959,8 @@ var Zoom = function Zoom(_ref) {
893
959
  var handleDisconnect = function handleDisconnect() {
894
960
  return destroyIntegration("zoom");
895
961
  };
896
- if (isLoading) return /*#__PURE__*/React__default.createElement(PageLoader, null);
897
- return /*#__PURE__*/React__default.createElement(Manage, {
962
+ if (isLoading) return /*#__PURE__*/jsx(PageLoader, {});
963
+ return /*#__PURE__*/jsx(Manage, {
898
964
  connectUrl: connectUrl,
899
965
  isConnected: isConnected,
900
966
  isDisconnectAlertOpen: isDisconnectAlertOpen,
@@ -902,9 +968,9 @@ var Zoom = function Zoom(_ref) {
902
968
  setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
903
969
  Icon: Zoom$1,
904
970
  integration: "zoom",
905
- description: isConnected ? /*#__PURE__*/React__default.createElement(Trans, {
971
+ description: isConnected ? /*#__PURE__*/jsx(Trans, {
906
972
  components: {
907
- underline: /*#__PURE__*/React__default.createElement("u", {
973
+ underline: /*#__PURE__*/jsx("u", {
908
974
  className: "font-medium"
909
975
  })
910
976
  },