@openmrs/esm-patient-registration-app 3.0.2-pre.310 → 3.0.2-pre.332

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/258.js +2 -0
  2. package/dist/258.js.map +1 -0
  3. package/dist/272.js +1 -1
  4. package/dist/272.js.map +1 -1
  5. package/dist/295.js +1 -1
  6. package/dist/295.js.map +1 -1
  7. package/dist/30.js +1 -1
  8. package/dist/30.js.map +1 -1
  9. package/dist/309.js +3 -0
  10. package/dist/{770.js.LICENSE.txt → 309.js.LICENSE.txt} +0 -0
  11. package/dist/309.js.map +1 -0
  12. package/dist/323.js +1 -1
  13. package/dist/323.js.map +1 -1
  14. package/dist/324.js +1 -1
  15. package/dist/324.js.map +1 -1
  16. package/dist/401.js +2 -0
  17. package/dist/401.js.map +1 -0
  18. package/dist/574.js +1 -1
  19. package/dist/71.js +1 -1
  20. package/dist/71.js.map +1 -1
  21. package/dist/817.js +1 -1
  22. package/dist/817.js.map +1 -1
  23. package/dist/831.js +3 -0
  24. package/dist/{932.js.LICENSE.txt → 831.js.LICENSE.txt} +0 -0
  25. package/dist/831.js.map +1 -0
  26. package/dist/916.js +2 -0
  27. package/dist/916.js.map +1 -0
  28. package/dist/932.js +1 -2
  29. package/dist/932.js.map +1 -1
  30. package/dist/openmrs-esm-patient-registration-app.js +1 -1
  31. package/dist/openmrs-esm-patient-registration-app.js.buildmanifest.json +103 -80
  32. package/dist/openmrs-esm-patient-registration-app.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/index.ts +7 -1
  35. package/src/offline.resources.ts +34 -30
  36. package/src/offline.ts +9 -9
  37. package/src/patient-registration/field/id/id-field.component.tsx +15 -12
  38. package/src/patient-registration/{ui-components/identifier-selection-overlay/index.tsx → field/id/identifier-selection-overlay.tsx} +29 -30
  39. package/src/patient-registration/{ui-components/identifier-selection-overlay → field/id}/identifier-selection.scss +0 -0
  40. package/src/patient-registration/form-manager.test.ts +5 -14
  41. package/src/patient-registration/form-manager.ts +104 -72
  42. package/src/patient-registration/input/basic-input/input/input.component.tsx +2 -8
  43. package/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx +23 -34
  44. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +2 -0
  45. package/src/patient-registration/patient-registration-hooks.ts +71 -62
  46. package/src/patient-registration/patient-registration-types.tsx +30 -17
  47. package/src/patient-registration/patient-registration-utils.ts +4 -3
  48. package/src/patient-registration/patient-registration.component.tsx +17 -19
  49. package/src/patient-registration/patient-registration.resource.tsx +6 -5
  50. package/src/patient-registration/section/patient-relationships/relationships-section.component.tsx +6 -6
  51. package/src/root.component.tsx +2 -2
  52. package/src/widgets/delete-identifier-confirmation-modal.tsx +41 -0
  53. package/src/widgets/delete-identifier-modal.scss +32 -0
  54. package/src/widgets/edit-patient-details-button.component.tsx +1 -1
  55. package/translations/en.json +1 -2
  56. package/dist/373.js +0 -2
  57. package/dist/373.js.map +0 -1
  58. package/dist/764.js +0 -2
  59. package/dist/764.js.map +0 -1
  60. package/dist/770.js +0 -3
  61. package/dist/770.js.map +0 -1
  62. package/dist/94.js +0 -2
  63. package/dist/94.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"openmrs-esm-patient-registration-app.js","mappings":"gHAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAgBAC,EAMAC,EAOAC,EAiCAC,EA6CAC,EAYAC,EACAC,EAQAC,E,mBC1IJC,EAFuB,WAER,I,eCFf,MAAMC,EAAmB,UAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9BC,MACJ,uHAIJ,IAA0BP,EACxB,IAAmBG,KAAKC,IACxBF,K,eCvBN,EAAQ,O,eC8ERD,EAAQ,EAlCR,SAA0BO,EAAWC,GAKnC,IAAIC,EAAIC,SAASC,cA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AAyB,SAAfA,EAAMW,KAAkB,UAAYX,EAAMW,MAChEgD,EAAU3D,GAASA,EAAMY,QAAUZ,EAAMY,OAAOf,IACpDrF,EAAMoJ,QAAU,iBAAmB3F,EAAU,cAAgByF,EAAY,KAAOC,EAAU,IAC1FnJ,EAAMkC,KAAO,iBACblC,EAAMmG,KAAO+C,EACblJ,EAAMqJ,QAAUF,EAChBJ,EAAmB,GAAG/I,MAIgB,SAAWyD,EAASA,KAiBlE,IAAI6F,EAAuB,CAACC,EAA4BC,KACvD,IAGIjH,EAAUkB,GAHTgG,EAAUC,EAAaC,GAAWH,EAGhB1E,EAAI,EAC3B,GAAG2E,EAASG,MAAMnH,GAAgC,IAAxBoG,EAAgBpG,KAAa,CACtD,IAAIF,KAAYmH,EACZrI,EAAoBM,EAAE+H,EAAanH,KACrClB,EAAoBuB,EAAEL,GAAYmH,EAAYnH,IAG7CoH,GAAsBA,EAAQtI,GAGlC,IADGkI,GAA4BA,EAA2BC,GACrD1E,EAAI2E,EAAS9I,OAAQmE,IACzBrB,EAAUgG,EAAS3E,GAChBzD,EAAoBM,EAAEkH,EAAiBpF,IAAYoF,EAAgBpF,IACrEoF,EAAgBpF,GAAS,KAE1BoF,EAAgBY,EAAS3E,IAAM,GAK7B+E,EAAqBC,KAAwD,kDAAIA,KAAwD,mDAAK,GAClJD,EAAmB9D,QAAQuD,EAAqBpD,KAAK,KAAM,IAC3D2D,EAAmBpF,KAAO6E,EAAqBpD,KAAK,KAAM2D,EAAmBpF,KAAKyB,KAAK2D,K,GClFvFxI,EAAoB,MACMA,EAAoB,O","sources":["webpack://@openmrs/esm-patient-registration-app/webpack/runtime/load script","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/consumes","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/auto-public-path/index.js","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-patient-registration-app/webpack/container-entry","webpack://@openmrs/esm-patient-registration-app/webpack/bootstrap","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/__system_context__","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/define property getters","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/global","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/sharing","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/publicPath","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-patient-registration-app/webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@openmrs/esm-patient-registration-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key) => {\n\tvar versions = scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getSingleton = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\treturn get(scope[key][version]);\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) typeof console !== \"undefined\" && console.warn && console.warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\ttypeof console !== \"undefined\" && console.warn && console.warn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t9902: () => (loadSingletonVersionCheckFallback(\"default\", \"react\", [1,16], () => (__webpack_require__.e(784).then(() => (() => (__webpack_require__(2784))))))),\n\t9035: () => (loadSingletonVersionCheckFallback(\"default\", \"@openmrs/esm-framework\", [1,3], () => (__webpack_require__.e(339).then(() => (() => (__webpack_require__(6339))))))),\n\t4924: () => (loadSingletonVersionCheckFallback(\"default\", \"react-i18next\", [1,11], () => (__webpack_require__.e(373).then(() => (() => (__webpack_require__(9932))))))),\n\t8479: () => (loadSingletonVersionCheckFallback(\"default\", \"carbon-components\", [1,10], () => (__webpack_require__.e(635).then(() => (() => (__webpack_require__(9635))))))),\n\t9575: () => (loadSingletonVersionCheckFallback(\"default\", \"react-router-dom\", [1,5], () => (__webpack_require__.e(817).then(() => (() => (__webpack_require__(2817)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"71\": [\n\t\t9035\n\t],\n\t\"94\": [\n\t\t9575\n\t],\n\t\"479\": [\n\t\t8479\n\t],\n\t\"902\": [\n\t\t9902\n\t],\n\t\"924\": [\n\t\t4924\n\t]\n};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t});\n\t}\n}","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","require(\"./1\");\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","var moduleMap = {\n\t\"app\": () => {\n\t\treturn Promise.all([__webpack_require__.e(770), __webpack_require__.e(902), __webpack_require__.e(71)]).then(() => (() => ((__webpack_require__(3071)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => (typeof console !== \"undefined\" && console.warn && console.warn(msg));\n\tvar uniqueName = \"@openmrs/esm-patient-registration-app\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@openmrs/esm-framework\", \"3.1.15-pre.861\", () => (__webpack_require__.e(339).then(() => (() => (__webpack_require__(6339))))));\n\t\t\tregister(\"carbon-components\", \"10.31.0\", () => (__webpack_require__.e(635).then(() => (() => (__webpack_require__(9635))))));\n\t\t\tregister(\"carbon-icons\", \"7.0.7\", () => (__webpack_require__.e(402).then(() => (() => (__webpack_require__(5402))))));\n\t\t\tregister(\"react-i18next\", \"11.15.1\", () => (Promise.all([__webpack_require__.e(373), __webpack_require__.e(902)]).then(() => (() => (__webpack_require__(9932))))));\n\t\t\tregister(\"react-router-dom\", \"5.3.0\", () => (Promise.all([__webpack_require__.e(817), __webpack_require__.e(902), __webpack_require__.e(323)]).then(() => (() => (__webpack_require__(2817))))));\n\t\t\tregister(\"react\", \"16.14.0\", () => (__webpack_require__.e(784).then(() => (() => (__webpack_require__(2784))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t331: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(479|902|924)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_openmrs_esm_patient_registration_app\"] = self[\"webpackChunk_openmrs_esm_patient_registration_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\n__webpack_require__(5384);\nvar __webpack_exports__ = __webpack_require__(8505);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingletonVersion","get","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","autoPublicPath","resolveDirectory","exports","rootDirLevel","meta","url","console","error","Error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","undefined","init","shareScope","initScope","S","name","oldScope","I","d","__webpack_module_cache__","moduleId","cachedModule","id","__webpack_modules__","call","m","c","y","__system_context__","n","getter","__esModule","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","done","push","script","needAttach","scripts","getElementsByTagName","i","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","loaded","from","p","str","split","map","exec","apply","b","t","range","pop","replace","requiredVersion","scopeName","warn","entry","promise","fallback","consumes","onFactory","onError","installedChunks","j","installedChunkData","test","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self"],"sourceRoot":""}
