@kenyaemr/esm-ward-app 8.5.1-pre.44 → 8.5.1-pre.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/dist/1580.js +1 -1
  3. package/dist/1580.js.LICENSE.txt +6 -0
  4. package/dist/1580.js.map +1 -1
  5. package/dist/1663.js +1 -1
  6. package/dist/1663.js.map +1 -1
  7. package/dist/1776.js +1 -1
  8. package/dist/1776.js.map +1 -1
  9. package/dist/1919.js +1 -0
  10. package/dist/2123.js +1 -0
  11. package/dist/2123.js.map +1 -0
  12. package/dist/2557.js +1 -1
  13. package/dist/2557.js.map +1 -1
  14. package/dist/2953.js +2 -0
  15. package/dist/2953.js.map +1 -0
  16. package/dist/3737.js +1 -1
  17. package/dist/3737.js.map +1 -1
  18. package/dist/4224.js +1 -1
  19. package/dist/4224.js.map +1 -1
  20. package/dist/4300.js +1 -1
  21. package/dist/4300.js.map +1 -0
  22. package/dist/5643.js +2 -0
  23. package/dist/5643.js.map +1 -0
  24. package/dist/6195.js +1 -0
  25. package/dist/6195.js.map +1 -0
  26. package/dist/681.js +2 -0
  27. package/dist/681.js.map +1 -0
  28. package/dist/7179.js +1 -1
  29. package/dist/7179.js.map +1 -1
  30. package/dist/7524.js +1 -1
  31. package/dist/7524.js.map +1 -1
  32. package/dist/7661.js +1 -1
  33. package/dist/7661.js.map +1 -1
  34. package/dist/8205.js +1 -1
  35. package/dist/8205.js.map +1 -1
  36. package/dist/8308.js +1 -1
  37. package/dist/8308.js.map +1 -1
  38. package/dist/8501.js +2 -1
  39. package/dist/8501.js.map +1 -1
  40. package/dist/9045.js +1 -1
  41. package/dist/9045.js.map +1 -1
  42. package/dist/9719.js +2 -0
  43. package/dist/{8317.js.LICENSE.txt → 9719.js.LICENSE.txt} +0 -6
  44. package/dist/9719.js.map +1 -0
  45. package/dist/kenyaemr-esm-ward-app.js +1 -1
  46. package/dist/kenyaemr-esm-ward-app.js.buildmanifest.json +204 -204
  47. package/dist/main.js +1 -2
  48. package/dist/main.js.map +1 -1
  49. package/dist/routes.json +1 -1
  50. package/package.json +1 -1
  51. package/src/create-dashboard.scss +13 -0
  52. package/src/createDashboardLink.component.tsx +22 -15
  53. package/src/index.ts +4 -1
  54. package/dist/3161.js +0 -2
  55. package/dist/3161.js.map +0 -1
  56. package/dist/3373.js +0 -2
  57. package/dist/3373.js.map +0 -1
  58. package/dist/4743.js +0 -2
  59. package/dist/4743.js.map +0 -1
  60. package/dist/6012.js +0 -2
  61. package/dist/6012.js.LICENSE.txt +0 -5
  62. package/dist/6012.js.map +0 -1
  63. package/dist/7059.js +0 -2
  64. package/dist/7059.js.map +0 -1
  65. package/dist/8317.js +0 -2
  66. package/dist/8317.js.map +0 -1
  67. package/dist/9113.js +0 -1
  68. package/dist/9113.js.map +0 -1
  69. package/dist/main.js.LICENSE.txt +0 -5
  70. /package/dist/{3161.js.LICENSE.txt → 2953.js.LICENSE.txt} +0 -0
  71. /package/dist/{4743.js.LICENSE.txt → 5643.js.LICENSE.txt} +0 -0
  72. /package/dist/{7059.js.LICENSE.txt → 681.js.LICENSE.txt} +0 -0
  73. /package/dist/{3373.js.LICENSE.txt → 8501.js.LICENSE.txt} +0 -0
