@openmrs/esm-patient-allergies-app 3.0.3-pre.913 → 3.0.3-pre.948

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/114.js +2 -0
  2. package/dist/114.js.map +1 -0
  3. package/dist/151.js +2 -0
  4. package/dist/151.js.map +1 -0
  5. package/dist/190.js +3 -0
  6. package/dist/{791.js.LICENSE.txt → 190.js.LICENSE.txt} +0 -0
  7. package/dist/190.js.map +1 -0
  8. package/dist/339.js +1 -1
  9. package/dist/339.js.map +1 -1
  10. package/dist/373.js +2 -0
  11. package/dist/373.js.map +1 -0
  12. package/dist/43.js +1 -1
  13. package/dist/43.js.map +1 -1
  14. package/dist/476.js +2 -0
  15. package/dist/476.js.map +1 -0
  16. package/dist/513.js +2 -0
  17. package/dist/513.js.map +1 -0
  18. package/dist/574.js +1 -1
  19. package/dist/618.js +2 -0
  20. package/dist/618.js.map +1 -0
  21. package/dist/622.js +1 -1
  22. package/dist/622.js.map +1 -1
  23. package/dist/625.js +2 -0
  24. package/dist/625.js.map +1 -0
  25. package/dist/71.js +3 -0
  26. package/dist/{949.js.LICENSE.txt → 71.js.LICENSE.txt} +0 -0
  27. package/dist/71.js.map +1 -0
  28. package/dist/817.js +1 -1
  29. package/dist/817.js.map +1 -1
  30. package/dist/843.js +2 -0
  31. package/dist/843.js.map +1 -0
  32. package/dist/932.js +2 -0
  33. package/dist/932.js.map +1 -0
  34. package/dist/962.js +3 -0
  35. package/dist/962.js.LICENSE.txt +20 -0
  36. package/dist/962.js.map +1 -0
  37. package/dist/openmrs-esm-patient-allergies-app.js +1 -1
  38. package/dist/openmrs-esm-patient-allergies-app.js.buildmanifest.json +169 -117
  39. package/dist/openmrs-esm-patient-allergies-app.js.map +1 -1
  40. package/package.json +3 -3
  41. package/src/allergies/allergies-tile.component.tsx +17 -9
  42. package/src/allergies/allergies-tile.test.tsx +39 -0
  43. package/translations/en.json +1 -0
  44. package/dist/155.js +0 -2
  45. package/dist/155.js.map +0 -1
  46. package/dist/226.js +0 -2
  47. package/dist/226.js.map +0 -1
  48. package/dist/36.js +0 -2
  49. package/dist/36.js.map +0 -1
  50. package/dist/384.js +0 -2
  51. package/dist/384.js.map +0 -1
  52. package/dist/428.js +0 -2
  53. package/dist/428.js.map +0 -1
  54. package/dist/556.js +0 -2
  55. package/dist/556.js.map +0 -1
  56. package/dist/671.js +0 -2
  57. package/dist/671.js.map +0 -1
  58. package/dist/791.js +0 -3
  59. package/dist/791.js.map +0 -1
  60. package/dist/832.js +0 -3
  61. package/dist/832.js.LICENSE.txt +0 -5
  62. package/dist/832.js.map +0 -1
  63. package/dist/949.js +0 -3
  64. package/dist/949.js.map +0 -1
