@bigbinary/neeto-integrations-frontend 3.0.0 → 3.2.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 +1 -1
- package/dist/Connect.js +99 -0
- package/dist/Connect.js.map +1 -0
- package/dist/Daily.js +31 -792
- package/dist/Daily.js.map +1 -1
- package/dist/DailyForm.js +25 -0
- package/dist/DailyForm.js.map +1 -0
- package/dist/Demo.js +95 -0
- package/dist/Demo.js.map +1 -0
- package/dist/Finish.js +87 -0
- package/dist/Finish.js.map +1 -0
- package/dist/Form-5be03668.js +171 -0
- package/dist/Form-5be03668.js.map +1 -0
- package/dist/Form-be2e5595.js +209 -0
- package/dist/Form-be2e5595.js.map +1 -0
- package/dist/GoogleCalendar.js +127 -0
- package/dist/GoogleCalendar.js.map +1 -0
- package/dist/Manage.js +162 -0
- package/dist/Manage.js.map +1 -0
- package/dist/Modal.js +84 -0
- package/dist/Modal.js.map +1 -0
- package/dist/Twilio.js +5 -108
- package/dist/Twilio.js.map +1 -1
- package/dist/ZapierForm.js +8 -102
- package/dist/ZapierForm.js.map +1 -1
- package/dist/Zoom.js +14 -895
- package/dist/Zoom.js.map +1 -1
- package/dist/cjs/Connect.js +106 -0
- package/dist/cjs/Connect.js.map +1 -0
- package/dist/cjs/Daily.js +150 -0
- package/dist/cjs/Daily.js.map +1 -0
- package/dist/cjs/DailyForm.js +31 -0
- package/dist/cjs/DailyForm.js.map +1 -0
- package/dist/cjs/Demo.js +102 -0
- package/dist/cjs/Demo.js.map +1 -0
- package/dist/cjs/Finish.js +113 -0
- package/dist/cjs/Finish.js.map +1 -0
- package/dist/cjs/GoogleCalendar.js +137 -0
- package/dist/cjs/GoogleCalendar.js.map +1 -0
- package/dist/cjs/Manage.js +173 -0
- package/dist/cjs/Manage.js.map +1 -0
- package/dist/cjs/Modal.js +92 -0
- package/dist/cjs/Modal.js.map +1 -0
- package/dist/{Twilio.cjs.js → cjs/Twilio.js} +22 -125
- package/dist/cjs/Twilio.js.map +1 -0
- package/dist/{ZapierForm.cjs.js → cjs/ZapierForm.js} +19 -113
- package/dist/cjs/ZapierForm.js.map +1 -0
- package/dist/cjs/Zoom.js +127 -0
- package/dist/cjs/Zoom.js.map +1 -0
- package/dist/cjs/index.js +67 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/defineProperty-e90a259c.js +43 -0
- package/dist/defineProperty-e90a259c.js.map +1 -0
- package/dist/defineProperty-f3094d6c.js +45 -0
- package/dist/defineProperty-f3094d6c.js.map +1 -0
- package/dist/index-2f3a953b.js +86 -0
- package/dist/index-2f3a953b.js.map +1 -0
- package/dist/index-4bda54e6.js +84 -0
- package/dist/index-4bda54e6.js.map +1 -0
- package/dist/index.js +49 -1501
- package/dist/index.js.map +1 -1
- package/dist/query-4f9552ab.js +21 -0
- package/dist/query-4f9552ab.js.map +1 -0
- package/dist/query-62fcdf0a.js +15 -0
- package/dist/query-62fcdf0a.js.map +1 -0
- package/dist/slicedToArray-b4278ecd.js +57 -0
- package/dist/slicedToArray-b4278ecd.js.map +1 -0
- package/dist/slicedToArray-f320d9e7.js +61 -0
- package/dist/slicedToArray-f320d9e7.js.map +1 -0
- package/package.json +15 -13
- package/dist/Daily.cjs.js +0 -945
- package/dist/Daily.cjs.js.map +0 -1
- package/dist/GoogleCalender.cjs.js +0 -1114
- package/dist/GoogleCalender.cjs.js.map +0 -1
- package/dist/GoogleCalender.js +0 -1067
- package/dist/GoogleCalender.js.map +0 -1
- package/dist/Twilio.cjs.js.map +0 -1
- package/dist/ZapierForm.cjs.js.map +0 -1
- package/dist/Zoom.cjs.js +0 -1044
- package/dist/Zoom.cjs.js.map +0 -1
- package/dist/index.cjs.js +0 -1573
- package/dist/index.cjs.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,1502 +1,50 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export { default as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
function _toPrimitive(input, hint) {
|
|
52
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
53
|
-
var prim = input[Symbol.toPrimitive];
|
|
54
|
-
if (prim !== undefined) {
|
|
55
|
-
var res = prim.call(input, hint || "default");
|
|
56
|
-
if (_typeof(res) !== "object") return res;
|
|
57
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
58
|
-
}
|
|
59
|
-
return (hint === "string" ? String : Number)(input);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
function _toPropertyKey(arg) {
|
|
63
|
-
var key = _toPrimitive(arg, "string");
|
|
64
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function _defineProperty(obj, key, value) {
|
|
68
|
-
key = _toPropertyKey(key);
|
|
69
|
-
if (key in obj) {
|
|
70
|
-
Object.defineProperty(obj, key, {
|
|
71
|
-
value: value,
|
|
72
|
-
enumerable: true,
|
|
73
|
-
configurable: true,
|
|
74
|
-
writable: true
|
|
75
|
-
});
|
|
76
|
-
} else {
|
|
77
|
-
obj[key] = value;
|
|
78
|
-
}
|
|
79
|
-
return obj;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
83
|
-
function _objectSpread$8(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$8(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$8(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
84
|
-
var Manage$1 = withT(function (_ref) {
|
|
85
|
-
var t = _ref.t,
|
|
86
|
-
_ref$title = _ref.title,
|
|
87
|
-
title = _ref$title === void 0 ? "" : _ref$title,
|
|
88
|
-
_ref$description = _ref.description,
|
|
89
|
-
description = _ref$description === void 0 ? "" : _ref$description,
|
|
90
|
-
_ref$integration = _ref.integration,
|
|
91
|
-
integration = _ref$integration === void 0 ? "" : _ref$integration,
|
|
92
|
-
_ref$isDisconnectAler = _ref.isDisconnectAlertOpen,
|
|
93
|
-
isDisconnectAlertOpen = _ref$isDisconnectAler === void 0 ? false : _ref$isDisconnectAler,
|
|
94
|
-
_ref$setIsDisconnectA = _ref.setIsDisconnectAlertOpen,
|
|
95
|
-
setIsDisconnectAlertOpen = _ref$setIsDisconnectA === void 0 ? noop : _ref$setIsDisconnectA,
|
|
96
|
-
_ref$isDisconnecting = _ref.isDisconnecting,
|
|
97
|
-
isDisconnecting = _ref$isDisconnecting === void 0 ? false : _ref$isDisconnecting,
|
|
98
|
-
_ref$onConnect = _ref.onConnect,
|
|
99
|
-
onConnect = _ref$onConnect === void 0 ? undefined : _ref$onConnect,
|
|
100
|
-
_ref$onDisconnect = _ref.onDisconnect,
|
|
101
|
-
onDisconnect = _ref$onDisconnect === void 0 ? undefined : _ref$onDisconnect,
|
|
102
|
-
_ref$onClose = _ref.onClose,
|
|
103
|
-
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
104
|
-
_ref$Icon = _ref.Icon,
|
|
105
|
-
Icon = _ref$Icon === void 0 ? null : _ref$Icon,
|
|
106
|
-
_ref$isConnected = _ref.isConnected,
|
|
107
|
-
isConnected = _ref$isConnected === void 0 ? false : _ref$isConnected,
|
|
108
|
-
_ref$connectPath = _ref.connectPath,
|
|
109
|
-
connectPath = _ref$connectPath === void 0 ? "" : _ref$connectPath,
|
|
110
|
-
_ref$connectUrl = _ref.connectUrl,
|
|
111
|
-
connectUrl = _ref$connectUrl === void 0 ? "" : _ref$connectUrl,
|
|
112
|
-
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
113
|
-
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
114
|
-
_ref$managePath = _ref.managePath,
|
|
115
|
-
managePath = _ref$managePath === void 0 ? "" : _ref$managePath,
|
|
116
|
-
_ref$manageUrl = _ref.manageUrl,
|
|
117
|
-
manageUrl = _ref$manageUrl === void 0 ? "" : _ref$manageUrl,
|
|
118
|
-
_ref$integrationName = _ref.integrationName,
|
|
119
|
-
integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
|
|
120
|
-
_ref$disconnectMessag = _ref.disconnectMessage,
|
|
121
|
-
disconnectMessage = _ref$disconnectMessag === void 0 ? "" : _ref$disconnectMessag,
|
|
122
|
-
_ref$disconnectTitle = _ref.disconnectTitle,
|
|
123
|
-
disconnectTitle = _ref$disconnectTitle === void 0 ? "" : _ref$disconnectTitle,
|
|
124
|
-
_ref$isConnectDisable = _ref.isConnectDisabled,
|
|
125
|
-
isConnectDisabled = _ref$isConnectDisable === void 0 ? false : _ref$isConnectDisable,
|
|
126
|
-
_ref$connectTooltipPr = _ref.connectTooltipProps,
|
|
127
|
-
connectTooltipProps = _ref$connectTooltipPr === void 0 ? null : _ref$connectTooltipPr,
|
|
128
|
-
_ref$buttonProps = _ref.buttonProps,
|
|
129
|
-
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
130
|
-
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
131
|
-
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP;
|
|
132
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
133
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
134
|
-
className: "mx-auto w-full max-w-3xl",
|
|
135
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
136
|
-
className: "neeto-ui-border-gray-300 neeto-ui-rounded-xl mt-10 w-full space-y-4 border p-6",
|
|
137
|
-
children: [Icon && /*#__PURE__*/jsx(Icon, {
|
|
138
|
-
className: "neeto-ui-text-gray-600",
|
|
139
|
-
size: 48
|
|
140
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
141
|
-
className: "space-y-2",
|
|
142
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
143
|
-
className: "flex items-center space-x-4",
|
|
144
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
145
|
-
className: "neeto-ui-text-gray-800 mb-0.5",
|
|
146
|
-
style: "h2",
|
|
147
|
-
weight: "semibold",
|
|
148
|
-
children: title
|
|
149
|
-
}), isConnected && /*#__PURE__*/jsx("div", {
|
|
150
|
-
className: "neeto-ui-bg-success-500 neeto-ui-text-white neeto-ui-rounded-full flex items-center justify-center p-1",
|
|
151
|
-
children: /*#__PURE__*/jsx(Check, {
|
|
152
|
-
size: 24
|
|
153
|
-
})
|
|
154
|
-
})]
|
|
155
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
156
|
-
style: "body1",
|
|
157
|
-
weight: "normal",
|
|
158
|
-
className: classnames("neeto-ui-text-gray-800", {
|
|
159
|
-
"break-all": isConnected
|
|
160
|
-
}),
|
|
161
|
-
children: description
|
|
162
|
-
}), helpDocUrl && /*#__PURE__*/jsx(Typography, {
|
|
163
|
-
className: "neeto-ui-text-gray-800",
|
|
164
|
-
style: "body2",
|
|
165
|
-
weight: "normal",
|
|
166
|
-
children: /*#__PURE__*/jsx(Trans, {
|
|
167
|
-
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
168
|
-
components: {
|
|
169
|
-
helpLink: /*#__PURE__*/jsx(Button, {
|
|
170
|
-
href: helpDocUrl,
|
|
171
|
-
style: "link",
|
|
172
|
-
target: "_blank"
|
|
173
|
-
})
|
|
174
|
-
},
|
|
175
|
-
values: {
|
|
176
|
-
integration: integrationName || humanize(integration)
|
|
177
|
-
}
|
|
178
|
-
})
|
|
179
|
-
})]
|
|
180
|
-
}), isConnected ? /*#__PURE__*/jsxs("div", {
|
|
181
|
-
className: "space-x-2",
|
|
182
|
-
children: [(managePath || manageUrl) && /*#__PURE__*/jsx(Button, _objectSpread$8({
|
|
183
|
-
"data-cy": "manage-button",
|
|
184
|
-
href: manageUrl,
|
|
185
|
-
target: manageUrl ? "_blank" : "_self",
|
|
186
|
-
to: managePath,
|
|
187
|
-
label: t("neetoIntegrations.common.manageIntegration", {
|
|
188
|
-
integration: integrationName || humanize(integration)
|
|
189
|
-
})
|
|
190
|
-
}, buttonProps)), onDisconnect && /*#__PURE__*/jsx(Button, _objectSpread$8({
|
|
191
|
-
"data-cy": "disconnect-button",
|
|
192
|
-
style: "secondary",
|
|
193
|
-
label: t("neetoIntegrations.common.disconnectIntegration", {
|
|
194
|
-
integration: integrationName || humanize(integration)
|
|
195
|
-
}),
|
|
196
|
-
onClick: function onClick() {
|
|
197
|
-
return setIsDisconnectAlertOpen(true);
|
|
198
|
-
}
|
|
199
|
-
}, secondaryButtonProps))]
|
|
200
|
-
}) : /*#__PURE__*/jsx("div", {
|
|
201
|
-
children: /*#__PURE__*/jsx(Tooltip, _objectSpread$8(_objectSpread$8({
|
|
202
|
-
disabled: !isConnectDisabled
|
|
203
|
-
}, connectTooltipProps), {}, {
|
|
204
|
-
children: /*#__PURE__*/jsx("span", {
|
|
205
|
-
children: (connectPath || connectUrl || onConnect) && /*#__PURE__*/jsx(Button, _objectSpread$8({
|
|
206
|
-
"data-cy": "connect-button",
|
|
207
|
-
disabled: isConnectDisabled,
|
|
208
|
-
href: connectUrl,
|
|
209
|
-
to: connectPath,
|
|
210
|
-
label: t("neetoIntegrations.common.connectIntegration", {
|
|
211
|
-
integration: integrationName || humanize(integration)
|
|
212
|
-
}),
|
|
213
|
-
onClick: onConnect
|
|
214
|
-
}, buttonProps))
|
|
215
|
-
})
|
|
216
|
-
}))
|
|
217
|
-
})]
|
|
218
|
-
})
|
|
219
|
-
}), /*#__PURE__*/jsx(DisconnectAlert, {
|
|
220
|
-
isDisconnecting: isDisconnecting,
|
|
221
|
-
onClose: onClose,
|
|
222
|
-
onDisconnect: onDisconnect,
|
|
223
|
-
isOpen: isDisconnectAlertOpen,
|
|
224
|
-
message: disconnectMessage || t("settings.integrations.".concat(integration, ".disconnect.message")),
|
|
225
|
-
title: disconnectTitle || t("settings.integrations.".concat(integration, ".disconnect.title"))
|
|
226
|
-
})]
|
|
227
|
-
});
|
|
228
|
-
});
|
|
229
|
-
|
|
230
|
-
var INTEGRATIONS_ENGINE_BASE_URL = "/neeto_integrations";
|
|
231
|
-
var TWILIO_CONFIGURATION_BASE_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/twilio/sms_configurations");
|
|
232
|
-
var INTEGRATIONS_ENGINE_DAILY_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/daily");
|
|
233
|
-
var INTEGRATIONS_ENGINE_ZOOM_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/zoom");
|
|
234
|
-
var INTEGRATION_DETAILS_URL = "".concat(INTEGRATIONS_ENGINE_BASE_URL, "/status");
|
|
235
|
-
|
|
236
|
-
var create = function create(payload) {
|
|
237
|
-
return axios.post(INTEGRATIONS_ENGINE_DAILY_URL, {
|
|
238
|
-
daily: payload
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
var show$1 = function show() {
|
|
242
|
-
return axios.get(INTEGRATIONS_ENGINE_DAILY_URL);
|
|
243
|
-
};
|
|
244
|
-
var destroy$1 = function destroy() {
|
|
245
|
-
return axios["delete"](INTEGRATIONS_ENGINE_DAILY_URL);
|
|
246
|
-
};
|
|
247
|
-
var dailiesApi = {
|
|
248
|
-
create: create,
|
|
249
|
-
show: show$1,
|
|
250
|
-
destroy: destroy$1
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
var QUERY_KEYS = {
|
|
254
|
-
TWILIO_SMS_CONFIGURATION: "twilio-sms-configuration",
|
|
255
|
-
TWILIO_PHONE_NUMBERS: "twilio-phone-numbers",
|
|
256
|
-
DAILY_CO_DETAILS: "daily-co-details",
|
|
257
|
-
ZOOM_DETAILS: "zoom-details"
|
|
258
|
-
};
|
|
259
|
-
|
|
260
|
-
function ownKeys$7(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
261
|
-
function _objectSpread$7(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$7(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$7(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
262
|
-
var useCreateDaily = function useCreateDaily() {
|
|
263
|
-
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
264
|
-
return useMutationWithInvalidation(dailiesApi.create, _objectSpread$7({
|
|
265
|
-
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]]
|
|
266
|
-
}, options));
|
|
267
|
-
};
|
|
268
|
-
var useFetchDaily = function useFetchDaily() {
|
|
269
|
-
return useQuery({
|
|
270
|
-
queryKey: [QUERY_KEYS.DAILY_CO_DETAILS],
|
|
271
|
-
queryFn: dailiesApi.show,
|
|
272
|
-
staleTime: DEFAULT_STALE_TIME
|
|
273
|
-
});
|
|
274
|
-
};
|
|
275
|
-
var useDestroyDaily = function useDestroyDaily(_ref) {
|
|
276
|
-
var onSuccess = _ref.onSuccess;
|
|
277
|
-
return useMutationWithInvalidation(dailiesApi.destroy, {
|
|
278
|
-
keysToInvalidate: [[QUERY_KEYS.DAILY_CO_DETAILS]],
|
|
279
|
-
onSuccess: onSuccess
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
function _arrayWithHoles(arr) {
|
|
284
|
-
if (Array.isArray(arr)) return arr;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
function _iterableToArrayLimit(r, l) {
|
|
288
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
289
|
-
if (null != t) {
|
|
290
|
-
var e,
|
|
291
|
-
n,
|
|
292
|
-
i,
|
|
293
|
-
u,
|
|
294
|
-
a = [],
|
|
295
|
-
f = !0,
|
|
296
|
-
o = !1;
|
|
297
|
-
try {
|
|
298
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
299
|
-
if (Object(t) !== t) return;
|
|
300
|
-
f = !1;
|
|
301
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
302
|
-
} catch (r) {
|
|
303
|
-
o = !0, n = r;
|
|
304
|
-
} finally {
|
|
305
|
-
try {
|
|
306
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
307
|
-
} finally {
|
|
308
|
-
if (o) throw n;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
return a;
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
function _arrayLikeToArray(arr, len) {
|
|
316
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
317
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
318
|
-
return arr2;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
322
|
-
if (!o) return;
|
|
323
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
324
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
325
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
326
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
327
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function _nonIterableRest() {
|
|
331
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
function _slicedToArray(arr, i) {
|
|
335
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
339
|
-
if (source == null) return {};
|
|
340
|
-
var target = {};
|
|
341
|
-
var sourceKeys = Object.keys(source);
|
|
342
|
-
var key, i;
|
|
343
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
344
|
-
key = sourceKeys[i];
|
|
345
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
346
|
-
target[key] = source[key];
|
|
347
|
-
}
|
|
348
|
-
return target;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
function _objectWithoutProperties(source, excluded) {
|
|
352
|
-
if (source == null) return {};
|
|
353
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
354
|
-
var key, i;
|
|
355
|
-
if (Object.getOwnPropertySymbols) {
|
|
356
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
357
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
358
|
-
key = sourceSymbolKeys[i];
|
|
359
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
360
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
361
|
-
target[key] = source[key];
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
return target;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
var _excluded = ["className", "children"];
|
|
368
|
-
function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
369
|
-
function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
370
|
-
var ExternalLink = function ExternalLink(_ref) {
|
|
371
|
-
var _ref$className = _ref.className,
|
|
372
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
373
|
-
_ref$children = _ref.children,
|
|
374
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
375
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
376
|
-
return /*#__PURE__*/jsx("a", _objectSpread$6(_objectSpread$6({
|
|
377
|
-
className: classnames(["neeto-ui-text-primary-800 hover:neeto-ui-text-primary-800 visited:neeto-ui-text-primary-600 font-medium", className])
|
|
378
|
-
}, props), {}, {
|
|
379
|
-
children: children
|
|
380
|
-
}));
|
|
381
|
-
};
|
|
382
|
-
var ExternalLink$1 = /*#__PURE__*/React__default.memo(ExternalLink);
|
|
383
|
-
|
|
384
|
-
var MANAGE_DAILY_CO_FORM_INITIAL_VALUES = {
|
|
385
|
-
apiKey: ""
|
|
386
|
-
};
|
|
387
|
-
var DAILY_CO_VALIDATION_SCHEMA = yup.object().shape({
|
|
388
|
-
apiKey: yup.string().trim().required(t$1("neetoIntegrations.errors.required", {
|
|
389
|
-
entity: t$1("neetoIntegrations.daily.apiKey")
|
|
390
|
-
}))
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
var Form = function Form(_ref) {
|
|
394
|
-
var helpDocUrl = _ref.helpDocUrl,
|
|
395
|
-
videoUrl = _ref.videoUrl,
|
|
396
|
-
onConnect = _ref.onConnect,
|
|
397
|
-
breadcrumbs = _ref.breadcrumbs;
|
|
398
|
-
var _useTranslation = useTranslation(),
|
|
399
|
-
t = _useTranslation.t;
|
|
400
|
-
var history = useHistory();
|
|
401
|
-
var _useState = useState(false),
|
|
402
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
403
|
-
isDemoModalOpen = _useState2[0],
|
|
404
|
-
setIsDemoModalOpen = _useState2[1];
|
|
405
|
-
var _useCreateDaily = useCreateDaily({
|
|
406
|
-
onSuccess: function onSuccess() {
|
|
407
|
-
return onConnect === null || onConnect === void 0 ? void 0 : onConnect();
|
|
408
|
-
}
|
|
409
|
-
}),
|
|
410
|
-
createDaily = _useCreateDaily.mutate,
|
|
411
|
-
isConnecting = _useCreateDaily.isPending;
|
|
412
|
-
var handleSubmit = function handleSubmit(payload) {
|
|
413
|
-
return createDaily(payload);
|
|
414
|
-
};
|
|
415
|
-
if (isConnecting) {
|
|
416
|
-
return /*#__PURE__*/jsx(PageLoader, {});
|
|
417
|
-
}
|
|
418
|
-
return /*#__PURE__*/jsxs(Container, {
|
|
419
|
-
isHeaderFixed: true,
|
|
420
|
-
children: [/*#__PURE__*/jsx(Header, {
|
|
421
|
-
breadcrumbs: breadcrumbs,
|
|
422
|
-
title: /*#__PURE__*/jsxs("span", {
|
|
423
|
-
className: "flex items-center gap-2",
|
|
424
|
-
children: [t("neetoIntegrations.daily.connect.title"), /*#__PURE__*/jsx(HelpPopover, {
|
|
425
|
-
title: t("neetoIntegrations.daily.connect.title"),
|
|
426
|
-
description: /*#__PURE__*/jsx(Trans, {
|
|
427
|
-
i18nKey: "neetoIntegrations.daily.helpDoc",
|
|
428
|
-
components: {
|
|
429
|
-
externalLink: /*#__PURE__*/jsx(ExternalLink$1, {
|
|
430
|
-
"data-cy": "api-key-help-doc-link",
|
|
431
|
-
href: helpDocUrl,
|
|
432
|
-
rel: "noreferrer",
|
|
433
|
-
target: "_blank"
|
|
434
|
-
})
|
|
435
|
-
}
|
|
436
|
-
}),
|
|
437
|
-
helpLinkProps: {
|
|
438
|
-
label: /*#__PURE__*/jsx(Button, {
|
|
439
|
-
className: "mt-8",
|
|
440
|
-
label: t("neetoIntegrations.daily.walkthroughText"),
|
|
441
|
-
style: "link",
|
|
442
|
-
onClick: function onClick() {
|
|
443
|
-
return setIsDemoModalOpen(true);
|
|
444
|
-
}
|
|
445
|
-
})
|
|
446
|
-
}
|
|
447
|
-
})]
|
|
448
|
-
})
|
|
449
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
450
|
-
className: "mx-auto w-full max-w-md",
|
|
451
|
-
children: [/*#__PURE__*/jsx(FormikForm, {
|
|
452
|
-
formikProps: {
|
|
453
|
-
initialValues: MANAGE_DAILY_CO_FORM_INITIAL_VALUES,
|
|
454
|
-
validationSchema: DAILY_CO_VALIDATION_SCHEMA,
|
|
455
|
-
onSubmit: handleSubmit
|
|
456
|
-
},
|
|
457
|
-
children: /*#__PURE__*/jsxs("div", {
|
|
458
|
-
className: "mt-14 w-full space-y-2",
|
|
459
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
460
|
-
className: "block min-h-20",
|
|
461
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
462
|
-
autoFocus: true,
|
|
463
|
-
required: true,
|
|
464
|
-
label: t("neetoIntegrations.daily.apiKey"),
|
|
465
|
-
name: "apiKey"
|
|
466
|
-
})
|
|
467
|
-
}), /*#__PURE__*/jsx(ActionBlock, {
|
|
468
|
-
cancelButtonProps: {
|
|
469
|
-
onClick: function onClick() {
|
|
470
|
-
return history.goBack();
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
isSubmitting: isConnecting,
|
|
474
|
-
submitButtonProps: {
|
|
475
|
-
label: t("neetoIntegrations.common.connect")
|
|
476
|
-
}
|
|
477
|
-
})]
|
|
478
|
-
})
|
|
479
|
-
}), /*#__PURE__*/jsx(WalkthroughModal, {
|
|
480
|
-
videoUrl: videoUrl,
|
|
481
|
-
isOpen: isDemoModalOpen,
|
|
482
|
-
onClose: function onClose() {
|
|
483
|
-
return setIsDemoModalOpen(false);
|
|
484
|
-
}
|
|
485
|
-
})]
|
|
486
|
-
})]
|
|
487
|
-
});
|
|
488
|
-
};
|
|
489
|
-
var Form$1 = withTitle(Form, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
490
|
-
|
|
491
|
-
var Manage = function Manage(_ref) {
|
|
492
|
-
var description = _ref.description,
|
|
493
|
-
onDisconnect = _ref.onDisconnect;
|
|
494
|
-
var _useState = useState(false),
|
|
495
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
496
|
-
isDisconnectAlertOpen = _useState2[0],
|
|
497
|
-
setIsDisconnectAlertOpen = _useState2[1];
|
|
498
|
-
var _useFetchDaily = useFetchDaily(),
|
|
499
|
-
_useFetchDaily$data = _useFetchDaily.data,
|
|
500
|
-
_useFetchDaily$data2 = _useFetchDaily$data === void 0 ? {} : _useFetchDaily$data,
|
|
501
|
-
_useFetchDaily$data2$ = _useFetchDaily$data2.metadata,
|
|
502
|
-
metadata = _useFetchDaily$data2$ === void 0 ? {} : _useFetchDaily$data2$,
|
|
503
|
-
isFetching = _useFetchDaily.isFetching;
|
|
504
|
-
var _ref2 = metadata || {},
|
|
505
|
-
_ref2$apiKey = _ref2.apiKey,
|
|
506
|
-
apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
|
|
507
|
-
var _useTranslation = useTranslation(),
|
|
508
|
-
t = _useTranslation.t;
|
|
509
|
-
var _useDestroyDaily = useDestroyDaily({
|
|
510
|
-
onSuccess: function onSuccess() {
|
|
511
|
-
setIsDisconnectAlertOpen(false);
|
|
512
|
-
onDisconnect === null || onDisconnect === void 0 || onDisconnect();
|
|
513
|
-
}
|
|
514
|
-
}),
|
|
515
|
-
destroyIntegration = _useDestroyDaily.mutate,
|
|
516
|
-
isDisconnecting = _useDestroyDaily.isPending;
|
|
517
|
-
var isConnected = isPresent(apiKey);
|
|
518
|
-
var handleDisconnect = function handleDisconnect() {
|
|
519
|
-
return destroyIntegration("daily");
|
|
520
|
-
};
|
|
521
|
-
if (isFetching || isDisconnecting) return /*#__PURE__*/jsx(PageLoader, {});
|
|
522
|
-
return /*#__PURE__*/jsx(Manage$1, {
|
|
523
|
-
isConnected: isConnected,
|
|
524
|
-
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
525
|
-
isDisconnecting: isDisconnecting,
|
|
526
|
-
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
527
|
-
Icon: DailyIcon,
|
|
528
|
-
connectPath: buildUrl(window.location.pathname, {
|
|
529
|
-
connect: true
|
|
530
|
-
}),
|
|
531
|
-
integration: "daily",
|
|
532
|
-
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
533
|
-
i18nKey: "neetoIntegrations.daily.yourApiKey",
|
|
534
|
-
values: {
|
|
535
|
-
apiKey: apiKey
|
|
536
|
-
},
|
|
537
|
-
components: {
|
|
538
|
-
wrapper: /*#__PURE__*/jsx("div", {
|
|
539
|
-
className: "neeto-ui-rounded-md mt-2 flex items-center justify-between gap-x-3 border px-3 py-2"
|
|
540
|
-
}),
|
|
541
|
-
span: /*#__PURE__*/jsx("span", {
|
|
542
|
-
className: "break-all text-sm"
|
|
543
|
-
}),
|
|
544
|
-
copy: /*#__PURE__*/jsx(CopyToClipboardButton, {
|
|
545
|
-
className: "flex-shrink-0 self-start",
|
|
546
|
-
style: "text",
|
|
547
|
-
value: apiKey
|
|
548
|
-
})
|
|
549
|
-
}
|
|
550
|
-
}) : description,
|
|
551
|
-
title: isConnected ? t("neetoIntegrations.daily.connected") : t("neetoIntegrations.daily.connect.account"),
|
|
552
|
-
onClose: function onClose() {
|
|
553
|
-
return setIsDisconnectAlertOpen(false);
|
|
554
|
-
},
|
|
555
|
-
onDisconnect: handleDisconnect
|
|
556
|
-
});
|
|
557
|
-
};
|
|
558
|
-
|
|
559
|
-
var Daily = function Daily(_ref) {
|
|
560
|
-
var _ref$isOnboarding = _ref.isOnboarding,
|
|
561
|
-
isOnboarding = _ref$isOnboarding === void 0 ? false : _ref$isOnboarding,
|
|
562
|
-
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
563
|
-
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
564
|
-
_ref$videoUrl = _ref.videoUrl,
|
|
565
|
-
videoUrl = _ref$videoUrl === void 0 ? "" : _ref$videoUrl,
|
|
566
|
-
_ref$description = _ref.description,
|
|
567
|
-
description = _ref$description === void 0 ? "" : _ref$description,
|
|
568
|
-
_ref$onConnect = _ref.onConnect,
|
|
569
|
-
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
570
|
-
_ref$onDisconnect = _ref.onDisconnect,
|
|
571
|
-
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect;
|
|
572
|
-
var _useQueryParams = useQueryParams(),
|
|
573
|
-
connect = _useQueryParams.connect;
|
|
574
|
-
var _useFetchDaily = useFetchDaily(),
|
|
575
|
-
_useFetchDaily$data = _useFetchDaily.data,
|
|
576
|
-
_useFetchDaily$data2 = _useFetchDaily$data === void 0 ? {} : _useFetchDaily$data,
|
|
577
|
-
_useFetchDaily$data2$ = _useFetchDaily$data2.metadata,
|
|
578
|
-
metadata = _useFetchDaily$data2$ === void 0 ? {} : _useFetchDaily$data2$;
|
|
579
|
-
var _ref2 = metadata || {},
|
|
580
|
-
_ref2$apiKey = _ref2.apiKey,
|
|
581
|
-
apiKey = _ref2$apiKey === void 0 ? null : _ref2$apiKey;
|
|
582
|
-
if (isPresent(apiKey) && !isOnboarding || !connect) {
|
|
583
|
-
return /*#__PURE__*/jsx(Manage, {
|
|
584
|
-
description: description,
|
|
585
|
-
onDisconnect: onDisconnect
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
return /*#__PURE__*/jsx(Form$1, {
|
|
589
|
-
helpDocUrl: helpDocUrl,
|
|
590
|
-
onConnect: onConnect,
|
|
591
|
-
videoUrl: videoUrl
|
|
592
|
-
});
|
|
593
|
-
};
|
|
594
|
-
var index = withTitle(Daily, i18next.t("neetoIntegrations.browserTitles.integrations.dailyco"));
|
|
595
|
-
|
|
596
|
-
function _arrayWithoutHoles(arr) {
|
|
597
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
function _iterableToArray(iter) {
|
|
601
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
function _nonIterableSpread() {
|
|
605
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
function _toConsumableArray(arr) {
|
|
609
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
var INTEGRATION_STEPS = [{
|
|
613
|
-
step: "1",
|
|
614
|
-
label: t$1("neetoIntegrations.common.connect"),
|
|
615
|
-
isActive: true,
|
|
616
|
-
isCompleted: false
|
|
617
|
-
}, {
|
|
618
|
-
step: "2",
|
|
619
|
-
label: t$1("neetoIntegrations.common.finish"),
|
|
620
|
-
isActive: false,
|
|
621
|
-
isCompleted: false
|
|
622
|
-
}];
|
|
623
|
-
var STEPS = {
|
|
624
|
-
connect: t$1("neetoIntegrations.common.connect"),
|
|
625
|
-
finish: t$1("neetoIntegrations.common.finish")
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
629
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
630
|
-
var GoogleCalendar = function GoogleCalendar(_ref) {
|
|
631
|
-
var permissionImage = _ref.permissionImage,
|
|
632
|
-
fetchAuthorizationUrl = _ref.fetchAuthorizationUrl,
|
|
633
|
-
handleClose = _ref.handleClose,
|
|
634
|
-
handleRedirect = _ref.handleRedirect;
|
|
635
|
-
var _useTranslation = useTranslation(),
|
|
636
|
-
t = _useTranslation.t;
|
|
637
|
-
var _useState = useState(INTEGRATION_STEPS),
|
|
638
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
639
|
-
steps = _useState2[0],
|
|
640
|
-
setSteps = _useState2[1];
|
|
641
|
-
var _getQueryParams = getQueryParams(),
|
|
642
|
-
status = _getQueryParams.status;
|
|
643
|
-
var activeTab = isPresent(status) ? STEPS.finish : STEPS.connect;
|
|
644
|
-
useEffect(function () {
|
|
645
|
-
setSteps(function () {
|
|
646
|
-
var stepsClone = _toConsumableArray(steps);
|
|
647
|
-
stepsClone[0] = _objectSpread$5(_objectSpread$5({}, steps[0]), {}, {
|
|
648
|
-
isActive: activeTab === STEPS.connect,
|
|
649
|
-
isCompleted: activeTab !== STEPS.connect
|
|
650
|
-
});
|
|
651
|
-
stepsClone[1] = _objectSpread$5(_objectSpread$5({}, steps[1]), {}, {
|
|
652
|
-
isActive: activeTab === STEPS.finish,
|
|
653
|
-
isCompleted: activeTab === STEPS.finish
|
|
654
|
-
});
|
|
655
|
-
return stepsClone;
|
|
656
|
-
});
|
|
657
|
-
}, [activeTab]);
|
|
658
|
-
return /*#__PURE__*/jsxs(Modal, {
|
|
659
|
-
steps: steps,
|
|
660
|
-
isOpen: true,
|
|
661
|
-
onClose: handleClose,
|
|
662
|
-
children: [activeTab === STEPS.connect && /*#__PURE__*/jsxs("div", {
|
|
663
|
-
className: "mx-auto w-full max-w-3xl",
|
|
664
|
-
children: [/*#__PURE__*/jsx(GoogleCalendarIcon, {
|
|
665
|
-
size: 48
|
|
666
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
667
|
-
className: "mb-4 mt-2",
|
|
668
|
-
style: "h2",
|
|
669
|
-
children: t("neetoIntegrations.google.connect.title")
|
|
670
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
671
|
-
className: "flex w-full flex-col items-start",
|
|
672
|
-
children: [/*#__PURE__*/jsx(Callout, {
|
|
673
|
-
className: "block leading-5",
|
|
674
|
-
children: /*#__PURE__*/jsx(Trans, {
|
|
675
|
-
components: {
|
|
676
|
-
bold: /*#__PURE__*/jsx("strong", {})
|
|
677
|
-
},
|
|
678
|
-
i18nKey: "neetoIntegrations.google.connect.reminderToAcceptPermissions",
|
|
679
|
-
values: {
|
|
680
|
-
selectCheckbox: t("neetoIntegrations.google.connect.selectCheckbox")
|
|
681
|
-
}
|
|
682
|
-
})
|
|
683
|
-
}), permissionImage && /*#__PURE__*/jsx("div", {
|
|
684
|
-
className: "neeto-ui-border-gray-300 neeto-ui-rounded-md my-4 overflow-hidden border",
|
|
685
|
-
children: /*#__PURE__*/jsx("img", {
|
|
686
|
-
src: permissionImage
|
|
687
|
-
})
|
|
688
|
-
})]
|
|
689
|
-
}), /*#__PURE__*/jsx(Button, {
|
|
690
|
-
icon: Google,
|
|
691
|
-
label: t("neetoIntegrations.google.connect.signIn"),
|
|
692
|
-
onClick: fetchAuthorizationUrl
|
|
693
|
-
})]
|
|
694
|
-
}), activeTab === STEPS.finish && /*#__PURE__*/jsx(Finish, {
|
|
695
|
-
title: t("neetoIntegrations.google.finish.title"),
|
|
696
|
-
onClick: handleRedirect
|
|
697
|
-
})]
|
|
698
|
-
});
|
|
699
|
-
};
|
|
700
|
-
|
|
701
|
-
function ownKeys$4(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
702
|
-
function _objectSpread$4(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$4(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$4(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
703
|
-
var ConfigurationForm = function ConfigurationForm(_ref) {
|
|
704
|
-
var _errors$twilioPhoneNu;
|
|
705
|
-
var phoneNumberOptions = _ref.phoneNumberOptions,
|
|
706
|
-
_ref$selectedPhoneNum = _ref.selectedPhoneNumber,
|
|
707
|
-
selectedPhoneNumber = _ref$selectedPhoneNum === void 0 ? null : _ref$selectedPhoneNum,
|
|
708
|
-
_ref$initialFocusRef = _ref.initialFocusRef,
|
|
709
|
-
initialFocusRef = _ref$initialFocusRef === void 0 ? null : _ref$initialFocusRef,
|
|
710
|
-
_ref$isUsingOverlay = _ref.isUsingOverlay,
|
|
711
|
-
isUsingOverlay = _ref$isUsingOverlay === void 0 ? false : _ref$isUsingOverlay,
|
|
712
|
-
_ref$formikProps = _ref.formikProps,
|
|
713
|
-
formikProps = _ref$formikProps === void 0 ? {} : _ref$formikProps;
|
|
714
|
-
var _useTranslation = useTranslation(),
|
|
715
|
-
t = _useTranslation.t;
|
|
716
|
-
var setFieldValue = formikProps.setFieldValue,
|
|
717
|
-
setValues = formikProps.setValues,
|
|
718
|
-
errors = formikProps.errors,
|
|
719
|
-
values = formikProps.values,
|
|
720
|
-
initialValues = formikProps.initialValues;
|
|
721
|
-
useEffect(function () {
|
|
722
|
-
selectedPhoneNumber && setFieldValue("twilioPhoneNumber", selectedPhoneNumber);
|
|
723
|
-
}, [selectedPhoneNumber, initialValues]);
|
|
724
|
-
return /*#__PURE__*/jsxs("div", {
|
|
725
|
-
className: "flex w-full flex-col gap-y-4",
|
|
726
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
727
|
-
className: "flex w-full",
|
|
728
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
729
|
-
required: true,
|
|
730
|
-
autoFocus: !isUsingOverlay,
|
|
731
|
-
"data-testid": "integrations-twilio-sid",
|
|
732
|
-
label: t("neetoIntegrations.twilio.sid"),
|
|
733
|
-
name: "twilioSid",
|
|
734
|
-
ref: initialFocusRef
|
|
735
|
-
})
|
|
736
|
-
}), /*#__PURE__*/jsx("div", {
|
|
737
|
-
className: "flex w-full",
|
|
738
|
-
children: /*#__PURE__*/jsx(Input, {
|
|
739
|
-
required: true,
|
|
740
|
-
"data-testid": "integrations-twilio-auth-token",
|
|
741
|
-
label: t("neetoIntegrations.twilio.authToken"),
|
|
742
|
-
name: "twilioAuthToken"
|
|
743
|
-
})
|
|
744
|
-
}), phoneNumberOptions && /*#__PURE__*/jsx("div", {
|
|
745
|
-
className: "flex w-full",
|
|
746
|
-
children: /*#__PURE__*/jsx(Select, {
|
|
747
|
-
error: (_errors$twilioPhoneNu = errors.twilioPhoneNumber) === null || _errors$twilioPhoneNu === void 0 ? void 0 : _errors$twilioPhoneNu.value,
|
|
748
|
-
label: t("neetoIntegrations.common.phNo"),
|
|
749
|
-
name: "twilioPhoneNumber",
|
|
750
|
-
options: phoneNumberOptions,
|
|
751
|
-
size: "large",
|
|
752
|
-
onChange: function onChange(selected) {
|
|
753
|
-
return setValues(_objectSpread$4(_objectSpread$4({}, values), {}, {
|
|
754
|
-
twilioPhoneNumber: selected
|
|
755
|
-
}));
|
|
756
|
-
}
|
|
757
|
-
})
|
|
758
|
-
})]
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
763
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
764
|
-
var fetchTwilioSmsConfiguration = function fetchTwilioSmsConfiguration(integrable) {
|
|
765
|
-
return axios.get(TWILIO_CONFIGURATION_BASE_URL, {
|
|
766
|
-
params: integrable
|
|
767
|
-
});
|
|
768
|
-
};
|
|
769
|
-
var removeTwilioConfiguration = function removeTwilioConfiguration() {
|
|
770
|
-
return axios["delete"](TWILIO_CONFIGURATION_BASE_URL);
|
|
771
|
-
};
|
|
772
|
-
var getTwilioPhoneNumbers = function getTwilioPhoneNumbers(data) {
|
|
773
|
-
return axios.get("".concat(TWILIO_CONFIGURATION_BASE_URL, "/new"), {
|
|
774
|
-
params: data
|
|
775
|
-
});
|
|
776
|
-
};
|
|
777
|
-
var createTwilioConfiguration = function createTwilioConfiguration(payload, integrable) {
|
|
778
|
-
return axios.post(TWILIO_CONFIGURATION_BASE_URL, _objectSpread$3(_objectSpread$3({}, payload), integrable));
|
|
779
|
-
};
|
|
780
|
-
var twilioApi = {
|
|
781
|
-
fetchTwilioSmsConfiguration: fetchTwilioSmsConfiguration,
|
|
782
|
-
removeTwilioConfiguration: removeTwilioConfiguration,
|
|
783
|
-
getTwilioPhoneNumbers: getTwilioPhoneNumbers,
|
|
784
|
-
createTwilioConfiguration: createTwilioConfiguration
|
|
785
|
-
};
|
|
786
|
-
|
|
787
|
-
var useFetchTwilioSmsConfiguration = function useFetchTwilioSmsConfiguration(_ref) {
|
|
788
|
-
var integrable = _ref.integrable;
|
|
789
|
-
return useQuery({
|
|
790
|
-
queryKey: [QUERY_KEYS.TWILIO_SMS_CONFIGURATION, integrable === null || integrable === void 0 ? void 0 : integrable.integrableType, integrable === null || integrable === void 0 ? void 0 : integrable.integrableId],
|
|
791
|
-
queryFn: function queryFn() {
|
|
792
|
-
return twilioApi.fetchTwilioSmsConfiguration(integrable);
|
|
793
|
-
},
|
|
794
|
-
select: function select(response) {
|
|
795
|
-
var _smsConfiguration$twi, _smsConfiguration$twi2, _smsConfiguration$twi3;
|
|
796
|
-
var smsConfiguration = response.smsConfiguration;
|
|
797
|
-
return {
|
|
798
|
-
twilioSid: (_smsConfiguration$twi = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioSid) !== null && _smsConfiguration$twi !== void 0 ? _smsConfiguration$twi : "",
|
|
799
|
-
twilioAuthToken: (_smsConfiguration$twi2 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioAuthToken) !== null && _smsConfiguration$twi2 !== void 0 ? _smsConfiguration$twi2 : "",
|
|
800
|
-
twilioPhoneNumber: (_smsConfiguration$twi3 = smsConfiguration === null || smsConfiguration === void 0 ? void 0 : smsConfiguration.twilioPhoneNumber) !== null && _smsConfiguration$twi3 !== void 0 ? _smsConfiguration$twi3 : ""
|
|
801
|
-
};
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
var useFetchTwilioPhoneNumbers = function useFetchTwilioPhoneNumbers(_ref2) {
|
|
806
|
-
var _formRef$current, _formRef$current2;
|
|
807
|
-
var credentials = _ref2.credentials,
|
|
808
|
-
formRef = _ref2.formRef;
|
|
809
|
-
return useQuery({
|
|
810
|
-
queryKey: [QUERY_KEYS.TWILIO_PHONE_NUMBERS, {
|
|
811
|
-
credentials: credentials
|
|
812
|
-
}],
|
|
813
|
-
queryFn: function queryFn() {
|
|
814
|
-
return twilioApi.getTwilioPhoneNumbers(keysToSnakeCase(credentials));
|
|
815
|
-
},
|
|
816
|
-
enabled: !!(credentials !== null && credentials !== void 0 && credentials.twilio_sid) || !!(credentials !== null && credentials !== void 0 && credentials.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current = formRef.current) !== null && _formRef$current !== void 0 && (_formRef$current = _formRef$current.values) !== null && _formRef$current !== void 0 && _formRef$current.twilioSid) || !!(formRef !== null && formRef !== void 0 && (_formRef$current2 = formRef.current) !== null && _formRef$current2 !== void 0 && (_formRef$current2 = _formRef$current2.values) !== null && _formRef$current2 !== void 0 && _formRef$current2.twilioAuthToken),
|
|
817
|
-
select: prop("phoneNumbers"),
|
|
818
|
-
retry: false
|
|
819
|
-
});
|
|
820
|
-
};
|
|
821
|
-
var useCreateTwilioConfiguration = function useCreateTwilioConfiguration(_ref3) {
|
|
822
|
-
var integrable = _ref3.integrable;
|
|
823
|
-
return useMutationWithInvalidation(function (payload) {
|
|
824
|
-
return twilioApi.createTwilioConfiguration(payload, integrable);
|
|
825
|
-
}, {
|
|
826
|
-
keysToInvalidate: [[QUERY_KEYS.TWILIO_SMS_CONFIGURATION, integrable === null || integrable === void 0 ? void 0 : integrable.integrableType, integrable === null || integrable === void 0 ? void 0 : integrable.integrableId]]
|
|
827
|
-
});
|
|
828
|
-
};
|
|
829
|
-
|
|
830
|
-
var useTwilio = function useTwilio(_ref) {
|
|
831
|
-
var _ref$onConnect = _ref.onConnect,
|
|
832
|
-
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
833
|
-
_ref$formRef = _ref.formRef,
|
|
834
|
-
formRef = _ref$formRef === void 0 ? null : _ref$formRef,
|
|
835
|
-
_ref$integrable = _ref.integrable,
|
|
836
|
-
integrable = _ref$integrable === void 0 ? null : _ref$integrable;
|
|
837
|
-
var _useFetchTwilioSmsCon = useFetchTwilioSmsConfiguration({
|
|
838
|
-
integrable: integrable
|
|
839
|
-
}),
|
|
840
|
-
_useFetchTwilioSmsCon2 = _useFetchTwilioSmsCon.data,
|
|
841
|
-
configuration = _useFetchTwilioSmsCon2 === void 0 ? {} : _useFetchTwilioSmsCon2,
|
|
842
|
-
isConfigurationLoading = _useFetchTwilioSmsCon.isLoading;
|
|
843
|
-
var _useStateWithDependen = useStateWithDependency(configuration),
|
|
844
|
-
_useStateWithDependen2 = _slicedToArray(_useStateWithDependen, 2),
|
|
845
|
-
credentials = _useStateWithDependen2[0],
|
|
846
|
-
setCredentials = _useStateWithDependen2[1];
|
|
847
|
-
var _useFetchTwilioPhoneN = useFetchTwilioPhoneNumbers({
|
|
848
|
-
credentials: credentials,
|
|
849
|
-
formRef: formRef
|
|
850
|
-
}),
|
|
851
|
-
phoneNumbers = _useFetchTwilioPhoneN.data,
|
|
852
|
-
isPhoneNumbersLoading = _useFetchTwilioPhoneN.isLoading;
|
|
853
|
-
var _useCreateTwilioConfi = useCreateTwilioConfiguration({
|
|
854
|
-
integrable: integrable
|
|
855
|
-
}),
|
|
856
|
-
saveConfiguration = _useCreateTwilioConfi.mutate,
|
|
857
|
-
isSubmitting = _useCreateTwilioConfi.isPending;
|
|
858
|
-
var handleSubmit = function handleSubmit(values) {
|
|
859
|
-
var _values$twilioPhoneNu;
|
|
860
|
-
var payload = {
|
|
861
|
-
twilio_sid: values.twilioSid,
|
|
862
|
-
twilio_auth_token: values.twilioAuthToken,
|
|
863
|
-
twilio_phone_number_sid: (_values$twilioPhoneNu = values.twilioPhoneNumber) === null || _values$twilioPhoneNu === void 0 ? void 0 : _values$twilioPhoneNu.value
|
|
864
|
-
};
|
|
865
|
-
if (!phoneNumbers && !(configuration !== null && configuration !== void 0 && configuration.twilioPhoneNumber)) {
|
|
866
|
-
setCredentials(payload);
|
|
867
|
-
return;
|
|
868
|
-
}
|
|
869
|
-
saveConfiguration(payload, {
|
|
870
|
-
onSuccess: onConnect
|
|
871
|
-
});
|
|
872
|
-
};
|
|
873
|
-
return {
|
|
874
|
-
handleSubmit: handleSubmit,
|
|
875
|
-
phoneNumbers: phoneNumbers,
|
|
876
|
-
isConfigurationLoading: isConfigurationLoading,
|
|
877
|
-
isPhoneNumbersLoading: isPhoneNumbersLoading,
|
|
878
|
-
isSubmitting: isSubmitting,
|
|
879
|
-
configuration: configuration
|
|
880
|
-
};
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
var buildTwilioConfigurationValidationSchema = function buildTwilioConfigurationValidationSchema(isTwilioPhoneRequired) {
|
|
884
|
-
return yup.object().shape({
|
|
885
|
-
twilioSid: yup.string().required(i18next.t("neetoIntegrations.twilio.validations.sidReq")),
|
|
886
|
-
twilioAuthToken: yup.string().required(i18next.t("neetoIntegrations.twilio.validations.authTokenReq")),
|
|
887
|
-
twilioPhoneNumber: isTwilioPhoneRequired ? yup.object().shape({
|
|
888
|
-
label: yup.string(),
|
|
889
|
-
value: yup.string().required(i18next.t("neetoIntegrations.twilio.validations.phNumReq"))
|
|
890
|
-
}) : null
|
|
891
|
-
});
|
|
892
|
-
};
|
|
893
|
-
var buildPhoneNumberOptions = function buildPhoneNumberOptions(phoneNumbers) {
|
|
894
|
-
return phoneNumbers === null || phoneNumbers === void 0 ? void 0 : phoneNumbers.map(function (_ref) {
|
|
895
|
-
var phoneNumber = _ref.phoneNumber,
|
|
896
|
-
sid = _ref.sid;
|
|
897
|
-
return {
|
|
898
|
-
label: phoneNumber,
|
|
899
|
-
value: sid
|
|
900
|
-
};
|
|
901
|
-
});
|
|
902
|
-
};
|
|
903
|
-
|
|
904
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
905
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
906
|
-
var Twilio = function Twilio(_ref) {
|
|
907
|
-
var _ref$integrable = _ref.integrable,
|
|
908
|
-
integrable = _ref$integrable === void 0 ? null : _ref$integrable,
|
|
909
|
-
_ref$onClose = _ref.onClose,
|
|
910
|
-
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
911
|
-
_ref$onConnect = _ref.onConnect,
|
|
912
|
-
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect;
|
|
913
|
-
var _useTranslation = useTranslation(),
|
|
914
|
-
t = _useTranslation.t;
|
|
915
|
-
var initialFocusRef = useRef();
|
|
916
|
-
var formRef = useRef();
|
|
917
|
-
var _useTwilio = useTwilio({
|
|
918
|
-
onConnect: onConnect,
|
|
919
|
-
formRef: formRef,
|
|
920
|
-
integrable: integrable
|
|
921
|
-
}),
|
|
922
|
-
handleSubmit = _useTwilio.handleSubmit,
|
|
923
|
-
phoneNumbers = _useTwilio.phoneNumbers,
|
|
924
|
-
isConfigurationLoading = _useTwilio.isConfigurationLoading,
|
|
925
|
-
isPhoneNumbersLoading = _useTwilio.isPhoneNumbersLoading,
|
|
926
|
-
isSubmitting = _useTwilio.isSubmitting,
|
|
927
|
-
configuration = _useTwilio.configuration;
|
|
928
|
-
var phoneNumberOptions = buildPhoneNumberOptions(phoneNumbers);
|
|
929
|
-
var selectedPhoneNumber = _findBy({
|
|
930
|
-
label: configuration === null || configuration === void 0 ? void 0 : configuration.twilioPhoneNumber
|
|
931
|
-
}, phoneNumberOptions);
|
|
932
|
-
var isLoading = isPhoneNumbersLoading || isConfigurationLoading;
|
|
933
|
-
var isSubmitDisabled = function isSubmitDisabled(values) {
|
|
934
|
-
return equals(_objectSpread$2(_objectSpread$2({}, configuration), {}, {
|
|
935
|
-
twilioPhoneNumber: selectedPhoneNumber
|
|
936
|
-
}), values) || isLoading;
|
|
937
|
-
};
|
|
938
|
-
return /*#__PURE__*/jsx(FormikForm, {
|
|
939
|
-
className: "mx-auto flex w-full max-w-md flex-col p-5",
|
|
940
|
-
formikProps: {
|
|
941
|
-
enableReinitialize: true,
|
|
942
|
-
validationSchema: buildTwilioConfigurationValidationSchema(!!phoneNumbers),
|
|
943
|
-
initialValues: configuration,
|
|
944
|
-
innerRef: formRef,
|
|
945
|
-
onSubmit: handleSubmit
|
|
946
|
-
},
|
|
947
|
-
children: function children(formikProps) {
|
|
948
|
-
return /*#__PURE__*/jsxs(Fragment, {
|
|
949
|
-
children: [/*#__PURE__*/jsx(ConfigurationForm, {
|
|
950
|
-
formikProps: formikProps,
|
|
951
|
-
initialFocusRef: initialFocusRef,
|
|
952
|
-
phoneNumberOptions: phoneNumberOptions,
|
|
953
|
-
selectedPhoneNumber: selectedPhoneNumber
|
|
954
|
-
}), /*#__PURE__*/jsx("div", {
|
|
955
|
-
className: "mt-8",
|
|
956
|
-
children: /*#__PURE__*/jsx(ActionBlock, {
|
|
957
|
-
isSubmitting: isSubmitting,
|
|
958
|
-
cancelButtonProps: {
|
|
959
|
-
onClick: onClose
|
|
960
|
-
},
|
|
961
|
-
submitButtonProps: {
|
|
962
|
-
label: phoneNumberOptions ? t("neetoIntegrations.common.saveChanges") : t("neetoIntegrations.common.verify"),
|
|
963
|
-
disabled: isSubmitDisabled(formikProps.values) || isSubmitting,
|
|
964
|
-
loading: isSubmitting || isPhoneNumbersLoading && !(configuration !== null && configuration !== void 0 && configuration.twilioAuthToken)
|
|
965
|
-
}
|
|
966
|
-
})
|
|
967
|
-
})]
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
};
|
|
972
|
-
|
|
973
|
-
var show = function show() {
|
|
974
|
-
return axios.get(INTEGRATION_DETAILS_URL, {
|
|
975
|
-
params: {
|
|
976
|
-
serviceName: "Zoom",
|
|
977
|
-
integrableType: "User"
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
};
|
|
981
|
-
var destroy = function destroy() {
|
|
982
|
-
return axios["delete"]("".concat(INTEGRATIONS_ENGINE_ZOOM_URL, "/oauth"));
|
|
983
|
-
};
|
|
984
|
-
var zoomApi = {
|
|
985
|
-
show: show,
|
|
986
|
-
destroy: destroy
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
var useShowZoom = function useShowZoom() {
|
|
990
|
-
return useQuery({
|
|
991
|
-
queryKey: [QUERY_KEYS.ZOOM_DETAILS],
|
|
992
|
-
queryFn: zoomApi.show,
|
|
993
|
-
staleTime: DEFAULT_STALE_TIME
|
|
994
|
-
});
|
|
995
|
-
};
|
|
996
|
-
var useDestroyZoom = function useDestroyZoom(_ref) {
|
|
997
|
-
var _onSuccess = _ref.onSuccess;
|
|
998
|
-
return useMutationWithInvalidation(zoomApi.destroy, {
|
|
999
|
-
keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],
|
|
1000
|
-
onSuccess: function onSuccess() {
|
|
1001
|
-
return _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess();
|
|
1002
|
-
}
|
|
1003
|
-
});
|
|
1004
|
-
};
|
|
1005
|
-
|
|
1006
|
-
var Zoom = function Zoom(_ref) {
|
|
1007
|
-
var _ref$connectUrl = _ref.connectUrl,
|
|
1008
|
-
connectUrl = _ref$connectUrl === void 0 ? "" : _ref$connectUrl,
|
|
1009
|
-
_ref$description = _ref.description,
|
|
1010
|
-
description = _ref$description === void 0 ? "" : _ref$description,
|
|
1011
|
-
_ref$onDisconnect = _ref.onDisconnect,
|
|
1012
|
-
onDisconnect = _ref$onDisconnect === void 0 ? noop : _ref$onDisconnect;
|
|
1013
|
-
var _useTranslation = useTranslation(),
|
|
1014
|
-
t = _useTranslation.t;
|
|
1015
|
-
var _useState = useState(false),
|
|
1016
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1017
|
-
isDisconnectAlertOpen = _useState2[0],
|
|
1018
|
-
setIsDisconnectAlertOpen = _useState2[1];
|
|
1019
|
-
var _useShowZoom = useShowZoom(),
|
|
1020
|
-
_useShowZoom$data = _useShowZoom.data,
|
|
1021
|
-
_useShowZoom$data2 = _useShowZoom$data === void 0 ? {} : _useShowZoom$data,
|
|
1022
|
-
_useShowZoom$data2$me = _useShowZoom$data2.metadata,
|
|
1023
|
-
_useShowZoom$data2$me2 = _useShowZoom$data2$me === void 0 ? {} : _useShowZoom$data2$me,
|
|
1024
|
-
_useShowZoom$data2$me3 = _useShowZoom$data2$me2.email,
|
|
1025
|
-
email = _useShowZoom$data2$me3 === void 0 ? "" : _useShowZoom$data2$me3,
|
|
1026
|
-
isLoading = _useShowZoom.isLoading;
|
|
1027
|
-
var _useDestroyZoom = useDestroyZoom({
|
|
1028
|
-
onSuccess: function onSuccess() {
|
|
1029
|
-
setIsDisconnectAlertOpen(false);
|
|
1030
|
-
onDisconnect === null || onDisconnect === void 0 || onDisconnect();
|
|
1031
|
-
}
|
|
1032
|
-
}),
|
|
1033
|
-
destroyIntegration = _useDestroyZoom.mutate,
|
|
1034
|
-
isDisconnecting = _useDestroyZoom.isPending;
|
|
1035
|
-
var isConnected = isPresent(email);
|
|
1036
|
-
var handleDisconnect = function handleDisconnect() {
|
|
1037
|
-
return destroyIntegration("zoom");
|
|
1038
|
-
};
|
|
1039
|
-
if (isLoading) return /*#__PURE__*/jsx(PageLoader, {});
|
|
1040
|
-
return /*#__PURE__*/jsx(Manage$1, {
|
|
1041
|
-
connectUrl: connectUrl,
|
|
1042
|
-
isConnected: isConnected,
|
|
1043
|
-
isDisconnectAlertOpen: isDisconnectAlertOpen,
|
|
1044
|
-
isDisconnecting: isDisconnecting,
|
|
1045
|
-
setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
|
|
1046
|
-
Icon: ZoomIcon,
|
|
1047
|
-
integration: "zoom",
|
|
1048
|
-
description: isConnected ? /*#__PURE__*/jsx(Trans, {
|
|
1049
|
-
components: {
|
|
1050
|
-
underline: /*#__PURE__*/jsx("u", {
|
|
1051
|
-
className: "font-medium"
|
|
1052
|
-
})
|
|
1053
|
-
},
|
|
1054
|
-
i18nKey: "neetoIntegrations.zoom.account",
|
|
1055
|
-
values: {
|
|
1056
|
-
email: email
|
|
1057
|
-
}
|
|
1058
|
-
}) : description,
|
|
1059
|
-
title: isConnected ? t("neetoIntegrations.zoom.connected") : t("neetoIntegrations.zoom.connect"),
|
|
1060
|
-
onClose: function onClose() {
|
|
1061
|
-
return setIsDisconnectAlertOpen(false);
|
|
1062
|
-
},
|
|
1063
|
-
onDisconnect: function onDisconnect() {
|
|
1064
|
-
return handleDisconnect();
|
|
1065
|
-
}
|
|
1066
|
-
});
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
var Stepper = function Stepper(_ref) {
|
|
1070
|
-
var _ref$steps = _ref.steps,
|
|
1071
|
-
steps = _ref$steps === void 0 ? {} : _ref$steps;
|
|
1072
|
-
var isActiveOrCompleted = function isActiveOrCompleted(activeStatus, completedStatus) {
|
|
1073
|
-
return activeStatus || completedStatus;
|
|
1074
|
-
};
|
|
1075
|
-
return /*#__PURE__*/jsx("ul", {
|
|
1076
|
-
className: "flex gap-4",
|
|
1077
|
-
children: steps === null || steps === void 0 ? void 0 : steps.map(function (_ref2) {
|
|
1078
|
-
var step = _ref2.step,
|
|
1079
|
-
label = _ref2.label,
|
|
1080
|
-
isActive = _ref2.isActive,
|
|
1081
|
-
isCompleted = _ref2.isCompleted;
|
|
1082
|
-
return /*#__PURE__*/jsxs("li", {
|
|
1083
|
-
className: "flex items-center gap-4",
|
|
1084
|
-
children: [step !== "1" && /*#__PURE__*/jsx("div", {
|
|
1085
|
-
className: classnames("w-10 border-b", {
|
|
1086
|
-
"neeto-ui-border-gray-800": isActiveOrCompleted(isActive, isCompleted),
|
|
1087
|
-
"neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
|
|
1088
|
-
})
|
|
1089
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
1090
|
-
className: "flex items-center gap-2",
|
|
1091
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
1092
|
-
className: classnames("neeto-ui-rounded-full neeto-ui-gray-600 flex h-6 w-6 items-center justify-center border", {
|
|
1093
|
-
"neeto-ui-bg-success-600 neeto-ui-border-success-600 neeto-ui-text-white": isActive,
|
|
1094
|
-
"neeto-ui-bg-primary-600 neeto-ui-border-primary-600 neeto-ui-text-white": isCompleted,
|
|
1095
|
-
"neeto-ui-border-gray-400": !isActiveOrCompleted(isActive, isCompleted)
|
|
1096
|
-
}),
|
|
1097
|
-
children: /*#__PURE__*/jsx(Typography, {
|
|
1098
|
-
component: "span",
|
|
1099
|
-
style: "body2",
|
|
1100
|
-
weight: "normal",
|
|
1101
|
-
children: step
|
|
1102
|
-
})
|
|
1103
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
1104
|
-
style: "body2",
|
|
1105
|
-
weight: "normal",
|
|
1106
|
-
className: classnames({
|
|
1107
|
-
"neeto-ui-text-gray-800": isActiveOrCompleted(isActive, isCompleted),
|
|
1108
|
-
"neeto-ui-text-gray-600": !isActiveOrCompleted(isActive, isCompleted)
|
|
1109
|
-
}),
|
|
1110
|
-
children: label
|
|
1111
|
-
})]
|
|
1112
|
-
})]
|
|
1113
|
-
}, step);
|
|
1114
|
-
})
|
|
1115
|
-
});
|
|
1116
|
-
};
|
|
1117
|
-
|
|
1118
|
-
var Modal = function Modal(_ref) {
|
|
1119
|
-
var _ref$isOpen = _ref.isOpen,
|
|
1120
|
-
isOpen = _ref$isOpen === void 0 ? noop : _ref$isOpen,
|
|
1121
|
-
_ref$onClose = _ref.onClose,
|
|
1122
|
-
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
1123
|
-
_ref$steps = _ref.steps,
|
|
1124
|
-
steps = _ref$steps === void 0 ? {} : _ref$steps,
|
|
1125
|
-
children = _ref.children;
|
|
1126
|
-
return /*#__PURE__*/jsxs(NeetoUIModal, {
|
|
1127
|
-
isOpen: isOpen,
|
|
1128
|
-
onClose: onClose,
|
|
1129
|
-
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-transform-none w-screen overflow-y-auto",
|
|
1130
|
-
size: "fullScreen",
|
|
1131
|
-
children: [/*#__PURE__*/jsx(NeetoUIModal.Header, {
|
|
1132
|
-
children: /*#__PURE__*/jsx(Stepper, {
|
|
1133
|
-
steps: steps
|
|
1134
|
-
})
|
|
1135
|
-
}), /*#__PURE__*/jsx(NeetoUIModal.Body, {
|
|
1136
|
-
className: "neeto-ui-flex neeto-ui-justify-center neeto-ui-flex-grow",
|
|
1137
|
-
children: /*#__PURE__*/jsx("div", {
|
|
1138
|
-
className: "neeto-ui-w-full py-10",
|
|
1139
|
-
children: children
|
|
1140
|
-
})
|
|
1141
|
-
})]
|
|
1142
|
-
});
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
function getDefaultExportFromCjs (x) {
|
|
1146
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
var propTypes = {exports: {}};
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1153
|
-
*
|
|
1154
|
-
* This source code is licensed under the MIT license found in the
|
|
1155
|
-
* LICENSE file in the root directory of this source tree.
|
|
1156
|
-
*/
|
|
1157
|
-
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
1158
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
1159
|
-
|
|
1160
|
-
/**
|
|
1161
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1162
|
-
*
|
|
1163
|
-
* This source code is licensed under the MIT license found in the
|
|
1164
|
-
* LICENSE file in the root directory of this source tree.
|
|
1165
|
-
*/
|
|
1166
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
1167
|
-
function emptyFunction() {}
|
|
1168
|
-
function emptyFunctionWithReset() {}
|
|
1169
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
1170
|
-
var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
1171
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
1172
|
-
if (secret === ReactPropTypesSecret) {
|
|
1173
|
-
// It is still safe when called from React.
|
|
1174
|
-
return;
|
|
1175
|
-
}
|
|
1176
|
-
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
1177
|
-
err.name = 'Invariant Violation';
|
|
1178
|
-
throw err;
|
|
1179
|
-
}
|
|
1180
|
-
shim.isRequired = shim;
|
|
1181
|
-
function getShim() {
|
|
1182
|
-
return shim;
|
|
1183
|
-
}
|
|
1184
|
-
// Important!
|
|
1185
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1186
|
-
var ReactPropTypes = {
|
|
1187
|
-
array: shim,
|
|
1188
|
-
bigint: shim,
|
|
1189
|
-
bool: shim,
|
|
1190
|
-
func: shim,
|
|
1191
|
-
number: shim,
|
|
1192
|
-
object: shim,
|
|
1193
|
-
string: shim,
|
|
1194
|
-
symbol: shim,
|
|
1195
|
-
any: shim,
|
|
1196
|
-
arrayOf: getShim,
|
|
1197
|
-
element: shim,
|
|
1198
|
-
elementType: shim,
|
|
1199
|
-
instanceOf: getShim,
|
|
1200
|
-
node: shim,
|
|
1201
|
-
objectOf: getShim,
|
|
1202
|
-
oneOf: getShim,
|
|
1203
|
-
oneOfType: getShim,
|
|
1204
|
-
shape: getShim,
|
|
1205
|
-
exact: getShim,
|
|
1206
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1207
|
-
resetWarningCache: emptyFunction
|
|
1208
|
-
};
|
|
1209
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
1210
|
-
return ReactPropTypes;
|
|
1211
|
-
};
|
|
1212
|
-
|
|
1213
|
-
/**
|
|
1214
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1215
|
-
*
|
|
1216
|
-
* This source code is licensed under the MIT license found in the
|
|
1217
|
-
* LICENSE file in the root directory of this source tree.
|
|
1218
|
-
*/
|
|
1219
|
-
{
|
|
1220
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1221
|
-
// http://fb.me/prop-types-in-prod
|
|
1222
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
1223
|
-
}
|
|
1224
|
-
var propTypesExports = propTypes.exports;
|
|
1225
|
-
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
1226
|
-
|
|
1227
|
-
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
1228
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1229
|
-
var Connect = withT(function (_ref) {
|
|
1230
|
-
var t = _ref.t,
|
|
1231
|
-
Icon = _ref.Icon,
|
|
1232
|
-
_ref$title = _ref.title,
|
|
1233
|
-
title = _ref$title === void 0 ? "" : _ref$title,
|
|
1234
|
-
_ref$description = _ref.description,
|
|
1235
|
-
description = _ref$description === void 0 ? "" : _ref$description,
|
|
1236
|
-
_ref$integration = _ref.integration,
|
|
1237
|
-
integration = _ref$integration === void 0 ? "" : _ref$integration,
|
|
1238
|
-
_ref$integrationName = _ref.integrationName,
|
|
1239
|
-
integrationName = _ref$integrationName === void 0 ? "" : _ref$integrationName,
|
|
1240
|
-
_ref$helpDocUrl = _ref.helpDocUrl,
|
|
1241
|
-
helpDocUrl = _ref$helpDocUrl === void 0 ? "" : _ref$helpDocUrl,
|
|
1242
|
-
_ref$buttonProps = _ref.buttonProps,
|
|
1243
|
-
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
1244
|
-
_ref$onConnect = _ref.onConnect,
|
|
1245
|
-
onConnect = _ref$onConnect === void 0 ? noop : _ref$onConnect,
|
|
1246
|
-
children = _ref.children,
|
|
1247
|
-
secondaryButtonProps = _ref.secondaryButtonProps;
|
|
1248
|
-
return /*#__PURE__*/jsxs("div", {
|
|
1249
|
-
className: "mx-auto w-full max-w-3xl",
|
|
1250
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
1251
|
-
className: "mb-6 flex flex-col gap-y-2",
|
|
1252
|
-
children: [/*#__PURE__*/jsx(Icon, {
|
|
1253
|
-
size: 48
|
|
1254
|
-
}), /*#__PURE__*/jsxs("div", {
|
|
1255
|
-
className: "flex flex-col gap-y-1",
|
|
1256
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
1257
|
-
style: "h2",
|
|
1258
|
-
children: title
|
|
1259
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
1260
|
-
style: "body2",
|
|
1261
|
-
children: description
|
|
1262
|
-
})]
|
|
1263
|
-
})]
|
|
1264
|
-
}), helpDocUrl && /*#__PURE__*/jsx("div", {
|
|
1265
|
-
className: "mb-4",
|
|
1266
|
-
children: /*#__PURE__*/jsx(Trans, {
|
|
1267
|
-
i18nKey: "neetoIntegrations.common.helpDocUrl",
|
|
1268
|
-
components: {
|
|
1269
|
-
helpLink: /*#__PURE__*/jsx(Button, {
|
|
1270
|
-
className: "text-xs",
|
|
1271
|
-
href: helpDocUrl,
|
|
1272
|
-
size: "small",
|
|
1273
|
-
style: "link",
|
|
1274
|
-
target: "_blank"
|
|
1275
|
-
})
|
|
1276
|
-
},
|
|
1277
|
-
values: {
|
|
1278
|
-
integration: integrationName || humanize(integration)
|
|
1279
|
-
}
|
|
1280
|
-
})
|
|
1281
|
-
}), children, /*#__PURE__*/jsxs("div", {
|
|
1282
|
-
className: "flex w-full items-center gap-x-3",
|
|
1283
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread$1({
|
|
1284
|
-
label: t("neetoIntegrations.common.connect"),
|
|
1285
|
-
onClick: onConnect
|
|
1286
|
-
}, buttonProps)), secondaryButtonProps && /*#__PURE__*/jsx(Button, _objectSpread$1({
|
|
1287
|
-
style: "secondary"
|
|
1288
|
-
}, secondaryButtonProps))]
|
|
1289
|
-
})]
|
|
1290
|
-
});
|
|
1291
|
-
});
|
|
1292
|
-
Connect.prototypes = {
|
|
1293
|
-
/**
|
|
1294
|
-
* To specify the Icon to be shown
|
|
1295
|
-
*/
|
|
1296
|
-
Icon: PropTypes.node,
|
|
1297
|
-
/**
|
|
1298
|
-
* To specify the title of the connect component
|
|
1299
|
-
*/
|
|
1300
|
-
title: PropTypes.string,
|
|
1301
|
-
/**
|
|
1302
|
-
* To specify the description for connect component
|
|
1303
|
-
*/
|
|
1304
|
-
description: PropTypes.string,
|
|
1305
|
-
/**
|
|
1306
|
-
* To specify the props for the connect button
|
|
1307
|
-
*/
|
|
1308
|
-
buttonProps: PropTypes.object,
|
|
1309
|
-
/**
|
|
1310
|
-
* Handler function that is triggered when the connect button is clicked.
|
|
1311
|
-
*/
|
|
1312
|
-
onConnect: PropTypes.func
|
|
1313
|
-
};
|
|
1314
|
-
|
|
1315
|
-
var isYouTubeLink = function isYouTubeLink(videoUrl) {
|
|
1316
|
-
var youtubeRegex = /^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\//;
|
|
1317
|
-
return youtubeRegex.test(videoUrl);
|
|
1318
|
-
};
|
|
1319
|
-
var renderText = function renderText(text, fallbackTranslation) {
|
|
1320
|
-
return isEmpty(text) ? fallbackTranslation : text;
|
|
1321
|
-
};
|
|
1322
|
-
|
|
1323
|
-
var Demo = function Demo(_ref) {
|
|
1324
|
-
var _ref$title = _ref.title,
|
|
1325
|
-
title = _ref$title === void 0 ? "" : _ref$title,
|
|
1326
|
-
_ref$subtitle = _ref.subtitle,
|
|
1327
|
-
subtitle = _ref$subtitle === void 0 ? "" : _ref$subtitle,
|
|
1328
|
-
_ref$iframeTitle = _ref.iframeTitle,
|
|
1329
|
-
iframeTitle = _ref$iframeTitle === void 0 ? "" : _ref$iframeTitle,
|
|
1330
|
-
_ref$onClose = _ref.onClose,
|
|
1331
|
-
onClose = _ref$onClose === void 0 ? noop : _ref$onClose,
|
|
1332
|
-
_ref$videoUrl = _ref.videoUrl,
|
|
1333
|
-
videoUrl = _ref$videoUrl === void 0 ? "" : _ref$videoUrl,
|
|
1334
|
-
children = _ref.children;
|
|
1335
|
-
var _useTranslation = useTranslation(),
|
|
1336
|
-
t = _useTranslation.t;
|
|
1337
|
-
var renderVideo = function renderVideo(videoUrl) {
|
|
1338
|
-
return isYouTubeLink(videoUrl) ? /*#__PURE__*/jsx("iframe", {
|
|
1339
|
-
allowFullScreen: true,
|
|
1340
|
-
className: "aspect-video border-none",
|
|
1341
|
-
frameBorder: "0",
|
|
1342
|
-
id: "ytplayer",
|
|
1343
|
-
src: videoUrl,
|
|
1344
|
-
title: renderText(iframeTitle, t("neetoIntegrations.demo.iFrameTitle")),
|
|
1345
|
-
type: "text/html"
|
|
1346
|
-
}) : /*#__PURE__*/jsx("video", {
|
|
1347
|
-
autoPlay: true,
|
|
1348
|
-
controls: true,
|
|
1349
|
-
muted: true,
|
|
1350
|
-
className: "neeto-ui-rounded-xl aspect-video w-full max-w-3xl cursor-pointer",
|
|
1351
|
-
id: "walkthrough-video",
|
|
1352
|
-
children: /*#__PURE__*/jsx("source", {
|
|
1353
|
-
src: videoUrl
|
|
1354
|
-
})
|
|
1355
|
-
});
|
|
1356
|
-
};
|
|
1357
|
-
return /*#__PURE__*/jsxs("div", {
|
|
1358
|
-
className: "mx-auto w-full max-w-3xl",
|
|
1359
|
-
children: [/*#__PURE__*/jsxs("div", {
|
|
1360
|
-
className: "mb-6 flex flex-col gap-y-1",
|
|
1361
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
1362
|
-
style: "h2",
|
|
1363
|
-
children: renderText(title, t("neetoIntegrations.demo.title"))
|
|
1364
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
1365
|
-
style: "body2",
|
|
1366
|
-
children: renderText(subtitle, t("neetoIntegrations.demo.subtitle"))
|
|
1367
|
-
})]
|
|
1368
|
-
}), children, videoUrl && /*#__PURE__*/jsx("div", {
|
|
1369
|
-
className: "mb-8",
|
|
1370
|
-
children: renderVideo(videoUrl)
|
|
1371
|
-
}), /*#__PURE__*/jsx(Button, {
|
|
1372
|
-
label: t("neetoIntegrations.common.finish"),
|
|
1373
|
-
onClick: onClose
|
|
1374
|
-
})]
|
|
1375
|
-
});
|
|
1376
|
-
};
|
|
1377
|
-
Demo.prototypes = {
|
|
1378
|
-
/**
|
|
1379
|
-
* To specify whether the integration modal should be opened or closed.
|
|
1380
|
-
*/
|
|
1381
|
-
onClose: PropTypes.func,
|
|
1382
|
-
/**
|
|
1383
|
-
* To specify the walkthrough video link
|
|
1384
|
-
*/
|
|
1385
|
-
videoUrl: PropTypes.string,
|
|
1386
|
-
/**
|
|
1387
|
-
* To specify the title of the demo component
|
|
1388
|
-
*/
|
|
1389
|
-
title: PropTypes.string,
|
|
1390
|
-
/**
|
|
1391
|
-
* To specify the subtitle of the demo component
|
|
1392
|
-
*/
|
|
1393
|
-
subtitle: PropTypes.string,
|
|
1394
|
-
/**
|
|
1395
|
-
* To specify the title of the video in the iframe
|
|
1396
|
-
*/
|
|
1397
|
-
iframeTitle: PropTypes.string
|
|
1398
|
-
};
|
|
1399
|
-
|
|
1400
|
-
var _path, _defs;
|
|
1401
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1402
|
-
const SvgSuccess = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
1403
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1404
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink",
|
|
1405
|
-
width: 72,
|
|
1406
|
-
height: 72,
|
|
1407
|
-
fill: "none"
|
|
1408
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
1409
|
-
fill: "url(#success_svg__a)",
|
|
1410
|
-
d: "M0 0h72v72H0z"
|
|
1411
|
-
})), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("pattern", {
|
|
1412
|
-
id: "success_svg__a",
|
|
1413
|
-
width: 1,
|
|
1414
|
-
height: 1,
|
|
1415
|
-
patternContentUnits: "objectBoundingBox"
|
|
1416
|
-
}, /*#__PURE__*/React.createElement("use", {
|
|
1417
|
-
xlinkHref: "#success_svg__b",
|
|
1418
|
-
transform: "scale(.0029)"
|
|
1419
|
-
})), /*#__PURE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euciDQI+EYiMwJYSHtCZK5Et47kLQiiyEFW9M5EGgQAQiESIwGl4QO8HFS4IgchCVPWOQxoEAkYgEh6s0/CA3icB9mQhqnpnIQ0CASYQCYE1ER7Q+yhAIgtR1TsHaRAICYHQhwhMhwf0fvMpXABR1TsCaRAIIYHQe7CmwwN6H3royUJUdfhIg0DICYReYN0ID+h96qLIQlR12EiDQIQIhDpE4HZ4QO9nQ+ECiKoOFmkQiCiBUHuwbocH9D534MlCVHWYSINADAiEWmAtoilezzZYqMiqqf5EOb1mt9PtSYvmignUEYPzCU0EARDIIhDaEIHX4YEsZp2r3YULhMWiWkH/ssvowWQz/YBFlR9ZwAICIBBXAqH1YL0OD+gniPJkO18J3kBp9lTfTfSi+yrepx+Li6hNPxZpEACBeBIIrcB6MXogzynR+Y4q6k0zkpIv/0/E5X8eVtgFArElEMoQgU/hAbz4L7ZfEzQcBEojEEoP1sPwAES1tPMKuUAABJhAKAXW5fAARBVfDRAAASMEQhcicCk8AFE1cjqhEBAAgWwCofNgDYYHIKrZZwLWQQAEjBMIncA6DA9AVI2fQigQBEAgF4FQhQjkMurTXkEbuDGVuRrUzXaIajdQsAkEQMB9AqHyYNvK6Tz+RShEXCGq7p87qAEEQKAHAqES2B7CAxDVHjobu0EABLwlEJoQQY7wAETV2/MFtYEACBRBIDQebFZ4AKJaRAfjUBAAAf8IhEZgyaKUSNO4suG0RE0F6B8y1AwCIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAACIAAC7hD4/8l256QQPdLRAAAAAElFTkSuQmCC",
|
|
1421
|
-
id: "success_svg__b",
|
|
1422
|
-
width: 344,
|
|
1423
|
-
height: 344
|
|
1424
|
-
}))));
|
|
1425
|
-
|
|
1426
|
-
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; }
|
|
1427
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1428
|
-
var Finish = withT(function (_ref) {
|
|
1429
|
-
var t = _ref.t,
|
|
1430
|
-
_ref$onClick = _ref.onClick,
|
|
1431
|
-
onClick = _ref$onClick === void 0 ? noop : _ref$onClick,
|
|
1432
|
-
_ref$title = _ref.title,
|
|
1433
|
-
title = _ref$title === void 0 ? "" : _ref$title,
|
|
1434
|
-
_ref$buttonProps = _ref.buttonProps,
|
|
1435
|
-
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
|
1436
|
-
_ref$secondaryButtonP = _ref.secondaryButtonProps,
|
|
1437
|
-
secondaryButtonProps = _ref$secondaryButtonP === void 0 ? {} : _ref$secondaryButtonP,
|
|
1438
|
-
children = _ref.children;
|
|
1439
|
-
return /*#__PURE__*/jsxs("div", {
|
|
1440
|
-
className: "mx-auto w-full max-w-3xl",
|
|
1441
|
-
children: [/*#__PURE__*/jsx(SvgSuccess, {}), /*#__PURE__*/jsx(Typography, {
|
|
1442
|
-
className: "mb-6 mt-4",
|
|
1443
|
-
style: "h2",
|
|
1444
|
-
weight: "semibold",
|
|
1445
|
-
children: title
|
|
1446
|
-
}), children, /*#__PURE__*/jsxs("div", {
|
|
1447
|
-
className: "flex w-full items-center gap-x-2",
|
|
1448
|
-
children: [/*#__PURE__*/jsx(Button, _objectSpread({
|
|
1449
|
-
onClick: onClick,
|
|
1450
|
-
label: t("neetoIntegrations.common.continue")
|
|
1451
|
-
}, buttonProps)), isNotEmpty(secondaryButtonProps) && /*#__PURE__*/jsx(Button, _objectSpread({
|
|
1452
|
-
style: "secondary"
|
|
1453
|
-
}, secondaryButtonProps))]
|
|
1454
|
-
})]
|
|
1455
|
-
});
|
|
1456
|
-
});
|
|
1457
|
-
Finish.prototypes = {
|
|
1458
|
-
/**
|
|
1459
|
-
* To specify whether the integration modal should be opened or closed.
|
|
1460
|
-
*/
|
|
1461
|
-
onClick: PropTypes.func,
|
|
1462
|
-
/**
|
|
1463
|
-
* To show the title of the Finish component
|
|
1464
|
-
*/
|
|
1465
|
-
title: PropTypes.string,
|
|
1466
|
-
/**
|
|
1467
|
-
* To specify props for primary button
|
|
1468
|
-
*/
|
|
1469
|
-
buttonProps: PropTypes.object,
|
|
1470
|
-
/**
|
|
1471
|
-
* To specify props for secondary button
|
|
1472
|
-
*/
|
|
1473
|
-
secondaryButtonProps: PropTypes.object
|
|
1474
|
-
};
|
|
1475
|
-
|
|
1476
|
-
var e = [],
|
|
1477
|
-
t = [];
|
|
1478
|
-
function n(n, r) {
|
|
1479
|
-
if (n && "undefined" != typeof document) {
|
|
1480
|
-
var a,
|
|
1481
|
-
s = !0 === r.prepend ? "prepend" : "append",
|
|
1482
|
-
d = !0 === r.singleTag,
|
|
1483
|
-
i = "string" == typeof r.container ? document.querySelector(r.container) : document.getElementsByTagName("head")[0];
|
|
1484
|
-
if (d) {
|
|
1485
|
-
var u = e.indexOf(i);
|
|
1486
|
-
-1 === u && (u = e.push(i) - 1, t[u] = {}), a = t[u] && t[u][s] ? t[u][s] : t[u][s] = c();
|
|
1487
|
-
} else a = c();
|
|
1488
|
-
65279 === n.charCodeAt(0) && (n = n.substring(1)), a.styleSheet ? a.styleSheet.cssText += n : a.appendChild(document.createTextNode(n));
|
|
1489
|
-
}
|
|
1490
|
-
function c() {
|
|
1491
|
-
var e = document.createElement("style");
|
|
1492
|
-
if (e.setAttribute("type", "text/css"), r.attributes) for (var t = Object.keys(r.attributes), n = 0; n < t.length; n++) e.setAttribute(t[n], r.attributes[t[n]]);
|
|
1493
|
-
var a = "prepend" === s ? "afterbegin" : "beforeend";
|
|
1494
|
-
return i.insertAdjacentElement(a, e), e;
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
|
|
1498
|
-
var css = ".intrinsic-container{height:0;overflow:hidden;position:relative}.intrinsic-container-16x9{padding-bottom:56.25%}.intrinsic-container-4x3{padding-bottom:75%}.intrinsic-container iframe{height:100%;left:0;position:absolute;top:0;width:100%}";
|
|
1499
|
-
n(css,{});
|
|
1500
|
-
|
|
1501
|
-
export { Connect, index as Daily, Form$1 as DailyForm, Demo, Finish, GoogleCalendar, Manage$1 as Manage, Modal, Twilio, Zoom };
|
|
1
|
+
export { default as Manage } from './Manage.js';
|
|
2
|
+
export { default as Daily } from './Daily.js';
|
|
3
|
+
export { F as DailyForm } from './Form-5be03668.js';
|
|
4
|
+
export { default as GoogleCalendar } from './GoogleCalendar.js';
|
|
5
|
+
export { default as Twilio } from './Twilio.js';
|
|
6
|
+
export { default as Zoom } from './Zoom.js';
|
|
7
|
+
export { default as Modal } from './Modal.js';
|
|
8
|
+
export { default as Connect } from './Connect.js';
|
|
9
|
+
export { default as Demo } from './Demo.js';
|
|
10
|
+
export { default as Finish } from './Finish.js';
|
|
11
|
+
import './defineProperty-e90a259c.js';
|
|
12
|
+
import 'classnames';
|
|
13
|
+
import '@bigbinary/neeto-cist';
|
|
14
|
+
import '@bigbinary/neeto-commons-frontend/react-utils';
|
|
15
|
+
import '@bigbinary/neeto-icons/Check';
|
|
16
|
+
import '@bigbinary/neeto-molecules/IntegrationDisconnectAlert';
|
|
17
|
+
import '@bigbinary/neetoui/Button';
|
|
18
|
+
import '@bigbinary/neetoui/Tooltip';
|
|
19
|
+
import '@bigbinary/neetoui/Typography';
|
|
20
|
+
import 'react-i18next';
|
|
21
|
+
import 'react/jsx-runtime';
|
|
22
|
+
import 'i18next';
|
|
23
|
+
import './slicedToArray-b4278ecd.js';
|
|
24
|
+
import 'react';
|
|
25
|
+
import '@bigbinary/neeto-commons-frontend/utils';
|
|
26
|
+
import '@bigbinary/neeto-icons/misc/Daily';
|
|
27
|
+
import '@bigbinary/neeto-molecules/CopyToClipboardButton';
|
|
28
|
+
import '@bigbinary/neeto-molecules/PageLoader';
|
|
29
|
+
import '@bigbinary/neeto-molecules/Container';
|
|
30
|
+
import '@bigbinary/neeto-molecules/Header';
|
|
31
|
+
import '@bigbinary/neeto-molecules/HelpPopover';
|
|
32
|
+
import '@bigbinary/neeto-molecules/IntegrationWalkthroughModal';
|
|
33
|
+
import '@bigbinary/neetoui/formik/Input';
|
|
34
|
+
import '@bigbinary/neetoui/formik/Form';
|
|
35
|
+
import '@bigbinary/neetoui/formik/ActionBlock';
|
|
36
|
+
import 'react-router-dom';
|
|
37
|
+
import '@tanstack/react-query';
|
|
38
|
+
import '@bigbinary/neeto-commons-frontend/constants';
|
|
39
|
+
import 'axios';
|
|
40
|
+
import './query-62fcdf0a.js';
|
|
41
|
+
import 'yup';
|
|
42
|
+
import '@bigbinary/neeto-icons/misc/GoogleCalendar';
|
|
43
|
+
import '@bigbinary/neeto-icons/misc/Google';
|
|
44
|
+
import '@bigbinary/neetoui/Callout';
|
|
45
|
+
import 'ramda';
|
|
46
|
+
import '@bigbinary/neetoui/formik/Select';
|
|
47
|
+
import '@bigbinary/neeto-icons/misc/Zoom';
|
|
48
|
+
import '@bigbinary/neetoui/Modal';
|
|
49
|
+
import './index-4bda54e6.js';
|
|
1502
50
|
//# sourceMappingURL=index.js.map
|