@djb25/digit-ui-module-ws 1.0.88 → 1.0.89

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.
@@ -1,4 +1,4 @@
1
- import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$1, useReducer, useCallback } from 'react';
1
+ import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$2, useReducer, useCallback } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
4
4
  import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, RemoveIcon, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$f, BreakLine, CheckPoint, ConnectingCheckPoints, Menu, ButtonSelector as ButtonSelector$1, CitizenHomeCard } from '@djb25/digit-ui-react-components';
@@ -6,29 +6,36 @@ import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
6
6
  import { read, utils as utils$1 } from 'xlsx';
7
7
  import { useQueryClient, useQuery } from 'react-query';
8
8
 
9
- const _iteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
10
- const _asyncIteratorSymbol = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
9
+ // A type of promise-like that resolves synchronously and supports only one observer
10
+
11
+ const _iteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator"))) : "@@iterator";
12
+
13
+ const _asyncIteratorSymbol = /*#__PURE__*/ typeof Symbol !== "undefined" ? (Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator"))) : "@@asyncIterator";
14
+
15
+ // Asynchronously call a function and send errors to recovery continuation
11
16
  function _catch(body, recover) {
12
- try {
13
- var result = body();
14
- } catch (e) {
15
- return recover(e);
16
- }
17
- if (result && result.then) {
18
- return result.then(void 0, recover);
19
- }
20
- return result;
17
+ try {
18
+ var result = body();
19
+ } catch(e) {
20
+ return recover(e);
21
+ }
22
+ if (result && result.then) {
23
+ return result.then(void 0, recover);
24
+ }
25
+ return result;
21
26
  }
27
+
28
+ // Asynchronously await a promise and pass the result to a finally continuation
22
29
  function _finallyRethrows(body, finalizer) {
23
- try {
24
- var result = body();
25
- } catch (e) {
26
- return finalizer(true, e);
27
- }
28
- if (result && result.then) {
29
- return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
30
- }
31
- return finalizer(false, result);
30
+ try {
31
+ var result = body();
32
+ } catch (e) {
33
+ return finalizer(true, e);
34
+ }
35
+ if (result && result.then) {
36
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
37
+ }
38
+ return finalizer(false, result);
32
39
  }
33
40
 
34
41
  const TestAcknowledgment = () => {
@@ -16749,6 +16756,31 @@ const WSActivationSupportingDocuments = _ref => {
16749
16756
  }))));
16750
16757
  };
16751
16758
 
16759
+ const _iteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.iterator || (Symbol.iterator = Symbol("Symbol.iterator")) : "@@iterator";
16760
+ const _asyncIteratorSymbol$1 = /*#__PURE__*/typeof Symbol !== "undefined" ? Symbol.asyncIterator || (Symbol.asyncIterator = Symbol("Symbol.asyncIterator")) : "@@asyncIterator";
16761
+ function _catch$1(body, recover) {
16762
+ try {
16763
+ var result = body();
16764
+ } catch (e) {
16765
+ return recover(e);
16766
+ }
16767
+ if (result && result.then) {
16768
+ return result.then(void 0, recover);
16769
+ }
16770
+ return result;
16771
+ }
16772
+ function _finallyRethrows$1(body, finalizer) {
16773
+ try {
16774
+ var result = body();
16775
+ } catch (e) {
16776
+ return finalizer(true, e);
16777
+ }
16778
+ if (result && result.then) {
16779
+ return result.then(finalizer.bind(null, false), finalizer.bind(null, true));
16780
+ }
16781
+ return finalizer(false, result);
16782
+ }
16783
+
16752
16784
  var b = "function" === typeof Symbol && Symbol.for,
16753
16785
  c = b ? Symbol.for("react.element") : 60103,
16754
16786
  d = b ? Symbol.for("react.portal") : 60106,
@@ -17901,7 +17933,7 @@ const UploadFileDigiLocker = props => {
17901
17933
  try {
17902
17934
  let _exit = false;
17903
17935
  e.preventDefault();
17904
- return Promise.resolve(_catch(function () {
17936
+ return Promise.resolve(_catch$1(function () {
17905
17937
  function _temp13(_result) {
17906
17938
  if (_exit) return _result;
17907
17939
  let TokenReq = {
@@ -18112,7 +18144,7 @@ const UploadFileDigiLocker = props => {
18112
18144
  function _temp2() {
18113
18145
  _exit = true;
18114
18146
  }
18115
- const _temp = _catch(function () {
18147
+ const _temp = _catch$1(function () {
18116
18148
  const tenantId = Digit.ULBService.getCurrentTenantId() || "dl.djb";
18117
18149
  return Promise.resolve(Digit.DigiLockerService.authorization({
18118
18150
  module: "WS",
@@ -18181,7 +18213,7 @@ const UploadFileDigiLocker = props => {
18181
18213
  fill: "#0B0C0C"
18182
18214
  }));
18183
18215
  const showHint = (props === null || props === void 0 ? void 0 : props.showHint) || false;
18184
- return /*#__PURE__*/React.createElement(Fragment$1, null, showHint && /*#__PURE__*/React.createElement("p", {
18216
+ return /*#__PURE__*/React.createElement(Fragment$2, null, showHint && /*#__PURE__*/React.createElement("p", {
18185
18217
  className: "cell-text"
18186
18218
  }, t(props === null || props === void 0 ? void 0 : props.hintText)), /*#__PURE__*/React.createElement("div", {
18187
18219
  className: `upload-file ${user_type === "employee" ? "" : "upload-file-max-width"} ${props.disabled ? " disabled" : ""}`,
@@ -19760,7 +19792,7 @@ const WSDisconnectionDocsRequired = _ref => {
19760
19792
  } = Digit.Hooks.ws.WSSearchMdmsTypes.useWSServicesMasters(tenantId, "DisconnectionDocuments");
19761
19793
  if (userType === "citizen") {
19762
19794
  var _wsDocs$Disconnection;
19763
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
19795
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`WS_COMMON_APPLICATION_DISCONNECTION`)), /*#__PURE__*/React.createElement(CitizenInfoLabel, {
19764
19796
  style: {
19765
19797
  margin: "0px"
19766
19798
  },
@@ -19786,7 +19818,7 @@ const WSDisconnectionDocsRequired = _ref => {
19786
19818
  color: "#0B0C0C",
19787
19819
  marginTop: "12px"
19788
19820
  }
19789
- }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
19821
+ }, t(`WS_NEW_CONNECTION_TEST_3`)), wsDocsLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((doc, index) => {
19790
19822
  var _doc$dropdownData;
19791
19823
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
19792
19824
  style: {
@@ -24733,7 +24765,7 @@ const FilterFormFieldsComponent = _ref => {
24733
24765
  });
24734
24766
  return props.onChange(res);
24735
24767
  };
24736
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
24768
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
24737
24769
  name: "assignee",
24738
24770
  control: controlFilterForm,
24739
24771
  render: props => {
@@ -24764,7 +24796,7 @@ const FilterFormFieldsComponent = _ref => {
24764
24796
  });
24765
24797
  });
24766
24798
  }, [props === null || props === void 0 ? void 0 : props.value]);
24767
- return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
24799
+ return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
24768
24800
  className: "filter-label sub-filter-label"
24769
24801
  }, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
24770
24802
  options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
@@ -24799,9 +24831,9 @@ const FilterFormFieldsComponent = _ref => {
24799
24831
  key: index + 1
24800
24832
  });
24801
24833
  }), [props.value, statuses]);
24802
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
24834
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
24803
24835
  className: "filter-label sub-filter-label"
24804
- }, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
24836
+ }, t("WS_COMMON_TABLE_COL_APP_TYPE_LABEL")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
24805
24837
  }
24806
24838
  })), (selectedApplicationType === null || selectedApplicationType === void 0 ? void 0 : selectedApplicationType.length) > 0 ? /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
24807
24839
  name: "applicationStatus",
@@ -24828,9 +24860,9 @@ const FilterFormFieldsComponent = _ref => {
24828
24860
  });
24829
24861
  });
24830
24862
  }, [props.value, statuses, selectedApplicationType]);
24831
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
24863
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
24832
24864
  className: "filter-label sub-filter-label"
24833
- }, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, renderStatusCheckBoxes));
24865
+ }, t("WS_MYCONNECTIONS_STATUS")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, renderStatusCheckBoxes));
24834
24866
  }
24835
24867
  })) : null);
24836
24868
  };
@@ -26094,7 +26126,7 @@ const SearchFields$1 = _ref => {
26094
26126
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
26095
26127
  };
26096
26128
  let validation = {};
26097
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, _extends({
26129
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_MYCONNECTIONS_CONSUMER_NO")), /*#__PURE__*/React.createElement(TextInput, _extends({
26098
26130
  name: "connectionNumber",
26099
26131
  inputRef: register({})
26100
26132
  }, validation = {
@@ -26762,7 +26794,7 @@ const BulkBillSearchFields = _ref => {
26762
26794
  setValue('tenantId', tenant);
26763
26795
  setLocality(value);
26764
26796
  }
26765
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
26797
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, null, /*#__PURE__*/React.createElement("label", null, t("WS_SEARCH_CONNNECTION_CITY")), /*#__PURE__*/React.createElement(TextInput, {
26766
26798
  name: "city",
26767
26799
  disable: true,
26768
26800
  value: t(tenant),
@@ -27205,7 +27237,7 @@ const BulkBillSearch = _ref => {
27205
27237
  return GetCell((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["status"]);
27206
27238
  }
27207
27239
  }]);
27208
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
27240
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
27209
27241
  styles: {
27210
27242
  fontSize: "32px"
27211
27243
  }
@@ -27587,7 +27619,7 @@ const SearchFormFieldsComponents$1 = _ref => {
27587
27619
  componentInFront: "+91"
27588
27620
  };
27589
27621
  let validation = {};
27590
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
27622
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
27591
27623
  className: "wns-search-field"
27592
27624
  }, /*#__PURE__*/React.createElement("label", null, t("BILLAMEND_APPLICATIONNO")), /*#__PURE__*/React.createElement(TextInput, _extends({
27593
27625
  name: "applicationNumber",
@@ -27655,7 +27687,7 @@ const FilterFormFieldsComponent$1 = _ref => {
27655
27687
  });
27656
27688
  return props.onChange(res);
27657
27689
  };
27658
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
27690
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(FilterFormField, null, /*#__PURE__*/React.createElement(Controller, {
27659
27691
  name: "assignee",
27660
27692
  control: controlFilterForm,
27661
27693
  render: props => /*#__PURE__*/React.createElement(RadioButtons, {
@@ -27684,7 +27716,7 @@ const FilterFormFieldsComponent$1 = _ref => {
27684
27716
  });
27685
27717
  });
27686
27718
  }, [props === null || props === void 0 ? void 0 : props.value]);
27687
- return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
27719
+ return loadingLocalitiesForEmployeesCurrentTenant ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
27688
27720
  className: "filter-label sub-filter-label"
27689
27721
  }, t("ES_INBOX_LOCALITY")), /*#__PURE__*/React.createElement(MultiSelectDropdown, {
27690
27722
  options: localitiesForEmployeesCurrentTenant ? localitiesForEmployeesCurrentTenant : [],
@@ -27723,9 +27755,9 @@ const FilterFormFieldsComponent$1 = _ref => {
27723
27755
  key: index + 1
27724
27756
  });
27725
27757
  }), [props.value, statuses]);
