@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 CHANGED
@@ -67,124 +67,126 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
67
67
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68
68
  }
69
69
 
70
- // A type of promise-like that resolves synchronously and supports only one observer
71
- const _Pact = /*#__PURE__*/(function() {
72
- function _Pact() {}
73
- _Pact.prototype.then = function(onFulfilled, onRejected) {
74
- const result = new _Pact();
75
- const state = this.s;
76
- if (state) {
77
- const callback = state & 1 ? onFulfilled : onRejected;
78
- if (callback) {
79
- try {
80
- _settle(result, 1, callback(this.v));
81
- } catch (e) {
82
- _settle(result, 2, e);
83
- }
84
- return result;
85
- } else {
86
- return this;
87
- }
88
- }
89
- this.o = function(_this) {
90
- try {
91
- const value = _this.v;
92
- if (_this.s & 1) {
93
- _settle(result, 1, onFulfilled ? onFulfilled(value) : value);
94
- } else if (onRejected) {
95
- _settle(result, 1, onRejected(value));
96
- } else {
97
- _settle(result, 2, value);
98
- }
99
- } catch (e) {
100
- _settle(result, 2, e);
101
- }
102
- };
103
- return result;
104
- };
105
- return _Pact;
106
- })();
107
-
108
- // Settles a pact synchronously
70
+ var _Pact = /*#__PURE__*/function () {
71
+ function _Pact() {}
72
+ _Pact.prototype.then = function (onFulfilled, onRejected) {
73
+ var result = new _Pact();
74
+ var state = this.s;
75
+ if (state) {
76
+ var callback = state & 1 ? onFulfilled : onRejected;
77
+ if (callback) {
78
+ try {
79
+ _settle(result, 1, callback(this.v));
80
+ } catch (e) {
81
+ _settle(result, 2, e);
82
+ }
83
+ return result;
84
+ } else {
85
+ return this;
86
+ }
87
+ }
88
+ this.o = function (_this) {
89
+ try {
90
+ var value = _this.v;
91
+ if (_this.s & 1) {
92
+ _settle(result, 1, onFulfilled ? onFulfilled(value) : value);
93
+ } else if (onRejected) {
94
+ _settle(result, 1, onRejected(value));
95
+ } else {
96
+ _settle(result, 2, value);
97
+ }
98
+ } catch (e) {
99
+ _settle(result, 2, e);
100
+ }
101
+ };
102
+ return result;
103
+ };
104
+ return _Pact;
105
+ }();
109
106
  function _settle(pact, state, value) {
110
- if (!pact.s) {
111
- if (value instanceof _Pact) {
112
- if (value.s) {
113
- if (state & 1) {
114
- state = value.s;
115
- }
116
- value = value.v;
117
- } else {
118
- value.o = _settle.bind(null, pact, state);
119
- return;
120
- }
121
- }
122
- if (value && value.then) {
123
- value.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));
124
- return;
125
- }
126
- pact.s = state;
127
- pact.v = value;
128
- const observer = pact.o;
129
- if (observer) {
130
- observer(pact);
131
- }
132
- }
107
+ if (!pact.s) {
108
+ if (value instanceof _Pact) {
109
+ if (value.s) {
110
+ if (state & 1) {
111
+ state = value.s;
112
+ }
113
+ value = value.v;
114
+ } else {
115
+ value.o = _settle.bind(null, pact, state);
116
+ return;
117
+ }
118
+ }
119
+ if (value && value.then) {
120
+ value.then(_settle.bind(null, pact, state), _settle.bind(null, pact, 2));
121
+ return;
122
+ }
123
+ pact.s = state;
124
+ pact.v = value;
125
+ var observer = pact.o;
126
+ if (observer) {
127
+ observer(pact);
128
+ }
129
+ }
133
130
  }
134
-
135
131
  function _isSettledPact(thenable) {
136
- return thenable instanceof _Pact && thenable.s & 1;
132
+ return thenable instanceof _Pact && thenable.s & 1;
137
133
  }