package/dist/1663.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[1663,1776],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(r){!function(e,n,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,a&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),n.styleTagTransform(t,e,n.options)}(n,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},30855:(e,n,r)=>{e.exports=function(e){var n=r.nc;n&&e.setAttribute("nonce",n)}},30977:e=>{function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}e.exports=function(e){var r,t,a=(t=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,n){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,c=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,t)||function(e,r){if(e){if("string"==typeof e)return n(e,r);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)?n(e,r):void 0}}(r,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.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),l="/*# ".concat(s," */"),p=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[o].concat(p).concat([l]).join("\n")}return[o].join("\n")}},71296:(e,n,r)=>{r.d(n,{A:()=>c});var t=r(30977),a=r.n(t),o=r(95924),i=r.n(o)()(a());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-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),i.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const c=i},71663:(e,n,r)=>{r.r(n),r.d(n,{default:()=>s});var t=r(38254),a=r(90380),o=r.n(a),i=r(81776);function c(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}const s=function(e){var n,r=e.wardPatient,s=function(e,n){if(null==e)return{};var r,t,a=function(e,n){if(null==e)return{};var r,t,a={},o=Object.keys(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||(a[r]=e[r]);return a}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(t=0;t<o.length;t++)r=o[t],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,["wardPatient"]),l=null==r||null===(n=r.patient)||void 0===n?void 0:n.uuid,p=(0,a.useMemo)((function(){return function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},t=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(t=t.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),t.forEach((function(n){c(e,n,r[n])}))}return e}({patientUuid:l,clinicalFormsWorkspaceName:"ward-patient-clinical-forms-workspace",formEntryWorkspaceName:"ward-patient-form-entry-workspace",htmlFormEntryWorkspaceName:"ward-patient-html-form-entry-workspace"},s)}),[l,s]);return o().createElement("div",null,o().createElement(i.default,{wardPatient:r}),o().createElement(t.ExtensionSlot,{name:"ward-patient-clinical-forms-workspace-slot",state:p}))}},72591:e=>{var n=[];function r(e){for(var r=-1,t=0;t<n.length;t++)if(n[t].identifier===e){r=t;break}return r}function t(e,t){for(var o={},i=[],c=0;c<e.length;c++){var s=e[c],l=t.base?s[0]+t.base:s[0],p=o[l]||0,u="".concat(l," ").concat(p);o[l]=p+1;var d=r(u),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var m=a(f,t);t.byIndex=c,n.splice(c,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function a(e,n){var r=n.domAPI(n);return r.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;r.update(e=n)}else r.remove()}}e.exports=function(e,a){var o=t(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=r(o[i]);n[c].references--}for(var s=t(e,a),l=0;l<o.length;l++){var p=r(o[l]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}o=s}}},73656:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},81776:(e,n,r)=>{r.r(n),r.d(n,{default:()=>A});var t=r(38254),a=r(90380),o=r.n(a),i=r(72591),c=r.n(i),s=r(1740),l=r.n(s),p=r(88128),u=r.n(p),d=r(30855),f=r.n(d),m=r(93051),b=r.n(m),v=r(73656),y=r.n(v),h=r(71296),w={};w.styleTagTransform=y(),w.setAttributes=f(),w.insert=u().bind(null,"head"),w.domAPI=l(),w.insertStyleElement=b(),c()(h.A,w);const g=h.A&&h.A.locals?h.A.locals:void 0,A=function(e){var n,r=e.wardPatient,a=(null!=r?r:{}).patient,i=(null!==(n=(0,t.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return a?i?o().createElement("div",{className:g.wardWorkspacePatientBanner},o().createElement(i,{wardPatient:r})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},88128:e=>{var n={};e.exports=function(e,r){var t=function(e){if(void 0===n[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}(e);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},93051:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},95924:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var r=e(n);return n[2]?"@media ".concat(n[2]," {").concat(r,"}"):r})).join("")},n.i=function(e,r,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);t&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),n.push(s))}},n}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[1663,1776],{71296:(e,n,r)=>{r.d(n,{A:()=>d});var a=r(30977),t=r.n(a),o=r(95924),i=r.n(o)()(t());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-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),i.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const d=i},71663:(e,n,r)=>{r.r(n),r.d(n,{default:()=>s});var a=r(38254),t=r(90380),o=r.n(t),i=r(81776);function d(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}const s=function(e){var n,r=e.wardPatient,s=function(e,n){if(null==e)return{};var r,a,t=function(e,n){if(null==e)return{};var r,a,t={},o=Object.keys(e);for(a=0;a<o.length;a++)r=o[a],n.indexOf(r)>=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}(e,["wardPatient"]),l=null==r||null===(n=r.patient)||void 0===n?void 0:n.uuid,c=(0,t.useMemo)((function(){return function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(n){d(e,n,r[n])}))}return e}({patientUuid:l,clinicalFormsWorkspaceName:"ward-patient-clinical-forms-workspace",formEntryWorkspaceName:"ward-patient-form-entry-workspace",htmlFormEntryWorkspaceName:"ward-patient-html-form-entry-workspace"},s)}),[l,s]);return o().createElement("div",null,o().createElement(i.default,{wardPatient:r}),o().createElement(a.ExtensionSlot,{name:"ward-patient-clinical-forms-workspace-slot",state:c}))}},81776:(e,n,r)=>{r.r(n),r.d(n,{default:()=>v});var a=r(38254),t=r(90380),o=r.n(t),i=r(72591),d=r.n(i),s=r(1740),l=r.n(s),c=r(88128),p=r.n(c),b=r(30855),m=r.n(b),u=r(93051),f=r.n(u),w=r(73656),h=r.n(w),y=r(71296),$={};$.styleTagTransform=h(),$.setAttributes=m(),$.insert=p().bind(null,"head"),$.domAPI=l(),$.insertStyleElement=f(),d()(y.A,$);const k=y.A&&y.A.locals?y.A.locals:void 0,v=function(e){var n,r=e.wardPatient,t=(null!=r?r:{}).patient,i=(null!==(n=(0,a.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return t?i?o().createElement("div",{className:k.wardWorkspacePatientBanner},o().createElement(i,{wardPatient:r})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}}}]);
package/dist/1663.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1663.js","mappings":"2IA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,CACLC,OAAQ,WAAmB,EAC3BC,OAAQ,WAAmB,GAG/B,IAAIC,EAAeJ,EAAQK,mBAAmBL,GAC9C,MAAO,CACLE,OAAQ,SAAgBI,IAjD5B,SAAeF,EAAc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AK,GAAKuH,GAMdpD,EAAKpD,KAAKf,GACZ,CACF,EAEOmE,CACT,C","sources":["webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-clinical-forms-workspace/patient-clinical-forms.workspace.tsx","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/api.js"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","nonce","setAttribute","_arrayLikeToArray","arr","len","i","arr2","Array","item","_item","isArray","_arrayWithHoles","_i","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","push","value","err","_iterableToArrayLimit","o","minLen","n","Object","prototype","toString","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","content","cssMapping","base64","data","sourceMapping","sourceURLs","sources","map","source","sourceRoot","join","___CSS_LOADER_EXPORT___","id","locals","props","wardPatient","restWorkspaceProps","patientUuid","patient","uuid","clinicalFormsExtensionState","useMemo","clinicalFormsWorkspaceName","formEntryWorkspaceName","htmlFormEntryWorkspaceName","div","WardPatientWorkspaceBanner","ExtensionSlot","state","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","list","idCountMap","identifiers","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","index","newLastIdentifiers","_index","styleSheet","cssText","firstChild","appendChild","createTextNode","setAttributes","insert","undefined","useAppContext","WardPatientHeader","className","styles","wardWorkspacePatientBanner","console","warn","memo","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","element","createElement","attributes","cssWithMappingToString","this","modules","mediaQuery","dedupe","alreadyImportedModules"],"sourceRoot":""}
1
+ {"version":3,"file":"1663.js","mappings":"sMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6ZAA8Z,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4DAA4D,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,g/DAAg/D,gIAAgI,WAAa,MAEl3FH,EAAwBI,OAAS,CAChC,2BAA8B,wDAE/B,S,sNCkBA,QAvB+E,SAACC,G,IAE1DC,EADd,EAAyCD,EAAvCC,YAAgBC,E,kXAAAA,CAAuBF,EAAAA,CAAvCC,gBACFE,EAAcF,SAAoB,QAApBA,EAAAA,EAAaG,eAAbH,IAAAA,OAAAA,EAAAA,EAAsBI,KAEpCC,GAA8BC,EAAAA,EAAAA,UAClC,W,6UAAO,EACLJ,YAAAA,EACAK,2BAA4B,wCAC5BC,uBAAwB,oCACxBC,2BAA4B,0CACzBR,E,GAEL,CAACC,EAAaD,IAGhB,OACE,kBAACS,MAAAA,KACC,kBAACC,EAAAA,QAA+B,CAAEX,YAAAA,IAClC,kBAACY,EAAAA,cAAaA,CAACC,KAAK,6CAA6CC,MAAOT,IAG9E,C,qNCfIU,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQjB,OAAS,IAAQA,YAASuB,ECHnE,EAlBwD,Y,IAExBC,EAF2BtB,EAAAA,EAAAA,YACnD,GAAcA,QAAAA,EAAe,CAAC,GAA5BG,QACF,GAAuD,QAA/BmB,GAAAA,EAAAA,EAAAA,eAA+B,4BAA/BA,IAAAA,EAAAA,EAAuD,CAAC,GAA9EC,kBAER,OAAKpB,EAKEoB,EACL,kBAACb,MAAAA,CAAIc,UAAWC,EAAOC,4BACrB,kBAACH,EAAAA,CAAkBvB,YAAaA,KAGlC,sCATA2B,QAAQC,KAAK,2DACN,KAUX,C","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-clinical-forms-workspace/patient-clinical-forms.workspace.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","props","wardPatient","restWorkspaceProps","patientUuid","patient","uuid","clinicalFormsExtensionState","useMemo","clinicalFormsWorkspaceName","formEntryWorkspaceName","htmlFormEntryWorkspaceName","div","WardPatientWorkspaceBanner","ExtensionSlot","name","state","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useAppContext","WardPatientHeader","className","styles","wardWorkspacePatientBanner","console","warn"],"sourceRoot":""}
package/dist/1776.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[1776],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(r){!function(e,n,r){var t="";r.supports&&(t+="@supports (".concat(r.supports,") {")),r.media&&(t+="@media ".concat(r.media," {"));var a=void 0!==r.layer;a&&(t+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),t+=r.css,a&&(t+="}"),r.media&&(t+="}"),r.supports&&(t+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),n.styleTagTransform(t,e,n.options)}(n,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},30855:(e,n,r)=>{e.exports=function(e){var n=r.nc;n&&e.setAttribute("nonce",n)}},30977:e=>{function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}e.exports=function(e){var r,t,a=(t=4,function(e){if(Array.isArray(e))return e}(r=e)||function(e,n){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(r,t)||function(e,r){if(e){if("string"==typeof e)return n(e,r);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)?n(e,r):void 0}}(r,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.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),d="/*# ".concat(c," */"),p=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[o].concat(p).concat([d]).join("\n")}return[o].join("\n")}},71296:(e,n,r)=>{r.d(n,{A:()=>s});var t=r(30977),a=r.n(t),o=r(95924),i=r.n(o)()(a());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-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),i.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=i},72591:e=>{var n=[];function r(e){for(var r=-1,t=0;t<n.length;t++)if(n[t].identifier===e){r=t;break}return r}function t(e,t){for(var o={},i=[],s=0;s<e.length;s++){var c=e[s],d=t.base?c[0]+t.base:c[0],p=o[d]||0,u="".concat(d," ").concat(p);o[d]=p+1;var l=r(u),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==l)n[l].references++,n[l].updater(f);else{var m=a(f,t);t.byIndex=s,n.splice(s,0,{identifier:u,updater:m,references:1})}i.push(u)}return i}function a(e,n){var r=n.domAPI(n);return r.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;r.update(e=n)}else r.remove()}}e.exports=function(e,a){var o=t(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var s=r(o[i]);n[s].references--}for(var c=t(e,a),d=0;d<o.length;d++){var p=r(o[d]);0===n[p].references&&(n[p].updater(),n.splice(p,1))}o=c}}},73656:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},81776:(e,n,r)=>{r.r(n),r.d(n,{default:()=>$});var t=r(38254),a=r(90380),o=r.n(a),i=r(72591),s=r.n(i),c=r(1740),d=r.n(c),p=r(88128),u=r.n(p),l=r(30855),f=r.n(l),m=r(93051),b=r.n(m),v=r(73656),h=r.n(v),y=r(71296),g={};g.styleTagTransform=h(),g.setAttributes=f(),g.insert=u().bind(null,"head"),g.domAPI=d(),g.insertStyleElement=b(),s()(y.A,g);const A=y.A&&y.A.locals?y.A.locals:void 0,$=function(e){var n,r=e.wardPatient,a=(null!=r?r:{}).patient,i=(null!==(n=(0,t.useAppContext)("ward-view-context"))&&void 0!==n?n:{}).WardPatientHeader;return a?i?o().createElement("div",{className:A.wardWorkspacePatientBanner},o().createElement(i,{wardPatient:r})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},88128:e=>{var n={};e.exports=function(e,r){var t=function(e){if(void 0===n[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}n[e]=r}return n[e]}(e);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(r)}},93051:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},95924:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var r=e(n);return n[2]?"@media ".concat(n[2]," {").concat(r,"}"):r})).join("")},n.i=function(e,r,t){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(t)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);t&&a[c[0]]||(r&&(c[2]?c[2]="".concat(r," and ").concat(c[2]):c[2]=r),n.push(c))}},n}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[1776],{71296:(n,e,a)=>{a.d(e,{A:()=>s});var r=a(30977),t=a.n(r),o=a(95924),d=a.n(o)()(t());d.push([n.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-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),d.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=d},81776:(n,e,a)=>{a.r(e),a.d(e,{default:()=>v});var r=a(38254),t=a(90380),o=a.n(t),d=a(72591),s=a.n(d),i=a(1740),p=a.n(i),c=a(88128),l=a.n(c),b=a(30855),m=a.n(b),$=a(93051),h=a.n($),f=a(73656),A=a.n(f),k=a(71296),u={};u.styleTagTransform=A(),u.setAttributes=m(),u.insert=l().bind(null,"head"),u.domAPI=p(),u.insertStyleElement=h(),s()(k.A,u);const w=k.A&&k.A.locals?k.A.locals:void 0,v=function(n){var e,a=n.wardPatient,t=(null!=a?a:{}).patient,d=(null!==(e=(0,r.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).WardPatientHeader;return t?d?o().createElement("div",{className:w.wardWorkspacePatientBanner},o().createElement(d,{wardPatient:a})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}}}]);
package/dist/1776.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1776.js","mappings":"sIA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,CACLC,OAAQ,WAAmB,EAC3BC,OAAQ,WAAmB,GAG/B,IAAIC,EAAeJ,EAAQK,mBAAmBL,GAC9C,MAAO,CACLE,OAAQ,SAAgBI,IAjD5B,SAAeF,EAAcJ,EAASM,GACpC,IAAIC,EAAM,GACND,EAAIE,WACND,GAAO,cAAcE,OAAOH,EAAIE,SAAU,QAExCF,EAAII,QACNH,GAAO,UAAUE,OAAOH,EAAII,MAAO,OAErC,IAAIC,OAAiC,IAAdL,EAAIM,MACvBD,IACFJ,GAAO,SAASE,OAAOH,EAAIM,MAAMC,OAAS,EAAI,IAAIJ,OAAOH,EAAIM,OAAS,GAAI,OAE5EL,GAAOD,EAAIC,IACPI,IACFJ,GAAO,KAELD,EAAII,QACNH,GAAO,KAELD,EAAIE,WACND,GAAO,KAET,IAAIO,EAAYR,EAAIQ,UAChBA,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AAGA,EAAI4G,KAAK7H,OAAQiB,IAAK,CAEpC,IAAIgD,EAAK4D,KAAK5G,GAAG,GAEP,MAANgD,IACFgE,EAAuBhE,IAAM,EAEjC,CAGF,IAAK,IAAIzC,EAAK,EAAGA,EAAKsG,EAAQ9H,OAAQwB,IAAM,CAC1C,IAAIJ,EAAO,GAAGxB,OAAOkI,EAAQtG,IAEzBwG,GAAUC,EAAuB7G,EAAK,MAKtC2G,IACG3G,EAAK,GAGRA,EAAK,GAAK,GAAGxB,OAAOmI,EAAY,SAASnI,OAAOwB,EAAK,IAFrDA,EAAK,GAAK2G,GAMdvD,EAAKrC,KAAKf,GACZ,CACF,EAEOoD,CACT,C","sources":["webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/api.js"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","nonce","setAttribute","_arrayLikeToArray","arr","len","i","arr2","Array","item","_item","isArray","_arrayWithHoles","_i","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","push","value","err","_iterableToArrayLimit","o","minLen","n","Object","prototype","toString","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","content","cssMapping","base64","data","sourceMapping","sourceURLs","sources","map","source","sourceRoot","join","___CSS_LOADER_EXPORT___","id","locals","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","list","idCountMap","identifiers","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","index","newLastIdentifiers","_index","styleSheet","cssText","firstChild","appendChild","createTextNode","setAttributes","insert","undefined","useAppContext","wardPatient","patient","WardPatientHeader","div","className","styles","wardWorkspacePatientBanner","console","warn","memo","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","element","createElement","attributes","cssWithMappingToString","this","modules","mediaQuery","dedupe","alreadyImportedModules"],"sourceRoot":""}
1
+ {"version":3,"file":"1776.js","mappings":"iMAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,6ZAA8Z,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4DAA4D,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,g/DAAg/D,gIAAgI,WAAa,MAEl3FH,EAAwBI,OAAS,CAChC,2BAA8B,wDAE/B,S,qNCCIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,ECHnE,EAlBwD,Y,IAExBC,EAF2BC,EAAAA,EAAAA,YACnD,GAAcA,QAAAA,EAAe,CAAC,GAA5BC,QACF,GAAuD,QAA/BF,GAAAA,EAAAA,EAAAA,eAA+B,4BAA/BA,IAAAA,EAAAA,EAAuD,CAAC,GAA9EG,kBAER,OAAKD,EAKEC,EACL,kBAACC,MAAAA,CAAIC,UAAWC,EAAOC,4BACrB,kBAACJ,EAAAA,CAAkBF,YAAaA,KAGlC,sCATAO,QAAQC,KAAK,2DACN,KAUX,C","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useAppContext","wardPatient","patient","WardPatientHeader","div","className","styles","wardWorkspacePatientBanner","console","warn"],"sourceRoot":""}
package/dist/1919.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[1919],{34300:e=>{e.exports=JSON.parse('{"admissionDate":"Admission Date","admissionRequestCancelled":"Admission request cancelled.","admissionRequests":"Admission requests","admissionRequestsCount_one":"{{count}} admission request","admissionRequestsCount_other":"{{count}} admission requests","admit":"Admit","admitElsewhere":"Admit elsewhere","admitPatient":"Admit patient","admitted":"Admitted","admitting":"Admitting...","awaitingAdmission":"Awaiting Admission","backToSearchResults":"Back to search results","bedShare":"Bed share","bedSwap":"Bed swap","bedType":"Bed type","cancel":"Cancel","cancelAdmissionRequest":"Cancel admission request","capacity":"Capacity","capacityMetricValue":"{{ metricValue }} %","cash":"Cash","chooseAnOption":"Choose an option","clinicalForms":"Clinical forms","clinicalNoteLabel":"Write your notes","clinicalNotes":"Clinical notes","countItems_one":"{{count}} {{item}}","countItems_other":"{{count}} {{item}}","days_one":"{{count}} day","days_other":"{{count}} days","diagnosis":"Diagnosis","discharge":"Discharge","discharged":"Discharged","dischargeIn":"Discharge In","emergencyDoctor":"Emergency Doctor","emergencyDoctorPhoneNumber":"Emergency doctor phone number","emptyBed":"Empty bed","emptyText":"Empty","encounterDisplay":"{{encounterType}} {{encounterDate}}","error":"Error","Error cancelling admission request":"Error cancelling admission request","errorChangingPatientBedAssignment":"Error changing patient bed assignment","errorConfiguringPatientCard":"Error configuring patient card","errorConfiguringPatientCardMessage":"Unable to find configuration for {{elementType}}, id: {{id}}","errorCreatingEncounter":"Failed to admit patient","errorCreatingTransferRequest":"Error creating transfer request","errorDischargingPatient":"Error discharging patient","errorLoadingBedDetails":"Error loading bed details","errorLoadingChildren":"Error loading children info","errorLoadingMother":"Error loading mother info","errorLoadingPatientAdmissionRequests":"Error loading patient admission requests","errorLoadingPatientInfo":"Error loading patient info","errorLoadingPatients":"Error loading admitted patients","errorLoadingPatientWorkspace":"Error loading patient workspace {{errorMessage}}","errorLoadingWardLocation":"Error loading ward location","female":"Female","fetchingEmrConfigurationFailed":"Fetching EMR configuration failed. Try refreshing the page or contact your system administrator.","fetchingPatientNotesFailed":"Fetching patient notes failed. Try refreshing the page or contact your system administrator.","freeBeds":"Free beds","freeBedsMetricValue":"{{ metricValue }}","hours_one":"{{count}} hour","hours_other":"{{count}} hours","inpatientNotesWorkspaceTitle":"In-patient notes","insuarance":"Insuarance","insuranceType":"Insurance type","invalidLocationSpecified":"Invalid location specified","invalidWardLocation":"Invalid ward location: {{location}}","labelColon":"{{label}}:","loading":"Loading data...","majorComplaintOrDiagnosis":"Major Complaint/Diagnosis","male":"Male","manage":"Manage","minutes_one":"{{count}} minutes","minutes_other":"{{count}} minutes","motherChildBedShare":"Mother / Child","mpesa":"MPESA","nextPage":"Next page","noBed":"No bed","noBedsConfigured":"No beds configured for this location","noBedsConfiguredForLocation":"No beds configured for {{location}} location","noLocationsFound":"No locations found","noPendingPatientRequests":"No pending patient requests","notConfigured":"Bed type not configured","note":"Note","notes":"Notes","notesRequiredForCancellingRequest":"Notes required for cancelling admission or transfer request","noVisit":"No visit found","Orders":"Orders","other":"Other","otherInsuranceType":"Other Insurance Type","patientAdmittedButBedNotAssigned":"Patient admitted successfully but fail to assign bed to patient","patientAdmittedSuccessfully":"Patient admitted successfully","patientAdmittedSuccessfullySubtitle":"{{patientName}} has been successfully admitted and assigned to bed {{bedNumber}}","patientAdmittedWoBed":"Patient admitted successfully to {{location}}","patientAlreadyAdmittedToCurrentLocation":"Patient already admitted to current location","patientAssignedNewBed":"Patient assigned to new bed","patientAssignedNewBedDetail":"{{patientName}} assigned to bed {{bedNumber}}","patientCurrentlyAdmittedToWardLocation":"Patient currently admitted to {{wardLocation}}","patientCurrentlyNotAdmitted":"Patient currently not admitted","patienthasNoActiveVisit":"Patient has no active visit","patientHasPendingAdmissionRequest":"Patient already has a pending admission request to location {{location}}","patientNoteNowVisible":"It should be now visible in the notes history","patientNoteSaveError":"Error saving patient note","patientNotesDidntLoad":"Patient notes didn\'t load","patients":"Patients","patientsMetricValue":"{{ metricValue }}","patientTransferRequestCreated":"Patient transfer request created","patientUnassignedFromBed":"Patient unassigned from bed","patientUnassignedFromBedDetail":"{{patientName}} is now unassigned from bed","patientWasDischarged":"Patient was discharged","paymentMode":"Payment mode","pendingDischarge":"Pending Discharge","pendingOut":"Pending out","pendingOutMetricValue":"{{ metricValue }}","pendingTransfer":"Pending Transfer","phoneNumber":"Phone number","pleaseSelectBed":"Please select a bed","pleaseSelectTransferLocation":"Please select transfer location","pleaseSelectTransferType":"Please select transfer type","pleaseSpecify":"Please specify","previousPage":"Previous page","primaryDoctor":"Primary Doctor","primaryDoctorPhoneNumber":"Primary doctor phone number","proceedWithPatientDischarge":"Proceed with patient discharge","save":"Save","saving":"Saving...","searchLocations":"Search locations","seconds_one":"{{count}} second","seconds_other":"{{count}} seconds","selectABed":"Select a bed","selectALocation":"Select a location","showingLocations_one":"{{start}}-{{end}} of {{count}} locations","showingLocations_other":"{{start}}-{{end}} of {{count}} locations","somePartsOfTheFormDidntLoad":"Some parts of the form didn\'t load","timeOnWard":"Time on this ward: {{timeOnWard}}","timeSinceAdmission":"Admitted: {{timeSinceAdmission}}","transfer":"Transfer","transferElsewhere":"Transfer elsewhere","transferPatient":"Transfer patient","transferRequest":"Transfer request","transfers":"Transfers","transferToDispositionLocation":"Transfer to {{location}}","transferType":"Transfer type","typeOfTransfer":"Type of transfer","unknown":"Unknown","visitNoteSaved":"Patient note saved","wardClinicalNotePlaceholder":"Write any notes here","wards":"Wards"}')}}]);
package/dist/2123.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[2123],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},14441:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},30977:e=>{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,c=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){c=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(c)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||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.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),s="/*# ".concat(u," */"),f=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[a].concat(f).concat([s]).join("\n")}return[a].join("\n")}},72591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],c=0;c<e.length;c++){var u=e[c],s=r.base?u[0]+r.base:u[0],f=a[s]||0,l="".concat(s," ").concat(f);a[s]=f+1;var p=n(l),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var v=o(d,r);r.byIndex=c,t.splice(c,0,{identifier:l,updater:v,references:1})}i.push(l)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var c=n(a[i]);t[c].references--}for(var u=r(e,o),s=0;s<a.length;s++){var f=n(a[s]);0===t[f].references&&(t[f].updater(),t.splice(f,1))}a=u}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},88128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},95924:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,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 c=0;c<e.length;c++){var u=[].concat(e[c]);r&&o[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2123.js","mappings":"sIA4DAA,EAAOC,QAjBP,SAAgBC,GACd,GAAwB,oBAAbC,SACT,MAAO,CACLC,OAAQ,WAAmB,EAC3BC,OAAQ,WAAmB,GAG/B,IAAIC,EAAeJ,EAAQK,mBAAmBL,GAC9C,MAAO,CACLE,OAAQ,SAAgBI,IAjD5B,SAAeF,EAAcJ,EAASM,GACpC,IAAIC,EAAM,GACND,EAAIE,WACND,GAAO,cAAcE,OAAOH,EAAIE,SAAU,QAExCF,EAAII,QACNH,GAAO,UAAUE,OAAOH,EAAII,MAAO,OAErC,IAAIC,OAAiC,IAAdL,EAAIM,MACvBD,IACFJ,GAAO,SAASE,OAAOH,E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PI.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/lodash-es/last.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/cssWithMappingToString.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://@kenyaemr/esm-ward-app/../../node_modules/@openmrs/webpack-config/node_modules/css-loader/dist/runtime/api.js"],"names":["module","exports","options","document","update","remove","styleElement","insertStyleElement","obj","css","supports","concat","media","needLayer","layer","length","sourceMap","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","array","undefined","nonce","setAttribute","_arrayLikeToArray","arr","len","i","arr2","Array","item","_item","isArray","_arrayWithHoles","_i","Symbol","iterator","_s","_e","_arr","_n","_d","call","next","done","push","value","err","_iterableToArrayLimit","o","minLen","n","Object","prototype","toString","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","content","cssMapping","base64","data","sourceMapping","sourceURLs","sources","map","source","sourceRoot","join","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","list","idCountMap","identifiers","id","base","count","indexByIdentifier","references","updater","addElementStyle","byIndex","splice","api","domAPI","newObj","lastIdentifiers","newList","index","newLastIdentifiers","_index","styleSheet","cssText","firstChild","appendChild","createTextNode","memo","insert","style","target","styleTarget","querySelector","window","HTMLIFrameElement","contentDocument","head","e","getTarget","Error","element","createElement","setAttributes","attributes","cssWithMappingToString","this","modules","mediaQuery","dedupe","alreadyImportedModules"],"sourceRoot":""}
package/dist/2557.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[2557],{2557:(n,e,t)=>{t.r(e),t.d(e,{default:()=>q});var a=t(90380),i=t.n(a),o=t(21580),r=t(53373),s=t.n(r),l=t(81160),p=t(80824),c=t(93150),d=t(46195),u=t(38254),f=t(13002),g=t(81776),h=t(72591),y=t.n(h),m=t(1740),b=t.n(m),$=t(88128),v=t.n($),w=t(30855),A=t.n(w),k=t(93051),x=t.n(k),C=t(73656),_=t.n(C),z=t(3357),E={};E.styleTagTransform=_(),E.setAttributes=A(),E.insert=v().bind(null,"head"),E.domAPI=b(),E.insertStyleElement=x(),y()(z.A,E);const M=z.A&&z.A.locals?z.A.locals:void 0;function T(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=n[t];return a}function S(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function D(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var a,i,o=[],r=!0,s=!1;try{for(t=t.call(n);!(r=(a=t.next()).done)&&(o.push(a.value),!e||o.length!==e);r=!0);}catch(n){s=!0,i=n}finally{try{r||null==t.return||t.return()}finally{if(s)throw i}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(n,e):void 0}}(n,e)||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 q(n){var e,t,r,h,y=n.closeWorkspaceWithSavedChanges,m=n.wardPatient,b=n.promptBeforeClosing,$=null!=m?m:{},v=$.patient,w=$.visit,A=(0,c.useTranslation)().t,k=D((0,a.useState)(!1),2),x=k[0],C=k[1],_=D((0,a.useState)(!1),2),z=_[0],E=_[1],T=(0,f.R_)(),q=T.createEncounter,P=T.emrConfiguration,F=T.isLoadingEmrConfiguration,B=T.errorFetchingEmrConfiguration,N=(null!==(h=(0,u.useAppContext)("ward-view-context"))&&void 0!==h?h:{}).wardPatientGroupDetails,O=(0,a.useMemo)((function(){return d.z.object({note:d.z.string().trim().min(1,{message:A("notesRequiredForCancellingRequest","Notes required for cancelling admission or transfer request")})})}),[A]),j=(0,p.mN)({resolver:(0,l.u)(O),defaultValues:{note:""}}),I=j.formState,W=I.errors,L=I.isDirty,R=j.control,U=j.handleSubmit;(0,a.useEffect)((function(){return b((function(){return L})),function(){return b(null)}}),[L,b]);var H=(0,a.useCallback)((function(n){var e,t,a;E(!0),C(!1);var i=[{concept:null==P||null===(e=P.consultFreeTextCommentsConcept)||void 0===e?void 0:e.uuid,value:n.note},{concept:null==P||null===(t=P.admissionDecisionConcept)||void 0===t?void 0:t.uuid,value:{uuid:null==P||null===(a=P.denyAdmissionConcept)||void 0===a?void 0:a.uuid}}];q(v,null==P?void 0:P.cancelADTRequestEncounterType,null==w?void 0:w.uuid,i).then((function(){(0,u.showSnackbar)({title:A("admissionRequestCancelled","Admission request cancelled."),kind:"success"})})).catch((function(n){(0,u.showSnackbar)({title:A("Error cancelling admission request","Error cancelling admission request"),subtitle:n.message,kind:"error"})})).finally((function(){E(!1),y(),N.mutate()}))}),[null==P||null===(e=P.consultFreeTextCommentsConcept)||void 0===e?void 0:e.uuid,null==P||null===(t=P.admissionDecisionConcept)||void 0===t?void 0:t.uuid,null==P||null===(r=P.denyAdmissionConcept)||void 0===r?void 0:r.uuid,null==P?void 0:P.cancelADTRequestEncounterType,q,v,A,y,N,null==w?void 0:w.uuid]),G=(0,a.useCallback)((function(){E(!1),C(!0)}),[]);return N?i().createElement("div",{className:M.flexWrapper},i().createElement(g.default,{wardPatient:m}),i().createElement(o.lVW,{onSubmit:U(H,G),className:s()(M.formContainer,M.workspaceContent)},i().createElement("div",null,B&&i().createElement("div",{className:M.formError},i().createElement(o.jeF,{kind:"error",title:A("somePartsOfTheFormDidntLoad","Some parts of the form didn't load"),subtitle:A("fetchingEmrConfigurationFailed","Fetching EMR configuration failed. Try refreshing the page or contact your system administrator."),lowContrast:!0,hideCloseButton:!0})),i().createElement("div",{className:M.field},i().createElement("h2",{className:M.productiveHeading02},A("clinicalNotes","Clinical notes")),i().createElement(p.xI,{name:"note",control:R,render:function(n){var e,t,a=n.field;return n.fieldState.error,i().createElement(u.ResponsiveWrapper,null,i().createElement(o.fs1,(e=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})))),a.forEach((function(e){S(n,e,t[e])}))}return n}({},a),t=null!=(t={labelText:""})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(n){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e.push.apply(e,t)}return e}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e)))}})),x&&i().createElement("div",{className:M.notifications},Object.values(W).map((function(n){return i().createElement(o.jeF,{key:n.message,lowContrast:!0,subtitle:null==n?void 0:n.message,hideCloseButton:!0})})))),i().createElement(o.Te$,{className:M.buttonSet},i().createElement(o.$nd,{size:"xl",kind:"secondary",onClick:y},A("cancel","Cancel")),i().createElement(o.$nd,{type:"submit",size:"xl",disabled:F||z||B||!v},A("save","Save"))))):i().createElement(i().Fragment,null)}},3357:(n,e,t)=>{t.d(e,{A:()=>s});var a=t(30977),i=t.n(a),o=t(95924),r=t.n(o)()(i());r.push([n.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-ward__cancel-admission-request__flexWrapper___DbIZz{height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__cancel-admission-request__workspaceContent___1Ax7E{padding:1rem;height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__cancel-admission-request__field___aOddP{margin-bottom:1rem}.-esm-ward__cancel-admission-request__field___aOddP>h2{margin-bottom:.5rem}.-esm-ward__cancel-admission-request__productiveHeading02___MNR05{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-ward__cancel-admission-request__formContainer___eNae2{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-ward__cancel-admission-request__buttonSet___kSam7{display:flex;align-items:center;margin:0 -1rem -1rem -1rem}.-esm-ward__cancel-admission-request__buttonSet___kSam7 button{max-width:unset !important;width:50% !important}.-esm-ward__cancel-admission-request__buttonSet___kSam7 button>svg{fill:currentColor !important}.-esm-ward__cancel-admission-request__notifications___fd7td{margin-top:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DACE,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,+DACE,YCmBW,CDlBX,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,oDACE,kBCWW,CDVX,uDACE,mBCDS,CDKb,kEEw0BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFp0BJ,4DACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,wDACE,YAAA,CACA,kBAAA,CACA,0BAAA,CAEA,+DACE,0BAAA,CACA,oBAAA,CAEA,mEACE,4BAAA,CAKN,4DACE,eCtBW",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/type';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.flexWrapper {\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.workspaceContent {\n padding: layout.$spacing-05;\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.field {\n margin-bottom: layout.$spacing-05;\n & > h2 {\n margin-bottom: layout.$spacing-03;\n }\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\n}\n\n.formContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.buttonSet {\n display: flex;\n align-items: center;\n margin: 0 (-(layout.$spacing-05)) (-(layout.$spacing-05)) (-(layout.$spacing-05));\n\n button {\n max-width: unset !important;\n width: 50% !important;\n\n > svg {\n fill: currentColor !important;\n }\n }\n}\n\n.notifications {\n margin-top: layout.$spacing-05;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={flexWrapper:"-esm-ward__cancel-admission-request__flexWrapper___DbIZz",workspaceContent:"-esm-ward__cancel-admission-request__workspaceContent___1Ax7E",field:"-esm-ward__cancel-admission-request__field___aOddP",productiveHeading02:"-esm-ward__cancel-admission-request__productiveHeading02___MNR05",formContainer:"-esm-ward__cancel-admission-request__formContainer___eNae2",buttonSet:"-esm-ward__cancel-admission-request__buttonSet___kSam7",notifications:"-esm-ward__cancel-admission-request__notifications___fd7td"};const s=r},13002:(n,e,t)=>{t.d(e,{E:()=>s,R_:()=>r,Tb:()=>p,tf:()=>l});var a=t(38254),i=t(65980),o=t(92891);function r(){var n=(0,o.A)().location,e=(0,a.useSession)().currentProvider,t=(0,i.A)(),r=t.emrConfiguration,s=t.isLoadingEmrConfiguration,l=t.errorFetchingEmrConfiguration;return{createEncounter:function(t,i,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l={patient:t.uuid,encounterType:i,location:null==n?void 0:n.uuid,encounterProviders:[{provider:null==e?void 0:e.uuid,encounterRole:r.clinicianEncounterRole.uuid}],obs:s,visit:o};return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/encounter"),{method:"POST",headers:{"content-type":"application/json"},body:l})},emrConfiguration:r,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:l}}function s(){var n=r(),e=n.createEncounter,t=n.emrConfiguration;return{admitPatient:function(n,a,i,o){var r="ADMIT"===a?t.admissionEncounterType:"TRANSFER"===a?t.transferWithinHospitalEncounterType:null;return e(n,r,i,o)},isLoadingEmrConfiguration:n.isLoadingEmrConfiguration,errorFetchingEmrConfiguration:n.errorFetchingEmrConfiguration}}function l(n,e,t){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(n),{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:e,encounterUuid:t}})}function p(n,e){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(n,"?patientUuid=").concat(e),{method:"DELETE"})}},14441:(n,e,t)=>{t.d(e,{A:()=>a});const a=function(n){var e=null==n?0:n.length;return e?n[e-1]:void 0}},65980:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(38254),i=t(90380),o=t(88010),r=t.n(o),s="custom:".concat([["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map((function(n){return n.join(":")})).join(","));function l(){var n=r()("".concat(a.restBaseUrl,"/emrapi/configuration?v=").concat(s),a.openmrsFetch);return(0,i.useMemo)((function(){var e;return{emrConfiguration:null===(e=n.data)||void 0===e?void 0:e.data,isLoadingEmrConfiguration:n.isLoading,mutateEmrConfiguration:n.mutate,errorFetchingEmrConfiguration:n.error}}),[n])}},71296:(n,e,t)=>{t.d(e,{A:()=>s});var a=t(30977),i=t.n(a),o=t(95924),r=t.n(o)()(i());r.push([n.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-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),r.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=r},81776:(n,e,t)=>{t.r(e),t.d(e,{default:()=>w});var a=t(38254),i=t(90380),o=t.n(i),r=t(72591),s=t.n(r),l=t(1740),p=t.n(l),c=t(88128),d=t.n(c),u=t(30855),f=t.n(u),g=t(93051),h=t.n(g),y=t(73656),m=t.n(y),b=t(71296),$={};$.styleTagTransform=m(),$.setAttributes=f(),$.insert=d().bind(null,"head"),$.domAPI=p(),$.insertStyleElement=h(),s()(b.A,$);const v=b.A&&b.A.locals?b.A.locals:void 0,w=function(n){var e,t=n.wardPatient,i=(null!=t?t:{}).patient,r=(null!==(e=(0,a.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).WardPatientHeader;return i?r?o().createElement("div",{className:v.wardWorkspacePatientBanner},o().createElement(r,{wardPatient:t})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},92891:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(38254),i=t(14441),o=t(88010),r=t.n(o),s=function(n){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(n)};function l(n){var e,t=window.location.pathname,o=(0,i.A)(t.split("/"));s(o)&&(e=o);var l=(0,a.useSession)().sessionLocation,p=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(display,uuid)";return r()(n?"".concat(a.restBaseUrl,"/location/").concat(n,"?v=").concat(e):null,a.openmrsFetch)}(n||e||null),c=p.data,d=p.isLoading,u=p.error,f=e&&u;return{location:e||n?null==c?void 0:c.data:l,isLoadingLocation:d,errorFetchingLocation:u,invalidLocation:f}}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[1776,2557],{2557:(n,e,t)=>{t.r(e),t.d(e,{default:()=>q});var a=t(90380),i=t.n(a),o=t(21580),r=t(53373),s=t.n(r),l=t(81160),p=t(80824),c=t(93150),d=t(46195),u=t(38254),f=t(13002),g=t(81776),h=t(72591),y=t.n(h),m=t(1740),b=t.n(m),$=t(88128),v=t.n($),w=t(30855),A=t.n(w),k=t(93051),x=t.n(k),C=t(73656),_=t.n(C),z=t(3357),E={};E.styleTagTransform=_(),E.setAttributes=A(),E.insert=v().bind(null,"head"),E.domAPI=b(),E.insertStyleElement=x(),y()(z.A,E);const M=z.A&&z.A.locals?z.A.locals:void 0;function T(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=n[t];return a}function S(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function D(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var a,i,o=[],r=!0,s=!1;try{for(t=t.call(n);!(r=(a=t.next()).done)&&(o.push(a.value),!e||o.length!==e);r=!0);}catch(n){s=!0,i=n}finally{try{r||null==t.return||t.return()}finally{if(s)throw i}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return T(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?T(n,e):void 0}}(n,e)||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 q(n){var e,t,r,h,y=n.closeWorkspaceWithSavedChanges,m=n.wardPatient,b=n.promptBeforeClosing,$=null!=m?m:{},v=$.patient,w=$.visit,A=(0,c.useTranslation)().t,k=D((0,a.useState)(!1),2),x=k[0],C=k[1],_=D((0,a.useState)(!1),2),z=_[0],E=_[1],T=(0,f.R_)(),q=T.createEncounter,P=T.emrConfiguration,F=T.isLoadingEmrConfiguration,B=T.errorFetchingEmrConfiguration,N=(null!==(h=(0,u.useAppContext)("ward-view-context"))&&void 0!==h?h:{}).wardPatientGroupDetails,O=(0,a.useMemo)((function(){return d.z.object({note:d.z.string().trim().min(1,{message:A("notesRequiredForCancellingRequest","Notes required for cancelling admission or transfer request")})})}),[A]),j=(0,p.mN)({resolver:(0,l.u)(O),defaultValues:{note:""}}),I=j.formState,W=I.errors,L=I.isDirty,R=j.control,U=j.handleSubmit;(0,a.useEffect)((function(){return b((function(){return L})),function(){return b(null)}}),[L,b]);var H=(0,a.useCallback)((function(n){var e,t,a;E(!0),C(!1);var i=[{concept:null==P||null===(e=P.consultFreeTextCommentsConcept)||void 0===e?void 0:e.uuid,value:n.note},{concept:null==P||null===(t=P.admissionDecisionConcept)||void 0===t?void 0:t.uuid,value:{uuid:null==P||null===(a=P.denyAdmissionConcept)||void 0===a?void 0:a.uuid}}];q(v,null==P?void 0:P.cancelADTRequestEncounterType,null==w?void 0:w.uuid,i).then((function(){(0,u.showSnackbar)({title:A("admissionRequestCancelled","Admission request cancelled."),kind:"success"})})).catch((function(n){(0,u.showSnackbar)({title:A("Error cancelling admission request","Error cancelling admission request"),subtitle:n.message,kind:"error"})})).finally((function(){E(!1),y(),N.mutate()}))}),[null==P||null===(e=P.consultFreeTextCommentsConcept)||void 0===e?void 0:e.uuid,null==P||null===(t=P.admissionDecisionConcept)||void 0===t?void 0:t.uuid,null==P||null===(r=P.denyAdmissionConcept)||void 0===r?void 0:r.uuid,null==P?void 0:P.cancelADTRequestEncounterType,q,v,A,y,N,null==w?void 0:w.uuid]),G=(0,a.useCallback)((function(){E(!1),C(!0)}),[]);return N?i().createElement("div",{className:M.flexWrapper},i().createElement(g.default,{wardPatient:m}),i().createElement(o.lVW,{onSubmit:U(H,G),className:s()(M.formContainer,M.workspaceContent)},i().createElement("div",null,B&&i().createElement("div",{className:M.formError},i().createElement(o.jeF,{kind:"error",title:A("somePartsOfTheFormDidntLoad","Some parts of the form didn't load"),subtitle:A("fetchingEmrConfigurationFailed","Fetching EMR configuration failed. Try refreshing the page or contact your system administrator."),lowContrast:!0,hideCloseButton:!0})),i().createElement("div",{className:M.field},i().createElement("h2",{className:M.productiveHeading02},A("clinicalNotes","Clinical notes")),i().createElement(p.xI,{name:"note",control:R,render:function(n){var e,t,a=n.field;return n.fieldState.error,i().createElement(u.ResponsiveWrapper,null,i().createElement(o.fs1,(e=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})))),a.forEach((function(e){S(n,e,t[e])}))}return n}({},a),t=null!=(t={labelText:""})?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(n){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e.push.apply(e,t)}return e}(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})),e)))}})),x&&i().createElement("div",{className:M.notifications},Object.values(W).map((function(n){return i().createElement(o.jeF,{key:n.message,lowContrast:!0,subtitle:null==n?void 0:n.message,hideCloseButton:!0})})))),i().createElement(o.Te$,{className:M.buttonSet},i().createElement(o.$nd,{size:"xl",kind:"secondary",onClick:y},A("cancel","Cancel")),i().createElement(o.$nd,{type:"submit",size:"xl",disabled:F||z||B||!v},A("save","Save"))))):i().createElement(i().Fragment,null)}},3357:(n,e,t)=>{t.d(e,{A:()=>s});var a=t(30977),i=t.n(a),o=t(95924),r=t.n(o)()(i());r.push([n.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-ward__cancel-admission-request__flexWrapper___DbIZz{height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__cancel-admission-request__workspaceContent___1Ax7E{padding:1rem;height:100%;display:flex;flex-direction:column;color:#393939}.-esm-ward__cancel-admission-request__field___aOddP{margin-bottom:1rem}.-esm-ward__cancel-admission-request__field___aOddP>h2{margin-bottom:.5rem}.-esm-ward__cancel-admission-request__productiveHeading02___MNR05{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-ward__cancel-admission-request__formContainer___eNae2{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-ward__cancel-admission-request__buttonSet___kSam7{display:flex;align-items:center;margin:0 -1rem -1rem -1rem}.-esm-ward__cancel-admission-request__buttonSet___kSam7 button{max-width:unset !important;width:50% !important}.-esm-ward__cancel-admission-request__buttonSet___kSam7 button>svg{fill:currentColor !important}.-esm-ward__cancel-admission-request__notifications___fd7td{margin-top:1rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DACE,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,+DACE,YCmBW,CDlBX,WAAA,CACA,YAAA,CACA,qBAAA,CACA,aAAA,CAGF,oDACE,kBCWW,CDVX,uDACE,mBCDS,CDKb,kEEw0BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFp0BJ,4DACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,wDACE,YAAA,CACA,kBAAA,CACA,0BAAA,CAEA,+DACE,0BAAA,CACA,oBAAA,CAEA,mEACE,4BAAA,CAKN,4DACE,eCtBW",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/type';\n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.flexWrapper {\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.workspaceContent {\n padding: layout.$spacing-05;\n height: 100%;\n display: flex;\n flex-direction: column;\n color: #393939;\n}\n\n.field {\n margin-bottom: layout.$spacing-05;\n & > h2 {\n margin-bottom: layout.$spacing-03;\n }\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\n}\n\n.formContainer {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.buttonSet {\n display: flex;\n align-items: center;\n margin: 0 (-(layout.$spacing-05)) (-(layout.$spacing-05)) (-(layout.$spacing-05));\n\n button {\n max-width: unset !important;\n width: 50% !important;\n\n > svg {\n fill: currentColor !important;\n }\n }\n}\n\n.notifications {\n margin-top: layout.$spacing-05;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),r.locals={flexWrapper:"-esm-ward__cancel-admission-request__flexWrapper___DbIZz",workspaceContent:"-esm-ward__cancel-admission-request__workspaceContent___1Ax7E",field:"-esm-ward__cancel-admission-request__field___aOddP",productiveHeading02:"-esm-ward__cancel-admission-request__productiveHeading02___MNR05",formContainer:"-esm-ward__cancel-admission-request__formContainer___eNae2",buttonSet:"-esm-ward__cancel-admission-request__buttonSet___kSam7",notifications:"-esm-ward__cancel-admission-request__notifications___fd7td"};const s=r},13002:(n,e,t)=>{t.d(e,{E:()=>s,R_:()=>r,Tb:()=>p,tf:()=>l});var a=t(38254),i=t(65980),o=t(92891);function r(){var n=(0,o.A)().location,e=(0,a.useSession)().currentProvider,t=(0,i.A)(),r=t.emrConfiguration,s=t.isLoadingEmrConfiguration,l=t.errorFetchingEmrConfiguration;return{createEncounter:function(t,i,o){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l={patient:t.uuid,encounterType:i,location:null==n?void 0:n.uuid,encounterProviders:[{provider:null==e?void 0:e.uuid,encounterRole:r.clinicianEncounterRole.uuid}],obs:s,visit:o};return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/encounter"),{method:"POST",headers:{"content-type":"application/json"},body:l})},emrConfiguration:r,isLoadingEmrConfiguration:s,errorFetchingEmrConfiguration:l}}function s(){var n=r(),e=n.createEncounter,t=n.emrConfiguration;return{admitPatient:function(n,a,i,o){var r="ADMIT"===a?t.admissionEncounterType:"TRANSFER"===a?t.transferWithinHospitalEncounterType:null;return e(n,r,i,o)},isLoadingEmrConfiguration:n.isLoadingEmrConfiguration,errorFetchingEmrConfiguration:n.errorFetchingEmrConfiguration}}function l(n,e,t){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(n),{method:"POST",headers:{"content-type":"application/json"},body:{patientUuid:e,encounterUuid:t}})}function p(n,e){return(0,a.openmrsFetch)("".concat(a.restBaseUrl,"/beds/").concat(n,"?patientUuid=").concat(e),{method:"DELETE"})}},65980:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(38254),i=t(90380),o=t(88010),r=t.n(o),s="custom:".concat([["metadataSourceName","ref"],["orderingProviderEncounterRole","ref"],["supportsTransferLocationTag","(uuid,display,name,links)"],["unknownLocation","ref"],["denyAdmissionConcept","ref"],["admissionForm","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["consultFreeTextCommentsConcept","ref"],["sameAsConceptMapType","ref"],["testPatientPersonAttributeType","ref"],["admissionDecisionConcept","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["checkInEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["suppressedDiagnosisConcepts","ref"],["primaryIdentifierType","ref"],["nonDiagnosisConceptSets","ref"],["fullPrivilegeLevel","ref"],["unknownProvider","ref"],["diagnosisSets","ref"],["personImageDirectory","ref"],["visitNoteEncounterType","ref"],["inpatientNoteEncounterType","ref"],["transferRequestEncounterType","ref"],["consultEncounterType","ref"],["diagnosisMetadata","ref"],["narrowerThanConceptMapType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["patientDiedConcept","ref"],["emrApiConceptSource","ref"],["lastViewedPatientSizeLimit","ref"],["identifierTypesToSearch","ref"],["telephoneAttributeType","ref"],["checkInClerkEncounterRole","ref"],["dischargeForm","ref"],["unknownCauseOfDeathConcept","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["atFacilityVisitType","ref"],["visitExpireHours","ref"],["admissionEncounterType","ref"],["motherChildRelationshipType","ref"],["dispositions","ref"],["dispositionDescriptor","ref"],["highPrivilegeLevel","ref"],["supportsLoginLocationTag","(uuid,display,name,links)"],["unknownPatientPersonAttributeType","ref"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["transferForm","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["admissionDecisionConcept","ref"],["denyAdmissionConcept","ref"]].map((function(n){return n.join(":")})).join(","));function l(){var n=r()("".concat(a.restBaseUrl,"/emrapi/configuration?v=").concat(s),a.openmrsFetch);return(0,i.useMemo)((function(){var e;return{emrConfiguration:null===(e=n.data)||void 0===e?void 0:e.data,isLoadingEmrConfiguration:n.isLoading,mutateEmrConfiguration:n.mutate,errorFetchingEmrConfiguration:n.error}}),[n])}},71296:(n,e,t)=>{t.d(e,{A:()=>s});var a=t(30977),i=t.n(a),o=t(95924),r=t.n(o)()(i());r.push([n.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-ward__style__wardWorkspacePatientBanner___2KnUU>div{background:#f4f4f4}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/ward-workspace/patient-banner/style.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CC1DA,0DACE,kBDFI",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 '@openmrs/esm-styleguide/src/vars' as *;\n\n.wardWorkspacePatientBanner {\n > div {\n background: $ui-01;\n }\n}\n"],sourceRoot:""}]),r.locals={wardWorkspacePatientBanner:"-esm-ward__style__wardWorkspacePatientBanner___2KnUU"};const s=r},81776:(n,e,t)=>{t.r(e),t.d(e,{default:()=>w});var a=t(38254),i=t(90380),o=t.n(i),r=t(72591),s=t.n(r),l=t(1740),p=t.n(l),c=t(88128),d=t.n(c),u=t(30855),f=t.n(u),g=t(93051),h=t.n(g),y=t(73656),m=t.n(y),b=t(71296),$={};$.styleTagTransform=m(),$.setAttributes=f(),$.insert=d().bind(null,"head"),$.domAPI=p(),$.insertStyleElement=h(),s()(b.A,$);const v=b.A&&b.A.locals?b.A.locals:void 0,w=function(n){var e,t=n.wardPatient,i=(null!=t?t:{}).patient,r=(null!==(e=(0,a.useAppContext)("ward-view-context"))&&void 0!==e?e:{}).WardPatientHeader;return i?r?o().createElement("div",{className:v.wardWorkspacePatientBanner},o().createElement(r,{wardPatient:t})):o().createElement(o().Fragment,null):(console.warn("Patient details were not received by the ward workspace"),null)}},92891:(n,e,t)=>{t.d(e,{A:()=>l});var a=t(38254),i=t(14441),o=t(88010),r=t.n(o),s=function(n){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(n)};function l(n){var e,t=window.location.pathname,o=(0,i.A)(t.split("/"));s(o)&&(e=o);var l=(0,a.useSession)().sessionLocation,p=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"custom:(display,uuid)";return r()(n?"".concat(a.restBaseUrl,"/location/").concat(n,"?v=").concat(e):null,a.openmrsFetch)}(n||e||null),c=p.data,d=p.isLoading,u=p.error,f=e&&u;return{location:e||n?null==c?void 0:c.data:l,isLoadingLocation:d,errorFetchingLocation:u,invalidLocation:f}}}}]);
package/dist/2557.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"2557.js","mappings":"+aAWIA,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQM,OAAS,IAAQA,YAASC,E,ujCCbpD,SAASC,EAAgC,G,IAoFlDC,EACAA,EACAA,EA3EgCC,EAVpCC,EADsD,EACtDA,+BACAC,EAFsD,EAEtDA,YACAC,EAHsD,EAGtDA,oBAE2BD,EAAAA,QAAAA,EAAe,CAAC,EAAnCE,EAAmBF,EAAnBE,QAASC,EAAUH,EAAVG,MACX,GAAQC,EAAAA,EAAAA,kBAANC,EACoDC,EAAAA,GAAAA,EAAAA,EAAAA,WAAS,MAA9DC,EAAqDD,EAAAA,GAA7BE,EAA6BF,EAAAA,GACpBA,EAAAA,GAAAA,EAAAA,EAAAA,WAAS,MAA1CG,EAAiCH,EAAAA,GAAnBI,EAAmBJ,EAAAA,GAEtCK,GAAAA,EAAAA,EAAAA,MADMC,EACND,EADMC,gBAAiBf,EACvBc,EADuBd,iBAAkBgB,EACzCF,EADyCE,0BAA2BC,EACpEH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Ed,MADc,wFACDgG,KAAKhG,EACpB,EAEe,SAASqD,EAAgB4C,GAQtC,IAEIC,EAFE,EAAeC,OAAO7C,SAApB8C,SACFC,GAAWC,EAAAA,EAAAA,GAAKF,EAASG,MAAM,MAEjCR,EAAOM,KACTH,EAAsBG,GAGxB,IAAM,GAAsB9C,EAAAA,EAAAA,cAApBiD,gBAKJC,EC1BS,SAAqBC,G,IAAsBC,EAAAA,UAAAA,OAAAA,QAAAA,IAAAA,UAAAA,GAAAA,UAAAA,GAAc,wBACtE,OAAOpB,IACLmB,EAAe,GAA2BA,OAAxBxC,EAAAA,YAAY,cAA8ByC,OAAlBD,EAAa,OAAS,OAAJC,GAAQ,KACpE1C,EAAAA,aAEJ,CDqBMwC,CAAYR,GAAsCC,GAA4C,MAHhGV,EAGEiB,EAHFjB,KACAC,EAEEgB,EAFFhB,UACAvD,EACEuE,EADFvE,MAEI0E,EAAkBV,GAAuBW,EAE/C,MAAO,CACLvD,SAAU4C,GAAuBD,EAAmBa,aAAAA,EAAAA,EAAkBtB,KAAOgB,EAC7EO,kBAAAA,EACAF,sBAAAA,EACAD,gBAAAA,EAEJ,C","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.scss?e0fe","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.workspace.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.scss","webpack://@kenyaemr/esm-ward-app/./src/ward.resource.ts","webpack://@kenyaemr/esm-ward-app/../../node_modules/lodash-es/last.js","webpack://@kenyaemr/esm-ward-app/./src/hooks/useEmrConfiguration.ts","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useLocation.ts"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","CancelAdmissionRequestWorkspace","emrConfiguration","useAppContext","closeWorkspaceWithSavedChanges","wardPatient","promptBeforeClosing","patient","visit","useTranslation","t","useState","showErrorNotifications","setShowErrorNotifications","isSubmitting","setIsSubmitting","useCreateEncounter","createEncounter","isLoadingEmrConfiguration","errorFetchingEmrConfiguration","wardPatientGroupDetails","zodSchema","useMemo","z","object","note","string","trim","min","message","useForm","resolver","zodResolver","defaultValues","formState","errors","isDirty","control","handleSubmit","useEffect","onSubmit","useCallback","values","obs","concept","consultFreeTextCommentsConcept","uuid","value","admissionDecisionConcept","denyAdmissionConcept","cancelADTRequestEncounterType","then","showSnackbar","title","kind","catch","err","subtitle","finally","mutate","onError","div","className","styles","flexWrapper","WardPatientWorkspaceBanner","Form","classNames","formContainer","workspaceContent","formError","InlineNotification","lowContrast","hideCloseButton","field","h2","productiveHeading02","Controller","name","render","fieldState","error","ResponsiveWrapper","TextArea","labelText","notifications","Object","map","key","ButtonSet","buttonSet","Button","size","onClick","type","disabled","___CSS_LOADER_EXPORT___","push","module","id","useWardLocation","location","useSession","currentProvider","useEmrConfiguration","encounterType","visitUuid","encounterPayload","encounterProviders","provider","encounterRole","clinicianEncounterRole","openmrsFetch","restBaseUrl","method","headers","body","useAdmitPatient","admitPatient","dispositionType","admissionEncounterType","transferWithinHospitalEncounterType","assignPatientToBed","bedUuid","patientUuid","encounterUuid","removePatientFromBed","bedId","array","length","customRep","prop","join","swrData","useSWRImmutable","data","isLoading","mutateEmrConfiguration","WardPatientHeader","wardWorkspacePatientBanner","console","warn","isUUID","test","overrideLocation","locationUuidFromUrl","window","pathname","segement","last","split","sessionLocation","useLocation","locationUuid","rep","invalidLocation","errorFetchingLocation","locationResponse","isLoadingLocation"],"sourceRoot":""}
1
+ {"version":3,"file":"2557.js","mappings":"obA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Ba,aAAAA,EAAAA,EAAkBtB,KAAOgB,EAC7EO,kBAAAA,EACAF,sBAAAA,EACAD,gBAAAA,EAEJ,C","sources":["webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.scss?e0fe","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.workspace.tsx","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/cancel-admission-request-workspace/cancel-admission-request.scss","webpack://@kenyaemr/esm-ward-app/./src/ward.resource.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useEmrConfiguration.ts","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/style.scss?2cee","webpack://@kenyaemr/esm-ward-app/./src/ward-workspace/patient-banner/patient-banner.component.tsx","webpack://@kenyaemr/esm-ward-app/./src/hooks/useWardLocation.ts","webpack://@kenyaemr/esm-ward-app/./src/hooks/useLocation.ts"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","locals","undefined","CancelAdmissionRequestWorkspace","emrConfiguration","useAppContext","closeWorkspaceWithSavedChanges","wardPatient","promptBeforeClosing","patient","visit","useTranslation","t","useState","showErrorNotifications","setShowErrorNotifications","isSubmitting","setIsSubmitting","useCreateEncounter","createEncounter","isLoadingEmrConfiguration","errorFetchingEmrConfiguration","wardPatientGroupDetails","zodSchema","useMemo","z","object","note","string","trim","min","message","useForm","resolver","zodResolver","defaultValues","formState","errors","isDirty","control","handleSubmit","useEffect","onSubmit","useCallback","values","obs","concept","consultFreeTextCommentsConcept","uuid","value","admissionDecisionConcept","denyAdmissionConcept","cancelADTRequestEncounterType","then","showSnackbar","title","kind","catch","err","subtitle","finally","mutate","onError","div","className","styles","flexWrapper","WardPatientWorkspaceBanner","Form","classNames","formContainer","workspaceContent","formError","InlineNotification","lowContrast","hideCloseButton","field","h2","productiveHeading02","Controller","name","render","fieldState","error","ResponsiveWrapper","TextArea","labelText","notifications","Object","map","key","ButtonSet","buttonSet","Button","size","onClick","type","disabled","___CSS_LOADER_EXPORT___","push","module","id","useWardLocation","location","useSession","currentProvider","useEmrConfiguration","encounterType","visitUuid","encounterPayload","encounterProviders","provider","encounterRole","clinicianEncounterRole","openmrsFetch","restBaseUrl","method","headers","body","useAdmitPatient","admitPatient","dispositionType","admissionEncounterType","transferWithinHospitalEncounterType","assignPatientToBed","bedUuid","patientUuid","encounterUuid","removePatientFromBed","bedId","customRep","prop","join","swrData","useSWRImmutable","data","isLoading","mutateEmrConfiguration","WardPatientHeader","wardWorkspacePatientBanner","console","warn","isUUID","test","overrideLocation","locationUuidFromUrl","window","pathname","segement","last","split","sessionLocation","useLocation","locationUuid","rep","invalidLocation","errorFetchingLocation","locationResponse","isLoadingLocation"],"sourceRoot":""}
package/dist/2953.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 2953.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_ward_app=globalThis.webpackChunk_kenyaemr_esm_ward_app||[]).push([[2123,2953],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},14441:(e,t,n)=>{n.d(t,{A:()=>r});const r=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},30855:(e,t,n)=>{e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},30977:e=>{function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e.exports=function(e){var n,r,i=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||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.")}()),a=i[1],o=i[3];if(!o)return a;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),c="/*# ".concat(u," */"),d=o.sources.map((function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")}));return[a].concat(d).concat([c]).join("\n")}return[a].join("\n")}},58139:(e,t,n)=>{e.exports=n(93296)},71123:(e,t,n)=>{n.d(t,{Ay:()=>c,BE:()=>u,iX:()=>a.useSWRConfig});var r=n(90380),i=n(58139),a=n(55434);const o=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),s={dedupe:!0},u=a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig}),c=(0,a.withArgs)(((e,t,n)=>{const{cache:u,compare:c,suspense:d,fallbackData:f,revalidateOnMount:l,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:g,keepPreviousData:m}=n,[y,E,b,S]=a.SWRGlobalState.get(u),[R,T]=(0,a.serialize)(e),U=(0,r.useRef)(!1),w=(0,r.useRef)(!1),C=(0,r.useRef)(R),I=(0,r.useRef)(t),L=(0,r.useRef)(n),V=()=>L.current,_=()=>V().isVisible()&&V().isOnline(),[A,O,k,x]=(0,a.createCacheHelper)(u,R),N=(0,r.useRef)({}).current,D=(0,a.isUndefined)(f)?n.fallback[R]:f,j=(e,t)=>{for(const n in N){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.isUndefined)(e[r]))return!1;if(!c(B,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},M=(0,r.useMemo)((()=>{const e=!!R&&!!t&&((0,a.isUndefined)(l)?!V().isPaused()&&!d&&(!!(0,a.isUndefined)(p)||p):l),n=t=>{const n=(0,a.mergeObjects)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=A(),i=x(),o=n(r),s=r===i?o:n(i);let u=o;return[()=>{const e=n(A());return j(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>s]}),[u,R]),F=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>k(R,((t,n)=>{j(n,t)||e()}))),[u,R]),M[0],M[1]),P=!U.current,W=y[R]&&y[R].length>0,H=F.data,G=(0,a.isUndefined)(H)?D:H,J=F.error,q=(0,r.useRef)(G),B=m?(0,a.isUndefined)(H)?q.current:H:G,Y=!(W&&!(0,a.isUndefined)(J))&&(P&&!(0,a.isUndefined)(l)?l:!V().isPaused()&&(d?!(0,a.isUndefined)(G)&&p:(0,a.isUndefined)(G)||p)),z=!!(R&&t&&P&&Y),X=(0,a.isUndefined)(F.isValidating)?z:F.isValidating,$=(0,a.isUndefined)(F.isLoading)?z:F.isLoading,K=(0,r.useCallback)((async e=>{const t=I.current;if(!R||!t||w.current||V().isPaused())return!1;let r,i,o=!0;const s=e||{},u=!b[R]||!s.dedupe,d=()=>a.IS_REACT_LEGACY?!w.current&&R===C.current&&U.current:R===C.current,f={isValidating:!1,isLoading:!1},l=()=>{O(f)},p=()=>{const e=b[R];e&&e[1]===i&&delete b[R]},v={isValidating:!0};(0,a.isUndefined)(A().data)&&(v.isLoading=!0);try{if(u&&(O(v),n.loadingTimeout&&(0,a.isUndefined)(A().data)&&setTimeout((()=>{o&&d()&&V().onLoadingSlow(R,n)}),n.loadingTimeout),b[R]=[t(T),(0,a.getTimestamp)()]),[r,i]=b[R],r=await r,u&&setTimeout(p,n.dedupingInterval),!b[R]||b[R][1]!==i)return u&&d()&&V().onDiscarded(R),!1;f.error=a.UNDEFINED;const e=E[R];if(!(0,a.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return l(),u&&d()&&V().onDiscarded(R),!1;const s=A().data;f.data=c(s,r)?s:r,u&&d()&&V().onSuccess(r,R,n)}catch(e){p();const t=V(),{shouldRetryOnError:n}=t;t.isPaused()||(f.error=e,u&&d()&&(t.onError(e,R,t),(!0===n||(0,a.isFunction)(n)&&n(e))&&(V().revalidateOnFocus&&V().revalidateOnReconnect&&!_()||t.onErrorRetry(e,R,t,(e=>{const t=y[R];t&&t[0]&&t[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,l(),!0}),[R,u]),Q=(0,r.useCallback)(((...e)=>(0,a.internalMutate)(u,C.current,...e)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{I.current=t,L.current=n,(0,a.isUndefined)(H)||(q.current=H)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!R)return;const e=K.bind(a.UNDEFINED,s);let t=0;const n=(0,a.subscribeCallback)(R,y,((n,r={})=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();V().revalidateOnFocus&&n>t&&_()&&(t=n+V().focusThrottleInterval,e())}else if(n==a.revalidateEvents.RECONNECT_EVENT)V().revalidateOnReconnect&&_()&&e();else{if(n==a.revalidateEvents.MUTATE_EVENT)return K();if(n==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(r)}}));return w.current=!1,C.current=R,U.current=!0,O({_k:T}),Y&&((0,a.isUndefined)(G)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{w.current=!0,n()}}),[R]),(0,a.useIsomorphicLayoutEffect)((()=>{let e;function t(){const t=(0,a.isFunction)(v)?v(A().data):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){A().error||!h&&!V().isVisible()||!g&&!V().isOnline()?t():K(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[v,h,g,R]),(0,r.useDebugValue)(B),d&&(0,a.isUndefined)(G)&&R){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");I.current=t,L.current=n,w.current=!1;const e=S[R];if(!(0,a.isUndefined)(e)){const t=Q(e);o(t)}if(!(0,a.isUndefined)(J))throw J;{const e=K(s);(0,a.isUndefined)(B)||(e.status="fulfilled",e.value=!0),o(e)}}return{mutate:Q,get data(){return N.data=!0,B},get error(){return N.error=!0,J},get isValidating(){return N.isValidating=!0,X},get isLoading(){return N.isLoading=!0,$}}}))},72591:e=>{var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},o=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],d=a[c]||0,f="".concat(c," ").concat(d);a[c]=d+1;var l=n(f),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==l)t[l].references++,t[l].updater(p);else{var v=i(p,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:v,references:1})}o.push(f)}return o}function i(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var a=r(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var s=n(a[o]);t[s].references--}for(var u=r(e,i),c=0;c<a.length;c++){var d=n(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=u}}},73656:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},88128:e=>{var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},93051:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},93296:(e,t,n)=>{var r=n(90380),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,o=r.useEffect,s=r.useLayoutEffect,u=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,d=r[1];return s((function(){i.value=n,i.getSnapshot=t,c(i)&&d({inst:i})}),[e,n,t]),o((function(){return c(i)&&d({inst:i}),e((function(){c(i)&&d({inst:i})}))}),[e]),u(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},95924:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),t.push(u))}},t}}}]);