@cc-openmrs/cc-esm-active-prescriptions 1.0.69 → 1.0.71
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.
- package/dist/{970.js → 319.js} +1 -1
- package/dist/416.js +1 -1
- package/dist/478.js +2 -1
- package/dist/499.js +1 -0
- package/dist/{488.js → 537.js} +1 -1
- package/dist/554.js +2 -0
- package/dist/818.js +2 -0
- package/dist/{389.js → 966.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/openmrs-esm-patient-lists-app.js +1 -1
- package/dist/openmrs-esm-patient-lists-app.js.buildmanifest.json +96 -96
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/root.component.tsx +4 -4
- package/src/root.scss +53 -0
- package/dist/597.js +0 -2
- package/dist/747.js +0 -2
- package/dist/97.js +0 -2
- /package/dist/{747.js.LICENSE.txt → 478.js.LICENSE.txt} +0 -0
- /package/dist/{597.js.LICENSE.txt → 554.js.LICENSE.txt} +0 -0
- /package/dist/{97.js.LICENSE.txt → 818.js.LICENSE.txt} +0 -0
package/dist/818.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 818.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[818],{6052(e,n,t){t.d(n,{A:()=>l});var a=t(2996),i=t.n(a),o=t(159),r=t.n(o)()(i());r.push([e.id,".-cc-esm-active-prescriptions__root__workspace___\\+xqk5{padding:2rem;display:flex;flex-direction:column;gap:1.5rem;background-color:var(--cds-layer, #ffffff);min-height:100%}.-cc-esm-active-prescriptions__root__header___G1X3T{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__subtitle___kRieu{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px);color:var(--cds-text-secondary, #525252);margin:0;max-width:48rem}.-cc-esm-active-prescriptions__root__section___61mCr{background-color:var(--cds-layer-accent, #f4f4f4);padding:1rem;border-radius:.25rem;box-shadow:0 1px 2px rgba(0,0,0,.08)}.-cc-esm-active-prescriptions__root__fieldLabel___F2zAd{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);margin-bottom:.5rem}.-cc-esm-active-prescriptions__root__tabContent___DnbmQ{padding:1rem 0 0;display:flex;flex-direction:column;gap:1.5rem}.-cc-esm-active-prescriptions__root__fieldGroup___3aiba{display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__helperText___sr2T2{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:0}.-cc-esm-active-prescriptions__root__ordersList___jcCvy{border:1px solid var(--cds-border-subtle, #e0e0e0);border-radius:.25rem;padding:.75rem;display:flex;flex-direction:column;gap:.5rem;background-color:var(--cds-layer, #ffffff)}.-cc-esm-active-prescriptions__root__orderLabel___3oBY3{display:flex;flex-direction:column;align-items:flex-start;gap:.125rem}.-cc-esm-active-prescriptions__root__orderName___QGKUy{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px);font-weight:600}.-cc-esm-active-prescriptions__root__orderMeta___S7cGO{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252)}.-cc-esm-active-prescriptions__root__selectionSummary___TD9ka{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:var(--cds-text-secondary, #525252);margin:.25rem 0 0}.-cc-esm-active-prescriptions__root__medicationsList___sxtXB{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.-cc-esm-active-prescriptions__root__medicationItem___YlIOL{display:flex;align-items:center;gap:.5rem;padding:.5rem;background-color:var(--cds-layer, #ffffff);border:1px solid var(--cds-border-subtle, #e0e0e0);border-radius:.25rem}.-cc-esm-active-prescriptions__root__medicationItem___YlIOL span{flex:1;font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-cc-esm-active-prescriptions__root__overlayBackdrop___SX20r{position:fixed;inset:0;background-color:rgba(0,0,0,.5);z-index:9000;display:flex;align-items:center;justify-content:center}.-cc-esm-active-prescriptions__root__overlayPanel___C1FVo{background-color:var(--cds-layer, #ffffff);border-radius:.25rem;box-shadow:0 8px 32px rgba(0,0,0,.24);width:100%;max-width:520px;max-height:90vh;overflow-y:auto;padding:2rem;display:flex;flex-direction:column;gap:1rem}.-cc-esm-active-prescriptions__root__overlayPanel___C1FVo h3{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0);margin:0}","",{version:3,sources:["webpack://./src/root.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAGA,wDACE,YCqCW,CDpCX,YAAA,CACA,qBAAA,CACA,UC6BW,CD5BX,0CAAA,CACA,eAAA,CAGF,oDACE,YAAA,CACA,qBAAA,CACA,SCMW,CDHb,sDEg1BI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CF90BF,wCAAA,CACA,QAAA,CACA,eAAA,CAGF,qDACE,iDAAA,CACA,YCIW,CDHX,oBCZW,CDaX,oCAAA,CAGF,wDEk0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CFh0BF,mBCbW,CDgBb,wDACE,gBAAA,CACA,YAAA,CACA,qBAAA,CACA,UCLW,CDQb,wDACE,YAAA,CACA,qBAAA,CACA,SC1BW,CD6Bb,wDEgzBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF9yBF,wCAAA,CACA,QAAA,CAGF,wDACE,kDAAA,CACA,oBC1CW,CD2CX,cCjCW,CDkCX,YAAA,CACA,qBAAA,CACA,SCzCW,CD0CX,0CAAA,CAGF,wDACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,WC3DW,CD8Db,uDEyxBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFvxBF,eAAA,CAGF,uDEoxBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CFlxBF,wCAAA,CAGF,8DE+wBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CF7wBF,wCAAA,CACA,iBAAA,CAGF,6DACE,eAAA,CACA,QAAA,CACA,SAAA,CACA,YAAA,CACA,qBAAA,CACA,SC1EW,CD6Eb,4DACE,YAAA,CACA,kBAAA,CACA,SChFW,CDiFX,aCjFW,CDkFX,0CAAA,CACA,kDAAA,CACA,oBCzFW,CD2FX,iEACE,MAAA,CEsvBA,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CFjvBJ,6DACE,cAAA,CACA,OAAA,CACA,+BAAA,CACA,YAAA,CACA,YAAA,CACA,kBAAA,CACA,sBAAA,CAGF,0DACE,0CAAA,CACA,oBC7GW,CD8GX,qCAAA,CACA,UAAA,CACA,eAAA,CACA,eAAA,CACA,eAAA,CACA,YC1FW,CD2FX,YAAA,CACA,qBAAA,CACA,QCvGW,CDyGX,6DE0tBE,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CFxtBA,QAAA",sourcesContent:["@use '@carbon/layout';\n@use '@carbon/type';\n\n.workspace {\n padding: layout.$spacing-07;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n background-color: var(--cds-layer, #ffffff);\n min-height: 100%;\n}\n\n.header {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.subtitle {\n @include type.type-style('body-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n max-width: 48rem;\n}\n\n.section {\n background-color: var(--cds-layer-accent, #f4f4f4);\n padding: layout.$spacing-05;\n border-radius: layout.$spacing-02;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);\n}\n\n.fieldLabel {\n @include type.type-style('heading-compact-01');\n margin-bottom: layout.$spacing-03;\n}\n\n.tabContent {\n padding: layout.$spacing-05 0 0;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-06;\n}\n\n.fieldGroup {\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.helperText {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: 0;\n}\n\n.ordersList {\n border: 1px solid var(--cds-border-subtle, #e0e0e0);\n border-radius: layout.$spacing-02;\n padding: layout.$spacing-04;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n background-color: var(--cds-layer, #ffffff);\n}\n\n.orderLabel {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: layout.$spacing-01;\n}\n\n.orderName {\n @include type.type-style('body-compact-01');\n font-weight: 600;\n}\n\n.orderMeta {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n}\n\n.selectionSummary {\n @include type.type-style('label-01');\n color: var(--cds-text-secondary, #525252);\n margin: layout.$spacing-02 0 0;\n}\n\n.medicationsList {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-03;\n}\n\n.medicationItem {\n display: flex;\n align-items: center;\n gap: layout.$spacing-03;\n padding: layout.$spacing-03;\n background-color: var(--cds-layer, #ffffff);\n border: 1px solid var(--cds-border-subtle, #e0e0e0);\n border-radius: layout.$spacing-02;\n\n span {\n flex: 1;\n @include type.type-style('body-compact-01');\n }\n}\n\n.overlayBackdrop {\n position: fixed;\n inset: 0;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9000;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.overlayPanel {\n background-color: var(--cds-layer, #ffffff);\n border-radius: layout.$spacing-02;\n box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);\n width: 100%;\n max-width: 520px;\n max-height: 90vh;\n overflow-y: auto;\n padding: layout.$spacing-07;\n display: flex;\n flex-direction: column;\n gap: layout.$spacing-05;\n\n h3 {\n @include type.type-style('heading-03');\n margin: 0;\n }\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={workspace:"-cc-esm-active-prescriptions__root__workspace___+xqk5",header:"-cc-esm-active-prescriptions__root__header___G1X3T",subtitle:"-cc-esm-active-prescriptions__root__subtitle___kRieu",section:"-cc-esm-active-prescriptions__root__section___61mCr",fieldLabel:"-cc-esm-active-prescriptions__root__fieldLabel___F2zAd",tabContent:"-cc-esm-active-prescriptions__root__tabContent___DnbmQ",fieldGroup:"-cc-esm-active-prescriptions__root__fieldGroup___3aiba",helperText:"-cc-esm-active-prescriptions__root__helperText___sr2T2",ordersList:"-cc-esm-active-prescriptions__root__ordersList___jcCvy",orderLabel:"-cc-esm-active-prescriptions__root__orderLabel___3oBY3",orderName:"-cc-esm-active-prescriptions__root__orderName___QGKUy",orderMeta:"-cc-esm-active-prescriptions__root__orderMeta___S7cGO",selectionSummary:"-cc-esm-active-prescriptions__root__selectionSummary___TD9ka",medicationsList:"-cc-esm-active-prescriptions__root__medicationsList___sxtXB",medicationItem:"-cc-esm-active-prescriptions__root__medicationItem___YlIOL",overlayBackdrop:"-cc-esm-active-prescriptions__root__overlayBackdrop___SX20r",overlayPanel:"-cc-esm-active-prescriptions__root__overlayPanel___C1FVo"};const l=r},1063(e,n,t){t.r(n),t.d(n,{default:()=>F});var a=t(6072);function i(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function o(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}var r=function(){function e(){!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e)}var n,t;return n=e,t=[{key:"createPrescription",value:function(e){return(n=function(){return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(r,"next",{value:s(0)}),l(r,"throw",{value:s(1)}),l(r,"return",{value:s(2)}),"function"==typeof Symbol&&l(r,Symbol.iterator,{value:function(){return this}}),r;function s(l){return function(s){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&l[0]?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,a=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],a=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,function(n){return[2,fetch("/api/prescriptions",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})]})},function(){var e=this,t=arguments;return new Promise(function(a,o){var r=n.apply(e,t);function l(e){i(r,a,o,l,s,"next",e)}function s(e){i(r,a,o,l,s,"throw",e)}l(void 0)})})();var n}}],null&&o(n.prototype,null),t&&o(n,t),e}(),l=t(7224),s=t(3323),c=t(2076),p=t(5072),u=t.n(p),d=t(7825),f=t.n(d),g=t(7659),y=t.n(g),h=t(5056),m=t.n(h),b=t(540),v=t.n(b),A=t(1113),$=t.n(A),_=t(6052),C={};C.styleTagTransform=$(),C.setAttributes=m(),C.insert=y().bind(null,"head"),C.domAPI=f(),C.insertStyleElement=v(),u()(_.A,C);const x=_.A&&_.A.locals?_.A.locals:void 0;var w=t(9324);function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function z(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function E(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return k(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var S=[{value:"mg"},{value:"ml"},{value:"g"},{value:"mcg"},{value:"comprimido(s)"}],M=[{value:"Oral"},{value:"Intravenoso (IV)"},{value:"Intramuscular (IM)"},{value:"Subcutâneo (SC)"},{value:"Tópico"},{value:"Inalatório"},{value:"Sublingual"}],D=[{value:"1x ao dia"},{value:"2x ao dia"},{value:"3x ao dia"},{value:"4x ao dia"},{value:"6/6h"},{value:"8/8h"},{value:"12/12h"},{value:"Se necessário"}];const T=function(e){var n,t,i,o,r,p,u,d,f,g,y,h,m,b,v=e.initialData,A=e.onSave,$=e.onCancel,_=(0,c.useTranslation)().t,C=E((0,a.useState)(null!==(n=null==v||null===(b=v.drug)||void 0===b?void 0:b.name)&&void 0!==n?n:""),2),x=C[0],k=C[1],T=E((0,a.useState)(null!==(t=null==v?void 0:v.drug)&&void 0!==t?t:null),2),I=T[0],N=T[1],B=E((0,a.useState)(null!==(i=null==v?void 0:v.dosage)&&void 0!==i?i:""),2),P=B[0],F=B[1],L=E((0,a.useState)(null!==(o=null==v?void 0:v.unit)&&void 0!==o?o:""),2),O=L[0],q=L[1],j=E((0,a.useState)(null!==(r=null==v?void 0:v.route)&&void 0!==r?r:""),2),G=j[0],W=j[1],Y=E((0,a.useState)(null!==(p=null==v?void 0:v.frequency)&&void 0!==p?p:""),2),U=Y[0],X=Y[1],K=E((0,a.useState)(null!==(u=null==v?void 0:v.patientInstructions)&&void 0!==u?u:""),2),Q=K[0],R=K[1],V=E((0,a.useState)(null!==(d=null==v?void 0:v.asNeeded)&&void 0!==d&&d),2),H=V[0],J=V[1],Z=E((0,a.useState)(null!==(f=null==v?void 0:v.asNeededCondition)&&void 0!==f?f:""),2),ee=Z[0],ne=Z[1],te=E((0,a.useState)(null!==(g=null==v?void 0:v.indication)&&void 0!==g?g:""),2),ae=te[0],ie=te[1],oe=function(e){var n,t,a=(null==e?void 0:e.length)>=3?"".concat(l.restBaseUrl,"/drug?q=").concat(encodeURIComponent(e),"&v=custom:(uuid,name,display)&limit=10"):null,i=(0,w.Ay)(a,l.openmrsFetch),o=i.data,r=i.isValidating;return{drugs:null!==(n=null==o||null===(t=o.data)||void 0===t?void 0:t.results)&&void 0!==n?n:[],isLoading:r}}(x),re=oe.drugs,le=oe.isLoading;return a.createElement("form",{onSubmit:function(e){e.preventDefault(),I&&P&&O&&U&&A({drug:I,dosage:P,unit:O,route:G,frequency:U,patientInstructions:Q||void 0,asNeeded:H,asNeededCondition:H&&ee||void 0,indication:ae||void 0})},style:{display:"flex",flexDirection:"column",gap:"1rem"}},a.createElement(s.a32,{id:"drug-search",titleText:_("drugName","Medicamento"),placeholder:_("drugSearchPlaceholder","Digite para buscar (mín. 3 letras)..."),items:re.map(function(e){return function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){z(e,n,t[n])})}return e}({id:e.uuid,label:e.display||e.name},e)}),itemToString:function(e){var n;return null!==(n=null==e?void 0:e.label)&&void 0!==n?n:""},selectedItem:I?{id:I.uuid,label:I.display}:null,onInputChange:function(e){k(e),e||N(null)},onChange:function(e){var n,t=e.selectedItem;t&&N({uuid:t.uuid,name:t.name,display:null!==(n=t.display)&&void 0!==n?n:t.name})},disabled:le,helperText:le?_("searching","Buscando..."):void 0}),a.createElement(s.ksK,{id:"dosage",labelText:_("dosage","Dose"),value:P,onChange:function(e){return F(e.target.value)},required:!0}),a.createElement(s.a32,{id:"unit",titleText:_("unit","Unidade"),items:S,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""},selectedItem:null!==(y=S.find(function(e){return e.value===O}))&&void 0!==y?y:null,onChange:function(e){var n,t=e.selectedItem;return q(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"")}}),a.createElement(s.a32,{id:"route",titleText:_("route","Via de administração"),items:M,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""},selectedItem:null!==(h=M.find(function(e){return e.value===G}))&&void 0!==h?h:null,onChange:function(e){var n,t=e.selectedItem;return W(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"")}}),a.createElement(s.a32,{id:"frequency",titleText:_("frequency","Frequência"),items:D,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""},selectedItem:null!==(m=D.find(function(e){return e.value===U}))&&void 0!==m?m:null,onChange:function(e){var n,t=e.selectedItem;return X(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"")}}),a.createElement(s.ksK,{id:"patient-instructions",labelText:_("patientInstructions","Instruções ao paciente"),value:Q,onChange:function(e){return R(e.target.value)}}),a.createElement(s.Sc0,{id:"as-needed",labelText:_("asNeeded","Tomar se necessário (P.R.N.)"),checked:H,onChange:function(e,n){var t=n.checked;return J(t)}}),H&&a.createElement(s.ksK,{id:"as-needed-condition",labelText:_("asNeededCondition","Motivo P.R.N."),value:ee,onChange:function(e){return ne(e.target.value)}}),a.createElement(s.ksK,{id:"indication",labelText:_("indication","Indicação"),value:ae,onChange:function(e){return ie(e.target.value)}}),a.createElement("div",{style:{display:"flex",gap:"0.5rem",marginTop:"0.5rem"}},a.createElement(s.$nd,{type:"submit",kind:"primary",disabled:!(I&&P&&O&&U)},_("saveMedication","Salvar medicamento")),a.createElement(s.$nd,{type:"button",kind:"secondary",onClick:$},_("cancel","Cancelar"))))};function I(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function N(e,n,t,a,i,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function B(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],r=!0,l=!1;try{for(t=t.call(e);!(r=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);r=!0);}catch(e){l=!0,i=e}finally{try{r||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||P(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(e,n){if(e){if("string"==typeof e)return I(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?I(e,n):void 0}}const F=function(e){var n=e.patientUuid,t=e.patient,i=(0,c.useTranslation)().t,o=B((0,a.useState)("new"),2),p=o[0],u=o[1],d=B((0,a.useState)(null),2),f=d[0],g=d[1],y=B((0,a.useState)(""),2),h=y[0],m=y[1],b=B((0,a.useState)(!1),2),v=b[0],A=b[1],$=B((0,a.useState)(!1),2),_=$[0],C=$[1],w=B((0,a.useState)(""),2),k=w[0],z=w[1],E=B((0,a.useState)(!1),2),S=E[0],M=E[1],D=B((0,a.useState)(null),2),F=D[0],L=D[1],O=B((0,a.useState)([]),2),q=O[0],j=O[1],G=B((0,a.useState)(!1),2),W=G[0],Y=G[1],U=B((0,a.useState)(null),2),X=U[0],K=U[1],Q=(0,l.useLocations)(),R=(0,a.useMemo)(function(){return null!=Q?Q:[]},[Q]);return a.createElement(l.Workspace2,{title:i("activePrescriptionsWorkspaceTitle","Prescrições ativas"),hasUnsavedChanges:!1},a.createElement("div",{className:x.workspace},a.createElement("div",{className:x.header},a.createElement("h2",null,i("activePrescriptionsWorkspaceTitle","Prescrições ativas")),a.createElement("p",{className:x.subtitle},i("activePrescriptionsHelper","Revise o contexto do paciente, escolha os detalhes da visita e adicione os medicamentos à prescrição."))),a.createElement("section",{className:x.section},a.createElement("p",{className:x.fieldLabel},i("visitTimingLabel","A visita é")),a.createElement(s.tUM,{selectedIndex:"new"===p?0:1,onChange:function(e){var n=e.selectedIndex;return u(0===n?"new":"past")}},a.createElement(s.wbY,{"aria-label":i("visitTimingLabel","A visita é")},a.createElement(s.ozo,null,i("visitTimingNew","Nova")),a.createElement(s.ozo,null,i("visitTimingPast","No passado"))),a.createElement(s.T2N,null,a.createElement(s.KpK,{className:x.tabContent},a.createElement("div",{className:x.fieldGroup},a.createElement(s.a32,{id:"visit-location",items:R,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.display)&&void 0!==n?n:""},selectedItem:f,onChange:function(e){var n=e.selectedItem;return g(null!=n?n:null)},placeholder:i("visitLocationPlaceholder","Selecione o local"),titleText:i("visitLocationHeading","Local da visita"),helperText:i("visitLocationHelper","Selecione onde a visita ocorrerá.")})),a.createElement("div",{className:x.fieldGroup},a.createElement(s.ksK,{id:"insurance-policy",labelText:i("insurancePolicyNumberLabel","Número da apólice (opcional)"),placeholder:i("insurancePolicyNumberPlaceholder","Digite o número da apólice"),value:h,onChange:function(e){return m(e.target.value)}})),a.createElement("div",{className:x.fieldGroup},a.createElement(s.Sc0,{id:"sign-prescription-checkbox",labelText:i("signPrescriptionLabel","Assinar digitalmente a prescrição"),checked:v,onChange:function(e,n){var t=n.checked;return A(t)}}),a.createElement(s.Sc0,{id:"print-prescription-checkbox",labelText:i("printPrescriptionLabel","Imprimir a prescrição"),checked:_,onChange:function(e,n){var t=n.checked;return C(t)}})),a.createElement("div",{className:x.fieldGroup},a.createElement(s.fs1,{id:"observations",labelText:i("observations","Observações"),placeholder:i("observationsPlaceholder","Observações da prescrição..."),value:k,onChange:function(e){return z(e.target.value)},rows:3})),a.createElement("div",{className:x.fieldGroup},a.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8}},a.createElement("h3",{style:{margin:0}},i("medicationsList","Medicamentos")),a.createElement(s.$nd,{size:"sm",hasIconOnly:!0,kind:"ghost",renderIcon:function(){return a.createElement("svg",{width:"20",height:"20",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M16 6V26",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),a.createElement("path",{d:"M6 16H26",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}))},iconDescription:i("addMedication","Adicionar medicamento"),onClick:function(){K(null),Y(!0)}})),0===q.length?a.createElement("p",null,i("noMedicationsAdded","Nenhum medicamento adicionado ainda.")):a.createElement("ul",{className:x.medicationsList},q.map(function(e,n){return a.createElement("li",{key:n,className:x.medicationItem},a.createElement("span",null,a.createElement("b",null,e.drug.display)," — ",e.dosage," ",e.unit,e.route?" · ".concat(e.route):""," · ",e.frequency),a.createElement(s.$nd,{size:"sm",kind:"ghost",onClick:function(){return function(e){K(e),Y(!0)}(n)}},i("edit","Editar")),a.createElement(s.$nd,{size:"sm",kind:"danger--ghost",onClick:function(){return function(e){j(function(n){return n.filter(function(n,t){return t!==e})})}(n)}},i("remove","Remover")))}))),W&&a.createElement("div",{className:x.overlayBackdrop,onClick:function(e){e.target===e.currentTarget&&(Y(!1),K(null))}},a.createElement("div",{className:x.overlayPanel},a.createElement("h3",null,null!==X?i("editMedication","Editar medicamento"):i("addMedication","Adicionar medicamento")),a.createElement(T,{initialData:null!==X?q[X]:void 0,onSave:function(e){null!==X?(j(function(n){return n.map(function(n,t){return t===X?e:n})}),K(null)):j(function(n){return(t=n,function(e){if(Array.isArray(e))return I(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||P(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([e]);var t}),Y(!1)},onCancel:function(){Y(!1),K(null)}}))),F&&a.createElement(s.jeF,{lowContrast:!0,kind:"error",title:i("submitError","Erro ao salvar a prescrição."),subtitle:F,onCloseButtonClick:function(){return L(null)}}),a.createElement("div",{style:{display:"flex",gap:8,marginTop:16}},a.createElement(s.$nd,{kind:"primary",disabled:!n||!f||0===q.length||S,onClick:function(){return(e=function(){var e,a,o,l,s,c,p;return function(e,n){var t,a,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},r=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(r,"next",{value:s(0)}),l(r,"throw",{value:s(1)}),l(r,"return",{value:s(2)}),"function"==typeof Symbol&&l(r,Symbol.iterator,{value:function(){return this}}),r;function s(l){return function(s){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;r&&(r=0,l[0]&&(o=0)),o;)try{if(t=1,a&&(i=2&l[0]?a.return:l[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;switch(a=0,i&&(l=[2&l[0],i.value]),l[0]){case 0:case 1:i=l;break;case 4:return o.label++,{value:l[1],done:!1};case 5:o.label++,a=l[1],l=[0];continue;case 7:l=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){o=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(6===l[0]&&o.label<i[1]){o.label=i[1],i=l;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(l);break}i[2]&&o.ops.pop(),o.trys.pop();continue}l=n.call(e,o)}catch(e){l=[6,e],a=0}finally{t=i=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,s])}}}(this,function(u){switch(u.label){case 0:if(!n||!f||0===q.length)return[2];M(!0),L(null),u.label=1;case 1:return u.trys.push([1,3,4,5]),s={patientUuid:n,patientName:(null==t||null===(o=t.name)||void 0===o?void 0:o[0])?"".concat(null===(l=t.name[0].given)||void 0===l?void 0:l.join(" ")," ").concat(t.name[0].family).trim():"",patientBirthDate:null!==(e=null==t?void 0:t.birthDate)&&void 0!==e?e:"",patientGender:null!==(a=null==t?void 0:t.gender)&&void 0!==a?a:"",providerUuid:"",providerName:"",locationUuid:f.uuid,locationName:f.display,policyNumber:h,orderUuids:q.map(function(e){return e.drug.uuid}),digitallySigned:v,printRequested:_,observations:k},[4,r.createPrescription(s)];case 2:return u.sent(),j([]),g(null),m(""),A(!1),C(!1),z(""),[3,5];case 3:return c=u.sent(),L(null!==(p=null==c?void 0:c.message)&&void 0!==p?p:i("submitError","Erro ao salvar a prescrição.")),[3,5];case 4:return M(!1),[7];case 5:return[2]}})},function(){var n=this,t=arguments;return new Promise(function(a,i){var o=e.apply(n,t);function r(e){N(o,a,i,r,l,"next",e)}function l(e){N(o,a,i,r,l,"throw",e)}r(void 0)})})();var e}},S?a.createElement(s.OuH,{description:i("saving","Salvando...")}):i("createPrescriptionButtonLabel","Salvar Prescrição")))),a.createElement(s.KpK,{className:x.tabContent},a.createElement(s.jeF,{lowContrast:!0,kind:"info",title:i("inPastTabPlaceholderTitle","Receitas históricas em breve"),subtitle:i("inPastTabPlaceholderSubtitle","Volte para Nova para gerenciar medicamentos atuais.")})))))))}},8493(e,n,t){var a=t(6072),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},o=a.useState,r=a.useEffect,l=a.useLayoutEffect,s=a.useDebugValue;function c(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var p="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),a=o({inst:{value:t,getSnapshot:n}}),i=a[0].inst,p=a[1];return l(function(){i.value=t,i.getSnapshot=n,c(i)&&p({inst:i})},[e,t,n]),r(function(){return c(i)&&p({inst:i}),e(function(){c(i)&&p({inst:i})})},[e]),s(t),t};n.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:p},9888(e,n,t){e.exports=t(8493)}}]);
|
package/dist/{389.js → 966.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[966],{2786(n,e,r){r.d(e,{A:()=>c});var t=r(2996),a=r.n(t),o=r(159),i=r.n(o)()(a());i.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))}.-cc-esm-active-prescriptions__box__blue___62DJr{background-color:#00008b}.-cc-esm-active-prescriptions__box__red___w2gGh{background-color:darkred}.-cc-esm-active-prescriptions__box__brand___DgXfT{background-color:#005d5d;background-color:var(--brand-01);color:#fff;padding:.5rem}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/boxes/extensions/box.scss"],names:[],mappings:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCtDD,iDACC,wBAAA,CAGF,gDACE,wBAAA,CAMF,kDDsBE,wBAAA,CACA,gCAAA,CCrBA,UAAA,CACA,aAAA",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","/* Extensions should supply the minimum amount of styling\n * necessary. Here, the extensions set only their colors.\n * Their sizes and other general features of their display\n * is controlled by the slot. */\n@use \"@carbon/layout\";\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n .blue {\n background-color: darkblue;\n}\n\n.red {\n background-color: darkred;\n}\n\n/* Brand colors are special. They must be included using a\n * SASS mix-in (shown here) or using a CSS variable like\n * `var(--brand-01)`. */\n.brand {\n @include brand-01(background-color);\n color: white;\n padding: layout.$spacing-03;\n}\n"],sourceRoot:""}]),i.locals={blue:"-cc-esm-active-prescriptions__box__blue___62DJr",red:"-cc-esm-active-prescriptions__box__red___w2gGh",brand:"-cc-esm-active-prescriptions__box__brand___DgXfT"};const c=i},159(n){n.exports=function(n){var e=[];return e.toString=function(){return this.map(function(e){var r=n(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r}).join("")},e.i=function(n,r,t){"string"==typeof n&&(n=[[null,n,""]]);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<n.length;c++){var s=[].concat(n[c]);t&&a[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),e.push(s))}},e}},2996(n){function e(n,e){(null==e||e>n.length)&&(e=n.length);for(var r=0,t=new Array(e);r<e;r++)t[r]=n[r];return t}n.exports=function(n){var r,t,a=(t=4,function(n){if(Array.isArray(n))return n}(r=n)||function(n,e){var r=n&&("undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"]);if(null!=r){var t,a,o=[],i=!0,c=!1;try{for(r=r.call(n);!(i=(t=r.next()).done)&&(o.push(t.value),!e||o.length!==e);i=!0);}catch(n){c=!0,a=n}finally{try{i||null==r.return||r.return()}finally{if(c)throw a}}return o}}(r,t)||function(n,r){if(n){if("string"==typeof n)return e(n,r);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(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?e(n,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),d="/*# ".concat(s," */"),p=i.sources.map(function(n){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(n," */")});return[o].concat(p).concat([d]).join("\n")}return[o].join("\n")}},966(n,e,r){r.r(e),r.d(e,{default:()=>o});var t=r(6072),a=r(9953);const o=function(){return t.createElement("div",{className:a.A.blue})}},9953(n,e,r){r.d(e,{A:()=>v});var t=r(5072),a=r.n(t),o=r(7825),i=r.n(o),c=r(7659),s=r.n(c),d=r(5056),p=r.n(d),u=r(540),l=r.n(u),f=r(1113),b=r.n(f),m=r(2786),h={};h.styleTagTransform=b(),h.setAttributes=p(),h.insert=s().bind(null,"head"),h.domAPI=i(),h.insertStyleElement=l(),a()(m.A,h);const v=m.A&&m.A.locals?m.A.locals:void 0},5072(n){var e=[];function r(n){for(var r=-1,t=0;t<e.length;t++)if(e[t].identifier===n){r=t;break}return r}function t(n,t){for(var o={},i=[],c=0;c<n.length;c++){var s=n[c],d=t.base?s[0]+t.base:s[0],p=o[d]||0,u="".concat(d," ").concat(p);o[d]=p+1;var l=r(u),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==l)e[l].references++,e[l].updater(f);else{var b=a(f,t);t.byIndex=c,e.splice(c,0,{identifier:u,updater:b,references:1})}i.push(u)}return i}function a(n,e){var r=e.domAPI(e);return r.update(n),function(e){if(e){if(e.css===n.css&&e.media===n.media&&e.sourceMap===n.sourceMap&&e.supports===n.supports&&e.layer===n.layer)return;r.update(n=e)}else r.remove()}}n.exports=function(n,a){var o=t(n=n||[],a=a||{});return function(n){n=n||[];for(var i=0;i<o.length;i++){var c=r(o[i]);e[c].references--}for(var s=t(n,a),d=0;d<o.length;d++){var p=r(o[d]);0===e[p].references&&(e[p].updater(),e.splice(p,1))}o=s}}},7659(n){var e={};n.exports=function(n,r){var t=function(n){if(void 0===e[n]){var r=document.querySelector(n);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(n){r=null}e[n]=r}return e[n]}(n);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)}},540(n){n.exports=function(n){var e=document.createElement("style");return n.setAttributes(e,n.attributes),n.insert(e,n.options),e}},5056(n,e,r){n.exports=function(n){var e=r.nc;e&&n.setAttribute("nonce",e)}},7825(n){n.exports=function(n){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=n.insertStyleElement(n);return{update:function(r){!function(n,e,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))))," */")),e.styleTagTransform(t,n,e.options)}(e,n,r)},remove:function(){!function(n){if(null===n.parentNode)return!1;n.parentNode.removeChild(n)}(e)}}}},1113(n){n.exports=function(n,e){if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}}}]);
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,r,t,n,o={
|
|
1
|
+
(()=>{var e,r,t,n,o={2499(e,r,t){"use strict";var n=t(7224),o=(n.Type.Boolean,n.Type.Array,n.Type.String,(0,n.validator)(function(e){return e.length>0},"At least one person must be greeted."),t(6072)),a=t(2076);var i={featureName:"active-prescriptions",moduleName:"@cc-openmrs/cc-esm-active-prescriptions"};t(4767),(0,n.getAsyncLifecycle)(function(){return t.e(319).then(t.bind(t,4319))},i),(0,n.getAsyncLifecycle)(function(){return t.e(966).then(t.bind(t,966))},i),(0,n.getAsyncLifecycle)(function(){return t.e(537).then(t.bind(t,1537))},i),(0,n.getSyncLifecycle)(function(){var e=(0,(0,a.useTranslation)().t)("activePrescriptions","Active prescriptions");return o.createElement(n.ActionMenuButton2,{icon:function(e){return o.createElement(n.EventsIcon,e)},label:e,workspaceToLaunch:{workspaceName:"active-prescriptions-workspace"}})},i),(0,n.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(554),t.e(465),t.e(818)]).then(t.bind(t,1063))},i)},4767(e,r,t){var n={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[4652,[652]],"./km.json":[4335,[335]],"./pt.json":[6679,[679]]};function o(e){try{if(!t.o(n,e))return Promise.resolve().then(()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r})}catch(e){return Promise.reject(e)}var r=n[e],o=r[0];return t.e(r[1][0]).then(()=>t(o))}o.keys=()=>Object.keys(n),o.id=4767,e.exports=o}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var t=a[e]={id:e,exports:{}};return o[e].call(t.exports,t,t.exports,i),t.exports}i.m=o,i.c=a,i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,i.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);i.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var s=2&n&&t;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>t[e]);return a.default=()=>t,i.d(o,a),o},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce((r,t)=>(i.f[t](e,r),r),[])),i.u=e=>e+".js",i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@cc-openmrs/cc-esm-active-prescriptions:",i.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var s,c;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var f=l[u];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==n+o){s=f;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",n+o),s.src=e),t[e]=[r];var p=(r,n)=>{s.onerror=s.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach(e=>e(n)),r)return r(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),c&&document.head.appendChild(s)}},i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{i.S={};var e={},r={};i.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];i.o(i.S,t)||(i.S[t]={});var a=i.S[t],s="@cc-openmrs/cc-esm-active-prescriptions",c=(e,r,t,n)=>{var o=a[e]=a[e]||{},i=o[r];(!i||!i.loaded&&(!n!=!i.eager?n:s>i.from))&&(o[r]={get:t,from:s,eager:!!n})},l=[];return"default"===t&&(c("@openmrs/esm-framework","9.0.3-pre.4665",()=>Promise.all([i.e(961),i.e(478),i.e(554),i.e(416),i.e(72),i.e(465),i.e(148),i.e(76)]).then(()=>()=>i(9416))),c("dayjs","1.11.20",()=>i.e(353).then(()=>()=>i(6734))),c("react-i18next","16.6.6",()=>Promise.all([i.e(478),i.e(311),i.e(72)]).then(()=>()=>i(3311))),c("react-router-dom","6.30.3",()=>Promise.all([i.e(961),i.e(282),i.e(72)]).then(()=>()=>i(282))),c("react","18.3.1",()=>i.e(540).then(()=>()=>i(6540))),c("rxjs","6.6.7",()=>i.e(184).then(()=>()=>i(3184))),c("swr/_internal","2.2.5",()=>Promise.all([i.e(993),i.e(72)]).then(()=>()=>i(4993))),c("swr/immutable","2.2.5",()=>Promise.all([i.e(72),i.e(465),i.e(606)]).then(()=>()=>i(4225))),c("swr/infinite","2.2.5",()=>Promise.all([i.e(72),i.e(465),i.e(422)]).then(()=>()=>i(3041)))),e[t]=l.length?Promise.all(l).then(()=>e[t]=1):1}}})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var r=globalThis.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),(()=>{var e=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},r=e=>{var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":t>0?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(s=e[a]))[0]?"-":(o>0?".":"")+(o=2,s);return n}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+c()+")":1===s?"("+c()+" || "+c()+")":2===s?i.pop()+" "+i.pop():r(s))}return c();function c(){return i.pop().replace(/^\((.+)\)$/,"$1")}},t=(r,n)=>{if(0 in r){n=e(n);var o=r[0],a=o<0;a&&(o=-o-1);for(var i=0,s=1,c=!0;;s++,i++){var l,u,f=s<r.length?(typeof r[s])[0]:"";if(i>=n.length||"o"==(u=(typeof(l=n[i]))[0]))return!c||("u"==f?s>o&&!a:""==f!=a);if("u"==u){if(!c||"u"!=f)return!1}else if(c)if(f==u)if(s<=o){if(l!=r[s])return!1}else{if(a?l>r[s]:l<r[s])return!1;l!=r[s]&&(c=!1)}else if("s"!=f&&"n"!=f){if(a||s<=o)return!1;c=!1,s--}else{if(s<=o||u<f!=a)return!1;c=!1}else"s"!=f&&"n"!=f&&(c=!1,s--)}}var p=[],d=p.pop.bind(p);for(i=1;i<r.length;i++){var h=r[i];p.push(1==h?d()|d():2==h?d()&d():h?t(h,n):!d())}return!!d()},n=(r,t,n)=>{var o=n?(e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}))(r[t]):r[t];return Object.keys(o).reduce((r,t)=>!r||!o[r].loaded&&((r,t)=>{r=e(r),t=e(t);for(var n=0;;){if(n>=r.length)return n<t.length&&"u"!=(typeof t[n])[0];var o=r[n],a=(typeof o)[0];if(n>=t.length)return"u"==a;var i=t[n],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}})(r,t)?t:r,0)},o=(e,r,t)=>t?t():((e,r)=>(e=>{throw new Error(e)})("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),a=(e=>function(r,t,n,o,a){var s=i.I(r);return s&&s.then&&!n?s.then(e.bind(e,r,i.S[r],t,!1,o,a)):e(r,i.S[r],t,n,o,a)})((e,a,s,c,l,u)=>{if(!((e,r)=>e&&i.o(e,r))(a,s))return o(e,s,u);var f,p,d=n(a,s,c);return t(l,d)||(p=((e,t,n,o)=>"Unsatisfied version "+n+" from "+(n&&e[t][n].from)+" of shared singleton module "+t+" (required "+r(o)+")")(a,s,d,l),"undefined"!=typeof console&&console.warn&&console.warn(p)),(f=a[s][d]).loaded=1,f.get()}),s={},c={7224:()=>a("default","@openmrs/esm-framework",!1,[1,9],()=>Promise.all([i.e(961),i.e(478),i.e(554),i.e(416),i.e(465),i.e(148)]).then(()=>()=>i(9416))),6072:()=>a("default","react",!1,[1,18],()=>i.e(540).then(()=>()=>i(6540))),2076:()=>a("default","react-i18next",!1,[1,16],()=>Promise.all([i.e(478),i.e(311)]).then(()=>()=>i(3311))),8465:()=>a("default","swr/_internal",!1,[1,2],()=>i.e(993).then(()=>()=>i(4993))),231:()=>a("default","dayjs",!1,[1,1],()=>i.e(353).then(()=>()=>i(6734))),3083:()=>a("default","rxjs",!1,[1,6],()=>i.e(184).then(()=>()=>i(3184))),4209:()=>a("default","swr/immutable",!1,[1,2],()=>i.e(225).then(()=>()=>i(4225))),6339:()=>a("default","swr/infinite",!1,[1,2],()=>i.e(41).then(()=>()=>i(3041))),7114:()=>a("default","react-router-dom",!1,[1,6],()=>i.e(282).then(()=>()=>i(282)))};[7224,6072,2076].forEach(e=>{i.m[e]=r=>{s[e]=0,delete i.c[e];var t=c[e]();if("function"!=typeof t)throw new Error("Shared module is not available for eager consumption: "+e);r.exports=t()}});var l={72:[6072],76:[2076],148:[231,3083,4209,6339,7114],465:[8465],792:[7224,6072,2076]},u={};i.f.consumes=(e,r)=>{i.o(l,e)&&l[e].forEach(e=>{if(i.o(s,e))return r.push(s[e]);if(!u[e]){var t=r=>{s[e]=0,i.m[e]=t=>{delete i.c[e],t.exports=r()}};u[e]=!0;var n=r=>{delete s[e],i.m[e]=t=>{throw delete i.c[e],r}};try{var o=c[e]();o.then?r.push(s[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})}})(),(()=>{var e={72:0,76:0,499:0,792:0};i.f.j=(r,t)=>{var n=i.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(148|465|72|76)$/.test(r))e[r]=0;else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=i.p+i.u(r),s=new Error;i.l(a,t=>{if(i.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;s.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,s,c]=t,l=0;if(a.some(r=>0!==e[r])){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);c&&c(i)}for(r&&r(t);l<a.length;l++)o=a[l],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),i.nc=void 0,i(2499)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _cc_openmrs_cc_esm_active_prescriptions;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,c,f,p,d,h,m,v,g,b,y,_,w={6487(e,r,t){var n={"./start":()=>Promise.all([t.e(72),t.e(76),t.e(
|
|
1
|
+
var _cc_openmrs_cc_esm_active_prescriptions;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,c,f,p,d,h,m,v,g,b,y,_,w={6487(e,r,t){var n={"./start":()=>Promise.all([t.e(72),t.e(76),t.e(499)]).then(()=>()=>t(2499))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then(()=>{throw new Error('Module "'+e+'" does not exist in container.')}),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},P={};function S(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return w[e].call(t.exports,t,t.exports,S),t.exports}S.m=w,S.c=P,S.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return S.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,S.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);S.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach(e=>a[e]=()=>t[e]);return a.default=()=>t,S.d(o,a),o},S.d=(e,r)=>{for(var t in r)S.o(r,t)&&!S.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},S.f={},S.e=e=>Promise.all(Object.keys(S.f).reduce((r,t)=>(S.f[t](e,r),r),[])),S.u=e=>e+".js",S.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@cc-openmrs/cc-esm-active-prescriptions:",S.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var c=l[u];if(c.getAttribute("src")==e||c.getAttribute("data-webpack")==n+o){i=c;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",S.nc&&i.setAttribute("nonce",S.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(p);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(e=>e(n)),r)return r(n)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},S.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{S.S={};var e={},r={};S.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];S.o(S.S,t)||(S.S[t]={});var a=S.S[t],i="@cc-openmrs/cc-esm-active-prescriptions",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","9.0.3-pre.4665",()=>Promise.all([S.e(961),S.e(478),S.e(554),S.e(416),S.e(72),S.e(465),S.e(148),S.e(76)]).then(()=>()=>S(9416))),s("dayjs","1.11.20",()=>S.e(353).then(()=>()=>S(6734))),s("react-i18next","16.6.6",()=>Promise.all([S.e(478),S.e(311),S.e(72)]).then(()=>()=>S(3311))),s("react-router-dom","6.30.3",()=>Promise.all([S.e(961),S.e(282),S.e(72)]).then(()=>()=>S(282))),s("react","18.3.1",()=>S.e(540).then(()=>()=>S(6540))),s("rxjs","6.6.7",()=>S.e(184).then(()=>()=>S(3184))),s("swr/_internal","2.2.5",()=>Promise.all([S.e(993),S.e(72)]).then(()=>()=>S(4993))),s("swr/immutable","2.2.5",()=>Promise.all([S.e(72),S.e(465),S.e(606)]).then(()=>()=>S(4225))),s("swr/infinite","2.2.5",()=>Promise.all([S.e(72),S.e(465),S.e(422)]).then(()=>()=>S(3041)))),e[t]=l.length?Promise.all(l).then(()=>e[t]=1):1}}})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var r=globalThis.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),S.p=e})(),o=e=>{var r=e=>e.split(".").map(e=>+e==e?+e:e),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&n!=i)return n<i;t++}},i=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var a=[];for(o=1;o<e.length;o++){var s=e[o];a.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?a.pop()+" "+a.pop():i(s))}return l();function l(){return a.pop().replace(/^\((.+)\)$/,"$1")}},s=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,l=!0;;i++,a++){var u,c,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(c=(typeof(u=r[a]))[0]))return!l||("u"==f?i>t&&!n:""==f!=n);if("u"==c){if(!l||"u"!=f)return!1}else if(l)if(f==c)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(l=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;l=!1,i--}else{if(i<=t||c<f!=n)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,i--)}}var p=[],d=p.pop.bind(p);for(a=1;a<e.length;a++){var h=e[a];p.push(1==h?d()|d():2==h?d()&d():h?s(h,r):!d())}return!!d()},l=(e,r)=>e&&S.o(e,r),u=e=>(e.loaded=1,e.get()),c=e=>Object.keys(e).reduce((r,t)=>(e[t].eager&&(r[t]=e[t]),r),{}),f=(e,r,t)=>{var n=t?c(e[r]):e[r];return Object.keys(n).reduce((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e,0)},p=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",d=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>d("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=S.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,S.S[r],t,!1,o,a)):e(r,S.S[r],t,n,o,a)})((e,r,t,n,o,a)=>{if(!l(r,t))return m(e,t,a);var i=f(r,t,n);return s(o,i)||h(p(r,t,i,o)),u(r[t][i])}),g={},b={6072:()=>v("default","react",!1,[1,18],()=>S.e(540).then(()=>()=>S(6540))),8465:()=>v("default","swr/_internal",!1,[1,2],()=>S.e(993).then(()=>()=>S(4993))),231:()=>v("default","dayjs",!1,[1,1],()=>S.e(353).then(()=>()=>S(6734))),3083:()=>v("default","rxjs",!1,[1,6],()=>S.e(184).then(()=>()=>S(3184))),4209:()=>v("default","swr/immutable",!1,[1,2],()=>S.e(225).then(()=>()=>S(4225))),6339:()=>v("default","swr/infinite",!1,[1,2],()=>S.e(41).then(()=>()=>S(3041))),7114:()=>v("default","react-router-dom",!1,[1,6],()=>S.e(282).then(()=>()=>S(282))),2076:()=>v("default","react-i18next",!1,[1,16],()=>Promise.all([S.e(478),S.e(311)]).then(()=>()=>S(3311))),7224:()=>v("default","@openmrs/esm-framework",!1,[1,9],()=>Promise.all([S.e(961),S.e(478),S.e(554),S.e(416),S.e(465),S.e(148)]).then(()=>()=>S(9416)))},y={72:[6072],76:[2076],148:[231,3083,4209,6339,7114],465:[8465],499:[7224]},_={},S.f.consumes=(e,r)=>{S.o(y,e)&&y[e].forEach(e=>{if(S.o(g,e))return r.push(g[e]);if(!_[e]){var t=r=>{g[e]=0,S.m[e]=t=>{delete S.c[e],t.exports=r()}};_[e]=!0;var n=r=>{delete g[e],S.m[e]=t=>{throw delete S.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}})},(()=>{var e={338:0};S.f.j=(r,t)=>{var n=S.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(148|465|72|76)$/.test(r))e[r]=0;else{var o=new Promise((t,o)=>n=e[r]=[t,o]);t.push(n[2]=o);var a=S.p+S.u(r),i=new Error;S.l(a,t=>{if(S.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}},"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some(r=>0!==e[r])){for(n in i)S.o(i,n)&&(S.m[n]=i[n]);s&&s(S)}for(r&&r(t);l<a.length;l++)o=a[l],S.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),S.nc=void 0;var j=S(6487);_cc_openmrs_cc_esm_active_prescriptions=j})();
|
|
@@ -85,34 +85,7 @@
|
|
|
85
85
|
],
|
|
86
86
|
"files": [],
|
|
87
87
|
"auxiliaryFiles": [],
|
|
88
|
-
"hash": "
|
|
89
|
-
"childrenByOrder": {}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
"rendered": true,
|
|
93
|
-
"initial": false,
|
|
94
|
-
"entry": false,
|
|
95
|
-
"recorded": false,
|
|
96
|
-
"reason": "split chunk (cache group: defaultVendors)",
|
|
97
|
-
"size": 85041,
|
|
98
|
-
"sizes": {
|
|
99
|
-
"javascript": 85041
|
|
100
|
-
},
|
|
101
|
-
"names": [],
|
|
102
|
-
"idHints": [
|
|
103
|
-
"vendors"
|
|
104
|
-
],
|
|
105
|
-
"runtime": [
|
|
106
|
-
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
107
|
-
"main"
|
|
108
|
-
],
|
|
109
|
-
"files": [
|
|
110
|
-
"97.js"
|
|
111
|
-
],
|
|
112
|
-
"auxiliaryFiles": [
|
|
113
|
-
"97.js.map"
|
|
114
|
-
],
|
|
115
|
-
"hash": "62ae2440bfec0a64",
|
|
88
|
+
"hash": "d973bd550e2508b6",
|
|
116
89
|
"childrenByOrder": {}
|
|
117
90
|
},
|
|
118
91
|
{
|
|
@@ -307,6 +280,30 @@
|
|
|
307
280
|
"hash": "866741c707b2b2b5",
|
|
308
281
|
"childrenByOrder": {}
|
|
309
282
|
},
|
|
283
|
+
{
|
|
284
|
+
"rendered": true,
|
|
285
|
+
"initial": false,
|
|
286
|
+
"entry": false,
|
|
287
|
+
"recorded": false,
|
|
288
|
+
"size": 16114,
|
|
289
|
+
"sizes": {
|
|
290
|
+
"javascript": 16114
|
|
291
|
+
},
|
|
292
|
+
"names": [],
|
|
293
|
+
"idHints": [],
|
|
294
|
+
"runtime": [
|
|
295
|
+
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
296
|
+
"main"
|
|
297
|
+
],
|
|
298
|
+
"files": [
|
|
299
|
+
"319.js"
|
|
300
|
+
],
|
|
301
|
+
"auxiliaryFiles": [
|
|
302
|
+
"319.js.map"
|
|
303
|
+
],
|
|
304
|
+
"hash": "8371367aa10afb56",
|
|
305
|
+
"childrenByOrder": {}
|
|
306
|
+
},
|
|
310
307
|
{
|
|
311
308
|
"rendered": true,
|
|
312
309
|
"initial": false,
|
|
@@ -334,11 +331,11 @@
|
|
|
334
331
|
"initial": true,
|
|
335
332
|
"entry": true,
|
|
336
333
|
"recorded": false,
|
|
337
|
-
"size":
|
|
334
|
+
"size": 21853,
|
|
338
335
|
"sizes": {
|
|
339
336
|
"javascript": 42,
|
|
340
337
|
"share-init": 378,
|
|
341
|
-
"runtime":
|
|
338
|
+
"runtime": 21433
|
|
342
339
|
},
|
|
343
340
|
"names": [
|
|
344
341
|
"@cc-openmrs/cc-esm-active-prescriptions"
|
|
@@ -353,7 +350,7 @@
|
|
|
353
350
|
"auxiliaryFiles": [
|
|
354
351
|
"openmrs-esm-patient-lists-app.js.map"
|
|
355
352
|
],
|
|
356
|
-
"hash": "
|
|
353
|
+
"hash": "f154f78f7eb293c9",
|
|
357
354
|
"childrenByOrder": {}
|
|
358
355
|
},
|
|
359
356
|
{
|
|
@@ -380,39 +377,15 @@
|
|
|
380
377
|
"hash": "b175b81792ea35dd",
|
|
381
378
|
"childrenByOrder": {}
|
|
382
379
|
},
|
|
383
|
-
{
|
|
384
|
-
"rendered": true,
|
|
385
|
-
"initial": false,
|
|
386
|
-
"entry": false,
|
|
387
|
-
"recorded": false,
|
|
388
|
-
"size": 16118,
|
|
389
|
-
"sizes": {
|
|
390
|
-
"javascript": 16118
|
|
391
|
-
},
|
|
392
|
-
"names": [],
|
|
393
|
-
"idHints": [],
|
|
394
|
-
"runtime": [
|
|
395
|
-
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
396
|
-
"main"
|
|
397
|
-
],
|
|
398
|
-
"files": [
|
|
399
|
-
"389.js"
|
|
400
|
-
],
|
|
401
|
-
"auxiliaryFiles": [
|
|
402
|
-
"389.js.map"
|
|
403
|
-
],
|
|
404
|
-
"hash": "3dc3f6d4bb019624",
|
|
405
|
-
"childrenByOrder": {}
|
|
406
|
-
},
|
|
407
380
|
{
|
|
408
381
|
"rendered": true,
|
|
409
382
|
"initial": false,
|
|
410
383
|
"entry": false,
|
|
411
384
|
"recorded": false,
|
|
412
385
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
413
|
-
"size":
|
|
386
|
+
"size": 3777401,
|
|
414
387
|
"sizes": {
|
|
415
|
-
"javascript":
|
|
388
|
+
"javascript": 3777401
|
|
416
389
|
},
|
|
417
390
|
"names": [],
|
|
418
391
|
"idHints": [
|
|
@@ -428,7 +401,7 @@
|
|
|
428
401
|
"auxiliaryFiles": [
|
|
429
402
|
"416.js.map"
|
|
430
403
|
],
|
|
431
|
-
"hash": "
|
|
404
|
+
"hash": "1ea0532b275c1e15",
|
|
432
405
|
"childrenByOrder": {}
|
|
433
406
|
},
|
|
434
407
|
{
|
|
@@ -476,6 +449,33 @@
|
|
|
476
449
|
"hash": "a5d2a136c28deafb",
|
|
477
450
|
"childrenByOrder": {}
|
|
478
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"rendered": true,
|
|
454
|
+
"initial": false,
|
|
455
|
+
"entry": false,
|
|
456
|
+
"recorded": false,
|
|
457
|
+
"reason": "split chunk (cache group: defaultVendors)",
|
|
458
|
+
"size": 85041,
|
|
459
|
+
"sizes": {
|
|
460
|
+
"javascript": 85041
|
|
461
|
+
},
|
|
462
|
+
"names": [],
|
|
463
|
+
"idHints": [
|
|
464
|
+
"vendors"
|
|
465
|
+
],
|
|
466
|
+
"runtime": [
|
|
467
|
+
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
468
|
+
"main"
|
|
469
|
+
],
|
|
470
|
+
"files": [
|
|
471
|
+
"478.js"
|
|
472
|
+
],
|
|
473
|
+
"auxiliaryFiles": [
|
|
474
|
+
"478.js.map"
|
|
475
|
+
],
|
|
476
|
+
"hash": "76da09dc3f74e7e6",
|
|
477
|
+
"childrenByOrder": {}
|
|
478
|
+
},
|
|
479
479
|
{
|
|
480
480
|
"rendered": true,
|
|
481
481
|
"initial": false,
|
|
@@ -492,12 +492,12 @@
|
|
|
492
492
|
"@cc-openmrs/cc-esm-active-prescriptions"
|
|
493
493
|
],
|
|
494
494
|
"files": [
|
|
495
|
-
"
|
|
495
|
+
"499.js"
|
|
496
496
|
],
|
|
497
497
|
"auxiliaryFiles": [
|
|
498
|
-
"
|
|
498
|
+
"499.js.map"
|
|
499
499
|
],
|
|
500
|
-
"hash": "
|
|
500
|
+
"hash": "0b58f1ffa52bb320",
|
|
501
501
|
"childrenByOrder": {}
|
|
502
502
|
},
|
|
503
503
|
{
|
|
@@ -516,12 +516,12 @@
|
|
|
516
516
|
"main"
|
|
517
517
|
],
|
|
518
518
|
"files": [
|
|
519
|
-
"
|
|
519
|
+
"537.js"
|
|
520
520
|
],
|
|
521
521
|
"auxiliaryFiles": [
|
|
522
|
-
"
|
|
522
|
+
"537.js.map"
|
|
523
523
|
],
|
|
524
|
-
"hash": "
|
|
524
|
+
"hash": "f0c63ba0571eb1cc",
|
|
525
525
|
"childrenByOrder": {}
|
|
526
526
|
},
|
|
527
527
|
{
|
|
@@ -554,9 +554,9 @@
|
|
|
554
554
|
"entry": false,
|
|
555
555
|
"recorded": false,
|
|
556
556
|
"reason": "split chunk (cache group: defaultVendors)",
|
|
557
|
-
"size":
|
|
557
|
+
"size": 2137076,
|
|
558
558
|
"sizes": {
|
|
559
|
-
"javascript":
|
|
559
|
+
"javascript": 2137076
|
|
560
560
|
},
|
|
561
561
|
"names": [],
|
|
562
562
|
"idHints": [
|
|
@@ -567,12 +567,12 @@
|
|
|
567
567
|
"main"
|
|
568
568
|
],
|
|
569
569
|
"files": [
|
|
570
|
-
"
|
|
570
|
+
"554.js"
|
|
571
571
|
],
|
|
572
572
|
"auxiliaryFiles": [
|
|
573
|
-
"
|
|
573
|
+
"554.js.map"
|
|
574
574
|
],
|
|
575
|
-
"hash": "
|
|
575
|
+
"hash": "90f0da3375a1a5b6",
|
|
576
576
|
"childrenByOrder": {}
|
|
577
577
|
},
|
|
578
578
|
{
|
|
@@ -645,54 +645,54 @@
|
|
|
645
645
|
},
|
|
646
646
|
{
|
|
647
647
|
"rendered": true,
|
|
648
|
-
"initial":
|
|
649
|
-
"entry":
|
|
648
|
+
"initial": true,
|
|
649
|
+
"entry": true,
|
|
650
650
|
"recorded": false,
|
|
651
|
-
"size":
|
|
651
|
+
"size": 26901,
|
|
652
652
|
"sizes": {
|
|
653
|
-
"
|
|
653
|
+
"consume-shared": 126,
|
|
654
|
+
"javascript": 4534,
|
|
655
|
+
"share-init": 378,
|
|
656
|
+
"runtime": 21863
|
|
654
657
|
},
|
|
655
|
-
"names": [
|
|
658
|
+
"names": [
|
|
659
|
+
"main"
|
|
660
|
+
],
|
|
656
661
|
"idHints": [],
|
|
657
662
|
"runtime": [
|
|
658
|
-
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
659
663
|
"main"
|
|
660
664
|
],
|
|
661
665
|
"files": [
|
|
662
|
-
"
|
|
666
|
+
"main.js"
|
|
663
667
|
],
|
|
664
668
|
"auxiliaryFiles": [
|
|
665
|
-
"
|
|
669
|
+
"main.js.map"
|
|
666
670
|
],
|
|
667
|
-
"hash": "
|
|
671
|
+
"hash": "1c04ee946ada46f3",
|
|
668
672
|
"childrenByOrder": {}
|
|
669
673
|
},
|
|
670
674
|
{
|
|
671
675
|
"rendered": true,
|
|
672
|
-
"initial":
|
|
673
|
-
"entry":
|
|
676
|
+
"initial": false,
|
|
677
|
+
"entry": false,
|
|
674
678
|
"recorded": false,
|
|
675
|
-
"size":
|
|
679
|
+
"size": 82835,
|
|
676
680
|
"sizes": {
|
|
677
|
-
"
|
|
678
|
-
"javascript": 4534,
|
|
679
|
-
"share-init": 378,
|
|
680
|
-
"runtime": 21859
|
|
681
|
+
"javascript": 82835
|
|
681
682
|
},
|
|
682
|
-
"names": [
|
|
683
|
-
"main"
|
|
684
|
-
],
|
|
683
|
+
"names": [],
|
|
685
684
|
"idHints": [],
|
|
686
685
|
"runtime": [
|
|
686
|
+
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
687
687
|
"main"
|
|
688
688
|
],
|
|
689
689
|
"files": [
|
|
690
|
-
"
|
|
690
|
+
"818.js"
|
|
691
691
|
],
|
|
692
692
|
"auxiliaryFiles": [
|
|
693
|
-
"
|
|
693
|
+
"818.js.map"
|
|
694
694
|
],
|
|
695
|
-
"hash": "
|
|
695
|
+
"hash": "9ba8ba37e47601d3",
|
|
696
696
|
"childrenByOrder": {}
|
|
697
697
|
},
|
|
698
698
|
{
|
|
@@ -727,9 +727,9 @@
|
|
|
727
727
|
"initial": false,
|
|
728
728
|
"entry": false,
|
|
729
729
|
"recorded": false,
|
|
730
|
-
"size":
|
|
730
|
+
"size": 16118,
|
|
731
731
|
"sizes": {
|
|
732
|
-
"javascript":
|
|
732
|
+
"javascript": 16118
|
|
733
733
|
},
|
|
734
734
|
"names": [],
|
|
735
735
|
"idHints": [],
|
|
@@ -738,12 +738,12 @@
|
|
|
738
738
|
"main"
|
|
739
739
|
],
|
|
740
740
|
"files": [
|
|
741
|
-
"
|
|
741
|
+
"966.js"
|
|
742
742
|
],
|
|
743
743
|
"auxiliaryFiles": [
|
|
744
|
-
"
|
|
744
|
+
"966.js.map"
|
|
745
745
|
],
|
|
746
|
-
"hash": "
|
|
746
|
+
"hash": "a1cc5b6437e9aae3",
|
|
747
747
|
"childrenByOrder": {}
|
|
748
748
|
},
|
|
749
749
|
{
|