@bigbinary/neeto-team-members-frontend 2.2.5 → 2.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.cjs.js +970 -159
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +998 -187
- package/dist/index.esm.js.map +1 -1
- package/package.json +15 -15
package/dist/index.esm.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import _typeof from '@babel/runtime/helpers/esm/typeof';
|
|
1
|
+
import _typeof$2 from '@babel/runtime/helpers/esm/typeof';
|
|
2
2
|
import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';
|
|
3
3
|
import _createClass from '@babel/runtime/helpers/esm/createClass';
|
|
4
4
|
import _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';
|
|
5
5
|
import _inherits from '@babel/runtime/helpers/esm/inherits';
|
|
6
6
|
import _possibleConstructorReturn from '@babel/runtime/helpers/esm/possibleConstructorReturn';
|
|
7
7
|
import _getPrototypeOf from '@babel/runtime/helpers/esm/getPrototypeOf';
|
|
8
|
-
import _defineProperty$
|
|
8
|
+
import _defineProperty$3 from '@babel/runtime/helpers/esm/defineProperty';
|
|
9
9
|
import _toArray from '@babel/runtime/helpers/esm/toArray';
|
|
10
10
|
import _objectWithoutProperties$1 from '@babel/runtime/helpers/objectWithoutProperties';
|
|
11
|
-
import _typeof$
|
|
12
|
-
import _defineProperty$
|
|
11
|
+
import _typeof$3 from '@babel/runtime/helpers/typeof';
|
|
12
|
+
import _defineProperty$4 from '@babel/runtime/helpers/defineProperty';
|
|
13
13
|
import React, { createContext, useContext, createElement, isValidElement, cloneElement, useState, useRef, useEffect, forwardRef, useImperativeHandle, Fragment, useMemo, useReducer, useCallback } from 'react';
|
|
14
14
|
import _classCallCheck$1 from '@babel/runtime/helpers/classCallCheck';
|
|
15
15
|
import _createClass$1 from '@babel/runtime/helpers/createClass';
|
|
16
|
-
import _slicedToArray$
|
|
16
|
+
import _slicedToArray$4 from '@babel/runtime/helpers/slicedToArray';
|
|
17
17
|
import _extends$1 from '@babel/runtime/helpers/extends';
|
|
18
18
|
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
|
|
19
19
|
import _extends from '@babel/runtime/helpers/esm/extends';
|
|
20
20
|
import ReactDOM from 'react-dom';
|
|
21
21
|
import { useFormikContext, Formik, Form } from 'formik';
|
|
22
|
-
import { Typography, Button, Table as Table$1, Modal, Toastr, Checkbox, Pane, Dropdown, Alert, Input as Input$1, PageLoader, Avatar, Tag } from '@bigbinary/neetoui';
|
|
22
|
+
import { Typography, Button, Table as Table$1, Modal, Toastr, Tooltip, Checkbox, Pane, Dropdown, Alert, Input as Input$1, PageLoader, Avatar, Tag } from '@bigbinary/neetoui';
|
|
23
23
|
import { Download, File, LeftArrow, Plus, MenuHorizontal, Up, Down, Search } from '@bigbinary/neeto-icons';
|
|
24
24
|
import classnames from 'classnames';
|
|
25
25
|
import { EmailInput, Input, Textarea, Select } from '@bigbinary/neetoui/formik';
|
|
26
26
|
import axios from 'axios';
|
|
27
|
-
import {
|
|
28
|
-
import { modifyPath, prepend, assocPath, findIndex, propEq, dissocPath, groupBy, prop, keys, map, identical, modify, includes, fromPairs, toPairs, filter, isEmpty, clamp, toLower, mergeLeft, isNil, pluck, head, assoc } from 'ramda';
|
|
27
|
+
import { curry, isNil, complement, findLast, findLastIndex, count, isEmpty, equals, fromPairs, toPairs, path as path$1, modifyPath, prepend, assocPath, findIndex, propEq, dissocPath, groupBy, prop, keys, map, identical, modify, includes, filter, clamp, toLower, mergeLeft, pluck, head, assoc } from 'ramda';
|
|
29
28
|
import { Header as Header$2, Container, MenuBar, SubHeader as SubHeader$1 } from '@bigbinary/neetoui/layouts';
|
|
30
|
-
import * as
|
|
29
|
+
import * as Yup from 'yup';
|
|
31
30
|
import { object, string } from 'yup';
|
|
32
|
-
import {
|
|
31
|
+
import { Honeybadger } from '@honeybadger-io/react';
|
|
32
|
+
import 'react-router-dom';
|
|
33
33
|
|
|
34
|
-
function ownKeys$
|
|
34
|
+
function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
35
35
|
|
|
36
|
-
function _objectSpread$
|
|
36
|
+
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$d(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
37
37
|
|
|
38
38
|
var consoleLogger = {
|
|
39
39
|
type: 'logger',
|
|
@@ -120,7 +120,7 @@ var Logger = function () {
|
|
|
120
120
|
}, {
|
|
121
121
|
key: "create",
|
|
122
122
|
value: function create(moduleName) {
|
|
123
|
-
return new Logger(this.logger, _objectSpread$
|
|
123
|
+
return new Logger(this.logger, _objectSpread$d(_objectSpread$d({}, {
|
|
124
124
|
prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
|
|
125
125
|
}), this.options));
|
|
126
126
|
}
|
|
@@ -339,7 +339,7 @@ function looksLikeObjectPath(key, nsSeparator, keySeparator) {
|
|
|
339
339
|
|
|
340
340
|
function ownKeys$1$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
341
341
|
|
|
342
|
-
function _objectSpread$1$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1$1(Object(source), true).forEach(function (key) { _defineProperty$
|
|
342
|
+
function _objectSpread$1$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1$1(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
343
343
|
|
|
344
344
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
345
345
|
|
|
@@ -584,7 +584,7 @@ var postProcessor = {
|
|
|
584
584
|
|
|
585
585
|
function ownKeys$2$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
586
586
|
|
|
587
|
-
function _objectSpread$2$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2$1(Object(source), true).forEach(function (key) { _defineProperty$
|
|
587
|
+
function _objectSpread$2$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2$1(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
588
588
|
|
|
589
589
|
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
590
590
|
|
|
@@ -675,7 +675,7 @@ var Translator = function (_EventEmitter) {
|
|
|
675
675
|
value: function translate(keys, options, lastKey) {
|
|
676
676
|
var _this2 = this;
|
|
677
677
|
|
|
678
|
-
if (_typeof(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
|
|
678
|
+
if (_typeof$2(options) !== 'object' && this.options.overloadTranslationOptionHandler) {
|
|
679
679
|
options = this.options.overloadTranslationOptionHandler(arguments);
|
|
680
680
|
}
|
|
681
681
|
|
|
@@ -1507,7 +1507,7 @@ var PluralResolver = function () {
|
|
|
1507
1507
|
|
|
1508
1508
|
function ownKeys$3$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1509
1509
|
|
|
1510
|
-
function _objectSpread$3$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3$1(Object(source), true).forEach(function (key) { _defineProperty$
|
|
1510
|
+
function _objectSpread$3$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3$1(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1511
1511
|
|
|
1512
1512
|
var Interpolator = function () {
|
|
1513
1513
|
function Interpolator() {
|
|
@@ -1729,7 +1729,7 @@ var Interpolator = function () {
|
|
|
1729
1729
|
|
|
1730
1730
|
function ownKeys$4$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1731
1731
|
|
|
1732
|
-
function _objectSpread$4$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4$1(Object(source), true).forEach(function (key) { _defineProperty$
|
|
1732
|
+
function _objectSpread$4$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4$1(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1733
1733
|
|
|
1734
1734
|
function parseFormatStr(formatStr) {
|
|
1735
1735
|
var formatName = formatStr.toLowerCase().trim();
|
|
@@ -1852,7 +1852,7 @@ var Formatter = function () {
|
|
|
1852
1852
|
|
|
1853
1853
|
function ownKeys$5$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1854
1854
|
|
|
1855
|
-
function _objectSpread$5$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5$1(Object(source), true).forEach(function (key) { _defineProperty$
|
|
1855
|
+
function _objectSpread$5$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5$1(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1856
1856
|
|
|
1857
1857
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1858
1858
|
|
|
@@ -1892,6 +1892,8 @@ var Connector = function (_EventEmitter) {
|
|
|
1892
1892
|
_this.waitingReads = [];
|
|
1893
1893
|
_this.maxParallelReads = options.maxParallelReads || 10;
|
|
1894
1894
|
_this.readingCalls = 0;
|
|
1895
|
+
_this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
|
|
1896
|
+
_this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
|
|
1895
1897
|
_this.state = {};
|
|
1896
1898
|
_this.queue = [];
|
|
1897
1899
|
|
|
@@ -1998,7 +2000,7 @@ var Connector = function (_EventEmitter) {
|
|
|
1998
2000
|
var _this3 = this;
|
|
1999
2001
|
|
|
2000
2002
|
var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
2001
|
-
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
2003
|
+
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
|
|
2002
2004
|
var callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
2003
2005
|
if (!lng.length) return callback(null, {});
|
|
2004
2006
|
|
|
@@ -2024,7 +2026,7 @@ var Connector = function (_EventEmitter) {
|
|
|
2024
2026
|
_this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
|
|
2025
2027
|
}
|
|
2026
2028
|
|
|
2027
|
-
if (err && data && tried <
|
|
2029
|
+
if (err && data && tried < _this3.maxRetries) {
|
|
2028
2030
|
setTimeout(function () {
|
|
2029
2031
|
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
2030
2032
|
}, wait);
|
|
@@ -2150,11 +2152,11 @@ function get() {
|
|
|
2150
2152
|
appendNamespaceToCIMode: false,
|
|
2151
2153
|
overloadTranslationOptionHandler: function handle(args) {
|
|
2152
2154
|
var ret = {};
|
|
2153
|
-
if (_typeof(args[1]) === 'object') ret = args[1];
|
|
2155
|
+
if (_typeof$2(args[1]) === 'object') ret = args[1];
|
|
2154
2156
|
if (typeof args[1] === 'string') ret.defaultValue = args[1];
|
|
2155
2157
|
if (typeof args[2] === 'string') ret.tDescription = args[2];
|
|
2156
2158
|
|
|
2157
|
-
if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {
|
|
2159
|
+
if (_typeof$2(args[2]) === 'object' || _typeof$2(args[3]) === 'object') {
|
|
2158
2160
|
var options = args[3] || args[2];
|
|
2159
2161
|
Object.keys(options).forEach(function (key) {
|
|
2160
2162
|
ret[key] = options[key];
|
|
@@ -2194,13 +2196,13 @@ function transformOptions(options) {
|
|
|
2194
2196
|
|
|
2195
2197
|
function ownKeys$6$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2196
2198
|
|
|
2197
|
-
function _objectSpread$6$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6$1(Object(source), true).forEach(function (key) { _defineProperty$
|
|
2199
|
+
function _objectSpread$6$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6$1(Object(source), true).forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2198
2200
|
|
|
2199
2201
|
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2200
2202
|
|
|
2201
2203
|
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2202
2204
|
|
|
2203
|
-
function noop$
|
|
2205
|
+
function noop$4() {}
|
|
2204
2206
|
|
|
2205
2207
|
function bindMemberFunctions(inst) {
|
|
2206
2208
|
var mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
|
|
@@ -2266,7 +2268,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2266
2268
|
options = {};
|
|
2267
2269
|
}
|
|
2268
2270
|
|
|
2269
|
-
if (!options.defaultNS && options.ns) {
|
|
2271
|
+
if (!options.defaultNS && options.defaultNS !== false && options.ns) {
|
|
2270
2272
|
if (typeof options.ns === 'string') {
|
|
2271
2273
|
options.defaultNS = options.ns;
|
|
2272
2274
|
} else if (options.ns.indexOf('translation') < 0) {
|
|
@@ -2365,7 +2367,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2365
2367
|
}
|
|
2366
2368
|
|
|
2367
2369
|
this.format = this.options.interpolation.format;
|
|
2368
|
-
if (!callback) callback = noop$
|
|
2370
|
+
if (!callback) callback = noop$4;
|
|
2369
2371
|
|
|
2370
2372
|
if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2371
2373
|
var codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
@@ -2426,7 +2428,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2426
2428
|
value: function loadResources(language) {
|
|
2427
2429
|
var _this3 = this;
|
|
2428
2430
|
|
|
2429
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
2431
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$4;
|
|
2430
2432
|
var usedCallback = callback;
|
|
2431
2433
|
var usedLng = typeof language === 'string' ? language : this.language;
|
|
2432
2434
|
if (typeof language === 'function') usedCallback = language;
|
|
@@ -2474,7 +2476,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2474
2476
|
var deferred = defer();
|
|
2475
2477
|
if (!lngs) lngs = this.languages;
|
|
2476
2478
|
if (!ns) ns = this.options.ns;
|
|
2477
|
-
if (!callback) callback = noop$
|
|
2479
|
+
if (!callback) callback = noop$4;
|
|
2478
2480
|
this.services.backendConnector.reload(lngs, ns, function (err) {
|
|
2479
2481
|
deferred.resolve();
|
|
2480
2482
|
callback(err);
|
|
@@ -2609,7 +2611,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2609
2611
|
var fixedT = function fixedT(key, opts) {
|
|
2610
2612
|
var options;
|
|
2611
2613
|
|
|
2612
|
-
if (_typeof(opts) !== 'object') {
|
|
2614
|
+
if (_typeof$2(opts) !== 'object') {
|
|
2613
2615
|
for (var _len3 = arguments.length, rest = new Array(_len3 > 2 ? _len3 - 2 : 0), _key3 = 2; _key3 < _len3; _key3++) {
|
|
2614
2616
|
rest[_key3 - 2] = arguments[_key3];
|
|
2615
2617
|
}
|
|
@@ -2753,7 +2755,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2753
2755
|
var _this8 = this;
|
|
2754
2756
|
|
|
2755
2757
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2756
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
2758
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$4;
|
|
2757
2759
|
|
|
2758
2760
|
var mergedOptions = _objectSpread$6$1(_objectSpread$6$1(_objectSpread$6$1({}, this.options), options), {
|
|
2759
2761
|
isClone: true
|
|
@@ -2799,7 +2801,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2799
2801
|
return I18n;
|
|
2800
2802
|
}(EventEmitter);
|
|
2801
2803
|
|
|
2802
|
-
_defineProperty$
|
|
2804
|
+
_defineProperty$3(I18n, "createInstance", function () {
|
|
2803
2805
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2804
2806
|
var callback = arguments.length > 1 ? arguments[1] : undefined;
|
|
2805
2807
|
return new I18n(options, callback);
|
|
@@ -2843,12 +2845,12 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2843
2845
|
var opt = options || {};
|
|
2844
2846
|
opt.path = opt.path || '/';
|
|
2845
2847
|
var value = encodeURIComponent(val);
|
|
2846
|
-
var str = name
|
|
2848
|
+
var str = "".concat(name, "=").concat(value);
|
|
2847
2849
|
|
|
2848
2850
|
if (opt.maxAge > 0) {
|
|
2849
2851
|
var maxAge = opt.maxAge - 0;
|
|
2850
|
-
if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
2851
|
-
str +=
|
|
2852
|
+
if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
2853
|
+
str += "; Max-Age=".concat(Math.floor(maxAge));
|
|
2852
2854
|
}
|
|
2853
2855
|
|
|
2854
2856
|
if (opt.domain) {
|
|
@@ -2856,7 +2858,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2856
2858
|
throw new TypeError('option domain is invalid');
|
|
2857
2859
|
}
|
|
2858
2860
|
|
|
2859
|
-
str +=
|
|
2861
|
+
str += "; Domain=".concat(opt.domain);
|
|
2860
2862
|
}
|
|
2861
2863
|
|
|
2862
2864
|
if (opt.path) {
|
|
@@ -2864,7 +2866,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2864
2866
|
throw new TypeError('option path is invalid');
|
|
2865
2867
|
}
|
|
2866
2868
|
|
|
2867
|
-
str +=
|
|
2869
|
+
str += "; Path=".concat(opt.path);
|
|
2868
2870
|
}
|
|
2869
2871
|
|
|
2870
2872
|
if (opt.expires) {
|
|
@@ -2872,7 +2874,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2872
2874
|
throw new TypeError('option expires is invalid');
|
|
2873
2875
|
}
|
|
2874
2876
|
|
|
2875
|
-
str +=
|
|
2877
|
+
str += "; Expires=".concat(opt.expires.toUTCString());
|
|
2876
2878
|
}
|
|
2877
2879
|
|
|
2878
2880
|
if (opt.httpOnly) str += '; HttpOnly';
|
|
@@ -2922,7 +2924,7 @@ var cookie = {
|
|
|
2922
2924
|
document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);
|
|
2923
2925
|
},
|
|
2924
2926
|
read: function read(name) {
|
|
2925
|
-
var nameEQ = name
|
|
2927
|
+
var nameEQ = "".concat(name, "=");
|
|
2926
2928
|
var ca = document.cookie.split(';');
|
|
2927
2929
|
|
|
2928
2930
|
for (var i = 0; i < ca.length; i++) {
|
|
@@ -3132,21 +3134,16 @@ var path = {
|
|
|
3132
3134
|
var subdomain = {
|
|
3133
3135
|
name: 'subdomain',
|
|
3134
3136
|
lookup: function lookup(options) {
|
|
3135
|
-
|
|
3137
|
+
// If given get the subdomain index else 1
|
|
3138
|
+
var lookupFromSubdomainIndex = typeof options.lookupFromSubdomainIndex === 'number' ? options.lookupFromSubdomainIndex + 1 : 1; // get all matches if window.location. is existing
|
|
3139
|
+
// first item of match is the match itself and the second is the first group macht which sould be the first subdomain match
|
|
3140
|
+
// is the hostname no public domain get the or option of localhost
|
|
3136
3141
|
|
|
3137
|
-
|
|
3138
|
-
var language = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);
|
|
3142
|
+
var language = typeof window !== 'undefined' && window.location && window.location.hostname && window.location.hostname.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i); // if there is no match (null) return undefined
|
|
3139
3143
|
|
|
3140
|
-
|
|
3141
|
-
if (typeof options.lookupFromSubdomainIndex === 'number') {
|
|
3142
|
-
found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');
|
|
3143
|
-
} else {
|
|
3144
|
-
found = language[0].replace('http://', '').replace('https://', '').replace('.', '');
|
|
3145
|
-
}
|
|
3146
|
-
}
|
|
3147
|
-
}
|
|
3144
|
+
if (!language) return undefined; // return the given group match
|
|
3148
3145
|
|
|
3149
|
-
return
|
|
3146
|
+
return language[lookupFromSubdomainIndex];
|
|
3150
3147
|
}
|
|
3151
3148
|
};
|
|
3152
3149
|
|
|
@@ -3159,8 +3156,8 @@ function getDefaults$1() {
|
|
|
3159
3156
|
lookupSessionStorage: 'i18nextLng',
|
|
3160
3157
|
// cache user language
|
|
3161
3158
|
caches: ['localStorage'],
|
|
3162
|
-
excludeCacheFor: ['cimode'] //cookieMinutes: 10,
|
|
3163
|
-
//cookieDomain: 'myDomain'
|
|
3159
|
+
excludeCacheFor: ['cimode'] // cookieMinutes: 10,
|
|
3160
|
+
// cookieDomain: 'myDomain'
|
|
3164
3161
|
|
|
3165
3162
|
};
|
|
3166
3163
|
}
|
|
@@ -3294,9 +3291,9 @@ var unescape = function unescape(text) {
|
|
|
3294
3291
|
return text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
3295
3292
|
};
|
|
3296
3293
|
|
|
3297
|
-
function ownKeys$
|
|
3294
|
+
function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3298
3295
|
|
|
3299
|
-
function _objectSpread$
|
|
3296
|
+
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$c(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3300
3297
|
var defaultOptions = {
|
|
3301
3298
|
bindI18n: 'languageChanged',
|
|
3302
3299
|
bindI18nStore: '',
|
|
@@ -3311,7 +3308,7 @@ var i18nInstance;
|
|
|
3311
3308
|
var I18nContext = createContext();
|
|
3312
3309
|
function setDefaults() {
|
|
3313
3310
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3314
|
-
defaultOptions = _objectSpread$
|
|
3311
|
+
defaultOptions = _objectSpread$c(_objectSpread$c({}, defaultOptions), options);
|
|
3315
3312
|
}
|
|
3316
3313
|
function getDefaults() {
|
|
3317
3314
|
return defaultOptions;
|
|
@@ -3438,9 +3435,9 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
3438
3435
|
var _excluded$4 = ["format"],
|
|
3439
3436
|
_excluded2$3 = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
3440
3437
|
|
|
3441
|
-
function ownKeys$
|
|
3438
|
+
function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3442
3439
|
|
|
3443
|
-
function _objectSpread$
|
|
3440
|
+
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$b(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3444
3441
|
|
|
3445
3442
|
function hasChildren(node, checkLength) {
|
|
3446
3443
|
if (!node) return false;
|
|
@@ -3451,7 +3448,7 @@ function hasChildren(node, checkLength) {
|
|
|
3451
3448
|
|
|
3452
3449
|
function getChildren(node) {
|
|
3453
3450
|
if (!node) return [];
|
|
3454
|
-
return node
|
|
3451
|
+
return node.props ? node.props.children : node.children;
|
|
3455
3452
|
}
|
|
3456
3453
|
|
|
3457
3454
|
function hasValidReactChildren(children) {
|
|
@@ -3466,7 +3463,7 @@ function getAsArray(data) {
|
|
|
3466
3463
|
}
|
|
3467
3464
|
|
|
3468
3465
|
function mergeProps(source, target) {
|
|
3469
|
-
var newTarget = _objectSpread$
|
|
3466
|
+
var newTarget = _objectSpread$b({}, target);
|
|
3470
3467
|
|
|
3471
3468
|
newTarget.props = Object.assign(source.props, target.props);
|
|
3472
3469
|
return newTarget;
|
|
@@ -3499,7 +3496,7 @@ function nodesToString(children, i18nOptions) {
|
|
|
3499
3496
|
}
|
|
3500
3497
|
} else if (child === null) {
|
|
3501
3498
|
warn("Trans: the passed in value is invalid - seems you passed in a null child.");
|
|
3502
|
-
} else if (_typeof$
|
|
3499
|
+
} else if (_typeof$3(child) === 'object') {
|
|
3503
3500
|
var format = child.format,
|
|
3504
3501
|
clone = _objectWithoutProperties$1(child, _excluded$4);
|
|
3505
3502
|
|
|
@@ -3529,14 +3526,14 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3529
3526
|
var childrenArray = getAsArray(childs);
|
|
3530
3527
|
childrenArray.forEach(function (child) {
|
|
3531
3528
|
if (typeof child === 'string') return;
|
|
3532
|
-
if (hasChildren(child)) getData(getChildren(child));else if (_typeof$
|
|
3529
|
+
if (hasChildren(child)) getData(getChildren(child));else if (_typeof$3(child) === 'object' && !isValidElement(child)) Object.assign(data, child);
|
|
3533
3530
|
});
|
|
3534
3531
|
}
|
|
3535
3532
|
|
|
3536
3533
|
getData(children);
|
|
3537
3534
|
var ast = c.parse("<0>".concat(targetString, "</0>"));
|
|
3538
3535
|
|
|
3539
|
-
var opts = _objectSpread$
|
|
3536
|
+
var opts = _objectSpread$b(_objectSpread$b({}, data), combinedTOpts);
|
|
3540
3537
|
|
|
3541
3538
|
function renderInner(child, node, rootReactNode) {
|
|
3542
3539
|
var childs = getChildren(child);
|
|
@@ -3546,7 +3543,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3546
3543
|
|
|
3547
3544
|
function pushTranslatedJSX(child, inner, mem, i, isVoid) {
|
|
3548
3545
|
if (child.dummy) child.children = inner;
|
|
3549
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3546
|
+
mem.push(cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3550
3547
|
key: i
|
|
3551
3548
|
}), isVoid ? undefined : inner));
|
|
3552
3549
|
}
|
|
@@ -3566,8 +3563,8 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3566
3563
|
}, tmp) : tmp;
|
|
3567
3564
|
var isElement = isValidElement(child);
|
|
3568
3565
|
var isValidTranslationWithChildren = isElement && hasChildren(node, true) && !node.voidElement;
|
|
3569
|
-
var isEmptyTransWithHTML = emptyChildrenButNeedsHandling && _typeof$
|
|
3570
|
-
var isKnownComponent = _typeof$
|
|
3566
|
+
var isEmptyTransWithHTML = emptyChildrenButNeedsHandling && _typeof$3(child) === 'object' && child.dummy && !isElement;
|
|
3567
|
+
var isKnownComponent = _typeof$3(children) === 'object' && children !== null && Object.hasOwnProperty.call(children, node.name);
|
|
3571
3568
|
|
|
3572
3569
|
if (typeof child === 'string') {
|
|
3573
3570
|
var value = i18n.services.interpolator.interpolate(child, opts, i18n.language);
|
|
@@ -3578,7 +3575,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3578
3575
|
} else if (isEmptyTransWithHTML) {
|
|
3579
3576
|
var _inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
3580
3577
|
|
|
3581
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3578
|
+
mem.push(cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3582
3579
|
key: i
|
|
3583
3580
|
}), _inner));
|
|
3584
3581
|
} else if (Number.isNaN(parseFloat(node.name))) {
|
|
@@ -3605,15 +3602,15 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3605
3602
|
|
|
3606
3603
|
mem.push("<".concat(node.name, ">").concat(_inner4, "</").concat(node.name, ">"));
|
|
3607
3604
|
}
|
|
3608
|
-
} else if (_typeof$
|
|
3605
|
+
} else if (_typeof$3(child) === 'object' && !isElement) {
|
|
3609
3606
|
var content = node.children[0] ? translationContent : null;
|
|
3610
3607
|
if (content) mem.push(content);
|
|
3611
3608
|
} else if (node.children.length === 1 && translationContent) {
|
|
3612
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3609
|
+
mem.push(cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3613
3610
|
key: i
|
|
3614
3611
|
}), translationContent));
|
|
3615
3612
|
} else {
|
|
3616
|
-
mem.push(cloneElement(child, _objectSpread$
|
|
3613
|
+
mem.push(cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3617
3614
|
key: i
|
|
3618
3615
|
})));
|
|
3619
3616
|
}
|
|
@@ -3676,7 +3673,7 @@ function Trans(_ref) {
|
|
|
3676
3673
|
|
|
3677
3674
|
if (context) tOptions.context = context;
|
|
3678
3675
|
|
|
3679
|
-
var reactI18nextOptions = _objectSpread$
|
|
3676
|
+
var reactI18nextOptions = _objectSpread$b(_objectSpread$b({}, getDefaults()), i18n.options && i18n.options.react);
|
|
3680
3677
|
|
|
3681
3678
|
var namespaces = ns || t.ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
3682
3679
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
@@ -3684,13 +3681,13 @@ function Trans(_ref) {
|
|
|
3684
3681
|
var hashTransKey = reactI18nextOptions.hashTransKey;
|
|
3685
3682
|
var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);
|
|
3686
3683
|
var interpolationOverride = values ? tOptions.interpolation : {
|
|
3687
|
-
interpolation: _objectSpread$
|
|
3684
|
+
interpolation: _objectSpread$b(_objectSpread$b({}, tOptions.interpolation), {}, {
|
|
3688
3685
|
prefix: '#$?',
|
|
3689
3686
|
suffix: '?$#'
|
|
3690
3687
|
})
|
|
3691
3688
|
};
|
|
3692
3689
|
|
|
3693
|
-
var combinedTOpts = _objectSpread$
|
|
3690
|
+
var combinedTOpts = _objectSpread$b(_objectSpread$b(_objectSpread$b(_objectSpread$b({}, tOptions), {}, {
|
|
3694
3691
|
count: count
|
|
3695
3692
|
}, values), interpolationOverride), {}, {
|
|
3696
3693
|
defaultValue: defaultValue,
|
|
@@ -3703,9 +3700,9 @@ function Trans(_ref) {
|
|
|
3703
3700
|
return useAsParent ? createElement(useAsParent, additionalProps, content) : content;
|
|
3704
3701
|
}
|
|
3705
3702
|
|
|
3706
|
-
function ownKeys$
|
|
3703
|
+
function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3707
3704
|
|
|
3708
|
-
function _objectSpread$
|
|
3705
|
+
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$a(Object(source), true).forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3709
3706
|
|
|
3710
3707
|
var usePrevious = function usePrevious(value, ignore) {
|
|
3711
3708
|
var ref = useRef();
|
|
@@ -3742,7 +3739,7 @@ function useTranslation(ns) {
|
|
|
3742
3739
|
|
|
3743
3740
|
if (i18n.options.react && i18n.options.react.wait !== undefined) warnOnce('It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.');
|
|
3744
3741
|
|
|
3745
|
-
var i18nOptions = _objectSpread$
|
|
3742
|
+
var i18nOptions = _objectSpread$a(_objectSpread$a(_objectSpread$a({}, getDefaults()), i18n.options.react), props);
|
|
3746
3743
|
|
|
3747
3744
|
var useSuspense = i18nOptions.useSuspense,
|
|
3748
3745
|
keyPrefix = i18nOptions.keyPrefix;
|
|
@@ -3758,7 +3755,7 @@ function useTranslation(ns) {
|
|
|
3758
3755
|
}
|
|
3759
3756
|
|
|
3760
3757
|
var _useState = useState(getT),
|
|
3761
|
-
_useState2 = _slicedToArray$
|
|
3758
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
3762
3759
|
t = _useState2[0],
|
|
3763
3760
|
setT = _useState2[1];
|
|
3764
3761
|
|
|
@@ -3803,7 +3800,7 @@ function useTranslation(ns) {
|
|
|
3803
3800
|
}
|
|
3804
3801
|
|
|
3805
3802
|
isInitial.current = false;
|
|
3806
|
-
}, [i18n]);
|
|
3803
|
+
}, [i18n, keyPrefix]);
|
|
3807
3804
|
var ret = [t, i18n, ready];
|
|
3808
3805
|
ret.t = t;
|
|
3809
3806
|
ret.i18n = i18n;
|
|
@@ -3890,6 +3887,14 @@ var placeholders$1 = {
|
|
|
3890
3887
|
enterRoleName: "Please enter the role name",
|
|
3891
3888
|
role: "Please select a role"
|
|
3892
3889
|
};
|
|
3890
|
+
var tooltips$1 = {
|
|
3891
|
+
activateUserToEdit: "Please activate the user to edit their role.",
|
|
3892
|
+
editAdminRoleNotAllowed: "Sorry, you are not allowed to edit the admin role.",
|
|
3893
|
+
editCurrentUserNotAllowed: "Sorry, you are not allowed to edit your role.",
|
|
3894
|
+
noPermissionToAddMember: "Sorry, you do not have permission to add a member.",
|
|
3895
|
+
noPermissionToAddRole: "Sorry, you do not have permission to add a new role.",
|
|
3896
|
+
noPermissionToEditMembers: "Sorry, you do not have permission to edit members."
|
|
3897
|
+
};
|
|
3893
3898
|
var validations$1 = {
|
|
3894
3899
|
enterRoleName: "Please enter a valid role name.",
|
|
3895
3900
|
filterInvalidEmails: "Click here to remove invalid emails.",
|
|
@@ -3904,6 +3909,7 @@ var en = {
|
|
|
3904
3909
|
helpers: helpers$1,
|
|
3905
3910
|
metaNames: metaNames$1,
|
|
3906
3911
|
placeholders: placeholders$1,
|
|
3912
|
+
tooltips: tooltips$1,
|
|
3907
3913
|
validations: validations$1
|
|
3908
3914
|
};
|
|
3909
3915
|
|
|
@@ -3978,6 +3984,14 @@ var placeholders = {
|
|
|
3978
3984
|
enterRoleName: "Veuillez entrer le nom du rôle",
|
|
3979
3985
|
role: "Veuillez sélectionner un rôle"
|
|
3980
3986
|
};
|
|
3987
|
+
var tooltips = {
|
|
3988
|
+
activateUserToEdit: "Veuillez activer l'utilisateur pour modifier son rôle.",
|
|
3989
|
+
editAdminRoleNotAllowed: "Désolé, vous n'êtes pas autorisé à modifier le rôle admin.",
|
|
3990
|
+
editCurrentUserNotAllowed: "Désolé, vous n'êtes pas autorisé à modifier votre rôle.",
|
|
3991
|
+
noPermissionToAddMember: "Désolé, vous n'avez pas la permission d'ajouter un membre.",
|
|
3992
|
+
noPermissionToAddRole: "Désolé, vous n'avez pas la permission d'ajouter un nouveau rôle.",
|
|
3993
|
+
noPermissionToEditMembers: "Désolé, vous n'avez pas la permission de modifier les membres."
|
|
3994
|
+
};
|
|
3981
3995
|
var validations = {
|
|
3982
3996
|
filterInvalidEmails: "Cliquez ici pour supprimer les e-mails invalides.",
|
|
3983
3997
|
minOneEmail: "Veuillez saisir au moins une adresse e-mail.",
|
|
@@ -3991,6 +4005,7 @@ var fr = {
|
|
|
3991
4005
|
helpers: helpers,
|
|
3992
4006
|
metaNames: metaNames,
|
|
3993
4007
|
placeholders: placeholders,
|
|
4008
|
+
tooltips: tooltips,
|
|
3994
4009
|
validations: validations
|
|
3995
4010
|
};
|
|
3996
4011
|
|
|
@@ -4095,7 +4110,7 @@ var Subscribable = /*#__PURE__*/function () {
|
|
|
4095
4110
|
// TYPES
|
|
4096
4111
|
// UTILS
|
|
4097
4112
|
var isServer = typeof window === 'undefined';
|
|
4098
|
-
function noop$
|
|
4113
|
+
function noop$3() {
|
|
4099
4114
|
return undefined;
|
|
4100
4115
|
}
|
|
4101
4116
|
function functionalUpdate(updater, input) {
|
|
@@ -4958,7 +4973,7 @@ var Query = /*#__PURE__*/function () {
|
|
|
4958
4973
|
|
|
4959
4974
|
var promise = this.promise;
|
|
4960
4975
|
(_this$retryer = this.retryer) == null ? void 0 : _this$retryer.cancel(options);
|
|
4961
|
-
return promise ? promise.then(noop$
|
|
4976
|
+
return promise ? promise.then(noop$3).catch(noop$3) : Promise.resolve();
|
|
4962
4977
|
};
|
|
4963
4978
|
|
|
4964
4979
|
_proto.destroy = function destroy() {
|
|
@@ -5532,7 +5547,7 @@ var Mutation = /*#__PURE__*/function () {
|
|
|
5532
5547
|
_proto.cancel = function cancel() {
|
|
5533
5548
|
if (this.retryer) {
|
|
5534
5549
|
this.retryer.cancel();
|
|
5535
|
-
return this.retryer.promise.then(noop$
|
|
5550
|
+
return this.retryer.promise.then(noop$3).catch(noop$3);
|
|
5536
5551
|
}
|
|
5537
5552
|
|
|
5538
5553
|
return Promise.resolve();
|
|
@@ -5821,7 +5836,7 @@ var MutationCache = /*#__PURE__*/function (_Subscribable) {
|
|
|
5821
5836
|
return notifyManager.batch(function () {
|
|
5822
5837
|
return pausedMutations.reduce(function (promise, mutation) {
|
|
5823
5838
|
return promise.then(function () {
|
|
5824
|
-
return mutation.continue().catch(noop$
|
|
5839
|
+
return mutation.continue().catch(noop$3);
|
|
5825
5840
|
});
|
|
5826
5841
|
}, Promise.resolve());
|
|
5827
5842
|
});
|
|
@@ -6104,7 +6119,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6104
6119
|
return query.cancel(cancelOptions);
|
|
6105
6120
|
});
|
|
6106
6121
|
});
|
|
6107
|
-
return Promise.all(promises).then(noop$
|
|
6122
|
+
return Promise.all(promises).then(noop$3).catch(noop$3);
|
|
6108
6123
|
};
|
|
6109
6124
|
|
|
6110
6125
|
_proto.invalidateQueries = function invalidateQueries(arg1, arg2, arg3) {
|
|
@@ -6149,10 +6164,10 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6149
6164
|
}));
|
|
6150
6165
|
});
|
|
6151
6166
|
});
|
|
6152
|
-
var promise = Promise.all(promises).then(noop$
|
|
6167
|
+
var promise = Promise.all(promises).then(noop$3);
|
|
6153
6168
|
|
|
6154
6169
|
if (!(options == null ? void 0 : options.throwOnError)) {
|
|
6155
|
-
promise = promise.catch(noop$
|
|
6170
|
+
promise = promise.catch(noop$3);
|
|
6156
6171
|
}
|
|
6157
6172
|
|
|
6158
6173
|
return promise;
|
|
@@ -6171,7 +6186,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6171
6186
|
};
|
|
6172
6187
|
|
|
6173
6188
|
_proto.prefetchQuery = function prefetchQuery(arg1, arg2, arg3) {
|
|
6174
|
-
return this.fetchQuery(arg1, arg2, arg3).then(noop$
|
|
6189
|
+
return this.fetchQuery(arg1, arg2, arg3).then(noop$3).catch(noop$3);
|
|
6175
6190
|
};
|
|
6176
6191
|
|
|
6177
6192
|
_proto.fetchInfiniteQuery = function fetchInfiniteQuery(arg1, arg2, arg3) {
|
|
@@ -6181,7 +6196,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6181
6196
|
};
|
|
6182
6197
|
|
|
6183
6198
|
_proto.prefetchInfiniteQuery = function prefetchInfiniteQuery(arg1, arg2, arg3) {
|
|
6184
|
-
return this.fetchInfiniteQuery(arg1, arg2, arg3).then(noop$
|
|
6199
|
+
return this.fetchInfiniteQuery(arg1, arg2, arg3).then(noop$3).catch(noop$3);
|
|
6185
6200
|
};
|
|
6186
6201
|
|
|
6187
6202
|
_proto.cancelMutations = function cancelMutations() {
|
|
@@ -6192,7 +6207,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6192
6207
|
return mutation.cancel();
|
|
6193
6208
|
});
|
|
6194
6209
|
});
|
|
6195
|
-
return Promise.all(promises).then(noop$
|
|
6210
|
+
return Promise.all(promises).then(noop$3).catch(noop$3);
|
|
6196
6211
|
};
|
|
6197
6212
|
|
|
6198
6213
|
_proto.resumePausedMutations = function resumePausedMutations() {
|
|
@@ -6496,7 +6511,7 @@ var QueryObserver = /*#__PURE__*/function (_Subscribable) {
|
|
|
6496
6511
|
var promise = this.currentQuery.fetch(this.options, fetchOptions);
|
|
6497
6512
|
|
|
6498
6513
|
if (!(fetchOptions == null ? void 0 : fetchOptions.throwOnError)) {
|
|
6499
|
-
promise = promise.catch(noop$
|
|
6514
|
+
promise = promise.catch(noop$3);
|
|
6500
6515
|
}
|
|
6501
6516
|
|
|
6502
6517
|
return promise;
|
|
@@ -7088,7 +7103,7 @@ function useMutation(arg1, arg2, arg3) {
|
|
|
7088
7103
|
};
|
|
7089
7104
|
}, []);
|
|
7090
7105
|
var mutate = React.useCallback(function (variables, mutateOptions) {
|
|
7091
|
-
obsRef.current.mutate(variables, mutateOptions).catch(noop$
|
|
7106
|
+
obsRef.current.mutate(variables, mutateOptions).catch(noop$3);
|
|
7092
7107
|
}, []);
|
|
7093
7108
|
|
|
7094
7109
|
if (currentResult.error && shouldThrowError(undefined, obsRef.current.options.useErrorBoundary, [currentResult.error])) {
|
|
@@ -7743,31 +7758,31 @@ var _default = function (file, acceptedFiles) {
|
|
|
7743
7758
|
return true;
|
|
7744
7759
|
};
|
|
7745
7760
|
|
|
7746
|
-
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$
|
|
7761
|
+
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1(); }
|
|
7747
7762
|
|
|
7748
7763
|
function _nonIterableSpread$1() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7749
7764
|
|
|
7750
7765
|
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7751
7766
|
|
|
7752
|
-
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
7767
|
+
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$3(arr); }
|
|
7753
7768
|
|
|
7754
|
-
function ownKeys$
|
|
7769
|
+
function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7755
7770
|
|
|
7756
|
-
function _objectSpread$
|
|
7771
|
+
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7757
7772
|
|
|
7758
|
-
function _defineProperty$
|
|
7773
|
+
function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7759
7774
|
|
|
7760
|
-
function _slicedToArray$
|
|
7775
|
+
function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3(); }
|
|
7761
7776
|
|
|
7762
|
-
function _nonIterableRest$
|
|
7777
|
+
function _nonIterableRest$3() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7763
7778
|
|
|
7764
|
-
function _unsupportedIterableToArray$
|
|
7779
|
+
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
7765
7780
|
|
|
7766
|
-
function _arrayLikeToArray$
|
|
7781
|
+
function _arrayLikeToArray$3(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
7767
7782
|
|
|
7768
|
-
function _iterableToArrayLimit$
|
|
7783
|
+
function _iterableToArrayLimit$3(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
7769
7784
|
|
|
7770
|
-
function _arrayWithHoles$
|
|
7785
|
+
function _arrayWithHoles$3(arr) { if (Array.isArray(arr)) return arr; }
|
|
7771
7786
|
|
|
7772
7787
|
var FILE_INVALID_TYPE = "file-invalid-type";
|
|
7773
7788
|
var FILE_TOO_LARGE = "file-too-large";
|
|
@@ -7847,11 +7862,11 @@ function allFilesAccepted(_ref) {
|
|
|
7847
7862
|
|
|
7848
7863
|
return files.every(function (file) {
|
|
7849
7864
|
var _fileAccepted = fileAccepted(file, accept),
|
|
7850
|
-
_fileAccepted2 = _slicedToArray$
|
|
7865
|
+
_fileAccepted2 = _slicedToArray$3(_fileAccepted, 1),
|
|
7851
7866
|
accepted = _fileAccepted2[0];
|
|
7852
7867
|
|
|
7853
7868
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
|
|
7854
|
-
_fileMatchSize2 = _slicedToArray$
|
|
7869
|
+
_fileMatchSize2 = _slicedToArray$3(_fileMatchSize, 1),
|
|
7855
7870
|
sizeMatch = _fileMatchSize2[0];
|
|
7856
7871
|
|
|
7857
7872
|
var customErrors = validator ? validator(file) : null;
|
|
@@ -7948,7 +7963,7 @@ function canUseFileSystemAccessAPI() {
|
|
|
7948
7963
|
function pickerOptionsFromAccept(accept) {
|
|
7949
7964
|
if (isDefined(accept)) {
|
|
7950
7965
|
var acceptForPicker = Object.entries(accept).filter(function (_ref2) {
|
|
7951
|
-
var _ref3 = _slicedToArray$
|
|
7966
|
+
var _ref3 = _slicedToArray$3(_ref2, 2),
|
|
7952
7967
|
mimeType = _ref3[0],
|
|
7953
7968
|
ext = _ref3[1];
|
|
7954
7969
|
|
|
@@ -7966,11 +7981,11 @@ function pickerOptionsFromAccept(accept) {
|
|
|
7966
7981
|
|
|
7967
7982
|
return ok;
|
|
7968
7983
|
}).reduce(function (agg, _ref4) {
|
|
7969
|
-
var _ref5 = _slicedToArray$
|
|
7984
|
+
var _ref5 = _slicedToArray$3(_ref4, 2),
|
|
7970
7985
|
mimeType = _ref5[0],
|
|
7971
7986
|
ext = _ref5[1];
|
|
7972
7987
|
|
|
7973
|
-
return _objectSpread$
|
|
7988
|
+
return _objectSpread$9(_objectSpread$9({}, agg), {}, _defineProperty$2({}, mimeType, ext));
|
|
7974
7989
|
}, {});
|
|
7975
7990
|
return [{
|
|
7976
7991
|
accept: acceptForPicker
|
|
@@ -7988,7 +8003,7 @@ function pickerOptionsFromAccept(accept) {
|
|
|
7988
8003
|
function acceptPropAsAcceptAttr(accept) {
|
|
7989
8004
|
if (isDefined(accept)) {
|
|
7990
8005
|
return Object.entries(accept).reduce(function (a, _ref6) {
|
|
7991
|
-
var _ref7 = _slicedToArray$
|
|
8006
|
+
var _ref7 = _slicedToArray$3(_ref6, 2),
|
|
7992
8007
|
mimeType = _ref7[0],
|
|
7993
8008
|
ext = _ref7[1];
|
|
7994
8009
|
|
|
@@ -8061,31 +8076,31 @@ var _excluded$3 = ["children"],
|
|
|
8061
8076
|
_excluded3$1 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"],
|
|
8062
8077
|
_excluded4 = ["refKey", "onChange", "onClick"];
|
|
8063
8078
|
|
|
8064
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8079
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread(); }
|
|
8065
8080
|
|
|
8066
8081
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8067
8082
|
|
|
8068
8083
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8069
8084
|
|
|
8070
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8085
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
8071
8086
|
|
|
8072
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8087
|
+
function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2(); }
|
|
8073
8088
|
|
|
8074
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8089
|
+
function _nonIterableRest$2() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8075
8090
|
|
|
8076
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
8091
|
+
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
8077
8092
|
|
|
8078
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8093
|
+
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8079
8094
|
|
|
8080
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8095
|
+
function _iterableToArrayLimit$2(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
8081
8096
|
|
|
8082
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8097
|
+
function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
|
|
8083
8098
|
|
|
8084
|
-
function ownKeys$
|
|
8099
|
+
function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8085
8100
|
|
|
8086
|
-
function _objectSpread$
|
|
8101
|
+
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8087
8102
|
|
|
8088
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8103
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8089
8104
|
|
|
8090
8105
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8091
8106
|
|
|
@@ -8119,7 +8134,7 @@ var Dropzone = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
8119
8134
|
};
|
|
8120
8135
|
}, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element
|
|
8121
8136
|
|
|
8122
|
-
return /*#__PURE__*/React.createElement(Fragment, null, children(_objectSpread$
|
|
8137
|
+
return /*#__PURE__*/React.createElement(Fragment, null, children(_objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
8123
8138
|
open: open
|
|
8124
8139
|
})));
|
|
8125
8140
|
});
|
|
@@ -8492,7 +8507,7 @@ var initialState = {
|
|
|
8492
8507
|
function useDropzone() {
|
|
8493
8508
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8494
8509
|
|
|
8495
|
-
var _defaultProps$props = _objectSpread$
|
|
8510
|
+
var _defaultProps$props = _objectSpread$8(_objectSpread$8({}, defaultProps), props),
|
|
8496
8511
|
accept = _defaultProps$props.accept,
|
|
8497
8512
|
disabled = _defaultProps$props.disabled,
|
|
8498
8513
|
getFilesFromEvent = _defaultProps$props.getFilesFromEvent,
|
|
@@ -8525,10 +8540,10 @@ function useDropzone() {
|
|
|
8525
8540
|
return pickerOptionsFromAccept(accept);
|
|
8526
8541
|
}, [accept]);
|
|
8527
8542
|
var onFileDialogOpenCb = useMemo(function () {
|
|
8528
|
-
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$
|
|
8543
|
+
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$2;
|
|
8529
8544
|
}, [onFileDialogOpen]);
|
|
8530
8545
|
var onFileDialogCancelCb = useMemo(function () {
|
|
8531
|
-
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop$
|
|
8546
|
+
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop$2;
|
|
8532
8547
|
}, [onFileDialogCancel]);
|
|
8533
8548
|
/**
|
|
8534
8549
|
* @constant
|
|
@@ -8539,7 +8554,7 @@ function useDropzone() {
|
|
|
8539
8554
|
var inputRef = useRef(null);
|
|
8540
8555
|
|
|
8541
8556
|
var _useReducer = useReducer(reducer, initialState),
|
|
8542
|
-
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
8557
|
+
_useReducer2 = _slicedToArray$2(_useReducer, 2),
|
|
8543
8558
|
state = _useReducer2[0],
|
|
8544
8559
|
dispatch = _useReducer2[1];
|
|
8545
8560
|
|
|
@@ -8709,12 +8724,12 @@ function useDropzone() {
|
|
|
8709
8724
|
var fileRejections = [];
|
|
8710
8725
|
files.forEach(function (file) {
|
|
8711
8726
|
var _fileAccepted = fileAccepted(file, acceptAttr),
|
|
8712
|
-
_fileAccepted2 = _slicedToArray(_fileAccepted, 2),
|
|
8727
|
+
_fileAccepted2 = _slicedToArray$2(_fileAccepted, 2),
|
|
8713
8728
|
accepted = _fileAccepted2[0],
|
|
8714
8729
|
acceptError = _fileAccepted2[1];
|
|
8715
8730
|
|
|
8716
8731
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
|
|
8717
|
-
_fileMatchSize2 = _slicedToArray(_fileMatchSize, 2),
|
|
8732
|
+
_fileMatchSize2 = _slicedToArray$2(_fileMatchSize, 2),
|
|
8718
8733
|
sizeMatch = _fileMatchSize2[0],
|
|
8719
8734
|
sizeError = _fileMatchSize2[1];
|
|
8720
8735
|
|
|
@@ -8917,7 +8932,7 @@ function useDropzone() {
|
|
|
8917
8932
|
onDrop = _ref2.onDrop,
|
|
8918
8933
|
rest = _objectWithoutProperties(_ref2, _excluded3$1);
|
|
8919
8934
|
|
|
8920
|
-
return _objectSpread$
|
|
8935
|
+
return _objectSpread$8(_objectSpread$8(_defineProperty$1({
|
|
8921
8936
|
onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
|
|
8922
8937
|
onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
|
|
8923
8938
|
onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
|
|
@@ -8944,7 +8959,7 @@ function useDropzone() {
|
|
|
8944
8959
|
onClick = _ref3.onClick,
|
|
8945
8960
|
rest = _objectWithoutProperties(_ref3, _excluded4);
|
|
8946
8961
|
|
|
8947
|
-
var inputProps = _defineProperty({
|
|
8962
|
+
var inputProps = _defineProperty$1({
|
|
8948
8963
|
accept: acceptAttr,
|
|
8949
8964
|
multiple: multiple,
|
|
8950
8965
|
type: "file",
|
|
@@ -8956,10 +8971,10 @@ function useDropzone() {
|
|
|
8956
8971
|
tabIndex: -1
|
|
8957
8972
|
}, refKey, inputRef);
|
|
8958
8973
|
|
|
8959
|
-
return _objectSpread$
|
|
8974
|
+
return _objectSpread$8(_objectSpread$8({}, inputProps), rest);
|
|
8960
8975
|
};
|
|
8961
8976
|
}, [inputRef, accept, multiple, onDropCb, disabled]);
|
|
8962
|
-
return _objectSpread$
|
|
8977
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
8963
8978
|
isFocused: isFocused && !disabled,
|
|
8964
8979
|
getRootProps: getRootProps,
|
|
8965
8980
|
getInputProps: getInputProps,
|
|
@@ -8978,47 +8993,47 @@ function reducer(state, action) {
|
|
|
8978
8993
|
/* istanbul ignore next */
|
|
8979
8994
|
switch (action.type) {
|
|
8980
8995
|
case "focus":
|
|
8981
|
-
return _objectSpread$
|
|
8996
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
8982
8997
|
isFocused: true
|
|
8983
8998
|
});
|
|
8984
8999
|
|
|
8985
9000
|
case "blur":
|
|
8986
|
-
return _objectSpread$
|
|
9001
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
8987
9002
|
isFocused: false
|
|
8988
9003
|
});
|
|
8989
9004
|
|
|
8990
9005
|
case "openDialog":
|
|
8991
|
-
return _objectSpread$
|
|
9006
|
+
return _objectSpread$8(_objectSpread$8({}, initialState), {}, {
|
|
8992
9007
|
isFileDialogActive: true
|
|
8993
9008
|
});
|
|
8994
9009
|
|
|
8995
9010
|
case "closeDialog":
|
|
8996
|
-
return _objectSpread$
|
|
9011
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
8997
9012
|
isFileDialogActive: false
|
|
8998
9013
|
});
|
|
8999
9014
|
|
|
9000
9015
|
case "setDraggedFiles":
|
|
9001
|
-
return _objectSpread$
|
|
9016
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9002
9017
|
isDragActive: action.isDragActive,
|
|
9003
9018
|
isDragAccept: action.isDragAccept,
|
|
9004
9019
|
isDragReject: action.isDragReject
|
|
9005
9020
|
});
|
|
9006
9021
|
|
|
9007
9022
|
case "setFiles":
|
|
9008
|
-
return _objectSpread$
|
|
9023
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9009
9024
|
acceptedFiles: action.acceptedFiles,
|
|
9010
9025
|
fileRejections: action.fileRejections
|
|
9011
9026
|
});
|
|
9012
9027
|
|
|
9013
9028
|
case "reset":
|
|
9014
|
-
return _objectSpread$
|
|
9029
|
+
return _objectSpread$8({}, initialState);
|
|
9015
9030
|
|
|
9016
9031
|
default:
|
|
9017
9032
|
return state;
|
|
9018
9033
|
}
|
|
9019
9034
|
}
|
|
9020
9035
|
|
|
9021
|
-
function noop$
|
|
9036
|
+
function noop$2() {}
|
|
9022
9037
|
|
|
9023
9038
|
const Uploader = _ref => {
|
|
9024
9039
|
let sampleFileUrl = _ref.sampleFileUrl,
|
|
@@ -9173,9 +9188,56 @@ const Csv = _ref => {
|
|
|
9173
9188
|
}, /*#__PURE__*/React.createElement(Uploads, null)));
|
|
9174
9189
|
};
|
|
9175
9190
|
|
|
9176
|
-
|
|
9191
|
+
var dist$1 = {exports: {}};
|
|
9192
|
+
|
|
9193
|
+
(function (module, exports) {
|
|
9194
|
+
!function(e,t){module.exports=t(React);}("undefined"!=typeof self?self:commonjsGlobal,function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n});},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0});},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=3)}([function(t,r){t.exports=e;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Validate=t.Time=void 0;var n=u(r(5)),o=u(r(6));function u(e){return e&&e.__esModule?e:{default:e}}t.Time=n.default,t.Validate=o.default;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useInterval=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(r(7));t.useInterval=n.default;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useTime=t.useStopwatch=t.useTimer=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e};t.default=function(e){if((0, o.useEffect)(function(){console.warn("react-timer-hook: default export useTimer is deprecated, use named exports { useTimer, useStopwatch, useTime } instead");},[]),e.expiryTimestamp){var t=(0, u.default)(e);return n({},t,{startTimer:t.start,stopTimer:t.pause,resetTimer:function(){}})}var r=(0, i.default)(e);return n({},r,{startTimer:r.start,stopTimer:r.pause,resetTimer:r.reset})};var o=r(0),u=c(r(4)),i=c(r(8)),a=c(r(9));function c(e){return e&&e.__esModule?e:{default:e}}t.useTimer=u.default,t.useStopwatch=i.default,t.useTime=a.default;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e;}finally{try{!n&&a.return&&a.return();}finally{if(o)throw u}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(e){var t=e.expiryTimestamp,r=e.onExpire,s=e.autoStart,l=void 0===s||s,d=(0, u.useState)(t),m=o(d,2),v=m[0],p=m[1],y=(0, u.useState)(i.Time.getSecondsFromExpiry(v)),T=o(y,2),g=T[0],b=T[1],h=(0, u.useState)(l),S=o(h,2),w=S[0],O=S[1],j=(0, u.useState)(l),x=o(j,2),_=x[0],M=x[1],P=(0, u.useState)(f(v)),F=o(P,2),E=F[0],k=F[1];function I(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];k(f(e)),M(t),O(t),p(e),b(i.Time.getSecondsFromExpiry(e));}function D(){var e=new Date;e.setMilliseconds(e.getMilliseconds()+1e3*g),I(e);}return (0, a.useInterval)(function(){E!==c&&k(c);var e=i.Time.getSecondsFromExpiry(v);b(e),e<=0&&(i.Validate.onExpire(r)&&r(),O(!1),k(null));},w?E:null),n({},i.Time.getTimeFromSeconds(g),{start:function(){_?(b(i.Time.getSecondsFromExpiry(v)),O(!0)):D();},pause:function(){O(!1);},resume:D,restart:I,isRunning:w})};var u=r(0),i=r(1),a=r(2),c=1e3;function f(e){if(!i.Validate.expiryTimestamp(e))return null;var t=i.Time.getSecondsFromExpiry(e),r=Math.floor(1e3*(t-Math.floor(t)));return r>0?r:c}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);}return n(e,null,[{key:"getTimeFromSeconds",value:function(e){var t=Math.ceil(e),r=Math.floor(t/86400),n=Math.floor(t%86400/3600),o=Math.floor(t%3600/60);return {seconds:Math.floor(t%60),minutes:o,hours:n,days:r}}},{key:"getSecondsFromExpiry",value:function(e,t){var r=e-(new Date).getTime();if(r>0){var n=r/1e3;return t?Math.round(n):n}return 0}},{key:"getSecondsFromPrevTime",value:function(e,t){var r=(new Date).getTime()-e;if(r>0){var n=r/1e3;return t?Math.round(n):n}return 0}},{key:"getSecondsFromTimeNow",value:function(){var e=new Date;return e.getTime()/1e3-60*e.getTimezoneOffset()}},{key:"getFormattedTimeFromSeconds",value:function(t,r){var n=e.getTimeFromSeconds(t),o=n.seconds,u=n.minutes,i=n.hours,a="",c=i;return "12-hour"===r&&(a=i>=12?"pm":"am",c=i%12),{seconds:o,minutes:u,hours:c,ampm:a}}}]),e}();t.default=o;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n);}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);}return n(e,null,[{key:"expiryTimestamp",value:function(e){var t=new Date(e).getTime()>0;return t||console.warn("react-timer-hook: { useTimer } Invalid expiryTimestamp settings",e),t}},{key:"onExpire",value:function(e){var t=e&&"function"==typeof e;return e&&!t&&console.warn("react-timer-hook: { useTimer } Invalid onExpire settings function",e),t}}]),e}();t.default=o;},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(0, n.useRef)();(0, n.useEffect)(function(){r.current=e;}),(0, n.useEffect)(function(){if(!t)return function(){};var e=setInterval(function(){r.current&&r.current();},t);return function(){return clearInterval(e)}},[t]);};var n=r(0);},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e;}finally{try{!n&&a.return&&a.return();}finally{if(o)throw u}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(e){var t=e.autoStart,r=e.offsetTimestamp,c=(0, u.useState)(i.Time.getSecondsFromExpiry(r,!0)||0),f=o(c,2),s=f[0],l=f[1],d=(0, u.useState)(new Date),m=o(d,2),v=m[0],p=m[1],y=(0, u.useState)(s+i.Time.getSecondsFromPrevTime(v||0,!0)),T=o(y,2),g=T[0],b=T[1],h=(0, u.useState)(t),S=o(h,2),w=S[0],O=S[1];return (0, a.useInterval)(function(){b(s+i.Time.getSecondsFromPrevTime(v,!0));},w?1e3:null),n({},i.Time.getTimeFromSeconds(g),{start:function(){var e=new Date;p(e),O(!0),b(s+i.Time.getSecondsFromPrevTime(e,!0));},pause:function(){l(g),O(!1);},reset:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=i.Time.getSecondsFromExpiry(e,!0)||0,n=new Date;p(n),l(r),O(t),b(r+i.Time.getSecondsFromPrevTime(n,!0));},isRunning:w})};var u=r(0),i=r(1),a=r(2);},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},o=function(){return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,u=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,u=e;}finally{try{!n&&a.return&&a.return();}finally{if(o)throw u}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();t.default=function(e){var t=e.format,r=(0, u.useState)(i.Time.getSecondsFromTimeNow()),c=o(r,2),f=c[0],s=c[1];return (0, a.useInterval)(function(){s(i.Time.getSecondsFromTimeNow());},1e3),n({},i.Time.getFormattedTimeFromSeconds(f,t))};var u=r(0),i=r(1),a=r(2);}])});
|
|
9195
|
+
} (dist$1));
|
|
9196
|
+
|
|
9197
|
+
const DEFAULT_INVITATION_TIME = 1000 * 60 * 60; // 1 hour
|
|
9198
|
+
|
|
9199
|
+
const getDefaultExpiryTime = () => {
|
|
9200
|
+
const now = new Date();
|
|
9201
|
+
return new Date(now.getTime() + DEFAULT_INVITATION_TIME);
|
|
9202
|
+
};
|
|
9203
|
+
const renderTime = time => {
|
|
9204
|
+
let timeString = "";
|
|
9205
|
+
Object.entries(time).forEach(_ref => {
|
|
9206
|
+
let _ref2 = _slicedToArray$4(_ref, 2),
|
|
9207
|
+
key = _ref2[0],
|
|
9208
|
+
value = _ref2[1];
|
|
9209
|
+
|
|
9210
|
+
timeString += "".concat(value).concat(key[0], " ");
|
|
9211
|
+
});
|
|
9212
|
+
return timeString;
|
|
9213
|
+
};
|
|
9214
|
+
|
|
9215
|
+
const Timer = _ref => {
|
|
9216
|
+
let expiryTimestamp = _ref.expiryTimestamp;
|
|
9217
|
+
|
|
9218
|
+
const _useTimer = dist$1.exports.useTimer({
|
|
9219
|
+
expiryTimestamp: expiryTimestamp !== null && expiryTimestamp !== void 0 ? expiryTimestamp : getDefaultExpiryTime()
|
|
9220
|
+
}),
|
|
9221
|
+
seconds = _useTimer.seconds,
|
|
9222
|
+
minutes = _useTimer.minutes,
|
|
9223
|
+
hours = _useTimer.hours,
|
|
9224
|
+
days = _useTimer.days;
|
|
9225
|
+
|
|
9226
|
+
return /*#__PURE__*/React.createElement(Typography, {
|
|
9227
|
+
style: "body2"
|
|
9228
|
+
}, renderTime({
|
|
9229
|
+
days,
|
|
9230
|
+
hours,
|
|
9231
|
+
minutes,
|
|
9232
|
+
seconds
|
|
9233
|
+
}));
|
|
9234
|
+
};
|
|
9235
|
+
|
|
9236
|
+
const InviteLink = _ref => {
|
|
9237
|
+
let inviteLinkProps = _ref.inviteLinkProps;
|
|
9238
|
+
|
|
9177
9239
|
const _useState = useState(false),
|
|
9178
|
-
_useState2 = _slicedToArray$
|
|
9240
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
9179
9241
|
isInviteLinkActive = _useState2[0],
|
|
9180
9242
|
setIsInviteLinkActive = _useState2[1];
|
|
9181
9243
|
|
|
@@ -9189,7 +9251,9 @@ const InviteLink = () => {
|
|
|
9189
9251
|
style: "body2"
|
|
9190
9252
|
}, instance.t("helpers.inviteLinkInstruction"))), isInviteLinkActive ? /*#__PURE__*/React.createElement("div", {
|
|
9191
9253
|
className: "ntm-invitations__invite-link-btns"
|
|
9192
|
-
}, /*#__PURE__*/React.createElement(
|
|
9254
|
+
}, /*#__PURE__*/React.createElement(Timer, {
|
|
9255
|
+
expiryTimestamp: inviteLinkProps.expiryTimestamp
|
|
9256
|
+
}), /*#__PURE__*/React.createElement(Button, {
|
|
9193
9257
|
size: "large",
|
|
9194
9258
|
style: "danger-text",
|
|
9195
9259
|
label: instance.t("common.delete"),
|
|
@@ -9212,7 +9276,8 @@ const Normal = _ref => {
|
|
|
9212
9276
|
submitButtonProps = _ref.submitButtonProps,
|
|
9213
9277
|
setIsCSVInviteSelected = _ref.setIsCSVInviteSelected,
|
|
9214
9278
|
isCSVInviteEnabled = _ref.isCSVInviteEnabled,
|
|
9215
|
-
isInviteLinkEnabled = _ref.isInviteLinkEnabled
|
|
9279
|
+
isInviteLinkEnabled = _ref.isInviteLinkEnabled,
|
|
9280
|
+
inviteLinkProps = _ref.inviteLinkProps;
|
|
9216
9281
|
|
|
9217
9282
|
const _useFormikContext = useFormikContext(),
|
|
9218
9283
|
isSubmitting = _useFormikContext.isSubmitting,
|
|
@@ -9254,10 +9319,12 @@ const Normal = _ref => {
|
|
|
9254
9319
|
className: classnames({
|
|
9255
9320
|
"ntm-invitations__footer": isInviteLinkEnabled
|
|
9256
9321
|
})
|
|
9257
|
-
}, isInviteLinkEnabled && /*#__PURE__*/React.createElement(InviteLink,
|
|
9322
|
+
}, isInviteLinkEnabled && /*#__PURE__*/React.createElement(InviteLink, {
|
|
9323
|
+
inviteLinkProps: inviteLinkProps
|
|
9324
|
+
})));
|
|
9258
9325
|
};
|
|
9259
9326
|
|
|
9260
|
-
const _excluded$2 = ["label", "isOpen", "onClose", "submitButtonProps", "csvColumns", "sampleFileUrl", "isCSVInviteEnabled", "isInviteLinkEnabled", "children"];
|
|
9327
|
+
const _excluded$2 = ["label", "isOpen", "onClose", "submitButtonProps", "csvColumns", "sampleFileUrl", "isCSVInviteEnabled", "isInviteLinkEnabled", "inviteLinkProps", "children"];
|
|
9261
9328
|
|
|
9262
9329
|
const Invitations = _ref => {
|
|
9263
9330
|
let _ref$label = _ref.label,
|
|
@@ -9276,11 +9343,13 @@ const Invitations = _ref => {
|
|
|
9276
9343
|
isCSVInviteEnabled = _ref$isCSVInviteEnabl === void 0 ? true : _ref$isCSVInviteEnabl,
|
|
9277
9344
|
_ref$isInviteLinkEnab = _ref.isInviteLinkEnabled,
|
|
9278
9345
|
isInviteLinkEnabled = _ref$isInviteLinkEnab === void 0 ? true : _ref$isInviteLinkEnab,
|
|
9346
|
+
_ref$inviteLinkProps = _ref.inviteLinkProps,
|
|
9347
|
+
inviteLinkProps = _ref$inviteLinkProps === void 0 ? {} : _ref$inviteLinkProps,
|
|
9279
9348
|
children = _ref.children,
|
|
9280
9349
|
otherProps = _objectWithoutProperties$1(_ref, _excluded$2);
|
|
9281
9350
|
|
|
9282
9351
|
const _useState = useState(false),
|
|
9283
|
-
_useState2 = _slicedToArray$
|
|
9352
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
9284
9353
|
isCSVInviteSelected = _useState2[0],
|
|
9285
9354
|
setIsCSVInviteSelected = _useState2[1];
|
|
9286
9355
|
|
|
@@ -9310,7 +9379,8 @@ const Invitations = _ref => {
|
|
|
9310
9379
|
submitButtonProps: submitButtonProps,
|
|
9311
9380
|
setIsCSVInviteSelected: setIsCSVInviteSelected,
|
|
9312
9381
|
isCSVInviteEnabled: isCSVInviteEnabled,
|
|
9313
|
-
isInviteLinkEnabled: isInviteLinkEnabled
|
|
9382
|
+
isInviteLinkEnabled: isInviteLinkEnabled,
|
|
9383
|
+
inviteLinkProps: isInviteLinkEnabled && inviteLinkProps
|
|
9314
9384
|
}, children)))));
|
|
9315
9385
|
};
|
|
9316
9386
|
|
|
@@ -9333,19 +9403,243 @@ const QUERY_KEYS = {
|
|
|
9333
9403
|
PERMISSIONS: "permissions"
|
|
9334
9404
|
};
|
|
9335
9405
|
|
|
9336
|
-
function ownKeys$
|
|
9406
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9337
9407
|
|
|
9338
|
-
function _objectSpread$
|
|
9408
|
+
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9339
9409
|
|
|
9340
9410
|
const useFetchPermissions = function () {
|
|
9341
9411
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9342
|
-
return useQuery(QUERY_KEYS.PERMISSIONS, permissionsApi.fetch, _objectSpread$
|
|
9412
|
+
return useQuery(QUERY_KEYS.PERMISSIONS, permissionsApi.fetch, _objectSpread$7({
|
|
9343
9413
|
staleTime: DEFAULT_STALE_TIME,
|
|
9344
9414
|
select: response => response.permissions || response.data.permissions,
|
|
9345
9415
|
enabled: hasPermission(MANAGE_MEMBER_PERMISSIONS)
|
|
9346
9416
|
}, options));
|
|
9347
9417
|
};
|
|
9348
9418
|
|
|
9419
|
+
function _arrayWithHoles$1(arr) {
|
|
9420
|
+
if (Array.isArray(arr)) return arr;
|
|
9421
|
+
}
|
|
9422
|
+
|
|
9423
|
+
function _iterableToArrayLimit$1(arr, i) {
|
|
9424
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9425
|
+
|
|
9426
|
+
if (_i == null) return;
|
|
9427
|
+
var _arr = [];
|
|
9428
|
+
var _n = true;
|
|
9429
|
+
var _d = false;
|
|
9430
|
+
|
|
9431
|
+
var _s, _e;
|
|
9432
|
+
|
|
9433
|
+
try {
|
|
9434
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
9435
|
+
_arr.push(_s.value);
|
|
9436
|
+
|
|
9437
|
+
if (i && _arr.length === i) break;
|
|
9438
|
+
}
|
|
9439
|
+
} catch (err) {
|
|
9440
|
+
_d = true;
|
|
9441
|
+
_e = err;
|
|
9442
|
+
} finally {
|
|
9443
|
+
try {
|
|
9444
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
9445
|
+
} finally {
|
|
9446
|
+
if (_d) throw _e;
|
|
9447
|
+
}
|
|
9448
|
+
}
|
|
9449
|
+
|
|
9450
|
+
return _arr;
|
|
9451
|
+
}
|
|
9452
|
+
|
|
9453
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
9454
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
9455
|
+
|
|
9456
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
9457
|
+
arr2[i] = arr[i];
|
|
9458
|
+
}
|
|
9459
|
+
|
|
9460
|
+
return arr2;
|
|
9461
|
+
}
|
|
9462
|
+
|
|
9463
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
9464
|
+
if (!o) return;
|
|
9465
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
9466
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9467
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9468
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
9469
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
9470
|
+
}
|
|
9471
|
+
|
|
9472
|
+
function _nonIterableRest$1() {
|
|
9473
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9474
|
+
}
|
|
9475
|
+
|
|
9476
|
+
function _slicedToArray$1(arr, i) {
|
|
9477
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
|
|
9478
|
+
}
|
|
9479
|
+
|
|
9480
|
+
function _typeof$1(obj) {
|
|
9481
|
+
"@babel/helpers - typeof";
|
|
9482
|
+
|
|
9483
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
9484
|
+
return typeof obj;
|
|
9485
|
+
} : function (obj) {
|
|
9486
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9487
|
+
}, _typeof$1(obj);
|
|
9488
|
+
}
|
|
9489
|
+
var matches = curry(function (pattern, object) {
|
|
9490
|
+
var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
9491
|
+
|
|
9492
|
+
if (object === pattern) return true;
|
|
9493
|
+
if (typeof pattern === "function" && pattern(object, __parent)) return true;
|
|
9494
|
+
if (isNil(pattern) || isNil(object)) return false;
|
|
9495
|
+
if (_typeof$1(pattern) !== "object") return false;
|
|
9496
|
+
return Object.entries(pattern).every(function (_ref5) {
|
|
9497
|
+
var _ref6 = _slicedToArray$1(_ref5, 2),
|
|
9498
|
+
key = _ref6[0],
|
|
9499
|
+
value = _ref6[1];
|
|
9500
|
+
|
|
9501
|
+
return matches(value, object[key], __parent);
|
|
9502
|
+
});
|
|
9503
|
+
});
|
|
9504
|
+
|
|
9505
|
+
function _defineProperty(obj, key, value) {
|
|
9506
|
+
if (key in obj) {
|
|
9507
|
+
Object.defineProperty(obj, key, {
|
|
9508
|
+
value: value,
|
|
9509
|
+
enumerable: true,
|
|
9510
|
+
configurable: true,
|
|
9511
|
+
writable: true
|
|
9512
|
+
});
|
|
9513
|
+
} else {
|
|
9514
|
+
obj[key] = value;
|
|
9515
|
+
}
|
|
9516
|
+
|
|
9517
|
+
return obj;
|
|
9518
|
+
}
|
|
9519
|
+
|
|
9520
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9521
|
+
|
|
9522
|
+
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9523
|
+
curry(function (id, array) {
|
|
9524
|
+
return array.filter(function (item) {
|
|
9525
|
+
return item.id !== id;
|
|
9526
|
+
});
|
|
9527
|
+
});
|
|
9528
|
+
curry(function (id, array) {
|
|
9529
|
+
return array.find(function (item) {
|
|
9530
|
+
return item.id === id;
|
|
9531
|
+
});
|
|
9532
|
+
});
|
|
9533
|
+
curry(function (id, newItem, array) {
|
|
9534
|
+
return array.map(function (item) {
|
|
9535
|
+
return item.id === id ? newItem : item;
|
|
9536
|
+
});
|
|
9537
|
+
});
|
|
9538
|
+
curry(function (id, modifier, array) {
|
|
9539
|
+
return array.map(function (item) {
|
|
9540
|
+
return item.id === id ? modifier(item) : item;
|
|
9541
|
+
});
|
|
9542
|
+
});
|
|
9543
|
+
curry(function (pattern, array) {
|
|
9544
|
+
return array.find(matches(pattern));
|
|
9545
|
+
});
|
|
9546
|
+
curry(function (pattern, array) {
|
|
9547
|
+
return array.filter(complement(matches(pattern)));
|
|
9548
|
+
});
|
|
9549
|
+
curry(function (pattern, newItem, array) {
|
|
9550
|
+
return array.map(function (item) {
|
|
9551
|
+
return matches(pattern, item) ? newItem : item;
|
|
9552
|
+
});
|
|
9553
|
+
});
|
|
9554
|
+
curry(function (pattern, modifier, array) {
|
|
9555
|
+
return array.map(function (item) {
|
|
9556
|
+
return matches(pattern, item) ? modifier(item) : item;
|
|
9557
|
+
});
|
|
9558
|
+
});
|
|
9559
|
+
curry(function (id, array) {
|
|
9560
|
+
return array.some(function (item) {
|
|
9561
|
+
return item.id === id;
|
|
9562
|
+
});
|
|
9563
|
+
});
|
|
9564
|
+
curry(function (pattern, array) {
|
|
9565
|
+
return array.some(matches(pattern));
|
|
9566
|
+
});
|
|
9567
|
+
curry(function (pattern, array) {
|
|
9568
|
+
return findLast(matches(pattern), array);
|
|
9569
|
+
});
|
|
9570
|
+
curry(function (id, array) {
|
|
9571
|
+
return array.findIndex(function (item) {
|
|
9572
|
+
return item.id === id;
|
|
9573
|
+
});
|
|
9574
|
+
});
|
|
9575
|
+
curry(function (pattern, array) {
|
|
9576
|
+
return array.findIndex(matches(pattern));
|
|
9577
|
+
});
|
|
9578
|
+
curry(function (pattern, array) {
|
|
9579
|
+
return findLastIndex(matches(pattern), array);
|
|
9580
|
+
});
|
|
9581
|
+
curry(function (pattern, array) {
|
|
9582
|
+
return array.filter(matches(pattern));
|
|
9583
|
+
});
|
|
9584
|
+
curry(function (pattern, array) {
|
|
9585
|
+
return count(matches(pattern), array);
|
|
9586
|
+
});
|
|
9587
|
+
curry(function (keyMap, objectArray) {
|
|
9588
|
+
return objectArray.map(function (object) {
|
|
9589
|
+
var shallowCopy = _objectSpread$6({}, object);
|
|
9590
|
+
|
|
9591
|
+
for (var source in keyMap) {
|
|
9592
|
+
shallowCopy[keyMap[source]] = object[source];
|
|
9593
|
+
}
|
|
9594
|
+
|
|
9595
|
+
return shallowCopy;
|
|
9596
|
+
});
|
|
9597
|
+
});
|
|
9598
|
+
curry(function (keyMap, objectArray) {
|
|
9599
|
+
return objectArray.map(function (object) {
|
|
9600
|
+
var shallowCopy = _objectSpread$6({}, object);
|
|
9601
|
+
|
|
9602
|
+
for (var source in keyMap) {
|
|
9603
|
+
shallowCopy[keyMap[source]] = object[source];
|
|
9604
|
+
delete shallowCopy[source];
|
|
9605
|
+
}
|
|
9606
|
+
|
|
9607
|
+
return shallowCopy;
|
|
9608
|
+
});
|
|
9609
|
+
});
|
|
9610
|
+
curry(function (keyMap, objectArray) {
|
|
9611
|
+
var copyKeysSingleObject = function copyKeysSingleObject(object, keyMap) {
|
|
9612
|
+
var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
9613
|
+
return _objectSpread$6(_objectSpread$6({}, object), fromPairs(toPairs(keyMap).map(function (_ref) {
|
|
9614
|
+
var _ref2 = _slicedToArray$1(_ref, 2),
|
|
9615
|
+
destination = _ref2[0],
|
|
9616
|
+
source = _ref2[1];
|
|
9617
|
+
|
|
9618
|
+
if (typeof source === "function") {
|
|
9619
|
+
return [destination, source(object[destination], root)];
|
|
9620
|
+
} else if (Array.isArray(source)) {
|
|
9621
|
+
return [destination, path$1(source, root)];
|
|
9622
|
+
} else if (_typeof$1(source) === "object") {
|
|
9623
|
+
return [destination, copyKeysSingleObject(object[destination], source, root)];
|
|
9624
|
+
}
|
|
9625
|
+
|
|
9626
|
+
return [destination, object[source]];
|
|
9627
|
+
})));
|
|
9628
|
+
};
|
|
9629
|
+
|
|
9630
|
+
return objectArray.map(function (object) {
|
|
9631
|
+
return copyKeysSingleObject(object, keyMap);
|
|
9632
|
+
});
|
|
9633
|
+
});
|
|
9634
|
+
|
|
9635
|
+
var noop$1 = function noop() {};
|
|
9636
|
+
complement(isNil);
|
|
9637
|
+
complement(isEmpty);
|
|
9638
|
+
curry(function (x, y) {
|
|
9639
|
+
return x !== y;
|
|
9640
|
+
});
|
|
9641
|
+
complement(equals);
|
|
9642
|
+
|
|
9349
9643
|
const fetch$1 = () => axios.get("".concat(BASE_URL, "/organization_roles"));
|
|
9350
9644
|
|
|
9351
9645
|
const create$1 = payload => axios.post("".concat(BASE_URL, "/organization_roles"), payload);
|
|
@@ -9369,7 +9663,7 @@ const _excluded$1 = ["onSuccess"],
|
|
|
9369
9663
|
|
|
9370
9664
|
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9371
9665
|
|
|
9372
|
-
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
9666
|
+
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9373
9667
|
|
|
9374
9668
|
const useFetchRoles = function () {
|
|
9375
9669
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -9425,7 +9719,7 @@ const useUpdateRole = _ref2 => {
|
|
|
9425
9719
|
|
|
9426
9720
|
const useDestroyRole = _ref4 => {
|
|
9427
9721
|
let _ref4$onSuccess = _ref4.onSuccess,
|
|
9428
|
-
onSuccess = _ref4$onSuccess === void 0 ? noop$
|
|
9722
|
+
onSuccess = _ref4$onSuccess === void 0 ? noop$1 : _ref4$onSuccess,
|
|
9429
9723
|
options = _objectWithoutProperties$1(_ref4, _excluded3);
|
|
9430
9724
|
|
|
9431
9725
|
return useMutation(_ref5 => {
|
|
@@ -10842,7 +11136,11 @@ const AddRoleButton = _ref => {
|
|
|
10842
11136
|
const _useTranslation = useTranslation(),
|
|
10843
11137
|
t = _useTranslation.t;
|
|
10844
11138
|
|
|
10845
|
-
return /*#__PURE__*/React.createElement(
|
|
11139
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
11140
|
+
content: t("tooltips.noPermissionToAddRole"),
|
|
11141
|
+
disabled: hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
11142
|
+
position: "bottom"
|
|
11143
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Button, {
|
|
10846
11144
|
icon: Plus,
|
|
10847
11145
|
size: "large",
|
|
10848
11146
|
label: t("common.add_", {
|
|
@@ -10851,7 +11149,7 @@ const AddRoleButton = _ref => {
|
|
|
10851
11149
|
onClick: onClick,
|
|
10852
11150
|
disabled: !hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
10853
11151
|
"data-cy": "new-role-button"
|
|
10854
|
-
});
|
|
11152
|
+
})));
|
|
10855
11153
|
};
|
|
10856
11154
|
|
|
10857
11155
|
const Header$1 = _ref => {
|
|
@@ -10958,7 +11256,7 @@ const Permissions = _ref => {
|
|
|
10958
11256
|
|
|
10959
11257
|
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
10960
11258
|
|
|
10961
|
-
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
11259
|
+
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10962
11260
|
|
|
10963
11261
|
const New = _ref => {
|
|
10964
11262
|
let isOpen = _ref.isOpen,
|
|
@@ -11193,6 +11491,10 @@ const Row = _ref => {
|
|
|
11193
11491
|
}, roles.map((role, index) => /*#__PURE__*/React.createElement("div", {
|
|
11194
11492
|
key: index,
|
|
11195
11493
|
className: "ntm-roles-table__cell"
|
|
11494
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
11495
|
+
content: instance.t("tooltips.editAdminRoleNotAllowed"),
|
|
11496
|
+
disabled: !identical(role.name, "Admin"),
|
|
11497
|
+
position: "top"
|
|
11196
11498
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11197
11499
|
className: "ntm-roles-table-cell__checkbox-wrapper"
|
|
11198
11500
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
@@ -11203,7 +11505,7 @@ const Row = _ref => {
|
|
|
11203
11505
|
let checked = _ref2.target.checked;
|
|
11204
11506
|
return handleSubmit(role, checked);
|
|
11205
11507
|
}
|
|
11206
|
-
})), /*#__PURE__*/React.createElement(Typography, {
|
|
11508
|
+
}))), /*#__PURE__*/React.createElement(Typography, {
|
|
11207
11509
|
style: "body2",
|
|
11208
11510
|
lineHeight: "normal"
|
|
11209
11511
|
}, permission === null || permission === void 0 ? void 0 : permission.description))));
|
|
@@ -11317,7 +11619,7 @@ const Delete = _ref => {
|
|
|
11317
11619
|
|
|
11318
11620
|
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11319
11621
|
|
|
11320
|
-
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
11622
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11321
11623
|
|
|
11322
11624
|
const Edit = _ref => {
|
|
11323
11625
|
let isOpen = _ref.isOpen,
|
|
@@ -11402,7 +11704,7 @@ const Columns = _ref => {
|
|
|
11402
11704
|
filteredGroupPermissions = _ref.filteredGroupPermissions;
|
|
11403
11705
|
|
|
11404
11706
|
const _useState = useState(DEFAULT_MANAGE_ROLE_VALUES),
|
|
11405
|
-
_useState2 = _slicedToArray$
|
|
11707
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
11406
11708
|
manageRole = _useState2[0],
|
|
11407
11709
|
setManageRole = _useState2[1];
|
|
11408
11710
|
|
|
@@ -11540,17 +11842,17 @@ const Table = _ref => {
|
|
|
11540
11842
|
t = _useTranslation.t;
|
|
11541
11843
|
|
|
11542
11844
|
const _useState = useState(""),
|
|
11543
|
-
_useState2 = _slicedToArray$
|
|
11845
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
11544
11846
|
searchTerm = _useState2[0],
|
|
11545
11847
|
setSearchTerm = _useState2[1];
|
|
11546
11848
|
|
|
11547
11849
|
const _useState3 = useState(permissionGroups),
|
|
11548
|
-
_useState4 = _slicedToArray$
|
|
11850
|
+
_useState4 = _slicedToArray$4(_useState3, 2),
|
|
11549
11851
|
filteredGroupPermissions = _useState4[0],
|
|
11550
11852
|
setFilteredGroupPermissions = _useState4[1];
|
|
11551
11853
|
|
|
11552
11854
|
const _useState5 = useState(false),
|
|
11553
|
-
_useState6 = _slicedToArray$
|
|
11855
|
+
_useState6 = _slicedToArray$4(_useState5, 2),
|
|
11554
11856
|
isScrollPresent = _useState6[0],
|
|
11555
11857
|
setIsScrollPresent = _useState6[1];
|
|
11556
11858
|
|
|
@@ -11560,7 +11862,7 @@ const Table = _ref => {
|
|
|
11560
11862
|
|
|
11561
11863
|
useEffect(() => {
|
|
11562
11864
|
setFilteredGroupPermissions(fromPairs(toPairs(permissionGroups).map(_ref2 => {
|
|
11563
|
-
let _ref3 = _slicedToArray$
|
|
11865
|
+
let _ref3 = _slicedToArray$4(_ref2, 2),
|
|
11564
11866
|
category = _ref3[0],
|
|
11565
11867
|
options = _ref3[1];
|
|
11566
11868
|
|
|
@@ -11599,17 +11901,17 @@ const Roles = _ref => {
|
|
|
11599
11901
|
let config = _ref.config;
|
|
11600
11902
|
|
|
11601
11903
|
const _useState = useState(""),
|
|
11602
|
-
_useState2 = _slicedToArray$
|
|
11904
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
11603
11905
|
searchString = _useState2[0],
|
|
11604
11906
|
setSearchString = _useState2[1];
|
|
11605
11907
|
|
|
11606
11908
|
const _useState3 = useState([]),
|
|
11607
|
-
_useState4 = _slicedToArray$
|
|
11909
|
+
_useState4 = _slicedToArray$4(_useState3, 2),
|
|
11608
11910
|
filteredRoles = _useState4[0],
|
|
11609
11911
|
setFilteredRoles = _useState4[1];
|
|
11610
11912
|
|
|
11611
11913
|
const _useState5 = useState(false),
|
|
11612
|
-
_useState6 = _slicedToArray$
|
|
11914
|
+
_useState6 = _slicedToArray$4(_useState5, 2),
|
|
11613
11915
|
isNewRolePaneOpen = _useState6[0],
|
|
11614
11916
|
setIsNewRolePaneOpen = _useState6[1];
|
|
11615
11917
|
|
|
@@ -11664,6 +11966,493 @@ Roles.defaultProps = {
|
|
|
11664
11966
|
};
|
|
11665
11967
|
var index$1 = withReactQuery(Roles);
|
|
11666
11968
|
|
|
11969
|
+
Honeybadger.beforeNotify(function (notice) {
|
|
11970
|
+
return !/ResizeObserver/.test(notice.message);
|
|
11971
|
+
});
|
|
11972
|
+
Honeybadger.configure({
|
|
11973
|
+
apiKey: globalProps.honeybadgerApiKey,
|
|
11974
|
+
environment: globalProps.nodeEnv,
|
|
11975
|
+
revision: globalProps.honeybadgerRevision,
|
|
11976
|
+
developmentEnvironments: ["development", "test"],
|
|
11977
|
+
enableUncaught: true,
|
|
11978
|
+
async: true,
|
|
11979
|
+
breadcrumbsEnabled: true,
|
|
11980
|
+
projectRoot: "webpack:///./"
|
|
11981
|
+
});
|
|
11982
|
+
|
|
11983
|
+
function _arrayWithHoles(arr) {
|
|
11984
|
+
if (Array.isArray(arr)) return arr;
|
|
11985
|
+
}
|
|
11986
|
+
|
|
11987
|
+
function _iterableToArrayLimit(arr, i) {
|
|
11988
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
11989
|
+
|
|
11990
|
+
if (_i == null) return;
|
|
11991
|
+
var _arr = [];
|
|
11992
|
+
var _n = true;
|
|
11993
|
+
var _d = false;
|
|
11994
|
+
|
|
11995
|
+
var _s, _e;
|
|
11996
|
+
|
|
11997
|
+
try {
|
|
11998
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
11999
|
+
_arr.push(_s.value);
|
|
12000
|
+
|
|
12001
|
+
if (i && _arr.length === i) break;
|
|
12002
|
+
}
|
|
12003
|
+
} catch (err) {
|
|
12004
|
+
_d = true;
|
|
12005
|
+
_e = err;
|
|
12006
|
+
} finally {
|
|
12007
|
+
try {
|
|
12008
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
12009
|
+
} finally {
|
|
12010
|
+
if (_d) throw _e;
|
|
12011
|
+
}
|
|
12012
|
+
}
|
|
12013
|
+
|
|
12014
|
+
return _arr;
|
|
12015
|
+
}
|
|
12016
|
+
|
|
12017
|
+
function _arrayLikeToArray(arr, len) {
|
|
12018
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
12019
|
+
|
|
12020
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
12021
|
+
arr2[i] = arr[i];
|
|
12022
|
+
}
|
|
12023
|
+
|
|
12024
|
+
return arr2;
|
|
12025
|
+
}
|
|
12026
|
+
|
|
12027
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
12028
|
+
if (!o) return;
|
|
12029
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
12030
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12031
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12032
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
12033
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
12034
|
+
}
|
|
12035
|
+
|
|
12036
|
+
function _nonIterableRest() {
|
|
12037
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12038
|
+
}
|
|
12039
|
+
|
|
12040
|
+
function _slicedToArray(arr, i) {
|
|
12041
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
12042
|
+
}
|
|
12043
|
+
|
|
12044
|
+
function useDebounce(value) {
|
|
12045
|
+
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
|
|
12046
|
+
|
|
12047
|
+
var _useState = useState(value),
|
|
12048
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12049
|
+
debouncedValue = _useState2[0],
|
|
12050
|
+
setDebouncedValue = _useState2[1];
|
|
12051
|
+
|
|
12052
|
+
useEffect(function () {
|
|
12053
|
+
var handler = setTimeout(function () {
|
|
12054
|
+
setDebouncedValue(value);
|
|
12055
|
+
}, delay);
|
|
12056
|
+
return function () {
|
|
12057
|
+
clearTimeout(handler);
|
|
12058
|
+
};
|
|
12059
|
+
}, [value]);
|
|
12060
|
+
return debouncedValue;
|
|
12061
|
+
}
|
|
12062
|
+
|
|
12063
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
12064
|
+
|
|
12065
|
+
var _typeof = {exports: {}};
|
|
12066
|
+
|
|
12067
|
+
(function (module) {
|
|
12068
|
+
function _typeof(obj) {
|
|
12069
|
+
"@babel/helpers - typeof";
|
|
12070
|
+
|
|
12071
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
12072
|
+
return typeof obj;
|
|
12073
|
+
} : function (obj) {
|
|
12074
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
12075
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
12076
|
+
}
|
|
12077
|
+
|
|
12078
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12079
|
+
} (_typeof));
|
|
12080
|
+
|
|
12081
|
+
(function (module) {
|
|
12082
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
12083
|
+
|
|
12084
|
+
function _regeneratorRuntime() {
|
|
12085
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
12086
|
+
|
|
12087
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
12088
|
+
return exports;
|
|
12089
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12090
|
+
var exports = {},
|
|
12091
|
+
Op = Object.prototype,
|
|
12092
|
+
hasOwn = Op.hasOwnProperty,
|
|
12093
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
12094
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
12095
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
12096
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
12097
|
+
|
|
12098
|
+
function define(obj, key, value) {
|
|
12099
|
+
return Object.defineProperty(obj, key, {
|
|
12100
|
+
value: value,
|
|
12101
|
+
enumerable: !0,
|
|
12102
|
+
configurable: !0,
|
|
12103
|
+
writable: !0
|
|
12104
|
+
}), obj[key];
|
|
12105
|
+
}
|
|
12106
|
+
|
|
12107
|
+
try {
|
|
12108
|
+
define({}, "");
|
|
12109
|
+
} catch (err) {
|
|
12110
|
+
define = function define(obj, key, value) {
|
|
12111
|
+
return obj[key] = value;
|
|
12112
|
+
};
|
|
12113
|
+
}
|
|
12114
|
+
|
|
12115
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
12116
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
12117
|
+
generator = Object.create(protoGenerator.prototype),
|
|
12118
|
+
context = new Context(tryLocsList || []);
|
|
12119
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
12120
|
+
var state = "suspendedStart";
|
|
12121
|
+
return function (method, arg) {
|
|
12122
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
12123
|
+
|
|
12124
|
+
if ("completed" === state) {
|
|
12125
|
+
if ("throw" === method) throw arg;
|
|
12126
|
+
return doneResult();
|
|
12127
|
+
}
|
|
12128
|
+
|
|
12129
|
+
for (context.method = method, context.arg = arg;;) {
|
|
12130
|
+
var delegate = context.delegate;
|
|
12131
|
+
|
|
12132
|
+
if (delegate) {
|
|
12133
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
12134
|
+
|
|
12135
|
+
if (delegateResult) {
|
|
12136
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
12137
|
+
return delegateResult;
|
|
12138
|
+
}
|
|
12139
|
+
}
|
|
12140
|
+
|
|
12141
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
12142
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
12143
|
+
context.dispatchException(context.arg);
|
|
12144
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
12145
|
+
state = "executing";
|
|
12146
|
+
var record = tryCatch(innerFn, self, context);
|
|
12147
|
+
|
|
12148
|
+
if ("normal" === record.type) {
|
|
12149
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
12150
|
+
return {
|
|
12151
|
+
value: record.arg,
|
|
12152
|
+
done: context.done
|
|
12153
|
+
};
|
|
12154
|
+
}
|
|
12155
|
+
|
|
12156
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
12157
|
+
}
|
|
12158
|
+
};
|
|
12159
|
+
}(innerFn, self, context), generator;
|
|
12160
|
+
}
|
|
12161
|
+
|
|
12162
|
+
function tryCatch(fn, obj, arg) {
|
|
12163
|
+
try {
|
|
12164
|
+
return {
|
|
12165
|
+
type: "normal",
|
|
12166
|
+
arg: fn.call(obj, arg)
|
|
12167
|
+
};
|
|
12168
|
+
} catch (err) {
|
|
12169
|
+
return {
|
|
12170
|
+
type: "throw",
|
|
12171
|
+
arg: err
|
|
12172
|
+
};
|
|
12173
|
+
}
|
|
12174
|
+
}
|
|
12175
|
+
|
|
12176
|
+
exports.wrap = wrap;
|
|
12177
|
+
var ContinueSentinel = {};
|
|
12178
|
+
|
|
12179
|
+
function Generator() {}
|
|
12180
|
+
|
|
12181
|
+
function GeneratorFunction() {}
|
|
12182
|
+
|
|
12183
|
+
function GeneratorFunctionPrototype() {}
|
|
12184
|
+
|
|
12185
|
+
var IteratorPrototype = {};
|
|
12186
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
12187
|
+
return this;
|
|
12188
|
+
});
|
|
12189
|
+
var getProto = Object.getPrototypeOf,
|
|
12190
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
12191
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
12192
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
12193
|
+
|
|
12194
|
+
function defineIteratorMethods(prototype) {
|
|
12195
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
12196
|
+
define(prototype, method, function (arg) {
|
|
12197
|
+
return this._invoke(method, arg);
|
|
12198
|
+
});
|
|
12199
|
+
});
|
|
12200
|
+
}
|
|
12201
|
+
|
|
12202
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
12203
|
+
function invoke(method, arg, resolve, reject) {
|
|
12204
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
12205
|
+
|
|
12206
|
+
if ("throw" !== record.type) {
|
|
12207
|
+
var result = record.arg,
|
|
12208
|
+
value = result.value;
|
|
12209
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
12210
|
+
invoke("next", value, resolve, reject);
|
|
12211
|
+
}, function (err) {
|
|
12212
|
+
invoke("throw", err, resolve, reject);
|
|
12213
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
12214
|
+
result.value = unwrapped, resolve(result);
|
|
12215
|
+
}, function (error) {
|
|
12216
|
+
return invoke("throw", error, resolve, reject);
|
|
12217
|
+
});
|
|
12218
|
+
}
|
|
12219
|
+
|
|
12220
|
+
reject(record.arg);
|
|
12221
|
+
}
|
|
12222
|
+
|
|
12223
|
+
var previousPromise;
|
|
12224
|
+
|
|
12225
|
+
this._invoke = function (method, arg) {
|
|
12226
|
+
function callInvokeWithMethodAndArg() {
|
|
12227
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
12228
|
+
invoke(method, arg, resolve, reject);
|
|
12229
|
+
});
|
|
12230
|
+
}
|
|
12231
|
+
|
|
12232
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
12233
|
+
};
|
|
12234
|
+
}
|
|
12235
|
+
|
|
12236
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
12237
|
+
var method = delegate.iterator[context.method];
|
|
12238
|
+
|
|
12239
|
+
if (undefined === method) {
|
|
12240
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
12241
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
12242
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
12243
|
+
}
|
|
12244
|
+
|
|
12245
|
+
return ContinueSentinel;
|
|
12246
|
+
}
|
|
12247
|
+
|
|
12248
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
12249
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
12250
|
+
var info = record.arg;
|
|
12251
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
12252
|
+
}
|
|
12253
|
+
|
|
12254
|
+
function pushTryEntry(locs) {
|
|
12255
|
+
var entry = {
|
|
12256
|
+
tryLoc: locs[0]
|
|
12257
|
+
};
|
|
12258
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
12259
|
+
}
|
|
12260
|
+
|
|
12261
|
+
function resetTryEntry(entry) {
|
|
12262
|
+
var record = entry.completion || {};
|
|
12263
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
12264
|
+
}
|
|
12265
|
+
|
|
12266
|
+
function Context(tryLocsList) {
|
|
12267
|
+
this.tryEntries = [{
|
|
12268
|
+
tryLoc: "root"
|
|
12269
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
12270
|
+
}
|
|
12271
|
+
|
|
12272
|
+
function values(iterable) {
|
|
12273
|
+
if (iterable) {
|
|
12274
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
12275
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
12276
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
12277
|
+
|
|
12278
|
+
if (!isNaN(iterable.length)) {
|
|
12279
|
+
var i = -1,
|
|
12280
|
+
next = function next() {
|
|
12281
|
+
for (; ++i < iterable.length;) {
|
|
12282
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
12283
|
+
}
|
|
12284
|
+
|
|
12285
|
+
return next.value = undefined, next.done = !0, next;
|
|
12286
|
+
};
|
|
12287
|
+
|
|
12288
|
+
return next.next = next;
|
|
12289
|
+
}
|
|
12290
|
+
}
|
|
12291
|
+
|
|
12292
|
+
return {
|
|
12293
|
+
next: doneResult
|
|
12294
|
+
};
|
|
12295
|
+
}
|
|
12296
|
+
|
|
12297
|
+
function doneResult() {
|
|
12298
|
+
return {
|
|
12299
|
+
value: undefined,
|
|
12300
|
+
done: !0
|
|
12301
|
+
};
|
|
12302
|
+
}
|
|
12303
|
+
|
|
12304
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
12305
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
12306
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
12307
|
+
}, exports.mark = function (genFun) {
|
|
12308
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
12309
|
+
}, exports.awrap = function (arg) {
|
|
12310
|
+
return {
|
|
12311
|
+
__await: arg
|
|
12312
|
+
};
|
|
12313
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
12314
|
+
return this;
|
|
12315
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
12316
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
12317
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
12318
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
12319
|
+
return result.done ? result.value : iter.next();
|
|
12320
|
+
});
|
|
12321
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
12322
|
+
return this;
|
|
12323
|
+
}), define(Gp, "toString", function () {
|
|
12324
|
+
return "[object Generator]";
|
|
12325
|
+
}), exports.keys = function (object) {
|
|
12326
|
+
var keys = [];
|
|
12327
|
+
|
|
12328
|
+
for (var key in object) {
|
|
12329
|
+
keys.push(key);
|
|
12330
|
+
}
|
|
12331
|
+
|
|
12332
|
+
return keys.reverse(), function next() {
|
|
12333
|
+
for (; keys.length;) {
|
|
12334
|
+
var key = keys.pop();
|
|
12335
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
12336
|
+
}
|
|
12337
|
+
|
|
12338
|
+
return next.done = !0, next;
|
|
12339
|
+
};
|
|
12340
|
+
}, exports.values = values, Context.prototype = {
|
|
12341
|
+
constructor: Context,
|
|
12342
|
+
reset: function reset(skipTempReset) {
|
|
12343
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
|
|
12344
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
12345
|
+
}
|
|
12346
|
+
},
|
|
12347
|
+
stop: function stop() {
|
|
12348
|
+
this.done = !0;
|
|
12349
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
12350
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
12351
|
+
return this.rval;
|
|
12352
|
+
},
|
|
12353
|
+
dispatchException: function dispatchException(exception) {
|
|
12354
|
+
if (this.done) throw exception;
|
|
12355
|
+
var context = this;
|
|
12356
|
+
|
|
12357
|
+
function handle(loc, caught) {
|
|
12358
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
12359
|
+
}
|
|
12360
|
+
|
|
12361
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12362
|
+
var entry = this.tryEntries[i],
|
|
12363
|
+
record = entry.completion;
|
|
12364
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
12365
|
+
|
|
12366
|
+
if (entry.tryLoc <= this.prev) {
|
|
12367
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
12368
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
12369
|
+
|
|
12370
|
+
if (hasCatch && hasFinally) {
|
|
12371
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
12372
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
12373
|
+
} else if (hasCatch) {
|
|
12374
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
12375
|
+
} else {
|
|
12376
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
12377
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
12378
|
+
}
|
|
12379
|
+
}
|
|
12380
|
+
}
|
|
12381
|
+
},
|
|
12382
|
+
abrupt: function abrupt(type, arg) {
|
|
12383
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12384
|
+
var entry = this.tryEntries[i];
|
|
12385
|
+
|
|
12386
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
12387
|
+
var finallyEntry = entry;
|
|
12388
|
+
break;
|
|
12389
|
+
}
|
|
12390
|
+
}
|
|
12391
|
+
|
|
12392
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
12393
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
12394
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
12395
|
+
},
|
|
12396
|
+
complete: function complete(record, afterLoc) {
|
|
12397
|
+
if ("throw" === record.type) throw record.arg;
|
|
12398
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
12399
|
+
},
|
|
12400
|
+
finish: function finish(finallyLoc) {
|
|
12401
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12402
|
+
var entry = this.tryEntries[i];
|
|
12403
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
12404
|
+
}
|
|
12405
|
+
},
|
|
12406
|
+
"catch": function _catch(tryLoc) {
|
|
12407
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12408
|
+
var entry = this.tryEntries[i];
|
|
12409
|
+
|
|
12410
|
+
if (entry.tryLoc === tryLoc) {
|
|
12411
|
+
var record = entry.completion;
|
|
12412
|
+
|
|
12413
|
+
if ("throw" === record.type) {
|
|
12414
|
+
var thrown = record.arg;
|
|
12415
|
+
resetTryEntry(entry);
|
|
12416
|
+
}
|
|
12417
|
+
|
|
12418
|
+
return thrown;
|
|
12419
|
+
}
|
|
12420
|
+
}
|
|
12421
|
+
|
|
12422
|
+
throw new Error("illegal catch attempt");
|
|
12423
|
+
},
|
|
12424
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
12425
|
+
return this.delegate = {
|
|
12426
|
+
iterator: values(iterable),
|
|
12427
|
+
resultName: resultName,
|
|
12428
|
+
nextLoc: nextLoc
|
|
12429
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
12430
|
+
}
|
|
12431
|
+
}, exports;
|
|
12432
|
+
}
|
|
12433
|
+
|
|
12434
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12435
|
+
} (regeneratorRuntime$1));
|
|
12436
|
+
|
|
12437
|
+
// TODO(Babel 8): Remove this file.
|
|
12438
|
+
|
|
12439
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
12440
|
+
|
|
12441
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
12442
|
+
try {
|
|
12443
|
+
regeneratorRuntime = runtime;
|
|
12444
|
+
} catch (accidentalStrictMode) {
|
|
12445
|
+
if (typeof globalThis === "object") {
|
|
12446
|
+
globalThis.regeneratorRuntime = runtime;
|
|
12447
|
+
} else {
|
|
12448
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
12449
|
+
}
|
|
12450
|
+
}
|
|
12451
|
+
Yup.object().shape({
|
|
12452
|
+
email: Yup.string().email("Please enter a valid email").required("Email is required"),
|
|
12453
|
+
password: Yup.string().required("Password is required")
|
|
12454
|
+
});
|
|
12455
|
+
|
|
11667
12456
|
const fetch = params => axios.get("".concat(BASE_URL, "/teams"), {
|
|
11668
12457
|
params
|
|
11669
12458
|
});
|
|
@@ -11683,14 +12472,15 @@ const _excluded = ["onSuccess"],
|
|
|
11683
12472
|
|
|
11684
12473
|
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11685
12474
|
|
|
11686
|
-
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
12475
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11687
12476
|
|
|
11688
12477
|
const useFetchMembers = function () {
|
|
11689
12478
|
let params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11690
12479
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11691
12480
|
return useQuery([QUERY_KEYS.TEAMS, params], () => teamsApi.fetch(params), _objectSpread$2({
|
|
11692
12481
|
staleTime: DEFAULT_STALE_TIME,
|
|
11693
|
-
select: response => response.data || response
|
|
12482
|
+
select: response => response.data || response,
|
|
12483
|
+
keepPreviousData: true
|
|
11694
12484
|
}, options));
|
|
11695
12485
|
};
|
|
11696
12486
|
|
|
@@ -11731,7 +12521,11 @@ const Header = _ref => {
|
|
|
11731
12521
|
metaName = _ref$metaName === void 0 ? "" : _ref$metaName,
|
|
11732
12522
|
_ref$onClick = _ref.onClick,
|
|
11733
12523
|
onClick = _ref$onClick === void 0 ? noop : _ref$onClick;
|
|
11734
|
-
return /*#__PURE__*/React.createElement(
|
|
12524
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
12525
|
+
content: instance.t("tooltips.noPermissionToAddMember"),
|
|
12526
|
+
disabled: hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
12527
|
+
position: "bottom"
|
|
12528
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Button, {
|
|
11735
12529
|
icon: Plus,
|
|
11736
12530
|
size: "large",
|
|
11737
12531
|
label: instance.t("common.add_", {
|
|
@@ -11739,7 +12533,7 @@ const Header = _ref => {
|
|
|
11739
12533
|
}),
|
|
11740
12534
|
disabled: !hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
11741
12535
|
onClick: onClick
|
|
11742
|
-
});
|
|
12536
|
+
})));
|
|
11743
12537
|
};
|
|
11744
12538
|
|
|
11745
12539
|
const Left = _ref => {
|
|
@@ -11817,7 +12611,7 @@ const DEFAULT_FILTER_VALUES = {
|
|
|
11817
12611
|
|
|
11818
12612
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11819
12613
|
|
|
11820
|
-
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
12614
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11821
12615
|
|
|
11822
12616
|
const renderNameColumn = (_ref, diplayStatusTag) => {
|
|
11823
12617
|
let displayName = _ref.displayName,
|
|
@@ -11838,22 +12632,38 @@ const renderNameColumn = (_ref, diplayStatusTag) => {
|
|
|
11838
12632
|
}));
|
|
11839
12633
|
};
|
|
11840
12634
|
|
|
12635
|
+
const isCurrentUserEmail = email => {
|
|
12636
|
+
const user = window.globalProps.user;
|
|
12637
|
+
return (user === null || user === void 0 ? void 0 : user.email) === email;
|
|
12638
|
+
};
|
|
12639
|
+
|
|
12640
|
+
const isDropDownButtonDisabled = email => !hasPermission(MANAGE_MEMBER_PERMISSIONS) || isCurrentUserEmail(email);
|
|
12641
|
+
|
|
12642
|
+
const getDropDownTooltipContent = email => isCurrentUserEmail(email) ? instance.t("tooltips.editCurrentUserNotAllowed") : instance.t("tooltips.noPermissionToEditMembers");
|
|
12643
|
+
|
|
11841
12644
|
const renderDropdownButton = (_ref2, handleUpdateStatus, handleUpdateRole) => {
|
|
11842
12645
|
let displayName = _ref2.displayName,
|
|
11843
12646
|
id = _ref2.id,
|
|
11844
12647
|
active = _ref2.active,
|
|
11845
12648
|
email = _ref2.email,
|
|
11846
12649
|
role = _ref2.role;
|
|
11847
|
-
|
|
11848
|
-
|
|
12650
|
+
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
12651
|
+
content: getDropDownTooltipContent(email),
|
|
12652
|
+
disabled: !isDropDownButtonDisabled(email),
|
|
12653
|
+
position: "top"
|
|
12654
|
+
}, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
11849
12655
|
icon: MenuHorizontal,
|
|
11850
12656
|
buttonStyle: "text",
|
|
11851
12657
|
buttonProps: DROPDOWN_BUTTON_PROPS,
|
|
11852
12658
|
strategy: "fixed",
|
|
11853
|
-
disabled:
|
|
12659
|
+
disabled: isDropDownButtonDisabled(email)
|
|
12660
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
12661
|
+
content: instance.t("tooltips.activateUserToEdit"),
|
|
12662
|
+
disabled: active,
|
|
12663
|
+
position: "top"
|
|
11854
12664
|
}, /*#__PURE__*/React.createElement("li", {
|
|
11855
12665
|
className: "ntm-dropdown__item",
|
|
11856
|
-
onClick: () => handleUpdateRole({
|
|
12666
|
+
onClick: () => active && handleUpdateRole({
|
|
11857
12667
|
id,
|
|
11858
12668
|
email,
|
|
11859
12669
|
role
|
|
@@ -11863,7 +12673,7 @@ const renderDropdownButton = (_ref2, handleUpdateStatus, handleUpdateRole) => {
|
|
|
11863
12673
|
label: instance.t("common.edit"),
|
|
11864
12674
|
disabled: !active,
|
|
11865
12675
|
style: "text"
|
|
11866
|
-
})), /*#__PURE__*/React.createElement("li", {
|
|
12676
|
+
}))), /*#__PURE__*/React.createElement("li", {
|
|
11867
12677
|
className: "ntm-dropdown__item",
|
|
11868
12678
|
onClick: () => handleUpdateStatus({
|
|
11869
12679
|
id,
|
|
@@ -11874,7 +12684,7 @@ const renderDropdownButton = (_ref2, handleUpdateStatus, handleUpdateRole) => {
|
|
|
11874
12684
|
className: "ntm-dropdown__button",
|
|
11875
12685
|
label: active ? instance.t("common.deactivate") : instance.t("common.activate"),
|
|
11876
12686
|
style: active ? "danger-text" : "text"
|
|
11877
|
-
})));
|
|
12687
|
+
})))));
|
|
11878
12688
|
};
|
|
11879
12689
|
|
|
11880
12690
|
const getColumnData = _ref3 => {
|
|
@@ -11960,9 +12770,9 @@ const renderPaginationProps = size => ({
|
|
|
11960
12770
|
});
|
|
11961
12771
|
const getPerCategoryCount = (perCategoryCount, category) => isNil(perCategoryCount) ? MEMBER_FILTER[category].defaultCount : perCategoryCount[category === null || category === void 0 ? void 0 : category.toLowerCase()];
|
|
11962
12772
|
|
|
11963
|
-
const VALIDATION_SCHEMA =
|
|
11964
|
-
emails:
|
|
11965
|
-
role:
|
|
12773
|
+
const VALIDATION_SCHEMA = Yup.object().shape({
|
|
12774
|
+
emails: Yup.array().min(1, instance.t("validations.minOneEmail")).test("are-all-emails-valid", instance.t("validations.validEmail"), emails => emails.every(prop("valid"))).nullable(),
|
|
12775
|
+
role: Yup.string().required(instance.t("validations.roleRequired"))
|
|
11966
12776
|
});
|
|
11967
12777
|
const FILTER_INVALID_EMAILS = {
|
|
11968
12778
|
label: instance.t("validations.filterInvalidEmails")
|
|
@@ -12128,24 +12938,24 @@ const Menu = _ref => {
|
|
|
12128
12938
|
|
|
12129
12939
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12130
12940
|
|
|
12131
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$
|
|
12941
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12132
12942
|
|
|
12133
12943
|
const TeamMembers = _ref => {
|
|
12134
12944
|
let metaName = _ref.metaName,
|
|
12135
12945
|
config = _ref.config;
|
|
12136
12946
|
|
|
12137
12947
|
const _useState = useState(DEFAULT_IS_OPEN_VALUES),
|
|
12138
|
-
_useState2 = _slicedToArray$
|
|
12948
|
+
_useState2 = _slicedToArray$4(_useState, 2),
|
|
12139
12949
|
isOpen = _useState2[0],
|
|
12140
12950
|
setIsOpen = _useState2[1];
|
|
12141
12951
|
|
|
12142
12952
|
const _useState3 = useState(DEFAULT_FILTER_VALUES),
|
|
12143
|
-
_useState4 = _slicedToArray$
|
|
12953
|
+
_useState4 = _slicedToArray$4(_useState3, 2),
|
|
12144
12954
|
filters = _useState4[0],
|
|
12145
12955
|
setFilters = _useState4[1];
|
|
12146
12956
|
|
|
12147
12957
|
const _useState5 = useState(null),
|
|
12148
|
-
_useState6 = _slicedToArray$
|
|
12958
|
+
_useState6 = _slicedToArray$4(_useState5, 2),
|
|
12149
12959
|
selectedMember = _useState6[0],
|
|
12150
12960
|
setSelectedMember = _useState6[1];
|
|
12151
12961
|
|
|
@@ -12156,7 +12966,8 @@ const TeamMembers = _ref => {
|
|
|
12156
12966
|
category: filters.category.toLowerCase()
|
|
12157
12967
|
})),
|
|
12158
12968
|
team = _useFetchMembers.data,
|
|
12159
|
-
isMembersLoading = _useFetchMembers.isLoading
|
|
12969
|
+
isMembersLoading = _useFetchMembers.isLoading,
|
|
12970
|
+
isMembersFetching = _useFetchMembers.isFetching;
|
|
12160
12971
|
|
|
12161
12972
|
const _useFetchRoles = useFetchRoles({
|
|
12162
12973
|
select: response => {
|
|
@@ -12224,14 +13035,14 @@ const TeamMembers = _ref => {
|
|
|
12224
13035
|
handlePageChange(setFilters, filter)(DEFAULT_PAGE_NUMBER, filters.results);
|
|
12225
13036
|
};
|
|
12226
13037
|
|
|
12227
|
-
const handleTableChange = (
|
|
13038
|
+
const handleTableChange = (_, __, sorter) => {
|
|
12228
13039
|
setFilters(mergeLeft({
|
|
12229
13040
|
sort_by: sorter.field,
|
|
12230
13041
|
sort_direction: sorter.order
|
|
12231
13042
|
}));
|
|
12232
13043
|
};
|
|
12233
13044
|
|
|
12234
|
-
if (isRolesLoading) {
|
|
13045
|
+
if (isRolesLoading || isMembersLoading) {
|
|
12235
13046
|
return /*#__PURE__*/React.createElement("div", {
|
|
12236
13047
|
className: "ntm-members-page-loader"
|
|
12237
13048
|
}, /*#__PURE__*/React.createElement(PageLoader, null));
|
|
@@ -12272,7 +13083,7 @@ const TeamMembers = _ref => {
|
|
|
12272
13083
|
totalCount: team === null || team === void 0 ? void 0 : team.membersCount,
|
|
12273
13084
|
allowRowClick: false,
|
|
12274
13085
|
rowSelection: false,
|
|
12275
|
-
loading:
|
|
13086
|
+
loading: isMembersFetching,
|
|
12276
13087
|
defaultPageSize: parseInt(filters.results, DEFAULT_RADIX),
|
|
12277
13088
|
rowData: team === null || team === void 0 ? void 0 : team.members,
|
|
12278
13089
|
columnData: getColumnData({
|
|
@@ -12280,7 +13091,7 @@ const TeamMembers = _ref => {
|
|
|
12280
13091
|
handleUpdateStatus,
|
|
12281
13092
|
handleUpdateRole
|
|
12282
13093
|
}),
|
|
12283
|
-
onChange: (
|
|
13094
|
+
onChange: (_, __, sorter) => handleTableChange(_, __, sorter),
|
|
12284
13095
|
currentPageNumber: parseInt(filters.page, DEFAULT_RADIX),
|
|
12285
13096
|
paginationProps: renderPaginationProps(filters.results),
|
|
12286
13097
|
handlePageChange: handlePageChange(setFilters, filters.category)
|
|
@@ -12318,7 +13129,7 @@ var index = withReactQuery(TeamMembers);
|
|
|
12318
13129
|
|
|
12319
13130
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");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]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
12320
13131
|
|
|
12321
|
-
var css = ":root {\n --ntm-roles-table-default-scroll: 15px;\n}\n\n.ntm-dropdown__item {\n background-color: transparent !important;\n padding: 0 !important;\n}\n\n.ntm-dropdown__button {\n border-radius: 0 !important;\n font-weight: 400;\n min-height: 34px;\n min-width: 150px;\n text-align: left;\n width: 100%;\n}\n\n.ntm-scrollbar__inner {\n width: 100%;\n height: 200px;\n}\n.ntm-scrollbar__outer {\n position: \"absolute\";\n top: 0px;\n left: 0px;\n width: 200px;\n height: 150px;\n overflow: \"hidden\";\n visibility: \"hidden\";\n}\n\n.ntm-empty-state {\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 100%;\n}\n.ntm-empty-state__image {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 2rem;\n}\n.ntm-empty-state__title--with-action-block {\n margin-bottom: 1rem;\n}\n.ntm-empty-state__action-block {\n display: flex;\n justify-content: center;\n}\n\n.ntm-members {\n overflow: auto;\n width: 100%;\n background-color: #ffffff;\n}\n.ntm-members-wrapper {\n display: flex;\n}\n.ntm-members-page-loader {\n width: 100%;\n height: 100vh;\n}\n.ntm-members__table-wrapper {\n height: calc(100vh - 205px);\n width: 100%;\n}\n.ntm-members-table__column {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n.ntm-members-modal__header {\n margin-bottom: 0.5rem;\n}\n.ntm-members-modal__body > * + * {\n margin-top: 1rem;\n}\n.ntm-members-modal__footer {\n display: flex;\n gap: 0.5rem;\n}\n\n.ntm-roles-header {\n border-bottom: 1px solid #d8dcde;\n}\n\n.ntm-roles-table__wrapper {\n width: 100%;\n height: calc(100vh - 80px);\n display: flex;\n background-color: #ffffff;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar {\n width: 396px;\n min-width: 396px;\n border-right: thin solid #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__search {\n padding: 24px 24px 16px;\n height: 72px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list {\n height: calc(\n 100vh - 80px - 72px -\n var(--ntm-roles-table-default-scroll)\n );\n overflow-y: auto;\n padding-left: 24px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list .ntm-roles-table-sidebar__list-item {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 8px;\n min-height: 48px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list .ntm-roles-table-sidebar__list-item.ntm-roles-table-sidebar__list-item--highlighted {\n background-color: #eaf3fc;\n padding: 12px 8px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list .ntm-roles-table-sidebar__list-item:not(.ntm-roles-table-sidebar__list-item--highlighted) {\n border-bottom: thin solid #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns {\n width: calc(\n 100vw - 64px - 396px - 24px\n );\n overflow: hidden;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__cell {\n width: 100%;\n min-width: 200px;\n min-height: 48px;\n padding: 12px 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-right: thin solid #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table-cell__checkbox-wrapper {\n position: absolute;\n height: 1rem;\n width: 1rem;\n margin: auto;\n z-index: 10;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table-cell__checkbox {\n z-index: 10;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header {\n display: flex;\n align-items: center;\n overflow-x: auto;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header .ntm-roles-table__cell {\n height: 72px;\n padding-left: 24px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header .ntm-roles-table-header-cell__container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n gap: 1rem;\n overflow: hidden;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header .ntm-roles-table-header__role-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows {\n width: 100%;\n height: calc(\n 100vh - 80px - 72px -\n var(--ntm-roles-table-default-scroll)\n );\n overflow-y: auto;\n scrollbar-width: none;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar-thumb {\n background: #d8dcde;\n border-radius: 50px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar-thumb:hover {\n background: #939ea4;\n border-radius: 50px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar-track {\n background: #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row {\n display: flex;\n align-items: center;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row .ntm-roles-table__cell {\n overflow: hidden;\n position: relative;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row .ntm-roles-table__cell p {\n opacity: 0;\n width: 340px;\n min-width: 340px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row.ntm-roles-table__row--highlighted .ntm-roles-table__cell {\n background-color: #eaf3fc;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row:not(.ntm-roles-table__row--highlighted) .ntm-roles-table__cell {\n border-bottom: thin solid #d8dcde;\n}\n\n.ntm-roles-table-sidebar__drop-down-button {\n color: #68737d;\n cursor: pointer;\n}\n\n.ntm-roles-modal__body > * + * {\n margin-top: 1rem;\n}\n.ntm-roles-modal__footer {\n display: flex;\n gap: 0.5rem;\n}\n\n.ntm-roles-pane__body {\n width: 100%;\n margin-bottom: 1.5rem;\n}\n.ntm-roles-pane__body-wrapper > * + * {\n margin-top: 1rem;\n}\n.ntm-roles-pane__body > * + * {\n margin-top: 1.5rem;\n}\n.ntm-roles-pane__footer {\n display: flex;\n gap: 0.5rem;\n}\n\n.ntm-roles-permission > * + * {\n margin: 0.5rem;\n}\n.ntm-roles-permission__heading {\n color: #87929d;\n text-transform: uppercase;\n}\n.ntm-roles-permission__card {\n background-color: white;\n box-shadow: 0px 3px 12px -1px rgba(28, 52, 84, 0.12), 0px 2px 4px -1px rgba(28, 55, 90, 0.08);\n border-radius: 0.125rem;\n border-width: 1px;\n border-color: #d8dcde;\n cursor: pointer;\n display: flex;\n gap: 0.75rem;\n padding: 1rem 0.75rem;\n}\n.ntm-roles-permission__card--description {\n flex-grow: 1;\n}\n.ntm-roles-permission__card--checkbox {\n padding: 0 0.5rem;\n}\n\n.ntm-invitations__wrapper .ntm-invitations__header {\n height: 28px;\n}\n.ntm-invitations__wrapper .ntm-invitations__body {\n display: flex;\n flex-direction: column;\n}\n.ntm-invitations__wrapper .ntm-invitations__body > * {\n margin-bottom: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__body-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ntm-invitations__wrapper .ntm-invitations__body-header div {\n display: flex;\n align-items: center;\n}\n.ntm-invitations__wrapper .ntm-invitations__body-header div p {\n margin-right: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__dnd {\n color: #49545c;\n background: #f8f9f9;\n padding: 20px 40px;\n border: 1px dashed;\n border-radius: 6px;\n cursor: pointer;\n counter-reset: dnd-counter;\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__dnd h3 {\n margin-bottom: 8px;\n text-align: center !important;\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__dnd p::before {\n counter-increment: dnd-counter;\n content: counter(dnd-counter) \". \";\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__submit-btn {\n align-self: end !important;\n margin-top: 16px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer {\n background: #f8f9f9;\n margin-top: 24px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-instructions {\n display: flex;\n flex-direction: column;\n width: 50%;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-instructions h4 {\n margin-bottom: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-btns {\n display: flex;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-btns > button:first-child {\n margin-right: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table {\n max-height: 192px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table-filename {\n display: flex;\n align-items: center;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table-filename svg {\n margin-right: 4px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table-status {\n text-transform: capitalize;\n}";
|
|
13132
|
+
var css = ":root {\n --ntm-roles-table-default-scroll: 15px;\n}\n\n.ntm-dropdown__item {\n background-color: transparent !important;\n padding: 0 !important;\n}\n\n.ntm-dropdown__button {\n border-radius: 0 !important;\n font-weight: 400;\n min-height: 34px;\n min-width: 150px;\n text-align: left;\n width: 100%;\n}\n\n.ntm-scrollbar__inner {\n width: 100%;\n height: 200px;\n}\n.ntm-scrollbar__outer {\n position: \"absolute\";\n top: 0px;\n left: 0px;\n width: 200px;\n height: 150px;\n overflow: \"hidden\";\n visibility: \"hidden\";\n}\n\n.ntm-empty-state {\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n width: 100%;\n}\n.ntm-empty-state__image {\n display: flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 2rem;\n}\n.ntm-empty-state__title--with-action-block {\n margin-bottom: 1rem;\n}\n.ntm-empty-state__action-block {\n display: flex;\n justify-content: center;\n}\n\n.ntm-members {\n overflow: auto;\n width: 100%;\n background-color: #ffffff;\n}\n.ntm-members-wrapper {\n display: flex;\n}\n.ntm-members-page-loader {\n width: 100%;\n height: 100vh;\n}\n.ntm-members__table-wrapper {\n height: calc(100vh - 205px);\n width: 100%;\n}\n.ntm-members-table__column {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n.ntm-members-modal__header {\n margin-bottom: 0.5rem;\n}\n.ntm-members-modal__body > * + * {\n margin-top: 1rem;\n}\n.ntm-members-modal__footer {\n display: flex;\n gap: 0.5rem;\n}\n\n.ntm-roles-header {\n border-bottom: 1px solid #d8dcde;\n}\n\n.ntm-roles-table__wrapper {\n width: 100%;\n height: calc(100vh - 80px);\n display: flex;\n background-color: #ffffff;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar {\n width: 396px;\n min-width: 396px;\n border-right: thin solid #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__search {\n padding: 24px 24px 16px;\n height: 72px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list {\n height: calc(\n 100vh - 80px - 72px -\n var(--ntm-roles-table-default-scroll)\n );\n overflow-y: auto;\n padding-left: 24px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list .ntm-roles-table-sidebar__list-item {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 12px 8px;\n min-height: 48px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list .ntm-roles-table-sidebar__list-item.ntm-roles-table-sidebar__list-item--highlighted {\n background-color: #eaf3fc;\n padding: 12px 8px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__sidebar .ntm-roles-table-sidebar__list .ntm-roles-table-sidebar__list-item:not(.ntm-roles-table-sidebar__list-item--highlighted) {\n border-bottom: thin solid #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns {\n width: calc(\n 100vw - 64px - 396px - 24px\n );\n overflow: hidden;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__cell {\n width: 100%;\n min-width: 200px;\n min-height: 48px;\n padding: 12px 8px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-right: thin solid #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table-cell__checkbox-wrapper {\n position: absolute;\n height: 1rem;\n width: 1rem;\n margin: auto;\n z-index: 10;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table-cell__checkbox {\n z-index: 10;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header {\n display: flex;\n align-items: center;\n overflow-x: auto;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header .ntm-roles-table__cell {\n height: 72px;\n padding-left: 24px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header .ntm-roles-table-header-cell__container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n gap: 1rem;\n overflow: hidden;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__header .ntm-roles-table-header__role-name {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows {\n width: 100%;\n height: calc(\n 100vh - 80px - 72px -\n var(--ntm-roles-table-default-scroll)\n );\n overflow-y: auto;\n scrollbar-width: none;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar-thumb {\n background: #d8dcde;\n border-radius: 50px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar-thumb:hover {\n background: #939ea4;\n border-radius: 50px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows::-webkit-scrollbar-track {\n background: #d8dcde;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row {\n display: flex;\n align-items: center;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row .ntm-roles-table__cell {\n overflow: hidden;\n position: relative;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row .ntm-roles-table__cell p {\n opacity: 0;\n width: 340px;\n min-width: 340px;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row.ntm-roles-table__row--highlighted .ntm-roles-table__cell {\n background-color: #eaf3fc;\n}\n.ntm-roles-table__wrapper .ntm-roles-table__columns .ntm-roles-table__rows .ntm-roles-table__row:not(.ntm-roles-table__row--highlighted) .ntm-roles-table__cell {\n border-bottom: thin solid #d8dcde;\n}\n\n.ntm-roles-table-sidebar__drop-down-button {\n color: #68737d;\n cursor: pointer;\n}\n\n.ntm-roles-modal__body > * + * {\n margin-top: 1rem;\n}\n.ntm-roles-modal__footer {\n display: flex;\n gap: 0.5rem;\n}\n\n.ntm-roles-pane__body {\n width: 100%;\n margin-bottom: 1.5rem;\n}\n.ntm-roles-pane__body-wrapper > * + * {\n margin-top: 1rem;\n}\n.ntm-roles-pane__body > * + * {\n margin-top: 1.5rem;\n}\n.ntm-roles-pane__footer {\n display: flex;\n gap: 0.5rem;\n}\n\n.ntm-roles-permission > * + * {\n margin: 0.5rem;\n}\n.ntm-roles-permission__heading {\n color: #87929d;\n text-transform: uppercase;\n}\n.ntm-roles-permission__card {\n background-color: white;\n box-shadow: 0px 3px 12px -1px rgba(28, 52, 84, 0.12), 0px 2px 4px -1px rgba(28, 55, 90, 0.08);\n border-radius: 0.125rem;\n border-width: 1px;\n border-color: #d8dcde;\n cursor: pointer;\n display: flex;\n gap: 0.75rem;\n padding: 1rem 0.75rem;\n}\n.ntm-roles-permission__card--description {\n flex-grow: 1;\n}\n.ntm-roles-permission__card--checkbox {\n padding: 0 0.5rem;\n}\n\n.ntm-invitations__wrapper .ntm-invitations__header {\n height: 28px;\n}\n.ntm-invitations__wrapper .ntm-invitations__body {\n display: flex;\n flex-direction: column;\n}\n.ntm-invitations__wrapper .ntm-invitations__body > * {\n margin-bottom: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__body-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ntm-invitations__wrapper .ntm-invitations__body-header div {\n display: flex;\n align-items: center;\n}\n.ntm-invitations__wrapper .ntm-invitations__body-header div p {\n margin-right: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__dnd {\n color: #49545c;\n background: #f8f9f9;\n padding: 20px 40px;\n border: 1px dashed;\n border-radius: 6px;\n cursor: pointer;\n counter-reset: dnd-counter;\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__dnd h3 {\n margin-bottom: 8px;\n text-align: center !important;\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__dnd p::before {\n counter-increment: dnd-counter;\n content: counter(dnd-counter) \". \";\n}\n.ntm-invitations__wrapper .ntm-invitations__body .ntm-invitations__submit-btn {\n align-self: end !important;\n margin-top: 16px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer {\n background: #f8f9f9;\n margin-top: 24px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-instructions {\n display: flex;\n flex-direction: column;\n width: 50%;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-instructions h4 {\n margin-bottom: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-btns {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n font-weight: bold;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__invite-link-btns > button:first-child {\n margin-right: 8px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table {\n max-height: 192px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table-filename {\n display: flex;\n align-items: center;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table-filename svg {\n margin-right: 4px;\n}\n.ntm-invitations__wrapper .ntm-invitations__footer .ntm-invitations__table-status {\n text-transform: capitalize;\n}";
|
|
12322
13133
|
n(css,{});
|
|
12323
13134
|
|
|
12324
13135
|
export { index$2 as Invitations, index$1 as Roles, index as TeamMembers, hasPermission };
|