@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.cjs.js
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var _typeof = require('@babel/runtime/helpers/esm/typeof');
|
|
5
|
+
var _typeof$2 = require('@babel/runtime/helpers/esm/typeof');
|
|
6
6
|
var _classCallCheck = require('@babel/runtime/helpers/esm/classCallCheck');
|
|
7
7
|
var _createClass = require('@babel/runtime/helpers/esm/createClass');
|
|
8
8
|
var _assertThisInitialized = require('@babel/runtime/helpers/esm/assertThisInitialized');
|
|
9
9
|
var _inherits = require('@babel/runtime/helpers/esm/inherits');
|
|
10
10
|
var _possibleConstructorReturn = require('@babel/runtime/helpers/esm/possibleConstructorReturn');
|
|
11
11
|
var _getPrototypeOf = require('@babel/runtime/helpers/esm/getPrototypeOf');
|
|
12
|
-
var _defineProperty$
|
|
12
|
+
var _defineProperty$3 = require('@babel/runtime/helpers/esm/defineProperty');
|
|
13
13
|
var _toArray = require('@babel/runtime/helpers/esm/toArray');
|
|
14
14
|
var _objectWithoutProperties$1 = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
15
|
-
var _typeof$
|
|
16
|
-
var _defineProperty$
|
|
15
|
+
var _typeof$3 = require('@babel/runtime/helpers/typeof');
|
|
16
|
+
var _defineProperty$4 = require('@babel/runtime/helpers/defineProperty');
|
|
17
17
|
var React = require('react');
|
|
18
18
|
var _classCallCheck$1 = require('@babel/runtime/helpers/classCallCheck');
|
|
19
19
|
var _createClass$1 = require('@babel/runtime/helpers/createClass');
|
|
20
|
-
var _slicedToArray$
|
|
20
|
+
var _slicedToArray$4 = require('@babel/runtime/helpers/slicedToArray');
|
|
21
21
|
var _extends$1 = require('@babel/runtime/helpers/extends');
|
|
22
22
|
var _inheritsLoose = require('@babel/runtime/helpers/esm/inheritsLoose');
|
|
23
23
|
var _extends = require('@babel/runtime/helpers/esm/extends');
|
|
@@ -28,11 +28,11 @@ var neetoIcons = require('@bigbinary/neeto-icons');
|
|
|
28
28
|
var classnames = require('classnames');
|
|
29
29
|
var formik$1 = require('@bigbinary/neetoui/formik');
|
|
30
30
|
var axios = require('axios');
|
|
31
|
-
var pure = require('@bigbinary/neeto-commons-frontend/pure');
|
|
32
31
|
var ramda = require('ramda');
|
|
33
32
|
var layouts = require('@bigbinary/neetoui/layouts');
|
|
34
|
-
var
|
|
35
|
-
var
|
|
33
|
+
var Yup = require('yup');
|
|
34
|
+
var react = require('@honeybadger-io/react');
|
|
35
|
+
require('react-router-dom');
|
|
36
36
|
|
|
37
37
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
38
38
|
|
|
@@ -54,33 +54,33 @@ function _interopNamespace(e) {
|
|
|
54
54
|
return Object.freeze(n);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
|
|
57
|
+
var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof$2);
|
|
58
58
|
var _classCallCheck__default = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck);
|
|
59
59
|
var _createClass__default = /*#__PURE__*/_interopDefaultLegacy(_createClass);
|
|
60
60
|
var _assertThisInitialized__default = /*#__PURE__*/_interopDefaultLegacy(_assertThisInitialized);
|
|
61
61
|
var _inherits__default = /*#__PURE__*/_interopDefaultLegacy(_inherits);
|
|
62
62
|
var _possibleConstructorReturn__default = /*#__PURE__*/_interopDefaultLegacy(_possibleConstructorReturn);
|
|
63
63
|
var _getPrototypeOf__default = /*#__PURE__*/_interopDefaultLegacy(_getPrototypeOf);
|
|
64
|
-
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$
|
|
64
|
+
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$3);
|
|
65
65
|
var _toArray__default = /*#__PURE__*/_interopDefaultLegacy(_toArray);
|
|
66
66
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties$1);
|
|
67
|
-
var _typeof__default$1 = /*#__PURE__*/_interopDefaultLegacy(_typeof$
|
|
68
|
-
var _defineProperty__default$1 = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$
|
|
67
|
+
var _typeof__default$1 = /*#__PURE__*/_interopDefaultLegacy(_typeof$3);
|
|
68
|
+
var _defineProperty__default$1 = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$4);
|
|
69
69
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
70
70
|
var _classCallCheck__default$1 = /*#__PURE__*/_interopDefaultLegacy(_classCallCheck$1);
|
|
71
71
|
var _createClass__default$1 = /*#__PURE__*/_interopDefaultLegacy(_createClass$1);
|
|
72
|
-
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray$
|
|
72
|
+
var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray$4);
|
|
73
73
|
var _extends__default$1 = /*#__PURE__*/_interopDefaultLegacy(_extends$1);
|
|
74
74
|
var _inheritsLoose__default = /*#__PURE__*/_interopDefaultLegacy(_inheritsLoose);
|
|
75
75
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
76
76
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
77
77
|
var classnames__default = /*#__PURE__*/_interopDefaultLegacy(classnames);
|
|
78
78
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
79
|
-
var
|
|
79
|
+
var Yup__namespace = /*#__PURE__*/_interopNamespace(Yup);
|
|
80
80
|
|
|
81
|
-
function ownKeys$
|
|
81
|
+
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; }
|
|
82
82
|
|
|
83
|
-
function _objectSpread$
|
|
83
|
+
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__default["default"](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; }
|
|
84
84
|
|
|
85
85
|
var consoleLogger = {
|
|
86
86
|
type: 'logger',
|
|
@@ -167,7 +167,7 @@ var Logger = function () {
|
|
|
167
167
|
}, {
|
|
168
168
|
key: "create",
|
|
169
169
|
value: function create(moduleName) {
|
|
170
|
-
return new Logger(this.logger, _objectSpread$
|
|
170
|
+
return new Logger(this.logger, _objectSpread$d(_objectSpread$d({}, {
|
|
171
171
|
prefix: "".concat(this.prefix, ":").concat(moduleName, ":")
|
|
172
172
|
}), this.options));
|
|
173
173
|
}
|
|
@@ -1939,6 +1939,8 @@ var Connector = function (_EventEmitter) {
|
|
|
1939
1939
|
_this.waitingReads = [];
|
|
1940
1940
|
_this.maxParallelReads = options.maxParallelReads || 10;
|
|
1941
1941
|
_this.readingCalls = 0;
|
|
1942
|
+
_this.maxRetries = options.maxRetries >= 0 ? options.maxRetries : 5;
|
|
1943
|
+
_this.retryTimeout = options.retryTimeout >= 1 ? options.retryTimeout : 350;
|
|
1942
1944
|
_this.state = {};
|
|
1943
1945
|
_this.queue = [];
|
|
1944
1946
|
|
|
@@ -2045,7 +2047,7 @@ var Connector = function (_EventEmitter) {
|
|
|
2045
2047
|
var _this3 = this;
|
|
2046
2048
|
|
|
2047
2049
|
var tried = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
2048
|
-
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] :
|
|
2050
|
+
var wait = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : this.retryTimeout;
|
|
2049
2051
|
var callback = arguments.length > 5 ? arguments[5] : undefined;
|
|
2050
2052
|
if (!lng.length) return callback(null, {});
|
|
2051
2053
|
|
|
@@ -2071,7 +2073,7 @@ var Connector = function (_EventEmitter) {
|
|
|
2071
2073
|
_this3.read(next.lng, next.ns, next.fcName, next.tried, next.wait, next.callback);
|
|
2072
2074
|
}
|
|
2073
2075
|
|
|
2074
|
-
if (err && data && tried <
|
|
2076
|
+
if (err && data && tried < _this3.maxRetries) {
|
|
2075
2077
|
setTimeout(function () {
|
|
2076
2078
|
_this3.read.call(_this3, lng, ns, fcName, tried + 1, wait * 2, callback);
|
|
2077
2079
|
}, wait);
|
|
@@ -2247,7 +2249,7 @@ function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeRefl
|
|
|
2247
2249
|
|
|
2248
2250
|
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; } }
|
|
2249
2251
|
|
|
2250
|
-
function noop$
|
|
2252
|
+
function noop$4() {}
|
|
2251
2253
|
|
|
2252
2254
|
function bindMemberFunctions(inst) {
|
|
2253
2255
|
var mems = Object.getOwnPropertyNames(Object.getPrototypeOf(inst));
|
|
@@ -2313,7 +2315,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2313
2315
|
options = {};
|
|
2314
2316
|
}
|
|
2315
2317
|
|
|
2316
|
-
if (!options.defaultNS && options.ns) {
|
|
2318
|
+
if (!options.defaultNS && options.defaultNS !== false && options.ns) {
|
|
2317
2319
|
if (typeof options.ns === 'string') {
|
|
2318
2320
|
options.defaultNS = options.ns;
|
|
2319
2321
|
} else if (options.ns.indexOf('translation') < 0) {
|
|
@@ -2412,7 +2414,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2412
2414
|
}
|
|
2413
2415
|
|
|
2414
2416
|
this.format = this.options.interpolation.format;
|
|
2415
|
-
if (!callback) callback = noop$
|
|
2417
|
+
if (!callback) callback = noop$4;
|
|
2416
2418
|
|
|
2417
2419
|
if (this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2418
2420
|
var codes = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
@@ -2473,7 +2475,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2473
2475
|
value: function loadResources(language) {
|
|
2474
2476
|
var _this3 = this;
|
|
2475
2477
|
|
|
2476
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
2478
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$4;
|
|
2477
2479
|
var usedCallback = callback;
|
|
2478
2480
|
var usedLng = typeof language === 'string' ? language : this.language;
|
|
2479
2481
|
if (typeof language === 'function') usedCallback = language;
|
|
@@ -2521,7 +2523,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2521
2523
|
var deferred = defer();
|
|
2522
2524
|
if (!lngs) lngs = this.languages;
|
|
2523
2525
|
if (!ns) ns = this.options.ns;
|
|
2524
|
-
if (!callback) callback = noop$
|
|
2526
|
+
if (!callback) callback = noop$4;
|
|
2525
2527
|
this.services.backendConnector.reload(lngs, ns, function (err) {
|
|
2526
2528
|
deferred.resolve();
|
|
2527
2529
|
callback(err);
|
|
@@ -2800,7 +2802,7 @@ var I18n = function (_EventEmitter) {
|
|
|
2800
2802
|
var _this8 = this;
|
|
2801
2803
|
|
|
2802
2804
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
2803
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$
|
|
2805
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop$4;
|
|
2804
2806
|
|
|
2805
2807
|
var mergedOptions = _objectSpread$6$1(_objectSpread$6$1(_objectSpread$6$1({}, this.options), options), {
|
|
2806
2808
|
isClone: true
|
|
@@ -2890,12 +2892,12 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2890
2892
|
var opt = options || {};
|
|
2891
2893
|
opt.path = opt.path || '/';
|
|
2892
2894
|
var value = encodeURIComponent(val);
|
|
2893
|
-
var str = name
|
|
2895
|
+
var str = "".concat(name, "=").concat(value);
|
|
2894
2896
|
|
|
2895
2897
|
if (opt.maxAge > 0) {
|
|
2896
2898
|
var maxAge = opt.maxAge - 0;
|
|
2897
|
-
if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
2898
|
-
str +=
|
|
2899
|
+
if (Number.isNaN(maxAge)) throw new Error('maxAge should be a Number');
|
|
2900
|
+
str += "; Max-Age=".concat(Math.floor(maxAge));
|
|
2899
2901
|
}
|
|
2900
2902
|
|
|
2901
2903
|
if (opt.domain) {
|
|
@@ -2903,7 +2905,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2903
2905
|
throw new TypeError('option domain is invalid');
|
|
2904
2906
|
}
|
|
2905
2907
|
|
|
2906
|
-
str +=
|
|
2908
|
+
str += "; Domain=".concat(opt.domain);
|
|
2907
2909
|
}
|
|
2908
2910
|
|
|
2909
2911
|
if (opt.path) {
|
|
@@ -2911,7 +2913,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2911
2913
|
throw new TypeError('option path is invalid');
|
|
2912
2914
|
}
|
|
2913
2915
|
|
|
2914
|
-
str +=
|
|
2916
|
+
str += "; Path=".concat(opt.path);
|
|
2915
2917
|
}
|
|
2916
2918
|
|
|
2917
2919
|
if (opt.expires) {
|
|
@@ -2919,7 +2921,7 @@ var serializeCookie = function serializeCookie(name, val, options) {
|
|
|
2919
2921
|
throw new TypeError('option expires is invalid');
|
|
2920
2922
|
}
|
|
2921
2923
|
|
|
2922
|
-
str +=
|
|
2924
|
+
str += "; Expires=".concat(opt.expires.toUTCString());
|
|
2923
2925
|
}
|
|
2924
2926
|
|
|
2925
2927
|
if (opt.httpOnly) str += '; HttpOnly';
|
|
@@ -2969,7 +2971,7 @@ var cookie = {
|
|
|
2969
2971
|
document.cookie = serializeCookie(name, encodeURIComponent(value), cookieOptions);
|
|
2970
2972
|
},
|
|
2971
2973
|
read: function read(name) {
|
|
2972
|
-
var nameEQ = name
|
|
2974
|
+
var nameEQ = "".concat(name, "=");
|
|
2973
2975
|
var ca = document.cookie.split(';');
|
|
2974
2976
|
|
|
2975
2977
|
for (var i = 0; i < ca.length; i++) {
|
|
@@ -3179,21 +3181,16 @@ var path = {
|
|
|
3179
3181
|
var subdomain = {
|
|
3180
3182
|
name: 'subdomain',
|
|
3181
3183
|
lookup: function lookup(options) {
|
|
3182
|
-
|
|
3184
|
+
// If given get the subdomain index else 1
|
|
3185
|
+
var lookupFromSubdomainIndex = typeof options.lookupFromSubdomainIndex === 'number' ? options.lookupFromSubdomainIndex + 1 : 1; // get all matches if window.location. is existing
|
|
3186
|
+
// first item of match is the match itself and the second is the first group macht which sould be the first subdomain match
|
|
3187
|
+
// is the hostname no public domain get the or option of localhost
|
|
3183
3188
|
|
|
3184
|
-
|
|
3185
|
-
var language = window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);
|
|
3189
|
+
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
|
|
3186
3190
|
|
|
3187
|
-
|
|
3188
|
-
if (typeof options.lookupFromSubdomainIndex === 'number') {
|
|
3189
|
-
found = language[options.lookupFromSubdomainIndex].replace('http://', '').replace('https://', '').replace('.', '');
|
|
3190
|
-
} else {
|
|
3191
|
-
found = language[0].replace('http://', '').replace('https://', '').replace('.', '');
|
|
3192
|
-
}
|
|
3193
|
-
}
|
|
3194
|
-
}
|
|
3191
|
+
if (!language) return undefined; // return the given group match
|
|
3195
3192
|
|
|
3196
|
-
return
|
|
3193
|
+
return language[lookupFromSubdomainIndex];
|
|
3197
3194
|
}
|
|
3198
3195
|
};
|
|
3199
3196
|
|
|
@@ -3206,8 +3203,8 @@ function getDefaults$1() {
|
|
|
3206
3203
|
lookupSessionStorage: 'i18nextLng',
|
|
3207
3204
|
// cache user language
|
|
3208
3205
|
caches: ['localStorage'],
|
|
3209
|
-
excludeCacheFor: ['cimode'] //cookieMinutes: 10,
|
|
3210
|
-
//cookieDomain: 'myDomain'
|
|
3206
|
+
excludeCacheFor: ['cimode'] // cookieMinutes: 10,
|
|
3207
|
+
// cookieDomain: 'myDomain'
|
|
3211
3208
|
|
|
3212
3209
|
};
|
|
3213
3210
|
}
|
|
@@ -3341,9 +3338,9 @@ var unescape = function unescape(text) {
|
|
|
3341
3338
|
return text.replace(matchHtmlEntity, unescapeHtmlEntity);
|
|
3342
3339
|
};
|
|
3343
3340
|
|
|
3344
|
-
function ownKeys$
|
|
3341
|
+
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; }
|
|
3345
3342
|
|
|
3346
|
-
function _objectSpread$
|
|
3343
|
+
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__default$1["default"](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; }
|
|
3347
3344
|
var defaultOptions = {
|
|
3348
3345
|
bindI18n: 'languageChanged',
|
|
3349
3346
|
bindI18nStore: '',
|
|
@@ -3358,7 +3355,7 @@ var i18nInstance;
|
|
|
3358
3355
|
var I18nContext = React.createContext();
|
|
3359
3356
|
function setDefaults() {
|
|
3360
3357
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
3361
|
-
defaultOptions = _objectSpread$
|
|
3358
|
+
defaultOptions = _objectSpread$c(_objectSpread$c({}, defaultOptions), options);
|
|
3362
3359
|
}
|
|
3363
3360
|
function getDefaults() {
|
|
3364
3361
|
return defaultOptions;
|
|
@@ -3485,9 +3482,9 @@ function hasLoadedNamespace(ns, i18n) {
|
|
|
3485
3482
|
var _excluded$4 = ["format"],
|
|
3486
3483
|
_excluded2$3 = ["children", "count", "parent", "i18nKey", "context", "tOptions", "values", "defaults", "components", "ns", "i18n", "t", "shouldUnescape"];
|
|
3487
3484
|
|
|
3488
|
-
function ownKeys$
|
|
3485
|
+
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; }
|
|
3489
3486
|
|
|
3490
|
-
function _objectSpread$
|
|
3487
|
+
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__default$1["default"](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; }
|
|
3491
3488
|
|
|
3492
3489
|
function hasChildren(node, checkLength) {
|
|
3493
3490
|
if (!node) return false;
|
|
@@ -3498,7 +3495,7 @@ function hasChildren(node, checkLength) {
|
|
|
3498
3495
|
|
|
3499
3496
|
function getChildren(node) {
|
|
3500
3497
|
if (!node) return [];
|
|
3501
|
-
return node
|
|
3498
|
+
return node.props ? node.props.children : node.children;
|
|
3502
3499
|
}
|
|
3503
3500
|
|
|
3504
3501
|
function hasValidReactChildren(children) {
|
|
@@ -3513,7 +3510,7 @@ function getAsArray(data) {
|
|
|
3513
3510
|
}
|
|
3514
3511
|
|
|
3515
3512
|
function mergeProps(source, target) {
|
|
3516
|
-
var newTarget = _objectSpread$
|
|
3513
|
+
var newTarget = _objectSpread$b({}, target);
|
|
3517
3514
|
|
|
3518
3515
|
newTarget.props = Object.assign(source.props, target.props);
|
|
3519
3516
|
return newTarget;
|
|
@@ -3583,7 +3580,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3583
3580
|
getData(children);
|
|
3584
3581
|
var ast = c.parse("<0>".concat(targetString, "</0>"));
|
|
3585
3582
|
|
|
3586
|
-
var opts = _objectSpread$
|
|
3583
|
+
var opts = _objectSpread$b(_objectSpread$b({}, data), combinedTOpts);
|
|
3587
3584
|
|
|
3588
3585
|
function renderInner(child, node, rootReactNode) {
|
|
3589
3586
|
var childs = getChildren(child);
|
|
@@ -3593,7 +3590,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3593
3590
|
|
|
3594
3591
|
function pushTranslatedJSX(child, inner, mem, i, isVoid) {
|
|
3595
3592
|
if (child.dummy) child.children = inner;
|
|
3596
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3593
|
+
mem.push(React.cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3597
3594
|
key: i
|
|
3598
3595
|
}), isVoid ? undefined : inner));
|
|
3599
3596
|
}
|
|
@@ -3625,7 +3622,7 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3625
3622
|
} else if (isEmptyTransWithHTML) {
|
|
3626
3623
|
var _inner = mapAST(reactNodes, node.children, rootReactNode);
|
|
3627
3624
|
|
|
3628
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3625
|
+
mem.push(React.cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3629
3626
|
key: i
|
|
3630
3627
|
}), _inner));
|
|
3631
3628
|
} else if (Number.isNaN(parseFloat(node.name))) {
|
|
@@ -3656,11 +3653,11 @@ function renderNodes(children, targetString, i18n, i18nOptions, combinedTOpts, s
|
|
|
3656
3653
|
var content = node.children[0] ? translationContent : null;
|
|
3657
3654
|
if (content) mem.push(content);
|
|
3658
3655
|
} else if (node.children.length === 1 && translationContent) {
|
|
3659
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3656
|
+
mem.push(React.cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3660
3657
|
key: i
|
|
3661
3658
|
}), translationContent));
|
|
3662
3659
|
} else {
|
|
3663
|
-
mem.push(React.cloneElement(child, _objectSpread$
|
|
3660
|
+
mem.push(React.cloneElement(child, _objectSpread$b(_objectSpread$b({}, child.props), {}, {
|
|
3664
3661
|
key: i
|
|
3665
3662
|
})));
|
|
3666
3663
|
}
|
|
@@ -3723,7 +3720,7 @@ function Trans(_ref) {
|
|
|
3723
3720
|
|
|
3724
3721
|
if (context) tOptions.context = context;
|
|
3725
3722
|
|
|
3726
|
-
var reactI18nextOptions = _objectSpread$
|
|
3723
|
+
var reactI18nextOptions = _objectSpread$b(_objectSpread$b({}, getDefaults()), i18n.options && i18n.options.react);
|
|
3727
3724
|
|
|
3728
3725
|
var namespaces = ns || t.ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
|
|
3729
3726
|
namespaces = typeof namespaces === 'string' ? [namespaces] : namespaces || ['translation'];
|
|
@@ -3731,13 +3728,13 @@ function Trans(_ref) {
|
|
|
3731
3728
|
var hashTransKey = reactI18nextOptions.hashTransKey;
|
|
3732
3729
|
var key = i18nKey || (hashTransKey ? hashTransKey(defaultValue) : defaultValue);
|
|
3733
3730
|
var interpolationOverride = values ? tOptions.interpolation : {
|
|
3734
|
-
interpolation: _objectSpread$
|
|
3731
|
+
interpolation: _objectSpread$b(_objectSpread$b({}, tOptions.interpolation), {}, {
|
|
3735
3732
|
prefix: '#$?',
|
|
3736
3733
|
suffix: '?$#'
|
|
3737
3734
|
})
|
|
3738
3735
|
};
|
|
3739
3736
|
|
|
3740
|
-
var combinedTOpts = _objectSpread$
|
|
3737
|
+
var combinedTOpts = _objectSpread$b(_objectSpread$b(_objectSpread$b(_objectSpread$b({}, tOptions), {}, {
|
|
3741
3738
|
count: count
|
|
3742
3739
|
}, values), interpolationOverride), {}, {
|
|
3743
3740
|
defaultValue: defaultValue,
|
|
@@ -3750,9 +3747,9 @@ function Trans(_ref) {
|
|
|
3750
3747
|
return useAsParent ? React.createElement(useAsParent, additionalProps, content) : content;
|
|
3751
3748
|
}
|
|
3752
3749
|
|
|
3753
|
-
function ownKeys$
|
|
3750
|
+
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; }
|
|
3754
3751
|
|
|
3755
|
-
function _objectSpread$
|
|
3752
|
+
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__default$1["default"](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; }
|
|
3756
3753
|
|
|
3757
3754
|
var usePrevious = function usePrevious(value, ignore) {
|
|
3758
3755
|
var ref = React.useRef();
|
|
@@ -3789,7 +3786,7 @@ function useTranslation(ns) {
|
|
|
3789
3786
|
|
|
3790
3787
|
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.');
|
|
3791
3788
|
|
|
3792
|
-
var i18nOptions = _objectSpread$
|
|
3789
|
+
var i18nOptions = _objectSpread$a(_objectSpread$a(_objectSpread$a({}, getDefaults()), i18n.options.react), props);
|
|
3793
3790
|
|
|
3794
3791
|
var useSuspense = i18nOptions.useSuspense,
|
|
3795
3792
|
keyPrefix = i18nOptions.keyPrefix;
|
|
@@ -3850,7 +3847,7 @@ function useTranslation(ns) {
|
|
|
3850
3847
|
}
|
|
3851
3848
|
|
|
3852
3849
|
isInitial.current = false;
|
|
3853
|
-
}, [i18n]);
|
|
3850
|
+
}, [i18n, keyPrefix]);
|
|
3854
3851
|
var ret = [t, i18n, ready];
|
|
3855
3852
|
ret.t = t;
|
|
3856
3853
|
ret.i18n = i18n;
|
|
@@ -3937,6 +3934,14 @@ var placeholders$1 = {
|
|
|
3937
3934
|
enterRoleName: "Please enter the role name",
|
|
3938
3935
|
role: "Please select a role"
|
|
3939
3936
|
};
|
|
3937
|
+
var tooltips$1 = {
|
|
3938
|
+
activateUserToEdit: "Please activate the user to edit their role.",
|
|
3939
|
+
editAdminRoleNotAllowed: "Sorry, you are not allowed to edit the admin role.",
|
|
3940
|
+
editCurrentUserNotAllowed: "Sorry, you are not allowed to edit your role.",
|
|
3941
|
+
noPermissionToAddMember: "Sorry, you do not have permission to add a member.",
|
|
3942
|
+
noPermissionToAddRole: "Sorry, you do not have permission to add a new role.",
|
|
3943
|
+
noPermissionToEditMembers: "Sorry, you do not have permission to edit members."
|
|
3944
|
+
};
|
|
3940
3945
|
var validations$1 = {
|
|
3941
3946
|
enterRoleName: "Please enter a valid role name.",
|
|
3942
3947
|
filterInvalidEmails: "Click here to remove invalid emails.",
|
|
@@ -3951,6 +3956,7 @@ var en = {
|
|
|
3951
3956
|
helpers: helpers$1,
|
|
3952
3957
|
metaNames: metaNames$1,
|
|
3953
3958
|
placeholders: placeholders$1,
|
|
3959
|
+
tooltips: tooltips$1,
|
|
3954
3960
|
validations: validations$1
|
|
3955
3961
|
};
|
|
3956
3962
|
|
|
@@ -4025,6 +4031,14 @@ var placeholders = {
|
|
|
4025
4031
|
enterRoleName: "Veuillez entrer le nom du rôle",
|
|
4026
4032
|
role: "Veuillez sélectionner un rôle"
|
|
4027
4033
|
};
|
|
4034
|
+
var tooltips = {
|
|
4035
|
+
activateUserToEdit: "Veuillez activer l'utilisateur pour modifier son rôle.",
|
|
4036
|
+
editAdminRoleNotAllowed: "Désolé, vous n'êtes pas autorisé à modifier le rôle admin.",
|
|
4037
|
+
editCurrentUserNotAllowed: "Désolé, vous n'êtes pas autorisé à modifier votre rôle.",
|
|
4038
|
+
noPermissionToAddMember: "Désolé, vous n'avez pas la permission d'ajouter un membre.",
|
|
4039
|
+
noPermissionToAddRole: "Désolé, vous n'avez pas la permission d'ajouter un nouveau rôle.",
|
|
4040
|
+
noPermissionToEditMembers: "Désolé, vous n'avez pas la permission de modifier les membres."
|
|
4041
|
+
};
|
|
4028
4042
|
var validations = {
|
|
4029
4043
|
filterInvalidEmails: "Cliquez ici pour supprimer les e-mails invalides.",
|
|
4030
4044
|
minOneEmail: "Veuillez saisir au moins une adresse e-mail.",
|
|
@@ -4038,6 +4052,7 @@ var fr = {
|
|
|
4038
4052
|
helpers: helpers,
|
|
4039
4053
|
metaNames: metaNames,
|
|
4040
4054
|
placeholders: placeholders,
|
|
4055
|
+
tooltips: tooltips,
|
|
4041
4056
|
validations: validations
|
|
4042
4057
|
};
|
|
4043
4058
|
|
|
@@ -4142,7 +4157,7 @@ var Subscribable = /*#__PURE__*/function () {
|
|
|
4142
4157
|
// TYPES
|
|
4143
4158
|
// UTILS
|
|
4144
4159
|
var isServer = typeof window === 'undefined';
|
|
4145
|
-
function noop$
|
|
4160
|
+
function noop$3() {
|
|
4146
4161
|
return undefined;
|
|
4147
4162
|
}
|
|
4148
4163
|
function functionalUpdate(updater, input) {
|
|
@@ -5005,7 +5020,7 @@ var Query = /*#__PURE__*/function () {
|
|
|
5005
5020
|
|
|
5006
5021
|
var promise = this.promise;
|
|
5007
5022
|
(_this$retryer = this.retryer) == null ? void 0 : _this$retryer.cancel(options);
|
|
5008
|
-
return promise ? promise.then(noop$
|
|
5023
|
+
return promise ? promise.then(noop$3).catch(noop$3) : Promise.resolve();
|
|
5009
5024
|
};
|
|
5010
5025
|
|
|
5011
5026
|
_proto.destroy = function destroy() {
|
|
@@ -5579,7 +5594,7 @@ var Mutation = /*#__PURE__*/function () {
|
|
|
5579
5594
|
_proto.cancel = function cancel() {
|
|
5580
5595
|
if (this.retryer) {
|
|
5581
5596
|
this.retryer.cancel();
|
|
5582
|
-
return this.retryer.promise.then(noop$
|
|
5597
|
+
return this.retryer.promise.then(noop$3).catch(noop$3);
|
|
5583
5598
|
}
|
|
5584
5599
|
|
|
5585
5600
|
return Promise.resolve();
|
|
@@ -5868,7 +5883,7 @@ var MutationCache = /*#__PURE__*/function (_Subscribable) {
|
|
|
5868
5883
|
return notifyManager.batch(function () {
|
|
5869
5884
|
return pausedMutations.reduce(function (promise, mutation) {
|
|
5870
5885
|
return promise.then(function () {
|
|
5871
|
-
return mutation.continue().catch(noop$
|
|
5886
|
+
return mutation.continue().catch(noop$3);
|
|
5872
5887
|
});
|
|
5873
5888
|
}, Promise.resolve());
|
|
5874
5889
|
});
|
|
@@ -6151,7 +6166,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6151
6166
|
return query.cancel(cancelOptions);
|
|
6152
6167
|
});
|
|
6153
6168
|
});
|
|
6154
|
-
return Promise.all(promises).then(noop$
|
|
6169
|
+
return Promise.all(promises).then(noop$3).catch(noop$3);
|
|
6155
6170
|
};
|
|
6156
6171
|
|
|
6157
6172
|
_proto.invalidateQueries = function invalidateQueries(arg1, arg2, arg3) {
|
|
@@ -6196,10 +6211,10 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6196
6211
|
}));
|
|
6197
6212
|
});
|
|
6198
6213
|
});
|
|
6199
|
-
var promise = Promise.all(promises).then(noop$
|
|
6214
|
+
var promise = Promise.all(promises).then(noop$3);
|
|
6200
6215
|
|
|
6201
6216
|
if (!(options == null ? void 0 : options.throwOnError)) {
|
|
6202
|
-
promise = promise.catch(noop$
|
|
6217
|
+
promise = promise.catch(noop$3);
|
|
6203
6218
|
}
|
|
6204
6219
|
|
|
6205
6220
|
return promise;
|
|
@@ -6218,7 +6233,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6218
6233
|
};
|
|
6219
6234
|
|
|
6220
6235
|
_proto.prefetchQuery = function prefetchQuery(arg1, arg2, arg3) {
|
|
6221
|
-
return this.fetchQuery(arg1, arg2, arg3).then(noop$
|
|
6236
|
+
return this.fetchQuery(arg1, arg2, arg3).then(noop$3).catch(noop$3);
|
|
6222
6237
|
};
|
|
6223
6238
|
|
|
6224
6239
|
_proto.fetchInfiniteQuery = function fetchInfiniteQuery(arg1, arg2, arg3) {
|
|
@@ -6228,7 +6243,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6228
6243
|
};
|
|
6229
6244
|
|
|
6230
6245
|
_proto.prefetchInfiniteQuery = function prefetchInfiniteQuery(arg1, arg2, arg3) {
|
|
6231
|
-
return this.fetchInfiniteQuery(arg1, arg2, arg3).then(noop$
|
|
6246
|
+
return this.fetchInfiniteQuery(arg1, arg2, arg3).then(noop$3).catch(noop$3);
|
|
6232
6247
|
};
|
|
6233
6248
|
|
|
6234
6249
|
_proto.cancelMutations = function cancelMutations() {
|
|
@@ -6239,7 +6254,7 @@ var QueryClient = /*#__PURE__*/function () {
|
|
|
6239
6254
|
return mutation.cancel();
|
|
6240
6255
|
});
|
|
6241
6256
|
});
|
|
6242
|
-
return Promise.all(promises).then(noop$
|
|
6257
|
+
return Promise.all(promises).then(noop$3).catch(noop$3);
|
|
6243
6258
|
};
|
|
6244
6259
|
|
|
6245
6260
|
_proto.resumePausedMutations = function resumePausedMutations() {
|
|
@@ -6543,7 +6558,7 @@ var QueryObserver = /*#__PURE__*/function (_Subscribable) {
|
|
|
6543
6558
|
var promise = this.currentQuery.fetch(this.options, fetchOptions);
|
|
6544
6559
|
|
|
6545
6560
|
if (!(fetchOptions == null ? void 0 : fetchOptions.throwOnError)) {
|
|
6546
|
-
promise = promise.catch(noop$
|
|
6561
|
+
promise = promise.catch(noop$3);
|
|
6547
6562
|
}
|
|
6548
6563
|
|
|
6549
6564
|
return promise;
|
|
@@ -7135,7 +7150,7 @@ function useMutation(arg1, arg2, arg3) {
|
|
|
7135
7150
|
};
|
|
7136
7151
|
}, []);
|
|
7137
7152
|
var mutate = React__default["default"].useCallback(function (variables, mutateOptions) {
|
|
7138
|
-
obsRef.current.mutate(variables, mutateOptions).catch(noop$
|
|
7153
|
+
obsRef.current.mutate(variables, mutateOptions).catch(noop$3);
|
|
7139
7154
|
}, []);
|
|
7140
7155
|
|
|
7141
7156
|
if (currentResult.error && shouldThrowError(undefined, obsRef.current.options.useErrorBoundary, [currentResult.error])) {
|
|
@@ -7790,31 +7805,31 @@ var _default = function (file, acceptedFiles) {
|
|
|
7790
7805
|
return true;
|
|
7791
7806
|
};
|
|
7792
7807
|
|
|
7793
|
-
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$
|
|
7808
|
+
function _toConsumableArray$1(arr) { return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$1(); }
|
|
7794
7809
|
|
|
7795
7810
|
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."); }
|
|
7796
7811
|
|
|
7797
7812
|
function _iterableToArray$1(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7798
7813
|
|
|
7799
|
-
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$
|
|
7814
|
+
function _arrayWithoutHoles$1(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$3(arr); }
|
|
7800
7815
|
|
|
7801
|
-
function ownKeys$
|
|
7816
|
+
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; }
|
|
7802
7817
|
|
|
7803
|
-
function _objectSpread$
|
|
7818
|
+
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; }
|
|
7804
7819
|
|
|
7805
|
-
function _defineProperty$
|
|
7820
|
+
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; }
|
|
7806
7821
|
|
|
7807
|
-
function _slicedToArray$
|
|
7822
|
+
function _slicedToArray$3(arr, i) { return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3(); }
|
|
7808
7823
|
|
|
7809
|
-
function _nonIterableRest$
|
|
7824
|
+
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."); }
|
|
7810
7825
|
|
|
7811
|
-
function _unsupportedIterableToArray$
|
|
7826
|
+
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); }
|
|
7812
7827
|
|
|
7813
|
-
function _arrayLikeToArray$
|
|
7828
|
+
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; }
|
|
7814
7829
|
|
|
7815
|
-
function _iterableToArrayLimit$
|
|
7830
|
+
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; }
|
|
7816
7831
|
|
|
7817
|
-
function _arrayWithHoles$
|
|
7832
|
+
function _arrayWithHoles$3(arr) { if (Array.isArray(arr)) return arr; }
|
|
7818
7833
|
|
|
7819
7834
|
var FILE_INVALID_TYPE = "file-invalid-type";
|
|
7820
7835
|
var FILE_TOO_LARGE = "file-too-large";
|
|
@@ -7894,11 +7909,11 @@ function allFilesAccepted(_ref) {
|
|
|
7894
7909
|
|
|
7895
7910
|
return files.every(function (file) {
|
|
7896
7911
|
var _fileAccepted = fileAccepted(file, accept),
|
|
7897
|
-
_fileAccepted2 = _slicedToArray$
|
|
7912
|
+
_fileAccepted2 = _slicedToArray$3(_fileAccepted, 1),
|
|
7898
7913
|
accepted = _fileAccepted2[0];
|
|
7899
7914
|
|
|
7900
7915
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
|
|
7901
|
-
_fileMatchSize2 = _slicedToArray$
|
|
7916
|
+
_fileMatchSize2 = _slicedToArray$3(_fileMatchSize, 1),
|
|
7902
7917
|
sizeMatch = _fileMatchSize2[0];
|
|
7903
7918
|
|
|
7904
7919
|
var customErrors = validator ? validator(file) : null;
|
|
@@ -7995,7 +8010,7 @@ function canUseFileSystemAccessAPI() {
|
|
|
7995
8010
|
function pickerOptionsFromAccept(accept) {
|
|
7996
8011
|
if (isDefined(accept)) {
|
|
7997
8012
|
var acceptForPicker = Object.entries(accept).filter(function (_ref2) {
|
|
7998
|
-
var _ref3 = _slicedToArray$
|
|
8013
|
+
var _ref3 = _slicedToArray$3(_ref2, 2),
|
|
7999
8014
|
mimeType = _ref3[0],
|
|
8000
8015
|
ext = _ref3[1];
|
|
8001
8016
|
|
|
@@ -8013,11 +8028,11 @@ function pickerOptionsFromAccept(accept) {
|
|
|
8013
8028
|
|
|
8014
8029
|
return ok;
|
|
8015
8030
|
}).reduce(function (agg, _ref4) {
|
|
8016
|
-
var _ref5 = _slicedToArray$
|
|
8031
|
+
var _ref5 = _slicedToArray$3(_ref4, 2),
|
|
8017
8032
|
mimeType = _ref5[0],
|
|
8018
8033
|
ext = _ref5[1];
|
|
8019
8034
|
|
|
8020
|
-
return _objectSpread$
|
|
8035
|
+
return _objectSpread$9(_objectSpread$9({}, agg), {}, _defineProperty$2({}, mimeType, ext));
|
|
8021
8036
|
}, {});
|
|
8022
8037
|
return [{
|
|
8023
8038
|
accept: acceptForPicker
|
|
@@ -8035,7 +8050,7 @@ function pickerOptionsFromAccept(accept) {
|
|
|
8035
8050
|
function acceptPropAsAcceptAttr(accept) {
|
|
8036
8051
|
if (isDefined(accept)) {
|
|
8037
8052
|
return Object.entries(accept).reduce(function (a, _ref6) {
|
|
8038
|
-
var _ref7 = _slicedToArray$
|
|
8053
|
+
var _ref7 = _slicedToArray$3(_ref6, 2),
|
|
8039
8054
|
mimeType = _ref7[0],
|
|
8040
8055
|
ext = _ref7[1];
|
|
8041
8056
|
|
|
@@ -8108,31 +8123,31 @@ var _excluded$3 = ["children"],
|
|
|
8108
8123
|
_excluded3$1 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"],
|
|
8109
8124
|
_excluded4 = ["refKey", "onChange", "onClick"];
|
|
8110
8125
|
|
|
8111
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8126
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread(); }
|
|
8112
8127
|
|
|
8113
8128
|
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."); }
|
|
8114
8129
|
|
|
8115
8130
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8116
8131
|
|
|
8117
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8132
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray$2(arr); }
|
|
8118
8133
|
|
|
8119
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8134
|
+
function _slicedToArray$2(arr, i) { return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2(); }
|
|
8120
8135
|
|
|
8121
|
-
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."); }
|
|
8136
|
+
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."); }
|
|
8122
8137
|
|
|
8123
|
-
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); }
|
|
8138
|
+
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); }
|
|
8124
8139
|
|
|
8125
|
-
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; }
|
|
8140
|
+
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; }
|
|
8126
8141
|
|
|
8127
|
-
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; }
|
|
8142
|
+
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; }
|
|
8128
8143
|
|
|
8129
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8144
|
+
function _arrayWithHoles$2(arr) { if (Array.isArray(arr)) return arr; }
|
|
8130
8145
|
|
|
8131
|
-
function ownKeys$
|
|
8146
|
+
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; }
|
|
8132
8147
|
|
|
8133
|
-
function _objectSpread$
|
|
8148
|
+
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; }
|
|
8134
8149
|
|
|
8135
|
-
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; }
|
|
8150
|
+
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; }
|
|
8136
8151
|
|
|
8137
8152
|
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; }
|
|
8138
8153
|
|
|
@@ -8166,7 +8181,7 @@ var Dropzone = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
8166
8181
|
};
|
|
8167
8182
|
}, [open]); // TODO: Figure out why react-styleguidist cannot create docs if we don't return a jsx element
|
|
8168
8183
|
|
|
8169
|
-
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, children(_objectSpread$
|
|
8184
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, children(_objectSpread$8(_objectSpread$8({}, props), {}, {
|
|
8170
8185
|
open: open
|
|
8171
8186
|
})));
|
|
8172
8187
|
});
|
|
@@ -8539,7 +8554,7 @@ var initialState = {
|
|
|
8539
8554
|
function useDropzone() {
|
|
8540
8555
|
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
8541
8556
|
|
|
8542
|
-
var _defaultProps$props = _objectSpread$
|
|
8557
|
+
var _defaultProps$props = _objectSpread$8(_objectSpread$8({}, defaultProps), props),
|
|
8543
8558
|
accept = _defaultProps$props.accept,
|
|
8544
8559
|
disabled = _defaultProps$props.disabled,
|
|
8545
8560
|
getFilesFromEvent = _defaultProps$props.getFilesFromEvent,
|
|
@@ -8572,10 +8587,10 @@ function useDropzone() {
|
|
|
8572
8587
|
return pickerOptionsFromAccept(accept);
|
|
8573
8588
|
}, [accept]);
|
|
8574
8589
|
var onFileDialogOpenCb = React.useMemo(function () {
|
|
8575
|
-
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$
|
|
8590
|
+
return typeof onFileDialogOpen === "function" ? onFileDialogOpen : noop$2;
|
|
8576
8591
|
}, [onFileDialogOpen]);
|
|
8577
8592
|
var onFileDialogCancelCb = React.useMemo(function () {
|
|
8578
|
-
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop$
|
|
8593
|
+
return typeof onFileDialogCancel === "function" ? onFileDialogCancel : noop$2;
|
|
8579
8594
|
}, [onFileDialogCancel]);
|
|
8580
8595
|
/**
|
|
8581
8596
|
* @constant
|
|
@@ -8586,7 +8601,7 @@ function useDropzone() {
|
|
|
8586
8601
|
var inputRef = React.useRef(null);
|
|
8587
8602
|
|
|
8588
8603
|
var _useReducer = React.useReducer(reducer, initialState),
|
|
8589
|
-
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
8604
|
+
_useReducer2 = _slicedToArray$2(_useReducer, 2),
|
|
8590
8605
|
state = _useReducer2[0],
|
|
8591
8606
|
dispatch = _useReducer2[1];
|
|
8592
8607
|
|
|
@@ -8756,12 +8771,12 @@ function useDropzone() {
|
|
|
8756
8771
|
var fileRejections = [];
|
|
8757
8772
|
files.forEach(function (file) {
|
|
8758
8773
|
var _fileAccepted = fileAccepted(file, acceptAttr),
|
|
8759
|
-
_fileAccepted2 = _slicedToArray(_fileAccepted, 2),
|
|
8774
|
+
_fileAccepted2 = _slicedToArray$2(_fileAccepted, 2),
|
|
8760
8775
|
accepted = _fileAccepted2[0],
|
|
8761
8776
|
acceptError = _fileAccepted2[1];
|
|
8762
8777
|
|
|
8763
8778
|
var _fileMatchSize = fileMatchSize(file, minSize, maxSize),
|
|
8764
|
-
_fileMatchSize2 = _slicedToArray(_fileMatchSize, 2),
|
|
8779
|
+
_fileMatchSize2 = _slicedToArray$2(_fileMatchSize, 2),
|
|
8765
8780
|
sizeMatch = _fileMatchSize2[0],
|
|
8766
8781
|
sizeError = _fileMatchSize2[1];
|
|
8767
8782
|
|
|
@@ -8964,7 +8979,7 @@ function useDropzone() {
|
|
|
8964
8979
|
onDrop = _ref2.onDrop,
|
|
8965
8980
|
rest = _objectWithoutProperties(_ref2, _excluded3$1);
|
|
8966
8981
|
|
|
8967
|
-
return _objectSpread$
|
|
8982
|
+
return _objectSpread$8(_objectSpread$8(_defineProperty$1({
|
|
8968
8983
|
onKeyDown: composeKeyboardHandler(composeEventHandlers(onKeyDown, onKeyDownCb)),
|
|
8969
8984
|
onFocus: composeKeyboardHandler(composeEventHandlers(onFocus, onFocusCb)),
|
|
8970
8985
|
onBlur: composeKeyboardHandler(composeEventHandlers(onBlur, onBlurCb)),
|
|
@@ -8991,7 +9006,7 @@ function useDropzone() {
|
|
|
8991
9006
|
onClick = _ref3.onClick,
|
|
8992
9007
|
rest = _objectWithoutProperties(_ref3, _excluded4);
|
|
8993
9008
|
|
|
8994
|
-
var inputProps = _defineProperty({
|
|
9009
|
+
var inputProps = _defineProperty$1({
|
|
8995
9010
|
accept: acceptAttr,
|
|
8996
9011
|
multiple: multiple,
|
|
8997
9012
|
type: "file",
|
|
@@ -9003,10 +9018,10 @@ function useDropzone() {
|
|
|
9003
9018
|
tabIndex: -1
|
|
9004
9019
|
}, refKey, inputRef);
|
|
9005
9020
|
|
|
9006
|
-
return _objectSpread$
|
|
9021
|
+
return _objectSpread$8(_objectSpread$8({}, inputProps), rest);
|
|
9007
9022
|
};
|
|
9008
9023
|
}, [inputRef, accept, multiple, onDropCb, disabled]);
|
|
9009
|
-
return _objectSpread$
|
|
9024
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9010
9025
|
isFocused: isFocused && !disabled,
|
|
9011
9026
|
getRootProps: getRootProps,
|
|
9012
9027
|
getInputProps: getInputProps,
|
|
@@ -9025,47 +9040,47 @@ function reducer(state, action) {
|
|
|
9025
9040
|
/* istanbul ignore next */
|
|
9026
9041
|
switch (action.type) {
|
|
9027
9042
|
case "focus":
|
|
9028
|
-
return _objectSpread$
|
|
9043
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9029
9044
|
isFocused: true
|
|
9030
9045
|
});
|
|
9031
9046
|
|
|
9032
9047
|
case "blur":
|
|
9033
|
-
return _objectSpread$
|
|
9048
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9034
9049
|
isFocused: false
|
|
9035
9050
|
});
|
|
9036
9051
|
|
|
9037
9052
|
case "openDialog":
|
|
9038
|
-
return _objectSpread$
|
|
9053
|
+
return _objectSpread$8(_objectSpread$8({}, initialState), {}, {
|
|
9039
9054
|
isFileDialogActive: true
|
|
9040
9055
|
});
|
|
9041
9056
|
|
|
9042
9057
|
case "closeDialog":
|
|
9043
|
-
return _objectSpread$
|
|
9058
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9044
9059
|
isFileDialogActive: false
|
|
9045
9060
|
});
|
|
9046
9061
|
|
|
9047
9062
|
case "setDraggedFiles":
|
|
9048
|
-
return _objectSpread$
|
|
9063
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9049
9064
|
isDragActive: action.isDragActive,
|
|
9050
9065
|
isDragAccept: action.isDragAccept,
|
|
9051
9066
|
isDragReject: action.isDragReject
|
|
9052
9067
|
});
|
|
9053
9068
|
|
|
9054
9069
|
case "setFiles":
|
|
9055
|
-
return _objectSpread$
|
|
9070
|
+
return _objectSpread$8(_objectSpread$8({}, state), {}, {
|
|
9056
9071
|
acceptedFiles: action.acceptedFiles,
|
|
9057
9072
|
fileRejections: action.fileRejections
|
|
9058
9073
|
});
|
|
9059
9074
|
|
|
9060
9075
|
case "reset":
|
|
9061
|
-
return _objectSpread$
|
|
9076
|
+
return _objectSpread$8({}, initialState);
|
|
9062
9077
|
|
|
9063
9078
|
default:
|
|
9064
9079
|
return state;
|
|
9065
9080
|
}
|
|
9066
9081
|
}
|
|
9067
9082
|
|
|
9068
|
-
function noop$
|
|
9083
|
+
function noop$2() {}
|
|
9069
9084
|
|
|
9070
9085
|
const Uploader = _ref => {
|
|
9071
9086
|
let sampleFileUrl = _ref.sampleFileUrl,
|
|
@@ -9220,7 +9235,54 @@ const Csv = _ref => {
|
|
|
9220
9235
|
}, /*#__PURE__*/React__default["default"].createElement(Uploads, null)));
|
|
9221
9236
|
};
|
|
9222
9237
|
|
|
9223
|
-
|
|
9238
|
+
var dist$1 = {exports: {}};
|
|
9239
|
+
|
|
9240
|
+
(function (module, exports) {
|
|
9241
|
+
!function(e,t){module.exports=t(React__default["default"]);}("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);}])});
|
|
9242
|
+
} (dist$1));
|
|
9243
|
+
|
|
9244
|
+
const DEFAULT_INVITATION_TIME = 1000 * 60 * 60; // 1 hour
|
|
9245
|
+
|
|
9246
|
+
const getDefaultExpiryTime = () => {
|
|
9247
|
+
const now = new Date();
|
|
9248
|
+
return new Date(now.getTime() + DEFAULT_INVITATION_TIME);
|
|
9249
|
+
};
|
|
9250
|
+
const renderTime = time => {
|
|
9251
|
+
let timeString = "";
|
|
9252
|
+
Object.entries(time).forEach(_ref => {
|
|
9253
|
+
let _ref2 = _slicedToArray__default["default"](_ref, 2),
|
|
9254
|
+
key = _ref2[0],
|
|
9255
|
+
value = _ref2[1];
|
|
9256
|
+
|
|
9257
|
+
timeString += "".concat(value).concat(key[0], " ");
|
|
9258
|
+
});
|
|
9259
|
+
return timeString;
|
|
9260
|
+
};
|
|
9261
|
+
|
|
9262
|
+
const Timer = _ref => {
|
|
9263
|
+
let expiryTimestamp = _ref.expiryTimestamp;
|
|
9264
|
+
|
|
9265
|
+
const _useTimer = dist$1.exports.useTimer({
|
|
9266
|
+
expiryTimestamp: expiryTimestamp !== null && expiryTimestamp !== void 0 ? expiryTimestamp : getDefaultExpiryTime()
|
|
9267
|
+
}),
|
|
9268
|
+
seconds = _useTimer.seconds,
|
|
9269
|
+
minutes = _useTimer.minutes,
|
|
9270
|
+
hours = _useTimer.hours,
|
|
9271
|
+
days = _useTimer.days;
|
|
9272
|
+
|
|
9273
|
+
return /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
9274
|
+
style: "body2"
|
|
9275
|
+
}, renderTime({
|
|
9276
|
+
days,
|
|
9277
|
+
hours,
|
|
9278
|
+
minutes,
|
|
9279
|
+
seconds
|
|
9280
|
+
}));
|
|
9281
|
+
};
|
|
9282
|
+
|
|
9283
|
+
const InviteLink = _ref => {
|
|
9284
|
+
let inviteLinkProps = _ref.inviteLinkProps;
|
|
9285
|
+
|
|
9224
9286
|
const _useState = React.useState(false),
|
|
9225
9287
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
9226
9288
|
isInviteLinkActive = _useState2[0],
|
|
@@ -9236,7 +9298,9 @@ const InviteLink = () => {
|
|
|
9236
9298
|
style: "body2"
|
|
9237
9299
|
}, instance.t("helpers.inviteLinkInstruction"))), isInviteLinkActive ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
9238
9300
|
className: "ntm-invitations__invite-link-btns"
|
|
9239
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
9301
|
+
}, /*#__PURE__*/React__default["default"].createElement(Timer, {
|
|
9302
|
+
expiryTimestamp: inviteLinkProps.expiryTimestamp
|
|
9303
|
+
}), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
9240
9304
|
size: "large",
|
|
9241
9305
|
style: "danger-text",
|
|
9242
9306
|
label: instance.t("common.delete"),
|
|
@@ -9259,7 +9323,8 @@ const Normal = _ref => {
|
|
|
9259
9323
|
submitButtonProps = _ref.submitButtonProps,
|
|
9260
9324
|
setIsCSVInviteSelected = _ref.setIsCSVInviteSelected,
|
|
9261
9325
|
isCSVInviteEnabled = _ref.isCSVInviteEnabled,
|
|
9262
|
-
isInviteLinkEnabled = _ref.isInviteLinkEnabled
|
|
9326
|
+
isInviteLinkEnabled = _ref.isInviteLinkEnabled,
|
|
9327
|
+
inviteLinkProps = _ref.inviteLinkProps;
|
|
9263
9328
|
|
|
9264
9329
|
const _useFormikContext = formik.useFormikContext(),
|
|
9265
9330
|
isSubmitting = _useFormikContext.isSubmitting,
|
|
@@ -9301,10 +9366,12 @@ const Normal = _ref => {
|
|
|
9301
9366
|
className: classnames__default["default"]({
|
|
9302
9367
|
"ntm-invitations__footer": isInviteLinkEnabled
|
|
9303
9368
|
})
|
|
9304
|
-
}, isInviteLinkEnabled && /*#__PURE__*/React__default["default"].createElement(InviteLink,
|
|
9369
|
+
}, isInviteLinkEnabled && /*#__PURE__*/React__default["default"].createElement(InviteLink, {
|
|
9370
|
+
inviteLinkProps: inviteLinkProps
|
|
9371
|
+
})));
|
|
9305
9372
|
};
|
|
9306
9373
|
|
|
9307
|
-
const _excluded$2 = ["label", "isOpen", "onClose", "submitButtonProps", "csvColumns", "sampleFileUrl", "isCSVInviteEnabled", "isInviteLinkEnabled", "children"];
|
|
9374
|
+
const _excluded$2 = ["label", "isOpen", "onClose", "submitButtonProps", "csvColumns", "sampleFileUrl", "isCSVInviteEnabled", "isInviteLinkEnabled", "inviteLinkProps", "children"];
|
|
9308
9375
|
|
|
9309
9376
|
const Invitations = _ref => {
|
|
9310
9377
|
let _ref$label = _ref.label,
|
|
@@ -9323,6 +9390,8 @@ const Invitations = _ref => {
|
|
|
9323
9390
|
isCSVInviteEnabled = _ref$isCSVInviteEnabl === void 0 ? true : _ref$isCSVInviteEnabl,
|
|
9324
9391
|
_ref$isInviteLinkEnab = _ref.isInviteLinkEnabled,
|
|
9325
9392
|
isInviteLinkEnabled = _ref$isInviteLinkEnab === void 0 ? true : _ref$isInviteLinkEnab,
|
|
9393
|
+
_ref$inviteLinkProps = _ref.inviteLinkProps,
|
|
9394
|
+
inviteLinkProps = _ref$inviteLinkProps === void 0 ? {} : _ref$inviteLinkProps,
|
|
9326
9395
|
children = _ref.children,
|
|
9327
9396
|
otherProps = _objectWithoutProperties__default["default"](_ref, _excluded$2);
|
|
9328
9397
|
|
|
@@ -9357,7 +9426,8 @@ const Invitations = _ref => {
|
|
|
9357
9426
|
submitButtonProps: submitButtonProps,
|
|
9358
9427
|
setIsCSVInviteSelected: setIsCSVInviteSelected,
|
|
9359
9428
|
isCSVInviteEnabled: isCSVInviteEnabled,
|
|
9360
|
-
isInviteLinkEnabled: isInviteLinkEnabled
|
|
9429
|
+
isInviteLinkEnabled: isInviteLinkEnabled,
|
|
9430
|
+
inviteLinkProps: isInviteLinkEnabled && inviteLinkProps
|
|
9361
9431
|
}, children)))));
|
|
9362
9432
|
};
|
|
9363
9433
|
|
|
@@ -9380,19 +9450,243 @@ const QUERY_KEYS = {
|
|
|
9380
9450
|
PERMISSIONS: "permissions"
|
|
9381
9451
|
};
|
|
9382
9452
|
|
|
9383
|
-
function ownKeys$
|
|
9453
|
+
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; }
|
|
9384
9454
|
|
|
9385
|
-
function _objectSpread$
|
|
9455
|
+
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__default$1["default"](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; }
|
|
9386
9456
|
|
|
9387
9457
|
const useFetchPermissions = function () {
|
|
9388
9458
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
9389
|
-
return useQuery(QUERY_KEYS.PERMISSIONS, permissionsApi.fetch, _objectSpread$
|
|
9459
|
+
return useQuery(QUERY_KEYS.PERMISSIONS, permissionsApi.fetch, _objectSpread$7({
|
|
9390
9460
|
staleTime: DEFAULT_STALE_TIME,
|
|
9391
9461
|
select: response => response.permissions || response.data.permissions,
|
|
9392
9462
|
enabled: hasPermission(MANAGE_MEMBER_PERMISSIONS)
|
|
9393
9463
|
}, options));
|
|
9394
9464
|
};
|
|
9395
9465
|
|
|
9466
|
+
function _arrayWithHoles$1(arr) {
|
|
9467
|
+
if (Array.isArray(arr)) return arr;
|
|
9468
|
+
}
|
|
9469
|
+
|
|
9470
|
+
function _iterableToArrayLimit$1(arr, i) {
|
|
9471
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
9472
|
+
|
|
9473
|
+
if (_i == null) return;
|
|
9474
|
+
var _arr = [];
|
|
9475
|
+
var _n = true;
|
|
9476
|
+
var _d = false;
|
|
9477
|
+
|
|
9478
|
+
var _s, _e;
|
|
9479
|
+
|
|
9480
|
+
try {
|
|
9481
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
9482
|
+
_arr.push(_s.value);
|
|
9483
|
+
|
|
9484
|
+
if (i && _arr.length === i) break;
|
|
9485
|
+
}
|
|
9486
|
+
} catch (err) {
|
|
9487
|
+
_d = true;
|
|
9488
|
+
_e = err;
|
|
9489
|
+
} finally {
|
|
9490
|
+
try {
|
|
9491
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
9492
|
+
} finally {
|
|
9493
|
+
if (_d) throw _e;
|
|
9494
|
+
}
|
|
9495
|
+
}
|
|
9496
|
+
|
|
9497
|
+
return _arr;
|
|
9498
|
+
}
|
|
9499
|
+
|
|
9500
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
9501
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
9502
|
+
|
|
9503
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
9504
|
+
arr2[i] = arr[i];
|
|
9505
|
+
}
|
|
9506
|
+
|
|
9507
|
+
return arr2;
|
|
9508
|
+
}
|
|
9509
|
+
|
|
9510
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
9511
|
+
if (!o) return;
|
|
9512
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
9513
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
9514
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
9515
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
9516
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
9517
|
+
}
|
|
9518
|
+
|
|
9519
|
+
function _nonIterableRest$1() {
|
|
9520
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9521
|
+
}
|
|
9522
|
+
|
|
9523
|
+
function _slicedToArray$1(arr, i) {
|
|
9524
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
|
|
9525
|
+
}
|
|
9526
|
+
|
|
9527
|
+
function _typeof$1(obj) {
|
|
9528
|
+
"@babel/helpers - typeof";
|
|
9529
|
+
|
|
9530
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
9531
|
+
return typeof obj;
|
|
9532
|
+
} : function (obj) {
|
|
9533
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
9534
|
+
}, _typeof$1(obj);
|
|
9535
|
+
}
|
|
9536
|
+
var matches = ramda.curry(function (pattern, object) {
|
|
9537
|
+
var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
9538
|
+
|
|
9539
|
+
if (object === pattern) return true;
|
|
9540
|
+
if (typeof pattern === "function" && pattern(object, __parent)) return true;
|
|
9541
|
+
if (ramda.isNil(pattern) || ramda.isNil(object)) return false;
|
|
9542
|
+
if (_typeof$1(pattern) !== "object") return false;
|
|
9543
|
+
return Object.entries(pattern).every(function (_ref5) {
|
|
9544
|
+
var _ref6 = _slicedToArray$1(_ref5, 2),
|
|
9545
|
+
key = _ref6[0],
|
|
9546
|
+
value = _ref6[1];
|
|
9547
|
+
|
|
9548
|
+
return matches(value, object[key], __parent);
|
|
9549
|
+
});
|
|
9550
|
+
});
|
|
9551
|
+
|
|
9552
|
+
function _defineProperty(obj, key, value) {
|
|
9553
|
+
if (key in obj) {
|
|
9554
|
+
Object.defineProperty(obj, key, {
|
|
9555
|
+
value: value,
|
|
9556
|
+
enumerable: true,
|
|
9557
|
+
configurable: true,
|
|
9558
|
+
writable: true
|
|
9559
|
+
});
|
|
9560
|
+
} else {
|
|
9561
|
+
obj[key] = value;
|
|
9562
|
+
}
|
|
9563
|
+
|
|
9564
|
+
return obj;
|
|
9565
|
+
}
|
|
9566
|
+
|
|
9567
|
+
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; }
|
|
9568
|
+
|
|
9569
|
+
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; }
|
|
9570
|
+
ramda.curry(function (id, array) {
|
|
9571
|
+
return array.filter(function (item) {
|
|
9572
|
+
return item.id !== id;
|
|
9573
|
+
});
|
|
9574
|
+
});
|
|
9575
|
+
ramda.curry(function (id, array) {
|
|
9576
|
+
return array.find(function (item) {
|
|
9577
|
+
return item.id === id;
|
|
9578
|
+
});
|
|
9579
|
+
});
|
|
9580
|
+
ramda.curry(function (id, newItem, array) {
|
|
9581
|
+
return array.map(function (item) {
|
|
9582
|
+
return item.id === id ? newItem : item;
|
|
9583
|
+
});
|
|
9584
|
+
});
|
|
9585
|
+
ramda.curry(function (id, modifier, array) {
|
|
9586
|
+
return array.map(function (item) {
|
|
9587
|
+
return item.id === id ? modifier(item) : item;
|
|
9588
|
+
});
|
|
9589
|
+
});
|
|
9590
|
+
ramda.curry(function (pattern, array) {
|
|
9591
|
+
return array.find(matches(pattern));
|
|
9592
|
+
});
|
|
9593
|
+
ramda.curry(function (pattern, array) {
|
|
9594
|
+
return array.filter(ramda.complement(matches(pattern)));
|
|
9595
|
+
});
|
|
9596
|
+
ramda.curry(function (pattern, newItem, array) {
|
|
9597
|
+
return array.map(function (item) {
|
|
9598
|
+
return matches(pattern, item) ? newItem : item;
|
|
9599
|
+
});
|
|
9600
|
+
});
|
|
9601
|
+
ramda.curry(function (pattern, modifier, array) {
|
|
9602
|
+
return array.map(function (item) {
|
|
9603
|
+
return matches(pattern, item) ? modifier(item) : item;
|
|
9604
|
+
});
|
|
9605
|
+
});
|
|
9606
|
+
ramda.curry(function (id, array) {
|
|
9607
|
+
return array.some(function (item) {
|
|
9608
|
+
return item.id === id;
|
|
9609
|
+
});
|
|
9610
|
+
});
|
|
9611
|
+
ramda.curry(function (pattern, array) {
|
|
9612
|
+
return array.some(matches(pattern));
|
|
9613
|
+
});
|
|
9614
|
+
ramda.curry(function (pattern, array) {
|
|
9615
|
+
return ramda.findLast(matches(pattern), array);
|
|
9616
|
+
});
|
|
9617
|
+
ramda.curry(function (id, array) {
|
|
9618
|
+
return array.findIndex(function (item) {
|
|
9619
|
+
return item.id === id;
|
|
9620
|
+
});
|
|
9621
|
+
});
|
|
9622
|
+
ramda.curry(function (pattern, array) {
|
|
9623
|
+
return array.findIndex(matches(pattern));
|
|
9624
|
+
});
|
|
9625
|
+
ramda.curry(function (pattern, array) {
|
|
9626
|
+
return ramda.findLastIndex(matches(pattern), array);
|
|
9627
|
+
});
|
|
9628
|
+
ramda.curry(function (pattern, array) {
|
|
9629
|
+
return array.filter(matches(pattern));
|
|
9630
|
+
});
|
|
9631
|
+
ramda.curry(function (pattern, array) {
|
|
9632
|
+
return ramda.count(matches(pattern), array);
|
|
9633
|
+
});
|
|
9634
|
+
ramda.curry(function (keyMap, objectArray) {
|
|
9635
|
+
return objectArray.map(function (object) {
|
|
9636
|
+
var shallowCopy = _objectSpread$6({}, object);
|
|
9637
|
+
|
|
9638
|
+
for (var source in keyMap) {
|
|
9639
|
+
shallowCopy[keyMap[source]] = object[source];
|
|
9640
|
+
}
|
|
9641
|
+
|
|
9642
|
+
return shallowCopy;
|
|
9643
|
+
});
|
|
9644
|
+
});
|
|
9645
|
+
ramda.curry(function (keyMap, objectArray) {
|
|
9646
|
+
return objectArray.map(function (object) {
|
|
9647
|
+
var shallowCopy = _objectSpread$6({}, object);
|
|
9648
|
+
|
|
9649
|
+
for (var source in keyMap) {
|
|
9650
|
+
shallowCopy[keyMap[source]] = object[source];
|
|
9651
|
+
delete shallowCopy[source];
|
|
9652
|
+
}
|
|
9653
|
+
|
|
9654
|
+
return shallowCopy;
|
|
9655
|
+
});
|
|
9656
|
+
});
|
|
9657
|
+
ramda.curry(function (keyMap, objectArray) {
|
|
9658
|
+
var copyKeysSingleObject = function copyKeysSingleObject(object, keyMap) {
|
|
9659
|
+
var root = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
9660
|
+
return _objectSpread$6(_objectSpread$6({}, object), ramda.fromPairs(ramda.toPairs(keyMap).map(function (_ref) {
|
|
9661
|
+
var _ref2 = _slicedToArray$1(_ref, 2),
|
|
9662
|
+
destination = _ref2[0],
|
|
9663
|
+
source = _ref2[1];
|
|
9664
|
+
|
|
9665
|
+
if (typeof source === "function") {
|
|
9666
|
+
return [destination, source(object[destination], root)];
|
|
9667
|
+
} else if (Array.isArray(source)) {
|
|
9668
|
+
return [destination, ramda.path(source, root)];
|
|
9669
|
+
} else if (_typeof$1(source) === "object") {
|
|
9670
|
+
return [destination, copyKeysSingleObject(object[destination], source, root)];
|
|
9671
|
+
}
|
|
9672
|
+
|
|
9673
|
+
return [destination, object[source]];
|
|
9674
|
+
})));
|
|
9675
|
+
};
|
|
9676
|
+
|
|
9677
|
+
return objectArray.map(function (object) {
|
|
9678
|
+
return copyKeysSingleObject(object, keyMap);
|
|
9679
|
+
});
|
|
9680
|
+
});
|
|
9681
|
+
|
|
9682
|
+
var noop$1 = function noop() {};
|
|
9683
|
+
ramda.complement(ramda.isNil);
|
|
9684
|
+
ramda.complement(ramda.isEmpty);
|
|
9685
|
+
ramda.curry(function (x, y) {
|
|
9686
|
+
return x !== y;
|
|
9687
|
+
});
|
|
9688
|
+
ramda.complement(ramda.equals);
|
|
9689
|
+
|
|
9396
9690
|
const fetch$1 = () => axios__default["default"].get("".concat(BASE_URL, "/organization_roles"));
|
|
9397
9691
|
|
|
9398
9692
|
const create$1 = payload => axios__default["default"].post("".concat(BASE_URL, "/organization_roles"), payload);
|
|
@@ -9472,7 +9766,7 @@ const useUpdateRole = _ref2 => {
|
|
|
9472
9766
|
|
|
9473
9767
|
const useDestroyRole = _ref4 => {
|
|
9474
9768
|
let _ref4$onSuccess = _ref4.onSuccess,
|
|
9475
|
-
onSuccess = _ref4$onSuccess === void 0 ?
|
|
9769
|
+
onSuccess = _ref4$onSuccess === void 0 ? noop$1 : _ref4$onSuccess,
|
|
9476
9770
|
options = _objectWithoutProperties__default["default"](_ref4, _excluded3);
|
|
9477
9771
|
|
|
9478
9772
|
return useMutation(_ref5 => {
|
|
@@ -10889,7 +11183,11 @@ const AddRoleButton = _ref => {
|
|
|
10889
11183
|
const _useTranslation = useTranslation(),
|
|
10890
11184
|
t = _useTranslation.t;
|
|
10891
11185
|
|
|
10892
|
-
return /*#__PURE__*/React__default["default"].createElement(neetoui.
|
|
11186
|
+
return /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
11187
|
+
content: t("tooltips.noPermissionToAddRole"),
|
|
11188
|
+
disabled: hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
11189
|
+
position: "bottom"
|
|
11190
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
10893
11191
|
icon: neetoIcons.Plus,
|
|
10894
11192
|
size: "large",
|
|
10895
11193
|
label: t("common.add_", {
|
|
@@ -10898,7 +11196,7 @@ const AddRoleButton = _ref => {
|
|
|
10898
11196
|
onClick: onClick,
|
|
10899
11197
|
disabled: !hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
10900
11198
|
"data-cy": "new-role-button"
|
|
10901
|
-
});
|
|
11199
|
+
})));
|
|
10902
11200
|
};
|
|
10903
11201
|
|
|
10904
11202
|
const Header$1 = _ref => {
|
|
@@ -10938,9 +11236,9 @@ const ADD_ROLE_FORM_INITIAL_VALUES = {
|
|
|
10938
11236
|
description: "",
|
|
10939
11237
|
permissionIds: []
|
|
10940
11238
|
};
|
|
10941
|
-
const ADD_ROLE_FORM_VALIDATION_SCHEMA =
|
|
10942
|
-
name:
|
|
10943
|
-
description:
|
|
11239
|
+
const ADD_ROLE_FORM_VALIDATION_SCHEMA = Yup.object({
|
|
11240
|
+
name: Yup.string().trim().required(instance.t("validations.enterRoleName")),
|
|
11241
|
+
description: Yup.string().trim().max(255, instance.t("validations.limitExceeded", {
|
|
10944
11242
|
what: instance.t("common.description"),
|
|
10945
11243
|
count: 255
|
|
10946
11244
|
}))
|
|
@@ -11240,6 +11538,10 @@ const Row = _ref => {
|
|
|
11240
11538
|
}, roles.map((role, index) => /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11241
11539
|
key: index,
|
|
11242
11540
|
className: "ntm-roles-table__cell"
|
|
11541
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
11542
|
+
content: instance.t("tooltips.editAdminRoleNotAllowed"),
|
|
11543
|
+
disabled: !ramda.identical(role.name, "Admin"),
|
|
11544
|
+
position: "top"
|
|
11243
11545
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11244
11546
|
className: "ntm-roles-table-cell__checkbox-wrapper"
|
|
11245
11547
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Checkbox, {
|
|
@@ -11250,7 +11552,7 @@ const Row = _ref => {
|
|
|
11250
11552
|
let checked = _ref2.target.checked;
|
|
11251
11553
|
return handleSubmit(role, checked);
|
|
11252
11554
|
}
|
|
11253
|
-
})), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
11555
|
+
}))), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
|
|
11254
11556
|
style: "body2",
|
|
11255
11557
|
lineHeight: "normal"
|
|
11256
11558
|
}, permission === null || permission === void 0 ? void 0 : permission.description))));
|
|
@@ -11711,6 +12013,493 @@ Roles.defaultProps = {
|
|
|
11711
12013
|
};
|
|
11712
12014
|
var index$1 = withReactQuery(Roles);
|
|
11713
12015
|
|
|
12016
|
+
react.Honeybadger.beforeNotify(function (notice) {
|
|
12017
|
+
return !/ResizeObserver/.test(notice.message);
|
|
12018
|
+
});
|
|
12019
|
+
react.Honeybadger.configure({
|
|
12020
|
+
apiKey: globalProps.honeybadgerApiKey,
|
|
12021
|
+
environment: globalProps.nodeEnv,
|
|
12022
|
+
revision: globalProps.honeybadgerRevision,
|
|
12023
|
+
developmentEnvironments: ["development", "test"],
|
|
12024
|
+
enableUncaught: true,
|
|
12025
|
+
async: true,
|
|
12026
|
+
breadcrumbsEnabled: true,
|
|
12027
|
+
projectRoot: "webpack:///./"
|
|
12028
|
+
});
|
|
12029
|
+
|
|
12030
|
+
function _arrayWithHoles(arr) {
|
|
12031
|
+
if (Array.isArray(arr)) return arr;
|
|
12032
|
+
}
|
|
12033
|
+
|
|
12034
|
+
function _iterableToArrayLimit(arr, i) {
|
|
12035
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
12036
|
+
|
|
12037
|
+
if (_i == null) return;
|
|
12038
|
+
var _arr = [];
|
|
12039
|
+
var _n = true;
|
|
12040
|
+
var _d = false;
|
|
12041
|
+
|
|
12042
|
+
var _s, _e;
|
|
12043
|
+
|
|
12044
|
+
try {
|
|
12045
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
12046
|
+
_arr.push(_s.value);
|
|
12047
|
+
|
|
12048
|
+
if (i && _arr.length === i) break;
|
|
12049
|
+
}
|
|
12050
|
+
} catch (err) {
|
|
12051
|
+
_d = true;
|
|
12052
|
+
_e = err;
|
|
12053
|
+
} finally {
|
|
12054
|
+
try {
|
|
12055
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
12056
|
+
} finally {
|
|
12057
|
+
if (_d) throw _e;
|
|
12058
|
+
}
|
|
12059
|
+
}
|
|
12060
|
+
|
|
12061
|
+
return _arr;
|
|
12062
|
+
}
|
|
12063
|
+
|
|
12064
|
+
function _arrayLikeToArray(arr, len) {
|
|
12065
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
12066
|
+
|
|
12067
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
|
12068
|
+
arr2[i] = arr[i];
|
|
12069
|
+
}
|
|
12070
|
+
|
|
12071
|
+
return arr2;
|
|
12072
|
+
}
|
|
12073
|
+
|
|
12074
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
12075
|
+
if (!o) return;
|
|
12076
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
12077
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
12078
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12079
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
12080
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
12081
|
+
}
|
|
12082
|
+
|
|
12083
|
+
function _nonIterableRest() {
|
|
12084
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12085
|
+
}
|
|
12086
|
+
|
|
12087
|
+
function _slicedToArray(arr, i) {
|
|
12088
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
12089
|
+
}
|
|
12090
|
+
|
|
12091
|
+
function useDebounce(value) {
|
|
12092
|
+
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 350;
|
|
12093
|
+
|
|
12094
|
+
var _useState = React.useState(value),
|
|
12095
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12096
|
+
debouncedValue = _useState2[0],
|
|
12097
|
+
setDebouncedValue = _useState2[1];
|
|
12098
|
+
|
|
12099
|
+
React.useEffect(function () {
|
|
12100
|
+
var handler = setTimeout(function () {
|
|
12101
|
+
setDebouncedValue(value);
|
|
12102
|
+
}, delay);
|
|
12103
|
+
return function () {
|
|
12104
|
+
clearTimeout(handler);
|
|
12105
|
+
};
|
|
12106
|
+
}, [value]);
|
|
12107
|
+
return debouncedValue;
|
|
12108
|
+
}
|
|
12109
|
+
|
|
12110
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
12111
|
+
|
|
12112
|
+
var _typeof = {exports: {}};
|
|
12113
|
+
|
|
12114
|
+
(function (module) {
|
|
12115
|
+
function _typeof(obj) {
|
|
12116
|
+
"@babel/helpers - typeof";
|
|
12117
|
+
|
|
12118
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
12119
|
+
return typeof obj;
|
|
12120
|
+
} : function (obj) {
|
|
12121
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
12122
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
12123
|
+
}
|
|
12124
|
+
|
|
12125
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12126
|
+
} (_typeof));
|
|
12127
|
+
|
|
12128
|
+
(function (module) {
|
|
12129
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
12130
|
+
|
|
12131
|
+
function _regeneratorRuntime() {
|
|
12132
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
12133
|
+
|
|
12134
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
12135
|
+
return exports;
|
|
12136
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12137
|
+
var exports = {},
|
|
12138
|
+
Op = Object.prototype,
|
|
12139
|
+
hasOwn = Op.hasOwnProperty,
|
|
12140
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
12141
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
12142
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
12143
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
12144
|
+
|
|
12145
|
+
function define(obj, key, value) {
|
|
12146
|
+
return Object.defineProperty(obj, key, {
|
|
12147
|
+
value: value,
|
|
12148
|
+
enumerable: !0,
|
|
12149
|
+
configurable: !0,
|
|
12150
|
+
writable: !0
|
|
12151
|
+
}), obj[key];
|
|
12152
|
+
}
|
|
12153
|
+
|
|
12154
|
+
try {
|
|
12155
|
+
define({}, "");
|
|
12156
|
+
} catch (err) {
|
|
12157
|
+
define = function define(obj, key, value) {
|
|
12158
|
+
return obj[key] = value;
|
|
12159
|
+
};
|
|
12160
|
+
}
|
|
12161
|
+
|
|
12162
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
12163
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
12164
|
+
generator = Object.create(protoGenerator.prototype),
|
|
12165
|
+
context = new Context(tryLocsList || []);
|
|
12166
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
12167
|
+
var state = "suspendedStart";
|
|
12168
|
+
return function (method, arg) {
|
|
12169
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
12170
|
+
|
|
12171
|
+
if ("completed" === state) {
|
|
12172
|
+
if ("throw" === method) throw arg;
|
|
12173
|
+
return doneResult();
|
|
12174
|
+
}
|
|
12175
|
+
|
|
12176
|
+
for (context.method = method, context.arg = arg;;) {
|
|
12177
|
+
var delegate = context.delegate;
|
|
12178
|
+
|
|
12179
|
+
if (delegate) {
|
|
12180
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
12181
|
+
|
|
12182
|
+
if (delegateResult) {
|
|
12183
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
12184
|
+
return delegateResult;
|
|
12185
|
+
}
|
|
12186
|
+
}
|
|
12187
|
+
|
|
12188
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
12189
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
12190
|
+
context.dispatchException(context.arg);
|
|
12191
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
12192
|
+
state = "executing";
|
|
12193
|
+
var record = tryCatch(innerFn, self, context);
|
|
12194
|
+
|
|
12195
|
+
if ("normal" === record.type) {
|
|
12196
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
12197
|
+
return {
|
|
12198
|
+
value: record.arg,
|
|
12199
|
+
done: context.done
|
|
12200
|
+
};
|
|
12201
|
+
}
|
|
12202
|
+
|
|
12203
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
12204
|
+
}
|
|
12205
|
+
};
|
|
12206
|
+
}(innerFn, self, context), generator;
|
|
12207
|
+
}
|
|
12208
|
+
|
|
12209
|
+
function tryCatch(fn, obj, arg) {
|
|
12210
|
+
try {
|
|
12211
|
+
return {
|
|
12212
|
+
type: "normal",
|
|
12213
|
+
arg: fn.call(obj, arg)
|
|
12214
|
+
};
|
|
12215
|
+
} catch (err) {
|
|
12216
|
+
return {
|
|
12217
|
+
type: "throw",
|
|
12218
|
+
arg: err
|
|
12219
|
+
};
|
|
12220
|
+
}
|
|
12221
|
+
}
|
|
12222
|
+
|
|
12223
|
+
exports.wrap = wrap;
|
|
12224
|
+
var ContinueSentinel = {};
|
|
12225
|
+
|
|
12226
|
+
function Generator() {}
|
|
12227
|
+
|
|
12228
|
+
function GeneratorFunction() {}
|
|
12229
|
+
|
|
12230
|
+
function GeneratorFunctionPrototype() {}
|
|
12231
|
+
|
|
12232
|
+
var IteratorPrototype = {};
|
|
12233
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
12234
|
+
return this;
|
|
12235
|
+
});
|
|
12236
|
+
var getProto = Object.getPrototypeOf,
|
|
12237
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
12238
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
12239
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
12240
|
+
|
|
12241
|
+
function defineIteratorMethods(prototype) {
|
|
12242
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
12243
|
+
define(prototype, method, function (arg) {
|
|
12244
|
+
return this._invoke(method, arg);
|
|
12245
|
+
});
|
|
12246
|
+
});
|
|
12247
|
+
}
|
|
12248
|
+
|
|
12249
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
12250
|
+
function invoke(method, arg, resolve, reject) {
|
|
12251
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
12252
|
+
|
|
12253
|
+
if ("throw" !== record.type) {
|
|
12254
|
+
var result = record.arg,
|
|
12255
|
+
value = result.value;
|
|
12256
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
12257
|
+
invoke("next", value, resolve, reject);
|
|
12258
|
+
}, function (err) {
|
|
12259
|
+
invoke("throw", err, resolve, reject);
|
|
12260
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
12261
|
+
result.value = unwrapped, resolve(result);
|
|
12262
|
+
}, function (error) {
|
|
12263
|
+
return invoke("throw", error, resolve, reject);
|
|
12264
|
+
});
|
|
12265
|
+
}
|
|
12266
|
+
|
|
12267
|
+
reject(record.arg);
|
|
12268
|
+
}
|
|
12269
|
+
|
|
12270
|
+
var previousPromise;
|
|
12271
|
+
|
|
12272
|
+
this._invoke = function (method, arg) {
|
|
12273
|
+
function callInvokeWithMethodAndArg() {
|
|
12274
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
12275
|
+
invoke(method, arg, resolve, reject);
|
|
12276
|
+
});
|
|
12277
|
+
}
|
|
12278
|
+
|
|
12279
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
12280
|
+
};
|
|
12281
|
+
}
|
|
12282
|
+
|
|
12283
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
12284
|
+
var method = delegate.iterator[context.method];
|
|
12285
|
+
|
|
12286
|
+
if (undefined === method) {
|
|
12287
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
12288
|
+
if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
12289
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
12290
|
+
}
|
|
12291
|
+
|
|
12292
|
+
return ContinueSentinel;
|
|
12293
|
+
}
|
|
12294
|
+
|
|
12295
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
12296
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
12297
|
+
var info = record.arg;
|
|
12298
|
+
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);
|
|
12299
|
+
}
|
|
12300
|
+
|
|
12301
|
+
function pushTryEntry(locs) {
|
|
12302
|
+
var entry = {
|
|
12303
|
+
tryLoc: locs[0]
|
|
12304
|
+
};
|
|
12305
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
12306
|
+
}
|
|
12307
|
+
|
|
12308
|
+
function resetTryEntry(entry) {
|
|
12309
|
+
var record = entry.completion || {};
|
|
12310
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
12311
|
+
}
|
|
12312
|
+
|
|
12313
|
+
function Context(tryLocsList) {
|
|
12314
|
+
this.tryEntries = [{
|
|
12315
|
+
tryLoc: "root"
|
|
12316
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
12317
|
+
}
|
|
12318
|
+
|
|
12319
|
+
function values(iterable) {
|
|
12320
|
+
if (iterable) {
|
|
12321
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
12322
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
12323
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
12324
|
+
|
|
12325
|
+
if (!isNaN(iterable.length)) {
|
|
12326
|
+
var i = -1,
|
|
12327
|
+
next = function next() {
|
|
12328
|
+
for (; ++i < iterable.length;) {
|
|
12329
|
+
if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
12330
|
+
}
|
|
12331
|
+
|
|
12332
|
+
return next.value = undefined, next.done = !0, next;
|
|
12333
|
+
};
|
|
12334
|
+
|
|
12335
|
+
return next.next = next;
|
|
12336
|
+
}
|
|
12337
|
+
}
|
|
12338
|
+
|
|
12339
|
+
return {
|
|
12340
|
+
next: doneResult
|
|
12341
|
+
};
|
|
12342
|
+
}
|
|
12343
|
+
|
|
12344
|
+
function doneResult() {
|
|
12345
|
+
return {
|
|
12346
|
+
value: undefined,
|
|
12347
|
+
done: !0
|
|
12348
|
+
};
|
|
12349
|
+
}
|
|
12350
|
+
|
|
12351
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
12352
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
12353
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
12354
|
+
}, exports.mark = function (genFun) {
|
|
12355
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
12356
|
+
}, exports.awrap = function (arg) {
|
|
12357
|
+
return {
|
|
12358
|
+
__await: arg
|
|
12359
|
+
};
|
|
12360
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
12361
|
+
return this;
|
|
12362
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
12363
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
12364
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
12365
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
12366
|
+
return result.done ? result.value : iter.next();
|
|
12367
|
+
});
|
|
12368
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
12369
|
+
return this;
|
|
12370
|
+
}), define(Gp, "toString", function () {
|
|
12371
|
+
return "[object Generator]";
|
|
12372
|
+
}), exports.keys = function (object) {
|
|
12373
|
+
var keys = [];
|
|
12374
|
+
|
|
12375
|
+
for (var key in object) {
|
|
12376
|
+
keys.push(key);
|
|
12377
|
+
}
|
|
12378
|
+
|
|
12379
|
+
return keys.reverse(), function next() {
|
|
12380
|
+
for (; keys.length;) {
|
|
12381
|
+
var key = keys.pop();
|
|
12382
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
12383
|
+
}
|
|
12384
|
+
|
|
12385
|
+
return next.done = !0, next;
|
|
12386
|
+
};
|
|
12387
|
+
}, exports.values = values, Context.prototype = {
|
|
12388
|
+
constructor: Context,
|
|
12389
|
+
reset: function reset(skipTempReset) {
|
|
12390
|
+
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) {
|
|
12391
|
+
"t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
12392
|
+
}
|
|
12393
|
+
},
|
|
12394
|
+
stop: function stop() {
|
|
12395
|
+
this.done = !0;
|
|
12396
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
12397
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
12398
|
+
return this.rval;
|
|
12399
|
+
},
|
|
12400
|
+
dispatchException: function dispatchException(exception) {
|
|
12401
|
+
if (this.done) throw exception;
|
|
12402
|
+
var context = this;
|
|
12403
|
+
|
|
12404
|
+
function handle(loc, caught) {
|
|
12405
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
12406
|
+
}
|
|
12407
|
+
|
|
12408
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12409
|
+
var entry = this.tryEntries[i],
|
|
12410
|
+
record = entry.completion;
|
|
12411
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
12412
|
+
|
|
12413
|
+
if (entry.tryLoc <= this.prev) {
|
|
12414
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
12415
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
12416
|
+
|
|
12417
|
+
if (hasCatch && hasFinally) {
|
|
12418
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
12419
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
12420
|
+
} else if (hasCatch) {
|
|
12421
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
12422
|
+
} else {
|
|
12423
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
12424
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
12425
|
+
}
|
|
12426
|
+
}
|
|
12427
|
+
}
|
|
12428
|
+
},
|
|
12429
|
+
abrupt: function abrupt(type, arg) {
|
|
12430
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12431
|
+
var entry = this.tryEntries[i];
|
|
12432
|
+
|
|
12433
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
12434
|
+
var finallyEntry = entry;
|
|
12435
|
+
break;
|
|
12436
|
+
}
|
|
12437
|
+
}
|
|
12438
|
+
|
|
12439
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
12440
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
12441
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
12442
|
+
},
|
|
12443
|
+
complete: function complete(record, afterLoc) {
|
|
12444
|
+
if ("throw" === record.type) throw record.arg;
|
|
12445
|
+
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;
|
|
12446
|
+
},
|
|
12447
|
+
finish: function finish(finallyLoc) {
|
|
12448
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12449
|
+
var entry = this.tryEntries[i];
|
|
12450
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
12451
|
+
}
|
|
12452
|
+
},
|
|
12453
|
+
"catch": function _catch(tryLoc) {
|
|
12454
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
12455
|
+
var entry = this.tryEntries[i];
|
|
12456
|
+
|
|
12457
|
+
if (entry.tryLoc === tryLoc) {
|
|
12458
|
+
var record = entry.completion;
|
|
12459
|
+
|
|
12460
|
+
if ("throw" === record.type) {
|
|
12461
|
+
var thrown = record.arg;
|
|
12462
|
+
resetTryEntry(entry);
|
|
12463
|
+
}
|
|
12464
|
+
|
|
12465
|
+
return thrown;
|
|
12466
|
+
}
|
|
12467
|
+
}
|
|
12468
|
+
|
|
12469
|
+
throw new Error("illegal catch attempt");
|
|
12470
|
+
},
|
|
12471
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
12472
|
+
return this.delegate = {
|
|
12473
|
+
iterator: values(iterable),
|
|
12474
|
+
resultName: resultName,
|
|
12475
|
+
nextLoc: nextLoc
|
|
12476
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
12477
|
+
}
|
|
12478
|
+
}, exports;
|
|
12479
|
+
}
|
|
12480
|
+
|
|
12481
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
12482
|
+
} (regeneratorRuntime$1));
|
|
12483
|
+
|
|
12484
|
+
// TODO(Babel 8): Remove this file.
|
|
12485
|
+
|
|
12486
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
12487
|
+
|
|
12488
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
12489
|
+
try {
|
|
12490
|
+
regeneratorRuntime = runtime;
|
|
12491
|
+
} catch (accidentalStrictMode) {
|
|
12492
|
+
if (typeof globalThis === "object") {
|
|
12493
|
+
globalThis.regeneratorRuntime = runtime;
|
|
12494
|
+
} else {
|
|
12495
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
12496
|
+
}
|
|
12497
|
+
}
|
|
12498
|
+
Yup__namespace.object().shape({
|
|
12499
|
+
email: Yup__namespace.string().email("Please enter a valid email").required("Email is required"),
|
|
12500
|
+
password: Yup__namespace.string().required("Password is required")
|
|
12501
|
+
});
|
|
12502
|
+
|
|
11714
12503
|
const fetch = params => axios__default["default"].get("".concat(BASE_URL, "/teams"), {
|
|
11715
12504
|
params
|
|
11716
12505
|
});
|
|
@@ -11737,7 +12526,8 @@ const useFetchMembers = function () {
|
|
|
11737
12526
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11738
12527
|
return useQuery([QUERY_KEYS.TEAMS, params], () => teamsApi.fetch(params), _objectSpread$2({
|
|
11739
12528
|
staleTime: DEFAULT_STALE_TIME,
|
|
11740
|
-
select: response => response.data || response
|
|
12529
|
+
select: response => response.data || response,
|
|
12530
|
+
keepPreviousData: true
|
|
11741
12531
|
}, options));
|
|
11742
12532
|
};
|
|
11743
12533
|
|
|
@@ -11778,7 +12568,11 @@ const Header = _ref => {
|
|
|
11778
12568
|
metaName = _ref$metaName === void 0 ? "" : _ref$metaName,
|
|
11779
12569
|
_ref$onClick = _ref.onClick,
|
|
11780
12570
|
onClick = _ref$onClick === void 0 ? noop : _ref$onClick;
|
|
11781
|
-
return /*#__PURE__*/React__default["default"].createElement(neetoui.
|
|
12571
|
+
return /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
12572
|
+
content: instance.t("tooltips.noPermissionToAddMember"),
|
|
12573
|
+
disabled: hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
12574
|
+
position: "bottom"
|
|
12575
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
11782
12576
|
icon: neetoIcons.Plus,
|
|
11783
12577
|
size: "large",
|
|
11784
12578
|
label: instance.t("common.add_", {
|
|
@@ -11786,7 +12580,7 @@ const Header = _ref => {
|
|
|
11786
12580
|
}),
|
|
11787
12581
|
disabled: !hasPermission(MANAGE_MEMBER_PERMISSIONS),
|
|
11788
12582
|
onClick: onClick
|
|
11789
|
-
});
|
|
12583
|
+
})));
|
|
11790
12584
|
};
|
|
11791
12585
|
|
|
11792
12586
|
const Left = _ref => {
|
|
@@ -11885,22 +12679,38 @@ const renderNameColumn = (_ref, diplayStatusTag) => {
|
|
|
11885
12679
|
}));
|
|
11886
12680
|
};
|
|
11887
12681
|
|
|
12682
|
+
const isCurrentUserEmail = email => {
|
|
12683
|
+
const user = window.globalProps.user;
|
|
12684
|
+
return (user === null || user === void 0 ? void 0 : user.email) === email;
|
|
12685
|
+
};
|
|
12686
|
+
|
|
12687
|
+
const isDropDownButtonDisabled = email => !hasPermission(MANAGE_MEMBER_PERMISSIONS) || isCurrentUserEmail(email);
|
|
12688
|
+
|
|
12689
|
+
const getDropDownTooltipContent = email => isCurrentUserEmail(email) ? instance.t("tooltips.editCurrentUserNotAllowed") : instance.t("tooltips.noPermissionToEditMembers");
|
|
12690
|
+
|
|
11888
12691
|
const renderDropdownButton = (_ref2, handleUpdateStatus, handleUpdateRole) => {
|
|
11889
12692
|
let displayName = _ref2.displayName,
|
|
11890
12693
|
id = _ref2.id,
|
|
11891
12694
|
active = _ref2.active,
|
|
11892
12695
|
email = _ref2.email,
|
|
11893
12696
|
role = _ref2.role;
|
|
11894
|
-
|
|
11895
|
-
|
|
12697
|
+
return /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
12698
|
+
content: getDropDownTooltipContent(email),
|
|
12699
|
+
disabled: !isDropDownButtonDisabled(email),
|
|
12700
|
+
position: "top"
|
|
12701
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, /*#__PURE__*/React__default["default"].createElement(neetoui.Dropdown, {
|
|
11896
12702
|
icon: neetoIcons.MenuHorizontal,
|
|
11897
12703
|
buttonStyle: "text",
|
|
11898
12704
|
buttonProps: DROPDOWN_BUTTON_PROPS,
|
|
11899
12705
|
strategy: "fixed",
|
|
11900
|
-
disabled:
|
|
12706
|
+
disabled: isDropDownButtonDisabled(email)
|
|
12707
|
+
}, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
|
|
12708
|
+
content: instance.t("tooltips.activateUserToEdit"),
|
|
12709
|
+
disabled: active,
|
|
12710
|
+
position: "top"
|
|
11901
12711
|
}, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
11902
12712
|
className: "ntm-dropdown__item",
|
|
11903
|
-
onClick: () => handleUpdateRole({
|
|
12713
|
+
onClick: () => active && handleUpdateRole({
|
|
11904
12714
|
id,
|
|
11905
12715
|
email,
|
|
11906
12716
|
role
|
|
@@ -11910,7 +12720,7 @@ const renderDropdownButton = (_ref2, handleUpdateStatus, handleUpdateRole) => {
|
|
|
11910
12720
|
label: instance.t("common.edit"),
|
|
11911
12721
|
disabled: !active,
|
|
11912
12722
|
style: "text"
|
|
11913
|
-
})), /*#__PURE__*/React__default["default"].createElement("li", {
|
|
12723
|
+
}))), /*#__PURE__*/React__default["default"].createElement("li", {
|
|
11914
12724
|
className: "ntm-dropdown__item",
|
|
11915
12725
|
onClick: () => handleUpdateStatus({
|
|
11916
12726
|
id,
|
|
@@ -11921,7 +12731,7 @@ const renderDropdownButton = (_ref2, handleUpdateStatus, handleUpdateRole) => {
|
|
|
11921
12731
|
className: "ntm-dropdown__button",
|
|
11922
12732
|
label: active ? instance.t("common.deactivate") : instance.t("common.activate"),
|
|
11923
12733
|
style: active ? "danger-text" : "text"
|
|
11924
|
-
})));
|
|
12734
|
+
})))));
|
|
11925
12735
|
};
|
|
11926
12736
|
|
|
11927
12737
|
const getColumnData = _ref3 => {
|
|
@@ -12007,9 +12817,9 @@ const renderPaginationProps = size => ({
|
|
|
12007
12817
|
});
|
|
12008
12818
|
const getPerCategoryCount = (perCategoryCount, category) => ramda.isNil(perCategoryCount) ? MEMBER_FILTER[category].defaultCount : perCategoryCount[category === null || category === void 0 ? void 0 : category.toLowerCase()];
|
|
12009
12819
|
|
|
12010
|
-
const VALIDATION_SCHEMA =
|
|
12011
|
-
emails:
|
|
12012
|
-
role:
|
|
12820
|
+
const VALIDATION_SCHEMA = Yup__namespace.object().shape({
|
|
12821
|
+
emails: Yup__namespace.array().min(1, instance.t("validations.minOneEmail")).test("are-all-emails-valid", instance.t("validations.validEmail"), emails => emails.every(ramda.prop("valid"))).nullable(),
|
|
12822
|
+
role: Yup__namespace.string().required(instance.t("validations.roleRequired"))
|
|
12013
12823
|
});
|
|
12014
12824
|
const FILTER_INVALID_EMAILS = {
|
|
12015
12825
|
label: instance.t("validations.filterInvalidEmails")
|
|
@@ -12196,14 +13006,15 @@ const TeamMembers = _ref => {
|
|
|
12196
13006
|
selectedMember = _useState6[0],
|
|
12197
13007
|
setSelectedMember = _useState6[1];
|
|
12198
13008
|
|
|
12199
|
-
const debouncedSearch =
|
|
13009
|
+
const debouncedSearch = useDebounce(filters.search, 750);
|
|
12200
13010
|
|
|
12201
13011
|
const _useFetchMembers = useFetchMembers(_objectSpread(_objectSpread({}, filters), {}, {
|
|
12202
13012
|
search: debouncedSearch.trim(),
|
|
12203
13013
|
category: filters.category.toLowerCase()
|
|
12204
13014
|
})),
|
|
12205
13015
|
team = _useFetchMembers.data,
|
|
12206
|
-
isMembersLoading = _useFetchMembers.isLoading
|
|
13016
|
+
isMembersLoading = _useFetchMembers.isLoading,
|
|
13017
|
+
isMembersFetching = _useFetchMembers.isFetching;
|
|
12207
13018
|
|
|
12208
13019
|
const _useFetchRoles = useFetchRoles({
|
|
12209
13020
|
select: response => {
|
|
@@ -12271,14 +13082,14 @@ const TeamMembers = _ref => {
|
|
|
12271
13082
|
handlePageChange(setFilters, filter)(DEFAULT_PAGE_NUMBER, filters.results);
|
|
12272
13083
|
};
|
|
12273
13084
|
|
|
12274
|
-
const handleTableChange = (
|
|
13085
|
+
const handleTableChange = (_, __, sorter) => {
|
|
12275
13086
|
setFilters(ramda.mergeLeft({
|
|
12276
13087
|
sort_by: sorter.field,
|
|
12277
13088
|
sort_direction: sorter.order
|
|
12278
13089
|
}));
|
|
12279
13090
|
};
|
|
12280
13091
|
|
|
12281
|
-
if (isRolesLoading) {
|
|
13092
|
+
if (isRolesLoading || isMembersLoading) {
|
|
12282
13093
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12283
13094
|
className: "ntm-members-page-loader"
|
|
12284
13095
|
}, /*#__PURE__*/React__default["default"].createElement(neetoui.PageLoader, null));
|
|
@@ -12319,7 +13130,7 @@ const TeamMembers = _ref => {
|
|
|
12319
13130
|
totalCount: team === null || team === void 0 ? void 0 : team.membersCount,
|
|
12320
13131
|
allowRowClick: false,
|
|
12321
13132
|
rowSelection: false,
|
|
12322
|
-
loading:
|
|
13133
|
+
loading: isMembersFetching,
|
|
12323
13134
|
defaultPageSize: parseInt(filters.results, DEFAULT_RADIX),
|
|
12324
13135
|
rowData: team === null || team === void 0 ? void 0 : team.members,
|
|
12325
13136
|
columnData: getColumnData({
|
|
@@ -12327,7 +13138,7 @@ const TeamMembers = _ref => {
|
|
|
12327
13138
|
handleUpdateStatus,
|
|
12328
13139
|
handleUpdateRole
|
|
12329
13140
|
}),
|
|
12330
|
-
onChange: (
|
|
13141
|
+
onChange: (_, __, sorter) => handleTableChange(_, __, sorter),
|
|
12331
13142
|
currentPageNumber: parseInt(filters.page, DEFAULT_RADIX),
|
|
12332
13143
|
paginationProps: renderPaginationProps(filters.results),
|
|
12333
13144
|
handlePageChange: handlePageChange(setFilters, filters.category)
|
|
@@ -12365,7 +13176,7 @@ var index = withReactQuery(TeamMembers);
|
|
|
12365
13176
|
|
|
12366
13177
|
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}}
|
|
12367
13178
|
|
|
12368
|
-
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}";
|
|
13179
|
+
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}";
|
|
12369
13180
|
n(css,{});
|
|
12370
13181
|
|
|
12371
13182
|
exports.Invitations = index$2;
|