@openmrs/esm-app-shell 5.1.1-pre.1035 → 5.1.1-pre.1039
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +100 -100
- package/dist/index.html +1 -1
- package/dist/{openmrs.0b536b29043cb6a7.js → openmrs.b4c8bbd799d5b250.js} +2 -2
- package/dist/{openmrs.0b536b29043cb6a7.js.map → openmrs.b4c8bbd799d5b250.js.map} +1 -1
- package/dist/service-worker.js +1 -1
- package/lib/esm-devtools-app/main.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +2 -2
- package/lib/esm-devtools-app/routes.json +1 -1
- package/lib/esm-login-app/111.js +1 -1
- package/lib/esm-login-app/126.js +1 -1
- package/lib/esm-login-app/173.js +1 -1
- package/lib/esm-login-app/319.js +1 -1
- package/lib/esm-login-app/337.js +1 -1
- package/lib/esm-login-app/342.js +1 -1
- package/lib/esm-login-app/main.js +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +31 -31
- package/lib/esm-login-app/routes.json +1 -1
- package/lib/esm-offline-tools-app/202.js +1 -1
- package/lib/esm-offline-tools-app/224.js +1 -1
- package/lib/esm-offline-tools-app/319.js +1 -1
- package/lib/esm-offline-tools-app/main.js +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +28 -28
- package/lib/esm-offline-tools-app/routes.json +1 -1
- package/lib/esm-primary-navigation-app/319.js +1 -1
- package/lib/esm-primary-navigation-app/main.js +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +5 -5
- package/lib/esm-primary-navigation-app/routes.json +1 -1
- package/lib/index.html +2 -2
- package/lib/openmrs.js +3 -3
- package/lib/service-worker.js +1 -1
- package/package.json +4 -4
- package/lib/esm-implementer-tools-app/220.js +0 -1
- package/lib/esm-implementer-tools-app/220.js.map +0 -1
- package/lib/esm-implementer-tools-app/246.js +0 -1
- package/lib/esm-implementer-tools-app/246.js.map +0 -1
- package/lib/esm-implementer-tools-app/263.js +0 -1
- package/lib/esm-implementer-tools-app/263.js.map +0 -1
- package/lib/esm-implementer-tools-app/278.js +0 -1
- package/lib/esm-implementer-tools-app/278.js.map +0 -1
- package/lib/esm-implementer-tools-app/319.js +0 -1
- package/lib/esm-implementer-tools-app/329.js +0 -2
- package/lib/esm-implementer-tools-app/329.js.LICENSE.txt +0 -9
- package/lib/esm-implementer-tools-app/329.js.map +0 -1
- package/lib/esm-implementer-tools-app/426.js +0 -1
- package/lib/esm-implementer-tools-app/426.js.map +0 -1
- package/lib/esm-implementer-tools-app/466.js +0 -1
- package/lib/esm-implementer-tools-app/466.js.map +0 -1
- package/lib/esm-implementer-tools-app/499.js +0 -1
- package/lib/esm-implementer-tools-app/499.js.map +0 -1
- package/lib/esm-implementer-tools-app/500.js +0 -1
- package/lib/esm-implementer-tools-app/500.js.map +0 -1
- package/lib/esm-implementer-tools-app/519.js +0 -1
- package/lib/esm-implementer-tools-app/519.js.map +0 -1
- package/lib/esm-implementer-tools-app/56.js +0 -1
- package/lib/esm-implementer-tools-app/56.js.map +0 -1
- package/lib/esm-implementer-tools-app/574.js +0 -1
- package/lib/esm-implementer-tools-app/575.js +0 -1
- package/lib/esm-implementer-tools-app/575.js.map +0 -1
- package/lib/esm-implementer-tools-app/587.js +0 -1
- package/lib/esm-implementer-tools-app/587.js.map +0 -1
- package/lib/esm-implementer-tools-app/620.js +0 -2
- package/lib/esm-implementer-tools-app/620.js.LICENSE.txt +0 -38
- package/lib/esm-implementer-tools-app/620.js.map +0 -1
- package/lib/esm-implementer-tools-app/625.js +0 -1
- package/lib/esm-implementer-tools-app/657.js +0 -1
- package/lib/esm-implementer-tools-app/735.js +0 -2
- package/lib/esm-implementer-tools-app/735.js.LICENSE.txt +0 -9
- package/lib/esm-implementer-tools-app/735.js.map +0 -1
- package/lib/esm-implementer-tools-app/757.js +0 -1
- package/lib/esm-implementer-tools-app/788.js +0 -2
- package/lib/esm-implementer-tools-app/788.js.LICENSE.txt +0 -19
- package/lib/esm-implementer-tools-app/788.js.map +0 -1
- package/lib/esm-implementer-tools-app/807.js +0 -1
- package/lib/esm-implementer-tools-app/807.js.map +0 -1
- package/lib/esm-implementer-tools-app/833.js +0 -1
- package/lib/esm-implementer-tools-app/837.js +0 -2
- package/lib/esm-implementer-tools-app/837.js.LICENSE.txt +0 -5
- package/lib/esm-implementer-tools-app/837.js.map +0 -1
- package/lib/esm-implementer-tools-app/889.js +0 -2
- package/lib/esm-implementer-tools-app/889.js.LICENSE.txt +0 -3
- package/lib/esm-implementer-tools-app/889.js.map +0 -1
- package/lib/esm-implementer-tools-app/main.js +0 -1
- package/lib/esm-implementer-tools-app/main.js.map +0 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +0 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +0 -740
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.map +0 -1
- package/lib/esm-implementer-tools-app/routes.json +0 -1
- /package/dist/{openmrs.0b536b29043cb6a7.js.LICENSE.txt → openmrs.b4c8bbd799d5b250.js.LICENSE.txt} +0 -0
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"auxiliaryFiles": [
|
|
76
76
|
"111.js.map"
|
|
77
77
|
],
|
|
78
|
-
"hash": "
|
|
78
|
+
"hash": "3946ed303a1c77ec",
|
|
79
79
|
"childrenByOrder": {}
|
|
80
80
|
},
|
|
81
81
|
{
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"auxiliaryFiles": [
|
|
103
103
|
"126.js.map"
|
|
104
104
|
],
|
|
105
|
-
"hash": "
|
|
105
|
+
"hash": "60217809c91602ca",
|
|
106
106
|
"childrenByOrder": {}
|
|
107
107
|
},
|
|
108
108
|
{
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"auxiliaryFiles": [
|
|
154
154
|
"173.js.map"
|
|
155
155
|
],
|
|
156
|
-
"hash": "
|
|
156
|
+
"hash": "f68c599186c025a3",
|
|
157
157
|
"childrenByOrder": {}
|
|
158
158
|
},
|
|
159
159
|
{
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
"auxiliaryFiles": [
|
|
182
182
|
"main.js.map"
|
|
183
183
|
],
|
|
184
|
-
"hash": "
|
|
184
|
+
"hash": "2a87a885950134bd",
|
|
185
185
|
"childrenByOrder": {}
|
|
186
186
|
},
|
|
187
187
|
{
|
|
@@ -306,9 +306,9 @@
|
|
|
306
306
|
"initial": false,
|
|
307
307
|
"entry": false,
|
|
308
308
|
"recorded": false,
|
|
309
|
-
"size":
|
|
309
|
+
"size": 682,
|
|
310
310
|
"sizes": {
|
|
311
|
-
"javascript":
|
|
311
|
+
"javascript": 682
|
|
312
312
|
},
|
|
313
313
|
"names": [],
|
|
314
314
|
"idHints": [],
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"319.js"
|
|
321
321
|
],
|
|
322
322
|
"auxiliaryFiles": [],
|
|
323
|
-
"hash": "
|
|
323
|
+
"hash": "b0abea2254f8c1d1",
|
|
324
324
|
"childrenByOrder": {}
|
|
325
325
|
},
|
|
326
326
|
{
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"auxiliaryFiles": [
|
|
367
367
|
"337.js.map"
|
|
368
368
|
],
|
|
369
|
-
"hash": "
|
|
369
|
+
"hash": "0d9532563d98bec1",
|
|
370
370
|
"childrenByOrder": {}
|
|
371
371
|
},
|
|
372
372
|
{
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
"auxiliaryFiles": [
|
|
393
393
|
"342.js.map"
|
|
394
394
|
],
|
|
395
|
-
"hash": "
|
|
395
|
+
"hash": "0db6c25685daa699",
|
|
396
396
|
"childrenByOrder": {}
|
|
397
397
|
},
|
|
398
398
|
{
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
"auxiliaryFiles": [
|
|
420
420
|
"openmrs-esm-login-app.js.map"
|
|
421
421
|
],
|
|
422
|
-
"hash": "
|
|
422
|
+
"hash": "83a06660d115be93",
|
|
423
423
|
"childrenByOrder": {}
|
|
424
424
|
},
|
|
425
425
|
{
|
|
@@ -577,27 +577,6 @@
|
|
|
577
577
|
"hash": "3ad1526bf12fb310",
|
|
578
578
|
"childrenByOrder": {}
|
|
579
579
|
},
|
|
580
|
-
{
|
|
581
|
-
"rendered": false,
|
|
582
|
-
"initial": false,
|
|
583
|
-
"entry": false,
|
|
584
|
-
"recorded": false,
|
|
585
|
-
"reason": "split chunk (cache group: default)",
|
|
586
|
-
"size": 42,
|
|
587
|
-
"sizes": {
|
|
588
|
-
"consume-shared": 42
|
|
589
|
-
},
|
|
590
|
-
"names": [],
|
|
591
|
-
"idHints": [],
|
|
592
|
-
"runtime": [
|
|
593
|
-
"@openmrs/esm-login-app",
|
|
594
|
-
"main"
|
|
595
|
-
],
|
|
596
|
-
"files": [],
|
|
597
|
-
"auxiliaryFiles": [],
|
|
598
|
-
"hash": "31665cfaf050c3bf",
|
|
599
|
-
"childrenByOrder": {}
|
|
600
|
-
},
|
|
601
580
|
{
|
|
602
581
|
"rendered": true,
|
|
603
582
|
"initial": false,
|
|
@@ -784,6 +763,27 @@
|
|
|
784
763
|
"hash": "e3ac3242dde07fc9",
|
|
785
764
|
"childrenByOrder": {}
|
|
786
765
|
},
|
|
766
|
+
{
|
|
767
|
+
"rendered": false,
|
|
768
|
+
"initial": false,
|
|
769
|
+
"entry": false,
|
|
770
|
+
"recorded": false,
|
|
771
|
+
"reason": "split chunk (cache group: default)",
|
|
772
|
+
"size": 42,
|
|
773
|
+
"sizes": {
|
|
774
|
+
"consume-shared": 42
|
|
775
|
+
},
|
|
776
|
+
"names": [],
|
|
777
|
+
"idHints": [],
|
|
778
|
+
"runtime": [
|
|
779
|
+
"@openmrs/esm-login-app",
|
|
780
|
+
"main"
|
|
781
|
+
],
|
|
782
|
+
"files": [],
|
|
783
|
+
"auxiliaryFiles": [],
|
|
784
|
+
"hash": "fa768f265bf277d0",
|
|
785
|
+
"childrenByOrder": {}
|
|
786
|
+
},
|
|
787
787
|
{
|
|
788
788
|
"rendered": true,
|
|
789
789
|
"initial": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.24.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-actions-slot","component":"logoutButton","online":true,"offline":true},{"name":"location-changer","slot":"user-panel-slot","component":"changeLocationLink","online":true,"offline":true,"order":1}],"version":"5.1.1-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":">=2.24.0"},"pages":[{"component":"root","route":"login","online":true,"offline":true},{"component":"root","route":"logout","online":true,"offline":true}],"extensions":[{"name":"location-picker","slot":"location-picker","component":"locationPicker","online":true,"offline":true},{"name":"logout-button","slot":"user-panel-actions-slot","component":"logoutButton","online":true,"offline":true},{"name":"location-changer","slot":"user-panel-slot","component":"changeLocationLink","online":true,"offline":true,"order":1}],"version":"5.1.1-pre.1039"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_offline_tools_app=globalThis.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[202],{6060:(n,e,t)=>{"use strict";t.d(e,{Z:()=>l});var i=t(9233),a=t.n(i),o=t(361),s=t.n(o)()(a());s.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__synchronizing-notification-styles__productiveHeading01___IXbQA{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-offline-tools__synchronizing-notification-styles__productiveHeading02___hVDYW{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-offline-tools__synchronizing-notification-styles__productiveHeading03___jIzsd{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-offline-tools__synchronizing-notification-styles__productiveHeading04___HlVaH{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-offline-tools__synchronizing-notification-styles__bodyShort01___XqYp6{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-offline-tools__synchronizing-notification-styles__bodyLong01___tXh\\+9{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-offline-tools__synchronizing-notification-styles__label01___yi5xl{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#525252}.-esm-offline-tools__synchronizing-notification-styles__notificationLoadingContainer___E-paW{display:flex;gap:.5rem;justify-content:space-between;align-items:center}","",{version:3,sources:["webpack://./../../framework/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/offline-actions/synchronizing-notification.styles.scss","webpack://./../../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCpDF,oFC+1BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD31BJ,oFC21BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDv1BJ,oFCu1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDn1BJ,oFCm1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD/0BJ,4EC+0BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD30BJ,4EC20BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDv0BJ,wECu0BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDr0BF,aDxBQ,CGFV,6FACE,YAAA,CACA,SCgBW,CDfX,6BAAA,CACA,kBAAA",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/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.bodyShort01 {\n @include type.type-style("body-compact-01");\n}\n\n.bodyLong01 {\n @include type.type-style("body-compact-01");\n}\n\n.label01 {\n @include type.type-style("label-01");\n color: $text-02;\n}\n',"//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n",'@use "@carbon/styles/scss/spacing";\n@import "../root.scss";\n\n.notificationLoadingContainer {\n display: flex;\n gap: spacing.$spacing-03;\n justify-content: space-between;\n align-items: center;\n}\n',"// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),s.locals={productiveHeading01:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading01___IXbQA",productiveHeading02:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading02___hVDYW",productiveHeading03:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading03___jIzsd",productiveHeading04:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading04___HlVaH",bodyShort01:"-esm-offline-tools__synchronizing-notification-styles__bodyShort01___XqYp6",bodyLong01:"-esm-offline-tools__synchronizing-notification-styles__bodyLong01___tXh+9",label01:"-esm-offline-tools__synchronizing-notification-styles__label01___yi5xl",notificationLoadingContainer:"-esm-offline-tools__synchronizing-notification-styles__notificationLoadingContainer___E-paW"};const l=s},1217:(n,e,t)=>{"use strict";t.d(e,{Q:()=>r,_:()=>l});var i,a,o,s=t(4610),l={home:"home",offlineTools:"offline-tools",offlineToolsPatients:"offline-tools/patients",offlineToolsPatientOfflineData:"offline-tools/patients/:patientUuid/offline-data",offlineToolsActions:"offline-tools/actions"},r=(i={},o="network-first",(a=s.omrsOfflineCachingStrategyHttpHeaderName)in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i)},4770:(n,e,t)=>{"use strict";t.r(e),t.d(e,{importTranslation:()=>Z,offlineTools:()=>X,offlineToolsActionsCard:()=>K,offlineToolsConfirmationModal:()=>Y,offlineToolsLink:()=>J,offlineToolsNavItems:()=>Q,offlineToolsOptInButton:()=>ln,offlineToolsPageActions:()=>tn,offlineToolsPatientChartActions:()=>an,offlineToolsPatientChartActionsDashboard:()=>on,offlineToolsPatientChartActionsDashboardLink:()=>sn,offlineToolsPatients:()=>en,offlineToolsPatientsCard:()=>G,offlineToolsPatientsLink:()=>nn,startupApp:()=>rn});var i=t(4610),a=t(1217),o=t(5776),s=t.n(o),l=t(7271),r=t(1763);function c(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}var p=function(n){var e,t,a=n.basePath,p=n.path,f=n.title,u=(0,r.useLocation)(),d=(0,o.useMemo)((function(){return decodeURIComponent((0,l.Z)(u.pathname.split("/")))}),[u.pathname]),g=(e=(0,o.useState)(),t=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,a,o=[],s=!0,l=!1;try{for(t=t.call(n);!(s=(i=t.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(n){l=!0,a=n}finally{try{s||null==t.return||t.return()}finally{if(l)throw a}}return o}}(e,t)||function(n,e){if(n){if("string"==typeof n)return c(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)?c(n,e):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=g[0],h=g[1];(0,o.useEffect)((function(){"function"==typeof f?Promise.resolve(f()).then((function(n){h(n)})).catch((function(n){throw n})):h(f)}),[f]);var b=p===d?"active-left-nav-link":"non-active";return f&&y&&s().createElement("div",{key:p,className:b},s().createElement(i.ConfigurableLink,{to:"".concat(a,"/").concat(encodeURIComponent(p)),className:"cds--side-nav__link ".concat(b)},y))},f=t(8613);function u(n,e,t,i,a,o,s){try{var l=n[o](s),r=l.value}catch(n){return void t(n)}l.done?e(r):Promise.resolve(r).then(i,a)}function d(n){return function(){var e=this,t=arguments;return new Promise((function(i,a){var o=n.apply(e,t);function s(n){u(o,i,a,s,l,"next",n)}function l(n){u(o,i,a,s,l,"throw",n)}s(void 0)}))}}function g(n,e){var t,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(n,s)}catch(n){o=[6,n],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var y=t(8478),h=t(2680),b=t(5596),m=t(487),$=t.n(m),v=t(631),A=t.n(v),w=t(2052),k=t.n(w),x=t(4010),z=t.n(x),_=t(1469),C=t.n(_),M=t(9329),D=t.n(M),S=t(6060),T={};T.styleTagTransform=D(),T.setAttributes=z(),T.insert=k().bind(null,"head"),T.domAPI=A(),T.insertStyleElement=C(),$()(S.Z,T);const O=S.Z&&S.Z.locals?S.Z.locals:void 0;function P(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}var E=!0,I=0;function N(n){var e=n.mySynchronizationIndex,t=(0,h.useTranslation)().t,i=j(e),a=L(i);return i?s().createElement("div",{className:O.notificationLoadingContainer},a?t("offlineActionsSynchronizationNotificationCanceling","Canceling..."):t("offlineActionsSynchronizationNotificationStatus","{current} / {total} actions",{current:i.totalCount-i.pendingCount,total:i.totalCount}),s().createElement(b.gbz,{small:!0,withOverlay:!1})):s().createElement(s().Fragment,null,t("offlineActionsSynchronizationNotificationSynchronized","The offline action synchronization has finished."))}function B(n){var e=n.mySynchronizationIndex,t=(0,h.useTranslation)().t,i=j(e),a=L(i);return i?s().createElement(b.xho,{onClick:function(){return null==i?void 0:i.abortController.abort()},disabled:a},t("offlineActionsSynchronizationNotificationCancelUpload","Cancel upload")):null}function j(n){var e=(0,y.useStore)((0,y.getOfflineSynchronizationStore)());return n===I?e.synchronization:void 0}function L(n){var e,t,i,a=null==n?void 0:n.abortController,s=(t=(0,o.useState)(null!==(e=null==a?void 0:a.signal.aborted)&&void 0!==e&&e),i=2,function(n){if(Array.isArray(n))return n}(t)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,a,o=[],s=!0,l=!1;try{for(t=t.call(n);!(s=(i=t.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(n){l=!0,a=n}finally{try{s||null==t.return||t.return()}finally{if(l)throw a}}return o}}(t,i)||function(n,e){if(n){if("string"==typeof n)return P(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)?P(n,e):void 0}}(t,i)||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.")}()),l=s[0],r=s[1];return(0,o.useEffect)((function(){var n=function(){return r(!0)};return null==a||a.signal.addEventListener("abort",n),function(){return null==a?void 0:a.signal.removeEventListener("abort",n)}}),[a]),l}function H(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var q,F,U,W,Z=t(3979),R="@openmrs/esm-offline-tools-app",V={featureName:"offline-tools",moduleName:R},X=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(696),t.e(752),t.e(698),t.e(78),t.e(501),t.e(281)]).then(t.bind(t,7281))}),V),J=(0,i.getAsyncLifecycle)((function(){return t.e(733).then(t.bind(t,7733))}),V),Q=(0,i.getAsyncLifecycle)((function(){return t.e(391).then(t.bind(t,391))}),{featureName:"nav-items",moduleName:R}),Y=(0,i.getAsyncLifecycle)((function(){return t.e(541).then(t.bind(t,1541))}),V),G=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(752),t.e(698),t.e(206),t.e(316)]).then(t.bind(t,7316))}),V),K=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(698),t.e(206),t.e(412)]).then(t.bind(t,6412))}),V),nn=(0,i.getSyncLifecycle)((function(){return(0,f.Z)({page:"patients",title:"Patients"})}),V),en=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(696),t.e(752),t.e(698),t.e(78),t.e(501),t.e(594)]).then(t.bind(t,3594))}),V),tn=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(696),t.e(698),t.e(78),t.e(526),t.e(937)]).then(t.bind(t,7937))}),V),an=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(698),t.e(526),t.e(47)]).then(t.bind(t,5047))}),V),on=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(698),t.e(526),t.e(47)]).then(t.bind(t,5047))}),V),sn=(0,i.getSyncLifecycle)((U=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})))),i.forEach((function(e){H(n,e,t[e])}))}return n}({},{slot:"patient-chart-offline-actions-dashboard-slot",columns:1,path:"Offline Actions",title:"Offline Actions"}),W=null!=(W={title:function(){var n;return Promise.resolve(null!==(q=null===(n=window.i18next)||void 0===n?void 0:n.t("offline_actions_link",{defaultValue:"Offline Actions",ns:R}))&&void 0!==q?q:"Offline Actions")}})?W:{},Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(W)):function(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t.push.apply(t,i)}return t}(Object(W)).forEach((function(n){Object.defineProperty(U,n,Object.getOwnPropertyDescriptor(W,n))})),F=U,function(n){var e=n.basePath;return s().createElement(r.BrowserRouter,null,s().createElement(p,{basePath:e,path:F.path,title:F.title}))}),V),ln=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(297),t.e(538)]).then(t.bind(t,3538))}),V);function rn(){(0,i.defineConfigSchema)(R,{}),(0,i.setupDynamicOfflineDataHandler)({id:"esm-offline-tools-app:patient",displayName:"Offline tools",type:"patient",isSynced:function(n){return d((function(){var e,t,a;return g(this,(function(o){switch(o.label){case 0:return e=["/ws/fhir2/R4/Patient/".concat(n)],t=e.map((function(n){return window.origin+(0,i.makeUrl)(n)})),[4,caches.open("omrs-spa-cache-v1")];case 1:return[4,o.sent().keys()];case 2:return a=o.sent().map((function(n){return n.url})),[2,t.every((function(n){return a.includes(n)}))]}}))}))()},sync:function(n){return d((function(){return g(this,(function(e){switch(e.label){case 0:return[4,(0,i.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:"/ws/fhir2/R4/Patient/".concat(n)})];case 1:return e.sent(),[4,(0,i.fetchCurrentPatient)(n,{headers:a.Q})];case 2:return e.sent(),[2]}}))}))()}}),(0,y.getOfflineSynchronizationStore)().subscribe((function(n){n.synchronization||(E=!0),E&&n.synchronization&&(E=!1,I++,(0,y.showNotification)({title:(0,h.getI18n)().t("offlineActionsSynchronizationNotificationTitle","Upload"),description:s().createElement(N,{mySynchronizationIndex:I}),action:s().createElement(B,{mySynchronizationIndex:I})}))})),(0,i.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(a._.offlineTools),title:"Offline Tools",parent:"".concat(window.spaBase,"/").concat(a._.home)},{path:"".concat(window.spaBase,"/").concat(a._.offlineToolsPatients),title:"Patients",parent:"".concat(window.spaBase,"/").concat(a._.offlineTools)},{path:"".concat(window.spaBase,"/").concat(a._.offlineToolsPatientOfflineData),title:"Data",parent:"".concat(window.spaBase,"/").concat(a._.offlineToolsPatients)},{path:"".concat(window.spaBase,"/").concat(a._.offlineToolsActions),title:"Actions",parent:"".concat(window.spaBase,"/").concat(a._.offlineTools)}])}},8613:(n,e,t)=>{"use strict";t.d(e,{Z:()=>l});var i=t(5776),a=t.n(i),o=t(4610),s=t(1217);function l(n){var e=n.page,t=n.title;return a().createElement("div",{key:e},a().createElement(o.ConfigurableLink,{to:"${openmrsSpaBase}/"+s._.offlineTools+(e?"/".concat(e):""),className:"cds--side-nav__link"},t))}},3979:(n,e,t)=>{var i={"./am.json":[8788,625],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./he.json":[5833,833],"./km.json":[7807,807]};function a(n){if(!t.o(i,n))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[n],a=e[0];return t.e(e[1]).then((()=>t(a)))}a.keys=()=>Object.keys(i),a.id=3979,n.exports=a}}]);
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_offline_tools_app=globalThis.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[202],{6060:(n,e,t)=>{"use strict";t.d(e,{Z:()=>l});var i=t(9233),a=t.n(i),o=t(361),s=t.n(o)()(a());s.push([n.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__synchronizing-notification-styles__productiveHeading01___IXbQA{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-offline-tools__synchronizing-notification-styles__productiveHeading02___hVDYW{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-offline-tools__synchronizing-notification-styles__productiveHeading03___jIzsd{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-offline-tools__synchronizing-notification-styles__productiveHeading04___HlVaH{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-offline-tools__synchronizing-notification-styles__bodyShort01___XqYp6{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-offline-tools__synchronizing-notification-styles__bodyLong01___tXh\\+9{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-offline-tools__synchronizing-notification-styles__label01___yi5xl{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px);color:#525252}.-esm-offline-tools__synchronizing-notification-styles__notificationLoadingContainer___E-paW{display:flex;gap:.5rem;justify-content:space-between;align-items:center}","",{version:3,sources:["webpack://./../../framework/esm-styleguide/src/_vars.scss","webpack://./src/root.scss","webpack://./../../../node_modules/@carbon/type/scss/_styles.scss","webpack://./src/offline-actions/synchronizing-notification.styles.scss","webpack://./../../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCpDF,oFC+1BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD31BJ,oFC21BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CDv1BJ,oFCu1BI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDn1BJ,oFCm1BI,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CAAA,sDAAA,CD/0BJ,4EC+0BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CD30BJ,4EC20BI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDv0BJ,wECu0BI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDr0BF,aDxBQ,CGFV,6FACE,YAAA,CACA,SCgBW,CDfX,6BAAA,CACA,kBAAA",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/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.bodyShort01 {\n @include type.type-style("body-compact-01");\n}\n\n.bodyLong01 {\n @include type.type-style("body-compact-01");\n}\n\n.label01 {\n @include type.type-style("label-01");\n color: $text-02;\n}\n',"//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n",'@use "@carbon/styles/scss/spacing";\n@import "../root.scss";\n\n.notificationLoadingContainer {\n display: flex;\n gap: spacing.$spacing-03;\n justify-content: space-between;\n align-items: center;\n}\n',"// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n"],sourceRoot:""}]),s.locals={productiveHeading01:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading01___IXbQA",productiveHeading02:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading02___hVDYW",productiveHeading03:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading03___jIzsd",productiveHeading04:"-esm-offline-tools__synchronizing-notification-styles__productiveHeading04___HlVaH",bodyShort01:"-esm-offline-tools__synchronizing-notification-styles__bodyShort01___XqYp6",bodyLong01:"-esm-offline-tools__synchronizing-notification-styles__bodyLong01___tXh+9",label01:"-esm-offline-tools__synchronizing-notification-styles__label01___yi5xl",notificationLoadingContainer:"-esm-offline-tools__synchronizing-notification-styles__notificationLoadingContainer___E-paW"};const l=s},1217:(n,e,t)=>{"use strict";t.d(e,{Q:()=>r,_:()=>l});var i,a,o,s=t(4610),l={home:"home",offlineTools:"offline-tools",offlineToolsPatients:"offline-tools/patients",offlineToolsPatientOfflineData:"offline-tools/patients/:patientUuid/offline-data",offlineToolsActions:"offline-tools/actions"},r=(i={},o="network-first",(a=s.omrsOfflineCachingStrategyHttpHeaderName)in i?Object.defineProperty(i,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[a]=o,i)},4770:(n,e,t)=>{"use strict";t.r(e),t.d(e,{importTranslation:()=>Z,offlineTools:()=>X,offlineToolsActionsCard:()=>K,offlineToolsConfirmationModal:()=>Y,offlineToolsLink:()=>J,offlineToolsNavItems:()=>Q,offlineToolsOptInButton:()=>ln,offlineToolsPageActions:()=>tn,offlineToolsPatientChartActions:()=>an,offlineToolsPatientChartActionsDashboard:()=>on,offlineToolsPatientChartActionsDashboardLink:()=>sn,offlineToolsPatients:()=>en,offlineToolsPatientsCard:()=>G,offlineToolsPatientsLink:()=>nn,startupApp:()=>rn});var i=t(4610),a=t(1217),o=t(5776),s=t.n(o),l=t(7271),r=t(1763);function c(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}var p=function(n){var e,t,a=n.basePath,p=n.path,f=n.title,u=(0,r.useLocation)(),d=(0,o.useMemo)((function(){return decodeURIComponent((0,l.Z)(u.pathname.split("/")))}),[u.pathname]),g=(e=(0,o.useState)(),t=2,function(n){if(Array.isArray(n))return n}(e)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,a,o=[],s=!0,l=!1;try{for(t=t.call(n);!(s=(i=t.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(n){l=!0,a=n}finally{try{s||null==t.return||t.return()}finally{if(l)throw a}}return o}}(e,t)||function(n,e){if(n){if("string"==typeof n)return c(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)?c(n,e):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=g[0],h=g[1];(0,o.useEffect)((function(){"function"==typeof f?Promise.resolve(f()).then((function(n){h(n)})).catch((function(n){throw n})):h(f)}),[f]);var b=p===d?"active-left-nav-link":"non-active";return f&&y&&s().createElement("div",{key:p,className:b},s().createElement(i.ConfigurableLink,{to:"".concat(a,"/").concat(encodeURIComponent(p)),className:"cds--side-nav__link ".concat(b)},y))},f=t(8613);function u(n,e,t,i,a,o,s){try{var l=n[o](s),r=l.value}catch(n){return void t(n)}l.done?e(r):Promise.resolve(r).then(i,a)}function d(n){return function(){var e=this,t=arguments;return new Promise((function(i,a){var o=n.apply(e,t);function s(n){u(o,i,a,s,l,"next",n)}function l(n){u(o,i,a,s,l,"throw",n)}s(void 0)}))}}function g(n,e){var t,i,a,o,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,i&&(a=2&o[0]?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,i=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){s.label=o[1];break}if(6===o[0]&&s.label<a[1]){s.label=a[1],a=o;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(o);break}a[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(n,s)}catch(n){o=[6,n],i=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}}var y=t(8478),h=t(2680),b=t(5596),m=t(487),$=t.n(m),v=t(631),A=t.n(v),w=t(2052),k=t.n(w),x=t(4010),z=t.n(x),_=t(1469),C=t.n(_),M=t(9329),D=t.n(M),S=t(6060),T={};T.styleTagTransform=D(),T.setAttributes=z(),T.insert=k().bind(null,"head"),T.domAPI=A(),T.insertStyleElement=C(),$()(S.Z,T);const O=S.Z&&S.Z.locals?S.Z.locals:void 0;function P(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}var E=!0,I=0;function N(n){var e=n.mySynchronizationIndex,t=(0,h.useTranslation)().t,i=j(e),a=L(i);return i?s().createElement("div",{className:O.notificationLoadingContainer},a?t("offlineActionsSynchronizationNotificationCanceling","Canceling..."):t("offlineActionsSynchronizationNotificationStatus","{current} / {total} actions",{current:i.totalCount-i.pendingCount,total:i.totalCount}),s().createElement(b.gbz,{small:!0,withOverlay:!1})):s().createElement(s().Fragment,null,t("offlineActionsSynchronizationNotificationSynchronized","The offline action synchronization has finished."))}function B(n){var e=n.mySynchronizationIndex,t=(0,h.useTranslation)().t,i=j(e),a=L(i);return i?s().createElement(b.xho,{onClick:function(){return null==i?void 0:i.abortController.abort()},disabled:a},t("offlineActionsSynchronizationNotificationCancelUpload","Cancel upload")):null}function j(n){var e=(0,y.useStore)((0,y.getOfflineSynchronizationStore)());return n===I?e.synchronization:void 0}function L(n){var e,t,i,a=null==n?void 0:n.abortController,s=(t=(0,o.useState)(null!==(e=null==a?void 0:a.signal.aborted)&&void 0!==e&&e),i=2,function(n){if(Array.isArray(n))return n}(t)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,a,o=[],s=!0,l=!1;try{for(t=t.call(n);!(s=(i=t.next()).done)&&(o.push(i.value),!e||o.length!==e);s=!0);}catch(n){l=!0,a=n}finally{try{s||null==t.return||t.return()}finally{if(l)throw a}}return o}}(t,i)||function(n,e){if(n){if("string"==typeof n)return P(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)?P(n,e):void 0}}(t,i)||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.")}()),l=s[0],r=s[1];return(0,o.useEffect)((function(){var n=function(){return r(!0)};return null==a||a.signal.addEventListener("abort",n),function(){return null==a?void 0:a.signal.removeEventListener("abort",n)}}),[a]),l}function H(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var q,F,U,W,Z=t(3979),R="@openmrs/esm-offline-tools-app",V={featureName:"offline-tools",moduleName:R},X=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(696),t.e(752),t.e(951),t.e(78),t.e(501),t.e(281)]).then(t.bind(t,7281))}),V),J=(0,i.getAsyncLifecycle)((function(){return t.e(733).then(t.bind(t,7733))}),V),Q=(0,i.getAsyncLifecycle)((function(){return t.e(391).then(t.bind(t,391))}),{featureName:"nav-items",moduleName:R}),Y=(0,i.getAsyncLifecycle)((function(){return t.e(541).then(t.bind(t,1541))}),V),G=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(752),t.e(951),t.e(206),t.e(316)]).then(t.bind(t,7316))}),V),K=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(951),t.e(206),t.e(412)]).then(t.bind(t,6412))}),V),nn=(0,i.getSyncLifecycle)((function(){return(0,f.Z)({page:"patients",title:"Patients"})}),V),en=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(696),t.e(752),t.e(951),t.e(78),t.e(501),t.e(594)]).then(t.bind(t,3594))}),V),tn=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(696),t.e(951),t.e(78),t.e(526),t.e(937)]).then(t.bind(t,7937))}),V),an=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(951),t.e(526),t.e(47)]).then(t.bind(t,5047))}),V),on=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(224),t.e(951),t.e(526),t.e(47)]).then(t.bind(t,5047))}),V),sn=(0,i.getSyncLifecycle)((U=function(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{},i=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(t).filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})))),i.forEach((function(e){H(n,e,t[e])}))}return n}({},{slot:"patient-chart-offline-actions-dashboard-slot",columns:1,path:"Offline Actions",title:"Offline Actions"}),W=null!=(W={title:function(){var n;return Promise.resolve(null!==(q=null===(n=window.i18next)||void 0===n?void 0:n.t("offline_actions_link",{defaultValue:"Offline Actions",ns:R}))&&void 0!==q?q:"Offline Actions")}})?W:{},Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(W)):function(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t.push.apply(t,i)}return t}(Object(W)).forEach((function(n){Object.defineProperty(U,n,Object.getOwnPropertyDescriptor(W,n))})),F=U,function(n){var e=n.basePath;return s().createElement(r.BrowserRouter,null,s().createElement(p,{basePath:e,path:F.path,title:F.title}))}),V),ln=(0,i.getAsyncLifecycle)((function(){return Promise.all([t.e(297),t.e(538)]).then(t.bind(t,3538))}),V);function rn(){(0,i.defineConfigSchema)(R,{}),(0,i.setupDynamicOfflineDataHandler)({id:"esm-offline-tools-app:patient",displayName:"Offline tools",type:"patient",isSynced:function(n){return d((function(){var e,t,a;return g(this,(function(o){switch(o.label){case 0:return e=["/ws/fhir2/R4/Patient/".concat(n)],t=e.map((function(n){return window.origin+(0,i.makeUrl)(n)})),[4,caches.open("omrs-spa-cache-v1")];case 1:return[4,o.sent().keys()];case 2:return a=o.sent().map((function(n){return n.url})),[2,t.every((function(n){return a.includes(n)}))]}}))}))()},sync:function(n){return d((function(){return g(this,(function(e){switch(e.label){case 0:return[4,(0,i.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:"/ws/fhir2/R4/Patient/".concat(n)})];case 1:return e.sent(),[4,(0,i.fetchCurrentPatient)(n,{headers:a.Q})];case 2:return e.sent(),[2]}}))}))()}}),(0,y.getOfflineSynchronizationStore)().subscribe((function(n){n.synchronization||(E=!0),E&&n.synchronization&&(E=!1,I++,(0,y.showNotification)({title:(0,h.getI18n)().t("offlineActionsSynchronizationNotificationTitle","Upload"),description:s().createElement(N,{mySynchronizationIndex:I}),action:s().createElement(B,{mySynchronizationIndex:I})}))})),(0,i.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/").concat(a._.offlineTools),title:"Offline Tools",parent:"".concat(window.spaBase,"/").concat(a._.home)},{path:"".concat(window.spaBase,"/").concat(a._.offlineToolsPatients),title:"Patients",parent:"".concat(window.spaBase,"/").concat(a._.offlineTools)},{path:"".concat(window.spaBase,"/").concat(a._.offlineToolsPatientOfflineData),title:"Data",parent:"".concat(window.spaBase,"/").concat(a._.offlineToolsPatients)},{path:"".concat(window.spaBase,"/").concat(a._.offlineToolsActions),title:"Actions",parent:"".concat(window.spaBase,"/").concat(a._.offlineTools)}])}},8613:(n,e,t)=>{"use strict";t.d(e,{Z:()=>l});var i=t(5776),a=t.n(i),o=t(4610),s=t(1217);function l(n){var e=n.page,t=n.title;return a().createElement("div",{key:e},a().createElement(o.ConfigurableLink,{to:"${openmrsSpaBase}/"+s._.offlineTools+(e?"/".concat(e):""),className:"cds--side-nav__link"},t))}},3979:(n,e,t)=>{var i={"./am.json":[8788,625],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./he.json":[5833,833],"./km.json":[7807,807]};function a(n){if(!t.o(i,n))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[n],a=e[0];return t.e(e[1]).then((()=>t(a)))}a.keys=()=>Object.keys(i),a.id=3979,n.exports=a}}]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see 224.js.LICENSE.txt */
|
|
2
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_offline_tools_app=globalThis.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[224],{2173:(t,e,n)=>{var r=n(5776),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,d=r[1];return a((function(){i.value=n,i.getSnapshot=e,c(i)&&d({inst:i})}),[t,n,e]),s((function(){return c(i)&&d({inst:i}),t((function(){c(i)&&d({inst:i})}))}),[t]),u(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},1374:(t,e,n)=>{t.exports=n(2173)},7487:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(8670);const i=function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return-1};var o=Array.prototype.splice;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))},s.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},s.prototype.has=function(t){return i(this.__data__,t)>-1},s.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const a=s},6763:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(948),i=n(658);const o=(0,r.Z)(i.Z,"Map")},6776:(t,e,n)=>{n.d(e,{Z:()=>f});const r=(0,n(948).Z)(Object,"create");var i=Object.prototype.hasOwnProperty;var o=Object.prototype.hasOwnProperty;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0},s.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},s.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};const a=s;var u=n(7487),c=n(6763);const d=function(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(c.Z||u.Z),string:new a}},l.prototype.delete=function(t){var e=d(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return d(this,t).get(t)},l.prototype.has=function(t){return d(this,t).has(t)},l.prototype.set=function(t,e){var n=d(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const f=l},7851:(t,e,n)=>{n.d(e,{Z:()=>r});const r=n(658).Z.Symbol},1258:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(7851),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.Z?r.Z.toStringTag:void 0;var u=Object.prototype.toString;var c=r.Z?r.Z.toStringTag:void 0;const d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}(t):function(t){return u.call(t)}(t)}},5852:(t,e,n)=>{n.d(e,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},948:(t,e,n)=>{n.d(e,{Z:()=>v});var r=n(3200);const i=n(658).Z["__core-js_shared__"];var o,s=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";var a=n(7275),u=Function.prototype.toString;var c=/^\[object .+?Constructor\]$/,d=Function.prototype,l=Object.prototype,f=d.toString,h=l.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const _=function(t){return!(!(0,a.Z)(t)||(e=t,s&&s in e))&&((0,r.Z)(t)?p:c).test(function(t){if(null!=t){try{return u.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e},v=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return _(n)?n:void 0}},658:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(5852),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.Z||i||Function("return this")()},8670:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},3200:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(1258),i=n(7275);const o=function(t){if(!(0,i.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},7275:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4126:(t,e,n)=>{n.d(e,{ZP:()=>u});var r=n(5776),i=n(1374),o=n(
|
|
2
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_offline_tools_app=globalThis.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[224],{2173:(t,e,n)=>{var r=n(5776),i="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},o=r.useState,s=r.useEffect,a=r.useLayoutEffect,u=r.useDebugValue;function c(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!i(t,n)}catch(t){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var n=e(),r=o({inst:{value:n,getSnapshot:e}}),i=r[0].inst,d=r[1];return a((function(){i.value=n,i.getSnapshot=e,c(i)&&d({inst:i})}),[t,n,e]),s((function(){return c(i)&&d({inst:i}),t((function(){c(i)&&d({inst:i})}))}),[t]),u(n),n};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:d},1374:(t,e,n)=>{t.exports=n(2173)},7487:(t,e,n)=>{n.d(e,{Z:()=>a});var r=n(8670);const i=function(t,e){for(var n=t.length;n--;)if((0,r.Z)(t[n][0],e))return n;return-1};var o=Array.prototype.splice;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(t){var e=this.__data__,n=i(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))},s.prototype.get=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]},s.prototype.has=function(t){return i(this.__data__,t)>-1},s.prototype.set=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};const a=s},6763:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(948),i=n(658);const o=(0,r.Z)(i.Z,"Map")},6776:(t,e,n)=>{n.d(e,{Z:()=>f});const r=(0,n(948).Z)(Object,"create");var i=Object.prototype.hasOwnProperty;var o=Object.prototype.hasOwnProperty;function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=function(){this.__data__=r?r(null):{},this.size=0},s.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},s.prototype.get=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0},s.prototype.has=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)},s.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this};const a=s;var u=n(7487),c=n(6763);const d=function(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map};function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=function(){this.size=0,this.__data__={hash:new a,map:new(c.Z||u.Z),string:new a}},l.prototype.delete=function(t){var e=d(this,t).delete(t);return this.size-=e?1:0,e},l.prototype.get=function(t){return d(this,t).get(t)},l.prototype.has=function(t){return d(this,t).has(t)},l.prototype.set=function(t,e){var n=d(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};const f=l},7851:(t,e,n)=>{n.d(e,{Z:()=>r});const r=n(658).Z.Symbol},1258:(t,e,n)=>{n.d(e,{Z:()=>d});var r=n(7851),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r.Z?r.Z.toStringTag:void 0;var u=Object.prototype.toString;var c=r.Z?r.Z.toStringTag:void 0;const d=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}(t):function(t){return u.call(t)}(t)}},5852:(t,e,n)=>{n.d(e,{Z:()=>r});const r="object"==typeof global&&global&&global.Object===Object&&global},948:(t,e,n)=>{n.d(e,{Z:()=>v});var r=n(3200);const i=n(658).Z["__core-js_shared__"];var o,s=(o=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+o:"";var a=n(7275),u=Function.prototype.toString;var c=/^\[object .+?Constructor\]$/,d=Function.prototype,l=Object.prototype,f=d.toString,h=l.hasOwnProperty,p=RegExp("^"+f.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const _=function(t){return!(!(0,a.Z)(t)||(e=t,s&&s in e))&&((0,r.Z)(t)?p:c).test(function(t){if(null!=t){try{return u.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t));var e},v=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return _(n)?n:void 0}},658:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(5852),i="object"==typeof self&&self&&self.Object===Object&&self;const o=r.Z||i||Function("return this")()},8670:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t,e){return t===e||t!=t&&e!=e}},3200:(t,e,n)=>{n.d(e,{Z:()=>o});var r=n(1258),i=n(7275);const o=function(t){if(!(0,i.Z)(t))return!1;var e=(0,r.Z)(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},7275:(t,e,n)=>{n.d(e,{Z:()=>r});const r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4126:(t,e,n)=>{n.d(e,{ZP:()=>u});var r=n(5776),i=n(1374),o=n(5951);const s=r.use||(t=>{if("pending"===t.status)throw t;if("fulfilled"===t.status)return t.value;throw"rejected"===t.status?t.reason:(t.status="pending",t.then((e=>{t.status="fulfilled",t.value=e}),(e=>{t.status="rejected",t.reason=e})),t)}),a={dedupe:!0},u=(o.OBJECT.defineProperty(o.SWRConfig,"defaultValue",{value:o.defaultConfig}),(0,o.withArgs)(((t,e,n)=>{const{cache:u,compare:c,suspense:d,fallbackData:l,revalidateOnMount:f,revalidateIfStale:h,refreshInterval:p,refreshWhenHidden:_,refreshWhenOffline:v,keepPreviousData:g}=n,[y,E,b,S]=o.SWRGlobalState.get(u),[O,R]=(0,o.serialize)(t),Z=(0,r.useRef)(!1),m=(0,r.useRef)(!1),j=(0,r.useRef)(O),w=(0,r.useRef)(e),T=(0,r.useRef)(n),U=()=>T.current,V=()=>U().isVisible()&&U().isOnline(),[C,L,k,I]=(0,o.createCacheHelper)(u,O),F=(0,r.useRef)({}).current,P=(0,o.isUndefined)(l)?n.fallback[O]:l,A=(t,e)=>{for(const n in F){const r=n;if("data"===r){if(!c(t[r],e[r])){if(!(0,o.isUndefined)(t[r]))return!1;if(!c(H,e[r]))return!1}}else if(e[r]!==t[r])return!1}return!0},D=(0,r.useMemo)((()=>{const t=!!O&&!!e&&((0,o.isUndefined)(f)?!U().isPaused()&&!d&&(!!(0,o.isUndefined)(h)||h):f),n=e=>{const n=(0,o.mergeObjects)(e);return delete n._k,t?{isValidating:!0,isLoading:!0,...n}:n},r=C(),i=I(),s=n(r),a=r===i?s:n(i);let u=s;return[()=>{const t=n(C());return A(t,u)?(u.data=t.data,u.isLoading=t.isLoading,u.isValidating=t.isValidating,u.error=t.error,u):(u=t,t)},()=>a]}),[u,O]),z=(0,i.useSyncExternalStore)((0,r.useCallback)((t=>k(O,((e,n)=>{A(n,e)||t()}))),[u,O]),D[0],D[1]),N=!Z.current,x=y[O]&&y[O].length>0,$=z.data,M=(0,o.isUndefined)($)?P:$,G=z.error,W=(0,r.useRef)(M),H=g?(0,o.isUndefined)($)?W.current:$:M,Y=!(x&&!(0,o.isUndefined)(G))&&(N&&!(0,o.isUndefined)(f)?f:!U().isPaused()&&(d?!(0,o.isUndefined)(M)&&h:(0,o.isUndefined)(M)||h)),q=!!(O&&e&&N&&Y),B=(0,o.isUndefined)(z.isValidating)?q:z.isValidating,J=(0,o.isUndefined)(z.isLoading)?q:z.isLoading,K=(0,r.useCallback)((async t=>{const e=w.current;if(!O||!e||m.current||U().isPaused())return!1;let r,i,s=!0;const a=t||{},u=!b[O]||!a.dedupe,d=()=>o.IS_REACT_LEGACY?!m.current&&O===j.current&&Z.current:O===j.current,l={isValidating:!1,isLoading:!1},f=()=>{L(l)},h=()=>{const t=b[O];t&&t[1]===i&&delete b[O]},p={isValidating:!0};(0,o.isUndefined)(C().data)&&(p.isLoading=!0);try{if(u&&(L(p),n.loadingTimeout&&(0,o.isUndefined)(C().data)&&setTimeout((()=>{s&&d()&&U().onLoadingSlow(O,n)}),n.loadingTimeout),b[O]=[e(R),(0,o.getTimestamp)()]),[r,i]=b[O],r=await r,u&&setTimeout(h,n.dedupingInterval),!b[O]||b[O][1]!==i)return u&&d()&&U().onDiscarded(O),!1;l.error=o.UNDEFINED;const t=E[O];if(!(0,o.isUndefined)(t)&&(i<=t[0]||i<=t[1]||0===t[1]))return f(),u&&d()&&U().onDiscarded(O),!1;const a=C().data;l.data=c(a,r)?a:r,u&&d()&&U().onSuccess(r,O,n)}catch(t){h();const e=U(),{shouldRetryOnError:n}=e;e.isPaused()||(l.error=t,u&&d()&&(e.onError(t,O,e),(!0===n||(0,o.isFunction)(n)&&n(t))&&V()&&e.onErrorRetry(t,O,e,(t=>{const e=y[O];e&&e[0]&&e[0](o.revalidateEvents.ERROR_REVALIDATE_EVENT,t)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0}),[O,u]),Q=(0,r.useCallback)(((...t)=>(0,o.internalMutate)(u,j.current,...t)),[]);if((0,o.useIsomorphicLayoutEffect)((()=>{w.current=e,T.current=n,(0,o.isUndefined)($)||(W.current=$)})),(0,o.useIsomorphicLayoutEffect)((()=>{if(!O)return;const t=K.bind(o.UNDEFINED,a);let e=0;const n=(0,o.subscribeCallback)(O,y,((n,r={})=>{if(n==o.revalidateEvents.FOCUS_EVENT){const n=Date.now();U().revalidateOnFocus&&n>e&&V()&&(e=n+U().focusThrottleInterval,t())}else if(n==o.revalidateEvents.RECONNECT_EVENT)U().revalidateOnReconnect&&V()&&t();else{if(n==o.revalidateEvents.MUTATE_EVENT)return K();if(n==o.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(r)}}));return m.current=!1,j.current=O,Z.current=!0,L({_k:R}),Y&&((0,o.isUndefined)(M)||o.IS_SERVER?t():(0,o.rAF)(t)),()=>{m.current=!0,n()}}),[O]),(0,o.useIsomorphicLayoutEffect)((()=>{let t;function e(){const e=(0,o.isFunction)(p)?p(C().data):p;e&&-1!==t&&(t=setTimeout(n,e))}function n(){C().error||!_&&!U().isVisible()||!v&&!U().isOnline()?e():K(a).then(e)}return e(),()=>{t&&(clearTimeout(t),t=-1)}}),[p,_,v,O]),(0,r.useDebugValue)(H),d&&(0,o.isUndefined)(M)&&O){if(!o.IS_REACT_LEGACY&&o.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");w.current=e,T.current=n,m.current=!1;const t=S[O];if(!(0,o.isUndefined)(t)){const e=Q(t);s(e)}if(!(0,o.isUndefined)(G))throw G;{const t=K(a);(0,o.isUndefined)(H)||(t.status="fulfilled",t.value=!0),s(t)}}return{mutate:Q,get data(){return F.data=!0,H},get error(){return F.error=!0,G},get isValidating(){return F.isValidating=!0,B},get isLoading(){return F.isLoading=!0,J}}})))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_offline_tools_app=globalThis.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"emptyStateText":"
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_offline_tools_app=globalThis.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"emptyStateText":"No hay {displayText} para mostrar","home":"Inicio","homeHeader":"Inicio offline","homeOverviewCardOfflineActionsFailedToUpload":"Error al cargar","homeOverviewCardOfflineActionsHeader":"Acciones offline","homeOverviewCardOfflineActionsPendingUpload":"Pendiente de carga","homeOverviewCardPatientsDownloaded":"Descargados","homeOverviewCardPatientsHeader":"Pacientes","homeOverviewCardPatientsNewlyRegistered":"Recién registrados","homeOverviewCardView":"Ver","offlineActions":"Acciones offline","offlineActionsDeleteConfirmationModalCancel":"Cancelar","offlineActionsDeleteConfirmationModalConfirm":"Eliminar para siempre","offlineActionsDeleteConfirmationModalContent":"¿Estás seguro de que deseas eliminar todas las acciones offline seleccionadas? ¡Esto no se puede deshacer!","offlineActionsDeleteConfirmationModalTitle":"Eliminar acciones offline","offlineActionsHeader":"Acciones offline","offlineActionsNoActionsEmptyStateContent":"Todas las acciones offline se han cargado correctamente\\ny se han fusionado con los registros de pacientes en línea.","offlineActionsNoActionsEmptyStateImageAlt":"Imagen de ninguna acción pendiente","offlineActionsNoActionsEmptyStateTitle":"No hay acciones pendientes de carga","offlineActionsTableAction":"Acción","offlineActionsTableCreatedOn":"Fecha y Hora","offlineActionsTableDeleteAction":"Eliminar acción","offlineActionsTableDeleteActions_one":"Eliminar {count} acciones","offlineActionsTableDeleteActions_many":"Eliminar {count} acciones","offlineActionsTableDeleteActions_other":"Eliminar {count} acciones","offlineActionsTableError":"Error","offlineActionsTablePatient":"Paciente","offlineActionsUpdateOfflinePatients":"Actualizar pacientes offline","offlinePatients":"Pacientes offline","offlinePatients_lower":"pacientes offline","offlinePatientsHeader":"Pacientes offline","offlinePatientsTableDeleteConfirmationModalCancel":"Cancelar","offlinePatientsTableDeleteConfirmationModalConfirm":"Eliminar pacientes","offlinePatientsTableDeleteConfirmationModalContent":"¿Estás seguro de que deseas eliminar todos los pacientes seleccionados de la lista offline? Sus registros ya no estarán disponibles en modo offline y cualquier paciente recién registrado se eliminará permanentemente.","offlinePatientsTableDeleteConfirmationModalTitle":"Eliminar pacientes offline","offlinePatientsTableHeaderAge":"Edad","offlinePatientsTableHeaderGender":"Género","offlinePatientsTableHeaderLastUpdated":"Última actualización","offlinePatientsTableHeaderName":"Nombre","offlinePatientsTableLastUpdatedDownloading":"Descargando...","offlinePatientsTableLastUpdatedError":"error","offlinePatientsTableLastUpdatedErrors":"errores","offlinePatientsTableLastUpdatedNotYetSynchronized":"No sincronizado","offlinePatientsTableLastUpdatedOutdatedData":"Datos desactualizados","offlinePatientsTableNameNewlyRegistered":"Nuevo","offlinePatientsTableRemoveFromOfflineList":"Eliminar de la lista","offlinePatientsTableSearchLabel":"Buscar en esta lista","offlinePatientsTableSearchPlaceholder":"Buscar en esta lista","offlinePatientsTableTitle":"Pacientes offline","offlinePatientsTableUpdatePatient":"Actualizar paciente","offlinePatientsTableUpdatePatients":"Actualizar pacientes","offlinePatientSyncDetailsDownloadedHeader":"Descargado en este dispositivo","offlinePatientSyncDetailsFailedHeader":"Hubo un error al descargar los siguientes elementos","offlinePatientSyncDetailsFallbackErrorMessage":"Error desconocido.","offlinePatientSyncDetailsHeader":"Detalles de pacientes offline","offlineReady":"Listo offline","offlineToolsAppMenuLink":"Herramientas offline"}')}}]);
|