1
+ {"version":3,"file":"openmrs-esm-patient-registration-app.js","mappings":"gHAAIA,EACAC,ECDAC,EAIAC,EAIAC,EAIAC,EAgBAC,EAMAC,EAOAC,EAiCAC,EA6CAC,EAYAC,EACAC,EAQAC,E,mBC1IJC,EAFuB,WAER,I,eCFf,MAAMC,EAAmB,UAEzBC,EAAQ,EAAiB,SAAwBC,GAY7C,GAXGA,IACHA,EAAe,IAUV,IAAmBC,OAAS,IAAmBA,KAAKC,IAEvD,MADAC,QAAQC,MAAM,qBAAsB,KAC9BC,MACJ,uHAIJ,IAA0BP,EACxB,IAAmBG,KAAKC,IACxBF,K,eCvBN,EAAQ,O,eC8ERD,EAAQ,EAlCR,SAA0BO,EAAWC,GAKnC,IAAIC,EAAIC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EAAY1D,IAAyB,SAAfA,EAAMW,KAAkB,UAAYX,EAAMW,MAChEgD,EAAU3D,GAASA,EAAMY,QAAUZ,EAAMY,OAAOf,IACpDrF,EAAMoJ,QAAU,iBAAmB3F,EAAU,cAAgByF,EAAY,KAAOC,EAAU,IAC1FnJ,EAAMkC,KAAO,iBACblC,EAAMmG,KAAO+C,EACblJ,EAAMqJ,QAAUF,EAChBJ,EAAmB,GAAG/I,MAIgB,SAAWyD,EAASA,KAiBlE,IAAI6F,EAAuB,CAACC,EAA4BC,KACvD,IAGIjH,EAAUkB,GAHTgG,EAAUC,EAAaC,GAAWH,EAGhB1E,EAAI,EAC3B,GAAG2E,EAASG,MAAMnH,GAAgC,IAAxBoG,EAAgBpG,KAAa,CACtD,IAAIF,KAAYmH,EACZrI,EAAoBM,EAAE+H,EAAanH,KACrClB,EAAoBuB,EAAEL,GAAYmH,EAAYnH,IAG7CoH,GAAsBA,EAAQtI,GAGlC,IADGkI,GAA4BA,EAA2BC,GACrD1E,EAAI2E,EAAS9I,OAAQmE,IACzBrB,EAAUgG,EAAS3E,GAChBzD,EAAoBM,EAAEkH,EAAiBpF,IAAYoF,EAAgBpF,IACrEoF,EAAgBpF,GAAS,KAE1BoF,EAAgBpF,GAAW,GAKzBoG,EAAqBC,KAAwD,kDAAIA,KAAwD,mDAAK,GAClJD,EAAmB9D,QAAQuD,EAAqBpD,KAAK,KAAM,IAC3D2D,EAAmBpF,KAAO6E,EAAqBpD,KAAK,KAAM2D,EAAmBpF,KAAKyB,KAAK2D,K,GClFvFxI,EAAoB,MACMA,EAAoB,O","sources":["webpack://@openmrs/esm-patient-registration-app/webpack/runtime/load script","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/consumes","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/auto-public-path/index.js","webpack://@openmrs/esm-patient-registration-app/../../node_modules/systemjs-webpack-interop/public-path.js","webpack://@openmrs/esm-patient-registration-app/webpack/container-entry","webpack://@openmrs/esm-patient-registration-app/webpack/bootstrap","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/__system_context__","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/compat get default export","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/define property getters","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/ensure chunk","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/get javascript chunk filename","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/global","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/hasOwnProperty shorthand","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/make namespace object","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/sharing","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/publicPath","webpack://@openmrs/esm-patient-registration-app/webpack/runtime/jsonp chunk loading","webpack://@openmrs/esm-patient-registration-app/webpack/startup"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"@openmrs/esm-patient-registration-app:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = (url, done, key, chunkId) => {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","var parseVersion = (str) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar p=p=>{return p.split(\".\").map((p=>{return+p==p?+p:p}))},n=/^([^-+]+)?(?:-([^+]+))?(?:\\+(.+))?$/.exec(str),r=n[1]?p(n[1]):[];return n[2]&&(r.length++,r.push.apply(r,p(n[2]))),n[3]&&(r.push([]),r.push.apply(r,p(n[3]))),r;\n}\nvar versionLt = (a, b) => {\n\t// see webpack/lib/util/semver.js for original code\n\ta=parseVersion(a),b=parseVersion(b);for(var r=0;;){if(r>=a.length)return r<b.length&&\"u\"!=(typeof b[r])[0];var e=a[r],n=(typeof e)[0];if(r>=b.length)return\"u\"==n;var t=b[r],f=(typeof t)[0];if(n!=f)return\"o\"==n&&\"n\"==f||(\"s\"==f||\"u\"==n);if(\"o\"!=n&&\"u\"!=n&&e!=t)return e<t;r++}\n}\nvar rangeToString = (range) => {\n\t// see webpack/lib/util/semver.js for original code\n\tvar r=range[0],n=\"\";if(1===range.length)return\"*\";if(r+.5){n+=0==r?\">=\":-1==r?\"<\":1==r?\"^\":2==r?\"~\":r>0?\"=\":\"!=\";for(var e=1,a=1;a<range.length;a++){e--,n+=\"u\"==(typeof(t=range[a]))[0]?\"-\":(e>0?\".\":\"\")+(e=2,t)}return n}var g=[];for(a=1;a<range.length;a++){var t=range[a];g.push(0===t?\"not(\"+o()+\")\":1===t?\"(\"+o()+\" || \"+o()+\")\":2===t?g.pop()+\" \"+g.pop():rangeToString(t))}return o();function o(){return g.pop().replace(/^\\((.+)\\)$/,\"$1\")}\n}\nvar satisfy = (range, version) => {\n\t// see webpack/lib/util/semver.js for original code\n\tif(0 in range){version=parseVersion(version);var e=range[0],r=e<0;r&&(e=-e-1);for(var n=0,i=1,a=!0;;i++,n++){var f,s,g=i<range.length?(typeof range[i])[0]:\"\";if(n>=version.length||\"o\"==(s=(typeof(f=version[n]))[0]))return!a||(\"u\"==g?i>e&&!r:\"\"==g!=r);if(\"u\"==s){if(!a||\"u\"!=g)return!1}else if(a)if(g==s)if(i<=e){if(f!=range[i])return!1}else{if(r?f>range[i]:f<range[i])return!1;f!=range[i]&&(a=!1)}else if(\"s\"!=g&&\"n\"!=g){if(r||i<=e)return!1;a=!1,i--}else{if(i<=e||s<g!=r)return!1;a=!1}else\"s\"!=g&&\"n\"!=g&&(a=!1,i--)}}var t=[],o=t.pop.bind(t);for(n=1;n<range.length;n++){var u=range[n];t.push(1==u?o()|o():2==u?o()&o():u?satisfy(u,version):!o())}return!!o();\n}\nvar ensureExistence = (scopeName, key) => {\n\tvar scope = __webpack_require__.S[scopeName];\n\tif(!scope || !__webpack_require__.o(scope, key)) throw new Error(\"Shared module \" + key + \" doesn't exist in shared scope \" + scopeName);\n\treturn scope;\n};\nvar findVersion = (scope, key) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar findSingletonVersionKey = (scope, key) => {\n\tvar versions = scope[key];\n\treturn Object.keys(versions).reduce((a, b) => {\n\t\treturn !a || (!versions[a].loaded && versionLt(a, b)) ? b : a;\n\t}, 0);\n};\nvar getInvalidSingletonVersionMessage = (scope, key, version, requiredVersion) => {\n\treturn \"Unsatisfied version \" + version + \" from \" + (version && scope[key][version].from) + \" of shared singleton module \" + key + \" (required \" + rangeToString(requiredVersion) + \")\"\n};\nvar getSingleton = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\treturn get(scope[key][version]);\n};\nvar getSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) typeof console !== \"undefined\" && console.warn && console.warn(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar getStrictSingletonVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar version = findSingletonVersionKey(scope, key);\n\tif (!satisfy(requiredVersion, version)) throw new Error(getInvalidSingletonVersionMessage(scope, key, version, requiredVersion));\n\treturn get(scope[key][version]);\n};\nvar findValidVersion = (scope, key, requiredVersion) => {\n\tvar versions = scope[key];\n\tvar key = Object.keys(versions).reduce((a, b) => {\n\t\tif (!satisfy(requiredVersion, b)) return a;\n\t\treturn !a || versionLt(a, b) ? b : a;\n\t}, 0);\n\treturn key && versions[key]\n};\nvar getInvalidVersionMessage = (scope, scopeName, key, requiredVersion) => {\n\tvar versions = scope[key];\n\treturn \"No satisfying version (\" + rangeToString(requiredVersion) + \") of shared module \" + key + \" found in shared scope \" + scopeName + \".\\n\" +\n\t\t\"Available versions: \" + Object.keys(versions).map((key) => {\n\t\treturn key + \" from \" + versions[key].from;\n\t}).join(\", \");\n};\nvar getValidVersion = (scope, scopeName, key, requiredVersion) => {\n\tvar entry = findValidVersion(scope, key, requiredVersion);\n\tif(entry) return get(entry);\n\tthrow new Error(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar warnInvalidVersion = (scope, scopeName, key, requiredVersion) => {\n\ttypeof console !== \"undefined\" && console.warn && console.warn(getInvalidVersionMessage(scope, scopeName, key, requiredVersion));\n};\nvar get = (entry) => {\n\tentry.loaded = 1;\n\treturn entry.get()\n};\nvar init = (fn) => (function(scopeName, a, b, c) {\n\tvar promise = __webpack_require__.I(scopeName);\n\tif (promise && promise.then) return promise.then(fn.bind(fn, scopeName, __webpack_require__.S[scopeName], a, b, c));\n\treturn fn(scopeName, __webpack_require__.S[scopeName], a, b, c);\n});\n\nvar load = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn get(findVersion(scope, key));\n});\nvar loadFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\treturn scope && __webpack_require__.o(scope, key) ? get(findVersion(scope, key)) : fallback();\n});\nvar loadVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingleton = /*#__PURE__*/ init((scopeName, scope, key) => {\n\tensureExistence(scopeName, key);\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getValidVersion(scope, scopeName, key, version);\n});\nvar loadStrictSingletonVersionCheck = /*#__PURE__*/ init((scopeName, scope, key, version) => {\n\tensureExistence(scopeName, key);\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar loadVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn get(findValidVersion(scope, key, version) || warnInvalidVersion(scope, scopeName, key, version) || findVersion(scope, key));\n});\nvar loadSingletonFallback = /*#__PURE__*/ init((scopeName, scope, key, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingleton(scope, scopeName, key);\n});\nvar loadSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getSingletonVersion(scope, scopeName, key, version);\n});\nvar loadStrictVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tvar entry = scope && __webpack_require__.o(scope, key) && findValidVersion(scope, key, version);\n\treturn entry ? get(entry) : fallback();\n});\nvar loadStrictSingletonVersionCheckFallback = /*#__PURE__*/ init((scopeName, scope, key, version, fallback) => {\n\tif(!scope || !__webpack_require__.o(scope, key)) return fallback();\n\treturn getStrictSingletonVersion(scope, scopeName, key, version);\n});\nvar installedModules = {};\nvar moduleToHandlerMapping = {\n\t9902: () => (loadSingletonVersionCheckFallback(\"default\", \"react\", [1,16], () => (__webpack_require__.e(784).then(() => (() => (__webpack_require__(2784))))))),\n\t9035: () => (loadSingletonVersionCheckFallback(\"default\", \"@openmrs/esm-framework\", [1,3], () => (__webpack_require__.e(339).then(() => (() => (__webpack_require__(6339))))))),\n\t4924: () => (loadSingletonVersionCheckFallback(\"default\", \"react-i18next\", [1,11], () => (__webpack_require__.e(932).then(() => (() => (__webpack_require__(9932))))))),\n\t8479: () => (loadSingletonVersionCheckFallback(\"default\", \"carbon-components\", [1,10], () => (__webpack_require__.e(635).then(() => (() => (__webpack_require__(9635))))))),\n\t9575: () => (loadSingletonVersionCheckFallback(\"default\", \"react-router-dom\", [1,5], () => (__webpack_require__.e(817).then(() => (() => (__webpack_require__(2817)))))))\n};\n// no consumes in initial chunks\nvar chunkMapping = {\n\t\"71\": [\n\t\t9035\n\t],\n\t\"479\": [\n\t\t8479\n\t],\n\t\"902\": [\n\t\t9902\n\t],\n\t\"916\": [\n\t\t9575\n\t],\n\t\"924\": [\n\t\t4924\n\t]\n};\n__webpack_require__.f.consumes = (chunkId, promises) => {\n\tif(__webpack_require__.o(chunkMapping, chunkId)) {\n\t\tchunkMapping[chunkId].forEach((id) => {\n\t\t\tif(__webpack_require__.o(installedModules, id)) return promises.push(installedModules[id]);\n\t\t\tvar onFactory = (factory) => {\n\t\t\t\tinstalledModules[id] = 0;\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tmodule.exports = factory();\n\t\t\t\t}\n\t\t\t};\n\t\t\tvar onError = (error) => {\n\t\t\t\tdelete installedModules[id];\n\t\t\t\t__webpack_require__.m[id] = (module) => {\n\t\t\t\t\tdelete __webpack_require__.c[id];\n\t\t\t\t\tthrow error;\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tvar promise = moduleToHandlerMapping[id]();\n\t\t\t\tif(promise.then) {\n\t\t\t\t\tpromises.push(installedModules[id] = promise.then(onFactory)['catch'](onError));\n\t\t\t\t} else onFactory(promise);\n\t\t\t} catch(e) { onError(e); }\n\t\t});\n\t}\n}","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","require(\"./1\");\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","var moduleMap = {\n\t\"app\": () => {\n\t\treturn Promise.all([__webpack_require__.e(309), __webpack_require__.e(902), __webpack_require__.e(71)]).then(() => (() => ((__webpack_require__(3071)))));\n\t}\n};\nvar get = (module, getScope) => {\n\t__webpack_require__.R = getScope;\n\tgetScope = (\n\t\t__webpack_require__.o(moduleMap, module)\n\t\t\t? moduleMap[module]()\n\t\t\t: Promise.resolve().then(() => {\n\t\t\t\tthrow new Error('Module \"' + module + '\" does not exist in container.');\n\t\t\t})\n\t);\n\t__webpack_require__.R = undefined;\n\treturn getScope;\n};\nvar init = (shareScope, initScope) => {\n\tif (!__webpack_require__.S) return;\n\tvar name = \"default\"\n\tvar oldScope = __webpack_require__.S[name];\n\tif(oldScope && oldScope !== shareScope) throw new Error(\"Container initialization failed as it has already been initialized with a different share scope\");\n\t__webpack_require__.S[name] = shareScope;\n\treturn __webpack_require__.I(name, initScope);\n};\n\n// This exports getters to disallow modifications\n__webpack_require__.d(exports, {\n\tget: () => (get),\n\tinit: () => (init)\n});","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// expose the module cache\n__webpack_require__.c = __webpack_module_cache__;\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".js\";\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.S = {};\nvar initPromises = {};\nvar initTokens = {};\n__webpack_require__.I = (name, initScope) => {\n\tif(!initScope) initScope = [];\n\t// handling circular init calls\n\tvar initToken = initTokens[name];\n\tif(!initToken) initToken = initTokens[name] = {};\n\tif(initScope.indexOf(initToken) >= 0) return;\n\tinitScope.push(initToken);\n\t// only runs once\n\tif(initPromises[name]) return initPromises[name];\n\t// creates a new share scope if needed\n\tif(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};\n\t// runs all init snippets from all modules reachable\n\tvar scope = __webpack_require__.S[name];\n\tvar warn = (msg) => (typeof console !== \"undefined\" && console.warn && console.warn(msg));\n\tvar uniqueName = \"@openmrs/esm-patient-registration-app\";\n\tvar register = (name, version, factory, eager) => {\n\t\tvar versions = scope[name] = scope[name] || {};\n\t\tvar activeVersion = versions[version];\n\t\tif(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };\n\t};\n\tvar initExternal = (id) => {\n\t\tvar handleError = (err) => (warn(\"Initialization of sharing external failed: \" + err));\n\t\ttry {\n\t\t\tvar module = __webpack_require__(id);\n\t\t\tif(!module) return;\n\t\t\tvar initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))\n\t\t\tif(module.then) return promises.push(module.then(initFn, handleError));\n\t\t\tvar initResult = initFn(module);\n\t\t\tif(initResult && initResult.then) return promises.push(initResult['catch'](handleError));\n\t\t} catch(err) { handleError(err); }\n\t}\n\tvar promises = [];\n\tswitch(name) {\n\t\tcase \"default\": {\n\t\t\tregister(\"@openmrs/esm-framework\", \"3.1.15-pre.861\", () => (__webpack_require__.e(339).then(() => (() => (__webpack_require__(6339))))));\n\t\t\tregister(\"carbon-components\", \"10.31.0\", () => (__webpack_require__.e(635).then(() => (() => (__webpack_require__(9635))))));\n\t\t\tregister(\"carbon-icons\", \"7.0.7\", () => (__webpack_require__.e(402).then(() => (() => (__webpack_require__(5402))))));\n\t\t\tregister(\"react-i18next\", \"11.15.3\", () => (Promise.all([__webpack_require__.e(932), __webpack_require__.e(902)]).then(() => (() => (__webpack_require__(9932))))));\n\t\t\tregister(\"react-router-dom\", \"5.3.0\", () => (Promise.all([__webpack_require__.e(817), __webpack_require__.e(902), __webpack_require__.e(323)]).then(() => (() => (__webpack_require__(2817))))));\n\t\t\tregister(\"react\", \"16.14.0\", () => (__webpack_require__.e(784).then(() => (() => (__webpack_require__(2784))))));\n\t\t}\n\t\tbreak;\n\t}\n\tif(!promises.length) return initPromises[name] = 1;\n\treturn initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t331: 0\n};\n\n__webpack_require__.f.j = (chunkId, promises) => {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(!/^(479|902|924)$/.test(chunkId)) {\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = (event) => {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_openmrs_esm_patient_registration_app\"] = self[\"webpackChunk_openmrs_esm_patient_registration_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// module cache are used so entry inlining is disabled\n// startup\n// Load entry module and return exports\n__webpack_require__(5384);\nvar __webpack_exports__ = __webpack_require__(8505);\n"],"names":["inProgress","dataWebpackPrefix","parseVersion","versionLt","rangeToString","satisfy","findSingletonVersionKey","getInvalidSingletonVersionMessage","getSingletonVersion","get","loadSingletonVersionCheckFallback","installedModules","moduleToHandlerMapping","chunkMapping","autoPublicPath","resolveDirectory","exports","rootDirLevel","meta","url","console","error","Error","urlString","rootDirectoryLevel","a","document","createElement","href","pathname","numDirsProcessed","index","length","finalPath","slice","protocol","host","Number","isInteger","moduleMap","Promise","all","__webpack_require__","e","then","module","getScope","R","o","resolve","undefined","init","shareScope","initScope","S","name","oldScope","I","d","__webpack_module_cache__","moduleId","cachedModule","id","__webpack_modules__","call","m","c","y","__system_context__","n","getter","__esModule","definition","key","Object","defineProperty","enumerable","f","chunkId","keys","reduce","promises","u","g","globalThis","this","Function","window","obj","prop","prototype","hasOwnProperty","l","done","push","script","needAttach","scripts","getElementsByTagName","i","s","getAttribute","charset","timeout","nc","setAttribute","src","onScriptComplete","prev","event","onerror","onload","clearTimeout","doneFns","parentNode","removeChild","forEach","fn","setTimeout","bind","type","target","head","appendChild","r","Symbol","toStringTag","value","initPromises","initTokens","initToken","indexOf","scope","uniqueName","register","version","factory","eager","versions","activeVersion","loaded","from","p","str","split","map","exec","apply","b","t","range","pop","replace","requiredVersion","scopeName","warn","entry","promise","fallback","consumes","onFactory","onError","installedChunks","j","installedChunkData","test","reject","errorType","realSrc","message","request","webpackJsonpCallback","parentChunkLoadingFunction","data","chunkIds","moreModules","runtime","some","chunkLoadingGlobal","self"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-registration-app",
3
- "version": "3.0.2-pre.310",
3
+ "version": "3.0.2-pre.332",
4
4
  "description": "Patient registration microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-patient-registration-app.js",
6
6
  "main": "src/index.ts",
@@ -52,5 +52,5 @@
52
52
  "react-router-dom": "5.x",
53
53
  "rxjs": "6.x"
54
54
  },
55
- "gitHead": "1b1d001b93abb0971ab8c730f5fc0580430dc3e1"
55
+ "gitHead": "8ff7abf31015d68db95890d04ab5d9f516e0aaf1"
56
56
  }
