@kenyaemr/esm-service-queues-app 8.0.1-pre.99 → 8.0.3-pre.131
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/.turbo/turbo-build.log +21 -22
- package/dist/130.js +1 -1
- package/dist/130.js.LICENSE.txt +2 -0
- package/dist/130.js.map +1 -1
- package/dist/199.js +1 -1
- package/dist/199.js.map +1 -1
- package/dist/2.js +1 -0
- package/dist/2.js.map +1 -0
- package/dist/271.js +1 -1
- package/dist/319.js +1 -1
- package/dist/325.js +1 -0
- package/dist/325.js.map +1 -0
- package/dist/372.js +2 -0
- package/dist/372.js.map +1 -0
- package/dist/392.js +1 -1
- package/dist/460.js +1 -1
- package/dist/574.js +1 -1
- package/dist/60.js +1 -0
- package/dist/60.js.map +1 -0
- package/dist/644.js +1 -1
- package/dist/660.js +2 -0
- package/dist/{484.js.LICENSE.txt → 660.js.LICENSE.txt} +10 -0
- package/dist/660.js.map +1 -0
- package/dist/670.js +1 -1
- package/dist/670.js.map +1 -1
- package/dist/727.js +1 -1
- package/dist/748.js +1 -0
- package/dist/748.js.map +1 -0
- package/dist/757.js +1 -1
- package/dist/760.js +1 -1
- package/dist/760.js.map +1 -1
- package/dist/788.js +1 -1
- package/dist/807.js +1 -1
- package/dist/818.js +1 -1
- package/dist/833.js +1 -1
- package/dist/911.js +1 -1
- package/dist/kenyaemr-esm-service-queues-app.js +1 -1
- package/dist/kenyaemr-esm-service-queues-app.js.buildmanifest.json +171 -174
- package/dist/kenyaemr-esm-service-queues-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package-lock.json +5892 -0
- package/package.json +2 -2
- package/src/active-visits/change-status-dialog.component.tsx +141 -138
- package/src/active-visits/change-status-dialog.test.tsx +5 -5
- package/src/config-schema.ts +4 -10
- package/src/index.ts +7 -0
- package/src/patient-queue-header/patient-queue-header.component.tsx +25 -38
- package/src/patient-queue-header/patient-queue-header.scss +3 -41
- package/src/patient-queue-metrics/clinic-metrics.component.tsx +4 -4
- package/src/patient-queue-metrics/metrics-header.component.tsx +16 -15
- package/src/patient-search/patient-scheduled-visits.component.tsx +43 -52
- package/src/patient-search/visit-form/visit-form.component.tsx +43 -50
- package/src/queue-screen/queue-screen.component.tsx +67 -11
- package/src/queue-screen/queue-screen.test.tsx +1 -1
- package/src/queue-screen/useActiveTickets.tsx +1 -1
- package/src/queue-table/cells/columns.resource.ts +2 -2
- package/src/queue-table/default-queue-table.component.tsx +17 -15
- package/src/queue-table/queue-entry-actions/transition-queue-entry.modal.tsx +7 -2
- package/src/queue-table/queue-table-by-status-menu.component.tsx +1 -1
- package/src/queue-table/queue-table-metrics.component.tsx +6 -1
- package/src/queue-table/queue-table.component.tsx +11 -8
- package/src/queue-table/queue-table.scss +5 -0
- package/src/remove-queue-entry-dialog/remove-queue-entry.component.tsx +16 -15
- package/src/remove-queue-entry-dialog/remove-queue-entry.resource.ts +20 -26
- package/src/routes.json +34 -27
- package/src/transition-latest-queue-entry/transition-latest-queue-entry.component.tsx +33 -0
- package/src/transition-latest-queue-entry/transition-latest-queue-entry.resource.ts +30 -0
- package/translations/am.json +4 -3
- package/translations/ar.json +5 -4
- package/translations/en.json +9 -6
- package/translations/es.json +81 -80
- package/translations/fr.json +255 -254
- package/translations/he.json +5 -4
- package/translations/km.json +5 -4
- package/translations/zh.json +5 -4
- package/translations/zh_CN.json +5 -4
- package/dist/152.js +0 -1
- package/dist/152.js.map +0 -1
- package/dist/255.js +0 -2
- package/dist/255.js.map +0 -1
- package/dist/265.js +0 -1
- package/dist/265.js.map +0 -1
- package/dist/303.js +0 -1
- package/dist/303.js.map +0 -1
- package/dist/484.js +0 -2
- package/dist/484.js.map +0 -1
- package/dist/729.js +0 -1
- package/dist/729.js.map +0 -1
- package/src/patient-queue-header/patient-queue-illustration.component.tsx +0 -22
- /package/dist/{255.js.LICENSE.txt → 372.js.LICENSE.txt} +0 -0
package/dist/199.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[199],{3199:(t,e,n)=>{n.r(e),n.d(e,{default:()=>y});var r=n(5206),i=n.n(r),u=n(4924),o=n(9363),a=n(7702),s=n(88);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y=function(t){var e=t.queueEntry,n=t.closeModal,r=(0,u.useTranslation)().t;return i().createElement(o.Z,{queueEntry:e,closeModal:n,modalParams:{modalTitle:r("transitionPatient","Transition patient"),modalInstruction:
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[199],{3199:(t,e,n)=>{n.r(e),n.d(e,{default:()=>y});var r=n(5206),i=n.n(r),u=n(4924),o=n(9363),a=n(7702),s=n(88);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const y=function(t){var e=t.queueEntry,n=t.closeModal,r=t.modalTitle,y=(0,u.useTranslation)().t;return i().createElement(o.Z,{queueEntry:e,closeModal:n,modalParams:{modalTitle:r||y("transitionPatient","Transition patient"),modalInstruction:y("transitionPatientStatusOrQueue","Select a new status or queue for patient to transition to."),submitButtonText:y("transitionPatient","Transition patient"),submitSuccessTitle:y("queueEntryTransitioned","Queue entry transitioned"),submitSuccessText:y("queueEntryTransitionedSuccessfully","Queue entry transitioned successfully"),submitFailureTitle:y("queueEntryTransitionFailed","Error transitioning queue entry"),submitAction:function(t,e){var n,r,i=new Date(e.transitionDate),u=(n=(0,s.A)(e.transitionTime,e.transitionTimeFormat),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,u=[],o=!0,a=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);o=!0);}catch(t){a=!0,i=t}finally{try{o||null==n.return||n.return()}finally{if(a)throw i}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):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.")}()),o=u[0],y=u[1];return i.setHours(o,y,0,0),(0,a.rf)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}({queueEntryToTransition:t.uuid,newQueue:e.selectedQueue,newStatus:e.selectedStatus,newPriority:e.selectedPriority,newPriorityComment:e.prioritycomment},e.modifyDefaultTransitionDateTime?{transitionDate:i.toISOString()}:{}))},disableSubmit:function(t,e){return e.selectedQueue==t.queue.uuid&&e.selectedStatus==t.status.uuid},isTransition:!0}})}}}]);
|
package/dist/199.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"199.js","mappings":"
|
|
1
|
+
{"version":3,"file":"199.js","mappings":"4dAuDA,QA1C4E,Y,IAC1EA,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,WAEM,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,kBAACC,EAAAA,EAAqBA,CACpBL,WAAYA,EACZC,WAAYA,EACZK,YAAa,CACXJ,WAAYA,GAAcE,EAAE,oBAAqB,sBACjDG,iBAAkBH,EAChB,iCACA,8DAEFI,iBAAkBJ,EAAE,oBAAqB,sBACzCK,mBAAoBL,EAAE,yBAA0B,4BAChDM,kBAAmBN,EAAE,qCAAsC,yCAC3DO,mBAAoBP,EAAE,6BAA8B,mCACpDQ,aAAc,SAACZ,EAAYa,GACzB,I,IAAMC,EAAiB,IAAIC,KAAKF,EAAUC,gBACnBE,G,GAAAA,EAAAA,EAAAA,GAAkBH,EAAUI,eAAgBJ,EAAUK,sB,EAAoB,E,+zBAA1FC,EAAgBH,EAAAA,GAAVI,EAAUJ,EAAAA,GAGvB,OAFAF,EAAeO,SAASF,EAAMC,EAAQ,EAAG,IAElCE,EAAAA,EAAAA,I,sUAAqB,EAC1BC,uBAAwBvB,EAAWwB,KACnCC,SAAUZ,EAAUa,cACpBC,UAAWd,EAAUe,eACrBC,YAAahB,EAAUiB,iBACvBC,mBAAoBlB,EAAUmB,iBAC1BnB,EAAUoB,gCAAkC,CAAEnB,eAAgBA,EAAeoB,eAAkB,CAAC,GAExG,EACAC,cAAe,SAACnC,EAAYa,G,OAC1BA,EAAUa,eAAiB1B,EAAWoC,MAAMZ,MAAQX,EAAUe,gBAAkB5B,EAAWqC,OAAOb,I,EACpGc,cAAc,IAItB,C","sources":["webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/transition-queue-entry.modal.tsx"],"names":["queueEntry","closeModal","modalTitle","useTranslation","t","QueueEntryActionModal","modalParams","modalInstruction","submitButtonText","submitSuccessTitle","submitSuccessText","submitFailureTitle","submitAction","formState","transitionDate","Date","convertTime12to24","transitionTime","transitionTimeFormat","hour","minute","setHours","transitionQueueEntry","queueEntryToTransition","uuid","newQueue","selectedQueue","newStatus","selectedStatus","newPriority","selectedPriority","newPriorityComment","prioritycomment","modifyDefaultTransitionDateTime","toISOString","disableSubmit","queue","status","isTransition"],"sourceRoot":""}
|
package/dist/2.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[2],{3372:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c,immutable:()=>o});var r=t(5206),i=t(3100),s=t(3629);const a=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((n=>{e.status="fulfilled",e.value=n}),(n=>{e.status="rejected",e.reason=n})),e)}),u={dedupe:!0};s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig});const d=(0,s.withArgs)(((e,n,t)=>{const{cache:d,compare:o,suspense:c,fallbackData:l,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:R,keepPreviousData:h}=t,[U,_,p,T]=s.SWRGlobalState.get(d),[V,m]=(0,s.serialize)(e),b=(0,r.useRef)(!1),C=(0,r.useRef)(!1),S=(0,r.useRef)(V),L=(0,r.useRef)(n),O=(0,r.useRef)(t),k=()=>O.current,I=()=>k().isVisible()&&k().isOnline(),[w,y,D,A]=(0,s.createCacheHelper)(d,V),N=(0,r.useRef)({}).current,F=(0,s.isUndefined)(l)?t.fallback[V]:l,P=(e,n)=>{for(const t in N){const r=t;if("data"===r){if(!o(e[r],n[r])){if(!(0,s.isUndefined)(e[r]))return!1;if(!o(z,n[r]))return!1}}else if(n[r]!==e[r])return!1}return!0},M=(0,r.useMemo)((()=>{const e=!!V&&!!n&&((0,s.isUndefined)(f)?!k().isPaused()&&!c&&(!!(0,s.isUndefined)(E)||E):f),t=n=>{const t=(0,s.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},r=w(),i=A(),a=t(r),u=r===i?a:t(i);let d=a;return[()=>{const e=t(w());return P(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>u]}),[d,V]),W=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>D(V,((n,t)=>{P(t,n)||e()}))),[d,V]),M[0],M[1]),j=!b.current,q=U[V]&&U[V].length>0,G=W.data,H=(0,s.isUndefined)(G)?F:G,Y=W.error,x=(0,r.useRef)(H),z=h?(0,s.isUndefined)(G)?x.current:G:H,B=!(q&&!(0,s.isUndefined)(Y))&&(j&&!(0,s.isUndefined)(f)?f:!k().isPaused()&&(c?!(0,s.isUndefined)(H)&&E:(0,s.isUndefined)(H)||E)),J=!!(V&&n&&j&&B),K=(0,s.isUndefined)(W.isValidating)?J:W.isValidating,Q=(0,s.isUndefined)(W.isLoading)?J:W.isLoading,X=(0,r.useCallback)((async e=>{const n=L.current;if(!V||!n||C.current||k().isPaused())return!1;let r,i,a=!0;const u=e||{},d=!p[V]||!u.dedupe,c=()=>s.IS_REACT_LEGACY?!C.current&&V===S.current&&b.current:V===S.current,l={isValidating:!1,isLoading:!1},f=()=>{y(l)},E=()=>{const e=p[V];e&&e[1]===i&&delete p[V]},g={isValidating:!0};(0,s.isUndefined)(w().data)&&(g.isLoading=!0);try{if(d&&(y(g),t.loadingTimeout&&(0,s.isUndefined)(w().data)&&setTimeout((()=>{a&&c()&&k().onLoadingSlow(V,t)}),t.loadingTimeout),p[V]=[n(m),(0,s.getTimestamp)()]),[r,i]=p[V],r=await r,d&&setTimeout(E,t.dedupingInterval),!p[V]||p[V][1]!==i)return d&&c()&&k().onDiscarded(V),!1;l.error=s.UNDEFINED;const e=_[V];if(!(0,s.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),d&&c()&&k().onDiscarded(V),!1;const u=w().data;l.data=o(u,r)?u:r,d&&c()&&k().onSuccess(r,V,t)}catch(e){E();const n=k(),{shouldRetryOnError:t}=n;n.isPaused()||(l.error=e,d&&c()&&(n.onError(e,V,n),(!0===t||(0,s.isFunction)(t)&&t(e))&&(k().revalidateOnFocus&&k().revalidateOnReconnect&&!I()||n.onErrorRetry(e,V,n,(e=>{const n=U[V];n&&n[0]&&n[0](s.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(u.retryCount||0)+1,dedupe:!0}))))}return a=!1,f(),!0}),[V,d]),Z=(0,r.useCallback)(((...e)=>(0,s.internalMutate)(d,S.current,...e)),[]);if((0,s.useIsomorphicLayoutEffect)((()=>{L.current=n,O.current=t,(0,s.isUndefined)(G)||(x.current=G)})),(0,s.useIsomorphicLayoutEffect)((()=>{if(!V)return;const e=X.bind(s.UNDEFINED,u);let n=0;const t=(0,s.subscribeCallback)(V,U,((t,r={})=>{if(t==s.revalidateEvents.FOCUS_EVENT){const t=Date.now();k().revalidateOnFocus&&t>n&&I()&&(n=t+k().focusThrottleInterval,e())}else if(t==s.revalidateEvents.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&e();else{if(t==s.revalidateEvents.MUTATE_EVENT)return X();if(t==s.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(r)}}));return C.current=!1,S.current=V,b.current=!0,y({_k:m}),B&&((0,s.isUndefined)(H)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{C.current=!0,t()}}),[V]),(0,s.useIsomorphicLayoutEffect)((()=>{let e;function n(){const n=(0,s.isFunction)(g)?g(w().data):g;n&&-1!==e&&(e=setTimeout(t,n))}function t(){w().error||!v&&!k().isVisible()||!R&&!k().isOnline()?n():X(u).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}}),[g,v,R,V]),(0,r.useDebugValue)(z),c&&(0,s.isUndefined)(H)&&V){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");L.current=n,O.current=t,C.current=!1;const e=T[V];if(!(0,s.isUndefined)(e)){const n=Z(e);a(n)}if(!(0,s.isUndefined)(Y))throw Y;{const e=X(u);(0,s.isUndefined)(z)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:Z,get data(){return N.data=!0,z},get error(){return N.error=!0,Y},get isValidating(){return N.isValidating=!0,K},get isLoading(){return N.isLoading=!0,Q}}})),o=e=>(n,t,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(n,t,r)),c=(0,s.withMiddleware)(d,o)}}]);
|
package/dist/2.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2.js","mappings":"6OAMA,MAAMA,EAAM,OAAoB,CAAEC,IAC9B,GAAuB,YAAnBA,EAAQC,OACR,MAAMD,EACH,GAAuB,cAAnBA,EAAQC,OACf,OAAOD,EAAQE,MACZ,KAAuB,aAAnBF,EAAQC,OACTD,EAAQG,QAEdH,EAAQC,OAAS,UACjBD,EAAQI,MAAMC,IACVL,EAAQC,OAAS,YACjBD,EAAQE,MAAQG,CAAC,IACjBC,IACAN,EAAQC,OAAS,WACjBD,EAAQG,OAASG,CAAC,IAEhBN,EAEb,GACKO,EAAc,CAChBC,QAAQ,GA6eZ,EAAAC,OAAOC,eAAe,EAAAC,UAAW,eAAgB,CAC7CT,MAAO,EAAAU,gBAgBP,MAAMC,GAAS,IAAAC,WA5fG,CAACC,EAAMC,EAASC,KAClC,MAAM,MAAEC,EAAK,QAAEC,EAAO,SAAEC,EAAQ,aAAEC,EAAY,kBAAEC,EAAiB,kBAAEC,EAAiB,gBAAEC,EAAe,kBAAEC,EAAiB,mBAAEC,EAAkB,iBAAEC,GAAqBV,GAC5JW,EAAoBC,EAAUC,EAAOC,GAAW,EAAAC,eAAeC,IAAIf,IAKnEgB,EAAKC,IAAS,IAAAC,WAAUrB,GAEzBsB,GAAoB,IAAAC,SAAO,GAG3BC,GAAe,IAAAD,SAAO,GAEtBE,GAAS,IAAAF,QAAOJ,GAChBO,GAAa,IAAAH,QAAOtB,GACpB0B,GAAY,IAAAJ,QAAOrB,GACnB0B,EAAY,IAAID,EAAUE,QAC1BC,EAAW,IAA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H,EAAKlB,EAASC,IAElC6I,GAAkB,IAAAC,gBAAelJ,EAAQ+I,E","sources":["webpack://@kenyaemr/esm-service-queues-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["use","promise","status","value","reason","then","v","e","WITH_DEDUPE","dedupe","OBJECT","defineProperty","SWRConfig","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","revalidateIfStale","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","getInitialCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","_","t","returnedData","getSnapshot","useMemo","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","isLoading","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","data","error","cached","useSyncExternalStore","useCallback","callback","isInitialMount","hasRevalidator","length","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","revalidateOnFocus","revalidateOnReconnect","onErrorRetry","_opts","revalidators","revalidateEvents","ERROR_REVALIDATE_EVENT","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","FOCUS_EVENT","now","Date","focusThrottleInterval","RECONNECT_EVENT","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","clearTimeout","useDebugValue","Error","req","mutate","immutable","useSWRNext","useSWRImmutable","withMiddleware"],"sourceRoot":""}
|
package/dist/271.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[271],{8271:e=>{e.exports=JSON.parse('{"actions":"操作","activeVisits":"活动就诊","activeVisitsNotInQueue":"活动就诊不在队列中","addAProviderQueueRoom":"Add a provider queue room?","addEntry":"添加条目","addisitToQueueTooltip":"添加","addNewQueueService":"添加新队列服务","addNewQueueServiceRoom":"添加新队列诊室","addNewService":"添加新服务","addNewServiceRoom":"添加新诊室","addPatientToQueue":"将患者加入队列","addProviderQueueRoom":"添加提供者候诊室?","addQueue":"添加队列","addQueueName":"请添加一个队列名称","addQueueRoom":"添加候诊室","addQueueRoomName":"请添加一个候诊室名称","addQueueRoomService":"请添加一个候诊室服务","addRoom":"添加诊室","addToQueue":"加入队列","addVisitToQueue":"将就诊加入队列?","advancedSearch":"高级搜索","age":"年龄","alistOfClients":"等待名单","all":"全部","and":"And","anotherVisitType":"开始另一种就诊类型","any":"Any","applyFilters":"应用筛选条件","averageWaitTime":"今日平均等待时间。","backToScheduledVisits":"返回到已安排的就诊","backToSearchResults":"Back to search results","backToSimpleSearch":"返回到简单搜索","between":"Between","bmi":"BMI","bp":"血压","call":"呼叫","cancel":"取消","checkedInPatients":"已签到患者","checkFilters":"检查上方的筛选条件","chooseRoom":"选择一个诊室","chooseService":"选择一个服务","clearAllQueueEntries":"清除所有队列条目?","clearAllQueueEntriesWarningMessage":"清空所有队列条目会将所有患者从队列中移除","clearQueue":"清除队列","clinicMetrics":"诊所指标","configurePriorities":"请配置优先级以继续。","configureServices":"请配置服务以继续。","configureStatus":"请配置状态以继续。","confirmDeleteQueueEntry":"您确定要删除这个队列条目吗?","confirmMoveBackQueueAndStatus":"Are you sure you want to move patient back to queue \\"{{queue}}\\" with status \\"{{status}}\\"?","confirmMoveBackStatus":"Are you sure you want to move patient back to status \\"{{status}}\\"?","confirmRemovePatientFromQueue":"您确定要将该患者从此队列中移除吗?","currentValueFormatted":"{{value}}(当前)","currentVisit":"当前就诊","date":"日期","date&Time":"日期&时间","dateAndTimeOfVisit":"就诊日期和时间","dateOfBirth":"出生日期","delete":"删除","deleteQueueEntry":"删除队列条目","discard":"放弃","dose":"剂量","edit":"编辑","editPatientDetails":"编辑患者详情","editQueueEntry":"编辑队列条目","editQueueEntryInstruction":"编辑现有队列条目的字段","encounterType":"问诊类型","endAgeRangeInvalid":"终止年龄范围无效","endDate":"结束日期","endVisit":"结束就诊","endVisitWarningMessage":"结束此次就诊将不允许您为该患者填写另一个问诊表单","enterCommentHere":"在此输入注释","errorAddingQueue":"清除队列时出现错误","errorAddingQueueRoom":"添加候诊室时出现错误","errorClearingQueues":"清除队列时出现错误","errorFetchingAppointments":"Error fetching appointments","errorLoadingQueueEntries":"加载队列条目时出现错误","errorPostingToScreen":"发布至大屏时出现错误","facility":"机构","failedToLoadRecommendedVisitTypes":"无法加载推荐的就诊类型","female":"女性","femaleLabelText":"女性","fields":"of the following fields","filter":"筛选","filterByService":"Filter by service :","filterByStatus":"Filter by status :","filterTable":"筛选表格","firstName":"名字","firstNameSort":"名字(a-z)","futureScheduledVisits_one":"{{count}} visit scheduled for dates in the future","futureScheduledVisits_other":"{{count}} visits scheduled for dates in the future","gender":"性别","heartRate":"心率","height":"身高","
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[271],{8271:e=>{e.exports=JSON.parse('{"actions":"操作","activeVisits":"活动就诊","activeVisitsNotInQueue":"活动就诊不在队列中","addAProviderQueueRoom":"Add a provider queue room?","addEntry":"添加条目","addisitToQueueTooltip":"添加","addNewQueueService":"添加新队列服务","addNewQueueServiceRoom":"添加新队列诊室","addNewService":"添加新服务","addNewServiceRoom":"添加新诊室","addPatientToQueue":"将患者加入队列","addProviderQueueRoom":"添加提供者候诊室?","addQueue":"添加队列","addQueueName":"请添加一个队列名称","addQueueRoom":"添加候诊室","addQueueRoomName":"请添加一个候诊室名称","addQueueRoomService":"请添加一个候诊室服务","addRoom":"添加诊室","addToQueue":"加入队列","addVisitToQueue":"将就诊加入队列?","advancedSearch":"高级搜索","age":"年龄","alistOfClients":"等待名单","all":"全部","and":"And","anotherVisitType":"开始另一种就诊类型","any":"Any","applyFilters":"应用筛选条件","averageWaitTime":"今日平均等待时间。","backToScheduledVisits":"返回到已安排的就诊","backToSearchResults":"Back to search results","backToSimpleSearch":"返回到简单搜索","between":"Between","bmi":"BMI","bp":"血压","call":"呼叫","cancel":"取消","checkedInPatients":"已签到患者","checkFilters":"检查上方的筛选条件","chooseRoom":"选择一个诊室","chooseService":"选择一个服务","clearAllQueueEntries":"清除所有队列条目?","clearAllQueueEntriesWarningMessage":"清空所有队列条目会将所有患者从队列中移除","clearQueue":"清除队列","clinicMetrics":"诊所指标","configurePriorities":"请配置优先级以继续。","configureServices":"请配置服务以继续。","configureStatus":"请配置状态以继续。","confirmDeleteQueueEntry":"您确定要删除这个队列条目吗?","confirmMoveBackQueueAndStatus":"Are you sure you want to move patient back to queue \\"{{queue}}\\" with status \\"{{status}}\\"?","confirmMoveBackStatus":"Are you sure you want to move patient back to status \\"{{status}}\\"?","confirmRemovePatientFromQueue":"您确定要将该患者从此队列中移除吗?","currentValueFormatted":"{{value}}(当前)","currentVisit":"当前就诊","date":"日期","date&Time":"日期&时间","dateAndTimeOfVisit":"就诊日期和时间","dateOfBirth":"出生日期","delete":"删除","deleteQueueEntry":"删除队列条目","discard":"放弃","dose":"剂量","edit":"编辑","editPatientDetails":"编辑患者详情","editQueueEntry":"编辑队列条目","editQueueEntryInstruction":"编辑现有队列条目的字段","encounterType":"问诊类型","endAgeRangeInvalid":"终止年龄范围无效","endDate":"结束日期","endVisit":"结束就诊","endVisitWarningMessage":"结束此次就诊将不允许您为该患者填写另一个问诊表单","enterCommentHere":"在此输入注释","errorAddingQueue":"清除队列时出现错误","errorAddingQueueRoom":"添加候诊室时出现错误","errorClearingQueues":"清除队列时出现错误","errorFetchingAppointments":"Error fetching appointments","errorLoadingQueueEntries":"加载队列条目时出现错误","errorPostingToScreen":"发布至大屏时出现错误","facility":"机构","failedToLoadRecommendedVisitTypes":"无法加载推荐的就诊类型","female":"女性","femaleLabelText":"女性","fields":"of the following fields","filter":"筛选","filterByService":"Filter by service :","filterByStatus":"Filter by status :","filterTable":"筛选表格","firstName":"名字","firstNameSort":"名字(a-z)","futureScheduledVisits_one":"{{count}} visit scheduled for dates in the future","futureScheduledVisits_other":"{{count}} visits scheduled for dates in the future","gender":"性别","heartRate":"心率","height":"身高","hourAndMinuteFormatted":"{{hours}}小时{{minutes}}分钟","idNumber":"ID","indication":"适应症","invalidQueue":"无效队列","invalidtableConfig":"表格配置无效","lastEncounter":"上次问诊","lastName":"姓氏","lastNameSort":"姓氏(a-z)","lastVisit":"上次就诊","lastVisitDate":"日期","loading":"加载中...","location":"Location","male":"男性","maleLabelText":"男性","match":"匹配","medications":"药物","middleName":"中间名","minuteFormatted":"{{分钟}}分钟","minutes":"分钟","missingLocation":"地点缺失","missingPriority":"请选择一个优先级","missingQueueName":"队列名称缺失","missingQueueRoom":"请选择一个候诊室","missingQueueRoomName":"候诊室名称缺失","missingQueueRoomService":"候诊室服务缺失","missingService":"服务缺失","missingVisitType":"就诊类型缺失","modifyDefaultValue":"修改默认值","movePatientToNextService":"将患者转移到下一个服务?","moveToNextService":"转移到下一个服务","name":"姓名","nextPage":"下一页","noActiveVisitsForLocation":"在这个地点没有活动的就诊记录可供显示。","noAppointmentsFound":"未找到预约","noColumnsDefined":"未定义表格列,请检查配置。","noEncountersFound":"未找到问诊记录","noLastEncounter":"该患者没有可显示的最近问诊记录","noLocationsAvailable":"没有可用的地点","noMedicationsFound":"未找到药物","noNotesFound":"未找到备注","noPatientFoundMessage":"抱歉,未找到任何患者。","noPatientsToDisplay":"没有患者可显示","noPreviousVisitFound":"未找到先前的就诊","noPrioritiesConfigured":"未配置优先级","noPrioritiesForService":"The selected service does not have any allowed priorities. This is an error in configuration. Please contact your system administrator.","noPrioritiesForServiceTitle":"No priorities available","noPriorityFound":"未找到优先级","noResultsFound":"未找到结果","noReturnDate":"该患者没有可显示的最近回访日期","noServicesAvailable":"没有可用的服务","noServicesConfigured":"未配置服务","noStatusConfigured":"未配置状态","notableConfig":"没有表格配置","notes":"备注","noVisitsNotInQueueFound":"当前没有找到不在队列中的就诊","noVisitTypesMatchingSearch":"没有与此搜索文本匹配的就诊类型","noVitalsFound":"未找到就诊记录","oldest":"老人优先","onTime":"准时","or":"或者","orderDurationAndUnit":"持续 {{duration}} {{durationUnit}}","orderIndefiniteDuration":"无限期","orInProperFormat":"或者","orPatientName":"或者患者的姓名","patientAge":"Age","patientAlreadyInQueue":"患者已在队列中","patientAttendingService":"患者就诊服务","patientHasActiveVisit":"该患者已经有一个进行中的就诊","patientInfo":"{{name}}{{sexInfo}}{{ageInfo}}","patientList":"患者列表","patientName":"患者姓名","patientNotInQueue":"患者不在队列中","patientRemoved":"患者已移除","patientRemovedFailed":"将患者从队列中移除时出现错误","patientRemovedSuccessfully":"患者已成功从队列中移除","patientRequeued":"患者已重新加入队列","patients":"患者","patientsCurrentlyInQueue":"当前排队的患者","personalDetails":"个人详情","phoneNumber":"电话号码","pleaseSelectLocation":"请选择一个地点","pleaseSelectService":"请选择一个服务","postCode":"邮政编码","previousPage":"上一页","previousVisit":"上次就诊","primaryHelperText":"搜索患者","priority":"优先级","priorityComment":"优先级注释","priorityIsRequired":"优先级是必填项","program":"项目","provider":"提供者","quantity":"数量","queueAddedSuccessfully":"队列成功添加","queueEntryAddedSuccessfully":"队列条目添加成功","queueEntryAddFailed":"添加队列条目状态时出现错误","queueEntryDeleteFailed":"删除队列条目时出现错误","queueEntryDeleteSuccessful":"队列条目删除成功","queueEntryEdited":"队列条目已编辑","queueEntryEditedSuccessfully":"队列条目编辑成功","queueEntryEditingFailed":"编辑队列条目时出现错误","queueEntryError":"将患者添加到队列时出现错误","queueEntryRemoved":"队列条目已移除","queueEntryRemovedSuccessfully":"","queueEntryStatusUpdateFailed":"更新队列条目状态时出现错误","queueEntryTransitioned":"队列条目已转移","queueEntryTransitionedSuccessfully":"队列条目转移成功","queueEntryTransitionFailed":"转移队列条目时出错","queueEntryTransitionUndoFailed":"Error undoing transition","queueEntryTransitionUndoSuccessful":"Queue entry transition undo success","queueEntryUpdateFailed":"更新队列条目状态时出现错误","queueEntryUpdateSuccessfully":"队列条目更新成功","queueLocation":"Queue location","queueLocationRequired":"候诊地点是必填项","queueName":"队列名称","queuePriority":"队列优先级","queueRoom":"候诊室","queueRoomAddedSuccessfully":"候诊室添加成功","queueRoomAddFailed":"添加候诊室时出现错误","queueRoomName":"候诊室名称","queueRoomUpdatedSuccessfully":"候诊室更新成功","queuesClearedSuccessfully":"Queues cleared successfully","queueScreen":"队列显示屏","queueService":"队列服务","queueStatus":"队列状态","recentScheduledVisits_one":"{{count}} visit scheduled for +/- 7 days","recentScheduledVisits_other":"{{count}} visits scheduled for +/- 7 days","recommended":"推荐","refills":"补充处方","removeFromQueueAndEndVisit":"将患者从队列中移除并结束当前的就诊","removePatient":"移除患者","removePatientFromQueue":"将患者从队列中移除","removeQueueEntryError":"移除队列条目时出现错误","requeue":"重新排队","retainLocation":"保留地点","returnDate":"回访日期","room":"诊室","rRate":"呼吸频率","save":"保存","scheduledAppointmentsList":"预约患者名单","scheduledToday":"今日安排","search":"搜索","searchboxPlaceholder":"搜索患者姓名或ID标识","searchForAVisitType":"搜索就诊类型","searchForPatient":"搜索患者","searchPatient":"搜索患者","searchThisList":"搜索此列表","secondaryHelperText":"输入患者姓名或唯一ID编号","selectALocation":"Select a location","selectAVisitType":"选择就诊类型","selectFacility":"选择一个机构","selectOption":"选择一个选项","selectProgramType":"选择项目类型","selectQueue":"选择一个队列","selectQueueLocation":"选择一个队列地点","selectQueueService":"选择一个队列服务","selectRoom":"选择一个诊室","selectService":"选择一个服务","selectServiceType":"选择一个服务类型","selectVisitType":"请选择就诊类型","serve":"接待","servePatient":"接待患者","service":"服务","serviceIsRequired":"Service is required","serviceQueue":"服务队列","serviceQueues":"服务队列","sex":"性别","sortBy":"排序方式","sortWeight":"排序权重","sp02":"血氧","startAgeRangeInvalid":"起始年龄范围无效","startAVisit":"开始就诊","startVisit":"开始就诊","startVisitError":"开始就诊时出现错误","startVisitQueueSuccessfully":"患者已添加到活动就诊列表和队列中。","status":"状态","statusIsRequired":"Status is required","submitting":"Submitting...","success":"成功","temperature":"体温","ticketNumber":"序号","time":"时间","timeCannotBeInFuture":"Time cannot be in the future","timeCannotBePriorToPreviousQueueEntry":"Time cannot be before start of previous queue entry: {{time}}","timeOfTransition":"Time of transition","tirageNotYetCompleted":"分诊尚未完成","today":"今日","totalPatients":"Total Patients","transition":"转诊","TransitionLatestQueueEntry":"Transition patient to latest queue","transitionPatient":"转诊患者","transitionPatientStatusOrQueue":"选择一个新的状态或队列用于患者的转诊。","triageForm":"分诊表","triageNote":"分诊记录","trySearchWithPatientUniqueID":"尝试使用患者的唯一ID进行搜索","undoQueueEntryTransitionSuccess":"Undo transition success","undoTransition":"Undo transition","unexpectedServerResponse":"意外的服务器响应","unknown":"未知","updateEntry":"更新条目","updateRoom":"更新诊室","useTodaysDate":"使用今天的日期","visitQueueNumberAttributeUuid not configured":"visitQueueNumberAttributeUuid not configured","visitStartTime":"就诊时间","visitTabs":"Visit tabs","visitType":"就诊类型","vitals":"生命体征","vitalsForm":"生命体征表单","vitalsNotRecordedForVisit":"此次就诊未记录该患者的生命体征","waitingFor":"等待中","weight":"体重","years":"Years","youngest":"儿童优先"}')}}]);
|
package/dist/319.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"actions":"Actions","activeVisits":"Active Visits","activeVisitsNotInQueue":"Active visits not in queue","addAProviderQueueRoom":"Add a provider queue room?","addEntry":"Add entry","addisitToQueueTooltip":"Add to queue","addNewQueueService":"Add New Queue Service","addNewQueueServiceRoom":"Add new queue service room","addNewService":"Add new service","addNewServiceRoom":"Add new service room","addPatientToQueue":"Add patient to queue","addProviderQueueRoom":"Add provider queue room","addQueue":"Add queue","addQueueName":"Please add a queue name","addQueueRoom":"Add queue room","addQueueRoomName":"Please add a queue room name","addQueueRoomService":"Please add a queue room service","addRoom":"Add room","addToQueue":"Add to queue","addVisitToQueue":"Add Visit To Queue?","advancedSearch":"Advanced search","age":"Age","alistOfClients":"A list of clients waiting for ","all":"All","and":"And","anotherVisitType":"Start another visit type","any":"Any","applyFilters":"Apply filters","averageWaitTime":"Average wait time today","backToScheduledVisits":"Back to scheduled visits","backToSearchResults":"Back to search results","backToSimpleSearch":"Back to simple search","between":"Between","bmi":"Bmi","bp":"Bp","call":"Call","cancel":"Cancel","checkedInPatients":"Checked in patients","checkFilters":"Check the filters above","chooseRoom":"Select a room","chooseService":"Select a service","clearAllQueueEntries":"Clear all queue entries?","clearAllQueueEntriesWarningMessage":"Clearing all queue entries will remove all the patients from the queues","clearQueue":"Clear queue","clinicMetrics":"Clinic metrics","configurePriorities":"Please configure priorities to continue.","configureServices":"Please configure services to continue.","configureStatus":"Please configure status to continue.","confirmDeleteQueueEntry":"Are you sure you want to delete this queue entry?","confirmMoveBackQueueAndStatus":"Are you sure you want to move patient back to queue \\"{{queue}}\\" with status \\"{{status}}\\"?","confirmMoveBackStatus":"Are you sure you want to move patient back to status \\"{{status}}\\"?","confirmRemovePatientFromQueue":"Are you sure you want to remove this patient from this queue?","currentValueFormatted":"{{value}} (Current)","currentVisit":"Current visit","date":"Date","date&Time":"Date & time","dateAndTimeOfVisit":"Date and time of visit","dateOfBirth":"Date of birth","delete":"Delete","deleteQueueEntry":"Delete queue entry","discard":"Discard","dose":"Dose","edit":"Edit","editPatientDetails":"Edit patient details","editQueueEntry":"Edit queue entry","editQueueEntryInstruction":"Edit fields of existing queue entry","encounterType":"Encounter type","endAgeRangeInvalid":"End age range is not valid","endDate":"End date","endVisit":"End Visit","endVisitWarningMessage":"Ending this visit will remove this patient from the queue and will not allow you to fill another encounter form for this patient","enterCommentHere":"Enter Comment here","errorAddingQueue":"Error adding queue","errorAddingQueueRoom":"Error adding queue room","errorClearingQueues":"Error clearing queues","errorFetchingAppointments":"Error fetching appointments","errorLoadingQueueEntries":"Error loading queue entries","errorPostingToScreen":"Error posting to screen","facility":"Facility","failedToLoadRecommendedVisitTypes":"Failed to load recommended visit types","female":"Female","femaleLabelText":"Female","fields":"of the following fields","filter":"Filter (1)","filterByService":"Filter by service :","filterByStatus":"Filter by status :","filterTable":"Filter table","firstName":"First name","firstNameSort":"First name (a-z)","futureScheduledVisits_one":"{{count}} visit scheduled for dates in the future","futureScheduledVisits_other":"{{count}} visits scheduled for dates in the future","gender":"Gender","heartRate":"Heart rate","height":"Height","home":"Home","hourAndMinuteFormatted":"{{hours}} hour(s) and {{minutes}} minute(s)","idNumber":"ID Number","indication":"Indication","invalidQueue":"Invalid Queue","invalidtableConfig":"Invalid table configuration","lastEncounter":"Last encounter","lastName":"Last name","lastNameSort":"Last name (a-z)","lastVisit":"Last visit","lastVisitDate":"Date","loading":"Loading...","location":"Location","male":"Male","maleLabelText":"Male","match":"Match","medications":"Medications","middleName":"Middle name","minuteFormatted":"{{minutes}} minute(s)","minutes":"Minutes","missingLocation":"Missing location","missingPriority":"Please select a priority","missingQueueName":"Missing queue name","missingQueueRoom":"Please select a queue room","missingQueueRoomName":"Missing queue room name","missingQueueRoomService":"Missing queue room service","missingService":"Missing service","missingVisitType":"Missing visit type","modifyDefaultValue":"Modify default value","movePatientToNextService":"Move patient to the next service?","moveToNextService":"Move to next service","name":"Name","nextPage":"Next page","noActiveVisitsForLocation":"There are no active visits to display for this location.","noAppointmentsFound":"No appointments found","noColumnsDefined":"No table columns defined. Check Configuration","noEncountersFound":"No encounters found","noLastEncounter":"There is no last encounter to display for this patient","noLocationsAvailable":"No locations available","noMedicationsFound":"No medications found","noNotesFound":"No notes found","noPatientFoundMessage":"Sorry, no patient has been found","noPatientsToDisplay":"No patients to display","noPreviousVisitFound":"No previous visit found","noPrioritiesConfigured":"No priorities configured","noPrioritiesForService":"The selected service does not have any allowed priorities. This is an error in configuration. Please contact your system administrator.","noPrioritiesForServiceTitle":"No priorities available","noPriorityFound":"No priority found","noResultsFound":"No results found","noReturnDate":"There is no return date to display for this patient","noServicesAvailable":"No services available","noServicesConfigured":"No services configured","noStatusConfigured":"No status configured","notableConfig":"No table configuration","notes":"Notes","noVisitsNotInQueueFound":"No visits currently not in queue found","noVisitTypesMatchingSearch":"There are no visit types matching this search text","noVitalsFound":"No vitals found","oldest":"Oldest first","onTime":"On time","or":"Or","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","orInProperFormat":"Or","orPatientName":"OR the patient\'s name(s)","patientAge":"Age","patientAlreadyInQueue":"Patient is already in the queue","patientAttendingService":"Patient attending service","patientHasActiveVisit":"The patient already has an active visit","patientList":"Patient list","patientName":"Patient name","patientNotInQueue":"The patient is not in the queue","patientRemoved":"Patient removed","patientRemovedFailed":"Error removing patient from queue","patientRemovedSuccessfully":"Paient removed from queue successfully","patientRequeued":"Patient has been requeued","patients":"Patients","patientsCurrentlyInQueue":"Patients currently in queue","personalDetails":"Personal details","phoneNumber":"Phone Number","pleaseSelectLocation":"Please select a location","pleaseSelectService":"Please select a service","postCode":"Post code","previousPage":"Previous page","previousVisit":"Previous visit","primaryHelperText":"Search for a patient","priority":"Priority","priorityComment":"Priority comment","priorityIsRequired":"Priority is required","program":"Program","provider":"Provider","quantity":"Quantity","queueAddedSuccessfully":"Queue added successfully","queueEntryAddedSuccessfully":"Queue entry added successfully","queueEntryAddFailed":"Error adding queue entry status","queueEntryDeleteFailed":"Error deleting queue entry","queueEntryDeleteSuccessful":"Queue entry deleted successfully","queueEntryEdited":"Queue entry edited","queueEntryEditedSuccessfully":"Queue entry edited successfully","queueEntryEditingFailed":"Error editing queue entry","queueEntryError":"Error adding patient to the queue","queueEntryRemoved":"Queue entry removed","queueEntryRemovedSuccessfully":"","queueEntryStatusUpdateFailed":"Error updating queue entry status","queueEntryTransitioned":"Queue entry transitioned","queueEntryTransitionedSuccessfully":"Queue entry transitioned successfully","queueEntryTransitionFailed":"Error transitioning queue entry","queueEntryTransitionUndoFailed":"Error undoing transition","queueEntryTransitionUndoSuccessful":"Queue entry transition undo success","queueEntryUpdateFailed":"Error updating queue entry","queueEntryUpdateSuccessfully":"Queue Entry Updated Successfully","queueLocation":"Queue Location","queueLocationRequired":"Queue location is required","queueName":"Queue name","queuePriority":"Queue priority","queueRoom":"Queue room","queueRoomAddedSuccessfully":"Queue room added successfully","queueRoomAddFailed":"Error adding queue room","queueRoomName":"Queue room name","queueRoomUpdatedSuccessfully":"Queue room updated successfully","queuesClearedSuccessfully":"Queues cleared successfully","queueScreen":"Queue screen","queueService":"Queue service","queueStatus":"Queue status","recentScheduledVisits_one":"{{count}} visit scheduled for +/- 7 days","recentScheduledVisits_other":"{{count}} visits scheduled for +/- 7 days","recommended":"Recommended","refills":"Refills","removeFromQueueAndEndVisit":"Remove patient from queue and end active visit?","removePatient":"Remove patient","removePatientFromQueue":"Remove patient from queue","removeQueueEntryError":"Error removing queue entry","requeue":"Requeue","retainLocation":"Retain location","returnDate":"Return Date","room":"Room","rRate":"R. Rate","save":"Save","scheduledAppointmentsList":"Scheduled appointments patient list","scheduledToday":"Scheduled for today","search":"Search","searchboxPlaceholder":"Search for a patient name or ID number","searchForAVisitType":"Search for a visit type","searchForPatient":"Search for a patient","searchPatient":"Search Patient","searchThisList":"Search this list","secondaryHelperText":"Type the patient\'s name or unique ID number","selectALocation":"Select a location","selectAVisitType":"Select visit type","selectFacility":"Select a facility","selectOption":"Select an option","selectProgramType":"Select program type","selectQueue":"Select a queue","selectQueueLocation":"Select a queue location","selectQueueService":"Select a queue service","selectRoom":"Select a room","selectService":"Select a service","selectServiceType":"Select a service type","selectVisitType":"Please select a Visit Type","serve":"Serve","servePatient":"Serve patient","service":"Service","serviceIsRequired":"Status is required","serviceQueue":"Service queue","serviceQueues":"Service queues","sex":"Sex","sortBy":"Sort by","sortWeight":"Sort weight","sp02":"Sp02","startAgeRangeInvalid":"Start age range is not valid","startAVisit":"Start a visit","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitQueueSuccessfully":"Patient has been added to active visits list and queue.","status":"Status","statusIsRequired":"Status is required","submitting":"Submitting...","success":"Success","temperature":"Temperature","ticketNumber":"Ticket number","time":"Time","timeCannotBeInFuture":"Time cannot be in the future","timeCannotBePriorToPreviousQueueEntry":"Time cannot be before start of previous queue entry: {{time}}","timeOfTransition":"Time of transition","tirageNotYetCompleted":"Triage has not yet been completed","today":"Today","totalPatients":"Total Patients","transition":"Transition","transitionPatient":"Transition patient","transitionPatientStatusOrQueue":"Select a new status or queue for patient to transition to.","triageForm":"Triage form","triageNote":"Triage note","trySearchWithPatientUniqueID":"Try searching with the patient\'s unique ID number","undoQueueEntryTransitionSuccess":"Undo transition success","undoTransition":"Undo transition","unexpectedServerResponse":"Unexpected Server Response","unknown":"Unknown","updateEntry":"Update entry","updateRoom":"Update room","useTodaysDate":"Use today\'s date","visitQueueNumberAttributeUuid not configured":"visitQueueNumberAttributeUuid not configured","visitStartTime":"Visit Time","visitTabs":"Visit tabs","visitType":"Visit Type","vitals":"Vitals","vitalsForm":"Vitals form","vitalsNotRecordedForVisit":"Vitals has not been recorded for this patient for this visit","waitingFor":"Waiting for","weight":"Weight","years":"Years","youngest":"Youngest first"}')}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"actions":"Actions","activeVisits":"Active Visits","activeVisitsNotInQueue":"Active visits not in queue","addAProviderQueueRoom":"¿Agregar una sala de espera para el proveedor?","addEntry":"Add entry","addisitToQueueTooltip":"Add to queue","addNewQueueService":"Añadir Nuevo Servicio de Cola","addNewQueueServiceRoom":"Add new queue service room","addNewService":"Add new service","addNewServiceRoom":"Add new service room","addPatientToQueue":"Add patient to queue","addProviderQueueRoom":"Añadir Sala de Espera del Proveedor","addQueue":"Add queue","addQueueName":"Please add a queue name","addQueueRoom":"Add queue room","addQueueRoomName":"Please add a queue room name","addQueueRoomService":"Please add a queue room service","addRoom":"Add room","addToQueue":"Add to queue","addVisitToQueue":"Add Visit To Queue?","advancedSearch":"Advanced search","age":"Age","alistOfClients":"A list of clients waiting for ","all":"All","and":"And","anotherVisitType":"Start another visit type","any":"Any","applyFilters":"Aplicar filtros","averageWaitTime":"Average wait time today","backToScheduledVisits":"Back to scheduled visits","backToSearchResults":"Volver a los resultados de búsqueda","backToSimpleSearch":"Back to simple search","between":"Between","bmi":"Bmi","bp":"Bp","call":"Call","cancel":"Cancel","checkedInPatients":"Checked in patients","checkFilters":"Check the filters above","chooseRoom":"Select a room","chooseService":"Select a service","clearAllQueueEntries":"Clear all queue entries?","clearAllQueueEntriesWarningMessage":"Limpiar todas las entradas en la cola eliminará todos los pacientes de las colas","clearQueue":"Clear queue","clinicMetrics":"Clinic metrics","configurePriorities":"Please configure priorities to continue.","configureServices":"Please configure services to continue.","configureStatus":"Please configure status to continue.","confirmDeleteQueueEntry":"¿Está seguro de que desea eliminar esta entrada de cola?","confirmMoveBackQueueAndStatus":"¿Está seguro de que desea mover el paciente atrás a la cola \\"{{queue}}\\" con el estado \\"{{status}}\\"?","confirmMoveBackStatus":"¿Está seguro de que desea mover el paciente de regreso al estado \\"{{status}}\\"?","confirmRemovePatientFromQueue":"¿Está seguro de que desea eliminar este paciente de esta cola?","currentValueFormatted":"{{value}} (Actual)","currentVisit":"Current visit","date":"Date","date&Time":"Date & time","dateAndTimeOfVisit":"Date and time of visit","dateOfBirth":"Date of birth","delete":"Eliminar","deleteQueueEntry":"Eliminar entrada de la cola","discard":"Discard","dose":"Dose","edit":"Editar","editPatientDetails":"Edit patient details","editQueueEntry":"Editar entrada de la colaq","editQueueEntryInstruction":"Editar campos de la entrada de la cola existente","encounterType":"Encounter type","endAgeRangeInvalid":"End age range is not valid","endDate":"End date","endVisit":"End Visit","endVisitWarningMessage":"Ending this visit will remove this patient from the queue and will not allow you to fill another encounter form for this patient","enterCommentHere":"Ingresar Comentario Aquí","errorAddingQueue":"Error adding queue","errorAddingQueueRoom":"Error adding queue room","errorClearingQueues":"Error clearing queues","errorFetchingAppointments":"Error al obtener las citas","errorLoadingQueueEntries":"Error al cargar las entradas de la cola","errorPostingToScreen":"Error posting to screen","facility":"Facility","failedToLoadRecommendedVisitTypes":"Fallo al cargar tipos de visita recomendados","female":"Female","femaleLabelText":"Female","fields":"of the following fields","filter":"Filter (1)","filterByService":"Filtrar por servicio:","filterByStatus":"Filtrar por estado:","filterTable":"Filter table","firstName":"First name","firstNameSort":"First name (a-z)","futureScheduledVisits_one":"{{count}} visit scheduled for dates in the future","futureScheduledVisits_other":"{{count}} visits scheduled for dates in the future","gender":"Gender","heartRate":"Heart rate","height":"Height","hourAndMinuteFormatted":"{{hours}} hora(s) y {{minutes}} minutos)","idNumber":"ID Number","indication":"Indication","invalidQueue":"Cola Inválida","invalidtableConfig":"Tabla de configuración inválida","lastEncounter":"Last encounter","lastName":"Last name","lastNameSort":"Last name (a-z)","lastVisit":"Last visit","lastVisitDate":"Date","loading":"Loading...","location":"Ubicación","male":"Male","maleLabelText":"Male","match":"Match","medications":"Medications","middleName":"Middle name","minuteFormatted":"{{minutes}} minuto(s)","minutes":"Minutes","missingLocation":"Missing location","missingPriority":"Please select a priority","missingQueueName":"Missing queue name","missingQueueRoom":"Please select a queue room","missingQueueRoomName":"Missing queue room name","missingQueueRoomService":"Missing queue room service","missingService":"Servicio faltante","missingVisitType":"Missing visit type","modifyDefaultValue":"Modificar valor por defecto","movePatientToNextService":"Move patient to the next service?","moveToNextService":"Move to next service","name":"Name","nextPage":"Siguiente página","noActiveVisitsForLocation":"There are no active visits to display for this location.","noAppointmentsFound":"No appointments found","noColumnsDefined":"No hay columnas de la tabla definidas. Revisar Configuración","noEncountersFound":"No encounters found","noLastEncounter":"There is no last encounter to display for this patient","noLocationsAvailable":"No locations available","noMedicationsFound":"No medications found","noNotesFound":"No notes found","noPatientFoundMessage":"Sorry, no patient has been found","noPatientsToDisplay":"No patients to display","noPreviousVisitFound":"No previous visit found","noPrioritiesConfigured":"No priorities configured","noPrioritiesForService":"El servicio seleccionado no tiene prioridades permitidas. Este es un error de configuración. Por favor, contacte a su administrador del sistema.","noPrioritiesForServiceTitle":"No hay prioridades disponibles","noPriorityFound":"No priority found","noResultsFound":"No results found","noReturnDate":"There is no return date to display for this patient","noServicesAvailable":"No services available","noServicesConfigured":"No services configured","noStatusConfigured":"No status configured","notableConfig":"No hay tabla de configuración","notes":"Notes","noVisitsNotInQueueFound":"No visits currently not in queue found","noVisitTypesMatchingSearch":"No existen tipos de visita que coincidan con el texto a buscar","noVitalsFound":"No vitals found","oldest":"Oldest first","onTime":"On time","or":"Or","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","orInProperFormat":"Or","orPatientName":"OR the patient\'s name(s)","patientAge":"Edad","patientAlreadyInQueue":"El paciente ya está en la cola","patientAttendingService":"Patient attending service","patientHasActiveVisit":"The patient already has an active visit","patientInfo":"{{name}}{{sexInfo}}{{ageInfo}}","patientList":"Patient list","patientName":"Patient name","patientNotInQueue":"The patient is not in the queue","patientRemoved":"Paciente removido","patientRemovedFailed":"Error al eliminar el paciente de la cola","patientRemovedSuccessfully":"Paciente eliminado de la cola con éxito","patientRequeued":"Patient has been requeued","patients":"Patients","patientsCurrentlyInQueue":"Patients currently in queue","personalDetails":"Personal details","phoneNumber":"Phone Number","pleaseSelectLocation":"Please select a location","pleaseSelectService":"Please select a service","postCode":"Post code","previousPage":"Página anterior","previousVisit":"Previous visit","primaryHelperText":"Search for a patient","priority":"Priority","priorityComment":"Comentario de prioridad","priorityIsRequired":"La prioridad es obligatoria","program":"Program","provider":"Provider","quantity":"Quantity","queueAddedSuccessfully":"La cola fue añadida con éxito","queueEntryAddedSuccessfully":"La entrada en la cola fue añadida con éxito","queueEntryAddFailed":"Error adding queue entry status","queueEntryDeleteFailed":"Error al eliminar la entrada de la cola","queueEntryDeleteSuccessful":"La entrada de la cola fue eliminada con éxito","queueEntryEdited":"Entrada de la cola editada","queueEntryEditedSuccessfully":"La entrada de la cola fue editada con éxito","queueEntryEditingFailed":"Error al editar entrada de la cola","queueEntryError":"Error adding patient to the queue","queueEntryRemoved":"Queue entry removed","queueEntryRemovedSuccessfully":"","queueEntryStatusUpdateFailed":"Error updating queue entry status","queueEntryTransitioned":"Entrada de la cola trasladada","queueEntryTransitionedSuccessfully":"Entrada de la cola trasladada exitosamente","queueEntryTransitionFailed":"Error al trasladar la entrada de la cola","queueEntryTransitionUndoFailed":"Error al deshacer el traslado","queueEntryTransitionUndoSuccessful":"Traslado de la entrada de la cola deshecho con éxito","queueEntryUpdateFailed":"Error updating queue entry","queueEntryUpdateSuccessfully":"Queue Entry Updated Successfully","queueLocation":"Ubicación de la cola","queueLocationRequired":"La ubicación de la cola es obligatoria","queueName":"Queue name","queuePriority":"Queue priority","queueRoom":"Queue room","queueRoomAddedSuccessfully":"Sala de espera añadida con éxito","queueRoomAddFailed":"Error adding queue room","queueRoomName":"Queue room name","queueRoomUpdatedSuccessfully":"Queue room updated successfully","queuesClearedSuccessfully":"Colas limpiadas con éxito","queueScreen":"Queue screen","queueService":"Queue service","queueStatus":"Queue status","recentScheduledVisits_one":"{{count}} visit scheduled for +/- 7 days","recentScheduledVisits_other":"{{count}} visits scheduled for +/- 7 days","recommended":"Recommended","refills":"Refills","removeFromQueueAndEndVisit":"Remove patient from queue and end active visit?","removePatient":"Eliminar paciente","removePatientFromQueue":"Eliminar paciente de la cola","removeQueueEntryError":"Error removing queue entry","requeue":"Requeue","retainLocation":"Retain location","returnDate":"Return Date","room":"Room","rRate":"R. Rate","save":"Save","scheduledAppointmentsList":"Scheduled appointments patient list","scheduledToday":"Scheduled for today","search":"Search","searchboxPlaceholder":"Search for a patient name or ID number","searchForAVisitType":"Search for a visit type","searchForPatient":"Search for a patient","searchPatient":"Buscar Paciente","searchThisList":"Search this list","secondaryHelperText":"Type the patient\'s name or unique ID number","selectALocation":"Seleccionar una ubicación","selectAVisitType":"Select visit type","selectFacility":"Select a facility","selectOption":"Select an option","selectProgramType":"Select program type","selectQueue":"Seleccionar una cola","selectQueueLocation":"Select a queue location","selectQueueService":"Select a queue service","selectRoom":"Select a room","selectService":"Select a service","selectServiceType":"Select a service type","selectVisitType":"Please select a Visit Type","serve":"Serve","servePatient":"Serve patient","service":"Service","serviceIsRequired":"El servicio es obligatorio","serviceQueue":"Service queue","serviceQueues":"Service queues","sex":"Sex","sortBy":"Sort by","sortWeight":"Sort weight","sp02":"Sp02","startAgeRangeInvalid":"Start age range is not valid","startAVisit":"Start a visit","startVisit":"Start visit","startVisitError":"Error starting visit","startVisitQueueSuccessfully":"Patient has been added to active visits list and queue.","status":"Status","statusIsRequired":"El estado es obligatorio","submitting":"Enviando...","success":"Success","temperature":"Temperature","ticketNumber":"Ticket number","time":"Time","timeCannotBeInFuture":"La hora no puede estar en el futuro","timeCannotBePriorToPreviousQueueEntry":"La hora no puede estar antes del inicio de la anterior entrada de la cola: {{time}}","timeOfTransition":"Hora del traslado","tirageNotYetCompleted":"Triage has not yet been completed","today":"Today","totalPatients":"Total de Pacientes","transition":"Traslado","TransitionLatestQueueEntry":"Paciente trasladado a la última cola","transitionPatient":"Trasladar paciente","transitionPatientStatusOrQueue":"Seleccione un nuevo estado o cola para el paciente a trasladar","triageForm":"Triage form","triageNote":"Triage note","trySearchWithPatientUniqueID":"Try searching with the patient\'s unique ID number","undoQueueEntryTransitionSuccess":"Traslado deshecho con éxito","undoTransition":"Deshacer traslado","unexpectedServerResponse":"Respuesta del servidor no esperada","unknown":"Unknown","updateEntry":"Update entry","updateRoom":"Update room","useTodaysDate":"Use today\'s date","visitQueueNumberAttributeUuid not configured":"visitQueueNumberAttributeUuid no configurado","visitStartTime":"Visit Time","visitTabs":"Pestañas de visita","visitType":"Visit Type","vitals":"Vitals","vitalsForm":"Vitals form","vitalsNotRecordedForVisit":"Vitals has not been recorded for this patient for this visit","waitingFor":"Waiting for","weight":"Weight","years":"Years","youngest":"Youngest first"}')}}]);
|
package/dist/325.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[325],{467:(e,t,n)=>{n.r(t),n.d(t,{INFINITE_PREFIX:()=>B,IS_REACT_LEGACY:()=>S,IS_SERVER:()=>k,OBJECT:()=>s,SWRConfig:()=>H,SWRGlobalState:()=>p,UNDEFINED:()=>i,cache:()=>$,compare:()=>q,createCacheHelper:()=>y,defaultConfig:()=>j,defaultConfigOptions:()=>O,getTimestamp:()=>V,hasRequestAnimationFrame:()=>v,initCache:()=>U,internalMutate:()=>x,isDocumentDefined:()=>g,isFunction:()=>c,isPromiseLike:()=>l,isUndefined:()=>a,isWindowDefined:()=>w,mergeConfigs:()=>z,mergeObjects:()=>u,mutate:()=>J,noop:()=>r,normalize:()=>K,preload:()=>Z,preset:()=>T,rAF:()=>I,revalidateEvents:()=>M,serialize:()=>F,slowConnection:()=>L,stableHash:()=>_,subscribeCallback:()=>ne,useIsomorphicLayoutEffect:()=>A,useSWRConfig:()=>Q,withArgs:()=>te,withMiddleware:()=>oe});var o=n(5206);const r=()=>{},i=r(),s=Object,a=e=>e===i,c=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),l=e=>c(e.then),f=new WeakMap;let d=0;const _=e=>{const t=typeof e,n=e&&e.constructor,o=n==Date;let r,i;if(s(e)!==e||o||n==RegExp)r=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(r=f.get(e),r)return r;if(r=++d+"~",f.set(e,r),n==Array){for(r="@",i=0;i<e.length;i++)r+=_(e[i])+",";f.set(e,r)}if(n==s){r="#";const t=s.keys(e).sort();for(;!a(i=t.pop());)a(e[i])||(r+=i+":"+_(e[i])+",");f.set(e,r)}}return r},p=new WeakMap,h={},E={},m="undefined",w=typeof window!=m,g=typeof document!=m,v=()=>w&&typeof window.requestAnimationFrame!=m,y=(e,t)=>{const n=p.get(e);return[()=>!a(t)&&e.get(t)||h,o=>{if(!a(t)){const r=e.get(t);t in E||(E[t]=r),n[5](t,u(r,o),r||h)}},n[6],()=>!a(t)&&t in E?E[t]:!a(t)&&e.get(t)||h]};let b=!0;const[R,C]=w&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[r,r],T={isOnline:()=>b,isVisible:()=>{const e=g&&document.visibilityState;return a(e)||"hidden"!==e}},O={initFocus:e=>(g&&document.addEventListener("visibilitychange",e),R("focus",e),()=>{g&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{const t=()=>{b=!0,e()},n=()=>{b=!1};return R("online",t),R("offline",n),()=>{C("online",t),C("offline",n)}}},S=!o.useId,k=!w||"Deno"in window,I=e=>v()?window.requestAnimationFrame(e):setTimeout(e,1),A=k?o.useEffect:o.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,L=!k&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),F=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)?_(e):"",t]};let N=0;const V=()=>++N,W=2;var M={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:W,RECONNECT_EVENT:1};async function x(...e){const[t,n,o,r]=e,s=u({populateCache:!0,throwOnError:!0},"boolean"==typeof r?{revalidate:r}:r||{});let f=s.populateCache;const d=s.rollbackOnError;let _=s.optimisticData;const h=s.throwOnError;if(c(n)){const e=n,o=[],r=t.keys();for(const n of r)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&o.push(n);return Promise.all(o.map(E))}return E(n);async function E(n){const[r]=F(n);if(!r)return;const[u,E]=y(t,r),[m,w,g,v]=p.get(t),b=()=>{const e=m[r];return(c(s.revalidate)?s.revalidate(u().data,n):!1!==s.revalidate)&&(delete g[r],delete v[r],e&&e[0])?e[0](W).then((()=>u().data)):u().data};if(e.length<3)return b();let R,C=o;const T=V();w[r]=[T,0];const O=!a(_),S=u(),k=S.data,I=S._c,A=a(I)?k:I;if(O&&(_=c(_)?_(A,k):_,E({data:_,_c:A})),c(C))try{C=C(A)}catch(e){R=e}if(C&&l(C)){if(C=await C.catch((e=>{R=e})),T!==w[r][0]){if(R)throw R;return C}R&&O&&(e=>"function"==typeof d?d(e):!1!==d)(R)&&(f=!0,E({data:A,_c:i}))}if(f&&!R)if(c(f)){const e=f(C,A);E({data:e,error:i,_c:i})}else E({data:C,error:i,_c:i});if(w[r][1]=V(),Promise.resolve(b()).then((()=>{E({_c:i})})),!R)return C;if(h)throw R}}const P=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},U=(e,t)=>{if(!p.has(e)){const n=u(O,t),o={},s=x.bind(i,e);let a=r;const c={},l=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,o)=>{e.set(t,n);const r=c[t];if(r)for(const e of r)e(n,o)},d=()=>{if(!p.has(e)&&(p.set(e,[o,{},{},{},s,f,l]),!k)){const t=n.initFocus(setTimeout.bind(i,P.bind(i,o,0))),r=n.initReconnect(setTimeout.bind(i,P.bind(i,o,1)));a=()=>{t&&t(),r&&r(),p.delete(e)}}};return d(),[e,s,d,a]}return[e,p.get(e)[4]]},q=(e,t)=>_(e)==_(t),[$,J]=U(new Map),j=u({onLoadingSlow:r,onSuccess:r,onError:r,onErrorRetry:(e,t,n,o,r)=>{const i=n.errorRetryCount,s=r.retryCount,c=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!a(i)&&s>i||setTimeout(o,c,r)},onDiscarded:r,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:q,isPaused:()=>!1,cache:$,mutate:J,fallback:{}},T),z=(e,t)=>{const n=u(e,t);if(t){const{use:o,fallback:r}=e,{use:i,fallback:s}=t;o&&i&&(n.use=o.concat(i)),r&&s&&(n.fallback=u(r,s))}return n},G=(0,o.createContext)({}),H=e=>{const{value:t}=e,n=(0,o.useContext)(G),r=c(t),s=(0,o.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,o.useMemo)((()=>r?s:z(n,s)),[r,n,s]),l=s&&s.provider,f=(0,o.useRef)(i);l&&!f.current&&(f.current=U(l(a.cache||$),s));const d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),A((()=>{if(d)return d[2]&&d[2](),d[3]}),[]),(0,o.createElement)(G.Provider,u(e,{value:a}))},B="$inf$",X=w&&window.__SWR_DEVTOOLS_USE__,Y=X?window.__SWR_DEVTOOLS_USE__:[],K=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=()=>u(j,(0,o.useContext)(G)),Z=(e,t)=>{const[n,o]=F(e),[,,,r]=p.get($);if(r[n])return r[n];const i=t(o);return r[n]=i,i},ee=Y.concat((e=>(t,n,o)=>e(t,n&&((...e)=>{const[o]=F(t),[,,,r]=p.get($);if(o.startsWith(B))return n(...e);const i=r[o];return a(i)?n(...e):(delete r[o],i)}),o))),te=e=>function(...t){const n=Q(),[o,r,i]=K(t),s=z(n,i);let a=e;const{use:c}=s,u=(c||[]).concat(ee);for(let e=u.length;e--;)a=u[e](a);return a(o,r||s.fetcher||null,s)},ne=(e,t,n)=>{const o=t[e]||(t[e]=[]);return o.push(n),()=>{const e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}},oe=(e,t)=>(...n)=>{const[o,r,i]=K(n),s=(i.use||[]).concat(t);return e(o,r,{...i,use:s})};X&&(window.__SWR_DEVTOOLS_REACT__=o)}}]);
|
package/dist/325.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"325.js","mappings":"y4BAGA,MAAMA,EAAO,OAKPC,EAA8BD,IAC9BE,EAASC,OACTC,EAAeC,GAAIA,IAAMJ,EACzBK,EAAcD,GAAgB,mBAALA,EACzBE,EAAe,CAACC,EAAGC,KAAI,IAClBD,KACAC,IAELC,EAAiBC,GAAIL,EAAWK,EAAEC,MAMlCC,EAAQ,IAAIC,QAElB,IAAIC,EAAU,EASd,MAAMC,EAAcC,IAChB,MAAMC,SAAcD,EACdE,EAAcF,GAAOA,EAAIE,YACzBC,EAASD,GAAeE,KAC9B,IAAIC,EACAC,EACJ,GAAIrB,EAAOe,KAASA,GAAQG,GAAUD,GAAeK,OA8BjDF,EAASF,EAASH,EAAIQ,SAAmB,UAARP,EAAmBD,EAAIS,WAAqB,UAARR,EAAmBS,KAAKC,UAAUX,GAAO,GAAKA,MA9B1D,CAIzD,GADAK,EAAST,EAAMgB,IAAIZ,GACfK,EAAQ,OAAOA,EAMnB,GAFAA,IAAWP,EAAU,IACrBF,EAAMiB,IAAIb,EAAKK,GACXH,GAAeY,MAAO,CAGtB,IADAT,EAAS,IACLC,EAAQ,EAAGA,EAAQN,EAAIe,OAAQT,IAC/BD,GAAUN,EAAWC,EAAIM,IAAU,IAEvCV,EAAMiB,IAAIb,EAAKK,EACnB,CACA,GAAIH,GAAejB,EAAQ,CAEvBoB,EAAS,IACT,MAAMW,EAAO/B,EAAO+B,KAAKhB,GAAKiB,OAC9B,MAAO9B,EAAYmB,EAAQU,EAAKE,QACvB/B,EAAYa,EAAIM,MACjBD,GAAUC,EAAQ,IAAMP,EAAWC,EAAIM,IAAU,KAGzDV,EAAMiB,IAAIb,EAAKK,EACnB,C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AS,GACxEkM,EAAkB/L,MACtB,CACH,EAICgM,GAAiB,CAACC,EAAQN,IACrB,IAAI1I,KACP,MAAOrC,EAAKoG,EAAIe,GAAU4C,EAAU1H,GAC9BiJ,GAAQnE,EAAOoB,KAAO,IAAIK,OAAOmC,GACvC,OAAOM,EAAOrL,EAAKoG,EAAI,IAChBe,EACHoB,IAAK+C,GACP,EA/FFzB,IAEAnK,OAAO6L,uBAAyB,E","sources":["webpack://@kenyaemr/esm-service-queues-app/../../node_modules/swr/dist/_internal/index.mjs"],"names":["noop","UNDEFINED","OBJECT","Object","isUndefined","v","isFunction","mergeObjects","a","b","isPromiseLike","x","then","table","WeakMap","counter","stableHash","arg","type","constructor","isDate","Date","result","index","RegExp","toJSON","toString","JSON","stringify","get","set","Array","length","keys","sort","pop","SWRGlobalState","EMPTY_CACHE","INITIAL_CACHE","STR_UNDEFINED","isWindowDefined","window","isDocumentDefined","document","hasRequestAnimationFrame","createCacheHelper","cache","key","state","info","prev","online","onWindowEvent","offWindowEvent","addEventListener","bind","removeEventListener","preset","isOnline","isVisible","visibilityState","defaultConfigOptions","initFocus","callback","initReconnect","onOnline","onOffline","IS_REACT_LEGACY","IS_SERVER","rAF","f","setTimeout","useIsomorphicLayoutEffect","useEffect","useLayoutEffect","navigatorConnection","navigator","connection","slowConnection","includes","effectiveType","saveData","serialize","err","args","isArray","__timestamp","getTimestamp","MUTATE_EVENT","events","__proto__","ERROR_REVALIDATE_EVENT","FOCUS_EVENT","RECONNECT_EVENT","async","internalMutate","_key","_data","_opts","options","populateCache","throwOnError","revalidate","rollbackOnErrorOption","rollbackOnError","optimisticData","keyFilter","matchedKeys","it","test","_k","push","Promise","all","map","mutateByKey","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","startRevalidate","revalidators","data","error","beforeMutationTs","hasOptimisticData","displayedData","currentData","_c","committedData","catch","populateCachedData","resolve","revalidateAllKeys","initCache","provider","has","opts","mutate","unmount","subscriptions","subscribe","subs","splice","indexOf","setter","value","fn","initProvider","releaseFocus","releaseReconnect","delete","compare","newData","Map","defaultConfig","onLoadingSlow","onSuccess","onError","onErrorRetry","_","__","config","maxRetryCount","errorRetryCount","currentRetryCount","retryCount","timeout","Math","random","errorRetryInterval","onDiscarded","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","shouldRetryOnError","focusThrottleInterval","dedupingInterval","loadingTimeout","isPaused","fallback","mergeConfigs","use","u1","f1","u2","f2","concat","SWRConfigContext","createContext","SWRConfig","props","parentConfig","useContext","isFunctionalConfig","useMemo","extendedConfig","cacheContextRef","useRef","current","cacheContext","createElement","Provider","INFINITE_PREFIX","enableDevtools","__SWR_DEVTOOLS_USE__","normalize","useSWRConfig","preload","key_","fetcher","fnArg","req","BUILT_IN_MIDDLEWARE","useSWRNext","fetcher_","startsWith","withArgs","hook","fallbackConfig","_config","next","middleware","i","subscribeCallback","callbacks","keyedRevalidators","withMiddleware","useSWR","uses","__SWR_DEVTOOLS_REACT__"],"sourceRoot":""}
|
package/dist/372.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 372.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[372,2],{452:(e,n,t)=>{var r=t(5206),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},s=r.useState,a=r.useEffect,u=r.useLayoutEffect,d=r.useDebugValue;function o(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),r=s({inst:{value:t,getSnapshot:n}}),i=r[0].inst,c=r[1];return u((function(){i.value=t,i.getSnapshot=n,o(i)&&c({inst:i})}),[e,t,n]),a((function(){return o(i)&&c({inst:i}),e((function(){o(i)&&c({inst:i})}))}),[e]),d(t),t};n.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},3100:(e,n,t)=>{e.exports=t(452)},3372:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c,immutable:()=>o});var r=t(5206),i=t(3100),s=t(3629);const a=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((n=>{e.status="fulfilled",e.value=n}),(n=>{e.status="rejected",e.reason=n})),e)}),u={dedupe:!0};s.OBJECT.defineProperty(s.SWRConfig,"defaultValue",{value:s.defaultConfig});const d=(0,s.withArgs)(((e,n,t)=>{const{cache:d,compare:o,suspense:c,fallbackData:l,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:h,keepPreviousData:R}=t,[p,S,U,_]=s.SWRGlobalState.get(d),[m,b]=(0,s.serialize)(e),T=(0,r.useRef)(!1),V=(0,r.useRef)(!1),w=(0,r.useRef)(m),y=(0,r.useRef)(n),C=(0,r.useRef)(t),O=()=>C.current,L=()=>O().isVisible()&&O().isOnline(),[k,I,D,A]=(0,s.createCacheHelper)(d,m),N=(0,r.useRef)({}).current,F=(0,s.isUndefined)(l)?t.fallback[m]:l,P=(e,n)=>{for(const t in N){const r=t;if("data"===r){if(!o(e[r],n[r])){if(!(0,s.isUndefined)(e[r]))return!1;if(!o(z,n[r]))return!1}}else if(n[r]!==e[r])return!1}return!0},j=(0,r.useMemo)((()=>{const e=!!m&&!!n&&((0,s.isUndefined)(f)?!O().isPaused()&&!c&&(!!(0,s.isUndefined)(E)||E):f),t=n=>{const t=(0,s.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},r=k(),i=A(),a=t(r),u=r===i?a:t(i);let d=a;return[()=>{const e=t(k());return P(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>u]}),[d,m]),x=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>D(m,((n,t)=>{P(t,n)||e()}))),[d,m]),j[0],j[1]),M=!T.current,W=p[m]&&p[m].length>0,q=x.data,G=(0,s.isUndefined)(q)?F:q,H=x.error,Y=(0,r.useRef)(G),z=R?(0,s.isUndefined)(q)?Y.current:q:G,B=!(W&&!(0,s.isUndefined)(H))&&(M&&!(0,s.isUndefined)(f)?f:!O().isPaused()&&(c?!(0,s.isUndefined)(G)&&E:(0,s.isUndefined)(G)||E)),J=!!(m&&n&&M&&B),K=(0,s.isUndefined)(x.isValidating)?J:x.isValidating,Q=(0,s.isUndefined)(x.isLoading)?J:x.isLoading,X=(0,r.useCallback)((async e=>{const n=y.current;if(!m||!n||V.current||O().isPaused())return!1;let r,i,a=!0;const u=e||{},d=!U[m]||!u.dedupe,c=()=>s.IS_REACT_LEGACY?!V.current&&m===w.current&&T.current:m===w.current,l={isValidating:!1,isLoading:!1},f=()=>{I(l)},E=()=>{const e=U[m];e&&e[1]===i&&delete U[m]},g={isValidating:!0};(0,s.isUndefined)(k().data)&&(g.isLoading=!0);try{if(d&&(I(g),t.loadingTimeout&&(0,s.isUndefined)(k().data)&&setTimeout((()=>{a&&c()&&O().onLoadingSlow(m,t)}),t.loadingTimeout),U[m]=[n(b),(0,s.getTimestamp)()]),[r,i]=U[m],r=await r,d&&setTimeout(E,t.dedupingInterval),!U[m]||U[m][1]!==i)return d&&c()&&O().onDiscarded(m),!1;l.error=s.UNDEFINED;const e=S[m];if(!(0,s.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),d&&c()&&O().onDiscarded(m),!1;const u=k().data;l.data=o(u,r)?u:r,d&&c()&&O().onSuccess(r,m,t)}catch(e){E();const n=O(),{shouldRetryOnError:t}=n;n.isPaused()||(l.error=e,d&&c()&&(n.onError(e,m,n),(!0===t||(0,s.isFunction)(t)&&t(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!L()||n.onErrorRetry(e,m,n,(e=>{const n=p[m];n&&n[0]&&n[0](s.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(u.retryCount||0)+1,dedupe:!0}))))}return a=!1,f(),!0}),[m,d]),Z=(0,r.useCallback)(((...e)=>(0,s.internalMutate)(d,w.current,...e)),[]);if((0,s.useIsomorphicLayoutEffect)((()=>{y.current=n,C.current=t,(0,s.isUndefined)(q)||(Y.current=q)})),(0,s.useIsomorphicLayoutEffect)((()=>{if(!m)return;const e=X.bind(s.UNDEFINED,u);let n=0;const t=(0,s.subscribeCallback)(m,p,((t,r={})=>{if(t==s.revalidateEvents.FOCUS_EVENT){const t=Date.now();O().revalidateOnFocus&&t>n&&L()&&(n=t+O().focusThrottleInterval,e())}else if(t==s.revalidateEvents.RECONNECT_EVENT)O().revalidateOnReconnect&&L()&&e();else{if(t==s.revalidateEvents.MUTATE_EVENT)return X();if(t==s.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(r)}}));return V.current=!1,w.current=m,T.current=!0,I({_k:b}),B&&((0,s.isUndefined)(G)||s.IS_SERVER?e():(0,s.rAF)(e)),()=>{V.current=!0,t()}}),[m]),(0,s.useIsomorphicLayoutEffect)((()=>{let e;function n(){const n=(0,s.isFunction)(g)?g(k().data):g;n&&-1!==e&&(e=setTimeout(t,n))}function t(){k().error||!v&&!O().isVisible()||!h&&!O().isOnline()?n():X(u).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}}),[g,v,h,m]),(0,r.useDebugValue)(z),c&&(0,s.isUndefined)(G)&&m){if(!s.IS_REACT_LEGACY&&s.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");y.current=n,C.current=t,V.current=!1;const e=_[m];if(!(0,s.isUndefined)(e)){const n=Z(e);a(n)}if(!(0,s.isUndefined)(H))throw H;{const e=X(u);(0,s.isUndefined)(z)||(e.status="fulfilled",e.value=!0),a(e)}}return{mutate:Z,get data(){return N.data=!0,z},get error(){return N.error=!0,H},get isValidating(){return N.isValidating=!0,K},get isLoading(){return N.isLoading=!0,Q}}})),o=e=>(n,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cAAiBpB,IAAsBiB,IAAYI,WAI1GmG,IAHA1D,EAAWjF,GAAaF,KAAK6I,EAKrC,CAEA,OADAA,IACO,KACCD,IACAI,aAAaJ,GACbA,GAAS,EACb,CACH,GACF,CACCzH,EACAC,EACAC,EACAQ,KAGJ,IAAAjD,eAAc2E,GAKVxC,IAAY,IAAAmC,aAAYsB,IAAS3C,EAAK,CAItC,IAAK,EAAAgE,iBAAmB,EAAA6C,UACpB,MAAM,IAAIO,MAAM,yDAGpB7G,EAAWG,QAAU5B,EACrB0B,EAAUE,QAAU3B,EACpBsB,EAAaK,SAAU,EACvB,MAAM2G,EAAMxH,EAAQG,GACpB,KAAK,IAAAqB,aAAYgG,GAAM,CACnB,MAAMrJ,EAAU6H,EAAYwB,GAC5BtJ,EAAIC,EACR,CACA,KAAI,IAAAqD,aAAYuB,GAQZ,MAAMA,EARc,CACpB,MAAM5E,EAAUsF,EAAWjF,IACtB,IAAAgD,aAAYK,KACb1D,EAAQC,OAAS,YACjBD,EAAQd,OAAQ,GAEpBa,EAAIC,EACR,CAGJ,CACA,MAAO,CACHsJ,OAAQzB,EACJlD,WAEA,OADAxB,EAAkBwB,MAAO,EAClBjB,CACX,EACIkB,YAEA,OADAzB,EAAkByB,OAAQ,EACnBA,CACX,EACIT,mBAEA,OADAhB,EAAkBgB,cAAe,EAC1BA,CACX,EACIC,gBAEA,OADAjB,EAAkBiB,WAAY,EACvBA,CACX,EACH,IAqBCmF,EAAaC,GAAa,CAACxH,EAAKlB,EAASC,KAEvCA,EAAOsG,mBAAoB,EAC3BtG,EAAOM,mBAAoB,EAC3BN,EAAOuG,uBAAwB,EACxBkC,EAAWxH,EAAKlB,EAASC,IAElC0I,GAAkB,IAAAC,gBAAe/I,EAAQ4I","sources":["webpack://@kenyaemr/esm-service-queues-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@kenyaemr/esm-service-queues-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@kenyaemr/esm-service-queues-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["e","k","Object","is","a","b","l","useState","m","useEffect","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","value","d","f","u","window","document","createElement","inst","c","g","exports","useSyncExternalStore","module","use","promise","status","reason","then","v","WITH_DEDUPE","dedupe","OBJECT","defineProperty","SWRConfig","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","revalidateIfStale","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","getInitialCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","_","t","returnedData","useMemo","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","isLoading","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","data","error","cached","useCallback","callback","isInitialMount","hasRevalidator","length","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","revalidateOnFocus","revalidateOnReconnect","onErrorRetry","_opts","revalidators","revalidateEvents","ERROR_REVALIDATE_EVENT","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","FOCUS_EVENT","now","Date","focusThrottleInterval","RECONNECT_EVENT","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","clearTimeout","Error","req","mutate","immutable","useSWRNext","useSWRImmutable","withMiddleware"],"sourceRoot":""}
|
package/dist/392.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[392],{5055:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),s=t.n(o)()(i());s.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-service-queues__add-provider-queue-room__section___2E-Ye{margin:.5rem}.-esm-service-queues__add-provider-queue-room__sectionTitle___HvRIG{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.75rem}.-esm-service-queues__add-provider-queue-room__checkbox___YsZAn{padding-top:.75rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/add-provider-queue-room/add-provider-queue-room.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,+DACE,YCgBW,CDbb,oEE01BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFx1BF,aDLQ,CCMR,oBCeW,CDZb,gEACE,kBCWW",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.section {\n margin: layout.$spacing-03;\n}\n\n.sectionTitle {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-04;\n}\n\n.checkbox {\n padding-top: layout.$spacing-04;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),s.locals={section:"-esm-service-queues__add-provider-queue-room__section___2E-Ye",sectionTitle:"-esm-service-queues__add-provider-queue-room__sectionTitle___HvRIG",checkbox:"-esm-service-queues__add-provider-queue-room__checkbox___YsZAn"};const l=s},9392:(e,n,t)=>{t.r(n),t.d(n,{default:()=>S});var a=t(5206),i=t.n(a),o=t(4924),s=t(7773),l=t(2870),r=t(1995),p=t(3255);function c(e){var n,t,a="".concat(l.restBaseUrl,"/roomprovidermap?provider=").concat(e),i=(0,p.ZP)(e?a:null,l.openmrsFetch),o=i.data,s=i.error,r=i.isLoading,c=i.mutate;return{providerRoom:o?null===(t=o)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.results:[],error:s,isLoading:r,mutate:c}}var u=t(3670),d=t(7060),g=t(6062),f=t.n(g),h=t(4036),y=t.n(h),m=t(6793),b=t.n(m),$=t(7892),v=t.n($),k=t(1173),w=t.n(k),x=t(2464),z=t.n(x),A=t(5055),M={};M.styleTagTransform=z(),M.setAttributes=v(),M.insert=b().bind(null,"head"),M.domAPI=y(),M.insertStyleElement=w(),f()(A.Z,M);const C=A.Z&&A.Z.locals?A.Z.locals:void 0;function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],s=!0,l=!1;try{for(t=t.call(e);!(s=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);s=!0);}catch(e){l=!0,i=e}finally{try{s||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return _(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const S=function(e){var n,t,g,f,h,y=e.providerUuid,m=e.closeModal,b=(0,o.useTranslation)().t,$=(0,u.wJ)(),v=(0,u.SY)(),k=(0,u.Dv)(),w=(0,u.Hp)(),x=c(y).providerRoom,z=q((0,a.useState)(""),2),A=z[0],M=z[1],_=q((0,a.useState)(""),2),S=_[0],E=_[1];(0,a.useEffect)((function(){var e,n,t,a;(null===(e=x)||void 0===e?void 0:e.length)>0&&(M(null===(t=x)||void 0===t||null===(n=t[0].queueRoom)||void 0===n?void 0:n.uuid),E(null===(a=x)||void 0===a?void 0:a[0].uuid))}),[x]);var T,I,N,R,B,D,L,U,F,Q=c(y).mutate,O=(0,d.Z)().services,Z=(T=v,I=null===(n=k)||void 0===n?void 0:n.serviceUuid,B=I?"".concat(l.restBaseUrl,"/queueroom?location=").concat(T,"&queue=").concat(I):"".concat(l.restBaseUrl,"/queueroom?location=").concat(T),D=(0,p.ZP)(T?B:null,l.openmrsFetch),L=D.data,U=D.error,F=D.isLoading,{rooms:L?null===(R=L)||void 0===R||null===(N=R.data)||void 0===N?void 0:N.results:[],error:U,isLoading:F}).rooms,P=(0,r.J)().queueLocations,W=q((0,a.useState)(!1),2),j=W[0],G=W[1],Y=(0,a.useCallback)((function(){var e;A?(G(!1),(null===(e=x)||void 0===e?void 0:e.length)>0?function(e,n,t){var a=new AbortController;return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/roomprovidermap/").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},signal:a.signal,body:{queueRoom:{uuid:n},provider:{uuid:t}}})}(S,A,y).then((function(e){200===e.status&&((0,l.showSnackbar)({isLowContrast:!0,title:b("updateRoom","Update room"),kind:"success",subtitle:b("queueRoomUpdatedSuccessfully","Queue room updated successfully")}),m(),localStorage.setItem("lastUpdatedQueueRoomTimestamp",(new Date).toString()),(0,u.By)(new Date),Q())}),(function(e){var n;(0,l.showSnackbar)({title:b("queueRoomAddFailed","Error adding queue room"),kind:"error",isLowContrast:!1,subtitle:null===(n=e)||void 0===n?void 0:n.message}),m()})):function(e,n){var t=new AbortController;return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/roomprovidermap"),{method:"POST",headers:{"Content-Type":"application/json"},signal:t.signal,body:{queueRoom:{uuid:e},provider:{uuid:n}}})}(A,y).then((function(e){201===e.status&&((0,l.showSnackbar)({isLowContrast:!0,title:b("addRoom","Add room"),kind:"success",subtitle:b("queueRoomAddedSuccessfully","Queue room added successfully")}),m(),localStorage.setItem("lastUpdatedQueueRoomTimestamp",(new Date).toString()),(0,u.By)(new Date),Q())}),(function(e){var n;(0,l.showSnackbar)({title:b("queueRoomAddFailed","Error adding queue room"),kind:"error",isLowContrast:!1,subtitle:null===(n=e)||void 0===n?void 0:n.message})}))):G(!0)}),[A,null===(t=x)||void 0===t?void 0:t.length,S,y,b,m,Q]);return i().createElement("div",null,i().createElement(s.xBx,{closeModal:m,title:b("addAProviderQueueRoom","Add a provider queue room?")}),i().createElement(s.fef,null,i().createElement(s.l09,{onSubmit:Y},i().createElement("section",{className:C.section},i().createElement(s.Ltx,{id:"queueLocation","aria-label":b("selectQueueLocation","Select a queue location"),label:"",titleText:b("queueLocation","Queue location"),type:"default",items:P,itemToString:function(e){return e?e.name:""},onChange:function(e){var n=e.selectedItem;localStorage.setItem("queueLocationUuid",n.id),localStorage.setItem("queueLocationName",n.name),(0,u.yl)(n.name),(0,u._j)(n.id)},size:"md",initialSelectedItem:{uuid:v,name:$}})),i().createElement("section",{className:C.section},i().createElement(s.Ltx,{id:"service","aria-label":b("selectService","Select a service"),type:"default",label:"",titleText:b("queueService","Queue service"),items:null!=O?O:[],itemToString:function(e){return e?e.display:""},onChange:function(e){var n=e.selectedItem;localStorage.setItem("queueServiceName",n.name),localStorage.setItem("queueService",n.uuid),(0,u.G$)(n.uuid,n.name)},size:"md",initialSelectedItem:{uuid:null===(g=k)||void 0===g?void 0:g.serviceUuid,display:null===(f=k)||void 0===f?void 0:f.serviceDisplay}})),i().createElement("section",{className:C.section},i().createElement("div",{className:C.sectionTitle},b("queueRoom","Queue room")),i().createElement("div",{className:C.filterContainer},i().createElement(s.PhF,{labelText:b("selectRoom","Select a room"),id:"service",invalidText:"Required",value:A,defaultValue:A,onChange:function(e){M(e.target.value),localStorage.setItem("lastUpdatedQueueRoomTimestamp",(new Date).toString())}},A?null:i().createElement(s.QlF,{text:b("chooseRoom","Select a room"),value:""}),(null===(h=Z)||void 0===h?void 0:h.length)>0&&Z.map((function(e){return i().createElement(s.QlF,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))))),j&&i().createElement("section",null,i().createElement(s.K0D,{style:{margin:"0",minWidth:"100%"},kind:"error",lowContrast:!0,title:b("missingQueueRoom","Please select a queue room")})),i().createElement("section",{className:C.section},i().createElement(s.XZJ,{onChange:function(e){localStorage.setItem("isPermanentProviderQueueRoom",JSON.parse(e.target.checked)),(0,u.wE)(JSON.parse(e.target.checked))},checked:w,labelText:b("retainLocation","Retain location"),id:"retianLocation",className:C.checkbox})))),i().createElement(s.mzw,null,i().createElement(s.zxk,{kind:"secondary",onClick:m},b("cancel","Cancel")),i().createElement(s.zxk,{onClick:Y},b("save","Save"))))}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[392],{5055:(e,n,t)=>{t.d(n,{Z:()=>l});var a=t(5698),i=t.n(a),o=t(9613),s=t.n(o)()(i());s.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79;--bottom-nav-height: 4rem;--workspace-header-height: 3rem;--tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));--desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height))}.-esm-service-queues__add-provider-queue-room__section___2E-Ye{margin:.5rem}.-esm-service-queues__add-provider-queue-room__sectionTitle___HvRIG{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);color:#525252;margin-bottom:.75rem}.-esm-service-queues__add-provider-queue-room__checkbox___YsZAn{padding-top:.75rem}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/add-provider-queue-room/add-provider-queue-room.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,+DACE,YCgBW,CDbb,oEE01BI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFx1BF,aDLQ,CCMR,oBCeW,CDZb,gEACE,kBCWW",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n --bottom-nav-height: 4rem;\n --workspace-header-height: 3rem;\n --tablet-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--bottom-nav-height));\n --desktop-workspace-window-height: calc(100vh - var(--omrs-navbar-height) - var(--workspace-header-height));\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","@use '@carbon/layout';\n@use '@carbon/type';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n\n.section {\n margin: layout.$spacing-03;\n}\n\n.sectionTitle {\n @include type.type-style('heading-compact-02');\n color: $text-02;\n margin-bottom: layout.$spacing-04;\n}\n\n.checkbox {\n padding-top: layout.$spacing-04;\n}\n","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map.get($type-styles, breakpoints) {\n @include grid.breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map.get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map.get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map.remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map.get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map.get($type-styles, font-size);\n $min-font-size: map.get($type-styles, font-size);\n @if map.has-key($fluid-breakpoint, font-size) {\n $min-font-size: map.get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map.get($breakpoint, width);\n $min-vw: map.get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: grid.breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map.has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: grid.breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map.get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map.get(\n map.get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map.get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin type-style(\n $name,\n $fluid: false,\n $breakpoints: gridconfig.$grid-breakpoints\n) {\n @if not map.has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map.get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map.has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @include custom-properties($name, $token);\n }\n}\n"],sourceRoot:""}]),s.locals={section:"-esm-service-queues__add-provider-queue-room__section___2E-Ye",sectionTitle:"-esm-service-queues__add-provider-queue-room__sectionTitle___HvRIG",checkbox:"-esm-service-queues__add-provider-queue-room__checkbox___YsZAn"};const l=s},9392:(e,n,t)=>{t.r(n),t.d(n,{default:()=>S});var a=t(5206),i=t.n(a),o=t(4924),s=t(7773),l=t(2870),r=t(1995),p=t(3649);function c(e){var n,t,a="".concat(l.restBaseUrl,"/roomprovidermap?provider=").concat(e),i=(0,p.ZP)(e?a:null,l.openmrsFetch),o=i.data,s=i.error,r=i.isLoading,c=i.mutate;return{providerRoom:o?null===(t=o)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.results:[],error:s,isLoading:r,mutate:c}}var u=t(3670),d=t(7060),g=t(6062),f=t.n(g),h=t(4036),y=t.n(h),m=t(6793),b=t.n(m),$=t(7892),v=t.n($),k=t(1173),w=t.n(k),x=t(2464),z=t.n(x),A=t(5055),M={};M.styleTagTransform=z(),M.setAttributes=v(),M.insert=b().bind(null,"head"),M.domAPI=y(),M.insertStyleElement=w(),f()(A.Z,M);const C=A.Z&&A.Z.locals?A.Z.locals:void 0;function _(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function q(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,i,o=[],s=!0,l=!1;try{for(t=t.call(e);!(s=(a=t.next()).done)&&(o.push(a.value),!n||o.length!==n);s=!0);}catch(e){l=!0,i=e}finally{try{s||null==t.return||t.return()}finally{if(l)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return _(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const S=function(e){var n,t,g,f,h,y=e.providerUuid,m=e.closeModal,b=(0,o.useTranslation)().t,$=(0,u.wJ)(),v=(0,u.SY)(),k=(0,u.Dv)(),w=(0,u.Hp)(),x=c(y).providerRoom,z=q((0,a.useState)(""),2),A=z[0],M=z[1],_=q((0,a.useState)(""),2),S=_[0],E=_[1];(0,a.useEffect)((function(){var e,n,t,a;(null===(e=x)||void 0===e?void 0:e.length)>0&&(M(null===(t=x)||void 0===t||null===(n=t[0].queueRoom)||void 0===n?void 0:n.uuid),E(null===(a=x)||void 0===a?void 0:a[0].uuid))}),[x]);var T,I,N,R,B,D,L,U,F,Q=c(y).mutate,O=(0,d.Z)().services,Z=(T=v,I=null===(n=k)||void 0===n?void 0:n.serviceUuid,B=I?"".concat(l.restBaseUrl,"/queueroom?location=").concat(T,"&queue=").concat(I):"".concat(l.restBaseUrl,"/queueroom?location=").concat(T),D=(0,p.ZP)(T?B:null,l.openmrsFetch),L=D.data,U=D.error,F=D.isLoading,{rooms:L?null===(R=L)||void 0===R||null===(N=R.data)||void 0===N?void 0:N.results:[],error:U,isLoading:F}).rooms,P=(0,r.J)().queueLocations,W=q((0,a.useState)(!1),2),j=W[0],G=W[1],Y=(0,a.useCallback)((function(){var e;A?(G(!1),(null===(e=x)||void 0===e?void 0:e.length)>0?function(e,n,t){var a=new AbortController;return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/roomprovidermap/").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},signal:a.signal,body:{queueRoom:{uuid:n},provider:{uuid:t}}})}(S,A,y).then((function(e){200===e.status&&((0,l.showSnackbar)({isLowContrast:!0,title:b("updateRoom","Update room"),kind:"success",subtitle:b("queueRoomUpdatedSuccessfully","Queue room updated successfully")}),m(),localStorage.setItem("lastUpdatedQueueRoomTimestamp",(new Date).toString()),(0,u.By)(new Date),Q())}),(function(e){var n;(0,l.showSnackbar)({title:b("queueRoomAddFailed","Error adding queue room"),kind:"error",isLowContrast:!1,subtitle:null===(n=e)||void 0===n?void 0:n.message}),m()})):function(e,n){var t=new AbortController;return(0,l.openmrsFetch)("".concat(l.restBaseUrl,"/roomprovidermap"),{method:"POST",headers:{"Content-Type":"application/json"},signal:t.signal,body:{queueRoom:{uuid:e},provider:{uuid:n}}})}(A,y).then((function(e){201===e.status&&((0,l.showSnackbar)({isLowContrast:!0,title:b("addRoom","Add room"),kind:"success",subtitle:b("queueRoomAddedSuccessfully","Queue room added successfully")}),m(),localStorage.setItem("lastUpdatedQueueRoomTimestamp",(new Date).toString()),(0,u.By)(new Date),Q())}),(function(e){var n;(0,l.showSnackbar)({title:b("queueRoomAddFailed","Error adding queue room"),kind:"error",isLowContrast:!1,subtitle:null===(n=e)||void 0===n?void 0:n.message})}))):G(!0)}),[A,null===(t=x)||void 0===t?void 0:t.length,S,y,b,m,Q]);return i().createElement("div",null,i().createElement(s.xBx,{closeModal:m,title:b("addAProviderQueueRoom","Add a provider queue room?")}),i().createElement(s.fef,null,i().createElement(s.l09,{onSubmit:Y},i().createElement("section",{className:C.section},i().createElement(s.Ltx,{id:"queueLocation","aria-label":b("selectQueueLocation","Select a queue location"),label:"",titleText:b("queueLocation","Queue location"),type:"default",items:P,itemToString:function(e){return e?e.name:""},onChange:function(e){var n=e.selectedItem;localStorage.setItem("queueLocationUuid",n.id),localStorage.setItem("queueLocationName",n.name),(0,u.yl)(n.name),(0,u._j)(n.id)},size:"md",initialSelectedItem:{uuid:v,name:$}})),i().createElement("section",{className:C.section},i().createElement(s.Ltx,{id:"service","aria-label":b("selectService","Select a service"),type:"default",label:"",titleText:b("queueService","Queue service"),items:null!=O?O:[],itemToString:function(e){return e?e.display:""},onChange:function(e){var n=e.selectedItem;localStorage.setItem("queueServiceName",n.name),localStorage.setItem("queueService",n.uuid),(0,u.G$)(n.uuid,n.name)},size:"md",initialSelectedItem:{uuid:null===(g=k)||void 0===g?void 0:g.serviceUuid,display:null===(f=k)||void 0===f?void 0:f.serviceDisplay}})),i().createElement("section",{className:C.section},i().createElement("div",{className:C.sectionTitle},b("queueRoom","Queue room")),i().createElement("div",{className:C.filterContainer},i().createElement(s.PhF,{labelText:b("selectRoom","Select a room"),id:"service",invalidText:"Required",value:A,defaultValue:A,onChange:function(e){M(e.target.value),localStorage.setItem("lastUpdatedQueueRoomTimestamp",(new Date).toString())}},A?null:i().createElement(s.QlF,{text:b("chooseRoom","Select a room"),value:""}),(null===(h=Z)||void 0===h?void 0:h.length)>0&&Z.map((function(e){return i().createElement(s.QlF,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))))),j&&i().createElement("section",null,i().createElement(s.K0D,{style:{margin:"0",minWidth:"100%"},kind:"error",lowContrast:!0,title:b("missingQueueRoom","Please select a queue room")})),i().createElement("section",{className:C.section},i().createElement(s.XZJ,{onChange:function(e){localStorage.setItem("isPermanentProviderQueueRoom",JSON.parse(e.target.checked)),(0,u.wE)(JSON.parse(e.target.checked))},checked:w,labelText:b("retainLocation","Retain location"),id:"retianLocation",className:C.checkbox})))),i().createElement(s.mzw,null,i().createElement(s.zxk,{kind:"secondary",onClick:m},b("cancel","Cancel")),i().createElement(s.zxk,{onClick:Y},b("save","Save"))))}}}]);
|