package/dist/114.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_patient_allergies_app=self.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[114],{4114:(n,e,t)=>{t.r(e),t.d(e,{default:()=>H});var i=t(9902),a=t.n(i),o=t(8011),s=t(8580),r=t(1145),l=t(7030),c=t(160),p=t(4232),d=t(364),g=t(7500),h=t(8804),u=t(1358),f=t(2427),b=t(3783),m=t(1354),y=t.n(m),A=t(1583),$=t.n(A),x=t(7378),w=t.n(x),v=t(5993),k=t.n(v),C=t(4154),B=t.n(C),z=t(8141),E=t.n(z),M=t(6470),I={};I.styleTagTransform=E(),I.setAttributes=k(),I.insert=w().bind(null,"head"),I.domAPI=$(),I.insertStyleElement=B(),y()(M.Z,I);const L=M.Z&&M.Z.locals?M.Z.locals:void 0;var S=t(3907),_=t(4924),q=t(607),T=t(9035),G=t(8394);function F(){return F=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},F.apply(this,arguments)}const H=n=>{let{patient:e,showAddAllergy:t,basePath:i}=n;const{t:m}=(0,_.useTranslation)(),y=m("allergyIntolerances","allergy intolerances"),A=m("allergies","Allergies"),$=m("seeAll","See all"),x=window.spaBase+i+"/allergies",{data:w,isError:v,isLoading:k,isValidating:C}=(0,q.PI)(e.id),{results:B,goTo:z,currentPage:E}=(0,T.usePagination)(w??[],G.aJ),M=[{key:"display",header:m("name","Name")},{key:"reactions",header:m("reactions","Reactions")}],I=a().useMemo((()=>B?.map((n=>({...n,reactions:`${n.reactionManifestations?.join(", ")||""} ${n.reactionSeverity?`(${n.reactionSeverity})`:""}`})))),[B]),H=a().useCallback((()=>(0,S.wn)(G.Hz)),[]);return k?a().createElement(s.Z,{role:"progressbar"}):v?a().createElement(S.Te,{error:v,headerTitle:A}):w?.length?a().createElement("div",{className:L.widgetCard},a().createElement(S.Ol,{title:A},a().createElement("span",null,C?a().createElement(r.Z,null):null),t&&a().createElement(l.Z,{kind:"ghost",renderIcon:o.Z,iconDescription:"Add allergies",onClick:H},m("add","Add"))),a().createElement(c.Z,null,a().createElement(p.ZP,{rows:I,headers:M,isSortable:!0,size:"short"},(n=>{let{rows:e,headers:t,getHeaderProps:i,getTableProps:o}=n;return a().createElement(d.Z,F({},o(),{useZebraStyles:!0}),a().createElement(g.Z,null,a().createElement(h.Z,null,t.map((n=>a().createElement(u.Z,F({className:`${L.productiveHeading01} ${L.text02}`},i({header:n,isSortable:n.isSortable})),n.header?.content??n.header))))),a().createElement(f.Z,null,e.map((n=>a().createElement(h.Z,{key:n.id},n.cells.map((n=>a().createElement(b.Z,{key:n.id},n.value?.content??n.value))))))))}))),a().createElement(S.e1,{currentItems:B.length,onPageNumberChange:n=>{let{page:e}=n;return z(e)},pageNumber:E,pageSize:G.aJ,pageUrl:x,totalItems:w.length,urlLabel:$})):a().createElement(S.ub,{displayText:y,headerTitle:A,launchForm:H})}},607:(n,e,t)=>{t.d(e,{PI:()=>s});var i=t(5482),a=t(8260),o=t(9035);function s(n){const{data:e,error:t,isValidating:a}=(0,i.ZP)(`${o.fhirBaseUrl}/AllergyIntolerance?patient=${n}`,o.openmrsFetch),s=e?.data?.total>0?e?.data.entry.map((n=>n.resource??[])).map(r).sort(((n,e)=>e.lastUpdated>n.lastUpdated?1:-1)):null;return{data:e?s:null,isError:t,isLoading:!e&&!t,isValidating:a}}function r(n){const e=n?.reaction[0]?.manifestation?.map((n=>n.coding[0]?.display));return{id:n?.id,clinicalStatus:n?.clinicalStatus?.coding[0]?.display,criticality:n?.criticality,display:n?.code?.coding[0]?.display,recordedDate:n?.recordedDate,recordedBy:n?.recorder?.display,recorderType:n?.recorder?.type,note:n?.note?.[0]?.text,reactionToSubstance:n?.reaction[0]?.substance?.coding[1]?.display,reactionManifestations:e,reactionSeverity:(0,a.Z)(n?.reaction[0]?.severity),lastUpdated:n?.meta?.lastUpdated}}},6470:(n,e,t)=>{t.d(e,{Z:()=>r});var i=t(1799),a=t.n(i),o=t(2609),s=t.n(o)()(a());s.push([n.id,"html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,select,input,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-patient-allergies__allergies-overview__skeleton___Sn9mT{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.-esm-patient-allergies__allergies-overview__widgetCard___HVkA9{border:1px solid #e0e0e0}","",{version:3,sources:["webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss","webpack://./src/allergies/allergies-overview.scss"],names:[],mappings:"AAmCI,2ZAiFE,SAAA,CACA,QAAA,CACA,QAAA,CACA,YAAA,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E,mBAAA,CACA,qBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,KACE,UAAA,CACA,mBAAA,CACA,qBAAA,CAAA,CC3ON,gEACE,wBAAA",sourcesContent:["//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n@import './vendor/@carbon/elements/scss/type/reset';\n@import './vendor/@carbon/elements/scss/icons/mixins';\n\n/// Resets default browser styling\n/// @access public\n/// @group global-reset\n@mixin reset {\n @if variable-exists(css--reset) == false or $css--reset == false {\n box-sizing: border-box;\n padding: 0;\n border: 0;\n margin: 0;\n font-family: inherit;\n font-size: 100%;\n vertical-align: baseline;\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n }\n}\n\n@include exports('css--reset') {\n @if variable-exists(css--reset) == false or $css--reset == true {\n // http://cssreset.com/scripts/eric-meyer-reset-css/\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n padding: 0;\n border: 0;\n margin: 0;\n font: inherit;\n font-size: 100%;\n vertical-align: baseline;\n }\n\n // Chrome 62 fix\n button,\n select,\n input,\n textarea {\n border-radius: 0;\n font-family: inherit;\n }\n\n input[type='text']::-ms-clear {\n display: none;\n }\n\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n sup {\n vertical-align: super;\n }\n\n sub {\n vertical-align: sub;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n blockquote,\n q {\n quotes: none;\n }\n\n blockquote::before,\n blockquote::after,\n q::before,\n q::after {\n content: '';\n }\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n * {\n box-sizing: border-box;\n }\n\n // Fix to remove added margins on buttons in safari (see #5155)\n button {\n margin: 0;\n }\n\n @include carbon--type-reset;\n @include carbon--icons;\n }\n}\n\n@include exports('css--default-type') {\n @if variable-exists(css--default-type) == false or $css--default-type == true\n {\n @include carbon--default-type;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/convert';\n@import 'font-family';\n@import 'styles';\n\n/// Include a type reset for a given body and mono font family\n/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element\n/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-reset(\n // TODO: remove in next major release. This has been replaced with 100%\n $base-font-size: $carbon--base-font-size,\n $body-font-family: carbon--font-family('sans'),\n $mono-font-family: carbon--font-family('mono')\n) {\n html {\n font-size: 100%;\n }\n\n body {\n @include carbon--font-weight('regular');\n\n font-family: $body-font-family;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n }\n\n code {\n font-family: $mono-font-family;\n }\n\n strong {\n @include carbon--font-weight('semibold');\n }\n}\n\n/// Include default type styles\n/// @access public\n/// @group @carbon/type\n@mixin carbon--default-type {\n h1 {\n @include carbon--type-style('productive-heading-06');\n }\n\n h2 {\n @include carbon--type-style('productive-heading-05');\n }\n\n h3 {\n @include carbon--type-style('productive-heading-04');\n }\n\n h4 {\n @include carbon--type-style('productive-heading-03');\n }\n\n h5 {\n @include carbon--type-style('productive-heading-02');\n }\n\n h6 {\n @include carbon--type-style('productive-heading-01');\n }\n\n p {\n @include carbon--type-style('body-long-02');\n }\n\n a {\n @if global-variable-exists('carbon--theme') and\n map-has-key($carbon--theme, 'link-01')\n {\n color: map-get($carbon--theme, 'link-01');\n } @else {\n color: #0062fe;\n }\n }\n\n em {\n font-style: italic;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans\n/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-families: (\n 'mono':\n unquote(\n \"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace\"\n ),\n 'sans': unquote(\"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-condensed':\n unquote(\"'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-hebrew':\n unquote(\n \"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif\"\n ),\n 'serif': unquote(\"'IBM Plex Serif', 'Georgia', Times, serif\"),\n) !default;\n\n/// Get the font-family for an IBM Plex font\n/// @param {String} $name\n/// @return {String}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-family($name) {\n @return map-get($carbon--font-families, $name);\n}\n\n/// Include the `font-family` definition for the given name in your selector\n/// @param {String} $name\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-family($name) {\n font-family: carbon--font-family($name);\n}\n\n/// Suggested font weights to be used in product\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-weights: (\n 'light': 300,\n 'regular': 400,\n 'semibold': 600,\n) !default;\n\n/// Retrieve the font-weight value for a given name\n/// @param {String} $weight\n/// @return {Number}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-weight($weight) {\n @return map-get($carbon--font-weights, $weight);\n}\n\n/// Set the `font-weight` property with the value for a given name\n/// @param {String} $weight\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-weight($weight) {\n font-weight: carbon--font-weight($weight);\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// Makes SVGs accessible in high contrast mode\n/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345\n/// @access public\n/// @group @carbon/icons\n@mixin carbon--icons {\n @media screen and (-ms-high-contrast: active) {\n svg {\n fill: ButtonText;\n }\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-02: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-02: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--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$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--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$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--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$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--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$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--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$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--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$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--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$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);\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 $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 [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--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 carbon--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 [$carbon--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: $carbon--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: carbon--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: carbon--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$custom-property-prefix: 'cds' !default;\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 [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--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 // Otherwise remove token breakpoints\n @if $fluid == true and map-has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, map-remove($token, 'breakpoints'));\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n","//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n//----------------------------------------------\n// Mixins\n// ---------------------------------------------\n//\n// Category || Description\n// ===========================================\n// Misc || General helper @mixins\n// Deprecated || Not used anymore\n// ===========================================\n\n//----------------------------------------------\n// Misc\n// ---------------------------------------------\n\n@import 'vars';\n@import 'css--reset';\n@import 'typography';\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n\n/// Adds text overflow styling\n/// @access public\n/// @param {Number} $width [false] - Value of width if you want to set width, else nothing\n/// @example @include text-overflow(300px);\n/// @group global-helpers\n@mixin text-overflow($width: false) {\n display: block;\n overflow-x: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n // apply a width if width parameter exists\n @if ($width) {\n width: $width;\n }\n}\n\n/// Adds placeholder text color\n/// @access public\n/// @example @include placeholder-colors;\n/// @group global-helpers\n@mixin placeholder-colors {\n color: $text-05;\n opacity: 1;\n}\n\n/// Adds box shadow\n/// @access public\n/// @example @include box-shadow;\n/// @group global-helpers\n@mixin box-shadow {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n\n/// Adds outline styles depending on specific type\n/// @access public\n/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset`\n/// @example @include focus-outline('outline');\n/// @group global-helpers\n@mixin focus-outline($type: 'border') {\n @if ($type == 'border') {\n outline: 1px solid $focus;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'blurred') {\n box-shadow: 0 0 0 3px $focus;\n outline: 1px solid transparent;\n }\n\n @if ($type == 'outline') {\n outline: 2px solid $focus;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'outline-compat') {\n box-sizing: border-box;\n border: 2px solid $focus;\n\n @media screen and (prefers-contrast) {\n border-style: dotted;\n }\n }\n\n @if ($type == 'invalid') {\n outline: 2px solid $support-01;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'reset') {\n outline: 2px solid transparent;\n outline-offset: -2px;\n }\n}\n\n/// Adds rotational transformation\n/// @access public\n/// @param {Number} $deg - How many degrees to rotate\n/// @param {Number} $speed - Speed of rotation\n/// @param {Value} $origin [center] - `transform-origin`\n/// @example @include rotate(90deg, 300ms);\n/// @group global-helpers\n@mixin rotate($deg, $speed, $origin: center) {\n transform: rotate($deg);\n transform-origin: $origin;\n transition: transform $speed;\n}\n\n/// Adds styles to hide content\n/// @access public\n/// @group global-helpers\n@mixin hidden {\n position: absolute;\n overflow: hidden;\n width: 1px;\n height: 1px;\n padding: 0;\n border: 0;\n margin: -1px;\n clip: rect(0, 0, 0, 0);\n visibility: inherit;\n white-space: nowrap;\n}\n\n/// Resets button styles\n/// @access public\n/// @param {Bool} $width [true] - Sets width to 100% if true\n/// @example @include button-reset($width: false);\n/// @group global-helpers\n@mixin button-reset($width: true) {\n @include reset;\n\n display: inline-block;\n padding: 0;\n border: 0;\n appearance: none;\n background: none;\n cursor: pointer;\n\n @if ($width == true) {\n width: 100%;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n}\n\n/// Skeleton loading animation\n/// @access public\n/// @example @include skeleton;\n/// @group global-helpers\n@mixin skeleton {\n position: relative;\n padding: 0;\n border: none;\n background: $skeleton-01;\n box-shadow: none;\n pointer-events: none;\n\n &:hover,\n &:focus,\n &:active {\n border: none;\n cursor: default;\n outline: none;\n }\n\n &::before {\n position: absolute;\n width: 100%;\n height: 100%;\n animation: 3000ms ease-in-out skeleton infinite;\n background: $skeleton-02;\n content: '';\n will-change: transform-origin, transform, opacity;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n}\n\n@include exports('skeleton') {\n @keyframes skeleton {\n 0% {\n opacity: 0.3;\n transform: scaleX(0);\n transform-origin: left;\n }\n 20% {\n opacity: 1;\n transform: scaleX(1);\n transform-origin: left;\n }\n 28% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 51% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 58% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 82% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 83% {\n transform: scaleX(1);\n transform-origin: left;\n }\n 96% {\n transform: scaleX(0);\n transform-origin: left;\n }\n 100% {\n opacity: 0.3;\n transform: scaleX(0);\n transform-origin: left;\n }\n }\n}\n\n/// Windows HCM Mixin\n/// @access public\n/// @example @include high-contrast-mode;\n/// @group global-helpers\n/// We should set HCM styles at the end of each file to ensure they are not overridden\n@mixin high-contrast-mode($type: '') {\n @media screen and (-ms-high-contrast: active),\n (forced-colors: active),\n (prefers-contrast) {\n @if ($type == 'icon-fill') {\n fill: ButtonText;\n }\n\n @if ($type == 'focus') {\n color: Highlight;\n outline: 1px solid Highlight;\n }\n\n @if ($type == 'outline') {\n outline: 1px solid transparent;\n }\n\n @if ($type == 'disabled') {\n color: GrayText;\n fill: GrayText;\n }\n\n @content;\n }\n}\n",'@import "~@openmrs/esm-styleguide/src/vars";\n@import "~carbon-components/src/globals/scss/vars";\n@import "~carbon-components/src/globals/scss/mixins";\n\n.widgetCard {\n border: 1px solid $ui-03;\n}\n'],sourceRoot:""}]),s.locals={widgetCard:"-esm-patient-allergies__allergies-overview__widgetCard___HVkA9",skeleton:"-esm-patient-allergies__allergies-overview__skeleton___Sn9mT"};const r=s}}]);
2
+ //# sourceMappingURL=114.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"114.js","mappings":"8bAWIA,EAAU,GAEdA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,WAAiB,gBAAiBM,E,qQCQnE,MA4FA,EA5F4D,IAA2C,IAA1C,QAAEC,EAAF,eAAWC,EAAX,SAA2BC,GAAe,EACrG,MAAM,EAAEC,IAAMC,EAAAA,E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AAiB9D,GAAS+D,SAAS,IAAIC,eAAejE,KAAKkE,GAAWA,EAAOA,OAAO,IAAIC,UAe9F,MAdkC,CAChC/E,GAAIa,GAASb,GACbgF,eAAgBnE,GAASmE,gBAAgBF,OAAO,IAAIC,QACpDE,YAAapE,GAASoE,YACtBF,QAASlE,GAASqE,MAAMJ,OAAO,IAAIC,QACnCI,aAActE,GAASsE,aACvBC,WAAYvE,GAASwE,UAAUN,QAC/BO,aAAczE,GAASwE,UAAUE,KACjCC,KAAM3E,GAAS2E,OAAO,IAAIC,KAC1BC,oBAAqB7E,GAAS+D,SAAS,IAAIe,WAAWb,OAAO,IAAIC,QACjEhE,uBAAwB4D,EACxB1D,kBAAkB2E,EAAAA,EAAAA,GAAW/E,GAAS+D,SAAS,IAAIiB,UACnDnB,YAAa7D,GAASiF,MAAMpB,e,iECxC5BqB,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOjG,GAAI,s9EAAu9E,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,qFAAqF,kHAAkH,wHAAwH,mHAAmH,mHAAmH,wFAAwF,qDAAqD,MAAQ,GAAG,SAAW,gsCAAgsC,eAAiB,CAAC,4sGAA4sG,6mEAA6mE,uiEAAuiE,igBAAigB,srnBAAsrnB,0mMAA0mM,+MAAqN,WAAa,MAExxsC+F,EAAwBG,OAAS,CAChC,WAAc,iEACd,SAAY,gEAEb","sources":["webpack://@openmrs/esm-patient-allergies-app/./src/allergies/allergies-overview.scss?04c0","webpack://@openmrs/esm-patient-allergies-app/./src/allergies/allergies-overview.component.tsx","webpack://@openmrs/esm-patient-allergies-app/./src/allergies/allergy-intolerance.resource.tsx","webpack://@openmrs/esm-patient-allergies-app/./src/allergies/allergies-overview.scss"],"sourcesContent":["\n import API from \"!../../../../node_modules/openmrs/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../node_modules/openmrs/node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../node_modules/openmrs/node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../node_modules/openmrs/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../node_modules/openmrs/node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../node_modules/openmrs/node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./allergies-overview.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./allergies-overview.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import React from 'react';\nimport Add16 from '@carbon/icons-react/es/add/16';\nimport {\n DataTableSkeleton,\n DataTable,\n Button,\n InlineLoading,\n Table,\n TableCell,\n TableContainer,\n TableBody,\n TableHead,\n TableHeader,\n TableRow,\n} from 'carbon-components-react';\nimport styles from './allergies-overview.scss';\nimport {\n CardHeader,\n EmptyState,\n ErrorState,\n launchPatientWorkspace,\n PatientChartPagination,\n} from '@openmrs/esm-patient-common-lib';\nimport { useTranslation } from 'react-i18next';\nimport { useAllergies } from './allergy-intolerance.resource';\nimport { usePagination } from '@openmrs/esm-framework';\nimport { allergiesToShowCount, patientAllergiesFormWorkspace } from '../constants';\n\ninterface AllergiesOverviewProps {\n basePath: string;\n patient: fhir.Patient;\n showAddAllergy: boolean;\n}\n\nconst AllergiesOverview: React.FC<AllergiesOverviewProps> = ({ patient, showAddAllergy, basePath }) => {\n const { t } = useTranslation();\n const displayText = t('allergyIntolerances', 'allergy intolerances');\n const headerTitle = t('allergies', 'Allergies');\n const urlLabel = t('seeAll', 'See all');\n const pageUrl = window.spaBase + basePath + '/allergies';\n\n const { data: allergies, isError, isLoading, isValidating } = useAllergies(patient.id);\n const { results: paginatedAllergies, goTo, currentPage } = usePagination(allergies ?? [], allergiesToShowCount);\n\n const tableHeaders = [\n {\n key: 'display',\n header: t('name', 'Name'),\n },\n {\n key: 'reactions',\n header: t('reactions', 'Reactions'),\n },\n ];\n\n const tableRows = React.useMemo(() => {\n return paginatedAllergies?.map((allergy) => ({\n ...allergy,\n reactions: `${allergy.reactionManifestations?.join(', ') || ''} ${\n allergy.reactionSeverity ? `(${allergy.reactionSeverity})` : ''\n }`,\n }));\n }, [paginatedAllergies]);\n\n const launchAllergiesForm = React.useCallback(() => launchPatientWorkspace(patientAllergiesFormWorkspace), []);\n\n if (isLoading) return <DataTableSkeleton role=\"progressbar\" />;\n if (isError) return <ErrorState error={isError} headerTitle={headerTitle} />;\n if (allergies?.length) {\n return (\n <div className={styles.widgetCard}>\n <CardHeader title={headerTitle}>\n <span>{isValidating ? <InlineLoading /> : null}</span>\n {showAddAllergy && (\n <Button kind=\"ghost\" renderIcon={Add16} iconDescription=\"Add allergies\" onClick={launchAllergiesForm}>\n {t('add', 'Add')}\n </Button>\n )}\n </CardHeader>\n <TableContainer>\n <DataTable rows={tableRows} headers={tableHeaders} isSortable={true} size=\"short\">\n {({ rows, headers, getHeaderProps, getTableProps }) => (\n <Table {...getTableProps()} useZebraStyles>\n <TableHead>\n <TableRow>\n {headers.map((header) => (\n <TableHeader\n className={`${styles.productiveHeading01} ${styles.text02}`}\n {...getHeaderProps({\n header,\n isSortable: header.isSortable,\n })}\n >\n {header.header?.content ?? header.header}\n </TableHeader>\n ))}\n </TableRow>\n </TableHead>\n <TableBody>\n {rows.map((row) => (\n <TableRow key={row.id}>\n {row.cells.map((cell) => (\n <TableCell key={cell.id}>{cell.value?.content ?? cell.value}</TableCell>\n ))}\n </TableRow>\n ))}\n </TableBody>\n </Table>\n )}\n </DataTable>\n </TableContainer>\n <PatientChartPagination\n currentItems={paginatedAllergies.length}\n onPageNumberChange={({ page }) => goTo(page)}\n pageNumber={currentPage}\n pageSize={allergiesToShowCount}\n pageUrl={pageUrl}\n totalItems={allergies.length}\n urlLabel={urlLabel}\n />\n </div>\n );\n }\n return <EmptyState displayText={displayText} headerTitle={headerTitle} launchForm={launchAllergiesForm} />;\n};\n\nexport default AllergiesOverview;\n","import useSWR from 'swr';\nimport { map } from 'rxjs/operators';\nimport capitalize from 'lodash-es/capitalize';\nimport { fhirBaseUrl, openmrsFetch, openmrsObservableFetch } from '@openmrs/esm-framework';\nimport { AllergyData, AllergicReaction, FHIRAllergy, FHIRAllergyResponse } from '../types';\nimport { ALLERGY_REACTION_CONCEPT } from '../constants';\n\nexport function useAllergies(patientUuid: string) {\n const { data, error, isValidating } = useSWR<{ data: FHIRAllergyResponse }, Error>(\n `${fhirBaseUrl}/AllergyIntolerance?patient=${patientUuid}`,\n openmrsFetch,\n );\n\n const formattedAllergies =\n data?.data?.total > 0\n ? data?.data.entry\n .map((entry) => entry.resource ?? [])\n .map(mapAllergyProperties)\n .sort((a, b) => (b.lastUpdated > a.lastUpdated ? 1 : -1))\n : null;\n\n return {\n data: data ? formattedAllergies : null,\n isError: error,\n isLoading: !data && !error,\n isValidating,\n };\n}\n\nfunction mapAllergyProperties(allergy: FHIRAllergy): Allergy {\n const manifestations = allergy?.reaction[0]?.manifestation?.map((coding) => coding.coding[0]?.display);\n const formattedAllergy: Allergy = {\n id: allergy?.id,\n clinicalStatus: allergy?.clinicalStatus?.coding[0]?.display,\n criticality: allergy?.criticality,\n display: allergy?.code?.coding[0]?.display,\n recordedDate: allergy?.recordedDate,\n recordedBy: allergy?.recorder?.display,\n recorderType: allergy?.recorder?.type,\n note: allergy?.note?.[0]?.text,\n reactionToSubstance: allergy?.reaction[0]?.substance?.coding[1]?.display,\n reactionManifestations: manifestations,\n reactionSeverity: capitalize(allergy?.reaction[0]?.severity),\n lastUpdated: allergy?.meta?.lastUpdated,\n };\n return formattedAllergy;\n}\n\nexport function fetchAllergyByUuid(allergyUuid: string) {\n return openmrsObservableFetch(`${fhirBaseUrl}/AllergyIntolerance/${allergyUuid}`).pipe(\n map(({ data }) => data),\n map((data: FHIRAllergy) => mapAllergyProperties(data)),\n );\n}\n\nexport function getPatientAllergyByPatientUuid(\n patientUuid: string,\n allergyUuid: any,\n abortController: AbortController,\n) {\n return openmrsFetch<AllergyData>(`/ws/rest/v1/patient/${patientUuid}/allergy/${allergyUuid.allergyUuid}?v=full`, {\n signal: abortController.signal,\n });\n}\n\nexport function getAllergyAllergenByConceptUuid(allergyUuid: string) {\n return openmrsObservableFetch(`/ws/rest/v1/concept/${allergyUuid}?v=full`).pipe(\n map(({ data }) => data['setMembers']),\n );\n}\n\nexport function getAllergicReactions() {\n return openmrsObservableFetch<Array<AllergicReaction>>(`/ws/rest/v1/concept/${ALLERGY_REACTION_CONCEPT}?v=full`).pipe(\n map(({ data }) => data['setMembers']),\n );\n}\n\nexport function savePatientAllergy(patientAllergy: any, patientUuid: string, abortController: AbortController) {\n const reactions = patientAllergy.reactionUuids.map((reaction: any) => {\n return {\n reaction: {\n uuid: reaction.uuid,\n },\n };\n });\n\n return openmrsFetch(`/ws/rest/v1/patient/${patientUuid}/allergy`, {\n headers: {\n 'Content-Type': 'application/json',\n },\n method: 'POST',\n body: {\n allergen: {\n allergenType: patientAllergy?.allergenType,\n codedAllergen: {\n uuid: patientAllergy?.codedAllergenUuid,\n },\n },\n severity: {\n uuid: patientAllergy?.severityUuid,\n },\n comment: patientAllergy?.comment,\n reactions: reactions,\n },\n signal: abortController.signal,\n });\n}\n\nexport function updatePatientAllergy(\n patientAllergy: any,\n patientUuid: string,\n allergyUuid: any,\n abortController: AbortController,\n) {\n const reactions = patientAllergy.reactionUuids.map((reaction: any) => {\n return {\n reaction: {\n uuid: reaction.uuid,\n },\n };\n });\n\n return openmrsFetch(`/ws/rest/v1/patient/${patientUuid}/allergy/${allergyUuid.allergyUuid}`, {\n headers: {\n 'Content-Type': 'application/json',\n },\n method: 'POST',\n body: {\n allergen: {\n allergenType: patientAllergy.allergenType,\n codedAllergen: {\n uuid: patientAllergy.codedAllergenUuid,\n },\n },\n severity: {\n uuid: patientAllergy.severityUuid,\n },\n comment: patientAllergy.comment,\n reactions: reactions,\n },\n signal: abortController.signal,\n });\n}\n\nexport function deletePatientAllergy(patientUuid: string, allergyUuid: any, abortController: AbortController) {\n return openmrsFetch(`/ws/rest/v1/patient/${patientUuid}/allergy/${allergyUuid.allergyUuid}`, {\n method: 'DELETE',\n signal: abortController.signal,\n });\n}\n\nexport type Allergy = {\n id: string;\n clinicalStatus: string;\n criticality: string;\n display: string;\n recordedDate: string;\n recordedBy: string;\n recorderType: string;\n note: string;\n reactionToSubstance: string;\n reactionManifestations: Array<string>;\n reactionSeverity: string;\n lastUpdated: string;\n};\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/cssWithMappingToString.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,select,input,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\\\"\\\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-patient-allergies__allergies-overview__skeleton___Sn9mT{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.-esm-patient-allergies__allergies-overview__widgetCard___HVkA9{border:1px solid #e0e0e0}\", \"\",{\"version\":3,\"sources\":[\"webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss\",\"webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss\",\"webpack://./src/allergies/allergies-overview.scss\"],\"names\":[],\"mappings\":\"AAmCI,2ZAiFE,SAAA,CACA,QAAA,CACA,QAAA,CACA,YAAA,CACA,cAAA,CACA,uBAAA,CAIF,6BAIE,eAAA,CACA,mBAAA,CAGF,4BACE,YAAA,CAIF,mFAYE,aAAA,CAGF,KACE,aAAA,CAGF,IACE,oBAAA,CAGF,IACE,kBAAA,CAGF,MAEE,eAAA,CAGF,aAEE,WAAA,CAGF,wDAIE,UAAA,CAGF,MACE,wBAAA,CACA,gBAAA,CAGF,EACE,qBAAA,CAIF,OACE,QAAA,CC3KJ,KACE,cAAA,CAGF,KC0CA,eAAA,CDvCE,gEAViB,CAWjB,iCAAA,CACA,kCAAA,CACA,iCAAA,CAGF,KACE,wGAhBiB,CAmBnB,OC6BA,eAAA,CCxDA,8CACE,IACE,eAAA,CAAA,CFkCJ,GGggBE,kBAsLsB,CAtLtB,eAsLsB,CAtLtB,iBAsLsB,CAtLtB,gBAsLsB,CHlrBxB,GG4fE,cAsLsB,CAtLtB,eAsLsB,CAtLtB,gBAsLsB,CAtLtB,gBAsLsB,CH9qBxB,GGwfE,iBAsLsB,CAtLtB,eAsLsB,CAtLtB,gBAsLsB,CAtLtB,gBAsLsB,CH1qBxB,GGofE,iBAsLsB,CAtLtB,eAsLsB,CAtLtB,eAsLsB,CAtLtB,gBAsLsB,CHtqBxB,GGgfE,cAsLsB,CAtLtB,eAsLsB,CAtLtB,iBAsLsB,CAtLtB,gBAsLsB,CHlqBxB,GG4eE,iBAsLsB,CAtLtB,eAsLsB,CAtLtB,gBAsLsB,CAtLtB,oBAsLsB,CH9pBxB,EGweE,cAsLsB,CAtLtB,eAsLsB,CAtLtB,eAsLsB,CAtLtB,gBAsLsB,CH1pBxB,EAII,aAAA,CAMJ,GACE,iBAAA,CIkHF,wEACE,GACE,UAAA,CACA,mBAAA,CACA,qBAAA,CAEF,IACE,SAAA,CACA,mBAAA,CACA,qBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,KACE,UAAA,CACA,mBAAA,CACA,qBAAA,CAAA,CC3ON,gEACE,wBAAA\",\"sourcesContent\":[\"//\\n// Copyright IBM Corp. 2016, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n@import './vendor/@carbon/elements/scss/import-once/import-once';\\n@import './vendor/@carbon/elements/scss/type/reset';\\n@import './vendor/@carbon/elements/scss/icons/mixins';\\n\\n/// Resets default browser styling\\n/// @access public\\n/// @group global-reset\\n@mixin reset {\\n @if variable-exists(css--reset) == false or $css--reset == false {\\n box-sizing: border-box;\\n padding: 0;\\n border: 0;\\n margin: 0;\\n font-family: inherit;\\n font-size: 100%;\\n vertical-align: baseline;\\n\\n *,\\n *::before,\\n *::after {\\n box-sizing: inherit;\\n }\\n }\\n}\\n\\n@include exports('css--reset') {\\n @if variable-exists(css--reset) == false or $css--reset == true {\\n // http://cssreset.com/scripts/eric-meyer-reset-css/\\n html,\\n body,\\n div,\\n span,\\n applet,\\n object,\\n iframe,\\n h1,\\n h2,\\n h3,\\n h4,\\n h5,\\n h6,\\n p,\\n blockquote,\\n pre,\\n a,\\n abbr,\\n acronym,\\n address,\\n big,\\n cite,\\n code,\\n del,\\n dfn,\\n em,\\n img,\\n ins,\\n kbd,\\n q,\\n s,\\n samp,\\n small,\\n strike,\\n strong,\\n sub,\\n sup,\\n tt,\\n var,\\n b,\\n u,\\n i,\\n center,\\n dl,\\n dt,\\n dd,\\n ol,\\n ul,\\n li,\\n fieldset,\\n form,\\n label,\\n legend,\\n table,\\n caption,\\n tbody,\\n tfoot,\\n thead,\\n tr,\\n th,\\n td,\\n article,\\n aside,\\n canvas,\\n details,\\n embed,\\n figure,\\n figcaption,\\n footer,\\n header,\\n hgroup,\\n menu,\\n nav,\\n output,\\n ruby,\\n section,\\n summary,\\n time,\\n mark,\\n audio,\\n video {\\n padding: 0;\\n border: 0;\\n margin: 0;\\n font: inherit;\\n font-size: 100%;\\n vertical-align: baseline;\\n }\\n\\n // Chrome 62 fix\\n button,\\n select,\\n input,\\n textarea {\\n border-radius: 0;\\n font-family: inherit;\\n }\\n\\n input[type='text']::-ms-clear {\\n display: none;\\n }\\n\\n /* HTML5 display-role reset for older browsers */\\n article,\\n aside,\\n details,\\n figcaption,\\n figure,\\n footer,\\n header,\\n hgroup,\\n main,\\n menu,\\n nav,\\n section {\\n display: block;\\n }\\n\\n body {\\n line-height: 1;\\n }\\n\\n sup {\\n vertical-align: super;\\n }\\n\\n sub {\\n vertical-align: sub;\\n }\\n\\n ol,\\n ul {\\n list-style: none;\\n }\\n\\n blockquote,\\n q {\\n quotes: none;\\n }\\n\\n blockquote::before,\\n blockquote::after,\\n q::before,\\n q::after {\\n content: '';\\n }\\n\\n table {\\n border-collapse: collapse;\\n border-spacing: 0;\\n }\\n\\n * {\\n box-sizing: border-box;\\n }\\n\\n // Fix to remove added margins on buttons in safari (see #5155)\\n button {\\n margin: 0;\\n }\\n\\n @include carbon--type-reset;\\n @include carbon--icons;\\n }\\n}\\n\\n@include exports('css--default-type') {\\n @if variable-exists(css--default-type) == false or $css--default-type == true\\n {\\n @include carbon--default-type;\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n@import '../layout/convert';\\n@import 'font-family';\\n@import 'styles';\\n\\n/// Include a type reset for a given body and mono font family\\n/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element\\n/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--type-reset(\\n // TODO: remove in next major release. This has been replaced with 100%\\n $base-font-size: $carbon--base-font-size,\\n $body-font-family: carbon--font-family('sans'),\\n $mono-font-family: carbon--font-family('mono')\\n) {\\n html {\\n font-size: 100%;\\n }\\n\\n body {\\n @include carbon--font-weight('regular');\\n\\n font-family: $body-font-family;\\n -moz-osx-font-smoothing: grayscale;\\n -webkit-font-smoothing: antialiased;\\n text-rendering: optimizeLegibility;\\n }\\n\\n code {\\n font-family: $mono-font-family;\\n }\\n\\n strong {\\n @include carbon--font-weight('semibold');\\n }\\n}\\n\\n/// Include default type styles\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--default-type {\\n h1 {\\n @include carbon--type-style('productive-heading-06');\\n }\\n\\n h2 {\\n @include carbon--type-style('productive-heading-05');\\n }\\n\\n h3 {\\n @include carbon--type-style('productive-heading-04');\\n }\\n\\n h4 {\\n @include carbon--type-style('productive-heading-03');\\n }\\n\\n h5 {\\n @include carbon--type-style('productive-heading-02');\\n }\\n\\n h6 {\\n @include carbon--type-style('productive-heading-01');\\n }\\n\\n p {\\n @include carbon--type-style('body-long-02');\\n }\\n\\n a {\\n @if global-variable-exists('carbon--theme') and\\n map-has-key($carbon--theme, 'link-01')\\n {\\n color: map-get($carbon--theme, 'link-01');\\n } @else {\\n color: #0062fe;\\n }\\n }\\n\\n em {\\n font-style: italic;\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans\\n/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$carbon--font-families: (\\n 'mono':\\n unquote(\\n \\\"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace\\\"\\n ),\\n 'sans': unquote(\\\"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif\\\"),\\n 'sans-condensed':\\n unquote(\\\"'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif\\\"),\\n 'sans-hebrew':\\n unquote(\\n \\\"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif\\\"\\n ),\\n 'serif': unquote(\\\"'IBM Plex Serif', 'Georgia', Times, serif\\\"),\\n) !default;\\n\\n/// Get the font-family for an IBM Plex font\\n/// @param {String} $name\\n/// @return {String}\\n/// @access public\\n/// @group @carbon/type\\n@function carbon--font-family($name) {\\n @return map-get($carbon--font-families, $name);\\n}\\n\\n/// Include the `font-family` definition for the given name in your selector\\n/// @param {String} $name\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--font-family($name) {\\n font-family: carbon--font-family($name);\\n}\\n\\n/// Suggested font weights to be used in product\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$carbon--font-weights: (\\n 'light': 300,\\n 'regular': 400,\\n 'semibold': 600,\\n) !default;\\n\\n/// Retrieve the font-weight value for a given name\\n/// @param {String} $weight\\n/// @return {Number}\\n/// @access public\\n/// @group @carbon/type\\n@function carbon--font-weight($weight) {\\n @return map-get($carbon--font-weights, $weight);\\n}\\n\\n/// Set the `font-weight` property with the value for a given name\\n/// @param {String} $weight\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--font-weight($weight) {\\n font-weight: carbon--font-weight($weight);\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n/// Makes SVGs accessible in high contrast mode\\n/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345\\n/// @access public\\n/// @group @carbon/icons\\n@mixin carbon--icons {\\n @media screen and (-ms-high-contrast: active) {\\n svg {\\n fill: ButtonText;\\n }\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n@import '../layout/breakpoint';\\n@import 'font-family';\\n@import 'scale';\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$caption-01: (\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$caption-02: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$label-01: (\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$label-02: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$helper-text-01: (\\n font-size: carbon--type-scale(1),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$helper-text-02: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-long-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.43,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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-long-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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$code-01: (\\n font-family: carbon--font-family('mono'),\\n font-size: carbon--type-scale(1),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.34,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$code-02: (\\n font-family: carbon--font-family('mono'),\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.43,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-01: (\\n font-size: carbon--type-scale(2),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.29,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-01: $heading-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-02: (\\n font-size: carbon--type-scale(3),\\n font-weight: carbon--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$productive-heading-02: $heading-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-03: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--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$productive-heading-04: (\\n font-size: carbon--type-scale(7),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-05: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--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$productive-heading-06: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--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$productive-heading-07: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--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$expressive-heading-01: map-merge(\\n $heading-01,\\n (\\n line-height: 1.25,\\n )\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-02: map-merge(\\n $heading-02,\\n (\\n line-height: 1.5,\\n )\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-03: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.4,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: carbon--type-scale(5),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: carbon--type-scale(6),\\n line-height: 1.334,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-04: (\\n font-size: carbon--type-scale(7),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.29,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-05: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-06: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-paragraph-01: (\\n font-size: carbon--type-scale(6),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.334,\\n letter-spacing: 0,\\n breakpoints: (\\n lg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.29,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n);\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-01: (\\n font-size: carbon--type-scale(5),\\n font-weight: carbon--font-weight('regular'),\\n line-height: 1.3,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(5),\\n ),\\n lg: (\\n font-size: carbon--type-scale(6),\\n line-height: 1.334,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(7),\\n line-height: 1.29,\\n ),\\n max: (\\n font-size: carbon--type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-02: (\\n font-size: carbon--type-scale(8),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: carbon--type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-01: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(10),\\n ),\\n lg: (\\n font-size: carbon--type-scale(12),\\n ),\\n xlg: (\\n font-size: carbon--type-scale(13),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: carbon--type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-02: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(10),\\n ),\\n lg: (\\n font-size: carbon--type-scale(12),\\n ),\\n xlg: (\\n font-size: carbon--type-scale(13),\\n line-height: 1.16,\\n ),\\n max: (\\n font-size: carbon--type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-03: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: carbon--type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: carbon--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$display-04: (\\n font-size: carbon--type-scale(10),\\n font-weight: carbon--font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: carbon--type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: carbon--type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: carbon--type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: carbon--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$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);\\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 $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 [$carbon--grid-breakpoints] - Custom breakpoints to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin fluid-type($type-styles, $breakpoints: $carbon--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 carbon--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 [$carbon--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: $carbon--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: carbon--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: carbon--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$custom-property-prefix: 'cds' !default;\\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 [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin carbon--type-style(\\n $name,\\n $fluid: false,\\n $breakpoints: $carbon--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 // Otherwise remove token breakpoints\\n @if $fluid == true and map-has-key($token, 'breakpoints') {\\n @include fluid-type($token, $breakpoints);\\n } @else {\\n @if global-variable-exists('feature-flags') and\\n map-get($feature-flags, 'enable-css-custom-properties')\\n {\\n @include custom-properties($name, map-remove($token, 'breakpoints'));\\n } @else {\\n // Otherwise, we just include all the property declarations directly on the\\n // selector\\n @include properties(map-remove($token, 'breakpoints'));\\n }\\n }\\n}\\n\",\"//\\n// Copyright IBM Corp. 2016, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n//----------------------------------------------\\n// Mixins\\n// ---------------------------------------------\\n//\\n// Category || Description\\n// ===========================================\\n// Misc || General helper @mixins\\n// Deprecated || Not used anymore\\n// ===========================================\\n\\n//----------------------------------------------\\n// Misc\\n// ---------------------------------------------\\n\\n@import 'vars';\\n@import 'css--reset';\\n@import 'typography';\\n@import './vendor/@carbon/elements/scss/import-once/import-once';\\n\\n/// Adds text overflow styling\\n/// @access public\\n/// @param {Number} $width [false] - Value of width if you want to set width, else nothing\\n/// @example @include text-overflow(300px);\\n/// @group global-helpers\\n@mixin text-overflow($width: false) {\\n display: block;\\n overflow-x: hidden;\\n text-overflow: ellipsis;\\n white-space: nowrap;\\n\\n // apply a width if width parameter exists\\n @if ($width) {\\n width: $width;\\n }\\n}\\n\\n/// Adds placeholder text color\\n/// @access public\\n/// @example @include placeholder-colors;\\n/// @group global-helpers\\n@mixin placeholder-colors {\\n color: $text-05;\\n opacity: 1;\\n}\\n\\n/// Adds box shadow\\n/// @access public\\n/// @example @include box-shadow;\\n/// @group global-helpers\\n@mixin box-shadow {\\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\\n}\\n\\n/// Adds outline styles depending on specific type\\n/// @access public\\n/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset`\\n/// @example @include focus-outline('outline');\\n/// @group global-helpers\\n@mixin focus-outline($type: 'border') {\\n @if ($type == 'border') {\\n outline: 1px solid $focus;\\n\\n @media screen and (prefers-contrast) {\\n outline-style: dotted;\\n }\\n }\\n\\n @if ($type == 'blurred') {\\n box-shadow: 0 0 0 3px $focus;\\n outline: 1px solid transparent;\\n }\\n\\n @if ($type == 'outline') {\\n outline: 2px solid $focus;\\n outline-offset: -2px;\\n\\n @media screen and (prefers-contrast) {\\n outline-style: dotted;\\n }\\n }\\n\\n @if ($type == 'outline-compat') {\\n box-sizing: border-box;\\n border: 2px solid $focus;\\n\\n @media screen and (prefers-contrast) {\\n border-style: dotted;\\n }\\n }\\n\\n @if ($type == 'invalid') {\\n outline: 2px solid $support-01;\\n outline-offset: -2px;\\n\\n @media screen and (prefers-contrast) {\\n outline-style: dotted;\\n }\\n }\\n\\n @if ($type == 'reset') {\\n outline: 2px solid transparent;\\n outline-offset: -2px;\\n }\\n}\\n\\n/// Adds rotational transformation\\n/// @access public\\n/// @param {Number} $deg - How many degrees to rotate\\n/// @param {Number} $speed - Speed of rotation\\n/// @param {Value} $origin [center] - `transform-origin`\\n/// @example @include rotate(90deg, 300ms);\\n/// @group global-helpers\\n@mixin rotate($deg, $speed, $origin: center) {\\n transform: rotate($deg);\\n transform-origin: $origin;\\n transition: transform $speed;\\n}\\n\\n/// Adds styles to hide content\\n/// @access public\\n/// @group global-helpers\\n@mixin hidden {\\n position: absolute;\\n overflow: hidden;\\n width: 1px;\\n height: 1px;\\n padding: 0;\\n border: 0;\\n margin: -1px;\\n clip: rect(0, 0, 0, 0);\\n visibility: inherit;\\n white-space: nowrap;\\n}\\n\\n/// Resets button styles\\n/// @access public\\n/// @param {Bool} $width [true] - Sets width to 100% if true\\n/// @example @include button-reset($width: false);\\n/// @group global-helpers\\n@mixin button-reset($width: true) {\\n @include reset;\\n\\n display: inline-block;\\n padding: 0;\\n border: 0;\\n appearance: none;\\n background: none;\\n cursor: pointer;\\n\\n @if ($width == true) {\\n width: 100%;\\n }\\n\\n &::-moz-focus-inner {\\n border: 0;\\n }\\n}\\n\\n/// Skeleton loading animation\\n/// @access public\\n/// @example @include skeleton;\\n/// @group global-helpers\\n@mixin skeleton {\\n position: relative;\\n padding: 0;\\n border: none;\\n background: $skeleton-01;\\n box-shadow: none;\\n pointer-events: none;\\n\\n &:hover,\\n &:focus,\\n &:active {\\n border: none;\\n cursor: default;\\n outline: none;\\n }\\n\\n &::before {\\n position: absolute;\\n width: 100%;\\n height: 100%;\\n animation: 3000ms ease-in-out skeleton infinite;\\n background: $skeleton-02;\\n content: '';\\n will-change: transform-origin, transform, opacity;\\n\\n @media (prefers-reduced-motion: reduce) {\\n animation: none;\\n }\\n }\\n}\\n\\n@include exports('skeleton') {\\n @keyframes skeleton {\\n 0% {\\n opacity: 0.3;\\n transform: scaleX(0);\\n transform-origin: left;\\n }\\n 20% {\\n opacity: 1;\\n transform: scaleX(1);\\n transform-origin: left;\\n }\\n 28% {\\n transform: scaleX(1);\\n transform-origin: right;\\n }\\n 51% {\\n transform: scaleX(0);\\n transform-origin: right;\\n }\\n 58% {\\n transform: scaleX(0);\\n transform-origin: right;\\n }\\n 82% {\\n transform: scaleX(1);\\n transform-origin: right;\\n }\\n 83% {\\n transform: scaleX(1);\\n transform-origin: left;\\n }\\n 96% {\\n transform: scaleX(0);\\n transform-origin: left;\\n }\\n 100% {\\n opacity: 0.3;\\n transform: scaleX(0);\\n transform-origin: left;\\n }\\n }\\n}\\n\\n/// Windows HCM Mixin\\n/// @access public\\n/// @example @include high-contrast-mode;\\n/// @group global-helpers\\n/// We should set HCM styles at the end of each file to ensure they are not overridden\\n@mixin high-contrast-mode($type: '') {\\n @media screen and (-ms-high-contrast: active),\\n (forced-colors: active),\\n (prefers-contrast) {\\n @if ($type == 'icon-fill') {\\n fill: ButtonText;\\n }\\n\\n @if ($type == 'focus') {\\n color: Highlight;\\n outline: 1px solid Highlight;\\n }\\n\\n @if ($type == 'outline') {\\n outline: 1px solid transparent;\\n }\\n\\n @if ($type == 'disabled') {\\n color: GrayText;\\n fill: GrayText;\\n }\\n\\n @content;\\n }\\n}\\n\",\"@import \\\"~@openmrs/esm-styleguide/src/vars\\\";\\n@import \\\"~carbon-components/src/globals/scss/vars\\\";\\n@import \\\"~carbon-components/src/globals/scss/mixins\\\";\\n\\n.widgetCard {\\n border: 1px solid $ui-03;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"widgetCard\": \"-esm-patient-allergies__allergies-overview__widgetCard___HVkA9\",\n\t\"skeleton\": \"-esm-patient-allergies__allergies-overview__skeleton___Sn9mT\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","patient","showAddAllergy","basePath","t","useTranslation","displayText","headerTitle","urlLabel","pageUrl","window","spaBase","data","allergies","isError","isLoading","isValidating","useAllergies","id","results","paginatedAllergies","goTo","currentPage","usePagination","allergiesToShowCount","tableHeaders","key","header","tableRows","React","map","allergy","reactions","reactionManifestations","join","reactionSeverity","launchAllergiesForm","launchPatientWorkspace","patientAllergiesFormWorkspace","DataTableSkeleton","role","error","length","className","styles","title","InlineLoading","Button","kind","renderIcon","Add16","iconDescription","onClick","TableContainer","DataTable","rows","headers","isSortable","size","getHeaderProps","getTableProps","Table","useZebraStyles","TableHead","TableRow","TableHeader","content","TableBody","row","cells","cell","TableCell","value","currentItems","onPageNumberChange","page","pageNumber","pageSize","totalItems","launchForm","patientUuid","useSWR","fhirBaseUrl","openmrsFetch","formattedAllergies","total","entry","resource","mapAllergyProperties","sort","a","b","lastUpdated","manifestations","reaction","manifestation","coding","display","clinicalStatus","criticality","code","recordedDate","recordedBy","recorder","recorderType","type","note","text","reactionToSubstance","substance","capitalize","severity","meta","___CSS_LOADER_EXPORT___","push","module","locals"],"sourceRoot":""}
package/dist/151.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_patient_allergies_app=self.webpackChunk_openmrs_esm_patient_allergies_app||[]).push([[151],{1145:(e,t,n)=>{n.d(t,{Z:()=>E});var a=n(7896),c=n(9740),i=n(9902),r=n.n(i),o=n(3980),s=n.n(o),l=n(2779),u=n.n(l),f=n(618),d=n(3346),v=n(3597),p=n(6666),m=n(3182),g=n(330),y=["id","active","className","withOverlay","small","description"],b=(0,m.Z)();function h(e){var t,n,o=e.id,s=e.active,l=e.className,f=e.withOverlay,d=e.small,v=e.description,m=(0,c.Z)(e,y),h=(0,g.A)(),_=(0,i.useRef)(b()).current,N=u()(l,(t={},(0,p.Z)(t,"".concat(h,"--loading"),!0),(0,p.Z)(t,"".concat(h,"--loading--small"),d),(0,p.Z)(t,"".concat(h,"--loading--stop"),!s),t)),E=u()((n={},(0,p.Z)(n,"".concat(h,"--loading-overlay"),!0),(0,p.Z)(n,"".concat(h,"--loading-overlay--stop"),!s),n)),j=o||"loading-id-".concat(_),O=r().createElement("div",(0,a.Z)({},m,{"aria-atomic":"true","aria-labelledby":j,"aria-live":s?"assertive":"off",className:N}),r().createElement("label",{id:j,className:"".concat(h,"--visually-hidden")},v),r().createElement("svg",{className:"".concat(h,"--loading__svg"),viewBox:"0 0 100 100"},r().createElement("title",null,v),d?r().createElement("circle",{className:"".concat(h,"--loading__background"),cx:"50%",cy:"50%",r:"44"}):null,r().createElement("circle",{className:"".concat(h,"--loading__stroke"),cx:"50%",cy:"50%",r:"44"})));return f?r().createElement("div",{className:E},O):O}h.propTypes={active:s().bool,className:s().string,description:s().string,id:s().string,small:s().bool,withOverlay:s().bool},h.defaultProps={active:!0,withOverlay:!0,small:!1,description:"Active loading indicator"};const _=h;var N=["className","success","status","iconDescription","description","onSuccess","successDelay"];function E(e){var t=e.className,n=e.success,i=e.status,o=void 0===i?n?"finished":"active":i,s=e.iconDescription,l=e.description,v=e.onSuccess,p=e.successDelay,m=(0,c.Z)(e,N),y=(0,g.A)(),b=u()("".concat(y,"--inline-loading"),t),h=r().createElement("div",{className:"".concat(y,"--inline-loading__text")},l),E="error"===o?r().createElement(f.ycZ,{className:"".concat(y,"--inline-loading--error")},r().createElement("title",null,s)):"finished"===o?(setTimeout((function(){v&&v()}),p),r().createElement(d.Y3p,{className:"".concat(y,"--inline-loading__checkmark-container")},r().createElement("title",null,s))):"inactive"===o||"active"===o?r().createElement(_,{small:!0,description:s,withOverlay:!1,active:"active"===o}):void 0,j=E&&r().createElement("div",{className:"".concat(y,"--inline-loading__animation")},E);return r().createElement("div",(0,a.Z)({className:b},m,{"aria-live":"assertive"}),j,l&&h)}E.propTypes={className:s().string,description:s().node,iconDescription:s().string,onSuccess:s().func,status:s().oneOf(["inactive","active","finished","error"]),success:(0,v.Z)(s().bool,'\nThe prop `success` for InlineLoading has been deprecated in favor of `status`. Please use `status="finished"` instead.'),successDelay:s().number},E.defaultProps={successDelay:1500}},8260:(e,t,n)=>{n.d(t,{Z:()=>C});const a="object"==typeof global&&global&&global.Object===Object&&global;var c="object"==typeof self&&self&&self.Object===Object&&self;const i=(a||c||Function("return this")()).Symbol,r=Array.isArray;var o=Object.prototype,s=o.hasOwnProperty,l=o.toString,u=i?i.toStringTag:void 0;var f=Object.prototype.toString;var d=i?i.toStringTag:void 0;const v=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":d&&d in Object(e)?function(e){var t=s.call(e,u),n=e[u];try{e[u]=void 0;var a=!0}catch(e){}var c=l.call(e);return a&&(t?e[u]=n:delete e[u]),c}(e):function(e){return f.call(e)}(e)};var p=i?i.prototype:void 0,m=p?p.toString:void 0;const g=function e(t){if("string"==typeof t)return t;if(r(t))return function(e,t){for(var n=-1,a=null==e?0:e.length,c=Array(a);++n<a;)c[n]=t(e[n],n,e);return c}(t,e)+"";if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==v(e)}(t))return m?m.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},y=function(e){return null==e?"":g(e)},b=function(e,t,n){var a=e.length;return n=void 0===n?a:n,!t&&n>=a?e:function(e,t,n){var a=-1,c=e.length;t<0&&(t=-t>c?0:c+t),(n=n>c?c:n)<0&&(n+=c),c=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(c);++a<c;)i[a]=e[a+t];return i}(e,t,n)};var h=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const _=function(e){return h.test(e)};var N="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",E="\\ud83c[\\udffb-\\udfff]",j="[^\\ud800-\\udfff]",O="(?:\\ud83c[\\udde6-\\uddff]){2}",Z="[\\ud800-\\udbff][\\udc00-\\udfff]",w="(?:"+N+"|"+E+")?",S="[\\ufe0e\\ufe0f]?",k=S+w+"(?:\\u200d(?:"+[j,O,Z].join("|")+")"+S+w+")*",A="(?:"+[j+N+"?",N,O,Z,"[\\ud800-\\udfff]"].join("|")+")",D=RegExp(E+"(?="+E+")|"+A+k,"g");const x=function(e){return _(e)?function(e){return e.match(D)||[]}(e):function(e){return e.split("")}(e)},T=function(e){e=y(e);var t=_(e)?x(e):void 0,n=t?t[0]:e.charAt(0),a=t?b(t,1).join(""):e.slice(1);return n.toUpperCase()+a},C=function(e){return T(y(e).toLowerCase())}}}]);
2
+ //# sourceMappingURL=151.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"151.js","mappings":"mTAGIA,EAAY,CAAC,KAAM,SAAU,YAAa,cAAe,QAAS,eAalEC,GAAgB,EAAAC,EAAA,KAEpB,SAASC,EAAQC,GACf,IAAIC,EAAKC,EAELC,EAAKH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EAd3D,qBAciFK,KAAK,KAAO,IAGxGE,EAAYd,OAAOI,EAAS,MAAQA,EAAS,KAAOS,EAAWF,EAAO,KAa1E,MCtBA,EANA,SAAuBV,GACrB,OAAO,EAAWA,GDuBpB,SAAwBA,GACtB,OAAOA,EAAOc,MAAMD,IAAc,GCvB9B,CAAeb,GCNrB,SAAsBA,GACpB,OAAOA,EAAOe,MAAM,IDMhB,CAAaf,IEOnB,ECRS,SAASA,GACdA,EAAS,EAASA,GAElB,IAAIgB,EAAa,EAAWhB,GACxB,EAAcA,QACdnB,EAEAoC,EAAMD,EACNA,EAAW,GACXhB,EAAOkB,OAAO,GAEdC,EAAWH,EACX,EAAUA,EAAY,GAAGL,KAAK,IAC9BX,EAAOoB,MAAM,GAEjB,OAAOH,EAAc,cAAME,GCN/B,EAJA,SAAoBnB,GAClB,OAAO,EAAW,EAASA,GAAQqB","sources":["webpack://@openmrs/esm-patient-allergies-app/../../node_modules/carbon-components-react/es/components/Loading/Loading.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/carbon-components-react/es/components/InlineLoading/InlineLoading.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_freeGlobal.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_root.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_Symbol.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/isArray.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_getRawTag.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_objectToString.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_baseGetTag.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_baseToString.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_arrayMap.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/isSymbol.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/isObjectLike.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/toString.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_castSlice.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_baseSlice.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_hasUnicode.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_unicodeToArray.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_stringToArray.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_asciiToArray.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/upperFirst.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/_createCaseFirst.js","webpack://@openmrs/esm-patient-allergies-app/../../node_modules/lodash-es/capitalize.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"id\", \"active\", \"className\", \"withOverlay\", \"small\", \"description\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React, { useRef } from 'react';\nimport setupGetInstanceId from '../../tools/setupGetInstanceId';\nimport { usePrefix } from '../../internal/usePrefix';\nvar getInstanceId = setupGetInstanceId();\n\nfunction Loading(_ref) {\n var _cx, _cx2;\n\n var id = _ref.id,\n active = _ref.active,\n customClassName = _ref.className,\n withOverlay = _ref.withOverlay,\n small = _ref.small,\n description = _ref.description,\n rest = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n\n var _useRef = useRef(getInstanceId()),\n instanceId = _useRef.current;\n\n var loadingClassName = cx(customClassName, (_cx = {}, _defineProperty(_cx, \"\".concat(prefix, \"--loading\"), true), _defineProperty(_cx, \"\".concat(prefix, \"--loading--small\"), small), _defineProperty(_cx, \"\".concat(prefix, \"--loading--stop\"), !active), _cx));\n var overlayClassName = cx((_cx2 = {}, _defineProperty(_cx2, \"\".concat(prefix, \"--loading-overlay\"), true), _defineProperty(_cx2, \"\".concat(prefix, \"--loading-overlay--stop\"), !active), _cx2));\n var loadingId = id || \"loading-id-\".concat(instanceId);\n var loading = /*#__PURE__*/React.createElement(\"div\", _extends({}, rest, {\n \"aria-atomic\": \"true\",\n \"aria-labelledby\": loadingId,\n \"aria-live\": active ? 'assertive' : 'off',\n className: loadingClassName\n }), /*#__PURE__*/React.createElement(\"label\", {\n id: loadingId,\n className: \"\".concat(prefix, \"--visually-hidden\")\n }, description), /*#__PURE__*/React.createElement(\"svg\", {\n className: \"\".concat(prefix, \"--loading__svg\"),\n viewBox: \"0 0 100 100\"\n }, /*#__PURE__*/React.createElement(\"title\", null, description), small ? /*#__PURE__*/React.createElement(\"circle\", {\n className: \"\".concat(prefix, \"--loading__background\"),\n cx: \"50%\",\n cy: \"50%\",\n r: \"44\"\n }) : null, /*#__PURE__*/React.createElement(\"circle\", {\n className: \"\".concat(prefix, \"--loading__stroke\"),\n cx: \"50%\",\n cy: \"50%\",\n r: \"44\"\n })));\n return withOverlay ? /*#__PURE__*/React.createElement(\"div\", {\n className: overlayClassName\n }, loading) : loading;\n}\n\nLoading.propTypes = {\n /**\n * Specify whether you want the loading indicator to be spinning or not\n */\n active: PropTypes.bool,\n\n /**\n * Provide an optional className to be applied to the containing node\n */\n className: PropTypes.string,\n\n /**\n * Specify a description that would be used to best describe the loading state\n */\n description: PropTypes.string,\n\n /**\n * Provide an `id` to uniquely identify the label\n */\n id: PropTypes.string,\n\n /**\n * Specify whether you would like the small variant of <Loading>\n */\n small: PropTypes.bool,\n\n /**\n * Specify whether you want the loader to be applied with an overlay\n */\n withOverlay: PropTypes.bool\n};\nLoading.defaultProps = {\n active: true,\n withOverlay: true,\n small: false,\n description: 'Active loading indicator'\n};\nexport default Loading;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"className\", \"success\", \"status\", \"iconDescription\", \"description\", \"onSuccess\", \"successDelay\"];\n\n/**\n * Copyright IBM Corp. 2016, 2018\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { CheckmarkFilled16, ErrorFilled16 } from '@carbon/icons-react';\nimport deprecate from '../../prop-types/deprecate';\nimport Loading from '../Loading';\nimport { usePrefix } from '../../internal/usePrefix';\nexport default function InlineLoading(_ref) {\n var className = _ref.className,\n success = _ref.success,\n _ref$status = _ref.status,\n status = _ref$status === void 0 ? success ? 'finished' : 'active' : _ref$status,\n iconDescription = _ref.iconDescription,\n description = _ref.description,\n onSuccess = _ref.onSuccess,\n successDelay = _ref.successDelay,\n other = _objectWithoutProperties(_ref, _excluded);\n\n var prefix = usePrefix();\n var loadingClasses = classNames(\"\".concat(prefix, \"--inline-loading\"), className);\n\n var getLoading = function getLoading() {\n if (status === 'error') {\n return /*#__PURE__*/React.createElement(ErrorFilled16, {\n className: \"\".concat(prefix, \"--inline-loading--error\")\n }, /*#__PURE__*/React.createElement(\"title\", null, iconDescription));\n }\n\n if (status === 'finished') {\n setTimeout(function () {\n if (onSuccess) {\n onSuccess();\n }\n }, successDelay);\n return /*#__PURE__*/React.createElement(CheckmarkFilled16, {\n className: \"\".concat(prefix, \"--inline-loading__checkmark-container\")\n }, /*#__PURE__*/React.createElement(\"title\", null, iconDescription));\n }\n\n if (status === 'inactive' || status === 'active') {\n return /*#__PURE__*/React.createElement(Loading, {\n small: true,\n description: iconDescription,\n withOverlay: false,\n active: status === 'active'\n });\n }\n\n return undefined;\n };\n\n var loadingText = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--inline-loading__text\")\n }, description);\n var loading = getLoading();\n var loadingAnimation = loading && /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefix, \"--inline-loading__animation\")\n }, loading);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: loadingClasses\n }, other, {\n \"aria-live\": 'assertive' || other['aria-live']\n }), loadingAnimation, description && loadingText);\n}\nInlineLoading.propTypes = {\n /**\n * Specify a custom className to be applied to the container node\n */\n className: PropTypes.string,\n\n /**\n * Specify the description for the inline loading text\n */\n description: PropTypes.node,\n\n /**\n * Specify the description for the inline loading text\n */\n iconDescription: PropTypes.string,\n\n /**\n * Provide an optional handler to be invoked when <InlineLoading> is\n * successful\n */\n onSuccess: PropTypes.func,\n\n /**\n * Specify the loading status\n */\n status: PropTypes.oneOf(['inactive', 'active', 'finished', 'error']),\n\n /**\n * Specify whether the load was successful\n */\n success: deprecate(PropTypes.bool, \"\\nThe prop `success` for InlineLoading has been deprecated in favor of `status`. Please use `status=\\\"finished\\\"` instead.\"),\n\n /**\n * Provide a delay for the `setTimeout` for success\n */\n successDelay: PropTypes.number\n};\nInlineLoading.defaultProps = {\n successDelay: 1500\n};","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","import Symbol from './_Symbol.js';\nimport arrayMap from './_arrayMap.js';\nimport isArray from './isArray.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nexport default baseToString;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nexport default arrayMap;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseToString from './_baseToString.js';\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nexport default toString;\n","import baseSlice from './_baseSlice.js';\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\nexport default castSlice;\n","/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\nexport default baseSlice;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nexport default hasUnicode;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsAstral = '[' + rsAstralRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\nexport default unicodeToArray;\n","import asciiToArray from './_asciiToArray.js';\nimport hasUnicode from './_hasUnicode.js';\nimport unicodeToArray from './_unicodeToArray.js';\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\nexport default stringToArray;\n","/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\nexport default asciiToArray;\n","import createCaseFirst from './_createCaseFirst.js';\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\nexport default upperFirst;\n","import castSlice from './_castSlice.js';\nimport hasUnicode from './_hasUnicode.js';\nimport stringToArray from './_stringToArray.js';\nimport toString from './toString.js';\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n}\n\nexport default createCaseFirst;\n","import toString from './toString.js';\nimport upperFirst from './upperFirst.js';\n\n/**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\nfunction capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n}\n\nexport default capitalize;\n"],"names":["_excluded","getInstanceId","setupGetInstanceId","Loading","_ref","_cx","_cx2","id","active","customClassName","className","withOverlay","small","description","rest","prefix","usePrefix","instanceId","useRef","current","loadingClassName","concat","overlayClassName","loadingId","loading","viewBox","cx","cy","r","propTypes","defaultProps","InlineLoading","success","_ref$status","status","iconDescription","onSuccess","successDelay","other","loadingClasses","loadingText","setTimeout","loadingAnimation","deprecate","global","Object","freeSelf","self","Function","Array","isArray","objectProto","prototype","hasOwnProperty","nativeObjectToString","toString","symToStringTag","undefined","value","isOwn","call","tag","unmasked","e","result","symbolProto","symbolToString","baseToString","array","iteratee","index","length","start","end","reHasUnicode","RegExp","string","test","rsCombo","rsFitz","rsNonAstral","rsRegional","rsSurrPair","reOptMod","rsModifier","rsOptVar","rsSeq","join","rsSymbol","reUnicode","match","split","strSymbols","chr","charAt","trailing","slice","toLowerCase"],"sourceRoot":""}