package/src/index.ts CHANGED
@@ -24,7 +24,7 @@ const resources = {
24
24
  currentSession: fetchCurrentSession,
25
25
  addressTemplate: fetchAddressTemplate,
26
26
  relationshipTypes: fetchAllRelationshipTypes,
27
- patientIdentifiers: fetchPatientIdentifierTypesWithSources,
27
+ identifierTypes: fetchPatientIdentifierTypesWithSources,
28
28
  };
29
29
 
30
30
  function setupOpenMRS() {
@@ -101,6 +101,12 @@ function setupOpenMRS() {
101
101
  online: true,
102
102
  offline: true,
103
103
  },
104
+ {
105
+ id: 'delete-identifier-confirmation-modal',
106
+ load: getAsyncLifecycle(() => import('./widgets/delete-identifier-confirmation-modal'), options),
107
+ online: true,
108
+ offline: true,
109
+ },
104
110
  ],
105
111
  };
106
112
  }
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import find from 'lodash-es/find';
3
3
  import camelCase from 'lodash-es/camelCase';
4
- import { FetchResponse, openmrsFetch, SessionUser } from '@openmrs/esm-framework';
4
+ import escapeRegExp from 'lodash-es/escapeRegExp';
5
+ import { FetchResponse, messageOmrsServiceWorker, openmrsFetch, SessionUser } from '@openmrs/esm-framework';
5
6
  import { PatientIdentifierType, FetchedPatientIdentifierType } from './patient-registration/patient-registration-types';
