@bigbinary/neeto-integrations-frontend 4.2.8 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/app/javascript/src/translations/en.json +9 -9
  2. package/dist/.ready +1 -1
  3. package/dist/Connect.js +1 -3
  4. package/dist/Connect.js.map +1 -1
  5. package/dist/Daily.js +2 -2
  6. package/dist/Daily.js.map +1 -1
  7. package/dist/DailyForm.js +2 -2
  8. package/dist/DailyForm.js.map +1 -1
  9. package/dist/Demo.js.map +1 -1
  10. package/dist/DisconnectAlert.js +1 -3
  11. package/dist/DisconnectAlert.js.map +1 -1
  12. package/dist/Finish.js +29 -6
  13. package/dist/Finish.js.map +1 -1
  14. package/dist/GoogleCalendar.js +1 -4
  15. package/dist/GoogleCalendar.js.map +1 -1
  16. package/dist/Manage.js +1 -3
  17. package/dist/Manage.js.map +1 -1
  18. package/dist/Modal.js.map +1 -1
  19. package/dist/Telnyx.js +8 -8
  20. package/dist/Telnyx.js.map +1 -1
  21. package/dist/Twilio.js +2 -4
  22. package/dist/Twilio.js.map +1 -1
  23. package/dist/WalkthroughModal.js.map +1 -1
  24. package/dist/ZapierForm.js +2 -6
  25. package/dist/ZapierForm.js.map +1 -1
  26. package/dist/Zoom.js +1 -1
  27. package/dist/Zoom.js.map +1 -1
  28. package/dist/cjs/Connect.js +1 -3
  29. package/dist/cjs/Connect.js.map +1 -1
  30. package/dist/cjs/Daily.js +2 -2
  31. package/dist/cjs/Daily.js.map +1 -1
  32. package/dist/cjs/DailyForm.js +2 -2
  33. package/dist/cjs/DailyForm.js.map +1 -1
  34. package/dist/cjs/Demo.js.map +1 -1
  35. package/dist/cjs/DisconnectAlert.js +1 -3
  36. package/dist/cjs/DisconnectAlert.js.map +1 -1
  37. package/dist/cjs/Finish.js +48 -6
  38. package/dist/cjs/Finish.js.map +1 -1
  39. package/dist/cjs/GoogleCalendar.js +1 -4
  40. package/dist/cjs/GoogleCalendar.js.map +1 -1
  41. package/dist/cjs/Manage.js +1 -3
  42. package/dist/cjs/Manage.js.map +1 -1
  43. package/dist/cjs/Modal.js.map +1 -1
  44. package/dist/cjs/Telnyx.js +8 -8
  45. package/dist/cjs/Telnyx.js.map +1 -1
  46. package/dist/cjs/Twilio.js +2 -4
  47. package/dist/cjs/Twilio.js.map +1 -1
  48. package/dist/cjs/WalkthroughModal.js.map +1 -1
  49. package/dist/cjs/ZapierForm.js +2 -6
  50. package/dist/cjs/ZapierForm.js.map +1 -1
  51. package/dist/cjs/Zoom.js +1 -1
  52. package/dist/cjs/Zoom.js.map +1 -1
  53. package/dist/cjs/index.js +5 -5
  54. package/dist/cjs/index.js.map +1 -1
  55. package/dist/cjs/v2/Connect.js +48 -46
  56. package/dist/cjs/v2/Connect.js.map +1 -1
  57. package/dist/cjs/v2/Daily.js +5 -3
  58. package/dist/cjs/v2/Daily.js.map +1 -1
  59. package/dist/cjs/v2/DailyForm.js +2 -2
  60. package/dist/cjs/v2/DailyForm.js.map +1 -1
  61. package/dist/cjs/v2/Demo.js.map +1 -1
  62. package/dist/cjs/v2/DisconnectAlert.js +1 -3
  63. package/dist/cjs/v2/DisconnectAlert.js.map +1 -1
  64. package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +1 -3
  65. package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
  66. package/dist/cjs/v2/Finish.js +4 -6
  67. package/dist/cjs/v2/Finish.js.map +1 -1
  68. package/dist/cjs/v2/GoogleCalendar.js +1 -4
  69. package/dist/cjs/v2/GoogleCalendar.js.map +1 -1
  70. package/dist/cjs/v2/GoogleMapsForm.js +2 -2
  71. package/dist/cjs/v2/GoogleMapsForm.js.map +1 -1
  72. package/dist/cjs/v2/GoogleMapsIcon.js.map +1 -1
  73. package/dist/cjs/v2/GoogleMapsManage.js +5 -3
  74. package/dist/cjs/v2/GoogleMapsManage.js.map +1 -1
  75. package/dist/cjs/v2/Manage.js +70 -91
  76. package/dist/cjs/v2/Manage.js.map +1 -1
  77. package/dist/cjs/v2/Modal.js +1 -1
  78. package/dist/cjs/v2/Modal.js.map +1 -1
  79. package/dist/cjs/v2/SmsLogs.js +3 -9
  80. package/dist/cjs/v2/SmsLogs.js.map +1 -1
  81. package/dist/cjs/v2/Telnyx.js +26 -43
  82. package/dist/cjs/v2/Telnyx.js.map +1 -1
  83. package/dist/cjs/v2/Twilio.js +20 -39
  84. package/dist/cjs/v2/Twilio.js.map +1 -1
  85. package/dist/cjs/v2/WalkthroughModal.js.map +1 -1
  86. package/dist/cjs/v2/ZapierForm.js +4 -7
  87. package/dist/cjs/v2/ZapierForm.js.map +1 -1
  88. package/dist/cjs/v2/Zoom.js +4 -2
  89. package/dist/cjs/v2/Zoom.js.map +1 -1
  90. package/dist/cjs/v2/index.js +11 -8
  91. package/dist/cjs/v2/index.js.map +1 -1
  92. package/dist/index-MS1ts-9f.js.map +1 -1
  93. package/dist/index-dxk7jTL7.js.map +1 -1
  94. package/dist/index.js +5 -5
  95. package/dist/index.js.map +1 -1
  96. package/dist/query-CyER0UTx.js.map +1 -1
  97. package/dist/query-DFg4la-L.js.map +1 -1
  98. package/dist/{useDailiesApi-CMyuK99l.js → useDailiesApi-BIZR1qiD.js} +2 -4
  99. package/dist/useDailiesApi-BIZR1qiD.js.map +1 -0
  100. package/dist/{useDailiesApi-BmI2LDF7.js → useDailiesApi-BS8aif9t.js} +2 -4
  101. package/dist/useDailiesApi-BS8aif9t.js.map +1 -0
  102. package/dist/useDisconnectionAlertsApi-BGaBOO_4.js.map +1 -1
  103. package/dist/useDisconnectionAlertsApi-BW25EN1l.js.map +1 -1
  104. package/dist/{useGoogleMapsApi-DypGXFnl.js → useGoogleMapsApi-DcJ5vTJZ.js} +2 -4
  105. package/dist/useGoogleMapsApi-DcJ5vTJZ.js.map +1 -0
  106. package/dist/{useGoogleMapsApi-BY5ZIbh1.js → useGoogleMapsApi-sMsxsnL9.js} +2 -4
  107. package/dist/useGoogleMapsApi-sMsxsnL9.js.map +1 -0
  108. package/dist/{useTelnyxApi-DH5XaYIo.js → useTelnyxApi-CqB3f44W.js} +2 -4
  109. package/dist/useTelnyxApi-CqB3f44W.js.map +1 -0
  110. package/dist/{useTelnyxApi-WH39oUwB.js → useTelnyxApi-fFpslv-E.js} +2 -4
  111. package/dist/useTelnyxApi-fFpslv-E.js.map +1 -0
  112. package/dist/{useTwilioApi-CYF8UIPN.js → useTwilioApi-BwkrNBtg.js} +2 -4
  113. package/dist/useTwilioApi-BwkrNBtg.js.map +1 -0
  114. package/dist/{useTwilioApi-nN6VRQYc.js → useTwilioApi-CEaEH5MG.js} +2 -4
  115. package/dist/useTwilioApi-CEaEH5MG.js.map +1 -0
  116. package/dist/useZoomApi-Be2unav5.js.map +1 -1
  117. package/dist/useZoomApi-i5CNstmT.js.map +1 -1
  118. package/dist/utils-fchHJTr3.js +44 -0
  119. package/dist/utils-fchHJTr3.js.map +1 -0
  120. package/dist/utils-jyxIYRHb.js +47 -0
  121. package/dist/utils-jyxIYRHb.js.map +1 -0
  122. package/dist/v2/Connect.js +48 -46
  123. package/dist/v2/Connect.js.map +1 -1
  124. package/dist/v2/Daily.js +5 -3
  125. package/dist/v2/Daily.js.map +1 -1
  126. package/dist/v2/DailyForm.js +2 -2
  127. package/dist/v2/DailyForm.js.map +1 -1
  128. package/dist/v2/Demo.js.map +1 -1
  129. package/dist/v2/DisconnectAlert.js +1 -3
  130. package/dist/v2/DisconnectAlert.js.map +1 -1
  131. package/dist/v2/DisconnectedIntegrationsRibbon.js +1 -3
  132. package/dist/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
  133. package/dist/v2/Finish.js +6 -8
  134. package/dist/v2/Finish.js.map +1 -1
  135. package/dist/v2/GoogleCalendar.js +1 -4
  136. package/dist/v2/GoogleCalendar.js.map +1 -1
  137. package/dist/v2/GoogleMapsForm.js +2 -2
  138. package/dist/v2/GoogleMapsForm.js.map +1 -1
  139. package/dist/v2/GoogleMapsIcon.js.map +1 -1
  140. package/dist/v2/GoogleMapsManage.js +5 -3
  141. package/dist/v2/GoogleMapsManage.js.map +1 -1
  142. package/dist/v2/Manage.js +72 -93
  143. package/dist/v2/Manage.js.map +1 -1
  144. package/dist/v2/Modal.js +1 -1
  145. package/dist/v2/Modal.js.map +1 -1
  146. package/dist/v2/SmsLogs.js +3 -9
  147. package/dist/v2/SmsLogs.js.map +1 -1
  148. package/dist/v2/Telnyx.js +27 -44
  149. package/dist/v2/Telnyx.js.map +1 -1
  150. package/dist/v2/Twilio.js +21 -40
  151. package/dist/v2/Twilio.js.map +1 -1
  152. package/dist/v2/WalkthroughModal.js.map +1 -1
  153. package/dist/v2/ZapierForm.js +4 -7
  154. package/dist/v2/ZapierForm.js.map +1 -1
  155. package/dist/v2/Zoom.js +4 -2
  156. package/dist/v2/Zoom.js.map +1 -1
  157. package/dist/v2/index.js +11 -8
  158. package/dist/v2/index.js.map +1 -1
  159. package/package.json +19 -18
  160. package/dist/success-C6rQdhhF.js +0 -30
  161. package/dist/success-C6rQdhhF.js.map +0 -1
  162. package/dist/success-CsNvTPBG.js +0 -51
  163. package/dist/success-CsNvTPBG.js.map +0 -1
  164. package/dist/useDailiesApi-BmI2LDF7.js.map +0 -1
  165. package/dist/useDailiesApi-CMyuK99l.js.map +0 -1
  166. package/dist/useGoogleMapsApi-BY5ZIbh1.js.map +0 -1
  167. package/dist/useGoogleMapsApi-DypGXFnl.js.map +0 -1
  168. package/dist/useTelnyxApi-DH5XaYIo.js.map +0 -1
  169. package/dist/useTelnyxApi-WH39oUwB.js.map +0 -1
  170. package/dist/useTwilioApi-CYF8UIPN.js.map +0 -1
  171. package/dist/useTwilioApi-nN6VRQYc.js.map +0 -1
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
4
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ // Dark mode only: a light chip filling the logo tile, applied when the logo
8
+ // is drawn with fixed brand colours (a hex fill) rather than currentColor.
9
+ var BRAND_LOGO_CHIP_CLASSES = "inline-flex shrink-0 items-center justify-center dark:has-[[fill^='#']]:size-14 dark:has-[[fill^='#']]:rounded-2xl dark:has-[[fill^='#']]:bg-primary-foreground";
10
+
11
+ // Neeto product logos are drawn edge to edge, brand logos (Slack, Drive…) with
12
+ // built-in padding, so at the same size a Neeto logo reads bigger. Draw them a
13
+ // step smaller (as molecules' integration cards do) so the glyphs match.
14
+ var BRAND_LOGO_SIZE = 32;
15
+ var NEETO_LOGO_SIZE = 27;
16
+ var NEETO_INTEGRATION = /^neeto/i;
17
+
18
+ var _excluded = ["icon", "size"];
19
+ var BrandLogo = function BrandLogo(_ref) {
20
+ var Icon = _ref.icon,
21
+ size = _ref.size,
22
+ iconProps = _objectWithoutProperties(_ref, _excluded);
23
+ return /*#__PURE__*/jsxRuntime.jsx("span", {
24
+ className: BRAND_LOGO_CHIP_CLASSES,
25
+ "data-slot": "brand-logo",
26
+ children: /*#__PURE__*/jsxRuntime.jsx(Icon, _objectSpread(_objectSpread({}, _objectSpread({
27
+ size: size
28
+ }, iconProps)), {}, {
29
+ style: size ? {
30
+ width: size,
31
+ height: size
32
+ } : undefined
33
+ }))
34
+ });
35
+ };
36
+
37
+ var getBrandLogoSize = function getBrandLogoSize(_ref) {
38
+ var integration = _ref.integration,
39
+ integrationName = _ref.integrationName;
40
+ return [integration, integrationName].some(function (name) {
41
+ return NEETO_INTEGRATION.test(name !== null && name !== void 0 ? name : "");
42
+ }) ? NEETO_LOGO_SIZE : BRAND_LOGO_SIZE;
43
+ };
44
+
45
+ exports.BrandLogo = BrandLogo;
46
+ exports.getBrandLogoSize = getBrandLogoSize;
47
+ //# sourceMappingURL=utils-jyxIYRHb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-jyxIYRHb.js","sources":["../app/javascript/src/v2/components/commons/constants.js","../app/javascript/src/v2/components/commons/BrandLogo.jsx","../app/javascript/src/v2/components/commons/utils.js"],"sourcesContent":["// Dark mode only: a light chip filling the logo tile, applied when the logo\n// is drawn with fixed brand colours (a hex fill) rather than currentColor.\nexport const BRAND_LOGO_CHIP_CLASSES =\n \"inline-flex shrink-0 items-center justify-center dark:has-[[fill^='#']]:size-14 dark:has-[[fill^='#']]:rounded-2xl dark:has-[[fill^='#']]:bg-primary-foreground\";\n\n// Neeto product logos are drawn edge to edge, brand logos (Slack, Drive…) with\n// built-in padding, so at the same size a Neeto logo reads bigger. Draw them a\n// step smaller (as molecules' integration cards do) so the glyphs match.\nexport const BRAND_LOGO_SIZE = 32;\nexport const NEETO_LOGO_SIZE = 27;\nexport const NEETO_INTEGRATION = /^neeto/i;\n","import { BRAND_LOGO_CHIP_CLASSES } from \"./constants\";\n\n// v2 revamp: brand logos keep their own colours, and some have dark parts\n// (PayPal's navy, UPI's grey) that vanish on a dark logo tile. In dark mode a\n// logo drawn with fixed brand colours sits on a light chip that fills the\n// tile, the usual treatment for brand logos on dark surfaces. Single-colour\n// icons (drawn in currentColor) keep the plain tile. Light mode is unchanged:\n// the wrapper only lays the logo out the way the tile already does.\n// The size is also set inline: the molecules card tile sizes every svg to 32px\n// with a class, which would undo the smaller size of Neeto logos.\nconst BrandLogo = ({ icon: Icon, size, ...iconProps }) => (\n <span className={BRAND_LOGO_CHIP_CLASSES} data-slot=\"brand-logo\">\n <Icon\n {...{ size, ...iconProps }}\n style={size ? { width: size, height: size } : undefined}\n />\n </span>\n);\n\nexport default BrandLogo;\n","import {\n BRAND_LOGO_SIZE,\n NEETO_INTEGRATION,\n NEETO_LOGO_SIZE,\n} from \"./constants\";\n\nexport const getBrandLogoSize = ({ integration, integrationName }) =>\n [integration, integrationName].some(name =>\n NEETO_INTEGRATION.test(name ?? \"\")\n )\n ? NEETO_LOGO_SIZE\n : BRAND_LOGO_SIZE;\n"],"names":["_jsx"],"mappings":";;;;;;AAAA;AACA;AACO,IAAM,uBAAuB,GAClC,iKAAiK;;AAEnK;AACA;AACA;AACO,IAAM,eAAe,GAAG,EAAE;AAC1B,IAAM,eAAe,GAAG,EAAE;AAC1B,IAAM,iBAAiB,GAAG,SAAS;;;ACA1C,IAAM,SAAS,GAAG,SAAZ,SAAS,CAAA,IAAA,EAAA;EAAA,IAAY,IAAI,QAAV,IAAI;AAAQ,IAAA,IAAI,QAAJ,IAAI;IAAK,SAAS,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;EAAA,oBACjDA,cAAA,CAAA,MAAA,EAAA;AAAM,IAAA,SAAS,EAAE,uBAAwB;AAAC,IAAA,WAAA,EAAU,YAAY;AAAA,IAAA,QAAA,eAC9DA,eAAC,IAAI,EAAA,aAAA,CAAA,aAAA,CAAA,EAAA,EAAA,aAAA,CAAA;AACG,MAAA,IAAI,EAAJ;AAAI,KAAA,EAAK,SAAS,CAAA,CAAA,EAAA,EAAA,EAAA;MACxB,KAAK,EAAE,IAAI,GAAG;AAAE,QAAA,KAAK,EAAE,IAAI;AAAE,QAAA,MAAM,EAAE;AAAK,OAAC,GAAG;KAAU,CACzD;AAAC,GACE,CAAC;AAAA;;ACVF,IAAM,gBAAgB,GAAG,SAAnB,gBAAgB,CAAA,IAAA,EAAA;EAAA,IAAM,WAAW,QAAX,WAAW;AAAE,IAAA,eAAe,QAAf,eAAe;EAAA,OAC7D,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC,IAAI,CAAC,UAAA,IAAI,EAAA;IAAA,OACtC,iBAAiB,CAAC,IAAI,CAAC,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAJ,IAAI,GAAI,EAAE,CAAC;AAAA,EAAA,CACpC,CAAC,GACG,eAAe,GACf,eAAe;AAAA;;;;;"}
@@ -1,14 +1,14 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import { Typography, Button } from '@bigbinary/neeto-atoms';
3
3
  import { humanize, noop } from '@bigbinary/neeto-cist';
