@kenyaemr/esm-service-queues-app 8.1.2-pre.183 → 8.1.2-pre.188
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 +22 -19
- package/dist/1006.js +1 -0
- package/dist/1006.js.map +1 -0
- package/dist/{3772.js → 1060.js} +1 -1
- package/dist/1060.js.map +1 -0
- package/dist/130.js +2 -0
- package/dist/130.js.map +1 -0
- package/dist/1325.js +1 -0
- package/dist/1325.js.map +1 -0
- package/dist/{9879.js → 1644.js} +1 -1
- package/dist/{4153.js → 1727.js} +1 -1
- package/dist/1727.js.map +1 -0
- package/dist/1800.js +1 -0
- package/dist/1800.js.map +1 -0
- package/dist/2.js +2 -0
- package/dist/{9876.js.LICENSE.txt → 2.js.LICENSE.txt} +2 -2
- package/dist/2.js.map +1 -0
- package/dist/{723.js → 236.js} +1 -1
- package/dist/{4055.js → 2757.js} +1 -1
- package/dist/2760.js +1 -0
- package/dist/2760.js.map +1 -0
- package/dist/{4041.js → 2784.js} +2 -2
- package/dist/2784.js.map +1 -0
- package/dist/{4691.js → 3199.js} +1 -1
- package/dist/{4691.js.map → 3199.js.map} +1 -1
- package/dist/3372.js +1 -0
- package/dist/3372.js.map +1 -0
- package/dist/{4300.js → 3574.js} +1 -1
- package/dist/3604.js +1 -0
- package/dist/3604.js.map +1 -0
- package/dist/{4944.js → 3652.js} +1 -1
- package/dist/3760.js +1 -0
- package/dist/3760.js.map +1 -0
- package/dist/3818.js +1 -0
- package/dist/3818.js.map +1 -0
- package/dist/3828.js +1 -0
- package/dist/3828.js.map +1 -0
- package/dist/{5173.js → 4272.js} +1 -1
- package/dist/{6679.js → 4378.js} +1 -1
- package/dist/443.js +1 -0
- package/dist/443.js.map +1 -0
- package/dist/{4132.js → 4460.js} +1 -1
- package/dist/{2690.js → 4705.js} +1 -1
- package/dist/{9176.js → 4911.js} +1 -1
- package/dist/4911.js.map +1 -0
- package/dist/5236.js +1 -0
- package/dist/5236.js.map +1 -0
- package/dist/{2146.js → 5240.js} +1 -1
- package/dist/5282.js +1 -0
- package/dist/5282.js.map +1 -0
- package/dist/5336.js +1 -0
- package/dist/539.js +1 -0
- package/dist/5673.js +1 -0
- package/dist/5711.js +1 -0
- package/dist/5737.js +1 -0
- package/dist/{4652.js → 5833.js} +1 -1
- package/dist/6566.js +1 -0
- package/dist/6578.js +2 -0
- package/dist/{7362.js.LICENSE.txt → 6578.js.LICENSE.txt} +22 -2
- package/dist/6578.js.map +1 -0
- package/dist/6591.js +2 -0
- package/dist/{2913.js.LICENSE.txt → 6591.js.LICENSE.txt} +3 -3
- package/dist/6591.js.map +1 -0
- package/dist/6670.js +1 -0
- package/dist/6670.js.map +1 -0
- package/dist/6727.js +1 -0
- package/dist/744.js +1 -0
- package/dist/752.js +1 -0
- package/dist/752.js.map +1 -0
- package/dist/{4335.js → 7807.js} +1 -1
- package/dist/{5661.js → 8271.js} +1 -1
- package/dist/{3099.js → 8319.js} +1 -1
- package/dist/{1197.js → 8788.js} +1 -1
- package/dist/899.js +1 -0
- package/dist/9261.js +1 -0
- package/dist/9392.js +1 -0
- package/dist/9392.js.map +1 -0
- package/dist/9993.js +1 -0
- package/dist/9993.js.map +1 -0
- package/dist/kenyaemr-esm-service-queues-app.js +1 -1
- package/dist/kenyaemr-esm-service-queues-app.js.buildmanifest.json +316 -343
- package/dist/kenyaemr-esm-service-queues-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +2 -2
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/active-visits/active-visits-table.resource.ts +1 -1
- package/dist/206.js +0 -1
- package/dist/206.js.map +0 -1
- package/dist/2372.js +0 -1
- package/dist/2372.js.map +0 -1
- package/dist/2913.js +0 -2
- package/dist/2913.js.map +0 -1
- package/dist/2990.js +0 -1
- package/dist/2990.js.map +0 -1
- package/dist/3144.js +0 -2
- package/dist/3144.js.LICENSE.txt +0 -19
- package/dist/3144.js.map +0 -1
- package/dist/3224.js +0 -1
- package/dist/3224.js.map +0 -1
- package/dist/3598.js +0 -1
- package/dist/3598.js.map +0 -1
- package/dist/3772.js.map +0 -1
- package/dist/3779.js +0 -1
- package/dist/3779.js.map +0 -1
- package/dist/4041.js.map +0 -1
- package/dist/4153.js.map +0 -1
- package/dist/5078.js +0 -1
- package/dist/5078.js.map +0 -1
- package/dist/5241.js +0 -1
- package/dist/5442.js +0 -1
- package/dist/5531.js +0 -1
- package/dist/5531.js.map +0 -1
- package/dist/6468.js +0 -1
- package/dist/6688.js +0 -1
- package/dist/6688.js.map +0 -1
- package/dist/6698.js +0 -1
- package/dist/6698.js.map +0 -1
- package/dist/6840.js +0 -1
- package/dist/6859.js +0 -1
- package/dist/7038.js +0 -1
- package/dist/7038.js.map +0 -1
- package/dist/7362.js +0 -2
- package/dist/7362.js.map +0 -1
- package/dist/7449.js +0 -1
- package/dist/7449.js.map +0 -1
- package/dist/7495.js +0 -1
- package/dist/7495.js.map +0 -1
- package/dist/7574.js +0 -1
- package/dist/7574.js.map +0 -1
- package/dist/7896.js +0 -1
- package/dist/7896.js.map +0 -1
- package/dist/7967.js +0 -1
- package/dist/7967.js.map +0 -1
- package/dist/831.js +0 -2
- package/dist/831.js.map +0 -1
- package/dist/8618.js +0 -1
- package/dist/9176.js.map +0 -1
- package/dist/9214.js +0 -1
- package/dist/9538.js +0 -1
- package/dist/9830.js +0 -1
- package/dist/9830.js.map +0 -1
- package/dist/9876.js +0 -2
- package/dist/9876.js.map +0 -1
- package/dist/9900.js +0 -1
- package/dist/9913.js +0 -1
- /package/dist/{831.js.LICENSE.txt → 130.js.LICENSE.txt} +0 -0
- /package/dist/{4041.js.LICENSE.txt → 2784.js.LICENSE.txt} +0 -0
package/dist/1325.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1325],{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/1325.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1325.js","mappings":"04BAGA,MAAMA,EAAO,OAKPC,EAA8BD,IAC9BE,EAASC,OACTC,EAAeC,GAAIA,IAAMJ,EACzBK,EAAcD,GAAgB,mBAALA,EACzBE,EAAe,CAACC,EAAGC,KAAI,IAClBD,KACAC,IAELC,EAAiBC,GAAIL,EAAW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AC7B,MAAOrC,GAAOmC,EAAU+H,IACjB,CAAE,CAAE,CAAE1F,GAAWnF,EAAeP,IAAIiB,GAC3C,GAAIC,EAAIyK,WAAWb,GAGf,OAAOY,KAAYnI,GAEvB,MAAMgI,EAAM7F,EAAQxE,GACpB,OAAI3C,EAAYgN,GAAaG,KAAYnI,WAClCmC,EAAQxE,GACRqK,EACV,GACgClD,KAOnCuD,GAAYC,GACP,YAAuBtI,GAE1B,MAAMuI,EAAiBZ,KAEhBhK,EAAKoG,EAAIyE,GAAWd,EAAU1H,GAE/B8E,EAASmB,EAAasC,EAAgBC,GAE5C,IAAIC,EAAOH,EACX,MAAM,IAAEpC,GAAQpB,EACV4D,GAAcxC,GAAO,IAAIK,OAAO0B,IACtC,IAAI,IAAIU,EAAID,EAAW9L,OAAQ+L,KAC3BF,EAAOC,EAAWC,GAAGF,GAEzB,OAAOA,EAAK9K,EAAKoG,GAAMe,EAAOgD,SAAW,KAAMhD,EACnD,EAKE8D,GAAoB,CAACjL,EAAKkL,EAAWlK,KACvC,MAAMmK,EAAoBD,EAAUlL,KAASkL,EAAUlL,GAAO,IAE9D,OADAmL,EAAkBnH,KAAKhD,GAChB,KACH,MAAMxC,EAAQ2M,EAAkBlF,QAAQjF,GACpCxC,GAAS,IAET2M,EAAkB3M,GAAS2M,EAAkBA,EAAkBlM,OAAS,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/{9879.js → 1644.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1644],{1644:e=>{e.exports=JSON.parse('{"actions":"操作","addAProviderQueueRoom":"Add a provider queue room?","addedPatientToQueue":"Added patient to queue","addNewQueueService":"添加新队列服务","addNewQueueServiceRoom":"添加新队列诊室","addNewService":"添加新服务","addNewServiceRoom":"添加新诊室","addPatientToQueue":"将患者加入队列","addProviderQueueRoom":"添加提供者候诊室?","addQueue":"添加队列","addQueueName":"请添加一个队列名称","addQueueRoom":"添加候诊室","addQueueRoomName":"请添加一个候诊室名称","addQueueRoomService":"请添加一个候诊室服务","addRoom":"添加诊室","age":"年龄","alistOfClients":"等待名单","all":"全部","and":"And","applyFilters":"应用筛选条件","averageWaitTime":"今日平均等待时间。","backToSearchResults":"Back to search results","between":"Between","bmi":"BMI","bp":"血压","call":"呼叫","cancel":"取消","checkedInPatients":"已签到患者","checkFilters":"检查上方的筛选条件","chooseRoom":"选择一个诊室","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":"日期&时间","delete":"删除","deleteQueueEntry":"删除队列条目","discard":"放弃","dose":"剂量","edit":"编辑","editPatientDetails":"编辑患者详情","editQueueEntry":"编辑队列条目","editQueueEntryInstruction":"编辑现有队列条目的字段","encounterType":"问诊类型","endAgeRangeInvalid":"终止年龄范围无效","endDate":"结束日期","endVisit":"结束就诊","endVisitWarningMessage":"结束此次就诊将不允许您为该患者填写另一个问诊表单","enterCommentHere":"在此输入注释","errorAddingQueue":"清除队列时出现错误","errorAddingQueueRoom":"添加候诊室时出现错误","errorClearingQueues":"清除队列时出现错误","errorFetchingVisit":"Error fetching patient visit","errorLoadingQueueEntries":"加载队列条目时出现错误","errorPostingToScreen":"发布至大屏时出现错误","femaleLabelText":"女性","filter":"筛选","filterByService":"Filter by service:","filterByStatus":"Filter by status:","filterTable":"筛选表格","gender":"性别","heartRate":"心率","height":"身高","hourAndMinuteFormatted":"{{hours}}小时{{minutes}}分钟","indication":"适应症","invalidQueue":"无效队列","invalidtableConfig":"表格配置无效","lastEncounter":"上次问诊","loading":"加载中...","location":"Location","maleLabelText":"男性","medications":"药物","minuteFormatted":"{{分钟}}分钟","minutes":"分钟","missingLocation":"地点缺失","missingQueueName":"队列名称缺失","missingQueueRoom":"请选择一个候诊室","missingQueueRoomName":"候诊室名称缺失","missingQueueRoomService":"候诊室服务缺失","missingService":"服务缺失","modifyDefaultValue":"修改默认值","movePatientToNextService":"将患者转移到下一个服务?","moveToNextService":"转移到下一个服务","name":"姓名","nextPage":"下一页","noColumnsDefined":"未定义表格列,请检查配置。","noEncountersFound":"未找到问诊记录","noLastEncounter":"该患者没有可显示的最近问诊记录","noLocationsAvailable":"没有可用的地点","noMedicationsFound":"未找到药物","noNotesFound":"未找到备注","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":"未找到优先级","noReturnDate":"该患者没有可显示的最近回访日期","noServicesAvailable":"没有可用的服务","noServicesConfigured":"未配置服务","noStatusConfigured":"未配置状态","notableConfig":"没有表格配置","notes":"备注","noVitalsFound":"未找到就诊记录","onTime":"准时","orderDurationAndUnit":"持续 {{duration}} {{durationUnit}}","orderIndefiniteDuration":"无限期","patientAge":"Age","patientAttendingService":"患者就诊服务","patientInfo":"{{name}}{{sexInfo}}{{ageInfo}}","patientList":"患者列表","patientName":"患者姓名","patientNotInQueue":"患者不在队列中","patientRemoved":"患者已移除","patientRemovedFailed":"将患者从队列中移除时出现错误","patientRemovedSuccessfully":"患者已成功从队列中移除","patientRequeued":"患者已重新加入队列","patients":"患者","patientsCurrentlyInQueue":"当前排队的患者","phoneNumber":"电话号码","pleaseSelectLocation":"请选择一个地点","previousPage":"上一页","previousVisit":"上次就诊","priority":"优先级","priorityComment":"优先级注释","priorityIsRequired":"优先级是必填项","provider":"提供者","quantity":"数量","queueAddedSuccessfully":"队列成功添加","queueEntryAddedSuccessfully":"队列条目添加成功","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":"队列状态","refills":"补充处方","removeFromQueueAndEndVisit":"将患者从队列中移除并结束当前的就诊","removePatient":"移除患者","removePatientFromQueue":"将患者从队列中移除","removeQueueEntryError":"移除队列条目时出现错误","requeue":"重新排队","retainLocation":"保留地点","returnDate":"回访日期","room":"诊室","rRate":"呼吸频率","save":"保存","scheduledAppointmentsList":"预约患者名单","scheduledToday":"今日安排","searchThisList":"搜索此列表","selectALocation":"Select a location","selectAVisitType":"选择就诊类型","selectQueue":"选择一个队列","selectQueueLocation":"选择一个队列地点","selectQueueService":"选择一个队列服务","selectRoom":"选择一个诊室","selectService":"选择一个服务","selectServiceType":"选择一个服务类型","serve":"接待","servePatient":"接待患者","service":"服务","serviceIsRequired":"Service is required","serviceQueue":"服务队列","serviceQueues":"服务队列","sp02":"血氧","startAgeRangeInvalid":"起始年龄范围无效","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":"分诊记录","undoQueueEntryTransitionSuccess":"Undo transition success","undoTransition":"Undo transition","unexpectedServerResponse":"意外的服务器响应","unknown":"未知","updateEntry":"更新条目","updateRoom":"更新诊室","useTodaysDate":"使用今天的日期","visitQueueNumberAttributeUuid not configured":"visitQueueNumberAttributeUuid not configured","visitTabs":"Visit tabs","visitType":"就诊类型","vitals":"生命体征","vitalsForm":"生命体征表单","vitalsNotRecordedForVisit":"此次就诊未记录该患者的生命体征","waitingFor":"等待中","weight":"体重"}')}}]);
|
package/dist/{4153.js → 1727.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[4153],{6614:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(977),i=t.n(a),o=t(5924),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__queue-service-form__heading___YsD2t{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);margin:1rem 0 1rem}.-esm-service-queues__queue-service-form__warningContainer___CouUi{background-color:#fa4d56;padding:.75rem;margin:.5rem 0 .5rem;display:flex;justify-content:space-between}.-esm-service-queues__queue-service-form__warningContainer___CouUi .-esm-service-queues__queue-service-form__warning___m\\+NCg{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#161616}.-esm-service-queues__queue-service-form__form___iV\\+bp{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-service-queues__queue-service-form__grid___9RxUs{margin:0 1rem;padding:0}.-esm-service-queues__queue-service-form__input___HCjwC{margin-top:.75rem}.-esm-service-queues__queue-service-form__button___WtPDs{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-service-queues__queue-service-form__buttonSet___6ko\\+p{padding:0;margin-top:1rem}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__form___iV\\+bp{height:100%}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__buttonSet___6ko\\+p{padding:1.5rem 1rem;background-color:#fff}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/queue-services/queue-service-form.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,0DC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD51BF,kBAAA,CAGF,mEACE,wBDIe,CCHf,cEeW,CFdX,oBAAA,CACA,YAAA,CACA,6BAAA,CACA,8HCm1BE,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDj1BA,aDbI,CCiBR,wDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,uDACE,aAAA,CACA,SAAA,CAGF,wDACE,iBERW,CFWb,yDACE,WEkBW,CFjBX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,6DACE,SAAA,CACA,eEhBW,CFqBX,oFACE,WAAA,CAGF,yFACE,mBAAA,CACA,qBDzDI",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.heading {\n @include type.type-style('heading-compact-01');\n margin: layout.$spacing-05 0 layout.$spacing-05;\n}\n\n.warningContainer {\n background-color: $carbon--red-50;\n padding: layout.$spacing-04;\n margin: layout.$spacing-03 0 layout.$spacing-03;\n display: flex;\n justify-content: space-between;\n .warning {\n @include type.type-style('heading-compact-01');\n color: $ui-05;\n }\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.grid {\n margin: 0 layout.$spacing-05;\n padding: 0;\n}\n\n.input {\n margin-top: layout.$spacing-04;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.buttonSet {\n padding: 0;\n margin-top: layout.$spacing-05;\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .form {\n height: 100%;\n }\n\n .buttonSet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n }\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","// 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"],sourceRoot:""}]),s.locals={heading:"-esm-service-queues__queue-service-form__heading___YsD2t",warningContainer:"-esm-service-queues__queue-service-form__warningContainer___CouUi",warning:"-esm-service-queues__queue-service-form__warning___m+NCg",form:"-esm-service-queues__queue-service-form__form___iV+bp",grid:"-esm-service-queues__queue-service-form__grid___9RxUs",input:"-esm-service-queues__queue-service-form__input___HCjwC",button:"-esm-service-queues__queue-service-form__button___WtPDs",buttonSet:"-esm-service-queues__queue-service-form__buttonSet___6ko+p"};const r=s},4153:(e,n,t)=>{t.r(n),t.d(n,{default:()=>B});var a=t(380),i=t.n(a),o=t(3150),s=t(824),r=t(6195),l=t(1160),p=t(2524),c=t(8723),u=t(8254),d=t(8010),g=t.n(d);var f=t(2515),h=t(2591),y=t.n(h),b=t(1740),m=t.n(b),$=t(8128),v=t.n($),w=t(855),k=t.n(w),A=t(3051),x=t.n(A),_=t(3656),z=t.n(_),C=t(6614),q={};q.styleTagTransform=z(),q.setAttributes=k(),q.insert=v().bind(null,"head"),q.domAPI=m(),q.insertStyleElement=x(),y()(C.A,q);const M=C.A&&C.A.locals?C.A.locals:void 0;function S(e,n,t,a,i,o,s){try{var r=e[o](s),l=r.value}catch(e){return void t(e)}r.done?n(l):Promise.resolve(l).then(a,i)}function E(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){E(e,n,t[n])}))}return e}function N(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const B=function(e){var n,t,a,d,h,y,b=e.closeWorkspace,m=(0,o.useTranslation)().t,$=(t=function(){var e="".concat(u.restBaseUrl,"/systemsetting/").concat("queue.serviceConceptSetName","?v=custom:(value)"),n=g()(e,u.openmrsFetch),t=n.data,a=n.error,i=n.isLoading;return{systemSetting:null==t?void 0:t.data,error:a,isLoading:i}}().systemSetting,a=function(e){var n=e?"".concat(u.restBaseUrl,"/concept/").concat(e):void 0,t=g()(n,u.openmrsFetch),a=t.data,i=t.error,o=t.isLoading;return{concept:null==a?void 0:a.data,error:i,isLoading:o}}(null==t?void 0:t.value),d=a.concept,h=a.error,y=a.isLoading,{queueConcepts:(null==d||null===(n=d.setMembers)||void 0===n?void 0:n.sort((function(e,n){return e.display.localeCompare(n.display)})))||[],error:h,isLoading:y}).queueConcepts,v=(0,f.l)().queueLocations,w=function(e){return r.z.object({queueName:r.z.string({required_error:e("queueNameRequired","Queue name is required")}).trim().min(1,e("queueNameRequired","Queue name is required")),queueServiceType:r.z.string({required_error:e("queueConceptRequired","Queue concept is required")}).trim().min(1,e("queueConceptRequired","Queue concept is required")),userLocation:r.z.string({required_error:e("queueLocationRequired","Queue location is required")}).trim().min(1,e("queueLocationRequired","Queue location is required"))})}(m),k=(0,s.mN)({resolver:(0,l.u)(w),defaultValues:{queueName:"",queueServiceType:"",userLocation:""}}),A=k.control,x=k.handleSubmit,_=k.formState,z=_.errors,C=_.isSubmitting,q=function(){var e,n=(e=function(e){var n,t;return function(e,n){var t,a,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function r(o){return function(r){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,r])}}}(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,(i=e.queueName,o=e.queueServiceType,s=e.userLocation,r=new AbortController,(0,u.openmrsFetch)("".concat(u.restBaseUrl,"/queue"),{method:"POST",headers:{"Content-Type":"application/json"},signal:r.signal,body:{name:i,description:"",service:{uuid:o},location:{uuid:s}}}))];case 1:return a.sent(),(0,u.showSnackbar)({title:m("queueServiceCreated","Queue service created"),kind:"success",subtitle:m("queueServiceCreatedSuccessfully","Queue service created successfully")}),b(),[4,Promise.all([(0,c.k)("".concat(u.restBaseUrl,"/queue?").concat(e.userLocation)),(0,c.k)("".concat(u.restBaseUrl,"/queue?location=").concat(e.userLocation))])];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),(0,u.showSnackbar)({title:m("errorCreatingQueueService","Error creating queue service"),kind:"error",isLowContrast:!1,subtitle:(null==n||null===(t=n.responseBody)||void 0===t?void 0:t.message)||(null==n?void 0:n.message)}),[3,4];case 4:return[2]}var i,o,s,r}))},function(){var n=this,t=arguments;return new Promise((function(a,i){var o=e.apply(n,t);function s(e){S(o,a,i,s,r,"next",e)}function r(e){S(o,a,i,s,r,"throw",e)}s(void 0)}))});return function(e){return n.apply(this,arguments)}}();return i().createElement(p.lVW,{onSubmit:x(q),className:M.form},i().createElement(p.BJc,{gap:5,className:M.grid},i().createElement(p.VPZ,null,i().createElement(p.Wdr,{className:M.input},i().createElement(s.xI,{name:"queueName",control:A,render:function(e){var n,t=e.field;return i().createElement(p.ksK,N(T({},t),{id:"queueName",invalidText:null===(n=z.queueName)||void 0===n?void 0:n.message,invalid:!!z.queueName,labelText:m("queueName","Queue name")}))}}))),i().createElement(p.VPZ,null,i().createElement(p.Wdr,{className:M.input},i().createElement(s.xI,{name:"queueServiceType",control:A,render:function(e){var n,t=e.field;return i().createElement(p.l6P,N(T({},t),{labelText:m("selectServiceType","Select a service type"),id:"queueServiceType",invalid:!!(null==z?void 0:z.queueServiceType),invalidText:null==z||null===(n=z.queueServiceType)||void 0===n?void 0:n.message}),i().createElement(p.ebT,{text:m("selectServiceType","Select a service type"),value:""}),(null==$?void 0:$.length)>0&&$.map((function(e){return i().createElement(p.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)})))}}))),i().createElement(p.VPZ,null,i().createElement(p.Wdr,{className:M.input},i().createElement(s.xI,{name:"userLocation",control:A,render:function(e){var n,t=e.field;return i().createElement(p.l6P,N(T({},t),{id:"location",invalid:!!(null==z?void 0:z.userLocation),invalidText:null==z||null===(n=z.userLocation)||void 0===n?void 0:n.message,labelText:m("selectALocation","Select a location")}),i().createElement(p.ebT,{text:m("selectALocation","Select a location"),value:""}),(null==v?void 0:v.length)>0&&v.map((function(e){return i().createElement(p.ebT,{key:e.id,text:e.name,value:e.id},e.name)})))}})))),i().createElement(p.Te$,{className:M.buttonSet},i().createElement(p.$nd,{className:M.button,kind:"secondary",onClick:b},m("cancel","Cancel")),i().createElement(p.$nd,{className:M.button,disabled:C,kind:"primary",type:"submit"},C?i().createElement(p.OuH,{description:m("saving","Saving")+"..."}):i().createElement("span",null,m("save","Save")))))}}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1727],{730:(e,n,t)=>{t.d(n,{Z:()=>r});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__queue-service-form__heading___YsD2t{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);margin:1rem 0 1rem}.-esm-service-queues__queue-service-form__warningContainer___CouUi{background-color:#fa4d56;padding:.75rem;margin:.5rem 0 .5rem;display:flex;justify-content:space-between}.-esm-service-queues__queue-service-form__warningContainer___CouUi .-esm-service-queues__queue-service-form__warning___m\\+NCg{font-size:var(--cds-heading-compact-01-font-size, 0.875rem);font-weight:var(--cds-heading-compact-01-font-weight, 600);line-height:var(--cds-heading-compact-01-line-height, 1.28572);letter-spacing:var(--cds-heading-compact-01-letter-spacing, 0.16px);color:#161616}.-esm-service-queues__queue-service-form__form___iV\\+bp{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-service-queues__queue-service-form__grid___9RxUs{margin:0 1rem;padding:0}.-esm-service-queues__queue-service-form__input___HCjwC{margin-top:.75rem}.-esm-service-queues__queue-service-form__button___WtPDs{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-service-queues__queue-service-form__buttonSet___6ko\\+p{padding:0;margin-top:1rem}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__form___iV\\+bp{height:100%}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__buttonSet___6ko\\+p{padding:1.5rem 1rem;background-color:#fff}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/queue-services/queue-service-form.scss","webpack://./../../node_modules/@carbon/type/scss/_styles.scss","webpack://./../../node_modules/@carbon/layout/scss/generated/_spacing.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCvDF,0DC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD51BF,kBAAA,CAGF,mEACE,wBDIe,CCHf,cEeW,CFdX,oBAAA,CACA,YAAA,CACA,6BAAA,CACA,8HCm1BE,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDj1BA,aDbI,CCiBR,wDACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,uDACE,aAAA,CACA,SAAA,CAGF,wDACE,iBERW,CFWb,yDACE,WEkBW,CFjBX,YAAA,CACA,wBAAA,CACA,oBAAA,CACA,aAAA,CAGF,6DACE,SAAA,CACA,eEhBW,CFqBX,oFACE,WAAA,CAGF,yFACE,mBAAA,CACA,qBDzDI",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.heading {\n @include type.type-style('heading-compact-01');\n margin: layout.$spacing-05 0 layout.$spacing-05;\n}\n\n.warningContainer {\n background-color: $carbon--red-50;\n padding: layout.$spacing-04;\n margin: layout.$spacing-03 0 layout.$spacing-03;\n display: flex;\n justify-content: space-between;\n .warning {\n @include type.type-style('heading-compact-01');\n color: $ui-05;\n }\n}\n\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n}\n\n.grid {\n margin: 0 layout.$spacing-05;\n padding: 0;\n}\n\n.input {\n margin-top: layout.$spacing-04;\n}\n\n.button {\n height: layout.$spacing-10;\n display: flex;\n align-content: flex-start;\n align-items: baseline;\n min-width: 50%;\n}\n\n.buttonSet {\n padding: 0;\n margin-top: layout.$spacing-05;\n}\n\n/* Tablet */\n:global(.omrs-breakpoint-lt-desktop) {\n .form {\n height: 100%;\n }\n\n .buttonSet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n }\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","// 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"],sourceRoot:""}]),s.locals={heading:"-esm-service-queues__queue-service-form__heading___YsD2t",warningContainer:"-esm-service-queues__queue-service-form__warningContainer___CouUi",warning:"-esm-service-queues__queue-service-form__warning___m+NCg",form:"-esm-service-queues__queue-service-form__form___iV+bp",grid:"-esm-service-queues__queue-service-form__grid___9RxUs",input:"-esm-service-queues__queue-service-form__input___HCjwC",button:"-esm-service-queues__queue-service-form__button___WtPDs",buttonSet:"-esm-service-queues__queue-service-form__buttonSet___6ko+p"};const r=s},1727:(e,n,t)=>{t.r(n),t.d(n,{default:()=>B});var a=t(5206),i=t.n(a),o=t(4924),s=t(3955),r=t(1604),l=t(6312),p=t(9444),c=t(3649),u=t(7234),d=t(5907),g=t.n(d);var f=t(1019),h=t(6062),y=t.n(h),b=t(4036),m=t.n(b),$=t(6793),v=t.n($),w=t(7892),k=t.n(w),A=t(1173),x=t.n(A),_=t(2464),z=t.n(_),C=t(730),q={};q.styleTagTransform=z(),q.setAttributes=k(),q.insert=v().bind(null,"head"),q.domAPI=m(),q.insertStyleElement=x(),y()(C.Z,q);const M=C.Z&&C.Z.locals?C.Z.locals:void 0;function S(e,n,t,a,i,o,s){try{var r=e[o](s),l=r.value}catch(e){return void t(e)}r.done?n(l):Promise.resolve(l).then(a,i)}function E(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),a.forEach((function(n){E(e,n,t[n])}))}return e}function T(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t.push.apply(t,a)}return t}(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})),e}const B=function(e){var n,t,a,d,h,y,b,m,$,v,w=e.closeWorkspace,k=(0,o.useTranslation)().t,A=(y=function(e){var n,t="".concat(u.restBaseUrl,"/systemsetting/").concat("queue.serviceConceptSetName","?v=custom:(value)"),a=g()(t,u.openmrsFetch),i=a.data,o=a.error,s=a.isLoading;return{systemSetting:null===(n=i)||void 0===n?void 0:n.data,error:o,isLoading:s}}(),b=function(e){var n,t=e?"".concat(u.restBaseUrl,"/concept/").concat(e):void 0,a=g()(t,u.openmrsFetch),i=a.data,o=a.error,s=a.isLoading;return{concept:null===(n=i)||void 0===n?void 0:n.data,error:o,isLoading:s}}(null===(a=y.systemSetting)||void 0===a?void 0:a.value),m=b.concept,$=b.error,v=b.isLoading,{queueConcepts:(null===(h=m)||void 0===h||null===(d=h.setMembers)||void 0===d?void 0:d.sort((function(e,n){return e.display.localeCompare(n.display)})))||[],error:$,isLoading:v}).queueConcepts,x=(0,f.J)().queueLocations,_=function(e){return r.z.object({queueName:r.z.string({required_error:e("queueNameRequired","Queue name is required")}).trim().min(1,e("queueNameRequired","Queue name is required")),queueServiceType:r.z.string({required_error:e("queueConceptRequired","Queue concept is required")}).trim().min(1,e("queueConceptRequired","Queue concept is required")),userLocation:r.z.string({required_error:e("queueLocationRequired","Queue location is required")}).trim().min(1,e("queueLocationRequired","Queue location is required"))})}(k),z=(0,s.cI)({resolver:(0,l.F)(_),defaultValues:{queueName:"",queueServiceType:"",userLocation:""}}),C=z.control,q=z.handleSubmit,E=z.formState,B=E.errors,D=E.isSubmitting,O=(n=function(e){var n,t,a,i;return function(e,n){var t,a,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function r(o){return function(r){return function(o){if(t)throw new TypeError("Generator is already executing.");for(;s;)try{if(t=1,a&&(i=2&o[0]?a.return:o[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,o[1])).done)return i;switch(a=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=n.call(e,s)}catch(e){o=[6,e],a=0}finally{t=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,r])}}}(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,(s=e.queueName,r=e.queueServiceType,"",l=e.userLocation,p=new AbortController,(0,u.openmrsFetch)("".concat(u.restBaseUrl,"/queue"),{method:"POST",headers:{"Content-Type":"application/json"},signal:p.signal,body:{name:s,description:"",service:{uuid:r},location:{uuid:l}}}))];case 1:return o.sent(),(0,u.showSnackbar)({title:k("queueServiceCreated","Queue service created"),kind:"success",subtitle:k("queueServiceCreatedSuccessfully","Queue service created successfully")}),w(),[4,Promise.all([(0,c.JG)("".concat(u.restBaseUrl,"/queue?").concat(e.userLocation)),(0,c.JG)("".concat(u.restBaseUrl,"/queue?location=").concat(e.userLocation))])];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),(0,u.showSnackbar)({title:k("errorCreatingQueueService","Error creating queue service"),kind:"error",isLowContrast:!1,subtitle:(null===(a=n)||void 0===a||null===(t=a.responseBody)||void 0===t?void 0:t.message)||(null===(i=n)||void 0===i?void 0:i.message)}),[3,4];case 4:return[2]}var s,r,l,p}))},t=function(){var e=this,t=arguments;return new Promise((function(a,i){var o=n.apply(e,t);function s(e){S(o,a,i,s,r,"next",e)}function r(e){S(o,a,i,s,r,"throw",e)}s(void 0)}))},function(e){return t.apply(this,arguments)});return i().createElement(p.l09,{onSubmit:q(O),className:M.form},i().createElement(p.Kqy,{gap:5,className:M.grid},i().createElement(p.sgG,null,i().createElement(p.mh4,{className:M.input},i().createElement(s.Qr,{name:"queueName",control:C,render:function(e){var n,t=e.field;return i().createElement(p.oil,T(N({},t),{id:"queueName",invalidText:null===(n=B.queueName)||void 0===n?void 0:n.message,invalid:!!B.queueName,labelText:k("queueName","Queue name")}))}}))),i().createElement(p.sgG,null,i().createElement(p.mh4,{className:M.input},i().createElement(s.Qr,{name:"queueServiceType",control:C,render:function(e){var n,t,a,o,s=e.field;return i().createElement(p.PhF,T(N({},s),{labelText:k("selectServiceType","Select a service type"),id:"queueServiceType",invalid:!!(null===(n=B)||void 0===n?void 0:n.queueServiceType),invalidText:null===(a=B)||void 0===a||null===(t=a.queueServiceType)||void 0===t?void 0:t.message}),i().createElement(p.QlF,{text:k("selectServiceType","Select a service type"),value:""}),(null===(o=A)||void 0===o?void 0:o.length)>0&&A.map((function(e){return i().createElement(p.QlF,{key:e.uuid,text:e.display,value:e.uuid},e.display)})))}}))),i().createElement(p.sgG,null,i().createElement(p.mh4,{className:M.input},i().createElement(s.Qr,{name:"userLocation",control:C,render:function(e){var n,t,a,o,s=e.field;return i().createElement(p.PhF,T(N({},s),{id:"location",invalid:!!(null===(n=B)||void 0===n?void 0:n.userLocation),invalidText:null===(a=B)||void 0===a||null===(t=a.userLocation)||void 0===t?void 0:t.message,labelText:k("selectALocation","Select a location")}),i().createElement(p.QlF,{text:k("selectALocation","Select a location"),value:""}),(null===(o=x)||void 0===o?void 0:o.length)>0&&x.map((function(e){return i().createElement(p.QlF,{key:e.id,text:e.name,value:e.id},e.name)})))}})))),i().createElement(p.uVA,{className:M.buttonSet},i().createElement(p.zxk,{className:M.button,kind:"secondary",onClick:w},k("cancel","Cancel")),i().createElement(p.zxk,{className:M.button,disabled:D,kind:"primary",type:"submit"},D?i().createElement(p.lSo,{description:k("saving","Saving")+"..."}):i().createElement("span",null,k("save","Save")))))}}}]);
|
package/dist/1727.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1727.js","mappings":"iNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,m7DAAo7D,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,wEAAwE,yDAAyD,gEAAgE,8EAA8E,MAAQ,GAAG,SAAW,mfAAmf,eAAiB,CAAC,o7DAAo7D,snCAAsnC,u8uBAAu8uB,25DAA25D,WAAa,MAE3r+BH,EAAwBI,OAAS,CAChC,QAAW,2DACX,iBAAoB,oEACpB,QAAW,2DACX,KAAQ,wDACR,KAAQ,wDACR,MAAS,yDACT,OAAU,0DACV,UAAa,8DAEd,S,wSCNIC,EAAU,CAAC,EAEfA,EAAQC,kBAAoB,IAC5BD,EAAQE,cAAgB,IAElBF,EAAQG,OAAS,SAAc,KAAM,QAE3CH,EAAQI,OAAS,IACjBJ,EAAQK,mBAAqB,IAEhB,IAAI,IAASL,GAKnB,QAAe,KAAW,IAAQD,OAAS,IAAQA,YAASO,E,06BCwJnE,QAlI0D,Y,QC1CYC,EAEnDC,EAAAA,EAHgCC,EACQC,EAAjDC,EAA4BC,EAAOC,ED0CgBC,EAAAA,EAAAA,eACrD,GAAQC,EAAAA,EAAAA,kBAANC,EACF,GC7C2CP,ECI5C,SAA0BQ,G,IAIdC,EAHXC,EAAS,GAAgCF,OAA7BG,EAAAA,YAAY,mBAAyB,ODLW,8BCKX,qBACpBC,EAAAA,IAAgDF,EAAQG,EAAAA,cAAnFJ,EAA2BG,EAA3BH,KAAMN,EAAqBS,EAArBT,MAAOC,EAAcQ,EAAdR,UACrB,MAAO,CACLU,cAAeL,QAAAA,EAAAA,SAAAA,I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sD,EAAAA,IAAaA,CAAC5C,YAAahD,EAAE,SAAU,UAAY,QAEpD,kBAAC6F,OAAAA,KAAM7F,EAAE,OAAQ,WAM7B,C","sources":["webpack://@kenyaemr/esm-service-queues-app/./src/queue-services/queue-service-form.scss","webpack://@kenyaemr/esm-service-queues-app/./src/queue-services/queue-service-form.scss?3495","webpack://@kenyaemr/esm-service-queues-app/./src/queue-services/queue-service-form.workspace.tsx","webpack://@kenyaemr/esm-service-queues-app/./src/queue-services/queue-service.resource.ts","webpack://@kenyaemr/esm-service-queues-app/./src/hooks/useSystemSetting.ts","webpack://@kenyaemr/esm-service-queues-app/./src/hooks/useConcept.ts"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","serviceConceptSetting","serviceConceptSet","useSystemSetting","useConcept","concept","error","isLoading","closeWorkspace","useTranslation","t","setting","data","apiUrl","restBaseUrl","useSWRImmutable","openmrsFetch","systemSetting","uuid","value","queueConcepts","setMembers","sort","c1","c2","display","localeCompare","useQueueLocations","queueLocations","QueueServiceSchema","z","object","queueName","string","required_error","trim","min","queueServiceType","userLocation","createQueueServiceSchema","useForm","resolver","zodResolver","defaultValues","control","handleSubmit","formState","errors","isSubmitting","createQueue","queueLocation","abortController","AbortController","method","headers","signal","body","name","description","service","location","showSnackbar","title","kind","subtitle","Promise","all","mutate","isLowContrast","responseBody","message","Form","onSubmit","className","styles","form","Stack","gap","grid","Column","Layer","input","Controller","render","field","TextInput","invalidText","invalid","labelText","Select","SelectItem","text","length","map","key","ButtonSet","buttonSet","Button","button","onClick","disabled","type","InlineLoading","span"],"sourceRoot":""}
|
package/dist/1800.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1800],{3657:(e,n,t)=>{t.d(n,{Z:()=>u});var r=t(5698),o=t.n(r),a=t(9613),s=t.n(a)()(o());s.push([e.id,".-esm-service-queues__queue-entry-confirm-action__modalHeader___iDuYd .cds--modal-close-button{position:absolute;inset-block-start:0;inset-inline-end:0;margin:0;margin-top:calc(-1 * 1rem)}.-esm-service-queues__queue-entry-confirm-action__modalHeader___iDuYd .cds--modal-close{background-color:rgba(0,0,0,0)}.-esm-service-queues__queue-entry-confirm-action__modalHeader___iDuYd .cds--modal-close:hover{background-color:var(--cds-layer-hover)}.-esm-service-queues__queue-entry-confirm-action__modalHeader___iDuYd .cds--popover--left>.cds--popover>.cds--popover-content{transform:translate(-4rem, 0.85rem)}.-esm-service-queues__queue-entry-confirm-action__modalHeader___iDuYd .cds--popover--left>.cds--popover>.cds--popover-caret{transform:translate(-3.75rem, 1.25rem)}","",{version:3,sources:["webpack://./src/queue-table/queue-entry-actions/queue-entry-confirm-action.scss"],names:[],mappings:"AAII,+FACE,iBAAA,CACA,mBAAA,CACA,kBAAA,CACA,QAAA,CACA,0BAAA,CAGF,wFACE,8BAAA,CAEA,8FACE,uCAAA,CAIJ,8HACE,mCAAA,CAGF,4HACE,sCAAA",sourcesContent:["@use '@carbon/layout';\n\n.modalHeader {\n :global {\n .cds--modal-close-button {\n position: absolute;\n inset-block-start: 0;\n inset-inline-end: 0;\n margin: 0;\n margin-top: calc(-1 * #{layout.$spacing-05});\n }\n\n .cds--modal-close {\n background-color: rgba(0, 0, 0, 0);\n\n &:hover {\n background-color: var(--cds-layer-hover);\n }\n }\n\n .cds--popover--left > .cds--popover > .cds--popover-content {\n transform: translate(-4rem, 0.85rem);\n }\n\n .cds--popover--left > .cds--popover > .cds--popover-caret {\n transform: translate(-3.75rem, 1.25rem);\n }\n }\n}\n"],sourceRoot:""}]),s.locals={modalHeader:"-esm-service-queues__queue-entry-confirm-action__modalHeader___iDuYd"};const u=s},1800:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});var r=t(5206),o=t.n(r),a=t(4924),s=t(7702),u=t(4690);const i=function(e){var n=e.queueEntry,t=e.closeModal,r=(0,a.useTranslation)().t,i=o().createElement("p",null,r("confirmRemovePatientFromQueue","Are you sure you want to remove this patient from this queue?"));return o().createElement(u.Z,{queueEntry:n,closeModal:t,modalParams:{modalTitle:r("removePatientFromQueue","Remove patient from queue"),modalInstruction:i,submitButtonText:r("removePatient","Remove patient"),submitSuccessTitle:r("patientRemoved","Patient removed"),submitSuccessText:r("patientRemovedSuccessfully","Paient removed from queue successfully"),submitFailureTitle:r("patientRemovedFailed","Error removing patient from queue"),submitAction:function(e){return(0,s.zI)(e.uuid,{endedAt:(new Date).toISOString()})}}})}},7702:(e,n,t)=>{t.d(n,{VK:()=>s,hu:()=>u,rf:()=>o,zI:()=>a});var r=t(7234);function o(e,n){var t;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/transition"),{method:"POST",headers:{"Content-Type":"application/json"},signal:null===(t=n)||void 0===t?void 0:t.signal,body:e})}function a(e,n,t){var o;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/").concat(e),{method:"POST",headers:{"Content-Type":"application/json"},signal:null===(o=t)||void 0===o?void 0:o.signal,body:n})}function s(e,n){var t;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/transition"),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:null===(t=n)||void 0===t?void 0:t.signal,body:e})}function u(e,n){var t;return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/").concat(e),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:null===(t=n)||void 0===t?void 0:t.signal})}},4690:(e,n,t)=>{t.d(n,{Z:()=>T});var r=t(5206),o=t.n(r),a=t(4924),s=t(9444),u=t(7234),i=t(1325),l=t(6062),c=t.n(l),m=t(4036),d=t.n(m),p=t(6793),v=t.n(p),f=t(7892),A=t.n(f),y=t(1173),_=t.n(y),b=t(2464),h=t.n(b),g=t(3657),C={};C.styleTagTransform=h(),C.setAttributes=A(),C.insert=v().bind(null,"head"),C.domAPI=d(),C.insertStyleElement=_(),c()(g.Z,C);const q=g.Z&&g.Z.locals?g.Z.locals:void 0;function E(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}const T=function(e){var n,t,l=e.queueEntry,c=e.closeModal,m=e.modalParams,d=(0,a.useTranslation)().t,p=(0,i.Qd)().mutateQueueEntries,v=m.modalTitle,f=m.modalInstruction,A=m.submitButtonText,y=m.submitSuccessTitle,_=m.submitSuccessText,b=m.submitFailureTitle,h=m.submitAction,g=(n=(0,r.useState)(!1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,o,a=[],s=!0,u=!1;try{for(t=t.call(e);!(s=(r=t.next()).done)&&(a.push(r.value),!n||a.length!==n);s=!0);}catch(e){u=!0,o=e}finally{try{s||null==t.return||t.return()}finally{if(u)throw o}}return a}}(n,t)||function(e,n){if(e){if("string"==typeof e)return E(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(e,n):void 0}}(n,t)||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.")}()),C=g[0],T=g[1];return o().createElement(o().Fragment,null,o().createElement(s.xBx,{className:q.modalHeader,closeModal:c,title:v}),o().createElement(s.fef,null,o().createElement(s.Kqy,{gap:4},o().createElement("h5",null,l.display),f)),o().createElement(s.mzw,null,o().createElement(s.zxk,{kind:"secondary",onClick:c},d("cancel","Cancel")),o().createElement(s.zxk,{disabled:C,onClick:function(e){e.preventDefault(),T(!0),h(l).then((function(e){var n=e.status;if(!(n>=200&&n<300))throw{message:d("unexpectedServerResponse","Unexpected Server Response")};(0,u.showSnackbar)({isLowContrast:!0,title:y,kind:"success",subtitle:_}),p(),c()})).catch((function(e){var n;(0,u.showSnackbar)({title:b,kind:"error",subtitle:null===(n=e)||void 0===n?void 0:n.message})})).finally((function(){T(!1)}))}},A)))}}}]);
|
package/dist/1800.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1800.js","mappings":"kNAGIA,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,iwBAAkwB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,mFAAmF,MAAQ,GAAG,SAAW,kIAAkI,eAAiB,CAAC,opBAAopB,WAAa,MAEpuDH,EAAwBI,OAAS,CAChC,YAAe,wEAEhB,S,oGC4BA,QA3B8D,Y,IAAGC,EAAAA,EAAAA,WAAYC,EAAAA,EAAAA,WACrE,GAAQC,EAAAA,EAAAA,kBAANC,EAEFC,EACJ,kBAACC,IAAAA,KAAGF,EAAE,gCAAiC,kEAGzC,OACE,kBAACG,EAAAA,EAA4BA,CAC3BN,WAAYA,EACZC,WAAYA,EACZM,YAAa,CACXC,WAAYL,EAAE,yBAA0B,6BACxCC,iBAAAA,EACAK,iBAAkBN,EAAE,gBAAiB,kBACrCO,mBAAoBP,EAAE,iBAAkB,mBACxCQ,kBAAmBR,EAAE,6BAA8B,0CACnDS,mBAAoBT,EAAE,uBAAwB,qCAC9CU,aAAc,SAACb,G,OACbc,EAAAA,EAAAA,IAAiBd,EAAWe,KAAM,CAChCC,SAAS,IAAIC,MAAOC,e,IAKhC,C,4ECdO,SAASC,EAAqBC,EAAoCC,G,IAM7DA,EALV,OAAOC,EAAAA,EAAAA,cAAa,GAAe,OAAZC,EAAAA,YAAY,2BAA0B,CAC3DC,OAAQ,OACRC,QAAS,CACP,eAAgB,oBAElBC,OAAQL,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAiBK,OACzBC,KAAMP,GAEV,CAcO,SAASN,EACdc,EACAR,EACAC,G,IAOUA,EALV,OAAOC,EAAAA,EAAAA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E,+zBAA1CC,EAAiCD,EAAAA,GAAnBE,EAAmBF,EAAAA,GAkCxC,OACE,oCACE,kBAACG,EAAAA,IAAWA,CAACC,UAAWC,EAAOC,YAAa7C,WAAYA,EAAY8C,MAAOvC,IAC3E,kBAACwC,EAAAA,IAASA,KACR,kBAACC,EAAAA,IAAKA,CAACC,IAAK,GACV,kBAACC,KAAAA,KAAInD,EAAWoD,SACfhD,IAGL,kBAACiD,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACC,KAAK,YAAYC,QAASvD,GAC/BE,EAAE,SAAU,WAEf,kBAACmD,EAAAA,IAAMA,CAACG,SAAUhB,EAAce,QA7CnB,SAACE,GAClBA,EAAEC,iBACFjB,GAAgB,GAEhB7B,EAAab,GACV4D,MAAK,Y,IAAGC,EAAAA,EAAAA,OAEP,KADgBA,GAAU,KAAOA,EAAS,KAWxC,KAAM,CAAEC,QAAS3D,EAAE,2BAA4B,gCAT/C4D,EAAAA,EAAAA,cAAa,CACXC,eAAe,EACfjB,MAAOrC,EACP6C,KAAM,UACNU,SAAUtD,IAEZ4B,IACAtC,GAIJ,IACCiE,OAAM,SAACC,G,IAIMA,GAHZJ,EAAAA,EAAAA,cAAa,CACXhB,MAAOnC,EACP2C,KAAM,QACNU,SAAUE,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAOL,SAErB,IACCM,SAAQ,WACP1B,GAAgB,EAClB,GACJ,GAgBSjC,IAKX,C","sources":["webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/queue-entry-confirm-action.scss","webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/end-queue-entry.modal.tsx","webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/queue-entry-actions.resource.ts","webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/queue-entry-confirm-action.scss?04d4","webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/queue-entry-confirm-action.modal.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","queueEntry","closeModal","useTranslation","t","modalInstruction","p","QueueEntryConfirmActionModal","modalParams","modalTitle","submitButtonText","submitSuccessTitle","submitSuccessText","submitFailureTitle","submitAction","updateQueueEntry","uuid","endedAt","Date","toISOString","transitionQueueEntry","params","abortController","openmrsFetch","restBaseUrl","method","headers","signal","body","queueEntryUuid","undoTransition","voidQueueEntry","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","useMutateQueueEntries","mutateQueueEntries","useState","isSubmitting","setIsSubmitting","ModalHeader","className","styles","modalHeader","title","ModalBody","Stack","gap","h5","display","ModalFooter","Button","kind","onClick","disabled","e","preventDefault","then","status","message","showSnackbar","isLowContrast","subtitle","catch","error","finally"],"sourceRoot":""}
|
package/dist/2.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 2.js.LICENSE.txt */
|
|
2
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[2,3372],{8642:(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},5649:(e,n,t)=>{e.exports=t(8642)},3372:(e,n,t)=>{t.r(n),t.d(n,{default:()=>c,immutable:()=>o});var r=t(5206),i=t(5649),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,t,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(n,t,r)),c=(0,s.withMiddleware)(d,o)}}]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license React
|
|
3
|
-
* use-sync-external-store-shim.production.js
|
|
3
|
+
* use-sync-external-store-shim.production.min.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
package/dist/2.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"2.js","mappings":";kKASa,IAAIA,EAAE,EAAQ,MAA4EC,EAAE,mBAAoBC,OAAOC,GAAGD,OAAOC,GAA1G,SAAWC,EAAEC,GAAG,OAAOD,IAAIC,IAAI,IAAID,GAAG,EAAEA,GAAI,EAAEC,IAAID,GAAIA,GAAGC,GAAIA,CAAC,EAAiDC,EAAEN,EAAEO,SAASC,EAAER,EAAES,UAAUC,EAAEV,EAAEW,gBAAgBC,EAAEZ,EAAEa,cACtM,SAASC,EAAEV,GAAG,IAAIC,EAAED,EAAEW,YAAYX,EAAEA,EAAEY,MAAM,IAAI,IAAIC,EAAEZ,IAAI,OAAOJ,EAAEG,EAAEa,EAAE,CAAC,MAAMC,GAAG,OAAM,CAAE,CAAC,CAA4B,IAAIC,EAAE,oBAAqBC,aAAQ,IAAqBA,OAAOC,eAAU,IAAqBD,OAAOC,SAASC,cAAzI,SAAWlB,EAAEC,GAAG,OAAOA,GAAG,EAD+F,SAAWD,EAAEC,GAAG,IAAIY,EAAEZ,IAAIa,EAAEZ,EAAE,CAACiB,KAAK,CAACP,MAAMC,EAAEF,YAAYV,KAAKmB,EAAEN,EAAE,GAAGK,KAAKE,EAAEP,EAAE,GAAwJ,OAArJR,GAAE,WAAWc,EAAER,MAAMC,EAAEO,EAAET,YAAYV,EAAES,EAAEU,IAAIC,EAAE,CAACF,KAAKC,GAAG,GAAE,CAACpB,EAAEa,EAAEZ,IAAIG,GAAE,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AkB,IAAAC,gBAAe/I,EAAQ4I","sources":["webpack://@kenyaemr/esm-service-queues-app/../../node_modules/swr/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@kenyaemr/esm-service-queues-app/../../node_modules/swr/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/{723.js → 236.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[
|
|
1
|
+
"use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[236],{236:e=>{e.exports=JSON.parse('{"actions":"Actions","addAProviderQueueRoom":"Add a provider queue room?","addedPatientToQueue":"Added patient 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","age":"Age","alistOfClients":"A list of clients waiting for ","all":"All","and":"And","applyFilters":"Apply filters","averageWaitTime":"Average wait time today","backToSearchResults":"Back to search results","between":"Between","bmi":"Bmi","bp":"Bp","call":"Call","cancel":"Cancel","checkedInPatients":"Checked in patients","checkFilters":"Check the filters above","chooseRoom":"Select a room","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","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 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","errorFetchingVisit":"Error fetching patient visit","errorLoadingQueueEntries":"Error loading queue entries","errorPostingToScreen":"Error posting to screen","femaleLabelText":"Female","filter":"Filter","filterByService":"Filter by service:","filterByStatus":"Filter by status:","filterTable":"Filter table","gender":"Gender","heartRate":"Heart rate","height":"Height","hourAndMinuteFormatted":"{{hours}} hour(s) and {{minutes}} minute(s)","indication":"Indication","invalidQueue":"Invalid Queue","invalidtableConfig":"Invalid table configuration","lastEncounter":"Last encounter","loading":"Loading...","location":"Location","maleLabelText":"Male","medications":"Medications","minuteFormatted":"{{minutes}} minute(s)","minutes":"Minutes","missingLocation":"Missing location","missingQueueName":"Missing queue name","missingQueueRoom":"Please select a queue room","missingQueueRoomName":"Missing queue room name","missingQueueRoomService":"Missing queue room service","missingService":"Missing service","modifyDefaultValue":"Modify default value","movePatientToNextService":"Move patient to the next service?","moveToNextService":"Move to next service","name":"Name","nextPage":"Next page","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","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","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","noVitalsFound":"No vitals found","onTime":"On time","orderDurationAndUnit":"for {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Indefinite duration","patientAge":"Age","patientAttendingService":"Patient attending service","patientInfo":"{{name}}{{sexInfo}}{{ageInfo}}","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","phoneNumber":"Phone number","pleaseSelectLocation":"Please select a location","previousPage":"Previous page","previousVisit":"Previous visit","priority":"Priority","priorityComment":"Priority comment","priorityIsRequired":"Priority is required","provider":"Provider","quantity":"Quantity","queueAddedSuccessfully":"Queue added successfully","queueEntryAddedSuccessfully":"Queue entry added successfully","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 status","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","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","searchThisList":"Search this list","selectALocation":"Select a location","selectAVisitType":"Select visit 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","serve":"Serve","servePatient":"Serve patient","service":"Service","serviceIsRequired":"Service is required","serviceQueue":"Service queue","serviceQueues":"Service queues","sp02":"Sp02","startAgeRangeInvalid":"Start age range is not valid","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","TransitionLatestQueueEntry":"Transition patient to latest queue","transitionPatient":"Transition patient","transitionPatientStatusOrQueue":"Select a new status or queue for patient to transition to.","triageForm":"Triage form","triageNote":"Triage note","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","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"}')}}]);
|