27726
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
27758
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
27727
27759
  className: "filter-label sub-filter-label"
27728
- }, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, " ", renderStatusCheckBoxess));
27760
+ }, t("CS_INBOX_STATUS_FILTER")), isInboxLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, " ", renderStatusCheckBoxess));
27729
27761
  }
27730
27762
  })));
27731
27763
  };
@@ -28249,7 +28281,7 @@ const Inbox = _ref => {
28249
28281
  sortFormDefaultValues: formState === null || formState === void 0 ? void 0 : formState.tableForm,
28250
28282
  onSortFormReset
28251
28283
  };
28252
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
28284
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, null, t("ES_COMMON_INBOX"), totalCount ? /*#__PURE__*/React.createElement("p", {
28253
28285
  className: "inbox-count"
28254
28286
  }, totalCount) : null), /*#__PURE__*/React.createElement(InboxComposer, _extends({
28255
28287
  isInboxLoading,
@@ -29357,6 +29389,1101 @@ const config = [{
29357
29389
  }]
29358
29390
  }];
29359
29391
 
29392
+ /** @license React v16.13.1
29393
+ * react-is.production.min.js
29394
+ *
29395
+ * Copyright (c) Facebook, Inc. and its affiliates.
29396
+ *
29397
+ * This source code is licensed under the MIT license found in the
29398
+ * LICENSE file in the root directory of this source tree.
29399
+ */
29400
+ var b$1="function"===typeof Symbol&&Symbol.for,c$1=b$1?Symbol.for("react.element"):60103,d$1=b$1?Symbol.for("react.portal"):60106,e$1=b$1?Symbol.for("react.fragment"):60107,f$1=b$1?Symbol.for("react.strict_mode"):60108,g$1=b$1?Symbol.for("react.profiler"):60114,h$1=b$1?Symbol.for("react.provider"):60109,k$1=b$1?Symbol.for("react.context"):60110,l$1=b$1?Symbol.for("react.async_mode"):60111,m$1=b$1?Symbol.for("react.concurrent_mode"):60111,n$1=b$1?Symbol.for("react.forward_ref"):60112,p$1=b$1?Symbol.for("react.suspense"):60113,q$1=b$1?
29401
+ Symbol.for("react.suspense_list"):60120,r$1=b$1?Symbol.for("react.memo"):60115,t$1=b$1?Symbol.for("react.lazy"):60116,v$1=b$1?Symbol.for("react.block"):60121,w$1=b$1?Symbol.for("react.fundamental"):60117,x$1=b$1?Symbol.for("react.responder"):60118,y$1=b$1?Symbol.for("react.scope"):60119;
29402
+ function z$1(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c$1:switch(a=a.type,a){case l$1:case m$1:case e$1:case g$1:case f$1:case p$1:return a;default:switch(a=a&&a.$$typeof,a){case k$1:case n$1:case t$1:case r$1:case h$1:return a;default:return u}}case d$1:return u}}}function A$1(a){return z$1(a)===m$1}var AsyncMode$1=l$1;var ConcurrentMode$1=m$1;var ContextConsumer$1=k$1;var ContextProvider$1=h$1;var Element$1=c$1;var ForwardRef$1=n$1;var Fragment$1=e$1;var Lazy$1=t$1;var Memo$1=r$1;var Portal$1=d$1;
29403
+ var Profiler$1=g$1;var StrictMode$1=f$1;var Suspense$1=p$1;var isAsyncMode$1=function(a){return A$1(a)||z$1(a)===l$1};var isConcurrentMode$1=A$1;var isContextConsumer$1=function(a){return z$1(a)===k$1};var isContextProvider$1=function(a){return z$1(a)===h$1};var isElement$1=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c$1};var isForwardRef$1=function(a){return z$1(a)===n$1};var isFragment$1=function(a){return z$1(a)===e$1};var isLazy$1=function(a){return z$1(a)===t$1};
29404
+ var isMemo$1=function(a){return z$1(a)===r$1};var isPortal$1=function(a){return z$1(a)===d$1};var isProfiler$1=function(a){return z$1(a)===g$1};var isStrictMode$1=function(a){return z$1(a)===f$1};var isSuspense$1=function(a){return z$1(a)===p$1};
29405
+ var isValidElementType$1=function(a){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)};var typeOf$1=z$1;
29406
+
29407
+ var reactIs_production_min$1 = {
29408
+ AsyncMode: AsyncMode$1,
29409
+ ConcurrentMode: ConcurrentMode$1,
29410
+ ContextConsumer: ContextConsumer$1,
29411
+ ContextProvider: ContextProvider$1,
29412
+ Element: Element$1,
29413
+ ForwardRef: ForwardRef$1,
29414
+ Fragment: Fragment$1,
29415
+ Lazy: Lazy$1,
29416
+ Memo: Memo$1,
29417
+ Portal: Portal$1,
29418
+ Profiler: Profiler$1,
29419
+ StrictMode: StrictMode$1,
29420
+ Suspense: Suspense$1,
29421
+ isAsyncMode: isAsyncMode$1,
29422
+ isConcurrentMode: isConcurrentMode$1,
29423
+ isContextConsumer: isContextConsumer$1,
29424
+ isContextProvider: isContextProvider$1,
29425
+ isElement: isElement$1,
29426
+ isForwardRef: isForwardRef$1,
29427
+ isFragment: isFragment$1,
29428
+ isLazy: isLazy$1,
29429
+ isMemo: isMemo$1,
29430
+ isPortal: isPortal$1,
29431
+ isProfiler: isProfiler$1,
29432
+ isStrictMode: isStrictMode$1,
29433
+ isSuspense: isSuspense$1,
29434
+ isValidElementType: isValidElementType$1,
29435
+ typeOf: typeOf$1
29436
+ };
29437
+
29438
+ var reactIs_development$1 = createCommonjsModule(function (module, exports) {
29439
+
29440
+
29441
+
29442
+ if (process.env.NODE_ENV !== "production") {
29443
+ (function() {
29444
+
29445
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
29446
+ // nor polyfill, then a plain number is used for performance.
29447
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
29448
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
29449
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
29450
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
29451
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
29452
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
29453
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
29454
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
29455
+ // (unstable) APIs that have been removed. Can we remove the symbols?
29456
+
29457
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
29458
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
29459
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
29460
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
29461
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
29462
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
29463
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
29464
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
29465
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
29466
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
29467
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
29468
+
29469
+ function isValidElementType(type) {
29470
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
29471
+ 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);
29472
+ }
29473
+
29474
+ function typeOf(object) {
29475
+ if (typeof object === 'object' && object !== null) {
29476
+ var $$typeof = object.$$typeof;
29477
+
29478
+ switch ($$typeof) {
29479
+ case REACT_ELEMENT_TYPE:
29480
+ var type = object.type;
29481
+
29482
+ switch (type) {
29483
+ case REACT_ASYNC_MODE_TYPE:
29484
+ case REACT_CONCURRENT_MODE_TYPE:
29485
+ case REACT_FRAGMENT_TYPE:
29486
+ case REACT_PROFILER_TYPE:
29487
+ case REACT_STRICT_MODE_TYPE:
29488
+ case REACT_SUSPENSE_TYPE:
29489
+ return type;
29490
+
29491
+ default:
29492
+ var $$typeofType = type && type.$$typeof;
29493
+
29494
+ switch ($$typeofType) {
29495
+ case REACT_CONTEXT_TYPE:
29496
+ case REACT_FORWARD_REF_TYPE:
29497
+ case REACT_LAZY_TYPE:
29498
+ case REACT_MEMO_TYPE:
29499
+ case REACT_PROVIDER_TYPE:
29500
+ return $$typeofType;
29501
+
29502
+ default:
29503
+ return $$typeof;
29504
+ }
29505
+
29506
+ }
29507
+
29508
+ case REACT_PORTAL_TYPE:
29509
+ return $$typeof;
29510
+ }
29511
+ }
29512
+
29513
+ return undefined;
29514
+ } // AsyncMode is deprecated along with isAsyncMode
29515
+
29516
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
29517
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
29518
+ var ContextConsumer = REACT_CONTEXT_TYPE;
29519
+ var ContextProvider = REACT_PROVIDER_TYPE;
29520
+ var Element = REACT_ELEMENT_TYPE;
29521
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
29522
+ var Fragment = REACT_FRAGMENT_TYPE;
29523
+ var Lazy = REACT_LAZY_TYPE;
29524
+ var Memo = REACT_MEMO_TYPE;
29525
+ var Portal = REACT_PORTAL_TYPE;
29526
+ var Profiler = REACT_PROFILER_TYPE;
29527
+ var StrictMode = REACT_STRICT_MODE_TYPE;
29528
+ var Suspense = REACT_SUSPENSE_TYPE;
29529
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
29530
+
29531
+ function isAsyncMode(object) {
29532
+ {
29533
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
29534
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
29535
+
29536
+ 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.');
29537
+ }
29538
+ }
29539
+
29540
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
29541
+ }
29542
+ function isConcurrentMode(object) {
29543
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
29544
+ }
29545
+ function isContextConsumer(object) {
29546
+ return typeOf(object) === REACT_CONTEXT_TYPE;
29547
+ }
29548
+ function isContextProvider(object) {
29549
+ return typeOf(object) === REACT_PROVIDER_TYPE;
29550
+ }
29551
+ function isElement(object) {
29552
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
29553
+ }
29554
+ function isForwardRef(object) {
29555
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
29556
+ }
29557
+ function isFragment(object) {
29558
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
29559
+ }
29560
+ function isLazy(object) {
29561
+ return typeOf(object) === REACT_LAZY_TYPE;
29562
+ }
29563
+ function isMemo(object) {
29564
+ return typeOf(object) === REACT_MEMO_TYPE;
29565
+ }
29566
+ function isPortal(object) {
29567
+ return typeOf(object) === REACT_PORTAL_TYPE;
29568
+ }
29569
+ function isProfiler(object) {
29570
+ return typeOf(object) === REACT_PROFILER_TYPE;
29571
+ }
29572
+ function isStrictMode(object) {
29573
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
29574
+ }
29575
+ function isSuspense(object) {
29576
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
29577
+ }
29578
+
29579
+ exports.AsyncMode = AsyncMode;
29580
+ exports.ConcurrentMode = ConcurrentMode;
29581
+ exports.ContextConsumer = ContextConsumer;
29582
+ exports.ContextProvider = ContextProvider;
29583
+ exports.Element = Element;
29584
+ exports.ForwardRef = ForwardRef;
29585
+ exports.Fragment = Fragment;
29586
+ exports.Lazy = Lazy;
29587
+ exports.Memo = Memo;
29588
+ exports.Portal = Portal;
29589
+ exports.Profiler = Profiler;
29590
+ exports.StrictMode = StrictMode;
29591
+ exports.Suspense = Suspense;
29592
+ exports.isAsyncMode = isAsyncMode;
29593
+ exports.isConcurrentMode = isConcurrentMode;
29594
+ exports.isContextConsumer = isContextConsumer;
29595
+ exports.isContextProvider = isContextProvider;
29596
+ exports.isElement = isElement;
29597
+ exports.isForwardRef = isForwardRef;
29598
+ exports.isFragment = isFragment;
29599
+ exports.isLazy = isLazy;
29600
+ exports.isMemo = isMemo;
29601
+ exports.isPortal = isPortal;
29602
+ exports.isProfiler = isProfiler;
29603
+ exports.isStrictMode = isStrictMode;
29604
+ exports.isSuspense = isSuspense;
29605
+ exports.isValidElementType = isValidElementType;
29606
+ exports.typeOf = typeOf;
29607
+ })();
29608
+ }
29609
+ });
29610
+
29611
+ var reactIs$1 = createCommonjsModule(function (module) {
29612
+
29613
+ if (process.env.NODE_ENV === 'production') {
29614
+ module.exports = reactIs_production_min$1;
29615
+ } else {
29616
+ module.exports = reactIs_development$1;
29617
+ }
29618
+ });
29619
+
29620
+ /*
29621
+ object-assign
29622
+ (c) Sindre Sorhus
29623
+ @license MIT
29624
+ */
29625
+ /* eslint-disable no-unused-vars */
29626
+ var getOwnPropertySymbols$1 = Object.getOwnPropertySymbols;
29627
+ var hasOwnProperty$b = Object.prototype.hasOwnProperty;
29628
+ var propIsEnumerable$1 = Object.prototype.propertyIsEnumerable;
29629
+
29630
+ function toObject$1(val) {
29631
+ if (val === null || val === undefined) {
29632
+ throw new TypeError('Object.assign cannot be called with null or undefined');
29633
+ }
29634
+
29635
+ return Object(val);
29636
+ }
29637
+
29638
+ function shouldUseNative$1() {
29639
+ try {
29640
+ if (!Object.assign) {
29641
+ return false;
29642
+ }
29643
+
29644
+ // Detect buggy property enumeration order in older V8 versions.
29645
+
29646
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
29647
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
29648
+ test1[5] = 'de';
29649
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
29650
+ return false;
29651
+ }
29652
+
29653
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
29654
+ var test2 = {};
29655
+ for (var i = 0; i < 10; i++) {
29656
+ test2['_' + String.fromCharCode(i)] = i;
29657
+ }
29658
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
29659
+ return test2[n];
29660
+ });
29661
+ if (order2.join('') !== '0123456789') {
29662
+ return false;
29663
+ }
29664
+
29665
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
29666
+ var test3 = {};
29667
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
29668
+ test3[letter] = letter;
29669
+ });
29670
+ if (Object.keys(Object.assign({}, test3)).join('') !==
29671
+ 'abcdefghijklmnopqrst') {
29672
+ return false;
29673
+ }
29674
+
29675
+ return true;
29676
+ } catch (err) {
29677
+ // We don't expect any of the above to throw, but better to be safe.
29678
+ return false;
29679
+ }
29680
+ }
29681
+
29682
+ var objectAssign$1 = shouldUseNative$1() ? Object.assign : function (target, source) {
29683
+ var from;
29684
+ var to = toObject$1(target);
29685
+ var symbols;
29686
+
29687
+ for (var s = 1; s < arguments.length; s++) {
29688
+ from = Object(arguments[s]);
29689
+
29690
+ for (var key in from) {
29691
+ if (hasOwnProperty$b.call(from, key)) {
29692
+ to[key] = from[key];
29693
+ }
29694
+ }
29695
+
29696
+ if (getOwnPropertySymbols$1) {
29697
+ symbols = getOwnPropertySymbols$1(from);
29698
+ for (var i = 0; i < symbols.length; i++) {
29699
+ if (propIsEnumerable$1.call(from, symbols[i])) {
29700
+ to[symbols[i]] = from[symbols[i]];
29701
+ }
29702
+ }
29703
+ }
29704
+ }
29705
+
29706
+ return to;
29707
+ };
29708
+
29709
+ /**
29710
+ * Copyright (c) 2013-present, Facebook, Inc.
29711
+ *
29712
+ * This source code is licensed under the MIT license found in the
29713
+ * LICENSE file in the root directory of this source tree.
29714
+ */
29715
+
29716
+ var ReactPropTypesSecret$2 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
29717
+
29718
+ var ReactPropTypesSecret_1$1 = ReactPropTypesSecret$2;
29719
+
29720
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
29721
+
29722
+ var printWarning$2 = function() {};
29723
+
29724
+ if (process.env.NODE_ENV !== 'production') {
29725
+ var ReactPropTypesSecret$3 = ReactPropTypesSecret_1$1;
29726
+ var loggedTypeFailures$1 = {};
29727
+ var has$3 = has$2;
29728
+
29729
+ printWarning$2 = function(text) {
29730
+ var message = 'Warning: ' + text;
29731
+ if (typeof console !== 'undefined') {
29732
+ console.error(message);
29733
+ }
29734
+ try {
29735
+ // --- Welcome to debugging React ---
29736
+ // This error was thrown as a convenience so that you can use this stack
29737
+ // to find the callsite that caused this warning to fire.
29738
+ throw new Error(message);
29739
+ } catch (x) { /**/ }
29740
+ };
29741
+ }
29742
+
29743
+ /**
29744
+ * Assert that the values match with the type specs.
29745
+ * Error messages are memorized and will only be shown once.
29746
+ *
29747
+ * @param {object} typeSpecs Map of name to a ReactPropType
29748
+ * @param {object} values Runtime values that need to be type-checked
29749
+ * @param {string} location e.g. "prop", "context", "child context"
29750
+ * @param {string} componentName Name of the component for error messages.
29751
+ * @param {?Function} getStack Returns the component stack.
29752
+ * @private
29753
+ */
29754
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
29755
+ if (process.env.NODE_ENV !== 'production') {
29756
+ for (var typeSpecName in typeSpecs) {
29757
+ if (has$3(typeSpecs, typeSpecName)) {
29758
+ var error;
29759
+ // Prop type validation may throw. In case they do, we don't want to
29760
+ // fail the render phase where it didn't fail before. So we log it.
29761
+ // After these have been cleaned up, we'll let them throw.
29762
+ try {
29763
+ // This is intentionally an invariant that gets caught. It's the same
29764
+ // behavior as without this statement except with a better message.
29765
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
29766
+ var err = Error(
29767
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
29768
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
29769
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
29770
+ );
29771
+ err.name = 'Invariant Violation';
29772
+ throw err;
29773
+ }
29774
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$3);
29775
+ } catch (ex) {
29776
+ error = ex;
29777
+ }
29778
+ if (error && !(error instanceof Error)) {
29779
+ printWarning$2(
29780
+ (componentName || 'React class') + ': type specification of ' +
29781
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
29782
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
29783
+ 'You may have forgotten to pass an argument to the type checker ' +
29784
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
29785
+ 'shape all require an argument).'
29786
+ );
29787
+ }
29788
+ if (error instanceof Error && !(error.message in loggedTypeFailures$1)) {
29789
+ // Only monitor this failure once because there tends to be a lot of the
29790
+ // same error.
29791
+ loggedTypeFailures$1[error.message] = true;
29792
+
29793
+ var stack = getStack ? getStack() : '';
29794
+
29795
+ printWarning$2(
29796
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
29797
+ );
29798
+ }
29799
+ }
29800
+ }
29801
+ }
29802
+ }
29803
+
29804
+ /**
29805
+ * Resets warning cache when testing.
29806
+ *
29807
+ * @private
29808
+ */
29809
+ checkPropTypes$1.resetWarningCache = function() {
29810
+ if (process.env.NODE_ENV !== 'production') {
29811
+ loggedTypeFailures$1 = {};
29812
+ }
29813
+ };
29814
+
29815
+ var checkPropTypes_1$1 = checkPropTypes$1;
29816
+
29817
+ var printWarning$3 = function() {};
29818
+
29819
+ if (process.env.NODE_ENV !== 'production') {
29820
+ printWarning$3 = function(text) {
29821
+ var message = 'Warning: ' + text;
29822
+ if (typeof console !== 'undefined') {
29823
+ console.error(message);
29824
+ }
29825
+ try {
29826
+ // --- Welcome to debugging React ---
29827
+ // This error was thrown as a convenience so that you can use this stack
29828
+ // to find the callsite that caused this warning to fire.
29829
+ throw new Error(message);
29830
+ } catch (x) {}
29831
+ };
29832
+ }
29833
+
29834
+ function emptyFunctionThatReturnsNull$1() {
29835
+ return null;
29836
+ }
29837
+
29838
+ var factoryWithTypeCheckers$1 = function(isValidElement, throwOnDirectAccess) {
29839
+ /* global Symbol */
29840
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
29841
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
29842
+
29843
+ /**
29844
+ * Returns the iterator method function contained on the iterable object.
29845
+ *
29846
+ * Be sure to invoke the function with the iterable as context:
29847
+ *
29848
+ * var iteratorFn = getIteratorFn(myIterable);
29849
+ * if (iteratorFn) {
29850
+ * var iterator = iteratorFn.call(myIterable);
29851
+ * ...
29852
+ * }
29853
+ *
29854
+ * @param {?object} maybeIterable
29855
+ * @return {?function}
29856
+ */
29857
+ function getIteratorFn(maybeIterable) {
29858
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
29859
+ if (typeof iteratorFn === 'function') {
29860
+ return iteratorFn;
29861
+ }
29862
+ }
29863
+
29864
+ /**
29865
+ * Collection of methods that allow declaration and validation of props that are
29866
+ * supplied to React components. Example usage:
29867
+ *
29868
+ * var Props = require('ReactPropTypes');
29869
+ * var MyArticle = React.createClass({
29870
+ * propTypes: {
29871
+ * // An optional string prop named "description".
29872
+ * description: Props.string,
29873
+ *
29874
+ * // A required enum prop named "category".
29875
+ * category: Props.oneOf(['News','Photos']).isRequired,
29876
+ *
29877
+ * // A prop named "dialog" that requires an instance of Dialog.
29878
+ * dialog: Props.instanceOf(Dialog).isRequired
29879
+ * },
29880
+ * render: function() { ... }
29881
+ * });
29882
+ *
29883
+ * A more formal specification of how these methods are used:
29884
+ *
29885
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
29886
+ * decl := ReactPropTypes.{type}(.isRequired)?
29887
+ *
29888
+ * Each and every declaration produces a function with the same signature. This
29889
+ * allows the creation of custom validation functions. For example:
29890
+ *
29891
+ * var MyLink = React.createClass({
29892
+ * propTypes: {
29893
+ * // An optional string or URI prop named "href".
29894
+ * href: function(props, propName, componentName) {
29895
+ * var propValue = props[propName];
29896
+ * if (propValue != null && typeof propValue !== 'string' &&
29897
+ * !(propValue instanceof URI)) {
29898
+ * return new Error(
29899
+ * 'Expected a string or an URI for ' + propName + ' in ' +
29900
+ * componentName
29901
+ * );
29902
+ * }
29903
+ * }
29904
+ * },
29905
+ * render: function() {...}
29906
+ * });
29907
+ *
29908
+ * @internal
29909
+ */
29910
+
29911
+ var ANONYMOUS = '<<anonymous>>';
29912
+
29913
+ // Important!
29914
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
29915
+ var ReactPropTypes = {
29916
+ array: createPrimitiveTypeChecker('array'),
29917
+ bigint: createPrimitiveTypeChecker('bigint'),
29918
+ bool: createPrimitiveTypeChecker('boolean'),
29919
+ func: createPrimitiveTypeChecker('function'),
29920
+ number: createPrimitiveTypeChecker('number'),
29921
+ object: createPrimitiveTypeChecker('object'),
29922
+ string: createPrimitiveTypeChecker('string'),
29923
+ symbol: createPrimitiveTypeChecker('symbol'),
29924
+
29925
+ any: createAnyTypeChecker(),
29926
+ arrayOf: createArrayOfTypeChecker,
29927
+ element: createElementTypeChecker(),
29928
+ elementType: createElementTypeTypeChecker(),
29929
+ instanceOf: createInstanceTypeChecker,
29930
+ node: createNodeChecker(),
29931
+ objectOf: createObjectOfTypeChecker,
29932
+ oneOf: createEnumTypeChecker,
29933
+ oneOfType: createUnionTypeChecker,
29934
+ shape: createShapeTypeChecker,
29935
+ exact: createStrictShapeTypeChecker,
29936
+ };
29937
+
29938
+ /**
29939
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
29940
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
29941
+ */
29942
+ /*eslint-disable no-self-compare*/
29943
+ function is(x, y) {
29944
+ // SameValue algorithm
29945
+ if (x === y) {
29946
+ // Steps 1-5, 7-10
29947
+ // Steps 6.b-6.e: +0 != -0
29948
+ return x !== 0 || 1 / x === 1 / y;
29949
+ } else {
29950
+ // Step 6.a: NaN == NaN
29951
+ return x !== x && y !== y;
29952
+ }
29953
+ }
29954
+ /*eslint-enable no-self-compare*/
29955
+
29956
+ /**
29957
+ * We use an Error-like object for backward compatibility as people may call
29958
+ * PropTypes directly and inspect their output. However, we don't use real
29959
+ * Errors anymore. We don't inspect their stack anyway, and creating them
29960
+ * is prohibitively expensive if they are created too often, such as what
29961
+ * happens in oneOfType() for any type before the one that matched.
29962
+ */
29963
+ function PropTypeError(message, data) {
29964
+ this.message = message;
29965
+ this.data = data && typeof data === 'object' ? data: {};
29966
+ this.stack = '';
29967
+ }
29968
+ // Make `instanceof Error` still work for returned errors.
29969
+ PropTypeError.prototype = Error.prototype;
29970
+
29971
+ function createChainableTypeChecker(validate) {
29972
+ if (process.env.NODE_ENV !== 'production') {
29973
+ var manualPropTypeCallCache = {};
29974
+ var manualPropTypeWarningCount = 0;
29975
+ }
29976
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
29977
+ componentName = componentName || ANONYMOUS;
29978
+ propFullName = propFullName || propName;
29979
+
29980
+ if (secret !== ReactPropTypesSecret_1$1) {
29981
+ if (throwOnDirectAccess) {
29982
+ // New behavior only for users of `prop-types` package
29983
+ var err = new Error(
29984
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
29985
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
29986
+ 'Read more at http://fb.me/use-check-prop-types'
29987
+ );
29988
+ err.name = 'Invariant Violation';
29989
+ throw err;
29990
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
29991
+ // Old behavior for people using React.PropTypes
29992
+ var cacheKey = componentName + ':' + propName;
29993
+ if (
29994
+ !manualPropTypeCallCache[cacheKey] &&
29995
+ // Avoid spamming the console because they are often not actionable except for lib authors
29996
+ manualPropTypeWarningCount < 3
29997
+ ) {
29998
+ printWarning$3(
29999
+ 'You are manually calling a React.PropTypes validation ' +
30000
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
30001
+ 'and will throw in the standalone `prop-types` package. ' +
30002
+ 'You may be seeing this warning due to a third-party PropTypes ' +
30003
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
30004
+ );
30005
+ manualPropTypeCallCache[cacheKey] = true;
30006
+ manualPropTypeWarningCount++;
30007
+ }
30008
+ }
30009
+ }
30010
+ if (props[propName] == null) {
30011
+ if (isRequired) {
30012
+ if (props[propName] === null) {
30013
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
30014
+ }
30015
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
30016
+ }
30017
+ return null;
30018
+ } else {
30019
+ return validate(props, propName, componentName, location, propFullName);
30020
+ }
30021
+ }
30022
+
30023
+ var chainedCheckType = checkType.bind(null, false);
30024
+ chainedCheckType.isRequired = checkType.bind(null, true);
30025
+
30026
+ return chainedCheckType;
30027
+ }
30028
+
30029
+ function createPrimitiveTypeChecker(expectedType) {
30030
+ function validate(props, propName, componentName, location, propFullName, secret) {
30031
+ var propValue = props[propName];
30032
+ var propType = getPropType(propValue);
30033
+ if (propType !== expectedType) {
30034
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
30035
+ // check, but we can offer a more precise error message here rather than
30036
+ // 'of type `object`'.
30037
+ var preciseType = getPreciseType(propValue);
30038
+
30039
+ return new PropTypeError(
30040
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
30041
+ {expectedType: expectedType}
30042
+ );
30043
+ }
30044
+ return null;
30045
+ }
30046
+ return createChainableTypeChecker(validate);
30047
+ }
30048
+
30049
+ function createAnyTypeChecker() {
30050
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull$1);
30051
+ }
30052
+
30053
+ function createArrayOfTypeChecker(typeChecker) {
30054
+ function validate(props, propName, componentName, location, propFullName) {
30055
+ if (typeof typeChecker !== 'function') {
30056
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
30057
+ }
30058
+ var propValue = props[propName];
30059
+ if (!Array.isArray(propValue)) {
30060
+ var propType = getPropType(propValue);
30061
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
30062
+ }
30063
+ for (var i = 0; i < propValue.length; i++) {
30064
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1$1);
30065
+ if (error instanceof Error) {
30066
+ return error;
30067
+ }
30068
+ }
30069
+ return null;
30070
+ }
30071
+ return createChainableTypeChecker(validate);
30072
+ }
30073
+
30074
+ function createElementTypeChecker() {
30075
+ function validate(props, propName, componentName, location, propFullName) {
30076
+ var propValue = props[propName];
30077
+ if (!isValidElement(propValue)) {
30078
+ var propType = getPropType(propValue);
30079
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
30080
+ }
30081
+ return null;
30082
+ }
30083
+ return createChainableTypeChecker(validate);
30084
+ }
30085
+
30086
+ function createElementTypeTypeChecker() {
30087
+ function validate(props, propName, componentName, location, propFullName) {
30088
+ var propValue = props[propName];
30089
+ if (!reactIs$1.isValidElementType(propValue)) {
30090
+ var propType = getPropType(propValue);
30091
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
30092
+ }
30093
+ return null;
30094
+ }
30095
+ return createChainableTypeChecker(validate);
30096
+ }
30097
+
30098
+ function createInstanceTypeChecker(expectedClass) {
30099
+ function validate(props, propName, componentName, location, propFullName) {
30100
+ if (!(props[propName] instanceof expectedClass)) {
30101
+ var expectedClassName = expectedClass.name || ANONYMOUS;
30102
+ var actualClassName = getClassName(props[propName]);
30103
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
30104
+ }
30105
+ return null;
30106
+ }
30107
+ return createChainableTypeChecker(validate);
30108
+ }
30109
+
30110
+ function createEnumTypeChecker(expectedValues) {
30111
+ if (!Array.isArray(expectedValues)) {
30112
+ if (process.env.NODE_ENV !== 'production') {
30113
+ if (arguments.length > 1) {
30114
+ printWarning$3(
30115
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
30116
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
30117
+ );
30118
+ } else {
30119
+ printWarning$3('Invalid argument supplied to oneOf, expected an array.');
30120
+ }
30121
+ }
30122
+ return emptyFunctionThatReturnsNull$1;
30123
+ }
30124
+
30125
+ function validate(props, propName, componentName, location, propFullName) {
30126
+ var propValue = props[propName];
30127
+ for (var i = 0; i < expectedValues.length; i++) {
30128
+ if (is(propValue, expectedValues[i])) {
30129
+ return null;
30130
+ }
30131
+ }
30132
+
30133
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
30134
+ var type = getPreciseType(value);
30135
+ if (type === 'symbol') {
30136
+ return String(value);
30137
+ }
30138
+ return value;
30139
+ });
30140
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
30141
+ }
30142
+ return createChainableTypeChecker(validate);
30143
+ }
30144
+
30145
+ function createObjectOfTypeChecker(typeChecker) {
30146
+ function validate(props, propName, componentName, location, propFullName) {
30147
+ if (typeof typeChecker !== 'function') {
30148
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
30149
+ }
30150
+ var propValue = props[propName];
30151
+ var propType = getPropType(propValue);
30152
+ if (propType !== 'object') {
30153
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
30154
+ }
30155
+ for (var key in propValue) {
30156
+ if (has$2(propValue, key)) {
30157
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30158
+ if (error instanceof Error) {
30159
+ return error;
30160
+ }
30161
+ }
30162
+ }
30163
+ return null;
30164
+ }
30165
+ return createChainableTypeChecker(validate);
30166
+ }
30167
+
30168
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
30169
+ if (!Array.isArray(arrayOfTypeCheckers)) {
30170
+ process.env.NODE_ENV !== 'production' ? printWarning$3('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
30171
+ return emptyFunctionThatReturnsNull$1;
30172
+ }
30173
+
30174
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
30175
+ var checker = arrayOfTypeCheckers[i];
30176
+ if (typeof checker !== 'function') {
30177
+ printWarning$3(
30178
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
30179
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
30180
+ );
30181
+ return emptyFunctionThatReturnsNull$1;
30182
+ }
30183
+ }
30184
+
30185
+ function validate(props, propName, componentName, location, propFullName) {
30186
+ var expectedTypes = [];
30187
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
30188
+ var checker = arrayOfTypeCheckers[i];
30189
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1$1);
30190
+ if (checkerResult == null) {
30191
+ return null;
30192
+ }
30193
+ if (checkerResult.data && has$2(checkerResult.data, 'expectedType')) {
30194
+ expectedTypes.push(checkerResult.data.expectedType);
30195
+ }
30196
+ }
30197
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
30198
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
30199
+ }
30200
+ return createChainableTypeChecker(validate);
30201
+ }
30202
+
30203
+ function createNodeChecker() {
30204
+ function validate(props, propName, componentName, location, propFullName) {
30205
+ if (!isNode(props[propName])) {
30206
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
30207
+ }
30208
+ return null;
30209
+ }
30210
+ return createChainableTypeChecker(validate);
30211
+ }
30212
+
30213
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
30214
+ return new PropTypeError(
30215
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
30216
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
30217
+ );
30218
+ }
30219
+
30220
+ function createShapeTypeChecker(shapeTypes) {
30221
+ function validate(props, propName, componentName, location, propFullName) {
30222
+ var propValue = props[propName];
30223
+ var propType = getPropType(propValue);
30224
+ if (propType !== 'object') {
30225
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
30226
+ }
30227
+ for (var key in shapeTypes) {
30228
+ var checker = shapeTypes[key];
30229
+ if (typeof checker !== 'function') {
30230
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
30231
+ }
30232
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30233
+ if (error) {
30234
+ return error;
30235
+ }
30236
+ }
30237
+ return null;
30238
+ }
30239
+ return createChainableTypeChecker(validate);
30240
+ }
30241
+
30242
+ function createStrictShapeTypeChecker(shapeTypes) {
30243
+ function validate(props, propName, componentName, location, propFullName) {
30244
+ var propValue = props[propName];
30245
+ var propType = getPropType(propValue);
30246
+ if (propType !== 'object') {
30247
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
30248
+ }
30249
+ // We need to check all keys in case some are required but missing from props.
30250
+ var allKeys = objectAssign$1({}, props[propName], shapeTypes);
30251
+ for (var key in allKeys) {
30252
+ var checker = shapeTypes[key];
30253
+ if (has$2(shapeTypes, key) && typeof checker !== 'function') {
30254
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
30255
+ }
30256
+ if (!checker) {
30257
+ return new PropTypeError(
30258
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
30259
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
30260
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
30261
+ );
30262
+ }
30263
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1$1);
30264
+ if (error) {
30265
+ return error;
30266
+ }
30267
+ }
30268
+ return null;
30269
+ }
30270
+
30271
+ return createChainableTypeChecker(validate);
30272
+ }
30273
+
30274
+ function isNode(propValue) {
30275
+ switch (typeof propValue) {
30276
+ case 'number':
30277
+ case 'string':
30278
+ case 'undefined':
30279
+ return true;
30280
+ case 'boolean':
30281
+ return !propValue;
30282
+ case 'object':
30283
+ if (Array.isArray(propValue)) {
30284
+ return propValue.every(isNode);
30285
+ }
30286
+ if (propValue === null || isValidElement(propValue)) {
30287
+ return true;
30288
+ }
30289
+
30290
+ var iteratorFn = getIteratorFn(propValue);
30291
+ if (iteratorFn) {
30292
+ var iterator = iteratorFn.call(propValue);
30293
+ var step;
30294
+ if (iteratorFn !== propValue.entries) {
30295
+ while (!(step = iterator.next()).done) {
30296
+ if (!isNode(step.value)) {
30297
+ return false;
30298
+ }
30299
+ }
30300
+ } else {
30301
+ // Iterator will provide entry [k,v] tuples rather than values.
30302
+ while (!(step = iterator.next()).done) {
30303
+ var entry = step.value;
30304
+ if (entry) {
30305
+ if (!isNode(entry[1])) {
30306
+ return false;
30307
+ }
30308
+ }
30309
+ }
30310
+ }
30311
+ } else {
30312
+ return false;
30313
+ }
30314
+
30315
+ return true;
30316
+ default:
30317
+ return false;
30318
+ }
30319
+ }
30320
+
30321
+ function isSymbol(propType, propValue) {
30322
+ // Native Symbol.
30323
+ if (propType === 'symbol') {
30324
+ return true;
30325
+ }
30326
+
30327
+ // falsy value can't be a Symbol
30328
+ if (!propValue) {
30329
+ return false;
30330
+ }
30331
+
30332
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
30333
+ if (propValue['@@toStringTag'] === 'Symbol') {
30334
+ return true;
30335
+ }
30336
+
30337
+ // Fallback for non-spec compliant Symbols which are polyfilled.
30338
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
30339
+ return true;
30340
+ }
30341
+
30342
+ return false;
30343
+ }
30344
+
30345
+ // Equivalent of `typeof` but with special handling for array and regexp.
30346
+ function getPropType(propValue) {
30347
+ var propType = typeof propValue;
30348
+ if (Array.isArray(propValue)) {
30349
+ return 'array';
30350
+ }
30351
+ if (propValue instanceof RegExp) {
30352
+ // Old webkits (at least until Android 4.0) return 'function' rather than
30353
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
30354
+ // passes PropTypes.object.
30355
+ return 'object';
30356
+ }
30357
+ if (isSymbol(propType, propValue)) {
30358
+ return 'symbol';
30359
+ }
30360
+ return propType;
30361
+ }
30362
+
30363
+ // This handles more types than `getPropType`. Only used for error messages.
30364
+ // See `createPrimitiveTypeChecker`.
30365
+ function getPreciseType(propValue) {
30366
+ if (typeof propValue === 'undefined' || propValue === null) {
30367
+ return '' + propValue;
30368
+ }
30369
+ var propType = getPropType(propValue);
30370
+ if (propType === 'object') {
30371
+ if (propValue instanceof Date) {
30372
+ return 'date';
30373
+ } else if (propValue instanceof RegExp) {
30374
+ return 'regexp';
30375
+ }
30376
+ }
30377
+ return propType;
30378
+ }
30379
+
30380
+ // Returns a string that is postfixed to a warning about an invalid type.
30381
+ // For example, "undefined" or "of type array"
30382
+ function getPostfixForTypeWarning(value) {
30383
+ var type = getPreciseType(value);
30384
+ switch (type) {
30385
+ case 'array':
30386
+ case 'object':
30387
+ return 'an ' + type;
30388
+ case 'boolean':
30389
+ case 'date':
30390
+ case 'regexp':
30391
+ return 'a ' + type;
30392
+ default:
30393
+ return type;
30394
+ }
30395
+ }
30396
+
30397
+ // Returns class name of the object, if any.
30398
+ function getClassName(propValue) {
30399
+ if (!propValue.constructor || !propValue.constructor.name) {
30400
+ return ANONYMOUS;
30401
+ }
30402
+ return propValue.constructor.name;
30403
+ }
30404
+
30405
+ ReactPropTypes.checkPropTypes = checkPropTypes_1$1;
30406
+ ReactPropTypes.resetWarningCache = checkPropTypes_1$1.resetWarningCache;
30407
+ ReactPropTypes.PropTypes = ReactPropTypes;
30408
+
30409
+ return ReactPropTypes;
30410
+ };
30411
+
30412
+ function emptyFunction$1() {}
30413
+ function emptyFunctionWithReset$1() {}
30414
+ emptyFunctionWithReset$1.resetWarningCache = emptyFunction$1;
30415
+
30416
+ var factoryWithThrowingShims$1 = function() {
30417
+ function shim(props, propName, componentName, location, propFullName, secret) {
30418
+ if (secret === ReactPropTypesSecret_1$1) {
30419
+ // It is still safe when called from React.
30420
+ return;
30421
+ }
30422
+ var err = new Error(
30423
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
30424
+ 'Use PropTypes.checkPropTypes() to call them. ' +
30425
+ 'Read more at http://fb.me/use-check-prop-types'
30426
+ );
30427
+ err.name = 'Invariant Violation';
30428
+ throw err;
30429
+ } shim.isRequired = shim;
30430
+ function getShim() {
30431
+ return shim;
30432
+ } // Important!
30433
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
30434
+ var ReactPropTypes = {
30435
+ array: shim,
30436
+ bigint: shim,
30437
+ bool: shim,
30438
+ func: shim,
30439
+ number: shim,
30440
+ object: shim,
30441
+ string: shim,
30442
+ symbol: shim,
30443
+
30444
+ any: shim,
30445
+ arrayOf: getShim,
30446
+ element: shim,
30447
+ elementType: shim,
30448
+ instanceOf: getShim,
30449
+ node: shim,
30450
+ objectOf: getShim,
30451
+ oneOf: getShim,
30452
+ oneOfType: getShim,
30453
+ shape: getShim,
30454
+ exact: getShim,
30455
+
30456
+ checkPropTypes: emptyFunctionWithReset$1,
30457
+ resetWarningCache: emptyFunction$1
30458
+ };
30459
+
30460
+ ReactPropTypes.PropTypes = ReactPropTypes;
30461
+
30462
+ return ReactPropTypes;
30463
+ };
30464
+
30465
+ var propTypes$1 = createCommonjsModule(function (module) {
30466
+ /**
30467
+ * Copyright (c) 2013-present, Facebook, Inc.
30468
+ *
30469
+ * This source code is licensed under the MIT license found in the
30470
+ * LICENSE file in the root directory of this source tree.
30471
+ */
30472
+
30473
+ if (process.env.NODE_ENV !== 'production') {
30474
+ var ReactIs = reactIs$1;
30475
+
30476
+ // By explicitly using `prop-types` you are opting into new development behavior.
30477
+ // http://fb.me/prop-types-in-prod
30478
+ var throwOnDirectAccess = true;
30479
+ module.exports = factoryWithTypeCheckers$1(ReactIs.isElement, throwOnDirectAccess);
30480
+ } else {
30481
+ // By explicitly using `prop-types` you are opting into new production behavior.
30482
+ // http://fb.me/prop-types-in-prod
30483
+ module.exports = factoryWithThrowingShims$1();
30484
+ }
30485
+ });
30486
+
29360
30487
  const SearchConnection = _ref => {
29361
30488
  var _Digit$Hooks$ws$usews;
29362
30489
  let {
@@ -29758,7 +30885,7 @@ const SearchConnection = _ref => {
29758
30885
  }));
