UNPKG

@openmrs/esm-laboratory-app

Version:

An O3 frontend module for managing laboratory requests and queues

2 lines 742 kB
/*! For license information please see main.js.LICENSE.txt */ (()=>{var e,n,t,r,o={4199:(e,n,t)=>{"use strict";t.d(n,{JG:()=>R,MG:()=>I,NW:()=>D,_j:()=>M,bm:()=>$,c_:()=>z,yQ:()=>L});var r,o,a,i,l,c,u,s,d,f,p,m,b,h,g,v,y,w,O,k,S,x,E,C,A=t(16072),_=t.n(A),j=t(30795);function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){N(e,n,t[n])}))}return e}function P(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var D=_().forwardRef((function(e,n){var t=e.children,a=e.size,i=void 0===a?16:a,l=P(e,["children","size"]);return _().createElement(j.A,T({width:i,height:i,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},l),r||(r=_().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),o||(o=_().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),t)})),I=_().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,u=P(e,["children","size"]);return 20===o||"20"===o||"20px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},u),a||(a=_().createElement("path",{d:"M8 13.2L3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),i||(i=_().createElement("path",{d:"M15.6 5.6L8 13.2 3.6 8.8 2.7 9.7 7.1 14.1 8 15 16.5 6.5 15.6 5.6z"})),t):24===o||"24"===o||"24px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},u),l||(l=_().createElement("path",{d:"M10 15.9L4.7 10.6 3.6 11.6 8.9 16.9 10 18 20.6 7.4 19.5 6.3z"})),t):_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),c||(c=_().createElement("path",{d:"M13 24L4 15 5.414 13.586 13 21.171 26.586 7.586 28 9 13 24z"})),t)})),M=_().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,a=P(e,["children","size"]);return 16===o||"16"===o||"16px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),u||(u=_().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8c0,3.9,3.1,7,7,7s7-3.1,7-7C15,4.1,11.9,1,8,1z M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z"})),s||(s=_().createElement("path",{d:"M7,11L4.3,8.3l0.9-0.8L7,9.3l4-3.9l0.9,0.8L7,11z","data-icon-path":"inner-path",opacity:"0"})),t):20===o||"20"===o||"20px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},a),d||(d=_().createElement("path",{d:"M10,1c-4.9,0-9,4.1-9,9s4.1,9,9,9s9-4,9-9S15,1,10,1z M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z"})),f||(f=_().createElement("path",{fill:"none",d:"M8.7,13.5l-3.2-3.2l1-1l2.2,2.2l4.8-4.8l1,1L8.7,13.5z","data-icon-path":"inner-path",opacity:"0"})),t):24===o||"24"===o||"24px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},a),p||(p=_().createElement("path",{d:"M12,1C6,1,1,6,1,12s5,11,11,11s11-4.9,11-11S18.1,1,12,1z M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z"})),m||(m=_().createElement("path",{fill:"none",d:"M10.4,16.3l-3.9-3.9l1.3-1.2l2.7,2.7l5.8-5.8l1.3,1.3L10.4,16.3z","data-icon-path":"inner-path",opacity:"0"})),t):_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),b||(b=_().createElement("path",{d:"M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2ZM14,21.5908l-5-5L10.5906,15,14,18.4092,21.41,11l1.5957,1.5859Z"})),h||(h=_().createElement("path",{fill:"none",d:"M14 21.591L9 16.591 10.591 15 14 18.409 21.41 11 23.005 12.585 14 21.591z","data-icon-path":"inner-path"})),t)})),L=_().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,a=P(e,["children","size"]);return"glyph"===o||"glyph"===o||"glyphpx"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 6",fill:"currentColor"},a),g||(g=_().createElement("path",{d:"M5 6L0 1 0.7 0.3 5 4.6 9.3 0.3 10 1z"})),t):16===o||"16"===o||"16px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),v||(v=_().createElement("path",{d:"M8 11L3 6 3.7 5.3 8 9.6 12.3 5.3 13 6z"})),t):_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),y||(y=_().createElement("path",{d:"M16 22L6 12 7.4 10.6 16 19.2 24.6 10.6 26 12z"})),t)})),R=_().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,a=P(e,["children","size"]);return"glyph"===o||"glyph"===o||"glyphpx"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor"},a),w||(w=_().createElement("path",{d:"M0 5L5 0 5.7 0.7 1.4 5 5.7 9.3 5 10z"})),t):16===o||"16"===o||"16px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),O||(O=_().createElement("path",{d:"M5 8L10 3 10.7 3.7 6.4 8 10.7 12.3 10 13z"})),t):_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),k||(k=_().createElement("path",{d:"M10 16L20 6 21.4 7.4 12.8 16 21.4 24.6 20 26z"})),t)})),z=_().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,a=P(e,["children","size"]);return"glyph"===o||"glyph"===o||"glyphpx"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 6 10",fill:"currentColor"},a),S||(S=_().createElement("path",{d:"M6 5L1 10 0.3 9.3 4.6 5 0.3 0.7 1 0z"})),t):16===o||"16"===o||"16px"===o?_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),x||(x=_().createElement("path",{d:"M11 8L6 13 5.3 12.3 9.6 8 5.3 3.7 6 3z"})),t):_().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),E||(E=_().createElement("path",{d:"M22 16L12 26 10.6 24.6 19.2 16 10.6 7.4 12 6z"})),t)})),$=_().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,a=P(e,["children","size"]);return _().createElement(j.A,T({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),C||(C=_().createElement("path",{d:"M17.4141 16L24 9.4141 22.5859 8 16 14.5859 9.4143 8 8 9.4141 14.5859 16 8 22.5859 9.4143 24 16 17.4141 22.5859 24 24 22.5859 17.4141 16z"})),t)}))},10540:e=>{"use strict";e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},11699:(e,n,t)=>{"use strict";t.d(n,{CH:()=>s});var r,o,a,i=t(16072),l=t.n(i),c=t(30795);function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var s=l().forwardRef((function(e,n){var t=e.children,i=e.size,s=void 0===i?16:i,d=function(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}(e,["children","size"]);return l().createElement(c.A,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){u(e,n,t[n])}))}return e}({width:s,height:s,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},d),r||(r=l().createElement("circle",{cx:"16",cy:"8",r:"2"})),o||(o=l().createElement("circle",{cx:"16",cy:"16",r:"2"})),a||(a=l().createElement("circle",{cx:"16",cy:"24",r:"2"})),t)}))},13380:(e,n,t)=>{"use strict";function r(e,n){return null!=n&&"undefined"!=typeof Symbol&&n[Symbol.hasInstance]?!!n[Symbol.hasInstance](e):e instanceof n}function o(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}t.r(n),t.d(n,{__addDisposableResource:()=>R,__assign:()=>l,__asyncDelegator:()=>A,__asyncGenerator:()=>C,__asyncValues:()=>_,__await:()=>E,__awaiter:()=>h,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>L,__classPrivateFieldSet:()=>M,__createBinding:()=>v,__decorate:()=>u,__disposeResources:()=>$,__esDecorate:()=>d,__exportStar:()=>y,__extends:()=>i,__generator:()=>g,__importDefault:()=>D,__importStar:()=>P,__makeTemplateObject:()=>j,__metadata:()=>b,__param:()=>s,__propKey:()=>p,__read:()=>O,__rest:()=>c,__rewriteRelativeImportExtension:()=>F,__runInitializers:()=>f,__setFunctionName:()=>m,__spread:()=>k,__spreadArray:()=>x,__spreadArrays:()=>S,__values:()=>w,default:()=>B});var a=function(e,n){return a=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])},a(e,n)};function i(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function t(){this.constructor=e}a(e,n),e.prototype=null===n?Object.create(n):(t.prototype=n.prototype,new t)}var l=function(){return l=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e},l.apply(this,arguments)};function c(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(t[r[o]]=e[r[o]])}return t}function u(e,n,t,r){var a,i=arguments.length,l=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,t):r;if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,n,t,r);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(l=(i<3?a(l):i>3?a(n,t,l):a(n,t))||l);return i>3&&l&&Object.defineProperty(n,t,l),l}function s(e,n){return function(t,r){n(t,r,e)}}function d(e,n,t,r,a,i){function l(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=r.kind,s="getter"===u?"get":"setter"===u?"set":"value",d=!n&&e?r.static?e:e.prototype:null,f=n||(d?Object.getOwnPropertyDescriptor(d,r.name):{}),p=!1,m=t.length-1;m>=0;m--){var b={};for(var h in r)b[h]="access"===h?{}:r[h];for(var h in r.access)b.access[h]=r.access[h];b.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(l(e||null))};var g=(0,t[m])("accessor"===u?{get:f.get,set:f.set}:f[s],b);if("accessor"===u){if(void 0===g)continue;if(null===g||"object"!==(void 0===g?"undefined":o(g)))throw new TypeError("Object expected");(c=l(g.get))&&(f.get=c),(c=l(g.set))&&(f.set=c),(c=l(g.init))&&a.unshift(c)}else(c=l(g))&&("field"===u?a.unshift(c):f[s]=c)}d&&Object.defineProperty(d,r.name,f),p=!0}function f(e,n,t){for(var r=arguments.length>2,o=0;o<n.length;o++)t=r?n[o].call(e,t):n[o].call(e);return r?t:void 0}function p(e){return"symbol"===(void 0===e?"undefined":o(e))?e:"".concat(e)}function m(e,n,t){return"symbol"===(void 0===n?"undefined":o(n))&&(n=n.description?"[".concat(n.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:t?"".concat(t," ",n):n})}function b(e,n){if("object"===("undefined"==typeof Reflect?"undefined":o(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)}function h(e,n,t,o){return new(t||(t=Promise))((function(a,i){function l(e){try{u(o.next(e))}catch(e){i(e)}}function c(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){var n;e.done?a(e.value):(n=e.value,r(n,t)?n:new t((function(e){e(n)}))).then(l,c)}u((o=o.apply(e,n||[])).next())}))}function g(e,n){var t,r,o,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},i=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return i.next=l(0),i.throw=l(1),i.return=l(2),"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(l){return function(c){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,l[0]&&(a=0)),a;)try{if(t=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,r=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){a=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){a.label=l[1];break}if(6===l[0]&&a.label<o[1]){a.label=o[1],o=l;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(l);break}o[2]&&a.ops.pop(),a.trys.pop();continue}l=n.call(e,a)}catch(e){l=[6,e],r=0}finally{t=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}}var v=Object.create?function(e,n,t,r){void 0===r&&(r=t);var o=Object.getOwnPropertyDescriptor(n,t);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,o)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]};function y(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||v(n,e,t)}function w(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function O(e,n){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var r,o,a=t.call(e),i=[];try{for(;(void 0===n||n-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function k(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(O(arguments[n]));return e}function S(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;var r=Array(e),o=0;for(n=0;n<t;n++)for(var a=arguments[n],i=0,l=a.length;i<l;i++,o++)r[o]=a[i];return r}function x(e,n,t){if(t||2===arguments.length)for(var r,o=0,a=n.length;o<a;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return e.concat(r||Array.prototype.slice.call(n))}function E(e){return r(this,E)?(this.v=e,this):new E(e)}function C(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,a=t.apply(e,n||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",(function(e){return function(n){return Promise.resolve(n).then(e,s)}})),o[Symbol.asyncIterator]=function(){return this},o;function l(e,n){a[e]&&(o[e]=function(n){return new Promise((function(t,r){i.push([e,n,t,r])>1||c(e,n)}))},n&&(o[e]=n(o[e])))}function c(e,n){try{r((t=a[e](n)).value,E)?Promise.resolve(t.value.v).then(u,s):d(i[0][2],t)}catch(e){d(i[0][3],e)}var t}function u(e){c("next",e)}function s(e){c("throw",e)}function d(e,n){e(n),i.shift(),i.length&&c(i[0][0],i[0][1])}}function A(e){var n,t;return n={},r("next"),r("throw",(function(e){throw e})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=e[r]?function(n){return(t=!t)?{value:E(e[r](n)),done:!1}:o?o(n):n}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=w(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise((function(r,o){!function(e,n,t,r){Promise.resolve(r).then((function(n){e({value:n,done:t})}),n)}(r,o,(n=e[t](n)).done,n.value)}))}}}function j(e,n){return Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,e}var N=Object.create?function(e,n){Object.defineProperty(e,"default",{enumerable:!0,value:n})}:function(e,n){e.default=n},T=function(e){return T=Object.getOwnPropertyNames||function(e){var n=[];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[n.length]=t);return n},T(e)};function P(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t=T(e),r=0;r<t.length;r++)"default"!==t[r]&&v(n,e,t[r]);return N(n,e),n}function D(e){return e&&e.__esModule?e:{default:e}}function I(e,n,t,r){if("a"===t&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof n?e!==n||!r:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?r:"a"===t?r.call(e):r?r.value:n.get(e)}function M(e,n,t,r,o){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof n?e!==n||!o:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(e,t):o?o.value=t:n.set(e,t),t}function L(e,n){if(null===n||"object"!==(void 0===n?"undefined":o(n))&&"function"!=typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?n===e:e.has(n)}function R(e,n,t){if(null!=n){if("object"!==(void 0===n?"undefined":o(n))&&"function"!=typeof n)throw new TypeError("Object expected.");var r,a;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=n[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=n[Symbol.dispose],t&&(a=r)}if("function"!=typeof r)throw new TypeError("Object not disposable.");a&&(r=function(){try{a.call(this)}catch(e){return Promise.reject(e)}}),e.stack.push({value:n,dispose:r,async:t})}else t&&e.stack.push({async:!0});return n}var z="function"==typeof SuppressedError?SuppressedError:function(e,n,t){var r=new Error(t);return r.name="SuppressedError",r.error=e,r.suppressed=n,r};function $(e){function n(n){e.error=e.hasError?new z(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}var t,r=0;return function o(){for(;t=e.stack.pop();)try{if(!t.async&&1===r)return r=0,e.stack.push(t),Promise.resolve().then(o);if(t.dispose){var a=t.dispose.call(t.value);if(t.async)return r|=2,Promise.resolve(a).then(o,(function(e){return n(e),o()}))}else r|=1}catch(e){n(e)}if(1===r)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}()}function F(e,n){return"string"==typeof e&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,(function(e,t,r,o,a){return t?n?".jsx":".js":!r||o&&a?r+o+"."+a.toLowerCase()+"js":e})):e}const B={__extends:i,__assign:l,__rest:c,__decorate:u,__param:s,__esDecorate:d,__runInitializers:f,__propKey:p,__setFunctionName:m,__metadata:b,__awaiter:h,__generator:g,__createBinding:v,__exportStar:y,__values:w,__read:O,__spread:k,__spreadArrays:S,__spreadArray:x,__await:E,__asyncGenerator:C,__asyncDelegator:A,__asyncValues:_,__makeTemplateObject:j,__importStar:P,__importDefault:D,__classPrivateFieldGet:I,__classPrivateFieldSet:M,__classPrivateFieldIn:L,__addDisposableResource:R,__disposeResources:$,__rewriteRelativeImportExtension:F}},18230:(e,n,t)=>{"use strict";t.d(n,{DE:()=>v,Xj:()=>y,hz:()=>g});var r,o,a,i,l,c,u,s,d=t(16072),f=t.n(d),p=t(30795);function m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){m(e,n,t[n])}))}return e}function h(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g=f().forwardRef((function(e,n){var t=e.children,a=e.size,i=void 0===a?16:a,l=h(e,["children","size"]);return 16===i||"16"===i||"16px"===i?f().createElement(p.A,b({width:i,height:i,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},l),r||(r=f().createElement("path",{d:"M6 15L6 14 2.7 14 7 9.7 6.3 9 2 13.3 2 10 1 10 1 15zM10 1L10 2 13.3 2 9 6.3 9.7 7 14 2.7 14 6 15 6 15 1z"})),t):f().createElement(p.A,b({width:i,height:i,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},l),o||(o=f().createElement("path",{d:"M20 2L20 4 26.586 4 18 12.582 19.414 14 28 5.414 28 12 30 12 30 2 20 2zM14 19.416L12.592 18 4 26.586 4 20 2 20 2 30 12 30 12 28 5.414 28 14 19.416z"})),t)})),v=f().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,u=h(e,["children","size"]);return 16===o||"16"===o||"16px"===o?f().createElement(p.A,b({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},u),a||(a=f().createElement("path",{d:"M2 12H14V13H2zM2 9H14V10H2zM2 6H14V7H2zM2 3H14V4H2z"})),t):20===o||"20"===o||"20px"===o?f().createElement(p.A,b({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},u),i||(i=f().createElement("path",{d:"M2 14.8H18V16H2zM2 11.2H18V12.399999999999999H2zM2 7.6H18V8.799999999999999H2zM2 4H18V5.2H2z"})),t):24===o||"24"===o||"24px"===o?f().createElement(p.A,b({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor"},u),l||(l=f().createElement("path",{d:"M3 18H21V19.5H3zM3 13.5H21V15H3zM3 9H21V10.5H3zM3 4.5H21V6H3z"})),t):f().createElement(p.A,b({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},u),c||(c=f().createElement("path",{d:"M4 6H28V8H4zM4 24H28V26H4zM4 12H28V14H4zM4 18H28V20H4z"})),t)})),y=f().forwardRef((function(e,n){var t=e.children,r=e.size,o=void 0===r?16:r,a=h(e,["children","size"]);return 16===o||"16"===o||"16px"===o?f().createElement(p.A,b({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor"},a),u||(u=f().createElement("path",{d:"M2 9L2 10 5.3 10 1 14.3 1.7 15 6 10.7 6 14 7 14 7 9zM14 7L14 6 10.7 6 15 1.7 14.3 1 10 5.3 10 2 9 2 9 7z"})),t):f().createElement(p.A,b({width:o,height:o,ref:n,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor"},a),s||(s=f().createElement("path",{d:"M4 18L4 20 10.586 20 2 28.582 3.414 30 12 21.414 12 28 14 28 14 18 4 18zM30 3.416L28.592 2 20 10.586 20 4 18 4 18 14 28 14 28 12 21.414 12 30 3.416z"})),t)}))},21740:(e,n,t)=>{"use strict";t.d(n,{A:()=>l});var r=t(57871),o=t.n(r),a=t(29914),i=t.n(a)()(o());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-laboratory__laboratory-dashboard__pageHeader___TZgwV{border-bottom:1px solid #e0e0e0}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/laboratory-dashboard.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DF,2DACE,+BAAA",sourcesContent:["@use '@carbon/layout';\n\n$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.pageHeader {\n border-bottom: 1px solid $ui-03;\n}\n"],sourceRoot:""}]),i.locals={pageHeader:"-esm-laboratory__laboratory-dashboard__pageHeader___TZgwV"};const l=i},27886:(e,n,t)=>{"use strict";e.exports=t(73170)},28809:(e,n,t)=>{"use strict";var r=t(16072);Symbol.for("react.element"),Symbol.for("react.fragment"),Object.prototype.hasOwnProperty,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner},29914:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t})).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&o[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}},30795:(e,n,t)=>{"use strict";function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function o(e,n,t){return(n=function(e){var n=function(e){if("object"!=(void 0===e?"undefined":r(e))||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=(void 0===t?"undefined":r(t)))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(void 0===n?"undefined":r(n))?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function a(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 i(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?a(Object(t),!0).forEach((function(n){o(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function l(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(n.includes(r))continue;t[r]=e[r]}return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.includes(t)||{}.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}t.d(n,{A:()=>g});var c=["width","height","viewBox"],u=["tabindex"],s={focusable:"false",preserveAspectRatio:"xMidYMid meet"};var d=t(69101),f=t.n(d),p=t(16072),m=t.n(p);function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function h(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var g=m().forwardRef((function(e,n){var t,r,o=e.className,a=e.children,d=e.tabIndex,f=e.xmlns,p=void 0===f?"http://www.w3.org/2000/svg":f,g=e.preserveAspectRatio,v=void 0===g?"xMidYMid meet":g,y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.width,t=e.height,r=e.viewBox,o=void 0===r?"0 0 ".concat(n," ").concat(t):r,a=l(e,c),d=a.tabindex,f=l(a,u),p=i(i(i({},s),f),{},{width:n,height:t,viewBox:o});return p["aria-label"]||p["aria-labelledby"]||p.title?(p.role="img",null!=d&&(p.focusable="true",p.tabindex=d)):p["aria-hidden"]=!0,p}((t=function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},r=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),r.forEach((function(n){b(e,n,t[n])}))}return e}({},h(e,["className","children","tabIndex","xmlns","preserveAspectRatio"])),r=null!=(r={tabindex:d})?r:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})),t)),w=y.tabindex,O=h(y,["tabindex"]);return o&&(O.className=o),null!=w&&(O.tabIndex="number"==typeof w?w:Number(d)),n&&(O.ref=n),p&&(O.xmlns=p),v&&(O.preserveAspectRatio=v),m().createElement("svg",O,a)}));g.displayName="Icon",g.propTypes={"aria-hidden":f().oneOfType([f().bool,f().oneOf(["true","false"])]),"aria-label":f().string,"aria-labelledby":f().string,children:f().node,className:f().string,height:f().oneOfType([f().number,f().string]),preserveAspectRatio:f().string,tabIndex:f().oneOfType([f().number,f().string]),viewBox:f().string,width:f().oneOfType([f().number,f().string]),xmlns:f().string}},30883:(e,n,t)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},r.apply(null,arguments)}t.d(n,{A:()=>r})},31788:(e,n,t)=>{"use strict";var r=t(25987),o=(r.Type.String,r.Type.String,r.Type.String,r.Type.String,t(16072)),a=t.n(o),i=t(27114),l=t(53941);function c(e){var n=e.dashboardLinkConfig,t=(0,l.useTranslation)().t,c=n.name,u=n.title,s=(0,i.useLocation)(),d="".concat(window.spaBase,"/home"),f=(0,o.useMemo)((function(){var e=s.pathname.split("/home"),n=e[e.length-1];return decodeURIComponent(n)}),[s.pathname]);return a().createElement(r.ConfigurableLink,{to:"".concat(d,"/").concat(c),className:"cds--side-nav__link ".concat(f.match(c)&&"active-left-nav-link")},t(u))}var u=t(70231),s=t.n(u),d=t(45386),f=t(78449),p=t(85072),m=t.n(p),b=t(97825),h=t.n(b),g=t(77659),v=t.n(g),y=t(55056),w=t.n(y),O=t(10540),k=t.n(O),S=t(41113),x=t.n(S),E=t(39381),C={};C.styleTagTransform=x(),C.setAttributes=w(),C.insert=v().bind(null,"head"),C.domAPI=h(),C.insertStyleElement=k(),m()(E.A,C);const A=E.A&&E.A.locals?E.A.locals:void 0;function _(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}var j="lab-panels-slot";const N=function(){var e,n,t=(0,l.useTranslation)().t,i=(e=(0,o.useState)(0),n=2,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,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}}(e,n)||function(e,n){if(e){if("string"==typeof e)return _(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(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.")}()),c=i[0],u=i[1],s=(0,r.useAssignedExtensions)(j);return a().createElement("main",null,a().createElement("section",null,a().createElement("div",{className:A.tabs},a().createElement(d.tUM,{selectedIndex:c,onChange:function(e){var n=e.selectedIndex;return u(n)}},a().createElement(d.wbY,{style:{paddingLeft:"1rem"},"aria-label":"Laboratory tabs",contained:!0},s.filter((function(e){return Object.keys(e.meta).length>0})).map((function(e,n){var r=e.meta,o=r.name,i=r.title;return o&&i?a().createElement(d.ozo,{key:n,className:A.tab,id:"".concat(i||n,"-tab")},t(i,{ns:e.moduleName,defaultValue:i})):null}))),a().createElement(d.T2N,null,s.filter((function(e){return Object.keys(e.meta).length>0})).map((function(e,n){return a().createElement(d.KpK,{key:"".concat(e.meta.title,"-tab-").concat(n)},a().createElement(f.ComponentContext.Provider,{key:e.id,value:{moduleName:e.moduleName,featureName:"laboratory",extension:{extensionId:e.id,extensionSlotName:j,extensionSlotModuleName:e.moduleName}}},a().createElement(r.Extension,null)))})))))))};var T=t(95252),P={};P.styleTagTransform=x(),P.setAttributes=w(),P.insert=v().bind(null,"head"),P.domAPI=h(),P.insertStyleElement=k(),m()(T.A,P);const D=T.A&&T.A.locals?T.A.locals:void 0,I=function(){(0,l.useTranslation)().t;var e="lab-tiles-slot",n=(0,r.useAssignedExtensions)(e);return a().createElement("div",{className:D.cardContainer},n.filter((function(e){return Object.keys(e.meta).length>0})).map((function(n,t){return a().createElement(f.ComponentContext.Provider,{key:n.id,value:{moduleName:n.moduleName,featureName:"laboratory",extension:{extensionId:n.id,extensionSlotName:e,extensionSlotModuleName:n.moduleName}}},a().createElement(r.Extension,null))})))};var M=t(4199),L=t(77178);function R(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}var z={isOverlayOpen:!1,component:Function,header:""},$=function(){return(0,r.getGlobalStore)("laboratory",z)},F=function(){$().setState({component:null,isOverlayOpen:!1})},B=t(93544),H={};H.styleTagTransform=x(),H.setAttributes=w(),H.insert=v().bind(null,"head"),H.domAPI=h(),H.insertStyleElement=k(),m()(B.A,H);const V=B.A&&B.A.locals?B.A.locals:void 0,W=function(){var e=function(){var e,n,t=(e=(0,o.useState)(),n=2,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,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}}(e,n)||function(e,n){if(e){if("string"==typeof e)return R(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?R(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.")}()),r=t[0],a=t[1];return(0,o.useEffect)((function(){var e=function(e){a(e)};e($().getState()),$().subscribe(e)}),[]),{isOverlayOpen:null==r?void 0:r.isOverlayOpen,component:null==r?void 0:r.component,header:null==r?void 0:r.header}}(),n=e.header,t=e.component,i=e.isOverlayOpen,c=(0,r.useLayoutType)(),u=(0,l.useTranslation)().t;return a().createElement(a().Fragment,null,i&&a().createElement("div",{className:"tablet"!==c?V.desktopOverlay:V.tabletOverlay},"tablet"!==c?a().createElement("div",{className:V.desktopHeader},a().createElement("div",{className:V.headerContent},n),a().createElement(d.$nd,{className:V.closePanelButton,onClick:function(){return F()},kind:"ghost",hasIconOnly:!0},a().createElement(M.bm,{size:16}))):a().createElement("div",{onClick:function(){return F()}},a().createElement(d.Y9Y,{"aria-label":u("tabletOverlay","Tablet overlay"),className:V.tabletOverlayHeader},a().createElement(d.$nd,{hasIconOnly:!0},a().createElement(L.nk,{size:16})),a().createElement("div",{className:V.headerContent},n))),a().createElement("div",null,t)))};var U=t(21740),q={};q.styleTagTransform=x(),q.setAttributes=w(),q.insert=v().bind(null,"head"),q.domAPI=h(),q.insertStyleElement=k(),m()(U.A,q);const K=U.A&&U.A.locals?U.A.locals:void 0;function Y(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}const J=function(){var e,n,t=(0,l.useTranslation)().t,i=(e=(0,o.useState)([s()().startOf("day").toDate(),new Date]),n=2,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,a=[],i=!0,l=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);i=!0);}catch(e){l=!0,o=e}finally{try{i||null==t.return||t.return()}finally{if(l)throw o}}return a}}(e,n)||function(e,n){if(e){if("string"==typeof e)return Y(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(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(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.")}()),c=i[0],u=i[1];return(0,r.useDefineAppContext)("laboratory-date-filter",{dateRange:c,setDateRange:u}),a().createElement("div",null,a().createElement(r.PageHeader,{illustration:a().createElement(r.LaboratoryPictogram,null),title:t("laboratory","Laboratory"),className:K.pageHeader}),a().createElement("div",null,a().createElement(I,null),a().createElement(N,null),a().createElement(W,null)))};var G,Q={featureName:"laboratory",moduleName:"@openmrs/esm-laboratory-app"};t(84767),(0,r.getSyncLifecycle)((function(){return a().createElement(i.BrowserRouter,{basename:"".concat(window.spaBase,"/home/laboratory")},a().createElement(i.Routes,null,a().createElement(i.Route,{path:"/",element:a().createElement(J,null)})))}),Q),(0,r.getSyncLifecycle)((G={name:"laboratory",slot:"laboratory-dashboard-slot",title:"Laboratory"},function(){return a().createElement(i.BrowserRouter,null,a().createElement(c,{dashboardLinkConfig:G}))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(8554)]).then(t.bind(t,28554))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(5085)]).then(t.bind(t,25085))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(6134),t.e(3656)]).then(t.bind(t,43656))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(6134),t.e(1083)]).then(t.bind(t,31083))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(6134),t.e(4239)]).then(t.bind(t,54239))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(6134),t.e(4369)]).then(t.bind(t,94369))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(1120),t.e(8667)]).then(t.bind(t,18667))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(1120),t.e(7423)]).then(t.bind(t,77423))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(1120),t.e(4069)]).then(t.bind(t,64069))}),Q),(0,r.getAsyncLifecycle)((function(){return Promise.all([t.e(3495),t.e(2058)]).then(t.bind(t,32058))}),Q),(0,r.getAsyncLifecycle)((function(){return t.e(876).then(t.bind(t,60876))}),Q),(0,r.getAsyncLifecycle)((function(){return t.e(6547).then(t.bind(t,16547))}),Q)},32338:(e,n,t)=>{"use strict";function r(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var o=t(16072),a=t(63741);function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,c={};function u(e,n){s(e,n),s(e+"Capture",n)}function s(e,n){for(c[e]=n,e=0;e<n.length;e++)l.add(n[e])}var d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,m={},b={};function h(e,n,t,r,o,a,i){this.acceptsBooleans=2===n||3===n||4===n,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];g[n]=new h(n,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function w(e,n,t,o){var a=g.hasOwnProperty(n)?g[n]:null;(null!==a?0!==a.type:o||!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&(function(e,n,t,o){if(null==n||function(e,n,t,o){if(null!==t&&0===t.type)return!1;switch(void 0===n?"undefined":r(n)){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==t?!t.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,n,t,o))return!0;if(o)return!1;if(null!==t)switch(t.type){case 3:return!n;case 4:return!1===n;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}(n,t,a,o)&&(t=null),o||null===a?function(e){return!!f.call(b,e)||!f.call(m,e)&&(p.test(e)?b[e]=!0:(m[e]=!0,!1))}(n)&&(null===t?e.removeAttribute(n):e.setAttribute(n,""+t)):a.mustUseProperty?e[a.propertyName]=null===t?3!==a.type&&"":t:(n=a.attributeName,o=a.attributeNamespace,null===t?e.removeAttribute(n):(t=3===(a=a.type)||4===a&&!0===t?"":""+t,o?e.setAttributeNS(o,n,t):e.setAttribute(n,t))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(v,y);g[n]=new h(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var O=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),S=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),_=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function L(e){return null===e||"object"!==(void 0===e?"undefined":r(e))?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var R,z=Object.assign;function $(e){if(void 0===R)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);R=n&&n[1]||""}return"\n"+R+e}var F=!1;function B(e,n){if(!e||F)return"";F=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var o=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){o=e}e.call(n.prototype)}else{try{throw Error()}catch(e){o=e}e()}}catch(n){if(n&&o&&"string"==typeof n.stack){for(var a=n.stack.split("\n"),i=o.stack.split("\n"),l=a.length-1,c=i.length-1;1<=l&&0<=c&&a[l]!==i[c];)c--;for(;1<=l&&0<=c;l--,c--)if(a[l]!==i[c]){if(1!==l||1!==c)do{if(l--,0>--c||a[l]!==i[c]){var u="\n"+a[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=l&&0<=c);break}}}finally{F=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?$(e):""}function H(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case C:return"Profiler";case E:return"StrictMode";case N:return"Suspense";case T:return"SuspenseList"}if("object"===(void 0===e?"undefined":r(e)))switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case A:return(e._context.displayName||"Context")+".Provider";case j:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(n=e.displayName||null)?n:V(e.type)||"Memo";case D:n=e._payload,e=e._init;try{return V(e(n))}catch(e){}}return null}function W(e){var n=e.type;switch(e.tag){case