@bigbinary/neeto-integrations-frontend 3.1.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.
Files changed (81) hide show
  1. package/dist/Connect.js +99 -0
  2. package/dist/Connect.js.map +1 -0
  3. package/dist/Daily.js +30 -743
  4. package/dist/Daily.js.map +1 -1
  5. package/dist/DailyForm.js +25 -0
  6. package/dist/DailyForm.js.map +1 -0
  7. package/dist/Demo.js +95 -0
  8. package/dist/Demo.js.map +1 -0
  9. package/dist/Finish.js +87 -0
  10. package/dist/Finish.js.map +1 -0
  11. package/dist/Form-5be03668.js +171 -0
  12. package/dist/Form-5be03668.js.map +1 -0
  13. package/dist/Form-be2e5595.js +209 -0
  14. package/dist/Form-be2e5595.js.map +1 -0
  15. package/dist/GoogleCalendar.js +127 -0
  16. package/dist/GoogleCalendar.js.map +1 -0
  17. package/dist/Manage.js +162 -0
  18. package/dist/Manage.js.map +1 -0
  19. package/dist/Modal.js +84 -0
  20. package/dist/Modal.js.map +1 -0
  21. package/dist/Twilio.js +5 -108
  22. package/dist/Twilio.js.map +1 -1
  23. package/dist/ZapierForm.js +7 -101
  24. package/dist/ZapierForm.js.map +1 -1
  25. package/dist/Zoom.js +13 -846
  26. package/dist/Zoom.js.map +1 -1
  27. package/dist/cjs/Connect.js +106 -0
  28. package/dist/cjs/Connect.js.map +1 -0
  29. package/dist/cjs/Daily.js +150 -0
  30. package/dist/cjs/Daily.js.map +1 -0
  31. package/dist/cjs/DailyForm.js +31 -0
  32. package/dist/cjs/DailyForm.js.map +1 -0
  33. package/dist/cjs/Demo.js +102 -0
  34. package/dist/cjs/Demo.js.map +1 -0
  35. package/dist/cjs/Finish.js +113 -0
  36. package/dist/cjs/Finish.js.map +1 -0
  37. package/dist/cjs/GoogleCalendar.js +137 -0
  38. package/dist/cjs/GoogleCalendar.js.map +1 -0
  39. package/dist/cjs/Manage.js +173 -0
  40. package/dist/cjs/Manage.js.map +1 -0
  41. package/dist/cjs/Modal.js +92 -0
  42. package/dist/cjs/Modal.js.map +1 -0
  43. package/dist/{Twilio.cjs.js → cjs/Twilio.js} +22 -125
  44. package/dist/cjs/Twilio.js.map +1 -0
  45. package/dist/{ZapierForm.cjs.js → cjs/ZapierForm.js} +19 -113
  46. package/dist/cjs/ZapierForm.js.map +1 -0
  47. package/dist/cjs/Zoom.js +127 -0
  48. package/dist/cjs/Zoom.js.map +1 -0
  49. package/dist/cjs/index.js +67 -0
  50. package/dist/cjs/index.js.map +1 -0
  51. package/dist/defineProperty-e90a259c.js +43 -0
  52. package/dist/defineProperty-e90a259c.js.map +1 -0
  53. package/dist/defineProperty-f3094d6c.js +45 -0
  54. package/dist/defineProperty-f3094d6c.js.map +1 -0
  55. package/dist/index-2f3a953b.js +86 -0
  56. package/dist/index-2f3a953b.js.map +1 -0
  57. package/dist/index-4bda54e6.js +84 -0
  58. package/dist/index-4bda54e6.js.map +1 -0
  59. package/dist/index.js +49 -1453
  60. package/dist/index.js.map +1 -1
  61. package/dist/query-4f9552ab.js +21 -0
  62. package/dist/query-4f9552ab.js.map +1 -0
  63. package/dist/query-62fcdf0a.js +15 -0
  64. package/dist/query-62fcdf0a.js.map +1 -0
  65. package/dist/slicedToArray-b4278ecd.js +57 -0
  66. package/dist/slicedToArray-b4278ecd.js.map +1 -0
  67. package/dist/slicedToArray-f320d9e7.js +61 -0
  68. package/dist/slicedToArray-f320d9e7.js.map +1 -0
  69. package/package.json +9 -9
  70. package/dist/Daily.cjs.js +0 -896
  71. package/dist/Daily.cjs.js.map +0 -1
  72. package/dist/GoogleCalender.cjs.js +0 -1065
  73. package/dist/GoogleCalender.cjs.js.map +0 -1
  74. package/dist/GoogleCalender.js +0 -1019
  75. package/dist/GoogleCalender.js.map +0 -1
  76. package/dist/Twilio.cjs.js.map +0 -1
  77. package/dist/ZapierForm.cjs.js.map +0 -1
  78. package/dist/Zoom.cjs.js +0 -995
  79. package/dist/Zoom.cjs.js.map +0 -1
  80. package/dist/index.cjs.js +0 -1524
  81. package/dist/index.cjs.js.map +0 -1
@@ -6,17 +6,19 @@ var Spinner = require('@bigbinary/neetoui/Spinner');
6
6
  var Typography = require('@bigbinary/neetoui/Typography');
7
7
  var ramda = require('ramda');
8
8
  var reactI18next = require('react-i18next');
9
- var react = require('react');
9
+ var slicedToArray = require('../slicedToArray-f320d9e7.js');
10
+ var React = require('react');
10
11
  var constants = require('@bigbinary/neeto-commons-frontend/constants');
11
12
  var Alert = require('@bigbinary/neetoui/Alert');
12
13
  var Table = require('@bigbinary/neetoui/Table');
14
+ var defineProperty = require('../defineProperty-f3094d6c.js');
13
15
  var i18next = require('i18next');
14
16
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
15
17
  var MoreDropdown = require('@bigbinary/neeto-molecules/MoreDropdown');