4
4
  import { withT } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
5
5
  import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
6
6
  import { P as PropTypes } from '../index-MS1ts-9f.js';
7
7
  import { Trans } from 'react-i18next';
8
+ import { B as BrandLogo, g as getBrandLogoSize } from '../utils-fchHJTr3.js';
8
9
  import { jsxs, jsx } from 'react/jsx-runtime';
10
+ import '@babel/runtime/helpers/objectWithoutProperties';
9
11
 
10
- 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; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
12
12
  var Connect = withT(function (_ref) {
13
13
  var t = _ref.t,
14
14
  Icon = _ref.Icon,
@@ -28,49 +28,51 @@ var Connect = withT(function (_ref) {
28
28
  onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
29
29
  children = _ref.children,
30
30
  secondaryButtonProps = _ref.secondaryButtonProps;
31
- return /*#__PURE__*/jsxs(CardLayout, {
32
- actionBlock: /*#__PURE__*/jsxs("div", {
33
- className: "flex w-full flex-wrap items-center gap-2",
34
- children: [/*#__PURE__*/jsx(Button, _objectSpread({
35
- label: t("neetoIntegrations.common.connect"),
36
- onClick: onConnect
37
- }, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread({
38
- variant: "secondary"
39
- }, secondaryButtonProps))]
40
- }),
41
- children: [/*#__PURE__*/jsxs("div", {
42
- className: "flex flex-col gap-y-2",
43
- children: [/*#__PURE__*/jsx(Icon, {
44
- size: 48
45
- }), /*#__PURE__*/jsxs("div", {
46
- className: "flex flex-col gap-y-1",
47
- children: [/*#__PURE__*/jsx(Typography, {
48
- variant: "h4",
49
- children: title
50
- }), /*#__PURE__*/jsx(Typography, {
51
- variant: "body2",
52
- children: description
53
- })]
54
- })]
55
- }), helpDocUrl && /*#__PURE__*/jsx("div", {
56
- className: "w-full",
57
- children: /*#__PURE__*/jsx(Trans, {
58
- i18nKey: "neetoIntegrations.common.helpDocUrl",
59
- components: {
60
- helpLink: /*#__PURE__*/jsx(Button, {
61
- className: "text-xs",
62
- href: helpDocUrl,
63
- size: "sm",
64
- target: "_blank",
65
- variant: "link"
66
- })
67
- },
68
- values: {
69
- integration: integrationName || humanize(integration)
70
- }
71
- })
72
- }), children]
73
- });
31
+ return (
32
+ /*#__PURE__*/
33
+ // v2 card system: the molecules feature card, like Manage, so connect and
34
+ // manage screens share one layout (logo tile, title, muted description,
35
+ // extra content and actions in the text column).
36
+ jsxs(CardLayout, {
37
+ description: description,
38
+ title: title,
39
+ variant: "feature",
40
+ actionBlock: /*#__PURE__*/jsxs("div", {
41
+ className: "flex w-full flex-wrap items-center gap-2",
42
+ children: [/*#__PURE__*/jsx(Button, _objectSpread({
43
+ label: t("neetoIntegrations.common.connect"),
44
+ onClick: onConnect
45
+ }, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread({
46
+ variant: "secondary"
47
+ }, secondaryButtonProps))]
48
+ }),
49
+ icon: Icon && /*#__PURE__*/jsx(BrandLogo, {
50
+ icon: Icon,
51
+ size: getBrandLogoSize({
52
+ integration: integration,
53
+ integrationName: integrationName
54
+ })
55
+ }),
56
+ children: [helpDocUrl && /*#__PURE__*/jsx(Typography, {
57
+ className: "text-muted-foreground text-sm leading-relaxed",
58
+ variant: "body2",
59
+ children: /*#__PURE__*/jsx(Trans, {
60
+ i18nKey: "neetoIntegrations.common.helpDocUrl",
61
+ components: {
62
+ helpLink: /*#__PURE__*/jsx(Button, {
63
+ href: helpDocUrl,
64
+ rel: "noopener noreferrer",
65
+ target: "_blank",
66
+ variant: "link"
67
+ })
68
+ },
69
+ values: {
70
+ integration: integrationName || humanize(integration)
71
+ }
72
+ })
73
+ }), children]
74
+ })
75
+ );
74
76
  });
75
77
  Connect.prototypes = {
76
78
  Icon: PropTypes.node,
@@ -1 +1 @@
1
- {"version":3,"file":"Connect.js","sources":["../../app/javascript/src/v2/components/Steps/Connect.jsx"],"sourcesContent":["import { Typography, Button } from \"@bigbinary/neeto-atoms\";\nimport { humanize, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nconst Connect = withT(\n ({\n t,\n Icon,\n title = \"\",\n description = \"\",\n integration = \"\",\n integrationName = \"\",\n helpDocUrl = \"\",\n buttonProps = {},\n onConnect = noop,\n children,\n secondaryButtonProps,\n }) => (\n <CardLayout\n actionBlock={\n <div className=\"flex w-full flex-wrap items-center gap-2\">\n <Button\n label={t(\"neetoIntegrations.common.connect\")}\n onClick={onConnect}\n {...buttonProps}\n />\n {secondaryButtonProps && (\n <Button variant=\"secondary\" {...secondaryButtonProps} />\n )}\n </div>\n }\n >\n <div className=\"flex flex-col gap-y-2\">\n <Icon size={48} />\n <div className=\"flex flex-col gap-y-1\">\n <Typography variant=\"h4\">{title}</Typography>\n <Typography variant=\"body2\">{description}</Typography>\n </div>\n </div>\n {helpDocUrl && (\n <div className=\"w-full\">\n <Trans\n i18nKey=\"neetoIntegrations.common.helpDocUrl\"\n components={{\n helpLink: (\n <Button\n className=\"text-xs\"\n href={helpDocUrl}\n size=\"sm\"\n target=\"_blank\"\n variant=\"link\"\n />\n ),\n }}\n values={{\n integration: integrationName || humanize(integration),\n }}\n />\n </div>\n )}\n {children}\n </CardLayout>\n )\n);\n\nConnect.prototypes = {\n Icon: PropTypes.node,\n title: PropTypes.string,\n description: PropTypes.string,\n buttonProps: PropTypes.object,\n onConnect: PropTypes.func,\n};\n\nexport default Connect;\n"],"names":["Connect","withT","_ref","t","Icon","_ref$title","title","_ref$description","description","_ref$integration","integration","_ref$integrationName","integrationName","_ref$helpDocUrl","helpDocUrl","_ref$buttonProps","buttonProps","_ref$onConnect","onConnect","noop","children","secondaryButtonProps","_jsxs","CardLayout","actionBlock","className","_jsx","Button","_objectSpread","label","onClick","variant","size","Typography","Trans","i18nKey","components","helpLink","href","target","values","humanize","prototypes","PropTypes","node","string","object","func"],"mappings":";;;;;;;;;;;AAOA,IAAMA,OAAO,GAAGC,KAAK,CACnB,UAAAC,IAAA,EAAA;AAAA,EAAA,IACEC,CAAC,GAAAD,IAAA,CAADC,CAAC;IACDC,IAAI,GAAAF,IAAA,CAAJE,IAAI;IAAAC,UAAA,GAAAH,IAAA,CACJI,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,gBAAA,GAAAL,IAAA,CACVM,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,gBAAA,GAAAP,IAAA,CAChBQ,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,oBAAA,GAAAT,IAAA,CAChBU,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,oBAAA;IAAAE,eAAA,GAAAX,IAAA,CACpBY,UAAU;AAAVA,IAAAA,UAAU,GAAAD,eAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,eAAA;IAAAE,gBAAA,GAAAb,IAAA,CACfc,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,cAAA,GAAAf,IAAA,CAChBgB,SAA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AACQ,KAAK,EAAA;AACJC,QAAAA,OAAO,EAAC,qCAAqC;AAC7CC,QAAAA,UAAU,EAAE;UACVC,QAAQ,eACNX,GAAA,CAACC,MAAM,EAAA;AACLF,YAAAA,SAAS,EAAC,SAAS;AACnBa,YAAAA,IAAI,EAAExB,UAAW;AACjBkB,YAAAA,IAAI,EAAC,IAAI;AACTO,YAAAA,MAAM,EAAC,QAAQ;AACfR,YAAAA,OAAO,EAAC;WACT;SAEH;AACFS,QAAAA,MAAM,EAAE;AACN9B,UAAAA,WAAW,EAAEE,eAAe,IAAI6B,QAAQ,CAAC/B,WAAW;AACtD;OACD;KACE,CACN,EACAU,QAAQ;AAAA,GACC,CAAC;AAAA,CAEjB;AAEApB,OAAO,CAAC0C,UAAU,GAAG;EACnBtC,IAAI,EAAEuC,SAAS,CAACC,IAAI;EACpBtC,KAAK,EAAEqC,SAAS,CAACE,MAAM;EACvBrC,WAAW,EAAEmC,SAAS,CAACE,MAAM;EAC7B7B,WAAW,EAAE2B,SAAS,CAACG,MAAM;EAC7B5B,SAAS,EAAEyB,SAAS,CAACI;AACvB,CAAC;;;;"}
1
+ {"version":3,"file":"Connect.js","sources":["../../app/javascript/src/v2/components/Steps/Connect.jsx"],"sourcesContent":["import { Typography, Button } from \"neetoatoms\";\nimport { humanize, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\n\nimport BrandLogo from \"../commons/BrandLogo\";\nimport { getBrandLogoSize } from \"../commons/utils\";\n\nconst Connect = withT(\n ({\n t,\n Icon,\n title = \"\",\n description = \"\",\n integration = \"\",\n integrationName = \"\",\n helpDocUrl = \"\",\n buttonProps = {},\n onConnect = noop,\n children,\n secondaryButtonProps,\n }) => (\n // v2 card system: the molecules feature card, like Manage, so connect and\n // manage screens share one layout (logo tile, title, muted description,\n // extra content and actions in the text column).\n <CardLayout\n {...{ description, title }}\n variant=\"feature\"\n actionBlock={\n <div className=\"flex w-full flex-wrap items-center gap-2\">\n <Button\n label={t(\"neetoIntegrations.common.connect\")}\n onClick={onConnect}\n {...buttonProps}\n />\n {secondaryButtonProps && (\n <Button variant=\"secondary\" {...secondaryButtonProps} />\n )}\n </div>\n }\n icon={\n Icon && (\n <BrandLogo\n icon={Icon}\n size={getBrandLogoSize({ integration, integrationName })}\n />\n )\n }\n >\n {helpDocUrl && (\n <Typography\n className=\"text-muted-foreground text-sm leading-relaxed\"\n variant=\"body2\"\n >\n <Trans\n i18nKey=\"neetoIntegrations.common.helpDocUrl\"\n components={{\n helpLink: (\n <Button\n href={helpDocUrl}\n rel=\"noopener noreferrer\"\n target=\"_blank\"\n variant=\"link\"\n />\n ),\n }}\n values={{\n integration: integrationName || humanize(integration),\n }}\n />\n </Typography>\n )}\n {children}\n </CardLayout>\n )\n);\n\nConnect.prototypes = {\n Icon: PropTypes.node,\n title: PropTypes.string,\n description: PropTypes.string,\n buttonProps: PropTypes.object,\n onConnect: PropTypes.func,\n};\n\nexport default Connect;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;AAUA,IAAM,OAAO,GAAG,KAAK,CACnB,UAAA,IAAA,EAAA;EAAA,IACE,CAAC,QAAD,CAAC;AACD,IAAA,IAAI,QAAJ,IAAI;AAAA,IAAA,UAAA,GAAA,IAAA,CACJ,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACV,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CAChB,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,oBAAA,GAAA,IAAA,CAChB,eAAe;AAAf,IAAA,eAAe,qCAAG,EAAE,GAAA,oBAAA;AAAA,IAAA,eAAA,GAAA,IAAA,CACpB,UAAU;AAAV,IAAA,UAAU,g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U,EAAE;YACV,QAAQ,eACNA,IAAC,MAAM,EAAA;AACL,cAAA,IAAI,EAAE,UAAW;AACjB,cAAA,GAAG,EAAC,qBAAqB;AACzB,cAAA,MAAM,EAAC,QAAQ;AACf,cAAA,OAAO,EAAC;aACT;WAEH;AACF,UAAA,MAAM,EAAE;AACN,YAAA,WAAW,EAAE,eAAe,IAAI,QAAQ,CAAC,WAAW;AACtD;SACD;OACS,CACb,EACA,QAAQ;KACC;AAAC;AAAA,CAEjB;AAEA,OAAO,CAAC,UAAU,GAAG;EACnB,IAAI,EAAE,SAAS,CAAC,IAAI;EACpB,KAAK,EAAE,SAAS,CAAC,MAAM;EACvB,WAAW,EAAE,SAAS,CAAC,MAAM;EAC7B,WAAW,EAAE,SAAS,CAAC,MAAM;EAC7B,SAAS,EAAE,SAAS,CAAC;AACvB,CAAC;;;;"}
package/dist/v2/Daily.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import i18next from 'i18next';
2
2
  import { isPresent, noop } from '@bigbinary/neeto-cist';
3
3
  import { withTitle, useQueryParams } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
4
- import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-CMyuK99l.js';
4
+ import { u as useFetchDaily, a as useDestroyDaily } from '../useDailiesApi-BIZR1qiD.js';
5
5
  import Form from './DailyForm.js';
6
6
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
7
7
  import { useState } from 'react';
@@ -12,7 +12,7 @@ import CopyToClipboardButton from '@bigbinary/neeto-molecules/v2/CopyToClipboard
12
12
  import { useTranslation, Trans } from 'react-i18next';
13
13
  import Manage$1 from './Manage.js';
14
14
  import { jsx } from 'react/jsx-runtime';
15
- import '@babel/runtime/helpers/defineProperty';
15
+ import '@babel/runtime/helpers/objectSpread2';
16
16
  import '@tanstack/react-query';
17
17
  import '@bigbinary/neeto-commons-frontend/constants';
18
18
  import '@bigbinary/neeto-commons-frontend/react-utils';
@@ -26,8 +26,9 @@ import 'react-router-dom';
26
26
  import 'yup';
27
27
  import './WalkthroughModal.js';
28
28
  import '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
29
- import './DisconnectAlert.js';
29
+ import '../utils-fchHJTr3.js';
30
30
  import '@babel/runtime/helpers/objectWithoutProperties';
31
+ import './DisconnectAlert.js';
31
32
 
32
33
  var Manage = function Manage(_ref) {
33
34
  var description = _ref.description,
@@ -75,6 +76,7 @@ var Manage = function Manage(_ref) {
75
76
  connect: true
76
77
  }),
77
78
  integration: "daily",
79
+ integrationName: t("neetoIntegrations.daily.title"),
78
80
  description: isConnected ? /*#__PURE__*/jsx(Trans, {
79
81
  i18nKey: "neetoIntegrations.daily.yourApiKey",
80
82
  values: {
@@ -1 +1 @@
1
- {"version":3,"file":"Daily.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/Manage.jsx","../../app/javascript/src/v2/components/Integrations/Daily/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { buildUrl } from \"neetocommons/v2/utils\";\nimport { Daily as DailyIcon } from \"neetoicons/misc\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyDaily, useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Manage = ({ description, onDisconnect }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata = {} } = {}, isFetching } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n const { t } = useTranslation();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyDaily({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(apiKey);\n\n const handleDisconnect = () => destroyIntegration(\"daily\");\n\n if (isFetching || isDisconnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={DailyIcon}\n connectPath={buildUrl(window.location.pathname, { connect: true })}\n integration=\"daily\"\n description={\n isConnected ? (\n <Trans\n i18nKey=\"neetoIntegrations.daily.yourApiKey\"\n values={{ apiKey }}\n components={{\n wrapper: (\n <div className=\"mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2\" />\n ),\n span: <span className=\"break-all text-sm\" />,\n copy: (\n <CopyToClipboardButton\n className=\"shrink-0 self-start\"\n style=\"text\"\n value={apiKey}\n />\n ),\n }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.daily.connected\")\n : t(\"neetoIntegrations.daily.connect.account\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={handleDisconnect}\n />\n );\n};\n\nexport default Manage;\n","import i18next from \"i18next\";\nimport { isPresent, noop } from \"neetocist\";\nimport { useQueryParams, withTitle } from \"neetocommons/v2/react-utils\";\n\nimport { useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport Form from \"./Form\";\nimport Manage from \"./Manage\";\n\nconst Daily = ({\n isOnboarding = false,\n helpDocUrl = \"\",\n videoUrl = \"\",\n description = \"\",\n onConnect = noop,\n onDisconnect = noop,\n}) => {\n const { connect } = useQueryParams();\n\n const { data: { metadata = {} } = {} } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n if ((isPresent(apiKey) && !isOnboarding) || !connect) {\n return <Manage {...{ description, onDisconnect }} />;\n }\n\n return <Form {...{ helpDocUrl, onConnect, videoUrl }} />;\n};\n\nexport default withTitle(\n Daily,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["Manage","_ref","description","onDisconnect","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useFetchDaily","useFetchDaily","_useFetchDaily$data","data","_useFetchDaily$data2","_useFetchDaily$data2$","metadata","isFetching","_ref2","_ref2$apiKey","apiKey","_useTranslation","useTranslation","t","_useDestroyDaily","useDestroyDaily","onSuccess","destroyIntegration","mutate","isDisconnecting","isPending","isConnected","isPresent","handleDisconnect","_jsx","className","children","Spinner","ManageIntegrations","Icon","DailyIcon","connectPath","buildUrl","window","location","pathname","connect","integration","Trans","i18nKey","values","components","wrapper","span","copy","CopyToClipboardButton","style","value","title","onClose","Daily","_ref$isOnboarding","isOnboarding","_ref$helpDocUrl","helpDocUrl","_ref$videoUrl","videoUrl","_ref$description","_ref$onConnect","onConnect","noop","_ref$onDisconnect","_useQueryParams","useQueryParams","Form","withTitle","i18next"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAAsC;AAAA,EAAA,IAAhCC,WAAW,GAAAD,IAAA,CAAXC,WAAW;IAAEC,YAAY,GAAAF,IAAA,CAAZE,YAAY;AACzC,EAAA,IAAAC,SAAA,GAA0DC,QAAQ,CAAC,KAAK,CAAC;IAAAC,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAlEI,IAAAA,qBAAqB,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,wBAAwB,GAAAH,UAAA,CAAA,CAAA,CAAA;AAEtD,EAAA,IAAAI,cAAA,GAAqDC,aAAa,EAAE;IAAAC,mBAAA,GAAAF,cAAA,CAA5DG,IAAI;AAAAC,IAAAA,oBAAA,GAAAF,mBAAA,KAAA,MAAA,GAAsB,EAAE,GAAAA,mBAAA;IAAAG,qBAAA,GAAAD,oBAAA,CAApBE,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,qBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,qBAAA;IAASE,UAAU,GAAAP,cAAA,CAAVO,UAAU;AAChD,EAAA,IAAA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AAU;AAAEK,IAAAA,SAAS,EAATA,SAAS;AAAEH,IAAAA,QAAQ,EAARA;AAAQ,GAAK,CAAC;AAC1D,CAAC;AAED,YAAeS,SAAS,CACtBf,KAAK,EACLgB,OAAO,CAACrD,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;"}
1
+ {"version":3,"file":"Daily.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/Manage.jsx","../../app/javascript/src/v2/components/Integrations/Daily/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent } from \"neetocist\";\nimport { buildUrl } from \"neetocommons/v2/utils\";\nimport { Daily as DailyIcon } from \"neetoicons/misc\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyDaily, useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Manage = ({ description, onDisconnect }) => {\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata = {} } = {}, isFetching } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n const { t } = useTranslation();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyDaily({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(apiKey);\n\n const handleDisconnect = () => destroyIntegration(\"daily\");\n\n if (isFetching || isDisconnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegrations\n {...{\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={DailyIcon}\n connectPath={buildUrl(window.location.pathname, { connect: true })}\n integration=\"daily\"\n integrationName={t(\"neetoIntegrations.daily.title\")}\n description={\n isConnected ? (\n <Trans\n i18nKey=\"neetoIntegrations.daily.yourApiKey\"\n values={{ apiKey }}\n components={{\n wrapper: (\n <div className=\"mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2\" />\n ),\n span: <span className=\"break-all text-sm\" />,\n copy: (\n <CopyToClipboardButton\n className=\"shrink-0 self-start\"\n style=\"text\"\n value={apiKey}\n />\n ),\n }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.daily.connected\")\n : t(\"neetoIntegrations.daily.connect.account\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={handleDisconnect}\n />\n );\n};\n\nexport default Manage;\n","import i18next from \"i18next\";\nimport { isPresent, noop } from \"neetocist\";\nimport { useQueryParams, withTitle } from \"neetocommons/v2/react-utils\";\n\nimport { useFetchDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport Form from \"./Form\";\nimport Manage from \"./Manage\";\n\nconst Daily = ({\n isOnboarding = false,\n helpDocUrl = \"\",\n videoUrl = \"\",\n description = \"\",\n onConnect = noop,\n onDisconnect = noop,\n}) => {\n const { connect } = useQueryParams();\n\n const { data: { metadata = {} } = {} } = useFetchDaily();\n const { apiKey = null } = metadata || {};\n\n if ((isPresent(apiKey) && !isOnboarding) || !connect) {\n return <Manage {...{ description, onDisconnect }} />;\n }\n\n return <Form {...{ helpDocUrl, onConnect, videoUrl }} />;\n};\n\nexport default withTitle(\n Daily,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["_jsx","ManageIntegrations"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAM,MAAM,GAAG,SAAT,MAAM,CAAA,IAAA,EAAsC;EAAA,IAAhC,WAAW,QAAX,WAAW;AAAE,IAAA,YAAY,QAAZ,YAAY;EACzC,IAAA,SAAA,GAA0D,QAAQ,CAAC,KAAK,CAAC;AAAA,IAAA,UAAA,GAAA,cAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAAlE,q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,IAAA,QAAQ,EAAR;AAAQ,GAAK,CAAC;AAC1D,CAAC;AAED,YAAe,SAAS,CACtB,KAAK,EACL,OAAO,CAAC,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;"}
@@ -9,11 +9,11 @@ import Container from '@bigbinary/neeto-molecules/v2/Container';
9
9
  import Header from '@bigbinary/neeto-molecules/v2/Header';
10
10
  import { useTranslation, Trans } from 'react-i18next';
11
11
  import { useHistory } from 'react-router-dom';
12
- import { b as useCreateDaily } from '../useDailiesApi-CMyuK99l.js';
12
+ import { b as useCreateDaily } from '../useDailiesApi-BIZR1qiD.js';
13
13
  import * as yup from 'yup';
14
14
  import WalkthroughModal from './WalkthroughModal.js';
15
15
  import { jsx, jsxs } from 'react/jsx-runtime';
16
- import '@babel/runtime/helpers/defineProperty';
16
+ import '@babel/runtime/helpers/objectSpread2';
17
17
  import '@tanstack/react-query';
18
18
  import '@bigbinary/neeto-commons-frontend/constants';
19
19
  import '@bigbinary/neeto-commons-frontend/react-utils';
@@ -1 +1 @@
1
- {"version":3,"file":"DailyForm.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/constants.js","../../app/javascript/src/v2/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const MANAGE_DAILY_CO_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.daily.apiKey\"),\n })\n ),\n});\n","import { useState } from \"react\";\n\nimport i18next from \"i18next\";\nimport { Button, Spinner, Typography } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { withTitle } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport Container from \"neetomolecules/v2/Container\";\nimport Header from \"neetomolecules/v2/Header\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nimport WalkthroughModal from \"../../WalkthroughModal\";\n\nconst Form = ({ helpDocUrl, videoUrl, onConnect, breadcrumbs }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const [isDemoModalOpen, setIsDemoModalOpen] = useState(false);\n\n const { mutate: createDaily, isPending: isConnecting } = useCreateDaily({\n onSuccess: () => onConnect?.(),\n });\n\n const handleSubmit = payload => createDaily(payload);\n\n if (isConnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.daily.connect.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoIntegrations.daily.connect.title\"),\n description: (\n <Typography lineClamp=\"none\" variant=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n variant=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-testid\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n dataTestId=\"api-key\"\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </CardLayout>\n </FormikForm>\n <WalkthroughModal\n {...{ videoUrl }}\n isOpen={isDemoModalOpen}\n onClose={() => setIsDemoModalOpen(false)}\n />\n </div>\n </Container>\n );\n};\nexport default withTitle(\n Form,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["MANAGE_DAILY_CO_FORM_INITIAL_VALUES","apiKey","DAILY_CO_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","_ref","helpDocUrl","videoUrl","onConnect","breadcrumbs","_useTranslation","useTranslation","history","useHistory","_useState","useState","_useState2","_slicedToArray","isDemoModalOpen","setIsDemoModalOpen","_useCreateDaily","useCreateDaily","onSuccess","createDaily","mutate","isConnecting","isPending","handleSubmit","payload","_jsx","className","children","Spinner","_jsxs","Container","isHeaderFixed","Header","title","titleHelpPopoverProps","description","Typography","lineClamp","variant","Trans","i18nKey","components","videoLink","Button","onClick","helpLinkProps","href","FormikForm","formikProps","initialValues","validationSchema","onSubmit","CardLayout","actionBlock","ActionBlock","cancelButtonProps","goBack","isSubmitting","submitButtonProps","label","Input","autoFocus","dataTestId","name","WalkthroughModal","isOpen","onClose","withTitle","i18next"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAMA,mCAAmC,GAAG;AAAEC,EAAAA,MAAM,EAAE;AAAG,CAAC;AAE1D,IAAMC,0BAA0B,GAAGC,GAAG,CAACC,MAAM,EAAE,CAACC,KAAK,CAAC;AAC3DJ,EAAAA,MAAM,EAAEE,GAAG,CACRG,MAAM,EAAE,CACRC,IAAI,EAAE,CACNC,QAAQ,CACPC,CAAC,CAAC,mCAAmC,EAAE;IACrCC,MAAM,EAAED,CAAC,CAAC,gCAAgC;AAC5C,GAAC,CACH;AACJ,CAAC,CAAC;;ACOF,IAAME,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAAyD;AAAA,EAAA,IAAnDC,UAAU,GAAAD,IAAA,CAAVC,UAAU;IAAEC,QAA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kC;AAC7C;AAAE,WACH,CACF;UAAA6B,QAAA,eAEDF,GAAA,CAACmC,KAAK,EAAA;YACJC,SAAS,EAAA,IAAA;YACThE,QAAQ,EAAA,IAAA;AACRiE,YAAAA,UAAU,EAAC,SAAS;AACpBH,YAAAA,KAAK,EAAE7D,CAAC,CAAC,gCAAgC,CAAE;AAC3CiE,YAAAA,IAAI,EAAC;WACN;SACS;AAAC,OACH,CAAC,eACbtC,GAAA,CAACuC,gBAAgB,EAAA;AACT7D,QAAAA,QAAQ,EAARA,QAAQ;AACd8D,QAAAA,MAAM,EAAEnD,eAAgB;QACxBoD,OAAO,EAAE,SAATA,OAAOA,GAAA;UAAA,OAAQnD,kBAAkB,CAAC,KAAK,CAAC;AAAA,QAAA;AAAC,OAC1C,CAAC;AAAA,KACC,CAAC;AAAA,GACG,CAAC;AAEhB,CAAC;AACD,aAAeoD,SAAS,CACtBnE,IAAI,EACJoE,OAAO,CAACtE,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;"}
1
+ {"version":3,"file":"DailyForm.js","sources":["../../app/javascript/src/v2/components/Integrations/Daily/constants.js","../../app/javascript/src/v2/components/Integrations/Daily/Form.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const MANAGE_DAILY_CO_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.daily.apiKey\"),\n })\n ),\n});\n","import { useState } from \"react\";\n\nimport i18next from \"i18next\";\nimport { Button, Spinner, Typography } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { withTitle } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport Container from \"neetomolecules/v2/Container\";\nimport Header from \"neetomolecules/v2/Header\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { useCreateDaily } from \"hooks/reactQuery/useDailiesApi\";\n\nimport {\n MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n DAILY_CO_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nimport WalkthroughModal from \"../../WalkthroughModal\";\n\nconst Form = ({ helpDocUrl, videoUrl, onConnect, breadcrumbs }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const [isDemoModalOpen, setIsDemoModalOpen] = useState(false);\n\n const { mutate: createDaily, isPending: isConnecting } = useCreateDaily({\n onSuccess: () => onConnect?.(),\n });\n\n const handleSubmit = payload => createDaily(payload);\n\n if (isConnecting) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.daily.connect.title\")}\n titleHelpPopoverProps={{\n title: t(\"neetoIntegrations.daily.connect.title\"),\n description: (\n <Typography lineClamp=\"none\" variant=\"body2\">\n <Trans\n i18nKey=\"neetoIntegrations.daily.helpDoc\"\n components={{\n videoLink: (\n <Button\n variant=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n ),\n }}\n />\n </Typography>\n ),\n helpLinkProps: {\n href: helpDocUrl,\n \"data-testid\": \"api-key-help-doc-link\",\n },\n }}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,\n validationSchema: DAILY_CO_VALIDATION_SCHEMA,\n onSubmit: handleSubmit,\n }}\n >\n <CardLayout\n actionBlock={\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isConnecting}\n submitButtonProps={{\n label: t(\"neetoIntegrations.common.connect\"),\n }}\n />\n }\n >\n <Input\n autoFocus\n required\n dataTestId=\"api-key\"\n label={t(\"neetoIntegrations.daily.apiKey\")}\n name=\"apiKey\"\n />\n </CardLayout>\n </FormikForm>\n <WalkthroughModal\n {...{ videoUrl }}\n isOpen={isDemoModalOpen}\n onClose={() => setIsDemoModalOpen(false)}\n />\n </div>\n </Container>\n );\n};\nexport default withTitle(\n Form,\n i18next.t(\"neetoIntegrations.browserTitles.integrations.dailyco\")\n);\n"],"names":["_jsx","_jsxs","FormikForm"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,IAAM,mCAAmC,GAAG;AAAE,EAAA,MAAM,EAAE;AAAG,CAAC;AAE1D,IAAM,0BAA0B,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC;AAC3D,EAAA,MAAM,EAAE,GAAG,CACR,MAAM,EAAE,CACR,IAAI,EAAE,CACN,QAAQ,CACP,CAAC,CAAC,mCAAmC,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,gCAAgC;AAC5C,GAAC,CACH;AACJ,CAAC,CAAC;;ACOF,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAAyD;EAAA,IAAnD,UAAU,QAAV,UAAU;AAAE,IAAA,QAAQ,QAAR,QAAQ;AAAE,IAAA,SAAS,QAAT,SAAS;AAAE,IAAA,WAAW,QAAX,WAAW;EAC1D,IAAA,eAAA,GAAc,cAAc,EAAE;AAAtB,IAAA,CAAC,mBAAD,CAAC;AACT,EAAA,IAAM,OAAO,GAAG,UAAU,EAAE;EAE5B,IAAA,SAAA,GAA8C,QAAQ,CAAC,KAAK,CAAC;AAAA,IAAA,UAAA,GAAA,cAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAAtD,eAAe,GAAA,UAAA,CAAA,CAAA,CAAA;IAAE,kBAAkB,GAAA,UAAA,CAAA,CAAA,CAAA;AAE1C,EAAA,IAAA,eAAA,GAAyD,cAAc,CAAC;MACtE,SAAS,EAAE,SAAX,SAAS,GAAA;AAAA,QAAA,OAAQ,SAAS,KAAA,IAAA,IAAT,SAAS,KAAA,MAAA,GAAA,MAAA,GAAT,SAAS,EAAI;AAA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rBD,IAACE,MAAU,EAAA;AACT,QAAA,WAAW,EAAE;AACX,UAAA,aAAa,EAAE,mCAAmC;AAClD,UAAA,gBAAgB,EAAE,0BAA0B;AAC5C,UAAA,QAAQ,EAAE;SACV;AAAA,QAAA,QAAA,eAEFF,IAAC,UAAU,EAAA;UACT,WAAW,eACTA,IAAC,WAAW,EAAA;AACV,YAAA,iBAAiB,EAAE;cAAE,OAAO,EAAE,SAAT,OAAO,GAAA;AAAA,gBAAA,OAAQ,OAAO,CAAC,MAAM,EAAE;AAAA,cAAA;aAAG;AACvD,YAAA,YAAY,EAAE,YAAa;AAC3B,YAAA,iBAAiB,EAAE;cACjB,KAAK,EAAE,CAAC,CAAC,kCAAkC;AAC7C;AAAE,WACH,CACF;AAAA,UAAA,QAAA,eAEDA,IAAC,KAAK,EAAA;YACJ,SAAS,EAAA,IAAA;YACT,QAAQ,EAAA,IAAA;AACR,YAAA,UAAU,EAAC,SAAS;AACpB,YAAA,KAAK,EAAE,CAAC,CAAC,gCAAgC,CAAE;AAC3C,YAAA,IAAI,EAAC;WACN;SACS;OACF,CAAC,eACbA,GAAA,CAAC,gBAAgB,EAAA;AACT,QAAA,QAAQ,EAAR,QAAQ;AACd,QAAA,MAAM,EAAE,eAAgB;QACxB,OAAO,EAAE,SAAT,OAAO,GAAA;UAAA,OAAQ,kBAAkB,CAAC,KAAK,CAAC;AAAA,QAAA;AAAC,OAC1C,CAAC;AAAA,KACC,CAAC;AAAA,GACG,CAAC;AAEhB,CAAC;AACD,aAAe,SAAS,CACtB,IAAI,EACJ,OAAO,CAAC,CAAC,CAAC,sDAAsD,CAClE,CAAC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"Demo.js","sources":["../../app/javascript/src/v2/components/Steps/utils.js","../../app/javascript/src/v2/components/Steps/Demo.jsx"],"sourcesContent":["import { isEmpty } from \"ramda\";\n\nexport const isYouTubeLink = videoUrl => {\n const youtubeRegex = /^(https?:\\/\\/)?(www\\.)?(youtube\\.com|youtu\\.be)\\//;\n\n return youtubeRegex.test(videoUrl);\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import { Button } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { isYouTubeLink, renderText } from \"./utils\";\n\nconst Demo = ({\n title = \"\",\n subtitle = \"\",\n iframeTitle = \"\",\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => {\n const { t } = useTranslation();\n\n const renderVideo = videoUrl =>\n isYouTubeLink(videoUrl) ? (\n <iframe\n allowFullScreen\n className=\"aspect-video w-full max-w-3xl border-none\"\n frameBorder=\"0\"\n id=\"ytplayer\"\n src={videoUrl}\n title={renderText(iframeTitle, t(\"neetoIntegrations.demo.iFrameTitle\"))}\n type=\"text/html\"\n />\n ) : (\n <video\n autoPlay\n controls\n muted\n className=\"aspect-video w-full max-w-3xl cursor-pointer rounded-xl\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n );\n\n return (\n <CardLayout\n description={renderText(subtitle, t(\"neetoIntegrations.demo.subtitle\"))}\n title={renderText(title, t(\"neetoIntegrations.demo.title\"))}\n actionBlock={\n <Button\n data-testid=\"neeto-integrations-demo-finish-button\"\n label={t(\"neetoIntegrations.common.finish\")}\n onClick={onClose}\n />\n }\n >\n {children}\n {videoUrl && <div className=\"w-full\">{renderVideo(videoUrl)}</div>}\n </CardLayout>\n );\n};\n\nDemo.prototypes = {\n onClose: PropTypes.func,\n videoUrl: PropTypes.string,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n iframeTitle: PropTypes.string,\n};\n\nexport default Demo;\n"],"names":["isYouTubeLink","videoUrl","youtubeRegex","test","renderText","text","fallbackTranslation","isEmpty","Demo","_ref","_ref$title","title","_ref$subtitle","subtitle","_ref$iframeTitle","iframeTitle","_ref$onClose","onClose","noop","_ref$videoUrl","children","_useTranslation","useTranslation","t","renderVideo","_jsx","allowFullScreen","className","frameBorder","id","src","type","autoPlay","controls","muted","_jsxs","CardLayout","description","actionBlock","Button","label","onClick","prototypes","PropTypes","func","string"],"mappings":";;;;;;;;AAEO,IAAMA,aAAa,GAAG,SAAhBA,aAAaA,CAAGC,QAAQ,EAAI;EACvC,IAAMC,YAAY,GAAG,mDAAmD;AAExE,EAAA,OAAOA,YAAY,CAACC,IAAI,CAACF,QAAQ,CAAC;AACpC,CAAC;AAEM,IAAMG,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAI,EAAEC,mBAAmB,EAAA;AAAA,EAAA,OAClDC,OAAO,CAACF,IAAI,CAAC,GAAGC,mBAAmB,GAAGD,IAAI;AAAA,CAAA;;ACD5C,IAAMG,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAOJ;AAAA,EAAA,IAAAC,UAAA,GAAAD,IAAA,CANJE,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,aAAA,GAAAH,IAAA,CACVI,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,aAAA;IAAAE,gBAAA,GAAAL,IAAA,CACbM,WAAW;AAAXA,IAAAA,WAAW,GAAAD,gBAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,gBAAA;IAAAE,YAAA,GAAAP,IAAA,CAChBQ,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,YAAA;IAAAG,aAAA,GAAAV,IAAA,CACdR,QAAQ;AAARA,IAAAA,QAAQ,GAAAkB,aAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,aAAA;IACbC,QAAQ,GAAAX,IAAA,CAARW,QAAQ;AAER,EAAA,IAAAC,eAAA,GAAcC,cAAc,EAAE;IAAtBC,CAAC,GAAAF,eAAA,CAADE,CAAC;AAET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AAW,CAACvB,QAAQ;AAAC,KAAM,CAAC;AAAA,GACxD,CAAC;AAEjB;AAEAO,IAAI,CAACkC,UAAU,GAAG;EAChBzB,OAAO,EAAE0B,SAAS,CAACC,IAAI;EACvB3C,QAAQ,EAAE0C,SAAS,CAACE,MAAM;EAC1BlC,KAAK,EAAEgC,SAAS,CAACE,MAAM;EACvBhC,QAAQ,EAAE8B,SAAS,CAACE,MAAM;EAC1B9B,WAAW,EAAE4B,SAAS,CAACE;AACzB,CAAC;;;;"}
1
+ {"version":3,"file":"Demo.js","sources":["../../app/javascript/src/v2/components/Steps/utils.js","../../app/javascript/src/v2/components/Steps/Demo.jsx"],"sourcesContent":["import { isEmpty } from \"ramda\";\n\nexport const isYouTubeLink = videoUrl => {\n const youtubeRegex = /^(https?:\\/\\/)?(www\\.)?(youtube\\.com|youtu\\.be)\\//;\n\n return youtubeRegex.test(videoUrl);\n};\n\nexport const renderText = (text, fallbackTranslation) =>\n isEmpty(text) ? fallbackTranslation : text;\n","import { Button } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { isYouTubeLink, renderText } from \"./utils\";\n\nconst Demo = ({\n title = \"\",\n subtitle = \"\",\n iframeTitle = \"\",\n onClose = noop,\n videoUrl = \"\",\n children,\n}) => {\n const { t } = useTranslation();\n\n const renderVideo = videoUrl =>\n isYouTubeLink(videoUrl) ? (\n <iframe\n allowFullScreen\n className=\"aspect-video w-full max-w-3xl border-none\"\n frameBorder=\"0\"\n id=\"ytplayer\"\n src={videoUrl}\n title={renderText(iframeTitle, t(\"neetoIntegrations.demo.iFrameTitle\"))}\n type=\"text/html\"\n />\n ) : (\n <video\n autoPlay\n controls\n muted\n className=\"aspect-video w-full max-w-3xl cursor-pointer rounded-xl\"\n id=\"walkthrough-video\"\n >\n <source src={videoUrl} />\n </video>\n );\n\n return (\n <CardLayout\n description={renderText(subtitle, t(\"neetoIntegrations.demo.subtitle\"))}\n title={renderText(title, t(\"neetoIntegrations.demo.title\"))}\n actionBlock={\n <Button\n data-testid=\"neeto-integrations-demo-finish-button\"\n label={t(\"neetoIntegrations.common.finish\")}\n onClick={onClose}\n />\n }\n >\n {children}\n {videoUrl && <div className=\"w-full\">{renderVideo(videoUrl)}</div>}\n </CardLayout>\n );\n};\n\nDemo.prototypes = {\n onClose: PropTypes.func,\n videoUrl: PropTypes.string,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n iframeTitle: PropTypes.string,\n};\n\nexport default Demo;\n"],"names":["_jsx","_jsxs"],"mappings":";;;;;;;;AAEO,IAAM,aAAa,GAAG,SAAhB,aAAa,CAAG,QAAQ,EAAI;EACvC,IAAM,YAAY,GAAG,mDAAmD;AAExE,EAAA,OAAO,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC;AAEM,IAAM,UAAU,GAAG,SAAb,UAAU,CAAI,IAAI,EAAE,mBAAmB,EAAA;AAAA,EAAA,OAClD,OAAO,CAAC,IAAI,CAAC,GAAG,mBAAmB,GAAG,IAAI;AAAA,CAAA;;ACD5C,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAOJ;AAAA,EAAA,IAAA,UAAA,GAAA,IAAA,CANJ,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,aAAA,GAAA,IAAA,CACV,QAAQ;AAAR,IAAA,QAAQ,8BAAG,EAAE,GAAA,aAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACb,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,YAAA,GAAA,IAAA,CAChB,OAAO;AAAP,IAAA,OAAO,6BAAG,IAAI,GAAA,YAAA;AAAA,IAAA,aAAA,GAAA,IAAA,CACd,QAAQ;AAAR,IAAA,QAAQ,8BAAG,EAAE,GAAA,aAAA;AACb,IAAA,QAAQ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W,CAAC,QAAQ;AAAC,KAAM,CAAC;AAAA,GACxD,CAAC;AAEjB;AAEA,IAAI,CAAC,UAAU,GAAG;EAChB,OAAO,EAAE,SAAS,CAAC,IAAI;EACvB,QAAQ,EAAE,SAAS,CAAC,MAAM;EAC1B,KAAK,EAAE,SAAS,CAAC,MAAM;EACvB,QAAQ,EAAE,SAAS,CAAC,MAAM;EAC1B,WAAW,EAAE,SAAS,CAAC;AACzB,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { Alert } from '@bigbinary/neeto-atoms';
4
4
  import { noop } from '@bigbinary/neeto-cist';
@@ -6,8 +6,6 @@ import withT from '@bigbinary/neeto-commons-frontend/v2/react-utils/withT';
6
6
  import { jsx } from 'react/jsx-runtime';
7
7
 
8
8
  var _excluded = ["t", "isOpen", "isDisconnecting", "title", "message", "onClose", "onDisconnect"];
9
- 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; }
10
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
11
9
  var DisconnectAlert = withT(function (_ref) {
12
10
  var t = _ref.t,
13
11
  _ref$isOpen = _ref.isOpen,
@@ -1 +1 @@
1
- {"version":3,"file":"DisconnectAlert.js","sources":["../../app/javascript/src/v2/components/DisconnectAlert/index.jsx"],"sourcesContent":["import { Alert } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport withT from \"neetocommons/v2/react-utils/withT\";\n\nconst DisconnectAlert = withT(\n ({\n t,\n isOpen = false,\n isDisconnecting = false,\n title = \"\",\n message = \"\",\n onClose = noop,\n onDisconnect = noop,\n ...otherProps\n }) => (\n <Alert\n {...{ isOpen, message, onClose, title }}\n isSubmitting={isDisconnecting}\n submitButtonLabel={t(\"neetoIntegrations.common.disconnect\")}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n )\n);\n\nexport default DisconnectAlert;\n"],"names":["DisconnectAlert","withT","_ref","t","_ref$isOpen","isOpen","_ref$isDisconnecting","isDisconnecting","_ref$title","title","_ref$message","message","_ref$onClose","onClose","noop","_ref$onDisconnect","onDisconnect","otherProps","_objectWithoutProperties","_excluded","_jsx","Alert","_objectSpread","isSubmitting","submitButtonLabel","onSubmit"],"mappings":";;;;;;;;;;AAIA,IAAMA,eAAe,GAAGC,KAAK,CAC3B,UAAAC,IAAA,EAAA;AAAA,EAAA,IACEC,CAAC,GAAAD,IAAA,CAADC,CAAC;IAAAC,WAAA,GAAAF,IAAA,CACDG,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,WAAA;IAAAE,oBAAA,GAAAJ,IAAA,CACdK,eAAe;AAAfA,IAAAA,eAAe,GAAAD,oBAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,oBAAA;IAAAE,UAAA,GAAAN,IAAA,CACvBO,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,YAAA,GAAAR,IAAA,CACVS,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,YAAA;IAAAE,YAAA,GAAAV,IAAA,CACZW,OAAO;AAAPA,IAAAA,OAAO,GAAAD,YAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,YAAA;IAAAG,iBAAA,GAAAb,IAAA,CACdc,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAGD,IAAI,GAAAC,iBAAA;AAChBE,IAAAA,UAAU,GAAAC,wBAAA,CAAAhB,IAAA,EAAAiB,SAAA,CAAA;AAAA,EAAA,oBAEbC,GAAA,CAACC,KAAK,EAAAC,aAAA,CAAA;AACEjB,IAAAA,MAAM,EAANA,MAAM;AAAEM,IAAAA,OAAO,EAAPA,OAAO;AAAEE,IAAAA,OAAO,EAAPA,OAAO;AAAEJ,IAAAA,KAAK,EAALA,KAAK;AACrCc,IAAAA,YAAY,EAAEhB,eAAgB;AAC9BiB,IAAAA,iBAAiB,EAAErB,CAAC,CAAC,qCAAqC,CAAE;AAC5DsB,IAAAA,QAAQ,EAAET;GAAa,EACnBC,UAAU,CACf,CAAC;AAAA,CAEN;;;;"}
1
+ {"version":3,"file":"DisconnectAlert.js","sources":["../../app/javascript/src/v2/components/DisconnectAlert/index.jsx"],"sourcesContent":["import { Alert } from \"@bigbinary/neeto-atoms\";\nimport { noop } from \"neetocist\";\nimport withT from \"neetocommons/v2/react-utils/withT\";\n\nconst DisconnectAlert = withT(\n ({\n t,\n isOpen = false,\n isDisconnecting = false,\n title = \"\",\n message = \"\",\n onClose = noop,\n onDisconnect = noop,\n ...otherProps\n }) => (\n <Alert\n {...{ isOpen, message, onClose, title }}\n isSubmitting={isDisconnecting}\n submitButtonLabel={t(\"neetoIntegrations.common.disconnect\")}\n onSubmit={onDisconnect}\n {...otherProps}\n />\n )\n);\n\nexport default DisconnectAlert;\n"],"names":["_jsx"],"mappings":";;;;;;;;AAIA,IAAM,eAAe,GAAG,KAAK,CAC3B,UAAA,IAAA,EAAA;EAAA,IACE,CAAC,QAAD,CAAC;AAAA,IAAA,WAAA,GAAA,IAAA,CACD,MAAM;AAAN,IAAA,MAAM,4BAAG,KAAK,GAAA,WAAA;AAAA,IAAA,oBAAA,GAAA,IAAA,CACd,eAAe;AAAf,IAAA,eAAe,qCAAG,KAAK,GAAA,oBAAA;AAAA,IAAA,UAAA,GAAA,IAAA,CACvB,KAAK;AAAL,IAAA,KAAK,2BAAG,EAAE,GAAA,UAAA;AAAA,IAAA,YAAA,GAAA,IAAA,CACV,OAAO;AAAP,IAAA,OAAO,6BAAG,EAAE,GAAA,YAAA;AAAA,IAAA,YAAA,GAAA,IAAA,CACZ,OAAO;AAAP,IAAA,OAAO,6BAAG,IAAI,GAAA,YAAA;AAAA,IAAA,iBAAA,GAAA,IAAA,CACd,YAAY;AAAZ,IAAA,YAAY,kCAAG,IAAI,GAAA,iBAAA;IAChB,UAAU,GAAA,wBAAA,CAAA,IAAA,EAAA,SAAA,CAAA;AAAA,EAAA,oBAEbA,IAAC,KAAK,EAAA,aAAA,CAAA;AACE,IAAA,MAAM,EAAN,MAAM;AAAE,IAAA,OAAO,EAAP,OAAO;AAAE,IAAA,OAAO,EAAP,OAAO;AAAE,IAAA,KAAK,EAAL,KAAK;AACrC,IAAA,YAAY,EAAE,eAAgB;AAC9B,IAAA,iBAAiB,EAAE,CAAC,CAAC,qCAAqC,CAAE;AAC5D,IAAA,QAAQ,EAAE;GAAa,EACnB,UAAU,CACf,CAAC;AAAA,CAEN;;;;"}
@@ -1,4 +1,4 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
3
3
  import { useState } from 'react';
4
4
  import StickyRibbon from '@bigbinary/neeto-molecules/v2/StickyRibbon';
@@ -29,8 +29,6 @@ var getDisconnectionRibbonMessage = function getDisconnectionRibbonMessage(alert
29
29
  };
30
30
  };
31
31
 
32
- 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; }
33
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
34
32
  var IntegrationLinks = function IntegrationLinks(_ref) {
35
33
  var alerts = _ref.alerts,
36
34
  integrationRouteMap = _ref.integrationRouteMap;
@@ -1 +1 @@
1
- {"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["const getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonMessage = alerts => {\n if (getHasOnlyUPIIntegration(alerts)) {\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.non_permission_message\",\n defaults:\n \"Your <integrations /> integration has been disconnected. <connectLink>Connect it now</connectLink>.\",\n };\n }\n\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.message\",\n defaults:\n alerts.length === 1\n ? \"Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.\"\n : \"Your <integrations /> integrations have been disconnected due to a permission issue.\",\n };\n};\n","import { useState } from \"react\";\n\nimport StickyRibbon from \"neetomolecules/v2/StickyRibbon\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport { getDisconnectionRibbonMessage } from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link to={linkPath}>{label}</Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <StickyRibbon\n data-testid=\"disconnected-integrations-ribbon\"\n kind=\"warning\"\n onDismiss={() => setIsClosed(true)}\n >\n <Trans\n {...getDisconnectionRibbonMessage(knownAlerts)}\n count={knownAlerts.length}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: <Link to={connectPath} />,\n }}\n />\n </StickyRibbon>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["getHasOnlyUPIIntegration","alerts","length","serviceName","getDisconnectionRibbonMessage","i18nKey","defaults","IntegrationLinks","_ref","integrationRouteMap","map","alert","index","_integrationRouteMap$","label","path","linkPath","redirectPath","_jsxs","children","_jsx","Link","to","id","DisconnectedIntegrationsRibbon","_ref2","_ref2$integrationRout","_useState","useState","_useState2","_slicedToArray","isClosed","setIsClosed","useTranslation","_useFetchDisconnectio","useFetchDisconnectionAlerts","_useFetchDisconnectio2","data","_useFetchDisconnectio3","_useFetchDisconnectio4","disconnectionAlerts","knownAlerts","filter","isEmpty","singleAlert","connectPath","StickyRibbon","kind","onDismiss","Trans","_objectSpread","count","components","integrations","connectLink"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAMA,wBAAwB,GAAG,S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,GAAA,CAAC0B,YAAY,EAAA;AACX,IAAA,aAAA,EAAY,kCAAkC;AAC9CC,IAAAA,IAAI,EAAC,SAAS;IACdC,SAAS,EAAE,SAAXA,SAASA,GAAA;MAAA,OAAQhB,WAAW,CAAC,IAAI,CAAC;IAAA,CAAC;AAAAb,IAAAA,QAAA,eAEnCC,GAAA,CAAC6B,KAAK,EAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EACA9C,6BAA6B,CAACqC,WAAW,CAAC,CAAA,EAAA,EAAA,EAAA;MAC9CU,KAAK,EAAEV,WAAW,CAACvC,MAAO;AAC1BkD,MAAAA,UAAU,EAAE;QACVC,YAAY,eACVjC,GAAA,CAACb,gBAAgB,EAAA;AACTE,UAAAA,mBAAmB,EAAnBA,mBAAmB;AACzBR,UAAAA,MAAM,EAAEwC;AAAY,SACrB,CACF;QACDa,WAAW,eAAElC,GAAA,CAACC,IAAI,EAAA;AAACC,UAAAA,EAAE,EAAEuB;SAAc;AACvC;KAAE,CACH;AAAC,GACU,CAAC;AAEnB;;;;"}
1
+ {"version":3,"file":"DisconnectedIntegrationsRibbon.js","sources":["../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/utils.js","../../app/javascript/src/v2/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["const getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonMessage = alerts => {\n if (getHasOnlyUPIIntegration(alerts)) {\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.non_permission_message\",\n defaults:\n \"Your <integrations /> integration has been disconnected. <connectLink>Connect it now</connectLink>.\",\n };\n }\n\n return {\n i18nKey: \"neetoIntegrations.disconnectionRibbon.message\",\n defaults:\n alerts.length === 1\n ? \"Your <integrations /> integration has been disconnected due to a permission issue. <connectLink>Connect it now</connectLink>.\"\n : \"Your <integrations /> integrations have been disconnected due to a permission issue.\",\n };\n};\n","import { useState } from \"react\";\n\nimport StickyRibbon from \"neetomolecules/v2/StickyRibbon\";\nimport { isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport { useFetchDisconnectionAlerts } from \"hooks/reactQuery/useDisconnectionAlertsApi\";\n\nimport { getDisconnectionRibbonMessage } from \"./utils\";\n\nconst IntegrationLinks = ({ alerts, integrationRouteMap }) =>\n alerts.map((alert, index) => {\n const { label, path } = integrationRouteMap[alert.serviceName];\n const linkPath = alert.redirectPath || path;\n\n return (\n <span key={alert.id}>\n {index > 0 && \", \"}\n <Link to={linkPath}>{label}</Link>\n </span>\n );\n });\n\nconst DisconnectedIntegrationsRibbon = ({ integrationRouteMap = {} }) => {\n const [isClosed, setIsClosed] = useState(false);\n\n useTranslation();\n\n const { data: { disconnectionAlerts: alerts = [] } = {} } =\n useFetchDisconnectionAlerts();\n\n const knownAlerts = alerts.filter(\n alert => integrationRouteMap[alert.serviceName]\n );\n\n if (isClosed || isEmpty(knownAlerts)) return null;\n\n const singleAlert = knownAlerts.length === 1 ? knownAlerts[0] : null;\n const connectPath = singleAlert\n ? singleAlert.redirectPath ||\n integrationRouteMap[singleAlert.serviceName].path\n : \"\";\n\n return (\n <StickyRibbon\n data-testid=\"disconnected-integrations-ribbon\"\n kind=\"warning\"\n onDismiss={() => setIsClosed(true)}\n >\n <Trans\n {...getDisconnectionRibbonMessage(knownAlerts)}\n count={knownAlerts.length}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: <Link to={connectPath} />,\n }}\n />\n </StickyRibbon>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAM,wBAAwB,GAAG,SAA3B,wBAAwB,CAAG,MAAM,EAAA;AAAA,EAAA,OACrC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,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AAC1B,MAAA,UAAU,EAAE;QACV,YAAY,eACVA,IAAC,gBAAgB,EAAA;AACT,UAAA,mBAAmB,EAAnB,mBAAmB;AACzB,UAAA,MAAM,EAAE;AAAY,SACrB,CACF;QACD,WAAW,eAAEA,IAAC,IAAI,EAAA;AAAC,UAAA,EAAE,EAAE;SAAc;AACvC;KAAE,CACH;AAAC,GACU,CAAC;AAEnB;;;;"}
package/dist/v2/Finish.js CHANGED
@@ -1,15 +1,11 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import { Typography, Button } from '@bigbinary/neeto-atoms';
3
- import { isNotEmpty, noop } from '@bigbinary/neeto-cist';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
+ import { Illustration, Typography, Button } from '@bigbinary/neeto-atoms';
3
+ import { noop, isNotEmpty } from '@bigbinary/neeto-cist';
4
4
  import { withT } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
5
5
  import CardLayout from '@bigbinary/neeto-molecules/v2/CardLayout';
6
6
  import { P as PropTypes } from '../index-MS1ts-9f.js';
7
- import { S as SvgSuccess } from '../success-C6rQdhhF.js';
8
7
  import { jsxs, jsx } from 'react/jsx-runtime';
9
- import 'react';
10
8
 
11
- 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; }
12
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
13
9
  var Finish = withT(function (_ref) {
14
10
  var t = _ref.t,
15
11
  _ref$onClick = _ref.onClick,
@@ -31,7 +27,9 @@ var Finish = withT(function (_ref) {
31
27
  variant: "secondary"
32
28
  }, secondaryButtonProps))]
33
29
  }),
34
- children: [/*#__PURE__*/jsx(SvgSuccess, {}), /*#__PURE__*/jsx(Typography, {
30
+ children: [/*#__PURE__*/jsx(Illustration, {
31
+ name: "success"
32
+ }), /*#__PURE__*/jsx(Typography, {
35
33
  className: "mb-6 mt-4",
36
34
  variant: "h4",
37
35
  weight: "semibold",
@@ -1 +1 @@
1
- {"version":3,"file":"Finish.js","sources":["../../app/javascript/src/v2/components/Steps/Finish.jsx"],"sourcesContent":["import { Typography, Button } from \"@bigbinary/neeto-atoms\";\nimport { isNotEmpty, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\n\nimport SuccessIcon from \"assets/images/success\";\n\nconst Finish = withT(\n ({\n t,\n onClick = noop,\n title = \"\",\n buttonProps = {},\n secondaryButtonProps = {},\n children,\n }) => (\n <CardLayout\n actionBlock={\n <div className=\"flex w-full flex-wrap items-center gap-2\">\n <Button\n {...{ onClick }}\n label={t(\"neetoIntegrations.common.continue\")}\n {...buttonProps}\n />\n {isNotEmpty(secondaryButtonProps) && (\n <Button variant=\"secondary\" {...secondaryButtonProps} />\n )}\n </div>\n }\n >\n <SuccessIcon />\n <Typography className=\"mb-6 mt-4\" variant=\"h4\" weight=\"semibold\">\n {title}\n </Typography>\n {children}\n </CardLayout>\n )\n);\n\nFinish.prototypes = {\n onClick: PropTypes.func,\n title: PropTypes.string,\n buttonProps: PropTypes.object,\n secondaryButtonProps: PropTypes.object,\n};\n\nexport default Finish;\n"],"names":["Finish","withT","_ref","t","_ref$onClick","onClick","noop","_ref$title","title","_ref$buttonProps","buttonProps","_ref$secondaryButtonP","secondaryButtonProps","children","_jsxs","CardLayout","actionBlock","className","_jsx","Button","_objectSpread","label","isNotEmpty","variant","SuccessIcon","Typography","weight","prototypes","P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EAAC,IAAI;AAACG,MAAAA,MAAM,EAAC,UAAU;AAAAb,MAAAA,QAAA,EAC7DL;KACS,CAAC,EACZK,QAAQ;AAAA,GACC,CAAC;AAAA,CAEjB;AAEAb,MAAM,CAAC2B,UAAU,GAAG;EAClBtB,OAAO,EAAEuB,SAAS,CAACC,IAAI;EACvBrB,KAAK,EAAEoB,SAAS,CAACE,MAAM;EACvBpB,WAAW,EAAEkB,SAAS,CAACG,MAAM;EAC7BnB,oBAAoB,EAAEgB,SAAS,CAACG;AAClC,CAAC;;;;"}
1
+ {"version":3,"file":"Finish.js","sources":["../../app/javascript/src/v2/components/Steps/Finish.jsx"],"sourcesContent":["import { Typography, Button, Illustration } from \"@bigbinary/neeto-atoms\";\nimport { isNotEmpty, noop } from \"neetocist\";\nimport { withT } from \"neetocommons/v2/react-utils\";\nimport CardLayout from \"neetomolecules/v2/CardLayout\";\nimport PropTypes from \"prop-types\";\n\nconst Finish = withT(\n ({\n t,\n onClick = noop,\n title = \"\",\n buttonProps = {},\n secondaryButtonProps = {},\n children,\n }) => (\n <CardLayout\n actionBlock={\n <div className=\"flex w-full flex-wrap items-center gap-2\">\n <Button\n {...{ onClick }}\n label={t(\"neetoIntegrations.common.continue\")}\n {...buttonProps}\n />\n {isNotEmpty(secondaryButtonProps) && (\n <Button variant=\"secondary\" {...secondaryButtonProps} />\n )}\n </div>\n }\n >\n <Illustration name=\"success\" />\n <Typography className=\"mb-6 mt-4\" variant=\"h4\" weight=\"semibold\">\n {title}\n </Typography>\n {children}\n </CardLayout>\n )\n);\n\nFinish.prototypes = {\n onClick: PropTypes.func,\n title: PropTypes.string,\n buttonProps: PropTypes.object,\n secondaryButtonProps: PropTypes.object,\n};\n\nexport default Finish;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAMA,IAAM,MAAM,GAAG,KAAK,CAClB,UAAA,IAAA,EAAA;EAAA,IACE,CAAC,QAAD,CAAC;AAAA,IAAA,YAAA,GAAA,IAAA,CACD,OAAO;A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B,EAAE,SAAS,CAAC;AAClC,CAAC;;;;"}
@@ -1,4 +1,4 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
1
+ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
3
3
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
4
4
  import { useState, useEffect } from 'react';
@@ -16,7 +16,6 @@ import 'classnames';
16
16
  import '@bigbinary/neeto-commons-frontend/v2/react-utils';
17
17
  import '@bigbinary/neeto-molecules/v2/CardLayout';
18
18
  import '../index-MS1ts-9f.js';
19
- import '../success-C6rQdhhF.js';
20
19
 
21
20
  var INTEGRATION_STEPS = [{
22
21
  step: "1",
@@ -34,8 +33,6 @@ var STEPS = {
34
33
  finish: t("neetoIntegrations.common.finish")
35
34
  };
36
35
 
37
- 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; }
38
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).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; }
39
36
  var GoogleCalendar = function GoogleCalendar(_ref) {
40
37
  var permissionImage = _ref.permissionImage,
41
38
  fetchAuthorizationUrl = _ref.fetchAuthorizationUrl,