@openmrs/esm-patient-allergies-app 11.3.1-patch.9310 → 11.3.1-patch.9508

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- var _openmrs_esm_patient_allergies_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g,b,y,w,_={30615:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(3753),t.e(5641),t.e(5434),t.e(600),t.e(3357)]).then((()=>()=>t(53357)))},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})}},P={};function j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);j.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>e+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-allergies-app:",j.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=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),l&&document.head.appendChild(i)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="@openmrs/esm-patient-allergies-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","8.0.1-pre.3485",(()=>Promise.all([j.e(9540),j.e(3753),j.e(5670),j.e(5641),j.e(8010),j.e(5434),j.e(8382),j.e(600)]).then((()=>()=>j(55670))))),l("@openmrs/esm-patient-common-lib","11.3.1-patch.9310",(()=>Promise.all([j.e(9540),j.e(3753),j.e(5641),j.e(8010),j.e(5434),j.e(8382),j.e(600),j.e(4341)]).then((()=>()=>j(94341))))),l("dayjs","1.11.13",(()=>j.e(3464).then((()=>()=>j(23464))))),l("react-i18next","16.0.0",(()=>Promise.all([j.e(6336),j.e(5641)]).then((()=>()=>j(16336))))),l("react-router-dom","6.16.0",(()=>Promise.all([j.e(2913),j.e(5641)]).then((()=>()=>j(52913))))),l("react","18.3.1",(()=>j.e(4041).then((()=>()=>j(14041))))),l("rxjs","6.6.7",(()=>j.e(2457).then((()=>()=>j(82457))))),l("swr/_internal","2.2.5",(()=>Promise.all([j.e(2372),j.e(5641)]).then((()=>()=>j(42372))))),l("swr/immutable","2.2.5",(()=>Promise.all([j.e(5641),j.e(5434),j.e(7495)]).then((()=>()=>j(29876))))),l("swr/infinite","2.2.5",(()=>Promise.all([j.e(5641),j.e(5434),j.e(89)]).then((()=>()=>j(52470)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e})(),o=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},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[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&&n!=i)return n<i;t++}},i=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 a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!s||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||p<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,i--)}}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?l(h,r):!c())}return!!c()},s=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!s(r,t))return m(e,t,a);var i=f(r,t,n);return l(o,i)||h(d(r,t,i,o)),u(r[t][i])})),g={},b={75641:()=>v("default","react",!1,[1,18,2,0],(()=>j.e(4041).then((()=>()=>j(14041))))),88010:()=>v("default","swr/immutable",!1,[1,2],(()=>j.e(9876).then((()=>()=>j(29876))))),55434:()=>v("default","swr/_internal",!1,[1,2],(()=>j.e(2372).then((()=>()=>j(42372))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>j.e(2913).then((()=>()=>j(52913))))),24818:()=>v("default","rxjs",!1,[1,6],(()=>j.e(2457).then((()=>()=>j(82457))))),46372:()=>v("default","dayjs",!1,[1,1],(()=>j.e(3464).then((()=>()=>j(23464))))),98394:()=>v("default","swr/infinite",!1,[1,2],(()=>j.e(2470).then((()=>()=>j(52470))))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([j.e(9540),j.e(5670),j.e(8010),j.e(8382)]).then((()=>()=>j(55670))))),72339:()=>v("default","react-i18next",!1,[1,16],(()=>j.e(6336).then((()=>()=>j(16336))))),36274:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,11],(()=>Promise.all([j.e(9540),j.e(8010),j.e(8382),j.e(4341)]).then((()=>()=>j(94341)))))},y={600:[54440,72339],3357:[36274],5434:[55434],5641:[75641],8010:[88010],8382:[8877,24818,46372,98394]},w={},j.f.consumes=(e,r)=>{j.o(y,e)&&y[e].forEach((e=>{if(j.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={9978:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(5434|5641|600|8010|8382)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,(t=>{if(j.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)j.o(i,n)&&(j.m[n]=i[n]);l&&l(j)}for(r&&r(t);s<a.length;s++)o=a[s],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(30615);_openmrs_esm_patient_allergies_app=S})();
1
+ var _openmrs_esm_patient_allergies_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,c,h,m,v,g,b,y,w,_={30615:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(3753),t.e(5641),t.e(5434),t.e(600),t.e(3357)]).then((()=>()=>t(53357)))},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})}},P={};function j(e){var r=P[e];if(void 0!==r)return r.exports;var t=P[e]={id:e,exports:{}};return _[e].call(t.exports,t,t.exports,j),t.exports}j.m=_,j.c=P,j.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return j.d(r,{a:r}),r},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,j.t=function(t,n){if(1&n&&(t=this(t)),8&n)return t;if("object"==typeof t&&t){if(4&n&&t.__esModule)return t;if(16&n&&"function"==typeof t.then)return t}var o=Object.create(null);j.r(o);var a={};e=e||[null,r({}),r([]),r(r)];for(var i=2&n&&t;"object"==typeof i&&!~e.indexOf(i);i=r(i))Object.getOwnPropertyNames(i).forEach((e=>a[e]=()=>t[e]));return a.default=()=>t,j.d(o,a),o},j.d=(e,r)=>{for(var t in r)j.o(r,t)&&!j.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},j.f={},j.e=e=>Promise.all(Object.keys(j.f).reduce(((r,t)=>(j.f[t](e,r),r)),[])),j.u=e=>e+".js",j.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),j.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t={},n="@openmrs/esm-patient-allergies-app:",j.l=(e,r,o,a)=>{if(t[e])t[e].push(r);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),u=0;u<s.length;u++){var p=s[u];if(p.getAttribute("src")==e||p.getAttribute("data-webpack")==n+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,j.nc&&i.setAttribute("nonce",j.nc),i.setAttribute("data-webpack",n+o),i.src=e),t[e]=[r];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=t[e];if(delete t[e],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},d=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),l&&document.head.appendChild(i)}},j.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{j.S={};var e={},r={};j.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];j.o(j.S,t)||(j.S[t]={});var a=j.S[t],i="@openmrs/esm-patient-allergies-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","8.0.1-pre.3554",(()=>Promise.all([j.e(8555),j.e(3753),j.e(5670),j.e(5641),j.e(8010),j.e(5434),j.e(8382),j.e(600)]).then((()=>()=>j(55670))))),l("@openmrs/esm-patient-common-lib","11.3.1-patch.9508",(()=>Promise.all([j.e(8555),j.e(3753),j.e(5641),j.e(8010),j.e(5434),j.e(8382),j.e(600),j.e(8803)]).then((()=>()=>j(18803))))),l("dayjs","1.11.13",(()=>j.e(3464).then((()=>()=>j(23464))))),l("react-i18next","16.0.0",(()=>Promise.all([j.e(6336),j.e(5641)]).then((()=>()=>j(16336))))),l("react-router-dom","6.16.0",(()=>Promise.all([j.e(2913),j.e(5641)]).then((()=>()=>j(52913))))),l("react","18.3.1",(()=>j.e(4041).then((()=>()=>j(14041))))),l("rxjs","6.6.7",(()=>j.e(2457).then((()=>()=>j(82457))))),l("swr/_internal","2.2.5",(()=>Promise.all([j.e(2372),j.e(5641)]).then((()=>()=>j(42372))))),l("swr/immutable","2.2.5",(()=>Promise.all([j.e(5641),j.e(5434),j.e(7495)]).then((()=>()=>j(29876))))),l("swr/infinite","2.2.5",(()=>Promise.all([j.e(5641),j.e(5434),j.e(89)]).then((()=>()=>j(52470)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;j.g.importScripts&&(e=j.g.location+"");var r=j.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),j.p=e})(),o=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},a=(e,r)=>{e=o(e),r=o(r);for(var t=0;;){if(t>=e.length)return t<r.length&&"u"!=(typeof r[t])[0];var n=e[t],a=(typeof n)[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&&n!=i)return n<i;t++}},i=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 a=[];for(o=1;o<e.length;o++){var l=e[o];a.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?a.pop()+" "+a.pop():i(l))}return s();function s(){return a.pop().replace(/^\((.+)\)$/,"$1")}},l=(e,r)=>{if(0 in e){r=o(r);var t=e[0],n=t<0;n&&(t=-t-1);for(var a=0,i=1,s=!0;;i++,a++){var u,p,f=i<e.length?(typeof e[i])[0]:"";if(a>=r.length||"o"==(p=(typeof(u=r[a]))[0]))return!s||("u"==f?i>t&&!n:""==f!=n);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(i<=t){if(u!=e[i])return!1}else{if(n?u>e[i]:u<e[i])return!1;u!=e[i]&&(s=!1)}else if("s"!=f&&"n"!=f){if(n||i<=t)return!1;s=!1,i--}else{if(i<=t||p<f!=n)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,i--)}}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?l(h,r):!c())}return!!c()},s=(e,r)=>e&&j.o(e,r),u=e=>(e.loaded=1,e.get()),p=e=>Object.keys(e).reduce(((r,t)=>(e[t].eager&&(r[t]=e[t]),r)),{}),f=(e,r,t)=>{var n=t?p(e[r]):e[r];return Object.keys(n).reduce(((e,r)=>!e||!n[e].loaded&&a(e,r)?r:e),0)},d=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+i(n)+")",c=e=>{throw new Error(e)},h=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},m=(e,r,t)=>t?t():((e,r)=>c("Shared module "+r+" doesn't exist in shared scope "+e))(e,r),v=(e=>function(r,t,n,o,a){var i=j.I(r);return i&&i.then&&!n?i.then(e.bind(e,r,j.S[r],t,!1,o,a)):e(r,j.S[r],t,n,o,a)})(((e,r,t,n,o,a)=>{if(!s(r,t))return m(e,t,a);var i=f(r,t,n);return l(o,i)||h(d(r,t,i,o)),u(r[t][i])})),g={},b={75641:()=>v("default","react",!1,[1,18,2,0],(()=>j.e(4041).then((()=>()=>j(14041))))),88010:()=>v("default","swr/immutable",!1,[1,2],(()=>j.e(9876).then((()=>()=>j(29876))))),55434:()=>v("default","swr/_internal",!1,[1,2],(()=>j.e(2372).then((()=>()=>j(42372))))),8877:()=>v("default","react-router-dom",!1,[1,6],(()=>j.e(2913).then((()=>()=>j(52913))))),24818:()=>v("default","rxjs",!1,[1,6],(()=>j.e(2457).then((()=>()=>j(82457))))),46372:()=>v("default","dayjs",!1,[1,1],(()=>j.e(3464).then((()=>()=>j(23464))))),98394:()=>v("default","swr/infinite",!1,[1,2],(()=>j.e(2470).then((()=>()=>j(52470))))),54440:()=>v("default","@openmrs/esm-framework",!1,[1,8],(()=>Promise.all([j.e(8555),j.e(5670),j.e(8010),j.e(8382)]).then((()=>()=>j(55670))))),72339:()=>v("default","react-i18next",!1,[1,16],(()=>j.e(6336).then((()=>()=>j(16336))))),36274:()=>v("default","@openmrs/esm-patient-common-lib",!1,[1,11],(()=>Promise.all([j.e(8555),j.e(8010),j.e(8382),j.e(8803)]).then((()=>()=>j(18803)))))},y={600:[54440,72339],3357:[36274],5434:[55434],5641:[75641],8010:[88010],8382:[8877,24818,46372,98394]},w={},j.f.consumes=(e,r)=>{j.o(y,e)&&y[e].forEach((e=>{if(j.o(g,e))return r.push(g[e]);if(!w[e]){var t=r=>{g[e]=0,j.m[e]=t=>{delete j.c[e],t.exports=r()}};w[e]=!0;var n=r=>{delete g[e],j.m[e]=t=>{throw delete j.c[e],r}};try{var o=b[e]();o.then?r.push(g[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}}))},(()=>{var e={9978:0};j.f.j=(r,t)=>{var n=j.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(5434|5641|600|8010|8382)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=j.p+j.u(r),i=new Error;j.l(a,(t=>{if(j.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)j.o(i,n)&&(j.m[n]=i[n]);l&&l(j)}for(r&&r(t);s<a.length;s++)o=a[s],j.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_allergies_app=globalThis.webpackChunk_openmrs_esm_patient_allergies_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),j.nc=void 0;var S=j(30615);_openmrs_esm_patient_allergies_app=S})();
@@ -24,6 +24,28 @@
24
24
  "hash": "0cee015d1111425a",
25
25
  "childrenByOrder": {}
26
26
  },
27
+ {
28
+ "rendered": true,
29
+ "initial": false,
30
+ "entry": false,
31
+ "recorded": false,
32
+ "size": 2086,
33
+ "sizes": {
34
+ "javascript": 2086
35
+ },
36
+ "names": [],
37
+ "idHints": [],
38
+ "runtime": [
39
+ "@openmrs/esm-patient-allergies-app",
40
+ "main"
41
+ ],
42
+ "files": [
43
+ "439.js"
44
+ ],
45
+ "auxiliaryFiles": [],
46
+ "hash": "19d1e0088409591e",
47
+ "childrenByOrder": {}
48
+ },
27
49
  {
28
50
  "rendered": false,
29
51
  "initial": false,
@@ -42,7 +64,7 @@
42
64
  ],
43
65
  "files": [],
44
66
  "auxiliaryFiles": [],
45
- "hash": "aecd8130a0379aa6",
67
+ "hash": "a38739bf0ecdf69d",
46
68
  "childrenByOrder": {}
47
69
  },
48
70
  {
@@ -353,10 +375,10 @@
353
375
  "initial": false,
354
376
  "entry": false,
355
377
  "recorded": false,
356
- "size": 136018,
378
+ "size": 136139,
357
379
  "sizes": {
358
380
  "consume-shared": 42,
359
- "javascript": 135976
381
+ "javascript": 136097
360
382
  },
361
383
  "names": [],
362
384
  "idHints": [],
@@ -369,7 +391,7 @@
369
391
  "auxiliaryFiles": [
370
392
  "3357.js.map"
371
393
  ],
372
- "hash": "e6646ad1280f97c3",
394
+ "hash": "0ab317fb6cf4d881",
373
395
  "childrenByOrder": {}
374
396
  },
375
397
  {
@@ -557,31 +579,6 @@
557
579
  "hash": "ea28118d8615f5b2",
558
580
  "childrenByOrder": {}
559
581
  },
560
- {
561
- "rendered": true,
562
- "initial": false,
563
- "entry": false,
564
- "recorded": false,
565
- "reason": "reused as split chunk (cache group: default)",
566
- "size": 256546,
567
- "sizes": {
568
- "javascript": 256546
569
- },
570
- "names": [],
571
- "idHints": [],
572
- "runtime": [
573
- "@openmrs/esm-patient-allergies-app",
574
- "main"
575
- ],
576
- "files": [
577
- "4341.js"
578
- ],
579
- "auxiliaryFiles": [
580
- "4341.js.map"
581
- ],
582
- "hash": "516cf09c8003b41f",
583
- "childrenByOrder": {}
584
- },
585
582
  {
586
583
  "rendered": true,
587
584
  "initial": false,
@@ -740,9 +737,9 @@
740
737
  "initial": false,
741
738
  "entry": false,
742
739
  "recorded": false,
743
- "size": 72548,
740
+ "size": 72388,
744
741
  "sizes": {
745
- "javascript": 72548
742
+ "javascript": 72388
746
743
  },
747
744
  "names": [],
748
745
  "idHints": [],
@@ -756,7 +753,7 @@
756
753
  "auxiliaryFiles": [
757
754
  "5563.js.map"
758
755
  ],
759
- "hash": "1111a45284e4f718",
756
+ "hash": "fdf9f137bbe16334",
760
757
  "childrenByOrder": {}
761
758
  },
762
759
  {
@@ -826,7 +823,7 @@
826
823
  "auxiliaryFiles": [
827
824
  "5670.js.map"
828
825
  ],
829
- "hash": "79a60f0778ba18de",
826
+ "hash": "cfea9e566f769591",
830
827
  "childrenByOrder": {}
831
828
  },
832
829
  {
@@ -900,6 +897,28 @@
900
897
  "hash": "7cc95ab6f96ec2af",
901
898
  "childrenByOrder": {}
902
899
  },
900
+ {
901
+ "rendered": true,
902
+ "initial": false,
903
+ "entry": false,
904
+ "recorded": false,
905
+ "size": 2086,
906
+ "sizes": {
907
+ "javascript": 2086
908
+ },
909
+ "names": [],
910
+ "idHints": [],
911
+ "runtime": [
912
+ "@openmrs/esm-patient-allergies-app",
913
+ "main"
914
+ ],
915
+ "files": [
916
+ "6589.js"
917
+ ],
918
+ "auxiliaryFiles": [],
919
+ "hash": "1569e546da04632c",
920
+ "childrenByOrder": {}
921
+ },
903
922
  {
904
923
  "rendered": true,
905
924
  "initial": false,
@@ -1172,6 +1191,28 @@
1172
1191
  "hash": "b971b45d2ded72a8",
1173
1192
  "childrenByOrder": {}
1174
1193
  },
1194
+ {
1195
+ "rendered": true,
1196
+ "initial": false,
1197
+ "entry": false,
1198
+ "recorded": false,
1199
+ "size": 2086,
1200
+ "sizes": {
1201
+ "javascript": 2086
1202
+ },
1203
+ "names": [],
1204
+ "idHints": [],
1205
+ "runtime": [
1206
+ "@openmrs/esm-patient-allergies-app",
1207
+ "main"
1208
+ ],
1209
+ "files": [
1210
+ "8371.js"
1211
+ ],
1212
+ "auxiliaryFiles": [],
1213
+ "hash": "12fff8e5ee7747bc",
1214
+ "childrenByOrder": {}
1215
+ },
1175
1216
  {
1176
1217
  "rendered": false,
1177
1218
  "initial": false,
@@ -1193,6 +1234,33 @@
1193
1234
  "hash": "79fbf3eccb883535",
1194
1235
  "childrenByOrder": {}
1195
1236
  },
1237
+ {
1238
+ "rendered": true,
1239
+ "initial": false,
1240
+ "entry": false,
1241
+ "recorded": false,
1242
+ "reason": "split chunk (cache group: defaultVendors)",
1243
+ "size": 4333875,
1244
+ "sizes": {
1245
+ "javascript": 4333875
1246
+ },
1247
+ "names": [],
1248
+ "idHints": [
1249
+ "vendors"
1250
+ ],
1251
+ "runtime": [
1252
+ "@openmrs/esm-patient-allergies-app",
1253
+ "main"
1254
+ ],
1255
+ "files": [
1256
+ "8555.js"
1257
+ ],
1258
+ "auxiliaryFiles": [
1259
+ "8555.js.map"
1260
+ ],
1261
+ "hash": "3f5515160bb8a195",
1262
+ "childrenByOrder": {}
1263
+ },
1196
1264
  {
1197
1265
  "rendered": true,
1198
1266
  "initial": false,
@@ -1220,10 +1288,10 @@
1220
1288
  "initial": true,
1221
1289
  "entry": true,
1222
1290
  "recorded": false,
1223
- "size": 2872280,
1291
+ "size": 2872401,
1224
1292
  "sizes": {
1225
1293
  "consume-shared": 210,
1226
- "javascript": 2848876,
1294
+ "javascript": 2848997,
1227
1295
  "share-init": 420,
1228
1296
  "runtime": 22774
1229
1297
  },
@@ -1240,7 +1308,7 @@
1240
1308
  "auxiliaryFiles": [
1241
1309
  "main.js.map"
1242
1310
  ],
1243
- "hash": "1b9db50bec3cac4d",
1311
+ "hash": "14c510826f85bdb9",
1244
1312
  "childrenByOrder": {}
1245
1313
  },
1246
1314
  {
@@ -1248,9 +1316,10 @@
1248
1316
  "initial": false,
1249
1317
  "entry": false,
1250
1318
  "recorded": false,
1251
- "size": 2151,
1319
+ "reason": "reused as split chunk (cache group: default)",
1320
+ "size": 251962,
1252
1321
  "sizes": {
1253
- "javascript": 2151
1322
+ "javascript": 251962
1254
1323
  },
1255
1324
  "names": [],
1256
1325
  "idHints": [],
@@ -1259,10 +1328,12 @@
1259
1328
  "main"
1260
1329
  ],
1261
1330
  "files": [
1262
- "9214.js"
1331
+ "8803.js"
1263
1332
  ],
1264
- "auxiliaryFiles": [],
1265
- "hash": "192af42fe8f2b94c",
1333
+ "auxiliaryFiles": [
1334
+ "8803.js.map"
1335
+ ],
1336
+ "hash": "637371b6d2033c52",
1266
1337
  "childrenByOrder": {}
1267
1338
  },
1268
1339
  {
@@ -1270,9 +1341,9 @@
1270
1341
  "initial": false,
1271
1342
  "entry": false,
1272
1343
  "recorded": false,
1273
- "size": 2319,
1344
+ "size": 2151,
1274
1345
  "sizes": {
1275
- "javascript": 2319
1346
+ "javascript": 2151
1276
1347
  },
1277
1348
  "names": [],
1278
1349
  "idHints": [],
@@ -1281,10 +1352,10 @@
1281
1352
  "main"
1282
1353
  ],
1283
1354
  "files": [
1284
- "9538.js"
1355
+ "9214.js"
1285
1356
  ],
1286
1357
  "auxiliaryFiles": [],
1287
- "hash": "3884eeb4a89b0f55",
1358
+ "hash": "192af42fe8f2b94c",
1288
1359
  "childrenByOrder": {}
1289
1360
  },
1290
1361
  {
@@ -1292,26 +1363,21 @@
1292
1363
  "initial": false,
1293
1364
  "entry": false,
1294
1365
  "recorded": false,
1295
- "reason": "split chunk (cache group: defaultVendors)",
1296
- "size": 4325392,
1366
+ "size": 2319,
1297
1367
  "sizes": {
1298
- "javascript": 4325392
1368
+ "javascript": 2319
1299
1369
  },
1300
1370
  "names": [],
1301
- "idHints": [
1302
- "vendors"
1303
- ],
1371
+ "idHints": [],
1304
1372
  "runtime": [
1305
1373
  "@openmrs/esm-patient-allergies-app",
1306
1374
  "main"
1307
1375
  ],
1308
1376
  "files": [
1309
- "9540.js"
1310
- ],
1311
- "auxiliaryFiles": [
1312
- "9540.js.map"
1377
+ "9538.js"
1313
1378
  ],
1314
- "hash": "c9817e6beb7ecc49",
1379
+ "auxiliaryFiles": [],
1380
+ "hash": "3884eeb4a89b0f55",
1315
1381
  "childrenByOrder": {}
1316
1382
  },
1317
1383
  {
@@ -1472,7 +1538,7 @@
1472
1538
  "auxiliaryFiles": [
1473
1539
  "openmrs-esm-patient-allergies-app.js.map"
1474
1540
  ],
1475
- "hash": "171e1265aad5b902",
1541
+ "hash": "f53d43fc0bf07275",
1476
1542
  "childrenByOrder": {}
1477
1543
  }
1478
1544
  ]
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"allergy-tile","component":"allergiesTile","slot":"patient-details-header-slot","online":true,"offline":true,"order":3},{"name":"allergies-list","component":"allergiesList","slot":"allergy-list-pills-slot"},{"name":"allergies-details-widget","component":"allergiesDetailedSummary","slot":"patient-chart-allergies-dashboard-slot","online":true,"offline":true},{"name":"allergies-summary-dashboard","component":"allergiesDashboardLink","slot":"patient-chart-dashboard-slot","online":true,"offline":true,"order":6,"meta":{"slot":"patient-chart-allergies-dashboard-slot","path":"Allergies"}}],"modals":[{"name":"delete-allergy-modal","component":"deleteAllergyModal"}],"workspaces2":[{"name":"patient-allergy-form-workspace","component":"allergyFormWorkspace","window":"patient-allergy-form-window"}],"workspaceWindows2":[{"name":"patient-allergy-form-window","group":"patient-chart"}],"version":"11.3.1-patch.9310"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"allergy-tile","component":"allergiesTile","slot":"patient-details-header-slot","online":true,"offline":true,"order":3},{"name":"allergies-list","component":"allergiesList","slot":"allergy-list-pills-slot"},{"name":"allergies-details-widget","component":"allergiesDetailedSummary","slot":"patient-chart-allergies-dashboard-slot","online":true,"offline":true},{"name":"allergies-summary-dashboard","component":"allergiesDashboardLink","slot":"patient-chart-dashboard-slot","online":true,"offline":true,"order":6,"meta":{"slot":"patient-chart-allergies-dashboard-slot","path":"Allergies"}}],"modals":[{"name":"delete-allergy-modal","component":"deleteAllergyModal"}],"workspaces":[{"name":"patient-allergy-form-workspace","title":"recordNewAllergy","component":"allergyFormWorkspace","type":"form"}],"version":"11.3.1-patch.9508"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-allergies-app",
3
- "version": "11.3.1-patch.9310",
3
+ "version": "11.3.1-patch.9508",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Patient allergies microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-patient-allergies-app.js",
@@ -51,7 +51,7 @@
51
51
  "swr": "2.x"
