@openmrs/esm-login-app 3.3.2-pre.31 → 3.3.2-pre.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +36 -34
- package/dist/1.js +2 -0
- package/dist/1.js.map +1 -0
- package/dist/195.js +2 -0
- package/dist/195.js.map +1 -0
- package/dist/25.js +3 -0
- package/dist/25.js.LICENSE.txt +16 -0
- package/dist/25.js.map +1 -0
- package/dist/322.js +3 -0
- package/dist/322.js.LICENSE.txt +38 -0
- package/dist/322.js.map +1 -0
- package/dist/393.js +3 -0
- package/dist/{550.js.LICENSE.txt → 393.js.LICENSE.txt} +0 -0
- package/dist/393.js.map +1 -0
- package/dist/406.js +1 -1
- package/dist/406.js.map +1 -1
- package/dist/420.js +1 -1
- package/dist/420.js.map +1 -1
- package/dist/607.js +1 -1
- package/dist/607.js.map +1 -1
- package/dist/695.js +2 -0
- package/dist/695.js.map +1 -0
- package/dist/754.js +2 -0
- package/dist/754.js.map +1 -0
- package/dist/762.js +3 -0
- package/dist/{50.js.LICENSE.txt → 762.js.LICENSE.txt} +0 -0
- package/dist/762.js.map +1 -0
- package/dist/860.js +2 -0
- package/dist/860.js.map +1 -0
- package/dist/889.js +1 -1
- package/dist/889.js.map +1 -1
- package/dist/951.js +1 -1
- package/dist/951.js.map +1 -1
- package/dist/openmrs-esm-login-app.js +1 -1
- package/dist/openmrs-esm-login-app.js.buildmanifest.json +221 -126
- package/dist/openmrs-esm-login-app.js.map +1 -1
- package/dist/openmrs-esm-login-app.old +1 -1
- package/jest.config.js +2 -0
- package/package.json +10 -5
- package/src/change-location-link/change-location-link.component.tsx +3 -3
- package/src/change-location-link/change-location-link.scss +0 -1
- package/src/loading/loading.component.tsx +1 -1
- package/src/location-picker/location-picker.component.tsx +2 -2
- package/src/location-picker/location-picker.scss +3 -5
- package/src/login/login.component.tsx +79 -80
- package/src/logout/logout.component.tsx +1 -1
- package/src/root.scss +43 -9
- package/src/styles.scss +79 -0
- package/dist/390.js +0 -2
- package/dist/390.js.map +0 -1
- package/dist/50.js +0 -3
- package/dist/50.js.map +0 -1
- package/dist/521.js +0 -2
- package/dist/521.js.map +0 -1
- package/dist/527.js +0 -3
- package/dist/527.js.LICENSE.txt +0 -5
- package/dist/527.js.map +0 -1
- package/dist/550.js +0 -3
- package/dist/550.js.map +0 -1
- package/dist/897.js +0 -2
- package/dist/897.js.map +0 -1
- package/src/login/login.scss +0 -130
package/dist/897.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"897.js","mappings":"gLAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,kIAAmI,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wCAAwC,MAAQ,GAAG,SAAW,4DAA4D,eAAiB,CAAC,qIAAqI,WAAa,MAEreH,EAAwBI,OAAS,CAChC,iBAAoB,iDAErB,W,gECPIJ,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,82HAA+2H,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,4DAA4D,4BAA4B,mEAAmE,oCAAoC,MAAQ,GAAG,SAAW,ymCAAymC,eAAiB,CAAC,6jDAA6jD,4kBAAgmB,gxsBAAgxsB,wzDAA0zD,WAAa,MAEv/+BH,EAAwBI,OAAS,CAChC,oBAAuB,iDACvB,oBAAuB,iDACvB,YAAe,yCACf,kCAAmC,6DACnC,gBAAiB,2CACjB,YAAe,yCACf,WAAc,wCACd,QAAW,qCACX,WAAc,wCACd,UAAa,uCACb,iBAAkB,4CAClB,UAAa,uCACb,OAAU,oCACV,MAAS,mCACT,KAAQ,kCACR,WAAY,sCACZ,WAAY,sCACZ,YAAa,uCACb,YAAa,uCACb,kBAAmB,6CACnB,aAAc,wCACd,eAAgB,0CAChB,KAAQ,kCACR,cAAe,yCACf,eAAkB,4CAClB,gBAAmB,6CACnB,OAAU,qCAEX,W,4H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s/esm-login-app/./src/loading/loading.scss","webpack://@openmrs/esm-login-app/./src/login/login.scss","webpack://@openmrs/esm-login-app/./src/login/login.resource.tsx","webpack://@openmrs/esm-login-app/./src/login/login.scss?93ea","webpack://@openmrs/esm-login-app/./src/login/login.component.tsx","webpack://@openmrs/esm-login-app/./src/loading/loading.scss?52bb","webpack://@openmrs/esm-login-app/./src/loading/loading.component.tsx","webpack://@openmrs/esm-login-app/./src/choose-location/choose-location.component.tsx","webpack://@openmrs/esm-login-app/./src/redirect-logout/logout.resource.ts","webpack://@openmrs/esm-login-app/./src/redirect-logout/redirect-logout.component.tsx","webpack://@openmrs/esm-login-app/./src/root.component.tsx"],"sourcesContent":["// 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, \".-esm-login__loading__centerLoadingSVG___mTF5v{display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/loading/loading.scss\"],\"names\":[],\"mappings\":\"AAAA,+CACE,YAAA,CACA,WAAA,CACA,YAAA,CACA,sBAAA,CACA,kBAAA\",\"sourcesContent\":[\".centerLoadingSVG {\\n display: flex;\\n width: 100vw;\\n height: 100vh;\\n justify-content: center;\\n align-items: center;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"centerLoadingSVG\": \"-esm-login__loading__centerLoadingSVG___mTF5v\"\n};\nexport default ___CSS_LOADER_EXPORT___;\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, \":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-login__login__productiveHeading01___rNht9{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px)}.-esm-login__login__productiveHeading03___cBnfT{font-size:var(--cds-heading-03-font-size, 1.25rem);font-weight:var(--cds-heading-03-font-weight, 400);line-height:var(--cds-heading-03-line-height, 1.4);letter-spacing:var(--cds-heading-03-letter-spacing, 0)}.-esm-login__login__bodyShort01___nlwDv,.-esm-login__login__contact-administrator-need-help___cl\\\\+CC,.-esm-login__login__need-help-txt___ZXwZW{font-size:var(--cds-body-compact-01-font-size, 0.875rem);font-weight:var(--cds-body-compact-01-font-weight, 400);line-height:var(--cds-body-compact-01-line-height, 1.28572);letter-spacing:var(--cds-body-compact-01-letter-spacing, 0.16px)}.-esm-login__login__bodyShort02___1MMZn{font-size:var(--cds-body-compact-02-font-size, 1rem);font-weight:var(--cds-body-compact-02-font-weight, 400);line-height:var(--cds-body-compact-02-line-height, 1.375);letter-spacing:var(--cds-body-compact-02-letter-spacing, 0)}.-esm-login__login__bodyLong01___jezJv{font-size:var(--cds-body-01-font-size, 0.875rem);font-weight:var(--cds-body-01-font-weight, 400);line-height:var(--cds-body-01-line-height, 1.42857);letter-spacing:var(--cds-body-01-letter-spacing, 0.16px)}.-esm-login__login__label01___Ojuxp,.-esm-login__login__inputStyle___z04aH{font-size:var(--cds-label-01-font-size, 0.75rem);font-weight:var(--cds-label-01-font-weight, 400);line-height:var(--cds-label-01-line-height, 1.33333);letter-spacing:var(--cds-label-01-letter-spacing, 0.32px)}.-esm-login__login__caption01___aOjUn,.-esm-login__login__powered-by-txt___cp7mp{font-size:var(--cds-legal-01-font-size, 0.75rem);font-weight:var(--cds-legal-01-font-weight, 400);line-height:var(--cds-legal-01-line-height, 1.33333);letter-spacing:var(--cds-legal-01-letter-spacing, 0.32px)}.-esm-login__login__container___SmdkR{display:flex;flex-direction:column;justify-content:center;align-items:center}.-esm-login__login__center___\\\\+yhR\\\\+{text-align:center}.-esm-login__login__right___9bTjD{text-align:right}.-esm-login__login__logo___9ZHJ\\\\+{margin-bottom:2.5rem;height:5rem;max-width:18rem}.-esm-login__login__logo-img___mKboF{margin-bottom:3rem;max-width:100%}.-esm-login__login__icon-btn___uGaQ7{cursor:pointer}.-esm-login__login__error-msg___o3nId{margin-top:1rem;color:#da1e28}.-esm-login__login__powered-by-txt___cp7mp{text-align:center;color:#525252;color:#525252}.-esm-login__login__need-help___v3A2r{display:flex;width:23rem}.-esm-login__login__need-help-txt___ZXwZW{text-align:left;color:#525252;display:flex;flex-direction:row;align-items:center}.-esm-login__login__contact-administrator-need-help___cl\\\\+CC{padding-left:.5rem}.-esm-login__login__powered-by-logo___Bq9f2{height:2.5rem;width:6.5rem}.-esm-login__login__login-card___eVRye{border-radius:0;border:1px solid #c6c6c6;background-color:#fff;width:23rem;padding:2.5rem}@media only screen and (min-width: 481px){.-esm-login__login__container___SmdkR{height:100vh}}@media only screen and (max-width: 480px){.-esm-login__login__login-card___eVRye{margin-top:2.5%;border:none}.-esm-login__login__container___SmdkR{height:100vh}}.-esm-login__login__card-content___zfW5S{border:none;padding:.625rem .25rem .625rem 1rem;border-radius:0}.-esm-login__login__card___QKzIj{width:21.75rem;margin:.5rem 1rem}.-esm-login__login__input-group___OvEYl{display:flex;justify-content:center;flex-direction:column;align-items:center;width:18rem;height:4.5rem}.-esm-login__login__continueButton___VnN\\\\+0{width:18rem}.-esm-login__login__inputStyle___z04aH{width:18rem;height:3rem}.-esm-login__login__buttonContainer___Bh9bH{margin-top:1.5rem}.-esm-login__login__footer___A7jlG{margin-top:6.75rem}\", \"\",{\"version\":3,\"sources\":[\"webpack://./../../framework/esm-styleguide/src/_vars.scss\",\"webpack://./src/root.scss\",\"webpack://./../../../node_modules/@carbon/type/scss/_styles.scss\",\"webpack://./src/login/login.scss\"],\"names\":[],\"mappings\":\"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCnDF,gDC6yBI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDzyBJ,gDCyyBI,kDAAA,CAAA,kDAAA,CAAA,kDAAA,CAAA,sDAAA,CDryBJ,+ICqyBI,wDAAA,CAAA,uDAAA,CAAA,2DAAA,CAAA,gEAAA,CDjyBJ,wCCiyBI,oDAAA,CAAA,uDAAA,CAAA,yDAAA,CAAA,2DAAA,CD7xBJ,uCC6xBI,gDAAA,CAAA,+CAAA,CAAA,mDAAA,CAAA,wDAAA,CDzxBJ,2ECyxBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CDrxBJ,iFCqxBI,gDAAA,CAAA,gDAAA,CAAA,oDAAA,CAAA,yDAAA,CC/yBJ,sCACE,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CAGF,qCACE,iBAAA,CAGF,kCACE,gBAAA,CAGF,kCACE,oBAAA,CACA,WAAA,CACA,eAAA,CAGF,qCACE,kBAAA,CACA,cAAA,CAGF,qCACE,cAAA,CAGF,sCACE,eAAA,CACA,aHdO,CGiBT,2CAEE,iBAAA,CACA,aH/Bc,CGgCd,aHpCQ,CGuCV,sCACE,YAAA,CACA,WAAA,CAGF,0CAEE,eAAA,CACA,aH/CQ,CGgDR,YAAA,CACA,kBAAA,CACA,kBAAA,CAGF,6DAEE,kBAAA,CAGF,4CACE,aAAA,CACA,YAAA,CAGF,uCACE,eAAA,CACA,wBAAA,CACA,qBHtEM,CGuEN,WAAA,CACA,cAAA,CAGF,0CACE,sCACE,YAAA,CAAA,CAIJ,0CACE,uCACE,eAAA,CACA,WAAA,CAGF,sCACE,YAAA,CAAA,CAIJ,yCACE,WAAA,CACA,mCAAA,CACA,eAAA,CAGF,iCACE,cAAA,CACA,iBAAA,CAGF,wCACE,YAAA,CACA,sBAAA,CACA,qBAAA,CACA,kBAAA,CACA,WAAA,CACA,aAAA,CAGF,4CACE,WAAA,CAGF,uCAEE,WAAA,CACA,WAAA,CAGF,4CACE,iBAAA,CAGF,mCACE,kBAAA\",\"sourcesContent\":[\"$ui-01: #f4f4f4;\\n$ui-02: #ffffff;\\n$ui-03: #e0e0e0;\\n$ui-04: #8d8d8d;\\n$ui-05: #161616;\\n$text-02: #525252;\\n$text-03: #a8a8a8;\\n$ui-background: #ffffff;\\n$color-gray-30: #c6c6c6;\\n$color-gray-70: #525252;\\n$color-gray-100: #161616;\\n$color-blue-60-2: #0f62fe;\\n$color-blue-10: #edf5ff;\\n$color-yellow-50: #feecae;\\n$carbon--red-50: #fa4d56;\\n$inverse-link: #78a9ff;\\n$support-02: #24a148;\\n$inverse-support-03: #f1c21b;\\n$warning-background: #fff8e1;\\n$openmrs-background-grey: #f4f4f4;\\n$danger: #da1e28;\\n$interactive-01: #0f62fe;\\n$field-01: #f4f4f4;\\n$grey-2: #e0e0e0;\\n$labeldropdown: #c6c6c6;\\n\\n$brand-primary-10: #d9fbfb;\\n$brand-primary-20: #9ef0f0;\\n$brand-primary-30: #3ddbd9;\\n$brand-primary-40: #08bdba;\\n$brand-primary-50: #009d9a;\\n\\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\\n\\n$brand-primary-90: #022b30;\\n$brand-primary-100: #081a1c;\\n\\n@mixin brand-01($property) {\\n #{$property}: #005d5d;\\n #{$property}: var(--brand-01);\\n}\\n\\n@mixin brand-02($property) {\\n #{$property}: #004144;\\n #{$property}: var(--brand-02);\\n}\\n\\n@mixin brand-03($property) {\\n #{$property}: #007d79;\\n #{$property}: var(--brand-03);\\n}\\n\\n:root {\\n --brand-01: #005d5d;\\n --brand-02: #004144;\\n --brand-03: #007d79;\\n}\\n\\n$breakpoint-phone-min: 0px;\\n$breakpoint-phone-max: 600px;\\n$breakpoint-tablet-min: 601px;\\n$breakpoint-tablet-max: 1200px;\\n$breakpoint-desktop-min: 1201px;\\n$breakpoint-desktop-max: 99999999px;\\n\\n/* These color variables will be removed in a future release */\\n$brand-teal-01: #007d79;\\n$brand-01: #005d5d;\\n$brand-02: #004144;\\n\",\"@use \\\"@carbon/styles/scss/type\\\";\\n@use \\\"@carbon/styles/scss/spacing\\\";\\n@import \\\"~@openmrs/esm-styleguide/src/vars\\\";\\n\\n.productiveHeading01 {\\n @include type.type-style(\\\"heading-compact-01\\\");\\n}\\n\\n.productiveHeading03 {\\n @include type.type-style(\\\"heading-03\\\");\\n}\\n\\n.bodyShort01 {\\n @include type.type-style(\\\"body-compact-01\\\");\\n}\\n\\n.bodyShort02 {\\n @include type.type-style(\\\"body-compact-02\\\");\\n}\\n\\n.bodyLong01 {\\n @include type.type-style(\\\"body-01\\\");\\n}\\n\\n.label01 {\\n @include type.type-style(\\\"label-01\\\");\\n}\\n\\n.caption01 {\\n @include type.type-style(\\\"legal-01\\\");\\n}\\n\",\"//\\n// Copyright IBM Corp. 2018, 2018\\n//\\n// This source code is licensed under the Apache-2.0 license found in the\\n// LICENSE file in the root directory of this source tree.\\n//\\n\\n// stylelint-disable number-max-precision\\n\\n@use 'sass:map';\\n@use 'sass:math';\\n@use '@carbon/grid/scss/config' as gridconfig;\\n@use '@carbon/grid/scss/breakpoint' as grid;\\n@use 'prefix' as *;\\n@use 'font-family';\\n@use 'scale';\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$label-01: (\\n font-size: scale.type-scale(1),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.33333,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$legal-01: (\\n font-size: scale.type-scale(1),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.33333,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$legal-02: (\\n font-size: scale.type-scale(2),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.28572,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @deprecated\\n/// @group @carbon/type\\n$helper-text-01: (\\n font-size: scale.type-scale(1),\\n line-height: 1.33333,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-01: (\\n font-size: scale.type-scale(2),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.28572,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-compact-01: $body-short-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-long-01: (\\n font-size: scale.type-scale(2),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.42857,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-01: $body-long-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-short-02: (\\n font-size: scale.type-scale(3),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.375,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-compact-02: $body-short-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-long-02: (\\n font-size: scale.type-scale(3),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.5,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$body-02: $body-long-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$code-01: (\\n font-family: font-family.font-family('mono'),\\n font-size: scale.type-scale(1),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.33333,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$code-02: (\\n font-family: font-family.font-family('mono'),\\n font-size: scale.type-scale(2),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.42857,\\n letter-spacing: 0.32px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-01: (\\n font-size: scale.type-scale(2),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.42857,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-01: (\\n font-size: scale.type-scale(2),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.28572,\\n letter-spacing: 0.16px,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-compact-01: $productive-heading-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-02: (\\n font-size: scale.type-scale(3),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.5,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-02: (\\n font-size: scale.type-scale(3),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.375,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-compact-02: $productive-heading-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-03: (\\n font-size: scale.type-scale(5),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.4,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-03: $productive-heading-03 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-04: (\\n font-size: scale.type-scale(7),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.28572,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-04: $productive-heading-04 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-05: (\\n font-size: scale.type-scale(8),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-05: $productive-heading-05 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-06: (\\n font-size: scale.type-scale(8),\\n font-weight: font-family.font-weight('light'),\\n // Extra digit needed for precision in Chrome\\n line-height: 1.199,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-06: $productive-heading-06 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$productive-heading-07: (\\n font-size: scale.type-scale(10),\\n font-weight: font-family.font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$heading-07: $productive-heading-07 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-01: $heading-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-02: $heading-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-03: (\\n font-size: scale.type-scale(5),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.4,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: scale.type-scale(5),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: scale.type-scale(6),\\n line-height: 1.334,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-heading-03: $expressive-heading-03 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-04: (\\n font-size: scale.type-scale(7),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.28572,\\n letter-spacing: 0,\\n breakpoints: (\\n xlg: (\\n font-size: scale.type-scale(7),\\n line-height: 1.25,\\n ),\\n max: (\\n font-size: scale.type-scale(8),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-heading-04: $expressive-heading-04 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-05: (\\n font-size: scale.type-scale(8),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(9),\\n font-weight: font-family.font-weight('light'),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: scale.type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: scale.type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: scale.type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-heading-05: $expressive-heading-05 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-heading-06: (\\n font-size: scale.type-scale(8),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: scale.type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: scale.type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: scale.type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-heading-06: $expressive-heading-06 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$expressive-paragraph-01: (\\n font-size: scale.type-scale(6),\\n font-weight: font-family.font-weight('light'),\\n line-height: 1.334,\\n letter-spacing: 0,\\n breakpoints: (\\n lg: (\\n font-size: scale.type-scale(7),\\n line-height: 1.28572,\\n ),\\n max: (\\n font-size: scale.type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n);\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-01: (\\n font-family: font-family.font-family('serif'),\\n font-size: scale.type-scale(5),\\n font-weight: font-family.font-weight('regular'),\\n line-height: 1.3,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(5),\\n ),\\n lg: (\\n font-size: scale.type-scale(6),\\n line-height: 1.334,\\n ),\\n xlg: (\\n font-size: scale.type-scale(7),\\n line-height: 1.28572,\\n ),\\n max: (\\n font-size: scale.type-scale(8),\\n line-height: 1.25,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-quotation-01: $quotation-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$quotation-02: (\\n font-family: font-family.font-family('serif'),\\n font-size: scale.type-scale(8),\\n font-weight: font-family.font-weight('light'),\\n line-height: 1.25,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(9),\\n line-height: 1.22,\\n ),\\n lg: (\\n font-size: scale.type-scale(10),\\n line-height: 1.19,\\n ),\\n xlg: (\\n font-size: scale.type-scale(11),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: scale.type-scale(13),\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-quotation-02: $quotation-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-01: (\\n font-size: scale.type-scale(10),\\n font-weight: font-family.font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(10),\\n ),\\n lg: (\\n font-size: scale.type-scale(12),\\n ),\\n xlg: (\\n font-size: scale.type-scale(13),\\n line-height: 1.17,\\n ),\\n max: (\\n font-size: scale.type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-display-01: $display-01 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-02: (\\n font-size: scale.type-scale(10),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(10),\\n ),\\n lg: (\\n font-size: scale.type-scale(12),\\n ),\\n xlg: (\\n font-size: scale.type-scale(13),\\n line-height: 1.16,\\n ),\\n max: (\\n font-size: scale.type-scale(15),\\n line-height: 1.13,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-display-02: $display-02 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-03: (\\n font-size: scale.type-scale(10),\\n font-weight: font-family.font-weight('light'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: scale.type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: scale.type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: scale.type-scale(23),\\n line-height: 1.05,\\n letter-spacing: -0.96px,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-display-03: $display-03 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$display-04: (\\n font-size: scale.type-scale(10),\\n font-weight: font-family.font-weight('semibold'),\\n line-height: 1.19,\\n letter-spacing: 0,\\n breakpoints: (\\n md: (\\n font-size: scale.type-scale(14),\\n line-height: 1.15,\\n ),\\n lg: (\\n font-size: scale.type-scale(17),\\n line-height: 1.11,\\n letter-spacing: -0.64px,\\n ),\\n xlg: (\\n font-size: scale.type-scale(20),\\n line-height: 1.07,\\n letter-spacing: -0.64px,\\n ),\\n max: (\\n font-size: scale.type-scale(23),\\n line-height: 1.05,\\n letter-spacing: -0.96px,\\n ),\\n ),\\n) !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$fluid-display-04: $display-04 !default;\\n\\n/// @type Map\\n/// @access public\\n/// @group @carbon/type\\n$tokens: (\\n label-01: $label-01,\\n helper-text-01: $helper-text-01,\\n body-short-01: $body-short-01,\\n body-short-02: $body-short-02,\\n body-long-01: $body-long-01,\\n body-long-02: $body-long-02,\\n code-01: $code-01,\\n code-02: $code-02,\\n heading-01: $heading-01,\\n heading-02: $heading-02,\\n productive-heading-01: $productive-heading-01,\\n productive-heading-02: $productive-heading-02,\\n productive-heading-03: $productive-heading-03,\\n productive-heading-04: $productive-heading-04,\\n productive-heading-05: $productive-heading-05,\\n productive-heading-06: $productive-heading-06,\\n productive-heading-07: $productive-heading-07,\\n expressive-paragraph-01: $expressive-paragraph-01,\\n expressive-heading-01: $expressive-heading-01,\\n expressive-heading-02: $expressive-heading-02,\\n expressive-heading-03: $expressive-heading-03,\\n expressive-heading-04: $expressive-heading-04,\\n expressive-heading-05: $expressive-heading-05,\\n expressive-heading-06: $expressive-heading-06,\\n quotation-01: $quotation-01,\\n quotation-02: $quotation-02,\\n display-01: $display-01,\\n display-02: $display-02,\\n display-03: $display-03,\\n display-04: $display-04,\\n // V11 Tokens\\n legal-01: $legal-01,\\n legal-02: $legal-02,\\n body-compact-01: $body-compact-01,\\n body-compact-02: $body-compact-02,\\n heading-compact-01: $heading-compact-01,\\n heading-compact-02: $heading-compact-02,\\n body-01: $body-01,\\n body-02: $body-02,\\n heading-03: $heading-03,\\n heading-04: $heading-04,\\n heading-05: $heading-05,\\n heading-06: $heading-06,\\n heading-07: $heading-07,\\n fluid-heading-03: $fluid-heading-03,\\n fluid-heading-04: $fluid-heading-04,\\n fluid-heading-05: $fluid-heading-05,\\n fluid-heading-06: $fluid-heading-06,\\n fluid-paragraph-01: $fluid-paragraph-01,\\n fluid-quotation-01: $fluid-quotation-01,\\n fluid-quotation-02: $fluid-quotation-02,\\n fluid-display-01: $fluid-display-01,\\n fluid-display-02: $fluid-display-02,\\n fluid-display-03: $fluid-display-03,\\n fluid-display-04: $fluid-display-04,\\n);\\n\\n/// @param {Map} $map\\n/// @access public\\n/// @group @carbon/type\\n@mixin properties($map) {\\n @each $name, $value in $map {\\n #{$name}: $value;\\n }\\n}\\n\\n/// @param {Number} $value - Number with units\\n/// @return {Number} Without units\\n/// @access public\\n/// @group @carbon/type\\n@function strip-unit($value) {\\n @return math.div($value, $value * 0 + 1);\\n}\\n\\n/// This helper includes fluid type styles for the given token value. Fluid type\\n/// means that the `font-size` is computed using `calc()` in order to be\\n/// determined by the screen size instead of a breakpoint. As a result, fluid\\n/// styles should be used with caution in fixed width contexts.\\n///\\n/// In addition, we make use of %-based line-heights so that the line-height of\\n/// each type style is computed correctly due to the dynamic nature of the\\n/// `font-size`.\\n///\\n/// Most of the logic for this work comes from CSS Tricks:\\n/// https://css-tricks.com/snippets/css/fluid-typography/\\n///\\n/// @param {Map} $type-styles - The value of a given type token\\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\\n // Include the initial styles for the given token by default without any\\n // media query guard. This includes `font-size` as a fallback in the case\\n // that a browser does not support `calc()`\\n @include properties(map.remove($type-styles, breakpoints));\\n // We also need to include the `sm` styles by default since they don't\\n // appear in the fluid styles for tokens\\n @include fluid-type-size($type-styles, sm, $breakpoints);\\n\\n // Finally, we need to go through all the breakpoints defined in the type\\n // token and apply the properties and fluid type size for that given\\n // breakpoint\\n @each $name, $values in map.get($type-styles, breakpoints) {\\n @include grid.breakpoint($name) {\\n @include properties($values);\\n @include fluid-type-size($type-styles, $name, $breakpoints);\\n }\\n }\\n}\\n\\n/// Computes the fluid `font-size` for a given type style and breakpoint\\n/// @param {Map} $type-styles - The styles for a given token\\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\\n/// @access public\\n/// @group @carbon/type\\n@mixin fluid-type-size(\\n $type-styles,\\n $name,\\n $breakpoints: gridconfig.$grid-breakpoints\\n) {\\n // Get the information about the breakpoint we're currently working in. Useful\\n // for getting initial width information\\n $breakpoint: map.get($breakpoints, $name);\\n\\n // Our fluid styles are captured under the 'breakpoints' property in our type\\n // styles map. These define what values to treat as `max-` variables below\\n $fluid-sizes: map.get($type-styles, breakpoints);\\n $fluid-breakpoint: ();\\n // Special case for `sm` because the styles for small are on the type style\\n // directly\\n @if $name == sm {\\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\\n } @else {\\n $fluid-breakpoint: map.get($fluid-sizes, $name);\\n }\\n\\n // Initialize our font-sizes to the default size for the type style\\n $max-font-size: map.get($type-styles, font-size);\\n $min-font-size: map.get($type-styles, font-size);\\n @if map.has-key($fluid-breakpoint, font-size) {\\n $min-font-size: map.get($fluid-breakpoint, font-size);\\n }\\n\\n // Initialize our min and max width to the width of the current breakpoint\\n $max-vw: map.get($breakpoint, width);\\n $min-vw: map.get($breakpoint, width);\\n\\n // We can use `breakpoint-next` to see if there is another breakpoint we can\\n // use to update `max-font-size` and `max-vw` with larger values\\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\\n $next-fluid-breakpoint-name: null;\\n\\n // We need to figure out what the next available fluid breakpoint is for our\\n // given $type-styles. In this loop we try and iterate through breakpoints\\n // until we either manually set $next-breakpoint-available to null or\\n // `breakpoint-next` returns null.\\n @while $next-breakpoint-available {\\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\\n $next-fluid-breakpoint-name: $next-breakpoint-available;\\n $next-breakpoint-available: null;\\n } @else {\\n $next-breakpoint-available: grid.breakpoint-next(\\n $next-breakpoint-available,\\n $breakpoints\\n );\\n }\\n }\\n\\n // If we have found the next available fluid breakpoint name, then we know\\n // that we have values that we can use to set max-font-size and max-vw as both\\n // values derive from the next breakpoint\\n @if $next-fluid-breakpoint-name {\\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\\n $max-font-size: map.get(\\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\\n font-size\\n );\\n $max-vw: map.get($next-fluid-breakpoint, width);\\n\\n // prettier-ignore\\n font-size: calc(#{$min-font-size} +\\n #{strip-unit($max-font-size - $min-font-size)} *\\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\\n );\\n } @else {\\n // Otherwise, just default to setting the font size found from the type\\n // style or the given fluid breakpoint in the type style\\n font-size: $min-font-size;\\n }\\n}\\n\\n// TODO move following variable and `custom-property` mixin into shared file for\\n// both `@carbon/type` and `@carbon/themes`\\n\\n/// @access private\\n/// @group @carbon/type\\n@mixin custom-properties($name, $value) {\\n @each $property, $value in $value {\\n #{$property}: var(\\n --#{$custom-property-prefix}-#{$name}-#{$property},\\n #{$value}\\n );\\n }\\n}\\n\\n/// Helper mixin to include the styles for a given token in any selector in your\\n/// project. Also includes an optional fluid option that will enable fluid\\n/// styles for the token if they are defined. Fluid styles will cause the\\n/// token's font-size to be computed based on the viewport size. As a result, use\\n/// with caution in fixed contexts.\\n/// @param {String} $name - The name of the token to get the styles for\\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\\n/// @access public\\n/// @group @carbon/type\\n@mixin type-style(\\n $name,\\n $fluid: false,\\n $breakpoints: gridconfig.$grid-breakpoints\\n) {\\n @if not map.has-key($tokens, $name) {\\n @error 'Unable to find a token with the name: `#{$name}`';\\n }\\n\\n $token: map.get($tokens, $name);\\n\\n // If $fluid is set to true and the token has breakpoints defined for fluid\\n // styles, delegate to the fluid-type helper for the given token\\n @if $fluid == true and map.has-key($token, 'breakpoints') {\\n @include fluid-type($token, $breakpoints);\\n } @else {\\n @include custom-properties($name, $token);\\n }\\n}\\n\",\"@import \\\"../root.scss\\\";\\n\\n.container {\\n display: flex;\\n flex-direction: column;\\n justify-content: center;\\n align-items: center;\\n}\\n\\n.center {\\n text-align: center;\\n}\\n\\n.right {\\n text-align: right;\\n}\\n\\n.logo {\\n margin-bottom: 2.5rem;\\n height: 5rem;\\n max-width: 18rem;\\n}\\n\\n.logo-img {\\n margin-bottom: 3rem;\\n max-width: 100%;\\n}\\n\\n.icon-btn {\\n cursor: pointer;\\n}\\n\\n.error-msg {\\n margin-top: 1rem;\\n color: $danger;\\n}\\n\\n.powered-by-txt {\\n @extend .caption01;\\n text-align: center;\\n color: $color-gray-70;\\n color: $text-02;\\n}\\n\\n.need-help {\\n display: flex;\\n width: 23rem;\\n}\\n\\n.need-help-txt {\\n @extend .bodyShort01;\\n text-align: left;\\n color: $text-02;\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n}\\n\\n.contact-administrator-need-help {\\n @extend .bodyShort01;\\n padding-left: 0.5rem;\\n}\\n\\n.powered-by-logo {\\n height: 2.5rem;\\n width: 6.5rem;\\n}\\n\\n.login-card {\\n border-radius: 0;\\n border: 1px solid $color-gray-30;\\n background-color: $ui-02;\\n width: 23rem;\\n padding: 2.5rem;\\n}\\n\\n@media only screen and (min-width: 481px) {\\n .container {\\n height: 100vh;\\n }\\n}\\n\\n@media only screen and (max-width: 480px) {\\n .login-card {\\n margin-top: 2.5%;\\n border: none;\\n }\\n\\n .container {\\n height: 100vh;\\n }\\n}\\n\\n.card-content {\\n border: none;\\n padding: 0.625rem 0.25rem 0.625rem 1rem;\\n border-radius: 0;\\n}\\n\\n.card {\\n width: 21.75rem;\\n margin: 0.5rem 1rem;\\n}\\n\\n.input-group {\\n display: flex;\\n justify-content: center;\\n flex-direction: column;\\n align-items: center;\\n width: 18rem;\\n height: 4.5rem;\\n}\\n\\n.continueButton {\\n width: 18rem;\\n}\\n\\n.inputStyle {\\n @extend .label01;\\n width: 18rem;\\n height: 3rem;\\n}\\n\\n.buttonContainer {\\n margin-top: 1.5rem;\\n}\\n\\n.footer {\\n margin-top: 6.75rem;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\n___CSS_LOADER_EXPORT___.locals = {\n\t\"productiveHeading01\": \"-esm-login__login__productiveHeading01___rNht9\",\n\t\"productiveHeading03\": \"-esm-login__login__productiveHeading03___cBnfT\",\n\t\"bodyShort01\": \"-esm-login__login__bodyShort01___nlwDv\",\n\t\"contact-administrator-need-help\": \"-esm-login__login__contact-administrator-need-help___cl+CC\",\n\t\"need-help-txt\": \"-esm-login__login__need-help-txt___ZXwZW\",\n\t\"bodyShort02\": \"-esm-login__login__bodyShort02___1MMZn\",\n\t\"bodyLong01\": \"-esm-login__login__bodyLong01___jezJv\",\n\t\"label01\": \"-esm-login__login__label01___Ojuxp\",\n\t\"inputStyle\": \"-esm-login__login__inputStyle___z04aH\",\n\t\"caption01\": \"-esm-login__login__caption01___aOjUn\",\n\t\"powered-by-txt\": \"-esm-login__login__powered-by-txt___cp7mp\",\n\t\"container\": \"-esm-login__login__container___SmdkR\",\n\t\"center\": \"-esm-login__login__center___+yhR+\",\n\t\"right\": \"-esm-login__login__right___9bTjD\",\n\t\"logo\": \"-esm-login__login__logo___9ZHJ+\",\n\t\"logo-img\": \"-esm-login__login__logo-img___mKboF\",\n\t\"icon-btn\": \"-esm-login__login__icon-btn___uGaQ7\",\n\t\"error-msg\": \"-esm-login__login__error-msg___o3nId\",\n\t\"need-help\": \"-esm-login__login__need-help___v3A2r\",\n\t\"powered-by-logo\": \"-esm-login__login__powered-by-logo___Bq9f2\",\n\t\"login-card\": \"-esm-login__login__login-card___eVRye\",\n\t\"card-content\": \"-esm-login__login__card-content___zfW5S\",\n\t\"card\": \"-esm-login__login__card___QKzIj\",\n\t\"input-group\": \"-esm-login__login__input-group___OvEYl\",\n\t\"continueButton\": \"-esm-login__login__continueButton___VnN+0\",\n\t\"buttonContainer\": \"-esm-login__login__buttonContainer___Bh9bH\",\n\t\"footer\": \"-esm-login__login__footer___A7jlG\"\n};\nexport default ___CSS_LOADER_EXPORT___;\n","import { openmrsFetch, refetchCurrentUser } from \"@openmrs/esm-framework\";\n\nexport function performLogin(username, password) {\n const token = window.btoa(`${username}:${password}`);\n return openmrsFetch(`/ws/rest/v1/session`, {\n headers: {\n Authorization: `Basic ${token}`,\n },\n }).then((res) => {\n refetchCurrentUser();\n return res;\n });\n}\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../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/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./login.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/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./login.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import React, { useState, useRef, useEffect, useCallback } from \"react\";\nimport { Button, InlineNotification, TextInput, Tile } from \"@carbon/react\";\nimport { ArrowRight } from \"@carbon/react/icons\";\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { useTranslation } from \"react-i18next\";\nimport { useConfig, interpolateUrl, useSession } from \"@openmrs/esm-framework\";\nimport { performLogin } from \"./login.resource\";\nimport type { StaticContext } from \"react-router\";\nimport styles from \"./login.scss\";\n\nconst hidden: React.CSSProperties = {\n height: 0,\n width: 0,\n border: 0,\n padding: 0,\n};\n\nexport interface LoginReferrer {\n referrer?: string;\n}\n\nexport interface LoginProps\n extends RouteComponentProps<{}, StaticContext, LoginReferrer> {\n isLoginEnabled: boolean;\n}\n\nconst Login: React.FC<LoginProps> = ({ history, location, isLoginEnabled }) => {\n const config = useConfig();\n const { user } = useSession();\n const [username, setUsername] = useState(\"\");\n const [password, setPassword] = useState(\"\");\n const [errorMessage, setErrorMessage] = useState(\"\");\n const passwordInputRef = useRef<HTMLInputElement>(null);\n const usernameInputRef = useRef<HTMLInputElement>(null);\n const formRef = useRef<HTMLFormElement>(null);\n const [t] = useTranslation();\n const showPassword = location.pathname === \"/login/confirm\";\n\n useEffect(() => {\n if (user) {\n history.push(\"/login/location\", location.state);\n } else if (!username && location.pathname === \"/login/confirm\") {\n history.replace(\"/login\", location.state);\n }\n }, [user, username, history, location]);\n\n useEffect(() => {\n const field = showPassword\n ? passwordInputRef.current\n : usernameInputRef.current;\n\n if (field) {\n field.focus();\n }\n }, [showPassword]);\n\n useEffect(() => {\n if (!user && config.provider.type === \"oauth2\") {\n const loginUrl = config.provider.loginUrl;\n window.location.href = loginUrl;\n }\n }, [config, user]);\n\n const continueLogin = useCallback(() => {\n const field = usernameInputRef.current;\n\n if (field.value.length > 0) {\n history.push(\"/login/confirm\", location.state);\n } else {\n field.focus();\n }\n }, [history]);\n\n const changeUsername = useCallback(\n (evt: React.ChangeEvent<HTMLInputElement>) => setUsername(evt.target.value),\n []\n );\n\n const changePassword = useCallback(\n (evt: React.ChangeEvent<HTMLInputElement>) => setPassword(evt.target.value),\n []\n );\n\n const resetUserNameAndPassword = useCallback(() => {\n setUsername(\"\");\n setPassword(\"\");\n }, []);\n\n const handleSubmit = useCallback(\n async (evt: React.FormEvent<HTMLFormElement>) => {\n evt.preventDefault();\n evt.stopPropagation();\n\n if (!showPassword) {\n continueLogin();\n return false;\n }\n\n try {\n const loginRes = await performLogin(username, password);\n const authData = loginRes.data;\n const valid = authData && authData.authenticated;\n\n if (!valid) {\n throw new Error(\"invalidCredentials\");\n }\n } catch (error) {\n setErrorMessage(error.message);\n resetUserNameAndPassword();\n }\n\n return false;\n },\n [continueLogin, resetUserNameAndPassword, showPassword, username, password]\n );\n\n const logo = config.logo.src ? (\n <img\n src={interpolateUrl(config.logo.src)}\n alt={config.logo.alt}\n className={styles[\"logo-img\"]}\n />\n ) : (\n <svg role=\"img\" className={styles[\"logo\"]}>\n <title>OpenMRS logo</title>\n <use xlinkHref=\"#omrs-logo-full-color\"></use>\n </svg>\n );\n\n if (config.provider.type === \"basic\") {\n return (\n <div className={`canvas ${styles[\"container\"]}`}>\n {errorMessage && (\n <InlineNotification\n kind=\"error\"\n style={{ width: \"23rem\" }}\n /**\n * This comment tells i18n to still keep the following translation keys (used as value for: errorMessage):\n * t('invalidCredentials')\n */\n subtitle={t(errorMessage)}\n title={t(\"error\", \"Error\")}\n onClick={() => setErrorMessage(\"\")}\n />\n )}\n <Tile className={styles[\"login-card\"]}>\n <div className={styles[\"center\"]}>{logo}</div>\n <form onSubmit={handleSubmit} ref={formRef}>\n {!showPassword && (\n <>\n <div className={styles[\"input-group\"]}>\n <TextInput\n id=\"username\"\n type=\"text\"\n name=\"username\"\n labelText={t(\"username\", \"Username\")}\n className={styles.inputStyle}\n value={username}\n onChange={changeUsername}\n ref={usernameInputRef}\n autoFocus\n required\n />\n <input\n id=\"password\"\n style={hidden}\n type=\"password\"\n name=\"password\"\n value={password}\n onChange={changePassword}\n />\n </div>\n <div className={styles.buttonContainer}>\n <Button\n aria-label=\"continue\"\n className={styles.continueButton}\n renderIcon={(props) => <ArrowRight size={24} {...props} />}\n type=\"submit\"\n iconDescription=\"Continue to login\"\n onClick={continueLogin}\n disabled={!isLoginEnabled}\n >\n {t(\"continue\", \"Continue\")}\n </Button>\n </div>\n </>\n )}\n {showPassword && (\n <>\n <div className={styles[\"input-group\"]}>\n <input\n id=\"username\"\n type=\"text\"\n name=\"username\"\n style={hidden}\n value={username}\n onChange={changeUsername}\n required\n />\n\n <TextInput.PasswordInput\n id=\"password\"\n invalidText={t(\n \"validValueRequired\",\n \"A valid value is required\"\n )}\n labelText={t(\"password\", \"Password\")}\n name=\"password\"\n className={styles.inputStyle}\n value={password}\n onChange={changePassword}\n ref={passwordInputRef}\n required\n showPasswordLabel=\"Show password\"\n />\n </div>\n <div className={styles.buttonContainer}>\n <Button\n aria-label=\"submit\"\n type=\"submit\"\n className={styles.continueButton}\n renderIcon={(props) => <ArrowRight size={24} {...props} />}\n iconDescription=\"Log in\"\n disabled={!isLoginEnabled}\n >\n {t(\"login\", \"Log in\")}\n </Button>\n </div>\n </>\n )}\n </form>\n </Tile>\n <div className={styles[\"need-help\"]}>\n <p className={styles[\"need-help-txt\"]}>\n {t(\"needHelp\", \"Need help?\")}\n <Button kind=\"ghost\">\n {t(\"contactAdmin\", \"Contact the site administrator\")}\n </Button>\n </p>\n </div>\n <div className={styles[\"footer\"]}>\n <p className={styles[\"powered-by-txt\"]}>\n {t(\"poweredBy\", \"Powered by\")}\n </p>\n <div>\n <svg role=\"img\" className={styles[\"powered-by-logo\"]}>\n <use xlinkHref=\"#omrs-logo-partial-mono\"></use>\n </svg>\n </div>\n </div>\n </div>\n );\n }\n\n return null;\n};\n\nexport default Login;\n","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../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/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./loading.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/sass-loader/dist/cjs.js??ruleSet[1].rules[2].use[2]!./loading.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import React from \"react\";\nimport { Loading } from \"@carbon/react\";\nimport styles from \"./loading.scss\";\n\nconst LoadingIcon: React.FC = () => (\n <div className={styles[\"centerLoadingSVG\"]}>\n <Loading\n description=\"Active loading indicator\"\n role=\"progressbar\"\n withOverlay={false}\n small\n />\n </div>\n);\n\nexport default LoadingIcon;\n","import React, { useCallback, useEffect } from \"react\";\nimport LoadingIcon from \"../loading/loading.component\";\nimport LocationPicker from \"../location-picker/location-picker.component\";\nimport { RouteComponentProps } from \"react-router-dom\";\nimport {\n navigate,\n useConfig,\n setSessionLocation,\n useSession,\n} from \"@openmrs/esm-framework\";\nimport { useLoginLocations } from \"./choose-location.resource\";\nimport type { StaticContext } from \"react-router\";\n\nexport interface LoginReferrer {\n referrer?: string;\n}\n\nexport interface ChooseLocationProps\n extends RouteComponentProps<{}, StaticContext, LoginReferrer> {\n isLoginEnabled: boolean;\n}\n\nexport const ChooseLocation: React.FC<ChooseLocationProps> = ({\n location,\n isLoginEnabled,\n}) => {\n const returnToUrl = new URLSearchParams(location?.search).get(\"returnToUrl\");\n const referrer = location?.state?.referrer;\n const config = useConfig();\n const { user } = useSession();\n const { locationData, isLoading } = useLoginLocations(\n config.chooseLocation.useLoginLocationTag\n );\n\n const changeLocation = useCallback(\n (locationUuid?: string) => {\n const sessionDefined = locationUuid\n ? setSessionLocation(locationUuid, new AbortController())\n : Promise.resolve();\n\n sessionDefined.then(() => {\n if (\n referrer &&\n ![\"/\", \"/login\", \"/login/location\"].includes(referrer)\n ) {\n navigate({ to: \"${openmrsSpaBase}\" + referrer });\n return;\n }\n if (returnToUrl && returnToUrl !== \"/\") {\n navigate({ to: returnToUrl });\n } else {\n navigate({ to: config.links.loginSuccess });\n }\n return;\n });\n },\n [referrer, config.links.loginSuccess, returnToUrl]\n );\n\n // Handle cases where the location picker is disabled, there is only one\n // location, or there are no locations.\n useEffect(() => {\n if (!isLoading) {\n if (!config.chooseLocation.enabled || locationData?.length === 1) {\n changeLocation(locationData[0]?.resource.id);\n }\n if (!isLoading && !locationData?.length) {\n changeLocation();\n }\n }\n }, [\n locationData,\n user,\n changeLocation,\n config.chooseLocation.enabled,\n isLoading,\n ]);\n\n if (!isLoading && !user) {\n navigate({ to: \"${openmrsSpaBase}/login\" });\n return null;\n }\n\n if (!isLoading || !isLoginEnabled) {\n return (\n <LocationPicker\n currentUser={user.display}\n loginLocations={locationData ?? []}\n onChangeLocation={changeLocation}\n isLoginEnabled={isLoginEnabled}\n />\n );\n }\n\n return <LoadingIcon />;\n};\n\nexport default ChooseLocation;\n","import {\n clearCurrentUser,\n openmrsFetch,\n refetchCurrentUser,\n} from \"@openmrs/esm-framework\";\n\nexport async function performLogout() {\n await openmrsFetch(\"/ws/rest/v1/session\", {\n method: \"DELETE\",\n });\n clearCurrentUser();\n await refetchCurrentUser();\n}\n","import React, { useEffect } from \"react\";\nimport { RouteComponentProps } from \"react-router-dom\";\nimport { navigate, useConfig, useSession } from \"@openmrs/esm-framework\";\nimport { performLogout } from \"./logout.resource\";\n\nexport interface RedirectLogoutProps extends RouteComponentProps<{}> {\n isLoginEnabled: boolean;\n}\n\nconst RedirectLogout: React.FC<RedirectLogoutProps> = ({ isLoginEnabled }) => {\n const config = useConfig();\n const session = useSession();\n\n useEffect(() => {\n if (!session.authenticated || !isLoginEnabled) {\n navigate({ to: \"${openmrsSpaBase}/login\" });\n } else {\n performLogout().then(() => {\n if (config.provider.type === \"oauth2\") {\n location.href = config.provider.logoutUrl;\n } else {\n navigate({ to: \"${openmrsSpaBase}/login\" });\n }\n });\n }\n }, [isLoginEnabled, session, config]);\n\n return null;\n};\n\nexport default RedirectLogout;\n","import React from \"react\";\nimport Login from \"./login/login.component\";\nimport ChooseLocation from \"./choose-location/choose-location.component\";\nimport RedirectLogout from \"./redirect-logout/redirect-logout.component\";\nimport { BrowserRouter, Route } from \"react-router-dom\";\n\nexport interface RootProps {\n isLoginEnabled: boolean;\n}\n\nconst Root: React.FC<RootProps> = ({ isLoginEnabled }) => {\n return (\n <BrowserRouter basename={window.spaBase}>\n <Route\n exact\n path=\"/login(/confirm)?\"\n render={(props) => <Login {...props} isLoginEnabled={isLoginEnabled} />}\n />\n <Route\n exact\n path=\"/login/location\"\n render={(props) => (\n <ChooseLocation {...props} isLoginEnabled={isLoginEnabled} />\n )}\n />\n <Route\n exact\n path=\"/logout\"\n render={(props) => (\n <RedirectLogout {...props} isLoginEnabled={isLoginEnabled} />\n )}\n />\n </BrowserRouter>\n );\n};\n\nexport default Root;\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","performLogin","username","password","token","window","btoa","openmrsFetch","headers","Authorization","then","res","refetchCurrentUser","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","hidden","height","width","border","padding","history","location","isLoginEnabled","config","useConfig","useSession","user","useState","setUsername","setPassword","errorMessage","setErrorMessage","passwordInputRef","useRef","usernameInputRef","formRef","t","useTranslation","showPassword","pathname","useEffect","state","replace","field","current","focus","provider","type","loginUrl","href","continueLogin","useCallback","value","length","changeUsername","evt","target","changePassword","resetUserNameAndPassword","handleSubmit","loginRes","authData","preventDefault","stopPropagation","data","authenticated","Error","error","message","logo","src","img","interpolateUrl","alt","className","styles","svg","role","title","use","xlinkHref","div","InlineNotification","kind","style","subtitle","onClick","Tile","form","onSubmit","ref","TextInput","name","labelText","onChange","autoFocus","required","input","Button","aria-label","renderIcon","props","ArrowRight","size","iconDescription","disabled","invalidText","showPasswordLabel","p","Loading","description","withOverlay","small","returnToUrl","URLSearchParams","search","get","referrer","useLoginLocations","chooseLocation","useLoginLocationTag","locationData","isLoading","changeLocation","locationUuid","setSessionLocation","AbortController","Promise","resolve","includes","navigate","to","links","loginSuccess","enabled","resource","LoadingIcon","LocationPicker","currentUser","display","loginLocations","onChangeLocation","performLogout","method","clearCurrentUser","session","logoutUrl","BrowserRouter","basename","spaBase","Route","exact","path","render","Login","ChooseLocation","RedirectLogout"],"sourceRoot":""}
|
package/src/login/login.scss
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
@import "../root.scss";
|
|
2
|
-
|
|
3
|
-
.container {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.center {
|
|
11
|
-
text-align: center;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.right {
|
|
15
|
-
text-align: right;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.logo {
|
|
19
|
-
margin-bottom: 2.5rem;
|
|
20
|
-
height: 5rem;
|
|
21
|
-
max-width: 18rem;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.logo-img {
|
|
25
|
-
margin-bottom: 3rem;
|
|
26
|
-
max-width: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.icon-btn {
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.error-msg {
|
|
34
|
-
margin-top: 1rem;
|
|
35
|
-
color: $danger;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.powered-by-txt {
|
|
39
|
-
@extend .caption01;
|
|
40
|
-
text-align: center;
|
|
41
|
-
color: $color-gray-70;
|
|
42
|
-
color: $text-02;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.need-help {
|
|
46
|
-
display: flex;
|
|
47
|
-
width: 23rem;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.need-help-txt {
|
|
51
|
-
@extend .bodyShort01;
|
|
52
|
-
text-align: left;
|
|
53
|
-
color: $text-02;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: row;
|
|
56
|
-
align-items: center;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.contact-administrator-need-help {
|
|
60
|
-
@extend .bodyShort01;
|
|
61
|
-
padding-left: 0.5rem;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.powered-by-logo {
|
|
65
|
-
height: 2.5rem;
|
|
66
|
-
width: 6.5rem;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.login-card {
|
|
70
|
-
border-radius: 0;
|
|
71
|
-
border: 1px solid $color-gray-30;
|
|
72
|
-
background-color: $ui-02;
|
|
73
|
-
width: 23rem;
|
|
74
|
-
padding: 2.5rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media only screen and (min-width: 481px) {
|
|
78
|
-
.container {
|
|
79
|
-
height: 100vh;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
@media only screen and (max-width: 480px) {
|
|
84
|
-
.login-card {
|
|
85
|
-
margin-top: 2.5%;
|
|
86
|
-
border: none;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.container {
|
|
90
|
-
height: 100vh;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.card-content {
|
|
95
|
-
border: none;
|
|
96
|
-
padding: 0.625rem 0.25rem 0.625rem 1rem;
|
|
97
|
-
border-radius: 0;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.card {
|
|
101
|
-
width: 21.75rem;
|
|
102
|
-
margin: 0.5rem 1rem;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.input-group {
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
align-items: center;
|
|
110
|
-
width: 18rem;
|
|
111
|
-
height: 4.5rem;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.continueButton {
|
|
115
|
-
width: 18rem;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.inputStyle {
|
|
119
|
-
@extend .label01;
|
|
120
|
-
width: 18rem;
|
|
121
|
-
height: 3rem;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.buttonContainer {
|
|
125
|
-
margin-top: 1.5rem;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.footer {
|
|
129
|
-
margin-top: 6.75rem;
|
|
130
|
-
}
|