@kenyaemr/esm-service-queues-app 8.1.2-pre.214 → 8.1.2-pre.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  Browserslist: caniuse-lite is outdated. Please run:
2
2
  npx update-browserslist-db@latest
3
3
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
4
- assets by path *.js 4.6 MiB
4
+ assets by path *.js 4.61 MiB
5
5
  assets by chunk 2.12 MiB (id hint: vendors)
6
6
  assets by status 1.96 MiB [big]
7
7
  asset 130.js 1.39 MiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
@@ -18,8 +18,8 @@ orphan modules 4.25 MiB [orphan] 654 modules
18
18
  runtime modules 41.7 KiB 30 modules
19
19
  built modules 9.97 MiB (javascript) 252 bytes (share-init) 252 bytes (consume-shared) [built]
20
20
  javascript modules 9.74 MiB 190 modules
21
- optional modules 236 KiB [optional]
22
- ./translations/am.json 9.53 KiB [optional] [built] [code generated]
21
+ optional modules 235 KiB [optional]
22
+ ./translations/am.json 8.32 KiB [optional] [built] [code generated]
23
23
  + 24 modules
24
24
  provide-module modules 252 bytes
25
25
  modules by path provide shared module (default) swr/ 84 bytes 2 modules
@@ -41,4 +41,4 @@ Entrypoints:
41
41
  main (1.22 MiB)
42
42
  main.js
43
43
 
