@cc-openmrs/cc-esm-active-prescriptions 1.0.70 → 1.0.72
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/499.js +1 -1
- package/dist/695.js +2 -0
- 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 +50 -29
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/prescription-form/prescription-form.component.tsx +237 -0
- package/src/prescription.store.tsx +81 -0
- package/src/prescriptions-actions/add-drug-prescription/add-drug-prescription.page.tsx +65 -0
- package/src/root.component.tsx +20 -277
- package/src/root.scss +26 -0
- package/dist/818.js +0 -2
- /package/dist/{818.js.LICENSE.txt → 695.js.LICENSE.txt} +0 -0
package/dist/499.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[499],{2499(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>m,brandBox:()=>d,importTranslation:()=>p,prescriptionsActionButton:()=>f,redBox:()=>l,root:()=>_,startupApp:()=>u});var r=t(7224),o={casualGreeting:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:r.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:r.Type.String},_validators:[(0,r.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},c=t(6072),i=t(2076);var s="@cc-openmrs/cc-esm-active-prescriptions",a={featureName:"active-prescriptions",moduleName:s},p=t(4767);function u(){(0,r.defineConfigSchema)(s,o)}var l=(0,r.getAsyncLifecycle)(function(){return t.e(319).then(t.bind(t,4319))},a),m=(0,r.getAsyncLifecycle)(function(){return t.e(966).then(t.bind(t,966))},a),d=(0,r.getAsyncLifecycle)(function(){return t.e(537).then(t.bind(t,1537))},a),f=(0,r.getSyncLifecycle)(function(){var e=(0,(0,i.useTranslation)().t)("activePrescriptions","Active prescriptions");return c.createElement(r.ActionMenuButton2,{icon:function(e){return c.createElement(r.EventsIcon,e)},label:e,workspaceToLaunch:{workspaceName:"active-prescriptions-workspace"}})},a),_=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(554),t.e(465),t.e(
|
|
1
|
+
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[499],{2499(e,n,t){"use strict";t.r(n),t.d(n,{blueBox:()=>m,brandBox:()=>d,importTranslation:()=>p,prescriptionsActionButton:()=>f,redBox:()=>l,root:()=>_,startupApp:()=>u});var r=t(7224),o={casualGreeting:{_type:r.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:r.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:r.Type.String},_validators:[(0,r.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},c=t(6072),i=t(2076);var s="@cc-openmrs/cc-esm-active-prescriptions",a={featureName:"active-prescriptions",moduleName:s},p=t(4767);function u(){(0,r.defineConfigSchema)(s,o)}var l=(0,r.getAsyncLifecycle)(function(){return t.e(319).then(t.bind(t,4319))},a),m=(0,r.getAsyncLifecycle)(function(){return t.e(966).then(t.bind(t,966))},a),d=(0,r.getAsyncLifecycle)(function(){return t.e(537).then(t.bind(t,1537))},a),f=(0,r.getSyncLifecycle)(function(){var e=(0,(0,i.useTranslation)().t)("activePrescriptions","Active prescriptions");return c.createElement(r.ActionMenuButton2,{icon:function(e){return c.createElement(r.EventsIcon,e)},label:e,workspaceToLaunch:{workspaceName:"active-prescriptions-workspace"}})},a),_=(0,r.getAsyncLifecycle)(function(){return Promise.all([t.e(961),t.e(554),t.e(465),t.e(114),t.e(695)]).then(t.bind(t,8349))},a)},4767(e,n,t){var r={"./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(r,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n})}catch(e){return Promise.reject(e)}var n=r[e],o=n[0];return t.e(n[1][0]).then(()=>t(o))}o.keys=()=>Object.keys(r),o.id=4767,e.exports=o}}]);
|
package/dist/695.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 695.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[695],{6052(e,n,t){t.d(n,{A:()=>l});var a=t(2996),i=t.n(a),r=t(159),o=t.n(r)()(i());o.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)}","",{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",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\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:""}]),o.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"};const l=o},8349(e,n,t){t.r(n),t.d(n,{default:()=>K});var a=t(6072),i=t(7114),r=t(2076),o=t(7224);function l(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 s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(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){s(e,n,t[n])})}return e}function p(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function u(e,n){if(e){if("string"==typeof e)return l(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)?l(e,n):void 0}}var d={orders:[],location:null,policyNumber:"",digitallySigned:!1,printRequested:!1,observations:""};function f(e,n){switch(n.type){case"ADD_ORDER":return p(c({},e),{orders:(t=e.orders,function(e){if(Array.isArray(e))return l(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||u(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([n.payload])});case"UPDATE_ORDER":return p(c({},e),{orders:e.orders.map(function(e,t){return t===n.index?n.payload:e})});case"REMOVE_ORDER":return p(c({},e),{orders:e.orders.filter(function(e,t){return t!==n.index})});case"SET_LOCATION":return p(c({},e),{location:n.payload});case"SET_POLICY_NUMBER":return p(c({},e),{policyNumber:n.payload});case"SET_DIGITALLY_SIGNED":return p(c({},e),{digitallySigned:n.payload});case"SET_PRINT_REQUESTED":return p(c({},e),{printRequested:n.payload});case"SET_OBSERVATIONS":return p(c({},e),{observations:n.payload});case"RESET":return d;default:return e}var t}var g=(0,a.createContext)(null);function y(e){var n,t,i=e.children,r=(n=(0,a.useReducer)(f,d),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,r=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return r}}(n,t)||u(n,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=r[0],l=r[1];return a.createElement(g.Provider,{value:{state:o,dispatch:l}},i)}function h(){var e=(0,a.useContext)(g);if(!e)throw new Error("usePrescriptionStore must be used within PrescriptionProvider");return e}var m=t(3323);function b(e,n,t,a,i,r,o){try{var l=e[r](o),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,i)}function v(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 A=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,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)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 r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){r=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(6===l[0]&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(e,r)}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,i){var r=n.apply(e,t);function o(e){b(r,a,i,o,l,"next",e)}function l(e){b(r,a,i,o,l,"throw",e)}o(void 0)})})();var n}}],null&&v(n.prototype,null),t&&v(n,t),e}(),$=t(5072),_=t.n($),x=t(7825),w=t.n(x),C=t(7659),k=t.n(C),E=t(5056),z=t.n(E),S=t(540),T=t.n(S),D=t(1113),M=t.n(D),I=t(6052),O={};O.styleTagTransform=M(),O.setAttributes=z(),O.insert=k().bind(null,"head"),O.domAPI=w(),O.insertStyleElement=T(),_()(I.A,O);const N=I.A&&I.A.locals?I.A.locals:void 0;function P(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 L(e,n,t,a,i,r,o){try{var l=e[r](o),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,r=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return P(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)?P(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.")}()}const j=function(e){var n=e.patientUuid,t=e.patient,l=(0,r.useTranslation)().t,s=(0,i.useNavigate)(),c=h(),p=c.state,u=c.dispatch,d=B((0,a.useState)(0),2),f=d[0],g=d[1],y=B((0,a.useState)(!1),2),b=y[0],v=y[1],$=B((0,a.useState)(null),2),_=$[0],x=$[1],w=(0,o.useLocations)(),C=(0,a.useMemo)(function(){return null!=w?w:[]},[w]);return a.createElement("div",{className:N.workspace},a.createElement("div",{className:N.header},a.createElement("h2",null,l("activePrescriptionsWorkspaceTitle","Prescrições ativas")),a.createElement("p",{className:N.subtitle},l("activePrescriptionsHelper","Revise o contexto do paciente, escolha os detalhes da visita e adicione os medicamentos à prescrição."))),a.createElement("section",{className:N.section},a.createElement("p",{className:N.fieldLabel},l("visitTimingLabel","A visita é")),a.createElement(m.tUM,{selectedIndex:f,onChange:function(e){var n=e.selectedIndex;return g(n)}},a.createElement(m.wbY,{"aria-label":l("visitTimingLabel","A visita é")},a.createElement(m.ozo,null,l("visitTimingNew","Nova")),a.createElement(m.ozo,null,l("visitTimingPast","No passado"))),a.createElement(m.T2N,null,a.createElement(m.KpK,{className:N.tabContent},a.createElement("div",{className:N.fieldGroup},a.createElement(m.a32,{id:"visit-location",items:C,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.display)&&void 0!==n?n:""},selectedItem:p.location,onChange:function(e){var n=e.selectedItem;return u({type:"SET_LOCATION",payload:null!=n?n:null})},placeholder:l("visitLocationPlaceholder","Selecione o local"),titleText:l("visitLocationHeading","Local da visita"),helperText:l("visitLocationHelper","Selecione onde a visita ocorrerá.")})),a.createElement("div",{className:N.fieldGroup},a.createElement(m.ksK,{id:"insurance-policy",labelText:l("insurancePolicyNumberLabel","Número da apólice (opcional)"),placeholder:l("insurancePolicyNumberPlaceholder","Digite o número da apólice"),value:p.policyNumber,onChange:function(e){return u({type:"SET_POLICY_NUMBER",payload:e.target.value})}})),a.createElement("div",{className:N.fieldGroup},a.createElement(m.Sc0,{id:"sign-prescription-checkbox",labelText:l("signPrescriptionLabel","Assinar digitalmente a prescrição"),checked:p.digitallySigned,onChange:function(e,n){var t=n.checked;return u({type:"SET_DIGITALLY_SIGNED",payload:t})}}),a.createElement(m.Sc0,{id:"print-prescription-checkbox",labelText:l("printPrescriptionLabel","Imprimir a prescrição"),checked:p.printRequested,onChange:function(e,n){var t=n.checked;return u({type:"SET_PRINT_REQUESTED",payload:t})}})),a.createElement("div",{className:N.fieldGroup},a.createElement(m.fs1,{id:"observations",labelText:l("observations","Observações"),placeholder:l("observationsPlaceholder","Observações da prescrição..."),value:p.observations,onChange:function(e){return u({type:"SET_OBSERVATIONS",payload:e.target.value})},rows:3})),a.createElement("div",{className:N.fieldGroup},a.createElement("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8}},a.createElement("h3",{style:{margin:0}},l("medicationsList","Medicamentos")),a.createElement(m.$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:l("addMedication","Adicionar medicamento"),onClick:function(){return s("/medications/new")}})),0===p.orders.length?a.createElement("p",null,l("noMedicationsAdded","Nenhum medicamento adicionado ainda.")):a.createElement("ul",{className:N.medicationsList},p.orders.map(function(e,n){return a.createElement("li",{key:n,className:N.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(m.$nd,{size:"sm",kind:"ghost",onClick:function(){return s("/medications/".concat(n,"/edit"))}},l("edit","Editar")),a.createElement(m.$nd,{size:"sm",kind:"danger--ghost",onClick:function(){return u({type:"REMOVE_ORDER",index:n})}},l("remove","Remover")))}))),_&&a.createElement(m.jeF,{lowContrast:!0,kind:"error",title:l("submitError","Erro ao salvar a prescrição."),subtitle:_,onCloseButtonClick:function(){return x(null)}}),a.createElement("div",{style:{display:"flex",gap:8,marginTop:16}},a.createElement(m.$nd,{kind:"primary",disabled:!n||!p.location||0===p.orders.length||b,onClick:function(){return(e=function(){var e,a,i,r,o,s,c;return function(e,n){var t,a,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),l=Object.defineProperty;return l(o,"next",{value:s(0)}),l(o,"throw",{value:s(1)}),l(o,"return",{value:s(2)}),"function"==typeof Symbol&&l(o,Symbol.iterator,{value:function(){return this}}),o;function s(l){return function(s){return function(l){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(r=0)),r;)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 r.label++,{value:l[1],done:!1};case 5:r.label++,a=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==l[0]&&2!==l[0])){r=0;continue}if(3===l[0]&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(6===l[0]&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(e,r)}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(d){switch(d.label){case 0:if(!n||!p.location||0===p.orders.length)return[2];v(!0),x(null),d.label=1;case 1:return d.trys.push([1,3,4,5]),o={patientUuid:n,patientName:(null==t||null===(i=t.name)||void 0===i?void 0:i[0])?"".concat(null===(r=t.name[0].given)||void 0===r?void 0:r.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:p.location.uuid,locationName:p.location.display,policyNumber:p.policyNumber,orderUuids:p.orders.map(function(e){return e.drug.uuid}),digitallySigned:p.digitallySigned,printRequested:p.printRequested,observations:p.observations},[4,A.createPrescription(o)];case 2:return d.sent(),u({type:"RESET"}),[3,5];case 3:return s=d.sent(),x(null!==(c=null==s?void 0:s.message)&&void 0!==c?c:l("submitError","Erro ao salvar a prescrição.")),[3,5];case 4:return v(!1),[7];case 5:return[2]}})},function(){var n=this,t=arguments;return new Promise(function(a,i){var r=e.apply(n,t);function o(e){L(r,a,i,o,l,"next",e)}function l(e){L(r,a,i,o,l,"throw",e)}o(void 0)})})();var e}},b?a.createElement(m.OuH,{description:l("saving","Salvando...")}):l("createPrescriptionButtonLabel","Salvar Prescrição")))),a.createElement(m.KpK,{className:N.tabContent},a.createElement(m.jeF,{lowContrast:!0,kind:"info",title:l("inPastTabPlaceholderTitle","Receitas históricas em breve"),subtitle:l("inPastTabPlaceholderSubtitle","Volte para Nova para gerenciar medicamentos atuais.")}))))))};var R=t(9324);function q(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 F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function G(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,r=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){l=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw i}}return r}}(e,n)||function(e,n){if(e){if("string"==typeof e)return q(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var U=[{value:"mg"},{value:"ml"},{value:"g"},{value:"mcg"},{value:"comprimido(s)"}],W=[{value:"Oral"},{value:"Intravenoso (IV)"},{value:"Intramuscular (IM)"},{value:"Subcutâneo (SC)"},{value:"Tópico"},{value:"Inalatório"},{value:"Sublingual"}],Y=[{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 X=function(e){var n,t,i,l,s,c,p,u,d,f,g,y,h,b,v=e.initialData,A=e.onSave,$=e.onCancel,_=(0,r.useTranslation)().t,x=G((0,a.useState)(null!==(n=null==v||null===(b=v.drug)||void 0===b?void 0:b.name)&&void 0!==n?n:""),2),w=x[0],C=x[1],k=G((0,a.useState)(null!==(t=null==v?void 0:v.drug)&&void 0!==t?t:null),2),E=k[0],z=k[1],S=G((0,a.useState)(null!==(i=null==v?void 0:v.dosage)&&void 0!==i?i:""),2),T=S[0],D=S[1],M=G((0,a.useState)(null!==(l=null==v?void 0:v.unit)&&void 0!==l?l:""),2),I=M[0],O=M[1],N=G((0,a.useState)(null!==(s=null==v?void 0:v.route)&&void 0!==s?s:""),2),P=N[0],L=N[1],B=G((0,a.useState)(null!==(c=null==v?void 0:v.frequency)&&void 0!==c?c:""),2),j=B[0],q=B[1],X=G((0,a.useState)(null!==(p=null==v?void 0:v.patientInstructions)&&void 0!==p?p:""),2),V=X[0],K=X[1],Q=G((0,a.useState)(null!==(u=null==v?void 0:v.asNeeded)&&void 0!==u&&u),2),H=Q[0],J=Q[1],Z=G((0,a.useState)(null!==(d=null==v?void 0:v.asNeededCondition)&&void 0!==d?d:""),2),ee=Z[0],ne=Z[1],te=G((0,a.useState)(null!==(f=null==v?void 0:v.indication)&&void 0!==f?f:""),2),ae=te[0],ie=te[1],re=function(e){var n,t,a=(null==e?void 0:e.length)>=3?"".concat(o.restBaseUrl,"/drug?q=").concat(encodeURIComponent(e),"&v=custom:(uuid,name,display)&limit=10"):null,i=(0,R.Ay)(a,o.openmrsFetch),r=i.data,l=i.isValidating;return{drugs:null!==(n=null==r||null===(t=r.data)||void 0===t?void 0:t.results)&&void 0!==n?n:[],isLoading:l}}(w),oe=re.drugs,le=re.isLoading;return a.createElement("form",{onSubmit:function(e){e.preventDefault(),E&&T&&I&&j&&A({drug:E,dosage:T,unit:I,route:P,frequency:j,patientInstructions:V||void 0,asNeeded:H,asNeededCondition:H&&ee||void 0,indication:ae||void 0})},style:{display:"flex",flexDirection:"column",gap:"1rem"}},a.createElement(m.a32,{id:"drug-search",titleText:_("drugName","Medicamento"),placeholder:_("drugSearchPlaceholder","Digite para buscar (mín. 3 letras)..."),items:oe.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){F(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:E?{id:E.uuid,label:E.display}:null,onInputChange:function(e){C(e),e||z(null)},onChange:function(e){var n,t=e.selectedItem;t&&z({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(m.ksK,{id:"dosage",labelText:_("dosage","Dose"),value:T,onChange:function(e){return D(e.target.value)},required:!0}),a.createElement(m.a32,{id:"unit",titleText:_("unit","Unidade"),items:U,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""},selectedItem:null!==(g=U.find(function(e){return e.value===I}))&&void 0!==g?g:null,onChange:function(e){var n,t=e.selectedItem;return O(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"")}}),a.createElement(m.a32,{id:"route",titleText:_("route","Via de administração"),items:W,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""},selectedItem:null!==(y=W.find(function(e){return e.value===P}))&&void 0!==y?y:null,onChange:function(e){var n,t=e.selectedItem;return L(null!==(n=null==t?void 0:t.value)&&void 0!==n?n:"")}}),a.createElement(m.a32,{id:"frequency",titleText:_("frequency","Frequência"),items:Y,itemToString:function(e){var n;return null!==(n=null==e?void 0:e.value)&&void 0!==n?n:""},selectedItem:null!==(h=Y.find(function(e){return e.value===j}))&&void 0!==h?h: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(m.ksK,{id:"patient-instructions",labelText:_("patientInstructions","Instruções ao paciente"),value:V,onChange:function(e){return K(e.target.value)}}),a.createElement(m.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(m.ksK,{id:"as-needed-condition",labelText:_("asNeededCondition","Motivo P.R.N."),value:ee,onChange:function(e){return ne(e.target.value)}}),a.createElement(m.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(m.$nd,{type:"submit",kind:"primary",disabled:!(E&&T&&I&&j)},_("saveMedication","Salvar medicamento")),a.createElement(m.$nd,{type:"button",kind:"secondary",onClick:$},_("cancel","Cancelar"))))},V=function(){var e=(0,i.useParams)().index,n=(0,i.useNavigate)(),t=(0,r.useTranslation)().t,o=h(),l=o.state,s=o.dispatch,c=void 0!==e?parseInt(e,10):null,p=null!==c?l.orders[c]:void 0;return a.createElement("div",{className:N.workspace},a.createElement("div",{className:N.header},a.createElement(m.$nd,{size:"sm",kind:"ghost",onClick:function(){return n("/")},renderIcon:function(){return a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("path",{d:"M20 6L10 16L20 26",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))}},t("backToPrescription","Voltar à prescrição")),a.createElement("h2",{style:{margin:0}},null!==c?t("editMedication","Editar medicamento"):t("addMedication","Adicionar medicamento"))),a.createElement(X,{initialData:p,onSave:function(e){s(null!==c?{type:"UPDATE_ORDER",index:c,payload:e}:{type:"ADD_ORDER",payload:e}),n("/")},onCancel:function(){return n("/")}}))},K=function(e){var n=e.patientUuid,t=e.patient,l=(0,r.useTranslation)().t;return a.createElement(y,null,a.createElement(i.MemoryRouter,null,a.createElement(o.Workspace2,{title:l("activePrescriptionsWorkspaceTitle","Prescrições ativas"),hasUnsavedChanges:!1},a.createElement(i.Routes,null,a.createElement(i.Route,{path:"/",element:a.createElement(j,{patientUuid:n,patient:t})}),a.createElement(i.Route,{path:"/medications/new",element:a.createElement(V,null)}),a.createElement(i.Route,{path:"/medications/:index/edit",element:a.createElement(V,null)})))))}},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},r=a.useState,o=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=r({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]),o(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/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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(
|
|
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(114),t.e(695)]).then(t.bind(t,8349))},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(114),i.e(127),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(114),i.e(127)]).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))),7114:()=>a("default","react-router-dom",!1,[1,6],()=>i.e(282).then(()=>()=>i(282))),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)))};[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],114:[7114],127:[231,3083,4209,6339],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(/^(114|127|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(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(
|
|
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(114),S.e(127),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))),7114:()=>v("default","react-router-dom",!1,[1,6],()=>S.e(282).then(()=>()=>S(282))),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))),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(114),S.e(127)]).then(()=>()=>S(9416)))},y={72:[6072],76:[2076],114:[7114],127:[231,3083,4209,6339],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(/^(114|127|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})();
|
|
@@ -110,15 +110,36 @@
|
|
|
110
110
|
"hash": "8f131bfcc9827966",
|
|
111
111
|
"childrenByOrder": {}
|
|
112
112
|
},
|
|
113
|
+
{
|
|
114
|
+
"rendered": false,
|
|
115
|
+
"initial": false,
|
|
116
|
+
"entry": false,
|
|
117
|
+
"recorded": false,
|
|
118
|
+
"reason": "split chunk (cache group: default)",
|
|
119
|
+
"size": 42,
|
|
120
|
+
"sizes": {
|
|
121
|
+
"consume-shared": 42
|
|
122
|
+
},
|
|
123
|
+
"names": [],
|
|
124
|
+
"idHints": [],
|
|
125
|
+
"runtime": [
|
|
126
|
+
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
127
|
+
"main"
|
|
128
|
+
],
|
|
129
|
+
"files": [],
|
|
130
|
+
"auxiliaryFiles": [],
|
|
131
|
+
"hash": "0270583292ad2bd5",
|
|
132
|
+
"childrenByOrder": {}
|
|
133
|
+
},
|
|
113
134
|
{
|
|
114
135
|
"rendered": false,
|
|
115
136
|
"initial": false,
|
|
116
137
|
"entry": false,
|
|
117
138
|
"recorded": false,
|
|
118
139
|
"reason": "reused as split chunk (cache group: default)",
|
|
119
|
-
"size":
|
|
140
|
+
"size": 168,
|
|
120
141
|
"sizes": {
|
|
121
|
-
"consume-shared":
|
|
142
|
+
"consume-shared": 168
|
|
122
143
|
},
|
|
123
144
|
"names": [],
|
|
124
145
|
"idHints": [],
|
|
@@ -128,7 +149,7 @@
|
|
|
128
149
|
],
|
|
129
150
|
"files": [],
|
|
130
151
|
"auxiliaryFiles": [],
|
|
131
|
-
"hash": "
|
|
152
|
+
"hash": "a1eec16d5bcf58b3",
|
|
132
153
|
"childrenByOrder": {}
|
|
133
154
|
},
|
|
134
155
|
{
|
|
@@ -331,11 +352,11 @@
|
|
|
331
352
|
"initial": true,
|
|
332
353
|
"entry": true,
|
|
333
354
|
"recorded": false,
|
|
334
|
-
"size":
|
|
355
|
+
"size": 21926,
|
|
335
356
|
"sizes": {
|
|
336
357
|
"javascript": 42,
|
|
337
358
|
"share-init": 378,
|
|
338
|
-
"runtime":
|
|
359
|
+
"runtime": 21506
|
|
339
360
|
},
|
|
340
361
|
"names": [
|
|
341
362
|
"@cc-openmrs/cc-esm-active-prescriptions"
|
|
@@ -350,7 +371,7 @@
|
|
|
350
371
|
"auxiliaryFiles": [
|
|
351
372
|
"openmrs-esm-patient-lists-app.js.map"
|
|
352
373
|
],
|
|
353
|
-
"hash": "
|
|
374
|
+
"hash": "14286b25a71e2ca8",
|
|
354
375
|
"childrenByOrder": {}
|
|
355
376
|
},
|
|
356
377
|
{
|
|
@@ -497,7 +518,7 @@
|
|
|
497
518
|
"auxiliaryFiles": [
|
|
498
519
|
"499.js.map"
|
|
499
520
|
],
|
|
500
|
-
"hash": "
|
|
521
|
+
"hash": "4fe7be1da86a9b48",
|
|
501
522
|
"childrenByOrder": {}
|
|
502
523
|
},
|
|
503
524
|
{
|
|
@@ -645,54 +666,54 @@
|
|
|
645
666
|
},
|
|
646
667
|
{
|
|
647
668
|
"rendered": true,
|
|
648
|
-
"initial":
|
|
649
|
-
"entry":
|
|
669
|
+
"initial": false,
|
|
670
|
+
"entry": false,
|
|
650
671
|
"recorded": false,
|
|
651
|
-
"size":
|
|
672
|
+
"size": 88622,
|
|
652
673
|
"sizes": {
|
|
653
|
-
"
|
|
654
|
-
"javascript": 4534,
|
|
655
|
-
"share-init": 378,
|
|
656
|
-
"runtime": 21863
|
|
674
|
+
"javascript": 88622
|
|
657
675
|
},
|
|
658
|
-
"names": [
|
|
659
|
-
"main"
|
|
660
|
-
],
|
|
676
|
+
"names": [],
|
|
661
677
|
"idHints": [],
|
|
662
678
|
"runtime": [
|
|
679
|
+
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
663
680
|
"main"
|
|
664
681
|
],
|
|
665
682
|
"files": [
|
|
666
|
-
"
|
|
683
|
+
"695.js"
|
|
667
684
|
],
|
|
668
685
|
"auxiliaryFiles": [
|
|
669
|
-
"
|
|
686
|
+
"695.js.map"
|
|
670
687
|
],
|
|
671
|
-
"hash": "
|
|
688
|
+
"hash": "cb545e6fdd7b9656",
|
|
672
689
|
"childrenByOrder": {}
|
|
673
690
|
},
|
|
674
691
|
{
|
|
675
692
|
"rendered": true,
|
|
676
|
-
"initial":
|
|
677
|
-
"entry":
|
|
693
|
+
"initial": true,
|
|
694
|
+
"entry": true,
|
|
678
695
|
"recorded": false,
|
|
679
|
-
"size":
|
|
696
|
+
"size": 26974,
|
|
680
697
|
"sizes": {
|
|
681
|
-
"
|
|
698
|
+
"consume-shared": 126,
|
|
699
|
+
"javascript": 4534,
|
|
700
|
+
"share-init": 378,
|
|
701
|
+
"runtime": 21936
|
|
682
702
|
},
|
|
683
|
-
"names": [
|
|
703
|
+
"names": [
|
|
704
|
+
"main"
|
|
705
|
+
],
|
|
684
706
|
"idHints": [],
|
|
685
707
|
"runtime": [
|
|
686
|
-
"@cc-openmrs/cc-esm-active-prescriptions",
|
|
687
708
|
"main"
|
|
688
709
|
],
|
|
689
710
|
"files": [
|
|
690
|
-
"
|
|
711
|
+
"main.js"
|
|
691
712
|
],
|
|
692
713
|
"auxiliaryFiles": [
|
|
693
|
-
"
|
|
714
|
+
"main.js.map"
|
|
694
715
|
],
|
|
695
|
-
"hash": "
|
|
716
|
+
"hash": "4158abbef6751d97",
|
|
696
717
|
"childrenByOrder": {}
|
|
697
718
|
},
|
|
698
719
|
{
|
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"}],"workspaces2":[{"name":"active-prescriptions-workspace","component":"root","window":"active-prescriptions-workspace"}],"workspaceWindows2":[{"name":"active-prescriptions-workspace","group":"patient-chart","icon":"prescriptionsActionButton","width":"wider","order":4}],"version":"1.0.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"}],"workspaces2":[{"name":"active-prescriptions-workspace","component":"root","window":"active-prescriptions-workspace"}],"workspaceWindows2":[{"name":"active-prescriptions-workspace","group":"patient-chart","icon":"prescriptionsActionButton","width":"wider","order":4}],"version":"1.0.72"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cc-openmrs/cc-esm-active-prescriptions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.72",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "An OpenMRS frontend module for managing patient lists in the Patient Chart",
|
|
6
6
|
"browser": "dist/openmrs-esm-patient-lists-app.js",
|