29759
30886
  };
29760
30887
  SearchConnection.propTypes = {
29761
- loginParams: propTypes.any
30888
+ loginParams: propTypes$1.any
29762
30889
  };
29763
30890
  SearchConnection.defaultProps = {
29764
30891
  loginParams: null
@@ -30734,9 +31861,9 @@ const ChallanSearchResults = _ref => {
30734
31861
  }, t("WS_CLICK_HERE_TO_APPLY"))))));
30735
31862
  };
30736
31863
  ChallanSearchResults.propTypes = {
30737
- template: propTypes.any,
30738
- header: propTypes.string,
30739
- actionButtonLabel: propTypes.string
31864
+ template: propTypes$1.any,
31865
+ header: propTypes$1.string,
31866
+ actionButtonLabel: propTypes$1.string
30740
31867
  };
30741
31868
  ChallanSearchResults.defaultProps = {
30742
31869
  template: [],
@@ -31258,7 +32385,7 @@ const WSWFApplicationTimeline = props => {
31258
32385
  };
31259
32386
  if (isLoading) return /*#__PURE__*/React.createElement(Loader, null);
31260
32387
  const visibleTimeline = data !== null && data !== void 0 && data.timeline ? data.timeline.slice(0, showAllTimeline ? data.timeline.length : 2) : [];
31261
- return /*#__PURE__*/React.createElement(Fragment$1, null, !isLoading && /*#__PURE__*/React.createElement("div", {
32388
+ return /*#__PURE__*/React.createElement(Fragment$2, null, !isLoading && /*#__PURE__*/React.createElement("div", {
31262
32389
  style: {
31263
32390
  fontFamily: "'Inter', system-ui, sans-serif"
31264
32391
  }
@@ -31748,7 +32875,7 @@ const WSFeeEstimation = _ref => {
31748
32875
  }
31749
32876
  setFields(values);
31750
32877
  };
31751
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
32878
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
31752
32879
  style: {
31753
32880
  lineHeight: "19px",
31754
32881
  maxWidth: "100%",
@@ -32264,7 +33391,7 @@ const ViewBreakup = _ref => {
32264
33391
  value: infrastructureChargeDetail.netIFC,
32265
33392
  currency: true
32266
33393
  }] : [];
32267
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
33394
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
32268
33395
  style: {
32269
33396
  lineHeight: "19px",
32270
33397
  maxWidth: "950px",
@@ -32347,19 +33474,19 @@ const ViewBreakup = _ref => {
32347
33474
  textStyle: {
32348
33475
  textAlign: "right"
32349
33476
  }
32350
- })), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
33477
+ })), propertyRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
32351
33478
  style: {
32352
33479
  margin: "10px 0px"
32353
33480
  }
32354
33481
  }, t("WS_PROPERTY_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
32355
33482
  rows: propertyRows
32356
- })), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
33483
+ })), waterDemandRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
32357
33484
  style: {
32358
33485
  margin: "10px 0px"
32359
33486
  }