16
- var Yup = require('yup');
18
+ var yup = require('yup');
17
19
  var jsxRuntime = require('react/jsx-runtime');
18
20
  var ActionBlock = require('@bigbinary/neetoui/formik/ActionBlock');
19
- var Form = require('@bigbinary/neetoui/formik/Form');
21
+ var FormikForm = require('@bigbinary/neetoui/formik/Form');
20
22
  var Input = require('@bigbinary/neetoui/formik/Input');
21
23
  var reactRouterDom = require('react-router-dom');
22
24
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
@@ -48,110 +50,14 @@ var Typography__default = /*#__PURE__*/_interopDefaultLegacy(Typography);
48
50
  var Alert__default = /*#__PURE__*/_interopDefaultLegacy(Alert);
49
51
  var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
50
52
  var MoreDropdown__default = /*#__PURE__*/_interopDefaultLegacy(MoreDropdown);
51
- var Yup__namespace = /*#__PURE__*/_interopNamespace(Yup);
53
+ var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
52
54
  var ActionBlock__default = /*#__PURE__*/_interopDefaultLegacy(ActionBlock);
53
- var Form__default = /*#__PURE__*/_interopDefaultLegacy(Form);
55
+ var FormikForm__default = /*#__PURE__*/_interopDefaultLegacy(FormikForm);
54
56
  var Input__default = /*#__PURE__*/_interopDefaultLegacy(Input);
55
57
  var CopyToClipboardButton__default = /*#__PURE__*/_interopDefaultLegacy(CopyToClipboardButton);
56
58
 