6
7
  import { mockAutoGenerationOptionsResult } from '../__mocks__/autogenerationoptions.mock';
7
8
  import { cacheForOfflineHeaders } from './constants';
@@ -10,32 +11,26 @@ export interface Resources {
10
11
  addressTemplate: any;
11
12
  currentSession: SessionUser;
12
13
  relationshipTypes: any;
13
- patientIdentifiers: Array<PatientIdentifierType>;
14
+ identifierTypes: Array<PatientIdentifierType>;
14
15
  }
15
16
 
16
17
  export const ResourcesContext = React.createContext<Resources>(null);
17
18
 
18
19
  export async function fetchCurrentSession(abortController?: AbortController): Promise<FetchResponse<SessionUser>> {
19
- const { data } = await openmrsFetch('/ws/rest/v1/session', {
20
- signal: abortController?.signal,
21
- headers: cacheForOfflineHeaders,
22
- });
20
+ const { data } = await cacheAndFetch('/ws/rest/v1/session', abortController);
23
21
  return data;
24
22
  }
25
23
 
26
24
  export async function fetchAddressTemplate(abortController?: AbortController) {
27
- const { data } = await openmrsFetch('/ws/rest/v1/systemsetting?q=layout.address.format&v=custom:(value)', {
28
- signal: abortController?.signal,
29
- headers: cacheForOfflineHeaders,
30
- });
25
+ const { data } = await cacheAndFetch(
26
+ '/ws/rest/v1/systemsetting?q=layout.address.format&v=custom:(value)',
27
+ abortController,
28
+ );
31
29
  return data;
32
30
  }
