@bigbinary/neeto-integrations-frontend 4.2.7 → 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.
- package/app/javascript/src/translations/en.json +9 -9
- package/dist/.ready +1 -1
- package/dist/Connect.js +1 -3
- package/dist/Connect.js.map +1 -1
- package/dist/Daily.js +3 -3
- package/dist/Daily.js.map +1 -1
- package/dist/DailyForm.js +3 -3
- package/dist/DailyForm.js.map +1 -1
- package/dist/Demo.js.map +1 -1
- package/dist/DisconnectAlert.js +1 -3
- package/dist/DisconnectAlert.js.map +1 -1
- package/dist/Finish.js +29 -6
- package/dist/Finish.js.map +1 -1
- package/dist/GoogleCalendar.js +1 -4
- package/dist/GoogleCalendar.js.map +1 -1
- package/dist/Manage.js +1 -3
- package/dist/Manage.js.map +1 -1
- package/dist/Modal.js.map +1 -1
- package/dist/Telnyx.js +9 -9
- package/dist/Telnyx.js.map +1 -1
- package/dist/Twilio.js +3 -5
- package/dist/Twilio.js.map +1 -1
- package/dist/WalkthroughModal.js.map +1 -1
- package/dist/ZapierForm.js +2 -6
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.js +3 -3
- package/dist/Zoom.js.map +1 -1
- package/dist/cjs/Connect.js +1 -3
- package/dist/cjs/Connect.js.map +1 -1
- package/dist/cjs/Daily.js +2 -2
- package/dist/cjs/Daily.js.map +1 -1
- package/dist/cjs/DailyForm.js +2 -2
- package/dist/cjs/DailyForm.js.map +1 -1
- package/dist/cjs/Demo.js.map +1 -1
- package/dist/cjs/DisconnectAlert.js +1 -3
- package/dist/cjs/DisconnectAlert.js.map +1 -1
- package/dist/cjs/Finish.js +48 -6
- package/dist/cjs/Finish.js.map +1 -1
- package/dist/cjs/GoogleCalendar.js +1 -4
- package/dist/cjs/GoogleCalendar.js.map +1 -1
- package/dist/cjs/Manage.js +1 -3
- package/dist/cjs/Manage.js.map +1 -1
- package/dist/cjs/Modal.js.map +1 -1
- package/dist/cjs/Telnyx.js +8 -8
- package/dist/cjs/Telnyx.js.map +1 -1
- package/dist/cjs/Twilio.js +2 -4
- package/dist/cjs/Twilio.js.map +1 -1
- package/dist/cjs/WalkthroughModal.js.map +1 -1
- package/dist/cjs/ZapierForm.js +2 -6
- package/dist/cjs/ZapierForm.js.map +1 -1
- package/dist/cjs/Zoom.js +1 -1
- package/dist/cjs/Zoom.js.map +1 -1
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/v2/Connect.js +48 -46
- package/dist/cjs/v2/Connect.js.map +1 -1
- package/dist/cjs/v2/Daily.js +5 -3
- package/dist/cjs/v2/Daily.js.map +1 -1
- package/dist/cjs/v2/DailyForm.js +2 -2
- package/dist/cjs/v2/DailyForm.js.map +1 -1
- package/dist/cjs/v2/Demo.js.map +1 -1
- package/dist/cjs/v2/DisconnectAlert.js +1 -3
- package/dist/cjs/v2/DisconnectAlert.js.map +1 -1
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js +1 -3
- package/dist/cjs/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/cjs/v2/Finish.js +4 -6
- package/dist/cjs/v2/Finish.js.map +1 -1
- package/dist/cjs/v2/GoogleCalendar.js +1 -4
- package/dist/cjs/v2/GoogleCalendar.js.map +1 -1
- package/dist/cjs/v2/GoogleMapsForm.js +125 -0
- package/dist/cjs/v2/GoogleMapsForm.js.map +1 -0
- package/dist/cjs/v2/GoogleMapsIcon.js +37 -0
- package/dist/cjs/v2/GoogleMapsIcon.js.map +1 -0
- package/dist/cjs/v2/GoogleMapsManage.js +108 -0
- package/dist/cjs/v2/GoogleMapsManage.js.map +1 -0
- package/dist/cjs/v2/Manage.js +70 -91
- package/dist/cjs/v2/Manage.js.map +1 -1
- package/dist/cjs/v2/Modal.js +1 -1
- package/dist/cjs/v2/Modal.js.map +1 -1
- package/dist/cjs/v2/SmsLogs.js +3 -9
- package/dist/cjs/v2/SmsLogs.js.map +1 -1
- package/dist/cjs/v2/Telnyx.js +26 -43
- package/dist/cjs/v2/Telnyx.js.map +1 -1
- package/dist/cjs/v2/Twilio.js +20 -39
- package/dist/cjs/v2/Twilio.js.map +1 -1
- package/dist/cjs/v2/WalkthroughModal.js.map +1 -1
- package/dist/cjs/v2/ZapierForm.js +4 -7
- package/dist/cjs/v2/ZapierForm.js.map +1 -1
- package/dist/cjs/v2/Zoom.js +4 -2
- package/dist/cjs/v2/Zoom.js.map +1 -1
- package/dist/cjs/v2/index.js +33 -277
- package/dist/cjs/v2/index.js.map +1 -1
- package/dist/index-MS1ts-9f.js.map +1 -1
- package/dist/index-dxk7jTL7.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/{query-dZxWLxGc.js → query-CyER0UTx.js} +2 -2
- package/dist/query-CyER0UTx.js.map +1 -0
- package/dist/query-DFg4la-L.js.map +1 -1
- package/dist/{useDailiesApi-dbPtabvs.js → useDailiesApi-BIZR1qiD.js} +3 -5
- package/dist/useDailiesApi-BIZR1qiD.js.map +1 -0
- package/dist/{useDailiesApi-BmI2LDF7.js → useDailiesApi-BS8aif9t.js} +2 -4
- package/dist/useDailiesApi-BS8aif9t.js.map +1 -0
- package/dist/useDisconnectionAlertsApi-BGaBOO_4.js.map +1 -1
- package/dist/{useDisconnectionAlertsApi-CKKd-vBU.js → useDisconnectionAlertsApi-BW25EN1l.js} +2 -2
- package/dist/{useDisconnectionAlertsApi-CKKd-vBU.js.map → useDisconnectionAlertsApi-BW25EN1l.js.map} +1 -1
- package/dist/useGoogleMapsApi-DcJ5vTJZ.js +46 -0
- package/dist/useGoogleMapsApi-DcJ5vTJZ.js.map +1 -0
- package/dist/useGoogleMapsApi-sMsxsnL9.js +50 -0
- package/dist/useGoogleMapsApi-sMsxsnL9.js.map +1 -0
- package/dist/{useTelnyxApi-DH5XaYIo.js → useTelnyxApi-CqB3f44W.js} +2 -4
- package/dist/useTelnyxApi-CqB3f44W.js.map +1 -0
- package/dist/{useTelnyxApi-Bdc2eE8x.js → useTelnyxApi-fFpslv-E.js} +3 -5
- package/dist/useTelnyxApi-fFpslv-E.js.map +1 -0
- package/dist/{useTwilioApi-CYF8UIPN.js → useTwilioApi-BwkrNBtg.js} +2 -4
- package/dist/useTwilioApi-BwkrNBtg.js.map +1 -0
- package/dist/{useTwilioApi-CFdE3TY_.js → useTwilioApi-CEaEH5MG.js} +3 -5
- package/dist/useTwilioApi-CEaEH5MG.js.map +1 -0
- package/dist/useZoomApi-Be2unav5.js.map +1 -1
- package/dist/{useZoomApi-CcPofKkx.js → useZoomApi-i5CNstmT.js} +2 -2
- package/dist/useZoomApi-i5CNstmT.js.map +1 -0
- package/dist/utils-fchHJTr3.js +44 -0
- package/dist/utils-fchHJTr3.js.map +1 -0
- package/dist/utils-jyxIYRHb.js +47 -0
- package/dist/utils-jyxIYRHb.js.map +1 -0
- package/dist/v2/Connect.js +48 -46
- package/dist/v2/Connect.js.map +1 -1
- package/dist/v2/Daily.js +6 -4
- package/dist/v2/Daily.js.map +1 -1
- package/dist/v2/DailyForm.js +3 -3
- package/dist/v2/DailyForm.js.map +1 -1
- package/dist/v2/Demo.js.map +1 -1
- package/dist/v2/DisconnectAlert.js +1 -3
- package/dist/v2/DisconnectAlert.js.map +1 -1
- package/dist/v2/DisconnectedIntegrationsRibbon.js +3 -5
- package/dist/v2/DisconnectedIntegrationsRibbon.js.map +1 -1
- package/dist/v2/Finish.js +6 -8
- package/dist/v2/Finish.js.map +1 -1
- package/dist/v2/GoogleCalendar.js +1 -4
- package/dist/v2/GoogleCalendar.js.map +1 -1
- package/dist/v2/GoogleMapsForm.js +104 -0
- package/dist/v2/GoogleMapsForm.js.map +1 -0
- package/dist/v2/GoogleMapsIcon.js +35 -0
- package/dist/v2/GoogleMapsIcon.js.map +1 -0
- package/dist/v2/GoogleMapsManage.js +106 -0
- package/dist/v2/GoogleMapsManage.js.map +1 -0
- package/dist/v2/Manage.js +72 -93
- package/dist/v2/Manage.js.map +1 -1
- package/dist/v2/Modal.js +1 -1
- package/dist/v2/Modal.js.map +1 -1
- package/dist/v2/SmsLogs.js +4 -10
- package/dist/v2/SmsLogs.js.map +1 -1
- package/dist/v2/Telnyx.js +28 -45
- package/dist/v2/Telnyx.js.map +1 -1
- package/dist/v2/Twilio.js +22 -41
- package/dist/v2/Twilio.js.map +1 -1
- package/dist/v2/WalkthroughModal.js.map +1 -1
- package/dist/v2/ZapierForm.js +4 -7
- package/dist/v2/ZapierForm.js.map +1 -1
- package/dist/v2/Zoom.js +6 -4
- package/dist/v2/Zoom.js.map +1 -1
- package/dist/v2/index.js +34 -264
- package/dist/v2/index.js.map +1 -1
- package/package.json +19 -18
- package/dist/query-dZxWLxGc.js.map +0 -1
- package/dist/success-C6rQdhhF.js +0 -30
- package/dist/success-C6rQdhhF.js.map +0 -1
- package/dist/success-CsNvTPBG.js +0 -51
- package/dist/success-CsNvTPBG.js.map +0 -1
- package/dist/useDailiesApi-BmI2LDF7.js.map +0 -1
- package/dist/useDailiesApi-dbPtabvs.js.map +0 -1
- package/dist/useTelnyxApi-Bdc2eE8x.js.map +0 -1
- package/dist/useTelnyxApi-DH5XaYIo.js.map +0 -1
- package/dist/useTwilioApi-CFdE3TY_.js.map +0 -1
- package/dist/useTwilioApi-CYF8UIPN.js.map +0 -1
- package/dist/useZoomApi-CcPofKkx.js.map +0 -1
package/dist/cjs/v2/Zoom.js
CHANGED
|
@@ -14,10 +14,12 @@ require('@bigbinary/neeto-commons-frontend/constants');
|
|
|
14
14
|
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
15
15
|
require('axios');
|
|
16
16
|
require('../../query-DFg4la-L.js');
|
|
17
|
-
require('@babel/runtime/helpers/
|
|
17
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
18
18
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
19
|
-
require('
|
|
19
|
+
require('@bigbinary/neeto-molecules/v2/CardLayout');
|
|
20
|
+
require('../../utils-jyxIYRHb.js');
|
|
20
21
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
22
|
+
require('./DisconnectAlert.js');
|
|
21
23
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
|
|
22
24
|
|
|
23
25
|
var Zoom = function Zoom(_ref) {
|
package/dist/cjs/v2/Zoom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\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 calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"Zoom.js","sources":["../../../app/javascript/src/v2/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import { useState } from \"react\";\n\nimport { Spinner } from \"@bigbinary/neeto-atoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nimport ManageIntegrations from \"../../commons/Manage\";\n\nconst Zoom = ({\n connectUrl = \"\",\n description = \"\",\n onDisconnect = noop,\n calloutProps = {},\n}) => {\n const { t } = useTranslation();\n\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { metadata: { email = \"\" } = {} } = {}, isLoading } =\n useShowZoom();\n\n const { mutate: destroyIntegration, isPending: isDisconnecting } =\n useDestroyZoom({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect?.();\n },\n });\n\n const isConnected = isPresent(email);\n\n const handleDisconnect = () => destroyIntegration(\"zoom\");\n\n if (isLoading) {\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 calloutProps,\n connectUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={ZoomIcon}\n integration=\"zoom\"\n description={\n isConnected ? (\n <Trans\n components={{ underline: <u className=\"font-medium\" /> }}\n i18nKey=\"neetoIntegrations.zoom.account\"\n values={{ email }}\n />\n ) : (\n description\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.zoom.connected\")\n : t(\"neetoIntegrations.zoom.connect\")\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => handleDisconnect()}\n />\n );\n};\n\nexport default Zoom;\n"],"names":["noop","useTranslation","useState","useShowZoom","useDestroyZoom","isPresent","_jsx","Spinner","ManageIntegrations","Trans"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAM,IAAI,GAAG,SAAP,IAAI,CAAA,IAAA,EAKJ;AAAA,EAAA,IAAA,eAAA,GAAA,IAAA,CAJJ,UAAU;AAAV,IAAA,UAAU,gCAAG,EAAE,GAAA,eAAA;AAAA,IAAA,gBAAA,GAAA,IAAA,CACf,WAAW;AAAX,IAAA,WAAW,iCAAG,EAAE,GAAA,gBAAA;AAAA,IAAA,iBAAA,GAAA,IAAA,CAChB,YAAY;AAAZ,IAAA,YAAY,kCAAGA,cAAI,GAAA,iBAAA;AAAA,IAAA,iBAAA,GAAA,IAAA,CACnB,YAAY;IAAZ,YAAY,GAAA,iBAAA,KAAA,MAAA,GAAG,EAAE,GAAA,iBAAA;EAEjB,IAAA,eAAA,GAAcC,2BAAc,EAAE;AAAtB,IAAA,CAAC,mBAAD,CAAC;EAET,IAAA,SAAA,GAA0DC,cAAQ,CAAC,KAAK,CAAC;AAAA,IAAA,UAAA,GAAA,cAAA,CAAA,SAAA,EAAA,CAAA,CAAA;IAAlE,qBAAqB,GAAA,UAAA,CAAA,CAAA,CAAA;IAAE,wBAAwB,GAAA,UAAA,CAAA,CAAA,CAAA;EAEtD,IAAA,YAAA,GACEC,sBAAW,EAAE;AAAA,IAAA,iBAAA,GAAA,YAAA,CADP,IAAI;AAAA,IAAA,kBAAA,GAAA,iBAAA,KAAA,MAAA,GAAsC,EAAE,GAAA,iBAAA;AAAA,IAAA,qBAAA,GAAA,kBAAA,CAApC,QAAQ;AAAA,IAAA,sBAAA,GAAA,qBAAA,KAAA,MAAA,GAAmB,EAAE,GAAA,qBAAA;AAAA,IAAA,sBAAA,GAAA,sBAAA,CAAjB,KAAK;AAAL,IAAA,KAAK,uCAAG,EAA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,GAEF,WAEH;IACD,KAAK,EACH,WAAW,GACP,CAAC,CAAC,kCAAkC,CAAC,GACrC,CAAC,CAAC,gCAAgC,CACvC;IACD,OAAO,EAAE,SAAT,OAAO,GAAA;MAAA,OAAQ,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/C,YAAY,EAAE,SAAd,YAAY,GAAA;MAAA,OAAQ,gBAAgB,EAAE;AAAA,IAAA;AAAC,GACxC,CAAC;AAEN;;;;"}
|
package/dist/cjs/v2/index.js
CHANGED
|
@@ -7,25 +7,9 @@ var v2_DisconnectedIntegrationsRibbon = require('./DisconnectedIntegrationsRibbo
|
|
|
7
7
|
var v2_Daily = require('./Daily.js');
|
|
8
8
|
var v2_DailyForm = require('./DailyForm.js');
|
|
9
9
|
var v2_GoogleCalendar = require('./GoogleCalendar.js');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var CardLayout = require('@bigbinary/neeto-molecules/v2/CardLayout');
|
|
14
|
-
var Container = require('@bigbinary/neeto-molecules/v2/Container');
|
|
15
|
-
var Header = require('@bigbinary/neeto-molecules/v2/Header');
|
|
16
|
-
var reactI18next = require('react-i18next');
|
|
17
|
-
var reactRouterDom = require('react-router-dom');
|
|
18
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
19
|
-
var reactQuery = require('@tanstack/react-query');
|
|
20
|
-
var constants = require('@bigbinary/neeto-commons-frontend/constants');
|
|
21
|
-
var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
22
|
-
var axios = require('axios');
|
|
23
|
-
var i18next = require('i18next');
|
|
24
|
-
var yup = require('yup');
|
|
25
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
26
|
-
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
27
|
-
var React = require('react');
|
|
28
|
-
var CopyToClipboardButton = require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
|
|
10
|
+
var v2_GoogleMapsForm = require('./GoogleMapsForm.js');
|
|
11
|
+
var v2_GoogleMapsIcon = require('./GoogleMapsIcon.js');
|
|
12
|
+
var v2_GoogleMapsManage = require('./GoogleMapsManage.js');
|
|
29
13
|
var v2_Telnyx = require('./Telnyx.js');
|
|
30
14
|
var v2_Twilio = require('./Twilio.js');
|
|
31
15
|
var v2_Zoom = require('./Zoom.js');
|
|
@@ -35,21 +19,45 @@ var v2_Connect = require('./Connect.js');
|
|
|
35
19
|
var v2_Demo = require('./Demo.js');
|
|
36
20
|
var v2_Finish = require('./Finish.js');
|
|
37
21
|
var v2_WalkthroughModal = require('./WalkthroughModal.js');
|
|
22
|
+
require('@babel/runtime/helpers/objectSpread2');
|
|
23
|
+
require('@bigbinary/neeto-atoms');
|
|
24
|
+
require('@bigbinary/neeto-cist');
|
|
38
25
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils');
|
|
26
|
+
require('@bigbinary/neeto-molecules/v2/CardLayout');
|
|
27
|
+
require('../../utils-jyxIYRHb.js');
|
|
39
28
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
|
29
|
+
require('react/jsx-runtime');
|
|
40
30
|
require('@bigbinary/neeto-commons-frontend/v2/react-utils/withT');
|
|
31
|
+
require('@babel/runtime/helpers/slicedToArray');
|
|
32
|
+
require('react');
|
|
41
33
|
require('@bigbinary/neeto-molecules/v2/StickyRibbon');
|
|
42
34
|
require('ramda');
|
|
35
|
+
require('react-i18next');
|
|
36
|
+
require('react-router-dom');
|
|
43
37
|
require('../../useDisconnectionAlertsApi-BGaBOO_4.js');
|
|
44
|
-
require('
|
|
38
|
+
require('@tanstack/react-query');
|
|
39
|
+
require('@bigbinary/neeto-commons-frontend/constants');
|
|
40
|
+
require('@bigbinary/neeto-commons-frontend/react-utils');
|
|
41
|
+
require('axios');
|
|
42
|
+
require('i18next');
|
|
43
|
+
require('../../useDailiesApi-BS8aif9t.js');
|
|
45
44
|
require('@bigbinary/neeto-commons-frontend/v2/utils');
|
|
46
45
|
require('@bigbinary/neeto-icons/misc/Daily');
|
|
46
|
+
require('@bigbinary/neeto-molecules/v2/CopyToClipboardButton');
|
|
47
|
+
require('@bigbinary/neeto-atoms/formik');
|
|
48
|
+
require('@bigbinary/neeto-molecules/v2/Container');
|
|
49
|
+
require('@bigbinary/neeto-molecules/v2/Header');
|
|
50
|
+
require('yup');
|
|
47
51
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
48
52
|
require('@bigbinary/neeto-icons/misc/GoogleCalendar');
|
|
49
53
|
require('@bigbinary/neeto-icons/misc/Google');
|
|
50
|
-
require('../../
|
|
54
|
+
require('../../useGoogleMapsApi-sMsxsnL9.js');
|
|
55
|
+
require('@bigbinary/neeto-atoms/primitives');
|
|
56
|
+
require('@bigbinary/neeto-molecules/v2/OptionCard');
|
|
57
|
+
require('../../useTelnyxApi-CqB3f44W.js');
|
|
58
|
+
require('@babel/runtime/helpers/regenerator');
|
|
51
59
|
require('@babel/runtime/helpers/asyncToGenerator');
|
|
52
|
-
require('../../useTwilioApi-
|
|
60
|
+
require('../../useTwilioApi-BwkrNBtg.js');
|
|
53
61
|
require('@bigbinary/neeto-icons/misc/Zoom');
|
|
54
62
|
require('../../useZoomApi-Be2unav5.js');
|
|
55
63
|
require('classnames');
|
|
@@ -59,260 +67,8 @@ require('@bigbinary/neeto-molecules/v2/TableWrapper');
|
|
|
59
67
|
require('@bigbinary/neeto-filters-frontend/v2/Bar');
|
|
60
68
|
require('@bigbinary/neeto-molecules/v2/SubHeader');
|
|
61
69
|
require('../../index-dxk7jTL7.js');
|
|
62
|
-
require('../../success-CsNvTPBG.js');
|
|
63
70
|
|
|
64
|
-
function _interopNamespaceDefault(e) {
|
|
65
|
-
var n = Object.create(null);
|
|
66
|
-
if (e) {
|
|
67
|
-
Object.keys(e).forEach(function (k) {
|
|
68
|
-
if (k !== 'default') {
|
|
69
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
70
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
71
|
-
enumerable: true,
|
|
72
|
-
get: function () { return e[k]; }
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
n.default = e;
|
|
78
|
-
return Object.freeze(n);
|
|
79
|
-
}
|
|
80
71
|
|
|
81
|
-
var yup__namespace = /*#__PURE__*/_interopNamespaceDefault(yup);
|
|
82
|
-
|
|
83
|
-
var create = function create(payload) {
|
|
84
|
-
return axios.post(query.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, {
|
|
85
|
-
googleMaps: payload
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
var show = function show() {
|
|
89
|
-
return axios.get(query.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);
|
|
90
|
-
};
|
|
91
|
-
var destroy = function destroy() {
|
|
92
|
-
return axios["delete"](query.INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);
|
|
93
|
-
};
|
|
94
|
-
var googleMapsApi = {
|
|
95
|
-
create: create,
|
|
96
|
-
show: show,
|
|
97
|
-
destroy: destroy
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
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; }
|
|
101
|
-
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; }
|
|
102
|
-
var useFetchGoogleMaps = function useFetchGoogleMaps() {
|
|
103
|
-
return reactQuery.useQuery({
|
|
104
|
-
queryKey: query.googleMapsQueryKey,
|
|
105
|
-
queryFn: googleMapsApi.show,
|
|
106
|
-
staleTime: constants.DEFAULT_STALE_TIME
|
|
107
|
-
});
|
|
108
|
-
};
|
|
109
|
-
var useCreateGoogleMaps = function useCreateGoogleMaps() {
|
|
110
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
111
|
-
return reactUtils.useMutationWithInvalidation(googleMapsApi.create, _objectSpread({
|
|
112
|
-
keysToInvalidate: [query.googleMapsQueryKey]
|
|
113
|
-
}, options));
|
|
114
|
-
};
|
|
115
|
-
var useDestroyGoogleMaps = function useDestroyGoogleMaps() {
|
|
116
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
117
|
-
return reactUtils.useMutationWithInvalidation(googleMapsApi.destroy, _objectSpread({
|
|
118
|
-
keysToInvalidate: [query.googleMapsQueryKey]
|
|
119
|
-
}, options));
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
var GOOGLE_MAPS_FORM_INITIAL_VALUES = {
|
|
123
|
-
apiKey: ""
|
|
124
|
-
};
|
|
125
|
-
var GOOGLE_MAPS_VALIDATION_SCHEMA = yup__namespace.object().shape({
|
|
126
|
-
apiKey: yup__namespace.string().trim().required(i18next.t("neetoIntegrations.errors.required", {
|
|
127
|
-
entity: i18next.t("neetoIntegrations.googleMaps.apiKey")
|
|
128
|
-
}))
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
var Form = function Form(_ref) {
|
|
132
|
-
var _ref$helpDocUrl = _ref.helpDocUrl,
|
|
133
|
-
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
134
|
-
_ref$breadcrumbs = _ref.breadcrumbs,
|
|
135
|
-
breadcrumbs = _ref$breadcrumbs === void 0 ? [] : _ref$breadcrumbs,
|
|
136
|
-
_ref$onConnect = _ref.onConnect,
|
|
137
|
-
onConnect = _ref$onConnect === void 0 ? neetoCist.noop : _ref$onConnect;
|
|
138
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
139
|
-
t = _useTranslation.t;
|
|
140
|
-
var history = reactRouterDom.useHistory();
|
|
141
|
-
var _useCreateGoogleMaps = useCreateGoogleMaps({
|
|
142
|
-
onSuccess: function onSuccess() {
|
|
143
|
-
return onConnect();
|
|
144
|
-
}
|
|
145
|
-
}),
|
|
146
|
-
createGoogleMaps = _useCreateGoogleMaps.mutate,
|
|
147
|
-
isConnecting = _useCreateGoogleMaps.isPending;
|
|
148
|
-
var handleSubmit = function handleSubmit(_ref2) {
|
|
149
|
-
var apiKey = _ref2.apiKey;
|
|
150
|
-
return createGoogleMaps({
|
|
151
|
-
apiKey: apiKey.trim()
|
|
152
|
-
});
|
|
153
|
-
};
|
|
154
|
-
return /*#__PURE__*/jsxRuntime.jsxs(Container, {
|
|
155
|
-
isHeaderFixed: true,
|
|
156
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(Header, {
|
|
157
|
-
breadcrumbs: breadcrumbs,
|
|
158
|
-
title: t("neetoIntegrations.common.connect")
|
|
159
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
160
|
-
className: "w-full",
|
|
161
|
-
children: /*#__PURE__*/jsxRuntime.jsx(formik.Form, {
|
|
162
|
-
formikProps: {
|
|
163
|
-
initialValues: GOOGLE_MAPS_FORM_INITIAL_VALUES,
|
|
164
|
-
validationSchema: GOOGLE_MAPS_VALIDATION_SCHEMA,
|
|
165
|
-
onSubmit: handleSubmit
|
|
166
|
-
},
|
|
167
|
-
children: /*#__PURE__*/jsxRuntime.jsx(CardLayout, {
|
|
168
|
-
actionBlock: /*#__PURE__*/jsxRuntime.jsx(formik.ActionBlock, {
|
|
169
|
-
cancelButtonProps: {
|
|
170
|
-
onClick: function onClick() {
|
|
171
|
-
return history.goBack();
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
isSubmitting: isConnecting,
|
|
175
|
-
submitButtonProps: {
|
|
176
|
-
label: t("neetoIntegrations.common.connect")
|
|
177
|
-
}
|
|
178
|
-
}),
|
|
179
|
-
children: /*#__PURE__*/jsxRuntime.jsx(formik.Input, {
|
|
180
|
-
autoFocus: true,
|
|
181
|
-
required: true,
|
|
182
|
-
autoComplete: "off",
|
|
183
|
-
dataTestId: "google-maps-api-key",
|
|
184
|
-
label: t("neetoIntegrations.googleMaps.apiKey"),
|
|
185
|
-
name: "apiKey",
|
|
186
|
-
helpText: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
187
|
-
i18nKey: "neetoIntegrations.googleMaps.apiKeyHelpText",
|
|
188
|
-
components: {
|
|
189
|
-
helpLink: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Button, {
|
|
190
|
-
"data-testid": "google-maps-api-key-help-link",
|
|
191
|
-
href: helpDocUrl,
|
|
192
|
-
rel: "noreferrer",
|
|
193
|
-
target: "_blank",
|
|
194
|
-
variant: "link"
|
|
195
|
-
})
|
|
196
|
-
}
|
|
197
|
-
})
|
|
198
|
-
})
|
|
199
|
-
})
|
|
200
|
-
})
|
|
201
|
-
})]
|
|
202
|
-
});
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
var GoogleMapsIcon = function GoogleMapsIcon(_ref) {
|
|
206
|
-
var _ref$size = _ref.size,
|
|
207
|
-
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
208
|
-
_ref$className = _ref.className,
|
|
209
|
-
className = _ref$className === void 0 ? "" : _ref$className;
|
|
210
|
-
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
211
|
-
className: className,
|
|
212
|
-
"aria-hidden": "true",
|
|
213
|
-
height: size,
|
|
214
|
-
viewBox: "0 0 92.3 132.3",
|
|
215
|
-
width: size,
|
|
216
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
217
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
218
|
-
d: "M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z",
|
|
219
|
-
fill: "#1a73e8"
|
|
220
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
221
|
-
d: "M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z",
|
|
222
|
-
fill: "#ea4335"
|
|
223
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
224
|
-
d: "M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3",
|
|
225
|
-
fill: "#4285f4"
|
|
226
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
227
|
-
d: "M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3",
|
|
228
|
-
fill: "#fbbc04"
|
|
229
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
230
|
-
d: "M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2",
|
|
231
|
-
fill: "#34a853"
|
|
232
|
-
})]
|
|
233
|
-
});
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
var Manage = function Manage(_ref) {
|
|
237
|
-
var _ref$connectPath = _ref.connectPath,
|
|
238
|
-
connectPath = _ref$connectPath === void 0 ? "" : _ref$connectPath,
|
|
239
|
-
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
240
|
-
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
241
|
-
_ref$onDisconnect = _ref.onDisconnect,
|
|
242
|
-
onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect;
|
|
243
|
-
var _useTranslation = reactI18next.useTranslation(),
|
|
244
|
-
t = _useTranslation.t;
|
|
245
|
-
var _useState = React.useState(false),
|
|
246
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
247
|
-
isDisconnectAlertOpen = _useState2[0],
|
|
248
|
-
setIsDisconnectAlertOpen = _useState2[1];
|
|
249
|
-
var _useFetchGoogleMaps = useFetchGoogleMaps(),
|
|
250
|
-
_useFetchGoogleMaps$d = _useFetchGoogleMaps.data,
|
|
251
|
-
_useFetchGoogleMaps$d2 = _useFetchGoogleMaps$d === void 0 ? {} : _useFetchGoogleMaps$d,
|
|
252
|
-
_useFetchGoogleMaps$d3 = _useFetchGoogleMaps$d2.apiKey,
|
|
253
|
-
apiKey = _useFetchGoogleMaps$d3 === void 0 ? null : _useFetchGoogleMaps$d3,
|
|
254
|
-
isLoading = _useFetchGoogleMaps.isLoading;
|
|
255
|
-
var _useDestroyGoogleMaps = useDestroyGoogleMaps({
|
|
256
|
-
onSuccess: function onSuccess() {
|
|
257
|
-
setIsDisconnectAlertOpen(false);
|
|
258
|
-
onDisconnect();
|
|
259
|
-
}
|
|
260
|
-
}),
|
|
261
|
-
destroyGoogleMaps = _useDestroyGoogleMaps.mutate,
|
|
262
|
-
isDisconnecting = _useDestroyGoogleMaps.isPending;
|
|
263
|
-
var isConnected = neetoCist.isPresent(apiKey);
|
|
264
|
-
if (isLoading) {
|
|
265
|
-
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
266
|
-
className: "flex h-full w-full items-center justify-center",
|
|
267
|
-
children: /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Spinner, {})
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
return /*#__PURE__*/jsxRuntime.jsx(v2_Manage, {
|
|
271
|
-
connectPath: connectPath,
|
|
272
|
-
helpDocUrl: helpDocUrl,
|
|
273
|
-
isConnected: isConnected,
|
|
274
|
-
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
275
|
-
isDisconnecting: isDisconnecting,
|
|
276
|
-
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
277
|
-
Icon: GoogleMapsIcon,
|
|
278
|
-
disconnectMessage: t("neetoIntegrations.googleMaps.disconnect.message"),
|
|
279
|
-
disconnectTitle: t("neetoIntegrations.googleMaps.disconnect.title"),
|
|
280
|
-
integration: "googleMaps",
|
|
281
|
-
integrationName: t("neetoIntegrations.googleMaps.title"),
|
|
282
|
-
description: isConnected ? /*#__PURE__*/jsxRuntime.jsx(neetoAtoms.Typography, {
|
|
283
|
-
as: "span",
|
|
284
|
-
variant: "body1",
|
|
285
|
-
children: /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
|
|
286
|
-
i18nKey: "neetoIntegrations.googleMaps.connectedDescription",
|
|
287
|
-
values: {
|
|
288
|
-
apiKey: apiKey
|
|
289
|
-
},
|
|
290
|
-
components: {
|
|
291
|
-
wrapper: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
292
|
-
className: "mt-2 flex items-center justify-between gap-x-3 rounded-md border border-border px-3 py-2"
|
|
293
|
-
}),
|
|
294
|
-
span: /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
295
|
-
className: "break-all text-sm"
|
|
296
|
-
}),
|
|
297
|
-
copy: /*#__PURE__*/jsxRuntime.jsx(CopyToClipboardButton, {
|
|
298
|
-
className: "shrink-0 self-start",
|
|
299
|
-
value: apiKey,
|
|
300
|
-
variant: "ghost"
|
|
301
|
-
})
|
|
302
|
-
}
|
|
303
|
-
})
|
|
304
|
-
}) : t("neetoIntegrations.googleMaps.description"),
|
|
305
|
-
title: isConnected ? t("neetoIntegrations.googleMaps.connected") : t("neetoIntegrations.common.connectIntegration", {
|
|
306
|
-
integration: t("neetoIntegrations.googleMaps.title")
|
|
307
|
-
}),
|
|
308
|
-
onClose: function onClose() {
|
|
309
|
-
return setIsDisconnectAlertOpen(false);
|
|
310
|
-
},
|
|
311
|
-
onDisconnect: function onDisconnect() {
|
|
312
|
-
return destroyGoogleMaps();
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
};
|
|
316
72
|
|
|
317
73
|
exports.disconnectionAlertsQueryKey = query.disconnectionAlertsQueryKey;
|
|
318
74
|
exports.googleMapsQueryKey = query.googleMapsQueryKey;
|
|
@@ -322,6 +78,9 @@ exports.DisconnectedIntegrationsRibbon = v2_DisconnectedIntegrationsRibbon;
|
|
|
322
78
|
exports.Daily = v2_Daily;
|
|
323
79
|
exports.DailyForm = v2_DailyForm;
|
|
324
80
|
exports.GoogleCalendar = v2_GoogleCalendar;
|
|
81
|
+
exports.GoogleMapsForm = v2_GoogleMapsForm;
|
|
82
|
+
exports.GoogleMapsIcon = v2_GoogleMapsIcon;
|
|
83
|
+
exports.GoogleMapsManage = v2_GoogleMapsManage;
|
|
325
84
|
exports.Telnyx = v2_Telnyx;
|
|
326
85
|
exports.Twilio = v2_Twilio;
|
|
327
86
|
exports.Zoom = v2_Zoom;
|
|
@@ -331,7 +90,4 @@ exports.Connect = v2_Connect;
|
|
|
331
90
|
exports.Demo = v2_Demo;
|
|
332
91
|
exports.Finish = v2_Finish;
|
|
333
92
|
exports.WalkthroughModal = v2_WalkthroughModal;
|
|
334
|
-
exports.GoogleMapsForm = Form;
|
|
335
|
-
exports.GoogleMapsIcon = GoogleMapsIcon;
|
|
336
|
-
exports.GoogleMapsManage = Manage;
|
|
337
93
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/v2/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../app/javascript/src/apis/google_maps.js","../../../app/javascript/src/hooks/reactQuery/useGoogleMapsApi.js","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/constants.js","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/Form.jsx","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/Icon.jsx","../../../app/javascript/src/v2/components/Integrations/GoogleMaps/Manage.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport { INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL } from \"src/constants/urls\";\n\nconst create = payload =>\n axios.post(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL, { googleMaps: payload });\n\nconst show = () => axios.get(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst destroy = () => axios.delete(INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL);\n\nconst googleMapsApi = { create, show, destroy };\n\nexport default googleMapsApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport googleMapsApi from \"apis/google_maps\";\nimport { googleMapsQueryKey } from \"src/constants/query\";\n\nexport const useFetchGoogleMaps = () =>\n useQuery({\n queryKey: googleMapsQueryKey,\n queryFn: googleMapsApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\n\nexport const useCreateGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.create, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n\nexport const useDestroyGoogleMaps = (options = {}) =>\n useMutationWithInvalidation(googleMapsApi.destroy, {\n keysToInvalidate: [googleMapsQueryKey],\n ...options,\n });\n","import { t } from \"i18next\";\nimport * as yup from \"yup\";\n\nexport const GOOGLE_MAPS_FORM_INITIAL_VALUES = { apiKey: \"\" };\n\nexport const GOOGLE_MAPS_VALIDATION_SCHEMA = yup.object().shape({\n apiKey: yup\n .string()\n .trim()\n .required(\n t(\"neetoIntegrations.errors.required\", {\n entity: t(\"neetoIntegrations.googleMaps.apiKey\"),\n })\n ),\n});\n","import { Button } from \"neetoatoms\";\nimport { Input, Form as FormikForm, ActionBlock } from \"neetoatoms/formik\";\nimport { noop } from \"neetocist\";\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 { useCreateGoogleMaps } from \"hooks/reactQuery/useGoogleMapsApi\";\n\nimport {\n GOOGLE_MAPS_FORM_INITIAL_VALUES,\n GOOGLE_MAPS_VALIDATION_SCHEMA,\n} from \"./constants\";\n\nconst Form = ({ helpDocUrl = \"\", breadcrumbs = [], onConnect = noop }) => {\n const { t } = useTranslation();\n const history = useHistory();\n\n const { mutate: createGoogleMaps, isPending: isConnecting } =\n useCreateGoogleMaps({ onSuccess: () => onConnect() });\n\n const handleSubmit = ({ apiKey }) =>\n createGoogleMaps({ apiKey: apiKey.trim() });\n\n return (\n <Container isHeaderFixed>\n <Header\n {...{ breadcrumbs }}\n title={t(\"neetoIntegrations.common.connect\")}\n />\n <div className=\"w-full\">\n <FormikForm\n formikProps={{\n initialValues: GOOGLE_MAPS_FORM_INITIAL_VALUES,\n validationSchema: GOOGLE_MAPS_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 autoComplete=\"off\"\n dataTestId=\"google-maps-api-key\"\n label={t(\"neetoIntegrations.googleMaps.apiKey\")}\n name=\"apiKey\"\n helpText={\n <Trans\n i18nKey=\"neetoIntegrations.googleMaps.apiKeyHelpText\"\n components={{\n helpLink: (\n <Button\n data-testid=\"google-maps-api-key-help-link\"\n href={helpDocUrl}\n rel=\"noreferrer\"\n target=\"_blank\"\n variant=\"link\"\n />\n ),\n }}\n />\n }\n />\n </CardLayout>\n </FormikForm>\n </div>\n </Container>\n );\n};\n\nexport default Form;\n","const GoogleMapsIcon = ({ size = 24, className = \"\" }) => (\n <svg\n {...{ className }}\n aria-hidden=\"true\"\n height={size}\n viewBox=\"0 0 92.3 132.3\"\n width={size}\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M60.2 2.2C55.8.8 51 0 46.1 0 32 0 19.3 6.4 10.8 16.5l21.8 18.3L60.2 2.2z\"\n fill=\"#1a73e8\"\n />\n <path\n d=\"M10.8 16.5C4.1 24.5 0 34.9 0 46.1c0 8.7 1.7 15.7 4.6 22l28-33.3-21.8-18.3z\"\n fill=\"#ea4335\"\n />\n <path\n d=\"M46.2 28.5c9.8 0 17.7 7.9 17.7 17.7 0 4.3-1.6 8.3-4.2 11.4 0 0 13.9-16.6 27.5-32.7-5.6-10.8-15.3-19-27-22.7L32.6 34.8c3.3-3.8 8.1-6.3 13.6-6.3\"\n fill=\"#4285f4\"\n />\n <path\n d=\"M46.2 63.8c-9.8 0-17.7-7.9-17.7-17.7 0-4.3 1.5-8.3 4.1-11.3l-28 33.3c4.8 10.6 12.8 19.2 21 29.9l34.1-40.5c-3.3 3.9-8.1 6.3-13.5 6.3\"\n fill=\"#fbbc04\"\n />\n <path\n d=\"M59.1 109.2c15.4-24.1 33.3-35 33.3-63 0-7.7-1.9-14.9-5.2-21.3L25.6 98c2.6 3.4 5.3 7.3 7.9 11.3 9.4 14.5 6.8 23.1 12.8 23.1s3.4-8.7 12.8-23.2\"\n fill=\"#34a853\"\n />\n </svg>\n);\n\nexport default GoogleMapsIcon;\n","import { useState } from \"react\";\n\nimport { Spinner, Typography } from \"neetoatoms\";\nimport { isPresent, noop } from \"neetocist\";\nimport CopyToClipboardButton from \"neetomolecules/v2/CopyToClipboardButton\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport {\n useDestroyGoogleMaps,\n useFetchGoogleMaps,\n} from \"hooks/reactQuery/useGoogleMapsApi\";\n\nimport GoogleMapsIcon from \"./Icon\";\n\nimport ManageIntegration from \"../../commons/Manage\";\n\nconst Manage = ({ connectPath = \"\", helpDocUrl = \"\", onDisconnect = noop }) => {\n const { t } = useTranslation();\n const [isDisconnectAlertOpen, setIsDisconnectAlertOpen] = useState(false);\n\n const { data: { apiKey = null } = {}, isLoading } = useFetchGoogleMaps();\n const { mutate: destroyGoogleMaps, isPending: isDisconnecting } =\n useDestroyGoogleMaps({\n onSuccess: () => {\n setIsDisconnectAlertOpen(false);\n onDisconnect();\n },\n });\n\n const isConnected = isPresent(apiKey);\n\n if (isLoading) {\n return (\n <div className=\"flex h-full w-full items-center justify-center\">\n <Spinner />\n </div>\n );\n }\n\n return (\n <ManageIntegration\n {...{\n connectPath,\n helpDocUrl,\n isConnected,\n isDisconnectAlertOpen,\n isDisconnecting,\n setIsDisconnectAlertOpen,\n }}\n Icon={GoogleMapsIcon}\n disconnectMessage={t(\"neetoIntegrations.googleMaps.disconnect.message\")}\n disconnectTitle={t(\"neetoIntegrations.googleMaps.disconnect.title\")}\n integration=\"googleMaps\"\n integrationName={t(\"neetoIntegrations.googleMaps.title\")}\n description={\n isConnected ? (\n <Typography as=\"span\" variant=\"body1\">\n <Trans\n i18nKey=\"neetoIntegrations.googleMaps.connectedDescription\"\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 value={apiKey}\n variant=\"ghost\"\n />\n ),\n }}\n />\n </Typography>\n ) : (\n t(\"neetoIntegrations.googleMaps.description\")\n )\n }\n title={\n isConnected\n ? t(\"neetoIntegrations.googleMaps.connected\")\n : t(\"neetoIntegrations.common.connectIntegration\", {\n integration: t(\"neetoIntegrations.googleMaps.title\"),\n })\n }\n onClose={() => setIsDisconnectAlertOpen(false)}\n onDisconnect={() => destroyGoogleMaps()}\n />\n );\n};\n\nexport default Manage;\n"],"names":["create","payload","axios","post","INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL","googleMaps","show","get","destroy","googleMapsApi","useFetchGoogleMaps","useQuery","queryKey","googleMapsQueryKey","queryFn","staleTime","DEFAULT_STALE_TIME","useCreateGoogleMaps","options","arguments","length","undefined","useMutationWithInvalidation","_objectSpread","keysToInvalidate","useDestroyGoogleMaps","GOOGLE_MAPS_FORM_INITIAL_VALUES","apiKey","GOOGLE_MAPS_VALIDATION_SCHEMA","yup","object","shape","string","trim","required","t","entity","Form","_ref","_ref$helpDocUrl","helpDocUrl","_ref$breadcrumbs","breadcrumbs","_ref$onConnect","onConnect","noop","_useTranslation","useTranslation","history","useHistory","_useCreateGoogleMaps","onSuccess","createGoogleMaps","mutate","isConnecting","isPending","handleSubmit","_ref2","_jsxs","Container","isHeaderFixed","children","_jsx","Header","title","className","FormikForm","formikProps","initialValues","validationSchema","onSubmit","CardLayout","actionBlock","ActionBlock","cancelButtonProps","onClick","goBack","isSubmitting","submitButtonProps","label","Input","autoFocus","autoComplete","dataTestId","name","helpText","Trans","i18nKey","components","helpLink","Button","href","rel","target","variant","GoogleMapsIcon","_ref$size","size","_ref$className","height","viewBox","width","xmlns","d","fill","Manage","_ref$connectPath","connectPath","_ref$onDisconnect","onDisconnect","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useFetchGoogleMaps","_useFetchGoogleMaps$d","data","_useFetchGoogleMaps$d2","_useFetchGoogleMaps$d3","isLoading","_useDestroyGoogleMaps","destroyGoogleMaps","isDisconnecting","isConnected","isPresent","Spinner","ManageIntegration","Icon","disconnectMessage","disconnectTitle","integration","integrationName","description","Typography","as","values","wrapper","span","copy","CopyToClipboardButton","value","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAGC,OAAO,EAAA;AAAA,EAAA,OACpBC,KAAK,CAACC,IAAI,CAACC,yCAAmC,EAAE;AAAEC,IAAAA,UAAU,EAAEJ;AAAQ,GAAC,CAAC;AAAA,CAAA;AAE1E,IAAMK,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OAASJ,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AjC,QAAA,eACnCC,cAAA,CAACwB,kBAAK,EAAA;AACJC,QAAAA,OAAO,EAAC,mDAAmD;AAC3DkD,QAAAA,MAAM,EAAE;AAAE9G,UAAAA,MAAM,EAANA;SAAS;AACnB6D,QAAAA,UAAU,EAAE;AACVkD,UAAAA,OAAO,eACL5E,cAAA,CAAA,KAAA,EAAA;AAAKG,YAAAA,SAAS,EAAC;AAA0F,WAAE,CAC5G;AACD0E,UAAAA,IAAI,eAAE7E,cAAA,CAAA,MAAA,EAAA;AAAMG,YAAAA,SAAS,EAAC;AAAmB,WAAE,CAAC;UAC5C2E,IAAI,eACF9E,cAAA,CAAC+E,qBAAqB,EAAA;AACpB5E,YAAAA,SAAS,EAAC,qBAAqB;AAC/B6E,YAAAA,KAAK,EAAEnH,MAAO;AACdmE,YAAAA,OAAO,EAAC;WACT;AAEL;OACD;AAAC,KACQ,CAAC,GAEb3D,CAAC,CAAC,0CAA0C,CAE/C;IACD6B,KAAK,EACH6D,WAAW,GACP1F,CAAC,CAAC,wCAAwC,CAAC,GAC3CA,CAAC,CAAC,6CAA6C,EAAE;MAC/CiG,WAAW,EAAEjG,CAAC,CAAC,oCAAoC;AACrD,KAAC,CACN;IACD4G,OAAO,EAAE,SAATA,OAAOA,GAAA;MAAA,OAAQ5B,wBAAwB,CAAC,KAAK,CAAC;IAAA,CAAC;IAC/CN,YAAY,EAAE,SAAdA,YAAYA,GAAA;MAAA,OAAQc,iBAAiB,EAAE;AAAA,IAAA;AAAC,GACzC,CAAC;AAEN;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-MS1ts-9f.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","
|
|
1
|
+
{"version":3,"file":"index-MS1ts-9f.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","require$$0","propTypesModule"],"mappings":";;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAA,sBAAc,GAAGA,sBAAoB;;;;;;;;ACFrC,IAAI,oBAAoB,GAAGC,sBAAqC;AAEhE,SAAS,aAAa,GAAG,CAAA;AACzB,SAAS,sBAAsB,GAAG,CAAA;AAClC,sBAAsB,CAAC,iBAAiB,GAAG,aAAa;AAExD,IAAA,wBAAc,GAAG,SAAjB,wBAAc,GAAc;AAC1B,EAAA,SAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE;IAC5E,IAAI,MAAM,KAAK,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAI,GAAG,GAAG,IAAI,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACD,GAAG,CAAC,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAM,GAAG;AACb,EAAA;EACE,IAAI,CAAC,UAAU,GAAG,IAAI;AACtB,EAAA,SAAS,OAAO,GAAG;AACjB,IAAA,OAAO,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAI,cAAc,GAAG;AACnB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,OAAO;AAEd,IAAA,cAAc,EAAE,sBAAsB;AACtC,IAAA,iBAAiB,EAAE;GACpB;EAED,cAAc,CAAC,SAAS,GAAG,cAAc;AAEzC,EAAA,OAAO,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACE,EAAAC,SAAA,CAAA,OAAc,GAAGD,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-dxk7jTL7.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","
|
|
1
|
+
{"version":3,"file":"index-dxk7jTL7.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n"],"names":["ReactPropTypesSecret","require$$0","propTypesModule"],"mappings":";;;;;;;;;;;;;;AASA,IAAIA,sBAAoB,GAAG,8CAA8C;AAEzE,IAAA,sBAAc,GAAGA,sBAAoB;;;;;;;;ACFrC,IAAI,oBAAoB,GAAGC,sBAAqC;AAEhE,SAAS,aAAa,GAAG,CAAA;AACzB,SAAS,sBAAsB,GAAG,CAAA;AAClC,sBAAsB,CAAC,iBAAiB,GAAG,aAAa;AAExD,IAAA,wBAAc,GAAG,SAAjB,wBAAc,GAAc;AAC1B,EAAA,SAAS,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE;IAC5E,IAAI,MAAM,KAAK,oBAAoB,EAAE;AACzC;AACM,MAAA;AACN,IAAA;IACI,IAAI,GAAG,GAAG,IAAI,KAAK,CACjB,sFAAsF,GACtF,+CAA+C,GAC/C,gDACN,CAAK;IACD,GAAG,CAAC,IAAI,GAAG,qBAAqB;AAChC,IAAA,MAAM,GAAG;AACb,EAAA;EACE,IAAI,CAAC,UAAU,GAAG,IAAI;AACtB,EAAA,SAAS,OAAO,GAAG;AACjB,IAAA,OAAO,IAAI;AACf,EAAA;AACA;AACA;AACE,EAAA,IAAI,cAAc,GAAG;AACnB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,MAAM,EAAE,IAAI;AAEZ,IAAA,GAAG,EAAE,IAAI;AACT,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,QAAQ,EAAE,OAAO;AACjB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,SAAS,EAAE,OAAO;AAClB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,KAAK,EAAE,OAAO;AAEd,IAAA,cAAc,EAAE,sBAAsB;AACtC,IAAA,iBAAiB,EAAE;GACpB;EAED,cAAc,CAAC,SAAS,GAAG,cAAc;AAEzC,EAAA,OAAO,cAAc;AACvB,CAAC;;;;;;;;AClDM;AACP;AACA;AACE,EAAAC,SAAA,CAAA,OAAc,GAAGD,wBAAqC,EAAE;AAC1D;;;;;;","x_google_ignoreList":[0,1,2]}
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import Tag from '@bigbinary/neetoui/Tag';
|
|
|
6
6
|
import { isEmpty } from 'ramda';
|
|
7
7
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
8
|
import { Link } from 'react-router-dom';
|
|
9
|
-
import { u as useFetchDisconnectionAlerts } from './useDisconnectionAlertsApi-
|
|
9
|
+
import { u as useFetchDisconnectionAlerts } from './useDisconnectionAlertsApi-BW25EN1l.js';
|
|
10
10
|
import { t } from 'i18next';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
export { default as Daily } from './Daily.js';
|
|
@@ -20,8 +20,8 @@ export { default as Connect } from './Connect.js';
|
|
|
20
20
|
export { default as Demo } from './Demo.js';
|
|
21
21
|
export { default as Finish } from './Finish.js';
|
|
22
22
|
export { default as WalkthroughModal } from './WalkthroughModal.js';
|
|
23
|
-
export { d as disconnectionAlertsQueryKey } from './query-
|
|
24
|
-
import '@babel/runtime/helpers/
|
|
23
|
+
export { d as disconnectionAlertsQueryKey } from './query-CyER0UTx.js';
|
|
24
|
+
import '@babel/runtime/helpers/objectSpread2';
|
|
25
25
|
import '@bigbinary/neeto-cist';
|
|
26
26
|
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
27
27
|
import '@bigbinary/neeto-icons/Check';
|
|
@@ -36,7 +36,7 @@ import '@bigbinary/neetoui/Alert';
|
|
|
36
36
|
import '@tanstack/react-query';
|
|
37
37
|
import '@bigbinary/neeto-commons-frontend/constants';
|
|
38
38
|
import 'axios';
|
|
39
|
-
import './useDailiesApi-
|
|
39
|
+
import './useDailiesApi-BIZR1qiD.js';
|
|
40
40
|
import '@bigbinary/neeto-commons-frontend/utils';
|
|
41
41
|
import '@bigbinary/neeto-icons/misc/Daily';
|
|
42
42
|
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
@@ -52,15 +52,15 @@ import '@babel/runtime/helpers/toConsumableArray';
|
|
|
52
52
|
import '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
53
53
|
import '@bigbinary/neeto-icons/misc/Google';
|
|
54
54
|
import '@bigbinary/neetoui/formik/Select';
|
|
55
|
-
import './useTelnyxApi-
|
|
55
|
+
import './useTelnyxApi-fFpslv-E.js';
|
|
56
|
+
import '@babel/runtime/helpers/regenerator';
|
|
56
57
|
import '@babel/runtime/helpers/asyncToGenerator';
|
|
57
|
-
import './useTwilioApi-
|
|
58
|
+
import './useTwilioApi-CEaEH5MG.js';
|
|
58
59
|
import '@bigbinary/neeto-icons/misc/Zoom';
|
|
59
|
-
import './useZoomApi-
|
|
60
|
+
import './useZoomApi-i5CNstmT.js';
|
|
60
61
|
import '@bigbinary/neetoui/Modal';
|
|
61
62
|
import 'classnames';
|
|
62
63
|
import './index-MS1ts-9f.js';
|
|
63
|
-
import './success-C6rQdhhF.js';
|
|
64
64
|
|
|
65
65
|
var getHasOnlyUPIIntegration = function getHasOnlyUPIIntegration(alerts) {
|
|
66
66
|
return alerts.length === 1 && alerts[0].serviceName === "eupi";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\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 {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} 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 className=\"font-semibold underline\" to={linkPath}>\n {label}\n </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 <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../app/javascript/src/components/DisconnectedIntegrationsRibbon/utils.js","../app/javascript/src/components/DisconnectedIntegrationsRibbon/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\n\nconst getHasOnlyUPIIntegration = alerts =>\n alerts.length === 1 && alerts[0].serviceName === \"eupi\";\n\nexport const getDisconnectionRibbonDefaultMessage = alerts =>\n getHasOnlyUPIIntegration(alerts)\n ? t(\"neetoIntegrations.disconnectionRibbon.non_permission_message\", {\n count: alerts.length,\n })\n : t(\"neetoIntegrations.disconnectionRibbon.message\", {\n count: alerts.length,\n });\n\nexport const getDisconnectionRibbonI18nKey = (alerts, integrationRouteMap) => {\n const hasOnlyUPIIntegration =\n getHasOnlyUPIIntegration(alerts) && integrationRouteMap.eupi;\n\n return hasOnlyUPIIntegration\n ? \"neetoIntegrations.disconnectionRibbon.non_permission_message\"\n : \"neetoIntegrations.disconnectionRibbon.message\";\n};\n","import { useState } from \"react\";\n\nimport { Tag } from \"neetoui\";\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 {\n getDisconnectionRibbonDefaultMessage,\n getDisconnectionRibbonI18nKey,\n} 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 className=\"font-semibold underline\" to={linkPath}>\n {label}\n </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 <Tag\n className=\"neeto-molecules-sticky-ribbon w-full p-2.5 text-center\"\n data-testid=\"disconnected-integrations-ribbon\"\n size=\"large\"\n style=\"warning\"\n onClose={() => setIsClosed(true)}\n >\n <span className=\"w-full\">\n <Trans\n count={knownAlerts.length}\n defaults={getDisconnectionRibbonDefaultMessage(knownAlerts)}\n components={{\n integrations: (\n <IntegrationLinks\n {...{ integrationRouteMap }}\n alerts={knownAlerts}\n />\n ),\n connectLink: (\n <Link className=\"font-semibold underline\" to={connectPath} />\n ),\n }}\n i18nKey={getDisconnectionRibbonI18nKey(\n knownAlerts,\n integrationRouteMap\n )}\n />\n </span>\n </Tag>\n );\n};\n\nexport default DisconnectedIntegrationsRibbon;\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAM,wBAAwB,GAAG,SAA3B,wBAAwB,CAAG,MAAM,EAAA;AAAA,EAAA,OACrC,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,MAAM;AAAA,CAAA;AAElD,IAAM,oCAAoC,GAAG,SAAvC,oCAAoC,CAAG,MAAM,EAAA;EAAA,OACxD,wBAAwB,CAAC,MAAM,CAAC,GAC5B,CAAC,CAAC,8DAA8D,EAAE;IAChE,KAAK,EAAE,MAAM,CAAC;AAChB,GAAC,CAAC,GACF,CAAC,CAAC,+CAA+C,EAAE;IACjD,KAAK,EAAE,MAAM,CAAC;AAChB,GAAC,CAAC;AAAA,CAAA;AAED,IAAM,6BAA6B,GAAG,SAAhC,6BAA6B,CAAI,MAAM,EAAE,mBAAmB,EAAK;EAC5E,IAAM,qBAAqB,GACzB,wBAAwB,CAAC,MAAM,CAAC,IAAI,mBAAmB,CAAC,IAAI;AAE9D,EAAA,OAAO,qBAAqB,GACxB,8DAA8D,GAC9D,+CAA+C;AACrD,CAAC;;ACPD,IAAM,gBAAgB,GAAG,SAAnB,gBAAgB,CAAA,IAAA,EAAA;EAAA,IAAM,MAAM,QAAN,MAAM;AAAE,IAAA,mBAAmB,QAAnB,mBAAmB;EAAA,OACrD,MAAM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var QUERY_KEYS = {
|
|
|
23
23
|
var disconnectionAlertsQueryKey = [QUERY_KEYS.DISCONNECTION_ALERTS];
|
|
24
24
|
var googleMapsQueryKey = [QUERY_KEYS.GOOGLE_MAPS_DETAILS];
|
|
25
25
|
|
|
26
|
-
export { DISCONNECTION_ALERTS_URL as D,
|
|
27
|
-
//# sourceMappingURL=query-
|
|
26
|
+
export { DISCONNECTION_ALERTS_URL as D, INTEGRATIONS_ENGINE_DAILY_URL as I, QUERY_KEYS as Q, SMS_LOGS_URL as S, TWILIO_CONFIGURATION_BASE_URL as T, TELNYX_SMS_CONFIGURATION_URL as a, TELNYX_PHONE_NUMBERS_URL as b, INTEGRATION_DETAILS_URL as c, disconnectionAlertsQueryKey as d, INTEGRATIONS_ENGINE_ZOOM_URL as e, INTEGRATIONS_ENGINE_GOOGLE_MAPS_URL as f, googleMapsQueryKey as g };
|
|
27
|
+
//# sourceMappingURL=query-CyER0UTx.js.map
|