32360
33487
  }, t("WS_WATER_DEMAND_DETAILS")), /*#__PURE__*/React.createElement(DetailRows, {
32361
33488
  rows: waterDemandRows
32362
- })), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
33489
+ })), infrastructureChargeRows.length > 0 && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
32363
33490
  style: {
32364
33491
  margin: "10px 0px"
32365
33492
  }
@@ -37675,9 +38802,9 @@ const WNSMyBills = _ref => {
37675
38802
  }, t("CS_BILLS_TEXT_NO_BILLS_FOUND")));
37676
38803
  };
37677
38804
  WNSMyBills.propTypes = {
37678
- template: propTypes.any,
37679
- header: propTypes.string,
37680
- actionButtonLabel: propTypes.string
38805
+ template: propTypes$1.any,
38806
+ header: propTypes$1.string,
38807
+ actionButtonLabel: propTypes$1.string
37681
38808
  };
37682
38809
  WNSMyBills.defaultProps = {
37683
38810
  template: [],
@@ -38761,7 +39888,7 @@ const ApplicationBillAmendment = () => {
38761
39888
  style: {
38762
39889
  paddingLeft: "150px"
38763
39890
  }
38764
- }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
39891
+ }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
38765
39892
  name: `${servicev1}_REDUCED_AMOUNT.VALUE`,