138
-
139
- // 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)
140
134
  function _forTo(array, body, check) {
141
- var i = -1, pact, reject;
142
- function _cycle(result) {
143
- try {
144
- while (++i < array.length && (!check || !check())) {
145
- result = body(i);
146
- if (result && result.then) {
147
- if (_isSettledPact(result)) {
148
- result = result.v;
149
- } else {
150
- result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
151
- return;
152
- }
153
- }
154
- }
155
- if (pact) {
156
- _settle(pact, 1, result);
157
- } else {
158
- pact = result;
159
- }
160
- } catch (e) {
161
- _settle(pact || (pact = new _Pact()), 2, e);
162
- }
163
- }
164
- _cycle();
165
- return pact;
135
+ var i = -1,
136
+ pact,
137
+ reject;
138
+ function _cycle(result) {
139
+ try {
140
+ while (++i < array.length && (!check || !check())) {
141
+ result = body(i);
142
+ if (result && result.then) {
143
+ if (_isSettledPact(result)) {
144
+ result = result.v;
145
+ } else {
146
+ result.then(_cycle, reject || (reject = _settle.bind(null, pact = new _Pact(), 2)));
147
+ return;
148
+ }
149
+ }
150
+ }
151
+ if (pact) {
152
+ _settle(pact, 1, result);
153
+ } else {
154
+ pact = result;
155
+ }
156
+ } catch (e) {
157
+ _settle(pact || (pact = new _Pact()), 2, e);
158
+ }
159
+ }
160
+ _cycle();
161
+ return pact;
166
162
  }
167
-
168
- const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
169
-
170
- const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
171
-
172
- // Asynchronously call a function and send errors to recovery continuation
163
+ var _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
164
+ var _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
173
165
  function _catch(body, recover) {
174
- try {
175
- var result = body();
176
- } catch(e) {
177
- return recover(e);
178
- }
179
- if (result && result.then) {
180
- return result.then(void 0, recover);
181
- }
182
- return result;
166
+ try {
167
+ var result = body();
168
+ } catch (e) {
169
+ return recover(e);
170
+ }
171
+ if (result && result.then) {
172
+ return result.then(void 0, recover);
173
+ }
174
+ return result;
183
175
  }
184
176
 
185
177
  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"};
186
178
 
187
- function r(e){var t,f,n="";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);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
179
+ function r(e) {
180
+ var t,
181
+ f,
182
+ n = "";
183
+ 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);
184
+ return n;
185
+ }
186
+ function clsx() {
187
+ for (var e, t, f = 0, n = ""; f < arguments.length;) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
188
+ return n;
189
+ }
188
190
 
189
191
  var GetInputType = React__default.forwardRef(function (props, ref) {
190
192
  var _p = props._p,
@@ -423,10 +425,10 @@ var userAddEditUrl = {
423
425
  return "api/v1/onboarding/user-signup-reject/" + userId + "?action=undo";
424
426
  },
425
427
  cardsEditUserDetails: function cardsEditUserDetails(userId) {
426
- return env.getCardsapiURL() + "/card/authorization/user/" + userId;
428
+ return env.getCardsapiURL() + "/authorization/user/" + userId;
427
429
  },
428
430
  cardsAddUsersDetails: function cardsAddUsersDetails() {
429
- return env.getCardsapiURL() + "/card/authorization/company/" + IUILocalStorageService.getCompanyId() + "/roles";
431
+ return env.getCardsapiURL() + "/authorization/company/" + IUILocalStorageService.getCompanyId() + "/roles";
430
432
  }
431
433
  };
432
434
  var userListUrl = {
@@ -2328,7 +2330,7 @@ var PaymentCards = function PaymentCards(_ref3) {
2328
2330
  isDefaultCard: !!+card.metadata.default_card,
2329
2331
  pg: paymentDetails.pg
2330
2332
  });
2331
- }), (!paymentDetails.cards || paymentDetails.cards.length < 8) && paymentDetails.pg.gateway.toLowerCase() === 'stripe' && paymentDetails.pg.save_card_enable === 1 && /*#__PURE__*/React__default.createElement(AddCard, {
2333
+ }), (!paymentDetails.cards || paymentDetails.cards.length < 10) && paymentDetails.pg.gateway.toLowerCase() === 'stripe' && paymentDetails.pg.save_card_enable === 1 && /*#__PURE__*/React__default.createElement(AddCard, {
2332
2334
  pg: paymentDetails.pg
2333
2335
  }))))));
2334
2336
  };