@openmrs/esm-login-app 3.1.12-pre.599 → 3.1.12
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
System.register(["@openmrs/esm-framework","react","react-router-dom","react-i18next","carbon-components"],(function(e,t){var o={},r={},n={},s={},a={};return{setters:[function(e){o.Type=e.Type,o.createErrorHandler=e.createErrorHandler,o.defineConfigSchema=e.defineConfigSchema,o.fhirBaseUrl=e.fhirBaseUrl,o.getAsyncLifecycle=e.getAsyncLifecycle,o.getCurrentUser=e.getCurrentUser,o.navigate=e.navigate,o.openmrsFetch=e.openmrsFetch,o.refetchCurrentUser=e.refetchCurrentUser,o.setSessionLocation=e.setSessionLocation,o.useConfig=e.useConfig,o.validators=e.validators},function(e){r.Component=e.Component,r.createContext=e.createContext,r.default=e.default,r.useCallback=e.useCallback,r.useContext=e.useContext,r.useEffect=e.useEffect,r.useMemo=e.useMemo,r.useRef=e.useRef,r.useState=e.useState},function(e){n.BrowserRouter=e.BrowserRouter,n.Route=e.Route},function(e){s.Trans=e.Trans,s.useTranslation=e.useTranslation},function(e){a.settings=e.settings}],execute:function(){e((()=>{var e,i,l={3979:(e,t,o)=>{var r={"./de.json":[4272,272],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./hi.json":[5336,336],"./sw.json":[236,236],"./sw_KE.json":[539,539],"./tr_TR.json":[5673,673],"./uk.json":[5240,240],"./zh_CN.json":[1644,644]};function n(e){if(!o.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],n=t[0];return o.e(t[1]).then((()=>o(n)))}n.keys=()=>Object.keys(r),n.id=3979,e.exports=n},4507:(e,t,o)=>{const r=o(1522).R;t.s=function(e){if(e||(e=1),!o.y.meta||!o.y.meta.url)throw console.error("__system_context__",o.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");o.p=r(o.y.meta.url,e)}},1522:(e,t,o)=>{t.R=function(e,t){var o=document.createElement("a");o.href=e;for(var r="/"===o.pathname[0]?o.pathname:"/"+o.pathname,n=0,s=r.length;n!==t&&s>=0;)"/"===r[--s]&&n++;if(n!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+n+") in the URL path "+e);var a=r.slice(0,s+1);return o.protocol+"//"+o.host+a};Number.isInteger},1489:e=>{"use strict";e.exports=o},2434:e=>{"use strict";e.exports=a},5954:e=>{"use strict";e.exports=r},4281:e=>{"use strict";e.exports=s},4880:e=>{"use strict";e.exports=n}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={id:e,exports:{}};return l[e](o,o.exports,u),o.exports}u.m=l,u.y=t,u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var o in t)u.o(t,o)&&!u.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((t,o)=>(u.f[o](e,t),t)),[])),u.u=e=>e+".openmrs-esm-login-app.js",u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},i="@openmrs/esm-login-app:",u.l=(t,o,r,n)=>{if(e[t])e[t].push(o);else{var s,a;if(void 0!==r)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var p=l[c];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==i+r){s=p;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,u.nc&&s.setAttribute("nonce",u.nc),s.setAttribute("data-webpack",i+r),s.src=t),e[t]=[o];var d=(o,r)=>{s.onerror=s.onload=null,clearTimeout(f);var n=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),o)return o(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}},u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.p="",(()=>{var e={179:0};u.f.j=(t,o)=>{var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var s=u.p+u.u(t),a=new Error;u.l(s,(o=>{if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",a.name="ChunkLoadError",a.type=n,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=(t,o)=>{var r,n,[s,a,i]=o,l=0;if(s.some((t=>0!==e[t]))){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);i&&i(u)}for(t&&t(o);l<s.length;l++)n=s[l],u.o(e,n)&&e[n]&&e[n][0](),e[s[l]]=0},o=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var p={};return(0,u(4507).s)(1),(()=>{"use strict";u.r(p),u.d(p,{backendDependencies:()=>r,frontendDependencies:()=>n,importTranslation:()=>o,setupOpenMRS:()=>a});var e=u(1489);const t={provider:{type:{_type:e.Type.String,_default:"basic",_description:"Selects the login mechanism to use. Choices are 'basic' and 'oauth2'. For 'oauth2' you'll also need to set the 'loginUrl' and 'logoutUrl'."},loginUrl:{_type:e.Type.String,_default:"${openmrsSpaBase}/login",_description:"The URL to use for an OAuth2 login.",_validators:[e.validators.isUrl]},logoutUrl:{_type:e.Type.String,_default:"${openmrsSpaBase}/logout",_description:"The URL to use for an OAuth2 logout.",_validators:[e.validators.isUrl]}},chooseLocation:{enabled:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show a 'Choose Location' screen after login. If true, the user will be taken to the loginSuccess URL after they choose a location."},numberToShow:{_type:e.Type.Number,_default:8,_description:"The number of locations displayed on location picker"},useLoginLocationTag:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show only locations with the 'Login Location' tag. If false, shows all locations."}},links:{loginSuccess:{_type:e.Type.String,_description:"Where to take the user after they are logged in.",_default:"${openmrsSpaBase}/home",_validators:[e.validators.isUrl]}},logo:{src:{_type:e.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:e.Type.String,_default:"Logo",_description:"Alt text, shown on hover"}}},o=u(3979),r={"webservices.rest":"^2.24.0",appui:"^1.9.0"},n={"@openmrs/esm-framework":"^3.1.12
|
|
1
|
+
System.register(["@openmrs/esm-framework","react","react-router-dom","react-i18next","carbon-components"],(function(e,t){var o={},r={},n={},s={},a={};return{setters:[function(e){o.Type=e.Type,o.createErrorHandler=e.createErrorHandler,o.defineConfigSchema=e.defineConfigSchema,o.fhirBaseUrl=e.fhirBaseUrl,o.getAsyncLifecycle=e.getAsyncLifecycle,o.getCurrentUser=e.getCurrentUser,o.navigate=e.navigate,o.openmrsFetch=e.openmrsFetch,o.refetchCurrentUser=e.refetchCurrentUser,o.setSessionLocation=e.setSessionLocation,o.useConfig=e.useConfig,o.validators=e.validators},function(e){r.Component=e.Component,r.createContext=e.createContext,r.default=e.default,r.useCallback=e.useCallback,r.useContext=e.useContext,r.useEffect=e.useEffect,r.useMemo=e.useMemo,r.useRef=e.useRef,r.useState=e.useState},function(e){n.BrowserRouter=e.BrowserRouter,n.Route=e.Route},function(e){s.Trans=e.Trans,s.useTranslation=e.useTranslation},function(e){a.settings=e.settings}],execute:function(){e((()=>{var e,i,l={3979:(e,t,o)=>{var r={"./de.json":[4272,272],"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757],"./hi.json":[5336,336],"./sw.json":[236,236],"./sw_KE.json":[539,539],"./tr_TR.json":[5673,673],"./uk.json":[5240,240],"./zh_CN.json":[1644,644]};function n(e){if(!o.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],n=t[0];return o.e(t[1]).then((()=>o(n)))}n.keys=()=>Object.keys(r),n.id=3979,e.exports=n},4507:(e,t,o)=>{const r=o(1522).R;t.s=function(e){if(e||(e=1),!o.y.meta||!o.y.meta.url)throw console.error("__system_context__",o.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");o.p=r(o.y.meta.url,e)}},1522:(e,t,o)=>{t.R=function(e,t){var o=document.createElement("a");o.href=e;for(var r="/"===o.pathname[0]?o.pathname:"/"+o.pathname,n=0,s=r.length;n!==t&&s>=0;)"/"===r[--s]&&n++;if(n!==t)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+t+") is greater than the number of directories ("+n+") in the URL path "+e);var a=r.slice(0,s+1);return o.protocol+"//"+o.host+a};Number.isInteger},1489:e=>{"use strict";e.exports=o},2434:e=>{"use strict";e.exports=a},5954:e=>{"use strict";e.exports=r},4281:e=>{"use strict";e.exports=s},4880:e=>{"use strict";e.exports=n}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var o=c[e]={id:e,exports:{}};return l[e](o,o.exports,u),o.exports}u.m=l,u.y=t,u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var o in t)u.o(t,o)&&!u.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce(((t,o)=>(u.f[o](e,t),t)),[])),u.u=e=>e+".openmrs-esm-login-app.js",u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},i="@openmrs/esm-login-app:",u.l=(t,o,r,n)=>{if(e[t])e[t].push(o);else{var s,a;if(void 0!==r)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var p=l[c];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==i+r){s=p;break}}s||(a=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,u.nc&&s.setAttribute("nonce",u.nc),s.setAttribute("data-webpack",i+r),s.src=t),e[t]=[o];var d=(o,r)=>{s.onerror=s.onload=null,clearTimeout(f);var n=e[t];if(delete e[t],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(r))),o)return o(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),a&&document.head.appendChild(s)}},u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.p="",(()=>{var e={179:0};u.f.j=(t,o)=>{var r=u.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else{var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var s=u.p+u.u(t),a=new Error;u.l(s,(o=>{if(u.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+s+")",a.name="ChunkLoadError",a.type=n,a.request=s,r[1](a)}}),"chunk-"+t,t)}};var t=(t,o)=>{var r,n,[s,a,i]=o,l=0;if(s.some((t=>0!==e[t]))){for(r in a)u.o(a,r)&&(u.m[r]=a[r]);i&&i(u)}for(t&&t(o);l<s.length;l++)n=s[l],u.o(e,n)&&e[n]&&e[n][0](),e[s[l]]=0},o=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var p={};return(0,u(4507).s)(1),(()=>{"use strict";u.r(p),u.d(p,{backendDependencies:()=>r,frontendDependencies:()=>n,importTranslation:()=>o,setupOpenMRS:()=>a});var e=u(1489);const t={provider:{type:{_type:e.Type.String,_default:"basic",_description:"Selects the login mechanism to use. Choices are 'basic' and 'oauth2'. For 'oauth2' you'll also need to set the 'loginUrl' and 'logoutUrl'."},loginUrl:{_type:e.Type.String,_default:"${openmrsSpaBase}/login",_description:"The URL to use for an OAuth2 login.",_validators:[e.validators.isUrl]},logoutUrl:{_type:e.Type.String,_default:"${openmrsSpaBase}/logout",_description:"The URL to use for an OAuth2 logout.",_validators:[e.validators.isUrl]}},chooseLocation:{enabled:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show a 'Choose Location' screen after login. If true, the user will be taken to the loginSuccess URL after they choose a location."},numberToShow:{_type:e.Type.Number,_default:8,_description:"The number of locations displayed on location picker"},useLoginLocationTag:{_type:e.Type.Boolean,_default:!0,_description:"Whether to show only locations with the 'Login Location' tag. If false, shows all locations."}},links:{loginSuccess:{_type:e.Type.String,_description:"Where to take the user after they are logged in.",_default:"${openmrsSpaBase}/home",_validators:[e.validators.isUrl]}},logo:{src:{_type:e.Type.String,_default:null,_description:"A path or URL to an image. Defaults to the OpenMRS SVG sprite."},alt:{_type:e.Type.String,_default:"Logo",_description:"Alt text, shown on hover"}}},o=u(3979),r={"webservices.rest":"^2.24.0",appui:"^1.9.0"},n={"@openmrs/esm-framework":"^3.1.12"},s={online:{isLoginEnabled:!0},offline:{isLoginEnabled:!1}};function a(){const o="@openmrs/esm-login-app",r={featureName:"login",moduleName:o};return(0,e.defineConfigSchema)(o,t),{pages:[{load:(0,e.getAsyncLifecycle)((()=>Promise.all([u.e(852),u.e(466),u.e(984),u.e(747),u.e(192)]).then(u.bind(u,852))),r),route:"login",...s},{load:(0,e.getAsyncLifecycle)((()=>Promise.all([u.e(852),u.e(466),u.e(984),u.e(747),u.e(192)]).then(u.bind(u,852))),r),route:"logout",...s}],extensions:[{id:"location-picker",slot:"location-picker",load:(0,e.getAsyncLifecycle)((()=>Promise.all([u.e(852),u.e(466),u.e(747)]).then(u.bind(u,5747))),r),...s},{id:"logout-button",slot:"user-panel-actions-slot",load:(0,e.getAsyncLifecycle)((()=>Promise.all([u.e(852),u.e(322)]).then(u.bind(u,1322))),r),online:!0,offline:!1},{id:"location-changer",slot:"user-panel-slot",order:1,load:(0,e.getAsyncLifecycle)((()=>Promise.all([u.e(852),u.e(571)]).then(u.bind(u,1571))),r),...s}]}}})(),p})())}}}));
|
|
2
2
|
//# sourceMappingURL=openmrs-esm-login-app.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openmrs-esm-login-app.js","mappings":"u9BAAIA,EACAC,E,kBCDJ,IAAIC,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,IACA,KAED,eAAgB,CACf,IACA,KAED,eAAgB,CACf,KACA,KAED,YAAa,CACZ,KACA,KAED,eAAgB,CACf,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,KAIR,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,KAG7BX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,G,eC1DjB,MAAMgB,EAAmB,UAEzBD,EAAQ,EAAiB,SAAwBE,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9Bb,MACJ,uHAIJ,IAA0BQ,EACxB,IAAmBE,KAAKC,IACxBF,K,eCuDNF,EAAQ,EAlCR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VC,aAAc,wDAEhBQ,oBAAqB,CACnBX,MAAOC,EAAAA,KAAAA,QACPC,UAAU,EACVC,aACE,iGAGNS,MAAO,CACLC,aAAc,CACZb,MAAOC,EAAAA,KAAAA,OACPE,aAAc,mDACdD,SAAU,yBACVG,YAAa,CAACC,EAAAA,WAAAA,SAGlBQ,KAAM,CACJ3D,IAAK,CACH6C,MAAOC,EAAAA,KAAAA,OACPC,SAAU,KACVC,aACE,kEAEJY,IAAK,CACHf,MAAOC,EAAAA,KAAAA,OACPC,SAAU,OACVC,aAAc,8BC5Dda,EAAoBC,EAAAA,MAOpBC,EAAsB,CAC1B,mBAAoB,UACpBC,MAAO,UAGHC,EAAuB,CAC3B,yBAA0BC,mBAGtBC,EAA2B,CAC/BC,OAAQ,CACNC,gBAAgB,GAElBC,QAAS,CACPD,gBAAgB,IAIpB,SAASE,IACP,MAAMC,EAAa,yBAEbC,EAAU,CACdC,YAAa,QACbF,WAAAA,GAKF,OAFAG,EAAAA,EAAAA,oBAAmBH,EAAY7B,GAExB,CACLiC,MAAO,CACL,CACEC,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,iFAA4BL,GAC1DM,MAAO,WACJZ,GAEL,CACEU,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,iFAA4BL,GAC1DM,MAAO,YACJZ,IAGPa,WAAY,CACV,CACE1J,GAAI,kBACJ2J,KAAM,kBACNJ,MAAMC,EAAAA,EAAAA,oBACJ,IAAM,gEACNL,MAECN,GAEL,CACE7I,GAAI,gBACJ2J,KAAM,0BACNJ,MAAMC,EAAAA,EAAAA,oBACJ,IAAM,uDACNL,GAEFL,QAAQ,EACRE,SAAS,GAEX,CACEhJ,GAAI,mBACJ2J,KAAM,kBACNC,MAAO,EACPL,MAAMC,EAAAA,EAAAA,oBACJ,IAAM,uDACNL,MAECN,O","sources":["webpack://@openmrs/esm-login-app/webpack/runtime/load script","webpack://@openmrs/esm-login-app//home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/apps/esm-login-app/translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-login-app/../../tooling/openmrs/node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-login-app/../../tooling/openmrs/node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-login-app/external system \"@openmrs/esm-framework\"","webpack://@openmrs/esm-login-app/external system \"carbon-components\"","webpack://@openmrs/esm-login-app/external system \"react\"","webpack://@openmrs/esm-login-app/external system \"react-i18next\"","webpack://@openmrs/esm-login-app/external system \"react-router-dom\"","webpack://@openmrs/esm-login-app/webpack/bootstrap","webpack://@openmrs/esm-login-app/webpack/runtime/__system_context__","webpack://@openmrs/esm-login-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-login-app/webpack/runtime/define property getters","webpack://@openmrs/esm-login-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-login-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-login-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-login-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-login-app/webpack/runtime/publicPath","webpack://@openmrs/esm-login-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-login-app/../../tooling/openmrs/node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-login-app/./src/config-schema.ts","webpack://@openmrs/esm-login-app/./src/index.ts"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@openmrs/esm-login-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var map = {\n\t\"./de.json\": [\n\t\t4272,\n\t\t272\n\t],\n\t\"./en.json\": [\n\t\t3574,\n\t\t574\n\t],\n\t\"./es.json\": [\n\t\t8319,\n\t\t319\n\t],\n\t\"./fr.json\": [\n\t\t2757,\n\t\t757\n\t],\n\t\"./hi.json\": [\n\t\t5336,\n\t\t336\n\t],\n\t\"./sw.json\": [\n\t\t236,\n\t\t236\n\t],\n\t\"./sw_KE.json\": [\n\t\t539,\n\t\t539\n\t],\n\t\"./tr_TR.json\": [\n\t\t5673,\n\t\t673\n\t],\n\t\"./uk.json\": [\n\t\t5240,\n\t\t240\n\t],\n\t\"./zh_CN.json\": [\n\t\t1644,\n\t\t644\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 3979;\nmodule.exports = webpackAsyncContext;","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1489__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2434__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5954__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4281__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4880__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".openmrs-esm-login-app.js\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_openmrs_esm_login_app\"] = self[\"webpackChunk_openmrs_esm_login_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","import { validators, Type } from \"@openmrs/esm-framework\";\n\nexport const configSchema = {\n provider: {\n type: {\n _type: Type.String,\n _default: \"basic\",\n _description:\n \"Selects the login mechanism to use. Choices are 'basic' and 'oauth2'. \" +\n \"For 'oauth2' you'll also need to set the 'loginUrl' and 'logoutUrl'.\",\n },\n loginUrl: {\n _type: Type.String,\n _default: \"${openmrsSpaBase}/login\",\n _description: \"The URL to use for an OAuth2 login.\",\n _validators: [validators.isUrl],\n },\n logoutUrl: {\n _type: Type.String,\n _default: \"${openmrsSpaBase}/logout\",\n _description: \"The URL to use for an OAuth2 logout.\",\n _validators: [validators.isUrl],\n },\n },\n chooseLocation: {\n enabled: {\n _type: Type.Boolean,\n _default: true,\n _description:\n \"Whether to show a 'Choose Location' screen after login. \" +\n \"If true, the user will be taken to the loginSuccess URL after they \" +\n \"choose a location.\",\n },\n numberToShow: {\n _type: Type.Number,\n _default: 8,\n _description: \"The number of locations displayed on location picker\",\n },\n useLoginLocationTag: {\n _type: Type.Boolean,\n _default: true,\n _description:\n \"Whether to show only locations with the 'Login Location' tag. If false, shows all locations.\",\n },\n },\n links: {\n loginSuccess: {\n _type: Type.String,\n _description: \"Where to take the user after they are logged in.\",\n _default: \"${openmrsSpaBase}/home\",\n _validators: [validators.isUrl],\n },\n },\n logo: {\n src: {\n _type: Type.String,\n _default: null,\n _description:\n \"A path or URL to an image. Defaults to the OpenMRS SVG sprite.\",\n },\n alt: {\n _type: Type.String,\n _default: \"Logo\",\n _description: \"Alt text, shown on hover\",\n },\n },\n};\n","import { getAsyncLifecycle, defineConfigSchema } from \"@openmrs/esm-framework\";\nimport { configSchema } from \"./config-schema\";\n\nconst importTranslation = require.context(\n \"../translations\",\n false,\n /.json$/,\n \"lazy\"\n);\n\nconst backendDependencies = {\n \"webservices.rest\": \"^2.24.0\",\n appui: \"^1.9.0\",\n};\n\nconst frontendDependencies = {\n \"@openmrs/esm-framework\": process.env.FRAMEWORK_VERSION,\n};\n\nconst sharedOnlineOfflineProps = {\n online: {\n isLoginEnabled: true,\n },\n offline: {\n isLoginEnabled: false,\n },\n};\n\nfunction setupOpenMRS() {\n const moduleName = \"@openmrs/esm-login-app\";\n\n const options = {\n featureName: \"login\",\n moduleName,\n };\n\n defineConfigSchema(moduleName, configSchema);\n\n return {\n pages: [\n {\n load: getAsyncLifecycle(() => import(\"./root.component\"), options),\n route: \"login\",\n ...sharedOnlineOfflineProps,\n },\n {\n load: getAsyncLifecycle(() => import(\"./root.component\"), options),\n route: \"logout\",\n ...sharedOnlineOfflineProps,\n },\n ],\n extensions: [\n {\n id: \"location-picker\",\n slot: \"location-picker\",\n load: getAsyncLifecycle(\n () => import(\"./location-picker/location-picker.component\"),\n options\n ),\n ...sharedOnlineOfflineProps,\n },\n {\n id: \"logout-button\",\n slot: \"user-panel-actions-slot\",\n load: getAsyncLifecycle(\n () => import(\"./logout/logout.component\"),\n options\n ),\n online: true,\n offline: false,\n },\n {\n id: \"location-changer\",\n slot: \"user-panel-slot\",\n order: 1,\n load: getAsyncLifecycle(\n () => import(\"./change-location-link/change-location-link.component\"),\n options\n ),\n ...sharedOnlineOfflineProps,\n },\n ],\n };\n}\n\nexport {\n setupOpenMRS,\n importTranslation,\n backendDependencies,\n frontendDependencies,\n};\n"],"names":["inProgress","dataWebpackPrefix","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports","resolveDirectory","rootDirLevel","meta","url","console","error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","__WEBPACK_EXTERNAL_MODULE__1489__","__WEBPACK_EXTERNAL_MODULE__2434__","__WEBPACK_EXTERNAL_MODULE__5954__","__WEBPACK_EXTERNAL_MODULE__4281__","__WEBPACK_EXTERNAL_MODULE__4880__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","m","y","__system_context__","n","getter","__esModule","d","definition","key","defineProperty","enumerable","get","f","chunkId","all","reduce","promises","u","obj","prop","prototype","hasOwnProperty","call","l","done","push","script","needAttach","scripts","getElementsByTagName","i","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","p","installedChunks","j","installedChunkData","promise","reject","errorType","realSrc","message","name","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","autoPublicPath","configSchema","provider","_type","Type","_default","_description","loginUrl","_validators","validators","logoutUrl","chooseLocation","enabled","numberToShow","useLoginLocationTag","links","loginSuccess","logo","alt","importTranslation","require","backendDependencies","appui","frontendDependencies","process","sharedOnlineOfflineProps","online","isLoginEnabled","offline","setupOpenMRS","moduleName","options","featureName","defineConfigSchema","pages","load","getAsyncLifecycle","route","extensions","slot","order"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"openmrs-esm-login-app.js","mappings":"u9BAAIA,EACAC,E,kBCDJ,IAAIC,EAAM,CACT,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,KACA,KAED,YAAa,CACZ,IACA,KAED,eAAgB,CACf,IACA,KAED,eAAgB,CACf,KACA,KAED,YAAa,CACZ,KACA,KAED,eAAgB,CACf,KACA,MAGF,SAASC,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEJ,EAAKE,GAC9B,OAAOG,QAAQC,UAAUC,MAAK,KAC7B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBP,EAAM,KAEjD,MADAM,EAAEE,KAAO,mBACHF,KAIR,IAAIG,EAAMX,EAAIE,GAAMU,EAAKD,EAAI,GAC7B,OAAOR,EAAoBK,EAAEG,EAAI,IAAIJ,MAAK,IAClCJ,EAAoBS,KAG7BX,EAAoBY,KAAO,IAAOC,OAAOD,KAAKb,GAC9CC,EAAoBW,GAAK,KACzBG,EAAOC,QAAUf,G,eC1DjB,MAAMgB,EAAmB,UAEzBD,EAAQ,EAAiB,SAAwBE,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9Bb,MACJ,uHAIJ,IAA0BQ,EACxB,IAAmBE,KAAKC,IACxBF,K,eCuDNF,EAAQ,EAlCR,SAA0BO,EAAWC,GAKnC,IAAIC,EAAIC,SAASC,cAAc,KAC/BF,EAAEG,KAAOL,EAKT,IAHA,IAAIM,EAA6B,MAAlBJ,EAAEI,SAAS,GAAaJ,E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A,OACPE,aAAc,mDACdD,SAAU,yBACVG,YAAa,CAACC,EAAAA,WAAAA,SAGlBQ,KAAM,CACJ3D,IAAK,CACH6C,MAAOC,EAAAA,KAAAA,OACPC,SAAU,KACVC,aACE,kEAEJY,IAAK,CACHf,MAAOC,EAAAA,KAAAA,OACPC,SAAU,OACVC,aAAc,8BC5Dda,EAAoBC,EAAAA,MAOpBC,EAAsB,CAC1B,mBAAoB,UACpBC,MAAO,UAGHC,EAAuB,CAC3B,yBAA0BC,WAGtBC,EAA2B,CAC/BC,OAAQ,CACNC,gBAAgB,GAElBC,QAAS,CACPD,gBAAgB,IAIpB,SAASE,IACP,MAAMC,EAAa,yBAEbC,EAAU,CACdC,YAAa,QACbF,WAAAA,GAKF,OAFAG,EAAAA,EAAAA,oBAAmBH,EAAY7B,GAExB,CACLiC,MAAO,CACL,CACEC,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,iFAA4BL,GAC1DM,MAAO,WACJZ,GAEL,CACEU,MAAMC,EAAAA,EAAAA,oBAAkB,IAAM,iFAA4BL,GAC1DM,MAAO,YACJZ,IAGPa,WAAY,CACV,CACE1J,GAAI,kBACJ2J,KAAM,kBACNJ,MAAMC,EAAAA,EAAAA,oBACJ,IAAM,gEACNL,MAECN,GAEL,CACE7I,GAAI,gBACJ2J,KAAM,0BACNJ,MAAMC,EAAAA,EAAAA,oBACJ,IAAM,uDACNL,GAEFL,QAAQ,EACRE,SAAS,GAEX,CACEhJ,GAAI,mBACJ2J,KAAM,kBACNC,MAAO,EACPL,MAAMC,EAAAA,EAAAA,oBACJ,IAAM,uDACNL,MAECN,O","sources":["webpack://@openmrs/esm-login-app/webpack/runtime/load script","webpack://@openmrs/esm-login-app//home/runner/work/openmrs-esm-core/openmrs-esm-core/packages/apps/esm-login-app/translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-login-app/../../tooling/openmrs/node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-login-app/../../tooling/openmrs/node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-login-app/external system \"@openmrs/esm-framework\"","webpack://@openmrs/esm-login-app/external system \"carbon-components\"","webpack://@openmrs/esm-login-app/external system \"react\"","webpack://@openmrs/esm-login-app/external system \"react-i18next\"","webpack://@openmrs/esm-login-app/external system \"react-router-dom\"","webpack://@openmrs/esm-login-app/webpack/bootstrap","webpack://@openmrs/esm-login-app/webpack/runtime/__system_context__","webpack://@openmrs/esm-login-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-login-app/webpack/runtime/define property getters","webpack://@openmrs/esm-login-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-login-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-login-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-login-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-login-app/webpack/runtime/publicPath","webpack://@openmrs/esm-login-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-login-app/../../tooling/openmrs/node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-login-app/./src/config-schema.ts","webpack://@openmrs/esm-login-app/./src/index.ts"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@openmrs/esm-login-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var map = {\n\t\"./de.json\": [\n\t\t4272,\n\t\t272\n\t],\n\t\"./en.json\": [\n\t\t3574,\n\t\t574\n\t],\n\t\"./es.json\": [\n\t\t8319,\n\t\t319\n\t],\n\t\"./fr.json\": [\n\t\t2757,\n\t\t757\n\t],\n\t\"./hi.json\": [\n\t\t5336,\n\t\t336\n\t],\n\t\"./sw.json\": [\n\t\t236,\n\t\t236\n\t],\n\t\"./sw_KE.json\": [\n\t\t539,\n\t\t539\n\t],\n\t\"./tr_TR.json\": [\n\t\t5673,\n\t\t673\n\t],\n\t\"./uk.json\": [\n\t\t5240,\n\t\t240\n\t],\n\t\"./zh_CN.json\": [\n\t\t1644,\n\t\t644\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 3979;\nmodule.exports = webpackAsyncContext;","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","module.exports = __WEBPACK_EXTERNAL_MODULE__1489__;","module.exports = __WEBPACK_EXTERNAL_MODULE__2434__;","module.exports = __WEBPACK_EXTERNAL_MODULE__5954__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4281__;","module.exports = __WEBPACK_EXTERNAL_MODULE__4880__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".openmrs-esm-login-app.js\";\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_openmrs_esm_login_app\"] = self[\"webpackChunk_openmrs_esm_login_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","import { validators, Type } from \"@openmrs/esm-framework\";\n\nexport const configSchema = {\n provider: {\n type: {\n _type: Type.String,\n _default: \"basic\",\n _description:\n \"Selects the login mechanism to use. Choices are 'basic' and 'oauth2'. \" +\n \"For 'oauth2' you'll also need to set the 'loginUrl' and 'logoutUrl'.\",\n },\n loginUrl: {\n _type: Type.String,\n _default: \"${openmrsSpaBase}/login\",\n _description: \"The URL to use for an OAuth2 login.\",\n _validators: [validators.isUrl],\n },\n logoutUrl: {\n _type: Type.String,\n _default: \"${openmrsSpaBase}/logout\",\n _description: \"The URL to use for an OAuth2 logout.\",\n _validators: [validators.isUrl],\n },\n },\n chooseLocation: {\n enabled: {\n _type: Type.Boolean,\n _default: true,\n _description:\n \"Whether to show a 'Choose Location' screen after login. \" +\n \"If true, the user will be taken to the loginSuccess URL after they \" +\n \"choose a location.\",\n },\n numberToShow: {\n _type: Type.Number,\n _default: 8,\n _description: \"The number of locations displayed on location picker\",\n },\n useLoginLocationTag: {\n _type: Type.Boolean,\n _default: true,\n _description:\n \"Whether to show only locations with the 'Login Location' tag. If false, shows all locations.\",\n },\n },\n links: {\n loginSuccess: {\n _type: Type.String,\n _description: \"Where to take the user after they are logged in.\",\n _default: \"${openmrsSpaBase}/home\",\n _validators: [validators.isUrl],\n },\n },\n logo: {\n src: {\n _type: Type.String,\n _default: null,\n _description:\n \"A path or URL to an image. Defaults to the OpenMRS SVG sprite.\",\n },\n alt: {\n _type: Type.String,\n _default: \"Logo\",\n _description: \"Alt text, shown on hover\",\n },\n },\n};\n","import { getAsyncLifecycle, defineConfigSchema } from \"@openmrs/esm-framework\";\nimport { configSchema } from \"./config-schema\";\n\nconst importTranslation = require.context(\n \"../translations\",\n false,\n /.json$/,\n \"lazy\"\n);\n\nconst backendDependencies = {\n \"webservices.rest\": \"^2.24.0\",\n appui: \"^1.9.0\",\n};\n\nconst frontendDependencies = {\n \"@openmrs/esm-framework\": process.env.FRAMEWORK_VERSION,\n};\n\nconst sharedOnlineOfflineProps = {\n online: {\n isLoginEnabled: true,\n },\n offline: {\n isLoginEnabled: false,\n },\n};\n\nfunction setupOpenMRS() {\n const moduleName = \"@openmrs/esm-login-app\";\n\n const options = {\n featureName: \"login\",\n moduleName,\n };\n\n defineConfigSchema(moduleName, configSchema);\n\n return {\n pages: [\n {\n load: getAsyncLifecycle(() => import(\"./root.component\"), options),\n route: \"login\",\n ...sharedOnlineOfflineProps,\n },\n {\n load: getAsyncLifecycle(() => import(\"./root.component\"), options),\n route: \"logout\",\n ...sharedOnlineOfflineProps,\n },\n ],\n extensions: [\n {\n id: \"location-picker\",\n slot: \"location-picker\",\n load: getAsyncLifecycle(\n () => import(\"./location-picker/location-picker.component\"),\n options\n ),\n ...sharedOnlineOfflineProps,\n },\n {\n id: \"logout-button\",\n slot: \"user-panel-actions-slot\",\n load: getAsyncLifecycle(\n () => import(\"./logout/logout.component\"),\n options\n ),\n online: true,\n offline: false,\n },\n {\n id: \"location-changer\",\n slot: \"user-panel-slot\",\n order: 1,\n load: getAsyncLifecycle(\n () => import(\"./change-location-link/change-location-link.component\"),\n options\n ),\n ...sharedOnlineOfflineProps,\n },\n ],\n };\n}\n\nexport {\n setupOpenMRS,\n importTranslation,\n backendDependencies,\n frontendDependencies,\n};\n"],"names":["inProgress","dataWebpackPrefix","map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports","resolveDirectory","rootDirLevel","meta","url","console","error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","__WEBPACK_EXTERNAL_MODULE__1489__","__WEBPACK_EXTERNAL_MODULE__2434__","__WEBPACK_EXTERNAL_MODULE__5954__","__WEBPACK_EXTERNAL_MODULE__4281__","__WEBPACK_EXTERNAL_MODULE__4880__","__webpack_module_cache__","moduleId","cachedModule","undefined","__webpack_modules__","m","y","__system_context__","n","getter","__esModule","d","definition","key","defineProperty","enumerable","get","f","chunkId","all","reduce","promises","u","obj","prop","prototype","hasOwnProperty","call","l","done","push","script","needAttach","scripts","getElementsByTagName","i","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","p","installedChunks","j","installedChunkData","promise","reject","errorType","realSrc","message","name","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self","autoPublicPath","configSchema","provider","_type","Type","_default","_description","loginUrl","_validators","validators","logoutUrl","chooseLocation","enabled","numberToShow","useLoginLocationTag","links","loginSuccess","logo","alt","importTranslation","require","backendDependencies","appui","frontendDependencies","process","sharedOnlineOfflineProps","online","isLoginEnabled","offline","setupOpenMRS","moduleName","options","featureName","defineConfigSchema","pages","load","getAsyncLifecycle","route","extensions","slot","order"],"sourceRoot":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-login-app",
|
|
3
|
-
"version": "3.1.12
|
|
3
|
+
"version": "3.1.12",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"description": "The login microfrontend for the OpenMRS SPA",
|
|
6
6
|
"browser": "dist/openmrs-esm-login-app.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"rxjs": "6.x"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@openmrs/esm-framework": "^3.1.12
|
|
54
|
+
"@openmrs/esm-framework": "^3.1.12",
|
|
55
55
|
"@types/carbon-components-react": "^7.24.0",
|
|
56
56
|
"@types/react-router-dom": "^5.1.7",
|
|
57
57
|
"jest": "^26.6.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react-dom": "^16.13.1",
|
|
60
60
|
"rxjs": "^6.5.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "21ee1a5b5364caf8a8e4b19ca16541d98424cf14"
|
|
63
63
|
}
|