38766
39893
  key: `${servicev1}_REDUCED_AMOUNT.VALUE`,
38767
39894
  control: control,
@@ -38796,7 +39923,7 @@ const ApplicationBillAmendment = () => {
38796
39923
  checked: props === null || props === void 0 ? void 0 : props.value
38797
39924
  }));
38798
39925
  }
38799
- }), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Controller, {
39926
+ }), errors !== null && errors !== void 0 && (_errors$WS_REDUCED_AM = errors.WS_REDUCED_AMOUNT) !== null && _errors$WS_REDUCED_AM !== void 0 && _errors$WS_REDUCED_AM.VALUE && ischeckedReduce == true ? /*#__PURE__*/React.createElement(CardLabelError, null, t("WS_REQUIRED_FIELD")) : null)), /*#__PURE__*/React.createElement("th", null, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Controller, {
38800
39927
  name: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
38801
39928
  key: `${servicev1}_ADDITIONAL_AMOUNT.VALUE`,
38802
39929
  control: control,
@@ -38847,7 +39974,7 @@ const ApplicationBillAmendment = () => {
38847
39974
  paddingRight: "60px",
38848
39975
  paddingLeft: "150px"
38849
39976
  }
38850
- }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
39977
+ }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
38851
39978
  disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
38852
39979
  type: "number",
