@openmrs/esm-patient-search-app 4.0.2-pre.673 → 4.0.2-pre.677

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,4 +1,4 @@
1
- @openmrs/esm-patient-search-app:build: cache hit, replaying output ea3729eee0c36884
1
+ @openmrs/esm-patient-search-app:build: cache hit, replaying output 4cb60830ed31145e
2
2
  @openmrs/esm-patient-search-app:build: assets by chunk 554 KiB (id hint: vendors)
3
3
  @openmrs/esm-patient-search-app:build:  asset 858.js 407 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
4
4
  @openmrs/esm-patient-search-app:build:  asset 498.js 107 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
@@ -27,4 +27,4 @@
27
27
  @openmrs/esm-patient-search-app:build: Assets:
28
28
  @openmrs/esm-patient-search-app:build:  858.js (407 KiB)
29
29
  @openmrs/esm-patient-search-app:build: 
30
- @openmrs/esm-patient-search-app:build: webpack 5.74.0 compiled with 1 warning in 139885 ms
30
+ @openmrs/esm-patient-search-app:build: webpack 5.74.0 compiled with 1 warning in 104786 ms
package/dist/150.js CHANGED
@@ -1 +1 @@
1
- (self.webpackChunk_openmrs_esm_patient_search_app=self.webpackChunk_openmrs_esm_patient_search_app||[]).push([[150],{5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=h(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",y={};function v(){}function m(){}function g(){}var w={};s(w,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(T([])));_&&_!==r&&n.call(_,i)&&(w=_);var x=g.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var s=h(t[o],t,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:N}}function N(){return{value:e,done:!0}}return m.prototype=g,s(x,"constructor",g),s(g,"constructor",m),m.displayName=s(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},L(k.prototype),s(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(x),s(x,c,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},150:(t,e,r)=>{"use strict";r.r(e),r.d(e,{backendDependencies:()=>l,frontendDependencies:()=>f,importTranslation:()=>h,setupOpenMRS:()=>p,version:()=>u});var n=r(5047),o=r.n(n),i=r(906),a={search:{patientResultUrl:{_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]},redirectToPatientDashboard:{_type:i.Type.String,_default:"Patient Summary",_description:"On clicking the patient banner in the search results, which should be the default patient chart dashboard to redirect to."}},includeDead:{_type:i.Type.Boolean,_default:!0,_description:"Whether to include dead patients in search results"},contactAttributeType:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_default:["14d4f066-15f5-102d-96e4-000c29c2a5d7","e3d177ee-04ad-11ed-828d-0242ac1e0002"]}};function c(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))}}var u="4.0.2-pre.673",h=r(3979),l={"webservices.rest":"^2.2.0"},f={"@openmrs/esm-framework":"^4.0.2"};function p(){var t="@openmrs/esm-patient-search-app",e={featureName:"patient-search",moduleName:t};return(0,i.defineConfigSchema)(t,a),(0,i.setupDynamicOfflineDataHandler)({id:"esm-patient-search-app:patient",type:"patient",displayName:"Patient search",isSynced:function(t){return s(o().mark((function e(){var r,n,a,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=["/ws/fhir2/R4/Patient/".concat(t)],n=r.map((function(t){return window.origin+(0,i.makeUrl)(t)})),e.next=4,caches.open("omrs-spa-cache-v1");case 4:return a=e.sent,e.next=7,a.keys();case 7:return c=e.sent.map((function(t){return t.url})),e.abrupt("return",n.every((function(t){return c.includes(t)})));case 9:case"end":return e.stop()}}),e)})))()},sync:function(t){return s(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:"/ws/fhir2/R4/Patient/".concat(t)});case 2:return e.next=4,(0,i.fetchCurrentPatient)(t);case 4:case"end":return e.stop()}}),e)})))()}}),{pages:[{route:/^search/,load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(125),r.e(206),r.e(924),r.e(148),r.e(228),r.e(750)]).then(r.bind(r,2750))}),e)}],extensions:[{id:"patient-search-icon",slot:"top-nav-actions-slot",order:0,load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(125),r.e(206),r.e(924),r.e(148),r.e(614),r.e(228),r.e(219)]).then(r.bind(r,4219))}),e)},{id:"patient-search-button",slot:"patient-search-button-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(125),r.e(206),r.e(924),r.e(148),r.e(327)]).then(r.bind(r,1327))}),e),offline:!0},{id:"patient-search-bar",slot:"patient-search-bar-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(206),r.e(924),r.e(614),r.e(984)]).then(r.bind(r,8703))}),e),offline:!0}]}}},3979:(t,e,r)=>{var n={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757]};function o(t){if(!r.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],o=e[0];return r.e(e[1]).then((()=>r(o)))}o.keys=()=>Object.keys(n),o.id=3979,t.exports=o}}]);
1
+ (self.webpackChunk_openmrs_esm_patient_search_app=self.webpackChunk_openmrs_esm_patient_search_app||[]).push([[150],{5047:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function u(t,e,r,n){var o=e&&e.prototype instanceof v?e:v,i=Object.create(o.prototype),a=new j(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return N()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=E(a,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var s=h(t,e,r);if("normal"===s.type){if(n=r.done?d:f,s.arg===y)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=d,r.method="throw",r.arg=s.arg)}}}(t,r,a),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l="suspendedStart",f="suspendedYield",p="executing",d="completed",y={};function v(){}function m(){}function g(){}var w={};s(w,i,(function(){return this}));var b=Object.getPrototypeOf,_=b&&b(b(T([])));_&&_!==r&&n.call(_,i)&&(w=_);var x=g.prototype=v.prototype=Object.create(w);function L(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,i,a,c){var s=h(t[o],t,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var o=h(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,y;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:N}}function N(){return{value:e,done:!0}}return m.prototype=g,s(x,"constructor",g),s(g,"constructor",m),m.displayName=s(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,s(t,c,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},L(k.prototype),s(k.prototype,a,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(x),s(x,c,"Generator"),s(x,i,(function(){return this})),s(x,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),P(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},150:(t,e,r)=>{"use strict";r.r(e),r.d(e,{backendDependencies:()=>l,frontendDependencies:()=>f,importTranslation:()=>h,setupOpenMRS:()=>p,version:()=>u});var n=r(5047),o=r.n(n),i=r(906),a={search:{patientResultUrl:{_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Where clicking a patient result takes the user. Accepts template parameter ${patientUuid}",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]},redirectToPatientDashboard:{_type:i.Type.String,_default:"Patient Summary",_description:"On clicking the patient banner in the search results, which should be the default patient chart dashboard to redirect to."}},includeDead:{_type:i.Type.Boolean,_default:!0,_description:"Whether to include dead patients in search results"},contactAttributeType:{_type:i.Type.Array,_elements:{_type:i.Type.UUID},_default:["14d4f066-15f5-102d-96e4-000c29c2a5d7","e3d177ee-04ad-11ed-828d-0242ac1e0002"]}};function c(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(t){return void r(t)}c.done?e(s):Promise.resolve(s).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){c(i,n,o,a,s,"next",t)}function s(t){c(i,n,o,a,s,"throw",t)}a(void 0)}))}}var u="4.0.2-pre.677",h=r(3979),l={"webservices.rest":"^2.2.0"},f={"@openmrs/esm-framework":"^4.0.2"};function p(){var t="@openmrs/esm-patient-search-app",e={featureName:"patient-search",moduleName:t};return(0,i.defineConfigSchema)(t,a),(0,i.setupDynamicOfflineDataHandler)({id:"esm-patient-search-app:patient",type:"patient",displayName:"Patient search",isSynced:function(t){return s(o().mark((function e(){var r,n,a,c;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=["/ws/fhir2/R4/Patient/".concat(t)],n=r.map((function(t){return window.origin+(0,i.makeUrl)(t)})),e.next=4,caches.open("omrs-spa-cache-v1");case 4:return a=e.sent,e.next=7,a.keys();case 7:return c=e.sent.map((function(t){return t.url})),e.abrupt("return",n.every((function(t){return c.includes(t)})));case 9:case"end":return e.stop()}}),e)})))()},sync:function(t){return s(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,i.messageOmrsServiceWorker)({type:"registerDynamicRoute",pattern:"/ws/fhir2/R4/Patient/".concat(t)});case 2:return e.next=4,(0,i.fetchCurrentPatient)(t);case 4:case"end":return e.stop()}}),e)})))()}}),{pages:[{route:/^search/,load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(125),r.e(206),r.e(924),r.e(148),r.e(228),r.e(750)]).then(r.bind(r,2750))}),e)}],extensions:[{id:"patient-search-icon",slot:"top-nav-actions-slot",order:0,load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(125),r.e(206),r.e(924),r.e(148),r.e(614),r.e(228),r.e(219)]).then(r.bind(r,4219))}),e)},{id:"patient-search-button",slot:"patient-search-button-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(125),r.e(206),r.e(924),r.e(148),r.e(327)]).then(r.bind(r,1327))}),e),offline:!0},{id:"patient-search-bar",slot:"patient-search-bar-slot",load:(0,i.getAsyncLifecycle)((function(){return Promise.all([r.e(498),r.e(206),r.e(924),r.e(614),r.e(984)]).then(r.bind(r,8703))}),e),offline:!0}]}}},3979:(t,e,r)=>{var n={"./en.json":[3574,574],"./es.json":[8319,319],"./fr.json":[2757,757]};function o(t){if(!r.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],o=e[0];return r.e(e[1]).then((()=>r(o)))}o.keys=()=>Object.keys(n),o.id=3979,t.exports=o}}]);
@@ -92,7 +92,7 @@
92
92
  "150.js"
93
93
  ],
94
94
  "auxiliaryFiles": [],
95
- "hash": "d9b9ccee2269f6b4d2d0",
95
+ "hash": "18d69a15b9ec59319277",
96
96
  "childrenByOrder": {}
97
97
  },
98
98
  {
@@ -143,7 +143,7 @@
143
143
  "main.js"
144
144
  ],
145
145
  "auxiliaryFiles": [],
146
- "hash": "ff9fa1e8de8302289985",
146
+ "hash": "ae602c9f71a530fcf65e",
147
147
  "childrenByOrder": {}
148
148
  },
149
149
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-search-app",
3
- "version": "4.0.2-pre.673",
3
+ "version": "4.0.2-pre.677",
4
4
  "description": "Patient search microfrontend for the OpenMRS SPA",
5
5
  "browser": "dist/openmrs-esm-patient-search-app.js",
6
6
  "main": "src/index.ts",
@@ -46,5 +46,5 @@
46
46
  "devDependencies": {
47
47
  "webpack": "^5.74.0"
48
48
  },
49
- "gitHead": "26a37d71a48132981eec63af92b860ac3c4accd7"
49
+ "gitHead": "a0c66cc81fbada0969bd8f2cc7f8d9eb0146c4a8"
50
50
  }