primary_care_admin_binder 0.1.141 → 0.1.143

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.
Files changed (2) hide show
  1. package/dist/index.cjs.js +2766 -178
  2. package/package.json +1 -1
package/dist/index.cjs.js CHANGED
@@ -2396,6 +2396,7 @@ function getBinderUrls() {
2396
2396
  var appointmentApi = getBinderEnv("REACT_APP_APPOINTMENT_API");
2397
2397
  return {
2398
2398
  // Database & Metadata
2399
+ dbtype: getBinderEnv("REACT_APP_BASE_URL_HOST").split(".")[0],
2399
2400
  dbName: getBinderEnv("REACT_APP_DATABASE_NAME"),
2400
2401
  dbNameNg: getBinderEnv("REACT_APP_NG_DATABASE_NAME"),
2401
2402
  ruleDBName: getBinderEnv("REACT_APP_RULE_BUILDER_DB") || "RuleBuilder",
@@ -2514,6 +2515,7 @@ var metaDataId$1 = "";
2514
2515
  var tenantId = "";
2515
2516
  var dbNameNg = "";
2516
2517
  var ruleDBName = "";
2518
+ var dbType = "";
2517
2519
 
2518
2520
  /**
2519
2521
  * Refresh URLs after runtime env is set
@@ -2550,6 +2552,7 @@ function refreshBinderUrls() {
2550
2552
  tenantId = urls.tenantId;
2551
2553
  dbNameNg = urls.dbNameNg;
2552
2554
  ruleDBName = urls.ruleDBName;
2555
+ dbType = urls.dbtype;
2553
2556
  if (typeof window !== "undefined") {
2554
2557
  window.refreshBinderUrls = refreshBinderUrls;
2555
2558
  }
@@ -12093,42 +12096,44 @@ var vitalsMasterSectionSlice$1 = vitalsMasterSectionSlice.reducer;
12093
12096
 
12094
12097
  var getLocationSort = function getLocationSort(sort) {
12095
12098
  switch (sort) {
12096
- case 'Long Description':
12097
- return "LocationMaster.longdesc";
12098
- case 'Short Description':
12099
- return "LocationMaster.shortdesc";
12100
- case 'Location Type':
12101
- //return "document(document(LocationMaster.locationType)[0].coding)[0].display"
12102
- return "LocationMaster.locationType";
12103
- case 'Location ID':
12104
- return "LocationMaster.locationID";
12099
+ case "Long Description":
12100
+ return "longdesc";
12101
+ case "Short Description":
12102
+ return "shortdesc";
12103
+ case "Location Type":
12104
+ //return "document(document(LocationMaster.locationType)[0].coding)[0].display"
12105
+ return "locationType";
12106
+ case "Location ID":
12107
+ return "locationID";
12105
12108
  default:
12106
- return "LocationMaster.createddate";
12109
+ return "createddate";
12107
12110
  }
12108
12111
  };
12109
12112
  var queries$n = {
12113
+ // locationlist: (type,page,perPage,search,sort, direction) => {
12114
+ // return {
12115
+ // db_name: dbName,
12116
+ // entity: "LocationMaster",
12117
+ // limit: { "offset": page, "count": perPage },
12118
+ // filter: `(LIKE(LocationMaster.shortdesc,'%${search ?? ''}%',true) || LIKE(LocationMaster.longdesc,'%${search ?? ''}%',true) || LIKE(LocationMaster.locationID,'%${search ?? ''}%',true) || LIKE(document(LocationMaster.locationRoletype).display,'%${search ?? ''}%',true) ) && LocationMaster.activestatus==true`,
12119
+ // return_fields: `merge(LocationMaster,{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))},{TotalCount:count(( FOR locat IN LocationMaster FILTER ( LIKE(locat.shortdesc,'%${search ?? ''}%',true) || LIKE(locat.longdesc,'%${search ?? ''}%',true) || LIKE(locat.locationID,'%${search ?? ''}%',true) || LIKE(document(locat.locationRoletype).display,'%${search ?? ''}%',true) ) && locat.activestatus==true return locat._id ))})`,
12120
+ // sort: `${getLocationSort(sort)} ${direction}`
12121
+ // };
12122
+ // },
12123
+
12110
12124
  locationlist: function locationlist(type, page, perPage, search, sort, direction) {
12111
- // return {
12112
- // db_name: dbName,
12113
- // entity:
12114
- // "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
12115
- // filter: "LocationMaster.activestatus==true",
12116
- // isTraversal: "true",
12117
- // sort: "LocationMaster.createddate",
12118
- // return_fields: "{vertices:v,orginatedata:LocationMaster}",
12119
- // };
12120
12125
  return {
12121
12126
  db_name: dbName,
12122
- entity: "LocationMaster",
12123
- limit: {
12124
- "offset": page,
12125
- "count": perPage
12126
- },
12127
- filter: "(LIKE(LocationMaster.shortdesc,'%".concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(LocationMaster.longdesc,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(LocationMaster.locationID,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(document(LocationMaster.locationRoletype).display,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) ) && LocationMaster.activestatus==true"),
12128
- // return_fields: "merge(LocationMaster,{TotalCount:COUNT(FOR cnt IN LocationMaster RETURN cnt._key) , operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
12129
- return_fields: "merge(LocationMaster,{locationType:(for cod in document(to_array(LocationMaster.locationType)) return merge(cod,{coding:document(cod.coding)}))},{TotalCount:count(( FOR locat IN LocationMaster FILTER ( LIKE(locat.shortdesc,'%".concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(locat.longdesc,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(locat.locationID,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) || LIKE(document(locat.locationRoletype).display,'%").concat(search !== null && search !== void 0 ? search : '', "%',true) ) && locat.activestatus==true return locat._id ))})"),
12130
- // return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
12131
- sort: "".concat(getLocationSort(sort), " ").concat(direction)
12127
+ queryid: "1482a15c-4eb0-48f8-9ce3-8a95f89dbdd0",
12128
+ filter: {
12129
+ search: "%".concat(search, "%"),
12130
+ sort: {
12131
+ field: "".concat(getLocationSort(sort)),
12132
+ order: "".concat(direction)
12133
+ },
12134
+ offset: page,
12135
+ count: perPage
12136
+ }
12132
12137
  };
12133
12138
  },
12134
12139
  locationlistupsert: function locationlistupsert(data) {
@@ -12156,26 +12161,23 @@ var queries$n = {
12156
12161
  }
12157
12162
  })];
12158
12163
  },
12164
+ // location_by_id: (id) => {
12165
+ // return {
12166
+ // db_name: dbName,
12167
+ // entity: "LocationMaster",
12168
+ // filter: `LocationMaster._key == '${id}'`,
12169
+ // return_fields:
12170
+ // "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})",
12171
+ // };
12172
+ // },
12173
+
12159
12174
  location_by_id: function location_by_id(id) {
12160
- // return {
12161
- // db_name: dbName,
12162
- // entity: "LocationMaster,LocationMaster_CodeableConceptMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
12163
- // filter: `LocationMaster.activestatus==true && LocationMaster._key=='${id}'`,
12164
- // isTraversal: "true",
12165
- // return_fields: "{vertices:v,orginatedata:LocationMaster}",
12166
- // };
12167
- // return {
12168
- // "db_name": dbName,
12169
- // "entity": "LocationMaster,LocationMaster_CodeableConceptMaster_E,LocationMaster_CodingMaster_E,CodeableConceptMaster_CodingMaster_E,LocationMaster_LocationRoleType_E,LocationMaster_Organization_E,Organization_CodeableConceptMaster_E,LocationMaster_ContactPointMaster_E,LocationMaster_AddressMaster_E,LocationMaster_AttachmentMaster_E",
12170
- // "filter": `LocationMaster.activestatus==true && LocationMaster._key=='${id}'`,
12171
- // "isTraversal": "true",
12172
- // "return_fields": "{vertices:v,orginatedata:LocationMaster}"
12173
- // }
12174
12175
  return {
12175
12176
  db_name: dbName,
12176
- entity: "LocationMaster",
12177
- filter: "LocationMaster._key == '".concat(id, "'"),
12178
- return_fields: "merge(LocationMaster,{operationalStatus:(for ops in CodeableConceptMaster filter ops._id==LocationMaster.operationalStatus return merge(ops,{coding:document(ops.coding)}))},{managingOrgEntityType:(for moe in CodeableConceptMaster filter moe._id==LocationMaster.managingOrgEntityType return merge(moe,{coding:document(moe.coding)}))}, {parentLocationID_desc:document(to_array(LocationMaster.parentLocationID_desc))},{address:document(LocationMaster.address)},{locationType:(for lt in CodeableConceptMaster filter lt._id==LocationMaster.locationType return (merge(lt,{coding:document(lt.coding)})))},{managingOrgID:document(to_array(LocationMaster.managingOrgID))},{locationRoletype:document(to_array(LocationMaster.locationRoletype))},{specialty:document(to_array(LocationMaster.specialty))},{photo:document(LocationMaster.photo)}, {pharmacy:(for ph in LocationMaster.pharmacy return merge(ph,{inventorySubStore:document(ph.inventorySubStore)}))}, {telecom:(for tel in document(LocationMaster.telecom) return merge(tel,{use:document(tel.use)},{rank:document(tel.rank)},{system:document(tel.system)}))})"
12177
+ queryid: "134481f2-3c15-4165-8aec-1f92d99f3f2d",
12178
+ filter: {
12179
+ _key: "".concat(id)
12180
+ }
12179
12181
  };
12180
12182
  },
12181
12183
  locationmasterinsert: function locationmasterinsert(data) {
@@ -12449,13 +12451,14 @@ var LOCATION_READ = createAsyncThunk("locationSlice/locationlist", /*#__PURE__*/
12449
12451
  _context.n = 2;
12450
12452
  return fetchData({
12451
12453
  body: JSON.stringify(queries$n.locationlist(type, page, perPage, search ? search : '', sort ? sort : "", direction ? "" : 'DESC'))
12452
- }, __readDocumentUrl__);
12454
+ },
12455
+ // __readDocumentUrl__
12456
+ __baseUrl__$1);
12453
12457
  case 2:
12454
12458
  data = _context.v;
12455
12459
  arry = [];
12456
- console.log("data", data.result);
12457
12460
  _context.n = 3;
