@cc-openmrs/cc-esm-active-prescriptions 1.0.59 → 1.0.60
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.
- package/dist/104.js +1 -1
- package/dist/353.js +1 -1
- package/dist/499.js +1 -1
- package/dist/617.js +2 -0
- package/dist/652.js +1 -1
- package/dist/723.js +1 -0
- package/dist/{375.js → 805.js} +2 -2
- package/dist/{756.js → 845.js} +1 -2
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +10 -0
- package/dist/openmrs-esm-template-app.js +1 -1
- package/dist/openmrs-esm-template-app.js.buildmanifest.json +160 -113
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +30 -6
- package/dist/520.js +0 -2
- package/dist/756.js.LICENSE.txt +0 -9
- /package/dist/{520.js.LICENSE.txt → 617.js.LICENSE.txt} +0 -0
- /package/dist/{375.js.LICENSE.txt → 805.js.LICENSE.txt} +0 -0
package/dist/104.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[104],{159(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(o[i]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},2996(e){function t(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}e.exports=function(e){var n,r,o=(r=4,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var r,o,a=[],i=!0,s=!1;try{for(n=n.call(e);!(i=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);i=!0);}catch(e){s=!0,o=e}finally{try{i||null==n.return||n.return()}finally{if(s)throw o}}return a}}(n,r)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n,r)||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.")}()),a=o[1],i=o[3];if(!i)return a;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),u="/*# ".concat(c," */"),l=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[a].concat(l).concat([u]).join("\n")}return[a].join("\n")}},5072(e){var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var a={},i=[],s=0;s<e.length;s++){var c=e[s],u=r.base?c[0]+r.base:c[0],l=a[u]||0,d="".concat(u," ").concat(l);a[u]=l+1;var f=n(d),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var v=o(p,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:v,references:1})}i.push(d)}return i}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var a=r(e=e||[],o=o||{});return function(e){e=e||[];for(var i=0;i<a.length;i++){var s=n(a[i]);t[s].references--}for(var c=r(e,o),u=0;u<a.length;u++){var l=n(a[u]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}a=c}}},7659(e){var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},540(e){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,n){e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7825(e){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},4993(e,t,n){n.d(t,{BE:()=>H,Es:()=>L,Ht:()=>G,PP:()=>P,Tn:()=>c,X3:()=>S,ZH:()=>a,aw:()=>z,b0:()=>s,bZ:()=>p,bu:()=>x,dO:()=>O,lK:()=>A,lg:()=>N,mF:()=>M,mf:()=>C,q9:()=>Z,qm:()=>K,qv:()=>i,r9:()=>y,rL:()=>u,sb:()=>j});var r=n(6072);const o=()=>{},a=o(),i=Object,s=e=>e===a,c=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),l=new WeakMap;let d=0;const f=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,a;if(i(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=l.get(e),o)return o;if(o=++d+"~",l.set(e,o),n==Array){for(o="@",a=0;a<e.length;a++)o+=f(e[a])+",";l.set(e,o)}if(n==i){o="#";const t=i.keys(e).sort();for(;!s(a=t.pop());)s(e[a])||(o+=a+":"+f(e[a])+",");l.set(e,o)}}return o},p=new WeakMap,v={},h={},b="undefined",m=typeof window!=b,g=typeof document!=b,y=(e,t)=>{const n=p.get(e);return[()=>!s(t)&&e.get(t)||v,r=>{if(!s(t)){const o=e.get(t);t in h||(h[t]=o),n[5](t,u(o,r),o||v)}},n[6],()=>!s(t)&&t in h?h[t]:!s(t)&&e.get(t)||v]};let E=!0;const[w,_]=m&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],T={isOnline:()=>E,isVisible:()=>{const e=g&&document.visibilityState;return s(e)||"hidden"!==e}},R={initFocus:e=>(g&&document.addEventListener("visibilitychange",e),w("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{const t=()=>{E=!0,e()},n=()=>{E=!1};return w("online",t),w("offline",n),()=>{_("online",t),_("offline",n)}}},O=!r.useId,S=!m||"Deno"in window,C=e=>m&&typeof window.requestAnimationFrame!=b?window.requestAnimationFrame(e):setTimeout(e,1),L=S?r.useEffect:r.useLayoutEffect,V="undefined"!=typeof navigator&&navigator.connection,k=!S&&V&&(["slow-2g","2g"].includes(V.effectiveType)||V.saveData),A=e=>{if(c(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?f(e):"",t]};let I=0;const N=()=>++I;var x={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function M(...e){const[t,n,r,o]=e,i=u({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let l=i.populateCache;const d=i.rollbackOnError;let f=i.optimisticData;const v=i.throwOnError;if(c(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(h))}return h(n);async function h(n){const[o]=A(n);if(!o)return;const[u,h]=y(t,o),[b,m,g,E]=p.get(t),w=()=>{const e=b[o];return(c(i.revalidate)?i.revalidate(u().data,n):!1!==i.revalidate)&&(delete g[o],delete E[o],e&&e[0])?e[0](2).then(()=>u().data):u().data};if(e.length<3)return w();let _,T=r;const R=N();m[o]=[R,0];const O=!s(f),S=u(),C=S.data,L=S._c,V=s(L)?C:L;if(O&&(f=c(f)?f(V,C):f,h({data:f,_c:V})),c(T))try{T=T(V)}catch(e){_=e}if(T&&c(T.then)){if(T=await T.catch(e=>{_=e}),R!==m[o][0]){if(_)throw _;return T}_&&O&&(e=>"function"==typeof d?d(e):!1!==d)(_)&&(l=!0,h({data:V,_c:a}))}if(l&&!_)if(c(l)){const e=l(T,V);h({data:e,error:a,_c:a})}else h({data:T,error:a,_c:a});if(m[o][1]=N(),Promise.resolve(w()).then(()=>{h({_c:a})}),!_)return T;if(v)throw _}}const D=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},F=(e,t)=>{if(!p.has(e)){const n=u(R,t),r={},i=M.bind(a,e);let s=o;const c={},l=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},d=(t,n,r)=>{e.set(t,n);const o=c[t];if(o)for(const e of o)e(n,r)},f=()=>{if(!p.has(e)&&(p.set(e,[r,{},{},{},i,d,l]),!S)){const t=n.initFocus(setTimeout.bind(a,D.bind(a,r,0))),o=n.initReconnect(setTimeout.bind(a,D.bind(a,r,1)));s=()=>{t&&t(),o&&o(),p.delete(e)}}};return f(),[e,i,f,s]}return[e,p.get(e)[4]]},[P,U]=F(new Map),j=u({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,n,r,o)=>{const a=n.errorRetryCount,i=o.retryCount,c=~~((Math.random()+.5)*(1<<(i<8?i:8)))*n.errorRetryInterval;!s(a)&&i>a||setTimeout(r,c,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:(e,t)=>f(e)==f(t),isPaused:()=>!1,cache:P,mutate:U,fallback:{}},T),q=(e,t)=>{const n=u(e,t);if(t){const{use:r,fallback:o}=e,{use:a,fallback:i}=t;r&&a&&(n.use=r.concat(a)),o&&i&&(n.fallback=u(o,i))}return n},W=(0,r.createContext)({}),H=e=>{const{value:t}=e,n=(0,r.useContext)(W),o=c(t),i=(0,r.useMemo)(()=>o?t(n):t,[o,n,t]),s=(0,r.useMemo)(()=>o?i:q(n,i),[o,n,i]),l=i&&i.provider,d=(0,r.useRef)(a);l&&!d.current&&(d.current=F(l(s.cache||P),i));const f=d.current;return f&&(s.cache=f[0],s.mutate=f[1]),L(()=>{if(f)return f[2]&&f[2](),f[3]},[]),(0,r.createElement)(W.Provider,u(e,{value:s}))},Z="$inf$",$=m&&window.__SWR_DEVTOOLS_USE__,J=$?window.__SWR_DEVTOOLS_USE__:[],B=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],X=J.concat(e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=A(t),[,,,o]=p.get(P);if(r.startsWith(Z))return n(...e);const a=o[r];return s(a)?n(...e):(delete o[r],a)}),r)),K=e=>function(...t){const n=u(j,(0,r.useContext)(W)),[o,a,i]=B(t),s=q(n,i);let c=e;const{use:l}=s,d=(l||[]).concat(X);for(let e=d.length;e--;)c=d[e](c);return c(o,a||s.fetcher||null,s)},z=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},G=(e,t)=>(...n)=>{const[r,o,a]=B(n),i=(a.use||[]).concat(t);return e(r,o,{...a,use:i})};$&&(window.__SWR_DEVTOOLS_REACT__=r)},9324(e,t,n){n.d(t,{Ay:()=>u,BE:()=>c});var r=n(6072),o=n(9888),a=n(4993);const i=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),s={dedupe:!0},c=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),u=(0,a.qm)((e,t,n)=>{const{cache:c,compare:u,suspense:l,fallbackData:d,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:h,refreshWhenOffline:b,keepPreviousData:m}=n,[g,y,E,w]=a.bZ.get(c),[_,T]=(0,a.lK)(e),R=(0,r.useRef)(!1),O=(0,r.useRef)(!1),S=(0,r.useRef)(_),C=(0,r.useRef)(t),L=(0,r.useRef)(n),V=()=>L.current,k=()=>V().isVisible()&&V().isOnline(),[A,I,N,x]=(0,a.r9)(c,_),M=(0,r.useRef)({}).current,D=(0,a.b0)(d)?n.fallback[_]:d,F=(e,t)=>{for(const n in M){const r=n;if("data"===r){if(!u(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!u(J,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},P=(0,r.useMemo)(()=>{const e=!!_&&!!t&&((0,a.b0)(f)?!V().isPaused()&&!l&&(!!(0,a.b0)(p)||p):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=A(),o=x(),i=n(r),s=r===o?i:n(o);let c=i;return[()=>{const e=n(A());return F(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[c,_]),U=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>N(_,(t,n)=>{F(n,t)||e()}),[c,_]),P[0],P[1]),j=!R.current,q=g[_]&&g[_].length>0,W=U.data,H=(0,a.b0)(W)?D:W,Z=U.error,$=(0,r.useRef)(H),J=m?(0,a.b0)(W)?$.current:W:H,B=!(q&&!(0,a.b0)(Z))&&(j&&!(0,a.b0)(f)?f:!V().isPaused()&&(l?!(0,a.b0)(H)&&p:(0,a.b0)(H)||p)),X=!!(_&&t&&j&&B),K=(0,a.b0)(U.isValidating)?X:U.isValidating,z=(0,a.b0)(U.isLoading)?X:U.isLoading,G=(0,r.useCallback)(async e=>{const t=C.current;if(!_||!t||O.current||V().isPaused())return!1;let r,o,i=!0;const s=e||{},c=!E[_]||!s.dedupe,l=()=>a.dO?!O.current&&_===S.current&&R.current:_===S.current,d={isValidating:!1,isLoading:!1},f=()=>{I(d)},p=()=>{const e=E[_];e&&e[1]===o&&delete E[_]},v={isValidating:!0};(0,a.b0)(A().data)&&(v.isLoading=!0);try{if(c&&(I(v),n.loadingTimeout&&(0,a.b0)(A().data)&&setTimeout(()=>{i&&l()&&V().onLoadingSlow(_,n)},n.loadingTimeout),E[_]=[t(T),(0,a.lg)()]),[r,o]=E[_],r=await r,c&&setTimeout(p,n.dedupingInterval),!E[_]||E[_][1]!==o)return c&&l()&&V().onDiscarded(_),!1;d.error=a.ZH;const e=y[_];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),c&&l()&&V().onDiscarded(_),!1;const s=A().data;d.data=u(s,r)?s:r,c&&l()&&V().onSuccess(r,_,n)}catch(e){p();const t=V(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,c&&l()&&(t.onError(e,_,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(V().revalidateOnFocus&&V().revalidateOnReconnect&&!k()||t.onErrorRetry(e,_,t,e=>{const t=g[_];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return i=!1,f(),!0},[_,c]),Q=(0,r.useCallback)((...e)=>(0,a.mF)(c,S.current,...e),[]);if((0,a.Es)(()=>{C.current=t,L.current=n,(0,a.b0)(W)||($.current=W)}),(0,a.Es)(()=>{if(!_)return;const e=G.bind(a.ZH,s);let t=0;const n=(0,a.aw)(_,g,(n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();V().revalidateOnFocus&&n>t&&k()&&(t=n+V().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)V().revalidateOnReconnect&&k()&&e();else{if(n==a.bu.MUTATE_EVENT)return G();if(n==a.bu.ERROR_REVALIDATE_EVENT)return G(r)}});return O.current=!1,S.current=_,R.current=!0,I({_k:T}),B&&((0,a.b0)(H)||a.X3?e():(0,a.mf)(e)),()=>{O.current=!0,n()}},[_]),(0,a.Es)(()=>{let e;function t(){const t=(0,a.Tn)(v)?v(A().data):v;t&&-1!==e&&(e=setTimeout(n,t))}function n(){A().error||!h&&!V().isVisible()||!b&&!V().isOnline()?t():G(s).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,h,b,_]),(0,r.useDebugValue)(J),l&&(0,a.b0)(H)&&_){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,L.current=n,O.current=!1;const e=w[_];if(!(0,a.b0)(e)){const t=Q(e);i(t)}if(!(0,a.b0)(Z))throw Z;{const e=G(s);(0,a.b0)(J)||(e.status="fulfilled",e.value=!0),i(e)}}return{mutate:Q,get data(){return M.data=!0,J},get error(){return M.error=!0,Z},get isValidating(){return M.isValidating=!0,K},get isLoading(){return M.isLoading=!0,z}}})}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[104,723],{41(e,t,n){n.d(t,{B4:()=>r.B4,D3:()=>r.D3,jX:()=>r.jX,jj:()=>r.jj,sM:()=>r.sM,uA:()=>r.uA});var r=n(5885)},5338(e,t,n){var r=n(961);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},1926(e,t,n){n.d(t,{$f:()=>s.$f,Ct:()=>s.Ct,E4:()=>r.E4,EW:()=>r.EW,Fi:()=>r.Fi,Gm:()=>s.Gm,Gp:()=>r.Gp,HW:()=>r.HW,IU:()=>s.IU,Jj:()=>s.Jj,Kx:()=>r.Kx,L7:()=>o.L,QE:()=>a.Q,Y0:()=>i.Y,eA:()=>r.eA,g$:()=>r.g$,lo:()=>s.lo,st:()=>r.st,ut:()=>s.ut,xC:()=>r.xC,yH:()=>r.yH});var r=n(1557),o=n(2151),a=n(8449),s=n(8315),i=n(9935)},6886(e,t,n){n.d(t,{FL:()=>r.FL,G9:()=>o.G9,GI:()=>o.GI,GV:()=>r.GV,Gt:()=>r.Gt,H:()=>o.H,IS:()=>o.IS,Nc:()=>a.N,Nh:()=>r.Nh,P0:()=>o.P0,Rt:()=>o.Rt,T0:()=>r.T0,UY:()=>o.UY,YP:()=>o.YP,ZU:()=>i.Z,g$:()=>o.g$,gU:()=>s.gU,hs:()=>o.hs,kl:()=>r.kl,ks:()=>r.ks,mq:()=>r.mq,qG:()=>s.qG,r4:()=>s.r4,tN:()=>o.tN,td:()=>r.td,vu:()=>o.vu,y$:()=>s.y$,yL:()=>s.yL,zj:()=>r.zj});var r=n(1856),o=n(3101),a=n(1290),s=n(5049),i=n(1467)},8557(e,t,n){n.d(t,{BR:()=>i.BR,BX:()=>i.BX,Bv:()=>r.Bv,Cj:()=>i.Cj,DK:()=>i.DK,Ds:()=>i.Ds,E$:()=>a.E,KU:()=>r.KU,NH:()=>i.NH,Pu:()=>s.P,Qx:()=>s.Q,Rb:()=>i.Rb,SY:()=>r.SY,Vs:()=>a.V,Zu:()=>r.Zu,cD:()=>r.cD,dx:()=>i.dx,hG:()=>o.h,xL:()=>i.xL});var r=n(8487),o=n(420),a=n(8390),s=n(5175),i=n(8766)},770(e,t,n){n.d(t,{DQ:()=>c.DQ,ES:()=>r.ES,Ef:()=>o.E,FY:()=>r.FY,Fg:()=>s.F,Gp:()=>a.Gp,Ju:()=>s.J,K0:()=>r.K0,No:()=>r.No,Q_:()=>i.Q_,Tj:()=>r.Tj,VK:()=>r.VK,Vx:()=>a.Vx,Xb:()=>i.Xb,Yo:()=>r.Yo,a9:()=>c.a9,cL:()=>r.cL,dO:()=>o.d,io:()=>i.io,pm:()=>i.pm,sr:()=>a.sr,wG:()=>u.w,xg:()=>r.xg,zF:()=>c.zF,zx:()=>r.zx});var r=n(7022),o=n(67),a=n(7261),s=n(4246),i=n(7330),u=n(8932),c=n(7171)},178(e,t,n){n.d(t,{D_:()=>o.D,JG:()=>i.J,JK:()=>a.JK,MY:()=>r.MY,Wh:()=>a.Wh,g4:()=>a.g4,lz:()=>r.lz,oo:()=>s.o,qh:()=>o.q,tA:()=>a.tA,vf:()=>r.vf,zl:()=>i.z});var r=n(9486),o=n(4237),a=n(1561),s=n(6918),i=n(5466)},1104(e,t,n){n.d(t,{zq:()=>o,i_:()=>s,YY:()=>u,W3:()=>E,p6:()=>R,fS:()=>w,qw:()=>T,rr:()=>m,sc:()=>A,ns:()=>I,mw:()=>pe,JK:()=>M,g9:()=>_,xl:()=>Se,F7:()=>D,Ie:()=>j,Us:()=>F,Tt:()=>G,CX:()=>g,_9:()=>H,yJ:()=>z,UK:()=>Z,zD:()=>J,Fx:()=>Q,d7:()=>ee,jn:()=>C,E4:()=>re,$B:()=>oe,br:()=>b,Wq:()=>ae,uL:()=>p,Gz:()=>se,u:()=>ue,oq:()=>ye,vL:()=>Ce,to:()=>me,CH:()=>ce,qv:()=>we,if:()=>Te,TA:()=>Ne,kH:()=>xe,Wr:()=>ke,Jm:()=>Oe,Bf:()=>Ee,iy:()=>be,Ed:()=>le,M3:()=>Ve,WQ:()=>Pe,tQ:()=>De,wJ:()=>Me,oU:()=>Ie,wV:()=>$e,Pj:()=>d,mQ:()=>f,fq:()=>Fe,xH:()=>Ue,wr:()=>Be});var r=n(6072);const o=(0,r.createContext)({moduleName:"",featureName:""});var a=n(178);function s({to:e,templateParams:t,onBeforeNavigate:n,children:o,...s}){return(0,r.useEffect)(()=>{s.href&&console.warn(`ConfigurableLink does not support the href prop. Use the 'to' prop instead. The provided href value is '${s.href}'`),s.onClick&&console.warn(`ConfigurableLink does not support the onClick prop. Use the 'onBeforeNavigate' prop instead. The 'to' prop of the offending link is ${e}`)},[]),r.createElement("a",{onClick:r=>function(e,t,n,r){0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey||(e.preventDefault(),r?.(e),(0,a.oo)({to:t,templateParams:n})),0===e.button&&(e.ctrlKey||e.metaKey)&&r?.(e),0===e.button&&e.shiftKey&&r?.(e),1===e.button&&r?.(e)}(r,e,t,n),href:(0,a.JG)(e,t),...s},o)}var i=n(770);const u=({state:e,children:t,...n})=>{const{extension:a}=(0,r.useContext)(o),s=(0,r.useRef)(null),u=(0,r.useRef)(Promise.resolve()),c=(0,r.useCallback)(t=>{a?.extensionSlotName&&a.extensionSlotModuleName&&a.extensionSlotModuleName&&!s.current&&(0,i.wG)(t,a.extensionSlotName,a.extensionSlotModuleName,a.extensionId,void 0,e).then(e=>{s.current=e})},[]);return(0,r.useEffect)(()=>()=>{if(s&&s.current)switch(s.current.getStatus()){case"MOUNTING":s.current.mountPromise.then(()=>{"MOUNTED"===s.current?.getStatus()&&s.current.unmount()});break;case"MOUNTED":s.current.unmount();break;case"UPDATING":u.current&&u.current.then(()=>{"MOUNTED"===s.current?.getStatus()&&s.current.unmount()})}},[]),(0,r.useEffect)(()=>{s.current&&s.current.update&&"UNMOUNTING"!==s.current.getStatus()&&Promise.all([s.current.mountPromise,u.current]).then(()=>{"MOUNTED"===s?.current?.getStatus()&&s.current.update&&(u.current=s.current.update({...e}).catch(e=>{if(!(e instanceof Error&&e.message.includes("minified message #32")&&"MOUNTED"!==s.current?.getStatus()))throw e}))})},[e]),a?r.createElement("div",{ref:c,"data-extension-id":a?.extensionId,style:{position:"relative"},...n}):null};var c=n(8249);function l(e,t){"function"==typeof t&&(t=t(e));const n={};for(const[r,o]of Object.entries(t)){const t=function(...t){e.setState(e=>o(e,...t))};n[r]=t}return n}function d(e,t=e=>e,n){const[o,a]=(0,r.useState)(()=>t(e.getState()));return(0,r.useEffect)(()=>(0,c.i7)(e,t,a),[e,t]),{...o,...(0,r.useMemo)(()=>n?l(e,n):{},[e,n])}}function f(e,t){return d(e,e=>e,t)}function m(e){return function(t){const[n,o]=(0,r.useState)(e.getState());return(0,r.useEffect)(()=>e.subscribe(e=>o(e)),[]),{...n,...(0,r.useMemo)(()=>t?l(e,t):{},[t])}}}const p=e=>d((0,i.zF)(),t=>t.slots?.[e]);function g(e){const t=p(e);return t?.assignedExtensions??[]}function b(e){const{moduleName:t}=(0,r.useContext)(o);if(!t)throw Error("ComponentContext has not been provided. This should come from @openmrs/esm-react-utils.");return(0,r.useEffect)(()=>{(0,i.FY)(t,e)},[]),{extensions:g(e),extensionSlotName:e,extensionSlotModuleName:t}}function h(e){return e}function E({name:e,extensionSlotName:t,select:n=h,children:a,state:s,style:i,...c}){if(a&&s)throw new Error("Both children and state have been provided. If children are provided, the state must be passed as a prop to the `Extension` component.");const l=e??t,d=(0,r.useRef)(null),{extensions:f,extensionSlotModuleName:m}=b(l),p=(0,r.useMemo)(()=>n(f),[n,f]),g=(0,r.useMemo)(()=>{if("function"==typeof a&&!r.isValidElement(a))return p.map(e=>a(e,s))},[a,p]);return r.createElement("div",{ref:d,"data-extension-slot-name":l,"data-extension-slot-module-name":m,style:{...i,position:"relative"},...c},l&&p?.map((e,t)=>r.createElement(o.Provider,{key:e.id,value:{moduleName:m,featureName:"",extension:{extensionId:e.id,extensionSlotName:l,extensionSlotModuleName:m}}},g?.[t]??("function"!=typeof a?a:null)??r.createElement(u,{state:s}))))}var v=n(3596),y=n(8101);function C(e,t){const n=(0,r.useRef)(t??{}),o=(0,r.useRef)(t=>(0,v.r_)(e,t));return(0,r.useEffect)(()=>((0,v.ji)(e,t??{}),()=>{(0,v.II)(e)}),[e]),(0,r.useEffect)(()=>{let r=t??{};(0,y.b)(n.current,r)||((0,v.r_)(e,()=>r),n.current=r)},[t]),o.current}function R({namespace:e,value:t}){return C(e,t),null}const w=({children:e,value:t,fallback:n})=>Boolean(t)?r.createElement(r.Fragment,null,e):n?r.createElement(r.Fragment,null,n):null;var S=n(1926);const T=({privilege:e,fallback:t,children:n})=>{const[o,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{const e=(0,S.HW)({includeAuthStatus:!1}).subscribe(a);return()=>e.unsubscribe()},[]),o&&(0,S.st)(e,o)?r.createElement(r.Fragment,null,n):t?r.createElement(r.Fragment,null,t):null};var N=n(5338),x=n(5684),k=n(2076),O=n(9324);const V={strictMode:!0,throwErrorsToConsole:!0,disableTranslations:!1},P=new Map,L={errorRetryCount:3,fetcher:S.lo,focusThrottleInterval:18e5,revalidateIfStale:!0,revalidateOnFocus:!1,revalidateOnReconnect:!1,refreshInterval:0,provider:()=>P};function D(e){if("object"!=typeof e||"string"!=typeof e.featureName||"string"!=typeof e.moduleName)throw new Error("Invalid options");const t=Object.assign({},V,e),n={...L,...t.swrConfig};return function(e){var a,s,i,u;return s=a=class extends r.Component{componentDidCatch(e,n){n&&n.componentStack&&(e.extra=Object.assign(e.extra||{},{componentStack:n.componentStack})),t.throwErrorsToConsole&&setTimeout(()=>{throw e}),this.setState({caughtError:e,caughtErrorInfo:n})}render(){if(this.state.caughtError)return r.createElement("div",null,"An error has occurred. Please try reloading the page.");{const a=r.createElement(r.Suspense,{fallback:null},r.createElement(O.BE,{value:n},r.createElement(o.Provider,{value:this.state.config},t.disableTranslations?r.createElement(e,this.props):r.createElement(k.I18nextProvider,{i18n:window.i18next,defaultNS:this.state.config.extension?`${this.state.config.moduleName}___${this.state.config.extension.extensionSlotName}___${this.state.config.extension.extensionId}`:this.state.config.moduleName},r.createElement(e,this.props)))));return t.strictMode&&r.StrictMode?r.createElement(r.StrictMode,null,a):a}}constructor(e){super(e),this.state={caughtError:null,caughtErrorInfo:null,config:{moduleName:t.moduleName,featureName:t.featureName,extension:e._extensionContext}}}},i="displayName",u=`OpenmrsReactComponent(${t.featureName})`,i in s?Object.defineProperty(s,i,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[i]=u,a}}function M(e,t){return(0,x.A)({React:r,ReactDOMClient:N,rootComponent:D(t)(e)})}function I(e,t){return()=>e().then(({default:e})=>M(e,t))}function _(e,t){return()=>Promise.resolve(M(e,t))}const A=I;function j(){const e=(0,r.useRef)();return e.current&&!e.current.signal.aborted||(e.current=new AbortController),(0,r.useEffect)(()=>{const t=e.current;return()=>t?.abort()},[]),e.current}const U=j;function F(e,t=e=>e??{}){const[n,o]=(0,r.useState)();return(0,r.useEffect)(()=>{if(null==e||""===e.replace(" ",""))throw new Error(`The namespace supplied to useAppContext must be a non-empty string, but was "${e}".`)},[e]),(0,r.useEffect)(()=>(0,v.R)(e,e=>{if(void 0!==e){const r=t?t(e):e??{};(0,y.b)(n,r)||o(r)}}),[]),n}var B=n(6734);function G(e){const[t,n]=(0,r.useState)([]);return(0,r.useEffect)(()=>(0,i.zF)().subscribe(r=>{const o=r.slots[e]?.assignedExtensions.map(e=>e.id)??[];(0,B.A)(o,t)||n(o)}),[]),t}var $=n(8557);function H(e,t){const{data:n,error:o,mutate:a,isLoading:s,isValidating:i}=(0,O.Ay)(`${$.Zu}?patient=${e}&includeEncounterless=${t}`,S.lo);return(0,r.useMemo)(()=>({isLoading:s,data:n?.data.results??[],error:o,mutate:a,isValidating:i}),[n,o,s,i,a])}function z(e){(0,r.useEffect)(()=>{if(e){const e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}},[e])}var q=n(6886);const K={};function W(e){const t=(0,r.useMemo)(q.GI,[]),n=function(e,t){const[n,o]=(0,r.useState)(function(e,t){return t?()=>{const n=e.getState(),r=(0,q.P0)(n,t.extensionSlotName,t.extensionId);if(r.loaded&&r.config)return r.config}:null}(e,t));return(0,r.useEffect)(()=>{if(t)return e.subscribe(e=>{const r=(0,q.P0)(e,t.extensionSlotName,t.extensionId);r.loaded&&r.config&&!(0,B.A)(r.config,n)&&o(r.config)})},[e,t,n]),n}(t,e);if(!n&&e){const n=`${e.extensionSlotName}-${e.extensionId}`;throw!K[n]&&t&&(K[n]=function(e,t){return new Promise(n=>{const r=e.subscribe(e=>{const o=(0,q.P0)(e,t.extensionSlotName,t.extensionId);o.loaded&&o.config&&(n(o.config),r())})})}(t,e)),K[n]}return n||{}}function Z(e){const{moduleName:t,extension:n}=(0,r.useContext)(o),a=e?.externalModuleName??t;if(!a&&!n)throw Error('No ComponentContext has been provided. This should come from "openmrsComponentDecorator".\nUsually this is already applied when using "getAsyncLifecycle" or "getSyncLifecycle".');const s=function(e){const t=(0,r.useMemo)(()=>(0,q.IS)(e),[e]),n=e,o=function(e){const[t,n]=(0,r.useState)(function(e){return()=>{const t=e.getState();return t.loaded&&t.config?t.config:null}}(e));return(0,r.useEffect)(()=>e?.subscribe(e=>{e.loaded&&e.config&&n(e.config)}),[e]),t}(t);if(!o)throw K[n]||(K[n]=function(e){return new Promise(t=>{const n=e.subscribe(e=>{e.loaded&&e.config&&(t(e.config),n())})})}(t)),K[n];return o}(a),i=W(n);return(0,r.useMemo)(()=>e?.externalModuleName&&a===e.externalModuleName?{...s}:{...s,...i},[a,e?.externalModuleName,s,i])}const J=g;var Y=n(8581),X=n(5841);function Q(){let[e,t]=(0,r.useState)((0,X.s)());return(0,r.useEffect)(()=>(0,Y.gj)(({online:e})=>t(e)),[]),e}function ee(e,t=300){const[n,o]=(0,r.useState)(e);return(0,r.useEffect)(()=>{const n=setTimeout(()=>{o(e)},t);return()=>{clearTimeout(n)}},[e,t]),n}var te=n(4225);const ne=`custom:${[["admissionDecisionConcept","ref"],["admissionEncounterType","ref"],["admissionForm","ref"],["atFacilityVisitType","ref"],["bedAssignmentEncounterType","ref"],["cancelADTRequestEncounterType","ref"],["checkInClerkEncounterRole","ref"],["checkInEncounterType","ref"],["clinicianEncounterRole","ref"],["conceptSourcesForDiagnosisSearch","ref"],["consultEncounterType","ref"],["consultFreeTextCommentsConcept","ref"],["denyAdmissionConcept","ref"],["diagnosisMetadata","ref"],["diagnosisSets","ref"],["dischargeForm","ref"],["dispositionDescriptor","ref"],["dispositions","ref"],["emrApiConceptSource","ref"],["exitFromInpatientEncounterType","ref"],["extraPatientIdentifierTypes","ref"],["fullPrivilegeLevel","ref"],["highPrivilegeLevel","ref"],["identifierTypesToSearch","ref"],["inpatientNoteEncounterType","ref"],["lastViewedPatientSizeLimit","ref"],["metadataSourceName","ref"],["motherChildRelationshipType","ref"],["narrowerThanConceptMapType","ref"],["nonDiagnosisConceptSets","ref"],["orderingProviderEncounterRole","ref"],["patientDiedConcept","ref"],["personImageDirectory","ref"],["primaryIdentifierType","ref"],["sameAsConceptMapType","ref"],["suppressedDiagnosisConcepts","ref"],["supportsAdmissionLocationTag","(uuid,display,name,links)"],["supportsLoginLocationTag","(uuid,display,name,links)"],["supportsTransferLocationTag","(uuid,display,name,links)"],["supportsVisitsLocationTag","(uuid,display,name,links)"],["telephoneAttributeType","ref"],["testPatientPersonAttributeType","ref"],["transferForm","ref"],["transferRequestEncounterType","ref"],["transferWithinHospitalEncounterType","ref"],["unknownCauseOfDeathConcept","ref"],["unknownLocation","ref"],["unknownPatientPersonAttributeType","ref"],["unknownProvider","ref"],["visitAssignmentHandlerAdjustEncounterTimeOfDayIfNecessary","ref"],["visitExpireHours","ref"],["visitNoteEncounterType","ref"]].map(([e,t])=>`${e}:${t}`).join(",")}`;function re(){const e=`${S.Jj}/emrapi/configuration?v=${ne}`,t=(0,te.A)(e,S.lo);return(0,r.useMemo)(()=>({emrConfiguration:t.data?.data,isLoadingEmrConfiguration:t.isLoading,mutateEmrConfiguration:t.mutate,errorFetchingEmrConfiguration:t.error}),[t])}const oe=m((0,i.a9)());function ae(e){const t=g(e);return(0,r.useMemo)(()=>Object.fromEntries(t.map(e=>[e.name,e.meta])),[t])}const se=m((0,i.zF)());var ie=n(41);function ue(e){const{flags:t}=d(ie.jX);return t[e]?.enabled??!1}function ce(){const[,e]=(0,r.useState)(0);return(0,r.useCallback)(()=>{e(e=>e+1)},[])}function le(e,t,n={}){return fe(e,t,de,n)}const de={getPaginatedUrl:(e,t,n)=>{if(e){const r=new URL((0,S.Gm)(e.toString()),window.location.toString());return r.searchParams.set("limit",""+t),r.searchParams.set("startIndex",""+n),r.searchParams.set("totalCount","true"),r.toString()}return null},getNextUrl:e=>{const t=e?.links?.find(e=>"next"==e.rel)?.uri;if(t){const e=new URL(t);return e.host=window.location.host,e.protocol=window.location.protocol,e.toString()}return null},getTotalCount:e=>e?.totalCount??Number.NaN,getCurrentPageSize:e=>e?.results?.length??Number.NaN,getData:e=>e?.results};function fe(e,t,n,o={}){const{getPaginatedUrl:a,getTotalCount:s,getCurrentPageSize:i,getData:u}=n,{immutable:c,swrConfig:l}=o,d=o.fetcher??S.lo,[f,m]=(0,r.useState)(1),p=(0,r.useRef)(Number.NaN),g=(0,r.useRef)(Number.NaN),b=t,h=(f-1)*t,E=(0,r.useMemo)(()=>a(e,b,h),[e,b,h]),v=c?te.A:O.Ay,{data:y,...C}=v(E,d,l);y?.data&&(p.current=s(y?.data),g.current=i(y?.data));const R=Math.ceil(p.current/t),w=(0,r.useCallback)(e=>{0<e&&e<=R?m(e):console.warn("Invalid attempt to go to out of bounds page: "+e)},[e,f,R]),T=(0,r.useCallback)(()=>{w(f+1)},[e,f,R]),N=(0,r.useCallback)(()=>{w(f-1)},[e,f,R]);return{data:u(y?.data),totalPages:R,totalCount:p.current,currentPage:f,currentPageSize:g,paginated:R>1,showNextButton:f<R,showPreviousButton:f>1,goTo:w,goToNext:T,goToPrevious:N,...C}}function me(e,t,n={}){return fe(e,t,pe(),n)}function pe(){return{getPaginatedUrl:(e,t,n)=>{if(e){const r=new URL((0,S.Gm)(e.toString()),window.location.toString());return r.searchParams.set("_count",""+t),r.searchParams.set("_getpagesoffset",""+n),r.toString()}return null},getNextUrl:e=>{const t=e?.link?.find(e=>"next"==e.relation)?.url;if(t){const e=new URL(t);return e.host=window.location.host,e.protocol=window.location.protocol,e.toString()}return null},getTotalCount:e=>e?.total??Number.NaN,getCurrentPageSize:e=>e?.entry?.length??Number.NaN,getData:e=>e?.entry?.map(e=>e.resource)}}var ge=n(3041);function be(e,t={}){return he(e,de,t)}function he(e,t,n={}){const{swrInfiniteConfig:o,immutable:a}=n,{getNextUrl:s,getTotalCount:i,getData:u}=t,c=n.fetcher??S.lo,l=(0,r.useCallback)((n,r)=>0==n?e?.toString()??null:t.getNextUrl(r.data),[e]),{data:d,size:f,setSize:m,...p}=(0,ge.Ay)(l,c,{...o,...a?{revalidateIfStale:!1,revalidateOnFocus:!1,revalidateOnReconnect:!1}:{}}),g=s(d?.[d.length-1].data),b=null!=g,h=i(d?.[0]?.data);return{data:d?.flatMap(e=>u(e.data)),totalCount:h,hasMore:b,loadMore:()=>{m((d?.length??0)+1)},nextUri:g,...p}}function Ee(e,t={}){return ve(e,de,t)}function ve(e,t,n={}){const o=he(e,t,n),{hasMore:a,error:s,data:i,loadMore:u,isLoading:c,nextUri:l}=o;return(0,r.useEffect)(()=>{a&&!s&&u()},[a,l]),n.partialData?o:{...o,data:a||s?void 0:i,isLoading:c||a}}function ye(e,t={}){return ve(e,pe(),t)}function Ce(e,t={}){return he(e,pe(),t)}function Re(){let e="tablet";return document.body.classList.forEach(t=>{switch(t){case"omrs-breakpoint-lt-tablet":e="phone";break;case"omrs-breakpoint-gt-small-desktop":e="large-desktop";break;case"omrs-breakpoint-gt-tablet":e="small-desktop"}}),e}function we(){const[e,t]=(0,r.useState)(Re);return(0,r.useEffect)(()=>{const e=()=>{t(Re())};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),e}const Se=e=>"small-desktop"===e||"large-desktop"===e;function Te(e){const t=(0,r.useContext)(o);(0,r.useEffect)(()=>(t&&t.moduleName&&(e.componentContext=t),(0,i.Vx)(e),()=>{(0,i.sr)(e.name)}),[t,e])}function Ne(){return d(i.Gp)}function xe(e=null,t=null){const[n,o]=(0,r.useState)([]);return(0,r.useEffect)(()=>{const n=(0,$.Vs)(e,t).subscribe(e=>{o(e)},e=>{console.error(e)});return()=>n.unsubscribe()},[e,t]),n}function ke(e,t=!0){const n=(0,r.useRef)(null);return(0,r.useEffect)(()=>{const r=r=>{t&&n.current&&!n.current.contains(r.target)&&e(r)};return window.addEventListener("mousedown",r),window.addEventListener("touchstart",r),()=>{window.removeEventListener("mousedown",r),window.removeEventListener("touchstart",r)}},[e,t]),n}function Oe(e){const t=(0,r.useRef)();return(0,r.useEffect)(()=>{const n=new IntersectionObserver(t=>{for(const n of t)if(n.isIntersecting)return void e()},{threshold:1});return t.current&&n.observe(t.current),()=>{t.current&&n.unobserve(t.current)}},[t.current,e]),t}function Ve(e,t={}){const{abortController:n,fetchInit:o,url:a,swrConfig:s}=t,i=U(),u=(0,r.useMemo)(()=>o?.signal??n?.signal??i.signal,[n?.signal,o?.signal,i.signal]),c=(0,r.useCallback)(e=>{const t=function(e,t){if(t)return"function"==typeof t?t(e):t;if("string"==typeof e)return e;throw new Error(`When using useOpenmrsSWR with a key that is not a string, you must provide a url() function that converts the key to a valid url. The key for this hook is ${e}.`)}(e,a);return(0,S.lo)(t,{...o,signal:u})},[u,o,a]);return(0,O.Ay)(e,c,s)}function Pe(e=[],t=10){const[n,o]=(0,r.useState)(1),a=(0,r.useMemo)(()=>"number"==typeof t&&t>0?Math.max(1,Math.ceil(e.length/t)):1,[e.length,t]),s=(0,r.useMemo)(()=>{const r=(n-1)*t,o=(n+0)*t;return e.slice(r,o)},[e,n,t]),i=(0,r.useCallback)(e=>{o(Math.max(1,Math.min(a,e)))},[o,a]),u=(0,r.useCallback)(()=>{n<a&&o(n+1)},[n,a,o]),c=(0,r.useCallback)(()=>{n>1&&o(n-1)},[n,o]);return(0,r.useMemo)(()=>({results:s,totalPages:a,currentPage:n,paginated:e.length>t,showNextButton:n<a,showPreviousButton:n>1,goTo:i,goToNext:u,goToPrevious:c}),[s,a,e.length,t,n,i,u,c])}function Le(){const e=/\/patient\/([a-zA-Z0-9\-]+)\/?/.exec(location.pathname);return e&&e[1]}function De(e){const[t,n]=(0,r.useState)(e??Le()),{data:o,error:a,isValidating:s}=(0,O.Ay)(t?["patient",t]:null,()=>(0,$.hG)(t,{}));return(0,r.useEffect)(()=>{const e=()=>{const e=Le();e!==t&&n(e)};return window.addEventListener("single-spa:routing-event",e),()=>window.removeEventListener("single-spa:routing-event",e)},[t]),(0,r.useMemo)(()=>({isLoading:s&&!a&&!o,patient:o,patientUuid:t,error:a}),[s,a,o,t])}function Me(){const e=`${S.Jj}/metadatamapping/termmapping?v=custom:(metadataUuid)&code=emr.primaryIdentifierType`,{data:t,error:n,isLoading:o}=(0,O.Ay)(e,S.lo);return(0,r.useMemo)(()=>({primaryIdentifierCode:t?.data?.results[0]?.metadataUuid,isLoading:o,error:n}),[t,n,o])}function Ie(e){const{extensions:t,extensionSlotModuleName:n}=b(e);return e?t.map(t=>({state:a})=>r.createElement(o.Provider,{value:{moduleName:n,featureName:"",extension:{extensionId:t.id,extensionSlotName:e,extensionSlotModuleName:n}}},r.createElement(u,{state:a}))):[]}var _e=n(231),Ae=n(7581);const je={setVisitContext:(e,t)=>null==t?{manuallySetVisitUuid:null}:{manuallySetVisitUuid:t.uuid,patientUuid:t.patient?.uuid},mutateVisit(e){for(const t of Object.values(e.mutateVisitCallbacks??{}))t();return{}}};function Ue(e){const t=(0,r.useId)();return(0,r.useEffect)(()=>{const n=(0,$.BX)();return e&&n.setState({mutateVisitCallbacks:{...n.getState().mutateVisitCallbacks,[t]:e}}),()=>{if(e){const e={...n.getState().mutateVisitCallbacks};delete e[t],n.setState({mutateVisitCallbacks:e})}}},[t,e]),f((0,$.BX)(),je)}function Fe(e,t=$.Rb){const{patientUuid:n,manuallySetVisitUuid:o,setVisitContext:a}=Ue(),s=e&&n==e?o:null,i=`?patient=${e}&v=${t}&includeInactive=false`,u=`/${s}?v=${t}`,{data:c,error:l,mutate:d,isValidating:f}=(0,O.Ay)(e?`${S.Jj}/visit${i}`:null,S.lo),{data:m,error:p,mutate:g,isValidating:b}=(0,O.Ay)(e&&s?`${S.Jj}/visit${u}`:null,S.lo),h=(0,r.useMemo)(()=>c?.data.results.find(e=>null===e.stopDatetime)??null,[c]),E=(0,r.useMemo)(()=>s&&m?m.data:null,[m,s]),v=(0,r.useRef)(null);(0,r.useEffect)(()=>{!f&&h&&n===e&&null===o&&a(h),b||(v.current&&E&&v.current.uuid===E.uuid&&!v.current.stopDatetime&&E.stopDatetime&&a(null),v.current=E)},[E,o,h,f,b,n]);const y=(0,r.useCallback)(()=>{d(),g()},[d,g]);return Ue(y),{error:l||p,mutate:y,isValidating:f||b,activeVisit:h,currentVisit:E,currentVisitIsRetrospective:Boolean(s),isLoading:Boolean((!c||s&&!m)&&(!l||!p))}}function Be(){const[e,t]=(0,r.useState)([]);return(0,r.useEffect)(()=>{const e=(0,$.Pu)().subscribe(e=>{t(e)},e=>console.error(e));return()=>e.unsubscribe()},[]),e}let Ge;function $e(){const e=(0,r.useRef)(),[t,n]=(0,r.useState)(null);let o=null;if(!t){if(Ge){const e=(0,S.EW)().getState();e.loaded&&(o=e.session)}else Ge=new Promise(t=>{const n=({loaded:n,session:r})=>{n&&(t(r),o=r,e.current&&(e.current(),e.current=void 0))};n((0,S.EW)().getState()),o||(e.current=(0,S.EW)().subscribe(n))});if(!o)throw Ge;n(o)}(0,r.useEffect)(()=>(e.current||(e.current=(0,S.EW)().subscribe(({loaded:e,session:t})=>{e&&(o=t,n(t))})),()=>{e.current&&(e.current(),e.current=void 0)}),[]);const a=t||o;if(!a)throw Ge?(console.warn("useSession is in an unexpected state. Attempting to recover."),Ge):Error("useSession is in an invalid state.");return a}_e.extend(Ae)},8249(e,t,n){n.d(t,{CE:()=>r.CE,Zd:()=>r.Zd,i7:()=>r.i7,jf:()=>r.jf});var r=n(7564)},5684(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){var n;if("function"!=typeof(n=t.domElement?function(){return t.domElement}:t.domElementGetter?t.domElementGetter:e.domElementGetter?e.domElementGetter:function(e){var t=e.appName||e.name;if(!t)throw Error("single-spa's dom-element-getter-helpers was not given an application name as a prop, so it can't make a unique dom element container for the react application");var n="single-spa-application:".concat(t);return function(){var e=document.getElementById(n);return e||((e=document.createElement("div")).id=n,document.body.appendChild(e)),e}}(t)))throw Error("single-spa's dom-element-getter-helpers was given an invalid domElementGetter for application or parcel '".concat(t.name,"'. Expected a function, received ").concat(i(n)));return function(){var e=n(t);if(!(e instanceof HTMLElement))throw Error("single-spa's dom-element-getter-helpers: domElementGetter returned an invalid dom element for application or parcel '".concat(t.name,"'. Expected HTMLElement, received ").concat(i(e)));return e}}n.d(t,{A:()=>d,i:()=>c});var c=null;try{c=require("react").createContext()}catch(r){}var l={React:null,ReactDOM:null,ReactDOMClient:null,rootComponent:null,loadRootComponent:null,errorBoundary:null,errorBoundaryClass:null,domElementGetter:null,parcelCanUpdate:!0,suppressComponentDidCatchWarning:!1,domElements:{},renderResults:{},updateResolves:{},unmountResolves:{}};function d(e){if("object"!==a(e))throw new Error("single-spa-react requires a configuration object");var t,n=o(o({},l),e);if(!n.React)throw new Error("single-spa-react must be passed opts.React");if(!n.ReactDOM&&!n.ReactDOMClient)throw new Error("single-spa-react must be passed opts.ReactDOM or opts.ReactDOMClient");if(n.renderType||(null!==(t=n.ReactDOMClient)&&void 0!==t&&t.createRoot?n.renderType="createRoot":n.renderType="render"),!n.rootComponent&&!n.loadRootComponent)throw new Error("single-spa-react must be passed opts.rootComponent or opts.loadRootComponent");if(n.errorBoundary&&"function"!=typeof n.errorBoundary)throw Error("The errorBoundary opt for single-spa-react must either be omitted or be a function that returns React elements");!c&&n.React.createContext&&(c=n.React.createContext()),n.SingleSpaRoot=function(e){function t(e){t.displayName="SingleSpaRoot(".concat(e.name,")")}return t.prototype=Object.create(e.React.Component.prototype),t.prototype.componentDidMount=function(){setTimeout(this.props.mountFinished)},t.prototype.componentWillUnmount=function(){setTimeout(this.props.unmountFinished)},t.prototype.render=function(){return setTimeout(this.props.updateFinished),this.props.children},t}(n);var r={bootstrap:f.bind(null,n),mount:m.bind(null,n),unmount:p.bind(null,n)};return n.parcelCanUpdate&&(r.update=g.bind(null,n)),r}function f(e,t){return e.rootComponent?Promise.resolve():e.loadRootComponent(t).then(function(t){e.rootComponent=t})}function m(e,t){return new Promise(function(n,r){e.suppressComponentDidCatchWarning||!function(e){if(!(e&&"string"==typeof e.version&&e.version.indexOf(".")>=0))return!1;var t=e.version.slice(0,e.version.indexOf("."));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.")):console.warn("single-spa-react: ".concat(t.name||t.appName||t.childAppName,"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).")));var o=E(e,t,function(){n(this)}),a=u(e,t)(),s=function(e){var t=e.renderType,n=e.elementToRender,r=e.domElement,o=e.reactDom[t];if("function"!=typeof o)throw new Error('renderType "'.concat(t,'" did not return a function.'));switch(t){case"createRoot":case"unstable_createRoot":case"createBlockingRoot":case"unstable_createBlockingRoot":var a=o(r);return a.render(n),a;case"hydrateRoot":return o(r,n);default:return o(n,r),null}}({elementToRender:o,domElement:a,reactDom:b(e),renderType:h(e)});e.domElements[t.name]=a,e.renderResults[t.name]=s})}function p(e,t){return new Promise(function(n){e.unmountResolves[t.name]=n;var r=e.renderResults[t.name];r&&r.unmount?r.unmount():b(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]})}function g(e,t){return new Promise(function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var r=E(e,t,null),o=e.renderResults[t.name];if(o&&o.render)o.render(r);else{var a=u(e,t)();b(e).render(r,a)}})}function b(e){return e.ReactDOMClient||e.ReactDOM}function h(e){return"function"==typeof e.renderType?e.renderType():e.renderType}function E(e,t,n){var r=e.React.createElement(e.rootComponent,t),a=c?e.React.createElement(c.Provider,{value:t},r):r;return(e.errorBoundary||t.errorBoundary||e.errorBoundaryClass||t.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||t.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName="SingleSpaReactErrorBoundary(".concat(t.name,")")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,t),a=e.React.createElement(e.errorBoundaryClass,t,a)),e.React.createElement(e.SingleSpaRoot,o(o({},t),{},{mountFinished:n,updateFinished:function(){e.updateResolves[t.name]&&(e.updateResolves[t.name].forEach(function(e){return e()}),delete e.updateResolves[t.name])},unmountFinished:function(){e.unmountResolves[t.name]&&(e.unmountResolves[t.name](),delete e.unmountResolves[t.name])}}),a)}},9324(e,t,n){n.d(t,{Ay:()=>c,BE:()=>u});var r=n(6072),o=n(9888),a=n(4993);const s=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),i={dedupe:!0},u=a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb}),c=(0,a.qm)((e,t,n)=>{const{cache:u,compare:c,suspense:l,fallbackData:d,revalidateOnMount:f,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:b,keepPreviousData:h}=n,[E,v,y,C]=a.bZ.get(u),[R,w]=(0,a.lK)(e),S=(0,r.useRef)(!1),T=(0,r.useRef)(!1),N=(0,r.useRef)(R),x=(0,r.useRef)(t),k=(0,r.useRef)(n),O=()=>k.current,V=()=>O().isVisible()&&O().isOnline(),[P,L,D,M]=(0,a.r9)(u,R),I=(0,r.useRef)({}).current,_=(0,a.b0)(d)?n.fallback[R]:d,A=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)(()=>{const e=!!R&&!!t&&((0,a.b0)(f)?!O().isPaused()&&!l&&(!!(0,a.b0)(m)||m):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=P(),o=M(),s=n(r),i=r===o?s:n(o);let u=s;return[()=>{const e=n(P());return A(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]},[u,R]),U=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>D(R,(t,n)=>{A(n,t)||e()}),[u,R]),j[0],j[1]),F=!S.current,B=E[R]&&E[R].length>0,G=U.data,$=(0,a.b0)(G)?_:G,H=U.error,z=(0,r.useRef)($),q=h?(0,a.b0)(G)?z.current:G:$,K=!(B&&!(0,a.b0)(H))&&(F&&!(0,a.b0)(f)?f:!O().isPaused()&&(l?!(0,a.b0)($)&&m:(0,a.b0)($)||m)),W=!!(R&&t&&F&&K),Z=(0,a.b0)(U.isValidating)?W:U.isValidating,J=(0,a.b0)(U.isLoading)?W:U.isLoading,Y=(0,r.useCallback)(async e=>{const t=x.current;if(!R||!t||T.current||O().isPaused())return!1;let r,o,s=!0;const i=e||{},u=!y[R]||!i.dedupe,l=()=>a.dO?!T.current&&R===N.current&&S.current:R===N.current,d={isValidating:!1,isLoading:!1},f=()=>{L(d)},m=()=>{const e=y[R];e&&e[1]===o&&delete y[R]},p={isValidating:!0};(0,a.b0)(P().data)&&(p.isLoading=!0);try{if(u&&(L(p),n.loadingTimeout&&(0,a.b0)(P().data)&&setTimeout(()=>{s&&l()&&O().onLoadingSlow(R,n)},n.loadingTimeout),y[R]=[t(w),(0,a.lg)()]),[r,o]=y[R],r=await r,u&&setTimeout(m,n.dedupingInterval),!y[R]||y[R][1]!==o)return u&&l()&&O().onDiscarded(R),!1;d.error=a.ZH;const e=v[R];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),u&&l()&&O().onDiscarded(R),!1;const i=P().data;d.data=c(i,r)?i:r,u&&l()&&O().onSuccess(r,R,n)}catch(e){m();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,u&&l()&&(t.onError(e,R,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!V()||t.onErrorRetry(e,R,t,e=>{const t=E[R];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0},[R,u]),X=(0,r.useCallback)((...e)=>(0,a.mF)(u,N.current,...e),[]);if((0,a.Es)(()=>{x.current=t,k.current=n,(0,a.b0)(G)||(z.current=G)}),(0,a.Es)(()=>{if(!R)return;const e=Y.bind(a.ZH,i);let t=0;const n=(0,a.aw)(R,E,(n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();O().revalidateOnFocus&&n>t&&V()&&(t=n+O().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)O().revalidateOnReconnect&&V()&&e();else{if(n==a.bu.MUTATE_EVENT)return Y();if(n==a.bu.ERROR_REVALIDATE_EVENT)return Y(r)}});return T.current=!1,N.current=R,S.current=!0,L({_k:w}),K&&((0,a.b0)($)||a.X3?e():(0,a.mf)(e)),()=>{T.current=!0,n()}},[R]),(0,a.Es)(()=>{let e;function t(){const t=(0,a.Tn)(p)?p(P().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){P().error||!g&&!O().isVisible()||!b&&!O().isOnline()?t():Y(i).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,g,b,R]),(0,r.useDebugValue)(q),l&&(0,a.b0)($)&&R){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,k.current=n,T.current=!1;const e=C[R];if(!(0,a.b0)(e)){const t=X(e);s(t)}if(!(0,a.b0)(H))throw H;{const e=Y(i);(0,a.b0)(q)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:X,get data(){return I.data=!0,q},get error(){return I.error=!0,H},get isValidating(){return I.isValidating=!0,Z},get isLoading(){return I.isLoading=!0,J}}})},4225(e,t,n){n.d(t,{A:()=>c});var r=n(6072),o=n(9888),a=n(4993);const s=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),i={dedupe:!0};a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb});const u=(0,a.qm)((e,t,n)=>{const{cache:u,compare:c,suspense:l,fallbackData:d,revalidateOnMount:f,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:b,keepPreviousData:h}=n,[E,v,y,C]=a.bZ.get(u),[R,w]=(0,a.lK)(e),S=(0,r.useRef)(!1),T=(0,r.useRef)(!1),N=(0,r.useRef)(R),x=(0,r.useRef)(t),k=(0,r.useRef)(n),O=()=>k.current,V=()=>O().isVisible()&&O().isOnline(),[P,L,D,M]=(0,a.r9)(u,R),I=(0,r.useRef)({}).current,_=(0,a.b0)(d)?n.fallback[R]:d,A=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)(()=>{const e=!!R&&!!t&&((0,a.b0)(f)?!O().isPaused()&&!l&&(!!(0,a.b0)(m)||m):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=P(),o=M(),s=n(r),i=r===o?s:n(o);let u=s;return[()=>{const e=n(P());return A(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]},[u,R]),U=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>D(R,(t,n)=>{A(n,t)||e()}),[u,R]),j[0],j[1]),F=!S.current,B=E[R]&&E[R].length>0,G=U.data,$=(0,a.b0)(G)?_:G,H=U.error,z=(0,r.useRef)($),q=h?(0,a.b0)(G)?z.current:G:$,K=!(B&&!(0,a.b0)(H))&&(F&&!(0,a.b0)(f)?f:!O().isPaused()&&(l?!(0,a.b0)($)&&m:(0,a.b0)($)||m)),W=!!(R&&t&&F&&K),Z=(0,a.b0)(U.isValidating)?W:U.isValidating,J=(0,a.b0)(U.isLoading)?W:U.isLoading,Y=(0,r.useCallback)(async e=>{const t=x.current;if(!R||!t||T.current||O().isPaused())return!1;let r,o,s=!0;const i=e||{},u=!y[R]||!i.dedupe,l=()=>a.dO?!T.current&&R===N.current&&S.current:R===N.current,d={isValidating:!1,isLoading:!1},f=()=>{L(d)},m=()=>{const e=y[R];e&&e[1]===o&&delete y[R]},p={isValidating:!0};(0,a.b0)(P().data)&&(p.isLoading=!0);try{if(u&&(L(p),n.loadingTimeout&&(0,a.b0)(P().data)&&setTimeout(()=>{s&&l()&&O().onLoadingSlow(R,n)},n.loadingTimeout),y[R]=[t(w),(0,a.lg)()]),[r,o]=y[R],r=await r,u&&setTimeout(m,n.dedupingInterval),!y[R]||y[R][1]!==o)return u&&l()&&O().onDiscarded(R),!1;d.error=a.ZH;const e=v[R];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),u&&l()&&O().onDiscarded(R),!1;const i=P().data;d.data=c(i,r)?i:r,u&&l()&&O().onSuccess(r,R,n)}catch(e){m();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,u&&l()&&(t.onError(e,R,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!V()||t.onErrorRetry(e,R,t,e=>{const t=E[R];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0},[R,u]),X=(0,r.useCallback)((...e)=>(0,a.mF)(u,N.current,...e),[]);if((0,a.Es)(()=>{x.current=t,k.current=n,(0,a.b0)(G)||(z.current=G)}),(0,a.Es)(()=>{if(!R)return;const e=Y.bind(a.ZH,i);let t=0;const n=(0,a.aw)(R,E,(n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();O().revalidateOnFocus&&n>t&&V()&&(t=n+O().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)O().revalidateOnReconnect&&V()&&e();else{if(n==a.bu.MUTATE_EVENT)return Y();if(n==a.bu.ERROR_REVALIDATE_EVENT)return Y(r)}});return T.current=!1,N.current=R,S.current=!0,L({_k:w}),K&&((0,a.b0)($)||a.X3?e():(0,a.mf)(e)),()=>{T.current=!0,n()}},[R]),(0,a.Es)(()=>{let e;function t(){const t=(0,a.Tn)(p)?p(P().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){P().error||!g&&!O().isVisible()||!b&&!O().isOnline()?t():Y(i).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,g,b,R]),(0,r.useDebugValue)(q),l&&(0,a.b0)($)&&R){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,k.current=n,T.current=!1;const e=C[R];if(!(0,a.b0)(e)){const t=X(e);s(t)}if(!(0,a.b0)(H))throw H;{const e=Y(i);(0,a.b0)(q)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:X,get data(){return I.data=!0,q},get error(){return I.error=!0,H},get isValidating(){return I.isValidating=!0,Z},get isLoading(){return I.isLoading=!0,J}}}),c=(0,a.Ht)(u,e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))},3041(e,t,n){n.d(t,{Ay:()=>l});var r=n(6072),o=n(9888),a=n(4993);const s=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),i={dedupe:!0};a.qv.defineProperty(a.BE,"defaultValue",{value:a.sb});const u=(0,a.qm)((e,t,n)=>{const{cache:u,compare:c,suspense:l,fallbackData:d,revalidateOnMount:f,revalidateIfStale:m,refreshInterval:p,refreshWhenHidden:g,refreshWhenOffline:b,keepPreviousData:h}=n,[E,v,y,C]=a.bZ.get(u),[R,w]=(0,a.lK)(e),S=(0,r.useRef)(!1),T=(0,r.useRef)(!1),N=(0,r.useRef)(R),x=(0,r.useRef)(t),k=(0,r.useRef)(n),O=()=>k.current,V=()=>O().isVisible()&&O().isOnline(),[P,L,D,M]=(0,a.r9)(u,R),I=(0,r.useRef)({}).current,_=(0,a.b0)(d)?n.fallback[R]:d,A=(e,t)=>{for(const n in I){const r=n;if("data"===r){if(!c(e[r],t[r])){if(!(0,a.b0)(e[r]))return!1;if(!c(q,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)(()=>{const e=!!R&&!!t&&((0,a.b0)(f)?!O().isPaused()&&!l&&(!!(0,a.b0)(m)||m):f),n=t=>{const n=(0,a.rL)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=P(),o=M(),s=n(r),i=r===o?s:n(o);let u=s;return[()=>{const e=n(P());return A(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>i]},[u,R]),U=(0,o.useSyncExternalStore)((0,r.useCallback)(e=>D(R,(t,n)=>{A(n,t)||e()}),[u,R]),j[0],j[1]),F=!S.current,B=E[R]&&E[R].length>0,G=U.data,$=(0,a.b0)(G)?_:G,H=U.error,z=(0,r.useRef)($),q=h?(0,a.b0)(G)?z.current:G:$,K=!(B&&!(0,a.b0)(H))&&(F&&!(0,a.b0)(f)?f:!O().isPaused()&&(l?!(0,a.b0)($)&&m:(0,a.b0)($)||m)),W=!!(R&&t&&F&&K),Z=(0,a.b0)(U.isValidating)?W:U.isValidating,J=(0,a.b0)(U.isLoading)?W:U.isLoading,Y=(0,r.useCallback)(async e=>{const t=x.current;if(!R||!t||T.current||O().isPaused())return!1;let r,o,s=!0;const i=e||{},u=!y[R]||!i.dedupe,l=()=>a.dO?!T.current&&R===N.current&&S.current:R===N.current,d={isValidating:!1,isLoading:!1},f=()=>{L(d)},m=()=>{const e=y[R];e&&e[1]===o&&delete y[R]},p={isValidating:!0};(0,a.b0)(P().data)&&(p.isLoading=!0);try{if(u&&(L(p),n.loadingTimeout&&(0,a.b0)(P().data)&&setTimeout(()=>{s&&l()&&O().onLoadingSlow(R,n)},n.loadingTimeout),y[R]=[t(w),(0,a.lg)()]),[r,o]=y[R],r=await r,u&&setTimeout(m,n.dedupingInterval),!y[R]||y[R][1]!==o)return u&&l()&&O().onDiscarded(R),!1;d.error=a.ZH;const e=v[R];if(!(0,a.b0)(e)&&(o<=e[0]||o<=e[1]||0===e[1]))return f(),u&&l()&&O().onDiscarded(R),!1;const i=P().data;d.data=c(i,r)?i:r,u&&l()&&O().onSuccess(r,R,n)}catch(e){m();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,u&&l()&&(t.onError(e,R,t),(!0===n||(0,a.Tn)(n)&&n(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!V()||t.onErrorRetry(e,R,t,e=>{const t=E[R];t&&t[0]&&t[0](a.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(i.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0},[R,u]),X=(0,r.useCallback)((...e)=>(0,a.mF)(u,N.current,...e),[]);if((0,a.Es)(()=>{x.current=t,k.current=n,(0,a.b0)(G)||(z.current=G)}),(0,a.Es)(()=>{if(!R)return;const e=Y.bind(a.ZH,i);let t=0;const n=(0,a.aw)(R,E,(n,r={})=>{if(n==a.bu.FOCUS_EVENT){const n=Date.now();O().revalidateOnFocus&&n>t&&V()&&(t=n+O().focusThrottleInterval,e())}else if(n==a.bu.RECONNECT_EVENT)O().revalidateOnReconnect&&V()&&e();else{if(n==a.bu.MUTATE_EVENT)return Y();if(n==a.bu.ERROR_REVALIDATE_EVENT)return Y(r)}});return T.current=!1,N.current=R,S.current=!0,L({_k:w}),K&&((0,a.b0)($)||a.X3?e():(0,a.mf)(e)),()=>{T.current=!0,n()}},[R]),(0,a.Es)(()=>{let e;function t(){const t=(0,a.Tn)(p)?p(P().data):p;t&&-1!==e&&(e=setTimeout(n,t))}function n(){P().error||!g&&!O().isVisible()||!b&&!O().isOnline()?t():Y(i).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[p,g,b,R]),(0,r.useDebugValue)(q),l&&(0,a.b0)($)&&R){if(!a.dO&&a.X3)throw new Error("Fallback data is required when using suspense in SSR.");x.current=t,k.current=n,T.current=!1;const e=C[R];if(!(0,a.b0)(e)){const t=X(e);s(t)}if(!(0,a.b0)(H))throw H;{const e=Y(i);(0,a.b0)(q)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:X,get data(){return I.data=!0,q},get error(){return I.error=!0,H},get isValidating(){return I.isValidating=!0,Z},get isLoading(){return I.isLoading=!0,J}}}),c=Promise.resolve(),l=(0,a.Ht)(u,e=>(t,n,s)=>{const i=(0,r.useRef)(!1),{cache:u,initialSize:l=1,revalidateAll:d=!1,persistSize:f=!1,revalidateFirstPage:m=!0,revalidateOnMount:p=!1,parallel:g=!1}=s,[,,,b]=a.bZ.get(a.PP);let h;try{h=(e=>(0,a.lK)(e?e(0,null):null)[0])(t),h&&(h=a.q9+h)}catch(e){}const[E,v,y]=(0,a.r9)(u,h),C=(0,r.useCallback)(()=>(0,a.b0)(E()._l)?l:E()._l,[u,h,l]);(0,o.useSyncExternalStore)((0,r.useCallback)(e=>h?y(h,()=>{e()}):()=>{},[u,h]),C,C);const R=(0,r.useCallback)(()=>{const e=E()._l;return(0,a.b0)(e)?l:e},[h,l]),w=(0,r.useRef)(R());(0,a.Es)(()=>{i.current?h&&v({_l:f?w.current:R()}):i.current=!0},[h,u]);const S=p&&!i.current,T=e(h,async e=>{const r=E()._i,o=E()._r;v({_r:a.ZH});const i=[],c=R(),[l]=(0,a.r9)(u,e),f=l().data,p=[];let h=null;for(let e=0;e<c;++e){const[c,l]=(0,a.lK)(t(e,g?null:h));if(!c)break;const[E,v]=(0,a.r9)(u,c);let y=E().data;const C=d||r||(0,a.b0)(y)||m&&!e&&!(0,a.b0)(f)||S||f&&!(0,a.b0)(f[e])&&!s.compare(f[e],y);if(n&&("function"==typeof o?o(y,l):C)){const t=async()=>{if(c in b){const e=b[c];delete b[c],y=await e}else y=await n(l);v({data:y,_k:l}),i[e]=y};g?p.push(t):await t()}else i[e]=y;g||(h=y)}return g&&await Promise.all(p.map(e=>e())),v({_i:a.ZH}),i},s),N=(0,r.useCallback)(function(e,t){const n="boolean"==typeof t?{revalidate:t}:t||{},r=!1!==n.revalidate;return h?(r&&((0,a.b0)(e)?v({_i:!0,_r:n.revalidate}):v({_i:!1,_r:n.revalidate})),arguments.length?T.mutate(e,{...n,revalidate:r}):T.mutate()):c},[h,u]),x=(0,r.useCallback)(e=>{if(!h)return c;const[,n]=(0,a.r9)(u,h);let r;if((0,a.Tn)(e)?r=e(R()):"number"==typeof e&&(r=e),"number"!=typeof r)return c;n({_l:r}),w.current=r;const o=[],[s]=(0,a.r9)(u,h);let i=null;for(let e=0;e<r;++e){const[n]=(0,a.lK)(t(e,i)),[r]=(0,a.r9)(u,n),c=n?r().data:a.ZH;if((0,a.b0)(c))return N(s().data);o.push(c),i=c}return N(o)},[h,u,N,R]);return{size:R(),setSize:x,mutate:N,get data(){return T.data},get error(){return T.error},get isValidating(){return T.isValidating},get isLoading(){return T.isLoading}}})}}]);
|
package/dist/353.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[353],{
|
|
1
|
+
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[353],{9115(t){t.exports=function(){"use strict";var t=6e4,e=36e5,r="millisecond",n="second",s="minute",i="hour",u="day",a="week",c="month",o="quarter",h="year",f="date",d="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},M=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},v={s:M,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),s=r%60;return(e<=0?"+":"-")+M(n,2,"0")+":"+M(s,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),s=e.clone().add(n,c),i=r-s<0,u=e.clone().add(n+(i?-1:1),c);return+(-(n+(r-s)/(i?s-u:u-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:a,d:u,D:f,h:i,m:s,s:n,ms:r,Q:o}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",g={};g[y]=m;var p="$isDayjsObject",D=function(t){return t instanceof b||!(!t||!t[p])},S=function t(e,r,n){var s;if(!e)return y;if("string"==typeof e){var i=e.toLowerCase();g[i]&&(s=i),r&&(g[i]=r,s=i);var u=e.split("-");if(!s&&u.length>1)return t(u[0])}else{var a=e.name;g[a]=e,s=a}return!n&&s&&(y=s),s||!n&&y},_=function(t,e){if(D(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new b(r)},w=v;w.l=S,w.i=D,w.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var b=function(){function m(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var M=m.prototype;return M.parse=function(t){this.$d=function(t){var e=t.date,r=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var n=e.match($);if(n){var s=n[2]-1||0,i=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],s,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(e)}(t),this.init()},M.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},M.$utils=function(){return w},M.isValid=function(){return!(this.$d.toString()===d)},M.isSame=function(t,e){var r=_(t);return this.startOf(e)<=r&&r<=this.endOf(e)},M.isAfter=function(t,e){return _(t)<this.startOf(e)},M.isBefore=function(t,e){return this.endOf(e)<_(t)},M.$g=function(t,e,r){return w.u(t)?this[e]:this.set(r,t)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(t,e){var r=this,o=!!w.u(e)||e,d=w.p(t),$=function(t,e){var n=w.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return o?n:n.endOf(u)},l=function(t,e){return w.w(r.toDate()[t].apply(r.toDate("s"),(o?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},m=this.$W,M=this.$M,v=this.$D,y="set"+(this.$u?"UTC":"");switch(d){case h:return o?$(1,0):$(31,11);case c:return o?$(1,M):$(0,M+1);case a:var g=this.$locale().weekStart||0,p=(m<g?m+7:m)-g;return $(o?v-p:v+(6-p),M);case u:case f:return l(y+"Hours",0);case i:return l(y+"Minutes",1);case s:return l(y+"Seconds",2);case n:return l(y+"Milliseconds",3);default:return this.clone()}},M.endOf=function(t){return this.startOf(t,!1)},M.$set=function(t,e){var a,o=w.p(t),d="set"+(this.$u?"UTC":""),$=(a={},a[u]=d+"Date",a[f]=d+"Date",a[c]=d+"Month",a[h]=d+"FullYear",a[i]=d+"Hours",a[s]=d+"Minutes",a[n]=d+"Seconds",a[r]=d+"Milliseconds",a)[o],l=o===u?this.$D+(e-this.$W):e;if(o===c||o===h){var m=this.clone().set(f,1);m.$d[$](l),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else $&&this.$d[$](l);return this.init(),this},M.set=function(t,e){return this.clone().$set(t,e)},M.get=function(t){return this[w.p(t)]()},M.add=function(r,o){var f,d=this;r=Number(r);var $=w.p(o),l=function(t){var e=_(d);return w.w(e.date(e.date()+Math.round(t*r)),d)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===u)return l(1);if($===a)return l(7);var m=(f={},f[s]=t,f[i]=e,f[n]=1e3,f)[$]||1,M=this.$d.getTime()+r*m;return w.w(M,this)},M.subtract=function(t,e){return this.add(-1*t,e)},M.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||d;var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=w.z(this),i=this.$H,u=this.$m,a=this.$M,c=r.weekdays,o=r.months,h=r.meridiem,f=function(t,r,s,i){return t&&(t[r]||t(e,n))||s[r].slice(0,i)},$=function(t){return w.s(i%12||12,t,"0")},m=h||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(l,function(t,n){return n||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return w.s(e.$y,4,"0");case"M":return a+1;case"MM":return w.s(a+1,2,"0");case"MMM":return f(r.monthsShort,a,o,3);case"MMMM":return f(o,a);case"D":return e.$D;case"DD":return w.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(r.weekdaysMin,e.$W,c,2);case"ddd":return f(r.weekdaysShort,e.$W,c,3);case"dddd":return c[e.$W];case"H":return String(i);case"HH":return w.s(i,2,"0");case"h":return $(1);case"hh":return $(2);case"a":return m(i,u,!0);case"A":return m(i,u,!1);case"m":return String(u);case"mm":return w.s(u,2,"0");case"s":return String(e.$s);case"ss":return w.s(e.$s,2,"0");case"SSS":return w.s(e.$ms,3,"0");case"Z":return s}return null}(t)||s.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(r,f,d){var $,l=this,m=w.p(f),M=_(r),v=(M.utcOffset()-this.utcOffset())*t,y=this-M,g=function(){return w.m(l,M)};switch(m){case h:$=g()/12;break;case c:$=g();break;case o:$=g()/3;break;case a:$=(y-v)/6048e5;break;case u:$=(y-v)/864e5;break;case i:$=y/e;break;case s:$=y/t;break;case n:$=y/1e3;break;default:$=y}return d?$:w.a($)},M.daysInMonth=function(){return this.endOf(c).$D},M.$locale=function(){return g[this.$L]},M.locale=function(t,e){if(!t)return this.$L;var r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},M.clone=function(){return w.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},m}(),O=b.prototype;return _.prototype=O,[["$ms",r],["$s",n],["$m",s],["$H",i],["$W",u],["$M",c],["$y",h],["$D",f]].forEach(function(t){O[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),_.extend=function(t,e){return t.$i||(t(e,b,_),t.$i=!0),_},_.locale=S,_.isDayjs=D,_.unix=function(t){return _(1e3*t)},_.en=g[y],_.Ls=g,_.p={},_}()}}]);
|
package/dist/499.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[499],{2499(e,n,
|
|
1
|
+
(globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions=globalThis.webpackChunk_cc_openmrs_cc_esm_active_prescriptions||[]).push([[499,987],{2499(e,n,r){"use strict";r.r(n),r.d(n,{blueBox:()=>T,brandBox:()=>j,importTranslation:()=>v,prescriptionsActionButton:()=>w,redBox:()=>k,root:()=>A,startupApp:()=>b});var t=r(6072),o=r(961),i=r(5987),c=r(1104),s=r(5684),a={casualGreeting:{_type:i.Type.Boolean,_default:!1,_description:"Whether to use a casual greeting (or a formal one)."},whoToGreet:{_type:i.Type.Array,_default:["World"],_description:"Who should be greeted. Names will be separated by a comma and space.",_elements:{_type:i.Type.String},_validators:[(0,i.validator)(function(e){return e.length>0},"At least one person must be greeted.")]}},u=r(4520),p=r(771),d=r(2076),l=function(){return(0,i.launchWorkspace)("active-prescriptions")};var m="@cc-openmrs/cc-esm-active-prescriptions",f={featureName:"active-prescriptions",moduleName:m};function h(e,n){return(0,s.A)({React:t,ReactDOM:o,renderType:"render",rootComponent:(0,c.F7)(n)(e)})}function _(e,n){return function(){return e().then(function(e){return h(e.default,n)})}}var v=r(4767);function b(){(0,i.defineConfigSchema)(m,a)}var y,g,k=_(function(){return r.e(319).then(r.bind(r,4319))},f),T=_(function(){return r.e(966).then(r.bind(r,966))},f),j=_(function(){return r.e(537).then(r.bind(r,1537))},f),w=(y=function(){var e=(0,(0,d.useTranslation)().t)("activePrescriptions","Active prescriptions");return t.createElement(u.$nd,{kind:"ghost",renderIcon:p.sV,iconDescription:e,onClick:l,size:"md"},e)},g=f,function(){return Promise.resolve(h(y,g))}),A=_(function(){return r.e(845).then(r.bind(r,6845))},f)},4767(e,n,r){var t={"./am.json":[1197,[197]],"./en.json":[4300,[300]],"./es.json":[3099,[99]],"./fr.json":[4055,[55]],"./he.json":[2271,[652]],"./km.json":[6716,[335]],"./pt.json":[6679,[679]]};function o(e){try{if(!r.o(t,e))return Promise.resolve().then(()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n})}catch(e){return Promise.reject(e)}var n=t[e],o=n[0];return r.e(n[1][0]).then(()=>r(o))}o.keys=()=>Object.keys(t),o.id=4767,e.exports=o}}]);
|