52
52
  },
53
53
  "devDependencies": {
54
- "@openmrs/esm-patient-common-lib": "11.3.1-patch.9310",
54
+ "@openmrs/esm-patient-common-lib": "11.3.1-patch.9508",
55
55
  "webpack": "^5.99.9"
56
56
  },
57
57
  "stableVersion": "11.3.0"
@@ -1,7 +1,7 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Layer, OverflowMenu, OverflowMenuItem } from '@carbon/react';
4
- import { launchWorkspace2, showModal, useLayoutType } from '@openmrs/esm-framework';
4
+ import { launchWorkspace, showModal, useLayoutType } from '@openmrs/esm-framework';
5
5
  import { type Allergy } from '../types';
6
6
  import { patientAllergiesFormWorkspace } from '../constants';
7
7
  import styles from './allergies-action-menu.scss';
@@ -16,11 +16,12 @@ export const AllergiesActionMenu = ({ allergy, patientUuid }: allergiesActionMen
16
16
  const isTablet = useLayoutType() === 'tablet';
17
17
 
18
18
  const launchEditAllergiesForm = useCallback(() => {
19
- launchWorkspace2(patientAllergiesFormWorkspace, {
19
+ launchWorkspace(patientAllergiesFormWorkspace, {
20
+ workspaceTitle: t('editAllergy', 'Edit an allergy'),
20
21
  allergy,
21
22
  formContext: 'editing',
22
23
  });
23
- }, [allergy]);
24
+ }, [allergy, t]);
24
25
 
25
26
  const launchDeleteAllergyDialog = (allergyId: string) => {
26
27
  const dispose = showModal('delete-allergy-modal', {
@@ -13,7 +13,7 @@ import {
13
13
  TableHeader,
14
14
  TableRow,
15
15
  } from '@carbon/react';
16
- import { AddIcon, formatDate, launchWorkspace2, parseDate, useLayoutType } from '@openmrs/esm-framework';
16
+ import { AddIcon, formatDate, launchWorkspace, parseDate, useLayoutType } from '@openmrs/esm-framework';
17
17
  import { CardHeader, EmptyState, ErrorState } from '@openmrs/esm-patient-common-lib';
18
18
  import { patientAllergiesFormWorkspace } from '../constants';
19
19
  import { useAllergies } from './allergy-intolerance.resource';
@@ -33,7 +33,7 @@ const AllergiesDetailedSummary: React.FC<AllergiesDetailedSummaryProps> = ({ pat
33
33
  const displayText = t('allergyIntolerances', 'allergy intolerances');
34
34
  const headerTitle = t('allergies', 'Allergies');
35
35
 
36
- const launchAllergiesForm = useCallback(() => launchWorkspace2(patientAllergiesFormWorkspace), []);
36
+ const launchAllergiesForm = useCallback(() => launchWorkspace(patientAllergiesFormWorkspace), []);
37
37
 
38
38
  const tableHeaders = [
39
39
  { key: 'display', header: t('allergen', 'Allergen') },
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import userEvent from '@testing-library/user-event';
3
3
  import { screen, render } from '@testing-library/react';
4
4
  import { getDefaultsFromConfigSchema, showSnackbar, useConfig } from '@openmrs/esm-framework';
5
- import { type PatientWorkspace2DefinitionProps } from '@openmrs/esm-patient-common-lib';
6
5
  import { mockAllergens, mockAllergicReactions, mockAllergy } from '__mocks__';
7
6
  import { mockPatient } from 'tools';
8
7
  import {
@@ -13,7 +12,7 @@ import {
13
12
  updatePatientAllergy,
14
13
  } from './allergy-form.resource';
15
14
  import { type AllergiesConfigObject, configSchema } from '../../config-schema';
16
- import AllergyForm, { type AllergyFormWorkspaceProps } from './allergy-form.workspace';
15
+ import AllergyForm from './allergy-form.workspace';
17
16
 
18
17
  const mockSaveAllergy = jest.mocked(saveAllergy);
19
18
  const mockShowSnackbar = jest.mocked(showSnackbar);
@@ -198,35 +197,21 @@ describe('AllergyForm', () => {
198
197
  });
199
198
  });
200
199
 
201
- function renderAllergyForm(workspaceProps: Partial<AllergyFormWorkspaceProps> = {}) {
202
- const defaultProps: PatientWorkspace2DefinitionProps<AllergyFormWorkspaceProps, {}> = {
203
- workspaceProps: {
204
- allergy: null,
205
- formContext: 'creating' as 'creating' | 'editing',
206
- },
207
- groupProps: {
208
- patient: mockPatient,
209
- patientUuid: mockPatient.id,
210
- visitContext: null,
211
- mutateVisitContext: null,
212
- },
213
- closeWorkspace: jest.fn(),
214
- launchChildWorkspace: jest.fn(),
215
- windowProps: {},
216
- workspaceName: '',
217
- windowName: '',
218
- isRootWorkspace: false,
219
- };
220
-
221
- const props = {
222
- ...defaultProps,
223
- workspaceProps: {
224
- ...defaultProps.workspaceProps,
225
- ...workspaceProps,
226
- },
200
+ function renderAllergyForm(props = {}) {
201
+ const defaultProps = {
202
+ allergy: null,
203
+ closeWorkspace: () => {},
204
+ closeWorkspaceWithSavedChanges: () => {},
205
+ formContext: 'creating' as 'creating' | 'editing',
206
+ patient: mockPatient,
207
+ patientUuid: mockPatient.id,
208
+ promptBeforeClosing: () => {},
209
+ setTitle: jest.fn(),
210
+ visitContext: null,
211
+ mutateVisitContext: null,
227
212
  };
228
213
 
229
- render(<AllergyForm {...props} />);
214
+ render(<AllergyForm {...defaultProps} {...props} />);
230
215
  }
231
216
 
232
217
  function buildExpectedPayload(allergen, reaction, severity, comment) {