12458
- return data.result.map(function (val) {
12461
+ return data.map(function (val) {
12459
12462
  if (val.locationID) {
12460
12463
  var _val$locationType$, _val$locationType$2, _val$locationType, _val$locationType2, _val$locationType3, _val$locationType4;
12461
12464
  arry.push({
@@ -12592,66 +12595,2558 @@ var locationSlice = createSlice({
12592
12595
  state.location_insert.loading = false, state.location_insert.error = true, state.location_insert = action.payload;
12593
12596
  })
12594
12597
  });
12595
- var locationActions$1 = {
12596
- LOCATION_READ: LOCATION_READ,
12597
- LOCATION_LIST_UPSERT: LOCATION_LIST_UPSERT,
12598
- LOCATION_MASTER_INSERT: LOCATION_MASTER_INSERT
12599
- };
12600
- var locationSlice$1 = locationSlice.reducer;
12598
+ var locationActions$1 = {
12599
+ LOCATION_READ: LOCATION_READ,
12600
+ LOCATION_LIST_UPSERT: LOCATION_LIST_UPSERT,
12601
+ LOCATION_MASTER_INSERT: LOCATION_MASTER_INSERT
12602
+ };
12603
+ var locationSlice$1 = locationSlice.reducer;
12604
+
12605
+ /*
12606
+ object-assign
12607
+ (c) Sindre Sorhus
12608
+ @license MIT
12609
+ */
12610
+ /* eslint-disable no-unused-vars */
12611
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
12612
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
12613
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
12614
+
12615
+ function toObject(val) {
12616
+ if (val === null || val === undefined) {
12617
+ throw new TypeError('Object.assign cannot be called with null or undefined');
12618
+ }
12619
+
12620
+ return Object(val);
12621
+ }
12622
+
12623
+ function shouldUseNative() {
12624
+ try {
12625
+ if (!Object.assign) {
12626
+ return false;
12627
+ }
12628
+
12629
+ // Detect buggy property enumeration order in older V8 versions.
12630
+
12631
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
12632
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
12633
+ test1[5] = 'de';
12634
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
12635
+ return false;
12636
+ }
12637
+
12638
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
12639
+ var test2 = {};
12640
+ for (var i = 0; i < 10; i++) {
12641
+ test2['_' + String.fromCharCode(i)] = i;
12642
+ }
12643
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
12644
+ return test2[n];
12645
+ });
12646
+ if (order2.join('') !== '0123456789') {
12647
+ return false;
12648
+ }
12649
+
12650
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
12651
+ var test3 = {};
12652
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
12653
+ test3[letter] = letter;
12654
+ });
12655
+ if (Object.keys(Object.assign({}, test3)).join('') !==
12656
+ 'abcdefghijklmnopqrst') {
12657
+ return false;
12658
+ }
12659
+
12660
+ return true;
12661
+ } catch (err) {
12662
+ // We don't expect any of the above to throw, but better to be safe.
12663
+ return false;
12664
+ }
12665
+ }
12666
+
12667
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
12668
+ var from;
12669
+ var to = toObject(target);
12670
+ var symbols;
12671
+
12672
+ for (var s = 1; s < arguments.length; s++) {
12673
+ from = Object(arguments[s]);
12674
+
12675
+ for (var key in from) {
12676
+ if (hasOwnProperty.call(from, key)) {
12677
+ to[key] = from[key];
12678
+ }
12679
+ }
12680
+
12681
+ if (getOwnPropertySymbols) {
12682
+ symbols = getOwnPropertySymbols(from);
12683
+ for (var i = 0; i < symbols.length; i++) {
12684
+ if (propIsEnumerable.call(from, symbols[i])) {
12685
+ to[symbols[i]] = from[symbols[i]];
12686
+ }
12687
+ }
12688
+ }
12689
+ }
12690
+
12691
+ return to;
12692
+ };
12693
+
12694
+ var react_production_min = createCommonjsModule(function (module, exports) {
12695
+ var n=60103,p=60106;exports.Fragment=60107;exports.StrictMode=60108;exports.Profiler=60114;var q=60109,r=60110,t=60112;exports.Suspense=60113;var u=60115,v=60116;
12696
+ if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;n=w("react.element");p=w("react.portal");exports.Fragment=w("react.fragment");exports.StrictMode=w("react.strict_mode");exports.Profiler=w("react.profiler");q=w("react.provider");r=w("react.context");t=w("react.forward_ref");exports.Suspense=w("react.suspense");u=w("react.memo");v=w("react.lazy");}var x="function"===typeof Symbol&&Symbol.iterator;
12697
+ function y(a){if(null===a||"object"!==typeof a)return null;a=x&&a[x]||a["@@iterator"];return "function"===typeof a?a:null}function z(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
12698
+ var A={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B={};function C(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A;}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(z(85));this.updater.enqueueSetState(this,a,b,"setState");};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
12699
+ function D(){}D.prototype=C.prototype;function E(a,b,c){this.props=a;this.context=b;this.refs=B;this.updater=c||A;}var F=E.prototype=new D;F.constructor=E;objectAssign(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
12700
+ function J(a,b,c){var e,d={},k=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)H.call(b,e)&&!I.hasOwnProperty(e)&&(d[e]=b[e]);var g=arguments.length-2;if(1===g)d.children=c;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];d.children=f;}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===d[e]&&(d[e]=g[e]);return {$$typeof:n,type:a,key:k,ref:h,props:d,_owner:G.current}}
12701
+ function K(a,b){return {$$typeof:n,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function L(a){return "object"===typeof a&&null!==a&&a.$$typeof===n}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var M=/\/+/g;function N(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
12702
+ function O(a,b,c,e,d){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case n:case p:h=!0;}}if(h)return h=a,d=d(h),a=""===e?"."+N(h,0):e,Array.isArray(d)?(c="",null!=a&&(c=a.replace(M,"$&/")+"/"),O(d,b,c,"",function(a){return a})):null!=d&&(L(d)&&(d=K(d,c+(!d.key||h&&h.key===d.key?"":(""+d.key).replace(M,"$&/")+"/")+a)),b.push(d)),1;h=0;e=""===e?".":e+":";if(Array.isArray(a))for(var g=
12703
+ 0;g<a.length;g++){k=a[g];var f=e+N(k,g);h+=O(k,b,c,f,d);}else if(f=y(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=e+N(k,g++),h+=O(k,b,c,f,d);else if("object"===k)throw b=""+a,Error(z(31,"[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b));return h}function P(a,b,c){if(null==a)return a;var e=[],d=0;O(a,e,"","",function(a){return b.call(c,a,d++)});return e}
12704
+ function Q(a){if(-1===a._status){var b=a._result;b=b();a._status=0;a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b);},function(b){0===a._status&&(a._status=2,a._result=b);});}if(1===a._status)return a._result;throw a._result;}var R={current:null};function S(){var a=R.current;if(null===a)throw Error(z(321));return a}var T={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:G,IsSomeRendererActing:{current:!1},assign:objectAssign};
12705
+ exports.Children={map:P,forEach:function(a,b,c){P(a,function(){b.apply(this,arguments);},c);},count:function(a){var b=0;P(a,function(){b++;});return b},toArray:function(a){return P(a,function(a){return a})||[]},only:function(a){if(!L(a))throw Error(z(143));return a}};exports.Component=C;exports.PureComponent=E;exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T;
12706
+ exports.cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(z(267,a));var e=objectAssign({},a.props),d=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=G.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)H.call(b,f)&&!I.hasOwnProperty(f)&&(e[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)e.children=c;else if(1<f){g=Array(f);for(var m=0;m<f;m++)g[m]=arguments[m+2];e.children=g;}return {$$typeof:n,type:a.type,
12707
+ key:d,ref:k,props:e,_owner:h}};exports.createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:r,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:q,_context:a};return a.Consumer=a};exports.createElement=J;exports.createFactory=function(a){var b=J.bind(null,a);b.type=a;return b};exports.createRef=function(){return {current:null}};exports.forwardRef=function(a){return {$$typeof:t,render:a}};exports.isValidElement=L;
12708
+ exports.lazy=function(a){return {$$typeof:v,_payload:{_status:-1,_result:a},_init:Q}};exports.memo=function(a,b){return {$$typeof:u,type:a,compare:void 0===b?null:b}};exports.useCallback=function(a,b){return S().useCallback(a,b)};exports.useContext=function(a,b){return S().useContext(a,b)};exports.useDebugValue=function(){};exports.useEffect=function(a,b){return S().useEffect(a,b)};exports.useImperativeHandle=function(a,b,c){return S().useImperativeHandle(a,b,c)};
12709
+ exports.useLayoutEffect=function(a,b){return S().useLayoutEffect(a,b)};exports.useMemo=function(a,b){return S().useMemo(a,b)};exports.useReducer=function(a,b,c){return S().useReducer(a,b,c)};exports.useRef=function(a){return S().useRef(a)};exports.useState=function(a){return S().useState(a)};exports.version="17.0.2";
12710
+ });
12711
+
12712
+ var react_development = createCommonjsModule(function (module, exports) {
12713
+
12714
+ if (process.env.NODE_ENV !== "production") {
12715
+ (function() {
12716
+
12717
+ var _assign = objectAssign;
12718
+
12719
+ // TODO: this is special because it gets imported during build.
12720
+ var ReactVersion = '17.0.2';
12721
+
12722
+ // ATTENTION
12723
+ // When adding new symbols to this file,
12724
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
12725
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
12726
+ // nor polyfill, then a plain number is used for performance.
12727
+ var REACT_ELEMENT_TYPE = 0xeac7;
12728
+ var REACT_PORTAL_TYPE = 0xeaca;
12729
+ exports.Fragment = 0xeacb;
12730
+ exports.StrictMode = 0xeacc;
12731
+ exports.Profiler = 0xead2;
12732
+ var REACT_PROVIDER_TYPE = 0xeacd;
12733
+ var REACT_CONTEXT_TYPE = 0xeace;
12734
+ var REACT_FORWARD_REF_TYPE = 0xead0;
12735
+ exports.Suspense = 0xead1;
12736
+ var REACT_SUSPENSE_LIST_TYPE = 0xead8;
12737
+ var REACT_MEMO_TYPE = 0xead3;
12738
+ var REACT_LAZY_TYPE = 0xead4;
12739
+ var REACT_BLOCK_TYPE = 0xead9;
12740
+ var REACT_SERVER_BLOCK_TYPE = 0xeada;
12741
+ var REACT_FUNDAMENTAL_TYPE = 0xead5;
12742
+ var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
12743
+ var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
12744
+
12745
+ if (typeof Symbol === 'function' && Symbol.for) {
12746
+ var symbolFor = Symbol.for;
12747
+ REACT_ELEMENT_TYPE = symbolFor('react.element');
12748
+ REACT_PORTAL_TYPE = symbolFor('react.portal');
12749
+ exports.Fragment = symbolFor('react.fragment');
12750
+ exports.StrictMode = symbolFor('react.strict_mode');
12751
+ exports.Profiler = symbolFor('react.profiler');
12752
+ REACT_PROVIDER_TYPE = symbolFor('react.provider');
12753
+ REACT_CONTEXT_TYPE = symbolFor('react.context');
12754
+ REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
12755
+ exports.Suspense = symbolFor('react.suspense');
12756
+ REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
12757
+ REACT_MEMO_TYPE = symbolFor('react.memo');
12758
+ REACT_LAZY_TYPE = symbolFor('react.lazy');
12759
+ REACT_BLOCK_TYPE = symbolFor('react.block');
12760
+ REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
12761
+ REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
12762
+ symbolFor('react.scope');
12763
+ symbolFor('react.opaque.id');
12764
+ REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
12765
+ symbolFor('react.offscreen');
12766
+ REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
12767
+ }
12768
+
12769
+ var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
12770
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
12771
+ function getIteratorFn(maybeIterable) {
12772
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
12773
+ return null;
12774
+ }
12775
+
12776
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
12777
+
12778
+ if (typeof maybeIterator === 'function') {
12779
+ return maybeIterator;
12780
+ }
12781
+
12782
+ return null;
12783
+ }
12784
+
12785
+ /**
12786
+ * Keeps track of the current dispatcher.
12787
+ */
12788
+ var ReactCurrentDispatcher = {
12789
+ /**
12790
+ * @internal
12791
+ * @type {ReactComponent}
12792
+ */
12793
+ current: null
12794
+ };
12795
+
12796
+ /**
12797
+ * Keeps track of the current batch's configuration such as how long an update
12798
+ * should suspend for if it needs to.
12799
+ */
12800
+ var ReactCurrentBatchConfig = {
12801
+ transition: 0
12802
+ };
12803
+
12804
+ /**
12805
+ * Keeps track of the current owner.
12806
+ *
12807
+ * The current owner is the component who should own any components that are
12808
+ * currently being constructed.
12809
+ */
12810
+ var ReactCurrentOwner = {
12811
+ /**
12812
+ * @internal
12813
+ * @type {ReactComponent}
12814
+ */
12815
+ current: null
12816
+ };
12817
+
12818
+ var ReactDebugCurrentFrame = {};
12819
+ var currentExtraStackFrame = null;
12820
+ function setExtraStackFrame(stack) {
12821
+ {
12822
+ currentExtraStackFrame = stack;
12823
+ }
12824
+ }
12825
+
12826
+ {
12827
+ ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
12828
+ {
12829
+ currentExtraStackFrame = stack;
12830
+ }
12831
+ }; // Stack implementation injected by the current renderer.
12832
+
12833
+
12834
+ ReactDebugCurrentFrame.getCurrentStack = null;
12835
+
12836
+ ReactDebugCurrentFrame.getStackAddendum = function () {
12837
+ var stack = ''; // Add an extra top frame while an element is being validated
12838
+
12839
+ if (currentExtraStackFrame) {
12840
+ stack += currentExtraStackFrame;
12841
+ } // Delegate to the injected renderer-specific implementation
12842
+
12843
+
12844
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
12845
+
12846
+ if (impl) {
12847
+ stack += impl() || '';
12848
+ }
12849
+
12850
+ return stack;
12851
+ };
12852
+ }
12853
+
12854
+ /**
12855
+ * Used by act() to track whether you're inside an act() scope.
12856
+ */
12857
+ var IsSomeRendererActing = {
12858
+ current: false
12859
+ };
12860
+
12861
+ var ReactSharedInternals = {
12862
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
12863
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
12864
+ ReactCurrentOwner: ReactCurrentOwner,
12865
+ IsSomeRendererActing: IsSomeRendererActing,
12866
+ // Used by renderers to avoid bundling object-assign twice in UMD bundles:
12867
+ assign: _assign
12868
+ };
12869
+
12870
+ {
12871
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
12872
+ }
12873
+
12874
+ // by calls to these methods by a Babel plugin.
12875
+ //
12876
+ // In PROD (or in packages without access to React internals),
12877
+ // they are left as they are instead.
12878
+
12879
+ function warn(format) {
12880
+ {
12881
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
12882
+ args[_key - 1] = arguments[_key];
12883
+ }
12884
+
12885
+ printWarning('warn', format, args);
12886
+ }
12887
+ }
12888
+ function error(format) {
12889
+ {
12890
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
12891
+ args[_key2 - 1] = arguments[_key2];
12892
+ }
12893
+
12894
+ printWarning('error', format, args);
12895
+ }
12896
+ }
12897
+
12898
+ function printWarning(level, format, args) {
12899
+ // When changing this logic, you might want to also
12900
+ // update consoleWithStackDev.www.js as well.
12901
+ {
12902
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
12903
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
12904
+
12905
+ if (stack !== '') {
12906
+ format += '%s';
12907
+ args = args.concat([stack]);
12908
+ }
12909
+
12910
+ var argsWithFormat = args.map(function (item) {
12911
+ return '' + item;
12912
+ }); // Careful: RN currently depends on this prefix
12913
+
12914
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
12915
+ // breaks IE9: https://github.com/facebook/react/issues/13610
12916
+ // eslint-disable-next-line react-internal/no-production-logging
12917
+
12918
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
12919
+ }
12920
+ }
12921
+
12922
+ var didWarnStateUpdateForUnmountedComponent = {};
12923
+
12924
+ function warnNoop(publicInstance, callerName) {
12925
+ {
12926
+ var _constructor = publicInstance.constructor;
12927
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
12928
+ var warningKey = componentName + "." + callerName;
12929
+
12930
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
12931
+ return;
12932
+ }
12933
+
12934
+ error("Can't call %s on a component that is not yet mounted. " + 'This is a no-op, but it might indicate a bug in your application. ' + 'Instead, assign to `this.state` directly or define a `state = {};` ' + 'class property with the desired state in the %s component.', callerName, componentName);
12935
+
12936
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
12937
+ }
12938
+ }
12939
+ /**
12940
+ * This is the abstract API for an update queue.
12941
+ */
12942
+
12943
+
12944
+ var ReactNoopUpdateQueue = {
12945
+ /**
12946
+ * Checks whether or not this composite component is mounted.
12947
+ * @param {ReactClass} publicInstance The instance we want to test.
12948
+ * @return {boolean} True if mounted, false otherwise.
12949
+ * @protected
12950
+ * @final
12951
+ */
12952
+ isMounted: function (publicInstance) {
12953
+ return false;
12954
+ },
12955
+
12956
+ /**
12957
+ * Forces an update. This should only be invoked when it is known with
12958
+ * certainty that we are **not** in a DOM transaction.
12959
+ *
12960
+ * You may want to call this when you know that some deeper aspect of the
12961
+ * component's state has changed but `setState` was not called.
12962
+ *
12963
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
12964
+ * `componentWillUpdate` and `componentDidUpdate`.
12965
+ *
12966
+ * @param {ReactClass} publicInstance The instance that should rerender.
12967
+ * @param {?function} callback Called after component is updated.
12968
+ * @param {?string} callerName name of the calling function in the public API.
12969
+ * @internal
12970
+ */
12971
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
12972
+ warnNoop(publicInstance, 'forceUpdate');
12973
+ },
12974
+
12975
+ /**
12976
+ * Replaces all of the state. Always use this or `setState` to mutate state.
12977
+ * You should treat `this.state` as immutable.
12978
+ *
12979
+ * There is no guarantee that `this.state` will be immediately updated, so
12980
+ * accessing `this.state` after calling this method may return the old value.
12981
+ *
12982
+ * @param {ReactClass} publicInstance The instance that should rerender.
12983
+ * @param {object} completeState Next state.
12984
+ * @param {?function} callback Called after component is updated.
12985
+ * @param {?string} callerName name of the calling function in the public API.
12986
+ * @internal
12987
+ */
12988
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
12989
+ warnNoop(publicInstance, 'replaceState');
12990
+ },
12991
+
12992
+ /**
12993
+ * Sets a subset of the state. This only exists because _pendingState is
12994
+ * internal. This provides a merging strategy that is not available to deep
12995
+ * properties which is confusing. TODO: Expose pendingState or don't use it
12996
+ * during the merge.
12997
+ *
12998
+ * @param {ReactClass} publicInstance The instance that should rerender.
12999
+ * @param {object} partialState Next partial state to be merged with state.
13000
+ * @param {?function} callback Called after component is updated.
13001
+ * @param {?string} Name of the calling function in the public API.
13002
+ * @internal
13003
+ */
13004
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
13005
+ warnNoop(publicInstance, 'setState');
13006
+ }
13007
+ };
13008
+
13009
+ var emptyObject = {};
13010
+
13011
+ {
13012
+ Object.freeze(emptyObject);
13013
+ }
13014
+ /**
13015
+ * Base class helpers for the updating state of a component.
13016
+ */
13017
+
13018
+
13019
+ function Component(props, context, updater) {
13020
+ this.props = props;
13021
+ this.context = context; // If a component has string refs, we will assign a different object later.
13022
+
13023
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
13024
+ // renderer.
13025
+
13026
+ this.updater = updater || ReactNoopUpdateQueue;
13027
+ }
13028
+
13029
+ Component.prototype.isReactComponent = {};
13030
+ /**
13031
+ * Sets a subset of the state. Always use this to mutate
13032
+ * state. You should treat `this.state` as immutable.
13033
+ *
13034
+ * There is no guarantee that `this.state` will be immediately updated, so
13035
+ * accessing `this.state` after calling this method may return the old value.
13036
+ *
13037
+ * There is no guarantee that calls to `setState` will run synchronously,
13038
+ * as they may eventually be batched together. You can provide an optional
13039
+ * callback that will be executed when the call to setState is actually
13040
+ * completed.
13041
+ *
13042
+ * When a function is provided to setState, it will be called at some point in
13043
+ * the future (not synchronously). It will be called with the up to date
13044
+ * component arguments (state, props, context). These values can be different
13045
+ * from this.* because your function may be called after receiveProps but before
13046
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
13047
+ * assigned to this.
13048
+ *
13049
+ * @param {object|function} partialState Next partial state or function to
13050
+ * produce next partial state to be merged with current state.
13051
+ * @param {?function} callback Called after state is updated.
13052
+ * @final
13053
+ * @protected
13054
+ */
13055
+
13056
+ Component.prototype.setState = function (partialState, callback) {
13057
+ if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
13058
+ {
13059
+ throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
13060
+ }
13061
+ }
13062
+
13063
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
13064
+ };
13065
+ /**
13066
+ * Forces an update. This should only be invoked when it is known with
13067
+ * certainty that we are **not** in a DOM transaction.
13068
+ *
13069
+ * You may want to call this when you know that some deeper aspect of the
13070
+ * component's state has changed but `setState` was not called.
13071
+ *
13072
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
13073
+ * `componentWillUpdate` and `componentDidUpdate`.
13074
+ *
13075
+ * @param {?function} callback Called after update is complete.
13076
+ * @final
13077
+ * @protected
13078
+ */
13079
+
13080
+
13081
+ Component.prototype.forceUpdate = function (callback) {
13082
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
13083
+ };
13084
+ /**
13085
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
13086
+ * we would like to deprecate them, we're not going to move them over to this
13087
+ * modern base class. Instead, we define a getter that warns if it's accessed.
13088
+ */
13089
+
13090
+
13091
+ {
13092
+ var deprecatedAPIs = {
13093
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
13094
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
13095
+ };
13096
+
13097
+ var defineDeprecationWarning = function (methodName, info) {
13098
+ Object.defineProperty(Component.prototype, methodName, {
13099
+ get: function () {
13100
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
13101
+
13102
+ return undefined;
13103
+ }
13104
+ });
13105
+ };
13106
+
13107
+ for (var fnName in deprecatedAPIs) {
13108
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
13109
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
13110
+ }
13111
+ }
13112
+ }
13113
+
13114
+ function ComponentDummy() {}
13115
+
13116
+ ComponentDummy.prototype = Component.prototype;
13117
+ /**
13118
+ * Convenience component with default shallow equality check for sCU.
13119
+ */
13120
+
13121
+ function PureComponent(props, context, updater) {
13122
+ this.props = props;
13123
+ this.context = context; // If a component has string refs, we will assign a different object later.
13124
+
13125
+ this.refs = emptyObject;
13126
+ this.updater = updater || ReactNoopUpdateQueue;
13127
+ }
13128
+
13129
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
13130
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
13131
+
13132
+ _assign(pureComponentPrototype, Component.prototype);
13133
+
13134
+ pureComponentPrototype.isPureReactComponent = true;
13135
+
13136
+ // an immutable object with a single mutable value
13137
+ function createRef() {
13138
+ var refObject = {
13139
+ current: null
13140
+ };
13141
+
13142
+ {
13143
+ Object.seal(refObject);
13144
+ }
13145
+
13146
+ return refObject;
13147
+ }
13148
+
13149
+ function getWrappedName(outerType, innerType, wrapperName) {
13150
+ var functionName = innerType.displayName || innerType.name || '';
13151
+ return outerType.displayName || (functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName);
13152
+ }
13153
+
13154
+ function getContextName(type) {
13155
+ return type.displayName || 'Context';
13156
+ }
13157
+
13158
+ function getComponentName(type) {
13159
+ if (type == null) {
13160
+ // Host root, text node or just invalid type.
13161
+ return null;
13162
+ }
13163
+
13164
+ {
13165
+ if (typeof type.tag === 'number') {
13166
+ error('Received an unexpected object in getComponentName(). ' + 'This is likely a bug in React. Please file an issue.');
13167
+ }
13168
+ }
13169
+
13170
+ if (typeof type === 'function') {
13171
+ return type.displayName || type.name || null;
13172
+ }
13173
+
13174
+ if (typeof type === 'string') {
13175
+ return type;
13176
+ }
13177
+
13178
+ switch (type) {
13179
+ case exports.Fragment:
13180
+ return 'Fragment';
13181
+
13182
+ case REACT_PORTAL_TYPE:
13183
+ return 'Portal';
13184
+
13185
+ case exports.Profiler:
13186
+ return 'Profiler';
13187
+
13188
+ case exports.StrictMode:
13189
+ return 'StrictMode';
13190
+
13191
+ case exports.Suspense:
13192
+ return 'Suspense';
13193
+
13194
+ case REACT_SUSPENSE_LIST_TYPE:
13195
+ return 'SuspenseList';
13196
+ }
13197
+
13198
+ if (typeof type === 'object') {
13199
+ switch (type.$$typeof) {
13200
+ case REACT_CONTEXT_TYPE:
13201
+ var context = type;
13202
+ return getContextName(context) + '.Consumer';
13203
+
13204
+ case REACT_PROVIDER_TYPE:
13205
+ var provider = type;
13206
+ return getContextName(provider._context) + '.Provider';
13207
+
13208
+ case REACT_FORWARD_REF_TYPE:
13209
+ return getWrappedName(type, type.render, 'ForwardRef');
13210
+
13211
+ case REACT_MEMO_TYPE:
13212
+ return getComponentName(type.type);
13213
+
13214
+ case REACT_BLOCK_TYPE:
13215
+ return getComponentName(type._render);
13216
+
13217
+ case REACT_LAZY_TYPE:
13218
+ {
13219
+ var lazyComponent = type;
13220
+ var payload = lazyComponent._payload;
13221
+ var init = lazyComponent._init;
13222
+
13223
+ try {
13224
+ return getComponentName(init(payload));
13225
+ } catch (x) {
13226
+ return null;
13227
+ }
13228
+ }
13229
+ }
13230
+ }
13231
+
13232
+ return null;
13233
+ }
13234
+
13235
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
13236
+ var RESERVED_PROPS = {
13237
+ key: true,
13238
+ ref: true,
13239
+ __self: true,
13240
+ __source: true
13241
+ };
13242
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
13243
+
13244
+ {
13245
+ didWarnAboutStringRefs = {};
13246
+ }
13247
+
13248
+ function hasValidRef(config) {
13249
+ {
13250
+ if (hasOwnProperty.call(config, 'ref')) {
13251
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
13252
+
13253
+ if (getter && getter.isReactWarning) {
13254
+ return false;
13255
+ }
13256
+ }
13257
+ }
13258
+
13259
+ return config.ref !== undefined;
13260
+ }
13261
+
13262
+ function hasValidKey(config) {
13263
+ {
13264
+ if (hasOwnProperty.call(config, 'key')) {
13265
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
13266
+
13267
+ if (getter && getter.isReactWarning) {
13268
+ return false;
13269
+ }
13270
+ }
13271
+ }
13272
+
13273
+ return config.key !== undefined;
13274
+ }
13275
+
13276
+ function defineKeyPropWarningGetter(props, displayName) {
13277
+ var warnAboutAccessingKey = function () {
13278
+ {
13279
+ if (!specialPropKeyWarningShown) {
13280
+ specialPropKeyWarningShown = true;
13281
+
13282
+ error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
13283
+ }
13284
+ }
13285
+ };
13286
+
13287
+ warnAboutAccessingKey.isReactWarning = true;
13288
+ Object.defineProperty(props, 'key', {
13289
+ get: warnAboutAccessingKey,
13290
+ configurable: true
13291
+ });
13292
+ }
13293
+
13294
+ function defineRefPropWarningGetter(props, displayName) {
13295
+ var warnAboutAccessingRef = function () {
13296
+ {
13297
+ if (!specialPropRefWarningShown) {
13298
+ specialPropRefWarningShown = true;
13299
+
13300
+ error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
13301
+ }
13302
+ }
13303
+ };
13304
+
13305
+ warnAboutAccessingRef.isReactWarning = true;
13306
+ Object.defineProperty(props, 'ref', {
13307
+ get: warnAboutAccessingRef,
13308
+ configurable: true
13309
+ });
13310
+ }
13311
+
13312
+ function warnIfStringRefCannotBeAutoConverted(config) {
13313
+ {
13314
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
13315
+ var componentName = getComponentName(ReactCurrentOwner.current.type);
13316
+
13317
+ if (!didWarnAboutStringRefs[componentName]) {
13318
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
13319
+
13320
+ didWarnAboutStringRefs[componentName] = true;
13321
+ }
13322
+ }
13323
+ }
13324
+ }
13325
+ /**
13326
+ * Factory method to create a new React element. This no longer adheres to
13327
+ * the class pattern, so do not use new to call it. Also, instanceof check
13328
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
13329
+ * if something is a React Element.
13330
+ *
13331
+ * @param {*} type
13332
+ * @param {*} props
13333
+ * @param {*} key
13334
+ * @param {string|object} ref
13335
+ * @param {*} owner
13336
+ * @param {*} self A *temporary* helper to detect places where `this` is
13337
+ * different from the `owner` when React.createElement is called, so that we
13338
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
13339
+ * functions, and as long as `this` and owner are the same, there will be no
13340
+ * change in behavior.
13341
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
13342
+ * indicating filename, line number, and/or other information.
13343
+ * @internal
13344
+ */
13345
+
13346
+
13347
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
13348
+ var element = {
13349
+ // This tag allows us to uniquely identify this as a React Element
13350
+ $$typeof: REACT_ELEMENT_TYPE,
13351
+ // Built-in properties that belong on the element
13352
+ type: type,
13353
+ key: key,
13354
+ ref: ref,
13355
+ props: props,
13356
+ // Record the component responsible for creating this element.
13357
+ _owner: owner
13358
+ };
13359
+
13360
+ {
13361
+ // The validation flag is currently mutative. We put it on
13362
+ // an external backing store so that we can freeze the whole object.
13363
+ // This can be replaced with a WeakMap once they are implemented in
13364
+ // commonly used development environments.
13365
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
13366
+ // the validation flag non-enumerable (where possible, which should
13367
+ // include every environment we run tests in), so the test framework
13368
+ // ignores it.
13369
+
13370
+ Object.defineProperty(element._store, 'validated', {
13371
+ configurable: false,
13372
+ enumerable: false,
13373
+ writable: true,
13374
+ value: false
13375
+ }); // self and source are DEV only properties.
13376
+
13377
+ Object.defineProperty(element, '_self', {
13378
+ configurable: false,
13379
+ enumerable: false,
13380
+ writable: false,
13381
+ value: self
13382
+ }); // Two elements created in two different places should be considered
13383
+ // equal for testing purposes and therefore we hide it from enumeration.
13384
+
13385
+ Object.defineProperty(element, '_source', {
13386
+ configurable: false,
13387
+ enumerable: false,
13388
+ writable: false,
13389
+ value: source
13390
+ });
13391
+
13392
+ if (Object.freeze) {
13393
+ Object.freeze(element.props);
13394
+ Object.freeze(element);
13395
+ }
13396
+ }
13397
+
13398
+ return element;
13399
+ };
13400
+ /**
13401
+ * Create and return a new ReactElement of the given type.
13402
+ * See https://reactjs.org/docs/react-api.html#createelement
13403
+ */
13404
+
13405
+ function createElement(type, config, children) {
13406
+ var propName; // Reserved names are extracted
13407
+
13408
+ var props = {};
13409
+ var key = null;
13410
+ var ref = null;
13411
+ var self = null;
13412
+ var source = null;
13413
+
13414
+ if (config != null) {
13415
+ if (hasValidRef(config)) {
13416
+ ref = config.ref;
13417
+
13418
+ {
13419
+ warnIfStringRefCannotBeAutoConverted(config);
13420
+ }
13421
+ }
13422
+
13423
+ if (hasValidKey(config)) {
13424
+ key = '' + config.key;
13425
+ }
13426
+
13427
+ self = config.__self === undefined ? null : config.__self;
13428
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
13429
+
13430
+ for (propName in config) {
13431
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
13432
+ props[propName] = config[propName];
13433
+ }
13434
+ }
13435
+ } // Children can be more than one argument, and those are transferred onto
13436
+ // the newly allocated props object.
13437
+
13438
+
13439
+ var childrenLength = arguments.length - 2;
13440
+
13441
+ if (childrenLength === 1) {
13442
+ props.children = children;
13443
+ } else if (childrenLength > 1) {
13444
+ var childArray = Array(childrenLength);
13445
+
13446
+ for (var i = 0; i < childrenLength; i++) {
13447
+ childArray[i] = arguments[i + 2];
13448
+ }
13449
+
13450
+ {
13451
+ if (Object.freeze) {
13452
+ Object.freeze(childArray);
13453
+ }
13454
+ }
13455
+
13456
+ props.children = childArray;
13457
+ } // Resolve default props
13458
+
13459
+
13460
+ if (type && type.defaultProps) {
13461
+ var defaultProps = type.defaultProps;
13462
+
13463
+ for (propName in defaultProps) {
13464
+ if (props[propName] === undefined) {
13465
+ props[propName] = defaultProps[propName];
13466
+ }
13467
+ }
13468
+ }
13469
+
13470
+ {
13471
+ if (key || ref) {
13472
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
13473
+
13474
+ if (key) {
13475
+ defineKeyPropWarningGetter(props, displayName);
13476
+ }
13477
+
13478
+ if (ref) {
13479
+ defineRefPropWarningGetter(props, displayName);
13480
+ }
13481
+ }
13482
+ }
13483
+
13484
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
13485
+ }
13486
+ function cloneAndReplaceKey(oldElement, newKey) {
13487
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
13488
+ return newElement;
13489
+ }
13490
+ /**
13491
+ * Clone and return a new ReactElement using element as the starting point.
13492
+ * See https://reactjs.org/docs/react-api.html#cloneelement
13493
+ */
13494
+
13495
+ function cloneElement(element, config, children) {
13496
+ if (!!(element === null || element === undefined)) {
13497
+ {
13498
+ throw Error( "React.cloneElement(...): The argument must be a React element, but you passed " + element + "." );
13499
+ }
13500
+ }
13501
+
13502
+ var propName; // Original props are copied
13503
+
13504
+ var props = _assign({}, element.props); // Reserved names are extracted
13505
+
13506
+
13507
+ var key = element.key;
13508
+ var ref = element.ref; // Self is preserved since the owner is preserved.
13509
+
13510
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
13511
+ // transpiler, and the original source is probably a better indicator of the
13512
+ // true owner.
13513
+
13514
+ var source = element._source; // Owner will be preserved, unless ref is overridden
13515
+
13516
+ var owner = element._owner;
13517
+
13518
+ if (config != null) {
13519
+ if (hasValidRef(config)) {
13520
+ // Silently steal the ref from the parent.
13521
+ ref = config.ref;
13522
+ owner = ReactCurrentOwner.current;
13523
+ }
13524
+
13525
+ if (hasValidKey(config)) {
13526
+ key = '' + config.key;
13527
+ } // Remaining properties override existing props
13528
+
13529
+
13530
+ var defaultProps;
13531
+
13532
+ if (element.type && element.type.defaultProps) {
13533
+ defaultProps = element.type.defaultProps;
13534
+ }
13535
+
13536
+ for (propName in config) {
13537
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
13538
+ if (config[propName] === undefined && defaultProps !== undefined) {
13539
+ // Resolve default props
13540
+ props[propName] = defaultProps[propName];
13541
+ } else {
13542
+ props[propName] = config[propName];
13543
+ }
13544
+ }
13545
+ }
13546
+ } // Children can be more than one argument, and those are transferred onto
13547
+ // the newly allocated props object.
13548
+
13549
+
13550
+ var childrenLength = arguments.length - 2;
13551
+
13552
+ if (childrenLength === 1) {
13553
+ props.children = children;
13554
+ } else if (childrenLength > 1) {
13555
+ var childArray = Array(childrenLength);
13556
+
13557
+ for (var i = 0; i < childrenLength; i++) {
13558
+ childArray[i] = arguments[i + 2];
13559
+ }
13560
+
13561
+ props.children = childArray;
13562
+ }
13563
+
13564
+ return ReactElement(element.type, key, ref, self, source, owner, props);
13565
+ }
13566
+ /**
13567
+ * Verifies the object is a ReactElement.
13568
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
13569
+ * @param {?object} object
13570
+ * @return {boolean} True if `object` is a ReactElement.
13571
+ * @final
13572
+ */
13573
+
13574
+ function isValidElement(object) {
13575
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
13576
+ }
13577
+
13578
+ var SEPARATOR = '.';
13579
+ var SUBSEPARATOR = ':';
13580
+ /**
13581
+ * Escape and wrap key so it is safe to use as a reactid
13582
+ *
13583
+ * @param {string} key to be escaped.
13584
+ * @return {string} the escaped key.
13585
+ */
13586
+
13587
+ function escape(key) {
13588
+ var escapeRegex = /[=:]/g;
13589
+ var escaperLookup = {
13590
+ '=': '=0',
13591
+ ':': '=2'
13592
+ };
13593
+ var escapedString = key.replace(escapeRegex, function (match) {
13594
+ return escaperLookup[match];
13595
+ });
13596
+ return '$' + escapedString;
13597
+ }
13598
+ /**
13599
+ * TODO: Test that a single child and an array with one item have the same key
13600
+ * pattern.
13601
+ */
13602
+
13603
+
13604
+ var didWarnAboutMaps = false;
13605
+ var userProvidedKeyEscapeRegex = /\/+/g;
13606
+
13607
+ function escapeUserProvidedKey(text) {
13608
+ return text.replace(userProvidedKeyEscapeRegex, '$&/');
13609
+ }
13610
+ /**
13611
+ * Generate a key string that identifies a element within a set.
13612
+ *
13613
+ * @param {*} element A element that could contain a manual key.
13614
+ * @param {number} index Index that is used if a manual key is not provided.
13615
+ * @return {string}
13616
+ */
13617
+
13618
+
13619
+ function getElementKey(element, index) {
13620
+ // Do some typechecking here since we call this blindly. We want to ensure
13621
+ // that we don't block potential future ES APIs.
13622
+ if (typeof element === 'object' && element !== null && element.key != null) {
13623
+ // Explicit key
13624
+ return escape('' + element.key);
13625
+ } // Implicit key determined by the index in the set
13626
+
13627
+
13628
+ return index.toString(36);
13629
+ }
13630
+
13631
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
13632
+ var type = typeof children;
13633
+
13634
+ if (type === 'undefined' || type === 'boolean') {
13635
+ // All of the above are perceived as null.
13636
+ children = null;
13637
+ }
13638
+
13639
+ var invokeCallback = false;
13640
+
13641
+ if (children === null) {
13642
+ invokeCallback = true;
13643
+ } else {
13644
+ switch (type) {
13645
+ case 'string':
13646
+ case 'number':
13647
+ invokeCallback = true;
13648
+ break;
13649
+
13650
+ case 'object':
13651
+ switch (children.$$typeof) {
13652
+ case REACT_ELEMENT_TYPE:
13653
+ case REACT_PORTAL_TYPE:
13654
+ invokeCallback = true;
13655
+ }
13656
+
13657
+ }
13658
+ }
13659
+
13660
+ if (invokeCallback) {
13661
+ var _child = children;
13662
+ var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
13663
+ // so that it's consistent if the number of children grows:
13664
+
13665
+ var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
13666
+
13667
+ if (Array.isArray(mappedChild)) {
13668
+ var escapedChildKey = '';
13669
+
13670
+ if (childKey != null) {
13671
+ escapedChildKey = escapeUserProvidedKey(childKey) + '/';
13672
+ }
13673
+
13674
+ mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
13675
+ return c;
13676
+ });
13677
+ } else if (mappedChild != null) {
13678
+ if (isValidElement(mappedChild)) {
13679
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
13680
+ // traverseAllChildren used to do for objects as children
13681
+ escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
13682
+ mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
13683
+ escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
13684
+ }
13685
+
13686
+ array.push(mappedChild);
13687
+ }
13688
+
13689
+ return 1;
13690
+ }
13691
+
13692
+ var child;
13693
+ var nextName;
13694
+ var subtreeCount = 0; // Count of children found in the current subtree.
13695
+
13696
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
13697
+
13698
+ if (Array.isArray(children)) {
13699
+ for (var i = 0; i < children.length; i++) {
13700
+ child = children[i];
13701
+ nextName = nextNamePrefix + getElementKey(child, i);
13702
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
13703
+ }
13704
+ } else {
13705
+ var iteratorFn = getIteratorFn(children);
13706
+
13707
+ if (typeof iteratorFn === 'function') {
13708
+ var iterableChildren = children;
13709
+
13710
+ {
13711
+ // Warn about using Maps as children
13712
+ if (iteratorFn === iterableChildren.entries) {
13713
+ if (!didWarnAboutMaps) {
13714
+ warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
13715
+ }
13716
+
13717
+ didWarnAboutMaps = true;
13718
+ }
13719
+ }
13720
+
13721
+ var iterator = iteratorFn.call(iterableChildren);
13722
+ var step;
13723
+ var ii = 0;
13724
+
13725
+ while (!(step = iterator.next()).done) {
13726
+ child = step.value;
13727
+ nextName = nextNamePrefix + getElementKey(child, ii++);
13728
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
13729
+ }
13730
+ } else if (type === 'object') {
13731
+ var childrenString = '' + children;
13732
+
13733
+ {
13734
+ {
13735
+ throw Error( "Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). If you meant to render a collection of children, use an array instead." );
13736
+ }
13737
+ }
13738
+ }
13739
+ }
13740
+
13741
+ return subtreeCount;
13742
+ }
13743
+
13744
+ /**
13745
+ * Maps children that are typically specified as `props.children`.
13746
+ *
13747
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
13748
+ *
13749
+ * The provided mapFunction(child, index) will be called for each
13750
+ * leaf child.
13751
+ *
13752
+ * @param {?*} children Children tree container.
13753
+ * @param {function(*, int)} func The map function.
13754
+ * @param {*} context Context for mapFunction.
13755
+ * @return {object} Object containing the ordered map of results.
13756
+ */
13757
+ function mapChildren(children, func, context) {
13758
+ if (children == null) {
13759
+ return children;
13760
+ }
13761
+
13762
+ var result = [];
13763
+ var count = 0;
13764
+ mapIntoArray(children, result, '', '', function (child) {
13765
+ return func.call(context, child, count++);
13766
+ });
13767
+ return result;
13768
+ }
13769
+ /**
13770
+ * Count the number of children that are typically specified as
13771
+ * `props.children`.
13772
+ *
13773
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
13774
+ *
13775
+ * @param {?*} children Children tree container.
13776
+ * @return {number} The number of children.
13777
+ */
13778
+
13779
+
13780
+ function countChildren(children) {
13781
+ var n = 0;
13782
+ mapChildren(children, function () {
13783
+ n++; // Don't return anything
13784
+ });
13785
+ return n;
13786
+ }
13787
+
13788
+ /**
13789
+ * Iterates through children that are typically specified as `props.children`.
13790
+ *
13791
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
13792
+ *
13793
+ * The provided forEachFunc(child, index) will be called for each
13794
+ * leaf child.
13795
+ *
13796
+ * @param {?*} children Children tree container.
13797
+ * @param {function(*, int)} forEachFunc
13798
+ * @param {*} forEachContext Context for forEachContext.
13799
+ */
13800
+ function forEachChildren(children, forEachFunc, forEachContext) {
13801
+ mapChildren(children, function () {
13802
+ forEachFunc.apply(this, arguments); // Don't return anything.
13803
+ }, forEachContext);
13804
+ }
13805
+ /**
13806
+ * Flatten a children object (typically specified as `props.children`) and
13807
+ * return an array with appropriately re-keyed children.
13808
+ *
13809
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
13810
+ */
13811
+
13812
+
13813
+ function toArray(children) {
13814
+ return mapChildren(children, function (child) {
13815
+ return child;
13816
+ }) || [];
13817
+ }
13818
+ /**
13819
+ * Returns the first child in a collection of children and verifies that there
13820
+ * is only one child in the collection.
13821
+ *
13822
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
13823
+ *
13824
+ * The current implementation of this function assumes that a single child gets
13825
+ * passed without a wrapper, but the purpose of this helper function is to
13826
+ * abstract away the particular structure of children.
13827
+ *
13828
+ * @param {?object} children Child collection structure.
13829
+ * @return {ReactElement} The first and only `ReactElement` contained in the
13830
+ * structure.
13831
+ */
13832
+
13833
+
13834
+ function onlyChild(children) {
13835
+ if (!isValidElement(children)) {
13836
+ {
13837
+ throw Error( "React.Children.only expected to receive a single React element child." );
13838
+ }
13839
+ }
13840
+
13841
+ return children;
13842
+ }
13843
+
13844
+ function createContext(defaultValue, calculateChangedBits) {
13845
+ if (calculateChangedBits === undefined) {
13846
+ calculateChangedBits = null;
13847
+ } else {
13848
+ {
13849
+ if (calculateChangedBits !== null && typeof calculateChangedBits !== 'function') {
13850
+ error('createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
13851
+ }
13852
+ }
13853
+ }
13854
+
13855
+ var context = {
13856
+ $$typeof: REACT_CONTEXT_TYPE,
13857
+ _calculateChangedBits: calculateChangedBits,
13858
+ // As a workaround to support multiple concurrent renderers, we categorize
13859
+ // some renderers as primary and others as secondary. We only expect
13860
+ // there to be two concurrent renderers at most: React Native (primary) and
13861
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
13862
+ // Secondary renderers store their context values on separate fields.
13863
+ _currentValue: defaultValue,
13864
+ _currentValue2: defaultValue,
13865
+ // Used to track how many concurrent renderers this context currently
13866
+ // supports within in a single renderer. Such as parallel server rendering.
13867
+ _threadCount: 0,
13868
+ // These are circular
13869
+ Provider: null,
13870
+ Consumer: null
13871
+ };
13872
+ context.Provider = {
13873
+ $$typeof: REACT_PROVIDER_TYPE,
13874
+ _context: context
13875
+ };
13876
+ var hasWarnedAboutUsingNestedContextConsumers = false;
13877
+ var hasWarnedAboutUsingConsumerProvider = false;
13878
+ var hasWarnedAboutDisplayNameOnConsumer = false;
13879
+
13880
+ {
13881
+ // A separate object, but proxies back to the original context object for
13882
+ // backwards compatibility. It has a different $$typeof, so we can properly
13883
+ // warn for the incorrect usage of Context as a Consumer.
13884
+ var Consumer = {
13885
+ $$typeof: REACT_CONTEXT_TYPE,
13886
+ _context: context,
13887
+ _calculateChangedBits: context._calculateChangedBits
13888
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
13889
+
13890
+ Object.defineProperties(Consumer, {
13891
+ Provider: {
13892
+ get: function () {
13893
+ if (!hasWarnedAboutUsingConsumerProvider) {
13894
+ hasWarnedAboutUsingConsumerProvider = true;
13895
+
13896
+ error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
13897
+ }
13898
+
13899
+ return context.Provider;
13900
+ },
13901
+ set: function (_Provider) {
13902
+ context.Provider = _Provider;
13903
+ }
13904
+ },
13905
+ _currentValue: {
13906
+ get: function () {
13907
+ return context._currentValue;
13908
+ },
13909
+ set: function (_currentValue) {
13910
+ context._currentValue = _currentValue;
13911
+ }
13912
+ },
13913
+ _currentValue2: {
13914
+ get: function () {
13915
+ return context._currentValue2;
13916
+ },
13917
+ set: function (_currentValue2) {
13918
+ context._currentValue2 = _currentValue2;
13919
+ }
13920
+ },
13921
+ _threadCount: {
13922
+ get: function () {
13923
+ return context._threadCount;
13924
+ },
13925
+ set: function (_threadCount) {
13926
+ context._threadCount = _threadCount;
13927
+ }
13928
+ },
13929
+ Consumer: {
13930
+ get: function () {
13931
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
13932
+ hasWarnedAboutUsingNestedContextConsumers = true;
13933
+
13934
+ error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
13935
+ }
13936
+
13937
+ return context.Consumer;
13938
+ }
13939
+ },
13940
+ displayName: {
13941
+ get: function () {
13942
+ return context.displayName;
13943
+ },
13944
+ set: function (displayName) {
13945
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
13946
+ warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
13947
+
13948
+ hasWarnedAboutDisplayNameOnConsumer = true;
13949
+ }
13950
+ }
13951
+ }
13952
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
13953
+
13954
+ context.Consumer = Consumer;
13955
+ }
13956
+
13957
+ {
13958
+ context._currentRenderer = null;
13959
+ context._currentRenderer2 = null;
13960
+ }
13961
+
13962
+ return context;
13963
+ }
13964
+
13965
+ var Uninitialized = -1;
13966
+ var Pending = 0;
13967
+ var Resolved = 1;
13968
+ var Rejected = 2;
13969
+
13970
+ function lazyInitializer(payload) {
13971
+ if (payload._status === Uninitialized) {
13972
+ var ctor = payload._result;
13973
+ var thenable = ctor(); // Transition to the next state.
13974
+
13975
+ var pending = payload;
13976
+ pending._status = Pending;
13977
+ pending._result = thenable;
13978
+ thenable.then(function (moduleObject) {
13979
+ if (payload._status === Pending) {
13980
+ var defaultExport = moduleObject.default;
13981
+
13982
+ {
13983
+ if (defaultExport === undefined) {
13984
+ error('lazy: Expected the result of a dynamic import() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
13985
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
13986
+ }
13987
+ } // Transition to the next state.
13988
+
13989
+
13990
+ var resolved = payload;
13991
+ resolved._status = Resolved;
13992
+ resolved._result = defaultExport;
13993
+ }
13994
+ }, function (error) {
13995
+ if (payload._status === Pending) {
13996
+ // Transition to the next state.
13997
+ var rejected = payload;
13998
+ rejected._status = Rejected;
13999
+ rejected._result = error;
14000
+ }
14001
+ });
14002
+ }
14003
+
14004
+ if (payload._status === Resolved) {
14005
+ return payload._result;
14006
+ } else {
14007
+ throw payload._result;
14008
+ }
14009
+ }
14010
+
14011
+ function lazy(ctor) {
14012
+ var payload = {
14013
+ // We use these fields to store the result.
14014
+ _status: -1,
14015
+ _result: ctor
14016
+ };
14017
+ var lazyType = {
14018
+ $$typeof: REACT_LAZY_TYPE,
14019
+ _payload: payload,
14020
+ _init: lazyInitializer
14021
+ };
14022
+
14023
+ {
14024
+ // In production, this would just set it on the object.
14025
+ var defaultProps;
14026
+ var propTypes; // $FlowFixMe
14027
+
14028
+ Object.defineProperties(lazyType, {
14029
+ defaultProps: {
14030
+ configurable: true,
14031
+ get: function () {
14032
+ return defaultProps;
14033
+ },
14034
+ set: function (newDefaultProps) {
14035
+ error('React.lazy(...): It is not supported to assign `defaultProps` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
14036
+
14037
+ defaultProps = newDefaultProps; // Match production behavior more closely:
14038
+ // $FlowFixMe
14039
+
14040
+ Object.defineProperty(lazyType, 'defaultProps', {
14041
+ enumerable: true
14042
+ });
14043
+ }
14044
+ },
14045
+ propTypes: {
14046
+ configurable: true,
14047
+ get: function () {
14048
+ return propTypes;
14049
+ },
14050
+ set: function (newPropTypes) {
14051
+ error('React.lazy(...): It is not supported to assign `propTypes` to ' + 'a lazy component import. Either specify them where the component ' + 'is defined, or create a wrapping component around it.');
14052
+
14053
+ propTypes = newPropTypes; // Match production behavior more closely:
14054
+ // $FlowFixMe
14055
+
14056
+ Object.defineProperty(lazyType, 'propTypes', {
14057
+ enumerable: true
14058
+ });
14059
+ }
14060
+ }
14061
+ });
14062
+ }
14063
+
14064
+ return lazyType;
14065
+ }
14066
+
14067
+ function forwardRef(render) {
14068
+ {
14069
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
14070
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
14071
+ } else if (typeof render !== 'function') {
14072
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
14073
+ } else {
14074
+ if (render.length !== 0 && render.length !== 2) {
14075
+ error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
14076
+ }
14077
+ }
14078
+
14079
+ if (render != null) {
14080
+ if (render.defaultProps != null || render.propTypes != null) {
14081
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
14082
+ }
14083
+ }
14084
+ }
14085
+
14086
+ var elementType = {
14087
+ $$typeof: REACT_FORWARD_REF_TYPE,
14088
+ render: render
14089
+ };
14090
+
14091
+ {
14092
+ var ownName;
14093
+ Object.defineProperty(elementType, 'displayName', {
14094
+ enumerable: false,
14095
+ configurable: true,
14096
+ get: function () {
14097
+ return ownName;
14098
+ },
14099
+ set: function (name) {
14100
+ ownName = name;
14101
+
14102
+ if (render.displayName == null) {
14103
+ render.displayName = name;
14104
+ }
14105
+ }
14106
+ });
14107
+ }
14108
+
14109
+ return elementType;
14110
+ }
14111
+
14112
+ // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
14113
+
14114
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
14115
+
14116
+ function isValidElementType(type) {
14117
+ if (typeof type === 'string' || typeof type === 'function') {
14118
+ return true;
14119
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
14120
+
14121
+
14122
+ if (type === exports.Fragment || type === exports.Profiler || type === REACT_DEBUG_TRACING_MODE_TYPE || type === exports.StrictMode || type === exports.Suspense || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
14123
+ return true;
14124
+ }
14125
+
14126
+ if (typeof type === 'object' && type !== null) {
14127
+ if (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_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
14128
+ return true;
14129
+ }
14130
+ }
14131
+
14132
+ return false;
14133
+ }
14134
+
14135
+ function memo(type, compare) {
14136
+ {
14137
+ if (!isValidElementType(type)) {
14138
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
14139
+ }
14140
+ }
14141
+
14142
+ var elementType = {
14143
+ $$typeof: REACT_MEMO_TYPE,
14144
+ type: type,
14145
+ compare: compare === undefined ? null : compare
14146
+ };
14147
+
14148
+ {
14149
+ var ownName;
14150
+ Object.defineProperty(elementType, 'displayName', {
14151
+ enumerable: false,
14152
+ configurable: true,
14153
+ get: function () {
14154
+ return ownName;
14155
+ },
14156
+ set: function (name) {
14157
+ ownName = name;
14158
+
14159
+ if (type.displayName == null) {
14160
+ type.displayName = name;
14161
+ }
14162
+ }
14163
+ });
14164
+ }
14165
+
14166
+ return elementType;
14167
+ }
14168
+
14169
+ function resolveDispatcher() {
14170
+ var dispatcher = ReactCurrentDispatcher.current;
14171
+
14172
+ if (!(dispatcher !== null)) {
14173
+ {
14174
+ throw Error( "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem." );
14175
+ }
14176
+ }
14177
+
14178
+ return dispatcher;
14179
+ }
14180
+
14181
+ function useContext(Context, unstable_observedBits) {
14182
+ var dispatcher = resolveDispatcher();
14183
+
14184
+ {
14185
+ if (unstable_observedBits !== undefined) {
14186
+ error('useContext() second argument is reserved for future ' + 'use in React. Passing it is not supported. ' + 'You passed: %s.%s', unstable_observedBits, typeof unstable_observedBits === 'number' && Array.isArray(arguments[2]) ? '\n\nDid you call array.map(useContext)? ' + 'Calling Hooks inside a loop is not supported. ' + 'Learn more at https://reactjs.org/link/rules-of-hooks' : '');
14187
+ } // TODO: add a more generic warning for invalid values.
14188
+
14189
+
14190
+ if (Context._context !== undefined) {
14191
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
14192
+ // and nobody should be using this in existing code.
14193
+
14194
+ if (realContext.Consumer === Context) {
14195
+ error('Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
14196
+ } else if (realContext.Provider === Context) {
14197
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
14198
+ }
14199
+ }
14200
+ }
14201
+
14202
+ return dispatcher.useContext(Context, unstable_observedBits);
14203
+ }
14204
+ function useState(initialState) {
14205
+ var dispatcher = resolveDispatcher();
14206
+ return dispatcher.useState(initialState);
14207
+ }
14208
+ function useReducer(reducer, initialArg, init) {
14209
+ var dispatcher = resolveDispatcher();
14210
+ return dispatcher.useReducer(reducer, initialArg, init);
14211
+ }
14212
+ function useRef(initialValue) {
14213
+ var dispatcher = resolveDispatcher();
14214
+ return dispatcher.useRef(initialValue);
14215
+ }
14216
+ function useEffect(create, deps) {
14217
+ var dispatcher = resolveDispatcher();
14218
+ return dispatcher.useEffect(create, deps);
14219
+ }
14220
+ function useLayoutEffect(create, deps) {
14221
+ var dispatcher = resolveDispatcher();
14222
+ return dispatcher.useLayoutEffect(create, deps);
14223
+ }
14224
+ function useCallback(callback, deps) {
14225
+ var dispatcher = resolveDispatcher();
14226
+ return dispatcher.useCallback(callback, deps);
14227
+ }
14228
+ function useMemo(create, deps) {
14229
+ var dispatcher = resolveDispatcher();
14230
+ return dispatcher.useMemo(create, deps);
14231
+ }
14232
+ function useImperativeHandle(ref, create, deps) {
14233
+ var dispatcher = resolveDispatcher();
14234
+ return dispatcher.useImperativeHandle(ref, create, deps);
14235
+ }
14236
+ function useDebugValue(value, formatterFn) {
14237
+ {
14238
+ var dispatcher = resolveDispatcher();
14239
+ return dispatcher.useDebugValue(value, formatterFn);
14240
+ }
14241
+ }
14242
+
14243
+ // Helpers to patch console.logs to avoid logging during side-effect free
14244
+ // replaying on render function. This currently only patches the object
14245
+ // lazily which won't cover if the log function was extracted eagerly.
14246
+ // We could also eagerly patch the method.
14247
+ var disabledDepth = 0;
14248
+ var prevLog;
14249
+ var prevInfo;
14250
+ var prevWarn;
14251
+ var prevError;
14252
+ var prevGroup;
14253
+ var prevGroupCollapsed;
14254
+ var prevGroupEnd;
14255
+
14256
+ function disabledLog() {}
14257
+
14258
+ disabledLog.__reactDisabledLog = true;
14259
+ function disableLogs() {
14260
+ {
14261
+ if (disabledDepth === 0) {
14262
+ /* eslint-disable react-internal/no-production-logging */
14263
+ prevLog = console.log;
14264
+ prevInfo = console.info;
14265
+ prevWarn = console.warn;
14266
+ prevError = console.error;
14267
+ prevGroup = console.group;
14268
+ prevGroupCollapsed = console.groupCollapsed;
14269
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
14270
+
14271
+ var props = {
14272
+ configurable: true,
14273
+ enumerable: true,
14274
+ value: disabledLog,
14275
+ writable: true
14276
+ }; // $FlowFixMe Flow thinks console is immutable.
14277
+
14278
+ Object.defineProperties(console, {
14279
+ info: props,
14280
+ log: props,
14281
+ warn: props,
14282
+ error: props,
14283
+ group: props,
14284
+ groupCollapsed: props,
14285
+ groupEnd: props
14286
+ });
14287
+ /* eslint-enable react-internal/no-production-logging */
14288
+ }
14289
+
14290
+ disabledDepth++;
14291
+ }
14292
+ }
14293
+ function reenableLogs() {
14294
+ {
14295
+ disabledDepth--;
14296
+
14297
+ if (disabledDepth === 0) {
14298
+ /* eslint-disable react-internal/no-production-logging */
14299
+ var props = {
14300
+ configurable: true,
14301
+ enumerable: true,
14302
+ writable: true
14303
+ }; // $FlowFixMe Flow thinks console is immutable.
14304
+
14305
+ Object.defineProperties(console, {
14306
+ log: _assign({}, props, {
14307
+ value: prevLog
14308
+ }),
14309
+ info: _assign({}, props, {
14310
+ value: prevInfo
14311
+ }),
14312
+ warn: _assign({}, props, {
14313
+ value: prevWarn
14314
+ }),
14315
+ error: _assign({}, props, {
14316
+ value: prevError
14317
+ }),
14318
+ group: _assign({}, props, {
14319
+ value: prevGroup
14320
+ }),
14321
+ groupCollapsed: _assign({}, props, {
14322
+ value: prevGroupCollapsed
14323
+ }),
14324
+ groupEnd: _assign({}, props, {
14325
+ value: prevGroupEnd
14326
+ })
14327
+ });
14328
+ /* eslint-enable react-internal/no-production-logging */
14329
+ }
14330
+
14331
+ if (disabledDepth < 0) {
14332
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
14333
+ }
14334
+ }
14335
+ }
14336
+
14337
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
14338
+ var prefix;
14339
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
14340
+ {
14341
+ if (prefix === undefined) {
14342
+ // Extract the VM specific prefix used by each line.
14343
+ try {
14344
+ throw Error();
14345
+ } catch (x) {
14346
+ var match = x.stack.trim().match(/\n( *(at )?)/);
14347
+ prefix = match && match[1] || '';
14348
+ }
14349
+ } // We use the prefix to ensure our stacks line up with native stack frames.
14350
+
14351
+
14352
+ return '\n' + prefix + name;
14353
+ }
14354
+ }
14355
+ var reentry = false;
14356
+ var componentFrameCache;
14357
+
14358
+ {
14359
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
14360
+ componentFrameCache = new PossiblyWeakMap();
14361
+ }
14362
+
14363
+ function describeNativeComponentFrame(fn, construct) {
14364
+ // If something asked for a stack inside a fake render, it should get ignored.
14365
+ if (!fn || reentry) {
14366
+ return '';
14367
+ }
14368
+
14369
+ {
14370
+ var frame = componentFrameCache.get(fn);
14371
+
14372
+ if (frame !== undefined) {
14373
+ return frame;
14374
+ }
14375
+ }
14376
+
14377
+ var control;
14378
+ reentry = true;
14379
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
14380
+
14381
+ Error.prepareStackTrace = undefined;
14382
+ var previousDispatcher;
14383
+
14384
+ {
14385
+ previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
14386
+ // for warnings.
14387
+
14388
+ ReactCurrentDispatcher$1.current = null;
14389
+ disableLogs();
14390
+ }
14391
+
14392
+ try {
14393
+ // This should throw.
14394
+ if (construct) {
14395
+ // Something should be setting the props in the constructor.
14396
+ var Fake = function () {
14397
+ throw Error();
14398
+ }; // $FlowFixMe
14399
+
14400
+
14401
+ Object.defineProperty(Fake.prototype, 'props', {
14402
+ set: function () {
14403
+ // We use a throwing setter instead of frozen or non-writable props
14404
+ // because that won't throw in a non-strict mode function.
14405
+ throw Error();
14406
+ }
14407
+ });
14408
+
14409
+ if (typeof Reflect === 'object' && Reflect.construct) {
14410
+ // We construct a different control for this case to include any extra
14411
+ // frames added by the construct call.
14412
+ try {
14413
+ Reflect.construct(Fake, []);
14414
+ } catch (x) {
14415
+ control = x;
14416
+ }
14417
+
14418
+ Reflect.construct(fn, [], Fake);
14419
+ } else {
14420
+ try {
14421
+ Fake.call();
14422
+ } catch (x) {
14423
+ control = x;
14424
+ }
14425
+
14426
+ fn.call(Fake.prototype);
14427
+ }
14428
+ } else {
14429
+ try {
14430
+ throw Error();
14431
+ } catch (x) {
14432
+ control = x;
14433
+ }
14434
+
14435
+ fn();
14436
+ }
14437
+ } catch (sample) {
14438
+ // This is inlined manually because closure doesn't do it for us.
14439
+ if (sample && control && typeof sample.stack === 'string') {
14440
+ // This extracts the first frame from the sample that isn't also in the control.
14441
+ // Skipping one frame that we assume is the frame that calls the two.
14442
+ var sampleLines = sample.stack.split('\n');
14443
+ var controlLines = control.stack.split('\n');
14444
+ var s = sampleLines.length - 1;
14445
+ var c = controlLines.length - 1;
14446
+
14447
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
14448
+ // We expect at least one stack frame to be shared.
14449
+ // Typically this will be the root most one. However, stack frames may be
14450
+ // cut off due to maximum stack limits. In this case, one maybe cut off
14451
+ // earlier than the other. We assume that the sample is longer or the same
14452
+ // and there for cut off earlier. So we should find the root most frame in
14453
+ // the sample somewhere in the control.
14454
+ c--;
14455
+ }
14456
+
14457
+ for (; s >= 1 && c >= 0; s--, c--) {
14458
+ // Next we find the first one that isn't the same which should be the
14459
+ // frame that called our sample function and the control.
14460
+ if (sampleLines[s] !== controlLines[c]) {
14461
+ // In V8, the first line is describing the message but other VMs don't.
14462
+ // If we're about to return the first line, and the control is also on the same
14463
+ // line, that's a pretty good indicator that our sample threw at same line as
14464
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
14465
+ // This can happen if you passed a class to function component, or non-function.
14466
+ if (s !== 1 || c !== 1) {
14467
+ do {
14468
+ s--;
14469
+ c--; // We may still have similar intermediate frames from the construct call.
14470
+ // The next one that isn't the same should be our match though.
14471
+
14472
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
14473
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
14474
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
14475
+
14476
+ {
14477
+ if (typeof fn === 'function') {
14478
+ componentFrameCache.set(fn, _frame);
14479
+ }
14480
+ } // Return the line we found.
14481
+
14482
+
14483
+ return _frame;
14484
+ }
14485
+ } while (s >= 1 && c >= 0);
14486
+ }
14487
+
14488
+ break;
14489
+ }
14490
+ }
14491
+ }
14492
+ } finally {
14493
+ reentry = false;
14494
+
14495
+ {
14496
+ ReactCurrentDispatcher$1.current = previousDispatcher;
14497
+ reenableLogs();
14498
+ }
14499
+
14500
+ Error.prepareStackTrace = previousPrepareStackTrace;
14501
+ } // Fallback to just using the name if we couldn't make it throw.
14502
+
14503
+
14504
+ var name = fn ? fn.displayName || fn.name : '';
14505
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
14506
+
14507
+ {
14508
+ if (typeof fn === 'function') {
14509
+ componentFrameCache.set(fn, syntheticFrame);
14510
+ }
14511
+ }
14512
+
14513
+ return syntheticFrame;
14514
+ }
14515
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
14516
+ {
14517
+ return describeNativeComponentFrame(fn, false);
14518
+ }
14519
+ }
14520
+
14521
+ function shouldConstruct(Component) {
14522
+ var prototype = Component.prototype;
14523
+ return !!(prototype && prototype.isReactComponent);
14524
+ }
14525
+
14526
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
14527
+
14528
+ if (type == null) {
14529
+ return '';
14530
+ }
14531
+
14532
+ if (typeof type === 'function') {
14533
+ {
14534
+ return describeNativeComponentFrame(type, shouldConstruct(type));
14535
+ }
14536
+ }
14537
+
14538
+ if (typeof type === 'string') {
14539
+ return describeBuiltInComponentFrame(type);
14540
+ }
14541
+
14542
+ switch (type) {
14543
+ case exports.Suspense:
14544
+ return describeBuiltInComponentFrame('Suspense');
14545
+
14546
+ case REACT_SUSPENSE_LIST_TYPE:
14547
+ return describeBuiltInComponentFrame('SuspenseList');
14548
+ }
14549
+
14550
+ if (typeof type === 'object') {
14551
+ switch (type.$$typeof) {
14552
+ case REACT_FORWARD_REF_TYPE:
14553
+ return describeFunctionComponentFrame(type.render);
14554
+
14555
+ case REACT_MEMO_TYPE:
14556
+ // Memo may contain any component type so we recursively resolve it.
14557
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
14558
+
14559
+ case REACT_BLOCK_TYPE:
14560
+ return describeFunctionComponentFrame(type._render);
14561
+
14562
+ case REACT_LAZY_TYPE:
14563
+ {
14564
+ var lazyComponent = type;
14565
+ var payload = lazyComponent._payload;
14566
+ var init = lazyComponent._init;
14567
+
14568
+ try {
14569
+ // Lazy may contain any component type so we recursively resolve it.
14570
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
14571
+ } catch (x) {}
14572
+ }
14573
+ }
14574
+ }
14575
+
14576
+ return '';
14577
+ }
14578
+
14579
+ var loggedTypeFailures = {};
14580
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
14581
+
14582
+ function setCurrentlyValidatingElement(element) {
14583
+ {
14584
+ if (element) {
14585
+ var owner = element._owner;
14586
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
14587
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
14588
+ } else {
14589
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
14590
+ }
14591
+ }
14592
+ }
14593
+
14594
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
14595
+ {
14596
+ // $FlowFixMe This is okay but Flow doesn't know it.
14597
+ var has = Function.call.bind(Object.prototype.hasOwnProperty);
14598
+
14599
+ for (var typeSpecName in typeSpecs) {
14600
+ if (has(typeSpecs, typeSpecName)) {
14601
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
14602
+ // fail the render phase where it didn't fail before. So we log it.
14603
+ // After these have been cleaned up, we'll let them throw.
14604
+
14605
+ try {
14606
+ // This is intentionally an invariant that gets caught. It's the same
14607
+ // behavior as without this statement except with a better message.
14608
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
14609
+ var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
14610
+ err.name = 'Invariant Violation';
14611
+ throw err;
14612
+ }
14613
+
14614
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
14615
+ } catch (ex) {
14616
+ error$1 = ex;
14617
+ }
14618
+
14619
+ if (error$1 && !(error$1 instanceof Error)) {
14620
+ setCurrentlyValidatingElement(element);
14621
+
14622
+ error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
14623
+
14624
+ setCurrentlyValidatingElement(null);
14625
+ }
14626
+
14627
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
14628
+ // Only monitor this failure once because there tends to be a lot of the
14629
+ // same error.
14630
+ loggedTypeFailures[error$1.message] = true;
14631
+ setCurrentlyValidatingElement(element);
14632
+
14633
+ error('Failed %s type: %s', location, error$1.message);
14634
+
14635
+ setCurrentlyValidatingElement(null);
14636
+ }
14637
+ }
14638
+ }
14639
+ }
14640
+ }
14641
+
14642
+ function setCurrentlyValidatingElement$1(element) {
14643
+ {
14644
+ if (element) {
14645
+ var owner = element._owner;
14646
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
14647
+ setExtraStackFrame(stack);
14648
+ } else {
14649
+ setExtraStackFrame(null);
14650
+ }
14651
+ }
14652
+ }
14653
+
14654
+ var propTypesMisspellWarningShown;
14655
+
14656
+ {
14657
+ propTypesMisspellWarningShown = false;
14658
+ }
14659
+
14660
+ function getDeclarationErrorAddendum() {
14661
+ if (ReactCurrentOwner.current) {
14662
+ var name = getComponentName(ReactCurrentOwner.current.type);
14663
+
14664
+ if (name) {
14665
+ return '\n\nCheck the render method of `' + name + '`.';
14666
+ }
14667
+ }
14668
+
14669
+ return '';
14670
+ }
14671
+
14672
+ function getSourceInfoErrorAddendum(source) {
14673
+ if (source !== undefined) {
14674
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
14675
+ var lineNumber = source.lineNumber;
14676
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
14677
+ }
14678
+
14679
+ return '';
14680
+ }
14681
+
14682
+ function getSourceInfoErrorAddendumForProps(elementProps) {
14683
+ if (elementProps !== null && elementProps !== undefined) {
14684
+ return getSourceInfoErrorAddendum(elementProps.__source);
14685
+ }
14686
+
14687
+ return '';
14688
+ }
14689
+ /**
14690
+ * Warn if there's no key explicitly set on dynamic arrays of children or
14691
+ * object keys are not valid. This allows us to keep track of children between
14692
+ * updates.
14693
+ */
14694
+
14695
+
14696
+ var ownerHasKeyUseWarning = {};
14697
+
14698
+ function getCurrentComponentErrorInfo(parentType) {
14699
+ var info = getDeclarationErrorAddendum();
14700
+
14701
+ if (!info) {
14702
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
14703
+
14704
+ if (parentName) {
14705
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
14706
+ }
14707
+ }
14708
+
14709
+ return info;
14710
+ }
14711
+ /**
14712
+ * Warn if the element doesn't have an explicit key assigned to it.
14713
+ * This element is in an array. The array could grow and shrink or be
14714
+ * reordered. All children that haven't already been validated are required to
14715
+ * have a "key" property assigned to it. Error statuses are cached so a warning
14716
+ * will only be shown once.
14717
+ *
14718
+ * @internal
14719
+ * @param {ReactElement} element Element that requires a key.
14720
+ * @param {*} parentType element's parent's type.
14721
+ */
14722
+
14723
+
14724
+ function validateExplicitKey(element, parentType) {
14725
+ if (!element._store || element._store.validated || element.key != null) {
14726
+ return;
14727
+ }
14728
+
14729
+ element._store.validated = true;
14730
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
14731
+
14732
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
14733
+ return;
14734
+ }
14735
+
14736
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
14737
+ // property, it may be the creator of the child that's responsible for
14738
+ // assigning it a key.
14739
+
14740
+ var childOwner = '';
14741
+
14742
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
14743
+ // Give the component that originally created this child.
14744
+ childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
14745
+ }
14746
+
14747
+ {
14748
+ setCurrentlyValidatingElement$1(element);
14749
+
14750
+ error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
14751
+
14752
+ setCurrentlyValidatingElement$1(null);
14753
+ }
14754
+ }
14755
+ /**
14756
+ * Ensure that every element either is passed in a static location, in an
14757
+ * array with an explicit keys property defined, or in an object literal
14758
+ * with valid key property.
14759
+ *
14760
+ * @internal
14761
+ * @param {ReactNode} node Statically passed child of any type.
14762
+ * @param {*} parentType node's parent's type.
14763
+ */
14764
+
14765
+
14766
+ function validateChildKeys(node, parentType) {
14767
+ if (typeof node !== 'object') {
14768
+ return;
14769
+ }
14770
+
14771
+ if (Array.isArray(node)) {
14772
+ for (var i = 0; i < node.length; i++) {
14773
+ var child = node[i];
14774
+
14775
+ if (isValidElement(child)) {
14776
+ validateExplicitKey(child, parentType);
14777
+ }
14778
+ }
14779
+ } else if (isValidElement(node)) {
14780
+ // This element was passed in a valid location.
14781
+ if (node._store) {
14782
+ node._store.validated = true;
14783
+ }
14784
+ } else if (node) {
14785
+ var iteratorFn = getIteratorFn(node);
14786
+
14787
+ if (typeof iteratorFn === 'function') {
14788
+ // Entry iterators used to provide implicit keys,
14789
+ // but now we print a separate warning for them later.
14790
+ if (iteratorFn !== node.entries) {
14791
+ var iterator = iteratorFn.call(node);
14792
+ var step;
14793
+
14794
+ while (!(step = iterator.next()).done) {
14795
+ if (isValidElement(step.value)) {
14796
+ validateExplicitKey(step.value, parentType);
14797
+ }
14798
+ }
14799
+ }
14800
+ }
14801
+ }
14802
+ }
14803
+ /**
14804
+ * Given an element, validate that its props follow the propTypes definition,
14805
+ * provided by the type.
14806
+ *
14807
+ * @param {ReactElement} element
14808
+ */
14809
+
14810
+
14811
+ function validatePropTypes(element) {
14812
+ {
14813
+ var type = element.type;
14814
+
14815
+ if (type === null || type === undefined || typeof type === 'string') {
14816
+ return;
14817
+ }
14818
+
14819
+ var propTypes;
14820
+
14821
+ if (typeof type === 'function') {
14822
+ propTypes = type.propTypes;
14823
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
14824
+ // Inner props are checked in the reconciler.
14825
+ type.$$typeof === REACT_MEMO_TYPE)) {
14826
+ propTypes = type.propTypes;
14827
+ } else {
14828
+ return;
14829
+ }
14830
+
14831
+ if (propTypes) {
14832
+ // Intentionally inside to avoid triggering lazy initializers:
14833
+ var name = getComponentName(type);
14834
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
14835
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
14836
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
14837
+
14838
+ var _name = getComponentName(type);
14839
+
14840
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
14841
+ }
14842
+
14843
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
14844
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
14845
+ }
14846
+ }
14847
+ }
14848
+ /**
14849
+ * Given a fragment, validate that it can only be provided with fragment props
14850
+ * @param {ReactElement} fragment
14851
+ */
14852
+
14853
+
14854
+ function validateFragmentProps(fragment) {
14855
+ {
14856
+ var keys = Object.keys(fragment.props);
14857
+
14858
+ for (var i = 0; i < keys.length; i++) {
14859
+ var key = keys[i];
14860
+
14861
+ if (key !== 'children' && key !== 'key') {
14862
+ setCurrentlyValidatingElement$1(fragment);
14863
+
14864
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
14865
+
14866
+ setCurrentlyValidatingElement$1(null);
14867
+ break;
14868
+ }
14869
+ }
14870
+
14871
+ if (fragment.ref !== null) {
14872
+ setCurrentlyValidatingElement$1(fragment);
14873
+
14874
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
14875
+
14876
+ setCurrentlyValidatingElement$1(null);
14877
+ }
14878
+ }
14879
+ }
14880
+ function createElementWithValidation(type, props, children) {
14881
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
14882
+ // succeed and there will likely be errors in render.
14883
+
14884
+ if (!validType) {
14885
+ var info = '';
14886
+
14887
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
14888
+ info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
14889
+ }
14890
+
14891
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
14892
+
14893
+ if (sourceInfo) {
14894
+ info += sourceInfo;
14895
+ } else {
14896
+ info += getDeclarationErrorAddendum();
14897
+ }
14898
+
14899
+ var typeString;
14900
+
14901
+ if (type === null) {
14902
+ typeString = 'null';
14903
+ } else if (Array.isArray(type)) {
14904
+ typeString = 'array';
14905
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
14906
+ typeString = "<" + (getComponentName(type.type) || 'Unknown') + " />";
14907
+ info = ' Did you accidentally export a JSX literal instead of a component?';
14908
+ } else {
14909
+ typeString = typeof type;
14910
+ }
14911
+
14912
+ {
14913
+ error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
14914
+ }
14915
+ }
14916
+
14917
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
14918
+ // TODO: Drop this when these are no longer allowed as the type argument.
14919
+
14920
+ if (element == null) {
14921
+ return element;
14922
+ } // Skip key warning if the type isn't valid since our key validation logic
14923
+ // doesn't expect a non-string/function type and can throw confusing errors.
14924
+ // We don't want exception behavior to differ between dev and prod.
14925
+ // (Rendering will throw with a helpful message and as soon as the type is
14926
+ // fixed, the key warnings will appear.)
14927
+
14928
+
14929
+ if (validType) {
14930
+ for (var i = 2; i < arguments.length; i++) {
14931
+ validateChildKeys(arguments[i], type);
14932
+ }
14933
+ }
14934
+
14935
+ if (type === exports.Fragment) {
14936
+ validateFragmentProps(element);
14937
+ } else {
14938
+ validatePropTypes(element);
14939
+ }
14940
+
14941
+ return element;
14942
+ }
14943
+ var didWarnAboutDeprecatedCreateFactory = false;
14944
+ function createFactoryWithValidation(type) {
14945
+ var validatedFactory = createElementWithValidation.bind(null, type);
14946
+ validatedFactory.type = type;
14947
+
14948
+ {
14949
+ if (!didWarnAboutDeprecatedCreateFactory) {
14950
+ didWarnAboutDeprecatedCreateFactory = true;
14951
+
14952
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
14953
+ } // Legacy hook: remove it
14954
+
14955
+
14956
+ Object.defineProperty(validatedFactory, 'type', {
14957
+ enumerable: false,
14958
+ get: function () {
14959
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
14960
+
14961
+ Object.defineProperty(this, 'type', {
14962
+ value: type
14963
+ });
14964
+ return type;
14965
+ }
14966
+ });
14967
+ }
14968
+
14969
+ return validatedFactory;
14970
+ }
14971
+ function cloneElementWithValidation(element, props, children) {
14972
+ var newElement = cloneElement.apply(this, arguments);
14973
+
14974
+ for (var i = 2; i < arguments.length; i++) {
14975
+ validateChildKeys(arguments[i], newElement.type);
14976
+ }
14977
+
14978
+ validatePropTypes(newElement);
14979
+ return newElement;
14980
+ }
14981
+
14982
+ {
14983
+
14984
+ try {
14985
+ var frozenObject = Object.freeze({});
14986
+ /* eslint-disable no-new */
14987
+
14988
+ new Map([[frozenObject, null]]);
14989
+ new Set([frozenObject]);
14990
+ /* eslint-enable no-new */
14991
+ } catch (e) {
14992
+ }
14993
+ }
14994
+
14995
+ var createElement$1 = createElementWithValidation ;
14996
+ var cloneElement$1 = cloneElementWithValidation ;
14997
+ var createFactory = createFactoryWithValidation ;
14998
+ var Children = {
14999
+ map: mapChildren,
15000
+ forEach: forEachChildren,
15001
+ count: countChildren,
15002
+ toArray: toArray,
15003
+ only: onlyChild
15004
+ };
15005
+
15006
+ exports.Children = Children;
15007
+ exports.Component = Component;
15008
+ exports.PureComponent = PureComponent;
15009
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
15010
+ exports.cloneElement = cloneElement$1;
15011
+ exports.createContext = createContext;
15012
+ exports.createElement = createElement$1;
15013
+ exports.createFactory = createFactory;
15014
+ exports.createRef = createRef;
15015
+ exports.forwardRef = forwardRef;
15016
+ exports.isValidElement = isValidElement;
15017
+ exports.lazy = lazy;
15018
+ exports.memo = memo;
15019
+ exports.useCallback = useCallback;
15020
+ exports.useContext = useContext;
15021
+ exports.useDebugValue = useDebugValue;
15022
+ exports.useEffect = useEffect;
15023
+ exports.useImperativeHandle = useImperativeHandle;
15024
+ exports.useLayoutEffect = useLayoutEffect;
15025
+ exports.useMemo = useMemo;
15026
+ exports.useReducer = useReducer;
15027
+ exports.useRef = useRef;
15028
+ exports.useState = useState;
15029
+ exports.version = ReactVersion;
15030
+ })();
15031
+ }
15032
+ });
15033
+
15034
+ createCommonjsModule(function (module) {
15035
+
15036
+ if (process.env.NODE_ENV === 'production') {
15037
+ module.exports = react_production_min;
15038
+ } else {
15039
+ module.exports = react_development;
15040
+ }
15041
+ });
12601
15042
 
