@openmrs/esm-fast-data-entry-app 1.4.2-pre.776 → 1.4.2-pre.778
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/1100.js +1 -1
- package/dist/2588.js +1 -1
- package/dist/3378.js +1 -1
- package/dist/4253.js +1 -1
- package/dist/5660.js +1 -1
- package/dist/6107.js +1 -1
- package/dist/7139.js +1 -1
- package/dist/8030.js +1 -1
- package/dist/8120.js +1 -1
- package/dist/main.js +2 -2
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-fast-data-entry-app.js +1 -1
- package/dist/openmrs-esm-fast-data-entry-app.js.buildmanifest.json +12 -12
- package/dist/openmrs-esm-fast-data-entry-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
package/dist/3378.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_fast_data_entry_app=globalThis.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([["3378"],{4767(e,o,t){var s={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["6468","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","997"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function n(e){if(!t.o(s,e))return Promise.resolve().then(function(){var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o});var o=s[e],n=o[0];return t.e(o[1]).then(function(){return t(n)})}n.keys=()=>Object.keys(s),n.id=4767,e.exports=n},7481(e,o,t){"use strict";t.r(o),t.d(o,{formsAppMenuLink:()=>c,startupApp:()=>f,importTranslation:()=>i,root:()=>p});var s=t(
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_fast_data_entry_app=globalThis.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([["3378"],{4767(e,o,t){var s={"./uk.json":["723","9072"],"./ar.json":["4132","7045"],"./ru_RU.json":["986","8359"],"./uz_UZ.json":["890","7175"],"./fr.json":["4055","6508"],"./sw_KE.json":["8618","903"],"./uz.json":["3584","6377"],"./en.json":["4300","5117"],"./ky.json":["8163","2416"],"./pl.json":["1119","6724"],"./sq.json":["8371","4928"],"./ka.json":["795","1480"],"./si.json":["6859","6904"],"./zh_TW.json":["439","556"],"./de.json":["4944","5145"],"./lg.json":["4618","8695"],"./vi.json":["9214","6371"],"./tr.json":["5241","434"],"./es_MX.json":["8349","1646"],"./tr_TR.json":["9900","1869"],"./zh_CN.json":["9879","5644"],"./en_US.json":["9569","4106"],"./he.json":["4652","2317"],"./id.json":["2690","6047"],"./ku.json":["9895","4348"],"./es.json":["3099","7912"],"./ne.json":["2146","5503"],"./ar_SY.json":["7617","282"],"./uz@Latn.json":["7097","4658"],"./bn.json":["7159","6444"],"./cs.json":["6589","7182"],"./zh.json":["5661","7742"],"./hi_IN.json":["5442","4383"],"./pt_BR.json":["6468","1877"],"./qu.json":["5173","8358"],"./ro_RO.json":["6022","3963"],"./sw.json":["9913","997"],"./am.json":["1197","9806"],"./pt.json":["6679","5132"],"./it.json":["9538","4111"],"./km.json":["4335","5940"],"./hi.json":["6840","2881"]};function n(e){if(!t.o(s,e))return Promise.resolve().then(function(){var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o});var o=s[e],n=o[0];return t.e(o[1]).then(function(){return t(n)})}n.keys=()=>Object.keys(s),n.id=4767,e.exports=n},7481(e,o,t){"use strict";t.r(o),t.d(o,{formsAppMenuLink:()=>c,startupApp:()=>f,importTranslation:()=>i,root:()=>p});var s=t(8345),n={formCategories:{_type:s.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:s.Type.String,_description:"Category name"},forms:{_type:s.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:s.Type.UUID,_description:"UUID of form"},name:{_type:s.Type.String,_description:"Name of form"},disableGroupSession:{_type:s.Type.Boolean,_description:"Disable group sessions for this form",_default:!1}}}},_default:[]},formCategoriesToShow:{_type:s.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:s.Type.String,_description:"Name of category"},_default:[]},groupSessionConcepts:{sessionName:{_type:s.Type.UUID,_description:"UUID of concept for Session Name",_default:"e2559620-900b-4f66-ae41-0b9c4adfb654"},sessionDate:{_type:s.Type.UUID,_description:"UUID of concept for Session Date",_default:"ceaca505-6dff-4940-8a43-8c060a0924d7"},practitionerName:{_type:s.Type.UUID,_description:"UUID of concept for Practitioner Name",_default:"f1a2d58c-1a0e-4148-931a-aac224649fdc"},sessionNotes:{_type:s.Type.UUID,_description:"UUID of concept for Session Notes",_default:"fa8fedc0-c066-4da3-8dc1-2ad8621fc480"},cohortTypeId:{_type:s.Type.UUID,_description:"UUID of cohort type",_default:"eee9970e-7ca0-4e8c-a280-c33e9d5f6a04"},cohortId:{_type:s.Type.UUID,_description:"UUID of concept for cohort identifier",_default:"5461f231-7e59-4be8-93a4-6d49fd13c00a"},cohortName:{_type:s.Type.UUID,_description:"UUID of concept for cohort name",_default:"6029f289-92a6-4a68-80f1-3078d0152449"},sessionUuid:{_type:s.Type.UUID,_description:"UUID of concept for session identifier",_default:"6a803908-8a5b-4598-adea-19358c83529a"}},specificQuestions:{_type:s.Type.Array,_description:"List of specific questions to populate forms.",_elements:{forms:{_type:s.Type.Array,_description:"List of form UUIDs for which the question applies.",_elements:{_type:s.Type.UUID},_default:[]},questionId:{_type:s.Type.String,_description:"ID of the question.",_default:""}},_default:[]},patientLocationMismatchCheck:{_type:s.Type.Boolean,_description:"Whether to prompt for confirmation if the selected patient is not at the same location as the current session.",_default:!1},enforcePatientListLocationMatch:{_type:s.Type.Boolean,_description:"If true, prevents adding patients from a different location than the current session.",_default:!1}},r="@openmrs/esm-fast-data-entry-app",a={featureName:"fast-data-entry-app",moduleName:r},i=t(4767),p=(0,s.getAsyncLifecycle)(function(){return Promise.all([t.e("3080"),t.e("2044"),t.e("9403")]).then(t.bind(t,2934))},a),c=(0,s.getAsyncLifecycle)(function(){return Promise.all([t.e("3080"),t.e("9823"),t.e("4253")]).then(t.bind(t,4796))},a);function f(){(0,s.defineConfigSchema)(r,n),(0,s.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}])}}}]);
|
package/dist/4253.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_fast_data_entry_app=globalThis.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([["4253"],{4796(a,e,n){n.r(e),n.d(e,{default:()=>_});var t=n(7979),s=n.n(t),r=n(3826),p=n(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_fast_data_entry_app=globalThis.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([["4253"],{4796(a,e,n){n.r(e),n.d(e,{default:()=>_});var t=n(7979),s=n.n(t),r=n(3826),p=n(8345);function _(){var a=(0,r.useTranslation)().t;return s().createElement(p.ConfigurableLink,{to:"${openmrsSpaBase}/forms"},a("formsAppMenuLink","Fast Data Entry"))}}}]);
|
package/dist/5660.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_fast_data_entry_app=globalThis.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([["5660"],{6314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r}).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);n&&i[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},4991(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=e&&("u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),4!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return t(e,4);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,4)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[1],i=r[3];if(!i)return n;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return[n].concat(i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")})).concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a)," */")]).join("\n")}return[n].join("\n")}},5072(e){var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],o=0;o<e.length;o++){var u=e[o],s=n.base?u[0]+n.base:u[0],c=i[s]||0,d="".concat(s," ").concat(c);i[s]=c+1;var l=r(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==l)t[l].references++,t[l].updater(f);else{var p=function(e,t){var r=t.domAPI(t);return r.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&r.update(e=t):r.remove()}}(f,n);n.byIndex=o,t.splice(o,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}e.exports=function(e,i){var a=n(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var u=r(a[o]);t[u].references--}for(var s=n(e,i),c=0;c<a.length;c++){var d=r(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=s}}},7659(e){var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},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,r){e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7825(e){e.exports=function(e){if("u"<typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){var n,i,a;n="",r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {")),(i=void 0!==r.layer)&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}"),(a=r.sourceMap)&&"u">typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(n,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},3494(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))}}},8493(e,t,r){var n=r(7979),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,u=n.useLayoutEffect,s=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,d=n[1];return u(function(){i.value=r,i.getSnapshot=t,c(i)&&d({inst:i})},[e,r,t]),o(function(){return c(i)&&d({inst:i}),e(function(){c(i)&&d({inst:i})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},9888(e,t,r){e.exports=r(8493)},8414(e,t,r){let n;r.d(t,{A:()=>u});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),a=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let u=function(e,t,r){if(i&&!t&&!e)return i();let u=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)})();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=u[e];return t}return function(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}(u)}},9324(e,t,r){r.d(t,{Ay:()=>d,BE:()=>c});var n=r(7979),i=r.n(n),a=r(9888),o=r(7956);let u=i().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),s={dedupe:!0},c=o.OBJECT.defineProperty(o.SWRConfig,"defaultValue",{value:o.defaultConfig}),d=(0,o.withArgs)((e,t,r)=>{let{cache:i,compare:c,suspense:d,fallbackData:l,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:y,refreshWhenOffline:g,keepPreviousData:m}=r,[h,E,b,S]=o.SWRGlobalState.get(i),[R,U]=(0,o.serialize)(e),T=(0,n.useRef)(!1),C=(0,n.useRef)(!1),w=(0,n.useRef)(R),_=(0,n.useRef)(t),V=(0,n.useRef)(r),I=()=>V.current.isVisible()&&V.current.isOnline(),[A,L,O,x]=(0,o.createCacheHelper)(i,R),N=(0,n.useRef)({}).current,j=(0,o.isUndefined)(l)?r.fallback[R]:l,D=(e,t)=>{for(let r in N)if("data"===r){if(!c(e[r],t[r])&&(!(0,o.isUndefined)(e[r])||!c(B,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},k=(0,n.useMemo)(()=>{let e=!!R&&!!t&&((0,o.isUndefined)(f)?!V.current.isPaused()&&!d&&(!!(0,o.isUndefined)(p)||p):f),r=t=>{let r=(0,o.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=A(),i=x(),a=r(n),u=n===i?a:r(i),s=a;return[()=>{let e=r(A());return D(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>u]},[i,R]),M=(0,a.useSyncExternalStore)((0,n.useCallback)(e=>O(R,(t,r)=>{D(r,t)||e()}),[i,R]),k[0],k[1]),F=!T.current,P=h[R]&&h[R].length>0,G=M.data,H=(0,o.isUndefined)(G)?j:G,J=M.error,q=(0,n.useRef)(H),B=m?(0,o.isUndefined)(G)?q.current:G:H,W=(!P||!!(0,o.isUndefined)(J))&&(F&&!(0,o.isUndefined)(f)?f:!V.current.isPaused()&&(d?!(0,o.isUndefined)(H)&&p:(0,o.isUndefined)(H)||p)),Y=!!(R&&t&&F&&W),z=(0,o.isUndefined)(M.isValidating)?Y:M.isValidating,$=(0,o.isUndefined)(M.isLoading)?Y:M.isLoading,K=(0,n.useCallback)(async e=>{let t,n,i=_.current;if(!R||!i||C.current||V.current.isPaused())return!1;let a=!0,u=e||{},s=!b[R]||!u.dedupe,d=()=>o.IS_REACT_LEGACY?!C.current&&R===w.current&&T.current:R===w.current,l={isValidating:!1,isLoading:!1},f=()=>{L(l)},p=()=>{let e=b[R];e&&e[1]===n&&delete b[R]},v={isValidating:!0};(0,o.isUndefined)(A().data)&&(v.isLoading=!0);try{if(s&&(L(v),r.loadingTimeout&&(0,o.isUndefined)(A().data)&&setTimeout(()=>{a&&d()&&V.current.onLoadingSlow(R,r)},r.loadingTimeout),b[R]=[i(U),(0,o.getTimestamp)()]),[t,n]=b[R],t=await t,s&&setTimeout(p,r.dedupingInterval),!b[R]||b[R][1]!==n)return s&&d()&&V.current.onDiscarded(R),!1;l.error=o.UNDEFINED;let e=E[R];if(!(0,o.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),s&&d()&&V.current.onDiscarded(R),!1;let u=A().data;l.data=c(u,t)?u:t,s&&d()&&V.current.onSuccess(t,R,r)}catch(r){p();let e=V.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(l.error=r,s&&d()&&(e.onError(r,R,e),(!0===t||(0,o.isFunction)(t)&&t(r))&&(!V.current.revalidateOnFocus||!V.current.revalidateOnReconnect||I())&&e.onErrorRetry(r,R,e,e=>{let t=h[R];t&&t[0]&&t[0](o.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[R,i]),Q=(0,n.useCallback)((...e)=>(0,o.internalMutate)(i,w.current,...e),[]);if((0,o.useIsomorphicLayoutEffect)(()=>{_.current=t,V.current=r,(0,o.isUndefined)(G)||(q.current=G)}),(0,o.useIsomorphicLayoutEffect)(()=>{if(!R)return;let e=K.bind(o.UNDEFINED,s),t=0,r=(0,o.subscribeCallback)(R,h,(r,n={})=>{if(r==o.revalidateEvents.FOCUS_EVENT){let r=Date.now();V.current.revalidateOnFocus&&r>t&&I()&&(t=r+V.current.focusThrottleInterval,e())}else if(r==o.revalidateEvents.RECONNECT_EVENT)V.current.revalidateOnReconnect&&I()&&e();else if(r==o.revalidateEvents.MUTATE_EVENT)return K();else if(r==o.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)});return C.current=!1,w.current=R,T.current=!0,L({_k:U}),W&&((0,o.isUndefined)(H)||o.IS_SERVER?e():(0,o.rAF)(e)),()=>{C.current=!0,r()}},[R]),(0,o.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,o.isFunction)(v)?v(A().data):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!A().error&&(y||V.current.isVisible())&&(g||V.current.isOnline())?K(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,y,g,R]),(0,n.useDebugValue)(B),d&&(0,o.isUndefined)(H)&&R){if(!o.IS_REACT_LEGACY&&o.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");_.current=t,V.current=r,C.current=!1;let e=S[R];if((0,o.isUndefined)(e)||u(Q(e)),(0,o.isUndefined)(J)){let e=K(s);(0,o.isUndefined)(B)||(e.status="fulfilled",e.value=!0),u(e)}else throw J}return{mutate:Q,get data(){return N.data=!0,B},get error(){return N.error=!0,J},get isValidating(){return N.isValidating=!0,z},get isLoading(){return N.isLoading=!0,$}}})}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_fast_data_entry_app=globalThis.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([["5660"],{6314(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=e(t);return t[2]?"@media ".concat(t[2]," {").concat(r,"}"):r}).join("")},t.i=function(e,r,n){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(n)for(var a=0;a<this.length;a++){var o=this[a][0];null!=o&&(i[o]=!0)}for(var u=0;u<e.length;u++){var s=[].concat(e[u]);n&&i[s[0]]||(r&&(s[2]?s[2]="".concat(r," and ").concat(s[2]):s[2]=r),t.push(s))}},t}},4991(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}e.exports=function(e){var r=function(e){if(Array.isArray(e))return e}(e)||function(e){var t,r,n=e&&("u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=n){var i=[],a=!0,o=!1;try{for(n=n.call(e);!(a=(t=n.next()).done)&&(i.push(t.value),4!==i.length);a=!0);}catch(e){o=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e)||function(e){if(e){if("string"==typeof e)return t(e,4);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,4)}}(e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),n=r[1],i=r[3];if(!i)return n;if("function"==typeof btoa){var a=btoa(unescape(encodeURIComponent(JSON.stringify(i))));return[n].concat(i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")})).concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a)," */")]).join("\n")}return[n].join("\n")}},5072(e){var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],o=0;o<e.length;o++){var u=e[o],s=n.base?u[0]+n.base:u[0],c=i[s]||0,d="".concat(s," ").concat(c);i[s]=c+1;var l=r(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==l)t[l].references++,t[l].updater(f);else{var p=function(e,t){var r=t.domAPI(t);return r.update(e),function(t){t?(t.css!==e.css||t.media!==e.media||t.sourceMap!==e.sourceMap||t.supports!==e.supports||t.layer!==e.layer)&&r.update(e=t):r.remove()}}(f,n);n.byIndex=o,t.splice(o,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}e.exports=function(e,i){var a=n(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var u=r(a[o]);t[u].references--}for(var s=n(e,i),c=0;c<a.length;c++){var d=r(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=s}}},7659(e){var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},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,r){e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7825(e){e.exports=function(e){if("u"<typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){var n,i,a;n="",r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {")),(i=void 0!==r.layer)&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}"),(a=r.sourceMap)&&"u">typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(n,t,e.options)},remove:function(){var e;null===(e=t).parentNode||e.parentNode.removeChild(e)}}}},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))}}},8493(e,t,r){var n=r(7979),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,u=n.useLayoutEffect,s=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,d=n[1];return u(function(){i.value=r,i.getSnapshot=t,c(i)&&d({inst:i})},[e,r,t]),o(function(){return c(i)&&d({inst:i}),e(function(){c(i)&&d({inst:i})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:d},9888(e,t,r){e.exports=r(8493)},8414(e,t,r){let n;r.d(t,{A:()=>u});let i="u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),a=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let u=function(e,t,r){if(i&&!t&&!e)return i();let u=(e=e||{}).random||(e.rng||function(){if(!n&&!(n="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(a)})();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){r=r||0;for(let e=0;e<16;++e)t[r+e]=u[e];return t}return function(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}(u)}},9324(e,t,r){r.d(t,{Ay:()=>d,BE:()=>c});var n=r(7979),i=r.n(n),a=r(9888),o=r(7956);let u=i().use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),s={dedupe:!0},c=o.OBJECT.defineProperty(o.SWRConfig,"defaultValue",{value:o.defaultConfig}),d=(0,o.withArgs)((e,t,r)=>{let{cache:i,compare:c,suspense:d,fallbackData:l,revalidateOnMount:f,revalidateIfStale:p,refreshInterval:v,refreshWhenHidden:y,refreshWhenOffline:g,keepPreviousData:m}=r,[h,E,b,S]=o.SWRGlobalState.get(i),[R,U]=(0,o.serialize)(e),T=(0,n.useRef)(!1),C=(0,n.useRef)(!1),w=(0,n.useRef)(R),_=(0,n.useRef)(t),V=(0,n.useRef)(r),I=()=>V.current.isVisible()&&V.current.isOnline(),[A,L,O,x]=(0,o.createCacheHelper)(i,R),N=(0,n.useRef)({}).current,j=(0,o.isUndefined)(l)?r.fallback[R]:l,D=(e,t)=>{for(let r in N)if("data"===r){if(!c(e[r],t[r])&&(!(0,o.isUndefined)(e[r])||!c(B,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},k=(0,n.useMemo)(()=>{let e=!!R&&!!t&&((0,o.isUndefined)(f)?!V.current.isPaused()&&!d&&(!!(0,o.isUndefined)(p)||p):f),r=t=>{let r=(0,o.mergeObjects)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=A(),i=x(),a=r(n),u=n===i?a:r(i),s=a;return[()=>{let e=r(A());return D(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>u]},[i,R]),M=(0,a.useSyncExternalStore)((0,n.useCallback)(e=>O(R,(t,r)=>{D(r,t)||e()}),[i,R]),k[0],k[1]),F=!T.current,P=h[R]&&h[R].length>0,G=M.data,H=(0,o.isUndefined)(G)?j:G,J=M.error,q=(0,n.useRef)(H),B=m?(0,o.isUndefined)(G)?q.current:G:H,W=(!P||!!(0,o.isUndefined)(J))&&(F&&!(0,o.isUndefined)(f)?f:!V.current.isPaused()&&(d?!(0,o.isUndefined)(H)&&p:(0,o.isUndefined)(H)||p)),Y=!!(R&&t&&F&&W),z=(0,o.isUndefined)(M.isValidating)?Y:M.isValidating,$=(0,o.isUndefined)(M.isLoading)?Y:M.isLoading,K=(0,n.useCallback)(async e=>{let t,n,i=_.current;if(!R||!i||C.current||V.current.isPaused())return!1;let a=!0,u=e||{},s=!b[R]||!u.dedupe,d=()=>o.IS_REACT_LEGACY?!C.current&&R===w.current&&T.current:R===w.current,l={isValidating:!1,isLoading:!1},f=()=>{L(l)},p=()=>{let e=b[R];e&&e[1]===n&&delete b[R]},v={isValidating:!0};(0,o.isUndefined)(A().data)&&(v.isLoading=!0);try{if(s&&(L(v),r.loadingTimeout&&(0,o.isUndefined)(A().data)&&setTimeout(()=>{a&&d()&&V.current.onLoadingSlow(R,r)},r.loadingTimeout),b[R]=[i(U),(0,o.getTimestamp)()]),[t,n]=b[R],t=await t,s&&setTimeout(p,r.dedupingInterval),!b[R]||b[R][1]!==n)return s&&d()&&V.current.onDiscarded(R),!1;l.error=o.UNDEFINED;let e=E[R];if(!(0,o.isUndefined)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return f(),s&&d()&&V.current.onDiscarded(R),!1;let u=A().data;l.data=c(u,t)?u:t,s&&d()&&V.current.onSuccess(t,R,r)}catch(r){p();let e=V.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(l.error=r,s&&d()&&(e.onError(r,R,e),(!0===t||(0,o.isFunction)(t)&&t(r))&&(!V.current.revalidateOnFocus||!V.current.revalidateOnReconnect||I())&&e.onErrorRetry(r,R,e,e=>{let t=h[R];t&&t[0]&&t[0](o.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(u.retryCount||0)+1,dedupe:!0})))}return a=!1,f(),!0},[R,i]),Q=(0,n.useCallback)((...e)=>(0,o.internalMutate)(i,w.current,...e),[]);if((0,o.useIsomorphicLayoutEffect)(()=>{_.current=t,V.current=r,(0,o.isUndefined)(G)||(q.current=G)}),(0,o.useIsomorphicLayoutEffect)(()=>{if(!R)return;let e=K.bind(o.UNDEFINED,s),t=0,r=(0,o.subscribeCallback)(R,h,(r,n={})=>{if(r==o.revalidateEvents.FOCUS_EVENT){let r=Date.now();V.current.revalidateOnFocus&&r>t&&I()&&(t=r+V.current.focusThrottleInterval,e())}else if(r==o.revalidateEvents.RECONNECT_EVENT)V.current.revalidateOnReconnect&&I()&&e();else if(r==o.revalidateEvents.MUTATE_EVENT)return K();else if(r==o.revalidateEvents.ERROR_REVALIDATE_EVENT)return K(n)});return C.current=!1,w.current=R,T.current=!0,L({_k:U}),W&&((0,o.isUndefined)(H)||o.IS_SERVER?e():(0,o.rAF)(e)),()=>{C.current=!0,r()}},[R]),(0,o.useIsomorphicLayoutEffect)(()=>{let e;function t(){let t=(0,o.isFunction)(v)?v(A().data):v;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!A().error&&(y||V.current.isVisible())&&(g||V.current.isOnline())?K(s).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[v,y,g,R]),(0,n.useDebugValue)(B),d&&(0,o.isUndefined)(H)&&R){if(!o.IS_REACT_LEGACY&&o.IS_SERVER)throw Error("Fallback data is required when using suspense in SSR.");_.current=t,V.current=r,C.current=!1;let e=S[R];if((0,o.isUndefined)(e)||u(Q(e)),(0,o.isUndefined)(J)){let e=K(s);(0,o.isUndefined)(B)||(e.status="fulfilled",e.value=!0),u(e)}else throw J}return{mutate:Q,get data(){return N.data=!0,B},get error(){return N.error=!0,J},get isValidating(){return N.isValidating=!0,z},get isLoading(){return N.isLoading=!0,$}}})}}]);
|