@openmrs/esm-patient-flags-app 7.0.2-pre.3795 → 7.0.2-pre.3821

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_flags_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,h,c,m,v,g,b={6341:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(255),t.e(323),t.e(268),t.e(325),t.e(576),t.e(340)]).then((()=>()=>t(4340)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function w(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return b[e](t,t.exports,w),t.loaded=!0,t.exports}w.m=b,w.c=y,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-flags-app:",w.l=(t,n,o,a)=>{if(e[t])e[t].push(n);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")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],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)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-patient-flags-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","5.3.3-pre.1477",(()=>Promise.all([w.e(130),w.e(268)]).then((()=>()=>w(130))))),l("@openmrs/esm-patient-common-lib","7.0.2-pre.3795",(()=>Promise.all([w.e(779),w.e(255),w.e(323),w.e(268),w.e(325),w.e(356),w.e(576)]).then((()=>()=>w(7356))))),l("react-i18next","11.18.6",(()=>Promise.all([w.e(268),w.e(301)]).then((()=>()=>w(4301))))),l("react-router-dom","6.16.0",(()=>Promise.all([w.e(591),w.e(268)]).then((()=>()=>w(6591))))),l("react","18.2.0",(()=>w.e(784).then((()=>()=>w(2784))))),l("swr/_internal","2.2.4",(()=>Promise.all([w.e(729),w.e(268)]).then((()=>()=>w(4729))))),l("swr/immutable","2.2.4",(()=>Promise.all([w.e(255),w.e(268),w.e(325),w.e(303)]).then((()=>()=>w(2303)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;w.g.importScripts&&(e=w.g.location+"");var r=w.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),w.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],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;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(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){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,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],h=d.pop.bind(d);for(i=1;i<e.length;i++){var c=e[i];d.push(1==c?h()|h():2==c?h()&h():c?a(c,r):!h())}return!!h()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return f(e[t][o])},u=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||p(l(e,t,o,n)),f(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},f=e=>(e.loaded=1,e.get()),h=(d=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?s(r,0,t):n())),c=d(((e,r,t,n,o)=>r&&w.o(r,t)?u(r,0,t,n):o())),m={},v={268:()=>c("default","react",[1,18],(()=>w.e(784).then((()=>()=>w(2784))))),3325:()=>c("default","swr/_internal",[1,2],(()=>w.e(729).then((()=>()=>w(4729))))),6081:()=>h("default","@openmrs/esm-framework/src/internal",(()=>w.e(130).then((()=>()=>w(130))))),8744:()=>c("default","react-router-dom",[1,6],(()=>w.e(591).then((()=>()=>w(6591))))),9198:()=>c("default","swr/immutable",[1,2],(()=>w.e(152).then((()=>()=>w(2303))))),2821:()=>c("default","@openmrs/esm-patient-common-lib",[1,7],(()=>Promise.all([w.e(779),w.e(356)]).then((()=>()=>w(7356))))),2870:()=>c("default","@openmrs/esm-framework",[1,5],(()=>w.e(130).then((()=>()=>w(130))))),4924:()=>c("default","react-i18next",[1,11],(()=>w.e(36).then((()=>()=>w(4301)))))},g={268:[268],325:[3325],356:[6081,8744,9198],576:[2821,2870,4924]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={759:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|325|576)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);l&&l(w)}for(r&&r(t);s<a.length;s++)o=a[s],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_flags_app=globalThis.webpackChunk_openmrs_esm_patient_flags_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w.nc=void 0;var _=w(6341);_openmrs_esm_patient_flags_app=_})();
1
+ var _openmrs_esm_patient_flags_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,u,p,f,d,h,c,m,v,g,b={6341:(e,r,t)=>{var n={"./start":()=>Promise.all([t.e(255),t.e(323),t.e(268),t.e(325),t.e(576),t.e(340)]).then((()=>()=>t(4340)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},y={};function w(e){var r=y[e];if(void 0!==r)return r.exports;var t=y[e]={id:e,loaded:!1,exports:{}};return b[e](t,t.exports,w),t.loaded=!0,t.exports}w.m=b,w.c=y,w.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return w.d(r,{a:r}),r},w.d=(e,r)=>{for(var t in r)w.o(r,t)&&!w.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},w.f={},w.e=e=>Promise.all(Object.keys(w.f).reduce(((r,t)=>(w.f[t](e,r),r)),[])),w.u=e=>e+".js",w.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),w.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-patient-flags-app:",w.l=(t,n,o,a)=>{if(e[t])e[t].push(n);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")==t||p.getAttribute("data-webpack")==r+o){i=p;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,w.nc&&i.setAttribute("nonce",w.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(d);var o=e[t];if(delete e[t],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)}},w.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},w.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{w.S={};var e={},r={};w.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];w.o(w.S,t)||(w.S[t]={});var a=w.S[t],i="@openmrs/esm-patient-flags-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","5.4.1-pre.1567",(()=>Promise.all([w.e(130),w.e(268)]).then((()=>()=>w(130))))),l("@openmrs/esm-patient-common-lib","7.0.2-pre.3821",(()=>Promise.all([w.e(779),w.e(255),w.e(323),w.e(268),w.e(325),w.e(356),w.e(576)]).then((()=>()=>w(7356))))),l("react-i18next","11.18.6",(()=>Promise.all([w.e(268),w.e(301)]).then((()=>()=>w(4301))))),l("react-router-dom","6.16.0",(()=>Promise.all([w.e(591),w.e(268)]).then((()=>()=>w(6591))))),l("react","18.2.0",(()=>w.e(784).then((()=>()=>w(2784))))),l("swr/_internal","2.2.4",(()=>Promise.all([w.e(729),w.e(268)]).then((()=>()=>w(4729))))),l("swr/immutable","2.2.4",(()=>Promise.all([w.e(255),w.e(268),w.e(325),w.e(303)]).then((()=>()=>w(2303)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;w.g.importScripts&&(e=w.g.location+"");var r=w.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var n=t.length-1;n>-1&&!e;)e=t[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),w.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],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;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(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){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,l=1,s=!0;;l++,i++){var u,p,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(p=(typeof(u=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==p){if(!s||"u"!=f)return!1}else if(s)if(f==p)if(l<=n){if(u!=e[l])return!1}else{if(o?u>e[l]:u<e[l])return!1;u!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||p<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var d=[],h=d.pop.bind(d);for(i=1;i<e.length;i++){var c=e[i];d.push(1==c?h()|h():2==c?h()&h():c?a(c,r):!h())}return!!h()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return f(e[t][o])},u=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||p(l(e,t,o,n)),f(e[t][o])},p=e=>{"undefined"!=typeof console&&console.warn&&console.warn(e)},f=e=>(e.loaded=1,e.get()),h=(d=e=>function(r,t,n,o){var a=w.I(r);return a&&a.then?a.then(e.bind(e,r,w.S[r],t,n,o)):e(r,w.S[r],t,n,o)})(((e,r,t,n)=>r&&w.o(r,t)?s(r,0,t):n())),c=d(((e,r,t,n,o)=>r&&w.o(r,t)?u(r,0,t,n):o())),m={},v={268:()=>c("default","react",[1,18],(()=>w.e(784).then((()=>()=>w(2784))))),3325:()=>c("default","swr/_internal",[1,2],(()=>w.e(729).then((()=>()=>w(4729))))),6081:()=>h("default","@openmrs/esm-framework/src/internal",(()=>w.e(130).then((()=>()=>w(130))))),8744:()=>c("default","react-router-dom",[1,6],(()=>w.e(591).then((()=>()=>w(6591))))),9198:()=>c("default","swr/immutable",[1,2],(()=>w.e(152).then((()=>()=>w(2303))))),2821:()=>c("default","@openmrs/esm-patient-common-lib",[1,7],(()=>Promise.all([w.e(779),w.e(356)]).then((()=>()=>w(7356))))),2870:()=>c("default","@openmrs/esm-framework",[1,5],(()=>w.e(130).then((()=>()=>w(130))))),4924:()=>c("default","react-i18next",[1,11],(()=>w.e(36).then((()=>()=>w(4301)))))},g={268:[268],325:[3325],356:[6081,8744,9198],576:[2821,2870,4924]},w.f.consumes=(e,r)=>{w.o(g,e)&&g[e].forEach((e=>{if(w.o(m,e))return r.push(m[e]);var t=r=>{m[e]=0,w.m[e]=t=>{delete w.c[e],t.exports=r()}},n=r=>{delete m[e],w.m[e]=t=>{throw delete w.c[e],r}};try{var o=v[e]();o.then?r.push(m[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={759:0};w.f.j=(r,t)=>{var n=w.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(/^(268|325|576)$/.test(r))e[r]=0;else{var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=w.p+w.u(r),i=new Error;w.l(a,(t=>{if(w.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)w.o(i,n)&&(w.m[n]=i[n]);l&&l(w)}for(r&&r(t);s<a.length;s++)o=a[s],w.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=globalThis.webpackChunk_openmrs_esm_patient_flags_app=globalThis.webpackChunk_openmrs_esm_patient_flags_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),w.nc=void 0;var _=w(6341);_openmrs_esm_patient_flags_app=_})();
@@ -30,9 +30,9 @@
30
30
  "entry": false,
31
31
  "recorded": false,
32
32
  "reason": "reused as split chunk (cache group: defaultVendors)",
33
- "size": 1212982,
33
+ "size": 1213694,
34
34
  "sizes": {
35
- "javascript": 1212982
35
+ "javascript": 1213694
36
36
  },
37
37
  "names": [],
38
38
  "idHints": [
@@ -48,7 +48,7 @@
48
48
  "auxiliaryFiles": [
49
49
  "130.js.map"
50
50
  ],
51
- "hash": "58c2b51525658ffd",
51
+ "hash": "b27f4e5fd9f14ef7",
52
52
  "childrenByOrder": {}
53
53
  },
54
54
  {
@@ -100,7 +100,7 @@
100
100
  "auxiliaryFiles": [
101
101
  "main.js.map"
102
102
  ],
103
- "hash": "a32b6fc9e26fdb17",
103
+ "hash": "ee221a6a4f8ff4a0",
104
104
  "childrenByOrder": {}
105
105
  },
106
106
  {
@@ -178,9 +178,9 @@
178
178
  "initial": false,
179
179
  "entry": false,
180
180
  "recorded": false,
181
- "size": 46659,
181
+ "size": 46656,
182
182
  "sizes": {
183
- "javascript": 46659
183
+ "javascript": 46656
184
184
  },
185
185
  "names": [],
186
186
  "idHints": [],
@@ -194,7 +194,7 @@
194
194
  "auxiliaryFiles": [
195
195
  "290.js.map"
196
196
  ],
197
- "hash": "7824f76b516933dd",
197
+ "hash": "cf63e696e9be97ef",
198
198
  "childrenByOrder": {}
199
199
  },
200
200
  {
@@ -344,9 +344,9 @@
344
344
  "entry": false,
345
345
  "recorded": false,
346
346
  "reason": "reused as split chunk (cache group: default)",
347
- "size": 130716,
347
+ "size": 130906,
348
348
  "sizes": {
349
- "javascript": 130590,
349
+ "javascript": 130780,
350
350
  "consume-shared": 126
351
351
  },
352
352
  "names": [],
@@ -361,7 +361,7 @@
361
361
  "auxiliaryFiles": [
362
362
  "356.js.map"
363
363
  ],
364
- "hash": "9d933c9d028d6e30",
364
+ "hash": "6b32155a6b3b8c5c",
365
365
  "childrenByOrder": {}
366
366
  },
367
367
  {
@@ -551,7 +551,7 @@
551
551
  "auxiliaryFiles": [
552
552
  "openmrs-esm-patient-flags-app.js.map"
553
553
  ],
554
- "hash": "d167a4c89c04db6b",
554
+ "hash": "5b4152eac336b7d1",
555
555
  "childrenByOrder": {}
556
556
  },
557
557
  {
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"edit-flags-side-panel-form","component":"editPatientFlagsWorkspace","meta":{"title":{"key":"editPatientFlags","default":"Edit patient flags"}},"featureFlag":"patientFlags"},{"name":"patient-flag-tags","slot":"patient-highlights-bar-slot","component":"flagTags","order":0,"featureFlag":"patientFlags"},{"name":"patient-flags-overview","slot":"patient-chart-summary-dashboard-slot","component":"flagsOverview","meta":{"columnSpan":4},"order":0,"featureFlag":"patientFlags"}],"pages":[],"version":"7.0.2-pre.3795"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"webservices.rest":"^2.2.0"},"extensions":[{"name":"edit-flags-side-panel-form","component":"editPatientFlagsWorkspace","meta":{"title":{"key":"editPatientFlags","default":"Edit patient flags"}},"featureFlag":"patientFlags"},{"name":"patient-flag-tags","slot":"patient-highlights-bar-slot","component":"flagTags","order":0,"featureFlag":"patientFlags"},{"name":"patient-flags-overview","slot":"patient-chart-summary-dashboard-slot","component":"flagsOverview","meta":{"columnSpan":4},"order":0,"featureFlag":"patientFlags"}],"pages":[],"version":"7.0.2-pre.3821"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-flags-app",
3
- "version": "7.0.2-pre.3795",
3
+ "version": "7.0.2-pre.3821",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An OpenMRS frontend module for managing patient flags",
6
6
  "browser": "dist/openmrs-esm-patient-flags-app.js",
@@ -51,8 +51,8 @@
51
51
  "swr": "2.x"
52
52
  },
53
53
  "devDependencies": {
54
- "@openmrs/esm-patient-common-lib": "7.0.2-pre.3795",
54
+ "@openmrs/esm-patient-common-lib": "7.0.2-pre.3821",
55
55
  "webpack": "^5.88.2"
56
56
  },
57
- "gitHead": "9cea718964ab0991a69914f347128d628ea08c0d"
57
+ "gitHead": "5adf4d0c20ecd585ec7d50323667086e6f642e70"
58
58
  }
@@ -12,7 +12,11 @@ import styles from './flags-list.scss';
12
12
 
13
13
  type dropdownFilter = 'A - Z' | 'Active first' | 'Retired first';
14
14
 
15
- const FlagsList: React.FC<DefaultWorkspaceProps> = ({ patientUuid, closeWorkspace }) => {
15
+ const FlagsList: React.FC<DefaultWorkspaceProps> = ({
16
+ patientUuid,
17
+ closeWorkspace,
18
+ closeWorkspaceWithSavedChanges,
19
+ }) => {
16
20
  const { t } = useTranslation();
17
21
  const { flags, isLoading, error, mutate } = usePatientFlags(patientUuid);
18
22
  const isTablet = useLayoutType() === 'tablet';
@@ -198,7 +202,7 @@ const FlagsList: React.FC<DefaultWorkspaceProps> = ({ patientUuid, closeWorkspac
198
202
  </Stack>
199
203
  </div>
200
204
  <ButtonSet className={isTablet ? styles.tabletButtonSet : styles.desktopButtonSet}>
201
- <Button className={styles.button} kind="secondary" onClick={() => closeWorkspace()}>
205
+ <Button className={styles.button} kind="secondary" onClick={closeWorkspace}>
202
206
  {t('discard', 'Discard')}
203
207
  </Button>
204
208
  <Button
@@ -206,7 +210,7 @@ const FlagsList: React.FC<DefaultWorkspaceProps> = ({ patientUuid, closeWorkspac
206
210
  disabled={isEnabling || isDisabling}
207
211
  kind="primary"
208
212
  type="submit"
209
- onClick={() => closeWorkspace()}
213
+ onClick={closeWorkspaceWithSavedChanges}
210
214
  >
211
215
  {(() => {
212
216
  if (isEnabling) return t('enablingFlag', 'Enabling flag...');
@@ -40,5 +40,12 @@ it('renders an Edit form that enables users to toggle flags on or off', async ()
40
40
  });
41
41
 
42
42
  function renderFlagsList() {
43
- return render(<FlagsList closeWorkspace={jest.fn()} patientUuid={mockPatient.id} promptBeforeClosing={jest.fn()} />);
43
+ return render(
44
+ <FlagsList
45
+ closeWorkspace={jest.fn()}
46
+ closeWorkspaceWithSavedChanges={jest.fn()}
47
+ patientUuid={mockPatient.id}
48
+ promptBeforeClosing={jest.fn()}
49
+ />,
50
+ );
44
51
  }