@openmrs/esm-service-queues-app 9.2.1-pre.6735 → 9.2.1-pre.6740

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/8561.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[8561],{51751:(t,e,n)=>{n.d(e,{Mu:()=>h,Z0:()=>p,fe:()=>v});var r=n(1343),a=n(42853),u=n(71123),o=n(55434),i=n(54440);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 s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,u=[],o=!0,i=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return u}}(t,e)||d(t,e)||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.")}()}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(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}}var f="".concat(i.restBaseUrl,"/queue-entry"),m="custom:(uuid,display,queue,status,patient:(uuid,display,person,identifiers:(uuid,display,identifier,identifierType)),visit:(uuid,display,startDatetime,encounters:(uuid,display,diagnoses,encounterDatetime,encounterType,obs,encounterProviders,voided),attributes:(uuid,display,value,attributeType)),priority,priorityComment,sortWeight,startedAt,endedAt,locationWaitingFor,queueComingFrom,providerWaitingFor,previousQueueEntry)";function y(t,e){var n=new URLSearchParams;if(n.append("v",t),n.append("totalCount","true"),e){var r=!0,a=!1,u=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var l=s(o.value,2),c=l[0],d=l[1];null!=d&&n.append(c,null==d?void 0:d.toString())}}catch(t){a=!0,u=t}finally{try{r||null==i.return||i.return()}finally{if(a)throw u}}}return"".concat(f,"?").concat(n.toString())}function v(){var t=(0,o.useSWRConfig)().mutate;return{mutateQueueEntries:function(){return t(function(t){return"string"==typeof t&&(t.includes("".concat(i.restBaseUrl,"/queue-entry"))||t.includes("".concat(i.restBaseUrl,"/visit-queue-entry")))}).then(function(){window.dispatchEvent(new CustomEvent("queue-entry-updated"))})}}}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=v().mutateQueueEntries,o=s((0,r.useState)(0),2),l=o[0],d=o[1],f=s((0,r.useState)(e),2),p=f[0],h=f[1],g=s((0,r.useState)(t),2),b=g[0],S=g[1],E=s((0,r.useState)([]),2),w=E[0],T=E[1],q=s((0,r.useState)(void 0),2),A=q[0],C=q[1],U=s((0,r.useState)(y(p,b)),2),k=U[0],F=U[1],j=s((0,r.useState)(0),2),B=j[0],x=j[1],I=s((0,r.useState)(!1),2),L=I[0],M=I[1],P=(0,r.useCallback)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;M(!0),d(0),F(y(t,e))},[p,b]);(0,r.useEffect)(function(){var n=!(0,a.A)(b,t),r=p!==e;(n||r)&&(n&&S(t),r&&h(e),P(e,t))},[p,b,P,e,t,S]);var _=(0,u.Ay)(k,i.openmrsFetch),O=_.data,Q=_.isValidating,R=_.error;(0,r.useEffect)(function(){var t=function(t){var e,n,r=null==t||null===(n=t.data)||void 0===n||null===(e=n.links)||void 0===e?void 0:e.find(function(t){return"next"===t.rel});if(r){var a=new URL(r.uri);return a.origin===window.location.origin?a.toString():new URL("".concat(a.pathname).concat(a.search?a.search:""),window.location.origin).toString()}return null}(O),e=L&&!Q;if(L&&Q&&M(!1),O&&!Q&&!e){var n,r,a,u;if((null==O||null===(n=O.data)||void 0===n?void 0:n.totalCount)>-1&&(null==O||null===(r=O.data)||void 0===r?void 0:r.totalCount)!==B&&x(null==O||null===(u=O.data)||void 0===u?void 0:u.totalCount),null==O||null===(a=O.data)||void 0===a?void 0:a.results){var o,i=c(w);i[l]=null==O||null===(o=O.data)||void 0===o?void 0:o.results,T(i)}d(l+1),F(t),w.length>l&&t&&M(!0)}t||w.length>l+1&&T(function(t){var e=c(t);return e.splice(l+1),e})},[O,w,l,B,L,Q]),(0,r.useEffect)(function(){R&&C(R)},[R]);var W=(0,r.useCallback)(function(){P()},[P]);(0,r.useEffect)(function(){return window.addEventListener("queue-entry-updated",W),function(){window.removeEventListener("queue-entry-updated",W)}},[W]);var $=(0,r.useMemo)(function(){return w.flat()},[w]);return{queueEntries:$,totalCount:B,isLoading:void 0===B||B&&$.length<B,isValidating:Q||l<w.length,error:A,mutate:n}}function h(t){var e,n,r=new URLSearchParams,a=!0,o=!1,l=void 0;try{for(var c,d=Object.entries(t)[Symbol.iterator]();!(a=(c=d.next()).done);a=!0){var f=s(c.value,2),m=f[0],y=f[1];null!=y&&r.append(m,null==y?void 0:y.toString())}}catch(t){o=!0,l=t}finally{try{a||null==d.return||d.return()}finally{if(o)throw l}}var v="".concat(i.restBaseUrl,"/queue-entry-metrics?")+r.toString(),p=(0,u.Ay)(v,i.openmrsFetch).data;return{count:p?null==p||null===(e=p.data)||void 0===e?void 0:e.count:0,averageWaitTime:null==p||null===(n=p.data)||void 0===n?void 0:n.averageWaitTime}}},56974:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(1343),a=n.n(r),u=n(93150),o=n(9980),i=n(54440),l=n(51751);function s(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}const c=function(t){var e,n,c=t.queueEntry,d=t.closeModal,f=t.modalParams,m=t.showPatientName,y=(0,u.useTranslation)().t,v=(0,l.fe)().mutateQueueEntries,p=f.modalTitle,h=f.modalInstruction,g=f.submitButtonText,b=f.submitSuccessTitle,S=f.submitSuccessText,E=f.submitFailureTitle,w=f.submitAction,T=(e=(0,r.useState)(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,u=[],o=!0,i=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return u}}(e,n)||function(t,e){if(t){if("string"==typeof t)return s(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)?s(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),q=T[0],A=T[1];return a().createElement(a().Fragment,null,a().createElement(o.rQ0,{closeModal:d,title:p}),a().createElement(o.cwr,null,m?a().createElement(o.BJc,{gap:4},a().createElement("h5",null,c.display),a().createElement("span",null,h)):a().createElement("p",null,h)),a().createElement(o.jlY,null,a().createElement(o.$nd,{kind:"secondary",onClick:d},y("cancel","Cancel")),a().createElement(o.$nd,{kind:"danger",disabled:q,onClick:function(t){t.preventDefault(),A(!0),w(c).then(function(t){var e=t.status;if(!(e>=200&&e<300))throw{message:y("unexpectedServerResponse","Unexpected Server Response")};(0,i.showSnackbar)({isLowContrast:!0,title:b,kind:"success",subtitle:S}),v(),d()}).catch(function(t){(0,i.showSnackbar)({title:E,kind:"error",subtitle:null==t?void 0:t.message})}).finally(function(){A(!1)})}},g)))}},58561:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(1343),a=n.n(r),u=n(93150),o=n(97355),i=n(56974);const l=function(t){var e=t.queueEntry,n=t.closeModal,r=(0,u.useTranslation)().t,l=e.previousQueueEntry,s=e.queueComingFrom,c=s.uuid==e.queue.uuid?a().createElement("p",null,r("confirmMoveBackStatus",'Are you sure you want to move patient back to status "{{status}}"?',{status:l.status.display,interpolation:{escapeValue:!1}})):a().createElement("p",null,r("confirmMoveBackQueueAndStatus",'Are you sure you want to move patient back to queue "{{queue}}" with status "{{status}}"?',{queue:s.display,status:l.status.display,interpolation:{escapeValue:!1}}));return a().createElement(i.A,{queueEntry:e,closeModal:n,showPatientName:!1,modalParams:{modalTitle:r("undoTransitionForPatient","Undo transition for {{patient}}",{patient:e.display}),modalInstruction:c,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(t){return(0,o.g$)({queueEntry:t.uuid})}}})}},97355:(t,e,n)=>{n.d(e,{OR:()=>i,TI:()=>a,g$:()=>o,hC:()=>u});var r=n(54440);function a(t,e){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/transition"),{method:"POST",headers:{"Content-Type":"application/json"},signal:null==e?void 0:e.signal,body:t})}function u(t,e,n){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},signal:null==n?void 0:n.signal,body:e})}function o(t,e){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/transition"),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:null==e?void 0:e.signal,body:t})}function i(t,e){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:null==e?void 0:e.signal})}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[8561],{51751:(t,e,n)=>{n.d(e,{Mu:()=>h,Z0:()=>p,fe:()=>v});var r=n(1343),a=n(42853),u=n(71123),o=n(55434),i=n(54440);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 s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,u=[],o=!0,i=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return u}}(t,e)||d(t,e)||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.")}()}function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(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}}var f="".concat(i.restBaseUrl,"/queue-entry"),m="custom:(uuid,display,queue,status,patient:(uuid,display,person,identifiers:(uuid,display,identifier,identifierType)),visit:(uuid,display,startDatetime,encounters:(uuid,display,diagnoses,encounterDatetime,encounterType,obs,encounterProviders,voided),attributes:(uuid,display,value,attributeType)),priority,priorityComment,sortWeight,startedAt,endedAt,locationWaitingFor,queueComingFrom,providerWaitingFor,previousQueueEntry)";function y(t,e){var n=new URLSearchParams;if(n.append("v",t),n.append("totalCount","true"),e){var r=!0,a=!1,u=void 0;try{for(var o,i=Object.entries(e)[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var l=s(o.value,2),c=l[0],d=l[1];null!=d&&n.append(c,null==d?void 0:d.toString())}}catch(t){a=!0,u=t}finally{try{r||null==i.return||i.return()}finally{if(a)throw u}}}return"".concat(f,"?").concat(n.toString())}function v(){var t=(0,o.useSWRConfig)().mutate;return{mutateQueueEntries:function(){return t(function(t){return"string"==typeof t&&(t.includes("".concat(i.restBaseUrl,"/queue-entry"))||t.includes("".concat(i.restBaseUrl,"/visit-queue-entry")))}).then(function(){window.dispatchEvent(new CustomEvent("queue-entry-updated"))})}}}function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=v().mutateQueueEntries,o=s((0,r.useState)(0),2),l=o[0],d=o[1],f=s((0,r.useState)(e),2),p=f[0],h=f[1],g=s((0,r.useState)(t),2),b=g[0],S=g[1],E=s((0,r.useState)([]),2),w=E[0],T=E[1],q=s((0,r.useState)(void 0),2),A=q[0],C=q[1],U=s((0,r.useState)(y(p,b)),2),k=U[0],F=U[1],j=s((0,r.useState)(0),2),B=j[0],x=j[1],I=s((0,r.useState)(!1),2),L=I[0],M=I[1],P=(0,r.useCallback)(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;M(!0),d(0),F(y(t,e))},[p,b]);(0,r.useEffect)(function(){var n=!(0,a.A)(b,t),r=p!==e;(n||r)&&(n&&S(t),r&&h(e),P(e,t))},[p,b,P,e,t,S]);var _=(0,u.Ay)(k,i.openmrsFetch),O=_.data,Q=_.isValidating,R=_.error;(0,r.useEffect)(function(){var t=function(t){var e,n,r=null==t||null===(n=t.data)||void 0===n||null===(e=n.links)||void 0===e?void 0:e.find(function(t){return"next"===t.rel});if(r){var a=new URL(r.uri);return a.origin===window.location.origin?a.toString():new URL("".concat(a.pathname).concat(a.search?a.search:""),window.location.origin).toString()}return null}(O),e=L&&!Q;if(L&&Q&&M(!1),O&&!Q&&!e){var n,r,a,u;if((null==O||null===(n=O.data)||void 0===n?void 0:n.totalCount)>-1&&(null==O||null===(r=O.data)||void 0===r?void 0:r.totalCount)!==B&&x(null==O||null===(u=O.data)||void 0===u?void 0:u.totalCount),null==O||null===(a=O.data)||void 0===a?void 0:a.results){var o,i=c(w);i[l]=null==O||null===(o=O.data)||void 0===o?void 0:o.results,T(i)}d(l+1),F(t),w.length>l&&t&&M(!0)}t||w.length>l+1&&T(function(t){var e=c(t);return e.splice(l+1),e})},[O,w,l,B,L,Q]),(0,r.useEffect)(function(){R&&C(R)},[R]);var W=(0,r.useCallback)(function(){P()},[P]);(0,r.useEffect)(function(){return window.addEventListener("queue-entry-updated",W),function(){window.removeEventListener("queue-entry-updated",W)}},[W]);var $=(0,r.useMemo)(function(){return w.flat()},[w]);return{queueEntries:$,totalCount:B,isLoading:void 0===B||B&&$.length<B,isValidating:Q||l<w.length,error:A,mutate:n}}function h(t){var e,n,r=new URLSearchParams,a=!0,o=!1,l=void 0;try{for(var c,d=Object.entries(t)[Symbol.iterator]();!(a=(c=d.next()).done);a=!0){var f=s(c.value,2),m=f[0],y=f[1];null!=y&&r.append(m,null==y?void 0:y.toString())}}catch(t){o=!0,l=t}finally{try{a||null==d.return||d.return()}finally{if(o)throw l}}var v="".concat(i.restBaseUrl,"/queue-entry-metrics?")+r.toString(),p=(0,u.Ay)(v,i.openmrsFetch).data;return{count:p?null==p||null===(e=p.data)||void 0===e?void 0:e.count:0,averageWaitTime:null==p||null===(n=p.data)||void 0===n?void 0:n.averageWaitTime}}},56974:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(1343),a=n.n(r),u=n(93150),o=n(6542),i=n(54440),l=n(51751);function s(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}const c=function(t){var e,n,c=t.queueEntry,d=t.closeModal,f=t.modalParams,m=t.showPatientName,y=(0,u.useTranslation)().t,v=(0,l.fe)().mutateQueueEntries,p=f.modalTitle,h=f.modalInstruction,g=f.submitButtonText,b=f.submitSuccessTitle,S=f.submitSuccessText,E=f.submitFailureTitle,w=f.submitAction,T=(e=(0,r.useState)(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,a,u=[],o=!0,i=!1;try{for(n=n.call(t);!(o=(r=n.next()).done)&&(u.push(r.value),!e||u.length!==e);o=!0);}catch(t){i=!0,a=t}finally{try{o||null==n.return||n.return()}finally{if(i)throw a}}return u}}(e,n)||function(t,e){if(t){if("string"==typeof t)return s(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)?s(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),q=T[0],A=T[1];return a().createElement(a().Fragment,null,a().createElement(o.rQ0,{closeModal:d,title:p}),a().createElement(o.cwr,null,m?a().createElement(o.BJc,{gap:4},a().createElement("h5",null,c.display),a().createElement("span",null,h)):a().createElement("p",null,h)),a().createElement(o.jlY,null,a().createElement(o.$nd,{kind:"secondary",onClick:d},y("cancel","Cancel")),a().createElement(o.$nd,{kind:"danger",disabled:q,onClick:function(t){t.preventDefault(),A(!0),w(c).then(function(t){var e=t.status;if(!(e>=200&&e<300))throw{message:y("unexpectedServerResponse","Unexpected Server Response")};(0,i.showSnackbar)({isLowContrast:!0,title:b,kind:"success",subtitle:S}),v(),d()}).catch(function(t){(0,i.showSnackbar)({title:E,kind:"error",subtitle:null==t?void 0:t.message})}).finally(function(){A(!1)})}},g)))}},58561:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(1343),a=n.n(r),u=n(93150),o=n(97355),i=n(56974);const l=function(t){var e=t.queueEntry,n=t.closeModal,r=(0,u.useTranslation)().t,l=e.previousQueueEntry,s=e.queueComingFrom,c=s.uuid==e.queue.uuid?a().createElement("p",null,r("confirmMoveBackStatus",'Are you sure you want to move patient back to status "{{status}}"?',{status:l.status.display,interpolation:{escapeValue:!1}})):a().createElement("p",null,r("confirmMoveBackQueueAndStatus",'Are you sure you want to move patient back to queue "{{queue}}" with status "{{status}}"?',{queue:s.display,status:l.status.display,interpolation:{escapeValue:!1}}));return a().createElement(i.A,{queueEntry:e,closeModal:n,showPatientName:!1,modalParams:{modalTitle:r("undoTransitionForPatient","Undo transition for {{patient}}",{patient:e.display}),modalInstruction:c,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(t){return(0,o.g$)({queueEntry:t.uuid})}}})}},97355:(t,e,n)=>{n.d(e,{OR:()=>i,TI:()=>a,g$:()=>o,hC:()=>u});var r=n(54440);function a(t,e){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/transition"),{method:"POST",headers:{"Content-Type":"application/json"},signal:null==e?void 0:e.signal,body:t})}function u(t,e,n){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/").concat(t),{method:"POST",headers:{"Content-Type":"application/json"},signal:null==n?void 0:n.signal,body:e})}function o(t,e){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/transition"),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:null==e?void 0:e.signal,body:t})}function i(t,e){return(0,r.openmrsFetch)("".concat(r.restBaseUrl,"/queue-entry/").concat(t),{method:"DELETE",headers:{"Content-Type":"application/json"},signal:null==e?void 0:e.signal})}}}]);
package/dist/8694.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[8694],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var a=void 0!==t.layer;a&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,a&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var o=t.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},21324:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(30977),a=t.n(r),o=t(95924),i=t.n(o)()(a());i.push([e.id,".-esm-service-queues__admin-page-card-link__cardLink___zb6nQ{text-decoration:none;color:inherit;display:block}","",{version:3,sources:["webpack://./src/admin/admin-page-card-link/admin-page-card-link.scss"],names:[],mappings:"AAAA,6DACE,oBAAA,CACA,aAAA,CACA,aAAA",sourcesContent:[".cardLink {\n text-decoration: none;\n color: inherit;\n display: block;\n}\n"],sourceRoot:""}]),i.locals={cardLink:"-esm-service-queues__admin-page-card-link__cardLink___zb6nQ"};const c=i},30855:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},30977:e=>{function n(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}e.exports=function(e){var t,r,a=(r=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var r,a,o=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),u="/*# ".concat(s," */"),l=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[o].concat(l).concat([u]).join("\n")}return[o].join("\n")}},48694:(e,n,t)=>{t.r(n),t.d(n,{default:()=>k});var r=t(1343),a=t.n(r),o=t(93150),i=t(9980),c=t(54440),s=t(72591),u=t.n(s),l=t(1740),d=t.n(l),p=t(88128),f=t.n(p),m=t(30855),v=t.n(m),h=t(93051),y=t.n(h),A=t(73656),b=t.n(A),g=t(21324),_={};_.styleTagTransform=b(),_.setAttributes=v(),_.insert=f().bind(null,"head"),_.domAPI=d(),_.insertStyleElement=y(),u()(g.A,_);const C=g.A&&g.A.locals?g.A.locals:void 0,k=function(){var e=(0,o.useTranslation)().t;return a().createElement(i.Wdr,null,a().createElement("a",{className:C.cardLink,href:"".concat(window.spaBase,"/home/service-queues/admin")},a().createElement(i.t3h,null,a().createElement("div",null,a().createElement("div",{className:"heading"},e("manageServiceQueues","Manage Service Queues")),a().createElement("div",{className:"content"},e("serviceQueuesAdmin","Service Queues Admin"))),a().createElement("div",{className:"iconWrapper"},a().createElement(c.ArrowRightIcon,{size:16})))))}},72591:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var o={},i=[],c=0;c<e.length;c++){var s=e[c],u=r.base?s[0]+r.base:s[0],l=o[u]||0,d="".concat(u," ").concat(l);o[u]=l+1;var p=t(d),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var m=a(f,r);r.byIndex=c,n.splice(c,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function a(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=t(o[i]);n[c].references--}for(var s=r(e,a),u=0;u<o.length;u++){var l=t(o[u]);0===n[l].references&&(n[l].updater(),n.splice(l,1))}o=s}}},73656:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},88128:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},93051:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},95924:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t}).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&a[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[8694],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var r="";t.supports&&(r+="@supports (".concat(t.supports,") {")),t.media&&(r+="@media ".concat(t.media," {"));var a=void 0!==t.layer;a&&(r+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),r+=t.css,a&&(r+="}"),t.media&&(r+="}"),t.supports&&(r+="}");var o=t.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),n.styleTagTransform(r,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},21324:(e,n,t)=>{t.d(n,{A:()=>c});var r=t(30977),a=t.n(r),o=t(95924),i=t.n(o)()(a());i.push([e.id,".-esm-service-queues__admin-page-card-link__cardLink___zb6nQ{text-decoration:none;color:inherit;display:block}","",{version:3,sources:["webpack://./src/admin/admin-page-card-link/admin-page-card-link.scss"],names:[],mappings:"AAAA,6DACE,oBAAA,CACA,aAAA,CACA,aAAA",sourcesContent:[".cardLink {\n text-decoration: none;\n color: inherit;\n display: block;\n}\n"],sourceRoot:""}]),i.locals={cardLink:"-esm-service-queues__admin-page-card-link__cardLink___zb6nQ"};const c=i},30855:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},30977:e=>{function n(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}e.exports=function(e){var t,r,a=(r=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var r,a,o=[],i=!0,c=!1;try{for(t=t.call(e);!(i=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);i=!0);}catch(e){c=!0,a=e}finally{try{i||null==t.return||t.return()}finally{if(c)throw a}}return o}}(t,r)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=a[1],i=a[3];if(!i)return o;if("function"==typeof btoa){var c=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),u="/*# ".concat(s," */"),l=i.sources.map(function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")});return[o].concat(l).concat([u]).join("\n")}return[o].join("\n")}},48694:(e,n,t)=>{t.r(n),t.d(n,{default:()=>k});var r=t(1343),a=t.n(r),o=t(93150),i=t(6542),c=t(54440),s=t(72591),u=t.n(s),l=t(1740),d=t.n(l),p=t(88128),f=t.n(p),m=t(30855),v=t.n(m),h=t(93051),y=t.n(h),A=t(73656),b=t.n(A),g=t(21324),_={};_.styleTagTransform=b(),_.setAttributes=v(),_.insert=f().bind(null,"head"),_.domAPI=d(),_.insertStyleElement=y(),u()(g.A,_);const C=g.A&&g.A.locals?g.A.locals:void 0,k=function(){var e=(0,o.useTranslation)().t;return a().createElement(i.Wdr,null,a().createElement("a",{className:C.cardLink,href:"".concat(window.spaBase,"/home/service-queues/admin")},a().createElement(i.t3h,null,a().createElement("div",null,a().createElement("div",{className:"heading"},e("manageServiceQueues","Manage Service Queues")),a().createElement("div",{className:"content"},e("serviceQueuesAdmin","Service Queues Admin"))),a().createElement("div",{className:"iconWrapper"},a().createElement(c.ArrowRightIcon,{size:16})))))}},72591:e=>{var n=[];function t(e){for(var t=-1,r=0;r<n.length;r++)if(n[r].identifier===e){t=r;break}return t}function r(e,r){for(var o={},i=[],c=0;c<e.length;c++){var s=e[c],u=r.base?s[0]+r.base:s[0],l=o[u]||0,d="".concat(u," ").concat(l);o[u]=l+1;var p=t(d),f={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==p)n[p].references++,n[p].updater(f);else{var m=a(f,r);r.byIndex=c,n.splice(c,0,{identifier:d,updater:m,references:1})}i.push(d)}return i}function a(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,a){var o=r(e=e||[],a=a||{});return function(e){e=e||[];for(var i=0;i<o.length;i++){var c=t(o[i]);n[c].references--}for(var s=r(e,a),u=0;u<o.length;u++){var l=t(o[u]);0===n[l].references&&(n[l].updater(),n.splice(l,1))}o=s}}},73656:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},88128:e=>{var n={};e.exports=function(e,t){var r=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(t)}},93051:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},95924:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t}).join("")},n.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(r)for(var o=0;o<this.length;o++){var i=this[o][0];null!=i&&(a[i]=!0)}for(var c=0;c<e.length;c++){var s=[].concat(e[c]);r&&a[s[0]]||(t&&(s[2]?s[2]="".concat(t," and ").concat(s[2]):s[2]=t),n.push(s))}},n}}}]);
package/dist/9384.js CHANGED
@@ -1 +1 @@
1
- (globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[9384],{9384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addNewQueueServiceRoomWorkspace:()=>k,addNewQueueServiceWorkspace:()=>L,addOrMoveModal:()=>P,adminPageCardLink:()=>O,callQueueEntryModal:()=>q,clearAllQueueEntriesModal:()=>b,createQueueEntryWorkspace:()=>M,deleteQueueEntryModal:()=>I,editQueueEntryModal:()=>S,importTranslation:()=>c,metricsCardAverageWaitTime:()=>U,metricsCardCheckedInPatients:()=>v,metricsCardWaitingPatients:()=>T,moveQueueEntryModal:()=>C,outpatientSideNav:()=>h,pastVisitSummary:()=>g,patientBannerQueueEntryStatus:()=>B,queueList:()=>m,queueScreenLink:()=>E,queueTableByStatusMenu:()=>f,queueTableByStatusView:()=>y,removeQueueEntryModal:()=>w,root:()=>p,serviceQueuesDashboardLink:()=>_,startupApp:()=>R,transitionOverflowMenuItem:()=>D,transitionQueueEntryModal:()=>N,undoTransitionQueueEntryModal:()=>j,visitFormQueueFields:()=>Q});var i,o=n(54440),r=n(28063),u=n(1343),a=n.n(u),s=n(8877),l={path:"service-queues",slot:"service-queues-dashboard-slot",title:"Service queues",basePath:"".concat(window.spaBase,"/home")},c=n(84767),A="@openmrs/esm-service-queues-app",d={featureName:"service-queues",moduleName:A},p=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(7756),n.e(3150),n.e(5434),n.e(8010),n.e(3683),n.e(8370),n.e(714),n.e(7160)]).then(n.bind(n,57160))},{featureName:"service-queues-app-root",moduleName:A,swrConfig:{refreshInterval:6e4}}),f=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(8010),n.e(1176)]).then(n.bind(n,81176))},d),y=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(7756),n.e(3150),n.e(5434),n.e(8010),n.e(3683)]).then(n.bind(n,43683))},{featureName:"queue-table-by-status-view",moduleName:A,swrConfig:{refreshInterval:6e4}}),m=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(5434),n.e(714),n.e(348)]).then(n.bind(n,60714))},d),h=(0,o.getAsyncLifecycle)(function(){return n.e(4984).then(n.bind(n,74984))},d),_=(0,o.getSyncLifecycle)((i=l,function(){return a().createElement(s.BrowserRouter,null,a().createElement(o.DashboardExtension,{path:i.path,title:i.title,basePath:i.basePath,icon:i.icon}))}),d),b=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(3344)]).then(n.bind(n,13344))},{featureName:"clear all queue entries and end visits",moduleName:A}),g=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(5434),n.e(8010),n.e(8370),n.e(4597)]).then(n.bind(n,98370))},d),v=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(5434),n.e(5070),n.e(5967)]).then(n.bind(n,64349))},d),T=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5070),n.e(6381)]).then(n.bind(n,56381))},d),U=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(5434),n.e(5070),n.e(2726)]).then(n.bind(n,67196))},d),q=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(5702)]).then(n.bind(n,45702))},{featureName:"call queue entry",moduleName:A}),C=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(3728)]).then(n.bind(n,3728))},{featureName:"move queue entry",moduleName:A}),N=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(7618)]).then(n.bind(n,17618))},{featureName:"transition queue entry",moduleName:A}),S=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(7491)]).then(n.bind(n,7491))},{featureName:"edit queue entry of a patient",moduleName:A}),j=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(8561)]).then(n.bind(n,58561))},{featureName:"undo queue entry transiion of a patient",moduleName:A}),I=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(4890)]).then(n.bind(n,24890))},{featureName:"delete queue entry of a patient",moduleName:A}),w=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(1151)]).then(n.bind(n,31151))},{featureName:"remove queue entry of a patient",moduleName:A}),P=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(1638)]).then(n.bind(n,71638))},{featureName:"add or move modal",moduleName:A}),D=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(3922)]).then(n.bind(n,73922))},{featureName:"add or move overflow menu item",moduleName:A}),L=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(9707)]).then(n.bind(n,69707))},{featureName:"service-queues-service-form",moduleName:A}),k=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(3386)]).then(n.bind(n,13386))},{featureName:"service-queues-queue-room-form",moduleName:A}),Q=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(7067)]).then(n.bind(n,47067))},d),M=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(5228)]).then(n.bind(n,55228))},{featureName:"create-queue-entry-workspace",moduleName:A}),B=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(1239),n.e(3150),n.e(5434),n.e(2799)]).then(n.bind(n,2799))},{featureName:"patient-info-queue-entry-status",moduleName:A}),E=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3150),n.e(8645)]).then(n.bind(n,18645))},{featureName:"queue-screen-link",moduleName:A}),O=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(9980),n.e(3150),n.e(8694)]).then(n.bind(n,48694))},{featureName:"admin-page-card-link",moduleName:A});function R(){(0,o.registerBreadcrumbs)([]),(0,o.defineConfigSchema)(A,r.Qn)}},28063:(e,t,n)=>{"use strict";n.d(t,{BH:()=>c,Qn:()=>h,cM:()=>y,RT:()=>m});var i=n(54440);const o={formUuid:{_type:i.Type.UUID,_default:"a000cb34-9ec1-4344-a1c8-f692232f6edd"},encounterTypeUuid:{_type:i.Type.UUID,_default:"67a71486-1a54-468f-ac3e-7091a9a79584"}},r={bmiUnit:{_type:i.Type.String,_default:"kg / m²"}};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=["actions","coming-from","extension","patient-age","patient-identifier","patient-name","priority","queue-number","queue","status","visit-start-time","wait-time"],l=["move","call","edit","transition","remove","delete","undo"],c=s.filter(function(e){return"extension"!==e}),A="05a29f94-c0ed-11e2-94be-8c13b969e334",d="f4620bfa-3625-4883-bd3f-84c2cce14470",p="04f6f7e0-e3cb-4e13-a133-4479f759574e",f=[{conceptUuid:p,style:null,color:"red"},{conceptUuid:d,style:null,color:"green"},{conceptUuid:"dc3492ef-24a5-4fd9-b58d-4fd2acf7071f",style:null,color:"orange"}],y={actions:{buttons:["call"],overflowMenu:["move","transition","edit","remove","undo"]},identifierTypeUuid:A,statusConfigs:[],visitQueueNumberAttributeUuid:null},m={columns:["patient-name","coming-from","priority","status","queue","wait-time","actions"],appliedTo:[{queue:"",status:""}]},h={priorityConfigs:{_type:i.Type.Array,_default:f,_description:"Add entries to configure the styling for specific priority tags.",_elements:{conceptUuid:{_type:i.Type.UUID,_description:"The UUID of the priority concept to configure"},color:{_type:i.Type.String,_description:'The color of the tag. This is based on the "type" field of the Carbon Design System "Tag" component.',_validators:[i.validators.oneOf(["red","magenta","purple","blue","teal","cyan","gray","orange","green","warm-gray","cool-gray","high-contrast","outline"])],_default:"gray"},style:{_type:i.Type.String,_description:"Style to apply to the tag",_validators:[i.validators.oneOf(["bold"])],_default:null}}},appointmentStatuses:{_type:i.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:i.Type.String}},biometrics:r,concepts:{defaultPriorityConceptUuid:{_type:i.Type.ConceptUuid,_default:d,_description:"The UUID of the default priority for the queues eg Not urgent."},defaultStatusConceptUuid:{_type:i.Type.ConceptUuid,_default:"51ae5e4d-b72b-4912-bf31-a17efb690aeb",_description:"The UUID of the default status for the queues eg Waiting."},defaultTransitionStatus:{_type:i.Type.ConceptUuid,_default:"ca7494ae-437f-4fd0-8aae-b88b9a2ba47d",_description:"The UUID of the default status for attending a service in the queues eg In Service."},systolicBloodPressureUuid:{_type:i.Type.ConceptUuid,_default:"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},diastolicBloodPressureUuid:{_type:i.Type.ConceptUuid,_default:"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},emergencyPriorityConceptUuid:{_type:i.Type.ConceptUuid,_default:p,_description:"The UUID of the priority with the highest sort weight for the queues eg Emergency."},generalPatientNoteConceptUuid:{_type:i.Type.ConceptUuid,_default:"162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The UUID of the free text note field intended to capture unstructured description of the patient encounter"},heightUuid:{_type:i.Type.ConceptUuid,_default:"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},historicalObsConceptUuid:{_type:i.Type.Array,_default:["161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],_description:"The Uuids of the obs that are displayed on the previous visit modal",_elements:{_type:i.Type.ConceptUuid}},oxygenSaturationUuid:{_type:i.Type.ConceptUuid,_default:"5092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},pulseUuid:{_type:i.Type.ConceptUuid,_default:"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},problemListConceptUuid:{_type:i.Type.ConceptUuid,_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},respiratoryRateUuid:{_type:i.Type.ConceptUuid,_default:"5242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},temperatureUuid:{_type:i.Type.ConceptUuid,_default:"5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},visitDiagnosesConceptUuid:{_type:i.Type.ConceptUuid,_default:"159947AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},weightUuid:{_type:i.Type.ConceptUuid,_default:"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},contactAttributeType:{_type:i.Type.UUID,_default:null,_description:"The UUID of the person attribute type that captures contact information such as `Next of kin contact details`"},customPatientChartUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Template URL that will be used when clicking on the patient name in the queues table.\n Available arguments: patientUuid, openmrsSpaBase, openBase\n (openmrsSpaBase and openBase are available to any <ConfigurableLink>)",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]},dashboardTitle:{_type:i.Type.Object,_default:{key:"serviceQueues",value:"Service queues"},_description:"The title to be displayed on the service queues dashboard",key:{_type:i.Type.String,_description:"The translation key of the title to be displayed on the service queues dashboard"},value:{_type:i.Type.String,_description:"The translation value of the title to be displayed on the service queues dashboard"}},defaultIdentifierTypes:{_type:i.Type.Array,_default:["05ee9cf4-7242-4a17-b4d4-00f707265c8a","f85081e2-b4be-4e48-b3a4-7994b69bb101"],_description:"The identifier types to be displayed on all patient search result page",_elements:{_type:i.Type.String}},defaultInitialServiceQueue:{_type:i.Type.String,_default:"Outpatient Triage",_description:"The name of the default service queue to be selected when the start visit form is opened"},queueTables:{columnDefinitions:{_type:i.Type.Array,_default:[],_description:"Custom columns for queue tables can be defined here. These columns will be referenced by their `id` in the `tableDefinitions` columns configuration. If the provided `id` matches a built-in column, the custom configuration will override the built-in column's configuration.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for the column you are defining"},columnType:{_type:i.Type.String,_default:"",_description:"The type of column, if different from the ID",_validators:[i.validators.oneOf(s)]},header:{_type:i.Type.String,_default:"",_description:"The header text for the column. Will be translated if it is a valid translation key. If not provided, the header will be based on the columnType."},config:{actions:{buttons:{_type:i.Type.Array,_default:["call"],_description:'For columnType "actions". Configures the buttons to display in the action cell. It is recommended to only use one, and put the rest in the overflow menu. Valid actions are: '+l.join(", "),_elements:{_type:i.Type.String,_validators:[i.validators.oneOf(l)]}},overflowMenu:{_type:i.Type.Array,_default:["edit","remove","undo"],_description:'For columnType "actions". Configures the items to display in the overflow menu. Valid actions are: '+l.join(", "),_elements:{_type:i.Type.String,_validators:[i.validators.oneOf(l)]}}},identifierTypeUuid:{_type:i.Type.UUID,_default:A,_description:"For columnType 'patient-identifier'. The UUID of the identifier type to display"},statusConfigs:{_type:i.Type.Array,_default:[],_description:'For columnType "status". Configures the icons for each status.',_elements:{conceptUuid:{_type:i.Type.UUID,_description:"The UUID of the status concept to configure"},iconComponent:{_type:i.Type.String,_default:"",_description:"The icon component to display for the status",_validators:[i.validators.oneOf(["Group","InProgress"])]}}},visitQueueNumberAttributeUuid:{_type:i.Type.String,_default:null,_description:"The UUID of the visit attribute that contains the visit queue number. This must be set to use the queue-number column if the top-level `visitQueueNumberAttributeUuid` config element is not set."}},_validators:[(0,i.validator)(function(e){return Boolean(e.columnType||s.some(function(t){return t==e.id}))},function(e){return"No columnType provided for column with ID '".concat(e.id,"', and the ID is not a valid columnType. Valid column types are: ").concat(s.join(", "),".")}),(0,i.validator)(function(e){return e.config.identifierTypeUuid==A||_(e,"patient-identifier")},function(e){var t;return"Identifier type can only be set for 'patient-identifier' column type. Column ".concat(e.id," has type '").concat(null!==(t=e.columnType)&&void 0!==t?t:e.id,".")}),(0,i.validator)(function(e){return!e.config.statusConfigs||0==e.config.statusConfigs.length||_(e,"status")},function(e){var t;return"Statuses can only be configured for 'status' column type. Column ".concat(e.id," has type '").concat(null!==(t=e.columnType)&&void 0!==t?t:e.id)})]}},tableDefinitions:{_type:i.Type.Array,_default:[m],_elements:{columns:{_type:i.Type.Array,_elements:{_type:i.Type.String}},appliedTo:{_type:i.Type.Array,_elements:{queue:{_type:i.Type.String,_default:"",_description:"The UUID of the queue. If not provided, applies to all queues."},status:{_type:i.Type.String,_default:"",_description:"The UUID of the status. If not provided, applies to all statuses."}}}}},_validators:[(0,i.validator)(function(e){var t=a(c).concat(a(e.columnDefinitions.map(function(e){return e.id})));return e.tableDefinitions.every(function(e){return e.columns.every(function(e){return t.includes(e)})})},function(e){var t=new Set(a(c).concat(a(e.columnDefinitions.map(function(e){return e.id}))));return"A table definition references a column that is not defined. You can define additional columns in 'columnDefinitions'.\n\nCurrently defined column IDs are ".concat(a(t).join(", "),".\n\nInvalid columns: ").concat(e.tableDefinitions.map(function(e){return e.columns.filter(function(e){return!t.has(e)})}).flat().join(", "))})]},showRecommendedVisitTypeTab:{_type:i.Type.Boolean,_default:!1,_description:"Whether start visit form should display recommended visit type tab. Requires `visitTypeResourceUrl`"},visitQueueNumberAttributeUuid:{_type:i.Type.String,_default:null,_description:"The UUID of the visit attribute that contains the visit queue number."},visitTypeResourceUrl:{_type:i.Type.String,_default:"",_description:"The `visitTypeResourceUrl`"},vitals:o,_validators:[(0,i.validator)(function(e){var t=a(e.queueTables.columnDefinitions.filter(function(e){return _(e,"queue-number")})).concat([{id:"queue-number",config:y}]),n=e.queueTables.tableDefinitions.map(function(e){return e.columns}).flat().filter(function(e){return t.map(function(e){return e.id}).includes(e)});return Boolean(e.visitQueueNumberAttributeUuid||n.every(function(e){return t.find(function(t){return t.id==e}).config.visitQueueNumberAttributeUuid}))},"If a queue-number column is used in a table definition, the `visitQueueNumberAttributeUuid` must be set either at the top-level config or in the column definition.")]};function _(e,t){return e.columnType===t||e.id===t}},84767:(e,t,n)=>{var i={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function o(e){if(!n.o(i,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],o=t[0];return n.e(t[1]).then(()=>n(o))}o.keys=()=>Object.keys(i),o.id=84767,e.exports=o}}]);
1
+ (globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[9384],{9384:(e,t,n)=>{"use strict";n.r(t),n.d(t,{addNewQueueServiceRoomWorkspace:()=>k,addNewQueueServiceWorkspace:()=>L,addOrMoveModal:()=>P,adminPageCardLink:()=>O,callQueueEntryModal:()=>q,clearAllQueueEntriesModal:()=>b,createQueueEntryWorkspace:()=>M,deleteQueueEntryModal:()=>I,editQueueEntryModal:()=>S,importTranslation:()=>c,metricsCardAverageWaitTime:()=>U,metricsCardCheckedInPatients:()=>v,metricsCardWaitingPatients:()=>T,moveQueueEntryModal:()=>C,outpatientSideNav:()=>h,pastVisitSummary:()=>g,patientBannerQueueEntryStatus:()=>B,queueList:()=>m,queueScreenLink:()=>E,queueTableByStatusMenu:()=>f,queueTableByStatusView:()=>y,removeQueueEntryModal:()=>w,root:()=>p,serviceQueuesDashboardLink:()=>_,startupApp:()=>R,transitionOverflowMenuItem:()=>D,transitionQueueEntryModal:()=>N,undoTransitionQueueEntryModal:()=>j,visitFormQueueFields:()=>Q});var i,o=n(54440),r=n(28063),u=n(1343),a=n.n(u),s=n(8877),l={path:"service-queues",slot:"service-queues-dashboard-slot",title:"Service queues",basePath:"".concat(window.spaBase,"/home")},c=n(84767),A="@openmrs/esm-service-queues-app",d={featureName:"service-queues",moduleName:A},p=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(7756),n.e(3150),n.e(5434),n.e(8010),n.e(3683),n.e(8370),n.e(714),n.e(7160)]).then(n.bind(n,57160))},{featureName:"service-queues-app-root",moduleName:A,swrConfig:{refreshInterval:6e4}}),f=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(8010),n.e(1176)]).then(n.bind(n,81176))},d),y=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(7756),n.e(3150),n.e(5434),n.e(8010),n.e(3683)]).then(n.bind(n,43683))},{featureName:"queue-table-by-status-view",moduleName:A,swrConfig:{refreshInterval:6e4}}),m=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(5434),n.e(714),n.e(348)]).then(n.bind(n,60714))},d),h=(0,o.getAsyncLifecycle)(function(){return n.e(4984).then(n.bind(n,74984))},d),_=(0,o.getSyncLifecycle)((i=l,function(){return a().createElement(s.BrowserRouter,null,a().createElement(o.DashboardExtension,{path:i.path,title:i.title,basePath:i.basePath,icon:i.icon}))}),d),b=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(3344)]).then(n.bind(n,13344))},{featureName:"clear all queue entries and end visits",moduleName:A}),g=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(5434),n.e(8010),n.e(8370),n.e(4597)]).then(n.bind(n,98370))},d),v=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(5434),n.e(5070),n.e(5967)]).then(n.bind(n,64349))},d),T=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5070),n.e(6381)]).then(n.bind(n,56381))},d),U=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(5434),n.e(5070),n.e(2726)]).then(n.bind(n,67196))},d),q=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(5702)]).then(n.bind(n,45702))},{featureName:"call queue entry",moduleName:A}),C=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(3728)]).then(n.bind(n,3728))},{featureName:"move queue entry",moduleName:A}),N=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(7618)]).then(n.bind(n,17618))},{featureName:"transition queue entry",moduleName:A}),S=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(7491)]).then(n.bind(n,7491))},{featureName:"edit queue entry of a patient",moduleName:A}),j=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(8561)]).then(n.bind(n,58561))},{featureName:"undo queue entry transiion of a patient",moduleName:A}),I=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(4890)]).then(n.bind(n,24890))},{featureName:"delete queue entry of a patient",moduleName:A}),w=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(1151)]).then(n.bind(n,31151))},{featureName:"remove queue entry of a patient",moduleName:A}),P=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(5578),n.e(1638)]).then(n.bind(n,71638))},{featureName:"add or move modal",moduleName:A}),D=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(3922)]).then(n.bind(n,73922))},{featureName:"add or move overflow menu item",moduleName:A}),L=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(9707)]).then(n.bind(n,69707))},{featureName:"service-queues-service-form",moduleName:A}),k=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(3386)]).then(n.bind(n,13386))},{featureName:"service-queues-queue-room-form",moduleName:A}),Q=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(7067)]).then(n.bind(n,47067))},d),M=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(9559),n.e(3150),n.e(5434),n.e(8010),n.e(5228)]).then(n.bind(n,55228))},{featureName:"create-queue-entry-workspace",moduleName:A}),B=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(1239),n.e(3150),n.e(5434),n.e(2799)]).then(n.bind(n,2799))},{featureName:"patient-info-queue-entry-status",moduleName:A}),E=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3150),n.e(8645)]).then(n.bind(n,18645))},{featureName:"queue-screen-link",moduleName:A}),O=(0,o.getAsyncLifecycle)(function(){return Promise.all([n.e(3144),n.e(6542),n.e(3150),n.e(8694)]).then(n.bind(n,48694))},{featureName:"admin-page-card-link",moduleName:A});function R(){(0,o.registerBreadcrumbs)([]),(0,o.defineConfigSchema)(A,r.Qn)}},28063:(e,t,n)=>{"use strict";n.d(t,{BH:()=>c,Qn:()=>h,cM:()=>y,RT:()=>m});var i=n(54440);const o={formUuid:{_type:i.Type.UUID,_default:"a000cb34-9ec1-4344-a1c8-f692232f6edd"},encounterTypeUuid:{_type:i.Type.UUID,_default:"67a71486-1a54-468f-ac3e-7091a9a79584"}},r={bmiUnit:{_type:i.Type.String,_default:"kg / m²"}};function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=["actions","coming-from","extension","patient-age","patient-identifier","patient-name","priority","queue-number","queue","status","visit-start-time","wait-time"],l=["move","call","edit","transition","remove","delete","undo"],c=s.filter(function(e){return"extension"!==e}),A="05a29f94-c0ed-11e2-94be-8c13b969e334",d="f4620bfa-3625-4883-bd3f-84c2cce14470",p="04f6f7e0-e3cb-4e13-a133-4479f759574e",f=[{conceptUuid:p,style:null,color:"red"},{conceptUuid:d,style:null,color:"green"},{conceptUuid:"dc3492ef-24a5-4fd9-b58d-4fd2acf7071f",style:null,color:"orange"}],y={actions:{buttons:["call"],overflowMenu:["move","transition","edit","remove","undo"]},identifierTypeUuid:A,statusConfigs:[],visitQueueNumberAttributeUuid:null},m={columns:["patient-name","coming-from","priority","status","queue","wait-time","actions"],appliedTo:[{queue:"",status:""}]},h={priorityConfigs:{_type:i.Type.Array,_default:f,_description:"Add entries to configure the styling for specific priority tags.",_elements:{conceptUuid:{_type:i.Type.UUID,_description:"The UUID of the priority concept to configure"},color:{_type:i.Type.String,_description:'The color of the tag. This is based on the "type" field of the Carbon Design System "Tag" component.',_validators:[i.validators.oneOf(["red","magenta","purple","blue","teal","cyan","gray","orange","green","warm-gray","cool-gray","high-contrast","outline"])],_default:"gray"},style:{_type:i.Type.String,_description:"Style to apply to the tag",_validators:[i.validators.oneOf(["bold"])],_default:null}}},appointmentStatuses:{_type:i.Type.Array,_default:["Requested","Scheduled","CheckedIn","Completed","Cancelled","Missed"],_description:"Configurable appointment status (status of appointments)",_elements:{_type:i.Type.String}},biometrics:r,concepts:{defaultPriorityConceptUuid:{_type:i.Type.ConceptUuid,_default:d,_description:"The UUID of the default priority for the queues eg Not urgent."},defaultStatusConceptUuid:{_type:i.Type.ConceptUuid,_default:"51ae5e4d-b72b-4912-bf31-a17efb690aeb",_description:"The UUID of the default status for the queues eg Waiting."},defaultTransitionStatus:{_type:i.Type.ConceptUuid,_default:"ca7494ae-437f-4fd0-8aae-b88b9a2ba47d",_description:"The UUID of the default status for attending a service in the queues eg In Service."},systolicBloodPressureUuid:{_type:i.Type.ConceptUuid,_default:"5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},diastolicBloodPressureUuid:{_type:i.Type.ConceptUuid,_default:"5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},emergencyPriorityConceptUuid:{_type:i.Type.ConceptUuid,_default:p,_description:"The UUID of the priority with the highest sort weight for the queues eg Emergency."},generalPatientNoteConceptUuid:{_type:i.Type.ConceptUuid,_default:"162169AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",_description:"The UUID of the free text note field intended to capture unstructured description of the patient encounter"},heightUuid:{_type:i.Type.ConceptUuid,_default:"5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},historicalObsConceptUuid:{_type:i.Type.Array,_default:["161643AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"],_description:"The Uuids of the obs that are displayed on the previous visit modal",_elements:{_type:i.Type.ConceptUuid}},oxygenSaturationUuid:{_type:i.Type.ConceptUuid,_default:"5092AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},pulseUuid:{_type:i.Type.ConceptUuid,_default:"5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},problemListConceptUuid:{_type:i.Type.ConceptUuid,_default:"1284AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},respiratoryRateUuid:{_type:i.Type.ConceptUuid,_default:"5242AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},temperatureUuid:{_type:i.Type.ConceptUuid,_default:"5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},visitDiagnosesConceptUuid:{_type:i.Type.ConceptUuid,_default:"159947AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},weightUuid:{_type:i.Type.ConceptUuid,_default:"5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}},contactAttributeType:{_type:i.Type.UUID,_default:null,_description:"The UUID of the person attribute type that captures contact information such as `Next of kin contact details`"},customPatientChartUrl:{_type:i.Type.String,_default:"${openmrsSpaBase}/patient/${patientUuid}/chart",_description:"Template URL that will be used when clicking on the patient name in the queues table.\n Available arguments: patientUuid, openmrsSpaBase, openBase\n (openmrsSpaBase and openBase are available to any <ConfigurableLink>)",_validators:[i.validators.isUrlWithTemplateParameters(["patientUuid"])]},dashboardTitle:{_type:i.Type.Object,_default:{key:"serviceQueues",value:"Service queues"},_description:"The title to be displayed on the service queues dashboard",key:{_type:i.Type.String,_description:"The translation key of the title to be displayed on the service queues dashboard"},value:{_type:i.Type.String,_description:"The translation value of the title to be displayed on the service queues dashboard"}},defaultIdentifierTypes:{_type:i.Type.Array,_default:["05ee9cf4-7242-4a17-b4d4-00f707265c8a","f85081e2-b4be-4e48-b3a4-7994b69bb101"],_description:"The identifier types to be displayed on all patient search result page",_elements:{_type:i.Type.String}},defaultInitialServiceQueue:{_type:i.Type.String,_default:"Outpatient Triage",_description:"The name of the default service queue to be selected when the start visit form is opened"},queueTables:{columnDefinitions:{_type:i.Type.Array,_default:[],_description:"Custom columns for queue tables can be defined here. These columns will be referenced by their `id` in the `tableDefinitions` columns configuration. If the provided `id` matches a built-in column, the custom configuration will override the built-in column's configuration.",_elements:{id:{_type:i.Type.String,_description:"The unique identifier for the column you are defining"},columnType:{_type:i.Type.String,_default:"",_description:"The type of column, if different from the ID",_validators:[i.validators.oneOf(s)]},header:{_type:i.Type.String,_default:"",_description:"The header text for the column. Will be translated if it is a valid translation key. If not provided, the header will be based on the columnType."},config:{actions:{buttons:{_type:i.Type.Array,_default:["call"],_description:'For columnType "actions". Configures the buttons to display in the action cell. It is recommended to only use one, and put the rest in the overflow menu. Valid actions are: '+l.join(", "),_elements:{_type:i.Type.String,_validators:[i.validators.oneOf(l)]}},overflowMenu:{_type:i.Type.Array,_default:["edit","remove","undo"],_description:'For columnType "actions". Configures the items to display in the overflow menu. Valid actions are: '+l.join(", "),_elements:{_type:i.Type.String,_validators:[i.validators.oneOf(l)]}}},identifierTypeUuid:{_type:i.Type.UUID,_default:A,_description:"For columnType 'patient-identifier'. The UUID of the identifier type to display"},statusConfigs:{_type:i.Type.Array,_default:[],_description:'For columnType "status". Configures the icons for each status.',_elements:{conceptUuid:{_type:i.Type.UUID,_description:"The UUID of the status concept to configure"},iconComponent:{_type:i.Type.String,_default:"",_description:"The icon component to display for the status",_validators:[i.validators.oneOf(["Group","InProgress"])]}}},visitQueueNumberAttributeUuid:{_type:i.Type.String,_default:null,_description:"The UUID of the visit attribute that contains the visit queue number. This must be set to use the queue-number column if the top-level `visitQueueNumberAttributeUuid` config element is not set."}},_validators:[(0,i.validator)(function(e){return Boolean(e.columnType||s.some(function(t){return t==e.id}))},function(e){return"No columnType provided for column with ID '".concat(e.id,"', and the ID is not a valid columnType. Valid column types are: ").concat(s.join(", "),".")}),(0,i.validator)(function(e){return e.config.identifierTypeUuid==A||_(e,"patient-identifier")},function(e){var t;return"Identifier type can only be set for 'patient-identifier' column type. Column ".concat(e.id," has type '").concat(null!==(t=e.columnType)&&void 0!==t?t:e.id,".")}),(0,i.validator)(function(e){return!e.config.statusConfigs||0==e.config.statusConfigs.length||_(e,"status")},function(e){var t;return"Statuses can only be configured for 'status' column type. Column ".concat(e.id," has type '").concat(null!==(t=e.columnType)&&void 0!==t?t:e.id)})]}},tableDefinitions:{_type:i.Type.Array,_default:[m],_elements:{columns:{_type:i.Type.Array,_elements:{_type:i.Type.String}},appliedTo:{_type:i.Type.Array,_elements:{queue:{_type:i.Type.String,_default:"",_description:"The UUID of the queue. If not provided, applies to all queues."},status:{_type:i.Type.String,_default:"",_description:"The UUID of the status. If not provided, applies to all statuses."}}}}},_validators:[(0,i.validator)(function(e){var t=a(c).concat(a(e.columnDefinitions.map(function(e){return e.id})));return e.tableDefinitions.every(function(e){return e.columns.every(function(e){return t.includes(e)})})},function(e){var t=new Set(a(c).concat(a(e.columnDefinitions.map(function(e){return e.id}))));return"A table definition references a column that is not defined. You can define additional columns in 'columnDefinitions'.\n\nCurrently defined column IDs are ".concat(a(t).join(", "),".\n\nInvalid columns: ").concat(e.tableDefinitions.map(function(e){return e.columns.filter(function(e){return!t.has(e)})}).flat().join(", "))})]},showRecommendedVisitTypeTab:{_type:i.Type.Boolean,_default:!1,_description:"Whether start visit form should display recommended visit type tab. Requires `visitTypeResourceUrl`"},visitQueueNumberAttributeUuid:{_type:i.Type.String,_default:null,_description:"The UUID of the visit attribute that contains the visit queue number."},visitTypeResourceUrl:{_type:i.Type.String,_default:"",_description:"The `visitTypeResourceUrl`"},vitals:o,_validators:[(0,i.validator)(function(e){var t=a(e.queueTables.columnDefinitions.filter(function(e){return _(e,"queue-number")})).concat([{id:"queue-number",config:y}]),n=e.queueTables.tableDefinitions.map(function(e){return e.columns}).flat().filter(function(e){return t.map(function(e){return e.id}).includes(e)});return Boolean(e.visitQueueNumberAttributeUuid||n.every(function(e){return t.find(function(t){return t.id==e}).config.visitQueueNumberAttributeUuid}))},"If a queue-number column is used in a table definition, the `visitQueueNumberAttributeUuid` must be set either at the top-level config or in the column definition.")]};function _(e,t){return e.columnType===t||e.id===t}},84767:(e,t,n)=>{var i={"./am.json":[81197,1197],"./ar.json":[14132,4132],"./ar_SY.json":[37617,7617],"./bn.json":[77159,7159],"./de.json":[34944,4944],"./en.json":[34300,4300],"./en_US.json":[59569,9569],"./es.json":[93099,3099],"./es_MX.json":[88349,8349],"./fr.json":[94055,4055],"./he.json":[84652,4652],"./hi.json":[36840,6840],"./hi_IN.json":[55442,5442],"./id.json":[72690,2690],"./it.json":[9538,9538],"./ka.json":[70795,795],"./km.json":[54335,4335],"./ku.json":[9895,9895],"./ky.json":[88163,8163],"./lg.json":[64618,4618],"./ne.json":[12146,2146],"./pl.json":[41119,1119],"./pt.json":[96679,6679],"./pt_BR.json":[36468,6468],"./qu.json":[35173,5173],"./ro_RO.json":[46022,6022],"./ru_RU.json":[60986,986],"./si.json":[56859,6859],"./sw.json":[89913,9913],"./sw_KE.json":[88618,8618],"./tr.json":[55241,5241],"./tr_TR.json":[99900,9900],"./uk.json":[60723,723],"./uz.json":[43584,3584],"./uz@Latn.json":[27097,7097],"./uz_UZ.json":[70890,890],"./vi.json":[79214,9214],"./zh.json":[35661,5661],"./zh_CN.json":[99879,9879]};function o(e){if(!n.o(i,e))return Promise.resolve().then(()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=i[e],o=t[0];return n.e(t[1]).then(()=>n(o))}o.keys=()=>Object.keys(i),o.id=84767,e.exports=o}}]);
package/dist/9538.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[9538],{9538:e=>{e.exports=JSON.parse('{"actions":"Azioni","addedPatientToQueue":"Paziente aggiunto alla coda","addingPatientToQueue":"Adding patient to queue","addNewQueueService":"Aggiungi nuovo servizio di coda","addNewQueueServiceRoom":"Aggiungi nuova sala per il servizio di coda","addPatientToQueue":"Aggiungi paziente alla coda","addQueue":"Add Queue","addQueueRoom":"Add Queue Room","age":"Età","aListOfPatients":"A list of patients waiting for ","all":"Tutti","and":"E","any":"Any","applyFilters":"Applica filtri","averageWaitTime":"Tempo medio di attesa oggi","backToSearchResults":"Torna ai risultati della ricerca","between":"Tra","bmi":"BMI","bp":"Pressione sanguigna","call":"Chiama","cancel":"Annulla","checkedInPatients":"Pazienti registrati","checkFilters":"Verifica i filtri sopra","clearAllQueueEntries":"Eliminare tutte le voci della coda?","clearAllQueueEntriesWarningMessage":"Clearing all queue entries will remove all the patients from the queues","clearQueue":"Svuota coda","clearQueueEntries":"Clear queue entries","comment":"Comment","configurePriorities":"Configura le priorità per continuare.","configureServices":"Configura i servizi per continuare.","configureStatus":"Configura gli stati per continuare.","confirmDeleteQueueEntry":"Sei sicuro di voler eliminare questa voce della coda?","confirmMoveBackQueueAndStatus":"Sei sicuro di voler riportare il paziente nella coda \\"{{queue}}\\" con stato \\"{{status}}\\"?","confirmMoveBackStatus":"Sei sicuro di voler riportare il paziente allo stato \\"{{status}}\\"?","confirmRemovePatientFromQueue":"Are you sure you want to remove <1>{{patient}}</1> from {{queue}}?","currentValueFormatted":"{{value}} (Attuale)","currentVisit":"Consulto in corso","date":"Data","date&Time":"Data e ora","deleteEntry":"Delete entry","deleteQueueEntry":"Elimina voce della coda","deleteQueueEntryForPatient":"Delete queue entry for {{patient}}","description":"Description","discard":"Annulla","dose":"Dose","duplicateQueueEntry":"This patient is already in the selected queue.","edit":"Modifica","editQueueEntry":"Modifica voce della coda","editQueueEntryForPatient":"Edit queue entry for {{patient}}","encounters":"Encounters","encounterType":"Tipo di consulto","endAgeRangeInvalid":"Intervallo di età finale non valido","endDate":"Data di fine","enterCommentHere":"Enter comment here","errorClearingQueues":"Errore durante lo svuotamento delle code","errorCreatingQueueRoom":"Errore nella creazione della sala di coda","errorCreatingQueueService":"Errore nella creazione del servizio di coda","errorFetchingVisit":"Errore nel recupero del consulto del paziente","errorLoadingQueueEntries":"Errore nel caricamento delle voci della coda","errorLoadingQueueEntry":"Error loading queue entry","failedToLoadLocations":"Failed to load locations","female":"Female","femaleLabelText":"Femmina","filter":"Filtra","filterTable":"Filtra tabella","formValidationFailed":"Form validation failed","gender":"Sesso","heartRate":"Frequenza cardiaca","height":"Altezza","hourAndMinuteFormatted":"{{hours}} ora(e) e {{minutes}} minuto(i)","incompleteForm":"Incomplete form","indication":"Indicazione","invalidQueue":"Coda non valida","invalidtableConfig":"Configurazione tabella non valida","location":"Sede","male":"Male","maleLabelText":"Maschio","manageServiceQueues":"Manage Service Queues","medications":"Farmaci","minuteFormatted":"{{minutes}} minuto(i)","minutes":"Minuti","missingRequiredFields":"Missing required fields: {{fields}}","move":"Move","movePatient":"Move {{patient}}","name":"Nome","nextPage":"Pagina successiva","noColumnsDefined":"Nessuna colonna della tabella definita. Controlla la configurazione","noEncountersFound":"Nessun consulto trovato","noMedicationsFound":"Nessun farmaco trovato","noNotesFound":"Nessuna nota trovata","noPatientsToDisplay":"Nessun paziente da mostrare","noPreviousVisitFound":"Nessuna visita precedente trovata","noPrioritiesConfigured":"Nessuna priorità configurata","noPrioritiesForService":"Il servizio selezionato non ha priorità consentite. Si tratta di un errore di configurazione. Si prega di contattare l\'amministratore di sistema.","noPrioritiesForServiceTitle":"Nessuna priorità disponibile","noServicesConfigured":"Nessun servizio configurato","noStatusConfigured":"Nessuno stato configurato","notableConfig":"Nessuna configurazione della tabella","notes":"Note","noVitalsFound":"Nessun parametro vitale trovato","noVitalsRecorded":"No vitals have been recorded in this visit","now":"Now","onTime":"In orario","orderDurationAndUnit":"per {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Durata indefinita","other":"Other","patientAge":"Età","patientAlreadyInQueue":"Patient already in queue","patientAttendingService":"Paziente in visita al servizio","patientGender":"Gender","patientName":"Nome paziente","patientRemoved":"Paziente rimosso","patientRemovedFailed":"Errore nella rimozione del paziente dalla coda","patientRemovedSuccessfully":"Patient removed from queue successfully","patientRequeued":"Il paziente è stato rimesso in coda","patients":"Pazienti","patientsCurrentlyInQueue":"Pazienti attualmente in coda","phoneNumber":"Numero di telefono","previousPage":"Pagina precedente","previousVisit":"Visita precedente","priority":"Priorità","provider":"Operatore","quantity":"Quantità","queue":"Queue","queueConceptRequired":"Il concetto di coda è obbligatorio","queueEntryAddedSuccessfully":"Voce della coda aggiunta con successo","queueEntryDeleteFailed":"Errore nell\'eliminazione della voce in coda","queueEntryDeleteSuccessful":"Voce in coda eliminata con successo","queueEntryEdited":"Voce in coda modificata","queueEntryEditedSuccessfully":"Voce in coda modificata con successo","queueEntryEditingFailed":"Errore nella modifica della voce in coda","queueEntryError":"Errore nell\'aggiunta del paziente alla coda","queueEntryTransitioned":"Voce in coda transitata","queueEntryTransitionedSuccessfully":"Voce in coda transitata con successo","queueEntryTransitionFailed":"Errore nel transito della voce in coda","queueEntryTransitionUndoFailed":"Errore nell\'annullamento del transito","queueEntryTransitionUndoSuccessful":"Annullamento del transito della voce in coda riuscito","queueEntryUpdateFailed":"Error updating queue entry","queueLocation":"Queue Location","queueLocationRequired":"La sede della coda è obbligatoria","queueName":"Nome della coda","queueNameRequired":"Il nome della coda è obbligatorio","queueRoomAdded":"Stanza della coda aggiunta","queueRoomCreatedSuccessfully":"Stanza della coda creata con successo","queueRoomName":"Nome della stanza della coda","queueRoomNameIsRequired":"Il nome della stanza della coda è obbligatorio","queueRooms":"Queue Rooms","queueRoomService":"Queue room service","queueRoomServiceIsRequired":"Il servizio della stanza della coda è obbligatorio","queues":"Queues","queuesClearedSuccessfully":"Code cancellate con successo","queueScreen":"Schermo della coda","queueServiceCreated":"Servizio di coda creato","queueServiceCreatedSuccessfully":"Servizio di coda creato con successo","queueStatus":"Stato della coda","queueTable":"Queue table","refills":"Rinnovi della prescrizione","remove":"Rimuovi","removePatient":"Rimuovi paziente","removePatientFromQueue":"Remove {{patient}} from queue?","requeue":"Rimettere in coda","returnDate":"Return Date","room":"Stanza","rRate":"Frequenza respiratoria","save":"Salva","saving":"Salvataggio in corso","scheduledToday":"Programmato per oggi","searchThisList":"Cerca in questo elenco","selectALocation":"Seleziona una sede","selectAVisitType":"Seleziona il tipo di visita","selectQueueLocation":"Seleziona una sede della coda","selectQueueRoomLocation":"Seleziona la sede della stanza della coda","selectQueueRoomService":"Seleziona un servizio per la stanza della coda","selectQueueService":"Seleziona un servizio di coda","selectService":"Select a service","selectServiceType":"Seleziona un tipo di servizio","serve":"Servi","servePatient":"Servi paziente","service":"Servizio","serviceLocation":"Service location","serviceQueues":"Code dei servizi","serviceQueuesAdmin":"Service Queues Admin","showPatientsWithStatus":"Show patients with status:","sp02":"SpO2","startAgeRangeInvalid":"L\'età iniziale non è valida","status":"Status","success":"Successo","temperature":"Temperatura","ticketNumber":"Ticket number","time":"Orario","timeCannotBeInFuture":"L\'orario non può essere nel futuro","timeCannotBePriorToPreviousQueueEntry":"L\'orario non può essere precedente all\'inizio della voce precedente in coda: {{time}}","timeOfTransition":"Orario di transizione","today":"Oggi","totalPatients":"Totale pazienti","transition":"Transition","transitionPatient":"Transition {{patient}}","transitionPatientAction":"Transition patient","triageForm":"Modulo triage","triageFormNotCompleted":"Triage form has not been completed for this visit","triageNote":"Nota del triage","undoQueueEntryTransitionSuccess":"Annullamento della transizione riuscito","undoTransition":"Annulla transizione","undoTransitionForPatient":"Undo transition for {{patient}}","unexpectedError":"An unexpected error occurred","unexpectedServerResponse":"Risposta inaspettata dal server","unknown":"Unknown","unknownError":"An unknown error occurred","urgent":"Urgent","useTodaysDate":"Usa la data di oggi","visitTabs":"Schede della visita","visitType":"Tipo di visita","vitals":"Parametri vitali","vitalsForm":"Modulo parametri vitali","waitingFor":"In attesa di","weight":"Peso"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[9538],{9538:e=>{e.exports=JSON.parse('{"actions":"Azioni","addedPatientToQueue":"Paziente aggiunto alla coda","addingPatientToQueue":"Aggiunta del paziente alla coda","addNewQueueService":"Aggiungi nuovo servizio di coda","addNewQueueServiceRoom":"Aggiungi nuova sala per il servizio di coda","addPatientToQueue":"Aggiungi paziente alla coda","addQueue":"Aggiungi coda","addQueueRoom":"Aggiungi stanza della coda","age":"Età","aListOfPatients":"Elenco dei pazienti in attesa per ","all":"Tutti","and":"E","any":"Qualsiasi","applyFilters":"Applica filtri","averageWaitTime":"Tempo medio di attesa oggi","backToSearchResults":"Torna ai risultati della ricerca","between":"Tra","bmi":"BMI","bp":"Pressione sanguigna","call":"Chiama","cancel":"Annulla","checkedInPatients":"Pazienti registrati","checkFilters":"Verifica i filtri sopra","clearAllQueueEntries":"Eliminare tutte le voci della coda?","clearAllQueueEntriesWarningMessage":"L\'eliminazione di tutte le voci della coda rimuoverà tutti i pazienti dalle code","clearQueue":"Svuota coda","clearQueueEntries":"Elimina voci della coda","comment":"Commento","configurePriorities":"Configura le priorità per continuare.","configureServices":"Configura i servizi per continuare.","configureStatus":"Configura gli stati per continuare.","confirmDeleteQueueEntry":"Sei sicuro di voler eliminare questa voce della coda?","confirmMoveBackQueueAndStatus":"Sei sicuro di voler riportare il paziente nella coda \\"{{queue}}\\" con stato \\"{{status}}\\"?","confirmMoveBackStatus":"Sei sicuro di voler riportare il paziente allo stato \\"{{status}}\\"?","confirmRemovePatientFromQueue":"Sei sicuro di voler rimuovere <1>{{patient}}</1> dalla coda {{queue}}?","currentValueFormatted":"{{value}} (Attuale)","currentVisit":"Consulto in corso","date":"Data","date&Time":"Data e ora","deleteEntry":"Elimina voce","deleteQueueEntry":"Elimina voce della coda","deleteQueueEntryForPatient":"Elimina voce della coda per {{patient}}","description":"Descrizione","discard":"Annulla","dose":"Dose","duplicateQueueEntry":"Il paziente è già nella coda selezionata","edit":"Modifica","editQueueEntry":"Modifica voce della coda","editQueueEntryForPatient":"Modifica voce della coda per {{patient}}","encounters":"Consulti","encounterType":"Tipo di consulto","endAgeRangeInvalid":"Intervallo di età finale non valido","endDate":"Data di fine","enterCommentHere":"Inserisci un commento qui","errorClearingQueues":"Errore durante lo svuotamento delle code","errorCreatingQueueRoom":"Errore nella creazione della sala di coda","errorCreatingQueueService":"Errore nella creazione del servizio di coda","errorFetchingVisit":"Errore nel recupero del consulto del paziente","errorLoadingQueueEntries":"Errore nel caricamento delle voci della coda","errorLoadingQueueEntry":"Errore nel caricamento della voce della coda","failedToLoadLocations":"Errore nel caricamento delle sedi","female":"Femmina","femaleLabelText":"Femmina","filter":"Filtra","filterTable":"Filtra tabella","formValidationFailed":"Errore nella validazione del modulo","gender":"Sesso","heartRate":"Frequenza cardiaca","height":"Altezza","hourAndMinuteFormatted":"{{hours}} ora(e) e {{minutes}} minuto(i)","incompleteForm":"Modulo incompleto","indication":"Indicazione","invalidQueue":"Coda non valida","invalidtableConfig":"Configurazione tabella non valida","location":"Sede","male":"Maschio","maleLabelText":"Maschio","manageServiceQueues":"Gestisci code di servizio","medications":"Farmaci","minuteFormatted":"{{minutes}} minuto(i)","minutes":"Minuti","missingRequiredFields":"Campi obbligatori mancanti: {{fields}}","move":"Sposta","movePatient":"Sposta {{patient}}","name":"Nome","nextPage":"Pagina successiva","noColumnsDefined":"Nessuna colonna della tabella definita. Controlla la configurazione","noEncountersFound":"Nessun consulto trovato","noMedicationsFound":"Nessun farmaco trovato","noNotesFound":"Nessuna nota trovata","noPatientsToDisplay":"Nessun paziente da mostrare","noPreviousVisitFound":"Nessuna visita precedente trovata","noPrioritiesConfigured":"Nessuna priorità configurata","noPrioritiesForService":"Il servizio selezionato non ha priorità consentite. Si tratta di un errore di configurazione. Si prega di contattare l\'amministratore di sistema.","noPrioritiesForServiceTitle":"Nessuna priorità disponibile","noServicesConfigured":"Nessun servizio configurato","noStatusConfigured":"Nessuno stato configurato","notableConfig":"Nessuna configurazione della tabella","notes":"Note","noVitalsFound":"Nessun parametro vitale trovato","noVitalsRecorded":"Nessun parametro vitale è stato registrato in questa visita","now":"Ora","onTime":"In orario","orderDurationAndUnit":"per {{duration}} {{durationUnit}}","orderIndefiniteDuration":"Durata indefinita","other":"Altro","patientAge":"Età","patientAlreadyInQueue":"Paziente già nella coda","patientAttendingService":"Paziente in visita al servizio","patientGender":"Genere","patientName":"Nome paziente","patientRemoved":"Paziente rimosso","patientRemovedFailed":"Errore nella rimozione del paziente dalla coda","patientRemovedSuccessfully":"Paziente rimosso con successo dalla coda","patientRequeued":"Il paziente è stato rimesso in coda","patients":"Pazienti","patientsCurrentlyInQueue":"Pazienti attualmente in coda","phoneNumber":"Numero di telefono","previousPage":"Pagina precedente","previousVisit":"Visita precedente","priority":"Priorità","provider":"Operatore","quantity":"Quantità","queue":"Coda","queueConceptRequired":"Il concetto di coda è obbligatorio","queueEntryAddedSuccessfully":"Voce della coda aggiunta con successo","queueEntryDeleteFailed":"Errore nell\'eliminazione della voce in coda","queueEntryDeleteSuccessful":"Voce in coda eliminata con successo","queueEntryEdited":"Voce in coda modificata","queueEntryEditedSuccessfully":"Voce in coda modificata con successo","queueEntryEditingFailed":"Errore nella modifica della voce in coda","queueEntryError":"Errore nell\'aggiunta del paziente alla coda","queueEntryTransitioned":"Voce in coda transitata","queueEntryTransitionedSuccessfully":"Voce in coda transitata con successo","queueEntryTransitionFailed":"Errore nel transito della voce in coda","queueEntryTransitionUndoFailed":"Errore nell\'annullamento del transito","queueEntryTransitionUndoSuccessful":"Annullamento del transito della voce in coda riuscito","queueEntryUpdateFailed":"Errore nell\'aggiornamento della voce in coda","queueLocation":"Sede della coda","queueLocationRequired":"La sede della coda è obbligatoria","queueName":"Nome della coda","queueNameRequired":"Il nome della coda è obbligatorio","queueRoomAdded":"Stanza della coda aggiunta","queueRoomCreatedSuccessfully":"Stanza della coda creata con successo","queueRoomName":"Nome della stanza della coda","queueRoomNameIsRequired":"Il nome della stanza della coda è obbligatorio","queueRooms":"Stanze della coda","queueRoomService":"Servizio della stanza della coda","queueRoomServiceIsRequired":"Il servizio della stanza della coda è obbligatorio","queues":"Code","queuesClearedSuccessfully":"Code cancellate con successo","queueScreen":"Schermo della coda","queueServiceCreated":"Servizio di coda creato","queueServiceCreatedSuccessfully":"Servizio di coda creato con successo","queueStatus":"Stato della coda","queueTable":"Tabella coda","refills":"Rinnovi della prescrizione","remove":"Rimuovi","removePatient":"Rimuovi paziente","removePatientFromQueue":"Rimuovere {{patient}} dalla coda?","requeue":"Rimettere in coda","returnDate":"Data di ritorno","room":"Stanza","rRate":"Frequenza respiratoria","save":"Salva","saving":"Salvataggio in corso","scheduledToday":"Programmato per oggi","searchThisList":"Cerca in questo elenco","selectALocation":"Seleziona una sede","selectAVisitType":"Seleziona il tipo di visita","selectQueueLocation":"Seleziona una sede della coda","selectQueueRoomLocation":"Seleziona la sede della stanza della coda","selectQueueRoomService":"Seleziona un servizio per la stanza della coda","selectQueueService":"Seleziona un servizio di coda","selectService":"Seleziona un servizio","selectServiceType":"Seleziona un tipo di servizio","serve":"Servi","servePatient":"Servi paziente","service":"Servizio","serviceLocation":"Sede di servizio","serviceQueues":"Code dei servizi","serviceQueuesAdmin":"Amministratori delle code dei servizi","showPatientsWithStatus":"Mostra pazienti con stato:","sp02":"SpO2","startAgeRangeInvalid":"L\'età iniziale non è valida","status":"Stato","success":"Successo","temperature":"Temperatura","ticketNumber":"Numero del ticket","time":"Orario","timeCannotBeInFuture":"L\'orario non può essere nel futuro","timeCannotBePriorToPreviousQueueEntry":"L\'orario non può essere precedente all\'inizio della voce precedente in coda: {{time}}","timeOfTransition":"Orario di transizione","today":"Oggi","totalPatients":"Totale pazienti","transition":"Trasferimento","transitionPatient":"Trasferisci {{patient}}","transitionPatientAction":"Trasferisci paziente","triageForm":"Modulo triage","triageFormNotCompleted":"Il modulo del triage non è stato completato per la visita corrente","triageNote":"Nota del triage","undoQueueEntryTransitionSuccess":"Annullamento della trasferimento riuscito","undoTransition":"Annulla trasferimento","undoTransitionForPatient":"Annulla trasferimento per {{patient}}","unexpectedError":"Si è verificato un errore sconosciuto","unexpectedServerResponse":"Risposta inaspettata dal server","unknown":"Sconosciuto","unknownError":"Si è verificato un errore sconosciuto","urgent":"Urgente","useTodaysDate":"Usa la data di oggi","visitTabs":"Schede della visita","visitType":"Tipo di visita","vitals":"Parametri vitali","vitalsForm":"Modulo parametri vitali","waitingFor":"In attesa di","weight":"Peso"}')}}]);
package/dist/9707.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see 9707.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[9707],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var a="";t.supports&&(a+="@supports (".concat(t.supports,") {")),t.media&&(a+="@media ".concat(t.media," {"));var i=void 0!==t.layer;i&&(a+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),a+=t.css,i&&(a+="}"),t.media&&(a+="}"),t.supports&&(a+="}");var r=t.sourceMap;r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),n.styleTagTransform(a,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},8802:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(30977),i=t.n(a),r=t(95924),o=t.n(r)()(i());o.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___VoDvq{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___sUKoi{background-color:#fa4d56;padding:.75rem;margin:.5rem 0 .5rem;display:flex;justify-content:space-between}.-esm-service-queues__queue-service-form__warningContainer___sUKoi .-esm-service-queues__queue-service-form__warning___\\+TrwV{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___fIyk0{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-service-queues__queue-service-form__grid___AsvQn{margin:0 1rem;padding:0}.-esm-service-queues__queue-service-form__input___KW3vc{margin-top:.75rem}.-esm-service-queues__queue-service-form__button___iiDAy{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-service-queues__queue-service-form__buttonSet___T1bcT{padding:0;margin-top:1rem}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__form___fIyk0{height:100%}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__buttonSet___T1bcT{padding:1.5rem 1rem;background-color:#fff}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/admin/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:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD51BF,kBAAA,CAGF,mEACE,wBDMe,CCLf,cEeW,CFdX,oBAAA,CACA,YAAA,CACA,6BAAA,CACA,8HCm1BE,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDj1BA,aDXI,CCeR,uDACE,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,4DACE,SAAA,CACA,eEhBW,CFqBX,mFACE,WAAA,CAGF,wFACE,mBAAA,CACA,qBDvDI",sourcesContent:["@use '@carbon/layout';\n\n$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: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\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:""}]),o.locals={heading:"-esm-service-queues__queue-service-form__heading___VoDvq",warningContainer:"-esm-service-queues__queue-service-form__warningContainer___sUKoi",warning:"-esm-service-queues__queue-service-form__warning___+TrwV",form:"-esm-service-queues__queue-service-form__form___fIyk0",grid:"-esm-service-queues__queue-service-form__grid___AsvQn",input:"-esm-service-queues__queue-service-form__input___KW3vc",button:"-esm-service-queues__queue-service-form__button___iiDAy",buttonSet:"-esm-service-queues__queue-service-form__buttonSet___T1bcT"};const s=o},30855:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},30977:e=>{function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}e.exports=function(e){var t,a,i=(a=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(t,a)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(t,a)||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.")}()),r=i[1],o=i[3];if(!o)return r;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),l="/*# ".concat(c," */"),u=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")});return[r].concat(u).concat([l]).join("\n")}return[r].join("\n")}},58139:(e,n,t)=>{e.exports=t(93296)},66985:(e,n,t)=>{t.d(n,{l:()=>r});var a=t(1343),i=t(54440);function r(){var e="".concat(i.fhirBaseUrl,"/Location?_summary=data&_tag=queue location"),n=(0,i.useFhirFetchAll)(e),t=n.data,r=n.error,o=n.isLoading;return{queueLocations:(0,a.useMemo)(function(){var e;return null!==(e=null==t?void 0:t.map(function(e){return e}).sort(function(e,n){return e.name.localeCompare(n.name,(0,i.getLocale)())}))&&void 0!==e?e:[]},[t]),isLoading:o,error:r}}},69707:(e,n,t)=>{t.r(n),t.d(n,{default:()=>O});var a=t(1343),i=t.n(a),r=t(93150),o=t(80824),s=t(68580),c=t(81160),l=t(9980),u=t(71123),p=t(54440),d=t(88010),f=t.n(d);var g=t(66985),h=t(72591),y=t.n(h),m=t(1740),b=t.n(m),v=t(88128),$=t.n(v),w=t(30855),A=t.n(w),k=t(93051),x=t.n(k),_=t(73656),C=t.n(_),z=t(8802),q={};q.styleTagTransform=C(),q.setAttributes=A(),q.insert=$().bind(null,"head"),q.domAPI=b(),q.insertStyleElement=x(),y()(z.A,q);const E=z.A&&z.A.locals?z.A.locals:void 0;function S(e,n,t,a,i,r,o){try{var s=e[r](o),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(a,i)}function M(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){M(e,n,t[n])})}return e}function N(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}const O=function(e){var n,t,a,d,h,y,m=e.closeWorkspace,b=(0,r.useTranslation)().t,v=(t=function(){var e="".concat(p.restBaseUrl,"/systemsetting/").concat("queue.serviceConceptSetName","?v=custom:(value)"),n=f()(e,p.openmrsFetch),t=n.data,a=n.error,i=n.isLoading;return{systemSetting:null==t?void 0:t.data,error:a,isLoading:i}}().systemSetting,a=function(e){var n=e?"".concat(p.restBaseUrl,"/concept/").concat(e):void 0,t=f()(n,p.openmrsFetch),a=t.data,i=t.error,r=t.isLoading;return{concept:null==a?void 0:a.data,error:i,isLoading:r}}(null==t?void 0:t.value),d=a.concept,h=a.error,y=a.isLoading,{queueConcepts:(null==d||null===(n=d.setMembers)||void 0===n?void 0:n.sort(function(e,n){return e.display.localeCompare(n.display)}))||[],error:h,isLoading:y}).queueConcepts,$=(0,g.l)().queueLocations,w=function(e){return s.Ik({queueName:s.Yj({required_error:e("queueNameRequired","Queue name is required")}).trim().min(1,e("queueNameRequired","Queue name is required")),queueServiceType:s.Yj({required_error:e("queueConceptRequired","Queue concept is required")}).trim().min(1,e("queueConceptRequired","Queue concept is required")),userLocation:s.Yj({required_error:e("queueLocationRequired","Queue location is required")}).trim().min(1,e("queueLocationRequired","Queue location is required"))})}(b),A=(0,o.mN)({resolver:(0,c.u)(w),defaultValues:{queueName:"",queueServiceType:"",userLocation:""}}),k=A.control,x=A.handleSubmit,_=A.formState,C=_.errors,z=_.isSubmitting;return i().createElement(l.lVW,{onSubmit:x(function(e){return(n=function(){var n,t;return function(e,n){var t,a,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(r=0)),r;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(6===s[0]&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,(i=e.queueName,r=e.queueServiceType,o=e.userLocation,s=new AbortController,(0,p.openmrsFetch)("".concat(p.restBaseUrl,"/queue"),{method:"POST",headers:{"Content-Type":"application/json"},signal:s.signal,body:{name:i,description:"",service:{uuid:r},location:{uuid:o}}}))];case 1:return a.sent(),(0,p.showSnackbar)({title:b("queueServiceCreated","Queue service created"),kind:"success",subtitle:b("queueServiceCreatedSuccessfully","Queue service created successfully")}),m(),[4,Promise.all([(0,u.Tk)("".concat(p.restBaseUrl,"/queue?").concat(e.userLocation)),(0,u.Tk)("".concat(p.restBaseUrl,"/queue?location=").concat(e.userLocation))])];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),(0,p.showSnackbar)({title:b("errorCreatingQueueService","Error creating queue service"),kind:"error",isLowContrast:!1,subtitle:(null==n||null===(t=n.responseBody)||void 0===t?void 0:t.message)||(null==n?void 0:n.message)}),[3,4];case 4:return[2]}var i,r,o,s})},function(){var e=this,t=arguments;return new Promise(function(a,i){var r=n.apply(e,t);function o(e){S(r,a,i,o,s,"next",e)}function s(e){S(r,a,i,o,s,"throw",e)}o(void 0)})})();var n}),className:E.form},i().createElement(l.BJc,{gap:5,className:E.grid},i().createElement(l.VPZ,null,i().createElement(l.Wdr,{className:E.input},i().createElement(o.xI,{name:"queueName",control:k,render:function(e){var n,t=e.field;return i().createElement(l.ksK,N(T({},t),{id:"queueName",invalidText:null===(n=C.queueName)||void 0===n?void 0:n.message,invalid:!!C.queueName,labelText:b("queueName","Queue name")}))}}))),i().createElement(l.VPZ,null,i().createElement(l.Wdr,{className:E.input},i().createElement(o.xI,{name:"queueServiceType",control:k,render:function(e){var n,t=e.field;return i().createElement(l.l6P,N(T({},t),{labelText:b("selectServiceType","Select a service type"),id:"queueServiceType",invalid:!!(null==C?void 0:C.queueServiceType),invalidText:null==C||null===(n=C.queueServiceType)||void 0===n?void 0:n.message}),i().createElement(l.ebT,{text:b("selectServiceType","Select a service type"),value:""}),(null==v?void 0:v.length)>0&&v.map(function(e){return i().createElement(l.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))}}))),i().createElement(l.VPZ,null,i().createElement(l.Wdr,{className:E.input},i().createElement(o.xI,{name:"userLocation",control:k,render:function(e){var n,t=e.field;return i().createElement(l.l6P,N(T({},t),{id:"location",invalid:!!(null==C?void 0:C.userLocation),invalidText:null==C||null===(n=C.userLocation)||void 0===n?void 0:n.message,labelText:b("selectALocation","Select a location")}),i().createElement(l.ebT,{text:b("selectALocation","Select a location"),value:""}),(null==$?void 0:$.length)>0&&$.map(function(e){return i().createElement(l.ebT,{key:e.id,text:e.name,value:e.id},e.name)}))}})))),i().createElement(l.Te$,{className:E.buttonSet},i().createElement(l.$nd,{className:E.button,kind:"secondary",onClick:m},b("cancel","Cancel")),i().createElement(l.$nd,{className:E.button,disabled:z,kind:"primary",type:"submit"},z?i().createElement(l.OuH,{description:b("saving","Saving")+"..."}):i().createElement("span",null,b("save","Save")))))}},71123:(e,n,t)=>{t.d(n,{Ay:()=>l,BE:()=>c,Tk:()=>r.mutate});var a=t(1343),i=t(58139),r=t(55434);const o=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)}),s={dedupe:!0},c=r.OBJECT.defineProperty(r.SWRConfig,"defaultValue",{value:r.defaultConfig}),l=(0,r.withArgs)((e,n,t)=>{const{cache:c,compare:l,suspense:u,fallbackData:p,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:g,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:m}=t,[b,v,$,w]=r.SWRGlobalState.get(c),[A,k]=(0,r.serialize)(e),x=(0,a.useRef)(!1),_=(0,a.useRef)(!1),C=(0,a.useRef)(A),z=(0,a.useRef)(n),q=(0,a.useRef)(t),E=()=>q.current,S=()=>E().isVisible()&&E().isOnline(),[M,T,N,O]=(0,r.createCacheHelper)(c,A),L=(0,a.useRef)({}).current,I=(0,r.isUndefined)(p)?t.fallback[A]:p,D=(e,n)=>{for(const t in L){const a=t;if("data"===a){if(!l(e[a],n[a])){if(!(0,r.isUndefined)(e[a]))return!1;if(!l(G,n[a]))return!1}}else if(n[a]!==e[a])return!1}return!0},R=(0,a.useMemo)(()=>{const e=!!A&&!!n&&((0,r.isUndefined)(d)?!E().isPaused()&&!u&&(!!(0,r.isUndefined)(f)||f):d),t=n=>{const t=(0,r.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},a=M(),i=O(),o=t(a),s=a===i?o:t(i);let c=o;return[()=>{const e=t(M());return D(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[c,A]),U=(0,i.useSyncExternalStore)((0,a.useCallback)(e=>N(A,(n,t)=>{D(t,n)||e()}),[c,A]),R[0],R[1]),j=!x.current,B=b[A]&&b[A].length>0,V=U.data,F=(0,r.isUndefined)(V)?I:V,P=U.error,W=(0,a.useRef)(F),G=m?(0,r.isUndefined)(V)?W.current:V:F,Q=!(B&&!(0,r.isUndefined)(P))&&(j&&!(0,r.isUndefined)(d)?d:!E().isPaused()&&(u?!(0,r.isUndefined)(F)&&f:(0,r.isUndefined)(F)||f)),Y=!!(A&&n&&j&&Q),H=(0,r.isUndefined)(U.isValidating)?Y:U.isValidating,K=(0,r.isUndefined)(U.isLoading)?Y:U.isLoading,J=(0,a.useCallback)(async e=>{const n=z.current;if(!A||!n||_.current||E().isPaused())return!1;let a,i,o=!0;const s=e||{},c=!$[A]||!s.dedupe,u=()=>r.IS_REACT_LEGACY?!_.current&&A===C.current&&x.current:A===C.current,p={isValidating:!1,isLoading:!1},d=()=>{T(p)},f=()=>{const e=$[A];e&&e[1]===i&&delete $[A]},g={isValidating:!0};(0,r.isUndefined)(M().data)&&(g.isLoading=!0);try{if(c&&(T(g),t.loadingTimeout&&(0,r.isUndefined)(M().data)&&setTimeout(()=>{o&&u()&&E().onLoadingSlow(A,t)},t.loadingTimeout),$[A]=[n(k),(0,r.getTimestamp)()]),[a,i]=$[A],a=await a,c&&setTimeout(f,t.dedupingInterval),!$[A]||$[A][1]!==i)return c&&u()&&E().onDiscarded(A),!1;p.error=r.UNDEFINED;const e=v[A];if(!(0,r.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),c&&u()&&E().onDiscarded(A),!1;const s=M().data;p.data=l(s,a)?s:a,c&&u()&&E().onSuccess(a,A,t)}catch(e){f();const n=E(),{shouldRetryOnError:t}=n;n.isPaused()||(p.error=e,c&&u()&&(n.onError(e,A,n),(!0===t||(0,r.isFunction)(t)&&t(e))&&(E().revalidateOnFocus&&E().revalidateOnReconnect&&!S()||n.onErrorRetry(e,A,n,e=>{const n=b[A];n&&n[0]&&n[0](r.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,d(),!0},[A,c]),X=(0,a.useCallback)((...e)=>(0,r.internalMutate)(c,C.current,...e),[]);if((0,r.useIsomorphicLayoutEffect)(()=>{z.current=n,q.current=t,(0,r.isUndefined)(V)||(W.current=V)}),(0,r.useIsomorphicLayoutEffect)(()=>{if(!A)return;const e=J.bind(r.UNDEFINED,s);let n=0;const t=(0,r.subscribeCallback)(A,b,(t,a={})=>{if(t==r.revalidateEvents.FOCUS_EVENT){const t=Date.now();E().revalidateOnFocus&&t>n&&S()&&(n=t+E().focusThrottleInterval,e())}else if(t==r.revalidateEvents.RECONNECT_EVENT)E().revalidateOnReconnect&&S()&&e();else{if(t==r.revalidateEvents.MUTATE_EVENT)return J();if(t==r.revalidateEvents.ERROR_REVALIDATE_EVENT)return J(a)}});return _.current=!1,C.current=A,x.current=!0,T({_k:k}),Q&&((0,r.isUndefined)(F)||r.IS_SERVER?e():(0,r.rAF)(e)),()=>{_.current=!0,t()}},[A]),(0,r.useIsomorphicLayoutEffect)(()=>{let e;function n(){const n=(0,r.isFunction)(g)?g(M().data):g;n&&-1!==e&&(e=setTimeout(t,n))}function t(){M().error||!h&&!E().isVisible()||!y&&!E().isOnline()?n():J(s).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}},[g,h,y,A]),(0,a.useDebugValue)(G),u&&(0,r.isUndefined)(F)&&A){if(!r.IS_REACT_LEGACY&&r.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");z.current=n,q.current=t,_.current=!1;const e=w[A];if(!(0,r.isUndefined)(e)){const n=X(e);o(n)}if(!(0,r.isUndefined)(P))throw P;{const e=J(s);(0,r.isUndefined)(G)||(e.status="fulfilled",e.value=!0),o(e)}}return{mutate:X,get data(){return L.data=!0,G},get error(){return L.error=!0,P},get isValidating(){return L.isValidating=!0,H},get isLoading(){return L.isLoading=!0,K}}})},72591:e=>{var n=[];function t(e){for(var t=-1,a=0;a<n.length;a++)if(n[a].identifier===e){t=a;break}return t}function a(e,a){for(var r={},o=[],s=0;s<e.length;s++){var c=e[s],l=a.base?c[0]+a.base:c[0],u=r[l]||0,p="".concat(l," ").concat(u);r[l]=u+1;var d=t(p),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var g=i(f,a);a.byIndex=s,n.splice(s,0,{identifier:p,updater:g,references:1})}o.push(p)}return o}function i(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,i){var r=a(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<r.length;o++){var s=t(r[o]);n[s].references--}for(var c=a(e,i),l=0;l<r.length;l++){var u=t(r[l]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}r=c}}},73656:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},88128:e=>{var n={};e.exports=function(e,t){var a=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}},93051:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},93296:(e,n,t)=>{var a=t(1343),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},r=a.useState,o=a.useEffect,s=a.useLayoutEffect,c=a.useDebugValue;function l(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),a=r({inst:{value:t,getSnapshot:n}}),i=a[0].inst,u=a[1];return s(function(){i.value=t,i.getSnapshot=n,l(i)&&u({inst:i})},[e,t,n]),o(function(){return l(i)&&u({inst:i}),e(function(){l(i)&&u({inst:i})})},[e]),c(t),t};n.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},95924:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t}).join("")},n.i=function(e,t,a){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(a)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);a&&i[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}}}]);
2
+ "use strict";(globalThis.webpackChunk_openmrs_esm_service_queues_app=globalThis.webpackChunk_openmrs_esm_service_queues_app||[]).push([[9707],{1740:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var a="";t.supports&&(a+="@supports (".concat(t.supports,") {")),t.media&&(a+="@media ".concat(t.media," {"));var i=void 0!==t.layer;i&&(a+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),a+=t.css,i&&(a+="}"),t.media&&(a+="}"),t.supports&&(a+="}");var r=t.sourceMap;r&&"undefined"!=typeof btoa&&(a+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),n.styleTagTransform(a,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},8802:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(30977),i=t.n(a),r=t(95924),o=t.n(r)()(i());o.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___VoDvq{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___sUKoi{background-color:#fa4d56;padding:.75rem;margin:.5rem 0 .5rem;display:flex;justify-content:space-between}.-esm-service-queues__queue-service-form__warningContainer___sUKoi .-esm-service-queues__queue-service-form__warning___\\+TrwV{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___fIyk0{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-service-queues__queue-service-form__grid___AsvQn{margin:0 1rem;padding:0}.-esm-service-queues__queue-service-form__input___KW3vc{margin-top:.75rem}.-esm-service-queues__queue-service-form__button___iiDAy{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-service-queues__queue-service-form__buttonSet___T1bcT{padding:0;margin-top:1rem}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__form___fIyk0{height:100%}.omrs-breakpoint-lt-desktop .-esm-service-queues__queue-service-form__buttonSet___T1bcT{padding:1.5rem 1rem;background-color:#fff}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/admin/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:"AAsDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CACA,yBAAA,CACA,+BAAA,CACA,oGAAA,CACA,2GAAA,CCzDF,0DC81BI,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CD51BF,kBAAA,CAGF,mEACE,wBDMe,CCLf,cEeW,CFdX,oBAAA,CACA,YAAA,CACA,6BAAA,CACA,8HCm1BE,2DAAA,CAAA,0DAAA,CAAA,8DAAA,CAAA,mEAAA,CDj1BA,aDXI,CCeR,uDACE,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,4DACE,SAAA,CACA,eEhBW,CFqBX,mFACE,WAAA,CAGF,wFACE,mBAAA,CACA,qBDvDI",sourcesContent:["@use '@carbon/layout';\n\n$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: #{layout.$spacing-10};\n --workspace-header-height: #{layout.$spacing-09};\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:""}]),o.locals={heading:"-esm-service-queues__queue-service-form__heading___VoDvq",warningContainer:"-esm-service-queues__queue-service-form__warningContainer___sUKoi",warning:"-esm-service-queues__queue-service-form__warning___+TrwV",form:"-esm-service-queues__queue-service-form__form___fIyk0",grid:"-esm-service-queues__queue-service-form__grid___AsvQn",input:"-esm-service-queues__queue-service-form__input___KW3vc",button:"-esm-service-queues__queue-service-form__button___iiDAy",buttonSet:"-esm-service-queues__queue-service-form__buttonSet___T1bcT"};const s=o},30855:(e,n,t)=>{e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},30977:e=>{function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}e.exports=function(e){var t,a,i=(a=4,function(e){if(Array.isArray(e))return e}(t=e)||function(e,n){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var a,i,r=[],o=!0,s=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(r.push(a.value),!n||r.length!==n);o=!0);}catch(e){s=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(s)throw i}}return r}}(t,a)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(t,a)||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.")}()),r=i[1],o=i[3];if(!o)return r;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),l="/*# ".concat(c," */"),u=o.sources.map(function(e){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(e," */")});return[r].concat(u).concat([l]).join("\n")}return[r].join("\n")}},58139:(e,n,t)=>{e.exports=t(93296)},66985:(e,n,t)=>{t.d(n,{l:()=>r});var a=t(1343),i=t(54440);function r(){var e="".concat(i.fhirBaseUrl,"/Location?_summary=data&_tag=queue location"),n=(0,i.useFhirFetchAll)(e),t=n.data,r=n.error,o=n.isLoading;return{queueLocations:(0,a.useMemo)(function(){var e;return null!==(e=null==t?void 0:t.map(function(e){return e}).sort(function(e,n){return e.name.localeCompare(n.name,(0,i.getLocale)())}))&&void 0!==e?e:[]},[t]),isLoading:o,error:r}}},69707:(e,n,t)=>{t.r(n),t.d(n,{default:()=>O});var a=t(1343),i=t.n(a),r=t(93150),o=t(80824),s=t(68580),c=t(81160),l=t(6542),u=t(71123),p=t(54440),d=t(88010),f=t.n(d);var g=t(66985),h=t(72591),y=t.n(h),m=t(1740),b=t.n(m),v=t(88128),$=t.n(v),w=t(30855),A=t.n(w),k=t(93051),x=t.n(k),_=t(73656),C=t.n(_),z=t(8802),q={};q.styleTagTransform=C(),q.setAttributes=A(),q.insert=$().bind(null,"head"),q.domAPI=b(),q.insertStyleElement=x(),y()(z.A,q);const E=z.A&&z.A.locals?z.A.locals:void 0;function S(e,n,t,a,i,r,o){try{var s=e[r](o),c=s.value}catch(e){return void t(e)}s.done?n(c):Promise.resolve(c).then(a,i)}function M(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},a=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.forEach(function(n){M(e,n,t[n])})}return e}function N(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):function(e){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n.push.apply(n,t)}return n}(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}const O=function(e){var n,t,a,d,h,y,m=e.closeWorkspace,b=(0,r.useTranslation)().t,v=(t=function(){var e="".concat(p.restBaseUrl,"/systemsetting/").concat("queue.serviceConceptSetName","?v=custom:(value)"),n=f()(e,p.openmrsFetch),t=n.data,a=n.error,i=n.isLoading;return{systemSetting:null==t?void 0:t.data,error:a,isLoading:i}}().systemSetting,a=function(e){var n=e?"".concat(p.restBaseUrl,"/concept/").concat(e):void 0,t=f()(n,p.openmrsFetch),a=t.data,i=t.error,r=t.isLoading;return{concept:null==a?void 0:a.data,error:i,isLoading:r}}(null==t?void 0:t.value),d=a.concept,h=a.error,y=a.isLoading,{queueConcepts:(null==d||null===(n=d.setMembers)||void 0===n?void 0:n.sort(function(e,n){return e.display.localeCompare(n.display)}))||[],error:h,isLoading:y}).queueConcepts,$=(0,g.l)().queueLocations,w=function(e){return s.Ik({queueName:s.Yj({required_error:e("queueNameRequired","Queue name is required")}).trim().min(1,e("queueNameRequired","Queue name is required")),queueServiceType:s.Yj({required_error:e("queueConceptRequired","Queue concept is required")}).trim().min(1,e("queueConceptRequired","Queue concept is required")),userLocation:s.Yj({required_error:e("queueLocationRequired","Queue location is required")}).trim().min(1,e("queueLocationRequired","Queue location is required"))})}(b),A=(0,o.mN)({resolver:(0,c.u)(w),defaultValues:{queueName:"",queueServiceType:"",userLocation:""}}),k=A.control,x=A.handleSubmit,_=A.formState,C=_.errors,z=_.isSubmitting;return i().createElement(l.lVW,{onSubmit:x(function(e){return(n=function(){var n,t;return function(e,n){var t,a,i,r={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(c){return function(s){if(t)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(r=0)),r;)try{if(t=1,a&&(i=2&s[0]?a.return:s[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,s[1])).done)return i;switch(a=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return r.label++,{value:s[1],done:!1};case 5:r.label++,a=s[1],s=[0];continue;case 7:s=r.ops.pop(),r.trys.pop();continue;default:if(!((i=(i=r.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){r=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){r.label=s[1];break}if(6===s[0]&&r.label<i[1]){r.label=i[1],i=s;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(s);break}i[2]&&r.ops.pop(),r.trys.pop();continue}s=n.call(e,r)}catch(e){s=[6,e],a=0}finally{t=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,(i=e.queueName,r=e.queueServiceType,o=e.userLocation,s=new AbortController,(0,p.openmrsFetch)("".concat(p.restBaseUrl,"/queue"),{method:"POST",headers:{"Content-Type":"application/json"},signal:s.signal,body:{name:i,description:"",service:{uuid:r},location:{uuid:o}}}))];case 1:return a.sent(),(0,p.showSnackbar)({title:b("queueServiceCreated","Queue service created"),kind:"success",subtitle:b("queueServiceCreatedSuccessfully","Queue service created successfully")}),m(),[4,Promise.all([(0,u.Tk)("".concat(p.restBaseUrl,"/queue?").concat(e.userLocation)),(0,u.Tk)("".concat(p.restBaseUrl,"/queue?location=").concat(e.userLocation))])];case 2:return a.sent(),[3,4];case 3:return n=a.sent(),(0,p.showSnackbar)({title:b("errorCreatingQueueService","Error creating queue service"),kind:"error",isLowContrast:!1,subtitle:(null==n||null===(t=n.responseBody)||void 0===t?void 0:t.message)||(null==n?void 0:n.message)}),[3,4];case 4:return[2]}var i,r,o,s})},function(){var e=this,t=arguments;return new Promise(function(a,i){var r=n.apply(e,t);function o(e){S(r,a,i,o,s,"next",e)}function s(e){S(r,a,i,o,s,"throw",e)}o(void 0)})})();var n}),className:E.form},i().createElement(l.BJc,{gap:5,className:E.grid},i().createElement(l.VPZ,null,i().createElement(l.Wdr,{className:E.input},i().createElement(o.xI,{name:"queueName",control:k,render:function(e){var n,t=e.field;return i().createElement(l.ksK,N(T({},t),{id:"queueName",invalidText:null===(n=C.queueName)||void 0===n?void 0:n.message,invalid:!!C.queueName,labelText:b("queueName","Queue name")}))}}))),i().createElement(l.VPZ,null,i().createElement(l.Wdr,{className:E.input},i().createElement(o.xI,{name:"queueServiceType",control:k,render:function(e){var n,t=e.field;return i().createElement(l.l6P,N(T({},t),{labelText:b("selectServiceType","Select a service type"),id:"queueServiceType",invalid:!!(null==C?void 0:C.queueServiceType),invalidText:null==C||null===(n=C.queueServiceType)||void 0===n?void 0:n.message}),i().createElement(l.ebT,{text:b("selectServiceType","Select a service type"),value:""}),(null==v?void 0:v.length)>0&&v.map(function(e){return i().createElement(l.ebT,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))}}))),i().createElement(l.VPZ,null,i().createElement(l.Wdr,{className:E.input},i().createElement(o.xI,{name:"userLocation",control:k,render:function(e){var n,t=e.field;return i().createElement(l.l6P,N(T({},t),{id:"location",invalid:!!(null==C?void 0:C.userLocation),invalidText:null==C||null===(n=C.userLocation)||void 0===n?void 0:n.message,labelText:b("selectALocation","Select a location")}),i().createElement(l.ebT,{text:b("selectALocation","Select a location"),value:""}),(null==$?void 0:$.length)>0&&$.map(function(e){return i().createElement(l.ebT,{key:e.id,text:e.name,value:e.id},e.name)}))}})))),i().createElement(l.Te$,{className:E.buttonSet},i().createElement(l.$nd,{className:E.button,kind:"secondary",onClick:m},b("cancel","Cancel")),i().createElement(l.$nd,{className:E.button,disabled:z,kind:"primary",type:"submit"},z?i().createElement(l.OuH,{description:b("saving","Saving")+"..."}):i().createElement("span",null,b("save","Save")))))}},71123:(e,n,t)=>{t.d(n,{Ay:()=>l,BE:()=>c,Tk:()=>r.mutate});var a=t(1343),i=t(58139),r=t(55434);const o=a.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e)}),s={dedupe:!0},c=r.OBJECT.defineProperty(r.SWRConfig,"defaultValue",{value:r.defaultConfig}),l=(0,r.withArgs)((e,n,t)=>{const{cache:c,compare:l,suspense:u,fallbackData:p,revalidateOnMount:d,revalidateIfStale:f,refreshInterval:g,refreshWhenHidden:h,refreshWhenOffline:y,keepPreviousData:m}=t,[b,v,$,w]=r.SWRGlobalState.get(c),[A,k]=(0,r.serialize)(e),x=(0,a.useRef)(!1),_=(0,a.useRef)(!1),C=(0,a.useRef)(A),z=(0,a.useRef)(n),q=(0,a.useRef)(t),E=()=>q.current,S=()=>E().isVisible()&&E().isOnline(),[M,T,N,O]=(0,r.createCacheHelper)(c,A),L=(0,a.useRef)({}).current,I=(0,r.isUndefined)(p)?t.fallback[A]:p,D=(e,n)=>{for(const t in L){const a=t;if("data"===a){if(!l(e[a],n[a])){if(!(0,r.isUndefined)(e[a]))return!1;if(!l(G,n[a]))return!1}}else if(n[a]!==e[a])return!1}return!0},R=(0,a.useMemo)(()=>{const e=!!A&&!!n&&((0,r.isUndefined)(d)?!E().isPaused()&&!u&&(!!(0,r.isUndefined)(f)||f):d),t=n=>{const t=(0,r.mergeObjects)(n);return delete t._k,e?{isValidating:!0,isLoading:!0,...t}:t},a=M(),i=O(),o=t(a),s=a===i?o:t(i);let c=o;return[()=>{const e=t(M());return D(e,c)?(c.data=e.data,c.isLoading=e.isLoading,c.isValidating=e.isValidating,c.error=e.error,c):(c=e,e)},()=>s]},[c,A]),U=(0,i.useSyncExternalStore)((0,a.useCallback)(e=>N(A,(n,t)=>{D(t,n)||e()}),[c,A]),R[0],R[1]),j=!x.current,B=b[A]&&b[A].length>0,V=U.data,F=(0,r.isUndefined)(V)?I:V,P=U.error,W=(0,a.useRef)(F),G=m?(0,r.isUndefined)(V)?W.current:V:F,Q=!(B&&!(0,r.isUndefined)(P))&&(j&&!(0,r.isUndefined)(d)?d:!E().isPaused()&&(u?!(0,r.isUndefined)(F)&&f:(0,r.isUndefined)(F)||f)),Y=!!(A&&n&&j&&Q),H=(0,r.isUndefined)(U.isValidating)?Y:U.isValidating,K=(0,r.isUndefined)(U.isLoading)?Y:U.isLoading,J=(0,a.useCallback)(async e=>{const n=z.current;if(!A||!n||_.current||E().isPaused())return!1;let a,i,o=!0;const s=e||{},c=!$[A]||!s.dedupe,u=()=>r.IS_REACT_LEGACY?!_.current&&A===C.current&&x.current:A===C.current,p={isValidating:!1,isLoading:!1},d=()=>{T(p)},f=()=>{const e=$[A];e&&e[1]===i&&delete $[A]},g={isValidating:!0};(0,r.isUndefined)(M().data)&&(g.isLoading=!0);try{if(c&&(T(g),t.loadingTimeout&&(0,r.isUndefined)(M().data)&&setTimeout(()=>{o&&u()&&E().onLoadingSlow(A,t)},t.loadingTimeout),$[A]=[n(k),(0,r.getTimestamp)()]),[a,i]=$[A],a=await a,c&&setTimeout(f,t.dedupingInterval),!$[A]||$[A][1]!==i)return c&&u()&&E().onDiscarded(A),!1;p.error=r.UNDEFINED;const e=v[A];if(!(0,r.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),c&&u()&&E().onDiscarded(A),!1;const s=M().data;p.data=l(s,a)?s:a,c&&u()&&E().onSuccess(a,A,t)}catch(e){f();const n=E(),{shouldRetryOnError:t}=n;n.isPaused()||(p.error=e,c&&u()&&(n.onError(e,A,n),(!0===t||(0,r.isFunction)(t)&&t(e))&&(E().revalidateOnFocus&&E().revalidateOnReconnect&&!S()||n.onErrorRetry(e,A,n,e=>{const n=b[A];n&&n[0]&&n[0](r.revalidateEvents.ERROR_REVALIDATE_EVENT,e)},{retryCount:(s.retryCount||0)+1,dedupe:!0}))))}return o=!1,d(),!0},[A,c]),X=(0,a.useCallback)((...e)=>(0,r.internalMutate)(c,C.current,...e),[]);if((0,r.useIsomorphicLayoutEffect)(()=>{z.current=n,q.current=t,(0,r.isUndefined)(V)||(W.current=V)}),(0,r.useIsomorphicLayoutEffect)(()=>{if(!A)return;const e=J.bind(r.UNDEFINED,s);let n=0;const t=(0,r.subscribeCallback)(A,b,(t,a={})=>{if(t==r.revalidateEvents.FOCUS_EVENT){const t=Date.now();E().revalidateOnFocus&&t>n&&S()&&(n=t+E().focusThrottleInterval,e())}else if(t==r.revalidateEvents.RECONNECT_EVENT)E().revalidateOnReconnect&&S()&&e();else{if(t==r.revalidateEvents.MUTATE_EVENT)return J();if(t==r.revalidateEvents.ERROR_REVALIDATE_EVENT)return J(a)}});return _.current=!1,C.current=A,x.current=!0,T({_k:k}),Q&&((0,r.isUndefined)(F)||r.IS_SERVER?e():(0,r.rAF)(e)),()=>{_.current=!0,t()}},[A]),(0,r.useIsomorphicLayoutEffect)(()=>{let e;function n(){const n=(0,r.isFunction)(g)?g(M().data):g;n&&-1!==e&&(e=setTimeout(t,n))}function t(){M().error||!h&&!E().isVisible()||!y&&!E().isOnline()?n():J(s).then(n)}return n(),()=>{e&&(clearTimeout(e),e=-1)}},[g,h,y,A]),(0,a.useDebugValue)(G),u&&(0,r.isUndefined)(F)&&A){if(!r.IS_REACT_LEGACY&&r.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");z.current=n,q.current=t,_.current=!1;const e=w[A];if(!(0,r.isUndefined)(e)){const n=X(e);o(n)}if(!(0,r.isUndefined)(P))throw P;{const e=J(s);(0,r.isUndefined)(G)||(e.status="fulfilled",e.value=!0),o(e)}}return{mutate:X,get data(){return L.data=!0,G},get error(){return L.error=!0,P},get isValidating(){return L.isValidating=!0,H},get isLoading(){return L.isLoading=!0,K}}})},72591:e=>{var n=[];function t(e){for(var t=-1,a=0;a<n.length;a++)if(n[a].identifier===e){t=a;break}return t}function a(e,a){for(var r={},o=[],s=0;s<e.length;s++){var c=e[s],l=a.base?c[0]+a.base:c[0],u=r[l]||0,p="".concat(l," ").concat(u);r[l]=u+1;var d=t(p),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)n[d].references++,n[d].updater(f);else{var g=i(f,a);a.byIndex=s,n.splice(s,0,{identifier:p,updater:g,references:1})}o.push(p)}return o}function i(e,n){var t=n.domAPI(n);return t.update(e),function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,i){var r=a(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<r.length;o++){var s=t(r[o]);n[s].references--}for(var c=a(e,i),l=0;l<r.length;l++){var u=t(r[l]);0===n[u].references&&(n[u].updater(),n.splice(u,1))}r=c}}},73656:e=>{e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},88128:e=>{var n={};e.exports=function(e,t){var a=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}},93051:e=>{e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},93296:(e,n,t)=>{var a=t(1343),i="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},r=a.useState,o=a.useEffect,s=a.useLayoutEffect,c=a.useDebugValue;function l(e){var n=e.getSnapshot;e=e.value;try{var t=n();return!i(e,t)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,n){return n()}:function(e,n){var t=n(),a=r({inst:{value:t,getSnapshot:n}}),i=a[0].inst,u=a[1];return s(function(){i.value=t,i.getSnapshot=n,l(i)&&u({inst:i})},[e,t,n]),o(function(){return l(i)&&u({inst:i}),e(function(){l(i)&&u({inst:i})})},[e]),c(t),t};n.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:u},95924:e=>{e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=e(n);return n[2]?"@media ".concat(n[2]," {").concat(t,"}"):t}).join("")},n.i=function(e,t,a){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(a)for(var r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);a&&i[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),n.push(c))}},n}}}]);