33
31
 
34
32
  export async function fetchAllRelationshipTypes(abortController?: AbortController) {
35
- const { data } = await openmrsFetch('/ws/rest/v1/relationshiptype?v=default', {
36
- signal: abortController?.signal,
37
- headers: cacheForOfflineHeaders,
38
- });
33
+ const { data } = await cacheAndFetch('/ws/rest/v1/relationshiptype?v=default', abortController);
39
34
  return data;
40
35
  }
41
36
 
@@ -69,14 +64,14 @@ export async function fetchPatientIdentifierTypesWithSources(
69
64
  }
70
65
 
71
66
  async function fetchPrimaryIdentifierType(abortController: AbortController): Promise<FetchedPatientIdentifierType> {
72
- const primaryIdentifierTypeResponse = await openmrsFetch(
67
+ const primaryIdentifierTypeResponse = await cacheAndFetch(
73
68
  '/ws/rest/v1/metadatamapping/termmapping?v=full&code=emr.primaryIdentifierType',
74
- { signal: abortController?.signal, headers: cacheForOfflineHeaders },
69
+ abortController,
75
70
  );
76
71
 
77
- const { data: metadata } = await openmrsFetch(
72
+ const { data: metadata } = await cacheAndFetch(
78
73
  `/ws/rest/v1/patientidentifiertype/${primaryIdentifierTypeResponse.data.results[0].metadataUuid}`,
79
- { signal: abortController?.signal, headers: cacheForOfflineHeaders },
74
+ abortController,
80
75
  );
81
76
 
82
77
  return {
@@ -92,25 +87,25 @@ async function fetchPrimaryIdentifierType(abortController: AbortController): Pro
92
87
  async function fetchSecondaryIdentifierTypes(
93
88
  abortController?: AbortController,
94
89
  ): Promise<Array<FetchedPatientIdentifierType>> {
95
- const secondaryIdentifierTypeResponse = await openmrsFetch(
90
+ const secondaryIdentifierTypeResponse = await cacheAndFetch(
96
91
  '/ws/rest/v1/metadatamapping/termmapping?v=full&code=emr.extraPatientIdentifierTypes',
97
- { signal: abortController?.signal, headers: cacheForOfflineHeaders },
92
+ abortController,
98
93
  );
99
94
 
100
95
  if (secondaryIdentifierTypeResponse.data.results) {
101
96
  const extraIdentifierTypesSetUuid = secondaryIdentifierTypeResponse.data.results[0].metadataUuid;
102
- const metadataResponse = await openmrsFetch(
97
+ const metadataResponse = await cacheAndFetch(
103
98
  `/ws/rest/v1/metadatamapping/metadataset/${extraIdentifierTypesSetUuid}/members`,
104
- { signal: abortController?.signal, headers: cacheForOfflineHeaders },
99
+ abortController,
105
100
  );
106
101
 
107
102
  if (metadataResponse.data.results) {
108
103
  return await Promise.all(
109
104
  metadataResponse.data.results.map(async (setMember) => {
110
- const type = await openmrsFetch(`/ws/rest/v1/patientidentifiertype/${setMember.metadataUuid}`, {
111
- signal: abortController?.signal,
112
- headers: cacheForOfflineHeaders,
113
- });
105
+ const type = await cacheAndFetch(
106
+ `/ws/rest/v1/patientidentifiertype/${setMember.metadataUuid}`,
107
+ abortController,
108
+ );
114
109
 
115
110
  return {
116
111
  name: type.data.name,
@@ -129,10 +124,10 @@ async function fetchSecondaryIdentifierTypes(
129
124
  }
130
125
 
131
126
  async function fetchIdentifierSources(identifierType: string, abortController?: AbortController) {
132
- return await openmrsFetch(`/ws/rest/v1/idgen/identifiersource?v=full&identifierType=${identifierType}`, {
133
- signal: abortController?.signal,
134
- headers: cacheForOfflineHeaders,
135
- });
127
+ return await cacheAndFetch(
128
+ `/ws/rest/v1/idgen/identifiersource?v=full&identifierType=${identifierType}`,
129
+ abortController,
130
+ );
136
131
  }
137
132
 
138
133
  function fetchAutoGenerationOptions(identifierType: string, abortController?: AbortController) {
@@ -142,3 +137,12 @@ function fetchAutoGenerationOptions(identifierType: string, abortController?: Ab
142
137
  // });‚
143
138
  return Promise.resolve(mockAutoGenerationOptionsResult);
144
139
  }
140
+
141
+ async function cacheAndFetch(url: string, abortController?: AbortController) {
142
+ await messageOmrsServiceWorker({
143
+ type: 'registerDynamicRoute',
144
+ pattern: escapeRegExp(url),
145
+ });
146
+
147
+ return await openmrsFetch(url, { headers: cacheForOfflineHeaders, signal: abortController?.signal });
148
+ }
package/src/offline.ts CHANGED
@@ -41,15 +41,15 @@ export async function syncPatientRegistration(
41
41
  options: SyncProcessOptions<PatientRegistration>,
42
42
  ) {
43
43
  await FormManager.savePatientFormOnline(
44
- undefined,
45
- queuedPatient.formValues,
46
- queuedPatient.patientUuidMap,
47
- queuedPatient.initialAddressFieldValues,
48
- queuedPatient.identifierTypes,
49
- queuedPatient.capturePhotoProps,
50
- queuedPatient.patientPhotoConceptUuid,
51
- queuedPatient.currentLocation,
52
- queuedPatient.personAttributeSections,
44
+ queuedPatient._patientRegistrationData.isNewPatient,
45
+ queuedPatient._patientRegistrationData.formValues,
46
+ queuedPatient._patientRegistrationData.patientUuidMap,
47
+ queuedPatient._patientRegistrationData.initialAddressFieldValues,
48
+ queuedPatient._patientRegistrationData.identifierTypes,
49
+ queuedPatient._patientRegistrationData.capturePhotoProps,
50
+ queuedPatient._patientRegistrationData.patientPhotoConceptUuid,
51
+ queuedPatient._patientRegistrationData.currentLocation,
52
+ queuedPatient._patientRegistrationData.personAttributeSections,
53
53
  options.abort,
54
54
  );
55
55
  }
@@ -7,19 +7,19 @@ import { Button } from 'carbon-components-react';
7
7
  import { ArrowRight16 } from '@carbon/icons-react';
8
8
  import { useLayoutType } from '@openmrs/esm-framework';
9
9
  import { PatientIdentifierValue } from '../../patient-registration-types';
10
- import IdentifierSelectionOverlay from '../../ui-components/identifier-selection-overlay';
11
- import { FieldArray, useField } from 'formik';
10
+ import IdentifierSelectionOverlay from './identifier-selection-overlay';
11
+ import { FieldArray } from 'formik';
12
12
  import { ResourcesContext } from '../../../offline.resources';
13
13
 
14
14
  export const IdField: React.FC = () => {
15
- const { patientIdentifiers: identifierTypes } = useContext(ResourcesContext);
15
+ const { identifierTypes } = useContext(ResourcesContext);
16
16
  const { setFieldValue, inEditMode } = useContext(PatientRegistrationContext);
17
17
  const { t } = useTranslation();
18
18
  const desktop = useLayoutType() === 'desktop';
19
- const [showIdentifierOverlay, setIdentifierOverlay] = useState<boolean>(false);
19
+ const [showIdentifierOverlay, setShowIdentifierOverlay] = useState(false);
20
20
 
21
21
  useEffect(() => {
22
- if (!inEditMode) {
22
+ if (!inEditMode && identifierTypes) {
23
23
  setFieldValue(
24
24
  'identifiers',
25
25
  identifierTypes
@@ -29,8 +29,9 @@ export const IdField: React.FC = () => {
29
29
  ({
30
30
  action: 'ADD',
31
31
  identifier: '',
32
- identifierType: identifierType.uuid,
33
- source: identifierType.identifierSources.length > 0 ? identifierType.identifierSources[0] : null,
32
+ identifierTypeUuid: identifierType.uuid,
33
+ source: identifierType.identifierSources?.[0],
34
+ preferred: identifierType.isPrimary,
34
35
  } as PatientIdentifierValue),
35
36
  ),
36
37
  );
@@ -44,7 +45,7 @@ export const IdField: React.FC = () => {
44
45
  <Button
45
46
  kind="ghost"
46
47
  className={styles.setIDNumberButton}
47
- onClick={() => setIdentifierOverlay(true)}
48
+ onClick={() => setShowIdentifierOverlay(true)}
48
49
  size={desktop ? 'sm' : 'md'}>
49
50
  {t('configure', 'Configure')} <ArrowRight16 />
50
51
  </Button>
@@ -59,13 +60,15 @@ export const IdField: React.FC = () => {
59
60
  },
60
61
  }) => (
61
62
  <>
62
- {identifiers.map((identifier: PatientIdentifierValue, index) => (
63
- <IdentifierInput key={index} index={index} patientIdentifier={identifier} remove={remove} />
64
- ))}
63
+ {identifiers
64
+ .filter((identifier) => identifier.action !== 'DELETE')
65
+ .map((identifier: PatientIdentifierValue, index) => (
66
+ <IdentifierInput key={index} index={index} patientIdentifier={identifier} remove={remove} />
67
+ ))}
65
68
  {showIdentifierOverlay && (
66
69
  <IdentifierSelectionOverlay
67
70
  setFieldValue={setFieldValue}
68
- closeOverlay={() => setIdentifierOverlay(false)}
71
+ closeOverlay={() => setShowIdentifierOverlay(false)}
69
72
  push={push}
70
73
  identifiers={identifiers}
71
74
  remove={remove}
@@ -3,15 +3,15 @@ import styles from './identifier-selection.scss';
3
3
  import { useTranslation } from 'react-i18next';
4
4
  import { Button, Checkbox, Search, RadioButtonGroup, RadioButton } from 'carbon-components-react';
5
5
  import { PatientIdentifierType, PatientIdentifierValue } from '../../patient-registration-types';
6
- import Overlay from '../overlay';
6
+ import Overlay from '../../ui-components/overlay';
7
7
  import { ResourcesContext } from '../../../offline.resources';
8
8
 
9
9
  interface PatientIdentifierOverlayProps {
10
- setFieldValue: (string, any) => void;
10
+ setFieldValue: (string, PatientIdentifierValue) => void;
11
11
  closeOverlay: () => void;
12
- push: (obj: any) => void;
12
+ push: (obj: PatientIdentifierValue) => void;
13
13
  remove: <T>(index: number) => T;
14
- identifiers: PatientIdentifierValue[];
14
+ identifiers: Array<PatientIdentifierValue>;
15
15
  }
16
16
 
17
17
  const PatientIdentifierOverlay: React.FC<PatientIdentifierOverlayProps> = ({
@@ -21,42 +21,40 @@ const PatientIdentifierOverlay: React.FC<PatientIdentifierOverlayProps> = ({
21
21
  identifiers,
22
22
  remove,
23
23
  }) => {
24
- const { patientIdentifiers } = useContext(ResourcesContext);
25
- const [identifierTypes, setIdentifierTypes] = useState<PatientIdentifierType[]>([]);
24
+ const { identifierTypes } = useContext(ResourcesContext);
25
+ const [unsavedIdentifierTypes, setUnsavedIdentifierTypes] = useState<Array<PatientIdentifierType>>([]);
26
26
  const [searchString, setSearchString] = useState<string>('');
27
27
  const { t } = useTranslation();
28
- const getIdentifierByTypeUuid = useCallback(
29
- (identifierTypeUuid: string) => identifiers.find((identifier) => identifier.identifierType === identifierTypeUuid),
30
- [identifiers],
31
- );
28
+ const getIdentifierByTypeUuid = (identifierTypeUuid: string) =>
29
+ identifiers.find((identifier) => identifier.identifierTypeUuid === identifierTypeUuid);
32
30
 
33
31
  useEffect(() => {
34
- if (patientIdentifiers) {
35
- setIdentifierTypes(
36
- patientIdentifiers.map((identifierType) => {
32
+ if (identifierTypes) {
33
+ setUnsavedIdentifierTypes(
34
+ identifierTypes.map((identifierType) => {
37
35
  const identifier = getIdentifierByTypeUuid(identifierType.uuid);
38
36
  return {
39
37
  ...identifierType,
40
38
  checked: identifier ? identifier.action !== 'DELETE' : identifierType.isPrimary || identifierType.required,
41
- source:
42
- identifier?.source ?? identifierType.identifierSources.length > 0
43
- ? identifierType.identifierSources[0]
44
- : null,
39
+ source: identifier?.source ?? identifierType.identifierSources?.[0],
45
40
  };
46
41
  }),
47
42
  );
48
43
  }
49
- }, [patientIdentifiers, identifiers]);
44
+ }, [identifierTypes, identifiers]);
50
45
 
51
46
  const handleSearch = useCallback((event) => setSearchString(event?.target?.value ?? ''), []);
52
47
 
53
48
  const filteredIdentifiers = useMemo(
54
- () => identifierTypes?.filter((identifier) => identifier?.name?.toLowerCase().includes(searchString.toLowerCase())),
55
- [identifierTypes, searchString],
49
+ () =>
50
+ unsavedIdentifierTypes?.filter((identifier) =>
51
+ identifier?.name?.toLowerCase().includes(searchString.toLowerCase()),
52
+ ),
53
+ [unsavedIdentifierTypes, searchString],
56
54
  );
57
55
 
58
56
  const handleCheckingIdentifier = (uuid: string, checked: boolean) =>
59
- setIdentifierTypes((identifiers) =>
57
+ setUnsavedIdentifierTypes((identifiers) =>
60
58
  identifiers.map((identifier) =>
61
59
  identifier.uuid === uuid
62
60
  ? {
@@ -68,8 +66,8 @@ const PatientIdentifierOverlay: React.FC<PatientIdentifierOverlayProps> = ({
68
66
  );
69
67
 
70
68
  const handleSelectingIdentifierSource = (identifierTypeUuid, sourceUuid) =>
71
- setIdentifierTypes((identifierTypes) =>
72
- identifierTypes?.map((identifierType) =>
69
+ setUnsavedIdentifierTypes((unsavedIdentifierTypes) =>
70
+ unsavedIdentifierTypes?.map((identifierType) =>
73
71
  identifierType?.uuid === identifierTypeUuid
74
72
  ? {
75
73
  ...identifierType,
@@ -123,8 +121,8 @@ const PatientIdentifierOverlay: React.FC<PatientIdentifierOverlayProps> = ({
123
121
  );
124
122
 
125
123
  const handleConfiguringIdentifiers = useCallback(() => {
126
- identifierTypes.forEach((identifierType) => {
127
- const index = identifiers.findIndex((identifier) => identifier.identifierType === identifierType.uuid);
124
+ unsavedIdentifierTypes.forEach((identifierType) => {
125
+ const index = identifiers.findIndex((identifier) => identifier.identifierTypeUuid === identifierType.uuid);
128
126
  if (index >= 0) {
129
127
  const identifier = identifiers[index];
130
128
  if (!identifierType.checked && identifiers[index].action === 'ADD') {
@@ -148,19 +146,20 @@ const PatientIdentifierOverlay: React.FC<PatientIdentifierOverlayProps> = ({
148
146
  ...identifiers[index],
149
147
  action: action,
150
148
  source: action === 'ADD' || action === 'UPDATE' ? identifierType.source : null,
151
- } as PatientIdentifierValue);
149
+ });
152
150
  }
153
151
  } else if (identifierType.checked) {
154
152
  push({
155
153
  identifier: '',
156
154
  action: 'ADD',
157
155
  source: identifierType.source,
158
- identifierType: identifierType.uuid,
159
- } as PatientIdentifierValue);
156
+ identifierTypeUuid: identifierType.uuid,
157
+ preferred: identifierType.isPrimary,
158
+ });
160
159
  }
161
160
  });
162
161
  closeOverlay();
163
- }, [identifierTypes, identifiers]);
162
+ }, [unsavedIdentifierTypes, identifiers]);
164
163
 
165
164
  return (
166
165
  <Overlay
@@ -180,7 +179,7 @@ const PatientIdentifierOverlay: React.FC<PatientIdentifierOverlayProps> = ({
180
179
  <p className={styles.bodyLong02}>
181
180
  {t('IDInstructions', "Select the identifiers you'd like to add for this patient:")}
182
181
  </p>
183
- {identifierTypes.length > 7 && (
182
+ {unsavedIdentifierTypes.length > 7 && (
184
183
  <div className={styles.space05}>
185
184
  <Search
186
185
  labelText={t('searchIdentifierPlaceholder', 'Search identifier')}