@openmrs/esm-active-visits-app 3.1.1-pre.2 → 3.1.1-pre.201

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.
@@ -0,0 +1,39 @@
1
+ @openmrs/esm-active-visits-app:build: cache hit, replaying output f77c879d21d66e43
2
+ @openmrs/esm-active-visits-app:build: $ webpack --mode production
3
+ @openmrs/esm-active-visits-app:build: assets by chunk 1.17 MiB (id hint: vendors)
4
+ @openmrs/esm-active-visits-app:build:  asset 858.js 474 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-active-visits-app:build:  asset 635.js 228 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-active-visits-app:build:  asset 719.js 137 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
+ @openmrs/esm-active-visits-app:build:  asset 316.js 120 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
+ @openmrs/esm-active-visits-app:build:  + 4 assets
9
+ @openmrs/esm-active-visits-app:build: asset 788.js 26.4 KiB [emitted] [minimized]
10
+ @openmrs/esm-active-visits-app:build: asset 221.js 15.4 KiB [emitted] [minimized]
11
+ @openmrs/esm-active-visits-app:build: asset openmrs-esm-active-visits-app.js.buildmanifest.json 8.52 KiB [emitted]
12
+ @openmrs/esm-active-visits-app:build: asset openmrs-esm-active-visits-app.js 7.42 KiB [emitted] [minimized] (name: @openmrs/esm-active-visits-app)
13
+ @openmrs/esm-active-visits-app:build: asset 784.js 7.15 KiB [emitted] [minimized] 1 related asset
14
+ @openmrs/esm-active-visits-app:build: asset 879.js 6.36 KiB [emitted] [minimized]
15
+ @openmrs/esm-active-visits-app:build: asset 150.js 1.41 KiB [emitted] [minimized]
16
+ @openmrs/esm-active-visits-app:build: asset 574.js 1.08 KiB [emitted] [minimized]
17
+ @openmrs/esm-active-visits-app:build: asset 319.js 154 bytes [emitted] [minimized]
18
+ @openmrs/esm-active-visits-app:build: orphan modules 9.26 MiB (javascript) 42 bytes (consume-shared) [orphan] 526 modules
19
+ @openmrs/esm-active-visits-app:build: runtime modules 18.7 KiB 15 modules
20
+ @openmrs/esm-active-visits-app:build: built modules 4.58 MiB (javascript) 294 bytes (share-init) 252 bytes (consume-shared) [built]
21
+ @openmrs/esm-active-visits-app:build:  modules by path ../../node_modules/ 4.51 MiB 105 modules
22
+ @openmrs/esm-active-visits-app:build:  modules by path ./ 73.5 KiB
23
+ @openmrs/esm-active-visits-app:build:  javascript modules 72.6 KiB 6 modules
24
+ @openmrs/esm-active-visits-app:build:  optional modules 962 bytes [optional] 2 modules
25
+ @openmrs/esm-active-visits-app:build:  provide-module modules 294 bytes
26
+ @openmrs/esm-active-visits-app:build:  provide shared module (default) @openmrs/esm-framework@3.4.1-pre.112 = ../../node_modules/@openmrs/esm-framework/src/internal.ts 42 bytes [built] [code generated]
27
+ @openmrs/esm-active-visits-app:build:  + 6 modules
28
+ @openmrs/esm-active-visits-app:build:  consume-shared-module modules 252 bytes
29
+ @openmrs/esm-active-visits-app:build:  consume shared module (default) @openmrs/esm-framework@^3 (singleton) (fallback: ../../node_modules/@openmrs/esm-framework/src/internal.ts) 42 bytes [built] [code generated]
30
+ @openmrs/esm-active-visits-app:build:  consume shared module (default) react@^16 (singleton) (fallback: ../../node_modules/react/index.js) 42 bytes [built] [code generated]
31
+ @openmrs/esm-active-visits-app:build:  + 4 modules
32
+ @openmrs/esm-active-visits-app:build:  container entry 42 bytes [built] [code generated]
33
+ @openmrs/esm-active-visits-app:build: 
34
+ @openmrs/esm-active-visits-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
35
+ @openmrs/esm-active-visits-app:build: This can impact web performance.
36
+ @openmrs/esm-active-visits-app:build: Assets:
37
+ @openmrs/esm-active-visits-app:build:  858.js (474 KiB)
38
+ @openmrs/esm-active-visits-app:build: 
39
+ @openmrs/esm-active-visits-app:build: webpack 5.73.0 compiled with 1 warning in 122219 ms
package/dist/150.js CHANGED
@@ -1,2 +1 @@
1
- (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[150],{150:(e,s,i)=>{"use strict";i.r(s),i.d(s,{backendDependencies:()=>a,frontendDependencies:()=>o,importTranslation:()=>r,setupOpenMRS:()=>c});var t=i(3066),n={activeVisits:{pageSize:{_type:t.Type.Number,_description:"Count of active visits to be shown in a single page.",_default:10},pageSizes:{_type:t.Type.Array,_description:"Customizable page sizes that user can choose",_default:[10,20,50]}}},r=i(3979),a={"webservices.rest":"^2.2.0"},o={"@openmrs/esm-framework":"^3.2.1-pre.1163"};function c(){var e="@openmrs/esm-active-visits-app",s={featureName:"active-visits",moduleName:e};return(0,t.defineConfigSchema)(e,n),{extensions:[{id:"active-visits-widget",slot:"homepage-widgets-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(403),i.e(614),i.e(902),i.e(56),i.e(91)]).then(i.bind(i,6091))}),s)},{id:"visit-summary-widget",slot:"visit-summary-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(403),i.e(260),i.e(902),i.e(56),i.e(920)]).then(i.bind(i,9920))}),s)}]}}},3979:(e,s,i)=>{var t={"./en.json":[3574,574],"./es.json":[8319,319]};function n(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=t[e],n=s[0];return i.e(s[1]).then((()=>i(n)))}n.keys=()=>Object.keys(t),n.id=3979,e.exports=n}}]);
2
- //# sourceMappingURL=150.js.map
1
+ (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[150],{150:(e,s,i)=>{"use strict";i.r(s),i.d(s,{backendDependencies:()=>a,frontendDependencies:()=>o,importTranslation:()=>r,setupOpenMRS:()=>c});var t=i(3066),n={activeVisits:{pageSize:{_type:t.Type.Number,_description:"Count of active visits to be shown in a single page.",_default:10},pageSizes:{_type:t.Type.Array,_description:"Customizable page sizes that user can choose",_default:[10,20,50]}}},r=i(3979),a={"webservices.rest":"^2.2.0"},o={"@openmrs/esm-framework":"^3.4.1-pre.112"};function c(){var e="@openmrs/esm-active-visits-app",s={featureName:"active-visits",moduleName:e};return(0,t.defineConfigSchema)(e,n),{extensions:[{id:"active-visits-widget",slot:"homepage-widgets-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(719),i.e(785),i.e(902),i.e(56),i.e(221)]).then(i.bind(i,2221))}),s)},{id:"visit-summary-widget",slot:"visit-summary-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(719),i.e(260),i.e(902),i.e(56),i.e(788)]).then(i.bind(i,3788))}),s)}]}}},3979:(e,s,i)=>{var t={"./en.json":[3574,574],"./es.json":[8319,319]};function n(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=t[e],n=s[0];return i.e(s[1]).then((()=>i(n)))}n.keys=()=>Object.keys(t),n.id=3979,e.exports=n}}]);
package/dist/221.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[221],{7935:(e,t,i)=>{i.d(t,{Z:()=>s});var a=i(2609),n=i.n(a)()((function(e){return e[1]}));n.push([e.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-active-visits__active-visits__productiveHeading01___5dzOt{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-active-visits__active-visits__productiveHeading02___-o9Tn{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-active-visits__active-visits__bodyLong01___xwAEE{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-active-visits__active-visits__caption01___e7sSC{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-active-visits__active-visits__bodyShort02___BiPkR{font-size:1rem;font-weight:400;line-height:1.375;letter-spacing:0}.-esm-active-visits__active-visits__text02___lkEHs{color:#525252}.-esm-active-visits__active-visits__text01___iTf3H{color:#161616}.-esm-active-visits__active-visits__activeVisitsContainer___XAE0K{background-color:#fff;border:1px solid #e0e0e0;width:100%;margin:0 auto;max-width:95vw}.-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-active-visits__active-visits__backgroundDataFetchingIndicator___YszBc{align-items:center;display:flex;flex:1 1 0%;justify-content:center}.-esm-active-visits__active-visits__tableContainer___27wfu section{position:relative}.-esm-active-visits__active-visits__tableContainer___27wfu a{text-decoration:none}.-esm-active-visits__active-visits__pagination___h8NbE{overflow:hidden}.-esm-active-visits__active-visits__emptyRow___jKDsj{padding:0 1rem;display:flex;align-items:center}.-esm-active-visits__active-visits__visitSummaryContainer___mBkXn{width:100%;max-width:768px;margin:1rem auto}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO>td>div{max-height:max-content !important}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO td{padding:0 2rem}.-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO th[colspan] td[colspan]>div:first-child{padding:0 1rem}.-esm-active-visits__active-visits__action___Kn0CE{margin-bottom:.5rem}.-esm-active-visits__active-visits__content___hF3rN{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px;color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-active-visits__active-visits__desktopHeading___3cKg8 h4{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0;color:#525252}.-esm-active-visits__active-visits__tabletHeading___vrNoH h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#525252}.-esm-active-visits__active-visits__desktopHeading___3cKg8,.-esm-active-visits__active-visits__tabletHeading___vrNoH{text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-active-visits__active-visits__desktopHeading___3cKg8 h4:after,.-esm-active-visits__active-visits__tabletHeading___vrNoH h4:after{content:"";display:block;width:2rem;padding-top:3px;border-bottom:.375rem solid;border-bottom-color:#007d79;border-bottom-color:var(--brand-03)}.-esm-active-visits__active-visits__tile___OJ1Dy{text-align:center}',""]),n.locals={productiveHeading01:"-esm-active-visits__active-visits__productiveHeading01___5dzOt",productiveHeading02:"-esm-active-visits__active-visits__productiveHeading02___-o9Tn",bodyLong01:"-esm-active-visits__active-visits__bodyLong01___xwAEE",caption01:"-esm-active-visits__active-visits__caption01___e7sSC",bodyShort02:"-esm-active-visits__active-visits__bodyShort02___BiPkR",text02:"-esm-active-visits__active-visits__text02___lkEHs",text01:"-esm-active-visits__active-visits__text01___iTf3H",activeVisitsContainer:"-esm-active-visits__active-visits__activeVisitsContainer___XAE0K",activeVisitsDetailHeaderContainer:"-esm-active-visits__active-visits__activeVisitsDetailHeaderContainer___pjwhu",backgroundDataFetchingIndicator:"-esm-active-visits__active-visits__backgroundDataFetchingIndicator___YszBc",tableContainer:"-esm-active-visits__active-visits__tableContainer___27wfu",pagination:"-esm-active-visits__active-visits__pagination___h8NbE",emptyRow:"-esm-active-visits__active-visits__emptyRow___jKDsj",visitSummaryContainer:"-esm-active-visits__active-visits__visitSummaryContainer___mBkXn",expandedActiveVisitRow:"-esm-active-visits__active-visits__expandedActiveVisitRow___ONSwO",action:"-esm-active-visits__active-visits__action___Kn0CE",content:"-esm-active-visits__active-visits__content___hF3rN",desktopHeading:"-esm-active-visits__active-visits__desktopHeading___3cKg8",tabletHeading:"-esm-active-visits__active-visits__tabletHeading___vrNoH",tile:"-esm-active-visits__active-visits__tile___OJ1Dy"};const s=n},2221:(e,t,i)=>{i.r(t),i.d(t,{default:()=>q});var a=i(9902),n=i.n(a),s=i(8580),r=i(182),o=i(6069),l=i(160),c=i(9034),v=i(5746),_=i(4750),d=i(364),m=i(7500),u=i(8804),p=i(8117),g=i(1358),f=i(2427),h=i(318),b=i(3783),y=i(448),E=i(8306),w=i(3066),x=i(4924),S=function(e){var t=e.width,i=void 0===t?"61":t,a=e.height,s=void 0===a?"59":a;return n().createElement("svg",{width:i,height:s,viewBox:"0 0 61 59"},n().createElement("title",null,"Empty data illustration"),n().createElement("g",{fill:"none",fillRule:"evenodd"},n().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),n().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),n().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),n().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),n().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),n().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),n().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),n().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),n().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),n().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},C=i(9857),H=i(3565),O=i.n(H),k=i(6824),V=i.n(k),N=i(6635);O().extend(V());var D=i(6062),T=i.n(D),z=i(4036),j=i.n(z),A=i(6793),P=i.n(A),Z=i(7892),F=i.n(Z),L=i(1173),R=i.n(L),I=i(2464),M=i.n(I),B=i(7935),K={};K.styleTagTransform=M(),K.setAttributes=F(),K.insert=P().bind(null,"head"),K.domAPI=j(),K.insertStyleElement=R(),T()(B.Z,K);const U=B.Z&&B.Z.locals?B.Z.locals:void 0;function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,a=new Array(t);i<t;i++)a[i]=e[i];return a}function X(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function J(){return J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(e[a]=i[a])}return e},J.apply(this,arguments)}function $(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a,n,s=[],r=!0,o=!1;try{for(i=i.call(e);!(r=(a=i.next()).done)&&(s.push(a.value),!t||s.length!==t);r=!0);}catch(e){o=!0,n=e}finally{try{r||null==i.return||i.return()}finally{if(o)throw n}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Y(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Y(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var G=function(e){var t=e.from,i=e.to,a=e.children;return n().createElement("a",{onClick:function(e){return function(e,i){e.preventDefault(),(0,w.navigate)({to:i}),localStorage.setItem("fromPage",t)}(e,i)},href:(0,w.interpolateUrl)(i)},a)};const q=function(){var e,t,i,H,k=(0,x.useTranslation)().t,V=(0,w.useConfig)(),D=(0,w.useLayoutType)(),T=function(){var e,t,i=(0,w.useSession)(),a=O()().format("YYYY-MM-DD"),n=null==i||null===(e=i.sessionLocation)||void 0===e?void 0:e.uuid,s="/ws/rest/v1/visit?includeInactive=false&v=".concat("custom:(uuid,patient:(uuid,identifiers:(identifier,uuid),person:(age,display,gender,uuid)),visitType:(uuid,name,display),location:(uuid,name,display),startDatetime,stopDatetime)&fromStartDate="+a+"&location="+n),r=(0,C.ZP)(n?s:null,w.openmrsFetch),o=r.data,l=r.error,c=r.isValidating,v=(null==o||null===(t=o.data)||void 0===t?void 0:t.results.length)?o.data.results.map((function(e){var t,i,a,n,s,r,o,l,c,v,_;return{age:null==e||null===(t=e.patient)||void 0===t||null===(i=t.person)||void 0===i?void 0:i.age,id:e.uuid,idNumber:null===(n=null==e||null===(a=e.patient)||void 0===a?void 0:a.identifiers[0])||void 0===n?void 0:n.identifier,gender:null==e||null===(s=e.patient)||void 0===s||null===(r=s.person)||void 0===r?void 0:r.gender,location:null==e||null===(o=e.location)||void 0===o?void 0:o.uuid,name:null==e||null===(l=e.patient)||void 0===l||null===(c=l.person)||void 0===c?void 0:c.display,patientUuid:null==e||null===(v=e.patient)||void 0===v?void 0:v.uuid,visitStartTime:null==e?void 0:e.startDatetime,visitType:null==e||null===(_=e.visitType)||void 0===_?void 0:_.display,visitUuid:e.uuid}})).filter((function(e){var t=e.visitStartTime;return O()(t).isToday()})):[];return{activeVisits:v,isLoading:!o&&!l,isError:l,isValidating:c}}(),z=T.activeVisits,j=(T.isError,T.isLoading),A=T.isValidating,P="desktop"===D,Z=null!==(i=null==V||null===(e=V.activeVisits)||void 0===e?void 0:e.pageSizes)&&void 0!==i?i:[10,20,30,40,50],F=$((0,a.useState)(null!==(H=null==V||null===(t=V.activeVisits)||void 0===t?void 0:t.pageSize)&&void 0!==H?H:10),2),L=F[0],R=F[1],I=$((0,a.useState)(""),2),M=I[0],B=I[1],K=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/");return(0,N.last)(e)}(window.location.pathname),Y=(0,a.useMemo)((function(){return[{id:0,header:k("visitStartTime","Visit Time"),key:"visitStartTime"},{id:1,header:k("idNumber","ID Number"),key:"idNumber"},{id:2,header:k("name","Name"),key:"name"},{id:3,header:k("gender","Gender"),key:"gender"},{id:4,header:k("age","Age"),key:"age"},{id:5,header:k("visitType","Visit Type"),key:"visitType"}]}),[k]),q=z.map((function(e){return t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},a=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})))),a.forEach((function(t){X(e,t,i[t])}))}return e}({},e),i=null!=(i={visitStartTime:(0,w.formatDatetime)((0,w.parseDate)(e.visitStartTime))})?i:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):function(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);i.push.apply(i,a)}return i}(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})),t;var t,i})),Q=(0,a.useMemo)((function(){if(M&&""!==M.trim()){var e=M.toLowerCase();return q.filter((function(t){return Object.keys(t).some((function(i){return"patientUuid"!==i&&"".concat(t[i]).toLowerCase().includes(e)}))}))}return q}),[M,q]),W=(0,w.usePagination)(Q,L),ee=W.goTo,te=W.results,ie=W.currentPage,ae=(0,a.useCallback)((function(e){return B(e.target.value)}),[]);return(0,a.useEffect)((function(){1!==ie&&ee(1)}),[M]),j?n().createElement(s.Z,{role:"progressbar"}):(null==z?void 0:z.length)?n().createElement("div",{className:U.activeVisitsContainer},n().createElement("div",{className:U.activeVisitsDetailHeaderContainer},n().createElement("div",{className:P?U.desktopHeading:U.tabletHeading},n().createElement("h4",null,k("activeVisits","Active Visits"))),n().createElement("div",{className:U.backgroundDataFetchingIndicator},n().createElement("span",null,A?n().createElement(r.Z,null):null))),n().createElement(o.ZP,{rows:te,headers:Y,size:P?"compact":"normal",useZebraStyles:!0},(function(e){var t=e.rows,i=e.headers,a=e.getHeaderProps,s=e.getTableProps,r=e.getBatchActionProps,o=e.getRowProps;return n().createElement(l.Z,{className:U.tableContainer},n().createElement(c.Z,null,n().createElement(v.Z,null,n().createElement(_.Z,{tabIndex:r().shouldShowBatchActions?-1:0,labelText:"",placeholder:k("filterTable","Filter table"),onChange:ae}))),n().createElement(d.Z,J({className:U.activeVisitsTable},s()),n().createElement(m.Z,null,n().createElement(u.Z,null,n().createElement(p.Z,null),i.map((function(e){return n().createElement(g.Z,J({},a({header:e})),e.header)})))),n().createElement(f.Z,null,t.map((function(e,t){var a,s;return n().createElement(n().Fragment,{key:t},n().createElement(h.Z,J({},o({row:e})),e.cells.map((function(e){var i;return n().createElement(b.Z,{key:e.id},"name"===e.info.header?n().createElement(G,{from:K,to:"${openmrsSpaBase}/patient/".concat(null==te||null===(i=te[t])||void 0===i?void 0:i.patientUuid,"/chart/")},e.value):e.value)}))),e.isExpanded?n().createElement(u.Z,{className:U.expandedActiveVisitRow},n().createElement("th",{colSpan:i.length+2},n().createElement(w.ExtensionSlot,{className:U.visitSummaryContainer,extensionSlotName:"visit-summary-slot",state:{visitUuid:null===(a=te[t])||void 0===a?void 0:a.visitUuid,patientUuid:null===(s=te[t])||void 0===s?void 0:s.patientUuid}}))):n().createElement("div",null))})))),0===t.length&&n().createElement("p",{style:{height:P?"2rem":"3rem",marginLeft:P?"2rem":"3rem"},className:"".concat(U.emptyRow," ").concat(U.bodyLong01)},k("noVisitsFound","No visits found")),n().createElement(y.Z,{forwardText:"Next page",backwardText:"Previous page",page:ie,pageSize:L,pageSizes:Z,totalItems:Q.length,className:U.pagination,onChange:function(e){var t=e.pageSize,i=e.page;t!==L&&R(t),i!==ie&&ee(i)}}))}))):n().createElement("div",{className:U.activeVisitsContainer},n().createElement(E.n9,{light:!0,className:U.tile},n().createElement("div",{className:P?U.desktopHeading:U.tabletHeading},n().createElement("h4",null,k("activeVisits","Active Visits"))),n().createElement(S,null),n().createElement("p",{className:U.content},k("noActiveVisitsForLocation","There are no active visits to display for this location."))))}}}]);
package/dist/248.js ADDED
@@ -0,0 +1 @@
1
+ (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[248],{3248:(e,n,t)=>{"use strict";function r(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)t=i[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.r(n),t.d(n,{I18nContext:()=>k,I18nextProvider:()=>le,Trans:()=>G,Translation:()=>ue,composeInitialProps:()=>A,date:()=>ye,getDefaults:()=>I,getI18n:()=>R,getInitialProps:()=>L,initReactI18next:()=>T,number:()=>ve,plural:()=>be,select:()=>he,selectOrdinal:()=>Oe,setDefaults:()=>N,setI18n:()=>D,time:()=>me,useSSR:()=>pe,useTranslation:()=>re,withSSR:()=>ge,withTranslation:()=>ce});var a=t(9902),c=t.n(a),s=t(4896),u=t.n(s),l=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function p(e){var n={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=e.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(n.name=t[1],(u()[t[1]]||"/"===e.charAt(e.length-2))&&(n.voidElement=!0),n.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var o=new RegExp(l),i=null;null!==(i=o.exec(e));)if(i[0].trim())if(i[1]){var a=i[1].trim(),c=[a,""];a.indexOf("=")>-1&&(c=a.split("=")),n.attrs[c[0]]=c[1],o.lastIndex--}else i[2]&&(n.attrs[i[2]]=i[3].trim().substring(1,i[3].length-1));return n}var f=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,d=/^\s*$/,g=Object.create(null);function y(e,n){switch(n.type){case"text":return e+n.content;case"tag":return e+="<"+n.name+(n.attrs?function(e){var n=[];for(var t in e)n.push(t+'="'+e[t]+'"');return n.length?" "+n.join(" "):""}(n.attrs):"")+(n.voidElement?"/>":">"),n.voidElement?e:e+n.children.reduce(y,"")+"</"+n.name+">";case"comment":return e+"\x3c!--"+n.comment+"--\x3e"}}var m={parse:function(e,n){n||(n={}),n.components||(n.components=g);var t,r=[],o=[],i=-1,a=!1;if(0!==e.indexOf("<")){var c=e.indexOf("<");r.push({type:"text",content:-1===c?e:e.substring(0,c)})}return e.replace(f,(function(c,s){if(a){if(c!=="</"+t.name+">")return;a=!1}var u,l="/"!==c.charAt(1),f=c.startsWith("\x3c!--"),g=s+c.length,y=e.charAt(g);if(f){var m=p(c);return i<0?(r.push(m),r):((u=o[i]).children.push(m),r)}if(l&&(i++,"tag"===(t=p(c)).type&&n.components[t.name]&&(t.type="component",a=!0),t.voidElement||a||!y||"<"===y||t.children.push({type:"text",content:e.slice(g,e.indexOf("<",g))}),0===i&&r.push(t),(u=o[i-1])&&u.children.push(t),o[i]=t),(!l||t.voidElement)&&(i>-1&&(t.voidElement||t.name===c.slice(2,-1))&&(i--,t=-1===i?r:o[i]),!a&&"<"!==y&&y)){u=-1===i?r:o[i].children;var v=e.indexOf("<",g),h=e.slice(g,-1===v?void 0:v);d.test(h)&&(h=" "),(v>-1&&i+u.length>=0||" "!==h)&&u.push({type:"text",content:h})}})),r},stringify:function(e){return e.reduce((function(e,n){return e+y("",n)}),"")}};const v=m;var h="".replace,b=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,O={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"'};function j(e){return O[e]}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function E(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?P(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var x,S={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},k=c().createContext();function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S=E(E({},S),e)}function I(){return S}var C=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var n,t;return n=e,(t=[{key:"addUsedNamespaces",value:function(e){var n=this;e.forEach((function(e){n.usedNamespaces[e]||(n.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}();function D(e){x=e}function R(){return x}var T={type:"3rdParty",init:function(e){N(e.options.react),D(e)}};function A(e){return function(n){return new Promise((function(t){var r=L();e.getInitialProps?e.getInitialProps(n).then((function(e){t(E(E({},e),r))})):t(r)}))}}function L(){var e=R(),n=e.reportNamespaces?e.reportNamespaces.getUsedNamespaces():[],t={},r={};return e.languages.forEach((function(t){r[t]={},n.forEach((function(n){r[t][n]=e.getResourceBundle(t,n)||{}}))})),t.initialI18nStore=r,t.initialLanguage=e.language,t}function z(){if(console&&console.warn){for(var e,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];"string"==typeof t[0]&&(t[0]="react-i18next:: ".concat(t[0])),(e=console).warn.apply(e,t)}}var B={};function _(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];"string"==typeof n[0]&&B[n[0]]||("string"==typeof n[0]&&(B[n[0]]=new Date),z.apply(void 0,n))}function U(e,n,t){e.loadNamespaces(n,(function(){e.isInitialized?t():e.on("initialized",(function n(){setTimeout((function(){e.off("initialized",n)}),0),t()}))}))}function H(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.languages[0],o=!!n.options&&n.options.fallbackLng,i=n.languages[n.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,t){var r=n.services.backendConnector.state["".concat(e,"|").concat(t)];return-1===r||2===r};return!(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e)||!n.hasResourceBundle(r,e)&&n.services.backendConnector.backend&&(!n.options.resources||n.options.partialBundledLanguages)&&(!a(r,e)||o&&!a(i,e)))}function K(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!n.languages||!n.languages.length)return _("i18n.languages were undefined or empty",n.languages),!0;var r=void 0!==n.options.ignoreJSONStructure;return r?n.hasLoadedNamespace(e,{precheck:function(n,r){if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!r(n.isLanguageChangingTo,e))return!1}}):H(e,n,t)}function V(e){return e.displayName||e.name||("string"==typeof e&&e.length>0?e:"Unknown")}var F=["format"],W=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function M(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function $(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?M(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function q(e,n){if(!e)return!1;var t=e.props?e.props.children:e.children;return n?t.length>0:!!t}function Y(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function J(e){return Array.isArray(e)?e:[e]}function Z(e,n){if(!e)return"";var t="",i=J(e),a=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(e,i){if("string"==typeof e)t+="".concat(e);else if(c().isValidElement(e)){var s=Object.keys(e.props).length,u=a.indexOf(e.type)>-1,l=e.props.children;if(!l&&u&&0===s)t+="<".concat(e.type,"/>");else if(l||u&&0===s)if(e.props.i18nIsDynamicList)t+="<".concat(i,"></").concat(i,">");else if(u&&1===s&&"string"==typeof l)t+="<".concat(e.type,">").concat(l,"</").concat(e.type,">");else{var p=Z(l,n);t+="<".concat(i,">").concat(p,"</").concat(i,">")}else t+="<".concat(i,"></").concat(i,">")}else if(null===e)z("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===o(e)){var f=e.format,d=r(e,F),g=Object.keys(d);if(1===g.length){var y=f?"".concat(g[0],", ").concat(f):g[0];t+="{{".concat(y,"}}")}else z("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else z("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),t}function G(e){var n=e.children,t=e.count,i=e.parent,s=e.i18nKey,u=e.context,l=e.tOptions,p=void 0===l?{}:l,f=e.values,d=e.defaults,g=e.components,y=e.ns,m=e.i18n,O=e.t,w=e.shouldUnescape,P=r(e,W),E=(0,a.useContext)(k)||{},x=E.i18n,S=E.defaultNS,N=m||x||R();if(!N)return _("You will need to pass in an i18next instance by using i18nextReactModule"),n;var C=O||N.t.bind(N)||function(e){return e};u&&(p.context=u);var D=$($({},I()),N.options&&N.options.react),T=y||C.ns||S||N.options&&N.options.defaultNS;T="string"==typeof T?[T]:T||["translation"];var A=d||Z(n,D)||D.transEmptyNodeValue||s,L=D.hashTransKey,z=s||(L?L(A):A),B=f?p.interpolation:{interpolation:$($({},p.interpolation),{},{prefix:"#$?",suffix:"?$#"})},U=$($($($({},p),{},{count:t},f),B),{},{defaultValue:A,ns:T}),H=function(e,n,t,r,i,a){if(""===n)return[];var s=r.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(s.join("|")).test(n);if(!e&&!u)return[n];var l={};!function e(n){J(n).forEach((function(n){"string"!=typeof n&&(q(n)?e(Y(n)):"object"!==o(n)||c().isValidElement(n)||Object.assign(l,n))}))}(e);var p=v.parse("<0>".concat(n,"</0>")),f=$($({},l),i);function d(e,n,t){var r=Y(e),o=y(r,n.children,t);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return c().isValidElement(e)}))}(r)&&0===o.length?r:o}function g(e,n,t,r,o){e.dummy&&(e.children=n),t.push(c().cloneElement(e,$($({},e.props),{},{key:r}),o?void 0:n))}function y(n,i,l){var p=J(n);return J(i).reduce((function(n,i,m){var v,O,w,P,E=i.children&&i.children[0]&&i.children[0].content&&t.services.interpolator.interpolate(i.children[0].content,f,t.language);if("tag"===i.type){var x=p[parseInt(i.name,10)];!x&&1===l.length&&l[0][i.name]&&(x=l[0][i.name]),x||(x={});var S=0!==Object.keys(i.attrs).length?(O={props:i.attrs},(P=$({},w=x)).props=Object.assign(O.props,w.props),P):x,k=c().isValidElement(S),N=k&&q(i,!0)&&!i.voidElement,I=u&&"object"===o(S)&&S.dummy&&!k,C="object"===o(e)&&null!==e&&Object.hasOwnProperty.call(e,i.name);if("string"==typeof S){var D=t.services.interpolator.interpolate(S,f,t.language);n.push(D)}else if(q(S)||N)g(S,d(S,i,l),n,m);else if(I){var R=y(p,i.children,l);n.push(c().cloneElement(S,$($({},S.props),{},{key:m}),R))}else if(Number.isNaN(parseFloat(i.name)))if(C)g(S,d(S,i,l),n,m,i.voidElement);else if(r.transSupportBasicHtmlNodes&&s.indexOf(i.name)>-1)if(i.voidElement)n.push(c().createElement(i.name,{key:"".concat(i.name,"-").concat(m)}));else{var T=y(p,i.children,l);n.push(c().createElement(i.name,{key:"".concat(i.name,"-").concat(m)},T))}else if(i.voidElement)n.push("<".concat(i.name," />"));else{var A=y(p,i.children,l);n.push("<".concat(i.name,">").concat(A,"</").concat(i.name,">"))}else if("object"!==o(S)||k)1===i.children.length&&E?n.push(c().cloneElement(S,$($({},S.props),{},{key:m}),E)):n.push(c().cloneElement(S,$($({},S.props),{},{key:m})));else{var L=i.children[0]?E:null;L&&n.push(L)}}else if("text"===i.type){var z=r.transWrapTextNodes,B=a?(v=t.services.interpolator.interpolate(i.content,f,t.language),h.call(v,b,j)):t.services.interpolator.interpolate(i.content,f,t.language);z?n.push(c().createElement(z,{key:"".concat(i.name,"-").concat(m)},B)):n.push(B)}return n}),[])}return Y(y([{dummy:!0,children:e||[]}],p,J(e||[]))[0])}(g||n,z?C(z,U):A,N,D,U,w),K=void 0!==i?i:D.defaultTransParent;return K?c().createElement(K,P,H):H}function Q(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function X(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(i.push(r.value),!n||i.length!==n);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Q(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ee(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ne(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ee(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ee(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var te=function(e,n){var t=(0,a.useRef)();return(0,a.useEffect)((function(){t.current=n?t.current:e}),[e,n]),t.current};function re(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.i18n,r=(0,a.useContext)(k)||{},o=r.i18n,i=r.defaultNS,c=t||o||R();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new C),!c){_("You will need to pass in an i18next instance by using initReactI18next");var s=function(e){return Array.isArray(e)?e[e.length-1]:e},u=[s,{},!1];return u.t=s,u.i18n={},u.ready=!1,u}c.options.react&&void 0!==c.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=ne(ne(ne({},I()),c.options.react),n),p=l.useSuspense,f=l.keyPrefix,d=e||i||c.options&&c.options.defaultNS;d="string"==typeof d?[d]:d||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(d);var g=(c.isInitialized||c.initializedStoreOnce)&&d.every((function(e){return K(e,c,l)}));function y(){return c.getFixedT(null,"fallback"===l.nsMode?d:d[0],f)}var m=(0,a.useState)(y),v=X(m,2),h=v[0],b=v[1],O=d.join(),j=te(O),w=(0,a.useRef)(!0);(0,a.useEffect)((function(){var e=l.bindI18n,n=l.bindI18nStore;function t(){w.current&&b(y)}return w.current=!0,g||p||U(c,d,(function(){w.current&&b(y)})),g&&j&&j!==O&&w.current&&b(y),e&&c&&c.on(e,t),n&&c&&c.store.on(n,t),function(){w.current=!1,e&&c&&e.split(" ").forEach((function(e){return c.off(e,t)})),n&&c&&n.split(" ").forEach((function(e){return c.store.off(e,t)}))}}),[c,O]);var P=(0,a.useRef)(!0);(0,a.useEffect)((function(){w.current&&!P.current&&b(y),P.current=!1}),[c]);var E=[h,c,g];if(E.t=h,E.i18n=c,E.ready=g,g)return E;if(!g&&!p)return E;throw new Promise((function(e){U(c,d,(function(){e()}))}))}var oe=["forwardedRef"];function ie(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ie(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function ce(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(t){function o(o){var i=o.forwardedRef,a=r(o,oe),s=X(re(e,ae(ae({},a),{},{keyPrefix:n.keyPrefix})),3),u=s[0],l=s[1],p=s[2],f=ae(ae({},a),{},{t:u,i18n:l,tReady:p});return n.withRef&&i?f.ref=i:!n.withRef&&i&&(f.forwardedRef=i),c().createElement(t,f)}return o.displayName="withI18nextTranslation(".concat(V(t),")"),o.WrappedComponent=t,n.withRef?c().forwardRef((function(e,n){return c().createElement(o,Object.assign({},e,{forwardedRef:n}))})):o}}var se=["ns","children"];function ue(e){var n=e.ns,t=e.children,o=X(re(n,r(e,se)),3),i=o[0],a=o[1],c=o[2];return t(i,{i18n:a,lng:a.language},c)}function le(e){var n=e.i18n,t=e.defaultNS,r=e.children,o=(0,a.useMemo)((function(){return{i18n:n,defaultNS:t}}),[n,t]);return(0,a.createElement)(k.Provider,{value:o},r)}function pe(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.i18n,o=(0,a.useContext)(k)||{},i=o.i18n,c=r||i||R();c.options&&c.options.isClone||(e&&!c.initializedStoreOnce&&(c.services.resourceStore.data=e,c.options.ns=Object.values(e).reduce((function(e,n){return Object.keys(n).forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}),c.options.ns),c.initializedStoreOnce=!0,c.isInitialized=!0),n&&!c.initializedLanguageOnce&&(c.changeLanguage(n),c.initializedLanguageOnce=!0))}var fe=["initialI18nStore","initialLanguage"];function de(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function ge(){return function(e){function n(n){var t=n.initialI18nStore,o=n.initialLanguage,a=r(n,fe);return pe(t,o),c().createElement(e,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?de(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},a))}return n.getInitialProps=A(e),n.displayName="withI18nextSSR(".concat(V(e),")"),n.WrappedComponent=e,n}}var ye=function(){return""},me=function(){return""},ve=function(){return""},he=function(){return""},be=function(){return""},Oe=function(){return""}},4896:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}}}]);
package/dist/260.js CHANGED
@@ -1,2 +1 @@
1
- (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[260],{5787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(7896),a=n(6666),r=n(2159),l=n(3980),c=n.n(l),i=n(9902),s=n.n(i),u=n(2779),d=n.n(u),f=n(330),v=["paragraph","lineCount","width","heading","className"],b=[.973051493507435,.15334737213558558,.5671034553053769];function h(e,t,n){return Math.floor(b[n%3]*(t-e+1))+e}var p=function(e){var t,n=e.paragraph,l=e.lineCount,c=e.width,i=e.heading,u=e.className,b=(0,r.Z)(e,v),p=(0,f.A)(),m=d()((t={},(0,a.Z)(t,"".concat(p,"--skeleton__text"),!0),(0,a.Z)(t,"".concat(p,"--skeleton__heading"),i),(0,a.Z)(t,u,u),t)),y=parseInt(c,10),g=c.includes("px");if(c.includes("%")&&n){for(var Z=[],w=0;w<l;w++){var N=h(0,75,w)+"px";Z.push(s().createElement("p",(0,o.Z)({className:m,style:{width:"calc(".concat(c," - ").concat(N,")")},key:w},b)))}return s().createElement("div",null,Z)}if(g&&n){for(var O=[],T=0;T<l;T++){var _=h(y-75,y,T)+"px";O.push(s().createElement("p",(0,o.Z)({className:m,style:{width:_},key:T},b)))}return s().createElement("div",null,O)}return s().createElement("p",(0,o.Z)({className:m,style:{width:c}},b))};p.propTypes={className:c().string,heading:c().bool,lineCount:c().number,paragraph:c().bool,width:c().string},p.defaultProps={paragraph:!1,width:"100%",heading:!1,lineCount:3};const m=p},7513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var o=n(145),a=n(7823),r=n(7896),l=n(2159),c=n(9249),i=n(7371),s=n(8106),u=n(1987),d=n(5058),f=n(6666),v=n(3980),b=n.n(v),h=n(9902),p=n.n(h),m=n(2779),y=n.n(m),g=n(3597),Z=n(330),w=["id","className","handleTabClick","handleTabKeyDown","disabled","href","index","label","selected","tabIndex","onClick","onKeyDown","renderAnchor","renderButton","renderContent","role"];var N=function(e){(0,s.Z)(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=(0,d.Z)(t);if(n){var a=(0,d.Z)(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return(0,u.Z)(this,e)});function a(){return(0,c.Z)(this,a),o.apply(this,arguments)}return(0,i.Z)(a,[{key:"render",value:function(){var e,t,n=this,o=this.context,a=this.props,c=a.id,i=a.className,s=a.handleTabClick,u=a.handleTabKeyDown,d=a.disabled,v=a.href,b=void 0===v?"#":v,h=a.index,m=a.label,g=a.selected,Z=a.tabIndex,N=void 0===Z?0:Z,O=a.onClick,T=a.onKeyDown,_=a.renderAnchor,C=a.renderButton,E=(a.renderContent,a.role,(0,l.Z)(a,w)),S=y()(i,"".concat(o,"--tabs--scrollable__nav-item"),(e={},(0,f.Z)(e,"".concat(o,"--tabs__nav-item--disabled"),d),(0,f.Z)(e,"".concat(o,"--tabs__nav-item--selected"),g),(0,f.Z)(e,"".concat(o,"--tabs--scrollable__nav-item--disabled"),d),(0,f.Z)(e,"".concat(o,"--tabs--scrollable__nav-item--selected"),g),e)),x=(t={},(0,f.Z)(t,"aria-selected",g),(0,f.Z)(t,"aria-disabled",d),(0,f.Z)(t,"aria-controls",c&&"".concat(c,"__panel")),(0,f.Z)(t,"id",c),(0,f.Z)(t,"className","".concat(o,"--tabs--scrollable__nav-link")),(0,f.Z)(t,"href",b),(0,f.Z)(t,"tabIndex",d?-1:N),(0,f.Z)(t,"ref",(function(e){n.tabAnchor=e})),t),I=C||_;return p().createElement("li",(0,r.Z)({},E,{className:S,onClick:function(e){d||(s&&s(h,e),O(e))},onKeyDown:function(e){d||(u&&u(h,e),T(e))},role:"presentation"}),I?I(x):p().createElement("button",(0,r.Z)({type:"button",role:"tab"},x),m))}}]),a}(p().Component);(0,f.Z)(N,"contextType",Z.T),(0,f.Z)(N,"propTypes",{className:b().string,disabled:b().bool,handleTabClick:b().func,handleTabKeyDown:b().func,href:(0,g.Z)(b().string),id:b().string,index:b().number,label:o.am("enable-v11-release")?b().node.isRequired:b().node,onClick:b().func.isRequired,onKeyDown:b().func.isRequired,renderAnchor:(0,g.Z)(b().func),renderButton:b().func,renderContent:b().func,role:(0,g.Z)(b().string),selected:b().bool.isRequired,tabIndex:b().number}),(0,f.Z)(N,"defaultProps",{label:o.am("enable-v11-release")?void 0:"provide a label",selected:!1,onClick:function(){},onKeyDown:function(){}});const O=o.am("enable-v11-release")?a.OK:N},3950:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>K});var o=n(145),a=n(7823),r=n(7896),l=n(2159),c=n(9249),i=n(7371),s=n(753),u=n(8106),d=n(1987),f=n(5058),v=n(6666),b=n(3980),h=n.n(b),p=n(9902),m=n.n(p),y=n(2779),g=n.n(y),Z=n(8358),w=n(594),N=n.n(w),O=n(4509),T=n(4817),_=n(2867),C=n(9130),E=n(1223),S=n(330),x=["className","selected","children"],I=function(e){var t=e.className,n=e.selected,o=e.children,a=(0,l.Z)(e,x),c=(0,S.A)(),i=g()("".concat(c,"--tab-content"),(0,v.Z)({},t,t)),s=(0,p.useRef)(null),u=function(e){var t=(0,p.useState)(!1),n=(0,_.Z)(t,2),o=n[0],a=n[1];return(0,E.Z)((function(){e.current&&a(e.current.querySelector(C.Kq))})),o}(s);return m().createElement("div",(0,r.Z)({role:"tabpanel"},a,{className:i,selected:n,hidden:!n,ref:s,tabIndex:u?void 0:0}),o)};I.propTypes={children:h().node,className:h().string,selected:h().bool},I.defaultProps={selected:!1};const R=I;var A=["className","type","light","onSelectionChange","scrollDebounceWait","scrollIntoView","selectionMode","tabContentClassName","leftOverflowButtonProps","rightOverflowButtonProps"];var D=function(e){(0,u.Z)(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=(0,f.Z)(t);if(n){var a=(0,f.Z)(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return(0,d.Z)(this,e)});function a(){var e;(0,c.Z)(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=o.call.apply(o,[this].concat(n)),(0,v.Z)((0,s.Z)(e),"state",{horizontalOverflow:!1}),(0,v.Z)((0,s.Z)(e),"tablist",m().createRef()),(0,v.Z)((0,s.Z)(e),"leftOverflowNavButton",m().createRef()),(0,v.Z)((0,s.Z)(e),"rightOverflowNavButton",m().createRef()),(0,v.Z)((0,s.Z)(e),"OVERFLOW_BUTTON_OFFSET",40),(0,v.Z)((0,s.Z)(e),"handleScroll",(function(){var t;if(null!==(t=e.tablist)&&void 0!==t&&t.current){var n=e.tablist.current,o=n.clientWidth,a=n.scrollLeft,r=n.scrollWidth;e.setState({tablistClientWidth:o,horizontalOverflow:r>o,tablistScrollWidth:r,tablistScrollLeft:a})}})),(0,v.Z)((0,s.Z)(e),"_debouncedHandleWindowResize",null),(0,v.Z)((0,s.Z)(e),"_handleWindowResize",e.handleScroll),(0,v.Z)((0,s.Z)(e),"_debouncedHandleScroll",null),(0,v.Z)((0,s.Z)(e),"_handleScroll",e.handleScroll),(0,v.Z)((0,s.Z)(e),"getEnabledTabs",(function(){return m().Children.toArray(e.props.children).reduce((function(e,t,n){return t.props.disabled?e:e.concat(n)}),[])})),(0,v.Z)((0,s.Z)(e),"getNextIndex",(function(t,n){var o=e.getEnabledTabs(),a=Math.max(o.indexOf(t)+n,-1);return o[a>=0&&a<o.length?a:a-Math.sign(a)*o.length]})),(0,v.Z)((0,s.Z)(e),"getDirection",(function(e){return(0,O.EQ)(e,T.Xd)?-1:(0,O.EQ)(e,T.ol)?1:0})),(0,v.Z)((0,s.Z)(e),"getTabAt",(function(t,n){return!n&&e["tab".concat(t)]||m().Children.toArray(e.props.children)[t]})),(0,v.Z)((0,s.Z)(e),"scrollTabIntoView",(function(t,n){var o=n.index,a=e.getTabAt(o);if((0,O.wB)(t,[T.Xd,T.ol])||"click"===t.type){var r,l,c=e.state.tablistScrollLeft;null==a||null===(r=a.tabAnchor)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),null==a||null===(l=a.tabAnchor)||void 0===l||l.focus(),e.tablist.current.scrollLeft>c&&(e.tablist.current.scrollLeft+=e.OVERFLOW_BUTTON_OFFSET)}})),(0,v.Z)((0,s.Z)(e),"selectTabAt",(function(t,n){var o=n.index,a=n.onSelectionChange;e.scrollTabIntoView(t,{index:o}),e.state.selected!==o&&(e.setState({selected:o}),"function"==typeof a&&a(o))})),(0,v.Z)((0,s.Z)(e),"handleTabKeyDown",(function(t){return function(n,o){(0,O.wB)(o,[T.Ce,T.T])&&e.selectTabAt(o,{index:n,onSelectionChange:t});var a,r=(0,O.wB)(o,[T.Xd,T.ol])?e.getNextIndex(n,e.getDirection(o)):(0,O.EQ)(o,T.SK)?0:(0,O.EQ)(o,T.Cj)?e.getEnabledTabs().pop():void 0,l=e.getTabAt(r);(0,O.wB)(o,[T.Xd,T.ol,T.SK,T.Cj])&&(o.preventDefault(),"manual"!==e.props.selectionMode?e.selectTabAt(o,{index:r,onSelectionChange:t}):e.scrollTabIntoView(o,{index:r}),null==l||null===(a=l.tabAnchor)||void 0===a||a.focus())}})),(0,v.Z)((0,s.Z)(e),"getTabs",(function(){return m().Children.map(e.props.children,(function(e){return e}))})),(0,v.Z)((0,s.Z)(e),"handleTabClick",(function(t){return function(n,o){o.preventDefault(),e.selectTabAt(o,{index:n,onSelectionChange:t})}})),(0,v.Z)((0,s.Z)(e),"setTabAt",(function(t,n){e["tab".concat(t)]=n})),(0,v.Z)((0,s.Z)(e),"overflowNavInterval",null),(0,v.Z)((0,s.Z)(e),"handleOverflowNavClick",(function(t,n){var o,a=n.direction,r=n.multiplier,l=void 0===r?10:r,c=null===(o=e.tablist)||void 0===o?void 0:o.current,i=c.clientWidth,s=c.scrollLeft,u=c.scrollWidth;1!==a||s||(e.tablist.current.scrollLeft+=e.OVERFLOW_BUTTON_OFFSET),e.tablist.current.scrollLeft+=a*l;var d,f,v,b,h=-1===a&&s<e.OVERFLOW_BUTTON_OFFSET,p=1===a&&s+i>=u-e.OVERFLOW_BUTTON_OFFSET;(h||p)&&(h&&(null===(d=e.rightOverflowNavButton)||void 0===d||null===(f=d.current)||void 0===f||f.focus()),p&&(null===(v=e.leftOverflowNavButton)||void 0===v||null===(b=v.current)||void 0===b||b.focus()))})),(0,v.Z)((0,s.Z)(e),"handleOverflowNavMouseDown",(function(t,n){var o=n.direction;1===t.buttons&&(e.overflowNavInterval=setInterval((function(){var n,a=null===(n=e.tablist)||void 0===n?void 0:n.current,r=a.clientWidth,l=a.scrollLeft,c=a.scrollWidth,i=-1===o&&l<e.OVERFLOW_BUTTON_OFFSET,s=1===o&&l+r>=c-e.OVERFLOW_BUTTON_OFFSET;(i||s)&&clearInterval(e.overflowNavInterval),e.handleOverflowNavClick(t,{direction:o})})))})),(0,v.Z)((0,s.Z)(e),"handleOverflowNavMouseUp",(function(){clearInterval(e.overflowNavInterval)})),e}return(0,i.Z)(a,[{key:"componentDidMount",value:function(){var e;this._debouncedHandleWindowResize||(this._debouncedHandleWindowResize=N()(this._handleWindowResize,200)),this._handleWindowResize(),window.addEventListener("resize",this._debouncedHandleWindowResize),this._debouncedHandleScroll||(this._debouncedHandleScroll=N()(this._handleScroll,this.props.scrollDebounceWait));var t=(null===(e=this.tablist)||void 0===e?void 0:e.current)||{},n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth,r=this.getTabAt(this.state.selected);if(a>n){var l,c,i,s=(null==r||null===(l=r.tabAnchor)||void 0===l?void 0:l.getBoundingClientRect().right)<(null==r||null===(c=r.tabAnchor)||void 0===c?void 0:c.offsetParent.getBoundingClientRect().right),u=o+n===a;this.props.scrollIntoView&&(null==r||null===(i=r.tabAnchor)||void 0===i||i.scrollIntoView({block:"nearest",inline:"nearest"})),s||u||(this.tablist.current.scrollLeft+=2*this.OVERFLOW_BUTTON_OFFSET)}}},{key:"componentWillUnmount",value:function(){this._debouncedHandleWindowResize&&this._debouncedHandleWindowResize.cancel(),window.removeEventListener("resize",this._debouncedHandleWindowResize)}},{key:"componentDidUpdate",value:function(e,t){var n,o,a=this.tablist.current,r=a.clientWidth,l=a.scrollLeft,c=a.scrollWidth,i=this.state,s=i.tablistClientWidth,u=i.tablistScrollLeft,d=i.tablistScrollWidth,f=i.selected;r===s&&l===u&&c===d||this.setState({horizontalOverflow:c>r,tablistClientWidth:r,tablistScrollLeft:l,tablistScrollWidth:c}),this.props.scrollIntoView&&t.selected!==f&&(null===(n=this.getTabAt(f))||void 0===n||null===(o=n.tabAnchor)||void 0===o||o.scrollIntoView({block:"nearest",inline:"nearest"}))}},{key:"render",value:function(){var e,t,n,o=this,a=this.props,c=a.className,i=a.type,s=a.light,u=a.onSelectionChange,d=(a.scrollDebounceWait,a.scrollIntoView,a.selectionMode,a.tabContentClassName),f=a.leftOverflowButtonProps,b=a.rightOverflowButtonProps,h=(0,l.Z)(a,A),p=this.context,y=this.getTabs().map((function(e,t){var n=t===o.state.selected?0:-1;return m().cloneElement(e,{index:t,selected:t===o.state.selected,handleTabClick:o.handleTabClick(u),tabIndex:n,ref:function(e){o.setTabAt(t,e)},handleTabKeyDown:o.handleTabKeyDown(u)})})),w=m().Children.map(y,(function(e){var t=e.props,n=t.id,o=t.children,a=t.selected,r=t.renderContent,l=void 0===r?R:r;return m().createElement(l,{id:n&&"".concat(n,"__panel"),className:d,hidden:!a,selected:a,"aria-labelledby":n},o)})),N=!this.state.horizontalOverflow||!this.state.tablistScrollLeft,O=!this.state.horizontalOverflow||this.state.tablistScrollLeft+this.state.tablistClientWidth===this.state.tablistScrollWidth,T={tabs:g()(c,"".concat(p,"--tabs--scrollable"),(e={},(0,v.Z)(e,"".concat(p,"--tabs--scrollable--container"),"container"===i),(0,v.Z)(e,"".concat(p,"--tabs--scrollable--light"),s),e)),tablist:g()("".concat(p,"--tabs--scrollable__nav")),leftOverflowButtonClasses:g()((t={},(0,v.Z)(t,"".concat(p,"--tab--overflow-nav-button"),this.state.horizontalOverflow),(0,v.Z)(t,"".concat(p,"--tab--overflow-nav-button--hidden"),N),t)),rightOverflowButtonClasses:g()((n={},(0,v.Z)(n,"".concat(p,"--tab--overflow-nav-button"),this.state.horizontalOverflow),(0,v.Z)(n,"".concat(p,"--tab--overflow-nav-button--hidden"),O),n))};return m().createElement(m().Fragment,null,m().createElement("div",(0,r.Z)({},h,{className:T.tabs}),m().createElement("button",(0,r.Z)({"aria-hidden":"true","aria-label":"Scroll left",className:T.leftOverflowButtonClasses,onClick:function(e){return o.handleOverflowNavClick(e,{direction:-1})},onMouseDown:function(e){return o.handleOverflowNavMouseDown(e,{direction:-1})},onMouseUp:this.handleOverflowNavMouseUp,ref:this.leftOverflowNavButton,tabIndex:"-1",type:"button"},f),m().createElement(Z.cDj,null)),!N&&m().createElement("div",{className:"".concat(p,"--tabs__overflow-indicator--left")}),m().createElement("ul",{role:"tablist",tabIndex:-1,className:T.tablist,ref:this.tablist,onScroll:this._debouncedHandleScroll},y),!O&&m().createElement("div",{className:"".concat(p,"--tabs__overflow-indicator--right")}),m().createElement("button",(0,r.Z)({"aria-hidden":"true","aria-label":"Scroll right",className:T.rightOverflowButtonClasses,onClick:function(e){return o.handleOverflowNavClick(e,{direction:1})},onMouseDown:function(e){return o.handleOverflowNavMouseDown(e,{direction:1})},onMouseUp:this.handleOverflowNavMouseUp,ref:this.rightOverflowNavButton,tabIndex:"-1",type:"button"},b),m().createElement(Z.F3j,null))),w)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.selected;return t.prevSelected===n?null:{selected:n,prevSelected:n}}}]),a}(m().Component);(0,v.Z)(D,"propTypes",{children:h().node,className:h().string,hidden:h().bool,leftOverflowButtonProps:h().object,light:h().bool,onClick:h().func,onKeyDown:h().func,onSelectionChange:h().func,rightOverflowButtonProps:h().object,scrollDebounceWait:h().number,scrollIntoView:h().bool,selected:h().number,selectionMode:h().oneOf(["automatic","manual"]),tabContentClassName:h().string,type:h().oneOf(["default","container"])}),(0,v.Z)(D,"defaultProps",{type:"default",scrollIntoView:!0,selected:0,selectionMode:"automatic",scrollDebounceWait:150}),(0,v.Z)(D,"contextType",S.T);var k=["className","type"];function W(){var e=(0,S.A)();return m().createElement("li",{className:"".concat(e,"--tabs--scrollable__nav-item")},m().createElement("div",{className:"".concat(e,"--tabs__nav-link")},m().createElement("span",null)))}function B(e){var t=e.className,n=e.type,o=(0,l.Z)(e,k),a=(0,S.A)(),c=g()(t,"".concat(a,"--tabs"),"".concat(a,"--skeleton"),"".concat(a,"--tabs--scrollable"),(0,v.Z)({},"".concat(a,"--tabs--scrollable--container"),"container"===n));return m().createElement("div",(0,r.Z)({className:c},o),m().createElement("ul",{className:"".concat(a,"--tabs--scrollable__nav")},W(),W(),W(),W(),W()))}B.propTypes={className:h().string,type:h().oneOf(["","default","container"])};var M=["className","contained"];function j(){var e=(0,S.A)();return m().createElement("li",{className:"".concat(e,"--tabs__nav-item")},m().createElement("div",{className:"".concat(e,"--tabs__nav-link")},m().createElement("span",null)))}function F(e){var t=e.className,n=e.contained,o=(0,l.Z)(e,M),a=(0,S.A)(),c=g()(t,"".concat(a,"--tabs"),"".concat(a,"--skeleton"),(0,v.Z)({},"".concat(a,"--tabs--contained"),n));return m().createElement("div",(0,r.Z)({className:c},o),m().createElement("ul",{className:"".concat(a,"--tabs__nav")},j(),j(),j(),j(),j()))}F.propTypes={className:h().string,contained:h().bool};var L=o.am("enable-v11-release")?a.mQ:D;o.am("enable-v11-release");const K=L},7823:(e,t,n)=>{"use strict";n.d(t,{OK:()=>D,mQ:()=>A});var o=n(7896),a=n(6666),r=n(2159),l=n(2867),c=(n(8358),n(2779)),i=n.n(c),s=(n(594),n(3980)),u=n.n(s),d=n(9902),f=n.n(d),v=n(330),b=["align","as","caret","className","children","dropShadow","highContrast","open"],h=["className","children"],p=f().forwardRef((function(e,t){var n,l=e.align,c=void 0===l?"bottom":l,s=e.as,u=void 0===s?"span":s,d=e.caret,h=void 0===d||d,p=e.className,m=e.children,y=e.dropShadow,g=void 0===y||y,Z=e.highContrast,w=void 0!==Z&&Z,N=e.open,O=(0,r.Z)(e,b),T=(0,v.A)(),_=i()((n={},(0,a.Z)(n,"".concat(T,"--popover-container"),!0),(0,a.Z)(n,"".concat(T,"--popover--caret"),h),(0,a.Z)(n,"".concat(T,"--popover--drop-shadow"),g),(0,a.Z)(n,"".concat(T,"--popover--high-contrast"),w),(0,a.Z)(n,"".concat(T,"--popover--open"),N),(0,a.Z)(n,"".concat(T,"--popover--").concat(c),!0),(0,a.Z)(n,p,!!p),n));return f().createElement(u,(0,o.Z)({},O,{className:_,ref:t}),m)}));p.propTypes={align:u().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:u().oneOfType([u().string,u().elementType]),caret:u().bool,children:u().node,className:u().string,dropShadow:u().bool,highContrast:u().bool,open:u().bool.isRequired};var m=f().forwardRef((function(e,t){var n=e.className,a=e.children,l=(0,r.Z)(e,h),c=(0,v.A)();return f().createElement("span",(0,o.Z)({},l,{className:"".concat(c,"--popover")}),f().createElement("span",{className:i()("".concat(c,"--popover-content"),n),ref:t},a),f().createElement("span",{className:"".concat(c,"--popover-caret")}))}));m.propTypes={children:u().node,className:u().string};var y=n(4509),g=n(4817),Z=n(7304);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function N(e){if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}(e.childNodes);try{for(n.s();!(t=n.n()).done;){var o=N(t.value);if(o)return o}}catch(e){n.e(e)}finally{n.f()}return null}var O=["align","className","children","label","description","enterDelayMs","leaveDelayMs","defaultOpen"];function T(e){var t,n,a,c,s,u,b,h=e.align,w=void 0===h?"top":h,N=e.className,T=e.children,_=e.label,C=e.description,E=e.enterDelayMs,S=void 0===E?100:E,x=e.leaveDelayMs,I=void 0===x?300:x,R=e.defaultOpen,A=void 0!==R&&R,D=(0,r.Z)(e,O),k=(0,d.useRef)(null),W=(0,d.useRef)(null),B=(t=A,n=(0,d.useState)(t),c=(a=(0,l.Z)(n,2))[0],s=a[1],u=(0,d.useRef)(null),b=(0,d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;clearTimeout(u.current),u.current=null,0!==t?u.current=setTimeout((function(){s(e),u.current=null}),t):s(e)}),[]),(0,d.useEffect)((function(){return function(){clearTimeout(u.current)}}),[]),[c,b]),M=(0,l.Z)(B,2),j=M[0],F=M[1],L=(0,Z.M)("tooltip"),K=(0,v.A)(),V=f().Children.only(T),U={onFocus:function(){return F(!0)},onBlur:function(){return F(!1)},onMouseEnter:function(){F(!0,S)}};return _?U["aria-labelledby"]=L:U["aria-describedby"]=L,f().createElement(p,(0,o.Z)({},D,{align:w,className:i()("".concat(K,"--tooltip"),N),dropShadow:!1,highContrast:!0,onKeyDown:function(e){j&&(0,y.EQ)(e,g.L1)&&(e.stopPropagation(),F(!1))},onMouseLeave:function(){F(!1,I)},open:j,ref:k}),f().cloneElement(V,U),f().createElement(m,{"aria-hidden":"true",className:"".concat(K,"--tooltip-content"),id:L,ref:W,role:"tooltip"},_||C))}T.propTypes={align:u().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:u().node,className:u().string,defaultOpen:u().bool,description:u().node,enterDelayMs:u().number,label:u().node,leaveDelayMs:u().number},n(1223);var _=n(4133),C=["as","children","className","disabled","onClick","onKeyDown"],E=["children","className","defaultOpen","enterDelayMs","leaveDelayMs","label"],S=["children","className"],x=f().createContext(),I=f().createContext(),R=f().createContext();function A(e){var t=e.children,n=e.defaultSelectedIndex,o=void 0===n?0:n,a=e.onChange,r=e.selectedIndex,c=(0,Z.M)("ccs"),i=(0,d.useState)(o),s=(0,l.Z)(i,2),u=s[0],v=s[1],b=function(e){var t=e.defaultValue,n=e.name,o=void 0===n?"custom":n,a=e.onChange,r=e.value,c=(0,d.useState)(null!=r?r:t),i=(0,l.Z)(c,2),s=i[0],u=i[1],f=(0,d.useRef)(null);function v(e){var t="function"==typeof e?e(s):e;!1===f.current&&u(t),a&&a(t)}return null===f.current&&(f.current=void 0!==r),(0,d.useEffect)((function(){f.current,f.current}),[o,r]),!0===f.current?[r,v]:[s,v]}({value:r,defaultValue:o,onChange:function(e){a&&a({selectedIndex:e})}}),h=(0,l.Z)(b,2),p={baseId:c,activeIndex:u,defaultSelectedIndex:o,setActiveIndex:v,selectedIndex:h[0],setSelectedIndex:h[1]};return f().createElement(x.Provider,{value:p},t)}A.propTypes={children:u().node,defaultSelectedIndex:u().number,onChange:u().func,selectedIndex:u().number},u().oneOf(["automatic","manual"]),u().string.isRequired,u().node,u().string,u().bool,u().oneOf(["default","lg"]),u().object,u().bool,u().object,u().number,u().bool;var D=f().forwardRef((function(e,t){var n,l=e.as,c=void 0===l?"button":l,s=e.children,u=e.className,d=e.disabled,b=e.onClick,h=e.onKeyDown,p=(0,r.Z)(e,C),m=(0,v.A)(),y=f().useContext(x),g=y.selectedIndex,Z=y.setSelectedIndex,w=y.baseId,N=f().useContext(I),O="".concat(w,"-tab-").concat(N),T="".concat(w,"-tabpanel-").concat(N),_=i()("".concat(m,"--tabs__nav-item"),"".concat(m,"--tabs__nav-link"),u,(n={},(0,a.Z)(n,"".concat(m,"--tabs__nav-item--selected"),g===N),(0,a.Z)(n,"".concat(m,"--tabs__nav-item--disabled"),d),n));return f().createElement(c,(0,o.Z)({},p,{"aria-controls":T,"aria-disabled":d,"aria-selected":g===N,ref:t,id:O,role:"tab",className:_,disabled:d,onClick:function(e){d||(Z(N),b&&b(e))},onKeyDown:h,tabIndex:g===N?"0":"-1",type:"button"}),s)}));D.propTypes={as:u().oneOfType([u().string,u().elementType]),children:u().node,className:u().string,disabled:u().bool,onClick:u().func,onKeyDown:u().func,renderButton:u().func},f().forwardRef((function(e,t){var n=e.children,a=e.className,l=e.defaultOpen,c=void 0!==l&&l,s=e.enterDelayMs,u=e.leaveDelayMs,d=e.label,b=(0,r.Z)(e,E),h=(0,v.A)(),p=i()("".concat(h,"--tabs__nav-item--icon"),a);return f().createElement(T,{align:"bottom",defaultOpen:c,className:"".concat(h,"--icon-tooltip"),enterDelayMs:s,label:d,leaveDelayMs:u},f().createElement(D,(0,o.Z)({className:p,ref:t},b),n))})).propTypes={children:u().node,className:u().string,defaultOpen:u().bool,enterDelayMs:u().number,label:u().node.isRequired,leaveDelayMs:u().number},f().forwardRef((function(e,t){var n=e.children,a=e.className,c=(0,r.Z)(e,S),s=(0,v.A)(),u=(0,d.useRef)(null),b=(0,_.r)([t,u]),h=(0,d.useState)("0"),p=(0,l.Z)(h,2),m=p[0],y=p[1],g=f().useContext(x),Z=g.selectedIndex,w=g.baseId,O=f().useContext(R),T="".concat(w,"-tabpanel-").concat(O),C="".concat(w,"-tab-").concat(O),E=i()("".concat(s,"--tab-content"),a);return(0,d.useEffect)((function(){N(u.current)&&y("-1")}),[]),f().createElement("div",(0,o.Z)({},c,{"aria-labelledby":C,id:T,className:E,ref:b,role:"tabpanel",tabIndex:m,hidden:Z!==O}),n)})).propTypes={children:u().node,className:u().string},u().node},594:(e,t,n)=>{var o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,u=i||s||Function("return this")(),d=Object.prototype.toString,f=Math.max,v=Math.min,b=function(){return u.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=r.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var o,a,r,l,c,i,s=0,u=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=o,r=a;return o=a=void 0,s=t,l=e.apply(r,n)}function g(e){return s=e,c=setTimeout(w,t),u?y(e):l}function Z(e){var n=e-i;return void 0===i||n>=t||n<0||d&&e-s>=r}function w(){var e=b();if(Z(e))return N(e);c=setTimeout(w,function(e){var n=t-(e-i);return d?v(n,r-(e-s)):n}(e))}function N(e){return c=void 0,m&&o?y(e):(o=a=void 0,l)}function O(){var e=b(),n=Z(e);if(o=arguments,a=this,i=e,n){if(void 0===c)return g(i);if(d)return c=setTimeout(w,t),y(i)}return void 0===c&&(c=setTimeout(w,t)),l}return t=p(t)||0,h(n)&&(u=!!n.leading,r=(d="maxWait"in n)?f(p(n.maxWait)||0,t):r,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==c&&clearTimeout(c),s=0,o=i=a=c=void 0},O.flush=function(){return void 0===c?l:N(b())},O}},8260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});const o="object"==typeof global&&global&&global.Object===Object&&global;var a="object"==typeof self&&self&&self.Object===Object&&self;const r=(o||a||Function("return this")()).Symbol,l=Array.isArray;var c=Object.prototype,i=c.hasOwnProperty,s=c.toString,u=r?r.toStringTag:void 0;var d=Object.prototype.toString;var f=r?r.toStringTag:void 0;const v=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var o=!0}catch(e){}var a=s.call(e);return o&&(t?e[u]=n:delete e[u]),a}(e):function(e){return d.call(e)}(e)};var b=r?r.prototype:void 0,h=b?b.toString:void 0;const p=function e(t){if("string"==typeof t)return t;if(l(t))return function(e,t){for(var n=-1,o=null==e?0:e.length,a=Array(o);++n<o;)a[n]=t(e[n],n,e);return a}(t,e)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==v(e)}(t))return h?h.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},m=function(e){return null==e?"":p(e)},y=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++o<a;)r[o]=e[o+t];return r}(e,t,n)};var g=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Z=function(e){return g.test(e)};var w="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",N="\\ud83c[\\udffb-\\udfff]",O="[^\\ud800-\\udfff]",T="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+w+"|"+N+")?",E="[\\ufe0e\\ufe0f]?",S=E+C+"(?:\\u200d(?:"+[O,T,_].join("|")+")"+E+C+")*",x="(?:"+[O+w+"?",w,T,_,"[\\ud800-\\udfff]"].join("|")+")",I=RegExp(N+"(?="+N+")|"+x+S,"g");const R=function(e){return Z(e)?function(e){return e.match(I)||[]}(e):function(e){return e.split("")}(e)},A=function(e){e=m(e);var t=Z(e)?R(e):void 0,n=t?t[0]:e.charAt(0),o=t?y(t,1).join(""):e.slice(1);return n.toUpperCase()+o},D=function(e){return A(m(e).toLowerCase())}}}]);
2
- //# sourceMappingURL=260.js.map
1
+ (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[260],{5787:(e,t,n)=>{"use strict";n.d(t,{Z:()=>m});var o=n(5882),a=n(4245),r=n(8775),l=n(3980),c=n.n(l),i=n(9902),s=n.n(i),u=n(2779),d=n.n(u),f=n(330),v=["paragraph","lineCount","width","heading","className"],b=[.973051493507435,.15334737213558558,.5671034553053769];function h(e,t,n){return Math.floor(b[n%3]*(t-e+1))+e}var p=function(e){var t,n=e.paragraph,l=e.lineCount,c=e.width,i=e.heading,u=e.className,b=(0,r.Z)(e,v),p=(0,f.A)(),m=d()((t={},(0,a.Z)(t,"".concat(p,"--skeleton__text"),!0),(0,a.Z)(t,"".concat(p,"--skeleton__heading"),i),(0,a.Z)(t,u,u),t)),y=parseInt(c,10),g=c.includes("px");if(c.includes("%")&&n){for(var Z=[],w=0;w<l;w++){var N=h(0,75,w)+"px";Z.push(s().createElement("p",(0,o.Z)({className:m,style:{width:"calc(".concat(c," - ").concat(N,")")},key:w},b)))}return s().createElement("div",null,Z)}if(g&&n){for(var O=[],T=0;T<l;T++){var _=h(y-75,y,T)+"px";O.push(s().createElement("p",(0,o.Z)({className:m,style:{width:_},key:T},b)))}return s().createElement("div",null,O)}return s().createElement("p",(0,o.Z)({className:m,style:{width:c}},b))};p.propTypes={className:c().string,heading:c().bool,lineCount:c().number,paragraph:c().bool,width:c().string},p.defaultProps={paragraph:!1,width:"100%",heading:!1,lineCount:3};const m=p},7513:(e,t,n)=>{"use strict";n.d(t,{Z:()=>O});var o=n(145),a=n(7823),r=n(5882),l=n(8775),c=n(7055),i=n(220),s=n(927),u=n(8605),d=n(5806),f=n(4245),v=n(3980),b=n.n(v),h=n(9902),p=n.n(h),m=n(2779),y=n.n(m),g=n(3597),Z=n(330),w=["id","className","handleTabClick","handleTabKeyDown","disabled","href","index","label","selected","tabIndex","onClick","onKeyDown","renderAnchor","renderButton","renderContent","role"];var N=function(e){(0,s.Z)(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=(0,d.Z)(t);if(n){var a=(0,d.Z)(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return(0,u.Z)(this,e)});function a(){return(0,c.Z)(this,a),o.apply(this,arguments)}return(0,i.Z)(a,[{key:"render",value:function(){var e,t,n=this,o=this.context,a=this.props,c=a.id,i=a.className,s=a.handleTabClick,u=a.handleTabKeyDown,d=a.disabled,v=a.href,b=void 0===v?"#":v,h=a.index,m=a.label,g=a.selected,Z=a.tabIndex,N=void 0===Z?0:Z,O=a.onClick,T=a.onKeyDown,_=a.renderAnchor,C=a.renderButton,E=(a.renderContent,a.role,(0,l.Z)(a,w)),S=y()(i,"".concat(o,"--tabs--scrollable__nav-item"),(e={},(0,f.Z)(e,"".concat(o,"--tabs__nav-item--disabled"),d),(0,f.Z)(e,"".concat(o,"--tabs__nav-item--selected"),g),(0,f.Z)(e,"".concat(o,"--tabs--scrollable__nav-item--disabled"),d),(0,f.Z)(e,"".concat(o,"--tabs--scrollable__nav-item--selected"),g),e)),x=(t={},(0,f.Z)(t,"aria-selected",g),(0,f.Z)(t,"aria-disabled",d),(0,f.Z)(t,"aria-controls",c&&"".concat(c,"__panel")),(0,f.Z)(t,"id",c),(0,f.Z)(t,"className","".concat(o,"--tabs--scrollable__nav-link")),(0,f.Z)(t,"href",b),(0,f.Z)(t,"tabIndex",d?-1:N),(0,f.Z)(t,"ref",(function(e){n.tabAnchor=e})),t),I=C||_;return p().createElement("li",(0,r.Z)({},E,{className:S,onClick:function(e){d||(s&&s(h,e),O(e))},onKeyDown:function(e){d||(u&&u(h,e),T(e))},role:"presentation"}),I?I(x):p().createElement("button",(0,r.Z)({type:"button",role:"tab"},x),m))}}]),a}(p().Component);(0,f.Z)(N,"contextType",Z.T),(0,f.Z)(N,"propTypes",{className:b().string,disabled:b().bool,handleTabClick:b().func,handleTabKeyDown:b().func,href:(0,g.Z)(b().string),id:b().string,index:b().number,label:o.am("enable-v11-release")?b().node.isRequired:b().node,onClick:b().func.isRequired,onKeyDown:b().func.isRequired,renderAnchor:(0,g.Z)(b().func),renderButton:b().func,renderContent:b().func,role:(0,g.Z)(b().string),selected:b().bool.isRequired,tabIndex:b().number}),(0,f.Z)(N,"defaultProps",{label:o.am("enable-v11-release")?void 0:"provide a label",selected:!1,onClick:function(){},onKeyDown:function(){}});const O=o.am("enable-v11-release")?a.OK:N},3950:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>K});var o=n(145),a=n(7823),r=n(5882),l=n(8775),c=n(7055),i=n(220),s=n(8127),u=n(927),d=n(8605),f=n(5806),v=n(4245),b=n(3980),h=n.n(b),p=n(9902),m=n.n(p),y=n(2779),g=n.n(y),Z=n(8358),w=n(594),N=n.n(w),O=n(4509),T=n(4817),_=n(1905),C=n(9130),E=n(1223),S=n(330),x=["className","selected","children"],I=function(e){var t=e.className,n=e.selected,o=e.children,a=(0,l.Z)(e,x),c=(0,S.A)(),i=g()("".concat(c,"--tab-content"),(0,v.Z)({},t,t)),s=(0,p.useRef)(null),u=function(e){var t=(0,p.useState)(!1),n=(0,_.Z)(t,2),o=n[0],a=n[1];return(0,E.Z)((function(){e.current&&a(e.current.querySelector(C.Kq))})),o}(s);return m().createElement("div",(0,r.Z)({role:"tabpanel"},a,{className:i,selected:n,hidden:!n,ref:s,tabIndex:u?void 0:0}),o)};I.propTypes={children:h().node,className:h().string,selected:h().bool},I.defaultProps={selected:!1};const R=I;var A=["className","type","light","onSelectionChange","scrollDebounceWait","scrollIntoView","selectionMode","tabContentClassName","leftOverflowButtonProps","rightOverflowButtonProps"];var D=function(e){(0,u.Z)(a,e);var t,n,o=(t=a,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=(0,f.Z)(t);if(n){var a=(0,f.Z)(this).constructor;e=Reflect.construct(o,arguments,a)}else e=o.apply(this,arguments);return(0,d.Z)(this,e)});function a(){var e;(0,c.Z)(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=o.call.apply(o,[this].concat(n)),(0,v.Z)((0,s.Z)(e),"state",{horizontalOverflow:!1}),(0,v.Z)((0,s.Z)(e),"tablist",m().createRef()),(0,v.Z)((0,s.Z)(e),"leftOverflowNavButton",m().createRef()),(0,v.Z)((0,s.Z)(e),"rightOverflowNavButton",m().createRef()),(0,v.Z)((0,s.Z)(e),"OVERFLOW_BUTTON_OFFSET",40),(0,v.Z)((0,s.Z)(e),"handleScroll",(function(){var t;if(null!==(t=e.tablist)&&void 0!==t&&t.current){var n=e.tablist.current,o=n.clientWidth,a=n.scrollLeft,r=n.scrollWidth;e.setState({tablistClientWidth:o,horizontalOverflow:r>o,tablistScrollWidth:r,tablistScrollLeft:a})}})),(0,v.Z)((0,s.Z)(e),"_debouncedHandleWindowResize",null),(0,v.Z)((0,s.Z)(e),"_handleWindowResize",e.handleScroll),(0,v.Z)((0,s.Z)(e),"_debouncedHandleScroll",null),(0,v.Z)((0,s.Z)(e),"_handleScroll",e.handleScroll),(0,v.Z)((0,s.Z)(e),"getEnabledTabs",(function(){return m().Children.toArray(e.props.children).reduce((function(e,t,n){return t.props.disabled?e:e.concat(n)}),[])})),(0,v.Z)((0,s.Z)(e),"getNextIndex",(function(t,n){var o=e.getEnabledTabs(),a=Math.max(o.indexOf(t)+n,-1);return o[a>=0&&a<o.length?a:a-Math.sign(a)*o.length]})),(0,v.Z)((0,s.Z)(e),"getDirection",(function(e){return(0,O.EQ)(e,T.Xd)?-1:(0,O.EQ)(e,T.ol)?1:0})),(0,v.Z)((0,s.Z)(e),"getTabAt",(function(t,n){return!n&&e["tab".concat(t)]||m().Children.toArray(e.props.children)[t]})),(0,v.Z)((0,s.Z)(e),"scrollTabIntoView",(function(t,n){var o=n.index,a=e.getTabAt(o);if((0,O.wB)(t,[T.Xd,T.ol])||"click"===t.type){var r,l,c=e.state.tablistScrollLeft;null==a||null===(r=a.tabAnchor)||void 0===r||r.scrollIntoView({block:"nearest",inline:"nearest"}),null==a||null===(l=a.tabAnchor)||void 0===l||l.focus(),e.tablist.current.scrollLeft>c&&(e.tablist.current.scrollLeft+=e.OVERFLOW_BUTTON_OFFSET)}})),(0,v.Z)((0,s.Z)(e),"selectTabAt",(function(t,n){var o=n.index,a=n.onSelectionChange;e.scrollTabIntoView(t,{index:o}),e.state.selected!==o&&(e.setState({selected:o}),"function"==typeof a&&a(o))})),(0,v.Z)((0,s.Z)(e),"handleTabKeyDown",(function(t){return function(n,o){(0,O.wB)(o,[T.Ce,T.T])&&e.selectTabAt(o,{index:n,onSelectionChange:t});var a,r=(0,O.wB)(o,[T.Xd,T.ol])?e.getNextIndex(n,e.getDirection(o)):(0,O.EQ)(o,T.SK)?0:(0,O.EQ)(o,T.Cj)?e.getEnabledTabs().pop():void 0,l=e.getTabAt(r);(0,O.wB)(o,[T.Xd,T.ol,T.SK,T.Cj])&&(o.preventDefault(),"manual"!==e.props.selectionMode?e.selectTabAt(o,{index:r,onSelectionChange:t}):e.scrollTabIntoView(o,{index:r}),null==l||null===(a=l.tabAnchor)||void 0===a||a.focus())}})),(0,v.Z)((0,s.Z)(e),"getTabs",(function(){return m().Children.map(e.props.children,(function(e){return e}))})),(0,v.Z)((0,s.Z)(e),"handleTabClick",(function(t){return function(n,o){o.preventDefault(),e.selectTabAt(o,{index:n,onSelectionChange:t})}})),(0,v.Z)((0,s.Z)(e),"setTabAt",(function(t,n){e["tab".concat(t)]=n})),(0,v.Z)((0,s.Z)(e),"overflowNavInterval",null),(0,v.Z)((0,s.Z)(e),"handleOverflowNavClick",(function(t,n){var o,a=n.direction,r=n.multiplier,l=void 0===r?10:r,c=null===(o=e.tablist)||void 0===o?void 0:o.current,i=c.clientWidth,s=c.scrollLeft,u=c.scrollWidth;1!==a||s||(e.tablist.current.scrollLeft+=e.OVERFLOW_BUTTON_OFFSET),e.tablist.current.scrollLeft+=a*l;var d,f,v,b,h=-1===a&&s<e.OVERFLOW_BUTTON_OFFSET,p=1===a&&s+i>=u-e.OVERFLOW_BUTTON_OFFSET;(h||p)&&(h&&(null===(d=e.rightOverflowNavButton)||void 0===d||null===(f=d.current)||void 0===f||f.focus()),p&&(null===(v=e.leftOverflowNavButton)||void 0===v||null===(b=v.current)||void 0===b||b.focus()))})),(0,v.Z)((0,s.Z)(e),"handleOverflowNavMouseDown",(function(t,n){var o=n.direction;1===t.buttons&&(e.overflowNavInterval=setInterval((function(){var n,a=null===(n=e.tablist)||void 0===n?void 0:n.current,r=a.clientWidth,l=a.scrollLeft,c=a.scrollWidth,i=-1===o&&l<e.OVERFLOW_BUTTON_OFFSET,s=1===o&&l+r>=c-e.OVERFLOW_BUTTON_OFFSET;(i||s)&&clearInterval(e.overflowNavInterval),e.handleOverflowNavClick(t,{direction:o})})))})),(0,v.Z)((0,s.Z)(e),"handleOverflowNavMouseUp",(function(){clearInterval(e.overflowNavInterval)})),e}return(0,i.Z)(a,[{key:"componentDidMount",value:function(){var e;this._debouncedHandleWindowResize||(this._debouncedHandleWindowResize=N()(this._handleWindowResize,200)),this._handleWindowResize(),window.addEventListener("resize",this._debouncedHandleWindowResize),this._debouncedHandleScroll||(this._debouncedHandleScroll=N()(this._handleScroll,this.props.scrollDebounceWait));var t=(null===(e=this.tablist)||void 0===e?void 0:e.current)||{},n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth,r=this.getTabAt(this.state.selected);if(a>n){var l,c,i,s=(null==r||null===(l=r.tabAnchor)||void 0===l?void 0:l.getBoundingClientRect().right)<(null==r||null===(c=r.tabAnchor)||void 0===c?void 0:c.offsetParent.getBoundingClientRect().right),u=o+n===a;this.props.scrollIntoView&&(null==r||null===(i=r.tabAnchor)||void 0===i||i.scrollIntoView({block:"nearest",inline:"nearest"})),s||u||(this.tablist.current.scrollLeft+=2*this.OVERFLOW_BUTTON_OFFSET)}}},{key:"componentWillUnmount",value:function(){this._debouncedHandleWindowResize&&this._debouncedHandleWindowResize.cancel(),window.removeEventListener("resize",this._debouncedHandleWindowResize)}},{key:"componentDidUpdate",value:function(e,t){var n,o,a=this.tablist.current,r=a.clientWidth,l=a.scrollLeft,c=a.scrollWidth,i=this.state,s=i.tablistClientWidth,u=i.tablistScrollLeft,d=i.tablistScrollWidth,f=i.selected;r===s&&l===u&&c===d||this.setState({horizontalOverflow:c>r,tablistClientWidth:r,tablistScrollLeft:l,tablistScrollWidth:c}),this.props.scrollIntoView&&t.selected!==f&&(null===(n=this.getTabAt(f))||void 0===n||null===(o=n.tabAnchor)||void 0===o||o.scrollIntoView({block:"nearest",inline:"nearest"}))}},{key:"render",value:function(){var e,t,n,o=this,a=this.props,c=a.className,i=a.type,s=a.light,u=a.onSelectionChange,d=(a.scrollDebounceWait,a.scrollIntoView,a.selectionMode,a.tabContentClassName),f=a.leftOverflowButtonProps,b=a.rightOverflowButtonProps,h=(0,l.Z)(a,A),p=this.context,y=this.getTabs().map((function(e,t){var n=t===o.state.selected?0:-1;return m().cloneElement(e,{index:t,selected:t===o.state.selected,handleTabClick:o.handleTabClick(u),tabIndex:n,ref:function(e){o.setTabAt(t,e)},handleTabKeyDown:o.handleTabKeyDown(u)})})),w=m().Children.map(y,(function(e){var t=e.props,n=t.id,o=t.children,a=t.selected,r=t.renderContent,l=void 0===r?R:r;return m().createElement(l,{id:n&&"".concat(n,"__panel"),className:d,hidden:!a,selected:a,"aria-labelledby":n},o)})),N=!this.state.horizontalOverflow||!this.state.tablistScrollLeft,O=!this.state.horizontalOverflow||this.state.tablistScrollLeft+this.state.tablistClientWidth===this.state.tablistScrollWidth,T={tabs:g()(c,"".concat(p,"--tabs--scrollable"),(e={},(0,v.Z)(e,"".concat(p,"--tabs--scrollable--container"),"container"===i),(0,v.Z)(e,"".concat(p,"--tabs--scrollable--light"),s),e)),tablist:g()("".concat(p,"--tabs--scrollable__nav")),leftOverflowButtonClasses:g()((t={},(0,v.Z)(t,"".concat(p,"--tab--overflow-nav-button"),this.state.horizontalOverflow),(0,v.Z)(t,"".concat(p,"--tab--overflow-nav-button--hidden"),N),t)),rightOverflowButtonClasses:g()((n={},(0,v.Z)(n,"".concat(p,"--tab--overflow-nav-button"),this.state.horizontalOverflow),(0,v.Z)(n,"".concat(p,"--tab--overflow-nav-button--hidden"),O),n))};return m().createElement(m().Fragment,null,m().createElement("div",(0,r.Z)({},h,{className:T.tabs}),m().createElement("button",(0,r.Z)({"aria-hidden":"true","aria-label":"Scroll left",className:T.leftOverflowButtonClasses,onClick:function(e){return o.handleOverflowNavClick(e,{direction:-1})},onMouseDown:function(e){return o.handleOverflowNavMouseDown(e,{direction:-1})},onMouseUp:this.handleOverflowNavMouseUp,ref:this.leftOverflowNavButton,tabIndex:"-1",type:"button"},f),m().createElement(Z.cDj,null)),!N&&m().createElement("div",{className:"".concat(p,"--tabs__overflow-indicator--left")}),m().createElement("ul",{role:"tablist",tabIndex:-1,className:T.tablist,ref:this.tablist,onScroll:this._debouncedHandleScroll},y),!O&&m().createElement("div",{className:"".concat(p,"--tabs__overflow-indicator--right")}),m().createElement("button",(0,r.Z)({"aria-hidden":"true","aria-label":"Scroll right",className:T.rightOverflowButtonClasses,onClick:function(e){return o.handleOverflowNavClick(e,{direction:1})},onMouseDown:function(e){return o.handleOverflowNavMouseDown(e,{direction:1})},onMouseUp:this.handleOverflowNavMouseUp,ref:this.rightOverflowNavButton,tabIndex:"-1",type:"button"},b),m().createElement(Z.F3j,null))),w)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.selected;return t.prevSelected===n?null:{selected:n,prevSelected:n}}}]),a}(m().Component);(0,v.Z)(D,"propTypes",{children:h().node,className:h().string,hidden:h().bool,leftOverflowButtonProps:h().object,light:h().bool,onClick:h().func,onKeyDown:h().func,onSelectionChange:h().func,rightOverflowButtonProps:h().object,scrollDebounceWait:h().number,scrollIntoView:h().bool,selected:h().number,selectionMode:h().oneOf(["automatic","manual"]),tabContentClassName:h().string,type:h().oneOf(["default","container"])}),(0,v.Z)(D,"defaultProps",{type:"default",scrollIntoView:!0,selected:0,selectionMode:"automatic",scrollDebounceWait:150}),(0,v.Z)(D,"contextType",S.T);var k=["className","type"];function W(){var e=(0,S.A)();return m().createElement("li",{className:"".concat(e,"--tabs--scrollable__nav-item")},m().createElement("div",{className:"".concat(e,"--tabs__nav-link")},m().createElement("span",null)))}function B(e){var t=e.className,n=e.type,o=(0,l.Z)(e,k),a=(0,S.A)(),c=g()(t,"".concat(a,"--tabs"),"".concat(a,"--skeleton"),"".concat(a,"--tabs--scrollable"),(0,v.Z)({},"".concat(a,"--tabs--scrollable--container"),"container"===n));return m().createElement("div",(0,r.Z)({className:c},o),m().createElement("ul",{className:"".concat(a,"--tabs--scrollable__nav")},W(),W(),W(),W(),W()))}B.propTypes={className:h().string,type:h().oneOf(["","default","container"])};var M=["className","contained"];function j(){var e=(0,S.A)();return m().createElement("li",{className:"".concat(e,"--tabs__nav-item")},m().createElement("div",{className:"".concat(e,"--tabs__nav-link")},m().createElement("span",null)))}function F(e){var t=e.className,n=e.contained,o=(0,l.Z)(e,M),a=(0,S.A)(),c=g()(t,"".concat(a,"--tabs"),"".concat(a,"--skeleton"),(0,v.Z)({},"".concat(a,"--tabs--contained"),n));return m().createElement("div",(0,r.Z)({className:c},o),m().createElement("ul",{className:"".concat(a,"--tabs__nav")},j(),j(),j(),j(),j()))}F.propTypes={className:h().string,contained:h().bool};var L=o.am("enable-v11-release")?a.mQ:D;o.am("enable-v11-release");const K=L},7823:(e,t,n)=>{"use strict";n.d(t,{OK:()=>D,mQ:()=>A});var o=n(5882),a=n(4245),r=n(8775),l=n(1905),c=(n(8358),n(2779)),i=n.n(c),s=(n(594),n(3980)),u=n.n(s),d=n(9902),f=n.n(d),v=n(330),b=["align","as","caret","className","children","dropShadow","highContrast","open"],h=["className","children"],p=f().forwardRef((function(e,t){var n,l=e.align,c=void 0===l?"bottom":l,s=e.as,u=void 0===s?"span":s,d=e.caret,h=void 0===d||d,p=e.className,m=e.children,y=e.dropShadow,g=void 0===y||y,Z=e.highContrast,w=void 0!==Z&&Z,N=e.open,O=(0,r.Z)(e,b),T=(0,v.A)(),_=i()((n={},(0,a.Z)(n,"".concat(T,"--popover-container"),!0),(0,a.Z)(n,"".concat(T,"--popover--caret"),h),(0,a.Z)(n,"".concat(T,"--popover--drop-shadow"),g),(0,a.Z)(n,"".concat(T,"--popover--high-contrast"),w),(0,a.Z)(n,"".concat(T,"--popover--open"),N),(0,a.Z)(n,"".concat(T,"--popover--").concat(c),!0),(0,a.Z)(n,p,!!p),n));return f().createElement(u,(0,o.Z)({},O,{className:_,ref:t}),m)}));p.propTypes={align:u().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),as:u().oneOfType([u().string,u().elementType]),caret:u().bool,children:u().node,className:u().string,dropShadow:u().bool,highContrast:u().bool,open:u().bool.isRequired};var m=f().forwardRef((function(e,t){var n=e.className,a=e.children,l=(0,r.Z)(e,h),c=(0,v.A)();return f().createElement("span",(0,o.Z)({},l,{className:"".concat(c,"--popover")}),f().createElement("span",{className:i()("".concat(c,"--popover-content"),n),ref:t},a),f().createElement("span",{className:"".concat(c,"--popover-caret")}))}));m.propTypes={children:u().node,className:u().string};var y=n(4509),g=n(4817),Z=n(7304);function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function N(e){if(function(e){if(e.tabIndex<0)return!1;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return e;var t,n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,a=function(){};return{s:a,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,l=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){c=!0,r=e},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw r}}}}(e.childNodes);try{for(n.s();!(t=n.n()).done;){var o=N(t.value);if(o)return o}}catch(e){n.e(e)}finally{n.f()}return null}var O=["align","className","children","label","description","enterDelayMs","leaveDelayMs","defaultOpen"];function T(e){var t,n,a,c,s,u,b,h=e.align,w=void 0===h?"top":h,N=e.className,T=e.children,_=e.label,C=e.description,E=e.enterDelayMs,S=void 0===E?100:E,x=e.leaveDelayMs,I=void 0===x?300:x,R=e.defaultOpen,A=void 0!==R&&R,D=(0,r.Z)(e,O),k=(0,d.useRef)(null),W=(0,d.useRef)(null),B=(t=A,n=(0,d.useState)(t),c=(a=(0,l.Z)(n,2))[0],s=a[1],u=(0,d.useRef)(null),b=(0,d.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;clearTimeout(u.current),u.current=null,0!==t?u.current=setTimeout((function(){s(e),u.current=null}),t):s(e)}),[]),(0,d.useEffect)((function(){return function(){clearTimeout(u.current)}}),[]),[c,b]),M=(0,l.Z)(B,2),j=M[0],F=M[1],L=(0,Z.M)("tooltip"),K=(0,v.A)(),V=f().Children.only(T),U={onFocus:function(){return F(!0)},onBlur:function(){return F(!1)},onMouseEnter:function(){F(!0,S)}};return _?U["aria-labelledby"]=L:U["aria-describedby"]=L,f().createElement(p,(0,o.Z)({},D,{align:w,className:i()("".concat(K,"--tooltip"),N),dropShadow:!1,highContrast:!0,onKeyDown:function(e){j&&(0,y.EQ)(e,g.L1)&&(e.stopPropagation(),F(!1))},onMouseLeave:function(){F(!1,I)},open:j,ref:k}),f().cloneElement(V,U),f().createElement(m,{"aria-hidden":"true",className:"".concat(K,"--tooltip-content"),id:L,ref:W,role:"tooltip"},_||C))}T.propTypes={align:u().oneOf(["top","top-left","top-right","bottom","bottom-left","bottom-right","left","left-bottom","left-top","right","right-bottom","right-top"]),children:u().node,className:u().string,defaultOpen:u().bool,description:u().node,enterDelayMs:u().number,label:u().node,leaveDelayMs:u().number},n(1223);var _=n(4133),C=["as","children","className","disabled","onClick","onKeyDown"],E=["children","className","defaultOpen","enterDelayMs","leaveDelayMs","label"],S=["children","className"],x=f().createContext(),I=f().createContext(),R=f().createContext();function A(e){var t=e.children,n=e.defaultSelectedIndex,o=void 0===n?0:n,a=e.onChange,r=e.selectedIndex,c=(0,Z.M)("ccs"),i=(0,d.useState)(o),s=(0,l.Z)(i,2),u=s[0],v=s[1],b=function(e){var t=e.defaultValue,n=e.name,o=void 0===n?"custom":n,a=e.onChange,r=e.value,c=(0,d.useState)(null!=r?r:t),i=(0,l.Z)(c,2),s=i[0],u=i[1],f=(0,d.useRef)(null);function v(e){var t="function"==typeof e?e(s):e;!1===f.current&&u(t),a&&a(t)}return null===f.current&&(f.current=void 0!==r),(0,d.useEffect)((function(){f.current,f.current}),[o,r]),!0===f.current?[r,v]:[s,v]}({value:r,defaultValue:o,onChange:function(e){a&&a({selectedIndex:e})}}),h=(0,l.Z)(b,2),p={baseId:c,activeIndex:u,defaultSelectedIndex:o,setActiveIndex:v,selectedIndex:h[0],setSelectedIndex:h[1]};return f().createElement(x.Provider,{value:p},t)}A.propTypes={children:u().node,defaultSelectedIndex:u().number,onChange:u().func,selectedIndex:u().number},u().oneOf(["automatic","manual"]),u().string.isRequired,u().node,u().string,u().bool,u().oneOf(["default","lg"]),u().object,u().bool,u().object,u().number,u().bool;var D=f().forwardRef((function(e,t){var n,l=e.as,c=void 0===l?"button":l,s=e.children,u=e.className,d=e.disabled,b=e.onClick,h=e.onKeyDown,p=(0,r.Z)(e,C),m=(0,v.A)(),y=f().useContext(x),g=y.selectedIndex,Z=y.setSelectedIndex,w=y.baseId,N=f().useContext(I),O="".concat(w,"-tab-").concat(N),T="".concat(w,"-tabpanel-").concat(N),_=i()("".concat(m,"--tabs__nav-item"),"".concat(m,"--tabs__nav-link"),u,(n={},(0,a.Z)(n,"".concat(m,"--tabs__nav-item--selected"),g===N),(0,a.Z)(n,"".concat(m,"--tabs__nav-item--disabled"),d),n));return f().createElement(c,(0,o.Z)({},p,{"aria-controls":T,"aria-disabled":d,"aria-selected":g===N,ref:t,id:O,role:"tab",className:_,disabled:d,onClick:function(e){d||(Z(N),b&&b(e))},onKeyDown:h,tabIndex:g===N?"0":"-1",type:"button"}),s)}));D.propTypes={as:u().oneOfType([u().string,u().elementType]),children:u().node,className:u().string,disabled:u().bool,onClick:u().func,onKeyDown:u().func,renderButton:u().func},f().forwardRef((function(e,t){var n=e.children,a=e.className,l=e.defaultOpen,c=void 0!==l&&l,s=e.enterDelayMs,u=e.leaveDelayMs,d=e.label,b=(0,r.Z)(e,E),h=(0,v.A)(),p=i()("".concat(h,"--tabs__nav-item--icon"),a);return f().createElement(T,{align:"bottom",defaultOpen:c,className:"".concat(h,"--icon-tooltip"),enterDelayMs:s,label:d,leaveDelayMs:u},f().createElement(D,(0,o.Z)({className:p,ref:t},b),n))})).propTypes={children:u().node,className:u().string,defaultOpen:u().bool,enterDelayMs:u().number,label:u().node.isRequired,leaveDelayMs:u().number},f().forwardRef((function(e,t){var n=e.children,a=e.className,c=(0,r.Z)(e,S),s=(0,v.A)(),u=(0,d.useRef)(null),b=(0,_.r)([t,u]),h=(0,d.useState)("0"),p=(0,l.Z)(h,2),m=p[0],y=p[1],g=f().useContext(x),Z=g.selectedIndex,w=g.baseId,O=f().useContext(R),T="".concat(w,"-tabpanel-").concat(O),C="".concat(w,"-tab-").concat(O),E=i()("".concat(s,"--tab-content"),a);return(0,d.useEffect)((function(){N(u.current)&&y("-1")}),[]),f().createElement("div",(0,o.Z)({},c,{"aria-labelledby":C,id:T,className:E,ref:b,role:"tabpanel",tabIndex:m,hidden:Z!==O}),n)})).propTypes={children:u().node,className:u().string},u().node},594:(e,t,n)=>{var o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt,i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,s="object"==typeof self&&self&&self.Object===Object&&self,u=i||s||Function("return this")(),d=Object.prototype.toString,f=Math.max,v=Math.min,b=function(){return u.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=r.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var o,a,r,l,c,i,s=0,u=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=o,r=a;return o=a=void 0,s=t,l=e.apply(r,n)}function g(e){return s=e,c=setTimeout(w,t),u?y(e):l}function Z(e){var n=e-i;return void 0===i||n>=t||n<0||d&&e-s>=r}function w(){var e=b();if(Z(e))return N(e);c=setTimeout(w,function(e){var n=t-(e-i);return d?v(n,r-(e-s)):n}(e))}function N(e){return c=void 0,m&&o?y(e):(o=a=void 0,l)}function O(){var e=b(),n=Z(e);if(o=arguments,a=this,i=e,n){if(void 0===c)return g(i);if(d)return c=setTimeout(w,t),y(i)}return void 0===c&&(c=setTimeout(w,t)),l}return t=p(t)||0,h(n)&&(u=!!n.leading,r=(d="maxWait"in n)?f(p(n.maxWait)||0,t):r,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==c&&clearTimeout(c),s=0,o=i=a=c=void 0},O.flush=function(){return void 0===c?l:N(b())},O}},8260:(e,t,n)=>{"use strict";n.d(t,{Z:()=>D});const o="object"==typeof global&&global&&global.Object===Object&&global;var a="object"==typeof self&&self&&self.Object===Object&&self;const r=(o||a||Function("return this")()).Symbol,l=Array.isArray;var c=Object.prototype,i=c.hasOwnProperty,s=c.toString,u=r?r.toStringTag:void 0;var d=Object.prototype.toString;var f=r?r.toStringTag:void 0;const v=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":f&&f in Object(e)?function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var o=!0}catch(e){}var a=s.call(e);return o&&(t?e[u]=n:delete e[u]),a}(e):function(e){return d.call(e)}(e)};var b=r?r.prototype:void 0,h=b?b.toString:void 0;const p=function e(t){if("string"==typeof t)return t;if(l(t))return function(e,t){for(var n=-1,o=null==e?0:e.length,a=Array(o);++n<o;)a[n]=t(e[n],n,e);return a}(t,e)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==v(e)}(t))return h?h.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},m=function(e){return null==e?"":p(e)},y=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:function(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(a);++o<a;)r[o]=e[o+t];return r}(e,t,n)};var g=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const Z=function(e){return g.test(e)};var w="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",N="\\ud83c[\\udffb-\\udfff]",O="[^\\ud800-\\udfff]",T="(?:\\ud83c[\\udde6-\\uddff]){2}",_="[\\ud800-\\udbff][\\udc00-\\udfff]",C="(?:"+w+"|"+N+")?",E="[\\ufe0e\\ufe0f]?",S=E+C+"(?:\\u200d(?:"+[O,T,_].join("|")+")"+E+C+")*",x="(?:"+[O+w+"?",w,T,_,"[\\ud800-\\udfff]"].join("|")+")",I=RegExp(N+"(?="+N+")|"+x+S,"g");const R=function(e){return Z(e)?function(e){return e.match(I)||[]}(e):function(e){return e.split("")}(e)},A=function(e){e=m(e);var t=Z(e)?R(e):void 0,n=t?t[0]:e.charAt(0),o=t?y(t,1).join(""):e.slice(1);return n.toUpperCase()+o},D=function(e){return A(m(e).toLowerCase())}}}]);