@djb25/digit-ui-module-ws 1.0.64 → 1.0.66

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
@@ -9,6 +9,31 @@ var reactHookForm = require('react-hook-form');
9
9
  var XLSX = require('xlsx');
10
10
  var reactQuery = require('react-query');
11
11
 
12
+ const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
13
+ const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
14
+ function _catch(body, recover) {
15
+ try {
16
+ var result = body();
17
+ } catch (e) {
18
+ return recover(e);
19
+ }
20
+ if (result && result.then) {
21
+ return result.then(void 0, recover);
22
+ }
23
+ return result;
24
+ }
25
+ function _finallyRethrows(body, finalizer) {
26
+ try {
27
+ var result = body();
28
+ } catch (e) {
29
+ return finalizer(true, e);
30
+ }
31
+ if (result && result.then) {
32
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
33
+ }
34
+ return finalizer(false, result);
35
+ }
36
+
12
37
  const TestAcknowledgment = () => {
13
38
  const getPDFData = (application, t) => {
14
39
  var _tenantInfo$city;
@@ -8898,6 +8923,47 @@ const App = _ref => {
8898
8923
  let wsCount = (wsData === null || wsData === void 0 ? void 0 : (_wsData$WaterConnecti = wsData.WaterConnection) === null || _wsData$WaterConnecti === void 0 ? void 0 : (_wsData$WaterConnecti2 = _wsData$WaterConnecti.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_WATER_CONNECTION")) === null || _wsData$WaterConnecti2 === void 0 ? void 0 : _wsData$WaterConnecti2.length) || 0;
8899
8924
  let swCount = (swData === null || swData === void 0 ? void 0 : (_swData$SewerageConne = swData.SewerageConnections) === null || _swData$SewerageConne === void 0 ? void 0 : (_swData$SewerageConne2 = _swData$SewerageConne.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.applicationType) !== "MODIFY_SEWERAGE_CONNECTION")) === null || _swData$SewerageConne2 === void 0 ? void 0 : _swData$SewerageConne2.length) || 0;
8900
8925
  let totalAppsCount = wsCount + swCount;
8926
+ React.useEffect(() => {
8927
+ const fetchToken = function () {
8928
+ try {
8929
+ const urlParams = new URLSearchParams(window.location.search);
8930
+ const code = urlParams.get("code");
8931
+ const _temp2 = function () {
8932
+ if (code) {
8933
+ const _temp = _catch(function () {
8934
+ const TokenReq = {
8935
+ module: "WS",
8936
+ code: code,
8937
+ dlReqRef: sessionStorage.getItem("code_verfier_register")
8938
+ };
8939
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
8940
+ return Promise.resolve(Digit.DigiLockerService.token({
8941
+ TokenReq
8942
+ }, tenantId)).then(function (res) {
8943
+ var _res$TokenRes;
8944
+ const accessToken = (res === null || res === void 0 ? void 0 : (_res$TokenRes = res.TokenRes) === null || _res$TokenRes === void 0 ? void 0 : _res$TokenRes.access_token) || (res === null || res === void 0 ? void 0 : res.access_token);
8945
+ if (accessToken) {
8946
+ sessionStorage.setItem("DigiLocker.token1", accessToken);
8947
+ }
8948
+ urlParams.delete("code");
8949
+ urlParams.delete("state");
8950
+ const search = urlParams.toString();
8951
+ const newUrl = window.location.pathname + (search ? "?" + search : "");
8952
+ window.history.replaceState({}, document.title, newUrl);
8953
+ });
8954
+ }, function (error) {
8955
+ console.error("Error fetching DigiLocker token", error);
8956
+ });
8957
+ if (_temp && _temp.then) return _temp.then(function () {});
8958
+ }
8959
+ }();
8960
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
8961
+ } catch (e) {
8962
+ return Promise.reject(e);
8963
+ }
8964
+ };
8965
+ fetchToken();
8966
+ }, []);
8901
8967
  const crumbs = [{
8902
8968
  path: "/digit-ui/employee",
8903
8969
  show: true,
@@ -10905,6 +10971,47 @@ const App$1 = _ref2 => {
10905
10971
  var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg, _Digit18, _Digit18$ComponentReg, _Digit19, _Digit19$ComponentReg, _Digit20, _Digit20$ComponentReg, _Digit21, _Digit21$ComponentReg, _Digit22, _Digit22$ComponentReg, _Digit23, _Digit23$ComponentReg, _Digit24, _Digit24$ComponentReg, _Digit25, _Digit25$ComponentReg, _Digit26, _Digit26$ComponentReg, _Digit27, _Digit27$ComponentReg, _Digit28, _Digit28$ComponentReg, _Digit29, _Digit29$ComponentReg, _Digit30, _Digit30$ComponentReg;
10906
10972
  let path = _ref2.path;
10907
10973
  const location = reactRouterDom.useLocation();
10974
+ React.useEffect(() => {
10975
+ const fetchToken = function () {
10976
+ try {
10977
+ const urlParams = new URLSearchParams(window.location.search);
10978
+ const code = urlParams.get("code");
10979
+ const _temp5 = function () {
10980
+ if (code) {
10981
+ const _temp4 = _catch(function () {
10982
+ const TokenReq = {
10983
+ module: "WS",
10984
+ code: code,
10985
+ dlReqRef: sessionStorage.getItem("code_verfier_register")
10986
+ };
10987
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
10988
+ return Promise.resolve(Digit.DigiLockerService.token({
10989
+ TokenReq
10990
+ }, tenantId)).then(function (res) {
10991
+ var _res$TokenRes;
10992
+ const accessToken = (res === null || res === void 0 ? void 0 : (_res$TokenRes = res.TokenRes) === null || _res$TokenRes === void 0 ? void 0 : _res$TokenRes.access_token) || (res === null || res === void 0 ? void 0 : res.access_token);
10993
+ if (accessToken) {
10994
+ sessionStorage.setItem("DigiLocker.token1", accessToken);
10995
+ }
10996
+ urlParams.delete("code");
10997
+ urlParams.delete("state");
10998
+ const search = urlParams.toString();
10999
+ const newUrl = window.location.pathname + (search ? "?" + search : "");
11000
+ window.history.replaceState({}, document.title, newUrl);
11001
+ });
11002
+ }, function (error) {
11003
+ console.error("Error fetching DigiLocker token", error);
11004
+ });
11005
+ if (_temp4 && _temp4.then) return _temp4.then(function () {});
11006
+ }
11007
+ }();
11008
+ return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
11009
+ } catch (e) {
11010
+ return Promise.reject(e);
11011
+ }
11012
+ };
11013
+ fetchToken();
11014
+ }, []);
10908
11015
  const WSDocsRequired = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDocsRequired");
10909
11016
  const WSInbox = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSInbox");
10910
11017
  const WSDisconnectionDocsRequired = (_Digit3 = Digit) === null || _Digit3 === void 0 ? void 0 : (_Digit3$ComponentRegi = _Digit3.ComponentRegistryService) === null || _Digit3$ComponentRegi === void 0 ? void 0 : _Digit3$ComponentRegi.getComponent("WSDisconnectionDocsRequired");
@@ -11908,31 +12015,6 @@ const WSActivationDetails = _ref => {
11908
12015
  }))));
11909
12016
  };
11910
12017
 
11911
- const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
11912
- const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
11913
- function _catch(body, recover) {
11914
- try {
11915
- var result = body();
11916
- } catch (e) {
11917
- return recover(e);
11918
- }
11919
- if (result && result.then) {
11920
- return result.then(void 0, recover);
11921
- }
11922
- return result;
11923
- }
11924
- function _finallyRethrows(body, finalizer) {
11925
- try {
11926
- var result = body();
11927
- } catch (e) {
11928
- return finalizer(true, e);
11929
- }
11930
- if (result && result.then) {
11931
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
11932
- }
11933
- return finalizer(false, result);
11934
- }
11935
-
11936
12018
  const createConnectionDetails = () => ({
11937
12019
  water: true,
11938
12020
  sewerage: false,
@@ -16217,6 +16299,20 @@ const WSActivationSupportingDocuments = _ref => {
16217
16299
  }))));