57
- function _arrayWithHoles(arr) {
58
- if (Array.isArray(arr)) return arr;
59
- }
60
-
61
- function _iterableToArrayLimit(r, l) {
62
- var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
63
- if (null != t) {
64
- var e,
65
- n,
66
- i,
67
- u,
68
- a = [],
69
- f = !0,
70
- o = !1;
71
- try {
72
- if (i = (t = t.call(r)).next, 0 === l) {
73
- if (Object(t) !== t) return;
74
- f = !1;
75
- } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
76
- } catch (r) {
77
- o = !0, n = r;
78
- } finally {
79
- try {
80
- if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
81
- } finally {
82
- if (o) throw n;
83
- }
84
- }
85
- return a;
86
- }
87
- }
88
-
89
- function _arrayLikeToArray(arr, len) {
90
- if (len == null || len > arr.length) len = arr.length;
91
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
92
- return arr2;
93
- }
94
-
95
- function _unsupportedIterableToArray(o, minLen) {
96
- if (!o) return;
97
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
98
- var n = Object.prototype.toString.call(o).slice(8, -1);
99
- if (n === "Object" && o.constructor) n = o.constructor.name;
100
- if (n === "Map" || n === "Set") return Array.from(o);
101
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
102
- }
103
-
104
- function _nonIterableRest() {
105
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
106
- }
107
-
108
- function _slicedToArray(arr, i) {
109
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
110
- }
111
-
112
- function _typeof(o) {
113
- "@babel/helpers - typeof";
114
-
115
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
116
- return typeof o;
117
- } : function (o) {
118
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
119
- }, _typeof(o);
120
- }
121
-
122
- function _toPrimitive(input, hint) {
123
- if (_typeof(input) !== "object" || input === null) return input;
124
- var prim = input[Symbol.toPrimitive];
125
- if (prim !== undefined) {
126
- var res = prim.call(input, hint || "default");
127
- if (_typeof(res) !== "object") return res;
128
- throw new TypeError("@@toPrimitive must return a primitive value.");
129
- }
130
- return (hint === "string" ? String : Number)(input);
131
- }
132
-
133
- function _toPropertyKey(arg) {
134
- var key = _toPrimitive(arg, "string");
135
- return _typeof(key) === "symbol" ? key : String(key);
136
- }
137
-
138
- function _defineProperty(obj, key, value) {
139
- key = _toPropertyKey(key);
140
- if (key in obj) {
141
- Object.defineProperty(obj, key, {
142
- value: value,
143
- enumerable: true,
144
- configurable: true,
145
- writable: true
146
- });
147
- } else {
148
- obj[key] = value;
149
- }
150
- return obj;
151
- }
152
-
153
- var GENERATE_API_KEY_VALIDATION = Yup__namespace.object({
154
- label: Yup__namespace.string().trim(i18next.t("neetoIntegrations.zapier.label.noBlankSpaces")).required(i18next.t("neetoIntegrations.zapier.label.required")).strict()
59
+ var GENERATE_API_KEY_VALIDATION = yup__namespace.object({
60
+ label: yup__namespace.string().trim(i18next.t("neetoIntegrations.zapier.label.noBlankSpaces")).required(i18next.t("neetoIntegrations.zapier.label.required")).strict()
155
61
  });
156
62
  var GENERATE_API_KEY_FORMIK_PROPS = {
157
63
  initialValues: {
@@ -165,7 +71,7 @@ var MENU_ITEMS = {
165
71
  };
166
72
 
167
73
  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; }
168
- 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; }
74
+ 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._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; }
169
75
  var getMenuItems = function getMenuItems(_ref) {
170
76
  var apiKey = _ref.apiKey,
171
77
  setApiKeyToDelete = _ref.setApiKeyToDelete;
@@ -230,12 +136,12 @@ var ApiKeysList = function ApiKeysList(_ref) {
230
136
  isDeleting = _ref$isDeleting === void 0 ? false : _ref$isDeleting,
231
137
  _ref$setNewlyCreatedA = _ref.setNewlyCreatedApiKey,
232
138
  setNewlyCreatedApiKey = _ref$setNewlyCreatedA === void 0 ? neetoCist.noop : _ref$setNewlyCreatedA;
233
- var _useState = react.useState(null),
234
- _useState2 = _slicedToArray(_useState, 2),
139
+ var _useState = React.useState(null),
140
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
235
141
  apiKeyToDelete = _useState2[0],
236
142
  setApiKeyToDelete = _useState2[1];
237
- var _useState3 = react.useState(constants.DEFAULT_PAGE_INDEX),
238
- _useState4 = _slicedToArray(_useState3, 2),
143
+ var _useState3 = React.useState(constants.DEFAULT_PAGE_INDEX),
144
+ _useState4 = slicedToArray._slicedToArray(_useState3, 2),
239
145
  currentPageNumber = _useState4[0],
240
146
  setCurrentPageNumber = _useState4[1];
241
147
  var _useTranslation = reactI18next.useTranslation(),
@@ -289,19 +195,19 @@ var ApiKeysList = function ApiKeysList(_ref) {
289
195
  };
290
196
 
291
197
  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; }
292
- 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; }
198
+ 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._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; }
293
199
  var GenerateKey = function GenerateKey(_ref) {
294
200
  var handleSubmit = _ref.handleSubmit,
295
201
  isLoading = _ref.isLoading;
296
202
  var _useTranslation = reactI18next.useTranslation(),
297
203
  t = _useTranslation.t;
298
- var inputRef = react.useRef(null);
204
+ var inputRef = React.useRef(null);
299
205
  var history = reactRouterDom.useHistory();
300
- react.useEffect(function () {
206
+ React.useEffect(function () {
301
207
  if (!inputRef.current) return;
302
208
  inputRef.current.focus();
303
209
  }, []);
304
- return /*#__PURE__*/jsxRuntime.jsx(Form__default["default"], {
210
+ return /*#__PURE__*/jsxRuntime.jsx(FormikForm__default["default"], {
305
211
  formikProps: _objectSpread(_objectSpread({}, GENERATE_API_KEY_FORMIK_PROPS), {}, {
306
212
  onSubmit: handleSubmit
307
213
  }),
@@ -411,4 +317,4 @@ var ZapierForm = function ZapierForm(_ref) {
411
317
  };
412
318
 
413
319
  module.exports = ZapierForm;
414
- //# sourceMappingURL=ZapierForm.cjs.js.map
320
+ //# sourceMappingURL=ZapierForm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ZapierForm.js","sources":["../../app/javascript/src/components/Integrations/ZapierForm/constants.js","../../app/javascript/src/components/Integrations/ZapierForm/utils.jsx","../../app/javascript/src/components/Integrations/ZapierForm/ApiKeysList.jsx","../../app/javascript/src/components/Integrations/ZapierForm/GenerateKey.jsx","../../app/javascript/src/components/Integrations/ZapierForm/NewApiKeyInfo.jsx","../../app/javascript/src/components/Integrations/ZapierForm/index.jsx"],"sourcesContent":["import { t } from \"i18next\";\nimport * as Yup from \"yup\";\n\nconst GENERATE_API_KEY_VALIDATION = Yup.object({\n label: Yup.string()\n .trim(t(\"neetoIntegrations.zapier.label.noBlankSpaces\"))\n .required(t(\"neetoIntegrations.zapier.label.required\"))\n .strict(),\n});\n\nexport const GENERATE_API_KEY_FORMIK_PROPS = {\n initialValues: { label: \"\" },\n validationSchema: GENERATE_API_KEY_VALIDATION,\n validateOnBlur: false,\n};\n\nexport const MENU_ITEMS = { DELETE: \"delete\" };\n","import { t } from \"i18next\";\nimport { timeFormat } from \"neetocommons/utils\";\nimport MoreDropdown from \"neetomolecules/MoreDropdown\";\nimport { Typography } from \"neetoui\";\n\nimport { MENU_ITEMS } from \"./constants\";\n\nconst getMenuItems = ({ apiKey, setApiKeyToDelete }) => [\n {\n key: MENU_ITEMS.DELETE,\n \"data-cy\": \"delete-apikey-button\",\n label: t(\"neetoIntegrations.common.delete\"),\n onClick: () => setApiKeyToDelete(apiKey),\n },\n];\n\nexport const getApiKeysTableColumnData = () => [\n {\n title: t(\"neetoIntegrations.zapier.tableColumns.label\"),\n dataIndex: \"options\",\n key: \"options\",\n width: 272,\n render: (options, { actions }) => (\n <div className=\"flex items-center justify-between gap-x-3\">\n <Typography className=\"w-4/5\" style=\"body2\">\n {options?.label}\n </Typography>\n {actions}\n </div>\n ),\n },\n {\n title: t(\"neetoIntegrations.zapier.tableColumns.createdAt\"),\n dataIndex: \"createdAt\",\n key: \"createdAt\",\n },\n];\n\nexport const getApiKeysTableRowData = ({ apiKeys, setApiKeyToDelete }) =>\n apiKeys.map(apiKey => ({\n ...apiKey,\n createdAt: timeFormat.fromNow(apiKey.createdAt),\n actions: (\n <MoreDropdown\n dropdownProps={{ strategy: \"fixed\" }}\n menuItems={getMenuItems({ apiKey, setApiKeyToDelete })}\n />\n ),\n }));\n","import { useState } from \"react\";\n\nimport { noop } from \"neetocist\";\nimport { DEFAULT_PAGE_SIZE, DEFAULT_PAGE_INDEX } from \"neetocommons/constants\";\nimport { Alert, Table, Typography } from \"neetoui\";\nimport { isNotNil, isEmpty } from \"ramda\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport { getApiKeysTableColumnData, getApiKeysTableRowData } from \"./utils\";\n\nconst ApiKeysList = ({\n apiKeys = [],\n deleteApiKey = noop,\n isDeleting = false,\n setNewlyCreatedApiKey = noop,\n}) => {\n const [apiKeyToDelete, setApiKeyToDelete] = useState(null);\n const [currentPageNumber, setCurrentPageNumber] =\n useState(DEFAULT_PAGE_INDEX);\n\n const { t } = useTranslation();\n\n const closeAlert = () => setApiKeyToDelete(null);\n\n const handleSubmit = () => {\n deleteApiKey(apiKeyToDelete?.id, {\n onSuccess: () => {\n closeAlert();\n setNewlyCreatedApiKey(\"\");\n },\n });\n };\n\n if (isEmpty(apiKeys)) return null;\n\n return (\n <>\n <div className=\"space-y-2\">\n <Typography style=\"h3\">\n {t(\"neetoIntegrations.zapier.tableTitle\")}\n </Typography>\n <Table\n {...{ currentPageNumber }}\n fixedHeight\n allowRowClick={false}\n columnData={getApiKeysTableColumnData()}\n defaultPageSize={DEFAULT_PAGE_SIZE}\n handlePageChange={setCurrentPageNumber}\n rowData={getApiKeysTableRowData({ apiKeys, setApiKeyToDelete })}\n />\n </div>\n <Alert\n backdropClassName=\"zapier-delete-alert\"\n isOpen={isNotNil(apiKeyToDelete)}\n isSubmitting={isDeleting}\n submitButtonLabel={t(\"neetoIntegrations.common.delete\")}\n title={t(\"neetoIntegrations.zapier.deleteApiKey.title\")}\n message={\n <Trans\n i18nKey=\"neetoIntegrations.zapier.deleteApiKey.message\"\n values={{ key: apiKeyToDelete?.options?.label }}\n />\n }\n onClose={closeAlert}\n onSubmit={handleSubmit}\n />\n </>\n );\n};\n\nexport default ApiKeysList;\n","import { useEffect, useRef } from \"react\";\n\nimport { ActionBlock, Form, Input } from \"neetoui/formik\";\nimport { useTranslation } from \"react-i18next\";\nimport { useHistory } from \"react-router-dom\";\n\nimport { GENERATE_API_KEY_FORMIK_PROPS } from \"./constants\";\n\nconst GenerateKey = ({ handleSubmit, isLoading }) => {\n const { t } = useTranslation();\n const inputRef = useRef(null);\n const history = useHistory();\n\n useEffect(() => {\n if (!inputRef.current) return;\n inputRef.current.focus();\n }, []);\n\n return (\n <Form\n formikProps={{\n ...GENERATE_API_KEY_FORMIK_PROPS,\n onSubmit: handleSubmit,\n }}\n >\n <div className=\"space-y-3\">\n <Input\n name=\"label\"\n placeholder={t(\"neetoIntegrations.zapier.labelInputPlaceholder\")}\n ref={inputRef}\n />\n <ActionBlock\n cancelButtonProps={{ onClick: () => history.goBack() }}\n isSubmitting={isLoading}\n submitButtonProps={{\n label: t(\"neetoIntegrations.zapier.generateApiKey\"),\n }}\n />\n </div>\n </Form>\n );\n};\n\nexport default GenerateKey;\n","import { withT } from \"neetocommons/react-utils\";\nimport CopyToClipboardButton from \"neetomolecules/CopyToClipboardButton\";\nimport { Typography } from \"neetoui\";\n\nconst NewApiKeyInfo = withT(({ t, apiKey }) => (\n <div className=\"space-y-2\">\n <Typography\n classname=\"neeto-ui-text-gray-700\"\n style=\"body2\"\n weight=\"normal\"\n >\n {t(\"neetoIntegrations.zapier.newApiKeyInstruction\")}\n </Typography>\n <div className=\"flex justify-between\">\n <Typography\n className=\"neeto-ui-text-gray-800 my-auto\"\n style=\"h5\"\n weight=\"semibold\"\n >\n {apiKey}\n </Typography>\n <CopyToClipboardButton\n label={t(\"neetoIntegrations.zapier.copyApiKey\")}\n value={apiKey}\n />\n </div>\n </div>\n));\n\nexport default NewApiKeyInfo;\n","import { isNotEmpty, noop } from \"neetocist\";\nimport { Button, Spinner, Typography } from \"neetoui\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\n\nimport ApiKeysList from \"./ApiKeysList\";\nimport GenerateKey from \"./GenerateKey\";\nimport NewApiKeyInfo from \"./NewApiKeyInfo\";\n\nconst ZapierForm = ({\n newlyCreatedApiKey = \"\",\n videoUrl = \"\",\n helpDocUrl = \"\",\n apiKeys = [],\n isGenerating = false,\n isLoading = true,\n isDeleting = false,\n deleteApiKey = noop,\n handleGenerateApiKey = noop,\n setNewlyCreatedApiKey = noop,\n setIsDemoModalOpen = noop,\n}) => {\n const { t } = useTranslation();\n\n if (isLoading) return <Spinner />;\n\n return (\n <div className=\"flex w-full max-w-3xl flex-col items-start space-y-6\">\n <Typography style=\"h2\">\n {t(\"neetoIntegrations.zapier.apiKeys\")}\n </Typography>\n {isEmpty(apiKeys) && (\n <Typography style=\"h4\">\n {t(\"neetoIntegrations.zapier.emptyText\")}\n </Typography>\n )}\n <GenerateKey\n handleSubmit={handleGenerateApiKey}\n isLoading={isGenerating}\n />\n {isNotEmpty(newlyCreatedApiKey) && (\n <NewApiKeyInfo apiKey={newlyCreatedApiKey} />\n )}\n {isNotEmpty(helpDocUrl) && (\n <Button\n href={helpDocUrl}\n label={t(\"neetoIntegrations.zapier.helpDoc\")}\n style=\"link\"\n target=\"_blank\"\n />\n )}\n {isNotEmpty(videoUrl) && (\n <Button\n label={t(\"neetoIntegrations.zapier.walkthroughText\")}\n style=\"link\"\n onClick={() => setIsDemoModalOpen(true)}\n />\n )}\n <ApiKeysList\n {...{ apiKeys, deleteApiKey, isDeleting, setNewlyCreatedApiKey }}\n />\n </div>\n );\n};\n\nexport default ZapierForm;\n"],"names":["GENERATE_API_KEY_VALIDATION","Yup","object","label","string","trim","t","required","strict","GENERATE_API_KEY_FORMIK_PROPS","initialValues","validationSchema","validateOnBlur","MENU_ITEMS","DELETE","getMenuItems","_ref","apiKey","setApiKeyToDelete","key","onClick","getApiKeysTableColumnData","title","dataIndex","width","render","options","_ref2","actions","_jsxs","className","children","_jsx","Typography","style","getApiKeysTableRowData","_ref3","apiKeys","map","_objectSpread","createdAt","timeFormat","fromNow","MoreDropdown","dropdownProps","strategy","menuItems","ApiKeysList","_apiKeyToDelete$optio","_ref$apiKeys","_ref$deleteApiKey","deleteApiKey","noop","_ref$isDeleting","isDeleting","_ref$setNewlyCreatedA","setNewlyCreatedApiKey","_useState","useState","_useState2","_slicedToArray","apiKeyToDelete","_useState3","DEFAULT_PAGE_INDEX","_useState4","currentPageNumber","setCurrentPageNumber","_useTranslation","useTranslation","closeAlert","handleSubmit","id","onSuccess","isEmpty","_Fragment","Table","fixedHeight","allowRowClick","columnData","defaultPageSize","DEFAULT_PAGE_SIZE","handlePageChange","rowData","Alert","backdropClassName","isOpen","isNotNil","isSubmitting","submitButtonLabel","message","Trans","i18nKey","values","onClose","onSubmit","GenerateKey","isLoading","inputRef","useRef","history","useHistory","useEffect","current","focus","Form","formikProps","Input","name","placeholder","ref","ActionBlock","cancelButtonProps","goBack","submitButtonProps","NewApiKeyInfo","withT","classname","weight","CopyToClipboardButton","value","ZapierForm","_ref$newlyCreatedApiK","newlyCreatedApiKey","_ref$videoUrl","videoUrl","_ref$helpDocUrl","helpDocUrl","_ref$isGenerating","isGenerating","_ref$isLoading","_ref$handleGenerateAp","handleGenerateApiKey","_ref$setIsDemoModalOp","setIsDemoModalOpen","Spinner","isNotEmpty","Button","href","target"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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require('react');
5
+ var neetoCist = require('@bigbinary/neeto-cist');
6
+ var ZoomIcon = require('@bigbinary/neeto-icons/misc/Zoom');
7
+ var PageLoader = require('@bigbinary/neeto-molecules/PageLoader');
8
+ var reactI18next = require('react-i18next');
9
+ var Manage = require('./Manage.js');
10
+ var reactQuery = require('@tanstack/react-query');
11
+ var constants = require('@bigbinary/neeto-commons-frontend/constants');
12
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
13
+ var axios = require('axios');
14
+ var query = require('../query-4f9552ab.js');
15
+ var jsxRuntime = require('react/jsx-runtime');
16
+ require('../defineProperty-f3094d6c.js');
17
+ require('classnames');
18
+ require('@bigbinary/neeto-icons/Check');
19
+ require('@bigbinary/neeto-molecules/IntegrationDisconnectAlert');
20
+ require('@bigbinary/neetoui/Button');
21
+ require('@bigbinary/neetoui/Tooltip');
22
+ require('@bigbinary/neetoui/Typography');
23
+
24
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
+
26
+ var ZoomIcon__default = /*#__PURE__*/_interopDefaultLegacy(ZoomIcon);
27
+ var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
28
+ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
29
+
30
+ var show = function show() {
31
+ return axios__default["default"].get(query.INTEGRATION_DETAILS_URL, {
32
+ params: {
33
+ serviceName: "Zoom",
34
+ integrableType: "User"
35
+ }
36
+ });
37
+ };
38
+ var destroy = function destroy() {
39
+ return axios__default["default"]["delete"]("".concat(query.INTEGRATIONS_ENGINE_ZOOM_URL, "/oauth"));
40
+ };
41
+ var zoomApi = {
42
+ show: show,
43
+ destroy: destroy
44
+ };
45
+
46
+ var useShowZoom = function useShowZoom() {
47
+ return reactQuery.useQuery({
48
+ queryKey: [query.QUERY_KEYS.ZOOM_DETAILS],
49
+ queryFn: zoomApi.show,
50
+ staleTime: constants.DEFAULT_STALE_TIME
51
+ });
52
+ };
53
+ var useDestroyZoom = function useDestroyZoom(_ref) {
54
+ var _onSuccess = _ref.onSuccess;
55
+ return reactUtils.useMutationWithInvalidation(zoomApi.destroy, {
56
+ keysToInvalidate: [[query.QUERY_KEYS.ZOOM_DETAILS]],
57
+ onSuccess: function onSuccess() {
58
+ return _onSuccess === null || _onSuccess === void 0 ? void 0 : _onSuccess();
59
+ }
60
+ });
61
+ };
62
+
63
+ var Zoom = function Zoom(_ref) {
64
+ var _ref$connectUrl = _ref.connectUrl,
65
+ connectUrl = _ref$connectUrl === void 0 ? "" : _ref$connectUrl,
66
+ _ref$description = _ref.description,
67
+ description = _ref$description === void 0 ? "" : _ref$description,
68
+ _ref$onDisconnect = _ref.onDisconnect,
69
+ onDisconnect = _ref$onDisconnect === void 0 ? neetoCist.noop : _ref$onDisconnect;
70
+ var _useTranslation = reactI18next.useTranslation(),
71
+ t = _useTranslation.t;
72
+ var _useState = React.useState(false),
73
+ _useState2 = slicedToArray._slicedToArray(_useState, 2),
74
+ isDisconnectAlertOpen = _useState2[0],
75
+ setIsDisconnectAlertOpen = _useState2[1];
76
+ var _useShowZoom = useShowZoom(),
77
+ _useShowZoom$data = _useShowZoom.data,
78
+ _useShowZoom$data2 = _useShowZoom$data === void 0 ? {} : _useShowZoom$data,
79
+ _useShowZoom$data2$me = _useShowZoom$data2.metadata,
80
+ _useShowZoom$data2$me2 = _useShowZoom$data2$me === void 0 ? {} : _useShowZoom$data2$me,
81
+ _useShowZoom$data2$me3 = _useShowZoom$data2$me2.email,
82
+ email = _useShowZoom$data2$me3 === void 0 ? "" : _useShowZoom$data2$me3,
83
+ isLoading = _useShowZoom.isLoading;
84
+ var _useDestroyZoom = useDestroyZoom({
85
+ onSuccess: function onSuccess() {
86
+ setIsDisconnectAlertOpen(false);
87
+ onDisconnect === null || onDisconnect === void 0 || onDisconnect();
88
+ }
89
+ }),
90
+ destroyIntegration = _useDestroyZoom.mutate,
91
+ isDisconnecting = _useDestroyZoom.isPending;
92
+ var isConnected = neetoCist.isPresent(email);
93
+ var handleDisconnect = function handleDisconnect() {
94
+ return destroyIntegration("zoom");
95
+ };
96
+ if (isLoading) return /*#__PURE__*/jsxRuntime.jsx(PageLoader__default["default"], {});
97
+ return /*#__PURE__*/jsxRuntime.jsx(Manage, {
98
+ connectUrl: connectUrl,
99
+ isConnected: isConnected,
100
+ isDisconnectAlertOpen: isDisconnectAlertOpen,
101
+ isDisconnecting: isDisconnecting,
102
+ setIsDisconnectAlertOpen: setIsDisconnectAlertOpen,
103
+ Icon: ZoomIcon__default["default"],
104
+ integration: "zoom",
105
+ description: isConnected ? /*#__PURE__*/jsxRuntime.jsx(reactI18next.Trans, {
106
+ components: {
107
+ underline: /*#__PURE__*/jsxRuntime.jsx("u", {
108
+ className: "font-medium"
109
+ })
110
+ },
111
+ i18nKey: "neetoIntegrations.zoom.account",
112
+ values: {
113
+ email: email
114
+ }
115
+ }) : description,
116
+ title: isConnected ? t("neetoIntegrations.zoom.connected") : t("neetoIntegrations.zoom.connect"),
117
+ onClose: function onClose() {
118
+ return setIsDisconnectAlertOpen(false);
119
+ },
120
+ onDisconnect: function onDisconnect() {
121
+ return handleDisconnect();
122
+ }
123
+ });
124
+ };
125
+
126
+ module.exports = Zoom;
127
+ //# sourceMappingURL=Zoom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Zoom.js","sources":["../../app/javascript/src/apis/zoom.js","../../app/javascript/src/hooks/reactQuery/useZoomApi.js","../../app/javascript/src/components/Integrations/Zoom/index.jsx"],"sourcesContent":["import axios from \"axios\";\n\nimport {\n INTEGRATIONS_ENGINE_ZOOM_URL,\n INTEGRATION_DETAILS_URL,\n} from \"src/constants/urls\";\n\nconst show = () =>\n axios.get(INTEGRATION_DETAILS_URL, {\n params: { serviceName: \"Zoom\", integrableType: \"User\" },\n });\n\nconst destroy = () => axios.delete(`${INTEGRATIONS_ENGINE_ZOOM_URL}/oauth`);\n\nconst zoomApi = { show, destroy };\n\nexport default zoomApi;\n","import { useQuery } from \"@tanstack/react-query\";\nimport { DEFAULT_STALE_TIME } from \"neetocommons/constants\";\nimport { useMutationWithInvalidation } from \"neetocommons/react-utils\";\n\nimport zoomApi from \"apis/zoom\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nexport const useShowZoom = () =>\n useQuery({\n queryKey: [QUERY_KEYS.ZOOM_DETAILS],\n queryFn: zoomApi.show,\n staleTime: DEFAULT_STALE_TIME,\n });\nexport const useDestroyZoom = ({ onSuccess }) =>\n useMutationWithInvalidation(zoomApi.destroy, {\n keysToInvalidate: [[QUERY_KEYS.ZOOM_DETAILS]],\n onSuccess: () => onSuccess?.(),\n });\n","import { useState } from \"react\";\n\nimport { isPresent, noop } from \"neetocist\";\nimport { Zoom as ZoomIcon } from \"neetoicons/misc\";\nimport PageLoader from \"neetomolecules/PageLoader\";\nimport { Trans, useTranslation } from \"react-i18next\";\n\nimport ManageIntegrations from \"components/commons/Manage\";\nimport { useDestroyZoom, useShowZoom } from \"hooks/reactQuery/useZoomApi\";\n\nconst Zoom = ({ connectUrl = \"\", description = \"\", onDisconnect = noop }) => {\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) return <PageLoader />;\n\n return (\n <ManageIntegrations\n {...{\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":["show","axios","get","INTEGRATION_DETAILS_URL","params","serviceName","integrableType","destroy","concat","INTEGRATIONS_ENGINE_ZOOM_URL","zoomApi","useShowZoom","useQuery","queryKey","QUERY_KEYS","ZOOM_DETAILS","queryFn","staleTime","DEFAULT_STALE_TIME","useDestroyZoom","_ref","onSuccess","useMutationWithInvalidation","keysToInvalidate","Zoom","_ref$connectUrl","connectUrl","_ref$description","description","_ref$onDisconnect","onDisconnect","noop","_useTranslation","useTranslation","t","_useState","useState","_useState2","_slicedToArray","isDisconnectAlertOpen","setIsDisconnectAlertOpen","_useShowZoom","_useShowZoom$data","data","_useShowZoom$data2","_useShowZoom$data2$me","metadata","_useShowZoom$data2$me2","_useShowZoom$data2$me3","email","isLoading","_useDestroyZoom","destroyIntegration","mutate","isDisconnecting","isPending","isConnected","isPresent","handleDisconnect","_jsx","PageLoader","ManageIntegrations","Icon","ZoomIcon","integration","Trans","components","underline","className","i18nKey","values","title","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,GAAA;AAAA,EAAA,OACRC,yBAAK,CAACC,GAAG,CAACC,6BAAuB,EAAE;AACjCC,IAAAA,MAAM,EAAE;AAAEC,MAAAA,WAAW,EAAE,MAAM;AAAEC,MAAAA,cAAc,EAAE,MAAA;AAAO,KAAA;AACxD,GAAC,CAAC,CAAA;AAAA,CAAA,CAAA;AAEJ,IAAMC,OAAO,GAAG,SAAVA,OAAOA,GAAA;AAAA,EAAA,OAASN,yBAAK,CAAO,QAAA,CAAA,CAAA,EAAA,CAAAO,MAAA,CAAIC,kCAA4B,WAAQ,CAAC,CAAA;AAAA,CAAA,CAAA;AAE3E,IAAMC,OAAO,GAAG;AAAEV,EAAAA,IAA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A;IAAA,OAASN,kBAAkB,CAAC,MAAM,CAAC,CAAA;AAAA,GAAA,CAAA;AAEzD,EAAA,IAAIF,SAAS,EAAE,oBAAOS,cAAA,CAACC,8BAAU,IAAE,CAAC,CAAA;EAEpC,oBACED,cAAA,CAACE,MAAkB,EAAA;AAEfnC,IAAAA,UAAU,EAAVA,UAAU;AACV8B,IAAAA,WAAW,EAAXA,WAAW;AACXjB,IAAAA,qBAAqB,EAArBA,qBAAqB;AACrBe,IAAAA,eAAe,EAAfA,eAAe;AACfd,IAAAA,wBAAwB,EAAxBA,wBAAwB;AAE1BsB,IAAAA,IAAI,EAAEC,4BAAS;AACfC,IAAAA,WAAW,EAAC,MAAM;AAClBpC,IAAAA,WAAW,EACT4B,WAAW,gBACTG,cAAA,CAACM,kBAAK,EAAA;AACJC,MAAAA,UAAU,EAAE;AAAEC,QAAAA,SAAS,eAAER,cAAA,CAAA,GAAA,EAAA;AAAGS,UAAAA,SAAS,EAAC,aAAA;SAAe,CAAA;OAAI;AACzDC,MAAAA,OAAO,EAAC,gCAAgC;AACxCC,MAAAA,MAAM,EAAE;AAAErB,QAAAA,KAAK,EAALA,KAAAA;AAAM,OAAA;KACjB,CAAC,GAEFrB,WAEH;IACD2C,KAAK,EACHf,WAAW,GACPtB,CAAC,CAAC,kCAAkC,CAAC,GACrCA,CAAC,CAAC,gCAAgC,CACvC;IACDsC,OAAO,EAAE,SAAAA,OAAA,GAAA;MAAA,OAAMhC,wBAAwB,CAAC,KAAK,CAAC,CAAA;KAAC;IAC/CV,YAAY,EAAE,SAAAA,YAAA,GAAA;MAAA,OAAM4B,gBAAgB,EAAE,CAAA;AAAA,KAAA;AAAC,GACxC,CAAC,CAAA;AAEN;;;;"}
@@ -0,0 +1,67 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Manage = require('./Manage.js');
6
+ var Daily = require('./Daily.js');
7
+ var DailyForm = require('../Form-be2e5595.js');
8
+ var GoogleCalendar = require('./GoogleCalendar.js');
9
+ var Twilio = require('./Twilio.js');
10
+ var Zoom = require('./Zoom.js');
11
+ var Modal = require('./Modal.js');
12
+ var Connect = require('./Connect.js');
13
+ var Demo = require('./Demo.js');
14
+ var Finish = require('./Finish.js');
15
+ require('../defineProperty-f3094d6c.js');
16
+ require('classnames');
17
+ require('@bigbinary/neeto-cist');
18
+ require('@bigbinary/neeto-commons-frontend/react-utils');
19
+ require('@bigbinary/neeto-icons/Check');
20
+ require('@bigbinary/neeto-molecules/IntegrationDisconnectAlert');
21
+ require('@bigbinary/neetoui/Button');
22
+ require('@bigbinary/neetoui/Tooltip');
23
+ require('@bigbinary/neetoui/Typography');
24
+ require('react-i18next');
25
+ require('react/jsx-runtime');
26
+ require('i18next');
27
+ require('../slicedToArray-f320d9e7.js');
28
+ require('react');
29
+ require('@bigbinary/neeto-commons-frontend/utils');
30
+ require('@bigbinary/neeto-icons/misc/Daily');
31
+ require('@bigbinary/neeto-molecules/CopyToClipboardButton');
32
+ require('@bigbinary/neeto-molecules/PageLoader');
33
+ require('@bigbinary/neeto-molecules/Container');
34
+ require('@bigbinary/neeto-molecules/Header');
35
+ require('@bigbinary/neeto-molecules/HelpPopover');
36
+ require('@bigbinary/neeto-molecules/IntegrationWalkthroughModal');
37
+ require('@bigbinary/neetoui/formik/Input');
38
+ require('@bigbinary/neetoui/formik/Form');
39
+ require('@bigbinary/neetoui/formik/ActionBlock');
40
+ require('react-router-dom');
41
+ require('@tanstack/react-query');
42
+ require('@bigbinary/neeto-commons-frontend/constants');
43
+ require('axios');
44
+ require('../query-4f9552ab.js');
45
+ require('yup');
46
+ require('@bigbinary/neeto-icons/misc/GoogleCalendar');
47
+ require('@bigbinary/neeto-icons/misc/Google');
48
+ require('@bigbinary/neetoui/Callout');
49
+ require('ramda');
50
+ require('@bigbinary/neetoui/formik/Select');
51
+ require('@bigbinary/neeto-icons/misc/Zoom');
52
+ require('@bigbinary/neetoui/Modal');
53
+ require('../index-2f3a953b.js');
54
+
55
+
56
+
57
+ exports.Manage = Manage;
58
+ exports.Daily = Daily;
59
+ exports.DailyForm = DailyForm.Form;
60
+ exports.GoogleCalendar = GoogleCalendar;
61
+ exports.Twilio = Twilio;
62
+ exports.Zoom = Zoom;
63
+ exports.Modal = Modal;
64
+ exports.Connect = Connect;
65
+ exports.Demo = Demo;
66
+ exports.Finish = Finish;
67
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,43 @@
1
+ function _typeof(o) {
2
+ "@babel/helpers - typeof";
3
+
4
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
5
+ return typeof o;
6
+ } : function (o) {
7
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
8
+ }, _typeof(o);
9
+ }
10
+
11
+ function _toPrimitive(input, hint) {
12
+ if (_typeof(input) !== "object" || input === null) return input;
13
+ var prim = input[Symbol.toPrimitive];
14
+ if (prim !== undefined) {
15
+ var res = prim.call(input, hint || "default");
16
+ if (_typeof(res) !== "object") return res;
17
+ throw new TypeError("@@toPrimitive must return a primitive value.");
18
+ }
19
+ return (hint === "string" ? String : Number)(input);
20
+ }
21
+
22
+ function _toPropertyKey(arg) {
23
+ var key = _toPrimitive(arg, "string");
24
+ return _typeof(key) === "symbol" ? key : String(key);
25
+ }
26
+
27
+ function _defineProperty(obj, key, value) {
28
+ key = _toPropertyKey(key);
29
+ if (key in obj) {
30
+ Object.defineProperty(obj, key, {
31
+ value: value,
32
+ enumerable: true,
33
+ configurable: true,
34
+ writable: true
35
+ });
36
+ } else {
37
+ obj[key] = value;
38
+ }
39
+ return obj;
40
+ }
41
+
42
+ export { _defineProperty as _ };
43
+ //# sourceMappingURL=defineProperty-e90a259c.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineProperty-e90a259c.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_toPrimitive","input","hint","prim","toPrimitive","undefined","res","call","TypeError","String","Number","_toPropertyKey","arg","key","_defineProperty","obj","value","toPropertyKey","Object","defineProperty","enumerable","configurable","writable"],"mappings":"AAAe,SAASA,OAAOA,CAACC,CAAC,EAAE;EACjC,yBAAyB,CAAA;;AAEzB,EAAA,OAAOD,OAAO,GAAG,UAAU,IAAI,OAAOE,MAAM,IAA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GAAG,EAAEG,KAAK,EAAE;AACvDH,EAAAA,GAAG,GAAGI,cAAa,CAACJ,GAAG,CAAC,CAAA;EACxB,IAAIA,GAAG,IAAIE,GAAG,EAAE;AACdG,IAAAA,MAAM,CAACC,cAAc,CAACJ,GAAG,EAAEF,GAAG,EAAE;AAC9BG,MAAAA,KAAK,EAAEA,KAAK;AACZI,MAAAA,UAAU,EAAE,IAAI;AAChBC,MAAAA,YAAY,EAAE,IAAI;AAClBC,MAAAA,QAAQ,EAAE,IAAA;AACZ,KAAC,CAAC,CAAA;AACJ,GAAC,MAAM;AACLP,IAAAA,GAAG,CAACF,GAAG,CAAC,GAAGG,KAAK,CAAA;AAClB,GAAA;AACA,EAAA,OAAOD,GAAG,CAAA;AACZ;;;;"}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ function _typeof(o) {
4
+ "@babel/helpers - typeof";
5
+
6
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
7
+ return typeof o;
8
+ } : function (o) {
9
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
10
+ }, _typeof(o);
11
+ }
12
+
13
+ function _toPrimitive(input, hint) {
14
+ if (_typeof(input) !== "object" || input === null) return input;
15
+ var prim = input[Symbol.toPrimitive];
16
+ if (prim !== undefined) {
17
+ var res = prim.call(input, hint || "default");
18
+ if (_typeof(res) !== "object") return res;
19
+ throw new TypeError("@@toPrimitive must return a primitive value.");
20
+ }
21
+ return (hint === "string" ? String : Number)(input);
22
+ }
23
+
24
+ function _toPropertyKey(arg) {
25
+ var key = _toPrimitive(arg, "string");
26
+ return _typeof(key) === "symbol" ? key : String(key);
27
+ }
28
+
29
+ function _defineProperty(obj, key, value) {
30
+ key = _toPropertyKey(key);
31
+ if (key in obj) {
32
+ Object.defineProperty(obj, key, {
33
+ value: value,
34
+ enumerable: true,
35
+ configurable: true,
36
+ writable: true
37
+ });
38
+ } else {
39
+ obj[key] = value;
40
+ }
41
+ return obj;
42
+ }
43
+
44
+ exports._defineProperty = _defineProperty;
45
+ //# sourceMappingURL=defineProperty-f3094d6c.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defineProperty-f3094d6c.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["_typeof","o","Symbol","iterator","constructor","prototype","_toPrimitive","input","hint","prim","toPrimitive","undefined","res","call","TypeError","String","Number","_toPropertyKey","arg","key","_defineProperty","obj","value","toPropertyKey","Object","defineProperty","enumerable","configurable","writable"],"mappings":";;AAAe,SAASA,OAAOA,CAACC,CA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