@openmrs/esm-appointments-app 4.4.1-pre.1582 → 4.4.1-pre.1589

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.
@@ -16,7 +16,7 @@ built modules 6.1 MiB (javascript) 168 bytes (share-init) 168 bytes (consume-sha
16
16
  modules by path ../../node_modules/ 4.46 MiB 91 modules
17
17
  modules by path ./ 1.64 MiB
18
18
  modules by path ./src/ 1.63 MiB 43 modules
19
- modules by path ./translations/ 10.2 KiB 4 modules
19
+ modules by path ./translations/ 10.7 KiB 4 modules
20
20
  provide-module modules 168 bytes
21
21
  provide shared module (default) @openmrs/esm-framework@4.2.1-pre.619 = ../../node_modules/@openmrs/esm-framework/src/internal.ts 42 bytes [built] [code generated]
22
22
  + 3 modules
@@ -34,4 +34,4 @@ Assets:
34
34
  729.js (490 KiB)
35
35
  781.js (310 KiB)
36
36
 
37
- webpack 5.74.0 compiled with 1 warning in 146768 ms
37
+ webpack 5.74.0 compiled with 1 warning in 146324 ms
package/dist/204.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[204],{9690:(n,e,t)=>{t.d(e,{Z:()=>p});var a=t(1799),i=t.n(a),o=t(2609),s=t.n(o)()(i());s.push([n.id,".-esm-appointments__cancel-appointment__formContainer___IoQzV{margin:1rem}.-esm-appointments__cancel-appointment__inputContainer___S1KFs{margin:1rem}.-esm-appointments__cancel-appointment__buttonContainer___pWg-h{display:flex}.-esm-appointments__cancel-appointment__buttonContainer___pWg-h>button{width:50%;height:4rem;display:flex;align-items:flex-start}","",{version:3,sources:["webpack://./src/appointments/forms/cancel-form/cancel-appointment.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAEA,8DACE,WC4BW,CDzBb,+DACE,WCwBW,CDrBb,gEACE,YAAA,CACA,uEACE,SAAA,CACA,WC0CS,CDzCT,YAAA,CACA,sBAAA",sourcesContent:["@use '@carbon/styles/scss/spacing';\n\n.formContainer {\n margin: spacing.$spacing-05;\n}\n\n.inputContainer {\n margin: spacing.$spacing-05;\n}\n\n.buttonContainer {\n display: flex;\n & > button {\n width: 50%;\n height: spacing.$spacing-10;\n display: flex;\n align-items: flex-start;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2021\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"],sourceRoot:""}]),s.locals={formContainer:"-esm-appointments__cancel-appointment__formContainer___IoQzV",inputContainer:"-esm-appointments__cancel-appointment__inputContainer___S1KFs",buttonContainer:"-esm-appointments__cancel-appointment__buttonContainer___pWg-h"};const p=s},4175:(n,e,t)=>{t.d(e,{Z:()=>p});var a=t(1799),i=t.n(a),o=t(2609),s=t.n(o)()(i());s.push([n.id,':root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-appointments__appointments-list__productiveHeading01___9gnI8{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)}.-esm-appointments__appointments-list__productiveHeading02___zHOR0{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0)}.-esm-appointments__appointments-list__productiveHeading03___UnBqq{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)}.-esm-appointments__appointments-list__productiveHeading04___oJRwc{font-size:var(--cds-heading-04-font-size, 1.75rem);font-weight:var(--cds-heading-04-font-weight, 400);line-height:var(--cds-heading-04-line-height, 1.28572);letter-spacing:var(--cds-heading-04-letter-spacing, 0)}.-esm-appointments__appointments-list__bodyLong01___uIyPf{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)}.-esm-appointments__appointments-list__bodyShort01___BLSvx{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)}.-esm-appointments__appointments-list__bodyShort02___zD6wN{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-appointments__appointments-list__text02___zfykk{color:#525252}.-esm-appointments__appointments-list__label01___PFskg{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)}.-esm-appointments__appointments-list__modal___zddJ8{position:fixed;width:100vw;height:100vh;display:grid;background-color:rgba(0,0,0,.5);z-index:9000;justify-items:center;align-items:center}.-esm-appointments__appointments-list__container___KvHsq,.-esm-appointments__appointments-list__loadingContainer___CHpBG{background-color:#fff;border:1px solid #e0e0e0;width:100%;margin:0 auto;max-width:95vw;margin-top:3rem;margin-bottom:6rem}.-esm-appointments__appointments-list__loadingContainer___CHpBG{border:none}.-esm-appointments__appointments-list__headerContainer___iHNwz{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0 .75rem 1rem;background-color:#fff}.-esm-appointments__appointments-list__backgroundDataFetchingIndicator___ZLGEv{align-items:center;display:flex;flex:1 1 0%;justify-content:center}.-esm-appointments__appointments-list__tableContainer___h1NTI section{position:relative}.-esm-appointments__appointments-list__hiddenRow___IAUcY{display:none}.-esm-appointments__appointments-list__addButtonContainer___TAfuF{margin:-1rem}.-esm-appointments__appointments-list__tableContainer___h1NTI a{text-decoration:none}.-esm-appointments__appointments-list__tableContainer___h1NTI th{color:#525252}.-esm-appointments__appointments-list__tableContainer___h1NTI .cds--data-table{background-color:#e0e0e0}.-esm-appointments__appointments-list__tableContainer___h1NTI .cds--table-column-menu button{position:static}.-esm-appointments__appointments-list__tableContainer___h1NTI .-esm-appointments__appointments-list__tableToolbar___2t0kg{min-height:0;top:-22px}.-esm-appointments__appointments-list__tableContainer___h1NTI .-esm-appointments__appointments-list__tableToolbarContent___NyjO3{height:2rem;margin-bottom:.25rem}.-esm-appointments__appointments-list__tableToolbar___2t0kg{min-height:0;top:-22px}.-esm-appointments__appointments-list__startTime___8nKY-{font-weight:700;margin-right:.5rem}.-esm-appointments__appointments-list__nameContainer___7oVWe{display:flex}.-esm-appointments__appointments-list__serviceContainer___vYoJS{display:flex;align-items:center;width:max-content}.-esm-appointments__appointments-list__identifier___tN0S0{font-weight:700}.-esm-appointments__appointments-list__actionButton___TPTkl{position:static;padding:.5rem 1rem .5rem 0}.-esm-appointments__appointments-list__serviceColor___KtVcR{border-radius:50%;margin-right:.5rem;width:1rem;height:1rem;background-color:#24a148}.-esm-appointments__appointments-list__pagination___y6dE-{overflow:hidden}.-esm-appointments__appointments-list__pagination___y6dE-.cds--pagination{border-top:none}.-esm-appointments__appointments-list__hiddenRow___IAUcY{display:none}.-esm-appointments__appointments-list__emptyRow___5KTEp{padding:0 1rem;display:flex;align-items:center}.-esm-appointments__appointments-list__expandedAppointmentsRow___75mOy>td>div{max-height:max-content}.-esm-appointments__appointments-list__expandedAppointmentsRow___75mOy td{padding:0 2rem}.-esm-appointments__appointments-list__expandedAppointmentsRow___75mOy th[colspan] td[colspan]>div:first-child{padding:0 1rem}.-esm-appointments__appointments-list__completeIcon___7R9H7,.-esm-appointments__appointments-list__missedIcon___UnJve,.-esm-appointments__appointments-list__cancelIcon___IPVMF{width:8rem;padding:.5rem 1rem .5rem 0;display:flex;align-items:center;height:3rem}.-esm-appointments__appointments-list__completeIcon___7R9H7 svg,.-esm-appointments__appointments-list__missedIcon___UnJve svg,.-esm-appointments__appointments-list__cancelIcon___IPVMF svg{margin-left:.5rem}.-esm-appointments__appointments-list__completeIcon___7R9H7{color:#24a148}.-esm-appointments__appointments-list__completeIcon___7R9H7 svg{fill:#24a148}.-esm-appointments__appointments-list__missedIcon___UnJve{color:#fa4d56}.-esm-appointments__appointments-list__missedIcon___UnJve svg{fill:#fa4d56}.-esm-appointments__appointments-list__tabletHeading___WFTNK h4{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);color:#525252}.-esm-appointments__appointments-list__desktopHeading___4xAl-,.-esm-appointments__appointments-list__tabletHeading___WFTNK{display:flex;justify-content:space-between;text-align:left;text-transform:capitalize;margin-bottom:1rem}.-esm-appointments__appointments-list__desktopHeading___4xAl- h4,.-esm-appointments__appointments-list__tabletHeading___WFTNK h4{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252}.-esm-appointments__appointments-list__desktopHeading___4xAl- h4:after,.-esm-appointments__appointments-list__tabletHeading___WFTNK h4:after{content:"";display:block;width:2rem;padding-top:3px;border-bottom:.375rem solid;border-bottom-color:#007d79;border-bottom-color:var(--brand-03)}.-esm-appointments__appointments-list__tileContainer___PcgfF{background-color:#fff;border-top:1px solid #e0e0e0;padding:5rem 0}.-esm-appointments__appointments-list__tile___B2Rt7{text-align:center}.-esm-appointments__appointments-list__tileContent___M-ys\\+{display:flex;flex-direction:column;align-items:center}.-esm-appointments__appointments-list__content___pZJXd{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);color:#525252;margin-top:1rem;margin-bottom:.5rem}.-esm-appointments__appointments-list__helper___1RozW{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);color:#525252}.-esm-appointments__appointments-list__separator___P-zg3{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0);color:#525252;width:80%;margin:1.5rem auto;overflow:hidden;text-align:center}.-esm-appointments__appointments-list__separator___P-zg3::before,.-esm-appointments__appointments-list__separator___P-zg3::after{background-color:#a8a8a8;content:"";display:inline-block;height:1px;position:relative;vertical-align:middle;width:50%}.-esm-appointments__appointments-list__separator___P-zg3::before{right:.5rem;margin-left:-50%}.-esm-appointments__appointments-list__separator___P-zg3::after{left:.5rem;margin-right:-50%}.-esm-appointments__appointments-list__menuItemLink___khu5\\+{text-decoration:none}.-esm-appointments__appointments-list__seeAllLink___nqcPQ{position:relative;left:22rem;top:-8.5rem;min-height:2rem;padding:.5rem}.-esm-appointments__appointments-list__filterLabelContainer___F4O5T{display:flex}.-esm-appointments__appointments-list__filterLabel___OMlPU{background-color:#fff;padding:.02rem 1rem;border-radius:1rem;margin-right:.5rem}.-esm-appointments__appointments-list__filterLabel___OMlPU :hover{background-color:#fff}',"",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/home-appointments/appointments-list.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,mECs0BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDl0BJ,mECk0BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CD9zBJ,mEC8zBI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,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oEACE,YAAA,CAGF,2DACE,qBHjRM,CGkRN,mBAAA,CACA,kBCrPW,CDsPX,kBChQW,CDiQX,kEACE,qBHtRI",sourcesContent:["$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}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@import '~@openmrs/esm-styleguide/src/vars';\n\n.productiveHeading01 {\n @include type.type-style('heading-compact-01');\n}\n\n.productiveHeading02 {\n @include type.type-style('heading-compact-02');\n}\n\n.productiveHeading03 {\n @include type.type-style('heading-03');\n}\n\n.productiveHeading04 {\n @include type.type-style('heading-04');\n}\n\n.bodyLong01 {\n @include type.type-style('body-01');\n}\n\n.bodyShort01 {\n @include type.type-style('body-compact-01');\n}\n\n.bodyShort02 {\n @include type.type-style('body-compact-02');\n}\n\n.text02 {\n color: $text-02;\n}\n\n.label01 {\n @include type.type-style('label-01');\n}\n\n.modal {\n position: fixed;\n width: 100vw;\n height: 100vh;\n display: grid;\n background-color: rgba(0, 0, 0, 0.5);\n z-index: 9000;\n justify-items: center;\n align-items: center;\n}\n","//\n// Copyright IBM Corp. 2018, 2018\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/// @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: carbon--type-scale(2),\n font-weight: carbon--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 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);\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","@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n@import '../root.scss';\n\n.container {\n background-color: $ui-background;\n border: 1px solid $ui-03;\n width: 100%;\n margin: 0 auto;\n max-width: 95vw;\n margin-top: spacing.$spacing-09;\n margin-bottom: spacing.$spacing-12;\n}\n\n.loadingContainer {\n @extend .container;\n border: none;\n}\n\n.headerContainer {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: spacing.$spacing-04 0 spacing.$spacing-04 spacing.$spacing-05;\n background-color: $ui-background;\n}\n\n.backgroundDataFetchingIndicator {\n align-items: center;\n display: flex;\n flex: 1 1 0%;\n justify-content: center;\n}\n\n.tableContainer section {\n position: relative;\n}\n\n.hiddenRow {\n display: none;\n}\n\n.addButtonContainer {\n margin: -(spacing.$spacing-05);\n}\n\n.tableContainer {\n a {\n text-decoration: none;\n }\n\n th {\n color: $text-02;\n }\n\n :global(.cds--data-table) {\n background-color: $ui-03;\n }\n\n :global(.cds--table-column-menu) {\n button {\n position: static;\n }\n }\n .tableToolbar {\n min-height: 0;\n top: -22px;\n }\n .tableToolbarContent {\n height: spacing.$spacing-07;\n margin-bottom: spacing.$spacing-02;\n }\n}\n\n.tableToolbar {\n min-height: 0;\n top: -22px;\n}\n\n.startTime {\n font-weight: 700;\n margin-right: spacing.$spacing-03;\n}\n\n.nameContainer {\n display: flex;\n}\n\n.serviceContainer {\n display: flex;\n align-items: center;\n width: max-content;\n}\n\n.identifier {\n font-weight: 700;\n}\n\n.actionButton {\n position: static;\n padding: spacing.$spacing-03 spacing.$spacing-05 spacing.$spacing-03 0;\n}\n\n.serviceColor {\n border-radius: 50%;\n margin-right: spacing.$spacing-03;\n width: spacing.$spacing-05;\n height: spacing.$spacing-05;\n background-color: $support-02;\n}\n\n.pagination {\n overflow: hidden;\n\n &:global(.cds--pagination) {\n border-top: none;\n }\n}\n\n.hiddenRow {\n display: none;\n}\n\n.emptyRow {\n padding: 0 spacing.$spacing-05;\n display: flex;\n align-items: center;\n}\n\n.expandedAppointmentsRow > td > div {\n max-height: max-content;\n}\n\n.expandedAppointmentsRow td {\n padding: 0 spacing.$spacing-07;\n}\n\n.expandedAppointmentsRow th[colspan] td[colspan] > div:first-child {\n padding: 0 spacing.$spacing-05;\n}\n\n.completeIcon,\n.missedIcon,\n.cancelIcon {\n width: 8rem;\n padding: spacing.$spacing-03 spacing.$spacing-05 spacing.$spacing-03 0;\n display: flex;\n align-items: center;\n height: spacing.$spacing-09;\n\n svg {\n margin-left: spacing.$spacing-03;\n }\n}\n\n.completeIcon {\n color: $support-02;\n svg {\n fill: $support-02;\n }\n}\n\n.missedIcon {\n color: $carbon--red-50;\n svg {\n fill: $carbon--red-50;\n }\n}\n\n.tabletHeading {\n h4 {\n @include type.type-style('heading-03');\n color: $text-02;\n }\n}\n\n.desktopHeading,\n.tabletHeading {\n display: flex;\n justify-content: space-between;\n text-align: left;\n text-transform: capitalize;\n margin-bottom: spacing.$spacing-05;\n\n h4 {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n\n &:after {\n content: '';\n display: block;\n width: 2rem;\n padding-top: 3px;\n border-bottom: 0.375rem solid;\n @include brand-03(border-bottom-color);\n }\n }\n}\n\n.tileContainer {\n background-color: $ui-02;\n border-top: 1px solid $ui-03;\n padding: spacing.$spacing-11 0;\n}\n\n.tile {\n text-align: center;\n}\n\n.tileContent {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.content {\n @include type.type-style('heading-compact-01');\n color: $text-02;\n margin-top: spacing.$spacing-05;\n margin-bottom: spacing.$spacing-03;\n}\n\n.helper {\n @include type.type-style('body-compact-01');\n color: $text-02;\n}\n\n.separator {\n @include type.type-style('body-compact-02');\n color: $text-02;\n width: 80%;\n margin: spacing.$spacing-06 auto;\n overflow: hidden;\n text-align: center;\n\n &::before,\n &::after {\n background-color: $text-03;\n content: '';\n display: inline-block;\n height: 1px;\n position: relative;\n vertical-align: middle;\n width: 50%;\n }\n\n &::before {\n right: spacing.$spacing-03;\n margin-left: -50%;\n }\n\n &::after {\n left: spacing.$spacing-03;\n margin-right: -50%;\n }\n}\n\n.menuItemLink {\n text-decoration: none;\n}\n\n.seeAllLink {\n position: relative;\n left: 22rem;\n top: -8.5rem;\n min-height: spacing.$spacing-07;\n padding: spacing.$spacing-03;\n}\n\n.filterLabelContainer {\n display: flex;\n}\n\n.filterLabel {\n background-color: $ui-02;\n padding: 0.02rem spacing.$spacing-05;\n border-radius: spacing.$spacing-05;\n margin-right: spacing.$spacing-03;\n :hover {\n background-color: $ui-02;\n }\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2021\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"],sourceRoot:""}]),s.locals={productiveHeading01:"-esm-appointments__appointments-list__productiveHeading01___9gnI8",productiveHeading02:"-esm-appointments__appointments-list__productiveHeading02___zHOR0",productiveHeading03:"-esm-appointments__appointments-list__productiveHeading03___UnBqq",productiveHeading04:"-esm-appointments__appointments-list__productiveHeading04___oJRwc",bodyLong01:"-esm-appointments__appointments-list__bodyLong01___uIyPf",bodyShort01:"-esm-appointments__appointments-list__bodyShort01___BLSvx",bodyShort02:"-esm-appointments__appointments-list__bodyShort02___zD6wN",text02:"-esm-appointments__appointments-list__text02___zfykk",label01:"-esm-appointments__appointments-list__label01___PFskg",modal:"-esm-appointments__appointments-list__modal___zddJ8",container:"-esm-appointments__appointments-list__container___KvHsq",loadingContainer:"-esm-appointments__appointments-list__loadingContainer___CHpBG",headerContainer:"-esm-appointments__appointments-list__headerContainer___iHNwz",backgroundDataFetchingIndicator:"-esm-appointments__appointments-list__backgroundDataFetchingIndicator___ZLGEv",tableContainer:"-esm-appointments__appointments-list__tableContainer___h1NTI",hiddenRow:"-esm-appointments__appointments-list__hiddenRow___IAUcY",addButtonContainer:"-esm-appointments__appointments-list__addButtonContainer___TAfuF",tableToolbar:"-esm-appointments__appointments-list__tableToolbar___2t0kg",tableToolbarContent:"-esm-appointments__appointments-list__tableToolbarContent___NyjO3",startTime:"-esm-appointments__appointments-list__startTime___8nKY-",nameContainer:"-esm-appointments__appointments-list__nameContainer___7oVWe",serviceContainer:"-esm-appointments__appointments-list__serviceContainer___vYoJS",identifier:"-esm-appointments__appointments-list__identifier___tN0S0",actionButton:"-esm-appointments__appointments-list__actionButton___TPTkl",serviceColor:"-esm-appointments__appointments-list__serviceColor___KtVcR",pagination:"-esm-appointments__appointments-list__pagination___y6dE-",emptyRow:"-esm-appointments__appointments-list__emptyRow___5KTEp",expandedAppointmentsRow:"-esm-appointments__appointments-list__expandedAppointmentsRow___75mOy",completeIcon:"-esm-appointments__appointments-list__completeIcon___7R9H7",missedIcon:"-esm-appointments__appointments-list__missedIcon___UnJve",cancelIcon:"-esm-appointments__appointments-list__cancelIcon___IPVMF",tabletHeading:"-esm-appointments__appointments-list__tabletHeading___WFTNK",desktopHeading:"-esm-appointments__appointments-list__desktopHeading___4xAl-",tileContainer:"-esm-appointments__appointments-list__tileContainer___PcgfF",tile:"-esm-appointments__appointments-list__tile___B2Rt7",tileContent:"-esm-appointments__appointments-list__tileContent___M-ys+",content:"-esm-appointments__appointments-list__content___pZJXd",helper:"-esm-appointments__appointments-list__helper___1RozW",separator:"-esm-appointments__appointments-list__separator___P-zg3",menuItemLink:"-esm-appointments__appointments-list__menuItemLink___khu5+",seeAllLink:"-esm-appointments__appointments-list__seeAllLink___nqcPQ",filterLabelContainer:"-esm-appointments__appointments-list__filterLabelContainer___F4O5T",filterLabel:"-esm-appointments__appointments-list__filterLabel___OMlPU"};const p=s},4690:(n,e,t)=>{t.d(e,{E0:()=>A,LW:()=>h,WN:()=>g});var a=t(268),i=t(3255),o=t(8879),s=t.n(o),p=t(4924),r=t(906),l=t(1027),c=t(8179);function m(n,e,t,a,i,o,s){try{var p=n[o](s),r=p.value}catch(n){return void t(n)}p.done?e(r):Promise.resolve(r).then(a,i)}function d(n){return function(){var e=this,t=arguments;return new Promise((function(a,i){var o=n.apply(e,t);function s(n){m(o,a,i,s,p,"next",n)}function p(n){m(o,a,i,s,p,"throw",n)}s(void 0)}))}}var u=function(n,e){var t,a,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function p(o){return function(p){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(n,s)}catch(n){o=[6,n],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,p])}}};function g(){var n=(0,p.useTranslation)().t,e=(0,l.zF)(),t="/ws/rest/v1/appointment/all?forDate=".concat(e),o=(0,i.ZP)(e?t:null,r.openmrsFetch),s=o.data,c=o.error,m=o.isLoading,d=o.isValidating,u=o.mutate,g=(0,a.useMemo)((function(){var e,t;return{appointments:null!==(t=null==s||null===(e=s.data)||void 0===e?void 0:e.map((function(e){return(0,l.df)(e,n)})))&&void 0!==t?t:[],isLoading:m,isError:c,isValidating:d,mutate:u}}),[null==s?void 0:s.data,c,m,d,u,n]);return g}var f,h=(f=d((function(n,e){var t,a,i,o;return u(this,(function(p){switch(p.label){case 0:return t=new AbortController,a=Intl.DateTimeFormat().resolvedOptions().timeZone,i=s()(new Date).format(c.J$),o="/ws/rest/v1/appointments/".concat(e,"/status-change"),[4,(0,r.openmrsFetch)(o,{body:{toStatus:n,onDate:i,timeZone:a},method:"POST",headers:{"Content-Type":"application/json"},signal:t.signal})];case 1:return[2,p.sent()]}}))})),function(n,e){return f.apply(this,arguments)}),A=function(){var n=d((function(n){var e,t;return u(this,(function(a){switch(a.label){case 0:return e=new AbortController,t="/ws/rest/v1/appointment/undoStatusChange/".concat(n),[4,(0,r.openmrsFetch)(t,{method:"POST",headers:{"Content-Type":"application/json"},signal:e.signal})];case 1:return[2,a.sent()]}}))}));return function(e){return n.apply(this,arguments)}}()},2649:(n,e,t)=>{t.d(e,{NL:()=>c,O4:()=>l,bO:()=>d,tf:()=>m});var a=t(906),i=t(4690);function o(n,e,t,a,i,o,s){try{var p=n[o](s),r=p.value}catch(n){return void t(n)}p.done?e(r):Promise.resolve(r).then(a,i)}function s(n){return function(){var e=this,t=arguments;return new Promise((function(a,i){var s=n.apply(e,t);function p(n){o(s,a,i,p,r,"next",n)}function r(n){o(s,a,i,p,r,"throw",n)}p(void 0)}))}}var p,r=function(n,e){var t,a,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function p(o){return function(p){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(n,s)}catch(n){o=[6,n],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,p])}}},l=function(n){var e=(0,a.showModal)("check-in-appointment-modal",{closeCheckInModal:function(){return e()},appointmentUuid:n})},c=(p=s((function(n,e){return r(this,(function(t){switch(t.label){case 0:return new AbortController,[4,(0,i.E0)(n)];case 1:return 200===t.sent().status?e("/ws/rest/v1/appointment/appointment/all"):(0,a.showNotification)({title:"Error Undoing",kind:"error",critical:!0,description:"Error reverting status"}),[2]}}))})),function(n,e){return p.apply(this,arguments)}),m=function(){var n=s((function(n,e,t,o,s,p,l,m){return r(this,(function(r){switch(r.label){case 0:return new AbortController,[4,(0,i.LW)(n,e)];case 1:return 200===r.sent().status?((0,a.showActionableNotification)({critical:!0,kind:"success",subtitle:t,title:s,actionButtonLabel:m("undo","Undo"),progressActionLabel:m("revertingAppointmentStatus","Reverting appointment status"),onActionButtonClick:function(){return c(e,l)}}),l("/ws/rest/v1/appointment/appointment/all")):(0,a.showNotification)({title:p,kind:"error",critical:!0,description:o}),[2]}}))}));return function(e,t,a,i,o,s,p,r){return n.apply(this,arguments)}}(),d=function(n,e,t){var a=t("appointmentMarkedAsCompleted","It has been successfully marked as Completed"),i=t("appointmentCompleted","Appointment Completed"),o=t("appointmentCompleted","Appointment Completed"),s=t("appointmentCompletedError","Error marking appointment as Completed");return m("Completed",n,a,o,i,s,e,t)}},7204:(n,e,t)=>{t.r(e),t.d(e,{default:()=>en});var a=t(268),i=t.n(a),o=t(3255),s=t(4924),p=t(5745),r=t(2074),l=t(6039),c=t(906),m=t(2905),d=t(1723),u=t(6062),g=t.n(u),f=t(4036),h=t.n(f),A=t(6793),_=t.n(A),y=t(7892),b=t.n(y),C=t(1173),v=t.n(C),$=t(2464),k=t.n($),w=t(4175),x={};x.styleTagTransform=k(),x.setAttributes=b(),x.insert=_().bind(null,"head"),x.domAPI=h(),x.insertStyleElement=v(),g()(w.Z,x);const E=w.Z&&w.Z.locals?w.Z.locals:void 0;var z=t(8179),D=t(2649),B=t(4546),I=t(9690),N={};N.styleTagTransform=k(),N.setAttributes=b(),N.insert=_().bind(null,"head"),N.domAPI=h(),N.insertStyleElement=v(),g()(I.Z,N);const M=I.Z&&I.Z.locals?I.Z.locals:void 0;var T=t(1027);function F(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=n[t];return a}function H(n,e,t,a,i,o,s){try{var p=n[o](s),r=p.value}catch(n){return void t(n)}p.done?e(r):Promise.resolve(r).then(a,i)}function S(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var a,i,o=[],s=!0,p=!1;try{for(t=t.call(n);!(s=(a=t.next()).done)&&(o.push(a.value),!e||o.length!==e);s=!0);}catch(n){p=!0,i=n}finally{try{s||null==t.return||t.return()}finally{if(p)throw i}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return F(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?F(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const L=function(n){var e=n.appointment,t=(0,s.useTranslation)().t,r=(0,o.kY)().mutate,l=(0,c.usePatient)(e.patientUuid).patient,m=(0,c.useSession)(),u=S((0,a.useState)(e.location),2),g=u[0],f=u[1],h=S((0,a.useState)(""),2),A=h[0],_=h[1],y=(0,T.zF)(),b=S((0,a.useState)(!1),2),C=b[0],v=b[1];(0,a.useEffect)((function(){var n,e;g&&(null==m||null===(n=m.sessionLocation)||void 0===n?void 0:n.uuid)&&f(null==m||null===(e=m.sessionLocation)||void 0===e?void 0:e.uuid)}),[g,m]);var $,k,w=($=function(){return function(n,e){var t,a,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:p(0),throw:p(1),return:p(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function p(o){return function(p){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(n,s)}catch(n){o=[6,n],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,p])}}}(this,(function(n){switch(n.label){case 0:return v(!0),[4,(0,B.v1)("Cancelled",e.id)];case 1:return 200===n.sent().status?((0,c.showToast)({critical:!0,kind:"success",description:t("appointmentNowVisible","It has been cancelled successfully"),title:t("appointmentCancelled","Appointment cancelled")}),r("/ws/rest/v1/appointment/appointmentStatus?forDate=".concat(y,"&status=Scheduled")),r("/ws/rest/v1/appointment/appointmentStatus?forDate=".concat(y,"&status=Cancelled")),(0,d.Km)()):((0,c.showNotification)({title:t("appointmentCancelError","Error cancelling appointment"),kind:"error",critical:!0,description:t("errorMessage","Error cancelling the appointment")}),v(!1)),[2]}}))},k=function(){var n=this,e=arguments;return new Promise((function(t,a){var i=$.apply(n,e);function o(n){H(i,t,a,o,s,"next",n)}function s(n){H(i,t,a,o,s,"throw",n)}o(void 0)}))},function(){return k.apply(this,arguments)});return i().createElement("div",{className:M.formContainer},l&&i().createElement(c.ExtensionSlot,{extensionSlotName:"patient-header-slot",state:{patient:l,patientUuid:e.patientUuid}}),i().createElement(p.Kx8,{id:"reason",light:!0,value:A,className:M.inputContainer,labelText:t("reasonForChanges","Reason For Changes"),onChange:function(n){return _(n.target.value)}}),i().createElement("div",{className:M.buttonContainer},i().createElement(p.zxk,{onClick:function(){return(0,d.Km)()},kind:"secondary"},t("discard","Discard")),i().createElement(p.zxk,{onClick:w,disabled:C,kind:"primary",type:"submit"},t("cancelAppointment","Cancel Appointment"))))};var G=t(9596),P=function(n){var e=n.appointment,t=n.useBahmniUI,a=(0,s.useTranslation)().t,r=(0,o.kY)().mutate,l=(0,c.useConfig)().bahmniAppointmentsUiBaseUrl,u=e.status,g="Completed"===u||"Missed"===u||"Cancelled"===u,f="Scheduled"===u||"Requested"===u,h=function(){return t?i().createElement(p.laM,{className:E.menuItemLink,id:"#editAppointment",target:"_blank",href:"".concat(l,"/#/home/manage/appointments/calendar/").concat(e.id,"?isRecurring=").concat(e.recurring),itemText:a("editAppointment","Edit Appointment")},a("editAppointment","Edit Appointment")):i().createElement(p.laM,{className:E.menuItem,id:"#editAppointment",onClick:function(){(0,c.navigate)({to:"".concat(z.JB)}),(0,d.I8)(a("editAppointment","Edit Appointment"),i().createElement(G.Z,{appointment:e,context:"editing"}))},itemText:a("editAppointment","Edit Appointment")},a("editAppointment","Edit Appointment"))},A=function(){return t?i().createElement(p.laM,{className:E.menuItemLink,id:"#createAppointment",target:"_blank",href:"".concat(l,"/#/home/manage/appointments/calendar/new"),itemText:a("addNewAppointment","Add new appointment")},a("addNewAppointment","Add new appointment")):i().createElement(p.laM,{className:E.menuItem,id:"#createAppointment",onClick:function(){(0,c.navigate)({to:"".concat(z.JB)}),(0,d.I8)(a("search","Search"),i().createElement(m.Z,null))},itemText:a("addNewAppointment","Add new appointment")},a("addNewAppointment","Add new appointment"))};return i().createElement(p.mh4,null,i().createElement(p.PQB,{ariaLabel:"Edit appointment",selectorPrimaryFocus:"#editPatientDetails",size:"sm",flipped:!0},i().createElement(h,null),i().createElement(p.laM,{className:E.menuItem,disabled:"CheckedIn"===u||g,id:"#checkInAppointment",onClick:function(){return(0,D.O4)(e.id)},itemText:a("checkIn","Check In")},a("checkIn","Check In")),i().createElement(p.laM,{className:E.menuItem,id:"#completeAppointment",disabled:f||g,onClick:function(){return(0,D.bO)(e.id,r,a)},itemText:a("complete","Complete")},a("complete","Complete")),i().createElement(p.laM,{className:E.menuItem,disabled:g,id:"#missedAppointment",onClick:function(){var n=a("appointmentMarkedAsMissed","It has been successfully marked as Missed"),t=a("appointmentMissed","Appointment Missed"),i=a("appointmentMissed","Appointment Missed"),o=a("appointmentMissedError","Error marking appointment as Missed");return(0,D.tf)("Missed",e.id,n,i,t,o,r,a)},itemText:a("missed","Missed")},a("missed","Missed")),i().createElement(p.laM,{className:E.menuItem,id:"#cancelAppointment",disabled:g,onClick:function(){(0,c.navigate)({to:"".concat(z.JB)}),(0,d.I8)(a("cancelAppointment","Cancel Appointment"),i().createElement(L,{appointment:e}))},itemText:a("cancel","Cancel")},a("cancel","Cancel")),i().createElement(A,null)))},O=function(n){var e=n.width,t=void 0===e?"64":e,a=n.height,o=void 0===a?"64":a;return i().createElement("svg",{width:t,height:o,viewBox:"0 0 64 64"},i().createElement("title",null,"Empty data illustration"),i().createElement("g",{fill:"none",fillRule:"evenodd"},i().createElement("path",{d:"M38.133 13.186H21.947c-.768.001-1.39.623-1.39 1.391V50.55l-.186.057-3.97 1.216a.743.743 0 01-.927-.493L3.664 12.751a.742.742 0 01.492-.926l6.118-1.874 17.738-5.43 6.119-1.873a.741.741 0 01.926.492L38.076 13l.057.186z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.664 13L38.026 1.117A1.576 1.576 0 0036.056.07l-8.601 2.633-17.737 5.43-8.603 2.634a1.578 1.578 0 00-1.046 1.97l12.436 40.616a1.58 1.58 0 001.969 1.046l5.897-1.805.185-.057v-.194l-.185.057-5.952 1.822a1.393 1.393 0 01-1.737-.923L.247 12.682a1.39 1.39 0 01.923-1.738L9.772 8.31 27.51 2.881 36.112.247a1.393 1.393 0 011.737.923L41.47 13l.057.186h.193l-.057-.185z",fill:"#8D8D8D"}),i().createElement("path",{d:"M11.378 11.855a.836.836 0 01-.798-.59L9.385 7.361a.835.835 0 01.554-1.042l16.318-4.996a.836.836 0 011.042.554l1.195 3.902a.836.836 0 01-.554 1.043l-16.318 4.995a.831.831 0 01-.244.037z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:17.636,cy:2.314,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:17.636,cy:2.314,r:1.175}),i().createElement("path",{d:"M55.893 53.995H24.544a.79.79 0 01-.788-.789V15.644a.79.79 0 01.788-.788h31.349a.79.79 0 01.788.788v37.562a.79.79 0 01-.788.789z",fill:"#F4F4F4"}),i().createElement("path",{d:"M41.47 13H21.948a1.579 1.579 0 00-1.576 1.577V52.4l.185-.057V14.577c.001-.768.623-1.39 1.391-1.39h19.581L41.471 13zm17.02 0H21.947a1.579 1.579 0 00-1.576 1.577v42.478c0 .87.706 1.576 1.576 1.577H58.49a1.579 1.579 0 001.576-1.577V14.577a1.579 1.579 0 00-1.576-1.576zm1.39 44.055c0 .768-.622 1.39-1.39 1.392H21.947c-.768-.001-1.39-.624-1.39-1.392V14.577c0-.768.622-1.39 1.39-1.39H58.49c.768 0 1.39.622 1.39 1.39v42.478z",fill:"#8D8D8D"}),i().createElement("path",{d:"M48.751 17.082H31.686a.836.836 0 01-.835-.835v-4.081c0-.46.374-.834.835-.835H48.75c.461 0 .834.374.835.835v4.08c0 .462-.374.835-.835.836z",fill:"#C6C6C6"}),i().createElement("circle",{fill:"#C6C6C6",cx:40.218,cy:9.755,r:1.855}),i().createElement("circle",{fill:"#FFF",fillRule:"nonzero",cx:40.218,cy:9.755,r:1.13})))},R=t(6759),W=t(9884);function U(){return U=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},U.apply(this,arguments)}var J=function(){var n=(0,c.useConfig)(),e=n.useBahmniAppointmentsUI,t=n.bahmniAppointmentsUiBaseUrl,a=(0,s.useTranslation)().t;return e?i().createElement(p.zxk,{kind:"ghost",className:E.seeAllLink,size:"md",target:"_blank",href:"".concat(t,"/#/home/manage/appointments/list")},a("seeAllAppointments","See all appointments")):i().createElement(p.zxk,{kind:"ghost",className:E.seeAllLink,onClick:function(){return(0,c.navigate)({to:"".concat(z.JB)})}},a("seeAllAppointments","See all appointments"))},q=function(){var n=(0,c.useConfig)(),e=n.useBahmniAppointmentsUI,t=n.bahmniAppointmentsUiBaseUrl,a=(0,s.useTranslation)().t;return i().createElement("div",{className:E.addButtonContainer},e?i().createElement(p.zxk,{target:"_blank",kind:"ghost",href:"".concat(t,"/#/home/manage/appointments/calendar/new"),renderIcon:function(n){return i().createElement(R.mm,U({size:16},n,{className:"cds--btn__icon"}))}},a("add","Add")):i().createElement(p.zxk,{kind:"ghost",renderIcon:function(n){return i().createElement(R.mm,U({size:16},n))},onClick:function(){(0,c.navigate)({to:"".concat(z.JB,"/appointments")}),(0,d.I8)(a("search","Search"),i().createElement(m.Z,null))}},a("add","Add")))},j=function(){var n=(0,c.useConfig)(),e=n.useBahmniAppointmentsUI,t=n.bahmniAppointmentsUiBaseUrl,a=(0,s.useTranslation)().t;return e?i().createElement(p.zxk,{kind:"ghost",size:"md",target:"_blank",className:"cds--btn cds--btn--ghost",href:"".concat(t,"/#/home/manage/appointments/calendar"),renderIcon:function(n){return i().createElement(W.f,U({size:16},n,{className:"cds--btn__icon"}))}},a("viewCalendar","View Calendar")):i().createElement(p.zxk,{className:E.calendarButton,kind:"ghost",onClick:function(){return(0,c.navigate)({to:"".concat(z.JB,"/calendar")})},renderIcon:function(n){return i().createElement(W.f,U({size:16},n))},"data-floating-menu-primary-focus":!0,iconDescription:a("viewCalendar","View Calendar")},a("viewCalendar","View Calendar"))},Y=t(4690);function V(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,a=new Array(e);t<e;t++)a[t]=n[t];return a}function Z(){return Z=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(n[a]=t[a])}return n},Z.apply(this,arguments)}var K=function(n){var e=n.color;return i().createElement("div",{className:E.serviceColor,style:{backgroundColor:"".concat(e)}})},X=function(n){var e=n.status,t=n.t,a=n.appointmentUuid,o=n.mutate;switch(e){case"Completed":return i().createElement("div",{className:E.completeIcon},t("completed","Completed"),i().createElement(r.Wz,{size:16}));case"Missed":return i().createElement("div",{className:E.missedIcon},t("missed","Missed"),i().createElement(l.Wf,{size:16}));case"Cancelled":return i().createElement("div",{className:E.cancelIcon},t("cancelled","Cancelled"),i().createElement(r.eL,{size:16}));case"CheckedIn":return i().createElement(p.zxk,{kind:"ghost",className:E.actionButton,onClick:function(){return(0,D.bO)(a,o,t)}},t("complete","Complete"));default:return i().createElement(p.zxk,{kind:"ghost",className:E.actionButton,disabled:"CheckedIn"===e,onClick:function(){return(0,D.O4)(a)}},t("checkIn","Check In"))}};const Q=function(){var n,e,t=(0,c.useLayoutType)(),r=(0,c.useSession)().user,l=(0,s.useTranslation)().t,m=(0,o.kY)().mutate,d=(0,c.useConfig)(),u=d.useBahmniAppointmentsUI,g=d.useFullViewPrivilege,f=d.fullViewPrivilege,h=(0,Y.WN)(),A=h.appointments,_=h.isLoading,y=(h.isValidating,(0,c.userHasAccess)(f,r)||!g),b=y?A:A.filter((function(n){return"Scheduled"===n.status})),C=[10,20,30,40,50],v=(n=(0,a.useState)(10),e=2,function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var a,i,o=[],s=!0,p=!1;try{for(t=t.call(n);!(s=(a=t.next()).done)&&(o.push(a.value),!e||o.length!==e);s=!0);}catch(n){p=!0,i=n}finally{try{s||null==t.return||t.return()}finally{if(p)throw i}}return o}}(n,e)||function(n,e){if(n){if("string"==typeof n)return V(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?V(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),$=v[0],k=v[1],w=(0,c.usePagination)(b,$),x=w.goTo,z=w.results,D=w.currentPage,B=(0,a.useMemo)((function(){return[{id:0,header:l("dateTime","Date and time"),key:"dateTime"},{id:1,header:l("name","Patient Name"),key:"name"},{id:2,header:l("identifier","Identifier"),key:"identifier"},{id:3,header:l("location","Location"),key:"location"},{id:4,header:l("service","Service"),key:"service"},{id:5,header:l("actions","Actions"),key:"actionButton"}]}),[l]),I=null==z?void 0:z.map((function(n){return{id:n.id,dateTime:{content:i().createElement("span",{className:E.statusContainer},i().createElement("span",{className:E.startTime},n.dateTime),n.duration)},name:{content:i().createElement("div",{className:E.nameContainer},i().createElement(c.ConfigurableLink,{to:"${openmrsSpaBase}/patient/".concat(n.patientUuid,"/chart")},n.name))},identifier:{content:i().createElement("div",{className:E.nameContainer},i().createElement("span",{className:E.identifier},n.identifier))},location:{content:i().createElement("span",{className:E.statusContainer},n.location)},service:{content:i().createElement("span",{className:E.serviceContainer},i().createElement(K,{color:n.serviceColor}),n.serviceType)},actionButton:{content:i().createElement("span",{className:E.serviceContainer},i().createElement(X,{status:n.status,appointmentUuid:n.id,t:l,mutate:m}))}}}));return _?i().createElement("div",{className:E.loadingContainer},i().createElement(p.gqd,{role:"progressbar"})):0===(null==A?void 0:A.length)?i().createElement(p.mh4,{className:E.container},i().createElement(p.n9L,{className:E.tile},i().createElement("div",{className:(0,c.isDesktop)(t)?E.desktopHeading:E.tabletHeading},i().createElement("h4",null,l("todaysAppointments","Today's Appointments")),i().createElement(q,null)),i().createElement(O,null),i().createElement("p",{className:E.content},l("noAppointmentsScheduledForTodayToDisplay","There are no appointments scheduled for today to display for this location"),"."))):i().createElement(i().Fragment,null,i().createElement("div",{className:E.container},i().createElement("div",{className:E.headerContainer},i().createElement("div",{className:(0,c.isDesktop)(t)?E.desktopHeading:E.tabletHeading},i().createElement("h4",null,l("todaysAppointments","Today's Appointments"))),i().createElement("div",{className:E.actionLinks},i().createElement(j,null),i().createElement(q,null))),i().createElement(p.wQF,{"data-floating-menu-container":!0,headers:B,overflowMenuOnHover:(0,c.isDesktop)(t),rows:I,size:(0,c.isDesktop)(t)?"xs":"md",useZebraStyles:!0},(function(n){var e=n.rows,t=n.headers,a=n.getHeaderProps,o=n.getTableProps,s=n.getRowProps;return i().createElement(p.xJi,{className:E.tableContainer},i().createElement(p.iA_,Z({},o(),{className:E.appointmentsTable}),i().createElement(p.ssF,null,i().createElement(p.SCH,null,t.map((function(n){return i().createElement(p.xDH,Z({},a({header:n}),{key:n.id}),n.header)})))),i().createElement(p.RMI,null,e.map((function(n,e){var t;return i().createElement(i().Fragment,{key:n.id},i().createElement(p.SCH,Z({},s({row:n})),n.cells.map((function(n){var e;return i().createElement(p.pj1,{key:n.id},null!==(t=null===(e=n.value)||void 0===e?void 0:e.content)&&void 0!==t?t:n.value)})),y&&i().createElement(p.pj1,{className:"cds--table-column-menu"},i().createElement(P,{appointment:null==b?void 0:b[e],useBahmniUI:u}))))})))),0===e.length?i().createElement("div",{className:E.tileContainer},i().createElement(p.mh4,null,i().createElement(p.n9L,{className:E.tile},i().createElement("div",{className:E.tileContent},i().createElement("p",{className:E.content},l("noAppointmentsToDisplay","No appointments to display")),i().createElement("p",{className:E.helper},l("checkFilters","Check the filters above"))),i().createElement("p",{className:E.separator},l("or","or")),i().createElement(q,null)))):null,i().createElement(p.tlE,{forwardText:"Next page",backwardText:"Previous page",page:D,pageSize:$,pageSizes:C,totalItems:b.length,className:E.pagination,onChange:function(n){var e=n.pageSize,t=n.page;e!==$&&k(e),t!==D&&x(t)}}))}))),i().createElement(J,null))};var nn={errorRetryCount:3};const en=function(){return i().createElement(o.J$,{value:nn},i().createElement(Q,null))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"204.js","mappings":"2MAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,sWAAuW,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,yEAAyE,8EAA8E,MAAQ,GAAG,SAAW,uGAAuG,eAAiB,CAAC,4TAA4T,25DAA25D,WAAa,MAEr7FH,EAAwBI,OAAS,CAChC,cAAiB,+DACjB,eAAkB,gEAClB,gBAAmB,kEAEpB,S,mECTIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,khTAAuhT,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,4BAA4B,gEAAgE,2DAA2D,8EAA8E,MAAQ,GAAG,SAAW,82EAA82E,eAAiB,CAAC,ypDAAypD,i5BAAi5B,s5tBAAs5tB,4yJ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5G,MAAAA,CAAIC,UAAWC,EAAAA,eACd,kBAACkC,EAAAA,IAAKA,KACJ,kBAACyE,EAAAA,IAAIA,CAAC5G,UAAWC,EAAAA,MACf,kBAACF,MAAAA,CAAIC,UAAWC,EAAAA,aACd,kBAAC8G,IAAAA,CAAE/G,UAAWC,EAAAA,SAAiB5F,EAAE,0BAA2B,+BAC5D,kBAAC0M,IAAAA,CAAE/G,UAAWC,EAAAA,QAAgB5F,EAAE,eAAgB,6BAElD,kBAAC0M,IAAAA,CAAE/G,UAAWC,EAAAA,WAAmB5F,EAAE,KAAM,OACzC,kBAACqJ,EAAkBA,SAIvB,KACJ,kBAAC0E,EAAAA,IAAUA,CACTC,YAAY,YACZC,aAAa,gBACbC,KAAM/C,EACNgD,SAAUpD,EACVD,UAAWA,EACXsD,WAAYxD,EAAqB0B,OACjC3G,UAAWC,EAAAA,WACXQ,SAAU,Y,IAAG+H,EAAAA,EAAAA,SAAUD,EAAAA,EAAAA,KACjBC,IAAapD,GACfC,EAAYmD,GAEVD,IAAS/C,GACXD,EAAKgD,EAET,I,KAMV,kBAAC/E,EAAsBA,MAG7B,EC/SA,IAAMkF,GAAmB,CACvBC,gBAAiB,GAWnB,SARyB,WACvB,OACE,kBAACC,EAAAA,GAASA,CAACrI,MAAOmI,IAChB,kBAACG,EAAqBA,MAG5B,C","sources":["webpack://@openmrs/esm-appointments-app/./src/appointments/forms/cancel-form/cancel-appointment.scss","webpack://@openmrs/esm-appointments-app/./src/home-appointments/appointments-list.scss","webpack://@openmrs/esm-appointments-app/./src/home-appointments/appointments-table.resource.ts","webpack://@openmrs/esm-appointments-app/./src/home-appointments/common.ts","webpack://@openmrs/esm-appointments-app/./src/home-appointments/appointments-list.scss?ecd3","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/cancel-form/cancel-appointment.scss?5155","webpack://@openmrs/esm-appointments-app/./src/appointments/forms/cancel-form/cancel-appointment.component.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/appointment-actions.component.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/empty-data-illustration.component.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/links.component.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/appointments-list.component.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/index.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","useTodaysAppointments","useTranslation","t","startDate","useAppointmentDate","apiUrl","useSWR","openmrsFetch","data","error","isLoading","isValidating","mutate","results","useMemo","appointments","map","appointment","mapAppointmentProperties","isError","updateAppointmentStatus","toStatus","appointmentUuid","abortController","timeZone","statusChangeTime","url","AbortController","Intl","DateTimeFormat","resolvedOptions","dayjs","Date","format","omrsDateFormat","body","onDate","method","headers","signal","undoAppointmentStatus","launchCheckInAppointmentModal","dispose","showModal","closeCheckInModal","handleUndoAction","status","showNotification","title","kind","critical","description","handleUpdateStatus","successDescription","errorDescription","successTitle","errorTitle","showActionableNotification","subtitle","actionButtonLabel","progressActionLabel","onActionButtonClick","handleComplete","appointmentId","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useSWRConfig","usePatient","patientUuid","patient","session","useSession","useState","location","selectedLocation","setSelectedLocation","reason","setReason","isSubmitting","setIsSubmitting","useEffect","sessionLocation","uuid","handleSubmit","cancelAppointment","showToast","closeOverlay","div","className","styles","ExtensionSlot","extensionSlotName","state","TextArea","light","value","labelText","onChange","event","target","Button","onClick","disabled","type","ActionsMenu","useBahmniUI","useConfig","bahmniAppointmentsUiBaseUrl","disableActions","isScheduled","EditOverflowItem","OverflowMenuItem","href","recurring","itemText","navigate","to","spaBasePath","launchOverlay","AppointmentForm","context","AddOverflowItem","PatientSearch","Layer","OverflowMenu","ariaLabel","selectorPrimaryFocus","size","flipped","CancelAppointment","EmptyDataIllustration","width","height","svg","viewBox","g","fill","fillRule","path","d","circle","cx","cy","r","SeeAllAppointmentsLink","useBahmniAppointmentsUI","AddAppointmentLink","renderIcon","props","Add","ViewCalendarLink","Calendar","data-floating-menu-primary-focus","iconDescription","ServiceColor","color","style","backgroundColor","RenderStatus","CheckmarkOutline","SubtractAlt","CloseOutline","layout","useLayoutType","user","useFullViewPrivilege","fullViewPrivilege","fullView","userHasAccess","filteredAppointments","filter","pageSizes","currentPageSize","setPageSize","usePagination","goTo","currentPage","tableHeaders","header","key","tableRows","paginatedAppointments","dateTime","content","span","duration","name","ConfigurableLink","identifier","service","serviceColor","serviceType","actionButton","DataTableSkeleton","role","length","Tile","isDesktop","h4","p","DataTable","data-floating-menu-container","overflowMenuOnHover","rows","useZebraStyles","getHeaderProps","getTableProps","getRowProps","TableContainer","Table","TableHead","TableRow","TableHeader","TableBody","row","index","cell","React","cells","TableCell","Pagination","forwardText","backwardText","page","pageSize","totalItems","swrConfiguration","errorRetryCount","SWRConfig","AppointmentsBaseTable"],"sourceRoot":""}
package/dist/437.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[437],{8179:(e,t,n)=>{"use strict";n.d(t,{J$:()=>o,JB:()=>i,sb:()=>a}),window.getOpenmrsSpaBase;var a="/appointments",i="".concat(window.spaBase,"/home"),o="YYYY-MM-DDTHH:mm:ss.SSSZZ"},4437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>_,importTranslation:()=>h,setupOpenMRS:()=>v,version:()=>y});var a=n(906),i=n(8179),o={concepts:{visitQueueNumberAttributeUuid:{_type:a.Type.String,_description:"The UUID of the visit attribute that contains the visit queue number.",_default:"c61ce16f-272a-41e7-9924-4c555d0932c5"}},appointmentTypes:{_type:a.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},appointmentStatuses:{_type:a.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},daysOfTheWeek:{_type:a.Type.Array,_description:"Configurable days of the week",_default:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},useBahmniAppointmentsUI:{_type:a.Type.Boolean,_description:"Open links in Bahmni Appointments UI instead of O3 UI",_default:!1},useFullViewPrivilege:{_type:a.Type.Boolean,_description:"If set to 'false', will always display the full view, disregarding any privilege",_default:!1},fullViewPrivilege:{_type:a.Type.String,_description:"Name of the privilege to display the full view of the Appointments dashboard widget.",_default:"Today's Appointments Widget: Display Full View"},bahmniAppointmentsUiBaseUrl:{_type:a.Type.String,_description:"Configurable base URL that points to the Bahmni Appointments UI",_default:"/appointments"},appointmentsBaseUrl:{_type:a.Type.String,_description:"Configurable alternative URL for the Appointments UI. Eg, the Bahmni Appointments UI URL",_default:"".concat(i.JB)},hiddenFormFields:{_type:a.Type.Array,_description:"Array of form controls to be hidden on form load",_default:[]},showServiceQueueFields:{_type:a.Type.Boolean,_description:"Whether start visit form should display service queue fields`",_default:!1},defaultFacilityUrl:{_type:a.Type.String,_default:"/ws/rest/v1/kenyaemr/default-facility",_description:"Custom URL to load default facility if it is not in the session"}},r=n(268),s=n.n(r),l=n(8744);function p(e){var t=e.dashboardLinkConfig,n=t.name,i=t.title,o=(0,l.useLocation)(),p="".concat(window.spaBase,"/home"),d=(0,r.useMemo)((function(){var e=o.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)}),[o.pathname]);return s().createElement(a.ConfigurableLink,{to:"".concat(p,"/").concat(n),className:"cds--side-nav__link ".concat(d.match(n)&&"active-left-nav-link")},i)}var d=function(e){return function(){return s().createElement(l.BrowserRouter,null,s().createElement(p,{dashboardLinkConfig:e}))}},c=n(9884),u={name:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments"},m={name:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments Calendar",renderIcon:c.f};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y="4.4.1-pre.1582",h=n(3979),_={"webservices.rest":"^2.2.0"},b="@openmrs/esm-appointments-app",g={featureName:"appointments",moduleName:b};function v(){var e="".concat(window.spaBase,"/home/appointments");return(0,a.defineConfigSchema)(b,o),(0,a.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t,n,a=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);r=!0);}catch(e){s=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t,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.")}()),i=(a[0],a[1]);return"Patient Lists / ".concat(decodeURI(i))},parent:"".concat(window.spaBase)}]),{extensions:[{name:"home-appointments",slot:"homepage-widgets-slot",order:1,load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(456),n.e(924),n.e(905),n.e(990)]).then(n.bind(n,6990))}),g)},{name:"clinical-appointments-dashboard-link",slot:"homepage-dashboard-slot",load:(0,a.getSyncLifecycle)(d(u),g),meta:u,online:!0,offline:!0},{name:"appointments-calendar-dashboard-link",slot:"calendar-dashboard-slot",load:(0,a.getSyncLifecycle)(d(m),g),online:!0,offline:!0},{name:"clinical-appointments-dashboard",slot:"clinical-appointments-dashboard-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(456),n.e(781),n.e(924),n.e(905),n.e(75)]).then(n.bind(n,7075))}),g),online:!0,offline:!0},{name:"todays-appointments-dashboard",slot:"todays-appointment-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(456),n.e(924),n.e(905),n.e(990)]).then(n.bind(n,6990))}),g),online:!0,offline:!0},{name:"check-in-appointment-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(924),n.e(384)]).then(n.bind(n,384))}),g),online:!0,offline:!1}]}}},3979:(e,t,n)=>{var a={"./en.json":[3574,574],"./es.json":[8319,319],"./km.json":[7807,807]};function i(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[437],{8179:(e,t,n)=>{"use strict";n.d(t,{J$:()=>o,JB:()=>i,sb:()=>a}),window.getOpenmrsSpaBase;var a="/appointments",i="".concat(window.spaBase,"/home"),o="YYYY-MM-DDTHH:mm:ss.SSSZZ"},4437:(e,t,n)=>{"use strict";n.r(t),n.d(t,{backendDependencies:()=>_,importTranslation:()=>h,setupOpenMRS:()=>v,version:()=>y});var a=n(906),i=n(8179),o={concepts:{visitQueueNumberAttributeUuid:{_type:a.Type.String,_description:"The UUID of the visit attribute that contains the visit queue number.",_default:"c61ce16f-272a-41e7-9924-4c555d0932c5"}},appointmentTypes:{_type:a.Type.Array,_description:"Configurable appointment types (types of appointments)",_default:["Scheduled"]},appointmentStatuses:{_type:a.Type.Array,_description:"Configurable appointment status (status of appointments)",_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"]},daysOfTheWeek:{_type:a.Type.Array,_description:"Configurable days of the week",_default:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},useBahmniAppointmentsUI:{_type:a.Type.Boolean,_description:"Open links in Bahmni Appointments UI instead of O3 UI",_default:!1},useFullViewPrivilege:{_type:a.Type.Boolean,_description:"If set to 'false', will always display the full view, disregarding any privilege",_default:!1},fullViewPrivilege:{_type:a.Type.String,_description:"Name of the privilege to display the full view of the Appointments dashboard widget.",_default:"Today's Appointments Widget: Display Full View"},bahmniAppointmentsUiBaseUrl:{_type:a.Type.String,_description:"Configurable base URL that points to the Bahmni Appointments UI",_default:"/appointments"},appointmentsBaseUrl:{_type:a.Type.String,_description:"Configurable alternative URL for the Appointments UI. Eg, the Bahmni Appointments UI URL",_default:"".concat(i.JB)},hiddenFormFields:{_type:a.Type.Array,_description:"Array of form controls to be hidden on form load",_default:[]},showServiceQueueFields:{_type:a.Type.Boolean,_description:"Whether start visit form should display service queue fields`",_default:!1},defaultFacilityUrl:{_type:a.Type.String,_default:"/ws/rest/v1/kenyaemr/default-facility",_description:"Custom URL to load default facility if it is not in the session"}},r=n(268),s=n.n(r),l=n(8744);function p(e){var t=e.dashboardLinkConfig,n=t.name,i=t.title,o=(0,l.useLocation)(),p="".concat(window.spaBase,"/home"),d=(0,r.useMemo)((function(){var e=o.pathname.split("/home"),t=e[e.length-1];return decodeURIComponent(t)}),[o.pathname]);return s().createElement(a.ConfigurableLink,{to:"".concat(p,"/").concat(n),className:"cds--side-nav__link ".concat(d.match(n)&&"active-left-nav-link")},i)}var d=function(e){return function(){return s().createElement(l.BrowserRouter,null,s().createElement(p,{dashboardLinkConfig:e}))}},c=n(9884),u={name:"appointments",slot:"clinical-appointments-dashboard-slot",title:"Appointments"},m={name:"calendar",slot:"clinical-appointments-dashboard-slot",title:"Appointments Calendar",renderIcon:c.f};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y="4.4.1-pre.1589",h=n(3979),_={"webservices.rest":"^2.2.0"},b="@openmrs/esm-appointments-app",g={featureName:"appointments",moduleName:b};function v(){var e="".concat(window.spaBase,"/home/appointments");return(0,a.defineConfigSchema)(b,o),(0,a.registerBreadcrumbs)([{title:"Appointments",path:e,parent:"".concat(window.spaBase,"/home")},{path:"".concat(window.spaBase,"/patient-list/:forDate/:serviceName"),title:function(e){var t,n,a=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,i,o=[],r=!0,s=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(o.push(a.value),!t||o.length!==t);r=!0);}catch(e){s=!0,i=e}finally{try{r||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,n)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t,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.")}()),i=(a[0],a[1]);return"Patient Lists / ".concat(decodeURI(i))},parent:"".concat(window.spaBase)}]),{extensions:[{name:"home-appointments",slot:"homepage-widgets-slot",order:1,load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(456),n.e(924),n.e(905),n.e(204)]).then(n.bind(n,7204))}),g)},{name:"clinical-appointments-dashboard-link",slot:"homepage-dashboard-slot",load:(0,a.getSyncLifecycle)(d(u),g),meta:u,online:!0,offline:!0},{name:"appointments-calendar-dashboard-link",slot:"calendar-dashboard-slot",load:(0,a.getSyncLifecycle)(d(m),g),online:!0,offline:!0},{name:"clinical-appointments-dashboard",slot:"clinical-appointments-dashboard-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(456),n.e(781),n.e(924),n.e(905),n.e(75)]).then(n.bind(n,7075))}),g),online:!0,offline:!0},{name:"todays-appointments-dashboard",slot:"todays-appointment-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(456),n.e(924),n.e(905),n.e(204)]).then(n.bind(n,7204))}),g),online:!0,offline:!0},{name:"check-in-appointment-modal",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([n.e(729),n.e(924),n.e(903)]).then(n.bind(n,6903))}),g),online:!0,offline:!1}]}}},3979:(e,t,n)=>{var a={"./en.json":[3574,574],"./es.json":[8319,319],"./km.json":[7807,807]};function i(e){if(!n.o(a,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=a[e],i=t[0];return n.e(t[1]).then((()=>n(i)))}i.keys=()=>Object.keys(a),i.id=3979,e.exports=i}}]);
package/dist/437.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"437.js","mappings":"6LAAuBA,OAAO,kBAAvB,IACMC,EAAW,gBACXC,EAAc,GAAkB,OAAfF,OAAOG,QAAQ,SAChCC,EAAiB,2B,wJCAjBC,EAAe,CAC1BC,SAAU,CACRC,8BAA+B,CAC7BC,MAAOC,EAAAA,KAAAA,OACPC,aAAc,wEACdC,SAAU,yCAGdC,iBAAkB,CAChBJ,MAAOC,EAAAA,KAAAA,MACPC,aAAc,yDACdC,SAAU,CAAC,cAEbE,oBAAqB,CACnBL,MAAOC,EAAAA,KAAAA,MACPC,aAAc,2DACdC,SAAU,CAAC,YAAa,YAAa,YAAa,YAAa,YAAa,WAE9EG,cAAe,CACbN,MAAOC,EAAAA,KAAAA,MACPC,aAAc,gCACdC,SAAU,CAAC,SAAU,SAAU,UAAW,YAAa,WAAY,SAAU,aAE/EI,wBAAyB,CACvBP,MAAOC,EAAAA,KAAAA,QACPC,aAAc,wDACdC,UAAU,GAGZK,qBAAsB,CACpBR,MAAOC,EAAAA,KAAAA,QACPC,aAAc,mFACdC,UAAU,GAGZM,kBAAmB,CACjBT,MAAOC,EAAAA,KAAAA,OACPC,aAAc,uFACdC,SAAU,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,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,IAE7B,CACAX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,C","sources":["webpack://@openmrs/esm-appointments-app/./src/constants.ts","webpack://@openmrs/esm-appointments-app/./src/config-schema.ts","webpack://@openmrs/esm-appointments-app/./src/createDashboardLink.tsx","webpack://@openmrs/esm-appointments-app/./src/dashboard.meta.ts","webpack://@openmrs/esm-appointments-app/./src/index.ts","webpack://@openmrs/esm-appointments-app/./translations/ lazy nonrecursive .json$"],"names":["window","basePath","spaBasePath","spaBase","omrsDateFormat","configSchema","concepts","visitQueueNumberAttributeUuid","_type","Type","_description","_default","appointmentTypes","appointmentStatuses","daysOfTheWeek","useBahmniAppointmentsUI","useFullViewPrivilege","fullViewPrivilege","bahmniAppointmentsUiBaseUrl","appointmentsBaseUrl","hiddenFormFields","showServiceQueueFields","defaultFacilityUrl","DashboardExtension","dashboardLinkConfig","name","title","location","useLocation","navLink","useMemo","pathArray","pathname","split","lastElement","length","decodeURIComponent","ConfigurableLink","to","className","match","createDashboardLink","BrowserRouter","dashboardMeta","slot","appointmentCalendarDashboardMeta","renderIcon","Calendar","version","__VERSION__","importTranslation","require","backendDependencies","moduleName","options","featureName","setupOpenMRS","appointmentsBasePath","defineConfigSchema","registerBreadcrumbs","path","parent","serviceName","date","decodeURI","extensions","order","load","getAsyncLifecycle","getSyncLifecycle","meta","online","offline","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","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,MAAO,EACPC,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,gF,GAA+Bd,IAE/D,CACE7B,KAAM,uCACNmB,KAAM,0BACNuB,MAAME,EAAAA,EAAAA,kBAAiB5B,EAAoBE,GAAgBW,GAC3DgB,KAAM3B,EACN4B,QAAQ,EACRC,SAAS,GAEX,CACE/C,KAAM,uCACNmB,KAAM,0BACNuB,MAAME,EAAAA,EAAAA,kBAAiB5B,EAAoBI,GAAmCS,GAC9EiB,QAAQ,EACRC,SAAS,GAEX,CACE/C,KAAM,kCACNmB,KAAM,uCACNuB,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,wF,GAAoCd,GAClEiB,QAAQ,EACRC,SAAS,GAEX,CACE/C,KAAM,gCACNmB,KAAM,0BACNuB,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,gF,GAAgCd,GAC9DiB,QAAQ,EACRC,SAAS,GAEX,CACE/C,KAAM,6BACN0C,MAAMC,EAAAA,EAAAA,oBAAkB,W,OAAM,8D,GAAuEd,GACrGiB,QAAQ,EACRC,SAAS,IAIjB,C,iBCrFA,IAAIC,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,CAAC,IAIT,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,IAE7B,CACAX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,C","sources":["webpack://@openmrs/esm-appointments-app/./src/constants.ts","webpack://@openmrs/esm-appointments-app/./src/config-schema.ts","webpack://@openmrs/esm-appointments-app/./src/createDashboardLink.tsx","webpack://@openmrs/esm-appointments-app/./src/dashboard.meta.ts","webpack://@openmrs/esm-appointments-app/./src/index.ts","webpack://@openmrs/esm-appointments-app/./translations/ lazy nonrecursive .json$"],"names":["window","basePath","spaBasePath","spaBase","omrsDateFormat","configSchema","concepts","visitQueueNumberAttributeUuid","_type","Type","_description","_default","appointmentTypes","appointmentStatuses","daysOfTheWeek","useBahmniAppointmentsUI","useFullViewPrivilege","fullViewPrivilege","bahmniAppointmentsUiBaseUrl","appointmentsBaseUrl","hiddenFormFields","showServiceQueueFields","defaultFacilityUrl","DashboardExtension","dashboardLinkConfig","name","title","location","useLocation","navLink","useMemo","pathArray","pathname","split","lastElement","length","decodeURIComponent","ConfigurableLink","to","className","match","createDashboardLink","BrowserRouter","dashboardMeta","slot","appointmentCalendarDashboardMeta","renderIcon","Calendar","version","__VERSION__","importTranslation","require","backendDependencies","moduleName","options","featureName","setupOpenMRS","appointmentsBasePath","defineConfigSchema","registerBreadcrumbs","path","parent","serviceName","date","decodeURI","extensions","order","load","getAsyncLifecycle","getSyncLifecycle","meta","online","offline","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports"],"sourceRoot":""}
package/dist/574.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","addNewAppointment":"Add new appointment","addNewClinicDay":"Add new clinic day","addPatientToQueue":"Add patient to queue","age":"Age","all":"All","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentColor":"Appointment color","appointmentDateAndTime":"Appointments Date and Time","appointmentForm":"Appointments Form","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedAsMissed":"It has been successfully marked as Missed","appointmentMetrics":"Appointment metrics","appointmentMetricsLoadError":"","appointmentMissed":"Appointment Missed","appointmentMissedError":"Error marking appointment as Missed","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","appointmentsCalendar":"Appointments Calendar","appointmentScheduled":"Appointment scheduled","appointmentService":"Appointment service","appointmentServiceCreate":"Appointment service created successfully","appointmentServiceName":"Appointment service name","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelled":"Cancelled","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkOut":"Check out","chooseProvider":"Select Provider","chooseService":"Select service","comment":"Comment","community":"Community","complete":"Complete","completed":"Completed","count":"Count","createAppointment":"Create appointment","createAppointmentService":"Create appointment services","createNewAppointment":"Create new appointment","daily":"Daily","date":"Date","dateAndTimeOfVisit":"Date and time of visit","dateTime":"Date & time","discard":"Discard","dob":"Dob","download":"Download","durationMins":"Duration min","editAppointment":"Edit Appointment","editAppointments":"Edit Appointment","emptyStateText":"There are no {displayText} to display","encounters":"Encounters","encounterType":"Encounter type","endTime":"End Time","errorMessage":"Error canceling the appointment","facility":"Facility","filter":"Filter","gender":"Gender","getAppointmentReminder":"Would you like to get a reminder about this appointment?","highestServiceVolume":"High volume service: {time}","honored":"Honored","identifier":"Identifier","launchFormUpForm":"Follow up","list":"List","location":"Location","medications":"Medications","missed":"Missed","missingVisitType":"Missing visit type","monthly":"Monthly","name":"Name","next":"Next","noAppointmentsScheduledForTodayToDisplay":"There are no appointments scheduled for today to display for this location","noAppointmentsToDisplay":"There are no appointments to display for this location","noEncountersFound":"No encounters found","noMatchingVisitTypeFound":"","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","notes":"Notes","or":"or","patientDetails":"Patient Details","patientName":"Patient name","patients":"Patients","patientSearch":"Patient search","phoneNumber":"Phone number","prev":"Prev","provider":"Provider","providers":"Providers","providersAvailableToday":"Providers available: {time}","queueAddedSuccessfully":"","queueEntryError":"Error adding patient to the queue","reasonForChanges":"Reason For Changes","rescheduled":"Rescheduled","save":"Save","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","search":"Search","searchForAVisitType":"Search for a visit type","selectAppointmentLocation":"Select where the appointment will take place","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectFacility":"Select a facility","selectLocation":"Select a location","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","selectServiceType":"Select service type","selectVisitType":"Please select a Visit Type","service":"Service","serviceName":"Service name","serviceType":"Service Type","serviceWorkloadTitle":"","startTime":"Start Time","startVisitError":"Error starting visit","time":"Time","todaysAppointments":"Today\'s Appointments","total":"Total","typeInComments":"Type in appointment comment","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcomming":"Upcoming","view":"View","visitLocation":"Visit Location","visitStarted":"Visit started","visitType":"Visit Type","vitals":"Vitals","weekly":"Weekly"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[574],{3574:e=>{e.exports=JSON.parse('{"actions":"Actions","add":"Add","addNewAppointment":"Add new appointment","addNewClinicDay":"Add new clinic day","addPatientToQueue":"Add patient to queue","age":"Age","all":"All","appointmentCancelError":"Error cancelling appointment","appointmentCancelled":"Appointment Cancelled","appointmentCheckedIn":"Appointment Checked-in","appointmentCheckInError":"Error checking in appointment","appointmentColor":"Appointment color","appointmentDateAndTime":"Appointments Date and Time","appointmentForm":"Appointments Form","appointmentFormError":"Error scheduling appointment","appointmentHistory":"Appointment History","appointmentMarkedAsMissed":"It has been successfully marked as Missed","appointmentMetrics":"Appointment metrics","appointmentMetricsLoadError":"","appointmentMissed":"Appointment Missed","appointmentMissedError":"Error marking appointment as Missed","appointmentNotes":"Appointment Notes","appointmentNowVisible":"It is now visible on the Appointments page","appointments":"Appointments","appointmentsCalendar":"Appointments Calendar","appointmentScheduled":"Appointment scheduled","appointmentService":"Appointment service","appointmentServiceCreate":"Appointment service created successfully","appointmentServiceName":"Appointment service name","appointmentSuccessfullyCheckedIn":"It has been checked-in successfully","back":"Back","calendar":"Calendar","cameEarly":"Came Early","cancel":"Cancel","cancelAppointment":"Cancel Appointment","cancelled":"Cancelled","checkedOut":"Checked out","checkFilters":"Check the filters above","checkIn":"Check In","checkInAppointment":"Are you sure you want to mark appointment as Checked-in?","checkinTime":"Check-in time","checkOut":"Check out","chooseProvider":"Select Provider","chooseService":"Select service","comment":"Comment","community":"Community","complete":"Complete","completed":"Completed","count":"Count","createAppointment":"Create appointment","createAppointmentService":"Create appointment services","createNewAppointment":"Create new appointment","daily":"Daily","date":"Date","dateAndTimeOfVisit":"Date and time of visit","dateTime":"Date & time","discard":"Discard","dob":"Dob","download":"Download","durationMins":"Duration min","editAppointment":"Edit Appointment","editAppointments":"Edit Appointment","emptyStateText":"There are no {displayText} to display","encounters":"Encounters","encounterType":"Encounter type","endTime":"End Time","errorMessage":"Error canceling the appointment","facility":"Facility","filter":"Filter","gender":"Gender","getAppointmentReminder":"Would you like to get a reminder about this appointment?","highestServiceVolume":"High volume service: {time}","honored":"Honored","identifier":"Identifier","launchFormUpForm":"Follow up","list":"List","location":"Location","medications":"Medications","missed":"Missed","missingVisitType":"Missing visit type","monthly":"Monthly","name":"Name","next":"Next","no":"No","noAppointmentsScheduledForTodayToDisplay":"There are no appointments scheduled for today to display for this location","noAppointmentsToDisplay":"There are no appointments to display for this location","noEncountersFound":"No encounters found","noMatchingVisitTypeFound":"","noPreviousVisitFound":"No previous visit found","notArrived":"Not arrived","notes":"Notes","or":"or","patientDetails":"Patient Details","patientName":"Patient name","patients":"Patients","patientSearch":"Patient search","phoneNumber":"Phone number","prev":"Prev","provider":"Provider","providers":"Providers","providersAvailableToday":"Providers available: {time}","queueAddedSuccessfully":"","queueEntryError":"Error adding patient to the queue","reasonForChanges":"Reason For Changes","rescheduled":"Rescheduled","revertingAppointmentStatus":"Reverting appointment status","save":"Save","scheduled":"Scheduled","scheduledAppointments":"Scheduled appointments","search":"Search","searchForAVisitType":"Search for a visit type","seeAllAppointments":"See all appointments","selectAppointmentLocation":"Select where the appointment will take place","selectAppointmentStatus":"Select status","selectAppointmentType":"Select an appointment type","selectFacility":"Select a facility","selectLocation":"Select a location","selectOption":"Select an option","selectProvider":"Select a provider","selectService":"Select a service","selectServiceType":"Select service type","selectVisitType":"Please select a Visit Type","service":"Service","serviceName":"Service name","serviceType":"Service Type","serviceWorkloadTitle":"","startTime":"Start Time","startVisitError":"Error starting visit","time":"Time","todaysAppointments":"Today\'s Appointments","total":"Total","typeInComments":"Type in appointment comment","undo":"Undo","unscheduled":"Unscheduled","unscheduledAppointments":"Unscheduled appointments","unscheduledAppointments_lower":"unscheduled appointments","upcomming":"Upcoming","view":"View","viewCalendar":"View Calendar","visitLocation":"Visit Location","visitStarted":"Visit started","visitType":"Visit Type","vitals":"Vitals","weekly":"Weekly","yes":"Yes"}')}}]);
package/dist/903.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_appointments_app=globalThis.webpackChunk_openmrs_esm_appointments_app||[]).push([[903],{8711:(n,e,t)=>{t.d(e,{Z:()=>c});var r=t(1799),o=t.n(r),i=t(2609),a=t.n(i)()(o());a.push([n.id,".-esm-appointments__check-in-modal__checkInTime___tEcyB{display:flex;align-items:center}.-esm-appointments__check-in-modal__checkInLabel___QkB3q{margin-right:.5rem;font-weight:bold}","",{version:3,sources:["webpack://./src/home-appointments/check-in-modal/check-in-modal.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAGA,wDACE,YAAA,CACA,kBAAA,CAGF,yDACE,kBCYW,CDXX,gBAAA",sourcesContent:["@use '@carbon/styles/scss/spacing';\n@use '@carbon/styles/scss/type';\n\n.checkInTime {\n display: flex;\n align-items: center;\n}\n\n.checkInLabel {\n margin-right: spacing.$spacing-03;\n font-weight: bold;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2021\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"],sourceRoot:""}]),a.locals={checkInTime:"-esm-appointments__check-in-modal__checkInTime___tEcyB",checkInLabel:"-esm-appointments__check-in-modal__checkInLabel___QkB3q"};const c=a},5326:(n,e,t)=>{t.d(e,{Ey:()=>m,Gd:()=>y,IF:()=>h,Nz:()=>g,aN:()=>v,bf:()=>u,c1:()=>b,df:()=>d,g9:()=>l,vN:()=>s,xj:()=>f});var r=t(906),o=t(8879),i=t.n(o);function a(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function c(n){return function(n){if(Array.isArray(n))return a(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return a(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?a(n,e):void 0}}(n)||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.")}()}var u=function(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null==e?void 0:e.map((function(n){var e=n.countMap;return{serviceName:n.serviceName,count:e.reduce((function(n,e){return n+e.allAppointmentsCount}),0)}}));return t.find((function(e){return e.count===(n=Math).max.apply(n,c(t.map((function(n){return n.count}))))}))},l=function(n){return n.flatMap((function(n){return{serviceName:n.appointmentService.name,countMap:Object.entries(n.appointmentCountMap).flatMap((function(n){return n[1]}))}}))},s=function(n,e){return n.map((function(n){return Object.entries(n.appointmentCountMap).flatMap((function(n){return n[1][e]}))})).flat(1).reduce((function(n,e){return n+e}),0)};function p(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=e-n,r=Math.floor(t/6e4);return r+"min"}var d=function(n,e){var t,o,i,a,c,u,l,s,d,m,f,v,h,b,y,g,w;return{id:null==n?void 0:n.uuid,name:null===(t=n.patient)||void 0===t?void 0:t.name,age:null===(o=n.patient)||void 0===o?void 0:o.birthDate,gender:null===(i=n.patient)||void 0===i?void 0:i.gender,phoneNumber:null===(a=n.patient)||void 0===a?void 0:a.phoneNumber,dob:(0,r.formatDate)((0,r.parseDate)(null===(c=n.patient)||void 0===c?void 0:c.birthDate),{mode:"wide"}),patientUuid:null===(u=n.patient)||void 0===u?void 0:u.uuid,dateTime:(b=(0,r.parseDate)(n.startDateTime),y=b.getHours(),g=b.getMinutes(),w=y>=12?"PM":"AM",(y=(y%=12)||12)+":"+(g=g<10?"0"+g:g)+" "+w),serviceType:n.service?n.service.name:"--",serviceColor:(null===(l=n.service)||void 0===l?void 0:l.color)?n.service.color:"__",serviceUuid:n.service?n.service.uuid:null,appointmentKind:n.appointmentKind?n.appointmentKind:"--",status:n.status,provider:n.provider?null===(s=n.provider.person)||void 0===s?void 0:s.display:"--",location:n.location?n.location.name:"--",comments:n.comments?n.comments:"--",appointmentNumber:n.appointmentNumber,color:null!==(h=null==n||null===(d=n.service)||void 0===d?void 0:d.color)&&void 0!==h?h:"",identifier:null===(m=n.patient)||void 0===m?void 0:m.identifier,duration:(null===(f=n.service)||void 0===f?void 0:f.durationMins)?(null==n||null===(v=n.service)||void 0===v?void 0:v.durationMins)+e("minutes","min"):p(n.startDateTime,n.endDateTime),recurring:n.recurring}},m=function(n){var e,t,o,i,a,c,u,l;return{id:n.uuid,name:null===(e=n.patient)||void 0===e?void 0:e.name,age:null===(t=n.patient)||void 0===t?void 0:t.birthDate,gender:null===(o=n.patient)||void 0===o?void 0:o.gender,phoneNumber:null===(i=n.patient)||void 0===i?void 0:i.phoneNumber,dob:(0,r.formatDate)((0,r.parseDate)(null===(a=n.patient)||void 0===a?void 0:a.birthDate),{mode:"wide"}),patientUuid:null===(c=n.patient)||void 0===c?void 0:c.uuid,dateTime:n.startDateTime,serviceType:n.service?n.service.name:"--",serviceUuid:n.service?n.service.uuid:null,appointmentKind:n.appointmentKind?n.appointmentKind:"--",status:n.status,provider:n.providers?null===(u=null==n?void 0:n.providers[0])||void 0===u?void 0:u.name:"--",location:n.location?null===(l=n.location)||void 0===l?void 0:l.name:"--",comments:n.comments?n.comments:"--",appointmentNumber:n.appointmentNumber,providers:n.providers,identifier:n.patient.identifier}},f=function(n,e){return n.isSame(e,"month")},v=function(n){for(var e=i()(n).startOf("month"),t=i()(n).endOf("month"),r=i()(n).daysInMonth(),o=i()(n).subtract(1,"month"),a=i()(n).add(1,"month"),c=[],u=o.daysInMonth()-e.day();u<o.daysInMonth();u++)c.push(n.date(u).month(o.month()));for(var l=1;l<=r;l++)c.push(n.date(l));for(var s=c.length>30?7:14,p=1;p<s-t.day();p++)c.push(n.date(p).month(a.month()));return c},h=function(n,e){switch(n){case"M":return e("male","Male");case"F":return e("female","Female");case"O":return e("other","Other");case"U":return e("unknown","Unknown");default:return n}},b=function(n){for(var e=[],t=0;t<1;t++)for(var r=0;r<8;r++)e.push(i()(n).day(0===r?0:r-1).hour(t));return e},y=function(n){for(var e=[],t=0;t<24;t++)for(var r=0;r<8;r++)e.push(i()(n).day(0===r?0:r-1).hour(t));return e},g=function(n){for(var e=[],t=0;t<24;t++)e.push(i()(n).hour(t));return e}},1027:(n,e,t)=>{t.d(e,{es:()=>f,A8:()=>p,Nz:()=>r.Nz,g9:()=>r.g9,Ey:()=>r.Ey,IF:()=>r.IF,bf:()=>r.bf,vN:()=>r.vN,xj:()=>r.xj,df:()=>r.df,zF:()=>v,Gd:()=>r.Gd,c1:()=>r.c1});var r=t(5326),o=t(906),i=t(8879),a=t.n(i),c=t(268),u=t(8179);function l(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function s(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(n);!(a=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(n){c=!0,o=n}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(n,e)||function(n,e){if(n){if("string"==typeof n)return l(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var p=function(n,e){var t=s(null==n?void 0:n.split(":"),2),r=t[0],o=t[1];return"12"===r&&"AM"===e&&(r="00"),"PM"===e&&(r="12"===r?r:parseInt(r,10)+12),[r,o]},d={appointmentDate:a()((new Date).setHours(0,0,0,0)).format(u.J$)};function m(){return(0,o.getGlobalStore)("appointmentStartDate",d)}function f(n){m().setState({appointmentDate:a()(new Date(n).setHours(0,0,0,0)).format(u.J$)})}var v=function(){var n=s((0,c.useState)(d.appointmentDate),2),e=n[0],t=n[1];return(0,c.useEffect)((function(){m().subscribe((function(n){var e=n.appointmentDate;return t(e.toString())}))}),[]),e}},4690:(n,e,t)=>{t.d(e,{E0:()=>b,LW:()=>h,WN:()=>f});var r=t(268),o=t(3255),i=t(8879),a=t.n(i),c=t(4924),u=t(906),l=t(1027),s=t(8179);function p(n,e,t,r,o,i,a){try{var c=n[i](a),u=c.value}catch(n){return void t(n)}c.done?e(u):Promise.resolve(u).then(r,o)}function d(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(n){p(i,r,o,a,c,"next",n)}function c(n){p(i,r,o,a,c,"throw",n)}a(void 0)}))}}var m=function(n,e){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(n,a)}catch(n){i=[6,n],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};function f(){var n=(0,c.useTranslation)().t,e=(0,l.zF)(),t="/ws/rest/v1/appointment/all?forDate=".concat(e),i=(0,o.ZP)(e?t:null,u.openmrsFetch),a=i.data,s=i.error,p=i.isLoading,d=i.isValidating,m=i.mutate,f=(0,r.useMemo)((function(){var e,t;return{appointments:null!==(t=null==a||null===(e=a.data)||void 0===e?void 0:e.map((function(e){return(0,l.df)(e,n)})))&&void 0!==t?t:[],isLoading:p,isError:s,isValidating:d,mutate:m}}),[null==a?void 0:a.data,s,p,d,m,n]);return f}var v,h=(v=d((function(n,e){var t,r,o,i;return m(this,(function(c){switch(c.label){case 0:return t=new AbortController,r=Intl.DateTimeFormat().resolvedOptions().timeZone,o=a()(new Date).format(s.J$),i="/ws/rest/v1/appointments/".concat(e,"/status-change"),[4,(0,u.openmrsFetch)(i,{body:{toStatus:n,onDate:o,timeZone:r},method:"POST",headers:{"Content-Type":"application/json"},signal:t.signal})];case 1:return[2,c.sent()]}}))})),function(n,e){return v.apply(this,arguments)}),b=function(){var n=d((function(n){var e,t;return m(this,(function(r){switch(r.label){case 0:return e=new AbortController,t="/ws/rest/v1/appointment/undoStatusChange/".concat(n),[4,(0,u.openmrsFetch)(t,{method:"POST",headers:{"Content-Type":"application/json"},signal:e.signal})];case 1:return[2,r.sent()]}}))}));return function(e){return n.apply(this,arguments)}}()},6903:(n,e,t)=>{t.r(e),t.d(e,{default:()=>M});var r=t(268),o=t.n(r),i=t(8879),a=t.n(i),c=t(5745),u=t(3255),l=t(4924),s=t(906),p=t(4690),d=t(2649),m=t(6062),f=t.n(m),v=t(4036),h=t.n(v),b=t(6793),y=t.n(b),g=t(7892),w=t.n(g),k=t(1173),A=t.n(k),C=t(2464),N=t.n(C),I=t(8711),_={};_.styleTagTransform=N(),_.setAttributes=w(),_.insert=y().bind(null,"head"),_.domAPI=h(),_.insertStyleElement=A(),f()(I.Z,_);const S=I.Z&&I.Z.locals?I.Z.locals:void 0;function E(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function T(n,e,t,r,o,i,a){try{var c=n[i](a),u=c.value}catch(n){return void t(n)}c.done?e(u):Promise.resolve(u).then(r,o)}function $(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,o,i=[],a=!0,c=!1;try{for(t=t.call(n);!(a=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(n){c=!0,o=n}finally{try{a||null==t.return||t.return()}finally{if(c)throw o}}return i}}(n,e)||function(n,e){if(n){if("string"==typeof n)return E(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?E(n,e):void 0}}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const M=function(n){var e,t,i=n.closeCheckInModal,m=n.appointmentUuid,f=(0,l.useTranslation)().t,v=(0,u.kY)().mutate,h=$((0,r.useState)(a()(new Date).format("hh:mm")),2),b=h[0],y=h[1],g=$((0,r.useState)(!1),2),w=g[0],k=g[1],A=(e=function(){return function(n,e){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(n,a)}catch(n){i=[6,n],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,(function(n){switch(n.label){case 0:return k(!0),[4,(0,p.LW)("CheckedIn",m)];case 1:return 200===n.sent().status?(i(),(0,s.showActionableNotification)({critical:!0,kind:"success",actionButtonLabel:f("undo","Undo"),progressActionLabel:f("revertingAppointmentStatus","Reverting appointment status"),onActionButtonClick:function(){return(0,d.NL)(m,v)},subtitle:f("appointmentSuccessfullyCheckedIn","It has been checked-in successfully"),title:f("appointmentCheckedIn","Appointment Checked-in")}),v("/ws/rest/v1/appointment/appointment/all")):((0,s.showNotification)({title:f("appointmentCheckInError","Error checking in appointment"),kind:"error",critical:!0,description:f("errorMessage","Error checking in the appointment")}),k(!1)),[2]}}))},t=function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function a(n){T(i,r,o,a,c,"next",n)}function c(n){T(i,r,o,a,c,"throw",n)}a(void 0)}))},function(){return t.apply(this,arguments)});return o().createElement("div",null,o().createElement(c.xBx,{closeModal:i,title:f("checkInAppointment","Are you sure you want to mark appointment as Checked-in?")}),o().createElement(c.fef,null,o().createElement("div",{className:S.checkInTime},o().createElement("span",{className:S.checkInLabel},f("checkinTime","Check-in time"),":"),o().createElement(c.jII,{required:!0,light:!0,className:S.timePickerInput,pattern:"([\\d]+:[\\d]{2})",onChange:function(n){return y(n.target.value)},value:b,id:"end-time-picker"}))),o().createElement(c.mzw,null,o().createElement(c.zxk,{kind:"secondary",onClick:i},f("no","No")),o().createElement(c.zxk,{onClick:A,disabled:w},f("yes","Yes"))))}},2649:(n,e,t)=>{t.d(e,{NL:()=>s,O4:()=>l,bO:()=>d,tf:()=>p});var r=t(906),o=t(4690);function i(n,e,t,r,o,i,a){try{var c=n[i](a),u=c.value}catch(n){return void t(n)}c.done?e(u):Promise.resolve(u).then(r,o)}function a(n){return function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function c(n){i(a,r,o,c,u,"next",n)}function u(n){i(a,r,o,c,u,"throw",n)}c(void 0)}))}}var c,u=function(n,e){var t,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(n,a)}catch(n){i=[6,n],r=0}finally{t=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},l=function(n){var e=(0,r.showModal)("check-in-appointment-modal",{closeCheckInModal:function(){return e()},appointmentUuid:n})},s=(c=a((function(n,e){return u(this,(function(t){switch(t.label){case 0:return new AbortController,[4,(0,o.E0)(n)];case 1:return 200===t.sent().status?e("/ws/rest/v1/appointment/appointment/all"):(0,r.showNotification)({title:"Error Undoing",kind:"error",critical:!0,description:"Error reverting status"}),[2]}}))})),function(n,e){return c.apply(this,arguments)}),p=function(){var n=a((function(n,e,t,i,a,c,l,p){return u(this,(function(u){switch(u.label){case 0:return new AbortController,[4,(0,o.LW)(n,e)];case 1:return 200===u.sent().status?((0,r.showActionableNotification)({critical:!0,kind:"success",subtitle:t,title:a,actionButtonLabel:p("undo","Undo"),progressActionLabel:p("revertingAppointmentStatus","Reverting appointment status"),onActionButtonClick:function(){return s(e,l)}}),l("/ws/rest/v1/appointment/appointment/all")):(0,r.showNotification)({title:c,kind:"error",critical:!0,description:i}),[2]}}))}));return function(e,t,r,o,i,a,c,u){return n.apply(this,arguments)}}(),d=function(n,e,t){var r=t("appointmentMarkedAsCompleted","It has been successfully marked as Completed"),o=t("appointmentCompleted","Appointment Completed"),i=t("appointmentCompleted","Appointment Completed"),a=t("appointmentCompletedError","Error marking appointment as Completed");return p("Completed",n,r,i,o,a,e,t)}}}]);
@@ -0,0 +1 @@
1
+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AgC,gDACvD0K,EAAe1K,EAAE,uBAAwB,yBACzCyK,EAAmBzK,EAAE,uBAAwB,yBAC7C2K,EAAa3K,EAAE,4BAA6B,0CAClD,OAAOuK,EACL,YACAM,EACAL,EACAC,EACAC,EACAC,EACAzE,EACAlG,EAEJ,C","sources":["webpack://@openmrs/esm-appointments-app/./src/home-appointments/check-in-modal/check-in-modal.scss","webpack://@openmrs/esm-appointments-app/./src/helpers/functions.ts","webpack://@openmrs/esm-appointments-app/./src/helpers/time.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/appointments-table.resource.ts","webpack://@openmrs/esm-appointments-app/./src/home-appointments/check-in-modal/check-in-modal.scss?afd3","webpack://@openmrs/esm-appointments-app/./src/home-appointments/check-in-modal/check-in-modal.component.tsx","webpack://@openmrs/esm-appointments-app/./src/home-appointments/common.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","getHighestAppointmentServiceLoad","Math","appointmentSummary","groupedAppointments","map","countMap","serviceName","count","reduce","cummulator","currentValue","allAppointmentsCount","find","summary","max","x","flattenAppointmentSummary","appointmentToTransfrom","flatMap","el","appointmentService","name","Object","entries","appointmentCountMap","getServiceCountByAppointmentType","appointmentType","flat","val","getAppointmentDuration","startTime","endTime","diff","minutes","floor","mapAppointmentProperties","appointment","t","date","hours","ampm","uuid","patient","age","birthDate","gender","phoneNumber","dob","formatDate","parseDate","mode","patientUuid","dateTime","startDateTime","getHours","getMinutes","serviceType","service","serviceColor","color","serviceUuid","appointmentKind","status","provider","person","display","location","comments","appointmentNumber","identifier","duration","durationMins","endDateTime","recurring","getAppointment","providers","isSameMonth","cellDate","currentDate","isSame","monthDays","monthStart","dayjs","startOf","monthEnd","endOf","daysInMonth","lastMonth","subtract","nextMonth","add","days","i","day","month","dayLen","length","getGender","weekDays","hour","weekAllDays","dailyHours","convertTime12to24","time12h","timeFormat","split","parseInt","initialState","appointmentDate","Date","setHours","format","omrsDateFormat","getStartDate","getGlobalStore","changeStartDate","updatedDate","setState","useAppointmentDate","useState","currentAppointmentDate","setCurrentAppointmentDate","useEffect","subscribe","toString","useTodaysAppointments","useTranslation","startDate","apiUrl","useSWR","openmrsFetch","data","error","isLoading","isValidating","mutate","results","useMemo","appointments","isError","updateAppointmentStatus","toStatus","appointmentUuid","abortController","timeZone","statusChangeTime","url","AbortController","Intl","DateTimeFormat","resolvedOptions","body","onDate","method","headers","signal","undoAppointmentStatus","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","closeCheckInModal","useSWRConfig","checkInTime","setCheckInTime","isSubmitting","setIsSubmitting","handleSubmit","showActionableNotification","critical","kind","actionButtonLabel","progressActionLabel","onActionButtonClick","handleUndoAction","subtitle","title","showNotification","description","div","ModalHeader","closeModal","ModalBody","className","styles","span","TimePicker","required","light","pattern","onChange","event","target","value","ModalFooter","Button","onClick","disabled","launchCheckInAppointmentModal","dispose","showModal","handleUpdateStatus","successDescription","errorDescription","successTitle","errorTitle","handleComplete","appointmentId"],"sourceRoot":""}