16218
16300
  };
16219
16301
 
16302
+ const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
16303
+ const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
16304
+ function _catch$1(body, recover) {
16305
+ try {
16306
+ var result = body();
16307
+ } catch (e) {
16308
+ return recover(e);
16309
+ }
16310
+ if (result && result.then) {
16311
+ return result.then(void 0, recover);
16312
+ }
16313
+ return result;
16314
+ }
16315
+
16220
16316
  var b = "function" === typeof Symbol && Symbol.for,
16221
16317
  c = b ? Symbol.for("react.element") : 60103,
16222
16318
  d = b ? Symbol.for("react.portal") : 60106,
@@ -17349,14 +17445,22 @@ const UploadFileDigiLocker = props => {
17349
17445
  const fetchDigiLockerDocuments = function (e) {
17350
17446
  try {
17351
17447
  e.preventDefault();
17352
- return Promise.resolve(_catch(function () {
17353
- const digiLockerToken = sessionStorage.getItem("DigiLocker.token1") || "dummy_token";
17448
+ return Promise.resolve(_catch$1(function () {
17449
+ const digiLockerToken = sessionStorage.getItem("DigiLocker.token1");
17450
+ if (!digiLockerToken) {
17451
+ setShowToast({
17452
+ error: true,
17453
+ label: "Please login to DigiLocker first to fetch documents."
17454
+ });
17455
+ return;
17456
+ }
17354
17457
  let TokenReq = {
17355
17458
  authToken: digiLockerToken
17356
17459
  };
17460
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
17357
17461
  return Promise.resolve(Digit.DigiLockerService.issueDoc({
17358
17462
  TokenReq
17359
- })).then(function (res1) {
17463
+ }, tenantId)).then(function (res1) {
17360
17464
  if (!res1 || !res1.IssuedDoc) {
17361
17465
  setShowToast({
17362
17466
  error: true,
@@ -17376,9 +17480,10 @@ const UploadFileDigiLocker = props => {
17376
17480
  authToken: digiLockerToken,
17377
17481
  id: uri[0].uri
17378
17482
  };
17483
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
17379
17484
  return Promise.resolve(Digit.DigiLockerService.uri({
17380
17485
  TokenReq: TokenReqNew
17381
- })).then(function (res2) {
17486
+ }, tenantId)).then(function (res2) {
17382
17487
  let c = new Blob([res2]);
17383
17488
  let filename = doctype + "_" + (uri[0].name || "document") + ".pdf";
17384
17489
  convertToFile(e, c, filename);
@@ -27658,6 +27763,889 @@ const config = [{
27658
27763
  }]
27659
27764
  }];
27660
27765
 
27766
+ var b$1 = "function" === typeof Symbol && Symbol.for,
27767
+ c$1 = b$1 ? Symbol.for("react.element") : 60103,
27768
+ d$1 = b$1 ? Symbol.for("react.portal") : 60106,
27769
+ e$1 = b$1 ? Symbol.for("react.fragment") : 60107,
27770
+ f$1 = b$1 ? Symbol.for("react.strict_mode") : 60108,
27771
+ g$1 = b$1 ? Symbol.for("react.profiler") : 60114,
27772
+ h$1 = b$1 ? Symbol.for("react.provider") : 60109,
27773
+ k$1 = b$1 ? Symbol.for("react.context") : 60110,
27774
+ l$1 = b$1 ? Symbol.for("react.async_mode") : 60111,
27775
+ m$1 = b$1 ? Symbol.for("react.concurrent_mode") : 60111,
27776
+ n$1 = b$1 ? Symbol.for("react.forward_ref") : 60112,
27777
+ p$1 = b$1 ? Symbol.for("react.suspense") : 60113,
27778
+ q$1 = b$1 ? Symbol.for("react.suspense_list") : 60120,
27779
+ r$1 = b$1 ? Symbol.for("react.memo") : 60115,
27780
+ t$1 = b$1 ? Symbol.for("react.lazy") : 60116,
27781
+ v$1 = b$1 ? Symbol.for("react.block") : 60121,
27782
+ w$1 = b$1 ? Symbol.for("react.fundamental") : 60117,
27783
+ x$1 = b$1 ? Symbol.for("react.responder") : 60118,
27784
+ y$1 = b$1 ? Symbol.for("react.scope") : 60119;
27785
+ function z$1(a) {
27786
+ if ("object" === typeof a && null !== a) {
27787
+ var u = a.$$typeof;
27788
+ switch (u) {
27789
+ case c$1:
27790
+ switch (a = a.type, a) {
27791
+ case l$1:
27792
+ case m$1:
27793
+ case e$1:
27794
+ case g$1:
27795
+ case f$1:
27796
+ case p$1:
27797
+ return a;
27798
+ default:
27799
+ switch (a = a && a.$$typeof, a) {
27800
+ case k$1:
27801
+ case n$1:
27802
+ case t$1:
27803
+ case r$1:
27804
+ case h$1:
27805
+ return a;
27806
+ default:
27807
+ return u;
27808
+ }
27809
+ }
27810
+ case d$1:
27811
+ return u;
27812
+ }
27813
+ }
27814
+ }
27815
+ function A$1(a) {
27816
+ return z$1(a) === m$1;
27817
+ }
27818
+ var AsyncMode$1 = l$1;
27819
+ var ConcurrentMode$1 = m$1;
27820
+ var ContextConsumer$1 = k$1;
27821
+ var ContextProvider$1 = h$1;
27822
+ var Element$1 = c$1;
27823
+ var ForwardRef$1 = n$1;
27824
+ var Fragment$1 = e$1;
27825
+ var Lazy$1 = t$1;
27826
+ var Memo$1 = r$1;
27827
+ var Portal$1 = d$1;
27828
+ var Profiler$1 = g$1;
27829
+ var StrictMode$1 = f$1;
27830
+ var Suspense$1 = p$1;
27831
+ var isAsyncMode$1 = function (a) {
27832
+ return A$1(a) || z$1(a) === l$1;
27833
+ };
27834
+ var isConcurrentMode$1 = A$1;
27835
+ var isContextConsumer$1 = function (a) {
27836
+ return z$1(a) === k$1;
27837
+ };
27838
+ var isContextProvider$1 = function (a) {
27839
+ return z$1(a) === h$1;
27840
+ };
27841
+ var isElement$1 = function (a) {
27842
+ return "object" === typeof a && null !== a && a.$$typeof === c$1;
27843
+ };
27844
+ var isForwardRef$1 = function (a) {
27845
+ return z$1(a) === n$1;
27846
+ };
27847
+ var isFragment$1 = function (a) {
27848
+ return z$1(a) === e$1;
27849
+ };
27850
+ var isLazy$1 = function (a) {
27851
+ return z$1(a) === t$1;
27852
+ };
27853
+ var isMemo$1 = function (a) {
27854
+ return z$1(a) === r$1;
27855
+ };
27856
+ var isPortal$1 = function (a) {
27857
+ return z$1(a) === d$1;
27858
+ };
27859
+ var isProfiler$1 = function (a) {
27860
+ return z$1(a) === g$1;
27861
+ };
27862
+ var isStrictMode$1 = function (a) {
27863
+ return z$1(a) === f$1;
27864
+ };
27865
+ var isSuspense$1 = function (a) {
27866
+ return z$1(a) === p$1;
27867
+ };
27868
+ var isValidElementType$1 = function (a) {
27869
+ return "string" === typeof a || "function" === typeof a || a === e$1 || a === m$1 || a === g$1 || a === f$1 || a === p$1 || a === q$1 || "object" === typeof a && null !== a && (a.$$typeof === t$1 || a.$$typeof === r$1 || a.$$typeof === h$1 || a.$$typeof === k$1 || a.$$typeof === n$1 || a.$$typeof === w$1 || a.$$typeof === x$1 || a.$$typeof === y$1 || a.$$typeof === v$1);
27870
+ };
27871
+ var typeOf$1 = z$1;
27872
+ var reactIs_production_min$1 = {
27873
+ AsyncMode: AsyncMode$1,
27874
+ ConcurrentMode: ConcurrentMode$1,
27875
+ ContextConsumer: ContextConsumer$1,
27876
+ ContextProvider: ContextProvider$1,
27877
+ Element: Element$1,
27878
+ ForwardRef: ForwardRef$1,
27879
+ Fragment: Fragment$1,
27880
+ Lazy: Lazy$1,
27881
+ Memo: Memo$1,
27882
+ Portal: Portal$1,
27883
+ Profiler: Profiler$1,
27884
+ StrictMode: StrictMode$1,
27885
+ Suspense: Suspense$1,
27886
+ isAsyncMode: isAsyncMode$1,
27887
+ isConcurrentMode: isConcurrentMode$1,
27888
+ isContextConsumer: isContextConsumer$1,
27889
+ isContextProvider: isContextProvider$1,
27890
+ isElement: isElement$1,
27891
+ isForwardRef: isForwardRef$1,
27892
+ isFragment: isFragment$1,
27893
+ isLazy: isLazy$1,
27894
+ isMemo: isMemo$1,
27895
+ isPortal: isPortal$1,
27896
+ isProfiler: isProfiler$1,
27897
+ isStrictMode: isStrictMode$1,
27898
+ isSuspense: isSuspense$1,
27899
+ isValidElementType: isValidElementType$1,
27900
+ typeOf: typeOf$1
27901
+ };
27902
+
27903
+ var reactIs_development$1 = createCommonjsModule(function (module, exports) {
27904
+
27905
+ if (process.env.NODE_ENV !== "production") {
27906
+ (function () {
27907
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
27908
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
27909
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
27910
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
27911
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
27912
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
27913
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
27914
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
27915
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
27916
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
27917
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
27918
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
27919
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
27920
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
27921
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
27922
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
27923
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
27924
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
27925
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
27926
+ function isValidElementType(type) {
27927
+ return typeof type === 'string' || typeof type === 'function' || type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
27928
+ }
27929
+ function typeOf(object) {
27930
+ if (typeof object === 'object' && object !== null) {
27931
+ var $$typeof = object.$$typeof;
27932
+ switch ($$typeof) {
27933
+ case REACT_ELEMENT_TYPE:
27934
+ var type = object.type;
27935
+ switch (type) {
27936
+ case REACT_ASYNC_MODE_TYPE:
27937
+ case REACT_CONCURRENT_MODE_TYPE:
27938
+ case REACT_FRAGMENT_TYPE:
27939
+ case REACT_PROFILER_TYPE:
27940
+ case REACT_STRICT_MODE_TYPE:
27941
+ case REACT_SUSPENSE_TYPE:
27942
+ return type;
27943
+ default:
27944
+ var $$typeofType = type && type.$$typeof;
27945
+ switch ($$typeofType) {
27946
+ case REACT_CONTEXT_TYPE:
27947
+ case REACT_FORWARD_REF_TYPE:
27948
+ case REACT_LAZY_TYPE:
27949
+ case REACT_MEMO_TYPE:
27950
+ case REACT_PROVIDER_TYPE:
27951
+ return $$typeofType;
27952
+ default:
27953
+ return $$typeof;
27954
+ }
27955
+ }
27956
+ case REACT_PORTAL_TYPE:
27957
+ return $$typeof;
27958
+ }
27959
+ }
27960
+ return undefined;
27961
+ }
27962
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
27963
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
27964
+ var ContextConsumer = REACT_CONTEXT_TYPE;
27965
+ var ContextProvider = REACT_PROVIDER_TYPE;
27966
+ var Element = REACT_ELEMENT_TYPE;
27967
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
27968
+ var Fragment = REACT_FRAGMENT_TYPE;
27969
+ var Lazy = REACT_LAZY_TYPE;
27970
+ var Memo = REACT_MEMO_TYPE;
27971
+ var Portal = REACT_PORTAL_TYPE;
27972
+ var Profiler = REACT_PROFILER_TYPE;
27973
+ var StrictMode = REACT_STRICT_MODE_TYPE;
27974
+ var Suspense = REACT_SUSPENSE_TYPE;
27975
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
27976
+ function isAsyncMode(object) {
27977
+ {
27978
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
27979
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
27980
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
27981
+ }
27982
+ }
27983
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
27984
+ }
27985
+ function isConcurrentMode(object) {
27986
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
27987
+ }
27988
+ function isContextConsumer(object) {
27989
+ return typeOf(object) === REACT_CONTEXT_TYPE;
27990
+ }
27991
+ function isContextProvider(object) {
27992
+ return typeOf(object) === REACT_PROVIDER_TYPE;
27993
+ }
27994
+ function isElement(object) {
27995
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
27996
+ }
27997
+ function isForwardRef(object) {
27998
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
27999
+ }
28000
+ function isFragment(object) {
28001
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
28002
+ }
28003
+ function isLazy(object) {
28004
+ return typeOf(object) === REACT_LAZY_TYPE;
28005
+ }
28006
+ function isMemo(object) {
28007
+ return typeOf(object) === REACT_MEMO_TYPE;
28008
+ }
28009
+ function isPortal(object) {
28010
+ return typeOf(object) === REACT_PORTAL_TYPE;
28011
+ }
28012
+ function isProfiler(object) {
28013
+ return typeOf(object) === REACT_PROFILER_TYPE;
28014
+ }
28015
+ function isStrictMode(object) {
28016
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
28017
+ }
28018
+ function isSuspense(object) {
28019
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
28020
+ }
28021
+ exports.AsyncMode = AsyncMode;
28022
+ exports.ConcurrentMode = ConcurrentMode;
28023
+ exports.ContextConsumer = ContextConsumer;
28024
+ exports.ContextProvider = ContextProvider;
28025
+ exports.Element = Element;
28026
+ exports.ForwardRef = ForwardRef;
28027
+ exports.Fragment = Fragment;
28028
+ exports.Lazy = Lazy;
28029
+ exports.Memo = Memo;
28030
+ exports.Portal = Portal;
28031
+ exports.Profiler = Profiler;
28032
+ exports.StrictMode = StrictMode;
28033
+ exports.Suspense = Suspense;
28034
+ exports.isAsyncMode = isAsyncMode;
28035
+ exports.isConcurrentMode = isConcurrentMode;
28036
+ exports.isContextConsumer = isContextConsumer;
28037
+ exports.isContextProvider = isContextProvider;
28038
+ exports.isElement = isElement;
28039
+ exports.isForwardRef = isForwardRef;
28040
+ exports.isFragment = isFragment;
28041
+ exports.isLazy = isLazy;
28042
+ exports.isMemo = isMemo;
28043
+ exports.isPortal = isPortal;
28044
+ exports.isProfiler = isProfiler;
28045
+ exports.isStrictMode = isStrictMode;
28046
+ exports.isSuspense = isSuspense;
28047
+ exports.isValidElementType = isValidElementType;
28048
+ exports.typeOf = typeOf;
28049
+ })();
28050
+ }
28051
+ });
28052
+
28053
+ var reactIs$1 = createCommonjsModule(function (module) {
28054
+
28055
+ if (process.env.NODE_ENV === 'production') {
28056
+ module.exports = reactIs_production_min$1;
28057
+ } else {
28058
+ module.exports = reactIs_development$1;
28059
+ }
28060
+ });
28061
+
28062
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
28063
+ var hasOwnProperty$b = Object.prototype.hasOwnProperty;
28064
+ var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
28065
+ function toObject$1(val) {
28066
+ if (val === null || val === undefined) {
28067
+ throw new TypeError('Object.assign cannot be called with null or undefined');
28068
+ }
28069
+ return Object(val);
28070
+ }
28071
+ function shouldUseNative$1() {
28072
+ try {
28073
+ if (!Object.assign) {
28074
+ return false;
28075
+ }
28076
+ var test1 = new String('abc');
28077
+ test1[5] = 'de';
28078
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
28079
+ return false;
28080
+ }
28081
+ var test2 = {};
28082
+ for (var i = 0; i < 10; i++) {
28083
+ test2['_' + String.fromCharCode(i)] = i;
28084
+ }
28085
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
28086
+ return test2[n];
28087
+ });
28088
+ if (order2.join('') !== '0123456789') {
28089
+ return false;
28090
+ }
28091
+ var test3 = {};
28092
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
28093
+ test3[letter] = letter;
28094
+ });
28095
+ if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
28096
+ return false;
28097
+ }
28098
+ return true;
28099
+ } catch (err) {
28100
+ return false;
28101
+ }
28102
+ }
28103
+ var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
28104
+ var from;
28105
+ var to = toObject$1(target);
28106
+ var symbols;
28107
+ for (var s = 1; s < arguments.length; s++) {
28108
+ from = Object(arguments[s]);
28109
+ for (var key in from) {
28110
+ if (hasOwnProperty$b.call(from, key)) {
28111
+ to[key] = from[key];
28112
+ }
28113
+ }
28114
+ if (getOwnPropertySymbols$1) {
28115
+ symbols = getOwnPropertySymbols$1(from);
28116
+ for (var i = 0; i < symbols.length; i++) {
28117
+ if (propIsEnumerable$1.call(from, symbols[i])) {
28118
+ to[symbols[i]] = from[symbols[i]];
28119
+ }
28120
+ }
28121
+ }
28122
+ }
28123
+ return to;
28124
+ };
28125
+
28126
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
28127
+ var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$2;
28128
+
28129
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
28130
+
28131
+ var printWarning$2 = function () {};
28132
+ if (process.env.NODE_ENV !== 'production') {
28133
+ var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
28134
+ var loggedTypeFailures$1 = {};
28135
+ var has$3 = has$2;
28136
+ printWarning$2 = function (text) {
28137
+ var message = 'Warning: ' + text;
28138
+ if (typeof console !== 'undefined') {
28139
+ console.error(message);
28140
+ }
28141
+ try {
28142
+ throw new Error(message);
28143
+ } catch (x) {}
28144
+ };
28145
+ }
28146
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
28147
+ if (process.env.NODE_ENV !== 'production') {
28148
+ for (var typeSpecName in typeSpecs) {
28149
+ if (has$3(typeSpecs, typeSpecName)) {
28150
+ var error;
28151
+ try {
28152
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
28153
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
28154
+ err.name = 'Invariant Violation';
28155
+ throw err;
28156
+ }
28157
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
28158
+ } catch (ex) {
28159
+ error = ex;
28160
+ }
28161
+ if (error && !(error instanceof Error)) {
28162
+ printWarning$2((componentName || 'React class') + ': type specification of ' + location + ' `' + typeSpecName + '` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).');
28163
+ }
28164
+ if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
28165
+ loggedTypeFailures$1[error.message] = true;
28166
+ var stack = getStack ? getStack() : '';
28167
+ printWarning$2('Failed ' + location + ' type: ' + error.message + (stack != null ? stack : ''));
28168
+ }
28169
+ }
28170
+ }
28171
+ }
28172
+ }
28173
+ checkPropTypes$1.resetWarningCache = function () {
28174
+ if (process.env.NODE_ENV !== 'production') {
28175
+ loggedTypeFailures$1 = {};
28176
+ }
28177
+ };
28178
+ var checkPropTypes_1$1 = checkPropTypes$1;
28179
+
28180
+ var printWarning$3 = function () {};
28181
+ if (process.env.NODE_ENV !== 'production') {
28182
+ printWarning$3 = function (text) {
28183
+ var message = 'Warning: ' + text;
28184
+ if (typeof console !== 'undefined') {
28185
+ console.error(message);
28186
+ }
28187
+ try {
28188
+ throw new Error(message);
28189
+ } catch (x) {}
28190
+ };
28191
+ }
28192
+ function emptyFunctionThatReturnsNull$1() {
28193
+ return null;
28194
+ }
28195
+ var factoryWithTypeCheckers$1 = function (isValidElement, throwOnDirectAccess) {
28196
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
28197
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
28198
+ function getIteratorFn(maybeIterable) {
28199
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
28200
+ if (typeof iteratorFn === 'function') {
28201
+ return iteratorFn;
28202
+ }
28203
+ }
28204
+ var ANONYMOUS = '<<anonymous>>';
28205
+ var ReactPropTypes = {
28206
+ array: createPrimitiveTypeChecker('array'),
28207
+ bigint: createPrimitiveTypeChecker('bigint'),
28208
+ bool: createPrimitiveTypeChecker('boolean'),
28209
+ func: createPrimitiveTypeChecker('function'),
28210
+ number: createPrimitiveTypeChecker('number'),
28211
+ object: createPrimitiveTypeChecker('object'),
28212
+ string: createPrimitiveTypeChecker('string'),
28213
+ symbol: createPrimitiveTypeChecker('symbol'),
28214
+ any: createAnyTypeChecker(),
28215
+ arrayOf: createArrayOfTypeChecker,
28216
+ element: createElementTypeChecker(),
28217
+ elementType: createElementTypeTypeChecker(),
28218
+ instanceOf: createInstanceTypeChecker,
28219
+ node: createNodeChecker(),
28220
+ objectOf: createObjectOfTypeChecker,
28221
+ oneOf: createEnumTypeChecker,
28222
+ oneOfType: createUnionTypeChecker,
28223
+ shape: createShapeTypeChecker,
28224
+ exact: createStrictShapeTypeChecker
28225
+ };
28226
+ function is(x, y) {
28227
+ if (x === y) {
28228
+ return x !== 0 || 1 / x === 1 / y;
28229
+ } else {
28230
+ return x !== x && y !== y;
28231
+ }
28232
+ }
28233
+ function PropTypeError(message, data) {
28234
+ this.message = message;
28235
+ this.data = data && typeof data === 'object' ? data : {};
28236
+ this.stack = '';
28237
+ }
28238
+ PropTypeError.prototype = Error.prototype;
28239
+ function createChainableTypeChecker(validate) {
28240
+ if (process.env.NODE_ENV !== 'production') {
28241
+ var manualPropTypeCallCache = {};
28242
+ var manualPropTypeWarningCount = 0;
28243
+ }
28244
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
28245
+ componentName = componentName || ANONYMOUS;
28246
+ propFullName = propFullName || propName;
28247
+ if (secret !== ReactPropTypesSecret_1$1) {
28248
+ if (throwOnDirectAccess) {
28249
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use `PropTypes.checkPropTypes()` to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
28250
+ err.name = 'Invariant Violation';
28251
+ throw err;
28252
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
28253
+ var cacheKey = componentName + ':' + propName;
28254
+ if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
28255
+ printWarning$3('You are manually calling a React.PropTypes validation ' + 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' + 'and will throw in the standalone `prop-types` package. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.');
28256
+ manualPropTypeCallCache[cacheKey] = true;
28257
+ manualPropTypeWarningCount++;
28258
+ }
28259
+ }
28260
+ }
28261
+ if (props[propName] == null) {
28262
+ if (isRequired) {
28263
+ if (props[propName] === null) {
28264
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
28265
+ }
28266
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
28267
+ }
28268
+ return null;
28269
+ } else {
28270
+ return validate(props, propName, componentName, location, propFullName);
28271
+ }
28272
+ }
28273
+ var chainedCheckType = checkType.bind(null, false);
28274
+ chainedCheckType.isRequired = checkType.bind(null, true);
28275
+ return chainedCheckType;
28276
+ }
28277
+ function createPrimitiveTypeChecker(expectedType) {
28278
+ function validate(props, propName, componentName, location, propFullName, secret) {
28279
+ var propValue = props[propName];
28280
+ var propType = getPropType(propValue);
28281
+ if (propType !== expectedType) {
28282
+ var preciseType = getPreciseType(propValue);
28283
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'), {
28284
+ expectedType: expectedType
28285
+ });
28286
+ }
28287
+ return null;
28288
+ }
28289
+ return createChainableTypeChecker(validate);
28290
+ }
28291
+ function createAnyTypeChecker() {
28292
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
28293
+ }
28294
+ function createArrayOfTypeChecker(typeChecker) {
28295
+ function validate(props, propName, componentName, location, propFullName) {
28296
+ if (typeof typeChecker !== 'function') {
28297
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
28298
+ }
28299
+ var propValue = props[propName];
28300
+ if (!Array.isArray(propValue)) {
28301
+ var propType = getPropType(propValue);
28302
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
28303
+ }
28304
+ for (var i = 0; i < propValue.length; i++) {
28305
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
28306
+ if (error instanceof Error) {
28307
+ return error;
28308
+ }
28309
+ }
28310
+ return null;
28311
+ }
28312
+ return createChainableTypeChecker(validate);
28313
+ }
28314
+ function createElementTypeChecker() {
28315
+ function validate(props, propName, componentName, location, propFullName) {
28316
+ var propValue = props[propName];
28317
+ if (!isValidElement(propValue)) {
28318
+ var propType = getPropType(propValue);
28319
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
28320
+ }
28321
+ return null;
28322
+ }
28323
+ return createChainableTypeChecker(validate);
28324
+ }
28325
+ function createElementTypeTypeChecker() {
28326
+ function validate(props, propName, componentName, location, propFullName) {
28327
+ var propValue = props[propName];
28328
+ if (!reactIs$1.isValidElementType(propValue)) {
28329
+ var propType = getPropType(propValue);
28330
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
28331
+ }
28332
+ return null;
28333
+ }
28334
+ return createChainableTypeChecker(validate);
28335
+ }
28336
+ function createInstanceTypeChecker(expectedClass) {
28337
+ function validate(props, propName, componentName, location, propFullName) {
28338
+ if (!(props[propName] instanceof expectedClass)) {
28339
+ var expectedClassName = expectedClass.name || ANONYMOUS;
28340
+ var actualClassName = getClassName(props[propName]);
28341
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
28342
+ }
28343
+ return null;
28344
+ }
28345
+ return createChainableTypeChecker(validate);
28346
+ }
28347
+ function createEnumTypeChecker(expectedValues) {
28348
+ if (!Array.isArray(expectedValues)) {
28349
+ if (process.env.NODE_ENV !== 'production') {
28350
+ if (arguments.length > 1) {
28351
+ printWarning$3('Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' + 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).');
28352
+ } else {
28353
+ printWarning$3('Invalid argument supplied to oneOf, expected an array.');
28354
+ }
28355
+ }
28356
+ return emptyFunctionThatReturnsNull$1;
28357
+ }
28358
+ function validate(props, propName, componentName, location, propFullName) {
28359
+ var propValue = props[propName];
28360
+ for (var i = 0; i < expectedValues.length; i++) {
28361
+ if (is(propValue, expectedValues[i])) {
28362
+ return null;
28363
+ }
28364
+ }
28365
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
28366
+ var type = getPreciseType(value);
28367
+ if (type === 'symbol') {
28368
+ return String(value);
28369
+ }
28370
+ return value;
28371
+ });
28372
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
28373
+ }
28374
+ return createChainableTypeChecker(validate);
28375
+ }
28376
+ function createObjectOfTypeChecker(typeChecker) {
28377
+ function validate(props, propName, componentName, location, propFullName) {
28378
+ if (typeof typeChecker !== 'function') {
28379
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
28380
+ }
28381
+ var propValue = props[propName];
28382
+ var propType = getPropType(propValue);
28383
+ if (propType !== 'object') {
28384
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
28385
+ }
28386
+ for (var key in propValue) {
28387
+ if (has$2(propValue, key)) {
28388
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
28389
+ if (error instanceof Error) {
28390
+ return error;
28391
+ }
28392
+ }
28393
+ }
28394
+ return null;
28395
+ }
28396
+ return createChainableTypeChecker(validate);
28397
+ }
28398
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
28399
+ if (!Array.isArray(arrayOfTypeCheckers)) {
28400
+ process.env.NODE_ENV !== 'production' ? printWarning$3('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
28401
+ return emptyFunctionThatReturnsNull$1;
28402
+ }
28403
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
28404
+ var checker = arrayOfTypeCheckers[i];
28405
+ if (typeof checker !== 'function') {
28406
+ printWarning$3('Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.');
28407
+ return emptyFunctionThatReturnsNull$1;
28408
+ }
28409
+ }
28410
+ function validate(props, propName, componentName, location, propFullName) {
28411
+ var expectedTypes = [];
28412
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
28413
+ var checker = arrayOfTypeCheckers[i];
28414
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1);
28415
+ if (checkerResult == null) {
28416
+ return null;
28417
+ }
28418
+ if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
28419
+ expectedTypes.push(checkerResult.data.expectedType);
28420
+ }
28421
+ }
28422
+ var expectedTypesMessage = expectedTypes.length > 0 ? ', expected one of type [' + expectedTypes.join(', ') + ']' : '';
28423
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
28424
+ }
28425
+ return createChainableTypeChecker(validate);
28426
+ }
28427
+ function createNodeChecker() {
28428
+ function validate(props, propName, componentName, location, propFullName) {
28429
+ if (!isNode(props[propName])) {
28430
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
28431
+ }
28432
+ return null;
28433
+ }
28434
+ return createChainableTypeChecker(validate);
28435
+ }
28436
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
28437
+ return new PropTypeError((componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.');
28438
+ }
28439
+ function createShapeTypeChecker(shapeTypes) {
28440
+ function validate(props, propName, componentName, location, propFullName) {
28441
+ var propValue = props[propName];
28442
+ var propType = getPropType(propValue);
28443
+ if (propType !== 'object') {
28444
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
28445
+ }
28446
+ for (var key in shapeTypes) {
28447
+ var checker = shapeTypes[key];
28448
+ if (typeof checker !== 'function') {
28449
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
28450
+ }
28451
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
28452
+ if (error) {
28453
+ return error;
28454
+ }
28455
+ }
28456
+ return null;
28457
+ }
28458
+ return createChainableTypeChecker(validate);
28459
+ }
28460
+ function createStrictShapeTypeChecker(shapeTypes) {
28461
+ function validate(props, propName, componentName, location, propFullName) {
28462
+ var propValue = props[propName];
28463
+ var propType = getPropType(propValue);
28464
+ if (propType !== 'object') {
28465
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
28466
+ }
28467
+ var allKeys = objectAssign$1({}, props[propName], shapeTypes);
28468
+ for (var key in allKeys) {
28469
+ var checker = shapeTypes[key];
28470
+ if (has$2(shapeTypes, key) && typeof checker !== 'function') {
28471
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
28472
+ }
28473
+ if (!checker) {
28474
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' + '\nBad object: ' + JSON.stringify(props[propName], null, ' ') + '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' '));
28475
+ }
28476
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
28477
+ if (error) {
28478
+ return error;
28479
+ }
28480
+ }
28481
+ return null;
28482
+ }
28483
+ return createChainableTypeChecker(validate);
28484
+ }
28485
+ function isNode(propValue) {
28486
+ switch (typeof propValue) {
28487
+ case 'number':
28488
+ case 'string':
28489
+ case 'undefined':
28490
+ return true;
28491
+ case 'boolean':
28492
+ return !propValue;
28493
+ case 'object':
28494
+ if (Array.isArray(propValue)) {
28495
+ return propValue.every(isNode);
28496
+ }
28497
+ if (propValue === null || isValidElement(propValue)) {
28498
+ return true;
28499
+ }
28500
+ var iteratorFn = getIteratorFn(propValue);
28501
+ if (iteratorFn) {
28502
+ var iterator = iteratorFn.call(propValue);
28503
+ var step;
28504
+ if (iteratorFn !== propValue.entries) {
28505
+ while (!(step = iterator.next()).done) {
28506
+ if (!isNode(step.value)) {
28507
+ return false;
28508
+ }
28509
+ }
28510
+ } else {
28511
+ while (!(step = iterator.next()).done) {
28512
+ var entry = step.value;
28513
+ if (entry) {
28514
+ if (!isNode(entry[1])) {
28515
+ return false;
28516
+ }
28517
+ }
28518
+ }
28519
+ }
28520
+ } else {
28521
+ return false;
28522
+ }
28523
+ return true;
28524
+ default:
28525
+ return false;
28526
+ }
28527
+ }
28528
+ function isSymbol(propType, propValue) {
28529
+ if (propType === 'symbol') {
28530
+ return true;
28531
+ }
28532
+ if (!propValue) {
28533
+ return false;
28534
+ }
28535
+ if (propValue['@@toStringTag'] === 'Symbol') {
28536
+ return true;
28537
+ }
28538
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
28539
+ return true;
28540
+ }
28541
+ return false;
28542
+ }
28543
+ function getPropType(propValue) {
28544
+ var propType = typeof propValue;
28545
+ if (Array.isArray(propValue)) {
28546
+ return 'array';
28547
+ }
28548
+ if (propValue instanceof RegExp) {
28549
+ return 'object';
28550
+ }
28551
+ if (isSymbol(propType, propValue)) {
28552
+ return 'symbol';
28553
+ }
28554
+ return propType;
28555
+ }
28556
+ function getPreciseType(propValue) {
28557
+ if (typeof propValue === 'undefined' || propValue === null) {
28558
+ return '' + propValue;
28559
+ }
28560
+ var propType = getPropType(propValue);
28561
+ if (propType === 'object') {
28562
+ if (propValue instanceof Date) {
28563
+ return 'date';
28564
+ } else if (propValue instanceof RegExp) {
28565
+ return 'regexp';
28566
+ }
28567
+ }
28568
+ return propType;
28569
+ }
28570
+ function getPostfixForTypeWarning(value) {
28571
+ var type = getPreciseType(value);
28572
+ switch (type) {
28573
+ case 'array':
28574
+ case 'object':
28575
+ return 'an ' + type;
28576
+ case 'boolean':
28577
+ case 'date':
28578
+ case 'regexp':
28579
+ return 'a ' + type;
28580
+ default:
28581
+ return type;
28582
+ }
28583
+ }
28584
+ function getClassName(propValue) {
28585
+ if (!propValue.constructor || !propValue.constructor.name) {
28586
+ return ANONYMOUS;
28587
+ }
28588
+ return propValue.constructor.name;
28589
+ }
28590
+ ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
28591
+ ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
28592
+ ReactPropTypes.PropTypes = ReactPropTypes;
28593
+ return ReactPropTypes;
28594
+ };
28595
+
28596
+ function emptyFunction$1() {}
28597
+ function emptyFunctionWithReset$1() {}
28598
+ emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
28599
+ var factoryWithThrowingShims$1 = function () {
28600
+ function shim(props, propName, componentName, location, propFullName, secret) {
28601
+ if (secret === ReactPropTypesSecret_1$1) {
28602
+ return;
28603
+ }
28604
+ var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
28605
+ err.name = 'Invariant Violation';
28606
+ throw err;
28607
+ }
28608
+ shim.isRequired = shim;
28609
+ function getShim() {
28610
+ return shim;
28611
+ }
28612
+ var ReactPropTypes = {
28613
+ array: shim,
28614
+ bigint: shim,
28615
+ bool: shim,
28616
+ func: shim,
28617
+ number: shim,
28618
+ object: shim,
28619
+ string: shim,
28620
+ symbol: shim,
28621
+ any: shim,
28622
+ arrayOf: getShim,
28623
+ element: shim,
28624
+ elementType: shim,
28625
+ instanceOf: getShim,
28626
+ node: shim,
28627
+ objectOf: getShim,
28628
+ oneOf: getShim,
28629
+ oneOfType: getShim,
28630
+ shape: getShim,
28631
+ exact: getShim,
28632
+ checkPropTypes: emptyFunctionWithReset$1,
28633
+ resetWarningCache: emptyFunction$1
28634
+ };
28635
+ ReactPropTypes.PropTypes = ReactPropTypes;
28636
+ return ReactPropTypes;
28637
+ };
28638
+
28639
+ var propTypes$1 = createCommonjsModule(function (module) {
28640
+ if (process.env.NODE_ENV !== 'production') {
28641
+ var ReactIs = reactIs$1;
28642
+ var throwOnDirectAccess = true;
28643
+ module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
28644
+ } else {
28645
+ module.exports = factoryWithThrowingShims$1();
28646
+ }
28647
+ });
28648
+
27661
28649
  const SearchConnection = _ref => {
27662
28650
  var _Digit$Hooks$ws$usews;
27663
28651
  let propsConfig = _ref.config,
@@ -28069,7 +29057,7 @@ const SearchConnection = _ref => {
28069
29057
  }));