44
- webpack 5.88.0 compiled with 2 warnings in 196232 ms
44
+ webpack 5.88.0 compiled with 2 warnings in 183597 ms
package/dist/1006.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1006],{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},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),c=t(6062),l=t.n(c),d=t(4036),m=t.n(d),p=t(6793),v=t.n(p),y=t(7892),A=t.n(y),f=t(1173),_=t.n(f),b=t(2464),h=t.n(b),g=t(3657),E={};E.styleTagTransform=h(),E.setAttributes=A(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=_(),l()(g.Z,E);const q=g.Z&&g.Z.locals?g.Z.locals:void 0;function C(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,c=e.queueEntry,l=e.closeModal,d=e.modalParams,m=(0,a.useTranslation)().t,p=(0,i.Qd)().mutateQueueEntries,v=d.modalTitle,y=d.modalInstruction,A=d.submitButtonText,f=d.submitSuccessTitle,_=d.submitSuccessText,b=d.submitFailureTitle,h=d.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 C(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)?C(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.")}()),E=g[0],T=g[1];return o().createElement(o().Fragment,null,o().createElement(s.xBx,{className:q.modalHeader,closeModal:l,title:v}),o().createElement(s.fef,null,o().createElement(s.Kqy,{gap:4},o().createElement("h5",null,c.display),y)),o().createElement(s.mzw,null,o().createElement(s.zxk,{kind:"secondary",onClick:l},m("cancel","Cancel")),o().createElement(s.zxk,{disabled:E,onClick:function(e){e.preventDefault(),T(!0),h(c).then((function(e){var n=e.status;if(!(n>=200&&n<300))throw{message:m("unexpectedServerResponse","Unexpected Server Response")};(0,u.showSnackbar)({isLowContrast:!0,title:f,kind:"success",subtitle:_}),p(),l()})).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)))}},1006:(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=n.previousQueueEntry,c=n.queueComingFrom,l=c.uuid==n.queue.uuid?o().createElement("p",null,r("confirmMoveBackStatus",'Are you sure you want to move patient back to status "{{status}}"?',{status:i.status.display,interpolation:{escapeValue:!1}})):o().createElement("p",null,r("confirmMoveBackQueueAndStatus",'Are you sure you want to move patient back to queue "{{queue}}" with status "{{status}}"?',{queue:c.display,status:i.status.display,interpolation:{escapeValue:!1}}));return o().createElement(u.Z,{queueEntry:n,closeModal:t,modalParams:{modalTitle:r("undoTransition","Undo transition"),modalInstruction:l,submitButtonText:r("undoTransition","Undo transition"),submitSuccessTitle:r("undoQueueEntryTransitionSuccess","Undo transition success"),submitSuccessText:r("queueEntryTransitionUndoSuccessful","Queue entry transition undo success"),submitFailureTitle:r("queueEntryTransitionUndoFailed","Error undoing transition"),submitAction:function(e){return(0,s.VK)({queueEntry:e.uuid})}}})}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1006],{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},7702:(e,n,t)=>{t.d(n,{VK:()=>s,hu:()=>u,rf:()=>o,zI:()=>a});var r=t(744);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(744),i=t(1325),c=t(6062),l=t.n(c),d=t(4036),m=t.n(d),p=t(6793),v=t.n(p),y=t(7892),A=t.n(y),f=t(1173),_=t.n(f),b=t(2464),h=t.n(b),g=t(3657),E={};E.styleTagTransform=h(),E.setAttributes=A(),E.insert=v().bind(null,"head"),E.domAPI=m(),E.insertStyleElement=_(),l()(g.Z,E);const q=g.Z&&g.Z.locals?g.Z.locals:void 0;function C(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,c=e.queueEntry,l=e.closeModal,d=e.modalParams,m=(0,a.useTranslation)().t,p=(0,i.Qd)().mutateQueueEntries,v=d.modalTitle,y=d.modalInstruction,A=d.submitButtonText,f=d.submitSuccessTitle,_=d.submitSuccessText,b=d.submitFailureTitle,h=d.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 C(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)?C(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.")}()),E=g[0],T=g[1];return o().createElement(o().Fragment,null,o().createElement(s.xBx,{className:q.modalHeader,closeModal:l,title:v}),o().createElement(s.fef,null,o().createElement(s.Kqy,{gap:4},o().createElement("h5",null,c.display),y)),o().createElement(s.mzw,null,o().createElement(s.zxk,{kind:"secondary",onClick:l},m("cancel","Cancel")),o().createElement(s.zxk,{disabled:E,onClick:function(e){e.preventDefault(),T(!0),h(c).then((function(e){var n=e.status;if(!(n>=200&&n<300))throw{message:m("unexpectedServerResponse","Unexpected Server Response")};(0,u.showSnackbar)({isLowContrast:!0,title:f,kind:"success",subtitle:_}),p(),l()})).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)))}},1006:(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=n.previousQueueEntry,c=n.queueComingFrom,l=c.uuid==n.queue.uuid?o().createElement("p",null,r("confirmMoveBackStatus",'Are you sure you want to move patient back to status "{{status}}"?',{status:i.status.display,interpolation:{escapeValue:!1}})):o().createElement("p",null,r("confirmMoveBackQueueAndStatus",'Are you sure you want to move patient back to queue "{{queue}}" with status "{{status}}"?',{queue:c.display,status:i.status.display,interpolation:{escapeValue:!1}}));return o().createElement(u.Z,{queueEntry:n,closeModal:t,modalParams:{modalTitle:r("undoTransition","Undo transition"),modalInstruction:l,submitButtonText:r("undoTransition","Undo transition"),submitSuccessTitle:r("undoQueueEntryTransitionSuccess","Undo transition success"),submitSuccessText:r("queueEntryTransitionUndoSuccessful","Queue entry transition undo success"),submitFailureTitle:r("queueEntryTransitionUndoFailed","Error undoing transition"),submitAction:function(e){return(0,s.VK)({queueEntry:e.uuid})}}})}}}]);
package/dist/1006.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1006.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,4ECYO,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,SAASQ,EACdC,EACAT,EACAC,G,IAOUA,E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,kBAACF,IAAAA,KACE3C,EACC,gCACA,4FACA,CACE0C,MAAOF,EAAgBlB,QACvBS,OAAQQ,EAAmBR,OAAOT,QAClCsB,cAAe,CAAEC,aAAa,MAMtC,OACE,kBAACC,EAAAA,EAA4BA,CAC3BlD,WAAYA,EACZC,WAAYA,EACZC,YAAa,CACXK,WAAYH,EAAE,iBAAkB,mBAChCI,iBAAAA,EACAC,iBAAkBL,EAAE,iBAAkB,mBACtCM,mBAAoBN,EAAE,kCAAmC,2BACzDO,kBAAmBP,EAAE,qCAAsC,uCAC3DQ,mBAAoBR,EAAE,iCAAkC,4BACxDS,aAAc,SAACb,G,OACbT,EAAAA,EAAAA,IAAe,CACbS,WAAYA,EAAW6C,M,IAKnC,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/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","webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/undo-transition-queue-entry.modal.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","transitionQueueEntry","params","abortController","openmrsFetch","restBaseUrl","method","headers","signal","body","updateQueueEntry","queueEntryUuid","undoTransition","voidQueueEntry","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","queueEntry","closeModal","modalParams","useTranslation","t","useMutateQueueEntries","mutateQueueEntries","modalTitle","modalInstruction","submitButtonText","submitSuccessTitle","submitSuccessText","submitFailureTitle","submitAction","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","previousQueueEntry","queueComingFrom","uuid","queue","p","interpolation","escapeValue","QueueEntryConfirmActionModal"],"sourceRoot":""}
1
+ {"version":3,"file":"1006.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,2ECYO,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,SAASQ,EACdC,EACAT,EACAC,G,IAOUA,EALV,OAAOC,EAAAA,EAAAA,cAAa,GAA8BO,OAA3BN,EAAAA,YAAY,iBAA8B,OAAfM,GAAkB,CAClEL,OAAQ,OACRC,QAAS,CACP,eAAgB,oBAElBC,OAAQL,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAiBK,OACzBC,KAAMP,GAEV,CAKO,SAASU,EAAeV,EAA8BC,G,IAMjDA,EALV,OAAOC,EAAAA,EAAAA,cAAa,GAAe,OAAZC,EAAAA,YAAY,2BAA0B,CAC3DC,OAAQ,SACRC,QAAS,CACP,eAAgB,oBAElBC,OAAQL,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAiBK,OACzBC,KAAMP,GAEV,CAEO,SAASW,EAAeF,EAAwBR,G,IAM3CA,EALV,OAAOC,EAAAA,EAAAA,cAAa,GAA8BO,OAA3BN,EAAAA,YAAY,iBAA8B,OAAfM,GAAkB,CAClEL,OAAQ,SACRC,QAAS,CACP,eAAgB,oBAElBC,OAAQL,Q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XC,eAAe,EACfjB,MAAOX,EACPmB,KAAM,UACNU,SAAU5B,IAEZL,IACAL,GAIJ,IACCuC,OAAM,SAACC,G,IAIMA,GAHZJ,EAAAA,EAAAA,cAAa,CACXhB,MAAOT,EACPiB,KAAM,QACNU,SAAUE,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAOL,SAErB,IACCM,SAAQ,WACP1B,GAAgB,EAClB,GACJ,GAgBSP,IAKX,C,oGCtCA,QA9CoF,Y,IAAGT,EAAAA,EAAAA,WAAYC,EAAAA,EAAAA,WAC3F,GAAQE,EAAAA,EAAAA,kBAANC,EACAuC,EAAwC3C,EAAxC2C,mBAAoBC,EAAoB5C,EAApB4C,gBAGtBpC,EADyBoC,EAAgBC,MAAQ7C,EAAW8C,MAAMD,KAEtE,kBAACE,IAAAA,KACE3C,EAAE,wBAAyB,qEAAsE,CAChG+B,OAAQQ,EAAmBR,OAAOT,QAClCsB,cAAe,CAAEC,aAAa,MAIlC,kBAACF,IAAAA,KACE3C,EACC,gCACA,4FACA,CACE0C,MAAOF,EAAgBlB,QACvBS,OAAQQ,EAAmBR,OAAOT,QAClCsB,cAAe,CAAEC,aAAa,MAMtC,OACE,kBAACC,EAAAA,EAA4BA,CAC3BlD,WAAYA,EACZC,WAAYA,EACZC,YAAa,CACXK,WAAYH,EAAE,iBAAkB,mBAChCI,iBAAAA,EACAC,iBAAkBL,EAAE,iBAAkB,mBACtCM,mBAAoBN,EAAE,kCAAmC,2BACzDO,kBAAmBP,EAAE,qCAAsC,uCAC3DQ,mBAAoBR,EAAE,iCAAkC,4BACxDS,aAAc,SAACb,G,OACbT,EAAAA,EAAAA,IAAe,CACbS,WAAYA,EAAW6C,M,IAKnC,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/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","webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/undo-transition-queue-entry.modal.tsx"],"names":["___CSS_LOADER_EXPORT___","push","module","id","locals","transitionQueueEntry","params","abortController","openmrsFetch","restBaseUrl","method","headers","signal","body","updateQueueEntry","queueEntryUuid","undoTransition","voidQueueEntry","options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","undefined","queueEntry","closeModal","modalParams","useTranslation","t","useMutateQueueEntries","mutateQueueEntries","modalTitle","modalInstruction","submitButtonText","submitSuccessTitle","submitSuccessText","submitFailureTitle","submitAction","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","previousQueueEntry","queueComingFrom","uuid","queue","p","interpolation","escapeValue","QueueEntryConfirmActionModal"],"sourceRoot":""}
package/dist/1060.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1060,3199],{3199:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(5206),i=n.n(r),u=n(4924),a=n(9363),o=n(7702),s=n(88);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d=function(t){var e=t.queueEntry,n=t.closeModal,r=t.modalTitle,d=(0,u.useTranslation)().t;return i().createElement(a.Z,{queueEntry:e,closeModal:n,modalParams:{modalTitle:r||d("transitionPatient","Transition patient"),modalInstruction:d("transitionPatientStatusOrQueue","Select a new status or queue for patient to transition to."),submitButtonText:d("transitionPatient","Transition patient"),submitSuccessTitle:d("queueEntryTransitioned","Queue entry transitioned"),submitSuccessText:d("queueEntryTransitionedSuccessfully","Queue entry transitioned successfully"),submitFailureTitle:d("queueEntryTransitionFailed","Error transitioning queue entry"),submitAction:function(t,e){var n,r,i=new Date(e.transitionDate),u=(n=(0,s.A)(e.transitionTime,e.transitionTimeFormat),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,u=[],a=!0,o=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);a=!0);}catch(t){o=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(o)throw i}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=u[0],d=u[1];return i.setHours(a,d,0,0),(0,o.rf)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}({queueEntryToTransition:t.uuid,newQueue:e.selectedQueue,newStatus:e.selectedStatus,newPriority:e.selectedPriority,newPriorityComment:e.prioritycomment},e.modifyDefaultTransitionDateTime?{transitionDate:i.toISOString()}:{}))},disableSubmit:function(t,e){return e.selectedQueue==t.queue.uuid&&e.selectedStatus==t.status.uuid},isTransition:!0}})}},1060:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(5206),i=n.n(r),u=n(4924),a=n(7234),o=n(3649),s=n(3199);const l=function(t){var e=t.closeModal,n=t.patientUuid,r=(t.modalTitle,(0,u.useTranslation)().t),l=function(t){var e,n,r,i=encodeURIComponent("custom:(uuid,display,queue:(uuid,display,name,location:(uuid,display),service:(uuid,display),allowedPriorities:(uuid,display),allowedStatuses:(uuid,display)),status,patient:(uuid,display),visit:(uuid,display,startDatetime),priority,priorityComment,sortWeight,startedAt,endedAt,locationWaitingFor,queueComingFrom,providerWaitingFor,previousQueueEntry)"),u="".concat(a.restBaseUrl,"/queue-entry?v=").concat(i,"&patient=").concat(t,"&isEnded=false"),s=(0,o.ZP)(u,a.openmrsFetch),l=s.data,c=s.error,d=s.isLoading,y=s.mutate;return{data:(null===(r=l)||void 0===r||null===(n=r.data)||void 0===n||null===(e=n.results)||void 0===e?void 0:e.reduce((function(t,e){return!t||new Date(e.startedAt)>new Date(t.startedAt)?e:t}),null))||null,error:c,isLoading:d,mutate:y}}(n),c=l.data,d=l.error;return l.isLoading,d||!c?null:i().createElement(s.default,{queueEntry:c,closeModal:e,modalTitle:r("TransitionLatestQueueEntry","Transition patient's latest queue")})}}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_service_queues_app=globalThis.webpackChunk_kenyaemr_esm_service_queues_app||[]).push([[1060,3199],{3199:(t,e,n)=>{n.r(e),n.d(e,{default:()=>d});var r=n(5206),i=n.n(r),u=n(4924),a=n(9363),o=n(7702),s=n(88);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const d=function(t){var e=t.queueEntry,n=t.closeModal,r=t.modalTitle,d=(0,u.useTranslation)().t;return i().createElement(a.Z,{queueEntry:e,closeModal:n,modalParams:{modalTitle:r||d("transitionPatient","Transition patient"),modalInstruction:d("transitionPatientStatusOrQueue","Select a new status or queue for patient to transition to."),submitButtonText:d("transitionPatient","Transition patient"),submitSuccessTitle:d("queueEntryTransitioned","Queue entry transitioned"),submitSuccessText:d("queueEntryTransitionedSuccessfully","Queue entry transitioned successfully"),submitFailureTitle:d("queueEntryTransitionFailed","Error transitioning queue entry"),submitAction:function(t,e){var n,r,i=new Date(e.transitionDate),u=(n=(0,s.A)(e.transitionTime,e.transitionTimeFormat),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,u=[],a=!0,o=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);a=!0);}catch(t){o=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(o)throw i}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=u[0],d=u[1];return i.setHours(a,d,0,0),(0,o.rf)(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){c(t,e,n[e])}))}return t}({queueEntryToTransition:t.uuid,newQueue:e.selectedQueue,newStatus:e.selectedStatus,newPriority:e.selectedPriority,newPriorityComment:e.prioritycomment},e.modifyDefaultTransitionDateTime?{transitionDate:i.toISOString()}:{}))},disableSubmit:function(t,e){return e.selectedQueue==t.queue.uuid&&e.selectedStatus==t.status.uuid},isTransition:!0}})}},1060:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(5206),i=n.n(r),u=n(4924),a=n(744),o=n(3649),s=n(3199);const l=function(t){var e=t.closeModal,n=t.patientUuid,r=(t.modalTitle,(0,u.useTranslation)().t),l=function(t){var e,n,r,i=encodeURIComponent("custom:(uuid,display,queue:(uuid,display,name,location:(uuid,display),service:(uuid,display),allowedPriorities:(uuid,display),allowedStatuses:(uuid,display)),status,patient:(uuid,display),visit:(uuid,display,startDatetime),priority,priorityComment,sortWeight,startedAt,endedAt,locationWaitingFor,queueComingFrom,providerWaitingFor,previousQueueEntry)"),u="".concat(a.restBaseUrl,"/queue-entry?v=").concat(i,"&patient=").concat(t,"&isEnded=false"),s=(0,o.ZP)(u,a.openmrsFetch),l=s.data,c=s.error,d=s.isLoading,y=s.mutate;return{data:(null===(r=l)||void 0===r||null===(n=r.data)||void 0===n||null===(e=n.results)||void 0===e?void 0:e.reduce((function(t,e){return!t||new Date(e.startedAt)>new Date(t.startedAt)?e:t}),null))||null,error:c,isLoading:d,mutate:y}}(n),c=l.data,d=l.error;return l.isLoading,d||!c?null:i().createElement(s.default,{queueEntry:c,closeModal:e,modalTitle:r("TransitionLatestQueueEntry","Transition patient's latest queue")})}}}]);
package/dist/1060.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"1060.js","mappings":"keAuDA,QA1C4E,Y,IAC1EA,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,WAEM,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,kBAACC,EAAAA,EAAqBA,CACpBL,WAAYA,EACZC,WAAYA,EACZK,YAAa,CACXJ,WAAYA,GAAcE,EAAE,oBAAqB,sBACjDG,iBAAkBH,EAChB,iCACA,8DAEFI,iBAAkBJ,EAAE,oBAAqB,sBACzCK,mBAAoBL,EAAE,yBAA0B,4BAChDM,kBAAmBN,EAAE,qCAAsC,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AqBW,QAAO,SAACC,EAAaC,GACxC,OAAKD,GAAe,IAAItC,KAAKuC,EAAaC,WAAa,IAAIxC,KAAKsC,EAAYE,WACnED,EAEFD,CACT,GAAG,QAAS,KAEaL,MAAAA,EAAOC,UAAAA,EAAWC,OAAAA,EAC/C,CDJiDV,CAAoBD,GAA3DE,EAAuCD,EAAvCC,KAAkBO,EAAqBR,EAArBQ,MAE1B,OAF+CR,EAAdS,UAE7BD,IAAUhD,EACL,KAIP,kBAACwD,EAAAA,QAAyBA,CACxBxD,WAAYA,EACZC,WAAYA,EACZC,WAAYE,EAAE,6BAA8B,sCAGlD,C","sources":["webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/transition-queue-entry.modal.tsx","webpack://@kenyaemr/esm-service-queues-app/./src/transition-latest-queue-entry/transition-latest-queue-entry.component.tsx","webpack://@kenyaemr/esm-service-queues-app/./src/transition-latest-queue-entry/transition-latest-queue-entry.resource.ts"],"names":["queueEntry","closeModal","modalTitle","useTranslation","t","QueueEntryActionModal","modalParams","modalInstruction","submitButtonText","submitSuccessTitle","submitSuccessText","submitFailureTitle","submitAction","formState","transitionDate","Date","convertTime12to24","transitionTime","transitionTimeFormat","hour","minute","setHours","transitionQueueEntry","queueEntryToTransition","uuid","newQueue","selectedQueue","newStatus","selectedStatus","newPriority","selectedPriority","newPriorityComment","prioritycomment","modifyDefaultTransitionDateTime","toISOString","disableSubmit","queue","status","isTransition","patientUuid","useLatestQueueEntry","data","encodedRepresentation","encodeURIComponent","url","restBaseUrl","useSWR","openmrsFetch","error","isLoading","mutate","results","reduce","latestEntry","currentEntry","startedAt","TransitionQueueEntryModal"],"sourceRoot":""}
1
+ {"version":3,"file":"1060.js","mappings":"keAuDA,QA1C4E,Y,IAC1EA,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,WAEM,GAAQC,EAAAA,EAAAA,kBAANC,EACR,OACE,kBAACC,EAAAA,EAAqBA,CACpBL,WAAYA,EAC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AAtBG,UAAWC,EAAWJ,EAAXI,OAUhC,MAAO,CAAET,MAPPA,QAAAA,EAAAA,SAAAA,IAAAA,GAAU,QAAVA,EAAAA,EAAMA,YAANA,IAAAA,GAAmB,QAAnBA,EAAAA,EAAYU,eAAZV,IAAAA,OAAAA,EAAAA,EAAqBW,QAAO,SAACC,EAAaC,GACxC,OAAKD,GAAe,IAAItC,KAAKuC,EAAaC,WAAa,IAAIxC,KAAKsC,EAAYE,WACnED,EAEFD,CACT,GAAG,QAAS,KAEaL,MAAAA,EAAOC,UAAAA,EAAWC,OAAAA,EAC/C,CDJiDV,CAAoBD,GAA3DE,EAAuCD,EAAvCC,KAAkBO,EAAqBR,EAArBQ,MAE1B,OAF+CR,EAAdS,UAE7BD,IAAUhD,EACL,KAIP,kBAACwD,EAAAA,QAAyBA,CACxBxD,WAAYA,EACZC,WAAYA,EACZC,WAAYE,EAAE,6BAA8B,sCAGlD,C","sources":["webpack://@kenyaemr/esm-service-queues-app/./src/queue-table/queue-entry-actions/transition-queue-entry.modal.tsx","webpack://@kenyaemr/esm-service-queues-app/./src/transition-latest-queue-entry/transition-latest-queue-entry.component.tsx","webpack://@kenyaemr/esm-service-queues-app/./src/transition-latest-queue-entry/transition-latest-queue-entry.resource.ts"],"names":["queueEntry","closeModal","modalTitle","useTranslation","t","QueueEntryActionModal","modalParams","modalInstruction","submitButtonText","submitSuccessTitle","submitSuccessText","submitFailureTitle","submitAction","formState","transitionDate","Date","convertTime12to24","transitionTime","transitionTimeFormat","hour","minute","setHours","transitionQueueEntry","queueEntryToTransition","uuid","newQueue","selectedQueue","newStatus","selectedStatus","newPriority","selectedPriority","newPriorityComment","prioritycomment","modifyDefaultTransitionDateTime","toISOString","disableSubmit","queue","status","isTransition","patientUuid","useLatestQueueEntry","data","encodedRepresentation","encodeURIComponent","url","restBaseUrl","useSWR","openmrsFetch","error","isLoading","mutate","results","reduce","latestEntry","currentEntry","startedAt","TransitionQueueEntryModal"],"sourceRoot":""}
package/dist/1727.js CHANGED
@@ -1 +1 @@
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")))))}}}]);
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(744),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","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,EAAQa,MAClEb,EAAQoB,Q,UAQzB,kBAACsD,EAAAA,IAAMA,KACL,kBAACC,EAAAA,IAAKA,CAACP,UAAWC,EAAOO,OACvB,kBAACC,EAAAA,GAAUA,CACTzB,KAAK,eACLb,QAASA,EACTuC,OAAQ,Y,IAIOpC,EACEA,EAAAA,EAGZnB,EARMwD,EAAAA,EAAAA,M,OACT,kBAACK,EAAAA,IAAMA,EAAAA,EAAAA,CAAAA,EACDL,GAAAA,CACJ5F,GAAG,WACH+F,WAAWxC,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAQT,cACnBgD,YAAavC,QAAAA,EAAAA,SAAAA,IAAAA,GAAoB,QAApBA,EAAAA,EAAQT,oBAARS,IAAAA,OAAAA,EAAAA,EAAsBuB,QACnCkB,UAAW9E,EAAE,kBAAmB,uBAChC,kBAACgF,EAAAA,IAAUA,CAACC,KAAMjF,EAAE,kBAAmB,qBAAsBS,MAAM,MAClES,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAgBgE,QAAS,GACxBhE,EAAeiE,KAAI,SAACjC,G,OAClB,kBAAC8B,EAAAA,IAAUA,CAACI,IAAKlC,EAASpE,GAAImG,KAAM/B,EAASH,KAAMtC,MAAOyC,EAASpE,IAChEoE,EAASH,K,WAS5B,kBAACsC,EAAAA,IAASA,CAACtB,UAAWC,EAAOsB,WAC3B,kBAACC,EAAAA,IAAMA,CAACxB,UAAWC,EAAOwB,OAAQnC,KAAK,YAAYoC,QAAS3F,GACzDE,EAAE,SAAU,WAEf,kBAACuF,EAAAA,IAAMA,CAACxB,UAAWC,EAAOwB,OAAQE,SAAUpD,EAAce,KAAK,UAAUsC,KAAK,UAC3ErD,EACC,kBAACsD,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":""}
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,MAA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AA,GAAoB,QAApBA,EAAAA,EAAQT,oBAARS,IAAAA,OAAAA,EAAAA,EAAsBuB,QACnCkB,UAAW9E,EAAE,kBAAmB,uBAChC,kBAACgF,EAAAA,IAAUA,CAACC,KAAMjF,EAAE,kBAAmB,qBAAsBS,MAAM,MAClES,QAAAA,EAAAA,SAAAA,IAAAA,OAAAA,EAAAA,EAAgBgE,QAAS,GACxBhE,EAAeiE,KAAI,SAACjC,G,OAClB,kBAAC8B,EAAAA,IAAUA,CAACI,IAAKlC,EAASpE,GAAImG,KAAM/B,EAASH,KAAMtC,MAAOyC,EAASpE,IAChEoE,EAASH,K,WAS5B,kBAACsC,EAAAA,IAASA,CAACtB,UAAWC,EAAOsB,WAC3B,kBAACC,EAAAA,IAAMA,CAACxB,UAAWC,EAAOwB,OAAQnC,KAAK,YAAYoC,QAAS3F,GACzDE,EAAE,SAAU,WAEf,kBAACuF,EAAAA,IAAMA,CAACxB,UAAWC,EAAOwB,OAAQE,SAAUpD,EAAce,KAAK,UAAUsC,KAAK,UAC3ErD,EACC,kBAACsD,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 CHANGED
@@ -1 +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)))}}}]);
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(744);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(744),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 CHANGED
@@ -1 +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,S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AC/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":""}
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,2ECdO,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,cAAa,GAA8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,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":""}