38853
39980
  name: `${servicev1}_REDUCED_AMOUNT.${node.taxHeadCode}`,
@@ -38877,7 +40004,7 @@ const ApplicationBillAmendment = () => {
38877
40004
  style: {
38878
40005
  paddingRight: "60px"
38879
40006
  }
38880
- }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
40007
+ }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
38881
40008
  disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
38882
40009
  type: "number",
38883
40010
  name: `${servicev1}_ADDITIONAL_AMOUNT.${node.taxHeadCode}`,
@@ -38925,7 +40052,7 @@ const ApplicationBillAmendment = () => {
38925
40052
  paddingRight: "60px",
38926
40053
  paddingLeft: "150px"
38927
40054
  }
38928
- }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
40055
+ }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
38929
40056
  disabled: servicev1 === "WS" ? !(WS_REDUCED_AMOUNT !== null && WS_REDUCED_AMOUNT !== void 0 && WS_REDUCED_AMOUNT.VALUE) : !(SW_REDUCED_AMOUNT !== null && SW_REDUCED_AMOUNT !== void 0 && SW_REDUCED_AMOUNT.VALUE),
38930
40057
  name: `${servicev1}_REBATE`,
38931
40058
  inputRef: register()
@@ -38933,11 +40060,11 @@ const ApplicationBillAmendment = () => {
38933
40060
  style: {
38934
40061
  paddingRight: "60px"
38935
40062
  }
38936
- }, /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(TextInput, {
40063
+ }, /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(TextInput, {
38937
40064
  disabled: servicev1 === "WS" ? !(WS_ADDITIONAL_AMOUNT !== null && WS_ADDITIONAL_AMOUNT !== void 0 && WS_ADDITIONAL_AMOUNT.VALUE) : !(SW_ADDITIONAL_AMOUNT !== null && SW_ADDITIONAL_AMOUNT !== void 0 && SW_ADDITIONAL_AMOUNT.VALUE),
38938
40065
  name: `${servicev1}_PENALTY`,
38939
40066
  inputRef: register()
38940
- }))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
40067
+ }))))))) : /*#__PURE__*/React.createElement(Loader, null), BillAmendmentMDMSLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
38941
40068
  style: {
38942
40069
  marginBottom: "16px"
38943
40070
  }