28070
29058
  };
28071
29059
  SearchConnection.propTypes = {
28072
- loginParams: propTypes.any
29060
+ loginParams: propTypes$1.any
28073
29061
  };
28074
29062
  SearchConnection.defaultProps = {
28075
29063
  loginParams: null
@@ -29031,9 +30019,9 @@ const ChallanSearchResults = _ref => {
29031
30019
  }, t("WS_CLICK_HERE_TO_APPLY"))))));
29032
30020
  };
29033
30021
  ChallanSearchResults.propTypes = {
29034
- template: propTypes.any,
29035
- header: propTypes.string,
29036
- actionButtonLabel: propTypes.string
30022
+ template: propTypes$1.any,
30023
+ header: propTypes$1.string,
30024
+ actionButtonLabel: propTypes$1.string
29037
30025
  };
29038
30026
  ChallanSearchResults.defaultProps = {
29039
30027
  template: [],
@@ -35100,9 +36088,9 @@ const WNSMyBills = _ref => {
35100
36088
  }, t("CS_BILLS_TEXT_NO_BILLS_FOUND")));
35101
36089
  };
35102
36090
  WNSMyBills.propTypes = {
35103
- template: propTypes.any,
35104
- header: propTypes.string,
35105
- actionButtonLabel: propTypes.string
36091
+ template: propTypes$1.any,
36092
+ header: propTypes$1.string,
36093
+ actionButtonLabel: propTypes$1.string
35106
36094
  };