12602
15043
  var masterQuery$6 = {
15044
+ // locationMasterEntityType: () => {
15045
+ // return {
15046
+ // db_name: _dbName,
15047
+
15048
+ // entity: "CodeableConceptMaster",
15049
+ // sort: "document(CodeableConceptMaster.coding[0]).display",
15050
+ // filter:
15051
+ // "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
15052
+ // return_fields:
15053
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
15054
+ // };
15055
+ // },
12603
15056
  locationMasterEntityType: function locationMasterEntityType() {
12604
15057
  return {
12605
15058
  db_name: _dbName,
12606
- entity: "CodeableConceptMaster",
12607
- sort: "document(CodeableConceptMaster.coding[0]).display",
12608
- filter: "CodeableConceptMaster.Type=='ORGTYPE' AND CodeableConceptMaster.activestatus==true",
12609
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
15059
+ queryid: "506a5dd7-e07d-4218-af28-10bd2e4c0016",
15060
+ filter: {
15061
+ type: "ORGTYPE",
15062
+ activestatus: true
15063
+ }
12610
15064
  };
12611
15065
  },
12612
- locationMasterEntityName: function locationMasterEntityName(type) {
12613
- // return {
12614
- // db_name: _dbName,
12615
- // entity: "Organization",
12616
- // filter:
12617
- // `'${type}' IN Organization.OrgType AND Organization.activestatus==true`,
12618
- // return_fields:
12619
- // "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}",
12620
- // }
15066
+ // locationMasterEntityName: (type) => {
15067
+ // return {
15068
+ // db_name: _dbName,
15069
+ // entity: "Organization",
15070
+ // sort: "Organization.name",
15071
+ // filter: `Organization.OrgType==['${type}'] && Organization.activestatus==true`,
15072
+ // return_fields:
15073
+ // "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}",
15074
+ // };
15075
+ // },
12621
15076
 
15077
+ locationMasterEntityName: function locationMasterEntityName(type) {
12622
15078
  return {
12623
- "db_name": _dbName,
12624
- "entity": "Organization",
12625
- "sort": "Organization.name",
12626
- "filter": "Organization.OrgType==['".concat(type, "'] && Organization.activestatus==true"),
12627
- "return_fields": "{id:Organization.id,name:Organization.name,_id:Organization._id,_key:Organization._key}"
15079
+ db_name: _dbName,
15080
+ queryid: "3265e287-5a0e-482d-a2e9-d6ee96e83c9a",
15081
+ filter: {
15082
+ orgType: type,
15083
+ activestatus: true
15084
+ }
12628
15085
  };
12629
15086
  },
15087
+ // locationMasterLocationType: () => {
15088
+ // return {
15089
+ // db_name: _dbName,
15090
+ // entity: "CodeableConceptMaster",
15091
+ // sort: "document(CodeableConceptMaster.coding[0]).display",
15092
+ // filter:
15093
+ // "CodeableConceptMaster.Type=='LOCATIONTYPE' AND CodeableConceptMaster.activestatus==true",
15094
+ // return_fields:
15095
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
15096
+ // };
15097
+ // },
15098
+
12630
15099
  locationMasterLocationType: function locationMasterLocationType() {
12631
15100
  return {
12632
15101
  db_name: _dbName,
12633
- entity: "CodeableConceptMaster",
12634
- sort: "document(CodeableConceptMaster.coding[0]).display",
12635
- filter: "CodeableConceptMaster.Type=='LOCATIONTYPE' AND CodeableConceptMaster.activestatus==true",
12636
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
15102
+ queryid: "506a5dd7-e07d-4218-af28-10bd2e4c0016",
15103
+ filter: {
15104
+ type: "LOCATIONTYPE",
15105
+ activestatus: true
15106
+ }
12637
15107
  };
12638
15108
  },
15109
+ // locationMasterOperationalStatus: () => {
15110
+ // return {
15111
+ // db_name: _dbName,
15112
+ // entity: "CodeableConceptMaster",
15113
+ // sort: "document(CodeableConceptMaster.coding[0]).display",
15114
+ // filter:
15115
+ // "CodeableConceptMaster.Type=='OPERATIONSTATUS' AND CodeableConceptMaster.activestatus==true",
15116
+ // return_fields:
15117
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
15118
+ // };
15119
+ // },
15120
+
12639
15121
  locationMasterOperationalStatus: function locationMasterOperationalStatus() {
12640
15122
  return {
12641
15123
  db_name: _dbName,
12642
- entity: "CodeableConceptMaster",
12643
- sort: "document(CodeableConceptMaster.coding[0]).display",
12644
- filter: "CodeableConceptMaster.Type=='OPERATIONSTATUS' AND CodeableConceptMaster.activestatus==true",
12645
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
15124
+ queryid: "506a5dd7-e07d-4218-af28-10bd2e4c0016",
15125
+ filter: {
15126
+ type: "OPERATIONSTATUS",
15127
+ activestatus: true
15128
+ }
12646
15129
  };
12647
15130
  },
15131
+ // locationMasterParentLocationIdDescription: () => {
15132
+ // return {
15133
+ // db_name: _dbName,
15134
+ // entity: "LocationMaster",
15135
+ // sort: "LocationMaster.locationID",
15136
+ // filter: "LocationMaster.activestatus==true",
15137
+ // return_fields:
15138
+ // "{_id:LocationMaster._id,_key:LocationMaster._key,id:LocationMaster.id,shortdesc:LocationMaster.shortdesc,longdesc:LocationMaster.longdesc,locationID:LocationMaster.locationID}",
15139
+ // };
15140
+ // },
15141
+
12648
15142
  locationMasterParentLocationIdDescription: function locationMasterParentLocationIdDescription() {
12649
15143
  return {
12650
15144
  db_name: _dbName,
12651
- entity: "LocationMaster",
12652
- sort: "LocationMaster.locationID",
12653
- filter: "LocationMaster.activestatus==true",
12654
- return_fields: "{_id:LocationMaster._id,_key:LocationMaster._key,id:LocationMaster.id,shortdesc:LocationMaster.shortdesc,longdesc:LocationMaster.longdesc,locationID:LocationMaster.locationID}"
15145
+ queryid: "ceb2a6c1-864f-4ea8-9308-6135d9355410",
15146
+ filter: {
15147
+ activestatus: true,
15148
+ sort: "locationID"
15149
+ }
12655
15150
  };
12656
15151
  },
12657
15152
  // locationMasterLocationRoleType: () => {
@@ -12663,68 +15158,136 @@ var masterQuery$6 = {
12663
15158
  // "{_id:LocationRoleType._id,_key:LocationRoleType._key,id:LocationRoleType.id,shortdesc:LocationRoleType.ShortDesc,longdesc:LocationRoleType.LongDesc}",
12664
15159
  // };
12665
15160
  // },
15161
+
15162
+ // locationMasterLocationRoleType: () => {
15163
+ // return {
15164
+ // db_name: _dbName,
15165
+ // entity: "CodingMaster",
15166
+ // sort: "CodingMaster.display",
15167
+ // filter:
15168
+ // "CodingMaster.status==true && CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONROLE'",
15169
+ // return_fields:
15170
+ // "KEEP(CodingMaster,'id','_id','_key','shortdesc','display','Type')",
15171
+ // };
15172
+ // },
15173
+
12666
15174
  locationMasterLocationRoleType: function locationMasterLocationRoleType() {
12667
15175
  return {
12668
- "db_name": _dbName,
12669
- "entity": "CodingMaster",
12670
- "sort": "CodingMaster.display",
12671
- "filter": "CodingMaster.status==true && CodingMaster.activestatus==true && CodingMaster.Type=='LOCATIONROLE'",
12672
- "return_fields": "KEEP(CodingMaster,'id','_id','_key','shortdesc','display','Type')"
15176
+ db_name: _dbName,
15177
+ queryid: "a277b5c8-e89b-4a7e-acd7-8548991e936b",
15178
+ filter: {
15179
+ TYPE: "LOCATIONROLE",
15180
+ sort: "display"
15181
+ }
12673
15182
  };
12674
15183
  },
15184
+ // locationMasterSpeciality: (id) => {
15185
+ // return {
15186
+ // db_name: _dbName,
15187
+ // entity: "Organization",
15188
+ // filter: `Organization.id==${id} && Organization.activestatus==true`,
15189
+ // return_fields: " DOCUMENT(Organization.specialtyDetails[*].specialty)",
15190
+ // };
15191
+ // },
15192
+
12675
15193
  locationMasterSpeciality: function locationMasterSpeciality(id) {
12676
- // return {
12677
- // db_name: _dbName,
12678
- // entity: "HealthcareService,CodeableConceptMaster",
12679
- // filter: {
12680
- // HealthcareService: `HealthcareService.OrgID==${id}`,
12681
- // CodeableConceptMaster:
12682
- // "CodeableConceptMaster.id IN HealthcareService.SpecialtyID AND CodeableConceptMaster.Type=='SPECIALTY'",
12683
- // },
12684
- // return_fields:
12685
- // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
12686
- // };
12687
15194
  return {
12688
- "db_name": _dbName,
12689
- "entity": "Organization",
12690
- "filter": "Organization.id==".concat(id, " && Organization.activestatus==true"),
12691
- "return_fields": " DOCUMENT(Organization.specialtyDetails[*].specialty)"
15195
+ db_name: _dbName,
15196
+ queryid: "15115591-3cf9-4b18-95ed-1d8e8ff0ad39",
15197
+ filter: {
15198
+ id: id,
15199
+ activestatus: true
15200
+ }
12692
15201
  };
12693
15202
  },
15203
+ // locationMasterContactMode: () => {
15204
+ // return {
15205
+ // db_name: _dbName,
15206
+ // entity: "CodeableConceptMaster",
15207
+ // sort: "document(CodeableConceptMaster.coding[0]).display",
15208
+ // filter:
15209
+ // "CodeableConceptMaster.Type=='CONTACTSYSTEM' AND CodeableConceptMaster.activestatus==true",
15210
+ // return_fields:
15211
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
15212
+ // };
15213
+ // },
15214
+
12694
15215
  locationMasterContactMode: function locationMasterContactMode() {
12695
15216
  return {
12696
15217
  db_name: _dbName,
12697
- entity: "CodeableConceptMaster",
12698
- sort: "document(CodeableConceptMaster.coding[0]).display",
12699
- filter: "CodeableConceptMaster.Type=='CONTACTSYSTEM' AND CodeableConceptMaster.activestatus==true",
12700
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
15218
+ queryid: "506a5dd7-e07d-4218-af28-10bd2e4c0016",
15219
+ filter: {
15220
+ type: "CONTACTSYSTEM",
15221
+ activestatus: true
15222
+ }
12701
15223
  };
12702
15224
  },
15225
+ // locationMasterISD: () => {
15226
+ // return {
15227
+ // db_name: _dbName,
15228
+ // entity: "SMGeographicMaster",
15229
+ // sort: "SMGeographicMaster.geogLevelName",
15230
+ // filter:
15231
+ // "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
15232
+ // return_fields:
15233
+ // "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}",
15234
+ // };
15235
+ // },
15236
+
12703
15237
  locationMasterISD: function locationMasterISD() {
12704
15238
  return {
12705
15239
  db_name: _dbName,
12706
- entity: "SMGeographicMaster",
12707
- sort: "SMGeographicMaster.geogLevelName",
12708
- filter: "Lower(DOCUMENT(SMGeographicMaster.geogLevelType).display)=='country' && SMGeographicMaster.activestatus == true",
12709
- return_fields: "{_id:SMGeographicMaster._id,id:SMGeographicMaster.id,geogLevelName:SMGeographicMaster.geogLevelName,parentGeogLevelType:SMGeographicMaster.parentGeogLevelType,parentGeogLevelCode:SMGeographicMaster.parentGeogLevelCode,GeoLocationISDCode:SMGeographicMaster.GeoLocationISDCode}"
15240
+ queryid: "d3659637-f0aa-4e0d-86d6-61fd445f7dd5",
15241
+ filter: {
15242
+ display: "country",
15243
+ activestatus: true,
15244
+ active: true,
15245
+ sort: "geogLevelName"
15246
+ }
12710
15247
  };
12711
15248
  },
15249
+ // locationMasterUse: () => {
15250
+ // return {
15251
+ // db_name: _dbName,
15252
+ // entity: "CodeableConceptMaster",
15253
+ // sort: "document(CodeableConceptMaster.coding[0]).display",
15254
+ // filter:
15255
+ // "CodeableConceptMaster.Type=='ADDRESSUSE' AND CodeableConceptMaster.activestatus==true",
15256
+ // return_fields:
15257
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
15258
+ // };
15259
+ // },
15260
+
12712
15261
  locationMasterUse: function locationMasterUse() {
12713
15262
  return {
12714
15263
  db_name: _dbName,
12715
- entity: "CodeableConceptMaster",
12716
- sort: "document(CodeableConceptMaster.coding[0]).display",
12717
- filter: "CodeableConceptMaster.Type=='ADDRESSUSE' AND CodeableConceptMaster.activestatus==true",
12718
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
15264
+ queryid: "506a5dd7-e07d-4218-af28-10bd2e4c0016",
15265
+ filter: {
15266
+ type: "ADDRESSUSE",
15267
+ activestatus: true
15268
+ }
12719
15269
  };
12720
15270
  },
15271
+ // locationMasterPriority: () => {
15272
+ // return {
15273
+ // db_name: _dbName,
15274
+ // entity: "CodeableConceptMaster",
15275
+ // sort: "document(CodeableConceptMaster.coding[0]).display",
15276
+ // filter:
15277
+ // "CodeableConceptMaster.Type=='RANK' AND CodeableConceptMaster.activestatus==true",
15278
+ // return_fields:
15279
+ // "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})",
15280
+ // };
15281
+ // },
15282
+
12721
15283
  locationMasterPriority: function locationMasterPriority() {
12722
15284
  return {
12723
15285
  db_name: _dbName,
12724
- entity: "CodeableConceptMaster",
12725
- sort: "document(CodeableConceptMaster.coding[0]).display",
12726
- filter: "CodeableConceptMaster.Type=='RANK' AND CodeableConceptMaster.activestatus==true",
12727
- return_fields: "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
15286
+ queryid: "506a5dd7-e07d-4218-af28-10bd2e4c0016",
15287
+ filter: {
15288
+ type: "RANK",
15289
+ activestatus: true
15290
+ }
12728
15291
  };
12729
15292
  }
12730
15293
  };
@@ -13122,12 +15685,14 @@ var LOCATION_MASTERS_ENTITYTYPE = createAsyncThunk("locationMasterSlice/location
13122
15685
  _context.n = 2;
13123
15686
  return fetchData({
13124
15687
  body: JSON.stringify(masterQuery$6.locationMasterEntityType())
13125
- }, __readDocumentUrl__);
15688
+ },
15689
+ // __readDocumentUrl__
15690
+ __baseUrl__$1);
13126
15691
  case 2:
13127
15692
  data_arr = _context.v;
13128
15693
  arry = [];
13129
15694
  _context.n = 3;
13130
- return data_arr.result.map(function (val) {
15695
+ return data_arr.map(function (val) {
13131
15696
  arry.push(_objectSpread2({
13132
15697
  value: val.coding[0].display,
13133
15698
  label: val._id,
@@ -13166,12 +15731,14 @@ var LOCATION_MASTERS_ENTITYNAME = createAsyncThunk("locationMasterSlice/location
13166
15731
  _context2.n = 2;
13167
15732
  return fetchData({
13168
15733
  body: JSON.stringify(masterQuery$6.locationMasterEntityName(type))
13169
- }, __readDocumentUrl__);
15734
+ },
15735
+ // __readDocumentUrl__
15736
+ __baseUrl__$1);
13170
15737
  case 2:
13171
15738
  data_arr = _context2.v;
13172
15739
  arry = [];
13173
15740
  _context2.n = 3;
13174
- return data_arr.result.map(function (val) {
15741
+ return data_arr.map(function (val) {
13175
15742
  arry.push(_objectSpread2({
13176
15743
  value: val._id,
13177
15744
  label: val.name,
@@ -13206,12 +15773,14 @@ var LOCATION_MASTERS_LOCATIONTYPE = createAsyncThunk("locationMasterSlice/locati
13206
15773
  _context3.n = 2;
13207
15774
  return fetchData({
13208
15775
  body: JSON.stringify(masterQuery$6.locationMasterLocationType())
13209
- }, __readDocumentUrl__);
15776
+ },
15777
+ // __readDocumentUrl__
15778
+ __baseUrl__$1);
13210
15779
  case 2:
13211
15780
  data_arr = _context3.v;
13212
15781
  arry = [];
13213
15782
  _context3.n = 3;
13214
- return data_arr.result.map(function (val) {
15783
+ return data_arr.map(function (val) {
13215
15784
  arry.push({
13216
15785
  value: val.coding[0].display,
13217
15786
  label: val._id
@@ -13245,12 +15814,14 @@ var LOCATION_MASTERS_OPERATIONALSTATUS = createAsyncThunk("locationMasterSlice/l
13245
15814
  _context4.n = 2;
13246
15815
  return fetchData({
13247
15816
  body: JSON.stringify(masterQuery$6.locationMasterOperationalStatus())
13248
- }, __readDocumentUrl__);
15817
+ },
15818
+ // __readDocumentUrl__
15819
+ __baseUrl__$1);
13249
15820
  case 2:
13250
15821
  data_arr = _context4.v;
13251
15822
  arry = [];
13252
15823
  _context4.n = 3;
13253
- return data_arr.result.map(function (val) {
15824
+ return data_arr.map(function (val) {
13254
15825
  arry.push({
13255
15826
  value: val.coding[0].display,
13256
15827
  label: val._id
@@ -13284,12 +15855,14 @@ var LOCATION_MASTERS_PARENT_LOCATION_ID_DESCRIPTION = createAsyncThunk("location
13284
15855
  _context5.n = 2;
13285
15856
  return fetchData({
13286
15857
  body: JSON.stringify(masterQuery$6.locationMasterParentLocationIdDescription())
13287
- }, __readDocumentUrl__);
15858
+ },
15859
+ // __readDocumentUrl__
15860
+ __baseUrl__$1);
13288
15861
  case 2:
13289
15862
  data_arr = _context5.v;
13290
15863
  arry = [];
13291
15864
  _context5.n = 3;
13292
- return data_arr.result.map(function (val) {
15865
+ return data_arr.map(function (val) {
13293
15866
  arry.push({
13294
15867
  label: val._id,
13295
15868
  value: val.locationID
@@ -13323,12 +15896,14 @@ var LOCATION_MASTERS_LOCATIONROLETYPE = createAsyncThunk("locationMasterSlice/lo
13323
15896
  _context6.n = 2;
13324
15897
  return fetchData({
13325
15898
  body: JSON.stringify(masterQuery$6.locationMasterLocationRoleType())
13326
- }, __readDocumentUrl__);
15899
+ },
15900
+ // __readDocumentUrl__
15901
+ __baseUrl__$1);
13327
15902
  case 2:
13328
15903
  data_arr = _context6.v;
13329
15904
  arry = [];
13330
15905
  _context6.n = 3;
13331
- return data_arr.result.map(function (val) {
15906
+ return data_arr.map(function (val) {
13332
15907
  arry.push(_objectSpread2({
13333
15908
  value: val.shortdesc,
13334
15909
  label: val._id
@@ -13351,7 +15926,7 @@ var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_
13351
15926
  var payload,
13352
15927
  _ref12,
13353
15928
  rejectWithValue,
13354
- _data_arr$result,
15929
+ _data_arr$,
13355
15930
  id,
13356
15931
  data_arr,
13357
15932
  arry,
@@ -13367,12 +15942,14 @@ var LOCATION_MASTER_SPECIALITY = createAsyncThunk("locationMasterSlice/location_
13367
15942
  _context7.n = 2;
13368
15943
  return fetchData({
13369
15944
  body: JSON.stringify(masterQuery$6.locationMasterSpeciality(id))
13370
- }, __readDocumentUrl__);
15945
+ },
15946
+ // __readDocumentUrl__
15947
+ __baseUrl__$1);
13371
15948
  case 2:
13372
15949
  data_arr = _context7.v;
13373
15950
  arry = [];
13374
15951
  _context7.n = 3;
13375
- return (_data_arr$result = data_arr.result) === null || _data_arr$result === void 0 || (_data_arr$result = _data_arr$result[0]) === null || _data_arr$result === void 0 ? void 0 : _data_arr$result.map(function (val) {
15952
+ return data_arr === null || data_arr === void 0 || (_data_arr$ = data_arr[0]) === null || _data_arr$ === void 0 ? void 0 : _data_arr$.map(function (val) {
13376
15953
  var _val$display;
13377
15954
  arry.push(_objectSpread2({
13378
15955
  value: (_val$display = val === null || val === void 0 ? void 0 : val.display) !== null && _val$display !== void 0 ? _val$display : "",
@@ -13407,12 +15984,14 @@ var LOCATION_MASTER_CONTACTMODE = createAsyncThunk("locationMasterSlice/location
13407
15984
  _context8.n = 2;
13408
15985
  return fetchData({
13409
15986
  body: JSON.stringify(masterQuery$6.locationMasterContactMode())
13410
- }, __readDocumentUrl__);
15987
+ },
15988
+ // __readDocumentUrl__
15989
+ __baseUrl__$1);
13411
15990
  case 2:
13412
15991
  data_arr = _context8.v;
13413
15992
  arry = [];
13414
15993
  _context8.n = 3;
13415
- return data_arr.result.map(function (val) {
15994
+ return data_arr.map(function (val) {
13416
15995
  arry.push({
13417
15996
  value: val.coding[0].display,
13418
15997
  label: val._id
@@ -13446,12 +16025,14 @@ var LOCATION_MASTER_ISD = createAsyncThunk("locationMasterSlice/location_masters
13446
16025
  _context9.n = 2;
13447
16026
  return fetchData({
13448
16027
  body: JSON.stringify(masterQuery$6.locationMasterISD())
13449
- }, __readDocumentUrl__);
16028
+ },
16029
+ // __readDocumentUrl__
16030
+ __baseUrl__$1);
13450
16031
  case 2:
13451
16032
  data_arr = _context9.v;
13452
16033
  arry = [];
13453
16034
  _context9.n = 3;
13454
- return data_arr.result.map(function (val) {
16035
+ return data_arr.map(function (val) {
13455
16036
  arry.push({
13456
16037
  value: val.GeoLocationISDCode,
13457
16038
  label: val._id
@@ -13485,12 +16066,14 @@ var LOCATION_MASTER_USE = createAsyncThunk("locationMasterSlice/location_masters
13485
16066
  _context0.n = 2;
13486
16067
  return fetchData({
13487
16068
  body: JSON.stringify(masterQuery$6.locationMasterUse())
13488
- }, __readDocumentUrl__);
16069
+ },
16070
+ // __readDocumentUrl__
16071
+ __baseUrl__$1);
13489
16072
  case 2:
13490
16073
  data_arr = _context0.v;
13491
16074
  arry = [];
13492
16075
  _context0.n = 3;
13493
- return data_arr.result.map(function (val) {
16076
+ return data_arr.map(function (val) {
13494
16077
  arry.push({
13495
16078
  value: val.coding[0].display,
13496
16079
  label: val._id
@@ -13524,12 +16107,14 @@ var LOCATION_MASTER_PRIORITY = createAsyncThunk("locationMasterSlice/location_ma
13524
16107
  _context1.n = 2;
13525
16108
  return fetchData({
13526
16109
  body: JSON.stringify(masterQuery$6.locationMasterPriority())
13527
- }, __readDocumentUrl__);
16110
+ },
16111
+ // __readDocumentUrl__
16112
+ __baseUrl__$1);
13528
16113
  case 2:
13529
16114
  data_arr = _context1.v;
13530
16115
  arry = [];
13531
16116
  _context1.n = 3;
13532
- return data_arr.result.map(function (val) {
16117
+ return data_arr.map(function (val) {
13533
16118
  arry.push({
13534
16119
  value: val.coding[0].display,
13535
16120
  label: val._id
@@ -13573,11 +16158,13 @@ var LOCATION_MASTER_GET_BY_ID = createAsyncThunk("locationMasterSlice/location_m
13573
16158
  _context10.n = 2;
13574
16159
  return fetchData({
13575
16160
  body: JSON.stringify(queries$n.location_by_id(id))
13576
- }, __readDocumentUrl__);
16161
+ },
16162
+ // __readDocumentUrl__
16163
+ __baseUrl__$1);
13577
16164
  case 2:
13578
16165
  data = _context10.v;
13579
16166
  //
13580
- readJSON = generateReadJSON$4(data.result[0] ? data.result[0] : null,
16167
+ readJSON = generateReadJSON$4(data[0] ? data[0] : null,
13581
16168
  //masterlist
13582
16169
  ccState);
13583
16170
  return _context10.a(2, _objectSpread2(_objectSpread2({}, defaultState.List), {}, {
@@ -14949,28 +17536,12 @@ var queries$j = {
14949
17536
  }];
14950
17537
  },
14951
17538
  entity_read: function entity_read(data) {
14952
- // return {
14953
- // db_name: dbName,
14954
- // entity: "Organization",
14955
- // filter: `Organization.ParentOrgID ==[] && like(Organization.name, '%${data}%',true) && Organization.activestatus==true && Organization.isExternal==false`,
14956
- // return_fields:
14957
- // "MERGE(Organization,{Organization:(FOR org IN Organization FILTER Organization.id IN org.ParentOrgID RETURN MERGE(org,{facility:(FOR fac IN Organization FILTER org.id IN fac.ParentOrgID RETURN fac)}) )})",
14958
- // sort: "Organization.createddate desc",
14959
- // };
14960
- // return {
14961
- // db_name: "primarycare",
14962
- // queryid: "0b8a7da6-736f-4dc1-88da-672a887fd72b",
14963
- // filter: {
14964
- // holidayid: "Holiday/10064",
14965
- // calyear: 2022,
14966
- // },
14967
- // };
14968
17539
  if (data) {
14969
17540
  return {
14970
17541
  db_name: dbName,
14971
17542
  queryid: "0b8a7da6-736f-4dc1-88da-672a887fd72b",
14972
17543
  filter: {
14973
- holidayid: "Holiday/10064",
17544
+ holidayid: dbType == "postgresadapter" ? "10064" : "Holiday/10064",
14974
17545
  calyear: 2022,
14975
17546
  orgName: "%".concat(data, "%")
14976
17547
  }
@@ -14980,7 +17551,7 @@ var queries$j = {
14980
17551
  db_name: dbName,
14981
17552
  queryid: "0b8a7da6-736f-4dc1-88da-672a887fd72b",
14982
17553
  filter: {
14983
- holidayid: "Holiday/10064",
17554
+ holidayid: dbType == "postgresadapter" ? "10064" : "Holiday/10064",
14984
17555
  calyear: 2022,
14985
17556
  orgName: ""
14986
17557
  }
@@ -15032,13 +17603,6 @@ var queries$j = {
15032
17603
  },
15033
17604
  holiday_single_read: function holiday_single_read(data) {
15034
17605
  console.log(data, "d-d");
15035
- // return {
15036
- // db_name: "primarycare",
15037
- // entity: "Holiday",
15038
- // filter: `Holiday._id=='Holiday/${data}' && Holiday.CalYear==2022 && Holiday.activestatus==true`,
15039
- // return_fields:
15040
- // "merge(Holiday,{HolidayType:document(Holiday.HolidayType),CalDay:document(Holiday.CalDay)},{HolidayDtls:(for Holidaydtls in Holidaydtls filter Holidaydtls.holidayid==Holiday._id return merge(Holidaydtls,{status:document(Holidaydtls.status)}, {orgid:( for adqolcOrganization IN Organization filter adqolcOrganization._id==Holidaydtls.orgid return MERGE(adqolcOrganization, {OrgTree:adqolcOrganization.ParentOrgID==[] ? {child1:( FOR org IN Organization FILTER adqolcOrganization.id IN org.ParentOrgID RETURN MERGE(org, {child2:( FOR fac IN Organization FILTER org.id IN fac.ParentOrgID RETURN fac)}) )} : {parent1:( FOR fac IN Organization FILTER first(adqolcOrganization.ParentOrgID) == fac.id RETURN merge(fac, {parent2:( FOR org IN Organization FILTER first(fac.ParentOrgID )==org.id RETURN fac)}))}}))}))})",
15041
- // };
15042
17606
  return {
15043
17607
  db_name: dbName,
15044
17608
  entity: "Holiday",
@@ -15107,10 +17671,34 @@ var queries$j = {
15107
17671
  return_fields: " distinct merge(Holiday,{HolidayType:document(Holiday.HolidayType),CalDay:document(Holiday.CalDay)},{TotalCount:count(FOR cnt IN Holiday FILTER (LIKE(cnt.HolidayReason,'%%',true) || LIKE(document(cnt.HolidayType).display,'%%',true) ) return cnt._key)})"
15108
17672
  };
15109
17673
  },
17674
+ // holiday_master: {
17675
+ // holiday_type: `{
17676
+ // "db_name": "${_dbName}",
17677
+ // "entity": "CodingMaster",
17678
+ // "filter": "CodingMaster.Type=='HOLIDAYTYPE' && CodingMaster.activestatus==true && CodingMaster.status==true",
17679
+ // "return_fields": "KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')",
17680
+ // "sort": "CodingMaster.display"
17681
+ // }`,
17682
+ // entity_name: `{
17683
+ // "db_name":"${_dbName}",
17684
+ // "entity": "Organization",
17685
+ // "sort":"Organization.name",
17686
+ // "filter": "'Hospital' IN Organization.OrgType",
17687
+ // "return_fields": "{OrgID:Organization.id,name:Organization.name,_id:Organization._id,OrgType:Organization.OrgType}"
17688
+ // }`,
17689
+ // entity_type: `{
17690
+ // "db_name":"${_dbName}",
17691
+ // "entity": "CodeableConceptMaster",
17692
+ // "sort": "document(CodeableConceptMaster.coding[0]).display",
17693
+ // "filter": "CodeableConceptMaster.Type=='ORGTYPE' && CodeableConceptMaster.activestatus==true",
17694
+ // "return_fields": "MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})"
17695
+ // }`,
17696
+ // },
17697
+
15110
17698
  holiday_master: {
15111
- holiday_type: "{\n \"db_name\": \"".concat(_dbName, "\",\n \"entity\": \"CodingMaster\",\n \"filter\": \"CodingMaster.Type=='HOLIDAYTYPE' && CodingMaster.activestatus==true && CodingMaster.status==true\",\n \"return_fields\": \"KEEP(CodingMaster,'_id','id','_key','code','display','Type','status')\",\n \"sort\": \"CodingMaster.display\"\n }"),
15112
- entity_name: "{\n \"db_name\":\"".concat(_dbName, "\",\n \"entity\": \"Organization\",\n \"sort\":\"Organization.name\",\n \"filter\": \"'Hospital' IN Organization.OrgType\",\n \"return_fields\": \"{OrgID:Organization.id,name:Organization.name,_id:Organization._id,OrgType:Organization.OrgType}\"\n }"),
15113
- entity_type: "{\n \"db_name\":\"".concat(_dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"sort\": \"document(CodeableConceptMaster.coding[0]).display\",\n \"filter\": \"CodeableConceptMaster.Type=='ORGTYPE' && CodeableConceptMaster.activestatus==true\",\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:(FOR cod IN CodeableConceptMaster.coding RETURN DOCUMENT(cod))})\"\n }")
17699
+ holiday_type: "{\n \"db_name\": \"".concat(_dbName, "\",\n \"queryid\": \"49d3a86e-226d-4d76-9160-0e93e56c9dea\",\n \"filter\": {\n \"type\": \"HOLIDAYTYPE\"\n } \n }"),
17700
+ entity_name: "{\n \"db_name\":\"".concat(_dbName, "\",\n \"queryid\": \"79a77938-7200-48db-8f69-462c46ffd447\" \n }"),
17701
+ entity_type: "{\n \"db_name\":\"".concat(_dbName, "\",\n \"queryid\": \"09335a68-08b0-48b2-ad47-58ffbb5fef33\",\n \"filter\": {\n \"type\": \"ORGTYPE\"\n }\n }")
15114
17702
  },
15115
17703
  appointment_type_read: function appointment_type_read(page, perPage, search) {
15116
17704
  return "{\n \"db_name\": \"".concat(dbName, "\",\n \"entity\": \"CodeableConceptMaster\",\n \"filter\": \" CodeableConceptMaster.Type == 'APPTYPE' &&(LIKE(document(CodeableConceptMaster.coding[0]).code,'%").concat(search ? search : "", "%',true) ||LIKE(document(CodeableConceptMaster.coding[0]).shortdesc,'%").concat(search ? search : "", "%',true) || LIKE(document(CodeableConceptMaster.coding[0]).longdesc,'%").concat(search ? search : "", "%',true)) && CodeableConceptMaster.status == true && CodeableConceptMaster.activestatus == true\",\n \"limit\": {\n \"offset\": ").concat(page, ",\n \"count\": ").concat(perPage, "\n },\n \"return_fields\": \"MERGE(CodeableConceptMaster,{coding:document(CodeableConceptMaster.coding)},{TotalCount:COUNT(FOR cnt IN CodeableConceptMaster filter cnt.Type=='APPTYPE' filter cnt.activestatus==true RETURN cnt._key)})\"\n}");
@@ -15474,7 +18062,7 @@ var HOLIDAY_SINGLE_READ_SELECTED_QDM = createAsyncThunk("holidaySlice/holidaySin
15474
18062
  payload = _args4.length > 0 && _args4[0] !== undefined ? _args4[0] : {};
15475
18063
  _ref8 = _args4.length > 1 ? _args4[1] : undefined, rejectWithValue = _ref8.rejectWithValue;
15476
18064
  _context4.p = 1;
15477
- _id = 'Holiday/' + payload; // const { holidayid ="" , allData = false } = _id;
18065
+ _id = dbType == "postgresadapter" ? payload : 'Holiday/' + payload; // const { holidayid ="" , allData = false } = _id;
15478
18066
  body = {
15479
18067
  "db_name": dbName,
15480
18068
  "filter": {
@@ -15568,11 +18156,11 @@ var fetchMaster$7 = function fetchMaster(name, query) {
15568
18156
  _context7.n = 1;
15569
18157
  return fetchData({
15570
18158
  body: query
15571
- }, __readDocumentUrl__);
18159
+ }, __baseUrl__$1);
15572
18160
  case 1:
15573
18161
  data = _context7.v;
15574
18162
  resolve({
15575
- data: data.result,
18163
+ data: data,
15576
18164
  name: name
15577
18165
  });
15578
18166
  case 2:
@@ -26587,7 +29175,7 @@ var queries$d = {
26587
29175
  filter: {
26588
29176
  ParentOrgID: [],
26589
29177
  activestatus: true,
26590
- isExternal: "".concat(type.isexternal)
29178
+ isExternal: type.isexternal
26591
29179
  }
26592
29180
  };
26593
29181
  },