@openmrs/esm-app-shell 3.4.1-pre.149 → 3.4.1-pre.151
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 +57 -57
- package/dist/{b47c03754054a2725674.js → aba5f807cf2a91de037a.js} +1 -1
- package/dist/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
- package/dist/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +1 -1
- package/dist/esm-devtools-app/openmrs-esm-devtools-app.old +1 -1
- package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
- package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +1 -1
- package/dist/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.old +1 -1
- package/dist/esm-login-app/openmrs-esm-login-app.js +1 -1
- package/dist/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +1 -1
- package/dist/esm-login-app/openmrs-esm-login-app.old +1 -1
- package/dist/esm-offline-tools-app/194.js +1 -1
- package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
- package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +4 -4
- package/dist/esm-offline-tools-app/openmrs-esm-offline-tools-app.old +1 -1
- package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
- package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +1 -1
- package/dist/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.old +1 -1
- package/dist/openmrs.js +1 -1
- package/dist/service-worker.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.js.buildmanifest.json +1 -1
- package/lib/esm-devtools-app/openmrs-esm-devtools-app.old +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.js.buildmanifest.json +1 -1
- package/lib/esm-implementer-tools-app/openmrs-esm-implementer-tools-app.old +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.js.buildmanifest.json +1 -1
- package/lib/esm-login-app/openmrs-esm-login-app.old +1 -1
- package/lib/esm-offline-tools-app/194.js +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js +1 -1
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.js.buildmanifest.json +4 -4
- package/lib/esm-offline-tools-app/openmrs-esm-offline-tools-app.old +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.js.buildmanifest.json +1 -1
- package/lib/esm-primary-navigation-app/openmrs-esm-primary-navigation-app.old +1 -1
- package/lib/openmrs.js +5 -5
- package/lib/service-worker.js +1 -1
- package/package.json +8 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-devtools-app",[],(function(e,r){var t=void 0;return{execute:function(){e((()=>{function e(r){var t=y[r];if(void 0!==t)return t.exports;var o=y[r]={id:r,loaded:!1,exports:{}};return g[r](o,o.exports,e),o.loaded=!0,o.exports}var o,n,a,s,i,l,u,p,f,d,c,m,h,v,g={585:(e,r,t)=>{(0,t(968).s)(1)},968:(e,r,t)=>{const o=t(577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=o(t.y.meta.url,e)}},331:(e,r,t)=>{t(585)},577:(e,r)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var o="/"===t.pathname[0]?t.pathname:"/"+t.pathname,n=0,a=o.length;n!==r&&0<=a;)"/"===o[--a]&&n++;if(n!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+n+") in the URL path "+e);var s=o.slice(0,a+1);return t.protocol+"//"+t.host+s},Number.isInteger},995:(e,r,o)=>{var n={app:()=>(t||((self.webpackChunk_openmrs_esm_devtools_app=self.webpackChunk_openmrs_esm_devtools_app||[]).push([[988],{988:(e,r,t)=>{function o(){return{lifecycle:(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(983),t.e(733)]).then(t.bind(t,733))}),{featureName:"devtools",moduleName:"@openmrs/esm-devtools-app"}),activate:function(){return"development"===window.spaEnv||!!localStorage.getItem("openmrs:devtools")}}}t.r(r),t.d(r,{importTranslation:()=>a,setupOpenMRS:()=>o,assets:()=>["openmrs-esm-devtools-app.js","733.js","735.js","889.js"]});var n=t(644),a=function(){return Promise.resolve()}}}]),t=o.e(988).then((()=>()=>o(988)))),t)},a=(e,r)=>(o.R=r,r=o.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),o.R=void 0,r),s=(e,r)=>{if(o.S){var t=o.S.default;if(t&&t!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return o.S.default=e,o.I("default",r)}};o.d(r,{get:()=>a,init:()=>s})}},y={};return e.m=g,e.c=y,e.y=r,e.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},e.d=(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},e.f={},e.e=r=>Promise.all(Object.keys(e.f).reduce(((t,o)=>(e.f[o](r,t),t)),[])),e.u=e=>e+".js",e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o={},n="@openmrs/esm-devtools-app:",e.l=(r,t,a)=>{if(o[r])o[r].push(t);else{var s,i;if(void 0!==a)for(var l,u=document.getElementsByTagName("script"),p=0;p<u.length;p++)if((l=u[p]).getAttribute("src")==r||l.getAttribute("data-webpack")==n+a){s=l;break}s||(i=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,e.nc&&s.setAttribute("nonce",e.nc),s.setAttribute("data-webpack",n+a),s.src=r),o[r]=[t];var f=(e,t)=>{s.onerror=s.onload=null,clearTimeout(d);var n=o[r];if(delete o[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(t))),e)return e(t)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),i&&document.head.appendChild(s)}},e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{e.S={};var r={},t={};e.I=(o,n)=>{n||(n=[]);var a=t[o];if(a||(a=t[o]={}),!(0<=n.indexOf(a))){if(n.push(a),r[o])return r[o];e.o(e.S,o)||(e.S[o]={});var s=e.S[o],i=(e,r,t,o)=>{var n=s[e]=s[e]||{},a=n[r];a&&(a.loaded||(!o==!a.eager?!("@openmrs/esm-devtools-app">a.from):!o))||(n[r]={get:t,from:"@openmrs/esm-devtools-app",eager:!!o})},l=[];return"default"===o&&(i("@openmrs/esm-framework","3.4.1-pre.
|
|
1
|
+
System.register("@openmrs/esm-devtools-app",[],(function(e,r){var t=void 0;return{execute:function(){e((()=>{function e(r){var t=y[r];if(void 0!==t)return t.exports;var o=y[r]={id:r,loaded:!1,exports:{}};return g[r](o,o.exports,e),o.loaded=!0,o.exports}var o,n,a,s,i,l,u,p,f,d,c,m,h,v,g={585:(e,r,t)=>{(0,t(968).s)(1)},968:(e,r,t)=>{const o=t(577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=o(t.y.meta.url,e)}},331:(e,r,t)=>{t(585)},577:(e,r)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var o="/"===t.pathname[0]?t.pathname:"/"+t.pathname,n=0,a=o.length;n!==r&&0<=a;)"/"===o[--a]&&n++;if(n!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+n+") in the URL path "+e);var s=o.slice(0,a+1);return t.protocol+"//"+t.host+s},Number.isInteger},995:(e,r,o)=>{var n={app:()=>(t||((self.webpackChunk_openmrs_esm_devtools_app=self.webpackChunk_openmrs_esm_devtools_app||[]).push([[988],{988:(e,r,t)=>{function o(){return{lifecycle:(0,n.getAsyncLifecycle)((function(){return Promise.all([t.e(983),t.e(733)]).then(t.bind(t,733))}),{featureName:"devtools",moduleName:"@openmrs/esm-devtools-app"}),activate:function(){return"development"===window.spaEnv||!!localStorage.getItem("openmrs:devtools")}}}t.r(r),t.d(r,{importTranslation:()=>a,setupOpenMRS:()=>o,assets:()=>["openmrs-esm-devtools-app.js","733.js","735.js","889.js"]});var n=t(644),a=function(){return Promise.resolve()}}}]),t=o.e(988).then((()=>()=>o(988)))),t)},a=(e,r)=>(o.R=r,r=o.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),o.R=void 0,r),s=(e,r)=>{if(o.S){var t=o.S.default;if(t&&t!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return o.S.default=e,o.I("default",r)}};o.d(r,{get:()=>a,init:()=>s})}},y={};return e.m=g,e.c=y,e.y=r,e.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},e.d=(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},e.f={},e.e=r=>Promise.all(Object.keys(e.f).reduce(((t,o)=>(e.f[o](r,t),t)),[])),e.u=e=>e+".js",e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o={},n="@openmrs/esm-devtools-app:",e.l=(r,t,a)=>{if(o[r])o[r].push(t);else{var s,i;if(void 0!==a)for(var l,u=document.getElementsByTagName("script"),p=0;p<u.length;p++)if((l=u[p]).getAttribute("src")==r||l.getAttribute("data-webpack")==n+a){s=l;break}s||(i=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,e.nc&&s.setAttribute("nonce",e.nc),s.setAttribute("data-webpack",n+a),s.src=r),o[r]=[t];var f=(e,t)=>{s.onerror=s.onload=null,clearTimeout(d);var n=o[r];if(delete o[r],s.parentNode&&s.parentNode.removeChild(s),n&&n.forEach((e=>e(t))),e)return e(t)},d=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),i&&document.head.appendChild(s)}},e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{e.S={};var r={},t={};e.I=(o,n)=>{n||(n=[]);var a=t[o];if(a||(a=t[o]={}),!(0<=n.indexOf(a))){if(n.push(a),r[o])return r[o];e.o(e.S,o)||(e.S[o]={});var s=e.S[o],i=(e,r,t,o)=>{var n=s[e]=s[e]||{},a=n[r];a&&(a.loaded||(!o==!a.eager?!("@openmrs/esm-devtools-app">a.from):!o))||(n[r]={get:t,from:"@openmrs/esm-devtools-app",eager:!!o})},l=[];return"default"===o&&(i("@openmrs/esm-framework","3.4.1-pre.151",(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(889))))),i("react","16.14.0",(()=>e.e(735).then((()=>()=>e(735)))))),r[o]=l.length?Promise.all(l).then((()=>r[o]=1)):1}}})(),e.p="",a=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=t[1]?r(t[1]):[];return t[2]&&(o.length++,o.push.apply(o,r(t[2]))),t[3]&&(o.push([]),o.push.apply(o,r(t[3]))),o},s=(e,r)=>{e=a(e),r=a(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],n=(typeof o)[0];if(t>=r.length)return"u"==n;var s=r[t],i=(typeof s)[0];if(n!=i)return"o"==n&&"n"==i||"s"==i||"u"==n;if("o"!=n&&"u"!=n&&o!=s)return o<s;t++}},i=e=>{function r(){return s.pop().replace(/^\((.+)\)$/,"$1")}var t=e[0],o="";if(1===e.length)return"*";if(t+.5){o+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":0<t?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,o+="u"==(typeof(l=e[a]))[0]?"-":(0<n?".":"")+(n=2,l);return o}var s=[];for(a=1;a<e.length;a++){var l=e[a];s.push(0===l?"not("+r()+")":1===l?"("+r()+" || "+r()+")":2===l?s.pop()+" "+s.pop():i(l))}return r()},l=(e,r)=>{if(0 in e){r=a(r);var t=e[0],o=0>t;o&&(t=-t-1);for(var n=0,s=1,i=!0;;s++,n++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(n>=r.length||"o"==(p=(typeof(u=r[n]))[0]))return!i||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!i||"u"!=f)return!1}else if(i)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(i=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;i=!1,s--}else{if(s<=t||p<f!=o)return!1;i=!1}else"s"!=f&&"n"!=f&&(i=!1,s--)}}var d=[],c=d.pop.bind(d);for(n=1;n<e.length;n++){var m=e[n];d.push(1==m?c()|c():2==m?c()&c():m?l(m,r):!c())}return!!c()},u=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&s(e,r)?r:e),0)},p=(e,r,t,o)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(o)+")",f=(e,r,t,o)=>{var n=u(e,t);return l(o,n)||"undefined"!=typeof console&&console.warn&&console.warn(p(e,t,n,o)),d(e[t][n])},d=e=>(e.loaded=1,e.get()),c=(r=>function(t,o,n,a){var s=e.I(t);return s&&s.then?s.then(r.bind(r,t,e.S[t],o,n,a)):r(0,e.S[t],o,n,a)})(((r,t,o,n,a)=>t&&e.o(t,o)?f(t,0,o,n):a())),m={},h={644:()=>c("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(889))))),983:()=>c("default","react",[1,16],(()=>e.e(735).then((()=>()=>e(735)))))},v={983:[983],988:[644]},e.f.consumes=(r,t)=>{e.o(v,r)&&v[r].forEach((r=>{if(e.o(m,r))return t.push(m[r]);var o=t=>{m[r]=0,e.m[r]=o=>{delete e.c[r],o.exports=t()}},n=t=>{delete m[r],e.m[r]=()=>{throw delete e.c[r],t}};try{var a=h[r]();a.then?t.push(m[r]=a.then(o).catch(n)):o(a)}catch(r){n(r)}}))},(()=>{var r={64:0};e.f.j=(t,o)=>{var n=e.o(r,t)?r[t]:void 0;if(0!==n)if(n)o.push(n[2]);else if(983!=t){var a=new Promise(((e,o)=>n=r[t]=[e,o]));o.push(n[2]=a);var s=e.p+e.u(t),i=new Error;e.l(s,(o=>{if(e.o(r,t)&&(0!==(n=r[t])&&(r[t]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),s=o&&o.target&&o.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",i.name="ChunkLoadError",i.type=a,i.request=s,n[1](i)}}),"chunk-"+t,t)}else r[t]=0};var t=(t,o)=>{var n,a,[s,i,l]=o,u=0;if(s.some((e=>0!==r[e]))){for(n in i)e.o(i,n)&&(e.m[n]=i[n]);l&&l(e)}for(t&&t(o);u<s.length;u++)a=s[u],e.o(r,a)&&r[a]&&r[a][0](),r[a]=0},o=self.webpackChunk_openmrs_esm_devtools_app=self.webpackChunk_openmrs_esm_devtools_app||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),e(331),e(995)})())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-devtools-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,u,l,f,p,d,c,h,m={585:(e,r,t)=>{(0,t(968).s)(1)},968:(e,r,t)=>{const n=t(577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},331:(e,r,t)=>{t(585)},577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},995:(e,r,t)=>{"use strict";var n={app:()=>t.e(988).then((()=>()=>t(988)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function g(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e](t,t.exports,g),t.loaded=!0,t.exports}return g.m=m,g.c=v,g.y=r,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-devtools-app:",g.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-devtools-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.
|
|
1
|
+
System.register("@openmrs/esm-devtools-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,u,l,f,p,d,c,h,m={585:(e,r,t)=>{(0,t(968).s)(1)},968:(e,r,t)=>{const n=t(577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},331:(e,r,t)=>{t(585)},577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},995:(e,r,t)=>{"use strict";var n={app:()=>t.e(988).then((()=>()=>t(988)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function g(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e](t,t.exports,g),t.loaded=!0,t.exports}return g.m=m,g.c=v,g.y=r,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-devtools-app:",g.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var f=u[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-devtools-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},u=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.151",(()=>Promise.all([g.e(983),g.e(889)]).then((()=>()=>g(889))))),s("react","16.14.0",(()=>g.e(735).then((()=>()=>g(735)))))),e[t]=u.length?Promise.all(u).then((()=>e[t]=1)):1}}})(),g.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+u()+")":1===s?"("+u()+" || "+u()+")":2===s?i.pop()+" "+i.pop():a(s))}return u();function u(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,u=!0;;s++,a++){var l,f,p=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(f=(typeof(l=r[a]))[0]))return!u||("u"==p?s>t&&!o:""==p!=o);if("u"==f){if(!u||"u"!=p)return!1}else if(u)if(p==f)if(s<=t){if(l!=e[s])return!1}else{if(o?l>e[s]:l<e[s])return!1;l!=e[s]&&(u=!1)}else if("s"!=p&&"n"!=p){if(o||s<=t)return!1;u=!1,s--}else{if(s<=t||f<p!=o)return!1;u=!1}else"s"!=p&&"n"!=p&&(u=!1,s--)}}var d=[],c=d.pop.bind(d);for(a=1;a<e.length;a++){var h=e[a];d.push(1==h?c()|c():2==h?c()&c():h?i(h,r):!c())}return!!c()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},u=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",l=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(u(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=g.I(r);return a&&a.then?a.then(e.bind(e,r,g.S[r],t,n,o)):e(0,g.S[r],t,n,o)})(((e,r,t,n,o)=>r&&g.o(r,t)?l(r,0,t,n):o())),d={},c={644:()=>p("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>Promise.all([g.e(983),g.e(889)]).then((()=>()=>g(889))))),983:()=>p("default","react",[1,16],(()=>g.e(735).then((()=>()=>g(735)))))},h={983:[983],988:[644]},g.f.consumes=(e,r)=>{g.o(h,e)&&h[e].forEach((e=>{if(g.o(d,e))return r.push(d[e]);var t=r=>{d[e]=0,g.m[e]=t=>{delete g.c[e],t.exports=r()}},n=r=>{delete d[e],g.m[e]=t=>{throw delete g.c[e],r}};try{var o=c[e]();o.then?r.push(d[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={64:0};g.f.j=(r,t)=>{var n=g.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(983!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=g.p+g.u(r),i=new Error;g.l(a,(t=>{if(g.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,s]=t,u=0;if(a.some((r=>0!==e[r]))){for(n in i)g.o(i,n)&&(g.m[n]=i[n]);s&&s(g)}for(r&&r(t);u<a.length;u++)o=a[u],g.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_devtools_app=self.webpackChunk_openmrs_esm_devtools_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),g(331),g(995)})())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-implementer-tools-app",[],(function(e,r){var t=void 0;return{execute:function(){e((()=>{function e(r){var t=w[r];if(void 0!==t)return t.exports;var n=w[r]={id:r,loaded:!1,exports:{}};return O[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var n,o,a,s,i,l,u,p,c,f,m,d,h,b,v,g,y,O={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&0<=a;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var s=n.slice(0,a+1);return t.protocol+"//"+t.host+s},Number.isInteger},3055:(e,r,n)=>{var o={app:()=>(t||((self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[284],{1284:(e,r,t)=>{function n(e){var r=e.configPath,t=(0,u.useTranslation)().t;return i().createElement("button",{onClick:function(){l.wT.setState({configPathBeingEdited:r})}},t("edit","Edit"))}function o(){var e={featureName:"Implementer Tools",moduleName:"@openmrs/esm-implementer-tools-app"};return{pages:[{route:function(){return!0},load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(458),t.e(784),t.e(811)]).then(t.bind(t,8811))}),e)}],extensions:[{name:"implementer-tools-button",slot:"top-nav-actions-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(350),t.e(784),t.e(105)]).then(t.bind(t,4105))}),e)}]}}t.r(r),t.d(r,{ConfigEditButton:()=>n,importTranslation:()=>p,setupOpenMRS:()=>o,assets:()=>["1.js","25.js","105.js","280.js","319.js","openmrs-esm-implementer-tools-app.js","350.js","458.js","475.js","531.js","574.js","620.js","652.js","735.js","743.js","769.js","788.js","811.js","860.js","889.js","890.js"]});var a=t(7644),s=t(6983),i=t.n(s),l=t(1004),u=t(2680),p=t(3979)},1004:(e,r,t)=>{function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e){for(var r=1;r<arguments.length;r++){var t=null==arguments[r]?{}:arguments[r],o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(r){n(e,r,t[r])}))}return e}function a(){var e;return null!==(e=JSON.parse(localStorage.getItem("openmrs:openmrsImplementerToolsAreOpen")||"false"))&&void 0!==e&&e}function s(){var e;return null===(e=JSON.parse(localStorage.getItem("openmrs:openmrsImplementerToolsConfigOpen")||"true"))||void 0===e||e}function i(){var e;return null!==(e=JSON.parse(localStorage.getItem("openmrs:isUIEditorEnabled")||"false"))&&void 0!==e&&e}function l(){var e;return null!==(e=JSON.parse(localStorage.getItem("openmrs:getIsJsonModeEnabled")||"false"))&&void 0!==e&&e}t.d(r,{XE:()=>c,wT:()=>u,zI:()=>p});var u=(0,t(7644).createGlobalStore)("implementer-tools",{activeItemDescription:void 0,configPathBeingEdited:null,isOpen:a(),hasAlert:!1,openTabIndex:0,isConfigToolbarOpen:s(),isUIEditorEnabled:i(),isJsonModeEnabled:l()}),p=(u.action((function(e,r){return o({},e,{hasAlert:r})})),u.action((function(e){return o({},e,{isOpen:!e.isOpen})}))),c=u.action((function(e){return o({},e,{isOpen:!0,openTabIndex:1})})),f=a(),m=s(),d=i(),h=l();u.subscribe((function(e){var r,t;e.isOpen!=f&&(r=e.isOpen,localStorage.setItem("openmrs:openmrsImplementerToolsAreOpen",JSON.stringify(r)),f=e.isOpen),e.isUIEditorEnabled!=d&&(t=e.isUIEditorEnabled,localStorage.setItem("openmrs:isUIEditorEnabled",JSON.stringify(t)),d=e.isUIEditorEnabled),e.isConfigToolbarOpen!=m&&(function(e){localStorage.setItem("openmrs:openmrsImplementerToolsConfigOpen",JSON.stringify(e))}(e.isConfigToolbarOpen),m=e.isConfigToolbarOpen),e.isJsonModeEnabled!=h&&(function(e){localStorage.setItem("openmrs:getIsJsonModeEnabled",JSON.stringify(e))}(e.isJsonModeEnabled),h=e.isJsonModeEnabled)}))},3979:(e,r,t)=>{function n(e){if(!t.o(o,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=o[e],n=r[0];return t.e(r[1]).then((()=>t(n)))}var o={"./en.json":[3574,574],"./es.json":[8319,319]};n.keys=()=>Object.keys(o),n.id=3979,e.exports=n}}]),t=Promise.all([n.e(983),n.e(284)]).then((()=>()=>n(1284)))),t)},a=(e,r)=>(n.R=r,r=n.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),n.R=void 0,r),s=(e,r)=>{if(n.S){var t=n.S.default;if(t&&t!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return n.S.default=e,n.I("default",r)}};n.d(r,{get:()=>a,init:()=>s})}},w={};return e.m=O,e.c=w,e.y=r,e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},e.d=(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},e.f={},e.e=r=>Promise.all(Object.keys(e.f).reduce(((t,n)=>(e.f[n](r,t),t)),[])),e.u=e=>e+".js",e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n={},o="@openmrs/esm-implementer-tools-app:",e.l=(r,t,a)=>{if(n[r])n[r].push(t);else{var s,i;if(void 0!==a)for(var l,u=document.getElementsByTagName("script"),p=0;p<u.length;p++)if((l=u[p]).getAttribute("src")==r||l.getAttribute("data-webpack")==o+a){s=l;break}s||(i=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,e.nc&&s.setAttribute("nonce",e.nc),s.setAttribute("data-webpack",o+a),s.src=r),n[r]=[t];var c=(e,t)=>{s.onerror=s.onload=null,clearTimeout(f);var o=n[r];if(delete n[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(t))),e)return e(t)},f=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),i&&document.head.appendChild(s)}},e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{e.S={};var r={},t={};e.I=(n,o)=>{o||(o=[]);var a=t[n];if(a||(a=t[n]={}),!(0<=o.indexOf(a))){if(o.push(a),r[n])return r[n];e.o(e.S,n)||(e.S[n]={});var s=e.S[n],i=(e,r,t,n)=>{var o=s[e]=s[e]||{},a=o[r];a&&(a.loaded||(!n==!a.eager?!("@openmrs/esm-implementer-tools-app">a.from):!n))||(o[r]={get:t,from:"@openmrs/esm-implementer-tools-app",eager:!!n})},l=[];return"default"===n&&(i("@openmrs/esm-framework","3.4.1-pre.149",(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(4889))))),i("carbon-components-react","7.31.0",(()=>Promise.all([e.e(652),e.e(890),e.e(983),e.e(412),e.e(199)]).then((()=>()=>e(3890))))),i("carbon-components","10.31.0",(()=>Promise.all([e.e(25),e.e(1)]).then((()=>()=>e(25))))),i("carbon-icons","7.0.7",(()=>e.e(860).then((()=>()=>e(4860))))),i("react-dom","16.14.0",(()=>Promise.all([e.e(788),e.e(983)]).then((()=>()=>e(2788))))),i("react-i18next","11.16.2",(()=>Promise.all([e.e(743),e.e(983)]).then((()=>()=>e(5743))))),i("react","16.14.0",(()=>e.e(735).then((()=>()=>e(2735)))))),r[n]=l.length?Promise.all(l).then((()=>r[n]=1)):1}}})(),e.p="",a=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},s=(e,r)=>{e=a(e),r=a(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],o=(typeof n)[0];if(t>=r.length)return"u"==o;var s=r[t],i=(typeof s)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&n!=s)return n<s;t++}},i=e=>{function r(){return s.pop().replace(/^\((.+)\)$/,"$1")}var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":0<t?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(0<o?".":"")+(o=2,l);return n}var s=[];for(a=1;a<e.length;a++){var l=e[a];s.push(0===l?"not("+r()+")":1===l?"("+r()+" || "+r()+")":2===l?s.pop()+" "+s.pop():i(l))}return r()},l=(e,r)=>{if(0 in e){r=a(r);var t=e[0],n=0>t;n&&(t=-t-1);for(var o=0,s=1,i=!0;;s++,o++){var u,p,c=s<e.length?(typeof e[s])[0]:"";if(o>=r.length||"o"==(p=(typeof(u=r[o]))[0]))return!i||("u"==c?s>t&&!n:""==c!=n);if("u"==p){if(!i||"u"!=c)return!1}else if(i)if(c==p)if(s<=t){if(u!=e[s])return!1}else{if(n?u>e[s]:u<e[s])return!1;u!=e[s]&&(i=!1)}else if("s"!=c&&"n"!=c){if(n||s<=t)return!1;i=!1,s--}else{if(s<=t||p<c!=n)return!1;i=!1}else"s"!=c&&"n"!=c&&(i=!1,s--)}}var f=[],m=f.pop.bind(f);for(o=1;o<e.length;o++){var d=e[o];f.push(1==d?m()|m():2==d?m()&m():d?l(d,r):!m())}return!!m()},u=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&s(e,r)?r:e),0)},p=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",c=(e,r,t)=>{var n=u(e,t);return m(e[t][n])},f=(e,r,t,n)=>{var o=u(e,t);return l(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(p(e,t,o,n)),m(e[t][o])},m=e=>(e.loaded=1,e.get()),h=(d=r=>function(t,n,o,a){var s=e.I(t);return s&&s.then?s.then(r.bind(r,t,e.S[t],n,o,a)):r(t,e.S[t],n,o,a)})(((r,t,n,o)=>t&&e.o(t,n)?c(t,0,n):o())),b=d(((r,t,n,o,a)=>t&&e.o(t,n)?f(t,0,n,o):a())),v={},g={6983:()=>b("default","react",[1,16],(()=>e.e(735).then((()=>()=>e(2735))))),2680:()=>b("default","react-i18next",[1,11],(()=>e.e(743).then((()=>()=>e(5743))))),7644:()=>b("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>e.e(889).then((()=>()=>e(4889))))),5412:()=>b("default","react-dom",[1,16],(()=>e.e(788).then((()=>()=>e(2788))))),6240:()=>b("default","carbon-icons",[1,7],(()=>e.e(860).then((()=>()=>e(4860))))),7569:()=>b("default","carbon-components",[1,10],(()=>e.e(25).then((()=>()=>e(25))))),9784:()=>b("default","carbon-components-react",[1,7],(()=>Promise.all([e.e(652),e.e(890),e.e(412),e.e(199)]).then((()=>()=>e(3890))))),8478:()=>h("default","@openmrs/esm-framework/src/internal",(()=>e.e(889).then((()=>()=>e(4889)))))},y={199:[6240,7569],284:[2680,7644],412:[5412],478:[8478],784:[9784],983:[6983]},e.f.consumes=(r,t)=>{e.o(y,r)&&y[r].forEach((r=>{if(e.o(v,r))return t.push(v[r]);var n=t=>{v[r]=0,e.m[r]=n=>{delete e.c[r],n.exports=t()}},o=t=>{delete v[r],e.m[r]=()=>{throw delete e.c[r],t}};try{var a=g[r]();a.then?t.push(v[r]=a.then(n).catch(o)):n(a)}catch(r){o(r)}}))},(()=>{var r={346:0};e.f.j=(t,n)=>{var o=e.o(r,t)?r[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(/^(199|412|478|784|983)$/.test(t))r[t]=0;else{var a=new Promise(((e,n)=>o=r[t]=[e,n]));n.push(o[2]=a);var s=e.p+e.u(t),i=new Error;e.l(s,(n=>{if(e.o(r,t)&&(0!==(o=r[t])&&(r[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",i.name="ChunkLoadError",i.type=a,i.request=s,o[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,a,[s,i,l]=n,u=0;if(s.some((e=>0!==r[e]))){for(o in i)e.o(i,o)&&(e.m[o]=i[o]);l&&l(e)}for(t&&t(n);u<s.length;u++)a=s[u],e.o(r,a)&&r[a]&&r[a][0](),r[a]=0},n=self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),e(8331),e(3055)})())}}}));
|
|
1
|
+
System.register("@openmrs/esm-implementer-tools-app",[],(function(e,r){var t=void 0;return{execute:function(){e((()=>{function e(r){var t=w[r];if(void 0!==t)return t.exports;var n=w[r]={id:r,loaded:!1,exports:{}};return O[r].call(n.exports,n,n.exports,e),n.loaded=!0,n.exports}var n,o,a,s,i,l,u,p,c,f,m,d,h,b,v,g,y,O={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&0<=a;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var s=n.slice(0,a+1);return t.protocol+"//"+t.host+s},Number.isInteger},3055:(e,r,n)=>{var o={app:()=>(t||((self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[]).push([[284],{1284:(e,r,t)=>{function n(e){var r=e.configPath,t=(0,u.useTranslation)().t;return i().createElement("button",{onClick:function(){l.wT.setState({configPathBeingEdited:r})}},t("edit","Edit"))}function o(){var e={featureName:"Implementer Tools",moduleName:"@openmrs/esm-implementer-tools-app"};return{pages:[{route:function(){return!0},load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(458),t.e(784),t.e(811)]).then(t.bind(t,8811))}),e)}],extensions:[{name:"implementer-tools-button",slot:"top-nav-actions-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(350),t.e(784),t.e(105)]).then(t.bind(t,4105))}),e)}]}}t.r(r),t.d(r,{ConfigEditButton:()=>n,importTranslation:()=>p,setupOpenMRS:()=>o,assets:()=>["1.js","25.js","105.js","280.js","319.js","openmrs-esm-implementer-tools-app.js","350.js","458.js","475.js","531.js","574.js","620.js","652.js","735.js","743.js","769.js","788.js","811.js","860.js","889.js","890.js"]});var a=t(7644),s=t(6983),i=t.n(s),l=t(1004),u=t(2680),p=t(3979)},1004:(e,r,t)=>{function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e){for(var r=1;r<arguments.length;r++){var t=null==arguments[r]?{}:arguments[r],o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),o.forEach((function(r){n(e,r,t[r])}))}return e}function a(){var e;return null!==(e=JSON.parse(localStorage.getItem("openmrs:openmrsImplementerToolsAreOpen")||"false"))&&void 0!==e&&e}function s(){var e;return null===(e=JSON.parse(localStorage.getItem("openmrs:openmrsImplementerToolsConfigOpen")||"true"))||void 0===e||e}function i(){var e;return null!==(e=JSON.parse(localStorage.getItem("openmrs:isUIEditorEnabled")||"false"))&&void 0!==e&&e}function l(){var e;return null!==(e=JSON.parse(localStorage.getItem("openmrs:getIsJsonModeEnabled")||"false"))&&void 0!==e&&e}t.d(r,{XE:()=>c,wT:()=>u,zI:()=>p});var u=(0,t(7644).createGlobalStore)("implementer-tools",{activeItemDescription:void 0,configPathBeingEdited:null,isOpen:a(),hasAlert:!1,openTabIndex:0,isConfigToolbarOpen:s(),isUIEditorEnabled:i(),isJsonModeEnabled:l()}),p=(u.action((function(e,r){return o({},e,{hasAlert:r})})),u.action((function(e){return o({},e,{isOpen:!e.isOpen})}))),c=u.action((function(e){return o({},e,{isOpen:!0,openTabIndex:1})})),f=a(),m=s(),d=i(),h=l();u.subscribe((function(e){var r,t;e.isOpen!=f&&(r=e.isOpen,localStorage.setItem("openmrs:openmrsImplementerToolsAreOpen",JSON.stringify(r)),f=e.isOpen),e.isUIEditorEnabled!=d&&(t=e.isUIEditorEnabled,localStorage.setItem("openmrs:isUIEditorEnabled",JSON.stringify(t)),d=e.isUIEditorEnabled),e.isConfigToolbarOpen!=m&&(function(e){localStorage.setItem("openmrs:openmrsImplementerToolsConfigOpen",JSON.stringify(e))}(e.isConfigToolbarOpen),m=e.isConfigToolbarOpen),e.isJsonModeEnabled!=h&&(function(e){localStorage.setItem("openmrs:getIsJsonModeEnabled",JSON.stringify(e))}(e.isJsonModeEnabled),h=e.isJsonModeEnabled)}))},3979:(e,r,t)=>{function n(e){if(!t.o(o,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=o[e],n=r[0];return t.e(r[1]).then((()=>t(n)))}var o={"./en.json":[3574,574],"./es.json":[8319,319]};n.keys=()=>Object.keys(o),n.id=3979,e.exports=n}}]),t=Promise.all([n.e(983),n.e(284)]).then((()=>()=>n(1284)))),t)},a=(e,r)=>(n.R=r,r=n.o(o,e)?o[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),n.R=void 0,r),s=(e,r)=>{if(n.S){var t=n.S.default;if(t&&t!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return n.S.default=e,n.I("default",r)}};n.d(r,{get:()=>a,init:()=>s})}},w={};return e.m=O,e.c=w,e.y=r,e.amdD=function(){throw new Error("define cannot be used indirect")},e.n=r=>{var t=r&&r.__esModule?()=>r.default:()=>r;return e.d(t,{a:t}),t},e.d=(r,t)=>{for(var n in t)e.o(t,n)&&!e.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},e.f={},e.e=r=>Promise.all(Object.keys(e.f).reduce(((t,n)=>(e.f[n](r,t),t)),[])),e.u=e=>e+".js",e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),n={},o="@openmrs/esm-implementer-tools-app:",e.l=(r,t,a)=>{if(n[r])n[r].push(t);else{var s,i;if(void 0!==a)for(var l,u=document.getElementsByTagName("script"),p=0;p<u.length;p++)if((l=u[p]).getAttribute("src")==r||l.getAttribute("data-webpack")==o+a){s=l;break}s||(i=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,e.nc&&s.setAttribute("nonce",e.nc),s.setAttribute("data-webpack",o+a),s.src=r),n[r]=[t];var c=(e,t)=>{s.onerror=s.onload=null,clearTimeout(f);var o=n[r];if(delete n[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(t))),e)return e(t)},f=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),i&&document.head.appendChild(s)}},e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{e.S={};var r={},t={};e.I=(n,o)=>{o||(o=[]);var a=t[n];if(a||(a=t[n]={}),!(0<=o.indexOf(a))){if(o.push(a),r[n])return r[n];e.o(e.S,n)||(e.S[n]={});var s=e.S[n],i=(e,r,t,n)=>{var o=s[e]=s[e]||{},a=o[r];a&&(a.loaded||(!n==!a.eager?!("@openmrs/esm-implementer-tools-app">a.from):!n))||(o[r]={get:t,from:"@openmrs/esm-implementer-tools-app",eager:!!n})},l=[];return"default"===n&&(i("@openmrs/esm-framework","3.4.1-pre.151",(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(4889))))),i("carbon-components-react","7.31.0",(()=>Promise.all([e.e(652),e.e(890),e.e(983),e.e(412),e.e(199)]).then((()=>()=>e(3890))))),i("carbon-components","10.31.0",(()=>Promise.all([e.e(25),e.e(1)]).then((()=>()=>e(25))))),i("carbon-icons","7.0.7",(()=>e.e(860).then((()=>()=>e(4860))))),i("react-dom","16.14.0",(()=>Promise.all([e.e(788),e.e(983)]).then((()=>()=>e(2788))))),i("react-i18next","11.16.2",(()=>Promise.all([e.e(743),e.e(983)]).then((()=>()=>e(5743))))),i("react","16.14.0",(()=>e.e(735).then((()=>()=>e(2735)))))),r[n]=l.length?Promise.all(l).then((()=>r[n]=1)):1}}})(),e.p="",a=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},s=(e,r)=>{e=a(e),r=a(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],o=(typeof n)[0];if(t>=r.length)return"u"==o;var s=r[t],i=(typeof s)[0];if(o!=i)return"o"==o&&"n"==i||"s"==i||"u"==o;if("o"!=o&&"u"!=o&&n!=s)return n<s;t++}},i=e=>{function r(){return s.pop().replace(/^\((.+)\)$/,"$1")}var t=e[0],n="";if(1===e.length)return"*";if(t+.5){n+=0==t?">=":-1==t?"<":1==t?"^":2==t?"~":0<t?"=":"!=";for(var o=1,a=1;a<e.length;a++)o--,n+="u"==(typeof(l=e[a]))[0]?"-":(0<o?".":"")+(o=2,l);return n}var s=[];for(a=1;a<e.length;a++){var l=e[a];s.push(0===l?"not("+r()+")":1===l?"("+r()+" || "+r()+")":2===l?s.pop()+" "+s.pop():i(l))}return r()},l=(e,r)=>{if(0 in e){r=a(r);var t=e[0],n=0>t;n&&(t=-t-1);for(var o=0,s=1,i=!0;;s++,o++){var u,p,c=s<e.length?(typeof e[s])[0]:"";if(o>=r.length||"o"==(p=(typeof(u=r[o]))[0]))return!i||("u"==c?s>t&&!n:""==c!=n);if("u"==p){if(!i||"u"!=c)return!1}else if(i)if(c==p)if(s<=t){if(u!=e[s])return!1}else{if(n?u>e[s]:u<e[s])return!1;u!=e[s]&&(i=!1)}else if("s"!=c&&"n"!=c){if(n||s<=t)return!1;i=!1,s--}else{if(s<=t||p<c!=n)return!1;i=!1}else"s"!=c&&"n"!=c&&(i=!1,s--)}}var f=[],m=f.pop.bind(f);for(o=1;o<e.length;o++){var d=e[o];f.push(1==d?m()|m():2==d?m()&m():d?l(d,r):!m())}return!!m()},u=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&s(e,r)?r:e),0)},p=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",c=(e,r,t)=>{var n=u(e,t);return m(e[t][n])},f=(e,r,t,n)=>{var o=u(e,t);return l(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(p(e,t,o,n)),m(e[t][o])},m=e=>(e.loaded=1,e.get()),h=(d=r=>function(t,n,o,a){var s=e.I(t);return s&&s.then?s.then(r.bind(r,t,e.S[t],n,o,a)):r(t,e.S[t],n,o,a)})(((r,t,n,o)=>t&&e.o(t,n)?c(t,0,n):o())),b=d(((r,t,n,o,a)=>t&&e.o(t,n)?f(t,0,n,o):a())),v={},g={6983:()=>b("default","react",[1,16],(()=>e.e(735).then((()=>()=>e(2735))))),2680:()=>b("default","react-i18next",[1,11],(()=>e.e(743).then((()=>()=>e(5743))))),7644:()=>b("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>e.e(889).then((()=>()=>e(4889))))),5412:()=>b("default","react-dom",[1,16],(()=>e.e(788).then((()=>()=>e(2788))))),6240:()=>b("default","carbon-icons",[1,7],(()=>e.e(860).then((()=>()=>e(4860))))),7569:()=>b("default","carbon-components",[1,10],(()=>e.e(25).then((()=>()=>e(25))))),9784:()=>b("default","carbon-components-react",[1,7],(()=>Promise.all([e.e(652),e.e(890),e.e(412),e.e(199)]).then((()=>()=>e(3890))))),8478:()=>h("default","@openmrs/esm-framework/src/internal",(()=>e.e(889).then((()=>()=>e(4889)))))},y={199:[6240,7569],284:[2680,7644],412:[5412],478:[8478],784:[9784],983:[6983]},e.f.consumes=(r,t)=>{e.o(y,r)&&y[r].forEach((r=>{if(e.o(v,r))return t.push(v[r]);var n=t=>{v[r]=0,e.m[r]=n=>{delete e.c[r],n.exports=t()}},o=t=>{delete v[r],e.m[r]=()=>{throw delete e.c[r],t}};try{var a=g[r]();a.then?t.push(v[r]=a.then(n).catch(o)):n(a)}catch(r){o(r)}}))},(()=>{var r={346:0};e.f.j=(t,n)=>{var o=e.o(r,t)?r[t]:void 0;if(0!==o)if(o)n.push(o[2]);else if(/^(199|412|478|784|983)$/.test(t))r[t]=0;else{var a=new Promise(((e,n)=>o=r[t]=[e,n]));n.push(o[2]=a);var s=e.p+e.u(t),i=new Error;e.l(s,(n=>{if(e.o(r,t)&&(0!==(o=r[t])&&(r[t]=void 0),o)){var a=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;i.message="Loading chunk "+t+" failed.\n("+a+": "+s+")",i.name="ChunkLoadError",i.type=a,i.request=s,o[1](i)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,a,[s,i,l]=n,u=0;if(s.some((e=>0!==r[e]))){for(o in i)e.o(i,o)&&(e.m[o]=i[o]);l&&l(e)}for(t&&t(n);u<s.length;u++)a=s[u],e.o(r,a)&&r[a]&&r[a][0](),r[a]=0},n=self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),e(8331),e(3055)})())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-implementer-tools-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,m,h,v,b,g={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},3055:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(983),t.e(284)]).then((()=>()=>t(1284)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function w(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=g,w.c=y,w.y=r,w.amdD=function(){throw new Error("define cannot be used indirect")},w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-implementer-tools-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-implementer-tools-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.
|
|
1
|
+
System.register("@openmrs/esm-implementer-tools-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,s,l,u,p,f,c,d,m,h,v,b,g={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},3055:(e,r,t)=>{"use strict";var n={app:()=>Promise.all([t.e(983),t.e(284)]).then((()=>()=>t(1284)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function w(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return g[e].call(t.exports,t,t.exports,w),t.loaded=!0,t.exports}return w.m=g,w.c=y,w.y=r,w.amdD=function(){throw new Error("define cannot be used indirect")},w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-implementer-tools-app:",w.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==r||p.getAttribute("data-webpack")==t+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var f=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),s&&document.head.appendChild(i)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-implementer-tools-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","3.4.1-pre.151",(()=>Promise.all([w.e(983),w.e(889)]).then((()=>()=>w(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([w.e(652),w.e(890),w.e(983),w.e(412),w.e(199)]).then((()=>()=>w(3890))))),s("carbon-components","10.31.0",(()=>Promise.all([w.e(25),w.e(1)]).then((()=>()=>w(25))))),s("carbon-icons","7.0.7",(()=>w.e(860).then((()=>()=>w(4860))))),s("react-dom","16.14.0",(()=>Promise.all([w.e(788),w.e(983)]).then((()=>()=>w(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([w.e(743),w.e(983)]).then((()=>()=>w(5743))))),s("react","16.14.0",(()=>w.e(735).then((()=>()=>w(2735)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),w.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(s=e[o]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(o=1;o<e.length;o++){var s=e[o];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():a(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,s=1,l=!0;;s++,a++){var u,p,f=s<e.length?(typeof e[s])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!l||("u"==f?s>t&&!o:""==f!=o);if("u"==p){if(!l||"u"!=f)return!1}else if(l)if(f==p)if(s<=t){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=f&&"n"!=f){if(o||s<=t)return!1;l=!1,s--}else{if(s<=t||p<f!=o)return!1;l=!1}else"s"!=f&&"n"!=f&&(l=!1,s--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var m=e[a];c.push(1==m?d()|d():2==m?d()&d():m?i(m,r):!d())}return!!d()},s=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=s(e,t);return f(e[t][o])},p=(e,r,t,n)=>{var o=s(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),d=(c=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?u(r,0,t):n())),m=c(((e,r,t,n,o)=>r&&w.o(r,t)?p(r,0,t,n):o())),h={},v={6983:()=>m("default","react",[1,16],(()=>w.e(735).then((()=>()=>w(2735))))),2680:()=>m("default","react-i18next",[1,11],(()=>w.e(743).then((()=>()=>w(5743))))),7644:()=>m("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>w.e(889).then((()=>()=>w(4889))))),5412:()=>m("default","react-dom",[1,16],(()=>w.e(788).then((()=>()=>w(2788))))),6240:()=>m("default","carbon-icons",[1,7],(()=>w.e(860).then((()=>()=>w(4860))))),7569:()=>m("default","carbon-components",[1,10],(()=>w.e(25).then((()=>()=>w(25))))),9784:()=>m("default","carbon-components-react",[1,7],(()=>Promise.all([w.e(652),w.e(890),w.e(412),w.e(199)]).then((()=>()=>w(3890))))),8478:()=>d("default","@openmrs/esm-framework/src/internal",(()=>w.e(889).then((()=>()=>w(4889)))))},b={199:[6240,7569],284:[2680,7644],412:[5412],478:[8478],784:[9784],983:[6983]},w.f.consumes=(e,r)=>{w.o(b,e)&&b[e].forEach((e=>{if(w.o(h,e))return r.push(h[e]);var t=r=>{h[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete h[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(h[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={346:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(199|412|478|784|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);s&&s(w)}for(r&&r(t);l<a.length;l++)o=a[l],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_implementer_tools_app=self.webpackChunk_openmrs_esm_implementer_tools_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w(8331),w(3055)})())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-login-app",[],(function(e,t){var r=void 0;return{execute:function(){e((()=>{function e(t){var r=v[t];if(void 0!==r)return r.exports;var o=v[t]={id:t,loaded:!1,exports:{}};return y[t].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var o,n,a,i,s,l,u,c,p,f,d,h,m,g,y={6585:(e,t,r)=>{(0,r(7968).s)(1)},7968:(e,t,r)=>{const o=r(1577).R;t.s=function(e){if(e||(e=1),!r.y.meta||!r.y.meta.url)throw console.error("__system_context__",r.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");r.p=o(r.y.meta.url,e)}},8331:(e,t,r)=>{r(6585)},1577:(e,t)=>{t.R=function(e,t){var r=document.createElement("a");r.href=e;for(var o="/"===r.pathname[0]?r.pathname:"/"+r.pathname,n=0,a=o.length;n!==t&&0<=a;)"/"===o[--a]&&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 i=o.slice(0,a+1);return r.protocol+"//"+r.host+i},Number.isInteger},9748:(e,t,o)=>{var n={app:()=>(r||((self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[420],{2420:(e,t,r)=>{function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){for(var t=1;t<arguments.length;t++){var r=null==arguments[t]?{}:arguments[t],n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}function a(){var e={featureName:"login",moduleName:"@openmrs/esm-login-app"};return(0,i.defineConfigSchema)("@openmrs/esm-login-app",s),{pages:[n({load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(454),r.e(302),r.e(983),r.e(844),r.e(607),r.e(754)]).then(r.bind(r,1754))}),e),route:"login"},c),n({load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(454),r.e(302),r.e(983),r.e(844),r.e(607),r.e(754)]).then(r.bind(r,1754))}),e),route:"logout"},c)],extensions:[n({name:"location-picker",slot:"location-picker",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(454),r.e(983),r.e(844),r.e(607)]).then(r.bind(r,9607))}),e)},c),{name:"logout-button",slot:"user-panel-actions-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(983),r.e(844),r.e(406)]).then(r.bind(r,7406))}),e),online:!0,offline:!1},n({name:"location-changer",slot:"user-panel-slot",order:1,load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(983),r.e(844),r.e(688)]).then(r.bind(r,6688))}),e)},c)]}}r.r(t),r.d(t,{backendDependencies:()=>u,importTranslation:()=>l,setupOpenMRS:()=>a,assets:()=>["1.js","25.js","216.js","236.js","240.js","272.js","302.js","319.js","322.js","336.js","openmrs-esm-login-app.js","393.js","406.js","454.js","539.js","574.js","607.js","644.js","673.js","688.js","735.js","743.js","754.js","757.js","788.js","860.js","889.js"]});var i=r(7644),s={provider:{type:{_type:i.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:i.Type.String,_default:"${openmrsSpaBase}/login",_description:"The URL to use for an OAuth2 login.",_validators:[i.validators.isUrl]},logoutUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/logout",_description:"The URL to use for an OAuth2 logout.",_validators:[i.validators.isUrl]}},chooseLocation:{enabled:{_type:i.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:i.Type.Number,_default:8,_description:"The number of locations displayed on location picker"},locationsPerRequest:{_type:i.Type.Number,_default:50,_description:"The number of results to be fetched in each cycle of the infinite scroll"},useLoginLocationTag:{_type:i.Type.Boolean,_default:!0,_description:"Whether to show only locations with the 'Login Location' tag. If false, shows all locations."}},links:{loginSuccess:{_type:i.Type.String,_description:"Where to take the user after they are logged in.",_default:"${openmrsSpaBase}/home",_validators:[i.validators.isUrl]}},logo:{src:{_type:i.Type.String,_default:null,_description:"A path or URL to an image. If null, will use the OpenMRS SVG sprite.",_validators:[i.validators.isUrl]},alt:{_type:i.Type.String,_default:"Logo",_description:"Alt text, shown on hover"}}},l=r(3979),u={"webservices.rest":"^2.24.0"},c={online:{isLoginEnabled:!0},offline:{isLoginEnabled:!1}}},3979:(e,t,r)=>{function o(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return r.e(t[1]).then((()=>r(o)))}var n={"./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]};o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}}]),r=o.e(420).then((()=>()=>o(2420)))),r)},a=(e,t)=>(o.R=t,t=o.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),o.R=void 0,t),i=(e,t)=>{if(o.S){var r=o.S.default;if(r&&r!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return o.S.default=e,o.I("default",t)}};o.d(t,{get:()=>a,init:()=>i})}},v={};return e.m=y,e.c=v,e.y=t,e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},e.f={},e.e=t=>Promise.all(Object.keys(e.f).reduce(((r,o)=>(e.f[o](t,r),r)),[])),e.u=e=>e+".js",e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},n="@openmrs/esm-login-app:",e.l=(t,r,a)=>{if(o[t])o[t].push(r);else{var i,s;if(void 0!==a)for(var l,u=document.getElementsByTagName("script"),c=0;c<u.length;c++)if((l=u[c]).getAttribute("src")==t||l.getAttribute("data-webpack")==n+a){i=l;break}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,e.nc&&i.setAttribute("nonce",e.nc),i.setAttribute("data-webpack",n+a),i.src=t),o[t]=[r];var p=(e,r)=>{i.onerror=i.onload=null,clearTimeout(f);var n=o[t];if(delete o[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(r))),e)return e(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{e.S={};var t={},r={};e.I=(o,n)=>{n||(n=[]);var a=r[o];if(a||(a=r[o]={}),!(0<=n.indexOf(a))){if(n.push(a),t[o])return t[o];e.o(e.S,o)||(e.S[o]={});var i=e.S[o],s=(e,t,r,o)=>{var n=i[e]=i[e]||{},a=n[t];a&&(a.loaded||(!o==!a.eager?!("@openmrs/esm-login-app">a.from):!o))||(n[t]={get:r,from:"@openmrs/esm-login-app",eager:!!o})},l=[];return"default"===o&&(s("@openmrs/esm-framework","3.4.1-pre.149",(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([e.e(322),e.e(983),e.e(69)]).then((()=>()=>e(7322))))),s("carbon-components","10.31.0",(()=>Promise.all([e.e(25),e.e(1)]).then((()=>()=>e(25))))),s("carbon-icons","7.0.7",(()=>e.e(860).then((()=>()=>e(4860))))),s("react-dom","16.14.0",(()=>Promise.all([e.e(788),e.e(983)]).then((()=>()=>e(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([e.e(743),e.e(983)]).then((()=>()=>e(5743))))),s("react-router-dom","5.3.0",(()=>Promise.all([e.e(393),e.e(983),e.e(216)]).then((()=>()=>e(7393))))),s("react","16.14.0",(()=>e.e(735).then((()=>()=>e(2735)))))),t[o]=l.length?Promise.all(l).then((()=>t[o]=1)):1}}})(),e.p="",a=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=r[1]?t(r[1]):[];return r[2]&&(o.length++,o.push.apply(o,t(r[2]))),r[3]&&(o.push([]),o.push.apply(o,t(r[3]))),o},i=(e,t)=>{e=a(e),t=a(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var o=e[r],n=(typeof o)[0];if(r>=t.length)return"u"==n;var i=t[r],s=(typeof i)[0];if(n!=s)return"o"==n&&"n"==s||"s"==s||"u"==n;if("o"!=n&&"u"!=n&&o!=i)return o<i;r++}},s=e=>{function t(){return i.pop().replace(/^\((.+)\)$/,"$1")}var r=e[0],o="";if(1===e.length)return"*";if(r+.5){o+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":0<r?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,o+="u"==(typeof(l=e[a]))[0]?"-":(0<n?".":"")+(n=2,l);return o}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+t()+")":1===l?"("+t()+" || "+t()+")":2===l?i.pop()+" "+i.pop():s(l))}return t()},l=(e,t)=>{if(0 in e){t=a(t);var r=e[0],o=0>r;o&&(r=-r-1);for(var n=0,i=1,s=!0;;i++,n++){var u,c,p=i<e.length?(typeof e[i])[0]:"";if(n>=t.length||"o"==(c=(typeof(u=t[n]))[0]))return!s||("u"==p?i>r&&!o:""==p!=o);if("u"==c){if(!s||"u"!=p)return!1}else if(s)if(p==c)if(i<=r){if(u!=e[i])return!1}else{if(o?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(o||i<=r)return!1;s=!1,i--}else{if(i<=r||c<p!=o)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var f=[],d=f.pop.bind(f);for(n=1;n<e.length;n++){var h=e[n];f.push(1==h?d()|d():2==h?d()&d():h?l(h,t):!d())}return!!d()},u=(e,t)=>{var r=e[t];return Object.keys(r).reduce(((e,t)=>!e||!r[e].loaded&&i(e,t)?t:e),0)},c=(e,t,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+s(o)+")",p=(e,t,r,o)=>{var n=u(e,r);return l(o,n)||"undefined"!=typeof console&&console.warn&&console.warn(c(e,r,n,o)),f(e[r][n])},f=e=>(e.loaded=1,e.get()),d=(t=>function(r,o,n,a){var i=e.I(r);return i&&i.then?i.then(t.bind(t,r,e.S[r],o,n,a)):t(0,e.S[r],o,n,a)})(((t,r,o,n,a)=>r&&e.o(r,o)?p(r,0,o,n):a())),h={},m={7644:()=>d("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(4889))))),6983:()=>d("default","react",[1,16],(()=>e.e(735).then((()=>()=>e(2735))))),5412:()=>d("default","react-dom",[1,16],(()=>e.e(788).then((()=>()=>e(2788))))),6240:()=>d("default","carbon-icons",[1,7],(()=>e.e(860).then((()=>()=>e(4860))))),7569:()=>d("default","carbon-components",[1,10],(()=>e.e(25).then((()=>()=>e(25))))),2680:()=>d("default","react-i18next",[1,11],(()=>e.e(743).then((()=>()=>e(5743))))),9784:()=>d("default","carbon-components-react",[1,7],(()=>Promise.all([e.e(322),e.e(69)]).then((()=>()=>e(7322))))),2268:()=>d("default","react-router-dom",[1,5],(()=>e.e(393).then((()=>()=>e(7393)))))},g={69:[5412,6240,7569],420:[7644],754:[2268],844:[2680,9784],983:[6983]},e.f.consumes=(t,r)=>{e.o(g,t)&&g[t].forEach((t=>{if(e.o(h,t))return r.push(h[t]);var o=r=>{h[t]=0,e.m[t]=o=>{delete e.c[t],o.exports=r()}},n=r=>{delete h[t],e.m[t]=()=>{throw delete e.c[t],r}};try{var a=m[t]();a.then?r.push(h[t]=a.then(o).catch(n)):o(a)}catch(t){n(t)}}))},(()=>{var t={356:0};e.f.j=(r,o)=>{var n=e.o(t,r)?t[r]:void 0;if(0!==n)if(n)o.push(n[2]);else if(/^(69|844|983)$/.test(r))t[r]=0;else{var a=new Promise(((e,o)=>n=t[r]=[e,o]));o.push(n[2]=a);var i=e.p+e.u(r),s=new Error;e.l(i,(o=>{if(e.o(t,r)&&(0!==(n=t[r])&&(t[r]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;s.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+r,r)}};var r=(r,o)=>{var n,a,[i,s,l]=o,u=0;if(i.some((e=>0!==t[e]))){for(n in s)e.o(s,n)&&(e.m[n]=s[n]);l&&l(e)}for(r&&r(o);u<i.length;u++)a=i[u],e.o(t,a)&&t[a]&&t[a][0](),t[a]=0},o=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})(),e(8331),e(9748)})())}}}));
|
|
1
|
+
System.register("@openmrs/esm-login-app",[],(function(e,t){var r=void 0;return{execute:function(){e((()=>{function e(t){var r=v[t];if(void 0!==r)return r.exports;var o=v[t]={id:t,loaded:!1,exports:{}};return y[t].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var o,n,a,i,s,l,u,c,p,f,d,h,m,g,y={6585:(e,t,r)=>{(0,r(7968).s)(1)},7968:(e,t,r)=>{const o=r(1577).R;t.s=function(e){if(e||(e=1),!r.y.meta||!r.y.meta.url)throw console.error("__system_context__",r.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");r.p=o(r.y.meta.url,e)}},8331:(e,t,r)=>{r(6585)},1577:(e,t)=>{t.R=function(e,t){var r=document.createElement("a");r.href=e;for(var o="/"===r.pathname[0]?r.pathname:"/"+r.pathname,n=0,a=o.length;n!==t&&0<=a;)"/"===o[--a]&&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 i=o.slice(0,a+1);return r.protocol+"//"+r.host+i},Number.isInteger},9748:(e,t,o)=>{var n={app:()=>(r||((self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[]).push([[420],{2420:(e,t,r)=>{function o(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){for(var t=1;t<arguments.length;t++){var r=null==arguments[t]?{}:arguments[t],n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){o(e,t,r[t])}))}return e}function a(){var e={featureName:"login",moduleName:"@openmrs/esm-login-app"};return(0,i.defineConfigSchema)("@openmrs/esm-login-app",s),{pages:[n({load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(454),r.e(302),r.e(983),r.e(844),r.e(607),r.e(754)]).then(r.bind(r,1754))}),e),route:"login"},c),n({load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(454),r.e(302),r.e(983),r.e(844),r.e(607),r.e(754)]).then(r.bind(r,1754))}),e),route:"logout"},c)],extensions:[n({name:"location-picker",slot:"location-picker",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(454),r.e(983),r.e(844),r.e(607)]).then(r.bind(r,9607))}),e)},c),{name:"logout-button",slot:"user-panel-actions-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(983),r.e(844),r.e(406)]).then(r.bind(r,7406))}),e),online:!0,offline:!1},n({name:"location-changer",slot:"user-panel-slot",order:1,load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(983),r.e(844),r.e(688)]).then(r.bind(r,6688))}),e)},c)]}}r.r(t),r.d(t,{backendDependencies:()=>u,importTranslation:()=>l,setupOpenMRS:()=>a,assets:()=>["1.js","25.js","216.js","236.js","240.js","272.js","302.js","319.js","322.js","336.js","openmrs-esm-login-app.js","393.js","406.js","454.js","539.js","574.js","607.js","644.js","673.js","688.js","735.js","743.js","754.js","757.js","788.js","860.js","889.js"]});var i=r(7644),s={provider:{type:{_type:i.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:i.Type.String,_default:"${openmrsSpaBase}/login",_description:"The URL to use for an OAuth2 login.",_validators:[i.validators.isUrl]},logoutUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/logout",_description:"The URL to use for an OAuth2 logout.",_validators:[i.validators.isUrl]}},chooseLocation:{enabled:{_type:i.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:i.Type.Number,_default:8,_description:"The number of locations displayed on location picker"},locationsPerRequest:{_type:i.Type.Number,_default:50,_description:"The number of results to be fetched in each cycle of the infinite scroll"},useLoginLocationTag:{_type:i.Type.Boolean,_default:!0,_description:"Whether to show only locations with the 'Login Location' tag. If false, shows all locations."}},links:{loginSuccess:{_type:i.Type.String,_description:"Where to take the user after they are logged in.",_default:"${openmrsSpaBase}/home",_validators:[i.validators.isUrl]}},logo:{src:{_type:i.Type.String,_default:null,_description:"A path or URL to an image. If null, will use the OpenMRS SVG sprite.",_validators:[i.validators.isUrl]},alt:{_type:i.Type.String,_default:"Logo",_description:"Alt text, shown on hover"}}},l=r(3979),u={"webservices.rest":"^2.24.0"},c={online:{isLoginEnabled:!0},offline:{isLoginEnabled:!1}}},3979:(e,t,r)=>{function o(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return r.e(t[1]).then((()=>r(o)))}var n={"./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]};o.keys=()=>Object.keys(n),o.id=3979,e.exports=o}}]),r=o.e(420).then((()=>()=>o(2420)))),r)},a=(e,t)=>(o.R=t,t=o.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),o.R=void 0,t),i=(e,t)=>{if(o.S){var r=o.S.default;if(r&&r!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return o.S.default=e,o.I("default",t)}};o.d(t,{get:()=>a,init:()=>i})}},v={};return e.m=y,e.c=v,e.y=t,e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},e.f={},e.e=t=>Promise.all(Object.keys(e.f).reduce(((r,o)=>(e.f[o](t,r),r)),[])),e.u=e=>e+".js",e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},n="@openmrs/esm-login-app:",e.l=(t,r,a)=>{if(o[t])o[t].push(r);else{var i,s;if(void 0!==a)for(var l,u=document.getElementsByTagName("script"),c=0;c<u.length;c++)if((l=u[c]).getAttribute("src")==t||l.getAttribute("data-webpack")==n+a){i=l;break}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,e.nc&&i.setAttribute("nonce",e.nc),i.setAttribute("data-webpack",n+a),i.src=t),o[t]=[r];var p=(e,r)=>{i.onerror=i.onload=null,clearTimeout(f);var n=o[t];if(delete o[t],i.parentNode&&i.parentNode.removeChild(i),n&&n.forEach((e=>e(r))),e)return e(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),s&&document.head.appendChild(i)}},e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{e.S={};var t={},r={};e.I=(o,n)=>{n||(n=[]);var a=r[o];if(a||(a=r[o]={}),!(0<=n.indexOf(a))){if(n.push(a),t[o])return t[o];e.o(e.S,o)||(e.S[o]={});var i=e.S[o],s=(e,t,r,o)=>{var n=i[e]=i[e]||{},a=n[t];a&&(a.loaded||(!o==!a.eager?!("@openmrs/esm-login-app">a.from):!o))||(n[t]={get:r,from:"@openmrs/esm-login-app",eager:!!o})},l=[];return"default"===o&&(s("@openmrs/esm-framework","3.4.1-pre.151",(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(4889))))),s("carbon-components-react","7.31.0",(()=>Promise.all([e.e(322),e.e(983),e.e(69)]).then((()=>()=>e(7322))))),s("carbon-components","10.31.0",(()=>Promise.all([e.e(25),e.e(1)]).then((()=>()=>e(25))))),s("carbon-icons","7.0.7",(()=>e.e(860).then((()=>()=>e(4860))))),s("react-dom","16.14.0",(()=>Promise.all([e.e(788),e.e(983)]).then((()=>()=>e(2788))))),s("react-i18next","11.16.2",(()=>Promise.all([e.e(743),e.e(983)]).then((()=>()=>e(5743))))),s("react-router-dom","5.3.0",(()=>Promise.all([e.e(393),e.e(983),e.e(216)]).then((()=>()=>e(7393))))),s("react","16.14.0",(()=>e.e(735).then((()=>()=>e(2735)))))),t[o]=l.length?Promise.all(l).then((()=>t[o]=1)):1}}})(),e.p="",a=e=>{var t=e=>e.split(".").map((e=>+e==e?+e:e)),r=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),o=r[1]?t(r[1]):[];return r[2]&&(o.length++,o.push.apply(o,t(r[2]))),r[3]&&(o.push([]),o.push.apply(o,t(r[3]))),o},i=(e,t)=>{e=a(e),t=a(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var o=e[r],n=(typeof o)[0];if(r>=t.length)return"u"==n;var i=t[r],s=(typeof i)[0];if(n!=s)return"o"==n&&"n"==s||"s"==s||"u"==n;if("o"!=n&&"u"!=n&&o!=i)return o<i;r++}},s=e=>{function t(){return i.pop().replace(/^\((.+)\)$/,"$1")}var r=e[0],o="";if(1===e.length)return"*";if(r+.5){o+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":0<r?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,o+="u"==(typeof(l=e[a]))[0]?"-":(0<n?".":"")+(n=2,l);return o}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+t()+")":1===l?"("+t()+" || "+t()+")":2===l?i.pop()+" "+i.pop():s(l))}return t()},l=(e,t)=>{if(0 in e){t=a(t);var r=e[0],o=0>r;o&&(r=-r-1);for(var n=0,i=1,s=!0;;i++,n++){var u,c,p=i<e.length?(typeof e[i])[0]:"";if(n>=t.length||"o"==(c=(typeof(u=t[n]))[0]))return!s||("u"==p?i>r&&!o:""==p!=o);if("u"==c){if(!s||"u"!=p)return!1}else if(s)if(p==c)if(i<=r){if(u!=e[i])return!1}else{if(o?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=p&&"n"!=p){if(o||i<=r)return!1;s=!1,i--}else{if(i<=r||c<p!=o)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,i--)}}var f=[],d=f.pop.bind(f);for(n=1;n<e.length;n++){var h=e[n];f.push(1==h?d()|d():2==h?d()&d():h?l(h,t):!d())}return!!d()},u=(e,t)=>{var r=e[t];return Object.keys(r).reduce(((e,t)=>!e||!r[e].loaded&&i(e,t)?t:e),0)},c=(e,t,r,o)=>"Unsatisfied version "+r+" from "+(r&&e[t][r].from)+" of shared singleton module "+t+" (required "+s(o)+")",p=(e,t,r,o)=>{var n=u(e,r);return l(o,n)||"undefined"!=typeof console&&console.warn&&console.warn(c(e,r,n,o)),f(e[r][n])},f=e=>(e.loaded=1,e.get()),d=(t=>function(r,o,n,a){var i=e.I(r);return i&&i.then?i.then(t.bind(t,r,e.S[r],o,n,a)):t(0,e.S[r],o,n,a)})(((t,r,o,n,a)=>r&&e.o(r,o)?p(r,0,o,n):a())),h={},m={7644:()=>d("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>Promise.all([e.e(983),e.e(889)]).then((()=>()=>e(4889))))),6983:()=>d("default","react",[1,16],(()=>e.e(735).then((()=>()=>e(2735))))),5412:()=>d("default","react-dom",[1,16],(()=>e.e(788).then((()=>()=>e(2788))))),6240:()=>d("default","carbon-icons",[1,7],(()=>e.e(860).then((()=>()=>e(4860))))),7569:()=>d("default","carbon-components",[1,10],(()=>e.e(25).then((()=>()=>e(25))))),2680:()=>d("default","react-i18next",[1,11],(()=>e.e(743).then((()=>()=>e(5743))))),9784:()=>d("default","carbon-components-react",[1,7],(()=>Promise.all([e.e(322),e.e(69)]).then((()=>()=>e(7322))))),2268:()=>d("default","react-router-dom",[1,5],(()=>e.e(393).then((()=>()=>e(7393)))))},g={69:[5412,6240,7569],420:[7644],754:[2268],844:[2680,9784],983:[6983]},e.f.consumes=(t,r)=>{e.o(g,t)&&g[t].forEach((t=>{if(e.o(h,t))return r.push(h[t]);var o=r=>{h[t]=0,e.m[t]=o=>{delete e.c[t],o.exports=r()}},n=r=>{delete h[t],e.m[t]=()=>{throw delete e.c[t],r}};try{var a=m[t]();a.then?r.push(h[t]=a.then(o).catch(n)):o(a)}catch(t){n(t)}}))},(()=>{var t={356:0};e.f.j=(r,o)=>{var n=e.o(t,r)?t[r]:void 0;if(0!==n)if(n)o.push(n[2]);else if(/^(69|844|983)$/.test(r))t[r]=0;else{var a=new Promise(((e,o)=>n=t[r]=[e,o]));o.push(n[2]=a);var i=e.p+e.u(r),s=new Error;e.l(i,(o=>{if(e.o(t,r)&&(0!==(n=t[r])&&(t[r]=void 0),n)){var a=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;s.message="Loading chunk "+r+" failed.\n("+a+": "+i+")",s.name="ChunkLoadError",s.type=a,s.request=i,n[1](s)}}),"chunk-"+r,r)}};var r=(r,o)=>{var n,a,[i,s,l]=o,u=0;if(i.some((e=>0!==t[e]))){for(n in s)e.o(s,n)&&(e.m[n]=s[n]);l&&l(e)}for(r&&r(o);u<i.length;u++)a=i[u],e.o(t,a)&&t[a]&&t[a][0](),t[a]=0},o=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];o.forEach(r.bind(null,0)),o.push=r.bind(null,o.push.bind(o))})(),e(8331),e(9748)})())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-login-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,l,s,u,f,p,c,d,h,m={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},9748:(e,r,t)=>{"use strict";var n={app:()=>t.e(420).then((()=>()=>t(2420)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function g(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,g),t.loaded=!0,t.exports}return g.m=m,g.c=v,g.y=r,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-login-app:",g.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-login-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","3.4.1-pre.
|
|
1
|
+
System.register("@openmrs/esm-login-app",[],(function(e,r){return{execute:function(){e((()=>{var e,t,n,o,a,i,l,s,u,f,p,c,d,h,m={6585:(e,r,t)=>{(0,t(7968).s)(1)},7968:(e,r,t)=>{const n=t(1577).R;r.s=function(e){if(e||(e=1),!t.y.meta||!t.y.meta.url)throw console.error("__system_context__",t.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");t.p=n(t.y.meta.url,e)}},8331:(e,r,t)=>{t(6585)},1577:(e,r,t)=>{r.R=function(e,r){var t=document.createElement("a");t.href=e;for(var n="/"===t.pathname[0]?t.pathname:"/"+t.pathname,o=0,a=n.length;o!==r&&a>=0;)"/"===n[--a]&&o++;if(o!==r)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+r+") is greater than the number of directories ("+o+") in the URL path "+e);var i=n.slice(0,a+1);return t.protocol+"//"+t.host+i};Number.isInteger},9748:(e,r,t)=>{"use strict";var n={app:()=>t.e(420).then((()=>()=>t(2420)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function g(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,g),t.loaded=!0,t.exports}return g.m=m,g.c=v,g.y=r,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},t="@openmrs/esm-login-app:",g.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var f=s[u];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+o){i=f;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",t+o),i.src=r),e[r]=[n];var p=(t,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),t)return t(n)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=p.bind(null,i.onerror),i.onload=p.bind(null,i.onload),l&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-login-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","3.4.1-pre.151",(()=>Promise.all([g.e(983),g.e(889)]).then((()=>()=>g(4889))))),l("carbon-components-react","7.31.0",(()=>Promise.all([g.e(322),g.e(983),g.e(69)]).then((()=>()=>g(7322))))),l("carbon-components","10.31.0",(()=>Promise.all([g.e(25),g.e(1)]).then((()=>()=>g(25))))),l("carbon-icons","7.0.7",(()=>g.e(860).then((()=>()=>g(4860))))),l("react-dom","16.14.0",(()=>Promise.all([g.e(788),g.e(983)]).then((()=>()=>g(2788))))),l("react-i18next","11.16.2",(()=>Promise.all([g.e(743),g.e(983)]).then((()=>()=>g(5743))))),l("react-router-dom","5.3.0",(()=>Promise.all([g.e(393),g.e(983),g.e(216)]).then((()=>()=>g(7393))))),l("react","16.14.0",(()=>g.e(735).then((()=>()=>g(2735)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),g.p="",n=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},o=(e,r)=>{e=n(e),r=n(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var o=e[t],a=(typeof o)[0];if(t>=r.length)return"u"==a;var i=r[t],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;t++}},a=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,o=1;o<e.length;o++)n--,t+="u"==(typeof(l=e[o]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(o=1;o<e.length;o++){var l=e[o];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():a(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},i=(e,r)=>{if(0 in e){r=n(r);var t=e[0],o=t<0;o&&(t=-t-1);for(var a=0,l=1,s=!0;;l++,a++){var u,f,p=l<e.length?(typeof e[l])[0]:"";if(a>=r.length||"o"==(f=(typeof(u=r[a]))[0]))return!s||("u"==p?l>t&&!o:""==p!=o);if("u"==f){if(!s||"u"!=p)return!1}else if(s)if(p==f)if(l<=t){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=p&&"n"!=p){if(o||l<=t)return!1;s=!1,l--}else{if(l<=t||f<p!=o)return!1;s=!1}else"s"!=p&&"n"!=p&&(s=!1,l--)}}var c=[],d=c.pop.bind(c);for(a=1;a<e.length;a++){var h=e[a];c.push(1==h?d()|d():2==h?d()&d():h?i(h,r):!d())}return!!d()},l=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&o(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+a(n)+")",u=(e,r,t,n)=>{var o=l(e,t);return i(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(s(e,t,o,n)),f(e[t][o])},f=e=>(e.loaded=1,e.get()),p=(e=>function(r,t,n,o){var a=g.I(r);return a&&a.then?a.then(e.bind(e,r,g.S[r],t,n,o)):e(0,g.S[r],t,n,o)})(((e,r,t,n,o)=>r&&g.o(r,t)?u(r,0,t,n):o())),c={},d={7644:()=>p("default","@openmrs/esm-framework",[0,3,1,14,,"pre"],(()=>Promise.all([g.e(983),g.e(889)]).then((()=>()=>g(4889))))),6983:()=>p("default","react",[1,16],(()=>g.e(735).then((()=>()=>g(2735))))),5412:()=>p("default","react-dom",[1,16],(()=>g.e(788).then((()=>()=>g(2788))))),6240:()=>p("default","carbon-icons",[1,7],(()=>g.e(860).then((()=>()=>g(4860))))),7569:()=>p("default","carbon-components",[1,10],(()=>g.e(25).then((()=>()=>g(25))))),2680:()=>p("default","react-i18next",[1,11],(()=>g.e(743).then((()=>()=>g(5743))))),9784:()=>p("default","carbon-components-react",[1,7],(()=>Promise.all([g.e(322),g.e(69)]).then((()=>()=>g(7322))))),2268:()=>p("default","react-router-dom",[1,5],(()=>g.e(393).then((()=>()=>g(7393)))))},h={69:[5412,6240,7569],420:[7644],754:[2268],844:[2680,9784],983:[6983]},g.f.consumes=(e,r)=>{g.o(h,e)&&h[e].forEach((e=>{if(g.o(c,e))return r.push(c[e]);var t=r=>{c[e]=0,g.m[e]=t=>{delete g.c[e],t.exports=r()}},n=r=>{delete c[e],g.m[e]=t=>{throw delete g.c[e],r}};try{var o=d[e]();o.then?r.push(c[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={356:0};g.f.j=(r,t)=>{var n=g.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(69|844|983)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=g.p+g.u(r),i=new Error;g.l(a,(t=>{if(g.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)g.o(i,n)&&(g.m[n]=i[n]);l&&l(g)}for(r&&r(t);s<a.length;s++)o=a[s],g.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_login_app=self.webpackChunk_openmrs_esm_login_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),g(8331),g(9748)})())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_offline_tools_app=self.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[194],{4065:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__shared-page-layout-styles__productiveHeading01___CXsOT{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__shared-page-layout-styles__productiveHeading02___ZcF5Z{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__shared-page-layout-styles__productiveHeading03___1pkiK,.-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm .-esm-offline-tools__shared-page-layout-styles__pageHeader___nTpsF{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__shared-page-layout-styles__productiveHeading04___hbvhi{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__shared-page-layout-styles__bodyShort01___kGD3Y{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__shared-page-layout-styles__bodyLong01___UyYAR{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__shared-page-layout-styles__label01___MNQ2L{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm{display:flex;justify-content:space-between;align-items:center;margin:0 1rem 1rem 1rem}.-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm .-esm-offline-tools__shared-page-layout-styles__pageHeader___nTpsF{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}",""]),o.locals={productiveHeading01:"-esm-offline-tools__shared-page-layout-styles__productiveHeading01___CXsOT",productiveHeading02:"-esm-offline-tools__shared-page-layout-styles__productiveHeading02___ZcF5Z",productiveHeading03:"-esm-offline-tools__shared-page-layout-styles__productiveHeading03___1pkiK",pageHeaderContainer:"-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm",pageHeader:"-esm-offline-tools__shared-page-layout-styles__pageHeader___nTpsF",productiveHeading04:"-esm-offline-tools__shared-page-layout-styles__productiveHeading04___hbvhi",bodyShort01:"-esm-offline-tools__shared-page-layout-styles__bodyShort01___kGD3Y",bodyLong01:"-esm-offline-tools__shared-page-layout-styles__bodyLong01___UyYAR",label01:"-esm-offline-tools__shared-page-layout-styles__label01___MNQ2L"};const l=o},215:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__last-updated-table-cell__productiveHeading01___RE4rK{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__last-updated-table-cell__productiveHeading02___qqO4Q{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__last-updated-table-cell__productiveHeading03___N56WM{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__last-updated-table-cell__productiveHeading04___NYu3O{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__last-updated-table-cell__bodyShort01___1Xkoo{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__last-updated-table-cell__bodyLong01___lBcBD{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__last-updated-table-cell__label01___j-tbY{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__last-updated-table-cell__errorIcon___X\\+q9m{color:#da1e28}.-esm-offline-tools__last-updated-table-cell__pendingIcon___KBj4y{color:#ff832b}.-esm-offline-tools__last-updated-table-cell__cellContainer___xDUA\\+{display:flex;align-items:center;gap:.25rem}",""]),o.locals={productiveHeading01:"-esm-offline-tools__last-updated-table-cell__productiveHeading01___RE4rK",productiveHeading02:"-esm-offline-tools__last-updated-table-cell__productiveHeading02___qqO4Q",productiveHeading03:"-esm-offline-tools__last-updated-table-cell__productiveHeading03___N56WM",productiveHeading04:"-esm-offline-tools__last-updated-table-cell__productiveHeading04___NYu3O",bodyShort01:"-esm-offline-tools__last-updated-table-cell__bodyShort01___1Xkoo",bodyLong01:"-esm-offline-tools__last-updated-table-cell__bodyLong01___lBcBD",label01:"-esm-offline-tools__last-updated-table-cell__label01___j-tbY",errorIcon:"-esm-offline-tools__last-updated-table-cell__errorIcon___X+q9m",pendingIcon:"-esm-offline-tools__last-updated-table-cell__pendingIcon___KBj4y",cellContainer:"-esm-offline-tools__last-updated-table-cell__cellContainer___xDUA+"};const l=o},7090:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__offline-patient-table__productiveHeading01___1SWQ0{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__offline-patient-table__productiveHeading02___K9Dzg{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__offline-patient-table__productiveHeading03___QIvSG{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__offline-patient-table__productiveHeading04___v0s2H{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__offline-patient-table__bodyShort01___mrgNn{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__offline-patient-table__bodyLong01___Wowak{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__offline-patient-table__label01___xbZtN{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__offline-patient-table__tableContainer___rqIiM{background-color:transparent}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG{display:grid;grid-template-rows:auto auto;grid-template-columns:1fr 1fr auto auto}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableHeader___xRLwl{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#525252;padding:.75rem 0 .75rem .75rem;grid-row:1;grid-column:1/span 4}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSearch___pnm9P{grid-row:2;grid-column:2;align-self:end}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tablePrimaryAction___NgzzW{grid-row:2;grid-column:4;align-self:end}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSecondaryAction___oJ-yy{grid-row:2;grid-column:3;align-self:end}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG{grid-template-columns:1fr 20% 250px auto auto}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableHeader___xRLwl{grid-column:1;padding:.75rem 0 .25rem .75rem}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSearch___pnm9P{grid-row:1;grid-column:3}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tablePrimaryAction___NgzzW{grid-row:1;grid-column:5}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSecondaryAction___oJ-yy{grid-row:1;grid-column:4}",""]),o.locals={productiveHeading01:"-esm-offline-tools__offline-patient-table__productiveHeading01___1SWQ0",productiveHeading02:"-esm-offline-tools__offline-patient-table__productiveHeading02___K9Dzg",productiveHeading03:"-esm-offline-tools__offline-patient-table__productiveHeading03___QIvSG",productiveHeading04:"-esm-offline-tools__offline-patient-table__productiveHeading04___v0s2H",bodyShort01:"-esm-offline-tools__offline-patient-table__bodyShort01___mrgNn",bodyLong01:"-esm-offline-tools__offline-patient-table__bodyLong01___Wowak",label01:"-esm-offline-tools__offline-patient-table__label01___xbZtN",tableContainer:"-esm-offline-tools__offline-patient-table__tableContainer___rqIiM",tableHeaderContainer:"-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG",tableHeader:"-esm-offline-tools__offline-patient-table__tableHeader___xRLwl",tableSearch:"-esm-offline-tools__offline-patient-table__tableSearch___pnm9P",tablePrimaryAction:"-esm-offline-tools__offline-patient-table__tablePrimaryAction___NgzzW",tableSecondaryAction:"-esm-offline-tools__offline-patient-table__tableSecondaryAction___oJ-yy"};const l=o},5143:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__patient-name-table-cell__productiveHeading01___lnBiX{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__patient-name-table-cell__productiveHeading02___boYmb{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__patient-name-table-cell__productiveHeading03___\\+t9na{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__patient-name-table-cell__productiveHeading04___eaaYs{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__patient-name-table-cell__bodyShort01___-7CAB{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__patient-name-table-cell__bodyLong01___cXcvt{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__patient-name-table-cell__label01___QGgmJ{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__patient-name-table-cell__cellContainer___EHkf0{display:flex;align-items:center;column-gap:.5rem}",""]),o.locals={productiveHeading01:"-esm-offline-tools__patient-name-table-cell__productiveHeading01___lnBiX",productiveHeading02:"-esm-offline-tools__patient-name-table-cell__productiveHeading02___boYmb",productiveHeading03:"-esm-offline-tools__patient-name-table-cell__productiveHeading03___+t9na",productiveHeading04:"-esm-offline-tools__patient-name-table-cell__productiveHeading04___eaaYs",bodyShort01:"-esm-offline-tools__patient-name-table-cell__bodyShort01___-7CAB",bodyLong01:"-esm-offline-tools__patient-name-table-cell__bodyLong01___cXcvt",label01:"-esm-offline-tools__patient-name-table-cell__label01___QGgmJ",cellContainer:"-esm-offline-tools__patient-name-table-cell__cellContainer___EHkf0"};const l=o},6530:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(6983),o=n.n(a),l=n(487),r=n.n(l),i=n(631),s=n.n(i),_=n(2052),f=n.n(_),c=n(4010),d=n.n(c),u=n(1469),p=n.n(u),m=n(9329),g=n.n(m),b=n(4065),h={};h.styleTagTransform=g(),h.setAttributes=d(),h.insert=f().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=p(),r()(b.Z,h);const y=b.Z&&b.Z.locals?b.Z.locals:void 0,v=function(e){var t=e.header,n=e.primaryActions,a=e.children;return o().createElement(o().Fragment,null,o().createElement("header",{className:y.pageHeaderContainer},o().createElement("h1",{className:y.pageHeader},t),n),a)}},524:(e,t,n)=>{n.d(t,{_$:()=>f,jH:()=>_,jJ:()=>c});var a=n(1602),o=n.n(a),l=n(7644),r=n(9136);function i(e,t,n,a,o,l,r){try{var i=e[l](r),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(a,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var l=e.apply(t,n);function r(e){i(l,a,o,r,s,"next",e)}function s(e){i(l,a,o,r,s,"throw",e)}r(void 0)}))}}function _(){return(0,r.ZP)("offlineTools/offlineRegisteredPatients",s(o().mark((function e(){var t;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getSynchronizationItems)("patient-registration");case 2:return t=e.sent,e.abrupt("return",t.filter((function(e){return e.fhirPatient})).map((function(e){return e.fhirPatient})));case 4:case"end":return e.stop()}}),e)}))))}function f(){return(0,r.ZP)("offlineTools/offlinePatients",s(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getDynamicOfflineDataEntries)("patient");case 2:return t=e.sent,e.next=5,Promise.all(t.map(function(){var e=s(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,l.fetchCurrentPatient)(t.identifier);case 3:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=7;break}e.t0=void 0===n;case 7:if(!e.t0){e.next=11;break}e.t2=void 0,e.next=12;break;case 11:e.t2=n.data;case 12:return e.t3=e.t2,e.t4=t,e.abrupt("return",{patient:e.t3,entry:e.t4});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return n=e.sent,e.abrupt("return",n.filter((function(e){return e.patient})));case 7:case"end":return e.stop()}}),e)}))))}function c(e){return(0,r.ZP)("offlineTools/offlinePatient/".concat(e,"/lastSyncState"),s(o().mark((function t(){var n,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,l.getDynamicOfflineDataEntries)("patient");case 2:return n=t.sent,a=n.find((function(t){return t.identifier===e})),t.abrupt("return",null==a?void 0:a.syncState);case 5:case"end":return t.stop()}}),t)}))))}},1933:(e,t,n)=>{n.d(t,{Z:()=>$});var a=n(1602),o=n.n(a),l=n(6983),r=n.n(l),i=n(9784),s=n(7644),_=n(2680),f=n(4008),c=n(341),d=n(8810),u=n(1706),p=n(487),m=n.n(p),g=n(631),b=n.n(g),h=n(2052),y=n.n(h),v=n(4010),w=n.n(v),H=n(1469),S=n.n(H),T=n(9329),x=n.n(T),C=n(215),E={};E.styleTagTransform=x(),E.setAttributes=w(),E.insert=y().bind(null,"head"),E.domAPI=b(),E.insertStyleElement=S(),m()(C.Z,E);const P=C.Z&&C.Z.locals?C.Z.locals:void 0;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function N(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const z=function(e){var t=e.patientUuid,n=e.isSyncing,a=e.lastSyncState,o=(0,_.useTranslation)().t;return r().createElement("div",{className:P.cellContainer},r().createElement((function(){return n?r().createElement(r().Fragment,null,r().createElement(c.Z,{className:P.pendingIcon}),o("offlinePatientsTableLastUpdatedDownloading","Downloading...")):a?function(e){var t=(0,s.getDynamicOfflineDataHandlers)().filter((function(e){return"patient"===e.type})).map((function(e){return e.id})),n=N(e.succeededHandlers).concat(N(e.erroredHandlers));return t.some((function(e){return!n.includes(e)}))}(a)?r().createElement(r().Fragment,null,r().createElement(d.Z,{className:P.errorIcon}),o("offlinePatientsTableLastUpdatedOutdatedData","Outdated data")):a.erroredHandlers.length>0?r().createElement(r().Fragment,null,r().createElement(d.Z,{className:P.errorIcon}),r().createElement(i.Link,{onClick:function(){return(0,s.navigate)({to:"".concat(window.getOpenmrsSpaBase(),"offline-tools/patients/").concat(t,"/offline-data")})}},a.erroredHandlers.length," ",1===a.erroredHandlers.length?o("offlinePatientsTableLastUpdatedError","error"):o("offlinePatientsTableLastUpdatedErrors","errors"))):r().createElement(r().Fragment,null,r().createElement(u.Z,null),a.syncedOn.toLocaleDateString()):r().createElement(r().Fragment,null,r().createElement(d.Z,{className:P.errorIcon}),o("offlinePatientsTableLastUpdatedNotYetSynchronized","Not synchronized"))}),null))};var A=n(7090),O={};O.styleTagTransform=x(),O.setAttributes=w(),O.insert=y().bind(null,"head"),O.domAPI=b(),O.insertStyleElement=S(),m()(A.Z,O);const Z=A.Z&&A.Z.locals?A.Z.locals:void 0;var I=n(5143),D={};D.styleTagTransform=x(),D.setAttributes=w(),D.insert=y().bind(null,"head"),D.domAPI=b(),D.insertStyleElement=S(),m()(I.Z,D);const L=I.Z&&I.Z.locals?I.Z.locals:void 0,B=function(e){var t=e.patient,n=e.isNewlyRegistered,a=void 0!==n&&n,o=(0,_.useTranslation)().t,l="".concat(t.name[0].given.join(" ")," ").concat(t.name[0].family);return r().createElement("div",{className:L.cellContainer},r().createElement(i.Link,{onClick:function(){return(0,s.navigate)({to:"".concat(window.getOpenmrsSpaBase(),"patient/").concat(t.id,"/chart")})}},l),a&&r().createElement(i.Tag,{type:"magenta"},o("offlinePatientsTableNameNewlyRegistered","New")))};var G=n(7099),R=n(524);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function j(e,t,n,a,o,l,r){try{var i=e[l](r),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(a,o)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var l=e.apply(t,n);function r(e){j(l,a,o,r,i,"next",e)}function i(e){j(l,a,o,r,i,"throw",e)}r(void 0)}))}}function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},F.apply(this,arguments)}function Y(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}var X=function(e){var t=e.showHeader;return r().createElement(i.TableContainer,{className:Z.tableContainer},r().createElement("div",{className:Z.tableHeaderContainer},t&&r().createElement(i.SkeletonText,{heading:!0,width:"20%",className:Z.tableHeader}),r().createElement(i.SearchSkeleton,{className:Z.tableSearch})),r().createElement(i.DataTableSkeleton,{showToolbar:!1,showHeader:!1}))};function W(e){var t=e.rowIds,n=e.headers,a=e.cellsById,o=e.inputValue,l=e.getCellId;return t.filter((function(e){return n.some((function(t){var n,r,i,s=t.key,_=l(e,s),f=a[_].value;return(null!==(i=null!==(r=null==f||null===(n=f.filterableValue)||void 0===n?void 0:n.toString())&&void 0!==r?r:null==f?void 0:f.toString())&&void 0!==i?i:"").replace(/\s/g,"").toLowerCase().includes(o.replace(/\s/g,"").toLowerCase())}))}))}function q(e){return K.apply(this,arguments)}function K(){return(K=M(o().mark((function e(t){var n,a,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getDynamicOfflineDataEntries)("patient");case 2:return n=e.sent,a=n.map((function(e){return e.identifier})),l=t.filter((function(e){return a.includes(e)})),e.next=7,Promise.all(l.map((function(e){return(0,s.syncDynamicOfflineData)("patient",e)})));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return V.apply(this,arguments)}function V(){return V=M(o().mark((function e(t){var n,a,l,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getDynamicOfflineDataEntries)("patient");case 2:return n=e.sent,e.next=5,(0,s.getFullSynchronizationItems)("patient-registration");case 5:return a=e.sent,l=t.filter((function(e){return n.some((function(t){return t.identifier===e}))})),r=t.filter((function(e){return!l.includes(e)})),i=Y(l.map((function(e){return(0,s.removeDynamicOfflineData)("patient",e)}))).concat(Y(r.map(function(){var e=M(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=a.find((function(e){return e.content.fhirPatient.id===t})))){e.next=4;break}return e.next=4,(0,s.deleteSynchronizationItem)(n.id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))),e.next=11,Promise.all(i);case 11:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}const $=function(e){var t,n,a,c=e.isInteractive,d=e.showHeader,u=(0,_.useTranslation)().t,p=(0,s.useLayoutType)(),m=(0,R._$)(),g=(0,R.jH)(),b="desktop"===p?"sm":void 0,h=function(e){if(Array.isArray(e))return e}(a=(0,l.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,l=[],r=!0,i=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(l.push(a.value),2!==l.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(i)throw o}}return l}}(a)||Q(a,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=h[0],v=h[1],w=function(){var e=(0,_.useTranslation)().t;return(0,l.useMemo)((function(){return[{key:"name",header:e("offlinePatientsTableHeaderName","Name")},{key:"lastUpdated",header:e("offlinePatientsTableHeaderLastUpdated","Last updated")},{key:"gender",header:e("offlinePatientsTableHeaderGender","Gender")},{key:"age",header:e("offlinePatientsTableHeaderAge","Age")}]}),[e])}(),H=function(e){var t=(0,R._$)(),n=(0,R.jH)();return(0,l.useMemo)((function(){var a,o,l=[],i=function(t,n,a){return{id:t.id,name:{value:r().createElement(B,{key:t.id,patient:t,isNewlyRegistered:n}),filterableValue:JSON.stringify(t.name)},lastUpdated:n?"--":r().createElement(z,{key:t.id,patientUuid:t.id,isSyncing:e.includes(t.id),lastSyncState:a}),gender:(0,f.Z)(t.gender),age:t.birthDate?(0,s.age)(t.birthDate):""}},_=!0,c=!1,d=void 0;try{for(var u,p=(null!==(a=n.data)&&void 0!==a?a:[])[Symbol.iterator]();!(_=(u=p.next()).done);_=!0){var m=u.value;l.push(i(m,!0))}}catch(e){c=!0,d=e}finally{try{_||null==p.return||p.return()}finally{if(c)throw d}}var g=!0,b=!1,h=void 0;try{for(var y,v=(null!==(o=t.data)&&void 0!==o?o:[])[Symbol.iterator]();!(g=(y=v.next()).done);g=!0){var w=y.value,H=w.patient,S=w.entry;l.push(i(H,!1,S.syncState))}}catch(e){b=!0,h=e}finally{try{g||null==v.return||v.return()}finally{if(b)throw h}}return l}),[e,t.data,n.data])}(y),S=(t=M(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return e.id})),v(n),e.next=4,q(n).finally((function(){return v([])}));case 4:m.mutate(),g.mutate();case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),T=function(){var e=M(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(0,s.showModal)("offline-tools-confirmation-modal",{title:u("offlinePatientsTableDeleteConfirmationModalTitle","Remove offline patients"),children:u("offlinePatientsTableDeleteConfirmationModalContent","Are you sure that you want to remove all selected patients from the offline list? Their charts will no longer be available in offline mode and any newly registered patient will be permanently deleted."),confirmText:u("offlinePatientsTableDeleteConfirmationModalConfirm","Remove patients"),cancelText:u("offlinePatientsTableDeleteConfirmationModalCancel","Cancel"),closeModal:function(){return n()},onConfirm:M(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J(t.map((function(e){return e.id})));case 2:m.mutate(),g.mutate();case 4:case"end":return e.stop()}}),e)})))});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return m.isValidating||g.isValidating?r().createElement(X,{showHeader:d}):r().createElement(r().Fragment,null,r().createElement(i.DataTable,{rows:H,headers:w,filterRows:W},(function(e){var t=e.rows,a=e.headers,o=e.getTableProps,l=e.getHeaderProps,s=e.getRowProps,_=e.getTableContainerProps,f=e.getSelectionProps,p=e.onInputChange,m=e.selectedRows;return r().createElement(i.TableContainer,F({className:Z.tableContainer},_()),r().createElement("div",{className:Z.tableHeaderContainer},d&&r().createElement("h4",{className:Z.tableHeader},u("offlinePatientsTableTitle","Offline patients")),0===m.length&&r().createElement(i.Search,{className:Z.tableSearch,labelText:u("offlinePatientsTableSearchLabel","Search this list"),placeholder:u("offlinePatientsTableSearchPlaceholder","Search this list"),size:b,onChange:p,light:!0}),m.length>0&&r().createElement(r().Fragment,null,r().createElement(i.Button,{className:Z.tableSecondaryAction,kind:"ghost",size:b,renderIcon:G.Z,onClick:function(){return S(m)}},1===m.length?u("offlinePatientsTableUpdatePatient","Update patient"):u("offlinePatientsTableUpdatePatients","Update patients")),r().createElement(i.Button,{className:Z.tablePrimaryAction,kind:"danger",size:b,onClick:function(){return T(m)}},u("offlinePatientsTableRemoveFromOfflineList","Remove from list")))),r().createElement(i.Table,F({},o(),{useZebraStyles:!0}),r().createElement(i.TableHead,null,r().createElement(i.TableRow,null,c&&r().createElement(i.TableSelectAll,F({},f())),a.map((function(e){return r().createElement(i.TableHeader,F({},l({header:e}),{isSortable:!0}),e.header)})))),r().createElement(i.TableBody,null,t.map((function(e){return r().createElement(i.TableRow,F({},s({row:e})),c&&r().createElement(i.TableSelectRow,F({},f({row:e}))),e.cells.map((function(e){var t;return r().createElement(i.TableCell,{key:e.id},null!==(n=null===(t=e.value)||void 0===t?void 0:t.value)&&void 0!==n?n:e.value)})))})))))})))}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_offline_tools_app=self.webpackChunk_openmrs_esm_offline_tools_app||[]).push([[194],{4065:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__shared-page-layout-styles__productiveHeading01___CXsOT{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__shared-page-layout-styles__productiveHeading02___ZcF5Z{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__shared-page-layout-styles__productiveHeading03___1pkiK,.-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm .-esm-offline-tools__shared-page-layout-styles__pageHeader___nTpsF{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__shared-page-layout-styles__productiveHeading04___hbvhi{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__shared-page-layout-styles__bodyShort01___kGD3Y{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__shared-page-layout-styles__bodyLong01___UyYAR{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__shared-page-layout-styles__label01___MNQ2L{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm{display:flex;justify-content:space-between;align-items:center;margin:0 1rem 1rem 1rem}.-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm .-esm-offline-tools__shared-page-layout-styles__pageHeader___nTpsF{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}",""]),o.locals={productiveHeading01:"-esm-offline-tools__shared-page-layout-styles__productiveHeading01___CXsOT",productiveHeading02:"-esm-offline-tools__shared-page-layout-styles__productiveHeading02___ZcF5Z",productiveHeading03:"-esm-offline-tools__shared-page-layout-styles__productiveHeading03___1pkiK",pageHeaderContainer:"-esm-offline-tools__shared-page-layout-styles__pageHeaderContainer___BgGBm",pageHeader:"-esm-offline-tools__shared-page-layout-styles__pageHeader___nTpsF",productiveHeading04:"-esm-offline-tools__shared-page-layout-styles__productiveHeading04___hbvhi",bodyShort01:"-esm-offline-tools__shared-page-layout-styles__bodyShort01___kGD3Y",bodyLong01:"-esm-offline-tools__shared-page-layout-styles__bodyLong01___UyYAR",label01:"-esm-offline-tools__shared-page-layout-styles__label01___MNQ2L"};const l=o},215:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__last-updated-table-cell__productiveHeading01___RE4rK{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__last-updated-table-cell__productiveHeading02___qqO4Q{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__last-updated-table-cell__productiveHeading03___N56WM{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__last-updated-table-cell__productiveHeading04___NYu3O{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__last-updated-table-cell__bodyShort01___1Xkoo{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__last-updated-table-cell__bodyLong01___lBcBD{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__last-updated-table-cell__label01___j-tbY{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__last-updated-table-cell__errorIcon___X\\+q9m{color:#da1e28}.-esm-offline-tools__last-updated-table-cell__pendingIcon___KBj4y{color:#ff832b}.-esm-offline-tools__last-updated-table-cell__cellContainer___xDUA\\+{display:flex;align-items:center;gap:.25rem}",""]),o.locals={productiveHeading01:"-esm-offline-tools__last-updated-table-cell__productiveHeading01___RE4rK",productiveHeading02:"-esm-offline-tools__last-updated-table-cell__productiveHeading02___qqO4Q",productiveHeading03:"-esm-offline-tools__last-updated-table-cell__productiveHeading03___N56WM",productiveHeading04:"-esm-offline-tools__last-updated-table-cell__productiveHeading04___NYu3O",bodyShort01:"-esm-offline-tools__last-updated-table-cell__bodyShort01___1Xkoo",bodyLong01:"-esm-offline-tools__last-updated-table-cell__bodyLong01___lBcBD",label01:"-esm-offline-tools__last-updated-table-cell__label01___j-tbY",errorIcon:"-esm-offline-tools__last-updated-table-cell__errorIcon___X+q9m",pendingIcon:"-esm-offline-tools__last-updated-table-cell__pendingIcon___KBj4y",cellContainer:"-esm-offline-tools__last-updated-table-cell__cellContainer___xDUA+"};const l=o},7090:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__offline-patient-table__productiveHeading01___1SWQ0{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__offline-patient-table__productiveHeading02___K9Dzg{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__offline-patient-table__productiveHeading03___QIvSG{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__offline-patient-table__productiveHeading04___v0s2H{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__offline-patient-table__bodyShort01___mrgNn{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__offline-patient-table__bodyLong01___Wowak{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__offline-patient-table__label01___xbZtN{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__offline-patient-table__tableContainer___rqIiM{background-color:transparent}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG{display:grid;grid-template-rows:auto auto;grid-template-columns:1fr 1fr auto auto}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableHeader___xRLwl{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0;color:#525252;padding:.75rem 0 .75rem .75rem;grid-row:1;grid-column:1/span 4}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSearch___pnm9P{grid-row:2;grid-column:2;align-self:end}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tablePrimaryAction___NgzzW{grid-row:2;grid-column:4;align-self:end}.-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSecondaryAction___oJ-yy{grid-row:2;grid-column:3;align-self:end}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG{grid-template-columns:1fr 20% 250px auto auto}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableHeader___xRLwl{grid-column:1;padding:.75rem 0 .25rem .75rem}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSearch___pnm9P{grid-row:1;grid-column:3}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tablePrimaryAction___NgzzW{grid-row:1;grid-column:5}.omrs-breakpoint-gt-tablet .-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG .-esm-offline-tools__offline-patient-table__tableSecondaryAction___oJ-yy{grid-row:1;grid-column:4}",""]),o.locals={productiveHeading01:"-esm-offline-tools__offline-patient-table__productiveHeading01___1SWQ0",productiveHeading02:"-esm-offline-tools__offline-patient-table__productiveHeading02___K9Dzg",productiveHeading03:"-esm-offline-tools__offline-patient-table__productiveHeading03___QIvSG",productiveHeading04:"-esm-offline-tools__offline-patient-table__productiveHeading04___v0s2H",bodyShort01:"-esm-offline-tools__offline-patient-table__bodyShort01___mrgNn",bodyLong01:"-esm-offline-tools__offline-patient-table__bodyLong01___Wowak",label01:"-esm-offline-tools__offline-patient-table__label01___xbZtN",tableContainer:"-esm-offline-tools__offline-patient-table__tableContainer___rqIiM",tableHeaderContainer:"-esm-offline-tools__offline-patient-table__tableHeaderContainer___NTOoG",tableHeader:"-esm-offline-tools__offline-patient-table__tableHeader___xRLwl",tableSearch:"-esm-offline-tools__offline-patient-table__tableSearch___pnm9P",tablePrimaryAction:"-esm-offline-tools__offline-patient-table__tablePrimaryAction___NgzzW",tableSecondaryAction:"-esm-offline-tools__offline-patient-table__tableSecondaryAction___oJ-yy"};const l=o},5143:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(361),o=n.n(a)()((function(e){return e[1]}));o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-offline-tools__patient-name-table-cell__productiveHeading01___lnBiX{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__patient-name-table-cell__productiveHeading02___boYmb{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}.-esm-offline-tools__patient-name-table-cell__productiveHeading03___\\+t9na{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}.-esm-offline-tools__patient-name-table-cell__productiveHeading04___eaaYs{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}.-esm-offline-tools__patient-name-table-cell__bodyShort01___-7CAB{font-size:.875rem;font-weight:400;line-height:1.29;letter-spacing:.16px}.-esm-offline-tools__patient-name-table-cell__bodyLong01___cXcvt{font-size:.875rem;font-weight:400;line-height:1.43;letter-spacing:.16px}.-esm-offline-tools__patient-name-table-cell__label01___QGgmJ{font-size:.75rem;font-weight:400;line-height:1.34;letter-spacing:.32px}.-esm-offline-tools__patient-name-table-cell__cellContainer___EHkf0{display:flex;align-items:center;column-gap:.5rem}",""]),o.locals={productiveHeading01:"-esm-offline-tools__patient-name-table-cell__productiveHeading01___lnBiX",productiveHeading02:"-esm-offline-tools__patient-name-table-cell__productiveHeading02___boYmb",productiveHeading03:"-esm-offline-tools__patient-name-table-cell__productiveHeading03___+t9na",productiveHeading04:"-esm-offline-tools__patient-name-table-cell__productiveHeading04___eaaYs",bodyShort01:"-esm-offline-tools__patient-name-table-cell__bodyShort01___-7CAB",bodyLong01:"-esm-offline-tools__patient-name-table-cell__bodyLong01___cXcvt",label01:"-esm-offline-tools__patient-name-table-cell__label01___QGgmJ",cellContainer:"-esm-offline-tools__patient-name-table-cell__cellContainer___EHkf0"};const l=o},6530:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(6983),o=n.n(a),l=n(487),r=n.n(l),i=n(631),s=n.n(i),_=n(2052),f=n.n(_),c=n(4010),d=n.n(c),u=n(1469),p=n.n(u),m=n(9329),g=n.n(m),b=n(4065),h={};h.styleTagTransform=g(),h.setAttributes=d(),h.insert=f().bind(null,"head"),h.domAPI=s(),h.insertStyleElement=p(),r()(b.Z,h);const y=b.Z&&b.Z.locals?b.Z.locals:void 0,v=function(e){var t=e.header,n=e.primaryActions,a=e.children;return o().createElement(o().Fragment,null,o().createElement("header",{className:y.pageHeaderContainer},o().createElement("h1",{className:y.pageHeader},t),n),a)}},524:(e,t,n)=>{n.d(t,{_$:()=>f,jH:()=>_,jJ:()=>c});var a=n(1602),o=n.n(a),l=n(7644),r=n(9136);function i(e,t,n,a,o,l,r){try{var i=e[l](r),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(a,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var l=e.apply(t,n);function r(e){i(l,a,o,r,s,"next",e)}function s(e){i(l,a,o,r,s,"throw",e)}r(void 0)}))}}function _(){return(0,r.ZP)("offlineTools/offlineRegisteredPatients",s(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getDynamicOfflineDataEntries)("patient");case 2:return t=e.sent,e.next=5,(0,l.getSynchronizationItems)("patient-registration");case 5:return n=e.sent,e.abrupt("return",n.filter((function(e){return e.fhirPatient&&!t.find((function(t){return t.identifier===e.fhirPatient.id}))})).map((function(e){return e.fhirPatient})));case 7:case"end":return e.stop()}}),e)}))))}function f(){return(0,r.ZP)("offlineTools/offlinePatients",s(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.getDynamicOfflineDataEntries)("patient");case 2:return t=e.sent,e.next=5,Promise.all(t.map(function(){var e=s(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,(0,l.fetchCurrentPatient)(t.identifier);case 3:if(e.t1=n=e.sent,e.t0=null===e.t1,e.t0){e.next=7;break}e.t0=void 0===n;case 7:if(!e.t0){e.next=11;break}e.t2=void 0,e.next=12;break;case 11:e.t2=n.data;case 12:return e.t3=e.t2,e.t4=t,e.abrupt("return",{patient:e.t3,entry:e.t4});case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return n=e.sent,e.abrupt("return",n.filter((function(e){return e.patient})));case 7:case"end":return e.stop()}}),e)}))))}function c(e){return(0,r.ZP)("offlineTools/offlinePatient/".concat(e,"/lastSyncState"),s(o().mark((function t(){var n,a;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,l.getDynamicOfflineDataEntries)("patient");case 2:return n=t.sent,a=n.find((function(t){return t.identifier===e})),t.abrupt("return",null==a?void 0:a.syncState);case 5:case"end":return t.stop()}}),t)}))))}},1933:(e,t,n)=>{n.d(t,{Z:()=>$});var a=n(1602),o=n.n(a),l=n(6983),r=n.n(l),i=n(9784),s=n(7644),_=n(2680),f=n(4008),c=n(341),d=n(8810),u=n(1706),p=n(487),m=n.n(p),g=n(631),b=n.n(g),h=n(2052),y=n.n(h),v=n(4010),w=n.n(v),H=n(1469),S=n.n(H),T=n(9329),x=n.n(T),C=n(215),E={};E.styleTagTransform=x(),E.setAttributes=w(),E.insert=y().bind(null,"head"),E.domAPI=b(),E.insertStyleElement=S(),m()(C.Z,E);const P=C.Z&&C.Z.locals?C.Z.locals:void 0;function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function N(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const z=function(e){var t=e.patientUuid,n=e.isSyncing,a=e.lastSyncState,o=(0,_.useTranslation)().t;return r().createElement("div",{className:P.cellContainer},r().createElement((function(){return n?r().createElement(r().Fragment,null,r().createElement(c.Z,{className:P.pendingIcon}),o("offlinePatientsTableLastUpdatedDownloading","Downloading...")):a?function(e){var t=(0,s.getDynamicOfflineDataHandlers)().filter((function(e){return"patient"===e.type})).map((function(e){return e.id})),n=N(e.succeededHandlers).concat(N(e.erroredHandlers));return t.some((function(e){return!n.includes(e)}))}(a)?r().createElement(r().Fragment,null,r().createElement(d.Z,{className:P.errorIcon}),o("offlinePatientsTableLastUpdatedOutdatedData","Outdated data")):a.erroredHandlers.length>0?r().createElement(r().Fragment,null,r().createElement(d.Z,{className:P.errorIcon}),r().createElement(i.Link,{onClick:function(){return(0,s.navigate)({to:"".concat(window.getOpenmrsSpaBase(),"offline-tools/patients/").concat(t,"/offline-data")})}},a.erroredHandlers.length," ",1===a.erroredHandlers.length?o("offlinePatientsTableLastUpdatedError","error"):o("offlinePatientsTableLastUpdatedErrors","errors"))):r().createElement(r().Fragment,null,r().createElement(u.Z,null),a.syncedOn.toLocaleDateString()):r().createElement(r().Fragment,null,r().createElement(d.Z,{className:P.errorIcon}),o("offlinePatientsTableLastUpdatedNotYetSynchronized","Not synchronized"))}),null))};var A=n(7090),O={};O.styleTagTransform=x(),O.setAttributes=w(),O.insert=y().bind(null,"head"),O.domAPI=b(),O.insertStyleElement=S(),m()(A.Z,O);const Z=A.Z&&A.Z.locals?A.Z.locals:void 0;var D=n(5143),I={};I.styleTagTransform=x(),I.setAttributes=w(),I.insert=y().bind(null,"head"),I.domAPI=b(),I.insertStyleElement=S(),m()(D.Z,I);const L=D.Z&&D.Z.locals?D.Z.locals:void 0,B=function(e){var t=e.patient,n=e.isNewlyRegistered,a=void 0!==n&&n,o=(0,_.useTranslation)().t,l="".concat(t.name[0].given.join(" ")," ").concat(t.name[0].family);return r().createElement("div",{className:L.cellContainer},r().createElement(i.Link,{onClick:function(){return(0,s.navigate)({to:"".concat(window.getOpenmrsSpaBase(),"patient/").concat(t.id,"/chart")})}},l),a&&r().createElement(i.Tag,{type:"magenta"},o("offlinePatientsTableNameNewlyRegistered","New")))};var G=n(7099),R=n(524);function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function j(e,t,n,a,o,l,r){try{var i=e[l](r),s=i.value}catch(e){return void n(e)}i.done?t(s):Promise.resolve(s).then(a,o)}function M(e){return function(){var t=this,n=arguments;return new Promise((function(a,o){var l=e.apply(t,n);function r(e){j(l,a,o,r,i,"next",e)}function i(e){j(l,a,o,r,i,"throw",e)}r(void 0)}))}}function F(){return F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},F.apply(this,arguments)}function Y(e){return function(e){if(Array.isArray(e))return U(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(e,t){if(e){if("string"==typeof e)return U(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}var X=function(e){var t=e.showHeader;return r().createElement(i.TableContainer,{className:Z.tableContainer},r().createElement("div",{className:Z.tableHeaderContainer},t&&r().createElement(i.SkeletonText,{heading:!0,width:"20%",className:Z.tableHeader}),r().createElement(i.SearchSkeleton,{className:Z.tableSearch})),r().createElement(i.DataTableSkeleton,{showToolbar:!1,showHeader:!1}))};function W(e){var t=e.rowIds,n=e.headers,a=e.cellsById,o=e.inputValue,l=e.getCellId;return t.filter((function(e){return n.some((function(t){var n,r,i,s=t.key,_=l(e,s),f=a[_].value;return(null!==(i=null!==(r=null==f||null===(n=f.filterableValue)||void 0===n?void 0:n.toString())&&void 0!==r?r:null==f?void 0:f.toString())&&void 0!==i?i:"").replace(/\s/g,"").toLowerCase().includes(o.replace(/\s/g,"").toLowerCase())}))}))}function q(e){return K.apply(this,arguments)}function K(){return(K=M(o().mark((function e(t){var n,a,l;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getDynamicOfflineDataEntries)("patient");case 2:return n=e.sent,a=n.map((function(e){return e.identifier})),l=t.filter((function(e){return a.includes(e)})),e.next=7,Promise.all(l.map((function(e){return(0,s.syncDynamicOfflineData)("patient",e)})));case 7:return e.abrupt("return",e.sent);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function J(e){return V.apply(this,arguments)}function V(){return V=M(o().mark((function e(t){var n,a,l,r,i;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getDynamicOfflineDataEntries)("patient");case 2:return n=e.sent,e.next=5,(0,s.getFullSynchronizationItems)("patient-registration");case 5:return a=e.sent,l=t.filter((function(e){return n.some((function(t){return t.identifier===e}))})),r=t.filter((function(e){return!l.includes(e)})),i=Y(l.map((function(e){return(0,s.removeDynamicOfflineData)("patient",e)}))).concat(Y(r.map(function(){var e=M(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=a.find((function(e){return e.content.fhirPatient.id===t})))){e.next=4;break}return e.next=4,(0,s.deleteSynchronizationItem)(n.id);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))),e.next=11,Promise.all(i);case 11:case"end":return e.stop()}}),e)}))),V.apply(this,arguments)}const $=function(e){var t,n,a,c=e.isInteractive,d=e.showHeader,u=(0,_.useTranslation)().t,p=(0,s.useLayoutType)(),m=(0,R._$)(),g=(0,R.jH)(),b="desktop"===p?"sm":void 0,h=function(e){if(Array.isArray(e))return e}(a=(0,l.useState)([]))||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,o,l=[],r=!0,i=!1;try{for(n=n.call(e);!(r=(a=n.next()).done)&&(l.push(a.value),2!==l.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==n.return||n.return()}finally{if(i)throw o}}return l}}(a)||Q(a,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=h[0],v=h[1],w=function(){var e=(0,_.useTranslation)().t;return(0,l.useMemo)((function(){return[{key:"name",header:e("offlinePatientsTableHeaderName","Name")},{key:"lastUpdated",header:e("offlinePatientsTableHeaderLastUpdated","Last updated")},{key:"gender",header:e("offlinePatientsTableHeaderGender","Gender")},{key:"age",header:e("offlinePatientsTableHeaderAge","Age")}]}),[e])}(),H=function(e){var t=(0,R._$)(),n=(0,R.jH)();return(0,l.useMemo)((function(){var a,o,l=[],i=function(t,n,a){return{id:t.id,name:{value:r().createElement(B,{key:t.id,patient:t,isNewlyRegistered:n}),filterableValue:JSON.stringify(t.name)},lastUpdated:n?"--":r().createElement(z,{key:t.id,patientUuid:t.id,isSyncing:e.includes(t.id),lastSyncState:a}),gender:(0,f.Z)(t.gender),age:t.birthDate?(0,s.age)(t.birthDate):""}},_=!0,c=!1,d=void 0;try{for(var u,p=(null!==(a=n.data)&&void 0!==a?a:[])[Symbol.iterator]();!(_=(u=p.next()).done);_=!0){var m=u.value;l.push(i(m,!0))}}catch(e){c=!0,d=e}finally{try{_||null==p.return||p.return()}finally{if(c)throw d}}var g=!0,b=!1,h=void 0;try{for(var y,v=(null!==(o=t.data)&&void 0!==o?o:[])[Symbol.iterator]();!(g=(y=v.next()).done);g=!0){var w=y.value,H=w.patient,S=w.entry;l.push(i(H,!1,S.syncState))}}catch(e){b=!0,h=e}finally{try{g||null==v.return||v.return()}finally{if(b)throw h}}return l}),[e,t.data,n.data])}(y),S=(t=M(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.map((function(e){return e.id})),v(n),e.next=4,q(n).finally((function(){return v([])}));case 4:m.mutate(),g.mutate();case 6:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)}),T=function(){var e=M(o().mark((function e(t){var n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=(0,s.showModal)("offline-tools-confirmation-modal",{title:u("offlinePatientsTableDeleteConfirmationModalTitle","Remove offline patients"),children:u("offlinePatientsTableDeleteConfirmationModalContent","Are you sure that you want to remove all selected patients from the offline list? Their charts will no longer be available in offline mode and any newly registered patient will be permanently deleted."),confirmText:u("offlinePatientsTableDeleteConfirmationModalConfirm","Remove patients"),cancelText:u("offlinePatientsTableDeleteConfirmationModalCancel","Cancel"),closeModal:function(){return n()},onConfirm:M(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,J(t.map((function(e){return e.id})));case 2:m.mutate(),g.mutate();case 4:case"end":return e.stop()}}),e)})))});case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return m.isValidating||g.isValidating?r().createElement(X,{showHeader:d}):r().createElement(r().Fragment,null,r().createElement(i.DataTable,{rows:H,headers:w,filterRows:W},(function(e){var t=e.rows,a=e.headers,o=e.getTableProps,l=e.getHeaderProps,s=e.getRowProps,_=e.getTableContainerProps,f=e.getSelectionProps,p=e.onInputChange,m=e.selectedRows;return r().createElement(i.TableContainer,F({className:Z.tableContainer},_()),r().createElement("div",{className:Z.tableHeaderContainer},d&&r().createElement("h4",{className:Z.tableHeader},u("offlinePatientsTableTitle","Offline patients")),0===m.length&&r().createElement(i.Search,{className:Z.tableSearch,labelText:u("offlinePatientsTableSearchLabel","Search this list"),placeholder:u("offlinePatientsTableSearchPlaceholder","Search this list"),size:b,onChange:p,light:!0}),m.length>0&&r().createElement(r().Fragment,null,r().createElement(i.Button,{className:Z.tableSecondaryAction,kind:"ghost",size:b,renderIcon:G.Z,onClick:function(){return S(m)}},1===m.length?u("offlinePatientsTableUpdatePatient","Update patient"):u("offlinePatientsTableUpdatePatients","Update patients")),r().createElement(i.Button,{className:Z.tablePrimaryAction,kind:"danger",size:b,onClick:function(){return T(m)}},u("offlinePatientsTableRemoveFromOfflineList","Remove from list")))),r().createElement(i.Table,F({},o(),{useZebraStyles:!0}),r().createElement(i.TableHead,null,r().createElement(i.TableRow,null,c&&r().createElement(i.TableSelectAll,F({},f())),a.map((function(e){return r().createElement(i.TableHeader,F({},l({header:e}),{isSortable:!0}),e.header)})))),r().createElement(i.TableBody,null,t.map((function(e){return r().createElement(i.TableRow,F({},s({row:e})),c&&r().createElement(i.TableSelectRow,F({},f({row:e}))),e.cells.map((function(e){var t;return r().createElement(i.TableCell,{key:e.id},null!==(n=null===(t=e.value)||void 0===t?void 0:t.value)&&void 0!==n?n:e.value)})))})))))})))}}}]);
|