35107
36095
  WNSMyBills.defaultProps = {
35108
36096
  template: [],
@@ -35172,44 +36160,6 @@ const WSInfoPage = () => {
35172
36160
  }),
35173
36161
  isLoading = _Digit$Hooks$pt$usePr.isLoading,
35174
36162
  propertyDetails = _Digit$Hooks$pt$usePr.data;
35175
- React.useEffect(() => {
35176
- const fetchToken = function () {
35177
- try {
35178
- const urlParams = new URLSearchParams(window.location.search);
35179
- const code = urlParams.get("code");
35180
- const state = urlParams.get("state");
35181
- const _temp2 = function () {
35182
- if (code && state === "oidc_flow") {
35183
- const _temp = _catch(function () {
35184
- const TokenReq = {
35185
- module: "WS",
35186
- code: code
35187
- };
35188
- return Promise.resolve(Digit.DigiLockerService.token({
35189
- TokenReq
35190
- })).then(function (res) {
35191
- var _res$TokenRes;
35192
- if (res !== null && res !== void 0 && (_res$TokenRes = res.TokenRes) !== null && _res$TokenRes !== void 0 && _res$TokenRes.access_token) {
35193
- sessionStorage.setItem("DigiLocker.token1", res.TokenRes.access_token);
35194
- } else {
35195
- sessionStorage.setItem("DigiLocker.token1", "dummy_token");
35196
- }
35197
- const newUrl = window.location.pathname;
35198
- window.history.replaceState({}, document.title, newUrl);
35199
- });
35200
- }, function (error) {
35201
- console.error("Error fetching DigiLocker token", error);
35202
- });
35203
- if (_temp && _temp.then) return _temp.then(function () {});
35204
- }
35205
- }();
35206
- return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
35207
- } catch (e) {
35208
- return Promise.reject(e);
35209
- }
35210
- };
35211
- fetchToken();
35212
- }, []);
35213
36163
  const radioOptions = [{
35214
36164
  code: "YES",
35215
36165
  i18nKey: "TL_COMMON_YES"
@@ -35456,14 +36406,15 @@ const WSInfoPage = () => {
35456
36406
  onSubmit: function (e) {
35457
36407
  try {
35458
36408
  e.preventDefault();
35459
- const _temp3 = _catch(function () {
36409
+ const _temp = _catch(function () {
35460
36410
  return Promise.resolve(Digit.DigiLockerService.authorization({
35461
36411
  module: "WS",
35462
36412
  tenantId
35463
36413
  })).then(function (data) {
35464
36414
  const redirectUrl = (data === null || data === void 0 ? void 0 : data.redirectURL) || (data === null || data === void 0 ? void 0 : data.redirectUrl);
35465
- if (data !== null && data !== void 0 && data.codeverifier) {
35466
- sessionStorage.setItem("code_verfier_register", data === null || data === void 0 ? void 0 : data.codeverifier);
36415
+ const verifier = (data === null || data === void 0 ? void 0 : data.dlReqRef) || (data === null || data === void 0 ? void 0 : data.codeverifier) || (data === null || data === void 0 ? void 0 : data.codeVerifier) || (data === null || data === void 0 ? void 0 : data.code_verifier);
36416
+ if (verifier) {
36417
+ sessionStorage.setItem("code_verfier_register", verifier);
35467
36418
  }
35468
36419
  if (redirectUrl) {
35469
36420
  window.location.href = redirectUrl;
@@ -35474,7 +36425,7 @@ const WSInfoPage = () => {
35474
36425
  }, function (error) {
35475
36426
  console.error("Error fetching DigiLocker authorization URL", error);
35476
36427
  });
35477
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
36428
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
35478
36429
  } catch (e) {
35479
36430
  return Promise.reject(e);
35480
36431
  }
@@ -48593,11 +49544,16 @@ const ConsumptionDetails = _ref => {
48593
49544
  }
48594
49545
  let _ref2 = response || {},
48595
49546
  meterReadings = _ref2.meterReadings;
48596
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Header, {
48597
- styles: {
48598
- marginLeft: "15px"
49547
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
49548
+ className: "employee-form-section-wrapper"
49549
+ }, /*#__PURE__*/React__default.createElement("div", {
49550
+ style: {
49551
+ flex: 1,
49552
+ display: "flex",
49553
+ flexDirection: "column",
49554
+ gap: "16px"
48599
49555
  }
48600
- }, "" + t("WS_VIEW_CONSUMPTION")), /*#__PURE__*/React__default.createElement("div", null, (meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length) > 0 && meterReadings.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
49556
+ }, (meterReadings === null || meterReadings === void 0 ? void 0 : meterReadings.length) > 0 && meterReadings.map((application, index) => /*#__PURE__*/React__default.createElement("div", {
48601
49557
  key: index
48602
49558
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
48603
49559
  key: t("WS_MYCONNECTIONS_CONSUMER_NO"),