@openmrs/esm-patient-conditions-app 8.2.1-pre.6224 → 8.2.1-pre.6228

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- var _openmrs_esm_patient_conditions_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,d,f,c,h,m={3801:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(917),t.e(163),t.e(343),t.e(112),t.e(853),t.e(688)]).then((()=>()=>t(9688)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function g(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,g),t.loaded=!0,t.exports}g.m=m,g.c=v,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-conditions-app:",g.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(f);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-patient-conditions-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","5.8.2-pre.2479",(()=>Promise.all([g.e(367),g.e(343)]).then((()=>()=>g(367))))),s("@openmrs/esm-patient-common-lib","8.2.1-pre.6224",(()=>Promise.all([g.e(917),g.e(163),g.e(343),g.e(112),g.e(510),g.e(853)]).then((()=>()=>g(2510))))),s("dayjs","1.11.11",(()=>g.e(464).then((()=>()=>g(3464))))),s("react-i18next","11.18.6",(()=>Promise.all([g.e(343),g.e(449)]).then((()=>()=>g(7449))))),s("react-router-dom","6.16.0",(()=>Promise.all([g.e(913),g.e(343)]).then((()=>()=>g(2913))))),s("react","18.3.1",(()=>g.e(41).then((()=>()=>g(4041))))),s("swr/_internal","2.2.4",(()=>Promise.all([g.e(74),g.e(343)]).then((()=>()=>g(9074))))),s("swr/immutable","2.2.4",(()=>Promise.all([g.e(917),g.e(343),g.e(112),g.e(610)]).then((()=>()=>g(2610)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;g.g.importScripts&&(e=g.g.location+"");var r=g.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(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=e})(),t=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},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=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,a=1;a<e.length;a++)n--,t+="u"==(typeof(s=e[a]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():o(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,d=s<e.length?(typeof e[s])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!l||("u"==d?s>n&&!o:""==d!=o);if("u"==p){if(!l||"u"!=d)return!1}else if(l)if(d==p)if(s<=n){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=d&&"n"!=d){if(o||s<=n)return!1;l=!1,s--}else{if(s<=n||p<d!=o)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,s--)}}var f=[],c=f.pop.bind(f);for(i=1;i<e.length;i++){var h=e[i];f.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||u(s(e,t,o,n)),p(e[t][o])},u=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=g.I(r);return a&&a.then?a.then(e.bind(e,r,g.S[r],t,n,o)):e(0,g.S[r],t,n,o)})(((e,r,t,n,o)=>r&&g.o(r,t)?l(r,0,t,n):o())),f={},c={1343:()=>d("default","react",[1,18],(()=>g.e(41).then((()=>()=>g(4041))))),6112:()=>d("default","swr/_internal",[1,2],(()=>g.e(74).then((()=>()=>g(9074))))),5260:()=>d("default","swr/immutable",[1,2],(()=>g.e(229).then((()=>()=>g(2610))))),8877:()=>d("default","react-router-dom",[1,6],(()=>g.e(913).then((()=>()=>g(2913))))),1083:()=>d("default","@openmrs/esm-framework",[1,5],(()=>g.e(367).then((()=>()=>g(367))))),3150:()=>d("default","react-i18next",[1,11],(()=>g.e(830).then((()=>()=>g(7449))))),6966:()=>d("default","@openmrs/esm-patient-common-lib",[1,8],(()=>g.e(510).then((()=>()=>g(2510))))),6372:()=>d("default","dayjs",[1,1],(()=>g.e(464).then((()=>()=>g(3464)))))},h={112:[6112],343:[1343],436:[6372],510:[5260,8877],853:[1083,3150,6966]},g.f.consumes=(e,r)=>{g.o(h,e)&&h[e].forEach((e=>{if(g.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,g.m[e]=t=>{delete g.c[e],t.exports=r()}},n=r=>{delete f[e],g.m[e]=t=>{throw delete g.c[e],r}};try{var o=c[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={0:0};g.f.j=(r,t)=>{var n=g.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(112|343|853)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=g.p+g.u(r),i=new Error;g.l(a,(t=>{if(g.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)g.o(i,n)&&(g.m[n]=i[n]);s&&s(g)}for(r&&r(t);l<a.length;l++)o=a[l],g.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_conditions_app=globalThis.webpackChunk_openmrs_esm_patient_conditions_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),g.nc=void 0;var b=g(3801);_openmrs_esm_patient_conditions_app=b})();
1
+ var _openmrs_esm_patient_conditions_app;(()=>{"use strict";var e,r,t,n,o,a,i,s,l,u,p,d,f,c,h,m={3801:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(917),t.e(163),t.e(343),t.e(112),t.e(853),t.e(688)]).then((()=>()=>t(9688)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},v={};function g(e){var r=v[e];if(void 0!==r)return r.exports;var t=v[e]={id:e,loaded:!1,exports:{}};return m[e].call(t.exports,t,t.exports,g),t.loaded=!0,t.exports}g.m=m,g.c=v,g.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return g.d(r,{a:r}),r},g.d=(e,r)=>{for(var t in r)g.o(r,t)&&!g.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},g.f={},g.e=e=>Promise.all(Object.keys(g.f).reduce(((r,t)=>(g.f[t](e,r),r)),[])),g.u=e=>e+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),g.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-conditions-app:",g.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var p=l[u];if(p.getAttribute("src")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(s=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,g.nc&&i.setAttribute("nonce",g.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var d=(r,n)=>{i.onerror=i.onload=null,clearTimeout(f);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=d.bind(null,i.onerror),i.onload=d.bind(null,i.onload),s&&document.head.appendChild(i)}},g.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},g.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{g.S={};var e={},r={};g.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];g.o(g.S,t)||(g.S[t]={});var a=g.S[t],i="@openmrs/esm-patient-conditions-app",s=(e,r,t,n)=>{var o=a[e]=a[e]||{},s=o[r];(!s||!s.loaded&&(!n!=!s.eager?n:i>s.from))&&(o[r]={get:t,from:i,eager:!!n})},l=[];return"default"===t&&(s("@openmrs/esm-framework","5.8.2-pre.2479",(()=>Promise.all([g.e(367),g.e(343)]).then((()=>()=>g(367))))),s("@openmrs/esm-patient-common-lib","8.2.1-pre.6228",(()=>Promise.all([g.e(917),g.e(163),g.e(343),g.e(112),g.e(510),g.e(853)]).then((()=>()=>g(2510))))),s("dayjs","1.11.11",(()=>g.e(464).then((()=>()=>g(3464))))),s("react-i18next","11.18.6",(()=>Promise.all([g.e(343),g.e(449)]).then((()=>()=>g(7449))))),s("react-router-dom","6.16.0",(()=>Promise.all([g.e(913),g.e(343)]).then((()=>()=>g(2913))))),s("react","18.3.1",(()=>g.e(41).then((()=>()=>g(4041))))),s("swr/_internal","2.2.4",(()=>Promise.all([g.e(74),g.e(343)]).then((()=>()=>g(9074))))),s("swr/immutable","2.2.4",(()=>Promise.all([g.e(917),g.e(343),g.e(112),g.e(610)]).then((()=>()=>g(2610)))))),e[t]=l.length?Promise.all(l).then((()=>e[t]=1)):1}}})(),(()=>{var e;g.g.importScripts&&(e=g.g.location+"");var r=g.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(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),g.p=e})(),t=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},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],s=(typeof i)[0];if(a!=s)return"o"==a&&"n"==s||"s"==s||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=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,a=1;a<e.length;a++)n--,t+="u"==(typeof(s=e[a]))[0]?"-":(n>0?".":"")+(n=2,s);return t}var i=[];for(a=1;a<e.length;a++){var s=e[a];i.push(0===s?"not("+l()+")":1===s?"("+l()+" || "+l()+")":2===s?i.pop()+" "+i.pop():o(s))}return l();function l(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,s=1,l=!0;;s++,i++){var u,p,d=s<e.length?(typeof e[s])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!l||("u"==d?s>n&&!o:""==d!=o);if("u"==p){if(!l||"u"!=d)return!1}else if(l)if(d==p)if(s<=n){if(u!=e[s])return!1}else{if(o?u>e[s]:u<e[s])return!1;u!=e[s]&&(l=!1)}else if("s"!=d&&"n"!=d){if(o||s<=n)return!1;l=!1,s--}else{if(s<=n||p<d!=o)return!1;l=!1}else"s"!=d&&"n"!=d&&(l=!1,s--)}}var f=[],c=f.pop.bind(f);for(i=1;i<e.length;i++){var h=e[i];f.push(1==h?c()|c():2==h?c()&c():h?a(h,r):!c())}return!!c()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},s=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",l=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||u(s(e,t,o,n)),p(e[t][o])},u=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},p=e=>(e.loaded=1,e.get()),d=(e=>function(r,t,n,o){var a=g.I(r);return a&&a.then?a.then(e.bind(e,r,g.S[r],t,n,o)):e(0,g.S[r],t,n,o)})(((e,r,t,n,o)=>r&&g.o(r,t)?l(r,0,t,n):o())),f={},c={1343:()=>d("default","react",[1,18],(()=>g.e(41).then((()=>()=>g(4041))))),6112:()=>d("default","swr/_internal",[1,2],(()=>g.e(74).then((()=>()=>g(9074))))),5260:()=>d("default","swr/immutable",[1,2],(()=>g.e(229).then((()=>()=>g(2610))))),8877:()=>d("default","react-router-dom",[1,6],(()=>g.e(913).then((()=>()=>g(2913))))),1083:()=>d("default","@openmrs/esm-framework",[1,5],(()=>g.e(367).then((()=>()=>g(367))))),3150:()=>d("default","react-i18next",[1,11],(()=>g.e(830).then((()=>()=>g(7449))))),6966:()=>d("default","@openmrs/esm-patient-common-lib",[1,8],(()=>g.e(510).then((()=>()=>g(2510))))),6372:()=>d("default","dayjs",[1,1],(()=>g.e(464).then((()=>()=>g(3464)))))},h={112:[6112],343:[1343],436:[6372],510:[5260,8877],853:[1083,3150,6966]},g.f.consumes=(e,r)=>{g.o(h,e)&&h[e].forEach((e=>{if(g.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,g.m[e]=t=>{delete g.c[e],t.exports=r()}},n=r=>{delete f[e],g.m[e]=t=>{throw delete g.c[e],r}};try{var o=c[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={0:0};g.f.j=(r,t)=>{var n=g.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(112|343|853)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=g.p+g.u(r),i=new Error;g.l(a,(t=>{if(g.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,s]=t,l=0;if(a.some((r=>0!==e[r]))){for(n in i)g.o(i,n)&&(g.m[n]=i[n]);s&&s(g)}for(r&&r(t);l<a.length;l++)o=a[l],g.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_conditions_app=globalThis.webpackChunk_openmrs_esm_patient_conditions_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),g.nc=void 0;var b=g(3801);_openmrs_esm_patient_conditions_app=b})();
@@ -24,7 +24,7 @@
24
24
  "auxiliaryFiles": [
25
25
  "openmrs-esm-patient-conditions-app.js.map"
26
26
  ],
27
- "hash": "0d9e16ee7839bd9f",
27
+ "hash": "6e8ce112e16ed376",
28
28
  "childrenByOrder": {}
29
29
  },
30
30
  {
@@ -494,30 +494,6 @@
494
494
  "hash": "ac6282636bd74a2a",
495
495
  "childrenByOrder": {}
496
496
  },
497
- {
498
- "rendered": true,
499
- "initial": false,
500
- "entry": false,
501
- "recorded": false,
502
- "size": 9034,
503
- "sizes": {
504
- "javascript": 9034
505
- },
506
- "names": [],
507
- "idHints": [],
508
- "runtime": [
509
- "@openmrs/esm-patient-conditions-app",
510
- "main"
511
- ],
512
- "files": [
513
- "407.js"
514
- ],
515
- "auxiliaryFiles": [
516
- "407.js.map"
517
- ],
518
- "hash": "1fb2577c18b3ed7c",
519
- "childrenByOrder": {}
520
- },
521
497
  {
522
498
  "rendered": true,
523
499
  "initial": false,
@@ -779,9 +755,9 @@
779
755
  "initial": false,
780
756
  "entry": false,
781
757
  "recorded": false,
782
- "size": 145965,
758
+ "size": 146011,
783
759
  "sizes": {
784
- "javascript": 145965
760
+ "javascript": 146011
785
761
  },
786
762
  "names": [],
787
763
  "idHints": [],
@@ -794,7 +770,7 @@
794
770
  "auxiliaryFiles": [
795
771
  "688.js.map"
796
772
  ],
797
- "hash": "d20e46fb13baaee0",
773
+ "hash": "9d24ea7e7f565db9",
798
774
  "childrenByOrder": {}
799
775
  },
800
776
  {
@@ -841,15 +817,39 @@
841
817
  "hash": "0ef07ee8bf24f418",
842
818
  "childrenByOrder": {}
843
819
  },
820
+ {
821
+ "rendered": true,
822
+ "initial": false,
823
+ "entry": false,
824
+ "recorded": false,
825
+ "size": 13825,
826
+ "sizes": {
827
+ "javascript": 13825
828
+ },
829
+ "names": [],
830
+ "idHints": [],
831
+ "runtime": [
832
+ "@openmrs/esm-patient-conditions-app",
833
+ "main"
834
+ ],
835
+ "files": [
836
+ "771.js"
837
+ ],
838
+ "auxiliaryFiles": [
839
+ "771.js.map"
840
+ ],
841
+ "hash": "aba9441c9b069e74",
842
+ "childrenByOrder": {}
843
+ },
844
844
  {
845
845
  "rendered": true,
846
846
  "initial": true,
847
847
  "entry": true,
848
848
  "recorded": false,
849
- "size": 2532390,
849
+ "size": 2532436,
850
850
  "sizes": {
851
851
  "consume-shared": 210,
852
- "javascript": 2510438,
852
+ "javascript": 2510484,
853
853
  "share-init": 336,
854
854
  "runtime": 21406
855
855
  },
@@ -866,7 +866,7 @@
866
866
  "auxiliaryFiles": [
867
867
  "main.js.map"
868
868
  ],
869
- "hash": "e24283ebace1f1c7",
869
+ "hash": "b6fb8d892c3df6ca",
870
870
  "childrenByOrder": {}
871
871
  },
872
872
  {
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":"conditions-overview-widget","slot":"patient-chart-summary-dashboard-slot","component":"conditionsOverview","order":3,"meta":{"fullWidth":false}},{"name":"conditions-details-widget","slot":"patient-chart-conditions-dashboard-slot","component":"conditionsDetailedSummary","meta":{"fullWidth":false}},{"name":"conditions-summary-dashboard","component":"conditionsDashboardLink","slot":"patient-chart-dashboard-slot","order":7,"meta":{"slot":"patient-chart-conditions-dashboard-slot","path":"Conditions"}},{"name":"conditions-widget","component":"conditionsWidget"},{"name":"condition-delete-confirmation-dialog","component":"conditionDeleteConfirmationDialog"}],"workspaces":[{"name":"conditions-form-workspace","title":"recordCondition","component":"conditionsFormWorkspace"}],"version":"8.2.1-pre.6224"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":"^2.2.0"},"extensions":[{"name":"conditions-overview-widget","slot":"patient-chart-summary-dashboard-slot","component":"conditionsOverview","order":3,"meta":{"fullWidth":false}},{"name":"conditions-details-widget","slot":"patient-chart-conditions-dashboard-slot","component":"conditionsDetailedSummary","meta":{"fullWidth":false}},{"name":"conditions-summary-dashboard","component":"conditionsDashboardLink","slot":"patient-chart-dashboard-slot","order":7,"meta":{"slot":"patient-chart-conditions-dashboard-slot","path":"Conditions"}},{"name":"conditions-widget","component":"conditionsWidget"},{"name":"condition-delete-confirmation-dialog","component":"conditionDeleteConfirmationDialog"}],"workspaces":[{"name":"conditions-form-workspace","title":"recordCondition","component":"conditionsFormWorkspace"}],"version":"8.2.1-pre.6228"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-conditions-app",
3
- "version": "8.2.1-pre.6224",
3
+ "version": "8.2.1-pre.6228",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Patient conditions microfrontend for the OpenMRS SPA",
6
6
  "browser": "dist/openmrs-esm-patient-conditions-app.js",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@carbon/react": "^1.12.0",
41
- "@openmrs/esm-patient-common-lib": "^8.2.1-pre.6224",
41
+ "@openmrs/esm-patient-common-lib": "^8.2.1-pre.6228",
42
42
  "lodash-es": "^4.17.21"
43
43
  },
44
44
  "peerDependencies": {
@@ -52,7 +52,7 @@
52
52
  "swr": "2.x"
53
53
  },
54
54
  "devDependencies": {
55
- "@openmrs/esm-patient-common-lib": "8.2.1-pre.6224",
55
+ "@openmrs/esm-patient-common-lib": "8.2.1-pre.6228",
56
56
  "webpack": "^5.94.0"
57
57
  },
58
58
  "stableVersion": "8.2.0"
@@ -204,7 +204,7 @@ const ConditionsOverview: React.FC<ConditionsOverviewProps> = ({ patientUuid })
204
204
  <TableCell key={cell.id}>{cell.value?.content ?? cell.value}</TableCell>
205
205
  ))}
206
206
  <TableCell className="cds--table-column-menu">
207
- <ConditionsActionMenu condition={row} />
207
+ <ConditionsActionMenu condition={row} patientUuid={patientUuid} />
208
208
  </TableCell>
209
209
  </TableRow>
210
210
  ))}
@@ -3,6 +3,7 @@ import { useTranslation } from 'react-i18next';
3
3
  import { Button, InlineLoading, ModalBody, ModalFooter, ModalHeader } from '@carbon/react';
4
4
  import { showSnackbar } from '@openmrs/esm-framework';
5
5
  import { deleteCondition, useConditions } from './conditions.resource';
6
+ import styles from './delete-condition.scss';
6
7
 
7
8
  interface DeleteConditionModalProps {
8
9
  closeDeleteModal: () => void;
@@ -19,17 +20,15 @@ const DeleteConditionModal: React.FC<DeleteConditionModalProps> = ({ closeDelete
19
20
  setIsDeleting(true);
20
21
 
21
22
  try {
22
- const res = await deleteCondition(conditionId);
23
+ await deleteCondition(conditionId);
24
+ await mutate();
23
25
 
24
- if (res.status === 200) {
25
- mutate();
26
- closeDeleteModal();
27
- showSnackbar({
28
- isLowContrast: true,
29
- kind: 'success',
30
- title: t('conditionDeleted', 'Condition deleted'),
31
- });
32
- }
26
+ closeDeleteModal();
27
+ showSnackbar({
28
+ isLowContrast: true,
29
+ kind: 'success',
30
+ title: t('conditionDeleted', 'Condition deleted'),
31
+ });
33
32
  } catch (error) {
34
33
  console.error('Error deleting condition: ', error);
35
34
 
@@ -52,7 +51,7 @@ const DeleteConditionModal: React.FC<DeleteConditionModalProps> = ({ closeDelete
52
51
  <Button kind="secondary" onClick={closeDeleteModal}>
53
52
  {t('cancel', 'Cancel')}
54
53
  </Button>
55
- <Button kind="danger" onClick={handleDelete} disabled={isDeleting}>
54
+ <Button className={styles.deleteButton} kind="danger" onClick={handleDelete} disabled={isDeleting}>
56
55
  {isDeleting ? (
57
56
  <InlineLoading description={t('deleting', 'Deleting') + '...'} />
58
57
  ) : (
@@ -0,0 +1,7 @@
1
+ @use '@carbon/layout';
2
+
3
+ .deleteButton {
4
+ :global(.cds--inline-loading) {
5
+ min-height: layout.$spacing-05;
6
+ }
7
+ }
package/dist/407.js DELETED
@@ -1 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_patient_conditions_app=globalThis.webpackChunk_openmrs_esm_patient_conditions_app||[]).push([[407],{2407:(e,t,n)=>{n.r(t),n.d(t,{default:()=>f});var r=n(1343),o=n.n(r),l=n(3150),i=n(2317),a=n(1083),u=n(1825);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t,n,r,o,l,i){try{var a=e[l](i),u=a.value}catch(e){return void n(e)}a.done?t(u):Promise.resolve(u).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var l=e.apply(t,n);function i(e){s(l,r,o,i,a,"next",e)}function a(e){s(l,r,o,i,a,"throw",e)}i(void 0)}))}}const f=function(e){var t,n,s=e.closeDeleteModal,f=e.conditionId,p=e.patientUuid,h=(0,l.useTranslation)().t,b=(0,u.AS)(p).mutate,y=(t=(0,r.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,l=[],i=!0,a=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(l.push(r.value),!t||l.length!==t);i=!0);}catch(e){a=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return l}}(t,n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),m=y[0],v=y[1],w=(0,r.useCallback)(d((function(){var e;return function(e,t){var n,r,o,l,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}}(this,(function(t){switch(t.label){case 0:v(!0),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,(0,u.ni)(f)];case 2:return 200===t.sent().status&&(b(),s(),(0,a.showSnackbar)({isLowContrast:!0,kind:"success",title:h("conditionDeleted","Condition deleted")})),[3,4];case 3:return e=t.sent(),console.error("Error deleting condition: ",e),(0,a.showSnackbar)({isLowContrast:!1,kind:"error",title:h("errorDeletingCondition","Error deleting condition"),subtitle:null==e?void 0:e.message}),[3,4];case 4:return[2]}}))})),[s,f,b,h]);return o().createElement("div",null,o().createElement(i.rQ0,{closeModal:s,title:h("deleteCondition","Delete condition")}),o().createElement(i.cwr,null,o().createElement("p",null,h("deleteModalConfirmationText","Are you sure you want to delete this condition?"))),o().createElement(i.jlY,null,o().createElement(i.$nd,{kind:"secondary",onClick:s},h("cancel","Cancel")),o().createElement(i.$nd,{kind:"danger",onClick:w,disabled:m},m?o().createElement(i.OuH,{description:h("deleting","Deleting")+"..."}):o().createElement("span",null,h("delete","Delete")))))}}}]);
package/dist/407.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"407.js","mappings":"wqBAkEA,QAtDkE,Y,QAAGA,EAAAA,EAAAA,iBAAkBC,EAAAA,EAAAA,YAAaC,EAAAA,EAAAA,YAC5F,GAAQC,EAAAA,EAAAA,kBAANC,EACF,GAAaC,EAAAA,EAAAA,IAAcH,GAAzBI,OAC4BC,G,GAAAA,EAAAA,EAAAA,WAAS,G,EAAA,E,+zBAAtCC,EAA6BD,EAAAA,GAAjBE,EAAiBF,EAAAA,GAE9BG,GAAeC,EAAAA,EAAAA,aAAY,c,IAetBC,E,qlCAdTH,GAAc,G,iBAGA,O,sBAAA,C,GAAMI,EAAAA,EAAAA,IAAgBZ,I,cAEf,MAFP,SAEJa,SACNR,IACAN,KACAe,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACfC,KAAM,UACNC,MAAOd,EAAE,mBAAoB,wB,oBAG1BQ,EAAAA,EAAAA,OACPO,QAAQP,MAAM,6BAA8BA,IAE5CG,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACfC,KAAM,QACNC,MAAOd,EAAE,yBAA0B,4BACnCgB,SAAUR,aAAAA,EAAAA,EAAOS,U,0BAGvB,IAAG,CAACrB,EAAkBC,EAAaK,EAAQF,IAE3C,OACE,kBAACkB,MAAAA,KACC,kBAACC,EAAAA,IAAWA,CAACC,WAAYxB,EAAkBkB,MAAOd,EAAE,kBAAmB,sBACvE,kBAACqB,EAAAA,IAASA,KACR,kBAACC,IAAAA,KAAGtB,EAAE,8BAA+B,qDAEvC,kBAACuB,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACX,KAAK,YAAYY,QAAS7B,GAC/BI,EAAE,SAAU,WAEf,kBAACwB,EAAAA,IAAMA,CAACX,KAAK,SAASY,QAASnB,EAAcoB,SAAUtB,GACpDA,EACC,kBAACuB,EAAAA,IAAaA,CAACC,YAAa5B,EAAE,WAAY,YAAc,QAExD,kBAAC6B,OAAAA,KAAM7B,EAAE,SAAU,aAM/B,C","sources":["webpack://@openmrs/esm-patient-conditions-app/./src/conditions/delete-condition.modal.tsx"],"names":["closeDeleteModal","conditionId","patientUuid","useTranslation","t","useConditions","mutate","useState","isDeleting","setIsDeleting","handleDelete","useCallback","error","deleteCondition","status","showSnackbar","isLowContrast","kind","title","console","subtitle","message","div","ModalHeader","closeModal","ModalBody","p","ModalFooter","Button","onClick","disabled","InlineLoading","description","span"],"sourceRoot":""}