@itilite/iui-user-management 0.4.72 → 0.4.75
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/dist/index.js +112 -110
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +112 -110
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.modern.js
CHANGED
|
@@ -64,124 +64,126 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
64
64
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
})();
|
|
104
|
-
|
|
105
|
-
// Settles a pact synchronously
|
|
67
|
+
var _Pact = /*#__PURE__*/function () {
|
|
68
|
+
function _Pact() {}
|
|
69
|
+
_Pact.prototype.then = function (onFulfilled, onRejected) {
|
|
70
|
+
var result = new _Pact();
|
|
71
|
+
var state = this.s;
|
|
72
|
+
if (state) {
|
|
73
|
+
var callback = state & 1 ? onFulfilled : onRejected;
|
|
74
|
+
if (callback) {
|
|
75
|
+
try {
|
|
76
|
+
_settle(result, 1, callback(this.v));
|
|
77
|
+
} catch (e) {
|
|
78
|
+
_settle(result, 2, e);
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
81
|
+
} else {
|
|
82
|
+
return this;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
this.o = function (_this) {
|
|
86
|
+
try {
|
|
87
|
+
var value = _this.v;
|
|
88
|
+
if (_this.s & 1) {
|
|
89
|
+
_settle(result, 1, onFulfilled ? onFulfilled(value) : value);
|
|
90
|
+
} else if (onRejected) {
|
|
91
|
+
_settle(result, 1, onRejected(value));
|
|
92
|
+
} else {
|
|
93
|
+
_settle(result, 2, value);
|
|
94
|
+
}
|
|
95
|
+
} catch (e) {
|
|
96
|
+
_settle(result, 2, e);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
return result;
|
|
100
|
+
};
|
|
101
|
+
return _Pact;
|
|
102
|
+
}();
|
|
106
103
|
function _settle(pact, state, value) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
104
|
+
if (!pact.s) {
|
|
105
|
+
if (value instanceof _Pact) {
|
|
106
|
+
if (value.s) {
|
|
107
|
+
if (state & 1) {
|
|
108
|
+
state = value.s;
|
|
109
|
+
}
|
|
110
|
+
value = value.v;
|
|
111
|
+
} else {
|
|
112
|
+
value.o = _settle.bind(null, pact, state);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
if (value && value.then) {
|
|
117
|
+
value.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
pact.s = state;
|
|
121
|
+
pact.v = value;
|
|
122
|
+
var observer = pact.o;
|
|
123
|
+
if (observer) {
|
|
124
|
+
observer(pact);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
130
127
|
}
|
|
131
|
-
|
|
132
128
|
function _isSettledPact(thenable) {
|
|
133
|
-
|
|
129
|
+
return thenable instanceof _Pact && thenable.s & 1;
|
|
134
130
|
}
|
|
135
|
-
|
|
136
|
-
// Asynchronously iterate through an object that has a length property, passing the index as the first argument to the callback (even as the length property changes)
|
|
137
131
|
function _forTo(array, body, check) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
132
|
+
var i = -1,
|
|
133
|
+
pact,
|
|
134
|
+
reject;
|
|
135
|
+
function _cycle(result) {
|
|
136
|
+
try {
|
|
137
|
+
while (++i < array.length && (!check || !check())) {
|
|
138
|
+
result = body(i);
|
|
139
|
+
if (result && result.then) {
|
|
140
|
+
if (_isSettledPact(result)) {
|
|
141
|
+
result = result.v;
|
|
142
|
+
} else {
|
|
143
|
+
result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (pact) {
|
|
149
|
+
_settle(pact, 1, result);
|
|
150
|
+
} else {
|
|
151
|
+
pact = result;
|
|
152
|
+
}
|
|
153
|
+
} catch (e) {
|
|
154
|
+
_settle(pact || (pact = new _Pact()), 2, e);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
_cycle();
|
|
158
|
+
return pact;
|
|
163
159
|
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
|
|
168
|
-
|
|
169
|
-
// Asynchronously call a function and send errors to recovery continuation
|
|
160
|
+
var _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
|
|
161
|
+
var _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
|
|
170
162
|
function _catch(body, recover) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
163
|
+
try {
|
|
164
|
+
var result = body();
|
|
165
|
+
} catch (e) {
|
|
166
|
+
return recover(e);
|
|
167
|
+
}
|
|
168
|
+
if (result && result.then) {
|
|
169
|
+
return result.then(void 0, recover);
|
|
170
|
+
}
|
|
171
|
+
return result;
|
|
180
172
|
}
|
|
181
173
|
|
|
182
174
|
var styles = {"UUIUserManagementAddEdit":"_3n-WG","pageHeader":"_3qWcA","buttonWrapper":"_1IP9P","scrolled":"_m8f96","headingButtonWrapper":"_w9z7b","headingButtonWrapperProfile":"_12Wd9","hintText":"_ySdbZ","heading":"_2Y1Aw","headingLarge":"_2K1NF","headingMedium":"_RUuAz","headingSmall":"_23Dye","additionalInfoContainer":"_1Suhw","additionalInfoTitle":"_56iJF","titleContainer":"_H5nfl","expandIconAlign":"_3F4i0","detailsContainer":"_2G0LW","formWrapper":"_2fPRc","sectionWrapper":"_37Gqp","margin":"_2Sdl7","minGridWidth":"_2D7iu","firstRowMargin":"_1BozG","firstChildMargin":"_2C3Mb","paddingTop":"_DBPjV","backGrdColorOnHover":"_5oE6H","fieldMargin":"_RCWjq","productContainerGap":"_tuCbi","containerWidth":"_1oWos","productItemBroder":"_T0Hcd","headingPadding":"_2MFfQ","emptyFieldContainer":"_3VWtw","emptyFieldDescription":"_2jC5u","rowGap":"_1NJFY","formTitle":"_GAKk2","formDescription":"_3TZ6Z","themeLink":"_eJ_1B","dashedLine":"_3ZOs1","dividerColor":"_2pxEJ","errorTextCls":"_27eth","backdrop":"_Pm0Au","inputWidth":"_ajB82"};
|
|
183
175
|
|
|
184
|
-
function r(e)
|
|
176
|
+
function r(e) {
|
|
177
|
+
var t,
|
|
178
|
+
f,
|
|
179
|
+
n = "";
|
|
180
|
+
if ("string" == typeof e || "number" == typeof e) n += e;else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);else for (t in e) e[t] && (n && (n += " "), n += t);
|
|
181
|
+
return n;
|
|
182
|
+
}
|
|
183
|
+
function clsx() {
|
|
184
|
+
for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
|
|
185
|
+
return n;
|
|
186
|
+
}
|
|
185
187
|
|
|
186
188
|
var GetInputType = React.forwardRef(function (props, ref) {
|
|
187
189
|
var _p = props._p,
|
|
@@ -420,10 +422,10 @@ var userAddEditUrl = {
|
|
|
420
422
|
return "api/v1/onboarding/user-signup-reject/" + userId + "?action=undo";
|
|
421
423
|
},
|
|
422
424
|
cardsEditUserDetails: function cardsEditUserDetails(userId) {
|
|
423
|
-
return env.getCardsapiURL() + "/
|
|
425
|
+
return env.getCardsapiURL() + "/authorization/user/" + userId;
|
|
424
426
|
},
|
|
425
427
|
cardsAddUsersDetails: function cardsAddUsersDetails() {
|
|
426
|
-
return env.getCardsapiURL() + "/
|
|
428
|
+
return env.getCardsapiURL() + "/authorization/company/" + IUILocalStorageService.getCompanyId() + "/roles";
|
|
427
429
|
}
|
|
428
430
|
};
|
|
429
431
|
var userListUrl = {
|
|
@@ -2325,7 +2327,7 @@ var PaymentCards = function PaymentCards(_ref3) {
|
|
|
2325
2327
|
isDefaultCard: !!+card.metadata.default_card,
|
|
2326
2328
|
pg: paymentDetails.pg
|
|
2327
2329
|
});
|
|
2328
|
-
}), (!paymentDetails.cards || paymentDetails.cards.length <
|
|
2330
|
+
}), (!paymentDetails.cards || paymentDetails.cards.length < 10) && paymentDetails.pg.gateway.toLowerCase() === 'stripe' && paymentDetails.pg.save_card_enable === 1 && /*#__PURE__*/React.createElement(AddCard, {
|
|
2329
2331
|
pg: paymentDetails.pg
|
|
2330
2332
|
}))))));
|
|
2331
2333
|
};
|