@@ -43436,7 +44563,7 @@ const ActionModal = _ref => {
43436
44563
  if (file.size >= 5242880) {
43437
44564
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
43438
44565
  } else {
43439
- const _temp = _catch(function () {
44566
+ const _temp = _catch$1(function () {
43440
44567
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
43441
44568
  var _response$data, _response$data$files;
43442
44569
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -43659,7 +44786,7 @@ const ActionModal$1 = _ref => {
43659
44786
  if (file.size >= 5242880) {
43660
44787
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
43661
44788
  } else {
43662
- const _temp = _catch(function () {
44789
+ const _temp = _catch$1(function () {
43663
44790
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
43664
44791
  var _response$data, _response$data$files;
43665
44792
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -43824,7 +44951,7 @@ const ActionModal$2 = _ref => {
43824
44951
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
43825
44952
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
43826
44953
  } else {
43827
- const _temp = _catch(function () {
44954
+ const _temp = _catch$1(function () {
43828
44955
  return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
43829
44956
  var _response$data, _response$data$files;
43830
44957
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -44103,7 +45230,7 @@ const ActionModal$3 = _ref => {
44103
45230
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
44104
45231
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
44105
45232
  } else {
44106
- const _temp = _catch(function () {
45233
+ const _temp = _catch$1(function () {
44107
45234
  return Promise.resolve(Digit.UploadServices.Filestorage("OBPS", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
44108
45235
  var _response$data, _response$data$files;
44109
45236
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -44355,7 +45482,7 @@ const ActionModal$4 = _ref => {
44355
45482
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
44356
45483
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
44357
45484
  } else {
44358
- const _temp = _catch(function () {
45485
+ const _temp = _catch$1(function () {
44359
45486
  return Promise.resolve(Digit.UploadServices.Filestorage("NOC", file, Digit.ULBService.getStateId() || (tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0]))).then(function (response) {
44360
45487
  var _response$data, _response$data$files;
44361
45488
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -44583,7 +45710,7 @@ const ActionModal$5 = _ref => {
44583
45710
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
44584
45711
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
44585
45712
  } else {
44586
- const _temp = _catch(function () {
45713
+ const _temp = _catch$1(function () {
44587
45714
  return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getCurrentTenantId())).then(function (response) {
44588
45715
  var _response$data, _response$data$files;
44589
45716
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -44919,7 +46046,7 @@ const ActionModal$6 = _ref => {
44919
46046
  if (file.size >= 5242880) {
44920
46047
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
44921
46048
  } else {
44922
- const _temp = _catch(function () {
46049
+ const _temp = _catch$1(function () {
44923
46050
  return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
44924
46051
  var _response$data, _response$data$files;
44925
46052
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45204,7 +46331,7 @@ const ActionModal$8 = _ref => {
45204
46331
  if (file.size >= 5242880) {
45205
46332
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
45206
46333
  } else {
45207
- const _temp = _catch(function () {
46334
+ const _temp = _catch$1(function () {
45208
46335
  return Promise.resolve(Digit.UploadServices.Filestorage("CHB", file, tenantId)).then(function (response) {
45209
46336
  var _response$data, _response$data$files;
45210
46337
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45366,7 +46493,7 @@ const ActionModal$9 = _ref => {
45366
46493
  if (file.size >= 5242880) {
45367
46494
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
45368
46495
  } else {
45369
- const _temp = _catch(function () {
46496
+ const _temp = _catch$1(function () {
45370
46497
  return Promise.resolve(Digit.UploadServices.Filestorage("PTR", file, Digit.ULBService.getStateId())).then(function (response) {
45371
46498
  var _response$data, _response$data$files;
45372
46499
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45532,8 +46659,8 @@ const ActionModal$a = _ref => {
45532
46659
  if (file.size >= 5242880) {
45533
46660
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
45534
46661
  } else {
45535
- const _temp = _finallyRethrows(function () {
45536
- return _catch(function () {
46662
+ const _temp = _finallyRethrows$1(function () {
46663
+ return _catch$1(function () {
45537
46664
  return Promise.resolve(Digit.UploadServices.Filestorage("StreetVending", file, tenantId)).then(function (response) {
45538
46665
  var _response$data, _response$data$files;
45539
46666
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -45822,7 +46949,7 @@ const ActionModal$b = _ref => {
45822
46949
  if (file.size >= 5242880) {
45823
46950
  setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
45824
46951
  } else {
45825
- const _temp = _catch(function () {
46952
+ const _temp = _catch$1(function () {
45826
46953
  return Promise.resolve(Digit.UploadServices.Filestorage("WT", file, tenantId)).then(function (response) {
45827
46954
  var _response$data, _response$data$files;
45828
46955
  if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
@@ -46506,7 +47633,7 @@ function SelectDocument$4(_ref) {
46506
47633
  if (file !== null && file !== void 0 && file.type && !allowedFileTypesRegex.test(file === null || file === void 0 ? void 0 : file.type)) {
46507
47634
  setError(t(`NOT_SUPPORTED_FILE_TYPE`));
46508
47635
  } else {
46509
- const _temp = _catch(function () {
47636
+ const _temp = _catch$1(function () {
46510
47637
  setUploadedFile(null);
46511
47638
  return Promise.resolve(Digit.UploadServices.Filestorage("PT", file, Digit.ULBService.getStateId())).then(function (response) {
46512
47639
  var _response$data, _response$data$files;
@@ -46887,7 +48014,7 @@ function PropertyDocuments(_ref) {
46887
48014
  };
46888
48015
  const forceDownload = function (url, fileName) {
46889
48016
  try {
46890
- return Promise.resolve(_catch(function () {
48017
+ return Promise.resolve(_catch$1(function () {
46891
48018
  return Promise.resolve(fetch(url)).then(function (response) {
46892
48019
  if (!response.ok) {
46893
48020
  throw new Error(`HTTP error! status: ${response.status}`);
@@ -47423,7 +48550,7 @@ const ScruntinyDetails = _ref => {
47423
48550
  }
47424
48551
  }, t(data === null || data === void 0 ? void 0 : data.value));else if (data !== null && data !== void 0 && data.value && data !== null && data !== void 0 && data.isTransLate) return t(data === null || data === void 0 ? void 0 : data.value);else if (data !== null && data !== void 0 && data.value) return data === null || data === void 0 ? void 0 : data.value;else t("NA");
47425
48552
  };
47426
- return /*#__PURE__*/React.createElement(Fragment$1, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
48553
+ return /*#__PURE__*/React.createElement(Fragment$2, null, !(scrutinyDetails !== null && scrutinyDetails !== void 0 && scrutinyDetails.isChecklist) && /*#__PURE__*/React.createElement("div", {
47427
48554
  style: {
47428
48555
  background: "#FAFAFA",
47429
48556
  border: "1px solid #D6D5D4",
@@ -47481,7 +48608,7 @@ const ScruntinyDetails = _ref => {
47481
48608
  }
47482
48609
  }, value === null || value === void 0 ? void 0 : value.title);
47483
48610
  })), /*#__PURE__*/React.createElement("div", null, scrutinyDetails === null || scrutinyDetails === void 0 ? void 0 : (_scrutinyDetails$scru = scrutinyDetails.scruntinyDetails) === null || _scrutinyDetails$scru === void 0 ? void 0 : _scrutinyDetails$scru.map((report, index) => {
47484
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Row, {
48611
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Row, {
47485
48612
  className: "border-none",
47486
48613
  label: `${t(report === null || report === void 0 ? void 0 : report.title)}`,
47487
48614
  labelStyle: {
@@ -47590,7 +48717,7 @@ const SubOccupancyTable = _ref => {
47590
48717
  }
47591
48718
  return returnValue ? returnValue : "NA";
47592
48719
  }
47593
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
48720
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
47594
48721
  style: {
47595
48722
  background: "#FAFAFA",
47596
48723
  border: "1px solid #D6D5D4",
@@ -48385,7 +49512,7 @@ const DueVerification = _ref => {
48385
49512
  try {
48386
49513
  return Promise.resolve(function () {
48387
49514
  if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
48388
- return _catch(function () {
49515
+ return _catch$1(function () {
48389
49516
  return Promise.resolve(checkDueVerification({
48390
49517
  DueVerification: {
48391
49518
  applicationNo: applicationData.applicationNo
@@ -48429,7 +49556,7 @@ const DueVerification = _ref => {
48429
49556
  });
48430
49557
  return;
48431
49558
  }
48432
- return _catch(function () {
49559
+ return _catch$1(function () {
48433
49560
  return Promise.resolve(checkDueVerification({
48434
49561
  DueVerification: {
48435
49562
  kno: kno
@@ -49222,7 +50349,7 @@ function ApplicationDetailsContent(_ref) {
49222
50349
  showApprovalChecklist: showApprovalChecklist,
49223
50350
  values: approvalChecklist,
49224
50351
  onChange: onApprovalChecklistChange
49225
- }), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
50352
+ }), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
49226
50353
  id: "timeline"
49227
50354
  }, /*#__PURE__*/React.createElement(CardSectionHeader, {
49228
50355
  style: {
@@ -49791,7 +50918,7 @@ const ApplicationDetails = props => {
49791
50918
  const nocPrmomises = (_nocData = nocData) === null || _nocData === void 0 ? void 0 : _nocData.map(noc => {
49792
50919
  return nocMutation === null || nocMutation === void 0 ? void 0 : nocMutation.mutateAsync(noc);
49793
50920
  });
49794
- const _temp = _catch(function () {
50921
+ const _temp = _catch$1(function () {
49795
50922
  setIsEnableLoader(true);
49796
50923
  return Promise.resolve(Promise.all(nocPrmomises)).then(function (values) {
49797
50924
  values && values.map(ob => {
@@ -50659,7 +51786,7 @@ const GetConnectionDetails = () => {
50659
51786
  onClick: props.onClick
50660
51787
  }, /*#__PURE__*/React.createElement(Close, null));
50661
51788
  };
50662
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
51789
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
50663
51790
  style: {
50664
51791
  position: "relative",
50665
51792
  width: "100%",
@@ -51128,7 +52255,7 @@ const ApplicationDetailsBillAmendment = () => {
51128
52255
  label: t("WS_ACK_PDF"),
51129
52256
  onClick: () => getAckPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.amendment, tenantId, t, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationDetails, applicationDetails)
51130
52257
  }];
51131
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
52258
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
51132
52259
  className: "employee-main-application-details"
51133
52260
  }, /*#__PURE__*/React.createElement("div", {
51134
52261
  className: "employee-application-details",
@@ -51240,7 +52367,7 @@ const Search = _ref => {
51240
52367
  var _result$data3;
51241
52368
  return (result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : _result$data3.length) > 0 ? true : false;
51242
52369
  };
51243
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Search, {
52370
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Search, {
51244
52371
  t: t,
51245
52372
  tenantId: tenantId,
51246
52373
  onSubmit: onSubmit,
@@ -51339,7 +52466,7 @@ const SearchWater = _ref => {
51339
52466
  }
51340
52467
  return item;
51341
52468
  });
51342
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
52469
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
51343
52470
  t: t,
51344
52471
  tenantId: tenantId,
51345
52472
  onSubmit: onSubmit,
@@ -53109,56 +54236,110 @@ const Step1_SearchConnection = _ref => {
53109
54236
  businessService: "WS"
53110
54237
  }).catch(() => null)).then(function (wsResponse) {
53111
54238
  var _wsResponse$WaterConn;
53112
- function _temp3() {
53113
- var _connection, _connection$connectio, _connection$connectio2, _connection2;
53114
- if (!connection) {
53115
- setIsLoading(false);
53116
- setShowToast({
53117
- key: "error",
53118
- message: "Active connection not found for the given K Number"
54239
+ function _temp5() {
54240
+ let _exit = false;
54241
+ function _temp3(_result5) {
54242
+ var _connection, _connection$connectio, _connection$connectio2, _connection2;
54243
+ if (_exit) return _result5;
54244
+ const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
54245
+ if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
54246
+ setIsLoading(false);
54247
+ setShowToast({
54248
+ key: "error",
54249
+ message: "No valid registered mobile number found for this connection"
54250
+ });
54251
+ return;
54252
+ }
54253
+ if (isEditFlow) {
54254
+ setIsLoading(false);
54255
+ onNext({
54256
+ kNumber,
54257
+ mobileNumber: fetchedMobileNumber,
54258
+ serviceType: detectedServiceType,
54259
+ activeConnection: connection
54260
+ });
54261
+ return;
54262
+ }
54263
+ const userType = Digit.UserService.getType().toUpperCase();
54264
+ const payload = {
54265
+ otp: {
54266
+ mobileNumber: fetchedMobileNumber,
54267
+ tenantId: "dl",
54268
+ type: "register",
54269
+ userType: userType
54270
+ }
54271
+ };
54272
+ return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
54273
+ setIsLoading(false);
54274
+ onNext({
54275
+ kNumber,
54276
+ mobileNumber: fetchedMobileNumber,
54277
+ serviceType: detectedServiceType,
54278
+ activeConnection: connection
54279
+ });
53119
54280
  });
53120
- return;
53121
54281
  }
53122
- const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
53123
- if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
54282
+ if (!connection) {
53124
54283
  setIsLoading(false);
53125
54284
  setShowToast({
53126
54285
  key: "error",
53127
- message: "No valid registered mobile number found for this connection"
53128
- });
53129
- return;
53130
- }
53131
- if (isEditFlow) {
53132
- setIsLoading(false);
53133
- onNext({
53134
- kNumber,
53135
- mobileNumber: fetchedMobileNumber,
53136
- serviceType: detectedServiceType,
53137
- activeConnection: connection
54286
+ message: "Active connection not found for the given K Number"
53138
54287
  });
53139
54288
  return;
53140
54289
  }
53141
- const userType = Digit.UserService.getType().toUpperCase();
53142
- const payload = {
53143
- otp: {
53144
- mobileNumber: fetchedMobileNumber,
53145
- tenantId: "dl",
53146
- type: "register",
53147
- userType: userType
54290
+ const _temp2 = function () {
54291
+ if (detectedServiceType === "WATER") {
54292
+ const allConnections = (wsResponse === null || wsResponse === void 0 ? void 0 : wsResponse.WaterConnection) || [];
54293
+ const terminalStatuses = ["CONNECTION_ACTIVATED", "APPROVED", "REJECTED", "DISAPPROVED", "CANCELLED", "TERMINATED", "DISCONNECTION_EXECUTED", "CONNECTION_DISCONNECTED"];
54294
+ const pendingStatusApp = allConnections.find(c => c.applicationNo && c.applicationStatus && !terminalStatuses.includes(c.applicationStatus));
54295
+ if (pendingStatusApp) {
54296
+ var _connection3;
54297
+ setIsLoading(false);
54298
+ setShowToast({
54299
+ key: "error",
54300
+ message: `Application (${pendingStatusApp.applicationNo}) already exists in Workflow for Connection No. ${((_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo) || kNumber}. Cannot modify connection.`
54301
+ });
54302
+ _exit = true;
54303
+ return;
54304
+ }
54305
+ const appsToCheck = allConnections.filter(c => c.applicationNo && !terminalStatuses.includes(c.applicationStatus)).map(c => c.applicationNo);
54306
+ return function (_Digit, _Digit$WorkflowServic) {
54307
+ if (appsToCheck.length > 0 && (_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$WorkflowServic = _Digit.WorkflowService) !== null && _Digit$WorkflowServic !== void 0 && _Digit$WorkflowServic.getByBusinessId) {
54308
+ return _catch(function () {
54309
+ var _connection4;
54310
+ return Promise.resolve(Digit.WorkflowService.getByBusinessId(((_connection4 = connection) === null || _connection4 === void 0 ? void 0 : _connection4.tenantId) || tenantId, appsToCheck.join(","), {}, false)).then(function (wfRes) {
54311
+ const latestProcessMap = {};
54312
+ ((wfRes === null || wfRes === void 0 ? void 0 : wfRes.ProcessInstances) || []).forEach(pi => {
54313
+ if (pi !== null && pi !== void 0 && pi.businessId) {
54314
+ var _pi$auditDetails, _existing$auditDetail;
54315
+ const existing = latestProcessMap[pi.businessId];
54316
+ if (!existing || (((_pi$auditDetails = pi.auditDetails) === null || _pi$auditDetails === void 0 ? void 0 : _pi$auditDetails.lastModifiedTime) || 0) > (((_existing$auditDetail = existing.auditDetails) === null || _existing$auditDetail === void 0 ? void 0 : _existing$auditDetail.lastModifiedTime) || 0)) {
54317
+ latestProcessMap[pi.businessId] = pi;
54318
+ }
54319
+ }
54320
+ });
54321
+ const activeProcess = Object.values(latestProcessMap).find(pi => (pi === null || pi === void 0 ? void 0 : pi.state) && !pi.state.isTerminateState && !terminalStatuses.includes(pi.state.state) && !terminalStatuses.includes(pi.state.applicationStatus));
54322
+ if (activeProcess) {
54323
+ var _connection5;
54324
+ setIsLoading(false);
54325
+ setShowToast({
54326
+ key: "error",
54327
+ message: `Application (${activeProcess.businessId}) already exists in Workflow for Connection No. ${((_connection5 = connection) === null || _connection5 === void 0 ? void 0 : _connection5.connectionNo) || kNumber}. Cannot modify connection.`
54328
+ });
54329
+ _exit = true;
54330
+ }
54331
+ });
54332
+ }, function (wfErr) {
54333
+ console.error("Workflow check error:", wfErr);
54334
+ });
54335
+ }
54336
+ }();
53148
54337
  }
53149
- };
53150
- return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
53151
- setIsLoading(false);
53152
- onNext({
53153
- kNumber,
53154
- mobileNumber: fetchedMobileNumber,
53155
- serviceType: detectedServiceType,
53156
- activeConnection: connection
53157
- });
53158
- });
54338
+ }();
54339
+ return _temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2);
53159
54340
  }
53160
54341
  let connection = wsResponse === null || wsResponse === void 0 ? void 0 : (_wsResponse$WaterConn = wsResponse.WaterConnection) === null || _wsResponse$WaterConn === void 0 ? void 0 : _wsResponse$WaterConn.find(c => c.applicationStatus === 'CONNECTION_ACTIVATED');
53161
- const _temp2 = function () {
54342
+ const _temp4 = function () {
53162
54343
  if (!connection) {
53163
54344
  return Promise.resolve(Digit.WSService.search({
53164
54345
  tenantId,
@@ -53171,7 +54352,7 @@ const Step1_SearchConnection = _ref => {
53171
54352
  });
53172
54353
  }
53173
54354
  }();
53174
- return _temp2 && _temp2.then ? _temp2.then(_temp3) : _temp3(_temp2);
54355
+ return _temp4 && _temp4.then ? _temp4.then(_temp5) : _temp5(_temp4);
53175
54356
  });
53176
54357
  }, function (err) {
53177
54358
  var _err$response2, _err$response2$data, _err$response2$data$E, _err$response2$data$E2;
@@ -55887,7 +57068,7 @@ const MutationApplication = () => {
55887
57068
  search: location.search,
55888
57069
  state: location.state
55889
57070
  }
55890
- }) : /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
57071
+ }) : /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Step1_ExistingConnection, {
55891
57072
  t: t,
55892
57073
  applicationDetails: authActiveConnection ? {
55893
57074
  applicationData: authActiveConnection
@@ -56541,7 +57722,7 @@ const GetDisconnectionDetails = () => {
56541
57722
  dowloadOptions.sort(function (a, b) {
56542
57723
  return a.order - b.order;
56543
57724
  });
56544
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
57725
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
56545
57726
  className: "employee-main-application-details",
56546
57727
  style: {
56547
57728
  display: "flex",
@@ -56796,7 +57977,7 @@ const ModifyApplicationDetails = () => {
56796
57977
  dowloadOptions.sort(function (a, b) {
56797
57978
  return a.order - b.order;
56798
57979
  });
56799
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement("div", {
57980
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
56800
57981
  className: "employee-main-application-details"
56801
57982
  }, /*#__PURE__*/React.createElement("div", {
56802
57983
  className: "employee-application-details",
@@ -57313,7 +58494,7 @@ const SearchFields$2 = _ref => {
57313
58494
  },
57314
58495
  title: t("ERR_DEFAULT_INPUT_FIELD_MSG")
57315
58496
  };
57316
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchField, {
58497
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchField, {
57317
58498
  style: {
57318
58499
  width: "100%"
57319
58500
  }
@@ -57536,7 +58717,7 @@ const SearchWaterConnectionIntegrated = _ref => {
57536
58717
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
57537
58718
  }
57538
58719
  }], []);
57539
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(Header, {
58720
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(Header, {
57540
58721
  styles: {
57541
58722
  fontSize: "32px"
57542
58723
  }
@@ -57673,7 +58854,7 @@ const SearchIntegrated = _ref => {
57673
58854
  var _result12$data5, _result$data5;
57674
58855
  return (result12 === null || result12 === void 0 ? void 0 : (_result12$data5 = result12.data) === null || _result12$data5 === void 0 ? void 0 : _result12$data5.length) > 0 || (result === null || result === void 0 ? void 0 : (_result$data5 = result.data) === null || _result$data5 === void 0 ? void 0 : _result$data5.length) > 0 ? true : false;
57675
58856
  };
57676
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SWater, {
58857
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SWater, {
57677
58858
  t: t,
57678
58859
  tenantId: tenantId,
57679
58860
  onSubmit: onSubmit,
@@ -57698,7 +58879,7 @@ const SearchWaterConnectionViewIntegrated = _ref => {
57698
58879
  count,
57699
58880
  resultOk
57700
58881
  } = _ref;
57701
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
58882
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(SearchWaterConnectionIntegrated, {
57702
58883
  onSubmit: onSubmit,
57703
58884
  data: data,
57704
58885
  count: count,
@@ -57764,7 +58945,7 @@ const BulkBillGeneration = _ref => {
57764
58945
  var _result$meterReadings;
57765
58946
  return (result === null || result === void 0 ? void 0 : (_result$meterReadings = result.meterReadings) === null || _result$meterReadings === void 0 ? void 0 : _result$meterReadings.length) > 0 ? true : false;
57766
58947
  };
57767
- return /*#__PURE__*/React.createElement(Fragment$1, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
58948
+ return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement(WSBulkBillSearch, {
57768
58949
  t: t,
57769
58950
  tenantId: tenantId,
57770
58951
  onSubmit: onSubmit,