1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"v4.207.0-hotfix.1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7433868d-27ee-4e79-b080-5809eb942266",e._sentryDebugIdIdentifier="sentry-dbid-7433868d-27ee-4e79-b080-5809eb942266")}catch(e){}}();"use strict";(globalThis.rspackChunkvitals||=[]).push([[4760],{25147(e,t,r){var o,i,l=r(96540),n=r(39812),a=r(69826),s=r(13661),c=r(59700),d=r(19732),u=r(98946),h=r(4667),g=r(45903),m=r(88041),p=r(31105),f=r(92125),w=r(94275),v=r(99281),b=r(61028),y=r(45054),x=r(20400),k=r(78839),j=r(92429),C=r(65908),A=r(28076),I=r(25467),S=r(44860),_=r(44338),T=r(12690),q=r(18032),E=r(68750),P=r(86620),D=r(12300),B=r(24232),M=r(72143),W=r(20174),N=r(28826),O=r(88609),z=r(52301),L=r(89460),F=r(14854),U=r(72824),R=r(35996),V=r(12758),$=r(72593),Z=r(60998),G=r(35817),H=r(36792),Y=r(10449),K=r(82077),J=r(38160),Q=r(7052),X=r(49977),ee=r(25340),et=r(53515),er=r(21603),eo=r(61161),ei=r(94809),el=r(59634),en=r(69675),ea=r(80082),es=r(62029),ec=r(1918),ed=r(9227),eu=r(61852),eh=r(35115),eg=r(64721),em=r(41722),ep=r(74822),ef=r(72338),ew=r(40396),ev=r(12615),eb=r(6129),ey=r(71919),ex=r(11963),ek=r(20065),ej=r(26226),eC=r(65510),eA=r(97286),eI=r(53234),eS=r(97665),e_=r(44149),eT=r(5338),eq=r(76912),eE=r(49785),eP={197(e,t){var r=Symbol.for("react.transitional.element");function o(e,t,o){var i=null;if(void 0!==o&&(i=""+o),void 0!==t.key&&(i=""+t.key),"key"in t)for(var l in o={},t)"key"!==l&&(o[l]=t[l]);else o=t;return{$$typeof:r,type:e,key:i,ref:void 0!==(t=o.ref)?t:null,props:o}}t.Fragment=Symbol.for("react.fragment"),t.jsx=o,t.jsxs=o},85(e,t,r){e.exports=r(197)},87(){},998(){},296(e,t,r){var o=r(649),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},l=o.useState,n=o.useEffect,a=o.useLayoutEffect,s=o.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var d="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=l({inst:{value:r,getSnapshot:t}}),i=o[0].inst,d=o[1];return a(function(){i.value=r,i.getSnapshot=t,c(i)&&d({inst:i})},[e,r,t]),n(function(){return c(i)&&d({inst:i}),e(function(){c(i)&&d({inst:i})})},[e]),s(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:d},139(e,t,r){e.exports=r(296)},649(e){e.exports=nt||(nt=r.t(l,2))}},eD={};function eB(e){var t=eD[e];if(void 0!==t)return t.exports;var r=eD[e]={exports:{}};return eP[e](r,r.exports,eB),r.exports}eB.d=(e,t)=>{for(var r in t)eB.o(t,r)&&!eB.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},eB.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),eB.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var eM=eB(85),eW=eB(649),eN=eB(139);let eO=eW.useInsertionEffect,ez="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement?eW.useLayoutEffect:eW.useEffect,eL=eO||ez,eF=e=>{let t=eW.useRef([e,(...e)=>t[0](...e)]).current;return eL(()=>{t[0]=e}),t[1]},eU="pushState",eR="replaceState",eV=["popstate",eU,eR,"hashchange"],e$=e=>{for(let t of eV)addEventListener(t,e);return()=>{for(let t of eV)removeEventListener(t,e)}},eZ=(e,t)=>(0,eN.useSyncExternalStore)(e$,e,t),eG=()=>location.search,eH=()=>location.pathname,eY=(e,{replace:t=!1,state:r=null}={})=>history[t?eR:eU](r,"",e),eK=Symbol.for("wouter_v3");if("u">typeof history&&void 0===window[eK]){for(let e of[eU,eR]){let t=history[e];history[e]=function(){let r=t.apply(this,arguments),o=new Event(e);return o.arguments=arguments,dispatchEvent(o),r}}Object.defineProperty(window,eK,{value:!0})}let eJ=(e="")=>"/"===e?"":e,eQ=e=>{try{return decodeURI(e)}catch(t){return e}},eX={hook:(e={})=>[(({ssrPath:e}={})=>eZ(eH,null!=e?()=>e:eH))(e),eY],searchHook:({ssrSearch:e}={})=>eZ(eG,null!=e?()=>e:eG),parser:function(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,o,i,l,n=[],a="",s=e.split("/");for(s[0]||s.shift();i=s.shift();)"*"===(r=i[0])?(n.push(r),a+="?"===i[1]?"(?:/(.*))?":"/(.*)"):":"===r?(o=i.indexOf("?",1),l=i.indexOf(".",1),n.push(i.substring(1,~o?o:~l?l:i.length)),a+=~o&&!~l?"(?:/([^/]+?))?":"/([^/]+?)",~l&&(a+=(~o?"?":"")+"\\"+i.substring(l))):a+="/"+i;return{keys:n,pattern:RegExp("^"+a+(t?"(?=$|/)":"/?$"),"i")}},base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,r)=>e(t,r)},e0=(0,eW.createContext)(eX),e1=()=>(0,eW.useContext)(e0),e2={},e4=(0,eW.createContext)(e2),e8=()=>(0,eW.useContext)(e4),e5=e=>{let[t,r]=e.hook(e);return[((e="",t)=>{let r,o;return r=eQ(eJ(e)),(o=eQ(t)).toLowerCase().indexOf(r.toLowerCase())?"~"+o:o.slice(r.length)||"/"})(e.base,t),eF((t,o)=>{let i;return e.aroundNav(r,(i=e.base,"~"===t[0]?t.slice(1):eJ(i)+t),o)})]},e7=(e,t,r,o)=>{let i,l,{pattern:n,keys:a}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",o),s=n.exec(r)||[],[c,...d]=s;return void 0!==c?[!0,(i=!1!==a?Object.fromEntries(a.map((e,t)=>[e,d[t]])):s.groups,l={...d},i&&Object.assign(l,i),l),...o?[c]:[]]:[!1,null]},e3=({children:e,...t})=>{let r=e1(),o=t.hook?eX:r,i=o,[l,n=t.ssrSearch??""]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=n,t.ssrPath=l),t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let a=(0,eW.useRef)({}),s=a.current,c=s;for(let e in o){let r="base"===e?o[e]+(t[e]??""):t[e]??o[e];s===c&&r!==c[e]&&(a.current=c={...c}),c[e]=r,r===o[e]&&r===i[e]||(i=c)}return(0,eW.createElement)(e0.Provider,{value:i,children:e})},e6=({children:e,component:t},r)=>t?(0,eW.createElement)(t,{params:r}):"function"==typeof e?e(r):e,e9=({path:e,nest:t,match:r,...o}
1)=>{var i;let l,n,a=e1(),[s]=e5(a),[c,d,u]=r??e7(a.parser,e,s,t),h=(i={...e8(),...d},n=(l=(0,eW.useRef)(e2)).current,l.current=Object.keys(i).length!==Object.keys(n).length||Object.entries(i).some(([e,t])=>t!==n[e])?i:n);if(!c)return null;let g=u?(0,eW.createElement)(e3,{base:u},e6(o,h)):e6(o,h);return(0,eW.createElement)(e4.Provider,{value:h,children:g})},te=((0,eW.forwardRef)((e,t)=>{let r=e1(),[o,i]=e5(r),{to:l="",href:n=l,onClick:a,asChild:s,children:c,className:d,replace:u,state:h,transition:g,...m}=e,p=eF(t=>{t.ctrlKey||t.metaKey||t.altKey||t.shiftKey||0!==t.button||(a?.(t),t.defaultPrevented||(t.preventDefault(),i(n,e)))}),f=r.hrefs("~"===n[0]?n.slice(1):r.base+n,r);return s&&(0,eW.isValidElement)(c)?(0,eW.cloneElement)(c,{onClick:p,href:f}):(0,eW.createElement)("a",{...m,onClick:p,href:f,className:d?.call?d(o===n):d,children:c,ref:t})}),e=>Array.isArray(e)?e.flatMap(e=>te(e&&e.type===eW.Fragment?e.props.children:e)):[e]),tt=({children:e,location:t})=>{let r=e1(),[o]=e5(r);for(let i of te(e)){let e=0;if((0,eW.isValidElement)(i)&&(e=e7(r.parser,i.props.path,t||o,i.props.nest))[0])return(0,eW.cloneElement)(i,{match:e})}return null},tr=e=>{let{to:t,href:r=t}=e,o=e1(),[,i]=e5(o),l=eF(()=>i(t||r,e)),{ssrContext:n}=o;return ez(()=>{l()},[]),n&&(n.redirectTo=t),null},to=({path:e="/",searchPath:t="",static:r,record:o}={})=>{var i;let l=e;t&&(l+=e.split("?")[1]?"&":"?",l+=t);let[n,a=""]=l.split("?"),s=[l],c=(i=i||new Map,function(e,t){var r=i.get(e);r?r.push(t):i.set(e,[t])}),d=function(e,t){var r=i.get(e);r&&(t?r.splice(r.indexOf(t)>>>0,1):i.set(e,[]))},u=function(e,t){var r=i.get(e);r&&r.slice().map(function(e){e(t)}),(r=i.get("*"))&&r.slice().map(function(r){r(e,t)})},h=(e,{replace:t=!1}={})=>{o&&(t?s.splice(s.length-1,1,e):s.push(e)),[n,a=""]=e.split("?"),u("navigate",e)},g=r?()=>null:h,m=e=>(c("navigate",e),()=>d("navigate",e)),p=()=>[(0,eN.useSyncExternalStore)(m,()=>n),g],f=()=>(0,eN.useSyncExternalStore)(m,()=>a);return p.searchHook=f,{hook:p,searchHook:f,navigate:g,history:o?s:void 0,reset:o?function(){s.splice(0,s.length),h(l)}:void 0}},ti=(0,eW.createContext)(null),tl=ti.Provider,tn=({identifier:e,role:t,calculationInputCodings:r,featureFlags:o,children:i})=>(0,eM.jsx)(tl,{value:{type:"patient-configuration",identifier:e,role:t,calculationInputCodings:r,disableInstrumentValidationInert:o?.disableInstrumentValidationInert??!1},children:i}),ta=({identifier:e,role:t,calculationInputCodings:r,featureFlags:o,children:i})=>(0,eM.jsx)(tl,{value:{type:"template-configuration",identifier:e,role:t,calculationInputCodings:r,disableInstrumentValidationInert:o?.disableInstrumentValidationInert??!1},children:i}),ts=()=>{let e=(0,eW.useContext)(ti);if(!e)throw Error("Please make sure to wrap any instance of `useApplicationContext` within an ApplicationProvider.");return e},tc={viewer:{canEdit:!1},editor:{canEdit:!0}},td=()=>{let{role:e}=ts();return tc[e]};var tu=function(){return(tu=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},th=Symbol("NiceModalId"),tg={},tm=eW.default.createContext(tg),tp=eW.default.createContext(null),tf={},tw={},tv=0,tb=function(){throw Error("No dispatch method detected, did you embed your app with NiceModal.Provider?")},ty=function(e,t){var r,o,i;switch(void 0===e&&(e=tg),t.type){case"nice-modal/show":var l=t.payload,n=l.modalId,a=l.args;return tu(tu({},e),((r={})[n]=tu(tu({},e[n]),{id:n,args:a,visible:!!tw[n],delayVisible:!tw[n]}),r));case"nice-modal/hide":return e[n=t.payload.modalId]?tu(tu({},e),((o={})[n]=tu(tu({},e[n]),{visible:!1}),o)):e;case"nice-modal/remove":n=t.payload.modalId;var s=tu({},e);return delete s[n],s;case"nice-modal/set-flags":var c=t.payload,d=(n=c.modalId,c.flags);return tu(tu({},e),((i={})[n]=tu(tu({},e[n]),d),i));default:return e}},tx={},tk={},tj=function(e){return"string"==typeof e?e:(e[th]||(e[th]="_nice_modal_"+tv++),e[th])};function tC(e,t){var r=tj(e);if("string"==typeof e||tf[r]||t_(r,e),tb({type:"nice-modal/show",payload:{modalId:r,args:t}}),!tx[r]){var o,i,l=new Promise(function(e,t){o=e,i=t});tx[r]={resolve:o,reject:i,promise:l}}return tx[r].promise}function tA(e){var t=tj(e);if(tb({type:"nice-modal/hide",payload:{modalId:t}}),delete tx[t],!tk[t]){var r,o,i=new Promise(function(e,t){r=e,o=t});tk[t]={resolve:r,reject:o,promise:i}}return tk[t].promise}function tI(e,t){var r,o=(0,eW.useContext)(tm),i=(0,eW.useContext)(tp),l=e&&"string"!=typeof e;if(!(r=e?tj(e):i))throw Error("No modal id found in NiceModal.useModal.");(0,eW.useEffect)(function(){l&&!tf[r]&&t_(r,e,t)},[l,r,e,t]);var n=o[r],a=(0,eW.useCallback)(function(e){return tC(r,e)},[r]),s=(0,eW.useCallback)(function(){return tA(r)},[r]),c=(0,eW.useCallback)(function(){var e;return e=tj(r),void(tb({type:"nice-modal/remove",payload:{modalId:e}}),delete tx[e],delete tk[e])},[r]),d=(0,eW.useCallback)(function(e){var t;null==(t=tx[r])||t.resolve(e),delete tx[r]},[r]),u=(0,eW.useCallback)(function(e){var t;null==(t=tx[r])||t.reject(e),delete tx[r]},[r]),h=(0,eW.useCallback)(function(e){var t;null==(t=tk[r])||t.resolve(e),delete tk[r]},[r]);return(0,eW.useMemo)(function(){return{id:r,args:null==n?void 0:n.args,visible:!!(null==n?void 0:n.visible),keepMounted:!!(null==n?void 0:n.keepMounted),show:a,hide:s,remove:c,resolve:d,reject:u,resolveHide:h}},[r,null==n?void 0:n.args,null==n?void 0:n.visible,null==n?void 0:n.keepMounted,a,s,c,d,u,h])}var tS=function(e){return function(t){var r,o=t.defaultVisible,i=t.keepMounted,l=t.id,n=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)0>t.indexOf(o[i])&&Object.prototype.propertyIsEnumerable.call(e,o[i])&&(r[o[i]]=e[o[i]])}return r}(t,["defaultVisible","keepMounted","id"]),a=tI(l),s=a.args,c=a.show,d=(0,eW.useContext)(tm),u=!!d[l];(0,eW.useEffect)(function(){return o&&c(),tw[l]=!0,function(){delete tw[l]}},[l,c,o]),(0,eW.useEffect)(function(){i&&tb({type:"nice-modal/set-flags",payload:{modalId:l,flags:{keepMounted:!0}}})},[l,i]);var h=null==(r=d[l])?void 0:r.delayVisible;return(0,eW.useEffect)(function(){h&&c(s)},[h,s,c]),u?eW.default.createElement(tp.Provider,{value:l},eW.default.createElement(e,tu({},n,s))):null}},t_=function(e,t,r){tf[e]?tf[e].props=r:tf[e]={comp:t,props:r}},tT=function(){var e=(0,eW.useContext)(tm),t=Object.keys(e).filter(function(t){return!!e[t]});t.forEach(function(e){tf[e]||tw[e]||console.warn("No modal found for id: "+e+". Please check the id or if it is registered or declared via JSX.")});var r=t.filter(function(e){return tf[e]}).map(function(e){return tu({id:e},tf[e])});return eW.default.createElement(eW.default.Fragment,null,r.map(function(e){return eW.default.createElement(e.comp,tu({key:e.id,id:e.id},e.props))}))},tq=function(e){var t=e.children,r=(0,eW.useReducer)(ty,tg),o=r[0];return tb=r[1],eW.default.createElement(tm.Provider,{value:o},t,eW.default.createElement(tT,null))},tE=function(e){var t=e.children,r=e.dispatch,o=e.modals;return r&&o?(tb=r,eW.default.createElement(tm.Provider,{value:o},t,eW.default.createElement(tT,null))):eW.default.createElement(tq,null,t)};let tP=e=>{let{children:t}=e;return(0,eM.jsx)(tE,{children:t})};tP.displayName="ModalManagerProvider";let tD=function(){},tB=(0,eW.createContext)(null),{Provider:tM}=tB,tW=null,tN=e=>{tW?tW(e):console.warn("TrackEvent function called before it was initialized. Please ensure setTrackEventInstance is called with a valid TrackEvent function.")},tO=({children:e,trackEvent:t})=>{var r;return r=t??tD,tW=e=>{r(e)},(0,eM.jsx)(tM,{value:t??tD,children:e})},tz=()=>{let e=(0,eW.useContext)(tB);if(!e)throw Error("Failed to obtain trackEvent function, ensure all calls to useTrackEvent are placed within a TrackEventProvider.");return e},tL=(0,eW.createContext)(null),tF=(e,t)=>{let r,o=e;for(r in t){let e=t[r];if("string"!=typeof e)throw Error("i18n: Template parameter value is not a string");o=o.replaceAll(`{{${r}}}`,e)}return o},tU={"de-DE":{" ce.generic.button.add-workflow.label":"Workflow hinzufügen","ce.activity-triggers.more-info.limit-reached.label":"Dieser Auslöser ist dem Protokoll bereits hinzugefügt.","ce.confirmation-modal.remove-tr
1igger.button.confirm":"Löschen","ce.confirmation-modal.remove-trigger.comment.description":"Es werden keine Warnungen erstellt, wenn Patienten einen Kommentar zu einer Messung hinzufügen. Möchten Sie dies löschen?","ce.confirmation-modal.remove-trigger.inactivity.description":"Bei inaktiven Patienten werden keine Warnungen erstellt. Möchten Sie diese löschen?","ce.confirmation-modal.remove-trigger.overdue.description":"Wenn Sie den Auslöser entfernen, werden keine Warnmeldungen mehr erzeugt, wenn Patienten eine Messung nicht rechtzeitig abgeschlossen haben. Möchten Sie dies entfernen?","ce.confirmation-modal.remove-trigger.thresholds.description":"Möchten Sie diese Schwellenwerte löschen?","ce.confirmation-modal.remove-trigger.title":"Auslöser löschen","ce.confirmation-modal.remove-workflow.button.confirm":"Löschen","ce.confirmation-modal.remove-workflow.description":"Es gibt keine automatisierten Aktionen mehr für diese Warnungen. Möchten Sie den Workflow löschen?","ce.confirmation-modal.remove-workflow.error-message.description":"Wir konnten Ihre Ãnderungen nicht speichern","ce.confirmation-modal.remove-workflow.title":"Workflow löschen","ce.dialog.apply-to-all.helper-text":"Patienten haben möglicherweise bereits persönliche Werte für Schwellenwerte festgelegt.","ce.dialog.apply-to-all.option-no.label":"Nein, nur für neue Patient","ce.dialog.apply-to-all.option-yes.label":"Ja, auf neue und bestehende Patient:innen anwenden","ce.dialog.apply-to-all.title":"Für alle Patienten gelten?","ce.expression.condition":"{{title}} ist {{operation}} {{xValue}}","ce.expression.condition-range":"{{title}} ist {{operation}} {{xValue}} und {{yValue}}","ce.expression.in":"In","ce.expression.occurrence":"Für {{unit}} {{amount}} Messungen","ce.expression.occurrence-unit.at-least":"mindestens","ce.expression.occurrence-unit.at-most":"höchstens","ce.expression.occurrence-unit.exactly":"genau","ce.expression.operation.between":"zwischen","ce.expression.operation.equal-to":"gleich","ce.expression.operation.greater-than-or-equal-to":"gröÃer als oder gleich","ce.expression.operation.less-than-or-equal-to":"kleiner als oder gleich","ce.expression.time-window":"die letzten {{amount}} {{unit}}","ce.expression.time-window-unit.days":{one:"Tag",other:"Tage"},"ce.expression.time-window-unit.hours":{one:"Stunde",other:"Stunden"},"ce.expression.time-window-unit.weeks":{one:"Woche",other:"Wochen"},"ce.expression.unsupported":"Dieser Ausdruck ist zu komplex, um ihn anzuzeigen","ce.generic-confirm-unsaved-changes.text":"Sind Sie sicher, dass Sie die Ãnderungen verwerfen möchten?","ce.generic.button-cancel.label":"Abbrechen","ce.generic.button-close.label":"SchlieÃen","ce.generic.button-edit.label":"Bearbeiten","ce.generic.button-remove.label":"Löschen","ce.generic.button.add-threshold.label":"Schwelle hinzufügen","ce.generic.button.add-trigger.label":"Auslöser hinzufügen","ce.generic.button.edit-workflow.label":"Workflow bearbeiten","ce.generic.button.flyout-more-icon.label":"Aktionen","ce.generic.button.more-info-icon.label":"Mehr Informationen","ce.generic.button.reload.label":"Neu laden","ce.global.add-threshold":"Schwelle hinzufügen","ce.global.add-trigger":"Auslöser hinzufügen","ce.global.alert.high.description":"Rote Warnung","ce.global.alert.low.description":"Grüne Warnung","ce.global.alert.medium.description":"Orange Warnung","ce.global.back":"Zurück","ce.global.button.add-workflow.label":"Workflow hinzufügen","ce.global.button.remove-trigger.label":"Auslöser löschen","ce.global.button.remove-workflow.label":"Workflow löschen","ce.global.cancel":"Abbrechen","ce.global.close":"SchlieÃen","ce.global.collapse-all":"Alle einklappen","ce.global.compact-view":"Kompakte Ansicht","ce.global.condition.and":"Und","ce.global.condition.if":"Wenn","ce.global.copy":"Kopieren","ce.global.create-alert":"Warnung erstellen","ce.global.delete":"Löschen","ce.global.detailed-view":"Detaillierte Ansicht","ce.global.done":"Fertig","ce.global.edit-triggers":"Bearbeiten","ce.global.expand-all":"Alle erweitern","ce.global.hide":"","ce.global.next":"Weiter","ce.global.publish":"Veröffentlichen","ce.global.save":"Speichern","ce.global.show":"","ce.global.step-x-of-y":"Schritt {{x}} von {{y}}","ce.global.threshold":"Schwellenwert","ce.global.threshold-description.delta-compare-ph-high":"Erhöhung","ce.global.threshold-description.delta-compare-ph-low":"Verringern","ce.global.threshold-description.single-compare-ph-high":"Rote obere Schwelle","ce.global.threshold-description.single-compare-ph-low":"Rote untere Schwelle","ce.global.threshold-description.single-compare-pm-high":"Orange oberer Schwellenwert","ce.global.threshold-description.single-compare-pm-low":"Orange untere Schwelle","ce.global.threshold-form-field.action.set-to-max":"","ce.global.threshold-form-field.action.set-to-min":"","ce.global.threshold-form-field.label.range-compare-from":"","ce.global.threshold-form-field.label.range-compare-to":"","ce.global.threshold.criticalHigh":"Rote obere Schwelle","ce.global.threshold.criticalLow":"Rote untere Schwelle","ce.global.threshold.decrease":"Verringern","ce.global.threshold.decrease.description":"Verringerung um mindestens","ce.global.threshold.increase":"Erhöhung","ce.global.threshold.increase.description":"Erhöhung um mindestens","ce.global.threshold.lower-threshold.description":"Kleiner oder gleich","ce.global.threshold.upper-threshold.description":"GröÃer oder gleich","ce.global.threshold.warningHigh":"Orange oberer Schwellenwert","ce.global.threshold.warningLow":"Orange untere Schwelle","ce.global.thresholds":"Schwellenwerte","ce.global.toaster.couldnt-save":"Wir konnten I
1hre Ãnderungen nicht speichern","ce.global.toaster.saved-successfully":"Ãnderungen erfolgreich gespeichert","ce.global.toaster.trigger-added.title":"Auslöser hinzugefügt","ce.global.toaster.trigger-deleted.title":"Auslöser gelöscht","ce.global.toaster.trigger-updated.title":"Auslöser aktualisiert","ce.global.trigger":"Auslöser","ce.global.view-triggers":"Auslöser anzeigen","ce.global.workflow":"Workflow","ce.patient.configuration.error.state.button.retry":"Erneut Versuchen","ce.patient.configuration.error.state.description":"Bitte versuchen Sie es erneut oder kontaktieren Sie den Support, falls das Problem weiterhin besteht.","ce.patient.configuration.error.state.title":"Wir konnten die Schwellenwerte nicht laden","ce.patient.faq.q1.answer":"","ce.patient.faq.q1.question":"Wie kann ich einen Schwellenwert bearbeiten?","ce.patient.faq.q2.answer":"","ce.patient.faq.q2.question":"","ce.patient.faq.q3.answer":"","ce.patient.faq.q3.question":"","ce.patient.faq.q4.answer":"","ce.patient.faq.q4.question":"","ce.patient.item-details.close":"SchlieÃen","ce.patient.navigation.item.all":"Alle Auslöser","ce.patient.navigation.item.with":"Pro Messung","ce.patient.navigation.item.without":"Instrumente ohne Auslöser","ce.patient.page.all-thresholds.title":"Schwellenwerte eingestellt","ce.patient.threhsolds.panel.title":"Schwellenwerte","ce.patient.threshold-form-field.button.title.reset":"Zurücksetzen","ce.patient.threshold-form-field.desctiption.delta-high":"Erhöhung um mindestens","ce.patient.threshold-form-field.desctiption.delta-low":"Verringerung um mindestens","ce.patient.threshold-form-field.desctiption.single-compare-high":"GröÃer oder gleich","ce.patient.threshold-form-field.desctiption.single-compare-low":"Kleiner oder gleich","ce.patient.threshold-form-field.label.delta-ph-high":"Erhöhung um mindestens","ce.patient.threshold-form-field.label.delta-ph-low":"Verringerung um mindestens","ce.patient.threshold-form-field.label.single-compare-ph-high":"Rote obere Schwelle","ce.patient.threshold-form-field.label.single-compare-ph-low":"Rote untere Schwelle","ce.patient.threshold-form-field.label.single-compare-pm-high":"Orange oberer Schwellenwert","ce.patient.threshold-form-field.label.single-compare-pm-low":"Orange untere Schwelle","ce.patient.threshold.detail-form.title":"{{name}}","ce.patient.threshold.form.button.cancel":"Abbrechen","ce.patient.threshold.form.button.submit":"Speichern","ce.patient.threshold.form.description":"Schwellenwerte sind nur für Gesundheitsdienstleister sichtbar. Sie müssen mindestens {{min_value}} und höchstens {{max_value}}.","ce.patient.threshold.form.input.deltaHigh.label":"Roter Warnung bei einem Anstieg von mindestens","ce.patient.threshold.form.input.deltaLow.label":"Roter Warnung bei einem Rückgang von mindestens","ce.patient.threshold.form.input.singleComparePhHigh.label":"Roter Warnung, wenn gröÃer oder gleich","ce.patient.threshold.form.input.singleComparePhLow.label":"Roter Warnung, wenn kleiner oder gleich","ce.patient.threshold.form.input.singleComparePmHigh.label":"Orange Warnung, wenn gröÃer oder gleich","ce.patient.threshold.form.input.singleComparePmLow.label":"Orange Warnung, wenn kleiner oder gleich","ce.patient.threshold.form.toast.update-error.description":"Wir konnten Ihre Ãnderungen nicht speichern","ce.patient.threshold.form.toast.update-error.title":"Schwellenwerte konnten nicht gespeichert werden","ce.patient.threshold.form.toast.update-success.description":"Wir haben Ihre Schwellenwerte aktualisiert","ce.patient.threshold.form.toast.update-success.title":"Ãnderungen erfolgreich gespeichert","ce.patient.thresholds.all.empty.description":"Für dieses Protokoll sind keine Schwellenwerte festgelegt.","ce.patient.thresholds.all.empty.title":"Keine Schwellenwerte festgelegt","ce.patient.thresholds.automated-actions.banner.error.action":"Neu laden","ce.patient.thresholds.automated-actions.banner.error.title":"Wir konnten den Workflow nicht korrekt laden, daher könnten einige Details fehlen","ce.patient.thresholds.item.details.button":"Schwellenwerte bearbeiten","ce.patient.thresholds.item.details.modal.title":"Details: {{name}}","ce.patient.thresholds.item.view-details.button":"Details anzeigen","ce.patient.thresholds.item.view.button":"Details anzeigen","ce.patient.thresholds.loading.description":"Versuchen Sie, die Seite neu zu laden. Dies kann bis zu einer Minute dauern.","ce.patient.thresholds.loading.title":"Wir aktualisieren die Patientenschwellenwerte.","ce.patient.thresholds.panel.empty.description":"Für dieses Instrument gibt es derzeit keine Schwellenwerte.","ce.patient.thresholds.panel.empty.title":"Keine Schwellenwerte festgelegt","ce.patient.thresholds.panel.tag.personalized":"Personalisiert","ce.patient.validation.threshold.decimals":"Der Wert darf nicht mehr als {{value}} Dezimalstellen enthalten.","ce.patient.validation.threshold.formatting":"Bitte eine Zahl eingeben","ce.patient.validation.threshold.gt":"Der Wert muss über {{value}} {{unit}} liegen","ce.patient.validation.threshold.gte":"Der Wert muss {{value}} {{unit}} oder höher sein","ce.patient.validation.threshold.lt":"Der Wert muss unter {{value}} {{unit}} liegen","ce.patient.validation.threshold.lte":"Der Wert muss {{value}} {{unit}} oder niedriger sein","ce.protocol.copy-trigger.modal.button-copy.label":"Ins Protokoll kopieren","ce.protocol.copy-trigger.modal.copy-target-form.organisation.label":"Wählen Sie eine Organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.placeholder":"Wählen Sie eine Organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.required":"Bitte wählen Sie eine Organisation","ce.protocol.copy-trigger.modal.copy-target-form.program.label":"Wählen Sie ein Programm","ce.protocol.copy-trigger.modal.copy-target-form.program.placeholder":"Wählen Sie ein Programm","ce.protocol.copy-trigger.modal.copy-target-form.program.required":"Bitte wählen Sie ein Programm","ce.protocol.copy-trigger.modal.copy-target-form.protocol.label":"Wählen Sie ein Protokoll","ce.protocol.copy-trigger.modal.copy-target-form.protocol.placeholder":"Wählen Sie ein Protokoll aus","ce.protocol.copy-trigger.modal.copy-target-form.protocol.required":"Bitte wählen Sie ein Protokoll aus","ce.protocol.copy-trigger.modal.copy-target-form.title":"Wo möchten Sie eine Kopie dieses Auslösers hinzufügen?","ce.protocol.copy-trigger.modal.failed.title":"Wir konnten keine Kopie erstellen. Bitte versuchen Sie es erneut.","ce.protocol.copy-trigger.modal.required-instruments.title":"Benötigte Instrumente (nicht im Exemplar enthalten)","ce.protocol.copy-trigger.modal.success.description":"Eine Kopie dieses Auslösers wurde zu {{protocol}} hinzugefügt. Sie finden ihn in der Liste der Warnungseinstellungen. Alle erforderlichen Instrumente sind im Protokoll vorhanden, daher wird es direkt funktionieren.","ce.protocol.copy-trigger.modal.success.required-instruments-item.title":"Kopieren {{ID}}","ce.protocol.copy-trigger.modal.success.required-instruments.title":"Benötigte Instrumente","ce.protocol.copy-trigger.modal.success.title":"Auslöser kopiert","ce.protocol.copy-trigger.modal.title":"Kopiertrigger","ce.protocol.copy-trigger.modal.unauthorized.description":"Nur Administratoren und CMD-Benutzer innerhalb einer Organisation können Auslöser kopieren. Sie sind derzeit als âSuper-Adminâ angemeldet.\\n\\nMelden Sie sich ab und anschlieÃend wieder bei der Organisation an. Danach können Sie auswählen, in welches Programm Sie diese Benachrichtigung kopieren möchten.","ce.protocol.copy-trigger.modal.unauthorized.title":"Als Organisationsadmin anmelden","ce.protocol.copy.success":"Kopiert","ce.protocol.thresholds.instrument.empty.description":"Für dieses Instrument sind keine Schwellenwerte festgelegt.","ce.template-configuration.faq.button.label":"FAQs","ce.template-configuration.faq.external-link.label":"","ce.template-configuration.faq.instructions-for-use
1-link.label":"Gebrauchsanweisung","ce.template-configuration.faq.instructions-for-use-link.url":"https://luscii.com/en/ifu","ce.template-configuration.faq.q1.answer":"","ce.template-configuration.faq.q1.question":"","ce.template-configuration.faq.q2.answer":"","ce.template-configuration.faq.q2.question":"","ce.template-configuration.faq.q3.answer":"","ce.template-configuration.faq.q3.question":"","ce.template-configuration.faq.q4.answer":"","ce.template-configuration.faq.q4.question":"","ce.template-configuration.faq.q5.answer":"","ce.template-configuration.faq.q5.question":"Was sind erweiterte Trigger?","ce.template-configuration.faq.q6.answer":"","ce.template-configuration.faq.q6.question":"","ce.template-configuration.faq.title":"Häufig gestellte Fragen","ce.template-configuration.tabs.all-triggers.label":"Alle Auslöser","ce.template-configuration.tabs.combined.label":"Erweiterte Trigger","ce.template-configuration.tabs.inactivity.label":"Auslöser für Inaktivität","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.description":"Automatisch verarbeiten","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.unless-comment.subtext":"Es sei denn, der Patient hat einen Kommentar hinzugefügt","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed-unless-comment.detailed":"{{alertPriorityName}} automatisch verarbeitet, auÃer wenn ein Kommentar vorhanden ist","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.description.detailed":"{{alertPriorityName}} automatisch verarbeitet","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.detailed":"{{color}} Alarm automatisch verarbeitet","ce.threshold-detail-flow.automated-actions.alert-status.escalated.detailed":"{{alertPriorityName}} weitergeleitet","ce.threshold-detail-flow.automated-actions.alert-status.forward.description":"Automatisch an die zweite Leitung weiterleiten","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.description.detailed":"{{alertPriorityName}} erstellt","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.detailed":"{{color}} Alarm offen und im Dashboard","ce.threshold-detail-flow.automated-actions.change-patient-status.stopped.description":"Patientenstatus ändern in: gestoppt","ce.threshold-detail-flow.automated-actions.schedule-action.days-after.subtext":"{{value}} Tage nach Auslösung","ce.threshold-detail-flow.automated-actions.schedule-action.description":"Aktion planen: {{action_name}}","ce.threshold-detail-flow.automated-actions.schedule-action.directly.subtext":"Direkt nach dem Auslösen","ce.threshold-detail-flow.automated-actions.send-message.description":"Patienten eine Nachricht senden","ce.threshold-detail-flow.automated-actions.send-message.variants.link":"Siehe {{value}} Varianten","ce.threshold-detail-flow.automated-actions.switch-group.description":"Wechseln zur Gruppe: {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.description.short":"Wechseln zu {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.subtext":"{{program_name}} ({{protocol_name}})","ce.threshold-detail-flow.automated-actions.switch-programme.description":"Wechseln zum Programm: {{program_name}}","ce.threshold-detail-flow.automated-actions.switch-programme.protocol.subtext":"Protokoll: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.switch-protocol.description":"Wechseln zum Protokoll: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.title":"Workflow","ce.threshold-detail-flow.automated-actions.trigger-limit.limit-per-day.description":"Workflow löst max aus {{value}} mal am Tag","ce.threshold-detail-flow.automated-actions.trigger-limit.unlimited.description":"Dieser Workflow kann unbegrenzt ausgelöst werden","ce.threshold-detail-flow.comments.add-trigger.button.label":"Auslöser hinzufügen","ce.threshold-detail-flow.comments.add-trigger.success-toaster.description":"Wir erstellen Warnungen, wenn Patienten einen Kommentar hinzufügen.","ce.threshold-detail-flow.comments.add-trigger.success-toaster.title":"Auslöser hinzugefügt","ce.threshold-detail-flow.
1comments.add-trigger.title":"Auslöser: Warnungen für Kommentare","ce.threshold-detail-flow.comments.automated-actions.description":"Ãber die Einstellungen pro Instrument können Sie einen Workflow hinzufügen.","ce.threshold-detail-flow.comments.edit-trigger.title":"Auslöser: Warnungen für Kommentare","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.description":"Wir erstellen keine Warnungen mehr für Kommentare.","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.title":"Auslöser gelöscht","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.description":"Dieser Alarm hat keine automatischen Aktionen mehr.","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.title":"Workflow gelöscht","ce.threshold-detail-flow.comments.trigger.description":"Warnung erstellen, wenn ein Kommentar zu einer Messung hinzugefügt wird.","ce.threshold-detail-flow.comments.trigger.title":"Auslöser: Patient fügt Kommentar hinzu","ce.threshold-detail-flow.comments.update-trigger.success-toaster.title":"Auslöser aktualisiert","ce.threshold-detail-flow.create-alert.amber.description":"Orange Warnung","ce.threshold-detail-flow.create-alert.grey.description":"Grauer Warnung","ce.threshold-detail-flow.create-alert.grey.title":"Warnung erstellen","ce.threshold-detail-flow.create-alert.red.description":"Rote Warnung","ce.threshold-detail-flow.create-alert.title":"Warnung erstellen","ce.threshold-detail-flow.error-banner.could-not-save.description":"Wir konnten Ihre Ãnderungen nicht speichern","ce.threshold-detail-flow.inactivity.add-trigger.button.label":"Auslöser hinzufügen","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description":"Wir erstellen Warnungen, wenn der Patient inaktiv ist.","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title":"Auslöser hinzugefügt","ce.threshold-detail-flow.inactivity.add-trigger.title":"Neue Auslöser: Warnungen bei Inaktivität","ce.threshold-detail-flow.inactivity.automated-actions.description":"Automatisierte Aktionen","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.description":"Wir erstellen keine Benachrichtigungen mehr wegen Inaktivität.","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.title":"Auslöser entfernt","ce.threshold-detail-flow.inactivity.trigger.description":'Inaktiv" bedeutet, dass keine Aktionen eingesendet werden.',"ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.label":"Wenn der Patient inaktiv ist für...","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.suffix":"Tage","ce.threshold-detail-flow.inactivity.trigger.title":"Patient ist inaktiv","ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title":"Auslöser aktualisiert","ce.threshold-detail-flow.overdue.add-trigger.button.label":"Auslöser hinzufügen","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.description":"Wir erstellen Warnungen, wenn MaÃnahmen überfällig sind.","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.title":"Auslöser hinzugefügt","ce.threshold-detail-flow.overdue.add-trigger.title":"Auslöser: Ãberfälligkeitswarnung","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.footnote":"Fügen Sie weitere automatisierte Aktionen hinzu, indem Sie einen Workflow für überfällige Warnungen zu Instrumenten hinzufügen.","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.label":"Möchtest du die Meldung offen lassen oder bearbeiten","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.leave-open":"Warnung offen lassen","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.process-auto":"Warnung verarbeiten","ce.threshold-detail-flow.overdue.automated-actions.title":"Workflow","ce.threshold-detail-flow.overdue.automated-actions.via-workflow-explanation":"Sie können einen Workflow über die Alarmeinstellungen pro Instrument hinzufügen, sodass jede Messung ihre eigenen Automatisierungseinstellungen haben kann.","ce.threshold-detail-flow.overdue.remove-tr
1igger.success-toaster.description":"Wir werden keine Warnungen mehr für überfällige Aktionen erstellen.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.title":"Auslöser gelöscht","ce.threshold-detail-flow.overdue.trigger.description":"Wenn der Patient die Aufgabe nicht rechtzeitig erledigt...","ce.threshold-detail-flow.overdue.trigger.form.all-day-alert-creation-option.end-of-day.label":"Ende des Tages","ce.threshold-detail-flow.overdue.trigger.form.all-day-time.label":"Erstellen Sie einen Alarm für ganztägige Aufgaben um...","ce.threshold-detail-flow.overdue.trigger.form.time-sensitive-time.label":"Warnung für Aufgaben mit einem bestimmten Zeitraum erstellen um â¦","ce.threshold-detail-flow.overdue.trigger.title":"Auslöser: geplante Aufgabe überfällig","ce.threshold-detail-flow.remove-workflow.success-toaster.description":"Keine automatisierten Aktionen mehr für diese Warnung","ce.threshold-detail-flow.remove-workflow.success-toaster.titl":"Workflow gelöscht","ce.threshold-detail-flow.thresholds.remove-trigger.error-banner.description":"Wir konnten den Auslöser nicht löschen.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.description":"Für diese Schwellenwerte erstellen wir keine Warnungen mehr.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.title":"Auslöser gelöscht","ce.threshold-detail-flow.thresholds.remove-workflow.error-banner.description":"Wir konnten den Workflow nicht löschen.","ce.threshold-details-flow.automated-actions.error.title":"Entschuldigung, wir konnten nicht nach automatisierten Aktionen suchen.","ce.threshold-list-view.automated-actions.action.label":"{{action_name}}","ce.threshold-list-view.automated-actions.alert-status.auto-process.label":"Verarbeiten","ce.threshold-list-view.automated-actions.alert-status.forward.label":"Weiterleiten","ce.threshold-list-view.automated-actions.alert.label":"Warnung","ce.threshold-list-view.automated-actions.error.title":"Wir konnten diese Details nicht laden.","ce.threshold-list-view.automated-actions.message.label":"Nachricht senden","ce.threshold-list-view.automated-actions.switch-group.label":"Gruppe wechseln: {{group_name}}","ce.threshold-list-view.automated-actions.switch-program.label":"Wechseln: {{program_name}} ({{protocol_name}})","ce.threshold-list-view.automated-actions.switch-protocol.label":"Wechseln: {{protocol_name}}","ce.threshold-list-view.section.combination-triggers.title":"","ce.threshold-list-view.section.combined-instruments.empty.description":"Es wurden noch keine erweiterten Trigger konfiguriert.","ce.threshold-list-view.section.combined-instruments.item.missing-items":"Instrument(e) fehlen, Trigger funktioniert nicht","ce.threshold-list-view.section.combined-instruments.title":"Kombinierte Auslöser","ce.threshold-list-view.section.combined-triggers-with-instrument.title":"Kombinierte Auslöser mit {{instrument}}","ce.threshold-list-view.section.comment.empty":"Keine Warnungen erstellt, wenn Patienten einen Kommentar hinzufügen.","ce.threshold-list-view.section.comment.empty.link":"Auslöser hinzufügen","ce.threshold-list-view.section.comment.title":"Kommentare","ce.threshold-list-view.section.inactivity-triggers.title":"","ce.threshold-list-view.section.inactivity.empty":"Es werden keine Warnungen erstellt, wenn ein Patient inaktiv ist.","ce.threshold-list-view.section.inactivity.empty.link":"Auslöser hinzufügen","ce.threshold-list-view.section.inactivity.title":"Inaktivität","ce.threshold-list-view.section.instrument.empty":"Noch keine Auslöser für dieses Instrument festgelegt.","ce.threshold-list-view.section.instrument.empty.link":"Schwelle hinzufügen","ce.threshold-list-view.section.overdue.empty":"Keine Warnungen erstellt, wenn Aktionen überfällig sind.","ce.threshold-list-view.section.overdue.empty.link":"Auslöser hinzufügen","ce.threshold-list-view.section.overdue.title":"Ãberfällig","ce.threshold-list-view.section.simple-triggers.title":"","ce.threshold-list-view.trigger.comment.label":"Patient fügt einen Kommentar hinzu","ce.threshold-list-view.trigger.empty":"Noch keine Schwellenwerte für dieses Instrument","ce.threshold-list-view.trigger.inactivity.label":"Patient ist inaktiv für {{value}} Tag(e)","ce.threshold-list-view.trigger.overdue.label":"Patient hat die Aktion(en) nicht rechtzeitig abgeschlossen","ce.threshold-list-view.trigger.overdue.subtitle":"Ãberfällig um {{time}}","ce.threshold-list-view.trigger.threshold.decrease.label":"Verringerung um mindestens {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.increase.label":"Erhöhung um mindestens {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.lower-threshold.label":"Kleiner oder gleich {{value}}{{unit}}","ce.threshold-list-view.trigger.threshold.upper-threshold.label":"GröÃer oder gleich {{value}} {{unit}}
1","ce.threshold-updates.inactivity.confirm-exceeding-limit.description":"Wenn die Inaktivitätseinstellungen auf eine hohe Anzahl von Tagen eingestellt sind, können inaktive Patienten übersehen werden.","ce.threshold-updates.inactivity.confirm-exceeding-limit.title":"Update-Inaktivitätsauslöser?","ce.threshold.description.above-or-equal-to":"GröÃer oder gleich {{value}} {{unit}}","ce.threshold.description.decrease-of-at-least":"Verringerung um mindestens {{value}} {{unit}}","ce.threshold.description.from-to":"Von {{from}} {{unit}} bis {{to}} {{unit}}","ce.threshold.description.increase-of-at-least":"Erhöhung um mindestens {{value}} {{unit}}","ce.threshold.description.lower-than-or-equal-to":"Kleiner oder gleich {{value}} {{unit}}","ce.threshold.description.x-to-y-unit":"{{from}} bis {{to}} {{unit}}","ce.threshold.flyout-menu.add-workflow.label":"Workflow hinzufügen","ce.threshold.flyout-menu.copy-trigger.label":"Auslöser kopieren","ce.threshold.flyout-menu.copy-workflow.label":"Workflow kopieren","ce.threshold.flyout-menu.delete-threshold.label":"Auslöser löschen","ce.threshold.flyout-menu.delete-trigger.label":"Auslöser löschen","ce.threshold.flyout-menu.delete-workflow.label":"Workflow löschen","ce.threshold.flyout-menu.edit-workflow.label":"Workflow bearbeiten","ce.threshold.flyout-menu.view-details.label":"Bearbeiten","ce.threshold.subtitle.value-empty":"Kein wert festgelegt","ce.threshold.title.floating-zone":"Zone","ce.threshold.title.lower-zone":"Untere Zone","ce.threshold.title.upper-zone":"Obere Zone","ce.thresholds.cannot-edit-comment-dialog.description":"<p>Sie können Kommentar-Auslöser noch nicht pro Instrument bearbeiten. Nur für das gesamte Protokoll.</p>","ce.thresholds.cannot-edit-comment-dialog.title":"Einstellungen über Protokollübersicht","ce.thresholds.cannot-edit-comment-dialog.to-protocol-settings-button.title":"Zu den Protokolleinstellungen","ce.thresholds.cannot-edit-overdue-dialog.description":"<p>Sie können überfällige pro Instrument noch nicht bearbeiten. Nur für das gesamte Protokoll.</p>","ce.thresholds.cannot-edit-overdue-dialog.title":"Einstellungen über Protokollübersicht","ce.thresholds.cannot-edit-overdue-dialog.to-protocol-settings-button.title":"Zu den Protokoll-Einstellungen","ce.thresholds.comment-trigger-description":"Patient fügt einen Kommentar hinzu","ce.thresholds.modal.calculation-missing.button-request.label":"Anfrage via Notion","ce.thresholds.modal.calculation-missing.copy-protocol-id":"Kopieren Sie Ihre Protokoll-ID, Sie benötigen sie im Notion-Formular.","ce.thresholds.modal.calculation-missing.description":"Für jedes neue Protokoll muss eine Berechnung aktiviert werden. Auch wenn Sie dies bereits für andere Protokolle innerhalb des Programms getan haben. Sie können die Aktivierung über Notion anfordern. Haben Sie dies bereits getan? Sie können den Vorgang auch in Notion verfolgen.","ce.thresholds.modal.calculation-missing.title":"Berechnung fehlt","ce.thresholds.modal.instrument-missing.button.to-action.label":"Zu den Aktionen","ce.thresholds.modal.instrument-missing.description":"Nicht alle erforderlichen Instrumente sind im Protokoll vorhanden. Fügen Sie sie hinzu, um sicherzustellen, dass der Auslöser funktioniert.","ce.thresholds.modal.instrument-missing.required-instruments.title":"Erforderliche Instrumente","ce.thresholds.modal.instrument-missing.title":"Fehlende Messungen","ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label":"ID in die Zwischenablage kopieren","ce.thresholds.more-info.limit-reached.label":"Alle Schwellenwerte sind bereits vorhanden","ce.thresholds.no-comment-trigger-message":"Noch kein Auslöser für Kommentare hinzugefügt.","ce.thresholds.no-overdue-trigger-message":"Noch kein Ãberfällig-Auslöser hinzugefügt","ce.thresholds.panel.action.add":"Schwellenwerte hinzufügen","ce.thresholds.panel.action.edit":"Schwellenwerte bearbeiten","ce.thresholds.validation-error.calculation-input-codings-unavailable.title":"Wir können nicht bestätigen, dass diese Berechnung funktioniert, da einige Informationen fehlen.","ce.thresholds.validation-error.calculation-missing.button":"Aktivierung anfordern","ce.thresholds.validation-error.calculation-missing.title":"Berechnung noch nicht aktiviert.","ce.thresholds.validation-error.instrument-missing-in-program.title":"Instrument fehlt im Programm","ce.thresholds.validation-error.instrument-missing-in-protocol.title":"Instrument fehlt im Protokoll","ce.thresholds.validation-error.instrument-missing.button":"Details anzeigen","ce.thresholds.validation-error.instrument-missing.title":"Instrument fehlt, Auslöser funktioniert nicht","ce.trigger-builder.new-trigger.title":"Neuer Auslöser: {{instrument_name}}","ce.trigger-builder.step-one.description":"Wählen Sie einen oder mehrere Auslöser","ce.trigger-builder.step-one.no-selection-error.description":"Bitte wählen Sie mindestens einen Auslöser aus, um fortzufahren.","ce.trigger-builder.step-one.title":"Auslösung(en) auswählen","ce.trigger-builder.step-three.description":"Konfigurieren Sie, wie Benachrichtigungen im Dashboard angezeigt werden sollen.","ce.trigger-builder.step-three.edit-display-button.label":"Bearbeiten","ce.trigger-builder.step-three.title":"Anzeige konfigurieren","ce.trigger-builder.step-two.description":"Legen Sie die Bedingungen für den Auslöser fest.","ce.trigger-builder.step-two.title":"","ce.trigger-preset.delta-compare-decrease.label":"Verringern","ce.trigger-preset.delta-compare-increase.label":"Erhöhung","ce.trigger-preset.single-compare-lower-ph-four.label":"Rote untere Schwelle","ce.trigger-preset.single-compare-lower-ph-three.label":"Orange untere Schwelle","ce.trigger-preset.single-compare-upper-ph-four.label":"Rote obere Schwelle","ce.trigger-preset.single-compare-upper-ph-three.label":"Orange oberer Schwellenwert","ce.view-details.button":"Details anzeigen","ce.worfklow-form.settings.title":"Workflow-Einstellungen","ce.workflow-builder.add-external-follow-up-error-modal.description":"<p>Die Konfigurationsoberfläche für diese Aktion konnte nicht geladen werden.</p>\\n<p>
1Bitte versuchen Sie es später noch einmal, oder wenden Sie sich an den Support, wenn das Problem weiterhin besteht.</p>","ce.workflow-builder.add-external-follow-up-error-modal.title":"Diese Aktion konnte nicht hinzugefügt werden.","ce.workflow-builder.add-external-follow-up-modal.submit-button.label":"Zum Workflow hinzufügen","ce.workflow-builder.add-external-follow-up-modal.title":'Hinzufügen: "{{name}}"',"ce.workflow-builder.aside.actions.add-action-fly-out.trigger-label":"Aktion hinzufügen","ce.workflow-builder.aside.actions.all-actions-added-tooltip.label":"Alle möglichen Aktionen wurden bereits hinzugefügt","ce.workflow-builder.comment.title":"Kommentare","ce.workflow-builder.inactivity.info-card.title":"Inaktivität","ce.workflow-builder.inactivity.title":"Inaktivität","ce.workflow-builder.instrument-info.precision.title":"Dezimale Genauigkeit","ce.workflow-builder.instrument-info.trigger-limits.not-set":"Grenzwerte nicht festgelegt","ce.workflow-builder.instrument-info.trigger-limits.title":"Schwellenwertgrenzen","ce.workflow-builder.other-triggers-section.title":"Workflow-Aktionen für Kommentare und Ãberfälligkeit","ce.workflow-builder.overdue.title":"Ãberfällig","ce.workflow-builder.range-coverage.legend.filled":"Gefüllt","ce.workflow-builder.range-coverage.legend.gap":"Nicht gefüllt","ce.workflow-builder.range-coverage.legend.gap.description":"Keine Schwellenwerte füllen diesen Bereich","ce.workflow-builder.range-coverage.legend.loading-error":"Leider konnten wir die Schwellenwertleiste nicht laden.","ce.workflow-builder.range-coverage.legend.overlap":"Ãberlappung","ce.workflow-builder.range-coverage.legend.overlap.description":"{{count}} schwellenwerte füllen diesen Bereich","ce.workflow-builder.range-coverage.title":"Schwellenwertabdeckung","ce.workflow-builder.trigger-card.automated-actions-list.title":"Workflow Aktionen","ce.workflow-builder.trigger-card.details.empty.add-workflow-button.text":"Workflow hinzufügen","ce.workflow-builder.trigger-card.no-workflow-summary.tag":"Kein Workflow","ce.workflow-builder.trigger-card.workflow-summary.tag":{one:"Workflow: {{value}}Aktion",other:"Workflow: {{value}}Aktionen"},"ce.workflow-builder.triggers-section.empty":"Kein Auslöser festgelegt","ce.workflow-builder.triggers-section.subtitle":".","ce.workflow-builder.triggers-section.title":"Schwellenwerte","ce.workflow-builder.unsaved-changes-indicator.label":"Nicht gespeicherte Ãnderungen","ce.workflow-editor-modal.aside.create.title":"Workflow hinzufügen","ce.workflow-editor-modal.create.subtitle":".","ce.workflow-editor-modal.create.title":"Workflows verwalten","ce.workflow-editor.instrument-info.increase-decrease-bounds.label":"Zu-/Abnahmegrenzen","ce.workflow-editor.instrument-info.max.label":"Max","ce.workflow-editor.instrument-info.min.label":"Min","ce.workflow-editor.instrument-info.threshold-bounds.legend":"Schwellenwertgrenzen","ce.workflow-editor.toast.workflow-deleted.description":"Workflow erfolgreich gelöscht","ce.workflow-editor.toast.workflow-deleted.title":"Ãnderungen erfolgreich gespeichert","ce.workflow-editor.toast.workflow-updated.description":"Workflow erfolgreich aktualisiert","ce.workflow-editor.toast.workflow-updated.title":"Ãnderungen erfolgreich gespeichert","ce.workflow-form.add-actions.title":"Automatisierte Aktionen hinzufügen","ce.workflow-form.automated-actions.group.alert-status.label":"Status der Warnung","ce.workflow-form.automated-actions.group.alert-status.option.escalated.label":"Weiter zur zweiten Reihe","ce.workflow-form.automated-actions.group.alert-status.option.keep-open.label":"Warnung offen lassen","ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label":"Automatisch verarbeiten, es sei denn, er hat einen Kommentar","ce.workflow-form.automated-actions.group.alert-status.option.processed.label":"Automatisch verarbeiten","ce.workflow-form.automated-actions.name.label":"Aktionen","ce.workflow-form.configured-actions.title":"Konfigurierte Aktionen","ce.workflow-form.create.title":"Workflow hinzufügen","ce.workflow-form.settings.group.trigger-limit.custom-limit.label":"Auslösegrenze","ce.workflow-form.settings.group.trigger-limit.label.day":"Tag","ce.workflow-form.settings.group.trigger-limit.label.max":"Max","ce.workflow-form.settings.group.trigger-limit.label.per":"pro","ce.workflow-form.settings.group.trigger-limit.label.week":"Woche","ce.workflow-form.settings.group.trigger-limit.name":"Auslösegrenze","ce.workflow-form.settings.group.trigger-limit.option.set-limit.label":"Limit festlegen","ce.workflow-form.settings.group.trigger-limit.option.unlimited.label":"Unbegrenzt oft pro Tag","ce.workflow-form.settings.group.trigger-limit.times.suffix":"Mal","ce.workflow-form.settings.name.label":"Workflow-Name","ce.workflow-form.update.title":"Workflow bearbeiten","ce.workflow-form.workflow-detail
1s.name.label":"Workflow-Details","prototype.ce.generic.from":"Von","prototype.ce.generic.to":"Bis (einschl.)","prototype.ce.instrument-validation.banner.button-confirm.label":"Bestätigen","prototype.ce.instrument-validation.banner.button-edit.label":"Bearbeiten","prototype.ce.instrument-validation.banner.description":"Bevor Sie Auslöser hinzufügen, bestätigen Sie, dass diese Einstellungen korrekt sind. Wir verwenden sie, um Ihre Schwellenwerte zu validieren.","prototype.ce.instrument-validation.banner.description.no-bounds":"Bevor Sie Auslöser hinzufügen, legen Sie die Grenzbereiche des Instruments fest. Diese werden zur Ãberprüfung Ihrer Schwellenwerte verwendet.","prototype.ce.instrument-validation.banner.range":"{{min}} bis einschlieÃlich {{max}} {{unit}}","prototype.ce.instrument-validation.banner.settings":"Schwellenwert-Grenzen: {{limit}}, Dezimalgenauigkeit: {{decimal_precision}}","prototype.ce.instrument-validation.banner.settings-delta":"Schwellenwerte: {{limit}}Dezimalgenauigkeit: {{decimal_precision}}","prototype.ce.instrument-validation.banner.title":"Ãberprüfen Sie die Instrumenteneinstellungen.","prototype.ce.instrument-validation.banner.title.no-bounds":"Legen Sie die Grenzwerte für Ihr Instrument fest","prototype.ce.threshold-input.from.helper.link-to-value":'Verknüpfen mit {{threshold_name}} "Bis (einschl.)" Wert.',"prototype.ce.threshold-input.from.helper.prefilled-with-instrument-min":"Dieser Wert wurde so aufgefüllt, dass er dem Maximalwert des Geräts entspricht. {{Edit}}","prototype.ce.threshold-input.from.helper.unlink-from-value":'Verknüpfung aufheben von {{threshold_name}} "Bis (einschl.)" Wert.',"prototype.ce.threshold-input.from.label":"Von","prototype.ce.threshold-input.generic.link":"Verknüpfen","prototype.ce.threshold-input.generic.unlink":"Verknüpfung aufheben","prototype.ce.threshold-input.to.helper.prefilled-with-instrument-max":"Dieser Wert wurde so aufgefüllt, dass er dem Mindestwert des Geräts entspricht. {{Edit}}","prototype.ce.threshold-input.to.label":"Bis (einschl.)"},"en-GB":{" ce.generic.button.add-workflow.label":"Add workflow","ce.activity-triggers.more-info.limit-reached.label":"This trigger is already added to the protocol","ce.confirmation-modal.remove-trigger.button.confirm":"Delete","ce.confirmation-modal.remove-trigger.comment.description":"No alerts will be created when patients add a comment to a measurement. Do you want to delete this?","ce.confirmation-modal.remove-trigger.inactivity.description":"No alerts will be created when patients are inactive. Do you want to delete this?","ce.confirmation-modal.remove-trigger.overdue.description":"No alerts will be created when patients did not complete a measurement in time. Do you want to remove this?","ce.confirmation-modal.remove-trigger.thresholds.description":"Do you want to delete these thresholds?","ce.confirmation-modal.remove-trigger.title":"Delete trigger","ce.confirmation-modal.remove-workflow.button.confirm":"Delete","ce.confirmation-modal.remove-workflow.description":"There will be no automated actions for this alert any more. Do you want to delete the workflow?","ce.confirmation-modal.remove-workflow.error-message.description":"We could not save your changes","ce.confirmation-modal.remove-workflow.title":"Delete workflow","ce.dialog.apply-to-all.helper-text":"Patients may already have personal values set for thresholds.","ce.dialog.apply-to-all.option-no.label":"No, just to new patients","ce.dialog.apply-to-all.option-yes.label":"Yes, apply to new and existing patients","ce.dialog.apply-to-all.title":"Apply to all patients?","ce.expression.condition":"{{title}} is {{operation}} {{xValue}}","ce.expression.condition-range":"{{title}} is {{operation}} {{xValue}} and {{yValue}}","ce.expression.in":"In","ce.expression.occurrence":"For {{unit}} {{amount}} measurements","ce.expression.occurrence-unit.at-least":"at least","ce.expression.occurrence-unit.at-most":"at most","ce.expression.occurrence-unit.exactly":"exactly","ce.expression.operation.between":"between","ce.expression.operation.equal-to":"equal to","ce.expression.operation.greater-than-or-equal-to":"greater than or equal to","ce.expression.operation.less-than-or-equal-to":"less than or equal to","ce.expression.time-window":"the last {{amount}} {{unit}}","ce.expression.time-window-unit.days":{one:"day",other:"days"},"ce.expression.time-window-unit.hours":{one:"hour",other:"hours"},"ce.expression.time-window-unit.weeks":{one:"week",other:"weeks"},"ce.expression.unsupported":"Expression is too complex to display","ce.generic-confirm-unsaved-changes.text":"Are you sure you want to discard changes?","ce.generic.button-cancel.label":"Cancel","ce.generic.button-close.label":"Close","ce.generic.button-edit.label":"Edit","ce.generic.button-remove.label":"Delete","ce.generic.button.add-threshold.label":"Add threshold","ce.generic.button.add-trigger.label":"Add trigger","ce.generic.button.edit-workflow.label":"Edit workflow","ce.generic.button.flyout-more-icon.label":"Actions","ce.generic.button.more-info-icon.label":"More information","ce.generic.button.reload.label":"Reload","ce.global.add-threshold":"Add threshold","ce.global.add-trigger":"Add trigger","ce.global.alert.high.description":"Red alert","ce.global.alert.low.description":"Green alert","ce.global.alert.medium.description":"Amber alert","ce.global.back":"Back","ce.global.button.add-workflow.label":"Add workflow","ce.global.button.remove-tr
1igger.label":"Delete trigger","ce.global.button.remove-workflow.label":"Delete workflow","ce.global.cancel":"Cancel","ce.global.close":"Close","ce.global.collapse-all":"Collapse all","ce.global.compact-view":"Compact view","ce.global.condition.and":"And","ce.global.condition.if":"If","ce.global.copy":"Copy","ce.global.create-alert":"Create alert","ce.global.delete":"Delete","ce.global.detailed-view":"Detailed view","ce.global.done":"Done","ce.global.edit-triggers":"Edit","ce.global.expand-all":"Expand all","ce.global.hide":"Hide","ce.global.next":"Next","ce.global.publish":"Publish","ce.global.save":"Save","ce.global.show":"Show","ce.global.step-x-of-y":"Step {{x}} of {{y}}","ce.global.threshold":"threshold","ce.global.threshold-description.delta-compare-ph-high":"Increase","ce.global.threshold-description.delta-compare-ph-low":"Decrease","ce.global.threshold-description.single-compare-ph-high":"Red upper threshold","ce.global.threshold-description.single-compare-ph-low":"Red lower threshold","ce.global.threshold-description.single-compare-pm-high":"Amber upper threshold","ce.global.threshold-description.single-compare-pm-low":"Amber lower threshold","ce.global.threshold-form-field.action.set-to-max":"Set to max","ce.global.threshold-form-field.action.set-to-min":"Set to min","ce.global.threshold-form-field.label.range-compare-from":"From","ce.global.threshold-form-field.label.range-compare-to":"To (incl.)","ce.global.threshold.criticalHigh":"Red upper threshold","ce.global.threshold.criticalLow":"Red lower threshold","ce.global.threshold.decrease":"Decrease","ce.global.threshold.decrease.description":"Decrease of at least","ce.global.threshold.increase":"Increase","ce.global.threshold.increase.description":"Increase of at least","ce.global.threshold.lower-threshold.description":"Lower than or equal to","ce.global.threshold.upper-threshold.description":"Greater than or equal to","ce.global.threshold.warningHigh":"Amber upper threshold","ce.global.threshold.warningLow":"Amber lower threshold","ce.global.thresholds":"thresholds","ce.global.toaster.couldnt-save":"We couldn't save your changes","ce.global.toaster.saved-successfully":"Changes saved successfully","ce.global.toaster.trigger-added.title":"Trigger added","ce.global.toaster.trigger-deleted.title":"Trigger deleted","ce.global.toaster.trigger-updated.title":"Trigger updated","ce.global.trigger":"Trigger","ce.global.view-triggers":"View triggers","ce.global.workflow":"Workflow","ce.patient.configuration.error.state.button.retry":"Try Again","ce.patient.configuration.error.state.description":"Please try again, or contact support if the problem persists.","ce.patient.configuration.error.state.title":"We could not load the thresholds","ce.patient.faq.q1.answer":"Find the instrument you want to configure and click the trigger you want to edit. Use the modal to enter the value per patient to personalise a threshold. Save it, and youâre done!","ce.patient.faq.q1.question":"How do I edit a threshold?","ce.patient.faq.q2.answer":"You can fill out the threshold values of the triggers program builders added to this protocol. Need one that is not in the list? Ask a program builder to add it.","ce.patient.faq.q2.question":"Can I add a trigger?","ce.patient.faq.q3.answer":"Advanced triggers fire based on a combination of conditions â useful when a single reading or value isn't enough to flag something. For example, alerting only when both systolic and diastolic blood pressure exceed their thresholds at the same time.","ce.patient.faq.q3.question":"What are advanced triggers?","ce.patient.faq.q4.answer":"No worries â if you edited a patient threshold by accident, hit the Reset button next to the threshold field to restore the protocol default. You can also check the History to find the previous settings and recreate it manually.","ce.patient.faq.q4.question":"I accidentally changed or removed a threshold.","ce.patient.item-details.close":"Close","ce.patient.navigation.item.all":"All triggers","ce.patient.navigation.item.with":"Instruments","ce.patient.navigation.item.without":"Instruments without triggers","ce.patient.page.all-thresholds.title":"Thresholds set","ce.patient.threhsolds.panel.title":"Thresholds","ce.patient.threshold-form-field.button.title.reset":"Reset","ce.patient.threshold-form-field.desctiption.delta-high":"Increase of at least","ce.patient.threshold-form-field.desctiption.delta-low":"Decrease of at least","ce.patient.threshold-form-field.desctiption.single-compare-high":"Greater than or equal to","ce.patient.threshold-form-field.desctiption.single-compare-low":"Lower than or equal to","ce.patient.threshold-form-field.label.delta-ph-high":"Increase of at least","ce.patient.threshold-form-field.label.delta-ph-low":"Decrease of at least","ce.patient.threshold-form-field.label.single-compare-ph-high":"Red upper threshold","ce.patient.threshold-form-field.label.single-compare-ph-low":"Red lower threshold","ce.patient.threshold-form-field.label.single-compare-pm-high":"Amber upper threshold","ce.patient.threshold-form-field.label.single-compare-pm-low":"Amber lower threshold","ce.patient.threshold.detail-form.title":"{{name}}","ce.patient.threshold.form.button.cancel":"Cancel","ce.patient.threshold.form.button.submit":"Save","ce.patient.threshold.form.description":"Thresholds are only visible for healthcare providers. They have to be at least {{min_value}} and at most {{max_value}}.","ce.patient.threshold.form.input.deltaHigh.label":"Red alert for an increase of at least","ce.patient.threshold.form.input.deltaLow.label":"Red alert for a decrease of at least","ce.patient.threshold.form.input.singleComparePhHigh.label":"Red alert if greater than or equal to","ce.patient.threshold.form.input.singleComparePhLow.label":"Red alert if less than or equal to","ce.patient.threshold.form.input.singleComparePmHigh.label":"Amber alert if greater than or equal to","ce.patient.threshold.form.input.singleComparePmLow.label":"Amber alert if less than or equal to","ce.patient.threshold.form.toast.update-error.description":"We could not save your changes","ce.patient.threshold.form.toast.update-error.title":"Failed to save changes","ce.patient.threshold.form.toast.update-success.description":"We've updated your thresholds","ce.patient.threshold.form.toast.update-success.title":"Changes saved successfully","ce.patient.thresholds.all.empty.description":"There are no thresholds set for this protocol.","ce.patient.thresholds.all.empty.title":"No thresholds set","ce.patient.thresholds.automated-actions.banner.error.action":"Reload","ce.patient.thresholds.automated-actions.banner.error.title":"We couldnât load the workflow correctly, so some details may be missing","ce.patient.thresholds.item.details.button":"Edit threshold","ce.patient.thresholds.item.details.modal.title":"Instrument details: {{name}}","ce.patient.thresholds.item.view-details.button":"View details","ce.patient.thresholds.item.view.button":"See details","ce.patient.thresholds.loading.description":"Try to reload the page, it might take up to a minute.","ce.patient.thresholds.loading.title":"We're updating the patient thresholds to match the protocol settings.","ce.patient.thresholds.panel.empty.description":"There are currently no thresholds for this instrument.","ce.patient.thresholds.panel.empty.title":"No thresholds set","ce.patient.thresholds.panel.tag.personalized":"Personalised","ce.patient.validation.threshold.decimals":"Value cannot contain more than {{value}} decimal(s).","ce.patient.validation.threshold.formatting":"Please enter a number","ce.patient.validation.threshold.gt":"Value must be above {{value}} {{unit}}","ce.patient.validation.threshold.gte":"Value must be {{value}} {{unit}}
1 or higher","ce.patient.validation.threshold.lt":"Value must be below {{value}} {{unit}}","ce.patient.validation.threshold.lte":"Value must be {{value}} {{unit}} or lower","ce.protocol.copy-trigger.modal.button-copy.label":"Copy to protocol","ce.protocol.copy-trigger.modal.copy-target-form.organisation.label":"Select an organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.placeholder":"Select an organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.required":"Please select an organisation","ce.protocol.copy-trigger.modal.copy-target-form.program.label":"Select a programme","ce.protocol.copy-trigger.modal.copy-target-form.program.placeholder":"Select a programme","ce.protocol.copy-trigger.modal.copy-target-form.program.required":"Please select a programme","ce.protocol.copy-trigger.modal.copy-target-form.protocol.label":"Select a protocol","ce.protocol.copy-trigger.modal.copy-target-form.protocol.placeholder":"Select a protocol","ce.protocol.copy-trigger.modal.copy-target-form.protocol.required":"Please select a protocol","ce.protocol.copy-trigger.modal.copy-target-form.title":"Where do you want to add a copy of this the trigger?","ce.protocol.copy-trigger.modal.failed.title":"We couldnât create a copy. Please try again.","ce.protocol.copy-trigger.modal.required-instruments.title":"Required instruments (not included in the copy)","ce.protocol.copy-trigger.modal.success.description":"A copy of this trigger has been added to {{protocol}}. Youâll find it in the alert settings list. Make sure all the required instruments are present in the protocol, otherwise it won't work.","ce.protocol.copy-trigger.modal.success.required-instruments-item.title":"Copy {{ID}}","ce.protocol.copy-trigger.modal.success.required-instruments.title":"Required instruments","ce.protocol.copy-trigger.modal.success.title":"Trigger copied successfully","ce.protocol.copy-trigger.modal.title":"Copy trigger","ce.protocol.copy-trigger.modal.unauthorized.description":"Only administrators and CMD users within an organisation can copy triggers. You are currently logged in as a âsuper adminâ.\\n\\nLog out and log back in to the organisation. Then you can choose which program you want to copy this notification to.","ce.protocol.copy-trigger.modal.unauthorized.title":"Log in as organisation admin","ce.protocol.copy.success":"Copied successfully","ce.protocol.thresholds.instrument.empty.description":"There are no thresholds set for this instrument.","ce.template-configuration.faq.button.label":"FAQs","ce.template-configuration.faq.external-link.label":"More information","ce.template-configuration.faq.instructions-for-use-link.label":"Instructions for Use","ce.template-configuration.faq.instructions-for-use-link.url":"https://luscii.com/en/ifu","ce.template-configuration.faq.q1.answer":"Yes â you can add as many triggers as you need for one instrument. For example, you can set both a medium and high priority alert for an increase. The coverage bar shows you at a glance whether your ranges connect, overlap, or leave gaps.","ce.template-configuration.faq.q1.question":"Can I set multiple triggers of the same type?","ce.template-configuration.faq.q2.answer":"Check the coverage bar at the top of the Instrument configuration. Overlaps and gaps are highlighted â click the highlighted area to see which triggers are involved.","ce.template-configuration.faq.q2.question":"How do I make sure threshold values don't overlap?","ce.template-configuration.faq.q3.answer":"Set up the trigger at protocol level and leave the threshold values empty. On the patient page, the threshold will show as âno valueâ. From there, you or a colleague can fill in the right value per patient.","ce.template-configuration.faq.q3.question":"How do I create a personalised trigger, like weight?","ce.template-configuration.faq.q4.answer":'Open the Instrument configuration for the relevant instrument and scroll to "Activity-based triggers." Click "Add trigger" and select either the comment or overdue trigger from the list. These alerts are set per instrument, so repeat this for each one you want to monitor.',"ce.template-configuration.faq.q4.question":"Where do I set triggers for comments and overdue alerts?","ce.template-configuration.faq.q5.answer":"Advanced triggers fire based on a combination of conditions â useful when a single reading or value isn't enough to flag something. For example, alert
1ing only when both systolic and diastolic blood pressure exceed their thresholds at the same time.","ce.template-configuration.faq.q5.question":"What are advanced triggers?","ce.template-configuration.faq.q6.answer":'Yes, you can duplicate it. Open the trigger that has the workflow you want to copy and click "Copy workflow" â it goes to your clipboard. Navigate to the target trigger, click "Add workflow," then choose "Paste from clipboard." Publish when you\'re done.',"ce.template-configuration.faq.q6.question":"Can I reuse a workflow?","ce.template-configuration.faq.title":"Frequently asked questions","ce.template-configuration.tabs.all-triggers.label":"All triggers","ce.template-configuration.tabs.combined.label":"Advanced triggers","ce.template-configuration.tabs.inactivity.label":"Inactivity triggers","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.description":"Process automatically","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.unless-comment.subtext":"Unless patient added a comment","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed-unless-comment.detailed":"{{alertPriorityName}} automatically processed, unless it has a comment","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.description.detailed":"{{alertPriorityName}} automatically processed","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.detailed":"{{color}} alert automatically processed","ce.threshold-detail-flow.automated-actions.alert-status.escalated.detailed":"{{alertPriorityName}} forwarded","ce.threshold-detail-flow.automated-actions.alert-status.forward.description":"Automatically forward to second line","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.description.detailed":"{{alertPriorityName}} created","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.detailed":"{{color}} alert created","ce.threshold-detail-flow.automated-actions.change-patient-status.stopped.description":"Change patient status to: stopped","ce.threshold-detail-flow.automated-actions.schedule-action.days-after.subtext":"{{value}} days after trigger","ce.threshold-detail-flow.automated-actions.schedule-action.description":"Schedule action: {{action_name}}","ce.threshold-detail-flow.automated-actions.schedule-action.directly.subtext":"Directly after trigger","ce.threshold-detail-flow.automated-actions.send-message.description":"Send patient a message","ce.threshold-detail-flow.automated-actions.send-message.variants.link":"View {{value}} variants","ce.threshold-detail-flow.automated-actions.switch-group.description":"Switch to group: {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.description.short":"Switch to {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.subtext":"{{program_name}} ({{protocol_name}})","ce.threshold-detail-flow.automated-actions.switch-programme.description":"Switch to programme: {{program_name}}","ce.threshold-detail-flow.automated-actions.switch-programme.protocol.subtext":"Protocol: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.switch-protocol.description":"Switch to protocol: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.title":"Automated actions","ce.threshold-detail-flow.automated-actions.trigger-limit.limit-per-day.description":"This workflow will trigger max {{value}} times a day","ce.threshold-detail-flow.automated-actions.trigger-limit.unlimited.description":"This workflow can be triggered unlimited","ce.threshold-detail-flow.comments.add-trigger.button.label":"Add trigger","ce.threshold-detail-flow.comments.add-trigger.success-toaster.description":"Weâll create alerts when patients add a comment.","ce.threshold-detail-flow.comments.add-trigger.success-toaster.title":"Trigger added","ce.threshold-detail-flow.comments.add-trigger.title":"Trigger: alerts for comments","ce.threshold-detail-flow.comments.automated-actions.description":"You can add a workflow via the settings per instrument.","ce.threshold-detail-flow.comments.edit-trigger.title":"Trigger: alerts for comments","ce.threshold-detail-flow.
1comments.remove-trigger.success-toaster.description":"We wonât create alerts for comments any more.","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.title":"Trigger deleted","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.description":"This alert does not have any automated actions anymore.","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.title":"Workflow deleted","ce.threshold-detail-flow.comments.trigger.description":"Create alert when a comment is added to a measurement.","ce.threshold-detail-flow.comments.trigger.title":"Trigger: patient adds a comment","ce.threshold-detail-flow.comments.update-trigger.success-toaster.title":"Trigger updated","ce.threshold-detail-flow.create-alert.amber.description":"Amber alert","ce.threshold-detail-flow.create-alert.grey.description":"Grey alert","ce.threshold-detail-flow.create-alert.grey.title":"Create alert","ce.threshold-detail-flow.create-alert.red.description":"Red alert","ce.threshold-detail-flow.create-alert.title":"Create alert","ce.threshold-detail-flow.error-banner.could-not-save.description":"We couldn't save your changes","ce.threshold-detail-flow.inactivity.add-trigger.button.label":"Add trigger","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description":"Weâll create alerts when patient is inactive.","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title":"Trigger added","ce.threshold-detail-flow.inactivity.add-trigger.title":"Trigger: alerts for inactivity","ce.threshold-detail-flow.inactivity.automated-actions.description":"Automated actions","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.description":"We wonât create alerts for inactivity any more.","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.title":"Trigger removed","ce.threshold-detail-flow.inactivity.trigger.description":"Being âinactiveâ means that no actions are sent in.","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.label":"If patient is inactive for...","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.suffix":"days","ce.threshold-detail-flow.inactivity.trigger.title":"Patient is inactive","ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title":"Trigger updated","ce.threshold-detail-flow.overdue.add-trigger.button.label":"Add trigger","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.description":"Weâll create alerts when actions are overdue.","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.title":"Trigger added","ce.threshold-detail-flow.overdue.add-trigger.title":"Trigger: alerts for overdue tasks","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.footnote":"Add more automated actions by adding a workflow for overdue triggers to an instrument.","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.label":"What should happen with the alert?","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.leave-open":"Leave alert open","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.process-auto":"Process alert","ce.threshold-detail-flow.overdue.automated-actions.title":"Workflow","ce.threshold-detail-flow.overdue.automated-actions.via-workflow-explanation":"You can add a workflow via the alert settings per instrument, so each can have its own automation settings.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.description":"We wonât create alerts for overdue actions any more.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.title":"Trigger deleted","ce.threshold-detail-flow.overdue.trigger.description":"If patient does not complete task in time..","ce.threshold-detail-flow.overdue.trigger.form.all-day-alert-creation-option.end-of-day.label":"End of day","ce.threshold-detail-flow.overdue.trigger.form.all-day-time.label":"Create alert for all day action at...","ce.threshold-detail-flow.overdue.trigger.form.time-sensitive-time.label":"Create alert for tasks with a specific time frame atâ¦","ce.threshold-detail-flow.overdue.trigger.title":"Trigger: scheduled task overdue","ce.threshold-detail-flow.remove-workflow.success-toaster.description":"No automated actions for this alert any more","ce.threshold-detail-flow.remove-workflow.success-toaster.titl":"Workflow deleted","ce.threshold-detail-flow.thresholds.remove-tr
1igger.error-banner.description":"We couldn't delete the trigger.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.description":"We won't create alerts for these thresholds any more.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.title":"Trigger deleted","ce.threshold-detail-flow.thresholds.remove-workflow.error-banner.description":"We couldn't delete the workflow.","ce.threshold-details-flow.automated-actions.error.title":"Sorry, we couldnât check for automated actions.","ce.threshold-list-view.automated-actions.action.label":"{{action_name}}","ce.threshold-list-view.automated-actions.alert-status.auto-process.label":"Auto process","ce.threshold-list-view.automated-actions.alert-status.forward.label":"Forward","ce.threshold-list-view.automated-actions.alert.label":"Alert","ce.threshold-list-view.automated-actions.error.title":"We couldn't load these details.","ce.threshold-list-view.automated-actions.message.label":"Send message","ce.threshold-list-view.automated-actions.switch-group.label":"Switch group: {{group_name}}","ce.threshold-list-view.automated-actions.switch-program.label":"Switch: {{program_name}} ({{protocol_name}})","ce.threshold-list-view.automated-actions.switch-protocol.label":"Switch: {{protocol_name}}","ce.threshold-list-view.section.combination-triggers.title":"Combination triggers","ce.threshold-list-view.section.combined-instruments.empty.description":"No advanced triggers have been configured yet.","ce.threshold-list-view.section.combined-instruments.item.missing-items":"Instrument(s) missing, trigger wonât work","ce.threshold-list-view.section.combined-instruments.title":"Advanced triggers","ce.threshold-list-view.section.combined-triggers-with-instrument.title":"Advanced triggers with {{instrument}}","ce.threshold-list-view.section.comment.empty":"No alerts created when patients add a comment.","ce.threshold-list-view.section.comment.empty.link":"Add trigger","ce.threshold-list-view.section.comment.title":"Comments","ce.threshold-list-view.section.inactivity-triggers.title":"Inactivity triggers","ce.threshold-list-view.section.inactivity.empty":"No alerts created when a patient is inactive.","ce.threshold-list-view.section.inactivity.empty.link":"Add trigger","ce.threshold-list-view.section.inactivity.title":"Inactivity","ce.threshold-list-view.section.instrument.empty":"No triggers set for this instrument yet.","ce.threshold-list-view.section.instrument.empty.link":"Add threshold","ce.threshold-list-view.section.overdue.empty":"No alerts created when actions are overdue.","ce.threshold-list-view.section.overdue.empty.link":"Add trigger","ce.threshold-list-view.section.overdue.title":"Overdue","ce.threshold-list-view.section.simple-triggers.title":"Simple triggers","ce.threshold-list-view.trigger.comment.label":"Patient adds a comment","ce.threshold-list-view.trigger.empty":"No thresholds for this instrument yet","ce.threshold-list-view.trigger.inactivity.label":"Patient is inactive for {{value}} day(s)","ce.threshold-list-view.trigger.overdue.label":"Patient did not complete action(s) in time","ce.threshold-list-view.trigger.overdue.subtitle":"Overdue at {{time}}","ce.threshold-list-view.trigger.threshold.decrease.label":"Decrease of at least {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.increase.label":"Increase of at least {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.lower-threshold.label":"Lower than or equal to {{value}}{{unit}}","ce.threshold-list-view.trigger.threshold.upper-threshold.label":"Greater than or equal to {{value}} {{unit}}","ce.threshold-updates.inactivity.confirm-exceeding-limit.description":"Youâre setting the inactivity limit to more than 60 days. Inactive patients may be overlooked.","ce.threshold-updates.inactivity.confirm-exceeding-limit.title":"Update inactivity trigger?","ce.threshold.description.above-or-equal-to":"Greater than or equal to {{value}} {{unit}}","ce.threshold.description.decrease-of-at-least":"Decrease of at least {{value}} {{unit}}","ce.threshold.description.from-to":"From {{from}} {{unit}} to {{to}} {{unit}}","ce.threshold.description.increase-of-at-least":"Increase of at least {{value}} {{unit}}","ce.threshold.description.lower-than-or-equal-to":"Lower than or equal to {{value}} {{unit}}","ce.threshold.description.x-to-y-unit":"{{from}} to {{to}} {{unit}}","ce.threshold.flyout-menu.add-workflow.label":"Add workflow","ce.threshold.flyout-menu.copy-trigger.label":"Copy trigger","ce.threshold.flyout-menu.copy-workflow.label":"Copy workflow","ce.threshold.flyout-menu.delete-threshold.label":"Delete trigger","ce.threshold.flyout-menu.delete-trigger.label":"Delete trigger","ce.threshold.flyout-menu.delete-workflow.label":"Delete workflow","ce.threshold.flyout-menu.edit-workflow.label":"Edit workflow","ce.threshold.flyout-menu.view-details.label":"Edit details","ce.threshold.subtitle.value-empty":"No values set","ce.threshold.title.floating-zone":"Zone","ce.threshold.title.lower-zone":"Lower zone","ce.threshold.title.upper-zone":"Upper zone","ce.thresholds.cannot-edit-comment-dialog.description":"<p>You cannot edit comment triggers per instrument yet. Just for the whole protocol.</p>","ce.thresholds.cannot-edit-comment-dialog.title":"Edit for whole protocol","ce.thresholds.cannot-edit-comment-dialog.to-protocol-settings-button.title":"To protocol settings","ce.thresholds.cannot-edit-overdue-dialog.description":"<p>You cannot edit overdue triggers per instrument yet. Just for the whole protocol.</p>","ce.thresholds.cannot-edit-overdue-dialog.title":"Edit for whole protocol","ce.thresholds.cannot-edit-overdue-dialog.to-protocol-settings-button.title":"To protocol settings","ce.thresholds.comment-trigger-description":"Patient adds a comment","ce.thresholds.modal.calculation-missing.button-request.label":"Request via Notion","ce.thresholds.modal.calculation-missing.copy-protocol-id":"Copy your protocol ID, youâll need it in the Notion form.","ce.thresholds.modal.calculation-missing.description":"A calculation has to be activated for each new protocol. Even when you already did this for other protocols within the programme. You can request the activation via Notion. Did you already do this? You can track the process in Notion as well.","ce.thresholds.modal.calculation-missing.title":"Calculation missing","ce.thresholds.modal.instrument-missing.button.to-action.label":"To actions","ce.thresholds.modal.instrument-missing.description":"Not all required instruments are present in the protocol. Add them to your protocol Measurements, to make sure the trigger works.","ce.thresholds.modal.instrument-missing.required-instruments.title":"Required instrument(s)","ce.thresholds.modal.instrument-missing.title":"Instrument(s) missing","ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label":"Copy ID to clipboard","ce.thresholds.more-info.limit-reached.label":"All possible thresholds are already added","ce.thresholds.no-comment-trigger-message":"No trigger for comments added yet.","ce.thresholds.no-overdue-trigger-message":"No overdue-trigger added yet","ce.thresholds.panel.action.add":"Add thresholds","ce.thresholds.panel.action.edit":"Edit thresholds","ce.thresholds.validation-error.calculation-input-codings-unavailable.title":"We don't have enough information at the moment to confirm this calculation is working.","ce.thresholds.validation-error.calculation-missing.button":"Request activation","ce.thresholds.validation-error.calculation-missing.title":"Calculation not activated yet.","ce.thresholds.validation-error.instrument-missing-in-program.title":"Instrument missing in programme","ce.thresholds.validation-error.instrument-missing-in-protocol.title":"Instrument missing in protocol","ce.thresholds.validation-error.instrument-missing.button":"View details","ce.thresholds.validation-error.instrument-missing.title":"Instrument missing, trigger doesnât work","ce.trigger-builder.new-trigger.title":"New trigger: {{instrument_name}}","ce.trigger-builder.step-one.description":"Choose one or multiple triggers","ce.trigger-builder.step-one.no-selection-error.description":"Please select at least one trigger to continue.","ce.trigger-builder.step-one.title":"Select trigger(s)","ce.trigger-builder.step-three.description":"Configure how alerts will appear in the dashboard.","ce.trigger-builder.step-three.edit-display-button.label":"Edit","ce.trigger-builder.step-three.title":"Configure display","ce.trigger-builder.step-two.description":"Set the conditions for the trigger.","ce.trigger-builder.step-two.title":"Set conditions","ce.trigger-preset.delta-compare-decrease.label":"Decrease","ce.trigger-preset.delta-compare-increase.label":"Increase","ce.trigger-preset.single-compare-lower-ph-four.label":"Red lower threshold","ce.trigger-preset.single-compare-lower-ph-three.label":"Amber lower threshold","ce.trigger-preset.single-compare-upper-ph-four.label":"Red upper threshold","ce.trigger-preset.single-compare-upper-ph-three.label":"Amber upper threshold","ce.view-details.button":"View details","ce.worfklow-form.settings.title":"Workflow settings","ce.workflow-builder.add-external-follow-up-error-modal.description":"<p>We couldn't load the configuration user interface for this action.</p>\\n<p>Please try again later, or contact support if the problem persists.</p>","ce.workflow-builder.add-external-follow-up-error-modal.title":"We couldn't add this action.","ce.workflow-builder.add-external-follow-up-modal.submit-button.label":"Add to workflow","ce.workflow-builder.add-external-follow-up-modal.title":'Add: "{{name}}"',"ce.workflow-builder.aside.actions.add-action-fly-out.trigger-label":"Add automated action","ce.workflow-builder.aside.actions.all-actions-added-tooltip.label":"All possible actions already added","ce.workflow-builder.comment.title":"Comments","ce.workflow-builder.inactivity.info-card.title":"Inactivity","ce.workflow-builder.inactivity.title":"Inactivity","ce.workflow-builder.instrument-info.precision.title":"Decimal precision","ce.workflow-builder.instrument-info.trigger-limits.not-set":"Limits need to be set","ce.workflow-builder.instrument-info.trigger-limits.title":"Threshold limits","ce.workflow-builder.other-triggers-section.title":"Workflows for c
1omments and overdue","ce.workflow-builder.overdue.title":"Overdue","ce.workflow-builder.range-coverage.legend.filled":"Filled","ce.workflow-builder.range-coverage.legend.gap":"Not filled","ce.workflow-builder.range-coverage.legend.gap.description":"No thresholds fill this range","ce.workflow-builder.range-coverage.legend.loading-error":"Sorry, we couldn't load the threshold bar","ce.workflow-builder.range-coverage.legend.overlap":"Overlap","ce.workflow-builder.range-coverage.legend.overlap.description":"{{count}} thresholds overlap in this range","ce.workflow-builder.range-coverage.title":"Threshold coverage","ce.workflow-builder.trigger-card.automated-actions-list.title":"Automated actions","ce.workflow-builder.trigger-card.details.empty.add-workflow-button.text":"Add workflow","ce.workflow-builder.trigger-card.no-workflow-summary.tag":"No workflow","ce.workflow-builder.trigger-card.workflow-summary.tag":{one:"Workflow: {{value}} action",other:"Workflow: {{value}} actions"},"ce.workflow-builder.triggers-section.empty":"No triggers set","ce.workflow-builder.triggers-section.subtitle":".","ce.workflow-builder.triggers-section.title":"Thresholds","ce.workflow-builder.unsaved-changes-indicator.label":"Unsaved changes","ce.workflow-editor-modal.aside.create.title":"Add workflow","ce.workflow-editor-modal.create.subtitle":".","ce.workflow-editor-modal.create.title":"Manage workflows","ce.workflow-editor.instrument-info.increase-decrease-bounds.label":"Increase/decrease bounds","ce.workflow-editor.instrument-info.max.label":"Max","ce.workflow-editor.instrument-info.min.label":"Min","ce.workflow-editor.instrument-info.threshold-bounds.legend":"Threshold limits","ce.workflow-editor.toast.workflow-deleted.description":"Workflow deleted successfully","ce.workflow-editor.toast.workflow-deleted.title":"Changes saved successfully","ce.workflow-editor.toast.workflow-updated.description":"Workflow updated successfully","ce.workflow-editor.toast.workflow-updated.title":"Changes saved successfully","ce.workflow-form.add-actions.title":"Add automated actions","ce.workflow-form.automated-actions.group.alert-status.label":"Alert status","ce.workflow-form.automated-actions.group.alert-status.option.escalated.label":"Forward to second line","ce.workflow-form.automated-actions.group.alert-status.option.keep-open.label":"Keep alert open","ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label":"Process automatically, unless it has a comment","ce.workflow-form.automated-actions.group.alert-status.option.processed.label":"Process automatically","ce.workflow-form.automated-actions.name.label":"Automated actions","ce.workflow-form.configured-actions.title":"Configured actions","ce.workflow-form.create.title":"Add workflow","ce.workflow-form.settings.group.trigger-limit.custom-limit.label":"Trigger limit","ce.workflow-form.settings.group.trigger-limit.label.day":"Day","ce.workflow-form.settings.group.trigger-limit.label.max":"Max","ce.workflow-form.settings.group.trigger-limit.label.per":"per","ce.workflow-form.settings.group.trigger-limit.label.week":"Week","ce.workflow-form.settings.group.trigger-limit.name":"Trigger limit","ce.workflow-form.settings.group.trigger-limit.option.set-limit.label":"Set limit","ce.workflow-form.settings.group.trigger-limit.option.unlimited.label":"Unlimited times a day","ce.workflow-form.settings.group.trigger-limit.times.suffix":"Times","ce.workflow-form.settings.name.label":"Workflow name","ce.workflow-form.update.title":"Edit workflow","ce.workflow-form.workflow-details.name.label":"Workflow details","prototype.ce.generic.from":"From","prototype.ce.generic.to":"To (incl.)","prototype.ce.instrument-validation.banner.button-confirm.label":"Confirm","prototype.ce.instrument-validation.banner.button-edit.label":"Edit","prototype.ce.instrument-validation.banner.description":"Before adding triggers, confirm these settings are correct. We'll use them to validate your thresholds.","prototype.ce.instrument-validation.banner.description.no-bounds":"Before adding triggers, set the instrument limits. We'll use them to validate your thresholds.","prototype.ce.instrument-validation.banner.range":"{{min}} up to and including {{max}} {{unit}}","prototype.ce.instrument-validation.banner.settings":"Threshold limits: {{limit}}, Decimal precision: {{decimal_precision}}","prototype.ce.instrument-validation.banner.settings-delta":"Threshold limits: {{limit}}, Decimal precision: {{decimal_precision}}","prototype.ce.instrument-validation.banner.title":"Check your instrument settings","prototype.ce.instrument-validation.banner.title.no-bounds":"Set your instrument limits","prototype.ce.threshold-input.from.helper.link-to-value":'Link to {{threshold_name}} "To (incl.)" value.',"prototype.ce.threshold-input.from.helper.prefilled-with-instrument-min":"This value has been filled to match instrument max. {{Edit}}","prototype.ce.threshold-input.from.helper.unlink-from-value":'Unlink from {{threshold_name}} "To (incl.)" value.',"prototype.ce.threshold-input.from.label":"From","prototype.ce.threshold-input.generic.link":"Link","prototype.ce.threshold-input.generic.unlink":"Unlink","prototype.ce.threshold-input.to.helper.prefilled-with-instrument-max":"This value has been filled to match instrument min. {{Edit}}","prototype.ce.threshold-input.to.label":"To (incl.)"},"nl-NL":{" ce.generic.button.add-workflow.label":"Workflow toevoegen","ce.activity-triggers.more-info.limit-reached.label":"Deze trigger is al toegevoegd aan het protocol","ce.confirmation-modal.remove-tr
1igger.button.confirm":"Verwijderen","ce.confirmation-modal.remove-trigger.comment.description":"Er komen geen meldingen meer als een patiënt een opmerking toevoegt aan een meting. Wil je deze verwijderen?","ce.confirmation-modal.remove-trigger.inactivity.description":"Er komen dan geen meldingen meer als een patiënt inactief is. Wil je deze verwijderen?","ce.confirmation-modal.remove-trigger.overdue.description":"Er komen dan geen meldingen meer voor verlopen acties. Wil je deze verwijderen?","ce.confirmation-modal.remove-trigger.thresholds.description":"Wil je deze drempelwaarden verwijderen?","ce.confirmation-modal.remove-trigger.title":"Trigger verwijderen","ce.confirmation-modal.remove-workflow.button.confirm":"Verwijderen","ce.confirmation-modal.remove-workflow.description":"Er zijn dan geen automatische acties meer voor deze meldingen. Wil je deze workflow verwijderen?","ce.confirmation-modal.remove-workflow.error-message.description":"We konden je wijzigingen niet opslaan","ce.confirmation-modal.remove-workflow.title":"Workflow verwijderen","ce.dialog.apply-to-all.helper-text":"Het kan zijn dat er al persoonlijke waarden zijn ingesteld voor patiënten.","ce.dialog.apply-to-all.option-no.label":"Nee, alleen op nieuwe patiënten","ce.dialog.apply-to-all.option-yes.label":"Ja, op nieuwe en bestaande patiënten","ce.dialog.apply-to-all.title":"Toepassen op alle patiënten?","ce.expression.condition":"{{title}} is {{operation}} {{xValue}}","ce.expression.condition-range":"{{title}} is {{operation}} {{xValue}} en {{yValue}}","ce.expression.in":"In","ce.expression.occurrence":"Voor {{unit}} {{amount}} metingen","ce.expression.occurrence-unit.at-least":"minstens","ce.expression.occurrence-unit.at-most":"hoogstens","ce.expression.occurrence-unit.exactly":"precies","ce.expression.operation.between":"tussen","ce.expression.operation.equal-to":"gelijk aan","ce.expression.operation.greater-than-or-equal-to":"groter dan of gelijk aan","ce.expression.operation.less-than-or-equal-to":"kleiner dan of gelijk aan","ce.expression.time-window":"de laatste {{amount}} {{unit}}","ce.expression.time-window-unit.days":{one:"dag",other:"dagen"},"ce.expression.time-window-unit.hours":{one:"uur",other:"uur"},"ce.expression.time-window-unit.weeks":{one:"week",other:"weken"},"ce.expression.unsupported":"Deze uitdrukking is te complex om weer te geven","ce.generic-confirm-unsaved-changes.text":"Weet je zeker dat je je wijzigingen niet wilt opslaan?","ce.generic.button-cancel.label":"Annuleren","ce.generic.button-close.label":"Sluiten","ce.generic.button-edit.label":"Bewerken","ce.generic.button-remove.label":"Verwijderen","ce.generic.button.add-threshold.label":"Drempelwaarde toevoegen","ce.generic.button.add-trigger.label":"Trigger toevoegen","ce.generic.button.edit-workflow.label":"Workflow bewerken","ce.generic.button.flyout-more-icon.label":"Acties","ce.generic.button.more-info-icon.label":"Meer informatie","ce.generic.button.reload.label":"Opnieuw laden","ce.global.add-threshold":"Drempelwaarde toevoegen","ce.global.add-trigger":"Trigger toevoegen","ce.global.alert.high.description":"Rode melding","ce.global.alert.low.description":"Groene melding","ce.global.alert.medium.description":"Oranje melding","ce.global.back":"Terug","ce.global.button.add-workflow.label":"Workflow toevoegen","ce.global.button.remove-trigger.label":"Trigger verwijderen","ce.global.button.remove-workflow.label":"Workflow verwijderen","ce.global.cancel":"Annuleren","ce.global.close":"Sluiten","ce.global.collapse-all":"Allemaal inklappen","ce.global.compact-view":"Compacte weergave","ce.global.condition.and":"En","ce.global.condition.if":"Als","ce.global.copy":"Kopiëren","ce.global.create-alert":"Maak een melding","ce.global.delete":"Verwijderen","ce.global.detailed-view":"Gedetailleerde weergave","ce.global.done":"Klaar","ce.global.edit-triggers":"Bewerk","ce.global.expand-all":"Allemaal uitklappen","ce.global.hide":"","ce.global.next":"Volgende","ce.global.publish":"Publiceren","ce.global.save":"Opslaan","ce.global.show":"","ce.global.step-x-of-y":"Stap {{x}} van {{y}}","ce.global.threshold":"drempelwaarde","ce.global.threshold-description.delta-compare-ph-high":"Toename","ce.global.threshold-description.delta-compare-ph-low":"Afname","ce.global.threshold-description.single-compare-ph-high":"Rode bovengrens","ce.global.threshold-description.single-compare-ph-low":"Rode ondergrens","ce.global.threshold-description.single-compare-pm-high":"Oranje bovengrens","ce.global.threshold-description.single-compare-pm-low":"Oranje ondergrens","ce.global.threshold-form-field.action.set-to-max":"","ce.global.threshold-form-field.action.set-to-min":"","ce.global.threshold-form-field.label.range-compare-from":"","ce.global.threshold-form-field.label.range-compare-to":"","ce.global.threshold.criticalHigh":"Rode bovengrens","ce.global.threshold.criticalLow":"Rode ondergrens","ce.global.threshold.decrease":"Afname","ce.global.threshold.decrease.description":"Afname van minstens","ce.global.threshold.increase":"Toename","ce.global.threshold.increase.description":"Toename van minstens","ce.global.threshold.lower-threshold.description":"Lager dan of gelijk aan","ce.global.threshold.upper-threshold.description":"Groter dan of gelijk aan","ce.global.threshold.warningHigh":"Oranje bovengrens","ce.global.threshold.warningLow":"Oranje ondergrens","ce.global.thresholds":"drempelwaarden","ce.global.toaster.couldnt-save":"We konden de wijzigingen niet opslaan","ce.global.toaster.saved-successfully":"Wijzigingen succesvol opgeslagen","ce.global.toaster.trigger-added.title":"Trigger toegevoegd","ce.global.toaster.trigger-deleted.title":"Trigger verwijderd","ce.global.toaster.trigger-updated.title":"Trigger bijgewerkt","ce.global.trigger":"Trigger","ce.global.view-triggers":"Triggers bekijken","ce.global.workflow":"Workflow","ce.patient.configuration.error.state.button.retry":"Opnieuw Proberen","ce.patient.configuration.error.state.description":"Probeer het opnieuw of neem contact op met support als het probleem blijft bestaan.","ce.patient.configuration.error.state.t
1itle":"We konden de drempelwaarden niet laden","ce.patient.faq.q1.answer":"Zoek het instrument dat je wilt instellen en klik op de trigger die je wilt bewerken. Gebruik de modal om de waarde per Patiënt in te voeren om een Drempelwaarde te personaliseren. Sla het op en je bent klaar!","ce.patient.faq.q1.question":"Hoe wijzig ik een drempelwaarde?","ce.patient.faq.q2.answer":"Je kunt de drempelwaarden invullen van de Triggers die programmabouwers aan dit Protocol hebben toegevoegd. Heb je er een nodig die niet in de lijst staat? Vraag iemand met edit-rechten voor programma's om deze toe te voegen.","ce.patient.faq.q2.question":"Kan ik een trigger toevoegen?","ce.patient.faq.q3.answer":"Gecombineerde triggers gebruiken een combinatie van drempelwaarden â handig wanneer één enkele waarde niet voldoende is. Bijvoorbeeld een combinatie van instrumenten, zoals systolische en diastolische bloeddruk.","ce.patient.faq.q3.question":"Wat zijn gecombineerde triggers?","ce.patient.faq.q4.answer":"Geen zorgen - als je per ongeluk een drempelwaarde hebt aangepast, klik je op de Reset-knop naast het invulveld om de standaardinstelling van het protocol te herstellen. Je kunt ook in de Geschiedenis kijken om de vorige instellingen te vinden en ze handmatig opnieuw te maken.","ce.patient.faq.q4.question":"Ik heb per ongeluk een drempelwaarde aangepast of verwijderd.","ce.patient.item-details.close":"Sluiten","ce.patient.navigation.item.all":"Alle triggers","ce.patient.navigation.item.with":"Per metingen","ce.patient.navigation.item.without":"Instrumenten zonder triggers","ce.patient.page.all-thresholds.title":"Ingestelde drempelwaarden","ce.patient.threhsolds.panel.title":"Drempelwaarden","ce.patient.threshold-form-field.button.title.reset":"Reset","ce.patient.threshold-form-field.desctiption.delta-high":"Toename van minstens","ce.patient.threshold-form-field.desctiption.delta-low":"Afname van minstens","ce.patient.threshold-form-field.desctiption.single-compare-high":"Groter dan of gelijk aan","ce.patient.threshold-form-field.desctiption.single-compare-low":"Lager dan of gelijk aan","ce.patient.threshold-form-field.label.delta-ph-high":"Toename van minstens","ce.patient.threshold-form-field.label.delta-ph-low":"Afname van minstens","ce.patient.threshold-form-field.label.single-compare-ph-high":"Rode bovengrens","ce.patient.threshold-form-field.label.single-compare-ph-low":"Rode ondergrens","ce.patient.threshold-form-field.label.single-compare-pm-high":"Oranje bovengrens","ce.patient.threshold-form-field.label.single-compare-pm-low":"Oranje ondergrens","ce.patient.threshold.detail-form.title":"{{name}}","ce.patient.threshold.form.button.cancel":"Annuleren","ce.patient.threshold.form.button.submit":"Opslaan","ce.patient.threshold.form.description":"Drempelwaardes zijn alleen zichtbaar voor zorgverleners. Ze moeten minimaal {{min_value}} en maximaal {{max_value}} zijn.","ce.patient.threshold.form.input.deltaHigh.label":"Rode melding voor een stijging van minstens","ce.patient.threshold.form.input.deltaLow.label":"Rode melding voor een daling van minstens","ce.patient.threshold.form.input.singleComparePhHigh.label":"Rode melding voor meer dan of gelijk aan","ce.patient.threshold.form.input.singleComparePhLow.label":"Rode melding voor minder dan of gelijk aan","ce.patient.threshold.form.input.singleComparePmHigh.label":"Oranje melding voor meer dan of gelijk aan","ce.patient.threshold.form.input.singleComparePmLow.label":"Oranje melding voor minder dan of gelijk aan","ce.patient.threshold.form.toast.update-error.description":"We konden je wijzigingen niet opslaan","ce.patient.threshold.form.toast.update-error.title":"Wijzigingen niet opgeslagen","ce.patient.threshold.form.toast.update-success.description":"We hebben je drempelwaarden bijgewerkt","ce.patient.threshold.form.toast.update-success.title":"Wijzigingen succesvol opgeslagen","ce.patient.thresholds.all.empty.description":"Er zijn geen drempelwaarden ingesteld voor dit protocol.","ce.patient.thresholds.all.empty.title":"Geen drempelwaarden ingesteld","ce.patient.thresholds.automated-actions.banner.error.action":"Opnieuw laden","ce.patient.thresholds.automated-actions.banner.error.title":"We konden workflows niet goed laden, het kan dat er iets mist.","ce.patient.thresholds.item.details.button":"Drempelwaarde aanpassen","ce.patient.thresholds.item.details.modal.title":"Instrument details: {{name}}","ce.patient.thresholds.item.view-details.button":"Details bekijken","ce.patient.thresholds.item.view.button":"Bekijk details","ce.patient.thresholds.loading.description":"Laad de pagina opnieuw, het kan een minuutje duren.","ce.patient.thresholds.loading.title":"We werken de drempelwaarden voor deze patiënt bij.","ce.patient.thresholds.panel.empty.description":"Er zijn geen drempels ingesteld voor dit instrument.","ce.patient.thresholds.panel.empty.title":"Geen drempelwaarden","ce.patient.thresholds.panel.tag.personalized":"Gepersonaliseerd","ce.patient.validation.threshold.decimals":"Waarde kan maximaal {{value}} decimalen bevatten.","ce.patient.validation.threshold.formatting":"Vul een getal in","ce.patient.validation.threshold.gt":"Waarde moet hoger zijn dan {{value}} {{unit}}","ce.patient.validation.threshold.gte":"Waarde moet {{value}} {{unit}} of hoger zijn","ce.patient.validation.threshold.lt":"Waarde moet lager zijn dan {{value}} {{unit}}","ce.patient.validation.threshold.lte":"Waarde moet {{value}} {{unit}} of lager zijn","ce.protocol.copy-trigger.modal.button-copy.label":"Kopieer trigger","ce.protocol.copy-trigger.modal.copy-target-form.organisation.label":"Kies een organisatie","ce.protocol.copy-trigger.modal.copy-target-form.organisation.placeholder":"Kies een organisatie","ce.protocol.copy-trigger.modal.copy-target-form.organisation.required":"Selecteer een organisatie","ce.protocol.copy-trigger.modal.copy-target-form.program.label":"Kies een programma","ce.protocol.copy-trigger.modal.copy-target-form.program.placeholder":"Kies een programma","ce.protocol.copy-trigger.modal.copy-target-form.program.required":"Selecteer een programma","ce.protocol.copy-trigger.modal.copy-target-form.protocol.label":"Kies een protocol","ce.protocol.copy-trigger.modal.copy-target-form.protocol.placeholder":"Kies een protocol","ce.protocol.copy-trigger.modal.copy-target-form.protocol.required":"Kies een protocol","ce.protocol.copy-trigger.modal.copy-target-form.title":"Waar wil je kopie van deze trigger toevoegen?","ce.protocol.copy-trigger.modal.failed.title":"We konden geen kopie maken. Probeer het nog eens.","ce.protocol.copy-trigger.modal.required-instruments.title":"Benodigde instrumenten (worden niet meegekopieerd)","ce.protocol.copy-trigger.modal.success.description":"Een kopie van deze trigger is toegevoegd aan {{protocol}}. Je vindt het in de lijst met meldingsinstellingen. Zorg dat benodigde instrumenten aanwezig zijn in het protocol, anders werkt hij niet.","ce.protocol.copy-trigger.modal.success.required-instruments-item.title":"Kopieer {{ID}}","ce.protocol.copy-trigger.modal.success.required-instruments.title":"Benodigde instrumenten","ce.protocol.copy-trigger.modal.success.title":"Trigger gekopieerd","ce.protocol.copy-trigger.modal.title":"Trigger kopiëren","ce.protocol.copy-trigger.modal.unauthorized.description":"Alleen beheerders en CMD-ers binnen een organisatie kunnen meldingen kopiëren. Je bent nu ingelogd als âsuper adminâ. \\n\\nLog uit en log opnieuw in bij de organisatie. Dan kun je kiezen naar welk programma je deze melding wilt kopiëren.","ce.protocol.copy-trigger.modal.unauthorized.title":"Log in als organisatiebeheerder","ce.protocol.copy.success":"Succesvol gekopieerd","ce.protocol.thresholds.instrument.empty.description":"Voor dit instrument zijn geen drempelwaarden ingesteld.","ce.template-configuration.faq.button.label":"FAQ's","ce.template-configuration.faq.external-link.label":"Meer informatie","ce.template-configuration.faq.instructions-for-use
1-link.label":"Gebruiksaanwijzing","ce.template-configuration.faq.instructions-for-use-link.url":"https://luscii.com/en/ifu","ce.template-configuration.faq.q1.answer":"","ce.template-configuration.faq.q1.question":"Kan ik meerdere triggers van hetzelfde soort instellen?","ce.template-configuration.faq.q2.answer":"","ce.template-configuration.faq.q2.question":"Hoe zorg ik ervoor dat drempelwaarden elkaar niet overlappen?","ce.template-configuration.faq.q3.answer":"","ce.template-configuration.faq.q3.question":"Hoe maak ik een gepersonaliseerde trigger, zoals 'hoog gewicht'?","ce.template-configuration.faq.q4.answer":"","ce.template-configuration.faq.q4.question":"","ce.template-configuration.faq.q5.answer":"Gecombineerde triggers gebruiken een combinatie van drempelwaarden â handig wanneer één enkele waarde niet voldoende is. Bijvoorbeeld een combinatie van instrumenten, zoals systolische en diastolische bloeddruk.","ce.template-configuration.faq.q5.question":"Wat zijn gecombineerde triggers?","ce.template-configuration.faq.q6.answer":"","ce.template-configuration.faq.q6.question":"Kan ik een workflow hergebruiken?","ce.template-configuration.faq.title":"Veelgestelde vragen","ce.template-configuration.tabs.all-triggers.label":"Alle triggers","ce.template-configuration.tabs.combined.label":"Gecombineerde triggers","ce.template-configuration.tabs.inactivity.label":"Inactiviteitstriggers","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.description":"Automatisch afhandelen","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.unless-comment.subtext":"Tenzij patiënt een opmerking heeft toegevoegd","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed-unless-comment.detailed":"{{alertPriorityName}} automatisch verwerkt, tenzij er een opmerking bij zit","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.description.detailed":"{{alertPriorityName}} automatisch verwerkt","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.detailed":"{{color}} melding automatisch verwerkt","ce.threshold-detail-flow.automated-actions.alert-status.escalated.detailed":"{{alertPriorityName}} doorgestuurd","ce.threshold-detail-flow.automated-actions.alert-status.forward.description":"Automatisch doorsturen naar tweede lijn","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.description.detailed":"{{alertPriorityName}} gemaakt","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.detailed":"{{color}} melding aangemaakt","ce.threshold-detail-flow.automated-actions.change-patient-status.stopped.description":"Wijzig patiëntstatus in: gestopt","ce.threshold-detail-flow.automated-actions.schedule-action.days-after.subtext":"{{value}} dagen na trigger","ce.threshold-detail-flow.automated-actions.schedule-action.description":"Plan actie: {{action_name}}","ce.threshold-detail-flow.automated-actions.schedule-action.directly.subtext":"Direct na de trigger","ce.threshold-detail-flow.automated-actions.send-message.description":"Stuur patiënt een bericht","ce.threshold-detail-flow.automated-actions.send-message.variants.link":"Bekijk {{value}} varianten","ce.threshold-detail-flow.automated-actions.switch-group.description":"Wijzig groep: {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.description.short":"Wijzig naar {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.subtext":"{{program_name}} ({{protocol_name}})","ce.threshold-detail-flow.automated-actions.switch-programme.description":"Wijzig programma: {{program_name}}","ce.threshold-detail-flow.automated-actions.switch-programme.protocol.subtext":"Protocol: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.switch-protocol.description":"Wijzig protocol: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.title":"Workflow","ce.threshold-detail-flow.automated-actions.trigger-limit.limit-per-day.description":"Deze workflow activeert max. {{value}} keer per dag","ce.threshold-detail-flow.automated-actions.trigger-limit.unlimited.description":"Deze workflow kan onbeperkt worden geactiveerd","ce.threshold-detail-flow.
1comments.add-trigger.button.label":"Trigger toevoegen","ce.threshold-detail-flow.comments.add-trigger.success-toaster.description":"We maken een melding als een patiënt een opmerking toevoegt.","ce.threshold-detail-flow.comments.add-trigger.success-toaster.title":"Trigger toegevoegd","ce.threshold-detail-flow.comments.add-trigger.title":"Trigger voor opmerkingen","ce.threshold-detail-flow.comments.automated-actions.description":"Je kunt een workflow toevoegen via de instellingen per instrument.","ce.threshold-detail-flow.comments.edit-trigger.title":"Trigger: melding voor opmerkingen","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.description":"We maken geen meldingen meer voor opmerkingen.","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.title":"Trigger verwijderd","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.description":"Er zijn geen geautomatiseerde acties meer voor deze melding.","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.title":"Workflow verwijderd","ce.threshold-detail-flow.comments.trigger.description":"Maak een melding als patiënten een opmerking toevoegen aan een meting.","ce.threshold-detail-flow.comments.trigger.title":"Trigger: patiënt plaatst opmerking","ce.threshold-detail-flow.comments.update-trigger.success-toaster.title":"Trigger bijgewerkt","ce.threshold-detail-flow.create-alert.amber.description":"Oranje melding","ce.threshold-detail-flow.create-alert.grey.description":"Grijze melding","ce.threshold-detail-flow.create-alert.grey.title":"Maak een melding","ce.threshold-detail-flow.create-alert.red.description":"Rode melding","ce.threshold-detail-flow.create-alert.title":"Maak een melding","ce.threshold-detail-flow.error-banner.could-not-save.description":"We konden de wijzigingen niet opslaan","ce.threshold-detail-flow.inactivity.add-trigger.button.label":"Trigger toevoegen","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description":"We maken een melding als de patiënt inactief is.","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title":"Trigger toegevoegd","ce.threshold-detail-flow.inactivity.add-trigger.title":"Trigger voor inactiviteit","ce.threshold-detail-flow.inactivity.automated-actions.description":"Automatische actie","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.description":"We maken geen meldingen meer voor inactiviteit.","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.title":"Trigger verwijderd","ce.threshold-detail-flow.inactivity.trigger.description":"Inactief' betekent dat er geen acties worden ingestuurd.","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.label":"Als de patiënt inactief is voor...","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.suffix":"dagen","ce.threshold-detail-flow.inactivity.trigger.title":"Patiënt is inactief","ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title":"Trigger bijgewerkt","ce.threshold-detail-flow.overdue.add-trigger.button.label":"Trigger toevoegen","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.description":"We maken nu meldingen voor verlopen acties.","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.title":"Trigger toegevoegd","ce.threshold-detail-flow.overdue.add-trigger.title":"Trigger voor te-laatmelding","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.footnote":"Je kunt meer automatische acties instellen per instrument. Voeg een workflow toe via instrument, en kies 'te-laatmelding'. ","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.label":"Wil je melding open laten of verwerken?","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.leave-open":"Melding open laten","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.process-auto":"Meldingen afhandelen","ce.threshold-detail-flow.overdue.automated-actions.title":"Workflow","ce.threshold-detail-flow.overdue.automated-actions.via-workflow-explanation":"Je kunt een workflow toevoegen via de alert
1instellingen per instrument, zodat elke meting zijn eigen automatiseringsinstellingen kan hebben.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.description":"We maken geen meldingen meer voor verlopen acties.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.title":"Trigger verwijderd","ce.threshold-detail-flow.overdue.trigger.description":"Als de patiënt metingen niet op tijd inzendt...","ce.threshold-detail-flow.overdue.trigger.form.all-day-alert-creation-option.end-of-day.label":"Einde van de dag","ce.threshold-detail-flow.overdue.trigger.form.all-day-time.label":"Maak te-laatmelding voor standaard acties om...","ce.threshold-detail-flow.overdue.trigger.form.time-sensitive-time.label":"Melding toevoegen voor acties met een specifiek tijdvak om...","ce.threshold-detail-flow.overdue.trigger.title":"Trigger: ingeplande taak verlopen","ce.threshold-detail-flow.remove-workflow.success-toaster.description":"Geen geautomatiseerde acties meer voor deze melding.","ce.threshold-detail-flow.remove-workflow.success-toaster.titl":"Workflow verwijderd","ce.threshold-detail-flow.thresholds.remove-trigger.error-banner.description":"We konden de trigger niet verwijderen.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.description":"We maken geen meldingen meer voor deze drempelwaarden.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.title":"Trigger verwijderd","ce.threshold-detail-flow.thresholds.remove-workflow.error-banner.description":"We konden de workflow niet verwijderen.","ce.threshold-details-flow.automated-actions.error.title":"Sorry, we konden niet checken of er een workflow is.","ce.threshold-list-view.automated-actions.action.label":"{{action_name}}","ce.threshold-list-view.automated-actions.alert-status.auto-process.label":"Afhandelen","ce.threshold-list-view.automated-actions.alert-status.forward.label":"Doorsturen","ce.threshold-list-view.automated-actions.alert.label":"Melding","ce.threshold-list-view.automated-actions.error.title":"We konden deze details niet laden.","ce.threshold-list-view.automated-actions.message.label":"Stuur bericht","ce.threshold-list-view.automated-actions.switch-group.label":"Wijzig groep: {{group_name}}","ce.threshold-list-view.automated-actions.switch-program.label":"Wijzig: {{program_name}} ({{protocol_name}})","ce.threshold-list-view.automated-actions.switch-protocol.label":"Wijzig: {{program_name}} ({{protocol_name}})","ce.threshold-list-view.section.combination-triggers.title":"","ce.threshold-list-view.section.combined-instruments.empty.description":"Er zijn nog geen gecombineerde triggers ingesteld.","ce.threshold-list-view.section.combined-instruments.item.missing-items":"Instrument(en) ontbreken, trigger werkt niet","ce.threshold-list-view.section.combined-instruments.title":"Gecombineerde triggers","ce.threshold-list-view.section.combined-triggers-with-instrument.title":"Gecombineerde triggers met {{instrument}}","ce.threshold-list-view.section.comment.empty":"Geen meldingen voor opmerkingen bij een meting.","ce.threshold-list-view.section.comment.empty.link":"Trigger toevoegen","ce.threshold-list-view.section.comment.title":"Opmerkingen","ce.threshold-list-view.section.inactivity-triggers.title":"","ce.threshold-list-view.section.inactivity.empty":"Geen meldingen toegevoegd als een patiënt inactief is.","ce.threshold-list-view.section.inactivity.empty.link":"Trigger toevoegen","ce.threshold-list-view.section.inactivity.title":"Inactiviteit","ce.threshold-list-view.section.instrument.empty":"Nog geen triggers voor dit instrument.","ce.threshold-list-view.section.instrument.empty.link":"Drempelwaarde toevoegen","ce.threshold-list-view.section.overdue.empty":"Geen meldingen als acties niet op tijd worden ingestuurd.","ce.threshold-list-view.section.overdue.empty.link":"Trigger toevoegen","ce.threshold-list-view.section.overdue.title":"Te-laatmeldingen","ce.threshold-list-view.section.simple-triggers.title":"","ce.threshold-list-view.trigger.comment.label":"Patiënt voegt een opmerking toe","ce.threshold-list-view.trigger.empty":"Nog geen drempelwaarden voor dit instrument","ce.threshold-list-view.trigger.inactivity.label":"Patiënt is inactief voor {{value}} dag(en)","ce.threshold-list-view.trigger.overdue.label":"Patiënt heeft geplande actie niet ingestuurd","ce.threshold-list-view.trigger.overdue.subtitle":"Verlopen om {{time}}","ce.threshold-list-view.trigger.threshold.decrease.label":"Afname van minstens {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.increase.label":"Toename van minstens {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.lower-threshold.label":"Lager dan of gelijk aan {{value}}{{unit}}","ce.threshold-list-view.trigger.threshold.upper-threshold.label":"Groter dan of gelijk aan {{value}} {{unit}}
1","ce.threshold-updates.inactivity.confirm-exceeding-limit.description":"Je stelt een aantal dagen van meer dan 60 in. Je kunt inactieve patiënten dan missen.","ce.threshold-updates.inactivity.confirm-exceeding-limit.title":"Trigger voor inactiviteit aanpassen?","ce.threshold.description.above-or-equal-to":"Groter dan of gelijk aan {{value}} {{unit}}","ce.threshold.description.decrease-of-at-least":"Afname van minstens {{value}} {{unit}}","ce.threshold.description.from-to":"Van {{from}} {{unit}} tot {{to}} {{unit}}","ce.threshold.description.increase-of-at-least":"Toename van minstens {{value}} {{unit}}","ce.threshold.description.lower-than-or-equal-to":"Lager dan of gelijk aan {{value}} {{unit}}","ce.threshold.description.x-to-y-unit":"{{from}} tot {{to}} {{unit}}","ce.threshold.flyout-menu.add-workflow.label":"Workflow toevoegen","ce.threshold.flyout-menu.copy-trigger.label":"Trigger kopiëren","ce.threshold.flyout-menu.copy-workflow.label":"Workflow kopiëren","ce.threshold.flyout-menu.delete-threshold.label":"Trigger verwijderen","ce.threshold.flyout-menu.delete-trigger.label":"Trigger verwijderen","ce.threshold.flyout-menu.delete-workflow.label":"Workflow verwijderen","ce.threshold.flyout-menu.edit-workflow.label":"Workflow bewerken","ce.threshold.flyout-menu.view-details.label":"Bewerken","ce.threshold.subtitle.value-empty":"Geen waarden ingevuld","ce.threshold.title.floating-zone":"Zone","ce.threshold.title.lower-zone":"Lage zone","ce.threshold.title.upper-zone":"Hoge zone","ce.thresholds.cannot-edit-comment-dialog.description":"<p>Je kunt meldingen voor opmerkingen nog niet per instrument instellen Alleen voor het hele protocol.</p>","ce.thresholds.cannot-edit-comment-dialog.title":"Stel in voor hele protocol","ce.thresholds.cannot-edit-comment-dialog.to-protocol-settings-button.title":"Naar protocolinstellingen","ce.thresholds.cannot-edit-overdue-dialog.description":"<p>Je kunt te-laatmeldingen nog niet per instrument instellen Alleen voor het hele protocol.</p>","ce.thresholds.cannot-edit-overdue-dialog.title":"Stel in voor hele protocol","ce.thresholds.cannot-edit-overdue-dialog.to-protocol-settings-button.title":"Naar protocolinstellingen","ce.thresholds.comment-trigger-description":"Patiënt voegt een opmerking toe","ce.thresholds.modal.calculation-missing.button-request.label":"Vraag aan via Notion","ce.thresholds.modal.calculation-missing.copy-protocol-id":"Kopieer je protocol ID, je hebt het nodig in het Notion-formulier.","ce.thresholds.modal.calculation-missing.description":"Voor elk nieuw protocol moet een calculatie worden geactiveerd. Zelfs als je dit al hebt gedaan voor andere protocollen binnen het programma. Je kunt de activering aanvragen via Notion. Heb je dit al gedaan? Je kunt het proces ook volgen in Notion.","ce.thresholds.modal.calculation-missing.title":"Calculatie ontbreekt","ce.thresholds.modal.instrument-missing.button.to-action.label":"Naar metingen","ce.thresholds.modal.instrument-missing.description":"Niet alle instrumenten die nodig zijn zitten in dit protocol. Voeg ze toe aan de metingen in dit protocol, zodat de trigger werkt.","ce.thresholds.modal.instrument-missing.required-instruments.title":"Benodigde instrumenten","ce.thresholds.modal.instrument-missing.title":"Instrument(en) niet in protocol","ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label":"ID kopiëren naar klembord","ce.thresholds.more-info.limit-reached.label":"Alle mogelijke drempelwaarden zijn al toegevoegd","ce.thresholds.no-comment-trigger-message":"Nog geen trigger voor opmerkingen.","ce.thresholds.no-overdue-trigger-message":"Nog geen trigger voor verlopen acties.","ce.thresholds.panel.action.add":"Voeg drempelwaarden toe","ce.thresholds.panel.action.edit":"Drempelwaarden wijzigen","ce.thresholds.validation-error.calculation-input-codings-unavailable.title":"We hebben op dit moment niet genoeg informatie om te bevestigen dat deze berekening goed werkt.","ce.thresholds.validation-error.calculation-missing.button":"Activering aanvragen","ce.thresholds.validation-error.calculation-missing.title":"Calculatie nog niet geactiveerd.","ce.thresholds.validation-error.instrument-missing-in-program.title":"Instrument ontbreekt in programma","ce.thresholds.validation-error.instrument-missing-in-protocol.title":"Instrument ontbreekt in protocol","ce.thresholds.validation-error.instrument-missing.button":"Details bekijken","ce.thresholds.validation-error.instrument-missing.title":"Instrument ontbreekt, trigger werkt niet","ce.trigger-builder.new-trigger.title":"Nieuwe trigger: {{instrument_name}}","ce.trigger-builder.step-one.description":"Kies een of meerdere triggers","ce.trigger-builder.step-one.no-selection-error.description":"Selecteer minstens één trigger om verder te gaan.","ce.trigger-builder.step-one.title":"Selecteer trigger(s)","ce.trigger-builder.step-three.description":"Stel in hoe meldingen in het dashboard worden weergegeven.","ce.trigger-builder.step-three.edit-display-button.label":"Be
1werken","ce.trigger-builder.step-three.title":"Weergave aanpassen","ce.trigger-builder.step-two.description":"Stel de voorwaarden in voor de trigger.","ce.trigger-builder.step-two.title":"Voorwaarden instellen","ce.trigger-preset.delta-compare-decrease.label":"Afname","ce.trigger-preset.delta-compare-increase.label":"Toename","ce.trigger-preset.single-compare-lower-ph-four.label":"Rode ondergrens","ce.trigger-preset.single-compare-lower-ph-three.label":"Oranje ondergrens","ce.trigger-preset.single-compare-upper-ph-four.label":"Rode bovengrens","ce.trigger-preset.single-compare-upper-ph-three.label":"Oranje bovengrens","ce.view-details.button":"Details bekijken","ce.worfklow-form.settings.title":"Workflow-instellingen","ce.workflow-builder.add-external-follow-up-error-modal.description":"<p>We konden de instellen voor deze actie niet laden.</p>\\n<p>Probeer het nog eens of neem contact op met support@luscii.</p>","ce.workflow-builder.add-external-follow-up-error-modal.title":"We konden de actie niet toevoegen.","ce.workflow-builder.add-external-follow-up-modal.submit-button.label":"Aan workflow toevoegen","ce.workflow-builder.add-external-follow-up-modal.title":'Voeg toe: "{{name}}"',"ce.workflow-builder.aside.actions.add-action-fly-out.trigger-label":"Actie toevoegen","ce.workflow-builder.aside.actions.all-actions-added-tooltip.label":"Alle mogelijke acties zijn al toegevoegd","ce.workflow-builder.comment.title":"Opmerkingen","ce.workflow-builder.inactivity.info-card.title":"Inactiviteit","ce.workflow-builder.inactivity.title":"Inactiviteit","ce.workflow-builder.instrument-info.precision.title":"Decimale precisie","ce.workflow-builder.instrument-info.trigger-limits.not-set":"Min - max drempelwaardes niet ingesteld","ce.workflow-builder.instrument-info.trigger-limits.title":"Min - max drempelwaarde","ce.workflow-builder.other-triggers-section.title":"Workflows voor opmerkingen en te-laatmeldingen","ce.workflow-builder.overdue.title":"Te-laatmeldingen","ce.workflow-builder.range-coverage.legend.filled":"Gevuld","ce.workflow-builder.range-coverage.legend.gap":"Niet gevuld","ce.workflow-builder.range-coverage.legend.gap.description":"Geen drempelwaarden voor dit bereik","ce.workflow-builder.range-coverage.legend.loading-error":"Sorry, we konden de grafiek met grenswaarden niet laden","ce.workflow-builder.range-coverage.legend.overlap":"Overlap","ce.workflow-builder.range-coverage.legend.overlap.description":"{{count}} drempels overlappen elkaar hier","ce.workflow-builder.range-coverage.title":"Drempelwaarden dekking","ce.workflow-builder.trigger-card.automated-actions-list.title":"Workflow actions","ce.workflow-builder.trigger-card.details.empty.add-workflow-button.text":"Workflow toevoegen","ce.workflow-builder.trigger-card.no-workflow-summary.tag":"Geen workflow","ce.workflow-builder.trigger-card.workflow-summary.tag":{one:"Workflow: {{value}} actie",other:"Workflow: {{value}} acties"},"ce.workflow-builder.triggers-section.empty":"Geen triggers ingesteld","ce.workflow-builder.triggers-section.subtitle":".","ce.workflow-builder.triggers-section.title":"Drempelwaarden","ce.workflow-builder.unsaved-changes-indicator.label":"Nog niet opgeslagen","ce.workflow-editor-modal.aside.create.title":"Workflow toevoegen","ce.workflow-editor-modal.create.subtitle":".","ce.workflow-editor-modal.create.title":"Workflows","ce.workflow-editor.instrument-info.increase-decrease-bounds.label":"Stijgings-/dalingsgrenzen","ce.workflow-editor.instrument-info.max.label":"Max","ce.workflow-editor.instrument-info.min.label":"Min","ce.workflow-editor.instrument-info.threshold-bounds.legend":"Drempelwaarde min-max","ce.workflow-editor.toast.workflow-deleted.description":"De workflow is verwijderd","ce.workflow-editor.toast.workflow-deleted.title":"Wijzigingen succesvol opgeslagen","ce.workflow-editor.toast.workflow-updated.description":"De workflow is bijgewerkt","ce.workflow-editor.toast.workflow-updated.title":"Wijzigingen succesvol opgeslagen","ce.workflow-form.add-actions.title":"Geautomatiseerde acties toevoegen","ce.workflow-form.automated-actions.group.alert-status.label":"Status van de melding","ce.workflow-form.automated-actions.group.alert-status.option.escalated.label":"Stuur door naar tweede lijn","ce.workflow-form.automated-actions.group.alert-status.option.keep-open.label":"Laat alert open","ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label":"Automatisch afhandelen, tenzij er een opmerking bij zit","ce.workflow-form.automated-actions.group.alert-status.option.processed.label":"Automatisch afhandelen","ce.workflow-form.automated-actions.name.label":"Acties","ce.workflow-form.configured-actions.title":"Geconfigureerde acties","ce.workflow-form.create.title":"Workflow toevoegen","ce.workflow-form.settings.group.trigger-limit.custom-limit.label":"Trigger limiet","ce.workflow-form.settings.group.trigger-limit.label.day":"Dag","ce.workflow-form.settings.group.trigger-limit.label.max":"Max","ce.workflow-form.settings.group.trigger-limit.label.per":"per","ce.workflow-form.settings.group.trigger-limit.label.week":"Week","ce.workflow-form.settings.group.trigger-limit.name":"Trigger limiet","ce.workflow-form.settings.group.trigger-limit.option.set-limit.label":"Stel limiet in","ce.workflow-form.settings.group.trigger-limit.option.unlimited.label":"Geen limiet - kan onbeperkt afgaan","ce.workflow-form.settings.group.trigger-limit.times.suffix":"Keer","ce.workflow-form.settings.name.label":"Workflow naam","ce.workflow-form.update.title":"Workflow wijzigen","ce.workflow-form.workflow-detail
1s.name.label":"Workflowdetails","prototype.ce.generic.from":"Van","prototype.ce.generic.to":"Tot en met","prototype.ce.instrument-validation.banner.button-confirm.label":"Bevestigen","prototype.ce.instrument-validation.banner.button-edit.label":"Aanpassen","prototype.ce.instrument-validation.banner.description":"Bevestig deze instellingen voordat je triggers toevoegt. We gebruiken ze om je grenswaarden te valideren.","prototype.ce.instrument-validation.banner.description.no-bounds":"Stel eerst je instrument in voordat je triggers toevoegt. We gebruiken dit om je grenswaarden te valideren.","prototype.ce.instrument-validation.banner.range":"{{min}} tot en met {{max}} {{unit}}","prototype.ce.instrument-validation.banner.settings":"Min-max drempelwaarde: {{limit}}, Decimale precisie: {{decimal_precision}}","prototype.ce.instrument-validation.banner.settings-delta":"Min-max drempelwaarde: {{limit}}, Decimale precisie: {{decimal_precision}}","prototype.ce.instrument-validation.banner.title":"Controleer de meetinstellingen","prototype.ce.instrument-validation.banner.title.no-bounds":"Stel je instrument in","prototype.ce.threshold-input.from.helper.link-to-value":'Link aan {{threshold_name}} "Tot en met" waarde.',"prototype.ce.threshold-input.from.helper.prefilled-with-instrument-min":"Deze waarde is ingevuld om overeen te komen met de maximumwaarde van het instrument. {{Edit}}","prototype.ce.threshold-input.from.helper.unlink-from-value":'Ontkoppelen van{{threshold_name}} "Tot en met" waarde.',"prototype.ce.threshold-input.from.label":"Van","prototype.ce.threshold-input.generic.link":"Link","prototype.ce.threshold-input.generic.unlink":"Ontkoppelen","prototype.ce.threshold-input.to.helper.prefilled-with-instrument-max":"Deze waarde is ingevuld om overeen te komen met de minimumwaarde van het instrument. {{Edit}}","prototype.ce.threshold-input.to.label":"Tot en met"},"fr-FR":{" ce.generic.button.add-workflow.label":"Ajouter un Workflow","ce.activity-triggers.more-info.limit-reached.label":"Ce déclencheur est déjà ajouté au protocole","ce.confirmation-modal.remove-trigger.button.confirm":"Supprimer","ce.confirmation-modal.remove-trigger.comment.description":"Aucune alerte ne sera générée lorsque les patients ajouteront un commentaire à une mesure. Voulez-vous supprimer cela ?","ce.confirmation-modal.remove-trigger.inactivity.description":"Aucune alerte ne sera créée lorsque les patients sont inactifs. Voulez-vous supprimer cela ?","ce.confirmation-modal.remove-trigger.overdue.description":"Si vous supprimez ce déclencheur, aucune alerte ne sera créée lorsque les patients n'auront pas réalisé une mesure dans les délais. Souhaitez-vous vraiment le retirer ?","ce.confirmation-modal.remove-trigger.thresholds.description":"Voulez-vous supprimer ces seuils ?","ce.confirmation-modal.remove-trigger.title":"Supprimer le déclencheur","ce.confirmation-modal.remove-workflow.button.confirm":"Supprimer","ce.confirmation-modal.remove-workflow.description":"Il n'y aura plus d'actions automatisées pour des alertes. Voulez-vous supprimer le workflow ?","ce.confirmation-modal.remove-workflow.error-message.description":"Nous nâavons pas pu enregistrer vos modifications","ce.confirmation-modal.remove-workflow.title":"Supprimer le workflow","ce.dialog.apply-to-all.helper-text":"Les patients peuvent déjà avoir des valeurs personnelles définies pour les seuils.","ce.dialog.apply-to-all.option-no.label":"Non, seulement aux nouveaux patients","ce.dialog.apply-to-all.option-yes.label":"Oui, appliquer aux patients nouveaux et existants","ce.dialog.apply-to-all.title":"S'appliquer à tous les patients ?","ce.expression.condition":"{{title}} est {{operation}} {{xValue}}","ce.expression.condition-range":"{{title}} est {{operation}} {{xValue}} et {{yValue}}","ce.expression.in":"Dans","ce.expression.occurrence":"Pour {{unit}} {{amount}} mesures","ce.expression.occurrence-unit.at-least":"au moins","ce.expression.occurrence-unit.at-most":"au plus","ce.expression.occurrence-unit.exactly":"exactement","ce.expression.operation.between":"entre","ce.expression.operation.equal-to":"égal à ","ce.expression.operation.greater-than-or-equal-to":"supérieur ou égal à ","ce.expression.operation.less-than-or-equal-to":"inférieur ou égal à ","ce.expression.time-window":"les dernières {{amount}} {{unit}}","ce.expression.time-window-unit.days":{one:"jour",other:"jours"},"ce.expression.time-window-unit.hours":{one:"heure",other:"heures"},"ce.expression.time-window-unit.weeks":{one:"semaine",other:"semaines"},"ce.expression.unsupported":"Cette expression est trop complexe pour être affichée","ce.generic-confirm-unsaved-changes.text":"Ãtes-vous sûr de vouloir annuler les modifications ?","ce.generic.button-cancel.label":"Annuler","ce.generic.button-close.label":"Fermer","ce.generic.button-edit.label":"Modifier","ce.generic.button-remove.label":"Supprimer","ce.generic.button.add-threshold.label":"Ajouter un seuil","ce.generic.button.add-trigger.label":"Ajouter un déclencheur","ce.generic.button.edit-workflow.label":"Modifier le Workflow","ce.generic.button.flyout-more-icon.label":"Actions","ce.generic.button.more-info-icon.label":"Plus d'informations","ce.generic.button.reload.label":"Recharge","ce.global.add-threshold":"Ajouter un seuil","ce.global.add-trigger":"Ajouter un déclencheur","ce.global.alert.high.description":"Alerte rouge","ce.global.alert.low.description":"Alerte verte","ce.global.alert.medium.description":"Alerte orange","ce.global.back":"Retour","ce.global.button.add-workflow.label":"Ajouter un workflow","ce.global.button.remove-tr
1igger.label":"Supprimer le déclencheur","ce.global.button.remove-workflow.label":"Supprimer le workflow","ce.global.cancel":"Annuler","ce.global.close":"Fermer","ce.global.collapse-all":"Réduire tout","ce.global.compact-view":"Vue compacte","ce.global.condition.and":"Et","ce.global.condition.if":"Si","ce.global.copy":"Copier","ce.global.create-alert":"Créer une alerte","ce.global.delete":"Supprimer","ce.global.detailed-view":"Vue détaillée","ce.global.done":"Fait","ce.global.edit-triggers":"Modifier","ce.global.expand-all":"Développer tout","ce.global.hide":"","ce.global.next":"Suivant","ce.global.publish":"Publier","ce.global.save":"Sauvegarder","ce.global.show":"","ce.global.step-x-of-y":"Ãtape {{x}} de {{y}}","ce.global.threshold":"seuil","ce.global.threshold-description.delta-compare-ph-high":"Augmentation","ce.global.threshold-description.delta-compare-ph-low":"Diminution","ce.global.threshold-description.single-compare-ph-high":"Seuil supérieur rouge","ce.global.threshold-description.single-compare-ph-low":"Seuil inférieur rouge","ce.global.threshold-description.single-compare-pm-high":"Seuil supérieur ambré","ce.global.threshold-description.single-compare-pm-low":"Seuil inférieur ambré","ce.global.threshold-form-field.action.set-to-max":"","ce.global.threshold-form-field.action.set-to-min":"","ce.global.threshold-form-field.label.range-compare-from":"","ce.global.threshold-form-field.label.range-compare-to":"","ce.global.threshold.criticalHigh":"Seuil supérieur rouge","ce.global.threshold.criticalLow":"Seuil inférieur rouge","ce.global.threshold.decrease":"Diminution","ce.global.threshold.decrease.description":"Diminution d'au moins","ce.global.threshold.increase":"Augmentation","ce.global.threshold.increase.description":"Augmentation d'au moins","ce.global.threshold.lower-threshold.description":"Inférieur ou égal à ","ce.global.threshold.upper-threshold.description":"Supérieur ou égal à ","ce.global.threshold.warningHigh":"Seuil supérieur ambré","ce.global.threshold.warningLow":"Seuil inférieur ambré","ce.global.thresholds":"seuils","ce.global.toaster.couldnt-save":"Nous n'avons pas pu enregistrer vos modifications","ce.global.toaster.saved-successfully":"Modifications enregistrées avec succès","ce.global.toaster.trigger-added.title":"Déclencheur ajouté","ce.global.toaster.trigger-deleted.title":"Déclencheur supprimé","ce.global.toaster.trigger-updated.title":"Déclencheur mis à jour","ce.global.trigger":"Déclencheur","ce.global.view-triggers":"Voir les déclencheurs","ce.global.workflow":"Workflow","ce.patient.configuration.error.state.button.retry":"Réessayer","ce.patient.configuration.error.state.description":"Veuillez réessayer ou contacter le support si le problème persiste.","ce.patient.configuration.error.state.title":"Nous n'avons pas pu charger les seuils","ce.patient.faq.q1.answer":"","ce.patient.faq.q1.question":"Comment modifier un seuil ?","ce.patient.faq.q2.answer":"","ce.patient.faq.q2.question":"","ce.patient.faq.q3.answer":"","ce.patient.faq.q3.question":"","ce.patient.faq.q4.answer":"","ce.patient.faq.q4.question":"","ce.patient.item-details.close":"Fermer","ce.patient.navigation.item.all":"Tous les déclencheurs","ce.patient.navigation.item.with":"Par mesure","ce.patient.navigation.item.without":"Instruments sans déclencheurs","ce.patient.page.all-thresholds.title":"Paramètres de seuils définis","ce.patient.threhsolds.panel.title":"Seuils","ce.patient.threshold-form-field.button.title.reset":"Réinitialiser","ce.patient.threshold-form-field.desctiption.delta-high":"Augmentation d'au moins","ce.patient.threshold-form-field.desctiption.delta-low":"Diminution d'au moins","ce.patient.threshold-form-field.desctiption.single-compare-high":"Supérieur ou égal à ","ce.patient.threshold-form-field.desctiption.single-compare-low":"Inférieur ou égal à ","ce.patient.threshold-form-field.label.delta-ph-high":"Augmentation d'au moins","ce.patient.threshold-form-field.label.delta-ph-low":"Diminution d'au moins","ce.patient.threshold-form-field.label.single-compare-ph-high":"Seuil supérieur rouge","ce.patient.threshold-form-field.label.single-compare-ph-low":"Seuil inférieur rouge","ce.patient.threshold-form-field.label.single-compare-pm-high":"Seuil supérieur ambré","ce.patient.threshold-form-field.label.single-compare-pm-low":"Seuil inférieur ambré","ce.patient.threshold.detail-form.title":"{{name}}","ce.patient.threshold.form.button.cancel":"Annuler","ce.patient.threshold.form.button.submit":"Sauvegarder","ce.patient.threshold.form.description":"Les seuils ne sont visibles que pour les prestataires de soins de santé. Ils doivent être au moins {{min_value}} et tout au plus {{max_value}}.","ce.patient.threshold.form.input.deltaHigh.label":"Alerte rouge pour une augmentation d'au moins","ce.patient.threshold.form.input.deltaLow.label":"Alerte rouge pour une diminution d'au moins","ce.patient.threshold.form.input.singleComparePhHigh.label":"Alerte rouge si supérieur ou égal à ","ce.patient.threshold.form.input.singleComparePhLow.label":"Alerte rouge si inférieure ou égale à ","ce.patient.threshold.form.input.singleComparePmHigh.label":"Alerte orange si supérieur ou égal à ","ce.patient.threshold.form.input.singleComparePmLow.label":"Alerte orange si inférieure ou égale à ","ce.patient.threshold.form.toast.update-error.description":"Nous nâavons pas pu enregistrer vos modifications","ce.patient.threshold.form.toast.update-error.title":"Impossible d'enregistrer les seuils","ce.patient.threshold.form.toast.update-success.description":"Nous avons mis à jour vos seuils","ce.patient.threshold.form.toast.update-success.title":"Modifications enregistrées avec succès","ce.patient.thresholds.all.empty.description":"Aucun seuil n'est défini pour ce protocole.","ce.patient.thresholds.all.empty.title":"Aucun seuil nâest fixé","ce.patient.thresholds.automated-actions.banner.error.action":"Recharge","ce.patient.thresholds.automated-actions.banner.error.title":"Nous n'avons pas pu charger le Workflow correctement, certaines informations peuvent donc manquer.","ce.patient.thresholds.item.details.button":"Modifier les seuils","ce.patient.thresholds.item.details.modal.title":"Détails : {{name}}","ce.patient.thresholds.item.view-details.button":"Voir les détails","ce.patient.thresholds.item.view.button":"Voir les détails","ce.patient.thresholds.loading.description":"Essayez de recharger la page, cela peut prendre jusqu'à une minute.","ce.patient.thresholds.loading.title":"Nous mettons à jour les seuils des patients.","ce.patient.thresholds.panel.empty.description":"Il n'y a actuellement aucun seuil pour cet instrument.","ce.patient.thresholds.panel.empty.title":"Aucun seuil défini","ce.patient.thresholds.panel.tag.personalized":"Personnalisé","ce.patient.validation.threshold.decimals":"La valeur ne peut pas contenir plus de {{value}} décimale(s).","ce.patient.validation.threshold.formatting":"Veuillez saisir un numéro","ce.patient.validation.threshold.gt":"La valeur doit être supérieure à {{value}} {{unit}}","ce.patient.validation.threshold.gte":"La valeur doit être {{value}} {{unit}} ou supérieure","ce.patient.validation.threshold.lt":"La valeur doit être inférieure à {{value}} {{unit}}","ce.patient.validation.threshold.lte":"La valeur doit être {{value}} {{unit}} ou inférieure","ce.protocol.copy-trigger.modal.button-copy.label":"Copie au protocole","ce.protocol.copy-trigger.modal.copy-target-form.organisation.label":"Sélectionnez une organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.placeholder":"Sélectionnez une organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.required":"Veuillez sélectionner une organisation","ce.protocol.copy-trigger.modal.copy-target-form.program.label":"Sélectionnez un programme","ce.protocol.copy-trigger.modal.copy-target-form.program.placeholder":"Sélectionnez un programme","ce.protocol.copy-trigger.modal.copy-target-form.program.required":"Veuillez sélectionner un programme","ce.protocol.copy-trigger.modal.copy-target-form.protocol.label":"Sélectionnez un protocole","ce.protocol.copy-trigger.modal.copy-target-form.protocol.placeholder":"Sélectionnez un protocole","ce.protocol.copy-trigger.modal.copy-target-form.protocol.required":"Veuillez sélectionner un protocole","ce.protocol.copy-trigger.modal.copy-target-form.title":"Où voulez-vous ajouter une copie de ce déclencheur ?","ce.protocol.copy-trigger.modal.failed.title":"Nous n'avons pas pu créer une copie. Veuillez réessayer.","ce.protocol.copy-trigger.modal.required-instruments.title":"Instruments requis (non inclus dans la copie)","ce.protocol.copy-trigger.modal.success.description":"Une copie de ce déclencheur a été ajoutée à {{protocol}}. Vous le trouverez dans la liste des paramètres d'alerte. Tous les instruments requis sont présents dans le protocole, il fonctionnera donc directement.","ce.protocol.copy-trigger.modal.success.required-instruments-item.title":"Copie {{ID}}","ce.protocol.copy-trigger.modal.success.required-instruments.title":"Instruments requis","ce.protocol.copy-trigger.modal.success.title":"Déclencheur copié","ce.protocol.copy-trigger.modal.title":"Déclencheur de copie","ce.protocol.copy-trigger.modal.unauthorized.description":"Seuls les administrateurs et les utilisateurs CMD au sein dâune organisation peuvent copier des déclencheurs. Vous êtes actuellement connecté en tant que « super admin ».\\n\\nDéconnectez-vous puis reconnectez-vous à lâorganisation. Vous pourrez ensuite choisir le programme vers lequel vous souhaitez copier cette notification.","ce.protocol.copy-trigger.modal.unauthorized.title":"Connectez-vous en tant quâadmin de lâorganisation","ce.protocol.copy.success":"Copié","ce.protocol.thresholds.instrument.empty.description":"Aucun seuil nâest défini pour cet instrument.","ce.template-configuration.faq.button.label":"FAQ","ce.template-configuration.faq.external-link.label":"","ce.template-configuration.faq.instructions-for-use
1-link.label":"Mode d'emploi","ce.template-configuration.faq.instructions-for-use-link.url":"https://luscii.com/en/ifu","ce.template-configuration.faq.q1.answer":"","ce.template-configuration.faq.q1.question":"","ce.template-configuration.faq.q2.answer":"","ce.template-configuration.faq.q2.question":"","ce.template-configuration.faq.q3.answer":"","ce.template-configuration.faq.q3.question":"Comment créer un déclencheur personnalisé, comme le poids ?","ce.template-configuration.faq.q4.answer":"","ce.template-configuration.faq.q4.question":"","ce.template-configuration.faq.q5.answer":"","ce.template-configuration.faq.q5.question":"Que sont les déclencheurs avancés ?","ce.template-configuration.faq.q6.answer":"","ce.template-configuration.faq.q6.question":"","ce.template-configuration.faq.title":"Questions fréquemment posées","ce.template-configuration.tabs.all-triggers.label":"Tous les déclencheurs","ce.template-configuration.tabs.combined.label":"Déclencheurs avancés","ce.template-configuration.tabs.inactivity.label":"Déclencheurs dâinactivité","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.description":"Traiter automatiquement","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.unless-comment.subtext":"Sauf si le patient a ajouté un commentaire","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed-unless-comment.detailed":"{{alertPriorityName}} traité automatiquement, sauf s'il contient un commentaire","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.description.detailed":"{{alertPriorityName}} traitement automatique","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.detailed":"Alerte {{color}} traitée automatiquement","ce.threshold-detail-flow.automated-actions.alert-status.escalated.detailed":"{{alertPriorityName}} transmis","ce.threshold-detail-flow.automated-actions.alert-status.forward.description":"Rediriger automatiquement vers la seconde ligne","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.description.detailed":"{{alertPriorityName}} a créé","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.detailed":"{{color}} alerte créée","ce.threshold-detail-flow.automated-actions.change-patient-status.stopped.description":"Changer le statut du patient en : arrêté","ce.threshold-detail-flow.automated-actions.schedule-action.days-after.subtext":"{{value}} jours après le déclenchement","ce.threshold-detail-flow.automated-actions.schedule-action.description":"Planifier lâaction : {{action_name}}","ce.threshold-detail-flow.automated-actions.schedule-action.directly.subtext":"Directement après le déclenchement","ce.threshold-detail-flow.automated-actions.send-message.description":"Envoyer un message au patient","ce.threshold-detail-flow.automated-actions.send-message.variants.link":"Voir {{value}} variantes","ce.threshold-detail-flow.automated-actions.switch-group.description":"Passer au groupe : {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.description.short":"Passer à {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.subtext":"{{program_name}} ({{protocol_name}})","ce.threshold-detail-flow.automated-actions.switch-programme.description":"Passer au programme : {{program_name}}","ce.threshold-detail-flow.automated-actions.switch-programme.protocol.subtext":"Protocole : {{protocol_name}}","ce.threshold-detail-flow.automated-actions.switch-protocol.description":"Passer au protocole : {{protocol_name}}","ce.threshold-detail-flow.automated-actions.title":"Workflow","ce.threshold-detail-flow.automated-actions.trigger-limit.limit-per-day.description":"Le workflow déclenchera max {{value}} fois par jour","ce.threshold-detail-flow.automated-actions.trigger-limit.unlimited.description":"Ce workflow peut être déclenché de manière illimitée","ce.threshold-detail-flow.comments.add-trigger.button.label":"Ajouter un déclencheur","ce.threshold-detail-flow.comments.add-trigger.success-toaster.description":"Nous créerons des alertes lorsque les patients ajouteront un commentaire.","ce.threshold-detail-flow.
1comments.add-trigger.success-toaster.title":"Déclencheur ajouté","ce.threshold-detail-flow.comments.add-trigger.title":"Alertes pour les commentaires","ce.threshold-detail-flow.comments.automated-actions.description":"Vous pouvez ajouter un flux de travail via les paramètres par instrument.","ce.threshold-detail-flow.comments.edit-trigger.title":"Déclencheur : alertes pour les commentaires","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.description":"Nous créerons des alertes lorsque les patients ajouteront un commentaire.","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.title":"Déclencheur supprimé","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.description":"Cette alerte n'a plus d'actions automatisées.","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.title":"Workflow supprimé","ce.threshold-detail-flow.comments.trigger.description":"Créer une alerte lorsqu'un commentaire est ajouté à une mesure.","ce.threshold-detail-flow.comments.trigger.title":"Déclencheur: Patient ajoute un commentaire","ce.threshold-detail-flow.comments.update-trigger.success-toaster.title":"Déclencheur mis à jour","ce.threshold-detail-flow.create-alert.amber.description":"Alerte orange","ce.threshold-detail-flow.create-alert.grey.description":"Alerte grise","ce.threshold-detail-flow.create-alert.grey.title":"Créer une alerte","ce.threshold-detail-flow.create-alert.red.description":"Alerte rouge","ce.threshold-detail-flow.create-alert.title":"Créer une alerte","ce.threshold-detail-flow.error-banner.could-not-save.description":"Nous n'avons pas pu enregistrer vos modifications","ce.threshold-detail-flow.inactivity.add-trigger.button.label":"Ajouter un déclencheur","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description":"Nous créerons des alertes lorsque le patient est inactif.","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title":"Déclencheur ajouté","ce.threshold-detail-flow.inactivity.add-trigger.title":"Alertes d'inactivité","ce.threshold-detail-flow.inactivity.automated-actions.description":"Actions automatisées","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.description":"Nous ne créerons plus d'alertes d'inactivité.","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.title":"Déclencheur supprimé","ce.threshold-detail-flow.inactivity.trigger.description":"Ãtre « inactif » signifie quâaucune action nâest envoyée.","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.label":"Lorsque le patient est inactif pour...","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.suffix":"jours","ce.threshold-detail-flow.inactivity.trigger.title":"Le patient est inactif","ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title":"Déclencheur mis à jour","ce.threshold-detail-flow.overdue.add-trigger.button.label":"Ajouter un déclencheur","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.description":"Nous créerons des alertes lorsque des actions sont en retard.","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.title":"Déclencheur ajouté","ce.threshold-detail-flow.overdue.add-trigger.title":"Alertes pour les tâches en retard","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.footnote":"Ajoutez davantage dâactions automatisées en ajoutant un workflow pour les alertes de retard aux instruments.","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.label":"Que doit-on faire de l'alerte ?","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.leave-open":"Laisser l'alerte ouverte","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.process-auto":"Traiter lâalerte","ce.threshold-detail-flow.overdue.automated-actions.title":"Workflow","ce.threshold-detail-flow.overdue.automated-actions.via-workflow-explanation":"Vous pouvez ajouter un workflow via les paramètres d'alerte par instrument, afin que chaque mesure puisse avoir ses propres paramètres d'automatisation.","ce.threshold-detail-flow.overdue.remove-tr
1igger.success-toaster.description":"Nous ne générerons plus d'alertes pour les tâches en retard.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.title":"Déclencheur supprimé","ce.threshold-detail-flow.overdue.trigger.description":"Si le patient ne termine pas la tâche à temps.","ce.threshold-detail-flow.overdue.trigger.form.all-day-alert-creation-option.end-of-day.label":"Fin de journée","ce.threshold-detail-flow.overdue.trigger.form.all-day-time.label":"Créer une alerte pour les tâches toute la journée à ...","ce.threshold-detail-flow.overdue.trigger.form.time-sensitive-time.label":"Créer une alerte pour les tâches avec un délai spécifique à â¦","ce.threshold-detail-flow.overdue.trigger.title":"Déclencheur : Tâche planifiée en retard","ce.threshold-detail-flow.remove-workflow.success-toaster.description":"Il n'y a plus d'actions automatisées pour cette alerte","ce.threshold-detail-flow.remove-workflow.success-toaster.titl":"Workflow supprimé","ce.threshold-detail-flow.thresholds.remove-trigger.error-banner.description":"Nous n'avons pas pu supprimer le déclencheur.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.description":"Nous ne créerons plus d'alertes pour ces seuils.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.title":"Déclencheur supprimé","ce.threshold-detail-flow.thresholds.remove-workflow.error-banner.description":"Nous n'avons pas pu supprimer le workflow.","ce.threshold-details-flow.automated-actions.error.title":"Désolé, nous n'avons pas pu vérifier les actions automatisées.","ce.threshold-list-view.automated-actions.action.label":"{{action_name}}","ce.threshold-list-view.automated-actions.alert-status.auto-process.label":"Traiter","ce.threshold-list-view.automated-actions.alert-status.forward.label":"En avant","ce.threshold-list-view.automated-actions.alert.label":"Alerte","ce.threshold-list-view.automated-actions.error.title":"Nous n'avons pas pu charger ces détails.","ce.threshold-list-view.automated-actions.message.label":"Envoyer un message","ce.threshold-list-view.automated-actions.switch-group.label":"Changer de groupe : {{group_name}}","ce.threshold-list-view.automated-actions.switch-program.label":"Passer au: {{program_name}} ({{protocol_name}})","ce.threshold-list-view.automated-actions.switch-protocol.label":"Passer au: {{protocol_name}}","ce.threshold-list-view.section.combination-triggers.title":"","ce.threshold-list-view.section.combined-instruments.empty.description":"Aucun déclencheur avancé n'a encore été configuré.","ce.threshold-list-view.section.combined-instruments.item.missing-items":"Instrument(s) manquantes, le déclencheur ne fonctionne pas","ce.threshold-list-view.section.combined-instruments.title":"Déclencheurs avancés","ce.threshold-list-view.section.combined-triggers-with-instrument.title":"Déclencheurs combinés avec {{instrument}}","ce.threshold-list-view.section.comment.empty":"Aucune alerte n'est créée lorsque les patients ajoutent un commentaire.","ce.threshold-list-view.section.comment.empty.link":"Ajouter un déclencheur","ce.threshold-list-view.section.comment.title":"Commentaires","ce.threshold-list-view.section.inactivity-triggers.title":"","ce.threshold-list-view.section.inactivity.empty":"Aucune alerte créée lorsqu'un patient est inactif.","ce.threshold-list-view.section.inactivity.empty.link":"Ajouter un déclencheur","ce.threshold-list-view.section.inactivity.title":"Inactivité","ce.threshold-list-view.section.instrument.empty":"Aucun déclencheur n'a encore été défini pour cet instrument.","ce.threshold-list-view.section.instrument.empty.link":"Ajouter un seuil","ce.threshold-list-view.section.overdue.empty":"Aucune alerte n'a été créée lorsque des actions sont en retard.","ce.threshold-list-view.section.overdue.empty.link":"Ajouter un déclencheur","ce.threshold-list-view.section.overdue.title":"En retard","ce.threshold-list-view.section.simple-triggers.title":"","ce.threshold-list-view.trigger.comment.label":"Le patient ajoute un commentaire","ce.threshold-list-view.trigger.empty":"Pas encore de seuils pour cet instrument","ce.threshold-list-view.trigger.inactivity.label":"Le patient est inactif depuis {{value}} jour(s)","ce.threshold-list-view.trigger.overdue.label":"Le patient n'a pas effectué l'action à temps","ce.threshold-list-view.trigger.overdue.subtitle":"En retard à {{time}}","ce.threshold-list-view.trigger.threshold.decrease.label":"Diminution d'au moins {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.increase.label":"Augmentation d'au moins {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.lower-threshold.label":"Inférieur ou égal à {{value}}{{unit}}","ce.threshold-list-view.trigger.threshold.upper-threshold.label":"Supérieur ou égal à {{value}} {{unit}}
1","ce.threshold-updates.inactivity.confirm-exceeding-limit.description":"Si les paramètres d'inactivité sont réglés sur un nombre élevé de jours, des patients inactifs peuvent être oubliés.","ce.threshold-updates.inactivity.confirm-exceeding-limit.title":"Mettre à jour le Déclencheur?","ce.threshold.description.above-or-equal-to":"Supérieur ou égal à {{value}} {{unit}}","ce.threshold.description.decrease-of-at-least":"Diminution d'au moins {{value}} {{unit}}","ce.threshold.description.from-to":"De {{from}} {{unit}} à {{to}} {{unit}}","ce.threshold.description.increase-of-at-least":"Augmentation d'au moins {{value}} {{unit}}","ce.threshold.description.lower-than-or-equal-to":"Inférieur ou égal à {{value}} {{unit}}","ce.threshold.description.x-to-y-unit":"{{from}} à {{to}} {{unit}}","ce.threshold.flyout-menu.add-workflow.label":"Ajouter un workflow","ce.threshold.flyout-menu.copy-trigger.label":"Déclencheur de copie","ce.threshold.flyout-menu.copy-workflow.label":"Copier le Workflow","ce.threshold.flyout-menu.delete-threshold.label":"Supprimer le déclencheur","ce.threshold.flyout-menu.delete-trigger.label":"Supprimer le déclencheur","ce.threshold.flyout-menu.delete-workflow.label":"Supprimer le workflow","ce.threshold.flyout-menu.edit-workflow.label":"Modifier le workflow","ce.threshold.flyout-menu.view-details.label":"Modifier les détails","ce.threshold.subtitle.value-empty":"Aucun seuil défini","ce.threshold.title.floating-zone":"Zone","ce.threshold.title.lower-zone":"Zone inférieure","ce.threshold.title.upper-zone":"Zone supérieure","ce.thresholds.cannot-edit-comment-dialog.description":"<p>Vous ne pouvez pas encore modifier les déclencheurs de commentaires par instrument. Seulement pour lâensemble du protocole.</p>","ce.thresholds.cannot-edit-comment-dialog.title":"Paramètres via l'aperçu du protocole","ce.thresholds.cannot-edit-comment-dialog.to-protocol-settings-button.title":"Vers les Protocole","ce.thresholds.cannot-edit-overdue-dialog.description":"<p>Vous ne pouvez pas encore modifier en retard par instrument. Seulement pour lâensemble du Protocole.</p>","ce.thresholds.cannot-edit-overdue-dialog.title":"Paramètres via l'aperçu du protocole","ce.thresholds.cannot-edit-overdue-dialog.to-protocol-settings-button.title":"Vers les paramètres du Protocole","ce.thresholds.comment-trigger-description":"Le patient ajoute un commentaire","ce.thresholds.modal.calculation-missing.button-request.label":"Demande via Notion","ce.thresholds.modal.calculation-missing.copy-protocol-id":"Copiez votre identifiant de protocole, vous en aurez besoin dans le formulaire de notification.","ce.thresholds.modal.calculation-missing.description":"Un calcul doit être activé pour chaque nouveau protocole. Même si vous l'avez déjà fait pour d'autres protocoles du programme. Vous pouvez demander l'activation via Notion. L'avez-vous déjà fait ? Vous pouvez également suivre le processus dans Notion.","ce.thresholds.modal.calculation-missing.title":"Calcul manquant","ce.thresholds.modal.instrument-missing.button.to-action.label":"Aux actions","ce.thresholds.modal.instrument-missing.description":"Toutes les instruments requises ne sont pas présentes dans le protocole. Ajoutez-les à vos mesures de protocole pour vous assurer que le déclencheur fonctionne.","ce.thresholds.modal.instrument-missing.required-instruments.title":"Instrument(s) requis","ce.thresholds.modal.instrument-missing.title":"Instrument(s) manquant(s)","ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label":"Copier l'ID dans le presse-papiers","ce.thresholds.more-info.limit-reached.label":"Tous les seuils possibles sont déjà là ","ce.thresholds.no-comment-trigger-message":"Aucun déclencheur pour les commentaires ajouté.","ce.thresholds.no-overdue-trigger-message":"Aucun déclencheur de retard n'a encore été ajouté.","ce.thresholds.panel.action.add":"Ajouter des seuils","ce.thresholds.panel.action.edit":"Modifier le seuils","ce.thresholds.validation-error.calculation-input-codings-unavailable.title":"Nous ne pouvons pas confirmer que ce calcul fonctionne, car certaines informations sont manquantes.","ce.thresholds.validation-error.calculation-missing.button":"Demande d'activation","ce.thresholds.validation-error.calculation-missing.title":"Calcul non activé pour le moment.","ce.thresholds.validation-error.instrument-missing-in-program.title":"Instrument manquante dans le programme","ce.thresholds.validation-error.instrument-missing-in-protocol.title":"Instrument manquante dans le protocole","ce.thresholds.validation-error.instrument-missing.button":"Voir les détails","ce.thresholds.validation-error.instrument-missing.title":"Instrument manquante, le déclencheur ne fonctionne pas","ce.trigger-builder.new-trigger.title":"Nouveau déclencheur : {{instrument_name}}","ce.trigger-builder.step-one.description":"Choisissez un ou plusieurs déclencheurs","ce.trigger-builder.step-one.no-selection-error.description":"Veuillez sélectionner au moins un déclencheur pour continuer.","ce.trigger-builder.step-one.title":"Sélectionner le(s) déclencheur(s)","ce.trigger-builder.step-three.description":"Configurez l'affichage des alertes dans le tableau de bord.","ce.trigger-builder.step-three.edit-display-button.label":"Modifier","ce.trigger-builder.step-three.title":"Configurer l'affichage","ce.trigger-builder.step-two.description":"Définissez les conditions pour le déclencheur.","ce.trigger-builder.step-two.title":"Définir les conditions","ce.trigger-preset.delta-compare-decrease.label":"Diminution","ce.trigger-preset.delta-compare-increase.label":"Augmentation","ce.trigger-preset.single-compare-lower-ph-four.label":"Seuil inférieur rouge","ce.trigger-preset.single-compare-lower-ph-three.label":"Seuil inférieur ambré","ce.trigger-preset.single-compare-upper-ph-four.label":"Seuil supérieur rouge","ce.trigger-preset.single-compare-upper-ph-three.label":"Seuil supérieur ambré","ce.view-details.button":"Voir les détails","ce.worfklow-form.settings.title":"Paramètres du Workflow","ce.workflow-builder.add-external-follow-up-error-modal.description":"<p>Impossible de charger l'interface utilisateur de configuration pour cette action.</p>\\n<p>Veuillez réessayer plus tard, ou contactez l'assistance si le problème persiste.</p>","ce.workflow-builder.add-external-follow-up-error-modal.title":"Nous n'avons pas pu ajouter cette action.","ce.workflow-builder.add-external-follow-up-modal.submit-button.label":"Ajouter au workflow","ce.workflow-builder.add-external-follow-up-modal.title":'Ajouter : "{{name}}"',"ce.workflow-builder.aside.actions.add-action-fly-out.trigger-label":"Ajouter une action","ce.workflow-builder.aside.actions.all-actions-added-tooltip.label":"Toutes les actions possibles ont déjà été ajoutées.","ce.workflow-builder.comment.title":"Commentaires","ce.workflow-builder.inactivity.info-card.title":"Inactivité","ce.workflow-builder.inactivity.title":"Inactivité","ce.workflow-builder.instrument-info.precision.title":"Précision décimale","ce.workflow-builder.instrument-info.trigger-limits.not-set":"Limites des seuil doivent être définies","ce.workflow-builder.instrument-info.trigger-limits.title":"Limites de seuil","ce.workflow-builder.other-triggers-section.title":"Workflows pour les commentaires et les retards","ce.workflow-builder.overdue.title":"En retard","ce.workflow-builder.range-coverage.legend.filled":"Rempli","ce.workflow-builder.range-coverage.legend.gap":"Non rempli","ce.workflow-builder.range-coverage.legend.gap.description":"Aucun seuils ne remplit cette plage","ce.workflow-builder.range-coverage.legend.loading-error":"Désolé, nous n'avons pas pu charger la barre de seuil.","ce.workflow-builder.range-coverage.legend.overlap":"Chevauchement","ce.workflow-builder.range-coverage.legend.overlap.description":"{{count}} les seuils remplissent cette plage","ce.workflow-builder.range-coverage.title":"Couverture de seuil","ce.workflow-builder.trigger-card.automated-actions-list.title":"Actions automatisées","ce.workflow-builder.trigger-card.details.empty.add-workflow-button.text":"Ajouter un Workflow","ce.workflow-builder.trigger-card.no-workflow-summary.tag":"Aucun workflow","ce.workflow-builder.trigger-card.workflow-summary.tag":{one:"Workflow: {{value}} action",other:"Workflow: {{value}} actions"},"ce.workflow-builder.triggers-section.empty":"Aucun déclencheur défini","ce.workflow-builder.triggers-section.subtitle":".","ce.workflow-builder.triggers-section.title":"Seuils","ce.workflow-builder.unsaved-changes-indicator.label":"Modifications non sauvegardées","ce.workflow-editor-modal.aside.create.title":"Ajouter un Workflow","ce.workflow-editor-modal.create.subtitle":".","ce.workflow-editor-modal.create.title":"Gérer les workflows","ce.workflow-editor.instrument-info.increase-decrease-bounds.label":"Limites d'augmentation/diminution","ce.workflow-editor.instrument-info.max.label":"Max","ce.workflow-editor.instrument-info.min.label":"Min","ce.workflow-editor.instrument-info.threshold-bounds.legend":"Limites de seuil","ce.workflow-editor.toast.
1workflow-deleted.description":"Workflow supprimé avec succès","ce.workflow-editor.toast.workflow-deleted.title":"Modifications enregistrées avec succès","ce.workflow-editor.toast.workflow-updated.description":"Workflow mis à jour avec succès","ce.workflow-editor.toast.workflow-updated.title":"Modifications enregistrées avec succès","ce.workflow-form.add-actions.title":"Ajouter des actions automatisées","ce.workflow-form.automated-actions.group.alert-status.label":"Ãtat des alerte","ce.workflow-form.automated-actions.group.alert-status.option.escalated.label":"Avancez vers la deuxième ligne","ce.workflow-form.automated-actions.group.alert-status.option.keep-open.label":"Garder l'alerte ouverte","ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label":"Traiter automatiquement, sauf si un commentaire est présent.","ce.workflow-form.automated-actions.group.alert-status.option.processed.label":"Processus automatique","ce.workflow-form.automated-actions.name.label":"Actions","ce.workflow-form.configured-actions.title":"Actions configurées","ce.workflow-form.create.title":"Ajouter un Workflow","ce.workflow-form.settings.group.trigger-limit.custom-limit.label":"Limite de déclenchement","ce.workflow-form.settings.group.trigger-limit.label.day":"Jour","ce.workflow-form.settings.group.trigger-limit.label.max":"Max","ce.workflow-form.settings.group.trigger-limit.label.per":"par","ce.workflow-form.settings.group.trigger-limit.label.week":"Semaine","ce.workflow-form.settings.group.trigger-limit.name":"Limite de déclenchement","ce.workflow-form.settings.group.trigger-limit.option.set-limit.label":"Définir une limite","ce.workflow-form.settings.group.trigger-limit.option.unlimited.label":"Un nombre illimité de fois par jour","ce.workflow-form.settings.group.trigger-limit.times.suffix":"Fois","ce.workflow-form.settings.name.label":"Nom du Workflow","ce.workflow-form.update.title":"Modifier le workflow","ce.workflow-form.workflow-details.name.label":"Détails du workflow","prototype.ce.generic.from":"De","prototype.ce.generic.to":"à (inclus)","prototype.ce.instrument-validation.banner.button-confirm.label":"Confirmer","prototype.ce.instrument-validation.banner.button-edit.label":"Modifier","prototype.ce.instrument-validation.banner.description":"Avant dâajouter des déclencheurs, vérifiez que ces paramètres sont corrects. Nous les utiliserons pour valider vos seuils.","prototype.ce.instrument-validation.banner.description.no-bounds":"Avant dâajouter des déclencheurs, définissez les limites de lâinstrument. Elles serviront à valider vos seuils.","prototype.ce.instrument-validation.banner.range":"{{min}} jusqu'à {{max}} inclus {{unit}}","prototype.ce.instrument-validation.banner.settings":"Limites de seuil : {{limit}}Précision décimale : {{decimal_precision}}","prototype.ce.instrument-validation.banner.settings-delta":"Limites de seuil : {{limit}}Précision décimale : {{decimal_precision}}","prototype.ce.instrument-validation.banner.title":"Valider les réglages de l'instrument","prototype.ce.instrument-validation.banner.title.no-bounds":"Définissez les limites de votre instrument","prototype.ce.threshold-input.from.helper.link-to-value":'Lien vers {{threshold_name}} "à (inclus)" valeur.',"prototype.ce.threshold-input.from.helper.prefilled-with-instrument-min":"Cette valeur a été renseignée pour correspondre à la valeur maximale de l'instrument. {{Edit}}","prototype.ce.threshold-input.from.helper.unlink-from-value":"Dissocier de {{threshold_name}} valeur « à (inclus) ».","prototype.ce.threshold-input.from.label":"De","prototype.ce.threshold-input.generic.link":"Lien","prototype.ce.threshold-input.generic.unlink":"Dissocier","prototype.ce.threshold-input.to.helper.prefilled-with-instrument-max":"Cette valeur a été renseignée pour correspondre à la valeur minimale de l'instrument. {{Edit}}","prototype.ce.threshold-input.to.label":"à (inclus)"},"en-US":{" ce.generic.button.add-workflow.label":"Add workflow","ce.activity-triggers.more-info.limit-reached.label":"This trigger is already added to the protocol","ce.confirmation-modal.remove-tr
1igger.button.confirm":"Delete","ce.confirmation-modal.remove-trigger.comment.description":"No alerts will be created when patients add a comment to a measurement. Do you want to remove this?","ce.confirmation-modal.remove-trigger.inactivity.description":"No alerts will be created when patients are inactive. Do you want to delete this?","ce.confirmation-modal.remove-trigger.overdue.description":"No alerts will be created when patients did not complete a measurement in time. Do you want to remove this?","ce.confirmation-modal.remove-trigger.thresholds.description":"Do you want to delete these thresholds?","ce.confirmation-modal.remove-trigger.title":"Delete trigger","ce.confirmation-modal.remove-workflow.button.confirm":"Delete","ce.confirmation-modal.remove-workflow.description":"There will be no automated actions for this alert anymore. Do you want to delete the workflow?","ce.confirmation-modal.remove-workflow.error-message.description":"We could not save your changes","ce.confirmation-modal.remove-workflow.title":"Delete workflow","ce.dialog.apply-to-all.helper-text":"Patients may already have personal values set for thresholds.","ce.dialog.apply-to-all.option-no.label":"No, just to new patients","ce.dialog.apply-to-all.option-yes.label":"Yes, apply to new and existing patients","ce.dialog.apply-to-all.title":"Apply to all patients?","ce.expression.condition":"{{title}} is {{operation}} {{xValue}}","ce.expression.condition-range":"{{title}} is {{operation}} {{xValue}} and {{yValue}}","ce.expression.in":"In","ce.expression.occurrence":"For {{unit}} {{amount}} measurements","ce.expression.occurrence-unit.at-least":"at least","ce.expression.occurrence-unit.at-most":"at most","ce.expression.occurrence-unit.exactly":"exactly","ce.expression.operation.between":"between","ce.expression.operation.equal-to":"equal to","ce.expression.operation.greater-than-or-equal-to":"greater than or equal to","ce.expression.operation.less-than-or-equal-to":"less than or equal to","ce.expression.time-window":"the last {{amount}} {{unit}}","ce.expression.time-window-unit.days":{one:"day",other:"days"},"ce.expression.time-window-unit.hours":{one:"hour",other:"hours"},"ce.expression.time-window-unit.weeks":{one:"week",other:"weeks"},"ce.expression.unsupported":"Expression is too complex to display","ce.generic-confirm-unsaved-changes.text":"Are you sure you want to discard changes?","ce.generic.button-cancel.label":"Cancel","ce.generic.button-close.label":"Close","ce.generic.button-edit.label":"Edit","ce.generic.button-remove.label":"Delete","ce.generic.button.add-threshold.label":"Add threshold","ce.generic.button.add-trigger.label":"Add trigger","ce.generic.button.edit-workflow.label":"Edit workflow","ce.generic.button.flyout-more-icon.label":"Actions","ce.generic.button.more-info-icon.label":"More information","ce.generic.button.reload.label":"Reload","ce.global.add-threshold":"Add threshold","ce.global.add-trigger":"Add trigger","ce.global.alert.high.description":"Red alert","ce.global.alert.low.description":"Green alert","ce.global.alert.medium.description":"Amber alert","ce.global.back":"Back","ce.global.button.add-workflow.label":"Add workflow","ce.global.button.remove-trigger.label":"Delete trigger","ce.global.button.remove-workflow.label":"Delete workflow","ce.global.cancel":"Cancel","ce.global.close":"Close","ce.global.collapse-all":"Collapse all","ce.global.compact-view":"Compact view","ce.global.condition.and":"And","ce.global.condition.if":"If","ce.global.copy":"Copy","ce.global.create-alert":"Create alert","ce.global.delete":"Delete","ce.global.detailed-view":"Detailed view","ce.global.done":"Done","ce.global.edit-triggers":"Edit","ce.global.expand-all":"Expand all","ce.global.hide":"Hide","ce.global.next":"Publish","ce.global.publish":"Publish","ce.global.save":"Save","ce.global.show":"Show","ce.global.step-x-of-y":"Step {{x}} of {{y}}","ce.global.threshold":"threshold","ce.global.threshold-description.delta-compare-ph-high":"Toename","ce.global.threshold-description.delta-compare-ph-low":"Decrease","ce.global.threshold-description.single-compare-ph-high":"Red upper threshold","ce.global.threshold-description.single-compare-ph-low":"Red lower threshold","ce.global.threshold-description.single-compare-pm-high":"Orange upper threshold","ce.global.threshold-description.single-compare-pm-low":"Orange lower threshold","ce.global.threshold-form-field.action.set-to-max":"Set to max","ce.global.threshold-form-field.action.set-to-min":"Set to min","ce.global.threshold-form-field.label.range-compare-from":"From","ce.global.threshold-form-field.label.range-compare-to":"To (incl.)","ce.global.threshold.criticalHigh":"Red upper threshold","ce.global.threshold.criticalLow":"Red lower threshold","ce.global.threshold.decrease":"Decrease","ce.global.threshold.decrease.description":"Decrease of at least","ce.global.threshold.increase":"Increase","ce.global.threshold.increase.description":"Increase of at least","ce.global.threshold.lower-threshold.description":"Lower than or equal to","ce.global.threshold.upper-threshold.description":"Greater than or equal to","ce.global.threshold.warningHigh":"Orange upper threshold","ce.global.threshold.warningLow":"Orange lower threshold","ce.global.thresholds":"thresholds","ce.global.toaster.couldnt-save":"We couldn't save your changes","ce.global.toaster.saved-successfully":"Changes saved successfully","ce.global.toaster.trigger-added.title":"Trigger added","ce.global.toaster.trigger-deleted.title":"Trigger deleted","ce.global.toaster.trigger-updated.title":"Trigger updated","ce.global.trigger":"Trigger","ce.global.view-triggers":"View triggers","ce.global.workflow":"Workflow","ce.patient.configuration.error.state.button.retry":"Try Again","ce.patient.configuration.error.state.description":"Please try again, or contact support if the problem persists.","ce.patient.configuration.error.state.t
1itle":"We could not load the thresholds","ce.patient.faq.q1.answer":"Find the instrument you want to configure and click the trigger you want to edit. Use the modal to enter the value per patient to personalize a threshold. Save it, and youâre done!","ce.patient.faq.q1.question":"How do I edit a threshold?","ce.patient.faq.q2.answer":"You can fill out the threshold values of the triggers program builders added to this protocol. Need one that is not in the list? Ask a program builder to add it.","ce.patient.faq.q2.question":"Can I add a trigger?","ce.patient.faq.q3.answer":"Advanced triggers fire based on a combination of conditions â useful when a single reading or value isn't enough to flag something. For example, alerting only when both systolic and diastolic blood pressure exceed their thresholds at the same time.","ce.patient.faq.q3.question":"What are advanced triggers?","ce.patient.faq.q4.answer":"No worries â if you edited a patient threshold by accident, hit the Reset button next to the threshold field to restore the protocol default. You can also check the History to find the previous settings and recreate it manually.","ce.patient.faq.q4.question":"I accidentally changed or removed a threshold.","ce.patient.item-details.close":"Close","ce.patient.navigation.item.all":"All triggers","ce.patient.navigation.item.with":"Instruments","ce.patient.navigation.item.without":"Instruments without triggers","ce.patient.page.all-thresholds.title":"Thresholds set","ce.patient.threhsolds.panel.title":"Thresholds","ce.patient.threshold-form-field.button.title.reset":"Reset","ce.patient.threshold-form-field.desctiption.delta-high":"Increase of at least","ce.patient.threshold-form-field.desctiption.delta-low":"Decrease of at least","ce.patient.threshold-form-field.desctiption.single-compare-high":"Greater than or equal to","ce.patient.threshold-form-field.desctiption.single-compare-low":"Lower than or equal to","ce.patient.threshold-form-field.label.delta-ph-high":"Increase of at least","ce.patient.threshold-form-field.label.delta-ph-low":"Decrease of at least","ce.patient.threshold-form-field.label.single-compare-ph-high":"Red upper threshold","ce.patient.threshold-form-field.label.single-compare-ph-low":"Red lower threshold","ce.patient.threshold-form-field.label.single-compare-pm-high":"Orange upper threshold","ce.patient.threshold-form-field.label.single-compare-pm-low":"Orange lower threshold","ce.patient.threshold.detail-form.title":"{{name}}","ce.patient.threshold.form.button.cancel":"Cancel","ce.patient.threshold.form.button.submit":"Save","ce.patient.threshold.form.description":"Thresholds are only visible for healthcare providers. They have to be at least {{min_value}} and at most {{max_value}}.","ce.patient.threshold.form.input.deltaHigh.label":"Red alert for an increase of at least","ce.patient.threshold.form.input.deltaLow.label":"Red alert for a decrease of at least","ce.patient.threshold.form.input.singleComparePhHigh.label":"Red alert if greater than or equal to","ce.patient.threshold.form.input.singleComparePhLow.label":"Red alert if less than or equal to","ce.patient.threshold.form.input.singleComparePmHigh.label":"Orange alert if greater than or equal to","ce.patient.threshold.form.input.singleComparePmLow.label":"Orange alert if less than or equal to","ce.patient.threshold.form.toast.update-error.description":"We could not save your changes","ce.patient.threshold.form.toast.update-error.title":"Failed to save changes","ce.patient.threshold.form.toast.update-success.description":"We've updated your thresholds","ce.patient.threshold.form.toast.update-success.title":"Changes saved successfully","ce.patient.thresholds.all.empty.description":"There are no thresholds set for this protocol.","ce.patient.thresholds.all.empty.title":"No thresholds set","ce.patient.thresholds.automated-actions.banner.error.action":"Reload","ce.patient.thresholds.automated-actions.banner.error.title":"We couldnât load the workflow correctly, so some details may be missing","ce.patient.thresholds.item.details.button":"Edit threshold","ce.patient.thresholds.item.details.modal.title":"Instrument details: {{name}}","ce.patient.thresholds.item.view-details.button":"View details","ce.patient.thresholds.item.view.button":"See details","ce.patient.thresholds.loading.description":"Try to reload the page, it might take up to a minute.","ce.patient.thresholds.loading.title":"We're updating the patient thresholds to match the protocol settings.","ce.patient.thresholds.panel.empty.description":"There are currently no thresholds for this instrument.","ce.patient.thresholds.panel.empty.title":"No thresholds set","ce.patient.thresholds.panel.tag.personalized":"Personalized","ce.patient.validation.threshold.decimals":"Value cannot contain more than {{value}} decimal(s).","ce.patient.validation.threshold.formatting":"Please enter a number","ce.patient.validation.threshold.gt":"Value must be above {{value}} {{unit}}","ce.patient.validation.threshold.gte":"Value must be {{value}} {{unit}}
1 or higher","ce.patient.validation.threshold.lt":"Value must be below {{value}} {{unit}}","ce.patient.validation.threshold.lte":"Value must be {{value}} {{unit}} or lower","ce.protocol.copy-trigger.modal.button-copy.label":"Copy to protocol","ce.protocol.copy-trigger.modal.copy-target-form.organisation.label":"Select an organization","ce.protocol.copy-trigger.modal.copy-target-form.organisation.placeholder":"Select an organisation","ce.protocol.copy-trigger.modal.copy-target-form.organisation.required":"Please select an organisation","ce.protocol.copy-trigger.modal.copy-target-form.program.label":"Select a program","ce.protocol.copy-trigger.modal.copy-target-form.program.placeholder":"Select a program","ce.protocol.copy-trigger.modal.copy-target-form.program.required":"Please select a programme","ce.protocol.copy-trigger.modal.copy-target-form.protocol.label":"Select a protocol","ce.protocol.copy-trigger.modal.copy-target-form.protocol.placeholder":"Select a protocol","ce.protocol.copy-trigger.modal.copy-target-form.protocol.required":"Please select a protocol","ce.protocol.copy-trigger.modal.copy-target-form.title":"Where do you want to add a copy of this the trigger?","ce.protocol.copy-trigger.modal.failed.title":"We couldnât create a copy. Please try again.","ce.protocol.copy-trigger.modal.required-instruments.title":"Required instruments (not included in the copy)","ce.protocol.copy-trigger.modal.success.description":"A copy of this trigger has been added to {{protocol}}. Youâll find it in the alert settings list. Make sure all the required instruments are present in the protocol, otherwise it won't work.","ce.protocol.copy-trigger.modal.success.required-instruments-item.title":"Copy {{ID}}","ce.protocol.copy-trigger.modal.success.required-instruments.title":"Required instruments","ce.protocol.copy-trigger.modal.success.title":"Trigger copied successfully","ce.protocol.copy-trigger.modal.title":"Copy trigger","ce.protocol.copy-trigger.modal.unauthorized.description":"Only administrators and CMD users within an organization can copy triggers. You are currently logged in as a âsuper adminâ.\\n\\nLog out and log back in to the organization. Then you can choose which program you want to copy this notification to.","ce.protocol.copy-trigger.modal.unauthorized.title":"Log in as organization admin","ce.protocol.copy.success":"Copied successfully","ce.protocol.thresholds.instrument.empty.description":"There are no thresholds set for this instrument.","ce.template-configuration.faq.button.label":"FAQs","ce.template-configuration.faq.external-link.label":"More information","ce.template-configuration.faq.instructions-for-use-link.label":"Instructions for Use","ce.template-configuration.faq.instructions-for-use-link.url":"https://luscii.com/en/ifu","ce.template-configuration.faq.q1.answer":"Yes â you can add as many triggers as you need for one instrument. For example, you can set both a medium and high priority alert for an increase. The coverage bar shows you at a glance whether your ranges connect, overlap, or leave gaps.","ce.template-configuration.faq.q1.question":"Can I set multiple triggers of the same type?","ce.template-configuration.faq.q2.answer":"Check the coverage bar at the top of the Instrument configuration. Overlaps and gaps are highlighted â click the highlighted area to see which triggers are involved.","ce.template-configuration.faq.q2.question":"How do I make sure threshold values don't overlap?","ce.template-configuration.faq.q3.answer":"Set up the trigger at protocol level and leave the threshold values empty. On the patient page, the threshold will show as âno valueâ. From there, you or a colleague can fill in the right value per patient.","ce.template-configuration.faq.q3.question":"How do I create a personalized trigger, like weight?","ce.template-configuration.faq.q4.answer":'Open the Instrument configuration for the relevant instrument and scroll to "Activity-based triggers." Click "Add trigger" and select either the comment or overdue trigger from the list. These alerts are set per instrument, so repeat this for each one you want to monitor.',"ce.template-configuration.faq.q4.question":"","ce.template-configuration.faq.q5.answer":"Advanced triggers fire based on a combination of conditions â useful when a single reading or value isn't enough to flag something. For example, alert
1ing only when both systolic and diastolic blood pressure exceed their thresholds at the same time.","ce.template-configuration.faq.q5.question":"What are advanced triggers?","ce.template-configuration.faq.q6.answer":'Yes, you can duplicate it. Open the trigger that has the workflow you want to copy and click "Copy workflow" â it goes to your clipboard. Navigate to the target trigger, click "Add workflow," then choose "Paste from clipboard." Publish when you\'re done.',"ce.template-configuration.faq.q6.question":"Can I reuse a workflow?","ce.template-configuration.faq.title":"Frequently asked questions","ce.template-configuration.tabs.all-triggers.label":"All triggers","ce.template-configuration.tabs.combined.label":"Advanced triggers","ce.template-configuration.tabs.inactivity.label":"Inactivity triggers","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.description":"Process automatically","ce.threshold-detail-flow.automated-actions.alert-status.auto-process.unless-comment.subtext":"Unless patient added a comment","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed-unless-comment.detailed":"{{alertPriorityName}} automatically processed, unless it has a comment","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.description.detailed":"{{alertPriorityName}} automatically processed","ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.detailed":"{{color}} alert automatically processed","ce.threshold-detail-flow.automated-actions.alert-status.escalated.detailed":"{{alertPriorityName}} forwarded","ce.threshold-detail-flow.automated-actions.alert-status.forward.description":"Automatically forward to second line","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.description.detailed":"{{alertPriorityName}} created","ce.threshold-detail-flow.automated-actions.alert-status.keep-open.detailed":"{{color}} alert created","ce.threshold-detail-flow.automated-actions.change-patient-status.stopped.description":"Change patient status to: stopped","ce.threshold-detail-flow.automated-actions.schedule-action.days-after.subtext":"{{value}} days after trigger","ce.threshold-detail-flow.automated-actions.schedule-action.description":"Schedule action: {{action_name}}","ce.threshold-detail-flow.automated-actions.schedule-action.directly.subtext":"Directly after trigger","ce.threshold-detail-flow.automated-actions.send-message.description":"Send patient a message","ce.threshold-detail-flow.automated-actions.send-message.variants.link":"View {{value}} variants","ce.threshold-detail-flow.automated-actions.switch-group.description":"Switch to group: {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.description.short":"Switch to {{group_name}}","ce.threshold-detail-flow.automated-actions.switch-group.subtext":"{{program_name}} ({{protocol_name}})","ce.threshold-detail-flow.automated-actions.switch-programme.description":"Switch to programme: {{program_name}}","ce.threshold-detail-flow.automated-actions.switch-programme.protocol.subtext":"Protocol: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.switch-protocol.description":"Switch to protocol: {{protocol_name}}","ce.threshold-detail-flow.automated-actions.title":"Automated actions","ce.threshold-detail-flow.automated-actions.trigger-limit.limit-per-day.description":"This workflow will trigger max {{value}} times a day","ce.threshold-detail-flow.automated-actions.trigger-limit.unlimited.description":"This workflow can be triggered unlimited","ce.threshold-detail-flow.comments.add-trigger.button.label":"Add trigger","ce.threshold-detail-flow.comments.add-trigger.success-toaster.description":"Weâll create alerts when patients add a comment.","ce.threshold-detail-flow.comments.add-trigger.success-toaster.title":"Trigger added","ce.threshold-detail-flow.comments.add-trigger.title":"Trigger: alerts for comments","ce.threshold-detail-flow.comments.automated-actions.description":"You can add a workflow via the settings per instrument.","ce.threshold-detail-flow.comments.edit-trigger.title":"Trigger: alerts for comments","ce.threshold-detail-flow.
1comments.remove-trigger.success-toaster.description":"We wonât create alerts for comments anymore.","ce.threshold-detail-flow.comments.remove-trigger.success-toaster.title":"Trigger deleted","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.description":"This alert does not have any automated actions anymore.","ce.threshold-detail-flow.comments.remove-workflow.success-toaster.title":"Workflow deleted","ce.threshold-detail-flow.comments.trigger.description":"Create alert when a comment is added to a measurement.","ce.threshold-detail-flow.comments.trigger.title":"Trigger: patient adds a comment","ce.threshold-detail-flow.comments.update-trigger.success-toaster.title":"Trigger updated","ce.threshold-detail-flow.create-alert.amber.description":"Orange alert","ce.threshold-detail-flow.create-alert.grey.description":"Gray alert","ce.threshold-detail-flow.create-alert.grey.title":"Create alert","ce.threshold-detail-flow.create-alert.red.description":"Red alert","ce.threshold-detail-flow.create-alert.title":"Create alert","ce.threshold-detail-flow.error-banner.could-not-save.description":"We couldn't save your changes","ce.threshold-detail-flow.inactivity.add-trigger.button.label":"Add trigger","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description":"Weâll create alerts when patient is inactive.","ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title":"Trigger added","ce.threshold-detail-flow.inactivity.add-trigger.title":"Trigger: alerts for inactivity","ce.threshold-detail-flow.inactivity.automated-actions.description":"Automated actions","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.description":"We wonât create alerts for inactivity anymore.","ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.title":"Trigger removed","ce.threshold-detail-flow.inactivity.trigger.description":"Being âinactiveâ means that no actions are sent in.","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.label":"If patient is inactive for...","ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.suffix":"days","ce.threshold-detail-flow.inactivity.trigger.title":"Patient is inactive","ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title":"Trigger updated","ce.threshold-detail-flow.overdue.add-trigger.button.label":"Add trigger","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.description":"Weâll create alerts when actions are overdue.","ce.threshold-detail-flow.overdue.add-trigger.success-toaster.title":"Trigger added","ce.threshold-detail-flow.overdue.add-trigger.title":"Trigger: alerts for overdue tasks","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.footnote":"Add more automated actions by adding a workflow for overdue triggers to an instrument.","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.label":"What should happen with the alert?","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.leave-open":"Leave alert open","ce.threshold-detail-flow.overdue.automated-actions.form.process-options.process-auto":"Process alert","ce.threshold-detail-flow.overdue.automated-actions.title":"Workflow","ce.threshold-detail-flow.overdue.automated-actions.via-workflow-explanation":"You can add a workflow via the alert settings per instrument, so each can have its own automation settings.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.description":"We wonât create alerts for overdue actions anymore.","ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.title":"Trigger deleted","ce.threshold-detail-flow.overdue.trigger.description":"If patient does not complete task in time..","ce.threshold-detail-flow.overdue.trigger.form.all-day-alert-creation-option.end-of-day.label":"End of day","ce.threshold-detail-flow.overdue.trigger.form.all-day-time.label":"Create alert for all day action at...","ce.threshold-detail-flow.overdue.trigger.form.time-sensitive-time.label":"Create alert for tasks with a specific time frame atâ¦","ce.threshold-detail-flow.overdue.trigger.title":"Trigger: scheduled task overdue","ce.threshold-detail-flow.remove-workflow.success-toaster.description":"No automated actions for this alert any more","ce.threshold-detail-flow.remove-workflow.success-toaster.titl":"Workflow deleted","ce.threshold-detail-flow.thresholds.remove-tr
1igger.error-banner.description":"We couldn't delete the trigger.","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.description":"We won't create alerts for these thresholds anymore","ce.threshold-detail-flow.thresholds.remove-trigger.success-toaster.title":"Trigger deleted","ce.threshold-detail-flow.thresholds.remove-workflow.error-banner.description":"We couldn't delete the workflow.","ce.threshold-details-flow.automated-actions.error.title":"Sorry, we couldnât check for automated actions.","ce.threshold-list-view.automated-actions.action.label":"{{action_name}}","ce.threshold-list-view.automated-actions.alert-status.auto-process.label":"Auto process","ce.threshold-list-view.automated-actions.alert-status.forward.label":"Forward","ce.threshold-list-view.automated-actions.alert.label":"Alert","ce.threshold-list-view.automated-actions.error.title":"We couldn't load these details.","ce.threshold-list-view.automated-actions.message.label":"Send message","ce.threshold-list-view.automated-actions.switch-group.label":"Switch group: {{group_name}}","ce.threshold-list-view.automated-actions.switch-program.label":"Switch: {{program_name}} ({{protocol_name}})","ce.threshold-list-view.automated-actions.switch-protocol.label":"Switch: {{protocol_name}}","ce.threshold-list-view.section.combination-triggers.title":"Combination triggers","ce.threshold-list-view.section.combined-instruments.empty.description":"No advanced triggers have been configured yet.","ce.threshold-list-view.section.combined-instruments.item.missing-items":"Instrument(s) missing, trigger wonât work","ce.threshold-list-view.section.combined-instruments.title":"Advanced triggers","ce.threshold-list-view.section.combined-triggers-with-instrument.title":"Advanced triggers with {{instrument}}","ce.threshold-list-view.section.comment.empty":"No alerts created when patients add a comment.","ce.threshold-list-view.section.comment.empty.link":"Add trigger","ce.threshold-list-view.section.comment.title":"Comments","ce.threshold-list-view.section.inactivity-triggers.title":"Inactivity triggers","ce.threshold-list-view.section.inactivity.empty":"No alerts created when a patient is inactive.","ce.threshold-list-view.section.inactivity.empty.link":"Add trigger","ce.threshold-list-view.section.inactivity.title":"Inactivity","ce.threshold-list-view.section.instrument.empty":"No triggers set for this instrument yet.","ce.threshold-list-view.section.instrument.empty.link":"Add threshold","ce.threshold-list-view.section.overdue.empty":"No alerts created when actions are overdue.","ce.threshold-list-view.section.overdue.empty.link":"Add trigger","ce.threshold-list-view.section.overdue.title":"Overdue","ce.threshold-list-view.section.simple-triggers.title":"Simple triggers","ce.threshold-list-view.trigger.comment.label":"Patient adds a comment","ce.threshold-list-view.trigger.empty":"No thresholds for this instrument yet","ce.threshold-list-view.trigger.inactivity.label":"Patient is inactive for {{value}} day(s)","ce.threshold-list-view.trigger.overdue.label":"Patient did not complete action(s) in time","ce.threshold-list-view.trigger.overdue.subtitle":"Overdue at {{time}}","ce.threshold-list-view.trigger.threshold.decrease.label":"Decrease of at least {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.increase.label":"Increase of at least {{value}} {{unit}}","ce.threshold-list-view.trigger.threshold.lower-threshold.label":"Lower than or equal to {{value}}{{unit}}","ce.threshold-list-view.trigger.threshold.upper-threshold.label":"Greater than or equal to {{value}} {{unit}}","ce.threshold-updates.inactivity.confirm-exceeding-limit.description":"If the inactivity settings are set to a high number of days, inactive patients may be overlooked.","ce.threshold-updates.inactivity.confirm-exceeding-limit.title":"Update inactivity trigger?","ce.threshold.description.above-or-equal-to":"Greater than or equal to {{value}} {{unit}}","ce.threshold.description.decrease-of-at-least":"Decrease of at least{{value}} {{unit}}","ce.threshold.description.from-to":"From {{from}} {{unit}} to {{to}} {{unit}}","ce.threshold.description.increase-of-at-least":"Increase of at least {{value}} {{unit}}","ce.threshold.description.lower-than-or-equal-to":"Lower than or equal to {{value}} {{unit}}","ce.threshold.description.x-to-y-unit":"{{from}} to {{to}} {{unit}}","ce.threshold.flyout-menu.add-workflow.label":"Add workflow","ce.threshold.flyout-menu.copy-trigger.label":"Copy trigger","ce.threshold.flyout-menu.copy-workflow.label":"Copy workflow","ce.threshold.flyout-menu.delete-threshold.label":"Delete trigger","ce.threshold.flyout-menu.delete-trigger.label":"Delete trigger","ce.threshold.flyout-menu.delete-workflow.label":"Delete workflow","ce.threshold.flyout-menu.edit-workflow.label":"Edit workflow","ce.threshold.flyout-menu.view-details.label":"Edit details","ce.threshold.subtitle.value-empty":"No values set","ce.threshold.title.floating-zone":"Zone","ce.threshold.title.lower-zone":"Lower zone","ce.threshold.title.upper-zone":"Upper zone","ce.thresholds.cannot-edit-comment-dialog.description":"<p>You cannot edit comment triggers per instrument yet. Just for the whole protocol.</p>","ce.thresholds.cannot-edit-comment-dialog.title":"Edit for whole protocol","ce.thresholds.cannot-edit-comment-dialog.to-protocol-settings-button.title":"To protocol settings","ce.thresholds.cannot-edit-overdue-dialog.description":"<p>You cannot edit overdue triggers per instrument yet. Just for the whole protocol.</p>","ce.thresholds.cannot-edit-overdue-dialog.title":"Edit for whole protocol","ce.thresholds.cannot-edit-overdue-dialog.to-protocol-settings-button.title":"To protocol settings","ce.thresholds.comment-trigger-description":"Patient adds a comment","ce.thresholds.modal.calculation-missing.button-request.label":"Request via Notion","ce.thresholds.modal.calculation-missing.copy-protocol-id":"Copy your protocol ID, youâll need it in the Notion form.","ce.thresholds.modal.calculation-missing.description":"A calculation has to be activated for each new protocol. Even when you already did this for other protocols within the programme. You can request the activation via Notion. Did you already do this? You can track the process in Notion as well.","ce.thresholds.modal.calculation-missing.title":"Calculation missing","ce.thresholds.modal.instrument-missing.button.to-action.label":"To actions","ce.thresholds.modal.instrument-missing.description":"Not all required instruments are present in the protocol. Add them to your protocol Measurements, to make sure the trigger works.","ce.thresholds.modal.instrument-missing.required-instruments.title":"Required instrument(s)","ce.thresholds.modal.instrument-missing.title":"Instrument(s) missing","ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label":"Copy ID to clipboard","ce.thresholds.more-info.limit-reached.label":"All possible thresholds are already added","ce.thresholds.no-comment-trigger-message":"No trigger for comments added yet.","ce.thresholds.no-overdue-trigger-message":"No overdue-trigger added yet","ce.thresholds.panel.action.add":"Add thresholds","ce.thresholds.panel.action.edit":"Edit thresholds","ce.thresholds.validation-error.calculation-input-codings-unavailable.title":"We don't have enough information at the moment to confirm this calculation is working.","ce.thresholds.validation-error.calculation-missing.button":"Request activation","ce.thresholds.validation-error.calculation-missing.title":"Calculation not activated yet.","ce.thresholds.validation-error.instrument-missing-in-program.title":"Instrument missing in program","ce.thresholds.validation-error.instrument-missing-in-protocol.title":"Instrument missing in protocol","ce.thresholds.validation-error.instrument-missing.button":"View details","ce.thresholds.validation-error.instrument-missing.title":"Instrument missing, trigger doesnât work","ce.trigger-builder.new-trigger.title":"New trigger: {{instrument_name}}","ce.trigger-builder.step-one.description":"Choose one or multiple triggers","ce.trigger-builder.step-one.no-selection-error.description":"Please select at least one trigger to continue.","ce.trigger-builder.step-one.title":"Select trigger(s)","ce.trigger-builder.step-three.description":"Configure how alerts will appear in the dashboard","ce.trigger-builder.step-three.edit-display-button.label":"Edit","ce.trigger-builder.step-three.title":"Configure display","ce.trigger-builder.step-two.description":"Set the conditions for the trigger.","ce.trigger-builder.step-two.title":"Set conditions","ce.trigger-preset.delta-compare-decrease.label":"Decrease","ce.trigger-preset.delta-compare-increase.label":"Increase","ce.trigger-preset.single-compare-lower-ph-four.label":"Red lower threshold","ce.trigger-preset.single-compare-lower-ph-three.label":"Orange lower threshold","ce.trigger-preset.single-compare-upper-ph-four.label":"Red upper threshold","ce.trigger-preset.single-compare-upper-ph-three.label":"Orange upper threshold","ce.view-details.button":"View details","ce.worfklow-form.settings.title":"Workflow settings","ce.workflow-builder.add-external-follow-up-error-modal.description":"<p>We couldn't load the configuration user interface for this action.</p>\\n<p>Please try again later, or contact support if the problem persists.</p>","ce.workflow-builder.add-external-follow-up-error-modal.title":"We couldn't add this action.","ce.workflow-builder.add-external-follow-up-modal.submit-button.label":"Add to workflow","ce.workflow-builder.add-external-follow-up-modal.title":'Add: "{{name}}"',"ce.workflow-builder.aside.actions.add-action-fly-out.trigger-label":"Add automated action","ce.workflow-builder.aside.actions.all-actions-added-tooltip.label":"All possible actions already added","ce.workflow-builder.comment.title":"Comments","ce.workflow-builder.inactivity.info-card.title":"Inactivity","ce.workflow-builder.inactivity.title":"Inactivity","ce.workflow-builder.instrument-info.precision.title":"Decimal precision","ce.workflow-builder.instrument-info.trigger-limits.not-set":"Limits need to be set","ce.workflow-builder.instrument-info.trigger-limits.title":"Threshold limits","ce.workflow-builder.other-triggers-section.title":"Workflows for c
1omments and overdue","ce.workflow-builder.overdue.title":"Overdue","ce.workflow-builder.range-coverage.legend.filled":"Filled","ce.workflow-builder.range-coverage.legend.gap":"Not filled","ce.workflow-builder.range-coverage.legend.gap.description":"No thresholds fill this range","ce.workflow-builder.range-coverage.legend.loading-error":"Sorry, we couldn't load the threshold bar","ce.workflow-builder.range-coverage.legend.overlap":"Overlap","ce.workflow-builder.range-coverage.legend.overlap.description":"{{count}} thresholds overlap in this range","ce.workflow-builder.range-coverage.title":"Threshold coverage","ce.workflow-builder.trigger-card.automated-actions-list.title":"Automated actions","ce.workflow-builder.trigger-card.details.empty.add-workflow-button.text":"Add workflow","ce.workflow-builder.trigger-card.no-workflow-summary.tag":"No workflow","ce.workflow-builder.trigger-card.workflow-summary.tag":{one:"Workflow: {{value}} action",other:"Workflow: {{value}} actions"},"ce.workflow-builder.triggers-section.empty":"No triggers set","ce.workflow-builder.triggers-section.subtitle":".","ce.workflow-builder.triggers-section.title":"Thresholds","ce.workflow-builder.unsaved-changes-indicator.label":"Unsaved changes","ce.workflow-editor-modal.aside.create.title":"Add workflow","ce.workflow-editor-modal.create.subtitle":".","ce.workflow-editor-modal.create.title":"Manage workflows","ce.workflow-editor.instrument-info.increase-decrease-bounds.label":"Increase/decrease bounds","ce.workflow-editor.instrument-info.max.label":"Max","ce.workflow-editor.instrument-info.min.label":"Min","ce.workflow-editor.instrument-info.threshold-bounds.legend":"Threshold limits","ce.workflow-editor.toast.workflow-deleted.description":"Workflow deleted successfully","ce.workflow-editor.toast.workflow-deleted.title":"Changes saved successfully","ce.workflow-editor.toast.workflow-updated.description":"Workflow updated successfully","ce.workflow-editor.toast.workflow-updated.title":"Changes saved successfully","ce.workflow-form.add-actions.title":"Add automated actions","ce.workflow-form.automated-actions.group.alert-status.label":"Alerts status","ce.workflow-form.automated-actions.group.alert-status.option.escalated.label":"Forward to second line","ce.workflow-form.automated-actions.group.alert-status.option.keep-open.label":"Keep alert open","ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label":"Process automatically, unless it has a comment","ce.workflow-form.automated-actions.group.alert-status.option.processed.label":"Process automatically","ce.workflow-form.automated-actions.name.label":"Automated actions","ce.workflow-form.configured-actions.title":"Configured actions","ce.workflow-form.create.title":"Add workflow","ce.workflow-form.settings.group.trigger-limit.custom-limit.label":"Trigger limit","ce.workflow-form.settings.group.trigger-limit.label.day":"Day","ce.workflow-form.settings.group.trigger-limit.label.max":"Max","ce.workflow-form.settings.group.trigger-limit.label.per":"per","ce.workflow-form.settings.group.trigger-limit.label.week":"Week","ce.workflow-form.settings.group.trigger-limit.name":"Trigger limit","ce.workflow-form.settings.group.trigger-limit.option.set-limit.label":"Set limit","ce.workflow-form.settings.group.trigger-limit.option.unlimited.label":"Unlimited times a day","ce.workflow-form.settings.group.trigger-limit.times.suffix":"Times","ce.workflow-form.settings.name.label":"Workflow name","ce.workflow-form.update.title":"Edit workflow","ce.workflow-form.workflow-details.name.label":"Workflow details","prototype.ce.generic.from":"From","prototype.ce.generic.to":"To (incl.)","prototype.ce.instrument-validation.banner.button-confirm.label":"Confirm","prototype.ce.instrument-validation.banner.button-edit.label":"Edit","prototype.ce.instrument-validation.banner.description":"Before adding triggers, confirm these settings are correct. We'll use them to validate your thresholds.","prototype.ce.instrument-validation.banner.description.no-bounds":"Before adding triggers, confirm these settings are correct. We'll use them to validate your thresholds.","prototype.ce.instrument-validation.banner.range":"{{min}} up to and including {{max}} {{unit}}","prototype.ce.instrument-validation.banner.settings":"Threshold limits: {{limit}}, Decimal precision: {{decimal_precision}}","prototype.ce.instrument-validation.banner.settings-delta":"Threshold limits: {{limit}}, Decimal precision: {{decimal_precision}}","prototype.ce.instrument-validation.banner.title":"Check your instrument settings","prototype.ce.instrument-validation.banner.title.no-bounds":"Set your instrument limits","prototype.ce.threshold-input.from.helper.link-to-value":'Link to {{threshold_name}} "To (incl.)" value.',"prototype.ce.threshold-input.from.helper.prefilled-with-instrument-min":"This value has been filled to match instrument max. {{Edit}}","prototype.ce.threshold-input.from.helper.unlink-from-value":'Unlink from {{threshold_name}} "To (incl.)" value.',"prototype.ce.threshold-input.from.label":"From","prototype.ce.threshold-input.generic.link":"Link","prototype.ce.threshold-input.generic.unlink":"Unlink","prototype.ce.threshold-input.to.helper.prefilled-with-instrument-max":"This value has been filled to match instrument min. {{Edit}}","prototype.ce.threshold-input.to.label":"To (incl.)"}},tR=({children:e,locale:t})=>{let r=(0,eW.useMemo)(()=>{let e;return"debug"===t?(e,...t)=>{if(0===t.length)return e;let r={};for(let e of t)"object"==typeof e&&null!==e&&Object.assign(r,e);let o=Object.keys(r).sort((e,t)=>
1e.localeCompare(t)).map(e=>`${e}=${r[e]}`).join(", ");return`${String(e)} [${o}]`}:(e=tU[t],(r,...o)=>{let i=new Intl.PluralRules(t,{type:"cardinal"}),l=e[r];if(void 0===l)return console.warn("Unable to obtain translation for key:",r),r;if("string"==typeof l){if(""===l)return console.warn(`Translation for key "${String(r)}" is an empty string`),r;let e=o.at(-1);if("object"==typeof e&&"n"in e)throw Error("i18n: Unexpected plural option for non-plural translation");return tF(l,e??{})}let n=o.at(-1),a="one",s=l.one;if("object"==typeof l&&("object"==typeof n&&"n"in n&&(a="one"===i.select(n.n)?"one":"other"),s=l[a]),""===s)return console.warn(`Translation for key "${String(r)}" has empty string for plural form "${a}"`),r;if(1===o.length)return s;let c=o.at(0);if("object"!=typeof c)throw Error("i18n: Expected template parameters for plural translation");if("object"==typeof c&&"n"in c)throw Error("i18n: 'n' parameter passed as template parameter");return tF(s,c??{})})},[t]);return(0,eM.jsx)(tL.Provider,{value:{locale:t,translate:r},children:e})},tV=()=>{let e=(0,eW.useContext)(tL);if(null===e)throw Error("Failed to obtain translate function, ensure all calls to useTranslate are placed within a LanguageProvider.");return e.translate},t$=()=>{let e=(0,eW.useContext)(tL);if(null===e)throw Error("Failed to obtain locale, ensure all calls to useLocale are placed within a LanguageProvider.");return e.locale},tZ=(e,t,r,o)=>e("ce.threshold.description.from-to",{from:r,to:o,unit:t}),tG=(e,t,r)=>e("ce.threshold.description.above-or-equal-to",{value:r,unit:t}),tH=(e,t,r)=>e("ce.threshold.description.lower-than-or-equal-to",{unit:t,value:r}),tY=(e,t,r)=>e("ce.threshold.description.increase-of-at-least",{value:r,unit:t}),tK=(e,t,r)=>e("ce.threshold.description.decrease-of-at-least",{value:r,unit:t}),tJ=(e,t,r,o)=>e("ce.threshold.description.x-to-y-unit",{from:r,to:o,unit:t}),tQ=()=>{let e=tV();return(0,eM.jsx)(n.EY,{variant:"strong",children:(0,eM.jsx)(a.N,{as:"button",onClick:()=>{tN({id:"faq_open",props:{configuration:"patient"}}),hc.show({defaultOpenQuestionIndex:2}).then(hc.hide)},children:e("ce.patient.faq.q2.question")})})},tX=({description:e})=>(0,eM.jsx)(s.Z,{border:!0,padding:!1,children:(0,eM.jsx)(c.a,{backgroundColor:"surface",_px:"l",_py:"xl",children:(0,eM.jsx)(n.EY,{children:e})})}),t0=()=>(0,eM.jsx)(d.B,{width:"full",align:"center",children:(0,eM.jsx)(t7,{})}),t1=(0,eW.createContext)(null),t2=e=>{let t=(0,eW.useContext)(t1);(0,eW.useEffect)(()=>{t?.(e)},[t])},t4=({error:e,children:t})=>(t2(e),t);class t8 extends eW.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e,t){this.props.onCatchError?.(e,t)}static getDerivedStateFromError(e){return{error:e}}render(){let{fallback:e,children:t}=this.props;return this.state.error?(0,eM.jsx)(t4,{error:this.state.error,children:e}):t}}let t5=({children:e,onError:t})=>(0,eM.jsx)(t1.Provider,{value:t??null,children:e});t5.displayName="OnErrorProvider",t1.Provider;let t7=()=>{let e=(0,eW.useId)(),t=(0,eW.useId)(),r=(0,eW.useId)();return(0,eM.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:450,height:300,fill:"none",children:[(0,eM.jsxs)("g",{clipPath:`url(#${e})`,children:[(0,eM.jsx)("path",{fill:"#E5E7EB",d:"M450 291c0-26.921-5.82-53.578-17.127-78.45-11.307-24.872-27.881-47.471-48.774-66.507-20.893-19.036-45.697-34.136-72.995-44.438C283.806 91.302 254.547 86 225 86c-29.547 0-58.806 5.302-86.104 15.605-27.298 10.302-52.102 25.402-72.995 44.438-20.893 19.036-37.467 41.635-48.774 66.507C5.82 237.422 0 264.079 0 291h450Z"}),(0,eM.jsx)("path",{fill:"#1F2937",d:"M95 126.989c0-7.174 5.82-12.989 13-12.989h234c7.18 0 13 5.815 13 12.989v150.022c0 7.174-5.82 12.989-13 12.989H108c-7.18 0-13-5.815-13-12.989V126.989Z"}),(0,eM.jsx)("path",{fill:"#FFF1F1",d:"M103 134.177c0-6.725 5.462-12.177 12.2-12.177h219.6c6.738 0 12.2 5.452 12.2 12.177v140.646c0 6.725-5.462 12.177-12.2 12.177H115.2c-6.738 0-12.2-5.452-12.2-12.177V134.177Z"}),(0,eM.jsx)("path",{stroke:"#374151",strokeLinecap:"round",strokeWidth:8,d:"M247 223h-44"}),(0,eM.jsx)("mask",{id:t,fill:"#fff",children:(0,eM.jsx)("path",{fillRule:"evenodd",d:"M180.515 183.515a4 4 0 0 0 0 5.657l2.828 2.828-2.828 2.829a4 4 0 1 0 5.656 5.656l2.829-2.828 2.828 2.828a4 4 0 0 0 5.657-5.656L194.657 192l2.828-2.828a4 4 0 0 0-5.657-5.657L189 186.343l-2.828-2.828a4 4 0 0 0-5.657 0Z",clipRule:"evenodd"})}),(0,eM.jsx)("path",{fill:"#374151",fillRule:"evenodd",d:"M180.515 183.515a4 4 0 0 0 0 5.657l2.828 2.828-2.828 2.829a4 4 0 1 0 5.656 5.656l2.829-2.828 2.828 2.828a4 4 0 0 0 5.657-5.656L194.657 192l2.828-2.828a4 4 0 0 0-5.657-5.657L189 186.343l-2.828-2.828a4 4 0 0 0-5.657 0Z",clipRule:"evenodd"}),(0,eM.jsx)("path",{fill:"#374151",d:"m183.343 192 .707.707.707-.707-.707-.707-.707.707Zm-2.828 2.829-.707-.707.707.707Zm5.656 5.656.708.708-.708-.708Zm2.829-2.828.707-.707-.707-.707-.707.707.707.707Zm2.828 2.828-.707.707.707-.707Zm2.829-8.485-.707-.707-.707.707.707.707.707-.707Zm2.828-2.828-.707-.707.707.707Zm-5.657-5.657-.707-.707.707.707ZM189 186.343l-.707.707.707.707.707-.707-.707-.707Zm-7.778 2.122a3 3 0 0 1 0-4.243l-1.414-1.414a5 5 0 0 0 0 7.071l1.414-1.414Zm2.828 2.828-2.828-2.828-1.414 1.414 2.828 2.828 1.414-1.414Zm-2.828 4.243 2.828-2.829-1.414-1.414-2.828 2.829 1.414 1.414Zm0 4.242a2.998 2.998 0 0 1 0-4.242l-1.414-1.414a5 5 0 0 0 0 7.071l1.414-1.415Zm4.242 0a2.998 2.998 0 0 1-4.242 0l-1.414 1.415a5.001 5.001 0 0 0 7.071 0l-1.415-1.415Zm2.829-2.828-2.829 2.828 1.415 1.415 2.828-2.829-1.414-1.414Zm4.242 2.828-2.828-2.828-1.414 1.414 2.828 2.828 1.414-1.414Zm4.243 0a3 3 0 0 1-4.243 0l-1.414 1.414a5 5 0 0 0 7.071 0l-1.414-1.414Zm0-4.242a2.998 2.998 0 0 1 0 4.242l1.414 1.414a5 5 0 0 0 0-7.071l-1.414 1.415Zm-2.828-2.829 2.828 2.829 1.414-1.415-2.828-2.828-1.414 1.414Zm2.828-4.242-2.828 2.828 1.414 1.414 2.828-2.828-1.414-1.414Zm0-4.243a3 3 0 0 1 0 4.243l1.414 1.414a5 5 0 0 0 0-7.071l-1.414 1.414Zm-4.243 0a3 3 0 0 1 4.243 0l1.414-1.414a5 5 0 0 0-7.071 0l1.414 1.414Zm-2.828 2.828 2.828-2.828-1.414-1.414-2.828 2.828 1.414 1.414Zm-4.243-2.828 2.829 2.828 1.414-1.414-2.828-2.828-1.415 1.414Zm-4.242 0a2.998 2.998 0 0 1 4.242 0l1.415-1.414a5 5 0 0 0-7.071 0l1.414 1.414Z",mask:`url(#${t})`}),(0,eM.jsx)("mask",{id:r,fill:"#fff",children:(0,eM.jsx)("path",{fillRule:"evenodd",d:"M269.485 183.515a3.999 3.999 0 0 0-5.657 0L261 186.343l-2.828-2.828a4 4 0 1 0-5.657 5.656l2.828 2.829-2.828 2.828a4 4 0 0 0 5.657 5.657l2.828-2.828 2.828 2.828a4 4 0 0 0 5.657-5.657L266.657 192l2.828-2.829a4 4 0 0 0 0-5.656Z",clipRule:"evenodd"})}),(0,eM.jsx)("path",{fill:"#374151",fillRule:"evenodd",d:"M269.485 183.515a3.999 3.999 0 0 0-5.657 0L261 186.343l-2.828-2.828a4 4 0 1 0-5.657 5.656l2.828 2.829-2.828 2.828a4 4 0 0 0 5.657 5.657l2.828-2.828 2.828 2.828a4 4 0 0 0 5.657-5.657L266.657 192l2.828-2.829a4 4 0 0 0 0-5.656Z",clipRule:"evenodd"}),(0,eM.jsx)("path",{fill:"#374151",d:"m261 186.343-.707.707.707.707.707-.707-.707-.707ZM255.343 192l.707.707.707-.707-.707-.707-.707.707Zm5.657 5.657.707-.707-.707-.708-.707.708.707.707Zm5.657-5.657-.707-.707-.707.707.707.707.707-.707Zm-2.121-7.778a2.998 2.998 0 0 1 4.242 0l1.414-1.415a5.001 5.001 0 0 0-7.071 0l1.415 1.415Zm-2.829 2.828 2.829-2.828-1.415-1.415-2.828 2.829 1.414 1.414Zm-4.243-2.828 2.829 2.828 1.414-1.414-2.828-2.829-1.415 1.415Zm-4.242 0a2.998 2.998 0 0 1 4.242 0l1.415-1.415a5.001 5.001 0 0 0-7.071 0l1.414 1.415Zm0 4.242a2.998 2.998 0 0 1 0-4.242l-1.414-1.415a5 5 0 0 0 0 7.072l1.414-1.415Zm2.828 2.829-2.828-2.829-1.414 1.415 2.828 2.828 1.414-1.414Zm-2.828 4.242 2.828-2.828-1.414-1.414-2.828 2.828 1.414 1.414Zm0 4.243a3 3 0 0 1 0-4.243l-1.414-1.414a5 5 0 0 0 0 7.071l1.414-1.414Zm4.242 0a2.998 2.998 0 0 1-4.242 0l-1.414 1.414a5 5 0 0 0 7.071 0l-1.415-1.414Zm2.829-2.828-2.829 2.828 1.415 1.414 2.828-2.828-1.414-1.414Zm4.243 2.828-2.829-2.828-1.414 1.414 2.828 2.828 1.415-1.414Zm4.242 0a2.998 2.998 0 0 1-4.242 0l-1.415 1.414a5 5 0 0 0 7.071 0l-1.414-1.414Zm0-4.243a3 3 0 0 1 0 4.243l1.414 1.414a5 5 0 0 0 0-7.071l-1.414 1.414Zm-2.828-2.828 2.828 2.828 1.414-1.414-2.828-2.828-1.414 1.414Zm2.828-4.243-2.828 2.829 1.414 1.414 2.828-2.828-1.414-1.415Zm0-4.242a2.998 2.998 0 0 1 0 4.242l1.414 1.415a5 5 0 0 0 0-7.072l-1.414 1.415Z",mask:`url(#${r})`}),(0,eM.jsx)("path",{fill:"#FF6266",d:"M62.5 232.519c.263-1.694 2.537-2.183 3.725-.947a45.702 45.702 0 0 0 6.378 5.487c1.349.963 3.183-.146 3.118-1.802-.47-11.989.81-47.273 31.12-56.41 1.444-.436 2.751.914 2.411 2.383-7.674 33.162 11.686 43.515 20.891 28.387.8-1.316 2.731-1.534 3.552-.231 8.328 13.217 5.102 24.872 2.883 30.008-.58 1.341.27 2.957 1.686 2.598 2.515-.636 4.664-2.308 6.039-3.618.593-.565 1.682-.185 1.682.634 0 23.191-18.801 41.992-41.993 41.992C80.801 281 62 262.199 62 239.008c0-2.207.171-4.374.5-6.489Z"}),(0,eM.jsx)("path",{fill:"#FED7AA",d:"M128.357 254.295c-.131-.943-1.324-1.38-2.098-.764a23.698 23.698 0 0 1-2.599 1.797c-.451.27-1.032-.062-.98-.561 1.632-15.547-10.751-27.598-21.498-27.644-4.344-.018 5.614 9.831-5.73 19.906a43.722 43.722 0 0 0-2.793 2.695.663.663 0 0 1-.987-.041 21.718 21.718 0 0 1-3.316-5.974c-.323-.893-1.577-1.085-2.203-.346-3.22 3.797-5.14 8.6-5.137 13.824.007 12.463 10.83 22.42 24.147 22.226 12.952-.189 23.391-10.073 23.39
11-22.239 0-.975-.067-1.936-.197-2.879Z"}),(0,eM.jsx)("rect",{width:278,height:24,x:86,y:276,fill:"#374151",rx:8}),(0,eM.jsx)("rect",{width:32,height:11,x:210,y:114,fill:"#1F2937",rx:5.5}),(0,eM.jsx)("circle",{cx:220,cy:119,r:2,fill:"#045BAA",opacity:.5}),(0,eM.jsx)("circle",{cx:220,cy:119,r:1,fill:"#045BAA",opacity:.5}),(0,eM.jsx)("circle",{cx:232,cy:119,r:2,fill:"#045BAA",opacity:.5}),(0,eM.jsx)("circle",{cx:232,cy:119,r:1,fill:"#045BAA",opacity:.5})]}),(0,eM.jsx)("defs",{children:(0,eM.jsx)("clipPath",{id:e,children:(0,eM.jsx)("path",{fill:"#fff",d:"M0 0h450v300H0z"})})})]})},t3=e=>{let{error:t}=e,r=tV();return t2(t),(0,eM.jsxs)(d.B,{_gap:"2xl",align:"center",_px:"2xl",_pb:"2xl",children:[(0,eM.jsx)(t7,{}),(0,eM.jsxs)(d.B,{_gap:"m",align:"center",children:[(0,eM.jsx)(n.EY,{variant:"xl-strong",children:r("ce.patient.configuration.error.state.title")}),(0,eM.jsx)(n.EY,{variant:"medium",children:r("ce.patient.configuration.error.state.description")})]}),(0,eM.jsx)(d.B,{axis:"x",_gap:"m",children:(0,eM.jsx)(u.j,{onClick:()=>globalThis.location.reload(),children:r("ce.patient.configuration.error.state.button.retry")})})]})},t6=({size:e})=>(0,eM.jsx)(h.A,{size:e,style:{flexShrink:0}}),t9=({size:e})=>(0,eM.jsx)(g.A,{size:e,style:{flexShrink:0}}),re=({size:e})=>(0,eM.jsx)(m.A,{size:e,color:"on-surface-variant",style:{flexShrink:0}});function rt(){return(rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(null,arguments)}let rr=function(e){return eW.createElement("svg",rt({xmlns:"http://www.w3.org/2000/svg",width:40,height:24,fill:"none"},e),nr||(nr=eW.createElement("path",{stroke:"#6a7282",strokeWidth:1.5,d:"M20 .75c1.26 0 2.317 1.057 2.317 2.405V13.75l.916-.207 5.437-1.23c.214-.05.397.042.506.236.11.196.104.43-.062.617l-8.768 9.925a.453.453 0 0 1-.616.07l-.076-.07-8.768-9.925a.52.52 0 0 1-.062-.617c.096-.17.247-.26.427-.248l.08.011 5.438 1.231.915.207V3.155C17.684 1.807 18.74.75 20 .75Z"})))};function ro(){return(ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)({}).hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e}).apply(null,arguments)}let ri=function(e){return eW.createElement("svg",ro({xmlns:"http://www.w3.org/2000/svg",width:40,height:24,fill:"none"},e),no||(no=eW.createElement("path",{stroke:"#3a4657",strokeWidth:1.5,d:"M20 23.25c1.26 0 2.317-1.057 2.317-2.405V10.25l.916.207 5.437 1.23c.214.05.397-.042.506-.236a.52.52 0 0 0-.062-.617L20.346.909a.453.453 0 0 0-.616-.07l-.076.07-8.768 9.925a.52.52 0 0 0-.062.617c.096.17.247.26.427.248l.08-.011 5.438-1.231.915-.207v10.595c0 1.348 1.057 2.405 2.316 2.405Z"})))},rl=e=>{let{rangeColor:t=p.OC.Colors.BLUE}=e;return(0,eM.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"24",fill:"none",viewBox:"0 0 40 24",children:(0,eM.jsx)("path",{fill:t,d:"M0 12a3 3 0 0 1 3-3h34a3 3 0 1 1 0 6H3a3 3 0 0 1-3-3"})})},rn=e=>{let{rangeColor:t=p.OC.Colors.BLUE,upperRangeColor:r=p.OC.Colors.GREY_LIGHT}=e;return(0,eM.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"24",fill:"none",viewBox:"0 0 40 24",children:[(0,eM.jsx)("path",{fill:t,d:"M0 12a3 3 0 0 1 3-3h34a3 3 0 1 1 0 6H3a3 3 0 0 1-3-3"}),(0,eM.jsx)("path",{fill:r,d:"M20 9h17a3 3 0 1 1 0 6H20z"})]})},ra=e=>{let{rangeColor:t=p.OC.Colors.BLUE,lowerRangeColor:r=p.OC.Colors.GREY_LIGHT}=e;return(0,eM.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"24",fill:"none",viewBox:"0 0 40 24",children:[(0,eM.jsx)("path",{fill:r,d:"M0 12a3 3 0 0 1 3-3h34a3 3 0 1 1 0 6H3a3 3 0 0 1-3-3"}),(0,eM.jsx)("path",{fill:t,d:"M28 9H12v6h16z"})]})},rs=e=>{let{rangeColor:t=p.OC.Colors.BLUE,lowerRangeColor:r=p.OC.Colors.GREY_LIGHT}=e;return(0,eM.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"24",fill:"none",viewBox:"0 0 40 24",children:[(0,eM.jsx)("path",{fill:r,d:"M0 12a3 3 0 0 1 3-3h34a3 3 0 1 1 0 6H3a3 3 0 0 1-3-3"}),(0,eM.jsx)("path",{fill:t,d:"M20 9h17a3 3 0 1 1 0 6H20z"})]})},rc=({priority:e,size:t})=>{switch(e){case"PH":return(0,eM.jsx)(t6,{size:t});case"PM":return(0,eM.jsx)(t9,{size:t});case"PL":return(0,eM.jsx)(re,{size:t})}},rd=({priority:e})=>{switch(e){case"PH":return(0,eM.jsx)(f.A,{color:"on-negative"});case"PM":return(0,eM.jsx)(f.A,{color:"amber"});case"PL":return(0,eM.jsx)(f.A,{color:"blue-800"});case"PN":return null}},ru=({type:e})=>"INCREASE"===e?(0,eM.jsx)(ri,{}):(0,eM.jsx)(rr,{}),rh=({range:e,priority:t,instrumentMin:r,instrumentMax:o})=>{let i=(()=>{switch(t){case"PH":return"#B91C1C";case"PM":return"#D97706";case"PL":return"#1E40AF"}})(),l=null!==e.from&&null!=r&&Number(e.from)===r,n=null!==e.to&&null!=o&&Number(e.to)===o,a=null!==e.from&&!l,s=null!==e.to&&!n;return a&&s?(0,eM.jsx)(ra,{rangeColor:i}):s?(0,eM.jsx)(rn,{rangeColor:i}):a?(0,eM.jsx)(rs,{rangeColor:i}):(0,eM.jsx)(rl,{rangeColor:i})},rg=({threshold:e,instrumentMin:t,instrumentMax:r})=>"deltaCompare"===e.logic?(0,eM.jsx)(ru,{type:e.type}):(0,eM.jsx)(rh,{range:e.range,priority:e.priority,instrumentMin:t,instrumentMax:r}),rm=e=>{let{triggerKey:t}=e;switch(t){case"PH-deltaCompareHigh":return(0,eM.jsx)(ri,{});case"PH-deltaCompareLow":return(0,eM.jsx)(rr,{})}},rp=e=>{let{action:t,title:r,children:o}=e;return(0,eM.jsx)(s.Z,{border:!0,children:(0,eM.jsxs)(d.B,{_gap:"base",width:"full",align:"stretch",children:[r&&(0,eM.jsxs)(d.B,{justify:"between",axis:"x",children:["string"==typeof r?(0,eM.jsx)(w.h,{variant:"xs",level:"3",children:r}):r,t&&(0,eM.jsx)(v.E,{onClick:t.onClick,label:t.iconLabel,expand:!0,children:t.icon})]}),(0,eM.jsx)(c.a,{children:o})]})})},rf=e=>{let{children:t}=e;return(0,eM.jsx)(d.B,{divider:(0,eM.jsx)(b.c,{version:"v2",variant:"vertical-flow"}),align:"stretch",children:t})},rw=e=>{let{title:t,secondaryActions:r,children:o,omitChildPadding:i,titleAccessories:l}=e,n=(0,eW.useId)();return(0,eM.jsxs)(s.Z,{padding:!1,border:!0,as:"article","aria-labelledby":n,children:[(0,eM.jsx)(s.Z.TopBar,{children:(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",_gap:"l",_px:"l",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(w.h,{variant:"xs",id:n,children:t}),l&&(0,eM.jsx)(c.a,{children:l})]}),r&&(0,eM.jsx)(s.Z.Actions,{children:r})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(c.a,{as:i?"div":s.Z.Padding,children:o})]})},rv=e=>{let{trigger:t,action:r,result:o,aside:i,belowTriggerLabel:l,presentDivider:a=!0}=e;return(0,eM.jsxs)(d.B,{axis:"x",width:"full",align:"stretch",justify:"center",children:[(0,eM.jsxs)(d.B,{_gap:"xl",align:"center",axis:"x",width:"full",divider:a?(0,eM.jsx)(b.c,{version:"v2",variant:"horizontal-flow"}):void 0,children:[(0,eM.jsxs)(d.B,{width:"1/3",axis:"x",_gap:"base",align:"start",style:{flexShrink:0},children:[(0,eM.jsx)(c.a,{style:{flexShrink:0},children:t.icon}),(0,eM.jsxs)(d.B,{axis:"y",_gap:"l",children:[(0,eM.jsxs)(d.B,{axis:"y",children:["string"==typeof t.label?(0,eM.jsx)(n.EY,{children:t.label}):t.label,"string"==typeof t.subtitle?(0,eM.jsx)(n.EY,{variant:"sm",color:"on-surface-variant",children:t.subtitle}):t.subtitle]}),l&&(0,eM.jsx)(c.a,{children:l})]})]}),eW.default.isValidElement(r)&&r,r&&"object"==typeof r&&"label"in r&&"icon"in r&&(0,eM.jsx)(s.Z,{padding:!1,border:!0,borderRadius:"xs",style:{flexShrink:0},children:(0,eM.jsxs)(d.B,{axis:"x",align:"center",_gap:"l",_px:"m",_py:"m",children:[r.icon,(0,eM.jsx)(n.EY,{as:"span",children:r.label})]})}),o&&(0,eM.jsx)(c.a,{children:o})]}),i]})};rw.TriggerItem=rv,rw.CollapsibleTriggerSection=e=>{let{children:t,isOpen:r,onToggle:o,sectionTitle:i,sectionButtonAriaLabel:l,action:n,aside:a,id:s}=e,u=r?[.04,.62,.23,.98]:[.76,0,.24,1];return(0,eM.jsxs)(d.B,{align:"start",id:s,children:[(0,eM.jsx)(rv,{trigger:{label:i,icon:(0,eM.jsx)(d.B,{axis:"x",align:"center",children:(0,eM.jsx)(v.E,{size:"medium",expand:!0,label:l,onClick:o,children:(0,eM.jsx)(y.A,{style:{transform:r?"rotate(90deg)":"rotate(0deg)",transition:"transform 0.2s ease-in-out"}})})})},action:n,aside:a}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",style:{overflow:"hidden"},initial:{opacity:0,height:0},animate:r?{opacity:1,height:"auto"}:{opacity:0,height:0},transition:{height:{duration:.4,ease:u},marginTop:{duration:.4,ease:u},opacity:{duration:.3,delay:.1*!!r,ease:"easeOut"}},children:[(0,eM.jsx)(v.E,{"aria-hidden":"true",size:"medium",expand:!0,label:"Not needed, hidden element",style:{visibility:"hidden",pointerEvents:"none"},children:(0,eM.jsx)(y.A,{})}),(0,eM.jsx)(c.a,{children:t})]})]})};let rb=({errorMessage:e})=>(0,eM.jsx)(x.A,{color:"red",icon:k.A,children:(0,eM.jsx)(n.EY,{c
1olor:"current",children:e})}),ry=e=>{let{title:t,children:r,onClose:o,primaryButton:i,secondaryButton:l,errorMessage:n,colorScheme:a="default"}=e;return(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsxs)(j.yZ.Header,{children:["string"==typeof t?(0,eM.jsx)(j.yZ.Title,{children:t}):t,(0,eM.jsx)(j.yZ.CloseButton,{onClick:o})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsxs)(j.yZ.Body,{width:"full",backgroundColor:"default"===a?"background":"surface",children:[(0,eM.jsx)("div",{role:"alert",children:n&&(0,eM.jsx)(c.a,{_mb:"l",children:(0,eM.jsx)(rb,{errorMessage:n})})}),r]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{backgroundColor:"default"===a?"surface":"background",children:(0,eM.jsxs)(j.yZ.Actions,{children:[l,i]})})]})};ry.Title=j.yZ.Title;let rx=new Intl.DateTimeFormat("nl-NL",{hour:"2-digit",minute:"2-digit"});Array.from({length:24},(e,t)=>{let r=new Date(2020,0,1,t);return rx.format(r)});let rk={lang:void 0,message:void 0,abortEarly:void 0,abortPipeEarly:void 0};function rj(e){return e?{lang:e?.lang??void 0,message:e?.message,abortEarly:e?.abortEarly??void 0,abortPipeEarly:e?.abortPipeEarly??void 0}:rk}function rC(e){let t=typeof e;return"string"===t?`"${e}"`:"number"===t||"bigint"===t||"boolean"===t?`${e}`:"object"===t||"function"===t?(e&&Object.getPrototypeOf(e)?.constructor?.name)??"null":t}function rA(e,t,r,o,i){let l=i&&"input"in i?i.input:r.value,n=i?.expected??e.expects??null,a=i?.received??rC(l),s={kind:e.kind,type:e.type,input:l,expected:n,received:a,message:`Invalid ${t}: ${n?`Expected ${n} but r`:"R"}eceived ${a}`,requirement:e.requirement,path:i?.path,issues:i?.issues,lang:o.lang,abortEarly:o.abortEarly,abortPipeEarly:o.abortPipeEarly},c="schema"===e.kind,d=i?.message??e.message??(e.reference,void s.lang)??(c?void s.lang:null)??o.message??void s.lang;void 0!==d&&(s.message="function"==typeof d?d(s):d),c&&(r.typed=!1),r.issues?r.issues.push(s):r.issues=[s]}let rI=new WeakMap;function rS(e){let t=rI.get(e);return t||(t={version:1,vendor:"valibot",validate:t=>e["~run"]({value:t},rj())},rI.set(e,t)),t}function r_(e,t){let r=[...new Set(e)];return r.length>1?`(${r.join(` ${t} `)})`:r[0]??"never"}function rT(e){if(e.path){let t="";for(let r of e.path){if("string"!=typeof r.key&&"number"!=typeof r.key)return null;t+=t?`.${r.key}`:r.key}return t}return null}var rq=class extends Error{constructor(e){super(e[0].message),this.name="ValiError",this.issues=e}};let rE=/^(?:0\d|1\d|2[0-3]):[0-5]\d$/u,rP=/^(?:0\d|1\d|2[0-3])(?::[0-5]\d){2}$/u,rD=/^[\da-f]{8}(?:-[\da-f]{4}){3}-[\da-f]{12}$/iu;function rB(e){return{kind:"transformation",type:"brand",reference:rB,async:!1,name:e,"~run":e=>e}}function rM(e){return{kind:"validation",type:"integer",reference:rM,async:!1,expects:null,requirement:Number.isInteger,message:e,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&rA(this,"integer",e,t),e}}}function rW(e,t){return{kind:"validation",type:"max_value",reference:rW,async:!1,expects:`<=${e instanceof Date?e.toJSON():rC(e)}`,requirement:e,message:t,"~run"(e,t){return!e.typed||e.value<=this.requirement||rA(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():rC(e.value)}),e}}}function rN(e,t){return{kind:"validation",type:"min_value",reference:rN,async:!1,expects:`>=${e instanceof Date?e.toJSON():rC(e)}`,requirement:e,message:t,"~run"(e,t){return!e.typed||e.value>=this.requirement||rA(this,"value",e,t,{received:e.value instanceof Date?e.value.toJSON():rC(e.value)}),e}}}function rO(e){return{kind:"validation",type:"non_empty",reference:rO,async:!1,expects:"!0",message:e,"~run"(e,t){return e.typed&&0===e.value.length&&rA(this,"length",e,t,{received:"0"}),e}}}function rz(e){return{kind:"transformation",type:"transform",reference:rz,async:!1,operation:e,"~run"(e){return e.value=this.operation(e.value),e}}}function rL(){return{kind:"transformation",type:"trim",reference:rL,async:!1,"~run":e=>(e.value=e.value.trim(),e)}}function rF(e){return{kind:"validation",type:"uuid",reference:rF,async:!1,expects:null,requirement:rD,message:e,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&rA(this,"UUID",e,t),e}}}let rU={abortEarly:!0};function rR(e,t,r){return"function"==typeof e.fallback?e.fallback(t,r):e.fallback}function rV(e,t,r){return"function"==typeof e.default?e.default(t,r):e.default}function r$(e,t){return{kind:"schema",type:"array",reference:r$,expects:"Array",async:!1,item:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(Array.isArray(r)){e.typed=!0,e.value=[];for(let o=0;o<r.length;o++){let i=r[o],l=this.item["~run"]({value:i},t);if(l.issues){let n={type:"array",origin:"value",input:r,key:o,value:i};for(let t of l.issues)t.path?t.path.unshift(n):t.path=[n],e.issues?.pu
1sh(t);if(e.issues||(e.issues=l.issues),t.abortEarly){e.typed=!1;break}}l.typed||(e.typed=!1),e.value.push(l.value)}}else rA(this,"type",e,t);return e}}}function rZ(e){return{kind:"schema",type:"boolean",reference:rZ,expects:"boolean",async:!1,message:e,get"~standard"(){return rS(this)},"~run"(e,t){return"boolean"==typeof e.value?e.typed=!0:rA(this,"type",e,t),e}}}function rG(e,t){return{kind:"schema",type:"custom",reference:rG,expects:"unknown",async:!1,check:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){return this.check(e.value)?e.typed=!0:rA(this,"type",e,t),e}}}function rH(e,t){return{kind:"schema",type:"literal",reference:rH,expects:rC(e),async:!1,literal:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){return e.value===this.literal?e.typed=!0:rA(this,"type",e,t),e}}}function rY(e,t){return{kind:"schema",type:"nullable",reference:rY,expects:`(${e.expects} | null)`,async:!1,wrapped:e,default:t,get"~standard"(){return rS(this)},"~run"(e,t){return null===e.value&&(void 0!==this.default&&(e.value=rV(this,e,t)),null===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function rK(e){return{kind:"schema",type:"number",reference:rK,expects:"number",async:!1,message:e,get"~standard"(){return rS(this)},"~run"(e,t){return"number"!=typeof e.value||isNaN(e.value)?rA(this,"type",e,t):e.typed=!0,e}}}function rJ(e,t){return{kind:"schema",type:"object",reference:rJ,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(r&&"object"==typeof r)for(let o in e.typed=!0,e.value={},this.entries){let i=this.entries[o];if(o in r||("exact_optional"===i.type||"optional"===i.type||"nullish"===i.type)&&void 0!==i.default){let l=o in r?r[o]:rV(i),n=i["~run"]({value:l},t);if(n.issues){let i={type:"object",origin:"value",input:r,key:o,value:l};for(let t of n.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.push(t);if(e.issues||(e.issues=n.issues),t.abortEarly){e.typed=!1;break}}n.typed||(e.typed=!1),e.value[o]=n.value}else if(void 0!==i.fallback)e.value[o]=rR(i);else if("exact_optional"!==i.type&&"optional"!==i.type&&"nullish"!==i.type&&(rA(this,"key",e,t,{input:void 0,expected:`"${o}"`,path:[{type:"object",origin:"key",input:r,key:o,value:r[o]}]}),t.abortEarly))break}else rA(this,"type",e,t);return e}}}function rQ(e,t){return{kind:"schema",type:"optional",reference:rQ,expects:`(${e.expects} | undefined)`,async:!1,wrapped:e,default:t,get"~standard"(){return rS(this)},"~run"(e,t){return void 0===e.value&&(void 0!==this.default&&(e.value=rV(this,e,t)),void 0===e.value)?(e.typed=!0,e):this.wrapped["~run"](e,t)}}}function rX(e,t){return{kind:"schema",type:"picklist",reference:rX,expects:r_(e.map(rC),"|"),async:!1,options:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){return this.options.includes(e.value)?e.typed=!0:rA(this,"type",e,t),e}}}function r0(e,t,r){return{kind:"schema",type:"record",reference:r0,expects:"Object",async:!1,key:e,value:t,message:r,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(r&&"object"==typeof r){for(let o in e.typed=!0,e.value={},r)if(Object.prototype.hasOwnProperty.call(r,o)&&"__proto__"!==o&&"prototype"!==o&&"constructor"!==o){let i=r[o],l=this.key["~run"]({value:o},t);if(l.issues){let n={type:"object",origin:"key",input:r,key:o,value:i};for(let t of l.issues)t.path=[n],e.issues?.push(t);if(e.issues||(e.issues=l.issues),t.abortEarly){e.typed=!1;break}}let n=this.value["~run"]({value:i},t);if(n.issues){let l={type:"object",origin:"value",input:r,key:o,value:i};for(let t of n.issues)t.path?t.path.unshift(l):t.path=[l],e.issues?.push(t);if(e.issues||(e.issues=n.issues),t.abortEarly){e.typed=!1;break}}l.typed&&n.typed||(e.typed=!1),l.typed&&(e.value[l.value]=n.value)}}else rA(this,"type",e,t);return e}}}function r1(e,t){return{kind:"schema",type:"strict_object",reference:r1,expects:"Object",async:!1,entries:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(r&&"object"==typeof r){for(let o in e.typed=!0,e.value={},this.entries){let i=this.entries[o];if(o in r||("exact_optional"===i.type||"optional"===i.type||"nullish"===i.type)&&void 0!==i.default){let l=o in r?r[o]:rV(i),n=i["~run"]({value:l},t);if(n.issues){let i={type:"object",origin:"value",input:r,key:o,value:l};for(let t of n.issues)t.path?t.path.unshift(i):t.path=[i],e.issues?.pu
1sh(t);if(e.issues||(e.issues=n.issues),t.abortEarly){e.typed=!1;break}}n.typed||(e.typed=!1),e.value[o]=n.value}else if(void 0!==i.fallback)e.value[o]=rR(i);else if("exact_optional"!==i.type&&"optional"!==i.type&&"nullish"!==i.type&&(rA(this,"key",e,t,{input:void 0,expected:`"${o}"`,path:[{type:"object",origin:"key",input:r,key:o,value:r[o]}]}),t.abortEarly))break}if(!e.issues||!t.abortEarly){for(let o in r)if(!(o in this.entries)){rA(this,"key",e,t,{input:o,expected:"never",path:[{type:"object",origin:"key",input:r,key:o,value:r[o]}]});break}}}else rA(this,"type",e,t);return e}}}function r2(e,t){return{kind:"schema",type:"strict_tuple",reference:r2,expects:"Array",async:!1,items:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(Array.isArray(r)){e.typed=!0,e.value=[];for(let o=0;o<this.items.length;o++){let i=r[o],l=this.items[o]["~run"]({value:i},t);if(l.issues){let n={type:"array",origin:"value",input:r,key:o,value:i};for(let t of l.issues)t.path?t.path.unshift(n):t.path=[n],e.issues?.push(t);if(e.issues||(e.issues=l.issues),t.abortEarly){e.typed=!1;break}}l.typed||(e.typed=!1),e.value.push(l.value)}e.issues&&t.abortEarly||!(this.items.length<r.length)||rA(this,"type",e,t,{input:r[this.items.length],expected:"never",path:[{type:"array",origin:"value",input:r,key:this.items.length,value:r[this.items.length]}]})}else rA(this,"type",e,t);return e}}}function r4(e){return{kind:"schema",type:"string",reference:r4,expects:"string",async:!1,message:e,get"~standard"(){return rS(this)},"~run"(e,t){return"string"==typeof e.value?e.typed=!0:rA(this,"type",e,t),e}}}function r8(e){let t;if(e)for(let r of e)if(t)for(let e of r.issues)t.push(e);else t=r.issues;return t}function r5(e,t){return{kind:"schema",type:"union",reference:r5,expects:r_(e.map(e=>e.expects),"|"),async:!1,options:e,message:t,get"~standard"(){return rS(this)},"~run"(e,t){let r,o,i;for(let l of this.options){let n=l["~run"]({value:e.value},t);if(n.typed){if(!n.issues){r=n;break}o?o.push(n):o=[n]}else i?i.push(n):i=[n]}if(r)return r;if(o){if(1===o.length)return o[0];rA(this,"type",e,t,{issues:r8(o)}),e.typed=!0}else{if(1===i?.length)return i[0];rA(this,"type",e,t,{issues:r8(i)})}return e}}}function r7(){return{kind:"schema",type:"unknown",reference:r7,expects:"unknown",async:!1,get"~standard"(){return rS(this)},"~run":e=>(e.typed=!0,e)}}function r3(e,t,r){let o=e["~run"]({value:t},rj(r));if(o.issues)throw new rq(o.issues);return o.value}function r6(e,t){let r={};for(let o in e.entries)r[o]=!t||t.includes(o)?rQ(e.entries[o]):e.entries[o];return{...e,entries:r,get"~standard"(){return rS(this)}}}function r9(...e){return{...e[0],pipe:e,get"~standard"(){return rS(this)},"~run"(t,r){for(let o of e)if("metadata"!==o.kind){if(t.issues&&("schema"===o.kind||"transformation"===o.kind)){t.typed=!1;break}t.issues&&(r.abortEarly||r.abortPipeEarly)||(t=o["~run"](t,r))}return t}}}function oe(e,t,r){let o=e["~run"]({value:t},rj(r));return{typed:o.typed,success:!o.issues,output:o.value,issues:o.issues}}function ot(e){let t="";for(let r of e){t&&(t+="\n"),t+=`\xd7 ${r.message}`;let e=rT(r);e&&(t+=` 2 â at ${e}`)}return t}let or=rJ({system:r4(),code:r4(),display:function e(t,r){return{kind:"schema",type:"nullish",reference:e,expects:`(${t.expects} | null | undefined)`,async:!1,wrapped:t,default:r,get"~standard"(){return rS(this)},"~run"(e,t){return null!==e.value&&void 0!==e.value||(void 0!==this.default&&(e.value=rV(this,e,t)),null!==e.value&&void 0!==e.value)?this.wrapped["~run"](e,t):(e.typed=!0,e)}}}(r4())}),oo=r5([rH("PN"),rH("PL"),rH("PM"),rH("PH")]),oi=r5([rH("deltaCompare"),rH("rangeCompare"),rH("script"),rH("flagScript")]),ol=rY(r0(r4(),r7())),on=rJ({code:r$(or),logic:oi,flagPriority:oo,flagCodes:rQ(rY(r$(or))),high:rQ(rY(r4())),low:rQ(rY(r4())),inclusiveCompare:rQ(rY(rZ())),rangeLowIncluded:rQ(rY(rZ())),rangeHighIncluded:rQ(rY(rZ())),expression:rQ(ol),interval:rQ(rY(rK())),gracePeriod:rQ(rY(r9(rK(),rN(0),rW(3600)))),resetAfterAlert:rQ(rY(rZ()))}),oa=rX(["latest","previous","earliest","sum","average","count","min","max"]),os=rJ({name:r4(),codings:r$(or),interval:rQ(rY(rK())),reduction:oa}),oc=rJ({observation:rQ(r$(or)),component:rQ(r$(or))}
2),od=rH("ObservationCreated"),ou=rJ({expressionId:r4(),trigger:od,gracePeriod:r9(rK(),rN(0),rW(3600)),outputCodings:oc,input:r$(os)}),oh=(rY(rJ({overdueReminderTime:rQ(rY(r4())),autoProcessOverdues:rQ(rZ()),triggerOverdueFlags:rQ(rZ()),codesForOverdueFlags:rQ(r$(or)),triggerNoteFlags:rQ(rZ()),codesForNoteFlags:rQ(r$(or)),inactivityLimitDays:rQ(rY(rK())),thresholds:rQ(r$(on)),calculations:rQ(r$(ou))})),rX(["PN","PL","PM","PH"])),og=rY(rJ({maxTriggers:rQ(rK()),timezone:rQ(r4())})),om=rY(rX(["processed","processedUnlessComment","escalated"])),op=rJ({step:rQ(r9(rK(),rN(1))),status:rQ(om)}),of=rJ({type:rQ(r$(or)),value:rQ(r4())}),ow=rJ({code:rQ(r$(or)),input:rQ(r$(of)),step:rQ(r9(rK(),rN(1)))}),ov=(rJ({description:rQ(rY(r4())),flagCodes:r$(or),flagPriority:oh,triggerLimit:rQ(og),flagStatus:rQ(r$(op)),tasks:rQ(r$(ow))}),["AbsentIcon","AddNoteIcon","AlarmClockIcon","AmberAlertIcon","ArrowsUpDownIcon","AssignIcon","AssignedIcon","BellIcon","BluetoothIcon","BookOpenIcon","BrushIcon","CakeIcon","CalendarDayIcon","CalendarMonthIcon","CalendarRepeatIcon","ChartBarsIcon","ChartLineAndBarsIcon","ChartLineIcon","ChatBubbleIcon","ChatBubbleWithTextIcon","CheckCircleFilledIcon","CheckIcon","ChevronDoubleIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","CircleEllipsisIcon","CircleFilledIcon","ClipboardListIcon","ClockIcon","CogwheelIcon","CompareIcon","CopyToClipboardIcon","CrossIcon","CrossInCircleIcon","CrossInFilledCircleIcon","DashboardIcon","DatabaseIcon","DocumentLinesIcon","DownloadIcon","DragIndicatorIcon","EarthIcon","EmailIcon","EmojiIcon","EmptyIcon","ExclamationMarkIcon","ExportIcon","ExternalLinkIcon","EyeClosedIcon","EyeOpenIcon","FilterIcon","FireIcon","FirstAidKitIcon","FlagIcon","FolderIcon","ForwardIcon","GifIcon","GrayAlertIcon","GroupIcon","GroupOfThreeIcon","HamburgerIcon","HandshakeIcon","HashIcon","HeartIcon","HeartMinusIcon","HomeIcon","IdBadgeIcon","ImageIcon","ImageLibraryIcon","InfoIcon","LifebuoyIcon","LightBulbIcon","LinkIcon","ListDescIcon","ListIcon","LockIcon","LogInIcon","LogOutIcon","MessageWithArrowIcon","MoreIcon","MouseIcon","NoteIcon","OpenAlertIcon","OpenFolderIcon","PageIcon","PageViewIcon","PaperclipIcon","PatientIcon","PencilIcon","PersonIcon","PhoneIcon","PieChartIcon","PinIcon","PlusIcon","PrinterIcon","QuestionFilledIcon","RedAlertIcon","RobotIcon","RocketIcon","SearchIcon","SendIcon","ShareIcon","SidebarIcon","SigmaSquareIcon","SmallArrowDownIcon","SmallArrowUpIcon","SmallCircleIcon","SmallDiamondIcon","SmallSquareIcon","SmallUpsideDownTriangleIcon","SquareFilledIcon","StarFilledIcon","StarIcon","StopwatchIcon","SummaryIcon","SwapIcon","TadaIcon","TaskIcon","ThresholdIcon","TrashBinIcon","TreeIcon","UnassignedIcon","UnlinkIcon","UnpinIcon","UploadIcon","VideoIcon","WandIcon","WorkflowIcon"]),ob=r9(r4(),rL(),rO()),oy=r5(ov.map(e=>rH(e))),ox=rJ({href:ob,text:ob}),ok=rJ({icon:oy,title:ob,titleShort:ob,subtitle:rQ(ob),description:rQ(ob),link:rQ(ox)}),oj=rJ({uuid:r9(r4(),rF()),code:or,unit:r4(),constraints:rJ({decimalPlaces:rY(rK()),minValue:rY(rK()),maxValue:rY(rK())}),calculationStatus:rQ(rZ())}),oC=rJ({uuid:r9(r4(),rF()),code:or,children:r$(oj)}),oA=r$(r5([oj,oC])),oI=rX(["lessThanOrEqualTo","greaterThanOrEqualTo","equalTo","between"]),oS=rX(["atLeast","atMost","exactly"]),o_=r9(rK(),rN(1)),oT=rX(["hours","days","weeks"]),oq=r9(rK(),rN(1)),oE=(rJ({compareOption:oI,occurrenceUnit:oS,occurrenceAmount:oq,timeWindowAmount:o_,timeWindowUnit:oT}),r1({some:r2([r1({var:rH("code")}),r1({and:r2([r1({"==":r2([r1({var:rH("system")}),r4()])}),r1({"==":r2([r1({var:rH("code")}),r4()])})])})])})),oP=r5([r1({">=":r2([r1({var:rH("value")}),rK()])}),r1({"<=":r2([r1({var:rH("value")}),rK()])}),r1({"==":r2([r1({var:rH("value")}),rK()])}),r1({"<=":r2([rK(),r1({var:rH("value")}),rK()])})]),oD=r2([r1({reduce:r2([r1({filter:r2([r1({var:rH("data")}),r1({and:r2([oE,oP])})])}),r1({"+":r2([r1({var:rH("accumulator")}),rH(1)])}),rH(0)])}),oq]),oB=r5([r1({">=":oD}),r1({"<=":oD}),r1({"==":oD})]),oM=r1({and:r$(oB)}),oW=r1({expression:oM,interval:rK()}),oN=({flagCodes:e})=>r9(oW,rz(t=>t.expression.and.map(r=>{let[o,i]=function(e){let t=e["<="]??e["=="]??e[">="];if(!t)throw Error(`Supported compare operator (">=", "<=", "==") not found in object ${JSON.stringify(e,null,2)}`);return t}(r),l=function(e){if("<="in e)return"<=";if("=="in e)return"==";if(">="in e)return">=";throw Error(`Supported compare operator (">=", "<=", "==") not found in object ${JSON.stringify(e,null,2)}`)}(r),n=(()=>{switch(l){case">=":return"atLeast";case"<=":return"atMost";case"==":return"exactly"}})(),a=o.reduce[0].filter[1].and[1],{measurementValueCompareOperation:s,xMeasurementValue:c,yMeasurementValue:d}=(()=>
2{if(">="in a)return{measurementValueCompareOperation:"greaterThanOrEqualTo",xMeasurementValue:a[">="][1],yMeasurementValue:void 0};if("=="in a)return{measurementValueCompareOperation:"equalTo",xMeasurementValue:a["=="][1],yMeasurementValue:void 0};if("<="in a){let e=a["<="];return 3===e.length?{measurementValueCompareOperation:"between",xMeasurementValue:e[0],yMeasurementValue:e[2]}:{measurementValueCompareOperation:"lessThanOrEqualTo",xMeasurementValue:e[1],yMeasurementValue:void 0}}throw Error(`Supported compare operator not found in trigger: ${JSON.stringify(a,null,2)}`)})(),{timeWindowAmount:u,timeWindowUnit:h}=function(e){if(e%604800==0)return{timeWindowUnit:"weeks",timeWindowAmount:e/604800};if(e%86400==0)return{timeWindowUnit:"days",timeWindowAmount:e/86400};if(e%3600==0)return{timeWindowUnit:"hours",timeWindowAmount:e/3600};throw Error(`Time amount in seconds (${e}) cannot be converted to a whole number of hours, days or weeks.`)}(t.interval),g=null;for(let t of e??[]){let[e,r]=o.reduce[0].filter[1].and[0].some[1].and[0]["=="],[i,l]=o.reduce[0].filter[1].and[0].some[1].and[1]["=="];if(l===t.code&&r===t.system){g=t;break}}return{title:g?.display??"[Unknown flag code]",measurementValueCompareOperation:s,xMeasurementValue:c,yMeasurementValue:d,occurrenceUnit:n,occurrenceAmount:i,timeWindowAmount:u,timeWindowUnit:h}}))),oO=e=>"string"==typeof e&&0!==e.trim().length&&!1===Number.isNaN(Number(e));rG(e=>oO(e));let oz=({min:e,max:t,decimalPrecision:r,unit:o},i)=>r9(r4(),rG(e=>oO(e),i("ce.patient.validation.threshold.formatting")),(({value:e,unit:t},r)=>rG(t=>!!oO(t)&&Number(t)<=e,r("ce.patient.validation.threshold.lte",{value:e.toString(),unit:t})))({value:t,unit:o},i),(({value:e,unit:t},r)=>rG(t=>!!oO(t)&&Number(t)>=e,r("ce.patient.validation.threshold.gte",{value:e.toString(),unit:t})))({value:e,unit:o},i),(({max:e},t)=>rG(t=>!!oO(t)&&(t.split(".").at(1)?.length??0)<=e,t("ce.patient.validation.threshold.decimals",{value:e.toString()})))({max:r},i));rG(()=>!0),r9(r4(),rL(),rH("")),r5([rH("deltaCompareHigh"),rH("deltaCompareLow")]);let oL=rJ({type:rQ(r$(or)),value:rQ(r4())}),oF=rJ({code:rQ(r$(or)),input:rQ(r$(oL)),step:rQ(r9(rK(),rN(1)))}),oU=r5([rH("deltaCompareHigh"),rH("deltaCompareLow"),rH("inactivity"),rH("note"),rH("overdue"),rH("script"),r9(r4(),rB("code"))]),oR=e=>null!=e,oV=(e,t,r)=>{let{issues:o,output:i,success:l}=oe(e,t,r);if(o){if(r?.summaryMessagePrefix)throw Error(`${r.summaryMessagePrefix} 3${ot(o)}`);if(r?.summaryMessage)throw Error(r.summaryMessage(ot(o)));throw Error(ot(o))}if(!l)throw Error(ot(o));return i},o$=rG(e=>"string"==typeof e&&2===e.split("$").length);class oZ{keyA;keyB;constructor(e,t){this.keyA=e,this.keyB=t}get system(){return this.keyA}get code(){return this.keyB}static fromCode(e){return new oZ(e.system,e.code)}static fromString(e){let[t,r]=e.split("$");return new oZ(t,r)}static parseString(e){return oV(r9(oZ.stringSchema,rz(oZ.fromString)),e)}toString(){return`${this.keyA}$${this.keyB}`}eq(e){return this.keyA===e.keyA&&this.keyB===e.keyB}toJSON(){return{system:this.keyA,code:this.keyB}}static stringSchema=o$}rG(e=>"string"==typeof e);class oG{keyA;keyB;constructor(e,t){this.keyA=e,this.keyB=t}get priority(){return this.keyA}get code(){return this.keyB}static fromString(e){let[t,r]=oV(oG.stringSchema,e).split("$");return new oG(t,r)}static fromPriorityAndCode({priority:e,code:t}){return new oG(e,t)}toString(e){return`${this.keyA}${e??"$"}${this.keyB}`}eq(e){return this.keyA===e.keyA&&this.keyB===e.keyB}static stringSchema=rG(e=>{if("string"!=typeof e)return!1;let t=e.split("$");if(2!==t.length)return!1;let[r,o]=t;return oe(oo,r).success&&oe(oU,o).success})}eB(87);let oH=e=>Array.from(e.values()).flatMap(e=>Array.from(e.values())),oY=r9(r5([rH("deltaCompareHigh"),rH("deltaCompareLow"),rH("script"),rH("note"),rH("overdue")]));function oK(e){let{decimalPrecision:t}=e;if(void 0!==t)return t>0?["0.","".padEnd(t-1,"0"),"1"].join(""):"1"}r9(oY,rB("code")),Object.freeze(new Map),eB(998);let oJ=e=>{let{threshold:t,unit:r,translate:o}=e;return o("ce.threshold.description.from-to",{from:String(t.range.from??"null"),to:String(t.range.to??"null"),unit:r??""})},oQ=e=>{let{threshold:t,unit:r,translate:o}=e;return"INCREASE"===t.type?o("ce.threshold-list-view.trigger.threshold.increase.label",{value:String(t.delta.increase),unit:r??""}):o("ce.threshold-list-view.trigger.threshold.decrease.label",{value:String(t.delta.decrease),unit:r??""})},oX=e=>{let{threshold:t,unit:r,translate:o}=e;return"rangeCompare"===t.logic?oJ({threshold:t,unit:r,translate:o}):oQ({threshold:t,unit:r,translate:o})},o0=(0,eW.createContext)({pending:!1}),o1=o0.Provider,o2=({children:e})=>{let{pending:t}=(0,eW.useContext)(o0);return(0,eM.jsx)(c.a,{children:t?(0,eM.jsx)(C.E,{variant:"rounded",width:24,height:24}):e})},o4=({children:e,...t})=>{let{pending:r}=(0,eW.useContext)(o0);return(0,eM.jsx)(c.a,{as:"h5",...t,children:(0,eM.jsx)(n.EY,{inline:!0,variant:"base",color:"on-surface",children:r?(0,eM.jsx)(C.E,{width:60}):e})})},o8=({icon:e,title:t,children:r,...o}
3)=>(0,eM.jsxs)(d.B,{_gap:"base",...o,children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"center",children:[(0,eM.jsx)(o2,{children:e}),"string"==typeof t?(0,eM.jsx)(o4,{children:t}):t]}),r&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"stretch",children:[(0,eM.jsx)(d.B,{width:"l",children:(0,eM.jsx)(c.a,{width:"l"})}),(0,eM.jsx)(d.B,{_gap:"base",children:r})]})]}),o5=({children:e})=>{let{pending:t}=(0,eW.useContext)(o0),{$dialog:r}=j.yZ.useModalDialog();return(0,eM.jsx)(eM.Fragment,{children:(0,eM.jsxs)(A.j.Root,{children:[(0,eM.jsx)(A.j.Trigger,{children:(0,eM.jsx)(n.EY,{clampLines:!0,variant:"base",children:t?(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(C.E,{width:80}),(0,eM.jsx)(C.E,{width:60})]}):(0,eM.jsx)("div",{children:(0,eM.jsx)(c.a,{width:"full",children:e})})})}),(0,eM.jsx)(A.j.Content,{container:r,asChild:!0,children:(0,eM.jsx)(A.j.Card,{role:"complementary",children:(0,eM.jsx)(n.EY,{variant:"base",children:e})})})]})})},o7=({href:e,text:t})=>{let{pending:r}=(0,eW.useContext)(o0);return(0,eM.jsx)(n.EY,{inline:!0,variant:"base",children:(0,eM.jsx)(a.N,{href:e,children:r?(0,eM.jsx)(C.E,{width:80}):t})})},o3=({children:e,...t})=>{let{pending:r}=(0,eW.useContext)(o0);return(0,eM.jsx)(n.EY,{inline:!0,variant:"sm",color:"on-surface-variant",...t,children:r?(0,eM.jsx)(C.E,{width:80}):e})},o6=({pending:e=!1,icon:t,title:r,titleShort:o,subtitle:i,description:l,link:n,...a})=>(0,eM.jsx)(o1,{value:{pending:e},children:(0,eM.jsx)(o8,{icon:t?(0,eM.jsx)(I.I,{name:t}):null,title:(0,eM.jsxs)(d.B,{children:[(0,eM.jsx)(o4,{children:r}),(0,eM.jsx)(o3,{children:i})]}),...a,children:!e&&(l||n)&&(0,eM.jsxs)(eW.Fragment,{children:[l&&(0,eM.jsx)(o5,{children:l}),n&&(0,eM.jsx)(o7,{...n})]})})}),o9=({icon:e,title:t,pending:r=!1})=>{let o=j.yZ.useModalDialog();return(0,eM.jsx)(o1,{value:{pending:r},children:(0,eM.jsxs)(S.m.Root,{children:[(0,eM.jsx)(S.m.Trigger,{title:t,children:(0,eM.jsx)(s.Z,{border:!0,padding:!1,borderRadius:"s",children:(0,eM.jsx)(c.a,{_px:"m",_py:"m",children:(0,eM.jsx)(o2,{children:e})})})}),(0,eM.jsx)(S.m.Content,{container:o.$dialog,children:(0,eM.jsx)(S.m.Text,{children:t})})]})})},ie=({icon:e,title:t,children:r,actions:o,...i})=>(0,eM.jsx)(s.Z,{padding:!1,borderRadius:"xs",backgroundColor:"background",_p:"base",width:"full",...i,children:(0,eM.jsxs)(d.B,{axis:"y",_gap:"base",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"stretch",width:"full",children:[(0,eM.jsx)(o2,{children:e}),"string"==typeof t?(0,eM.jsx)(o4,{children:t}):t,o&&(0,eM.jsx)(c.a,{style:{marginLeft:"auto"},children:o})]}),r&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"stretch",width:"full",children:[(0,eM.jsx)(d.B,{width:"l",children:(0,eM.jsx)(c.a,{width:"l"})}),(0,eM.jsx)(d.B,{_gap:"base",children:r})]})]})}),it=(0,eW.createContext)(null),ir=()=>{let e=(0,eW.useContext)(it);if(!e)throw Error("Failed to obtain followUps context, ensure all calls to useFollowUpTasksInformation are placed within a @follow-ups provider.");return e},io=({children:e,provideFollowUpTaskInformation:t})=>(0,eM.jsx)(it.Provider,{value:{provideFollowUpTaskInformation:t},children:e});io.displayName="FollowUpsProvider",it.Provider;let ii=(0,eW.createContext)({oneOrMoreFollowUpTasksFailedToBePresented:!1,onFollowUpTaskItemFailedToBePresented:(...e)=>{}}),il=()=>(0,eW.useContext)(ii).onFollowUpTaskItemFailedToBePresented,ia=e=>{let{provideFollowUpTaskInformation:t}=ir();return(0,eC.U)({queryKey:[e],queryFn:async()=>{let r=await t(e);return oV(r$(ok),r)},retry:!1})},is=e=>{let{task:t,variant:r="default",...o}=e,i=il(),l=tV();return(0,eM.jsx)(t8,{fallback:(0,eM.jsx)(d.B,{_gap:"l",...o,children:(0,eM.jsx)(x.A,{color:"red",text:l("ce.threshold-details-flow.automated-actions.error.title")})}),onCatchError:i,children:(0,eM.jsx)(eW.Suspense,{fallback:(0,eM.jsx)(o6,{pending:!0}),children:"cards"===r?(0,eM.jsx)(id,{task:t,...o}):(0,eM.jsx)(ic,{item:t,...o})})})},ic=({item:e,...t})=>{let{data:r}=ia(e);return(0,eM.jsx)(d.B,{as:"ul",_gap:"l",...t,children:r.map(e=>(0,eM.jsx)("li",{children:(0,eM.jsx)(o6,{...e})},JSON.stringify(e)))})},id=({task:e,actions:t})=>{let{data:r}=ia(e);return(0,eM.jsx)(d.B,{axis:"y",_gap:"base",justify:"stretch",children:r.map(e=>(0,eM.jsx)(o1,{value:{pending:!1},children:(0,eM.jsx)(ie,{icon:e.icon?(0,eM.jsx)(I.I,{name:e.icon}):null,title:e.title,actions:t,children:(e.description||e.link)&&(0,eM.jsxs)(eW.Fragment,{children:[e.description&&(0,eM.jsx)(o5,{children:e.description}),e.link&&(0,eM.jsx)(o7,{...e.link})]})})},JSON.stringify(e)))})},iu=({title:e,layout:t="icon-card"})=>"detailed"===t?(0,eM.jsx)("li",{children:(0,eM.jsx)(o8,{icon:(0,eM.jsx)(I.I,{name:"ExclamationMarkIcon",color:"red"}),title:e})}):"compact"===t?(0,eM.jsx)(I.I,{name:"ExclamationMarkIcon",color:"red","aria-label":e}):(0,eM.jsx)(o1,{value:{pending:!1},children:(0,eM.jsxs)(S.m.Root,{children:[(0,eM.jsx)(S.m.Trigger,{title:e,children:(0,eM.jsx)(s.Z,{border:!0,padding:!1,borderRadius:"s",children:(0,eM.jsx)(c.a,{_px:"m",_py:"m",children:(0,eM.jsx)(o2,{children:(0,eM.jsx)(I.I,{name:"ExclamationMarkIcon",color:"red"})})})})}),(0,eM.jsx)(S.m.Content,{popover:"auto",children:(0,eM.jsx)(S.m.Text,{children:e})})]})}),ih=({task:e,layout:t="icon-card",...r})=>{let o=il(),i=tV();return(0,eM.jsx)(t8,{fallback:(0,eM.jsx)(d.B,{as:"ul",axis:"x",_gap:"base",...r,children:(0,eM.jsx)(iu,{title:i("ce.threshold-list-view.automated-actions.error.title"),layout:t})}),onCatchError:o,children:(0,eM.jsx)(eW.Suspense,{fallback:"icon-card"===t?(0,eM.jsx)(o9,{pending:!0}):null,children:(0,eM.jsx)(ig,{task:e,layout:t,...r})})})},ig=({task:e,layout:t,...r})=>{let{provideFollowUpTaskInformation:o}=ir(),{data:i,isLoading:l}=(0,eC.U)({queryKey:[e],queryFn:async()=>{let t=await o(e);return oV(r$(ok),t)},retry:!1});return"detailed"===t?(0,eM.jsx)(d.B,{as:"ul",axis:"y",_gap:"base",...r,children:i.map((e,t)=>(0,eM.jsx)("li",{children:(0,eM.jsx)(o8,{icon:(0,eM.jsx)(I.I,{name:e.icon,color:"primary"}),title:e.title,children:e.description&&(0,eM.jsx)(n.EY,{variant:"body-base-light",color:"neutral",children:e.description})})},`${t}-${JSON.stringify(e)}`))}):"compact"===t?(0,eM.jsx)(d.B,{as:"ul",axis:"x",_gap:"l",...r,children:i.map((e,t)=>(0,eM.jsx)(I.I,{name:e.icon,color:"primary"},`${t}-${JSON.stringify(e)}`))}):(0,eM.jsx)(d.B,{as:"ul",axis:"x",_gap:"base",...r,children:i.map((e,t)=>(0,eM.jsx)(o9,{icon:(0,eM.jsx)(I.I,{name:e.icon}),title:e.titleShort,pending:l},`${t}-${JSON.stringify(e)}`))})},im=()=>(0,eW.useContext)(ii).oneOrMoreFollowUpTasksFailedToBePresented,ip=({children:e})=>{let[t,r]=(0,eW.useState)(!1),o=(0,eW.useCallback)(()=>{r(!0)},[r]);
3return(0,eM.jsx)(ii.Provider,{value:{onFollowUpTaskItemFailedToBePresented:o,oneOrMoreFollowUpTasksFailedToBePresented:t},children:e})},iw=()=>{let e=tV();return(0,eM.jsx)(x.A,{color:"red",icon:k.A,children:(0,eM.jsxs)(n.EY,{color:"current",as:"span",children:[e("ce.patient.thresholds.automated-actions.banner.error.title")," ",(0,eM.jsx)(a.N,{onClick:()=>globalThis.location.reload(),children:e("ce.patient.thresholds.automated-actions.banner.error.action")})]})})},iv=({status:e,color:t})=>{let r=tV();switch(e){case"escalated":return(0,eM.jsx)(_.A,{color:t,"aria-label":r("ce.workflow-form.automated-actions.group.alert-status.option.escalated.label")});case"processed":return(0,eM.jsx)(T.A,{color:t,"aria-label":r("ce.workflow-form.automated-actions.group.alert-status.option.processed.label")});case"processed-unless-comment":return(0,eM.jsx)(T.A,{color:t,"aria-label":r("ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label")})}},ib=e=>{let{status:t,layout:r="icon-card"}=e,o=((e,t)=>{switch(t){case"escalated":return e("ce.threshold-list-view.automated-actions.alert-status.forward.label");case"processed":case"processed-unless-comment":return e("ce.threshold-list-view.automated-actions.alert-status.auto-process.label")}})(tV(),t);return"detailed"===r?(0,eM.jsx)("li",{children:(0,eM.jsx)(o8,{icon:(0,eM.jsx)(iv,{status:t,color:"primary"}),title:o})}):"compact"===r?(0,eM.jsx)(iv,{status:t,color:"primary"}):(0,eM.jsx)(o9,{title:o,icon:(0,eM.jsx)(iv,{status:t}),pending:!1})},iy=({status:e})=>{let t=tV(),r=((e,t)=>{switch(t){case"escalated":case"processed":return null;case"processed-unless-comment":return e("ce.threshold-detail-flow.automated-actions.alert-status.auto-process.unless-comment.subtext")}})(t,e);return(0,eM.jsx)(o8,{icon:(0,eM.jsx)(iv,{status:e}),title:(0,eM.jsxs)(d.B,{children:[(0,eM.jsx)(o4,{children:((e,t)=>{switch(t){case"escalated":return e("ce.threshold-detail-flow.automated-actions.alert-status.forward.description");case"processed":case"processed-unless-comment":return e("ce.threshold-detail-flow.automated-actions.alert-status.auto-process.description")}})(t,e)}),r&&(0,eM.jsx)(o3,{children:r})]})})},ix=({maxTriggers:e})=>{let t=tV();return(0,eM.jsx)(o8,{icon:(0,eM.jsx)(q.A,{}),title:e?t("ce.threshold-detail-flow.automated-actions.trigger-limit.limit-per-day.description",{value:e.toString()}):t("ce.threshold-detail-flow.automated-actions.trigger-limit.unlimited.description")})},ik=e=>{let{tasks:t,status:r,layout:o="icon-card",slots:i,...l}=e,n="detailed"===o;return(0,eM.jsxs)(d.B,{as:"ul",axis:n?"y":"x",_gap:n?"l":"base",wrap:!n,...l,children:[i?.leadingSlot,t.map(e=>(0,eM.jsx)(ih,{layout:o,task:e,as:"li"},e.code?.map(e=>e.code).join())),r&&"keep-open"!==r&&(0,eM.jsx)(ib,{layout:o,status:r}),i?.trailingSlot]})},ij=(0,eW.createContext)(null);function iC(e){let{children:t,onExpansionChange:r}=e,o=(0,eW.useRef)(new Map),i=(0,eW.useCallback)((e,t)=>{o.current.set(e,t)},[]),l=(0,eW.useCallback)(e=>{o.current.delete(e)},[]),n=(0,eW.useCallback)(()=>{o.current.forEach(e=>e.expandAll()),r?.("expanded")},[r]),a=(0,eW.useCallback)(()=>{o.current.forEach(e=>e.collapseAll()),r?.("collapsed")},[r]);return(0,eM.jsx)(ij.Provider,{value:{register:i,unregister:l,expandAll:n,collapseAll:a},children:t})}function iA(){return(0,eW.useContext)(ij)}function iI(e,t){window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:t}))}let iS=(e,t)=>{window.sessionStorage.setItem(e,t),iI(e,t)},i_=e=>(window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)),iT=()=>{throw Error("useSessionStorage is a client-only hook")};function iq(e,t,r){let o=eW.default.useSyncExternalStore(i_,()=>window.sessionStorage.getItem(e),iT),i=eW.default.useCallback(t=>{try{let i="string"==typeof o?o:"null",l=oV(r,JSON.parse(i)),n="function"==typeof t?t(l):t;null==n?(window.sessionStorage.removeItem(e),iI(e,null)):iS(e,JSON.stringify(n))}catch(e){console.warn(e)}},[e,o]);return eW.default.useEffect(()=>{null===window.sessionStorage.getItem(e)&&void 0!==t&&iS(e,JSON.stringify(t))},[e,t]),[o?oV(r,JSON.parse(o)):t,i]}let iE=rX(["compact","detailed"]),iP=rX(["collapsed","expanded"]),iD=()=>{let[e,t]=iq("ce:triggerViewDetailLevel","compact",iE),r=(0,eW.useCallback)(()=>{t(e=>"compact"===e?"detailed":"compact")},[t]),[o,i]=iq("ce:triggerRowExpansionLevel","collapsed",iP),l=(0,eW.useCallback)(()=>{i(e=>"collapsed"===e?"expanded":"collapsed")},[i]);return{triggerViewDetailLevel:e,setTriggerViewDetailLevel:t,toggleTriggerViewDetailLevel:r,triggerRowExpansionLevel:o,setTriggerRowExpansionLevel:i,toggleTriggerRowExpansionLevel:l}},iB=(0,eW.createContext)(null),iM=(0,eW.forwardRef)(function(e,t){return(0,eM.jsx)(E.r.Td,{...e,ref:t,valign:"top"})}),iW=Object.assign((0,eW.forwardRef)(function(e,t){let{children:r,isExpanded:o,registryKey:i}=e,[l,n]=(0,eW.useState)({}),a=iA(),s=(0,eW.useCallback)(e=>{n(t=>e in t?t:{...t,[e]:o??!1})},[o]),c=(0,eW.useCallback)((e,t)=>{n(r=>({...r,[e]:t}))},[]),d={expandAll:()=>{n(e=>{let t={};for(let r of Object.keys(e))t[r]=!0;return t})},collapseAll:()=>{n(e=>{let t={};for(let r of Object.keys(e))t[r]=!1;return t})}};(0,eW.useImperativeHandle)(t,()=>d);let u=(0,eW.useRef)(d);return u.current=d,eW.default.useEffect(()=>{if(a&&i)return a.register(i,u.current),()=>a.unregister(i)},[i,a]),(0,eM.jsxs)(iB.Provider,{value:{openState:l,onToggle:c,register:s},children:[(0,eM.jsx)(iO,{...e,children:eW.default.Children.map(r,e=>eW.default.isValidElement(e)?e.type===iN?null:e:null)}),eW.default.Children.map(r,e=>{if(!eW.default.isValidElement(e))return null;if(e.type===iN){let t=e.props;return(0,eM.jsx)(iz,{title:t.title,slots:t.slots,children:eW.default.Children.map(t.children,e=>eW.default.isValidElement(e)?e.type===iN?null:e:null)})}return null})]})}),{Child:iN,Tr:function(e){let{children:t,style:r}=e;return(0,eM.jsx)(E.r.Tr,{style:r,children:t})},Td:iM});function iN(e){let{children:t,title:r,slots:o}=e;return(0,eM.jsx)(iz,{title:r,slots:o,children:t})}function iO(e){return(0,eM.jsx)(iL,{...e,type:"parent"})}function iz(e){let{children:t,title:r,slots:o}=e;return(0,eM.jsx)(iL,{title:r,slots:o,type:"child",children:t})}function iL(e){let{children:t,title:r,slots:o,type:i}=e,l=(0,eW.useId)(),a=(0,eW.useContext)(iB);eW.default.useEffect(()=>{a?.register(l)},[a,l]);let s=a?.openState[l];return(0,eM.jsxs)(eM.Fragment,{children:["child"===i&&(0,eM.jsx)(b.c,{}),(0,eM.jsxs)(P.Up,{omitBorder:!0,open:s,onToggleDetails:e=>a?.onToggle(l,e),children:[(0,eM.jsx)(P.Up.Summary,{_py:"l",hoverBackgroun
3dColor:"blue",omitOpenIndicator:!0,children:(0,eM.jsxs)(d.B,{axis:"y",_gap:"s",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"center",_pr:"m",width:"full",children:[(0,eM.jsx)(P.Up.Summary.DefaultOpenIndicator,{}),(0,eM.jsx)(d.B,{axis:"y",_gap:"base",width:"full",children:(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",_pr:"m",width:"full",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"s",align:"center",children:["parent"===i?(0,eM.jsx)(D.D,{variant:"h3",as:"h4",children:r}):(0,eM.jsx)(n.EY,{variant:"body-base-bold",children:r}),o?.titleAccessories]}),o?.titleAside&&(0,eM.jsx)(c.a,{children:o?.titleAside})]})})]}),o?.titleBelow&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"center",_pr:"m",width:"full",children:[(0,eM.jsx)(c.a,{style:{opacity:0},"aria-hidden":"true",children:(0,eM.jsx)(P.Up.Summary.DefaultOpenIndicator,{})}),(0,eM.jsx)(c.a,{children:o?.titleBelow})]})]})}),(0,eM.jsx)(E.r,{variant:"full-width",children:(0,eM.jsx)(E.r.Tbody,{children:t})})]})]})}let iF="object"==typeof eB.g&&eB.g&&eB.g.Object===Object&&eB.g;var iU="object"==typeof self&&self&&self.Object===Object&&self;let iR=iF||iU||Function("return this")(),iV=iR.Symbol,i$=Array.isArray;var iZ=Object.prototype,iG=iZ.hasOwnProperty,iH=iZ.toString,iY=iV?iV.toStringTag:void 0,iK=Object.prototype.toString,iJ=iV?iV.toStringTag:void 0;let iQ=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":iJ&&iJ in Object(e)?function(e){var t=iG.call(e,iY),r=e[iY];try{e[iY]=void 0;var o=!0}catch(e){}var i=iH.call(e);return o&&(t?e[iY]=r:delete e[iY]),i}(e):iK.call(e)},iX=function(e){return null!=e&&"object"==typeof e},i0=function(e){return"symbol"==typeof e||iX(e)&&"[object Symbol]"==iQ(e)};var i1=iV?iV.prototype:void 0,i2=i1?i1.toString:void 0;let i4=function e(t){if("string"==typeof t)return t;if(i$(t))return function(e,t){for(var r=-1,o=null==e?0:e.length,i=Array(o);++r<o;)i[r]=t(e[r],r,e);return i}(t,e)+"";if(i0(t))return i2?i2.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r},i8=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:function(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var l=Array(i);++o<i;)l[o]=e[o+t];return l}(e,t,r)};var i5=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");let i7=function(e){return i5.test(e)},i3=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i6=function(e){return function(t){return e(t)}};var i9="object"==typeof exports&&exports&&!exports.nodeType&&exports,le=i9&&"object"==typeof module&&module&&!module.nodeType&&module,lt=le&&le.exports===i9&&iF.process;let lr=function(){try{return le&&le.require&&le.require("util").types||lt&<.binding&<.binding("util")}catch(e){}}();var lo=lr&&lr.isRegExp;let li=lo?i6(lo):function(e){return iX(e)&&"[object RegExp]"==iQ(e)},ll=function(e){return function(t){return null==t?void 0:t[e]}},ln=ll("length");var la="\\ud800-\\udfff",ls="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",lc="\\ud83c[\\udffb-\\udfff]",ld="[^"+la+"]",lu="(?:\\ud83c[\\udde6-\\uddff]){2}",lh="[\\ud800-\\udbff][\\udc00-\\udfff]",lg="(?:"+ls+"|"+lc+")?",lm="[\\ufe0e\\ufe0f]?",lp=lm+lg+"(?:\\u200d(?:"+[ld,lu,lh].join("|")+")"+lm+lg+")*",lf=RegExp(lc+"(?="+lc+")|"+("(?:"+[ld+ls+"?",ls,lu,lh,"["+la+"]"].join("|"))+")"+lp,"g"),lw="\\ud800-\\udfff",lv="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",lb="\\ud83c[\\udffb-\\udfff]",ly="[^"+lw+"]",lx="(?:\\ud83c[\\udde6-\\uddff]){2}",lk="[\\ud800-\\udbff][\\udc00-\\udfff]",lj="(?:"+lv+"|"+lb+")?",lC="[\\ufe0e\\ufe0f]?",lA=lC+l
3j+"(?:\\u200d(?:"+[ly,lx,lk].join("|")+")"+lC+lj+")*",lI=RegExp(lb+"(?="+lb+")|"+("(?:"+[ly+lv+"?",lv,lx,lk,"["+lw+"]"].join("|"))+")"+lA,"g"),lS=/\s/,l_=/^\s+/,lT=/^[-+]0x[0-9a-f]+$/i,lq=/^0b[01]+$/i,lE=/^0o[0-7]+$/i,lP=parseInt;let lD=function(e){var t,r=(t=e)?1/0===(t=function(e){if("number"==typeof e)return e;if(i0(e))return 0/0;if(i3(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=i3(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=(t=e)?t.slice(0,function(e){for(var t=e.length;t--&&lS.test(e.charAt(t)););return t}(t)+1).replace(l_,""):t;var o=lq.test(e);return o||lE.test(e)?lP(e.slice(2),o?2:8):lT.test(e)?0/0:+e}(t))||-1/0===t?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0,o=r%1;return r==r?o?r-o:r:0},lB=function(e){return null==e?"":i4(e)};var lM=/\w*$/;let lW=function(e,t){var r=30,o="...";if(i3(t)){var i="separator"in t?t.separator:i;r="length"in t?lD(t.length):r,o="omission"in t?i4(t.omission):o}var l=(e=lB(e)).length;if(i7(e)){var n,a=i7(n=e)?n.match(lI)||[]:n.split("");l=a.length}if(r>=l)return e;var s=r-(i7(d=o)?function(e){for(var t=lf.lastIndex=0;lf.test(e);)++t;return t}(d):ln(d));if(s<1)return o;var c=a?i8(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+o;if(a&&(s+=c.length-s),li(i)){if(e.slice(s).search(i)){var d,u,h=c;for(i.global||(i=RegExp(i.source,lB(lM.exec(i))+"g")),i.lastIndex=0;u=i.exec(h);)var g=u.index;c=c.slice(0,void 0===g?s:g)}}else if(e.indexOf(i4(i),s)!=s){var m=c.lastIndexOf(i);m>-1&&(c=c.slice(0,m))}return c+o};function lN(e){let{translate:t,priority:r}=e;switch(r){case"PH":return t("ce.global.alert.high.description");case"PM":return t("ce.global.alert.medium.description");case"PL":return t("ce.global.alert.low.description");case"PN":return""}}function lO(e){let{isAutoProcessed:t,alertIcon:r,workflowName:o,followUpTasks:i,followUpStatus:l,priority:n,layout:a}=e,s=tV(),u="tooltip"===a,h=s("ce.workflow-form.automated-actions.group.alert-status.option.escalated.label"),g="escalated"===l?(0,eM.jsx)("li",{children:(0,eM.jsx)(lF,{icon:(0,eM.jsx)(_.A,{color:"primary","aria-label":h}),title:h})}):null;return t?(0,eM.jsxs)(d.B,{axis:"y",_gap:"s",children:[o&&(0,eM.jsx)(D.D,{as:"h4",variant:"h4",children:o}),(0,eM.jsx)(lU,{tasks:i,slots:{leadingSlot:(0,eM.jsx)(eM.Fragment,{children:r?(0,eM.jsx)("li",{children:(0,eM.jsx)(lF,{icon:r,title:lN({translate:s,priority:n})})}):null}),trailingSlot:g}})]}):(0,eM.jsxs)(d.B,{axis:"y",_gap:"base",children:[o&&(0,eM.jsx)(D.D,{as:"h4",variant:"h4",children:o}),(0,eM.jsxs)(d.B,{axis:"y",_gap:"base",children:[u&&(0,eM.jsx)(D.D,{as:"h4",variant:"h4",children:s("ce.threshold-list-view.automated-actions.alert.label")}),r&&(0,eM.jsx)(lF,{icon:r,title:lN({translate:s,priority:n})})]}),u&&i.length>0&&(0,eM.jsx)(c.a,{_py:"base",width:"full",children:(0,eM.jsx)(b.c,{version:"v2",width:"full"})}),(0,eM.jsx)(lU,{tasks:i,slots:{leadingSlot:(0,eM.jsx)(eM.Fragment,{children:o?(0,eM.jsx)("li",{children:(0,eM.jsx)(D.D,{as:"h4",variant:"h4",children:o})}):null}),trailingSlot:g}})]})}function lz(e){return(0,eM.jsx)(lO,{...e,layout:"detailed"})}function lL(e){return(0,eM.jsx)(s.Z,{elevation:"medium",border:!0,style:{minWidth:300},children:(0,eM.jsx)(lO,{...e,layout:"tooltip"})})}function lF(e){let t={variant:"body-base-light",color:"neutral"};return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"start",children:[(0,eM.jsx)(d.B,{style:{flexShrink:0},children:e.icon}),(0,eM.jsxs)(d.B,{axis:"y",_gap:"xs",children:[(0,eM.jsxs)(n.EY,{as:"p",...t,children:[e.title,e.titleSuffix&&(0,eM.jsxs)(n.EY,{as:"span",...t,children:[" ",e.titleSuffix]})]}),e.description&&(0,eM.jsx)(n.EY,{as:"p",...t,children:lW(e.description,{length:100,omission:"â¦"})})]})]})}function lU(e){return 0===e.tasks.length?null:(0,eM.jsx)(ik,{tasks:e.tasks,status:"keep-open",layout:"detailed",slots:e.slots})}let lR=(0,eW.createContext)(null);function lV(){let e=(0,eW.useContext)(lR);if(!e)throw Error("TriggerDetailTable compound components must be rendered inside <TriggerDetailTable>");return e}function l$(e){let{children:t,layout:r,triggerItem:o,icon:i,isAutoProcessed:l,hasFollowUpTasks:n,hasFollowUpStatus:a,workflowName:s,belowDescription:c}=e,d=tV();o.description||(o.description=((e,t)=>{switch(`${t.priority}-${t.code}`){case"PH-deltaCompareHigh":return[e("ce.global.threshold-description.delta-compare-ph-high"),e("ce.threshold.subtitle.value-empty")].join(" | ");case"PH-deltaCompareLow":return[e("ce.global.threshold-description.delta-compare-ph-low"),e("ce.threshold.subtitle.value-empty")].join(" | ");default:return[t.code,e("ce.threshold.subtitle.value-empty")].join(" | ")}})(d,oG.fromPriorityAndCode({priority:o.priority,code:o.code})));let u={triggerItem:o,icon:i,isAutoProcessed:l,hasFollowUpTasks:n,hasFollowUpStatus:a,workflowName:s,belowDescription:c,layout:r};return t?(0,eM.jsx)(lR.Provider,{value:u,children:t}):(0,eM.jsx)(lR.Provider,{value:u,children:(0,eM.jsxs)(iW.Tr,{children:[(0,eM.jsx)(lH,{}),(0,eM.jsx)(iW.Td,{children:(0,eM.jsx)(lZ,{})})]},`${o.description}-${o.priority}`)})}function lZ(){let{layout:e,triggerItem:t,isAutoProcessed:r,workflowName:o}=lV(),i=(0,eM.jsx)(lY,{priority:t.priority,isAutoProcessed:r});return"detailed"===e?(0,eM.jsx)(c.a,{style:{maxWidth:365},children:(0,eM.jsx)(lz,{isAutoProcessed:r,alertIcon:i,workflowName:o,followUpTasks:t.followUpTasks,followUpStatus:t.followUpStatus,priority:t.priority})}):(0,eM.jsxs)(S.m.Root,{delayDuration:300,children:[(0,eM.jsx)(S.m.Trigger,{children:(0,eM.jsx)(d.B,{axis:"x",_p:"s",_gap:"l",align:"center",hoverBackgroun
3dColor:"blue",borderRadius:"s",children:(0,eM.jsx)(lG,{})})}),(0,eM.jsx)(S.m.Content,{backgroundColor:"transparent",side:"right",align:"start",children:(0,eM.jsx)(lL,{isAutoProcessed:r,alertIcon:i,workflowName:o,followUpTasks:t.followUpTasks,followUpStatus:t.followUpStatus,priority:t.priority})})]})}function lG(){let{triggerItem:e,isAutoProcessed:t,hasFollowUpTasks:r,hasFollowUpStatus:o}=lV(),i=(0,eM.jsx)(lY,{priority:e.priority,isAutoProcessed:t});return(0,eM.jsxs)(eM.Fragment,{children:[i,(r||!t&&o)&&(0,eM.jsx)(ik,{_gap:"l",layout:"compact",tasks:e.followUpTasks,status:t?"keep-open":e.followUpStatus})]})}function lH(){let{triggerItem:e,icon:t,belowDescription:r}=lV();return(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(iW.Td,{width:"1",children:(0,eM.jsx)(d.B,{width:"full",align:"center",_py:"s",style:{flexShrink:0},children:t})}),(0,eM.jsx)(iW.Td,{width:"40%",children:(0,eM.jsxs)(d.B,{axis:"y",_gap:"l",children:[(0,eM.jsx)(B.v,{_type:e.errorMessage?"danger":"neutral",_variant:"bordered",children:(0,eM.jsx)(n.EY,{variant:"body-base-regular",color:"current",children:e.description})}),e.errorMessage?(0,eM.jsx)(n.EY,{variant:"body-base-regular",color:"error",children:e.errorMessage}):null,r&&(0,eM.jsx)(c.a,{children:r})]})})]})}function lY(e){let t=tV();if(e.isAutoProcessed)return(0,eM.jsx)(M.A,{color:"primary","aria-label":t("ce.workflow-form.automated-actions.group.alert-status.option.processed.label")});switch(e.priority){case"PH":return(0,eM.jsx)(W.A,{color:"on-negative"});case"PM":return(0,eM.jsx)(f.A,{color:"on-warning"});case"PL":return(0,eM.jsx)(m.A,{color:"on-positive"});case"PN":return null}}l$.Tr=iW.Tr,l$.Td=iW.Td,l$.Icon=function(){let{icon:e}=lV();return(0,eM.jsx)(eM.Fragment,{children:e})},l$.Title=function(){let{triggerItem:e}=lV();return e.title?(0,eM.jsx)(D.D,{variant:"h4",children:e.title}):null},l$.Description=function(){let{triggerItem:e}=lV();return(0,eM.jsx)(B.v,{_type:e.errorMessage?"danger":"neutral",_variant:"bordered",children:(0,eM.jsx)(n.EY,{variant:"body-base-regular",color:"current",children:e.description})})},l$.ErrorMessage=function(){let{triggerItem:e}=lV();return e.errorMessage?(0,eM.jsx)(n.EY,{variant:"body-base-regular",color:"error",children:e.errorMessage}):null},l$.BelowDescription=function(){let{belowDescription:e}=lV();return e?(0,eM.jsx)(c.a,{children:e}):null},l$.AlertIcon=function(){let{triggerItem:e,isAutoProcessed:t}=lV();return(0,eM.jsx)(lY,{priority:e.priority,isAutoProcessed:t})},l$.Outcomes=lZ,l$.FollowUpGroup=lG;let lK=({slots:e})=>(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(l$.Td,{width:"1",children:(0,eM.jsx)(d.B,{width:"full",align:"center",_py:"s",style:{flexShrink:0},children:e.icon})}),(0,eM.jsx)(l$.Td,{width:"40%",children:e.trigger}),(0,eM.jsx)(l$.Td,{children:e.outcomes}),e.action&&(0,eM.jsx)(l$.Td,{width:"1",align:"right",style:{flexShrink:0,whiteSpace:"nowrap"},children:e.action})]}),lJ=({threshold:e,unit:t})=>{let r=tV();return(0,eM.jsx)(B.v,{_type:"neutral",_variant:"bordered",children:(0,eM.jsx)(n.EY,{variant:"body-base-regular",color:"current",children:oX({threshold:e,unit:t,translate:r})})})},lQ=({code:e})=>{var t;let r=tV();return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"center",children:[(0,eM.jsx)(k.A,{color:"on-negative",size:"s",style:{width:"16px",height:"16px"}}),(0,eM.jsxs)(n.EY,{variant:"body-small-regular",color:"error",children:[r("ce.thresholds.validation-error.calculation-missing.title")," ",(0,eM.jsx)(a.N,{as:"button",onClick:(t={code:e},()=>{uF.show({code:t.code}).then(uF.hide)}),children:r("ce.thresholds.validation-error.calculation-missing.button")})]})]})},lX=({missingInputs:e})=>{var t;let r=tV();return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"center",children:[(0,eM.jsx)(k.A,{color:"on-negative",size:"s",style:{width:"16px",height:"16px"}}),(0,eM.jsxs)(n.EY,{variant:"body-small-regular",color:"error",children:[r("ce.thresholds.validation-error.instrument-missing.title")," ",(0,eM.jsx)(a.N,{as:"button",onClick:(t={missingInputs:e},()=>{uR.show({missingItems:t.missingInputs}).then(uR.hide)}),children:r("ce.thresholds.validation-error.instrument-missing.button")})]})]})},l0=()=>{let e=tV();return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(k.A,{color:"on-warning"}),(0,eM.jsx)(n.EY,{variant:"body-base-regular",color:"warning",children:e("ce.thresholds.validation-error.calculation-input-codings-unavailable.title")})]})},l1=({calculationActivationStatus:e,calculation:t,code:r})=>
3"inactive"===e||"incomplete"===t.state||"unable-to-provide-calculation-input-codings"===t.state?(0,eM.jsxs)(d.B,{_gap:"l",children:["inactive"===e&&(0,eM.jsx)(lQ,{code:r}),"incomplete"===t.state&&(0,eM.jsx)(lX,{missingInputs:t.missingInputs}),"unable-to-provide-calculation-input-codings"===t.state&&(0,eM.jsx)(l0,{})]}):null,l2=({thresholdGroup:e,triggerViewDetailLevel:t,presentAsChildOfParent:r,onOpenSingleThresholdDetail:o,onOpenThresholdItemGroup:i})=>{var l;let n=tV(),{canEdit:a}=td(),s=n(a?"ce.global.edit-triggers":"ce.global.view-triggers"),c=e.unit??"",u=(0,eW.useCallback)(()=>{i?.({thresholdGroup:e})},[i,e]),h=(0,eW.useCallback)(t=>{o?.({thresholdGroup:e,threshold:t})},[o,e]),g="inactive"===e.calculationActivationStatus||"incomplete"===e.calculation?.state||"unable-to-provide-calculation-input-codings"===e.calculation?.state;return(0,eM.jsx)("article",{"aria-label":e.title,children:(0,eM.jsx)(iW,{title:(0,eM.jsx)(D.D,{variant:r?"h4":"h3",children:e.title}),registryKey:e.externalSystemCodeIdentifier.toString(),slots:{titleAside:a&&(0,eM.jsx)(N.t,{trailingIcon:(0,eM.jsx)(y.A,{}),onClick:u,children:s}),titleAccessories:(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[!r&&(0,eM.jsx)(v.E,{onClick:(l={itemName:e.title,itemIdentifier:e.externalSystemCodeIdentifier},()=>{uz.show({itemName:l.itemName,itemIdentifier:l.itemIdentifier.toString()}).then(uz.hide)}),label:n("ce.generic.button.more-info-icon.label"),title:n("ce.generic.button.more-info-icon.label"),children:(0,eM.jsx)(O.A,{})}),!1]}),titleBelow:"calculation-result"===e.itemType&&g&&(0,eM.jsx)(l1,{calculationActivationStatus:e.calculationActivationStatus,calculation:e.calculation,code:e.externalSystemCodeIdentifier.code})},children:"empty"===e.state?(0,eM.jsx)(iW.Tr,{children:(0,eM.jsx)(iW.Td,{children:n("ce.threshold-list-view.trigger.empty")})}):(0,eM.jsx)(eM.Fragment,{children:[...e.thresholds.rangeCompare,...e.thresholds.deltaCompare].map(r=>(0,eM.jsx)(z.Z,{as:"tr",action:(0,eM.jsx)(L.J,{onClick:()=>h(r),children:n("ce.patient.thresholds.item.view-details.button")}),children:(0,eM.jsx)(lK,{slots:{icon:(0,eM.jsx)(rg,{threshold:r,instrumentMin:e.thresholdBounds.saved.rangeCompare.min,instrumentMax:e.thresholdBounds.saved.rangeCompare.max}),trigger:(0,eM.jsx)(lJ,{threshold:r,unit:c}),outcomes:r.followUp?(0,eM.jsx)(l8,{layout:t,priority:r.followUp.flagPriority??"PN",followUpStatus:r.followUp.status??"keep-open",followUpTasks:r.followUp.tasks??[],isAutoProcessed:"processed"===r.followUp.status||"processed-unless-comment"===r.followUp.status,workflowName:r.followUp.title??""}):null,action:a&&(0,eM.jsx)(z.Z.Action,{})}})},JSON.stringify(r.flagCodes)))})})})},l4=e=>{var t;let{systemCodeIdentifier:r,title:o,overdueTrigger:i,commentTrigger:l,children:n}=e,a=tV();return(0,eM.jsxs)("article",{"aria-label":o,children:[(0,eM.jsxs)(iW,{title:o,registryKey:r.toString(),slots:{titleAccessories:(0,eM.jsx)(d.B,{axis:"x",_gap:"l",align:"center",children:(0,eM.jsx)(v.E,{onClick:(t={itemName:o,itemIdentifier:r},()=>{uz.show({itemName:t.itemName,itemIdentifier:t.itemIdentifier.toString()}).then(uz.hide)}),label:a("ce.generic.button.more-info-icon.label"),title:a("ce.generic.button.more-info-icon.label"),children:(0,eM.jsx)(O.A,{})})})},children:[(0,eM.jsx)("div",{children:l}),(0,eM.jsx)("div",{children:i})]}),(0,eM.jsx)(b.c,{version:"v2"}),(0,eM.jsx)(d.B,{divider:(0,eM.jsx)(b.c,{version:"v2"}),width:"full",align:"stretch",children:eW.default.Children.map(n,e=>e?eW.default.cloneElement(e,{presentAsChildOfParent:!0}):null)})]})},l8=e=>{let{layout:t,priority:r,followUpTasks:o,followUpStatus:i,isAutoProcessed:l,workflowName:n}=e,a=(0,eM.jsx)(lY,{priority:r,isAutoProcessed:l});if("detailed"===t)return(0,eM.jsx)(c.a,{style:{maxWidth:365},children:(0,eM.jsx)(lz,{isAutoProcessed:l,alertIcon:a,workflowName:n,followUpTasks:o,followUpStatus:i,priority:r})});let s=o.length>0,u=void 0!==i&&"keep-open"!==i;return(0,eM.jsxs)(S.m.Root,{delayDuration:300,children:[(0,eM.jsx)(S.m.Trigger,{children:(0,eM.jsxs)(d.B,{axis:"x",_p:"s",_gap:"l",align:"center",hoverBackgroundColor:"blue",borderRadius:"s",children:[a,(s||!l&&u)&&(0,eM.jsx)(ik,{_gap:"l",layout:"compact",tasks:o,status:l?"keep-open":i})]})}),(0,eM.jsx)(S.m.Content,{backgroundColor:"transparent",side:"right",align:"start",children:(0,eM.jsx)(lL,{isAutoProcessed:l,alertIcon:a,workflowName:n,followUpTasks:o,followUpStatus:i,priority:r})})]})},l5=e=>{let{thresholdItemGroups:t,detailLevel:r,onOpenThresholdItemGroup:o,onOpenSingleThresholdDetail:i}=e;return(0,eM.jsx)(d.B,{width:"full",_gap:"l",align:"stretch",children:t.map(e=>(0,eM.jsx)(s.Z,{padding:!1,border:!0,borderRadius:"xs",children:"children"in e?(0,eM.jsx)(l4,{title:e.title,systemCodeIdentifier:e.externalSystemCodeIdentifier,overdueTrigger:null,commentTrigger:null,children:oH(e.children.data).map(e=>(0,eM.jsx)(l2,{thresholdGroup:e,triggerViewDetailLevel:r,presentAsChildOfParent:!0,onOpenSingleThresholdDetail:i,onOpenThresholdItemGroup:o},e.externalSystemCodeIdentifier.toString()))}):(0,eM.jsx)(l2,{thresholdGroup:e,triggerViewDetailLevel:r,onOpenSingleThresholdDetail:i,onOpenThresholdItemGroup:o})},e.externalSystemCodeIdentifier.toString()))})},l7=function(e){return e},l3=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)};var l6=Math.max;let l9=function(e){if(!i3(e))return!1;var t=iQ(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ne=iR["__core-js_shared__"];var nt,nr,no,ni,nl=(ni=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(sr
3c)_1."+ni:"",nn=Function.prototype.toString;let na=function(e){if(null!=e){try{return nn.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var ns=/^\[object .+?Constructor\]$/,nc=Object.prototype,nd=Function.prototype.toString,nu=nc.hasOwnProperty,nh=RegExp("^"+nd.call(nu).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");let ng=function(e,t){var r,o=null==e?void 0:e[t];return!(!i3(r=o)||nl&&nl in r)&&(l9(r)?nh:ns).test(na(r))?o:void 0},nm=function(){try{var e=ng(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();var np=Date.now;let nf=function(e){var t=0,r=0;return function(){var o=np(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},nw=nf(nm?function(e,t){return nm(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:l7),nv=ng(iR,"WeakMap"),nb=nv&&new nv,ny=nb?function(e,t){return nb.set(e,t),e}:l7;var nx=Object.create,nk=function(){function e(){}return function(t){if(!i3(t))return{};if(nx)return nx(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();let nj=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=nk(e.prototype),o=e.apply(r,t);return i3(o)?o:r}};var nC=Math.max;let nA=function(e,t,r,o){for(var i=-1,l=e.length,n=r.length,a=-1,s=t.length,c=nC(l-n,0),d=Array(s+c),u=!o;++a<s;)d[a]=t[a];for(;++i<n;)(u||i<l)&&(d[r[i]]=e[i]);for(;c--;)d[a++]=e[i++];return d};var nI=Math.max;let nS=function(e,t,r,o){for(var i=-1,l=e.length,n=-1,a=r.length,s=-1,c=t.length,d=nI(l-a,0),u=Array(d+c),h=!o;++i<d;)u[i]=e[i];for(var g=i;++s<c;)u[g+s]=t[s];for(;++n<a;)(h||i<l)&&(u[g+r[n]]=e[i++]);return u},n_=function(){};function nT(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}nT.prototype=nk(n_.prototype),nT.prototype.constructor=nT;let nq=nb?function(e){return nb.get(e)}:tD,nE={};var nP=Object.prototype.hasOwnProperty;function nD(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}nD.prototype=nk(n_.prototype),nD.prototype.constructor=nD;let nB=function(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t};var nM=Object.prototype.hasOwnProperty;function nW(e){if(iX(e)&&!i$(e)&&!(e instanceof nT)){if(e instanceof nD)return e;if(nM.call(e,"__wrapped__")){if(e instanceof nT)return e.clone();var t=new nD(e.__wrapped__,e.__chain__);return t.__actions__=nB(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}}return new nD(e)}nW.prototype=n_.prototype,nW.prototype.constructor=nW;let nN=function(e){var t=function(e){for(var t=e.name+"",r=nE[t],o=nP.call(nE,t)?r.length:0;o--;){var i=r[o],l=i.func;if(null==l||l==e)return i.name}return t}(e),r=nW[t];if("function"!=typeof r||!(t in nT.prototype))return!1;if(e===r)return!0;var o=nq(r);return!!o&&e===o[0]},nO=nf(ny);var nz=/\{\n\/\* \[wrapped with (.+)\] \*/,nL=/,? & /,nF=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;let nU=function(e){return e!=e},nR=function(e,t){return!(null==e||!e.length)&&(t==t?function(e,t){for(var r=-1,o=e.length;++r<o;)if(e[r]===t)return r;return -1}(e,t):function(e,t){for(var r=e.length,o=-1;++o<r;)if(t(e[o],o,e))return o;return -1}(e,nU))>-1};var nV=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];let n$=function(e,t,r){var o,i,l=t+"";return nw(e,function(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(nF,"{\n/* [wrapped with "+t+"] */\n")}(l,(i=(o=l.match(nz))?o[1].split(nL):[],function(e,t){for(var r=-1,o=null==e?0:e.length;++r<o&&!1!==t(e[r],r,e););}(nV,function(e){var t="_."+e[0];r&e[1]&&!nR(i,t)&&i.push(t)}),i.sort())))},nZ=function(e,t,r,o,i,l,n,a,s,c){var d=8&t;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var u=[e,t,i,d?l:void 0,d?n:void 0,d?void 0:l,d?void 0:n,a,s,c],h=r.apply(void 0,u);return nN(e)&&nO(h,u),h.placeholder=o,n$(h,e,t)},nG=function(e){return e.placeholder};var nH=/^(?:0|[1-9]\d*)$/;let nY=function(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&nH.test(e))&&e>-1&&e%1==0&&e<t};var nK=Math.min,nJ="__lodash_placeholder__";let nQ=function(e,t){for(var r=-1,o=e.length,i=0,l=[];++r<o;){var n=e[r];n!==t&&n!==nJ||(e[r]=nJ,l[i++]=r)}return l},nX=function e(t,r,o,i,l,n,a,s,c,d){var u=128&r,h=1&r,g=2&r,m=24&r,p=512&r,f=g?void 0:nj(t);return function w(){for(var v=arguments.length,b=Array(v),y=v;y--;)b[y]=arguments[y];if(m)var x=nG(w),k=function(e,t){for(var r=e.length,o=0;r--;)e[r]===t&&++o;return o}(b,x);if(i&&(b=nA(b,i,l,m)),n&&(b=nS(b,n,a,m)),v-=k,m&&v<d){var j=nQ(b,x);return nZ(t,r,e,w.placeholder,o,b,j,s,c,d-v)}var C=h?o:this,A=g?C[t]:t;return v=b.length,s?b=function(e,t){for(var r=e.length,o=nK(t.length,r),i=nB(e);o--;){var l=t[o];e[o]=nY(l,r)?i[l]:void 0}return e}(b,s):p&&v>1&&b.reverse(),u&&c<v&&(b.length=c),this&&this!==iR&&this instanceof w&&(A=f||nj(A)),A.apply(C,b)}};var n0="__lodash_placeholder__",n1=Math.min,n2=Math.max;let n4=function(e,t,r,o,i,l,n,a){var s=2&t;if(!s&&"function"!=typeof e)throw TypeError("Expected a function");var c=o?o.length:0;if(c||(t&=-97,o=i=void 0),n=void 0===n?n:n2(lD(n),0),a=void 0===a?a:lD(a),c-=i?i.length:0,64&t){var d=o,u=i;o=i=void 0}var h=s?void 0:nq(e),g=[e,t,r,o,i,d,u,l,n,a];if(h&&function(e,t){var r=e[1],o=t[1],i=r|o,l=i<131,n=128==o&&8==r||128==o&&256==r&&e[7].length<=t[8]||384==o&&t[7].length<=t[8]&&8==r;if(l||n){1&o&&(e[2]=t[2],i|=1&r?0:4);var a=t[3];if(a){var s=e[3];e[3]=s?nA(s,a,t[4]):a,e[4]=s?nQ(e[3],n0):t[4]}(a=t[5])&&(s=e[5],e[5]=s?nS(s,a,t[6]):a,e[6]=s?nQ(e[5],n0):t[6]),(a=t[7])&&(e[7]=a),128&o&&(e[8]=null==e[8]?t[8]:n1(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(g,h),e=g[0],t=g[1],r=g[2],o=g[3],i=g[4],(a=g[9]=void 0===g[9]?s?0:e.length:n2(g[9]-c,0))||!(24&t)||(t&=-25),t&&1!=t)T=8==t||16==t?(m=e,p=t,f=a,w=nj(m),function e(){for(var t=arguments.length,r=Array(t),o=t,i=nG(e);o--;)r[o]=arguments[o];var l=t<3&&r[0]!==i&&r[t-1]!==i?[]:nQ(r,i);return(t-=l.length)<f?nZ(m,p,nX,e.placeholder,void 0,r,l,void 0,void 0,f-t):l3(this&&this!==iR&&this instanceof e?w:m,this,r)}):32!=t&&33!=t||i.length?nX.apply(void 0,g):(v=e,b=t,y=r,x=o,k=1&b,j=nj(v),function e(){for(var t=-1,r=arguments.length,o=-1,i=x.length,l=Array(i+r),n=this&&this!==iR&&this instanceof e?j:v;++o<i;)l[o]=x[o];for(;r--;)l[o++]=arguments[++t];return l3(n,k?y:this,l)});else var m,p,f,w,v,b,y,x,k,j,C,A,I,S,_,T=(C=e,A=t,I=r,S=1&A,_=nj(C),function e(){return(this&&this!==iR&&this instanceof e?_:C).apply(S?I:this,arguments)});return n$((h?ny:nO)(T,g),e,t)};var n8,n5,n7,n3,n6=nw((n8=n7=function(e,t,r){var o=1;if(r.length){var i=nQ(r,nG(n6));o|=32}return n4(e,o,t,r,i)},n5=l6(void 0===(n5=n3)?n8.length-1:n5,0),function(){for(var e=arguments,t=-1,r=l6(e.length-n5,0),o=Array(r);++t<r;)o[t]=e[n5+t];t=-1;for(var i=Array(n5+1);++t<n5;)i[t]=e[t];return i[n5]=l7(o),l3(n8,this,i)}),n7+"");n6.placeholder={};let n9=e=>{let{actions:t,disabled:r}=e,o=tV(),{$dialog:i}=j.yZ.useModalDialog();return(0,eM.jsxs)(F.P.Root,{children:[(0,eM.jsx)(F.P.Trigger,{disabled:r,children:(0,eM.jsx)(v.E,{label:o("ce.generic.button.flyout-more-icon.label"),children:(0,eM.jsx)(U.A,{})})}),(0,eM.jsxs)(F.P.Content,{container:i,children:[(t.onDeleteTrigger||t.onEditTriggerDetails||t.onViewTriggerDetails||t.onCopyTrigger)&&(0,eM.jsxs)(F.P.Group,{children:[(0,eM.jsx)(F.P.Label,{children:o("ce.global.trigger")}),(0,eM.jsx)(F.P.Separator,{}),t?.onEditTriggerDetails&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)(R.A,{}),onClick:t.onEditTriggerDetails,children:o("ce.patient.thresholds.item.details.button")}),t?.onViewTriggerDetails&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)(V.A,{}),onClick:t.onViewTriggerDetails,children:o("ce.patient.thresholds.item.view-details.button")}),t.onCopyTrigger&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)($.A,{}),onClick:t.onCopyTrigger,children:o("ce.threshold.flyout-menu.copy-trigger.label")}),t?.onDeleteTrigger&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)(Z.A,{}),onClick:t.onDeleteTrigger,children:o("ce.threshold.flyout-menu.delete-trigger.label")})]}),(t.onAddWorkflow||t.onEditWorkflow||t.onCopyWorkflow||t.onDeleteWorkflow)&&(0,eM.jsxs)(F.P.Group,{children:[(0,eM.jsx)(F.P.Label,{children:o("ce.global.workflow")}),(0,eM.jsx)(F.P.Separator,{}),t.onAddWorkflow&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)(G.A,{}),onClick:t.onAddWorkflow,children:o("ce.threshold.flyout-menu.add-workflow.label")}),t?.onEditWorkflow&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)(R.A,{}),onClick:t.onEditWorkflow,children:o("ce.threshold.flyout-menu.edit-workflow.label")}),t?.onCopyWorkflow&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)($.A,{}),onClick:t.onCopyWorkflow,children:o("ce.threshold.flyout-menu.copy-workflow.label")}),t?.onDeleteWorkflow&&(0,eM.jsx)(F.P.ButtonItem,{icon:(0,eM.jsx)(Z.A,{}),onClick:t.onDeleteWorkflow,children:o("ce.threshold.flyout-menu.delete-workflow.label")})]})]})]})},ae=e=>{let{code:t,description:r,subtitle:o,priority:i,followUpStatus:l,followUpTasks:a,menuActions:s,belowDescription:c,icon:d,errorMessage:u,ignorePermissions:p}=e,f=tV(),w=td(),{canEdit:v}=p?{canEdit:!0}:w,b=e=>e?n6(e,null,{priority:i,code:t}):void 0;return(0,eM.jsx)(rw.TriggerItem,{trigger:{label:(0,eM.jsx)(n.EY,{c
3olor:u?"on-negative":"on-surface",children:r}),subtitle:u??o,icon:u?(0,eM.jsx)(k.A,{color:"on-negative"}):d??(0,eM.jsx)(H.A,{})},action:{label:f("ce.threshold-list-view.automated-actions.alert.label"),icon:function(e){switch(e){case"PH":return(0,eM.jsx)(h.A,{});case"PM":return(0,eM.jsx)(g.A,{});case"PL":return(0,eM.jsx)(m.A,{color:"on-surface-variant"});case"PN":return null}}(i)},result:(l&&"keep-open"!==l||a.length>0)&&(0,eM.jsx)(ik,{layout:"icon-card",status:l,tasks:a}),aside:s&&(0,eM.jsx)(n9,{actions:{onEditTriggerDetails:b(s?.onEditTriggerDetails),onViewTriggerDetails:b(s?.onViewTriggerDetails),onCopyTrigger:v?b(s?.onCopyTrigger):void 0,onDeleteTrigger:v?b(s?.onDeleteTrigger):void 0,onAddWorkflow:v?b(s?.onAddWorkflow):void 0,onEditWorkflow:v?b(s?.onEditWorkflow):void 0,onCopyWorkflow:v?b(s?.onCopyWorkflow):void 0,onDeleteWorkflow:v?b(s?.onDeleteWorkflow):void 0}}),belowTriggerLabel:c})},at={greaterThanOrEqualTo:"ce.expression.operation.greater-than-or-equal-to",lessThanOrEqualTo:"ce.expression.operation.less-than-or-equal-to",equalTo:"ce.expression.operation.equal-to",between:"ce.expression.operation.between"},ar={atLeast:"ce.expression.occurrence-unit.at-least",atMost:"ce.expression.occurrence-unit.at-most",exactly:"ce.expression.occurrence-unit.exactly"},ao={hours:"ce.expression.time-window-unit.hours",days:"ce.expression.time-window-unit.days",weeks:"ce.expression.time-window-unit.weeks"},ai=({expression:e,interval:t,flagCodes:r,combinationItems:o})=>{let i=tV(),l=i("ce.global.condition.if"),a=i("ce.global.condition.and"),s=null;try{s=oV(oN({flagCodes:r}),{expression:e,interval:t})}catch{let e=r?.find(e=>"description"===e.code)?.display;return e?(0,eM.jsx)(n.EY,{children:e}):o.length>0?(0,eM.jsx)("ul",{style:{listStyle:"initial",paddingLeft:"1rem"},children:o.map(e=>(0,eM.jsx)("li",{"aria-label":e.displayName,children:(0,eM.jsx)(n.EY,{children:e.displayName})},e.code))}):(0,eM.jsx)(B.v,{_variant:"flat",_type:"negative",_size:"small",children:i("ce.expression.unsupported")})}if(0===s.length)return null;let d=s.at(0),u=d?i(ao[d.timeWindowUnit],{n:d.timeWindowAmount}):"",h=d?i("ce.expression.time-window",{amount:String(d.timeWindowAmount),unit:u}):"";return(0,eM.jsxs)("table",{children:[u&&(0,eM.jsxs)("tr",{children:[(0,eM.jsx)(c.a,{as:"td",_py:"s",_pr:"base",children:(0,eM.jsx)(B.v,{_type:"neutral",_size:"small",children:i("ce.expression.in").toLocaleUpperCase()})}),(0,eM.jsx)(c.a,{as:"td",_py:"s",children:(0,eM.jsx)(n.EY,{children:h})})]}),s.map((e,t)=>{let r=(0===t?l:a).toLocaleUpperCase(),o=i(at[e.measurementValueCompareOperation]),s=null!=e.yMeasurementValue?i("ce.expression.condition-range",{title:e.title,operation:o,xValue:String(e.xMeasurementValue),yValue:String(e.yMeasurementValue)}):i("ce.expression.condition",{title:e.title,operation:o,xValue:String(e.xMeasurementValue)}),d=i(ar[e.occurrenceUnit]),u=i("ce.expression.occurrence",{unit:d,amount:String(e.occurrenceAmount)});return(0,eM.jsxs)(eW.Fragment,{children:[(0,eM.jsxs)("tr",{children:[(0,eM.jsx)(c.a,{as:"td",_py:"s",_pr:"base",children:(0,eM.jsx)(B.v,{_type:"neutral",_size:"small",children:r})}),(0,eM.jsx)(c.a,{as:"td",_py:"s",children:(0,eM.jsx)(n.EY,{children:s})})]}),(0,eM.jsxs)("tr",{children:[(0,eM.jsx)(c.a,{as:"td",_py:"s",_pr:"base"}),(0,eM.jsx)(c.a,{as:"td",_py:"s",children:(0,eM.jsx)(n.EY,{children:u})})]})]},e.title+t)})]})},al=({combinationThresholds:e,onExpansionChange:t})=>{let{triggerViewDetailLevel:r,triggerRowExpansionLevel:o}=iD(),i=tV();return(0,eM.jsx)(d.B,{width:"full",_gap:"l",align:"stretch",children:e.map((e,l)=>{let c=e.flagCodes.find(e=>e.code.startsWith("combination_uuid|"))?.code??`${e.title}-combination-${l}`,u=e.combinationItems.missingCodes.length>0;return(0,eM.jsx)(s.Z,{padding:!1,border:!0,borderRadius:"xs",children:(0,eM.jsx)("article",{"aria-label":e.title??i("ce.threshold-list-view.section.combination-triggers.title"),children:(0,eM.jsx)(iW,{title:e.title??i("ce.threshold-list-view.section.combination-triggers.title"),registryKey:c,isExpanded:"expanded"===o,onExpansionChange:t,children:(0,eM.jsx)(iW.Tr,{children:(0,eM.jsx)(lK,{slots:{icon:(0,eM.jsx)(rd,{priority:e.priority}),trigger:(0,eM.jsxs)(d.B,{_gap:"l",children:[u&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",align:"center",children:[(0,eM.jsx)(k.A,{color:"on-negative",size:"s",style:{width:"16px",height:"16px"}}),(0,eM.jsxs)(n.EY,{variant:"body-small-regular",color:"error",children:[i("ce.thresholds.validation-error.instrument-missing.title")," ",(0,eM.jsx)(a.N,{as:"button",onClick:()=>{let{combinationItems:t}=e;u4.show({presentCodes:Array.from(t.items.values()).map(e=>e.code),missingCodes:t.missingCodes}).then(u4.hide)},children:i("ce.thresholds.validation-error.instrument-missing.button")})]})]}),(0,eM.jsx)(ai,{combinationItems:Array.from(e.combinationItems.items.values()).map(e=>({code:oZ.fromCode(e.code).toString(),displayName:e.code.display??""})),expression:e.rawExpression??{}
3,interval:e.interval,flagCodes:e.flagCodes})]}),outcomes:(0,eM.jsx)(l8,{layout:r,priority:e.followUp?.flagPriority??"PN",followUpStatus:e.followUp?.status??"keep-open",followUpTasks:e.followUp?.tasks??[],isAutoProcessed:"processed"===e.followUp?.status||"processed-unless-comment"===e.followUp?.status,workflowName:e.followUp?.title??""})}})})})})},c)})})},an=e=>{let{thresholdItemGroupCollection:t,selectedItemIdentifier:r}=e,o=tV(),[,i]=e5(e1()),l=t?.keys.map(([e,r])=>{let o=t.data.get(e)?.get(r);return o?{title:o.title,systemCode:oZ.fromCode({system:e,code:r})}:null}).filter(oR)??[],n=[{value:"/",label:o("ce.patient.navigation.item.all")},...l.map(e=>({value:`/all/${e.systemCode.toString()}`,label:e.title}))],a=r?`/all/${r}`:"/";return(0,eM.jsx)("nav",{style:{flex:1},children:(0,eM.jsx)(Y.l,{width:"full",options:n,value:a,onChange:e=>{e&&i(e)}})})};function aa(e){let{variant:t,thresholdItemGroupCollection:r,selectedItemIdentifier:o=null,style:i}=e,l=tV(),{triggerRowExpansionLevel:n,toggleExpandCollapseAll:a}=(()=>{let e=iA(),{triggerRowExpansionLevel:t,setTriggerRowExpansionLevel:r}=iD(),o=(0,eW.useCallback)(()=>{"collapsed"===t?(e?.expandAll(),r("expanded")):(e?.collapseAll(),r("collapsed"))},[t,e,r]);return{triggerRowExpansionLevel:t,toggleExpandCollapseAll:o}})(),{triggerViewDetailLevel:s,setTriggerViewDetailLevel:c}=iD(),u=l("ce.global.compact-view"),h=l("ce.global.detailed-view");return(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",style:i,children:["ui-settings-only"!==t&&(0,eM.jsx)(an,{thresholdItemGroupCollection:r,selectedItemIdentifier:o}),"filter-only"!==t&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",style:{marginLeft:"auto"},children:[(0,eM.jsxs)(F.P.Root,{children:[(0,eM.jsx)(F.P.Trigger,{asChild:!0,children:(0,eM.jsx)(L.J,{trailingIcon:(0,eM.jsx)(K.A,{}),children:"detailed"===s?h:u})}),(0,eM.jsxs)(F.P.Content,{children:[(0,eM.jsx)(F.P.ButtonItem,{onClick:()=>c("compact"),children:u}),(0,eM.jsx)(F.P.ButtonItem,{onClick:()=>c("detailed"),children:h})]})]}),(0,eM.jsx)(L.J,{onClick:a,children:l("collapsed"===n?"ce.global.expand-all":"ce.global.collapse-all")})]})]})}let as=(0,eW.createContext)(null),ac=rJ({data:rJ({body:r7(),status:rK()})}),ad=()=>{let{getAuthToken:e,proxyEndpoint:t}=(()=>{let e=(0,eW.useContext)(as);if(!e)throw Error("useQueryOptions: Make sure the api-client's context is available by using the provider exported from @api-client.");return e})();return(0,eW.useCallback)(async(r,o)=>{let i={method:o?.method??"GET",path:r.startsWith("/")?r.slice(1):r,data:o?.body?JSON.parse(o.body):{}},l=await e?.(),n=await fetch(t,{method:"POST",headers:{Authorization:`Bearer ${l}`,"Content-Type":"application/json"},body:JSON.stringify(i),signal:o?.signal});if(!n.ok)throw Error(`${n.status}, failed to fetch`);let a=oV(ac,await n.json());if(a.data.status>299&&404!==a.data.status)throw Error(`${a.data.status}, failed to fetch`);return{data:a.data.body,status:a.data.status,headers:new Headers({"Content-Type":"application/json"})}},[e,t])},au=e=>[`/api/configuration-templates/${e}`],ah=(e,t)=>(0,eI.n)((e=>{let t,r=["putApiConfigurationTemplatesTemplateId"],{mutation:o,request:i}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0},l=(t=ad(),(e,r,o)=>t(`/api/configuration-templates/${e}`,{...o,method:"PUT",headers:{"Content-Type":"application/json",...o?.headers},body:JSON.stringify(r)}));return{mutationFn:e=>{let{templateId:t,data:r}=e??{};return l(t,r,i)},...o}})(e),t),ag=e=>[`/api/configuration-templates/${e}/follow-ups`],am=(e,t)=>(0,eI.n)((e=>{let t,r=["putApiConfigurationTemplatesTemplateIdFollowUps"],{mutation:o,request:i}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0},l=(t=ad(),(e,r,o)=>t(`/api/configuration-templates/${e}/follow-ups`,{...o,method:"PUT",headers:{"Content-Type":"application/json",...o?.headers},body:JSON.stringify(r)}));return{mutationFn:e=>{let{templateId:t,data:r}=e??{};return l(t,r,i)},...o}})(e),t),ap=(e,t)=>[`/api/configuration-templates/${e}/allowable-thresholds`,...t?[t]:[]],af=({getAuthToken:e,proxyEndpoint:t,children:r})=>(0,eM.jsx)(as.Provider,{value:{getAuthToken:e,proxyEndpoint:t},children:r});function aw(e){return{configuration:{triggerOverdueFlags:e.triggerOverdueAlerts??void 0,autoProcessOverdues:e.autoProcessOverdues??void 0,overdueReminderTime:e.overdueReminderTime??void 0,triggerNoteFlags:e.triggerCommentAlerts??void 0,inactivityLimitDays:e.triggerInactivityAlertAfterDays}}}af.displayName="ApiClientProvider";let av=e=>{let t=(0,eS.jE)(),r=tV(),{operation:o,triggerType:i}
3=e,l={comment:{add:{successTitle:r("ce.threshold-detail-flow.comments.add-trigger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.comments.add-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")},update:{successTitle:r("ce.threshold-detail-flow.comments.update-trigger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.comments.add-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")}},inactivity:{add:{successTitle:r("ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")},update:{successTitle:r("ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")}},overdue:{add:{successTitle:r("ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")},update:{successTitle:r("ce.threshold-detail-flow.inactivity.update-trigger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.inactivity.add-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")}}}[i][o],n=ah({...e,mutation:{...e?.mutation,onSuccess:async(r,n,a)=>{(0,J.o)({type:"success",title:l.successTitle,message:l.successMessage}),"add"===o&&tN({id:"protocol_activity_trigger_add",props:{activity_trigger_type:i}}),tN({id:"protocol_activity_trigger_save",props:{activity_trigger_type:i}});let s=au(n.templateId);t.invalidateQueries({queryKey:s}),await e?.mutation?.onSuccess?.(r,n,a)}}});return{...n,labels:l,mutateAsync:e=>n.mutateAsync({templateId:e.templateId,data:{...aw(e.data),applyToAll:e.data.applyToAll??!1}}),mutate:e=>{n.mutate({templateId:e.templateId,data:{...aw(e.data),applyToAll:e.data.applyToAll??!1}})}}},ab=e=>`${e[0]}-${e[1]}`,ay=[ab(["PH","deltaCompareHigh"]),ab(["PH","deltaCompareLow"])],ax=r5([rH("escalated"),rH("processed"),rH("processed-unless-comment"),rH("keep-open")]),ak=r0(r4(),rJ({tasks:r$(rJ({code:rQ(r$(or)),input:rQ(r$(rJ({type:rQ(r$(or)),value:rQ(r4())}))),step:rQ(rK())})),status:ax})),aj=(r9(rJ({name:rY(r9(r4(),rL(),rO())),maxTriggers:rY(r9(rK(),rN(1))),priority:oo,flagCodes:r$(or),steps:ak})),(0,eW.createContext)(null)),aC=({children:e,value:t})=>(0,eM.jsx)(aj.Provider,{value:t,children:e}),aA=({children:e,system:t,onCopyCombinationThresholdTransformer:r,urlResolvers:o,faqExternalUrl:i})=>(0,eM.jsx)(aC,{value:{system:t,onCopyCombinationThresholdTransformer:r,urlResolvers:o,faqExternalUrl:i},children:e}),aI=()=>{let e=(0,eW.useContext)(aj);if(!e)throw Error("useTemplateContext must be used within a TemplateProvider");return e},aS=({followUp:e})=>({title:e.description??"Follow-up",flagCodes:e.flagCodes,flagPriority:e.flagPriority,status:(e=>{switch(e){case"escalated":return"escalated";case"processed":return"processed";case"processedUnlessComment":return"processed-unless-comment";case null:return"keep-open"}})(e.flagStatus?.find(e=>1===e.step)?.status??null),tasks:e.tasks?.map(e=>({code:e.code??[],input:e.input??[],step:e.step??1}))??[],maxTriggers:e.triggerLimit?.maxTriggers??null}),a_=e=>"script"===e.logic,aT=({threshold:e,followUp:t,externalItems:r})=>{let o=(({expression:e,interval:t,flagCodes:r})=>{if(!e||null==t)return{state:"failed",parsed:null};try{let o=oN({flagCodes:r??null});return{state:"succeeded",parsed:oV(o,{expression:e,interval:t},{summaryMessagePrefix:"Failed to transform combination threshold expression."})}}catch(e){return console.warn("Failed to transform expression:",e),{state:"failed",parsed:null}}}
3)({expression:e.expression,interval:e.interval,flagCodes:e.flagCodes}),i=(({code:e,externalItems:t})=>{let r=new Map,o=[];for(let i of e){let e=oZ.fromCode(i).toString(),l=t.find(t=>oZ.fromCode(t.code).toString()===e);l?r.set(e,l):o.push(i)}return 0===o.length?{state:"complete",items:r,missingCodes:[]}:{state:"incomplete",items:r,missingCodes:o}})({code:e.code,externalItems:r}),{title:l,description:n}=(e=>{if(!e)return{title:null,description:null};let t=e.find(e=>e.code.startsWith("combination_uuid|")),r=e.find(e=>"description"===e.code);return{title:t?.display??null,description:r?.display??null}})(e.flagCodes);return{code:e.code,flagCodes:e.flagCodes??[],priority:e.flagPriority,logic:"script",title:l,description:n,rawExpression:e.expression??null,expression:o,combinationItems:i,interval:e.interval??null,followUp:t??null}},aq=e=>{let{thresholdFlagCodes:t,followUps:r}=e,o=t.filter(e=>e.code.startsWith("combination_uuid|")).map(e=>oZ.fromCode(e));if(0!==o.length)return r?.find(e=>!!e.flagCodes.some(e=>"script"===e.code)&&e.flagCodes.some(e=>{if(!e.code.startsWith("combination_uuid|"))return!1;let t=oZ.fromCode(e);return o.some(e=>e.eq(t))}))},aE=function(e,t){return e===t||e!=e&&t!=t},aP=function(e,t){for(var r=e.length;r--;)if(aE(e[r][0],t))return r;return -1};var aD=Array.prototype.splice;function aB(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}aB.prototype.clear=function(){this.__data__=[],this.size=0},aB.prototype.delete=function(e){var t=this.__data__,r=aP(t,e);return!(r<0||(r==t.length-1?t.pop():aD.call(t,r,1),--this.size,0))},aB.prototype.get=function(e){var t=this.__data__,r=aP(t,e);return r<0?void 0:t[r][1]},aB.prototype.has=function(e){return aP(this.__data__,e)>-1},aB.prototype.set=function(e,t){var r=this.__data__,o=aP(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this};let aM=ng(iR,"Map"),aW=ng(Object,"create");var aN=Object.prototype.hasOwnProperty,aO=Object.prototype.hasOwnProperty;function az(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}az.prototype.clear=function(){this.__data__=aW?aW(null):{},this.size=0},az.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},az.prototype.get=function(e){var t=this.__data__;if(aW){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return aN.call(t,e)?t[e]:void 0},az.prototype.has=function(e){var t=this.__data__;return aW?void 0!==t[e]:aO.call(t,e)},az.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=aW&&void 0===t?"__lodash_hash_undefined__":t,this};let aL=function(e,t){var r,o=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?o["string"==typeof t?"string":"hash"]:o.map};function aF(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function aU(e){var t=this.__data__=new aB(e);this.size=t.size}function aR(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new aF;++t<r;)this.add(e[t])}aF.prototype.clear=function(){this.size=0,this.__data__={hash:new az,map:new(aM||aB),string:new az}},aF.prototype.delete=function(e){var t=aL(this,e).delete(e);return this.size-=!!t,t},aF.prototype.get=function(e){return aL(this,e).get(e)},aF.prototype.has=function(e){return aL(this,e).has(e)},aF.prototype.set=function(e,t){var r=aL(this,e),o=r.size;return r.set(e,t),this.size+=+(r.size!=o),this},aU.prototype.clear=function(){this.__data__=new aB,this.size=0},aU.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},aU.prototype.get=function(e){return this.__data__.get(e)},aU.prototype.has=function(e){return this.__data__.has(e)},aU.prototype.set=function(e,t){var r=this.__data__;if(r instanceof aB){var o=r.__data__;if(!aM||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new aF(o)}return r.set(e,t),this.size=r.size,this},aR.prototype.add=aR.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},aR.prototype.has=function(e){return this.__data__.has(e)};let aV=function(e,t){for(var r=-1,o=null==e?0:e.length;++r<o;)if(t(e[r],r,e))return!0;return!1},a$=function(e,t){return e.has(t)},aZ=function(e,t,r,o,i,l){var n=1&r,a=e.length,s=t.length;if(a!=s&&!(n&&s>a))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var u=-1,h=!0,g=2&r?new aR:void 0;for(l.set(e,t),l.set(t,e);++u<a;){var m=e[u],p=t[u];
3if(o)var f=n?o(p,m,u,t,e,l):o(m,p,u,e,t,l);if(void 0!==f){if(f)continue;h=!1;break}if(g){if(!aV(t,function(e,t){if(!a$(g,t)&&(m===e||i(m,e,r,o,l)))return g.push(t)})){h=!1;break}}else if(m!==p&&!i(m,p,r,o,l)){h=!1;break}}return l.delete(e),l.delete(t),h},aG=iR.Uint8Array,aH=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,o){r[++t]=[o,e]}),r},aY=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r};var aK=iV?iV.prototype:void 0,aJ=aK?aK.valueOf:void 0,aQ=Object.prototype.propertyIsEnumerable,aX=Object.getOwnPropertySymbols,a0=aX?function(e){return null==e?[]:function(e,t){for(var r=-1,o=null==e?0:e.length,i=0,l=[];++r<o;){var n=e[r];t(n,r,e)&&(l[i++]=n)}return l}(aX(e=Object(e)),function(t){return aQ.call(e,t)})}:function(){return[]};let a1=function(e){return iX(e)&&"[object Arguments]"==iQ(e)};var a2=Object.prototype,a4=a2.hasOwnProperty,a8=a2.propertyIsEnumerable;let a5=a1(function(){return arguments}())?a1:function(e){return iX(e)&&a4.call(e,"callee")&&!a8.call(e,"callee")};var a7="object"==typeof exports&&exports&&!exports.nodeType&&exports,a3=a7&&"object"==typeof module&&module&&!module.nodeType&&module,a6=a3&&a3.exports===a7?iR.Buffer:void 0;let a9=(a6?a6.isBuffer:void 0)||function(){return!1},se=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff};var st={};st["[object Float32Array]"]=st["[object Float64Array]"]=st["[object Int8Array]"]=st["[object Int16Array]"]=st["[object Int32Array]"]=st["[object Uint8Array]"]=st["[object Uint8ClampedArray]"]=st["[object Uint16Array]"]=st["[object Uint32Array]"]=!0,st["[object Arguments]"]=st["[object Array]"]=st["[object ArrayBuffer]"]=st["[object Boolean]"]=st["[object DataView]"]=st["[object Date]"]=st["[object Error]"]=st["[object Function]"]=st["[object Map]"]=st["[object Number]"]=st["[object Object]"]=st["[object RegExp]"]=st["[object Set]"]=st["[object String]"]=st["[object WeakMap]"]=!1;var sr=lr&&lr.isTypedArray;let so=sr?i6(sr):function(e){return iX(e)&&se(e.length)&&!!st[iQ(e)]};var si=Object.prototype.hasOwnProperty;let sl=function(e,t){var r=i$(e),o=!r&&a5(e),i=!r&&!o&&a9(e),l=!r&&!o&&!i&&so(e),n=r||o||i||l,a=n?function(e,t){for(var r=-1,o=Array(e);++r<e;)o[r]=t(r);return o}(e.length,String):[],s=a.length;for(var c in e)!t&&!si.call(e,c)||n&&("length"==c||i&&("offset"==c||"parent"==c)||l&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||nY(c,s))||a.push(c);return a};var sn=Object.prototype;let sa=(d9=Object.keys,ue=Object,function(e){return d9(ue(e))});var ss=Object.prototype.hasOwnProperty;let sc=function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||sn))return sa(e);var t,r=[];for(var o in Object(e))ss.call(e,o)&&"constructor"!=o&&r.push(o);return r},sd=function(e){return null!=e&&se(e.length)&&!l9(e)?sl(e):sc(e)},su=function(e){var t;return t=sd(e),i$(e)?t:function(e,t){for(var r=-1,o=t.length,i=e.length;++r<o;)e[i+r]=t[r];return e}(t,a0(e))};var sh=Object.prototype.hasOwnProperty;let sg=ng(iR,"DataView"),sm=ng(iR,"Promise"),sp=ng(iR,"Set");var sf="[object Map]",sw="[object Promise]",sv="[object Set]",sb="[object WeakMap]",sy="[object DataView]",sx=na(sg),sk=na(aM),sj=na(sm),sC=na(sp),sA=na(nv),sI=iQ;(sg&&sI(new sg(new ArrayBuffer(1)))!=sy||aM&&sI(new aM)!=sf||sm&&sI(sm.resolve())!=sw||sp&&sI(new sp)!=sv||nv&&sI(new nv)!=sb)&&(sI=function(e){var t=iQ(e),r="[object Object]"==t?e.constructor:void 0,o=r?na(r):"";if(o)switch(o){case sx:return sy;case sk:return sf;case sj:return sw;case sC:return sv;case sA:return sb}return t});let sS=sI;var s_="[object Arguments]",sT="[object Array]",sq="[object Object]",sE=Object.prototype.hasOwnProperty;let sP=function(e,t,r,o,i,l){var n=i$(e),a=i$(t),s=n?sT:sS(e),c=a?sT:sS(t),d=(s=s==s_?sq:s)==sq,u=(c=c==s_?sq:c)==sq,h=s==c;if(h&&a9(e)){if(!a9(t))return!1;n=!0,d=!1}if(h&&!d)return l||(l=new aU),n||so(e)?aZ(e,t,r,o,i,l):function(e,t,r,o,i,l,n){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new aG(e),new aG(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return aE(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var a=aH;case"[object Set]":var s=1&o;if(a||(a=aY),e.size!=t.size&&!s)break;var c=n.get(e);if(c)return c==t;o|=2,n.set(e,t);var d=aZ(a(e),a(t),o,i,l,n);return n.delete(e),d;case"[object Symbol]":if(aJ)return aJ.call(e)==aJ.call(t)}return!1}(e,t,s,r,o,i,l);if(!(1&r)){var g=d&&sE.call(e,"__wrapped__"),m=u&&sE.call(t,"__wrapped__");
3if(g||m){var p=g?e.value():e,f=m?t.value():t;return l||(l=new aU),i(p,f,r,o,l)}}return!!h&&(l||(l=new aU),function(e,t,r,o,i,l){var n=1&r,a=su(e),s=a.length;if(s!=su(t).length&&!n)return!1;for(var c=s;c--;){var d=a[c];if(!(n?d in t:sh.call(t,d)))return!1}var u=l.get(e),h=l.get(t);if(u&&h)return u==t&&h==e;var g=!0;l.set(e,t),l.set(t,e);for(var m=n;++c<s;){var p=e[d=a[c]],f=t[d];if(o)var w=n?o(f,p,d,t,e,l):o(p,f,d,e,t,l);if(!(void 0===w?p===f||i(p,f,r,o,l):w)){g=!1;break}m||(m="constructor"==d)}if(g&&!m){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(g=!1)}return l.delete(e),l.delete(t),g}(e,t,r,o,i,l))},sD=function e(t,r,o,i,l){return t===r||(null!=t&&null!=r&&(iX(t)||iX(r))?sP(t,r,o,i,e,l):t!=t&&r!=r)},sB=function(e){return e==e&&!i3(e)},sM=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}},sW=function(e){var t=function(e){for(var t=sd(e),r=t.length;r--;){var o=t[r],i=e[o];t[r]=[o,i,sB(i)]}return t}(e);return 1==t.length&&t[0][2]?sM(t[0][0],t[0][1]):function(r){return r===e||function(e,t){var r=t.length,o=r;if(null==e)return!o;for(e=Object(e);r--;){var i=t[r];if((0,i[2])?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++r<o;){var l=(i=t[r])[0],n=e[l],a=i[1];if(0,i[2]){if(void 0===n&&!(l in e))return!1}else{var s,c=new aU;if(!(void 0===s?sD(a,n,3,void 0,c):s))return!1}}return!0}(r,t)}};var sN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sO=/^\w*$/;let sz=function(e,t){if(i$(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!i0(e))||sO.test(e)||!sN.test(e)||null!=t&&e in Object(t)};function sL(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var r=function(){var o=arguments,i=t?t.apply(this,o):o[0],l=r.cache;if(l.has(i))return l.get(i);var n=e.apply(this,o);return r.cache=l.set(i,n)||l,n};return r.cache=new(sL.Cache||aF),r}sL.Cache=aF;var sF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sU=/\\(\\)?/g,sR=(ur=(ut=sL(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(sF,function(e,r,o,i){t.push(o?i.replace(sU,"$1"):r||e)}),t},function(e){return 500===ur.size&&ur.clear(),e})).cache,ut);let sV=function(e,t){return i$(e)?e:sz(e,t)?[e]:sR(lB(e))},s$=function(e){if("string"==typeof e||i0(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},sZ=function(e,t){for(var r=0,o=(t=sV(t,e)).length;null!=e&&r<o;)e=e[s$(t[r++])];return r&&r==o?e:void 0},sG=function(e,t){return null!=e&&t in Object(e)},sH=function(e){return sz(e)?ll(s$(e)):function(t){return sZ(t,e)}},sY=sp&&1/aY(new sp([,-0]))[1]==1/0?function(e){return new sp(e)}:tD,sK=function(e,t){var r,o;return e&&e.length?function(e,t){var r=-1,o=nR,i=e.length,l=!0,n=[],a=n;if(i>=200){var s=t?null:sY(e);if(s)return aY(s);l=!1,o=a$,a=new aR}else a=t?[]:n;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=0!==c?c:0,l&&d==d){for(var u=a.length;u--;)if(a[u]===d)continue e;t&&a.push(d),n.push(c)}else o(a,d,void 0)||(a!==n&&a.push(d),n.push(c))}return n}(e,"function"==typeof t?t:null==t?l7:"object"==typeof t?i$(t)?(r=t[0],o=t[1],sz(r)&&sB(o)?sM(s$(r),o):function(e){var t,i=void 0===(t=null==e?void 0:sZ(e,r))?void 0:t;return void 0===i&&i===o?null!=e&&function(e,t,r){for(var o=-1,i=(t=sV(t,e)).length,l=!1;++o<i;){var n=s$(t[o]);if(!(l=null!=e&&r(e,n)))break;e=e[n]}return l||++o!=i?l:!!(i=null==e?0:e.length)&&se(i)&&nY(n,i)&&(i$(e)||a5(e))}(e,r,sG):sD(o,i,3)}):sW(t):sH(t)):[]},sJ=function(e){return null==e},sQ=e=>{let t=e.find(e=>e.code.startsWith("threshold|"));if(!t)throw Error('Missing threshold identifier code: flagCodes must contain a code starting with "threshold|"');return t.code},sX=e=>{if(!e)return null;let t=e.find(e=>e.code.startsWith("threshold|"));return t?.display??null},s0=e=>"deltaCompare"===e.logic,s1=({threshold:e,followUp:t,unit:r})=>{let o=e.flagCodes??[],i=sQ(o),l={code:e.code,flagCodes:o,thresholdIdentifierCode:i,priority:e.flagPriority,logic:"deltaCompare",description:sX(e.flagCo
3des),followUp:t??null,unit:r??null},{low:n,high:a}=e;if(oR(n)&&!oR(a))return{...l,type:"DECREASE",delta:{decrease:n}};if(oR(a)&&!oR(n))return{...l,type:"INCREASE",delta:{increase:a}};throw Error(`Invalid delta compare threshold: expected exactly one of 'high' or 'low' to be defined, but got high=${e.high}, low=${e.low}`)},s2=e=>"rangeCompare"===e.logic,s4=({threshold:e,followUp:t,unit:r})=>{let o=e.flagCodes??[],i=sQ(o);return{code:e.code,flagCodes:o,thresholdIdentifierCode:i,priority:e.flagPriority,logic:"rangeCompare",range:{from:e.low??null,to:e.high??null},description:sX(e.flagCodes),followUp:t??null,unit:r}},s8=e=>{let{thresholdIdCode:t,followUps:r}=e,o=oZ.fromCode(t);return r?.find(e=>e.flagCodes.some(e=>oZ.fromCode(e).eq(o)))},s5=({externalIdentifier:e,calculations:t})=>!(!t||0===t.length)&&t.some(t=>t.outputCodings.component?.some(t=>oZ.fromCode(t).eq(e))),s7=e=>"type"in e&&"missing-external-item"===e.type,s3=e=>({code:e,type:"missing-external-item"}),s6=({externalItem:e,configurationThresholds:t,followUps:r=[],calculations:o=[],calculationInputCodings:i=[],allowableThresholds:l=[]})=>{let n=oZ.fromCode(e.code),a=n.toString(),{rangeCompareThresholds:s,deltaCompareThresholds:c}=(({thresholds:e,externalIdString:t,followUps:r,unit:o})=>{let i=[],l=[];for(let n of e){if(!n.code.map(oZ.fromCode).map(e=>e.toString()).includes(t))continue;let e=n.flagCodes?.find(e=>e.code?.startsWith("threshold|")),a=e?s8({thresholdIdCode:e,followUps:r}):void 0,s=a?aS({followUp:a}):void 0;s2(n)?i.push(s4({threshold:n,followUp:s,unit:o})):s0(n)&&l.push(s1({threshold:n,followUp:s,unit:o}))}return{rangeCompareThresholds:i,deltaCompareThresholds:l}})({thresholds:t??[],externalIdString:a,followUps:r,unit:"unit"in e?e.unit:void 0}),d=(({externalItem:e})=>
3{let t=oZ.fromCode(e.code);if(s7(e))return{externalSystemCodeIdentifier:t,title:t.toString(),unit:void 0,thresholdBounds:{proposed:null,saved:null}};let r=e.constraints.decimalPlaces??2,o=Math.pow(10,-r),i=sJ(e?.constraints.maxValue)||sJ(e?.constraints.minValue)?null:e.constraints.maxValue-e.constraints.minValue;return{externalSystemCodeIdentifier:t,title:e.code.display??e.code.code,unit:e.unit,thresholdBounds:{proposed:{decimalPlaces:r,rangeCompare:{min:e.constraints.minValue,max:e.constraints.maxValue},deltaCompare:{min:o,max:i}},saved:null}}})({externalItem:e}),u=(({externalItem:e,externalSystemCodeIdentifier:t,calculations:r,calculationInputCodings:o})=>{let i=s7(e),l=!i&&void 0!==e.calculationStatus,n=s5({externalIdentifier:t,calculations:r});return l||n?{itemType:"calculation-result",calculationActivationStatus:n?"active":i||!0!==e.calculationStatus?"inactive":"active",calculation:(({externalIdentifier:e,calculationInputCodings:t,calculations:r})=>{if("unable-to-provide-calculation-input-codings"===t)return{state:"unable-to-provide-calculation-input-codings"};if(!r||0===r.length)return{state:"complete"};let o=new Set;r.forEach(t=>{s5({externalIdentifier:e,calculations:[t]})&&t.input.flatMap(e=>e.codings).forEach(e=>{let t=oZ.fromCode(e);o.add(t)})});let i=[];for(let e of o)t.some(t=>oZ.fromCode(t).eq(e))||i.push(e);return 0===i.length?{state:"complete"}:{state:"incomplete",missingInputs:i}})({externalIdentifier:t,calculationInputCodings:o,calculations:r})}:{itemType:"instrument"}})({externalItem:e,externalSystemCodeIdentifier:n,calculations:o,calculationInputCodings:i}),h=(({rangeCompareThresholds:e,deltaCompareThresholds:t})=>e.length>0||t.length>0?{state:"configured",thresholds:{rangeCompare:e,deltaCompare:t,overdue:null,note:null}}:{state:"empty"})({rangeCompareThresholds:s,deltaCompareThresholds:c}),g=l.find(e=>"rangeCompare"===e.logic&&oZ.fromCode(e.code).toString()===a),m=l.find(e=>"deltaCompare"===e.logic&&oZ.fromCode(e.code).toString()===a),p=sJ(g?.low)?null:Number(g.low),f=sJ(g?.high)?null:Number(g.high),w=g?.decimals??null,v=sJ(m?.low)?null:Number(m.low),b=sJ(m?.high)?null:Number(m.high),y=m?.decimals??null;return sJ(p)||sJ(f)||sJ(w)||sJ(v)||sJ(b)||sJ(y)?{...d,...u,...h,hasAllThresholdBounds:!1,thresholdBounds:{...d.thresholdBounds,saved:{decimalPlaces:w,rangeCompare:{min:p,max:f},deltaCompare:{min:v,max:b,decimalPlaces:y}}}}:{...d,...u,...h,hasAllThresholdBounds:!0,thresholdBounds:{...d.thresholdBounds,saved:{decimalPlaces:w,rangeCompare:{min:p,max:f},deltaCompare:{min:v,max:b}}}}},s9=({system:e,externalItems:t,thresholds:r,followUps:o,calculations:i,calculationInputCodings:l,inactivityLimitDays:n,triggerNoteFlags:a,triggerOverdueFlags:s,overdueReminderTime:c,autoProcessOverdues:d,allowableThresholds:u})=>{if("processing"===(({thresholds:e})=>null==e?"processing":"ready")({thresholds:r}))return{processingState:"processing"};let h=t.flatMap(e=>"children"in e?e.children:[e]),g=(({externalItems:e,thresholds:t,followUps:r,calculations:o,calculationInputCodings:i=[],allowableThresholds:l})=>{let n=new Map,a=[];return e.forEach(e=>{let{system:s,code:c}=oZ.fromCode(e.code);n.has(s)||n.set(s,new Map);let d=n.get(s),u="children"in e?(({externalParentItem:e,configurationThresholds:t,followUps:r,calculations:o,calculationInputCodings:i=[],allowableThresholds:l})=>{let n=oZ.fromCode(e.code),a=(({externalItems:e,thresholds:t,followUps:r,calculations:o,calculationInputCodings:i=[],allowableThresholds:l,includeMissingItems:n=!0})=>{let a;if(n){let r=[...(({thresholds:e,externalItems:t})=>{if(!e||0===e.length)return[];let r=sK(e.flatMap(e=>e.code).map(oZ.fromCode),e=>e.toString()),o=new Set(t.map(e=>oZ.fromCode(e.code).toString()));return r.filter(e=>!o.has(e.toString())).map(e=>s3({system:e.system,code:e.code}))})({thresholds:t,externalItems:e}),...(({calculations:e,externalItems:t})=>{if(!e||0===e.length)return[];let r=sK(e.flatMap(e=>e.outputCodings.component??[]).map(oZ.fromCode),e=>e.toString()),o=new Set(t.map(e=>oZ.fromCode(e.code).toString()));return r.filter(e=>!o.has(e.toString())).map(e=>s3({system:e.system,code:e.code}))})({calculations:o,externalItems:e})];a=[...e,...sK(r,e=>oZ.fromCode(e.code).toString())]}else a=e;let s=new Map,c=[];
3return a.forEach(e=>{let{system:n,code:a}=oZ.fromCode(e.code);s.has(n)||s.set(n,new Map);let d=s.get(n),u=s6({externalItem:e,configurationThresholds:t,followUps:r,calculations:o,calculationInputCodings:i,allowableThresholds:l});d.set(a,u),c.push([n,a])}),{data:s,keys:c}})({externalItems:e.children,thresholds:t??[],followUps:r,calculations:o,calculationInputCodings:i,allowableThresholds:l,includeMissingItems:!1}),s=a.keys.some(([e,t])=>{let r=a.data.get(e)?.get(t);return"configured"===r?.state})?"configured":"empty";return{externalSystemCodeIdentifier:n,title:e.code.display??e.code.code,state:s,children:a}})({externalParentItem:e,configurationThresholds:t,followUps:r,calculations:o,calculationInputCodings:i,allowableThresholds:l}):s6({externalItem:e,configurationThresholds:t,followUps:r,calculations:o,calculationInputCodings:i,allowableThresholds:l});d.set(c,u),a.push([s,c])}),{data:n,keys:a}})({externalItems:t,thresholds:r,followUps:o,calculations:i,calculationInputCodings:l,allowableThresholds:u}),m=(({thresholds:e,externalItems:t,followUps:r=[]})=>{let o=new Map,i=[];if(!e)return{data:o,items:i};for(let l of e.filter(a_)){let e=aq({thresholdFlagCodes:l.flagCodes??[],followUps:r}),n=aT({threshold:l,followUp:e?aS({followUp:e}):void 0,externalItems:t});for(let e of(i.push(n),l.code)){let{system:t,code:r}=e;o.has(t)||o.set(t,new Map);let i=o.get(t);i.has(r)||i.set(r,[]),i.get(r).push(n)}}return{data:o,items:i}})({thresholds:r,externalItems:h,followUps:o}),p=(({triggerNoteFlags:e})=>e?{state:"active"}:{state:"inactive"})({triggerNoteFlags:a}),f=(({triggerOverdueFlags:e,overdueReminderTime:t,autoProcessOverdues:r})=>({state:e?"active":"inactive",defaultOverdueReminderTime:"23:00",overdueReminderTime:function(e){if(sJ(e))return null;let t=r9(r4(),function e(t){return{kind:"validation",type:"iso_time",reference:e,async:!1,expects:null,requirement:rE,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&rA(this,"time",e,t),e}}}()),r=r9(r4(),function e(t){return{kind:"validation",type:"iso_time_second",reference:e,async:!1,expects:null,requirement:rP,message:t,"~run"(e,t){return e.typed&&!this.requirement.test(e.value)&&rA(this,"time-second",e,t),e}}}()),o=oe(t,e),i=oe(r,e);if(!o.success&&!i.success)return null;if(o.success)return e;if(i.success){let[t,r]=e.split(":");return`${t}:${r}`}return null}(t),autoProcessOverdues:r??!1}))({triggerOverdueFlags:s,overdueReminderTime:c,autoProcessOverdues:d});return{processingState:"ready",instrumentThresholdGroups:g,combinationThresholds:m,inactivity:(({system:e,inactivityLimitDays:t,followUps:r})=>{if(!t)return{state:"inactive"};let o=null;return r&&(o=(({system:e,followUps:t})=>{let r=oZ.fromCode({system:e,code:"inactivity"});return t?.find(e=>e.flagCodes.some(e=>oZ.fromCode(e).eq(r)))})({system:e,followUps:r})),{state:"active",inactivityLimitDays:t,followUp:o?aS({followUp:o}):null}})({system:e,inactivityLimitDays:n,followUps:o}),comments:p,overdue:f}},ce=e=>({delete:!0,flagCodes:[e.identifierCode],flagPriority:e.flagPriority}),ct=e=>{let t=(0,eS.jE)(),r=tV(),o=am({...e,mutation:{...e?.mutation,onSuccess:async(o,i,l)=>{(0,J.o)({title:r("ce.workflow-editor.toast.workflow-deleted.title"),message:r("ce.workflow-editor.toast.workflow-deleted.description"),type:"success"});let n=ag(i.templateId);t.invalidateQueries({queryKey:n}),await e?.mutation?.onSuccess?.(o,i,l)}}});return{...o,mutate:e=>o.mutate({templateId:e.templateId,data:ce(e.data)}),mutateAsync:e=>o.mutateAsync({templateId:e.templateId,data:ce(e.data)})}},cr=(0,eW.createContext)(null),co=(cr.Provider,({children:e,externalItems:t})=>(0,eM.jsx)(cr.Provider,{value:t,children:e})),ci=(e={includeChildrenOfParentItems:!0})=>{let t=(0,eW.useContext)(cr);if(!t)throw Error("Failed to obtain external items, ensure all calls to useExternalItems are placed within a ExternalItemsProvider.");return t.flatMap(t=>{let r=oe(oC,t);return r.success?e.includeChildrenOfParentItems?r.output.children:[]:oV(oj,t)})},cl=()=>{let e=(0,eW.useContext)(cr);if(!e)throw Error("Failed to obtain external items, ensure all calls to useExternalItems are placed within a ExternalItemsProvi
3der.");return e.map(e=>{let t=oe(oC,e);return t.success?t.output:null}).filter(oR)},cn=()=>{let e,t,r,{identifier:o,calculationInputCodings:i}=ts(),{system:l}=aI(),n=ci({includeChildrenOfParentItems:!1}),a=cl(),s=(e=((e,t)=>{let r,{query:o,request:i}=t??{},l=o?.queryKey??au(e),n=(r=ad(),(e,t)=>r(`/api/configuration-templates/${e}`,{...t,method:"GET"}));return{queryKey:l,queryFn:({signal:t})=>n(e,{signal:t,...i}),...o}})(o,void 0),{...(0,eC.U)(e,void 0),queryKey:e.queryKey}),c=(t=((e,t)=>{let r,{query:o,request:i}=t??{},l=o?.queryKey??ag(e),n=(r=ad(),(e,t)=>r(`/api/configuration-templates/${e}/follow-ups`,{...t,method:"GET"}));return{queryKey:l,queryFn:({signal:t})=>n(e,{signal:t,...i}),...o}})(o,void 0),{...(0,eC.U)(t,void 0),queryKey:t.queryKey}),d=(r=((e,t,r)=>{let o,{query:i,request:l}=r??{},n=i?.queryKey??ap(e,t),a=(o=ad(),(e,t,r)=>{let i,l;return o((i=new URLSearchParams,Object.entries(t||{}).forEach(([e,t])=>{void 0!==t&&i.append(e,null===t?"null":t.toString())}),(l=i.toString()).length>0?`/api/configuration-templates/${e}/allowable-thresholds?${l}`:`/api/configuration-templates/${e}/allowable-thresholds`),{...r,method:"GET"})});return{queryKey:n,queryFn:({signal:r})=>a(e,t,{signal:r,...l}),...i}})(o,void 0,void 0),{...(0,eC.U)(r,void 0),queryKey:r.queryKey});if(200!==s.data.status)throw Error("Failed to load template configuration");if(200!==c.data.status)throw Error("Failed to load follow-ups");
3if(200!==d.data.status)throw Error("Failed to load allowable thresholds");let u=s.data.data.configuration,h=c.data.data.data,g=d.data.data.data;return s9({system:l,externalItems:[...n,...a],thresholds:u?.thresholds,followUps:h,calculations:u?.calculations,calculationInputCodings:i,overdueReminderTime:u?.overdueReminderTime,autoProcessOverdues:u?.autoProcessOverdues,triggerOverdueFlags:u?.triggerOverdueFlags,inactivityLimitDays:u?.inactivityLimitDays,triggerNoteFlags:u?.triggerNoteFlags,allowableThresholds:g})},ca=(0,eW.createContext)(null),cs=({children:e,value:t})=>(0,eM.jsx)(ca.Provider,{value:t,children:e}),cc=({children:e,...t})=>(0,eM.jsx)(cs,{value:t,children:e}),cd=()=>{let e=(0,eW.useContext)(ca);if(!e)throw Error("usePatientContext must be used within a PatientProvider");return e},cu=()=>{let e,t,{identifier:r,calculationInputCodings:o}=ts(),{system:i}=cd(),l=ci({includeChildrenOfParentItems:!1}),n=cl(),a=(e=((e,t)=>{let r,{query:o,request:i}=t??{},l=o?.queryKey??[`/api/patients/${e}/configuration`],n=(r=ad(),(e,t)=>r(`/api/patients/${e}/configuration`,{...t,method:"GET"}));return{queryKey:l,queryFn:({signal:t})=>n(e,{signal:t,...i}),...o}})(r,void 0),{...(0,eC.U)(e,void 0),queryKey:e.queryKey}),s=(t=((e,t)=>{let r,{query:o,request:i}=t??{},l=o?.queryKey??[`/api/patients/${e}/follow-ups`],n=(r=ad(),(e,t)=>r(`/api/patients/${e}/follow-ups`,{...t,method:"GET"}));return{queryKey:l,queryFn:({signal:t})=>n(e,{signal:t,...i}),...o}})(r,void 0),{...(0,eC.U)(t,void 0),queryKey:t.queryKey});if(200!==a.data.status)throw Error("Failed to load patient configuration");if(200!==s.data.status)throw Error("Failed to load follow-ups");let c=a.data.data.data,d=s.data.data.data;return s9({system:i,externalItems:[...l,...n],thresholds:c?.thresholds,followUps:d,calculations:c?.calculations,calculationInputCodings:o,triggerOverdueFlags:c?.triggerOverdueFlags,overdueReminderTime:c?.overdueReminderTime,autoProcessOverdues:c?.autoProcessOverdues,inactivityLimitDays:c?.inactivityLimitDays,triggerNoteFlags:c?.triggerNoteFlags})};function ch(e){let{title:t}=e;return(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",children:[(0,eM.jsx)(cg,{...e}),(0,eM.jsx)(w.h,{as:"span",variant:"xs",children:t})]})}function cg(e){let{triggerKey:t,code:r}=e;if(r)switch(r){case"overdue":return(0,eM.jsx)(c.a,{_px:"l",children:(0,eM.jsx)(Q.A,{})});case"note":return(0,eM.jsx)(c.a,{_px:"l",children:(0,eM.jsx)(X.A,{})})}return t?(0,eM.jsx)(rm,{triggerKey:e.triggerKey}):null}let cm=e=>{let{children:t}=e;return(0,eM.jsx)(B.v,{_type:"positive",children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"center",children:[(0,eM.jsx)(ee.A,{style:{width:16,height:16}})," ",t]})})},cp=e=>{let{hasWorkflow:t,numberOfTasks:r}=e,o=tV();return(0,eM.jsx)(B.v,{children:t?o("ce.workflow-builder.trigger-card.workflow-summary.tag",{value:r.toString()},{n:r}):o("ce.workflow-builder.trigger-card.no-workflow-summary.tag")})},cf=e=>{let{title:t,icon:r,isHighlighted:o,triggerKey:i,code:l,followUpTasks:s,followUpStatus:u,workflowName:h,menu:g,hasWorkflow:m,onAddWorkflow:p}=e,f=s.length>0||"keep-open"!==u,v=tV(),b=(0,eW.useId)(),y=(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",children:[(0,eM.jsxs)(d.B,{_gap:"l",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(c.a,{style:{flexShrink:0},children:r}),(0,eM.jsx)(ch,{triggerKey:i,code:l,title:t}),h&&(0,eM.jsx)(cm,{children:h})]}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(c.a,{width:"l"}),(0,eM.jsx)(c.a,{children:(0,eM.jsx)(cp,{hasWorkflow:m,numberOfTasks:s.length})})]})]}),(0,eM.jsx)(c.a,{children:g})]});return(0,eM.jsxs)(P.Up,{name:"trigger item",backgroundColor:o?"blue":void 0,children:[(0,eM.jsx)(P.Up.Summary,{omitOpenIndicator:!0,_p:"l",children:y}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",_px:"l",_pt:"base",_pb:"l",children:[(0,eM.jsx)(c.a,{width:"l"}),(0,eM.jsx)(d.B,{_gap:"l",children:f?(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(w.h,{variant:"xs",id:b,children:v("ce.workflow-builder.trigger-card.automated-actions-list.title")}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",as:"ul","aria-labelledby":b,children:[u&&"keep-open"!==u&&(0,eM.jsx)("li",{children:(0,eM.jsx)(iy,{status:u})}),s?.map(e=>(0,eM.jsx)("li",{children:(0,eM.jsx)(is,{task:e})},e.code?.map(e=>e.code).join("")))]})]}):(0,eM.jsx)(eM.Fragment,{children:(0,eM.jsx)(n.EY,{children:(0,eM.jsx)(a.N,{onClick:p,children:v("ce.workflow-builder.trigger-card.details.empty.add-workflow-button.text")})})})})]})]})};var cw=function(e,t,r){return void 0===r&&(r={}),function(o,i,l){try{var n=!l.shouldUseNativeValidation&&"all"===l.criteriaMode;return Promise.resolve(async function(e,t,r){let o=await e["~run"]({value:t},rj(r));return{typed:o.typed,success:!o.issues,output:o.value,issues:o.issues}}(e,o,Object.assign({},t,{abortPipeEarly:!n}))).then(function(e){if(e.issues){for(var t={};e.issues.length;){var i=e.issues[0],a=rT(i);if(a&&(t[a]||(t[a]={message:i.message,type:i.type}),n)){var s=t[a].types,c=s&&s[i.type];t[a]=(0,eE.Gb)(a,n,t,i.type,c?[].concat(c,i.message):i.message)}e.issues.shift()}return{values:{},errors:(0,eq.H)(t,l)}}return{values:r.raw?o:e.output,errors:{}}})}catch(e){return Promise.reject(e)}}};let cv=function e(t,r,o){return{kind:"schema",type:"variant",reference:e,expects:"Object",async:!1,key:t,options:r,message:o,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(r&&"object"==typeof r){let o,i=0,l=this.key,n=[],a=(e,s)=>
3{for(let c of e.options){if("variant"===c.type)a(c,new Set(s).add(c.key));else{let e=!0,a=0;for(let t of s){let o=c.entries[t];if(t in r?o["~run"]({typed:!1,value:r[t]},rU).issues:"exact_optional"!==o.type&&"optional"!==o.type&&"nullish"!==o.type){e=!1,l!==t&&(i<a||i===a&&t in r&&!(l in r))&&(i=a,l=t,n=[]),l===t&&n.push(c.entries[t].expects);break}a++}if(e){let e=c["~run"]({value:r},t);o&&(o.typed||!e.typed)||(o=e)}}if(o&&!o.issues)break}};if(a(this,new Set([this.key])),o)return o;rA(this,"type",e,t,{input:r[l],expected:r_(n,"|"),path:[{type:"object",origin:"value",input:r,key:l,value:r[l]}]})}else rA(this,"type",e,t);return e}}}("type",[rJ({type:rH("unlimited"),value:rQ(function e(t){return{kind:"schema",type:"never",reference:e,expects:"never",async:!1,message:t,get"~standard"(){return rS(this)},"~run"(e,t){return rA(this,"type",e,t),e}}}())}),rJ({type:rH("custom"),value:r9(rK(),rN(1))})]),cb=r5([rH("keep-open"),rH("processed"),rH("processed-unless-comment"),rH("escalated")]),cy=rJ({name:r9(r4(),rL(),rO()),"trigger-limit":cv,"alert-status":cb,"flag-priority":oo,"flag-codes":r$(oZ.stringSchema),"external-tasks":r$(rJ({identifier:r9(r4(),rF()),value:oF}))}),cx=rz(e=>({title:e.name,maxTriggers:"custom"===e["trigger-limit"].type?e["trigger-limit"].value:null,status:e["alert-status"],tasks:e["external-tasks"].map(e=>e.value).filter(oR).map(e=>({code:e.code??[],input:e.input??[],step:e.step??1})),flagCodes:e["flag-codes"].map(e=>oZ.fromString(e).toJSON()),flagPriority:e["flag-priority"]})),ck=function e(t){return{kind:"transformation",type:"raw_transform",reference:e,async:!1,"~run"(e,r){let o=t({dataset:e,config:r,addIssue:t=>rA(this,t?.label??"input",e,r,t),NEVER:null});return e.issues?e.typed=!1:e.value=o,e}}}(({dataset:e})=>{var t;let r=e.value.viewModel;return{name:r.title??"","alert-status":r.status??"keep-open","trigger-limit":"number"==typeof(t=r.maxTriggers)||iX(t)&&"[object Number]"==iQ(t)?{type:"custom",value:r.maxTriggers}:{type:"unlimited",value:void 0},"flag-codes":r?.flagCodes?.map(oZ.fromCode).map(e=>e.toString())??[],"flag-priority":r.flagPriority,"external-tasks":r.tasks?.map(e=>({identifier:globalThis.crypto.randomUUID(),value:e})).filter(oR)??[]}}),cj=rJ({code:r$(or),input:r$(rJ({type:rQ(r$(or)),value:rQ(r4())})),step:rK()}),cC=rJ({title:r4(),flagCodes:r$(or),flagPriority:oo,status:cb,tasks:r$(cj),maxTriggers:rY(rK())}),cA=r9(rJ({viewModel:cC}),ck),cI=r9(cy,cx),cS=(r9(r6(r6(function(e){let t={};for(let r of["alert-status","external-tasks"])t[r]=e.entries[r];return{...e,entries:t,get"~standard"(){return rS(this)}}}(cy))),rz(e=>({status:e?.["alert-status"]??"keep-open",tasks:e?.["external-tasks"]?.map(e=>e.value)?.filter(oR)?.map(e=>({code:e.code??[],input:e.input??[],step:e.step??1}))??[]}))),(e,t)=>{switch(t){case"keep-open":return e("ce.workflow-form.automated-actions.group.alert-status.option.keep-open.label");case"processed":return e("ce.workflow-form.automated-actions.group.alert-status.option.processed.label");case"processed-unless-comment":return e("ce.workflow-form.automated-actions.group.alert-status.option.processed-unless-comment.label");case"escalated":return e("ce.workflow-form.automated-actions.group.alert-status.option.escalated.label")}}),c_=()=>{let e=tV(),{register:t,formState:{errors:r}}=(0,eE.xW)(),o=cS.bind(null,e);return(0,eM.jsx)(et.A,{...t("alert-status"),label:e("ce.workflow-form.automated-actions.group.alert-status.label"),errorText:r["alert-status"]?.message,children:cI.entries["alert-status"].options.map(({literal:e})=>(0,eM.jsx)("option",{value:e,children:o(e)},e))})},cT=(e,t)=>{switch(t){case"custom":return e("ce.workflow-form.settings.group.trigger-limit.option.set-limit.label");case"unlimited":return e("ce.workflow-form.settings.group.trigger-limit.option.unlimited.label")}},cq=()=>{let e=tV(),{register:t,watch:r,formState:{errors:o}}=(0,eE.xW)(),i=cT.bind(null,e);return(0,eM.jsxs)(d.B,{role:"group",children:[(0,eM.jsx)(n.EY,{as:"h3",variant:"lg-strong",color:"on-surface",children:e("ce.worfklow-form.settings.title")}),(0,eM.jsxs)(d.B,{_gap:"m",children:[(0,eM.jsx)(er.o,{...t("name"),label:e("ce.workflow-form.settings.name.label"),type:"text",errorText:o.name?.message}),(0,eM.jsx)(d.B,{role:"group",_gap:"l",children:(0,eM.jsxs)(d.B,{_gap:"s",children:[(0,eM.jsx)(n.EY,{as:"h4",children:e("ce.workflow-form.settings.group.trigger-limit.name")}),(0,eM.jsx)(d.B,{_gap:"base",children:cy.entries["trigger-limit"].options.flatMap(({entries:e})=>(0,eM.jsx)(eo.Z,{...t("trigger-limit.type"),value:e.type.literal,id:`trigger-limit-${e.type.literal}`,label:i(e.type.literal),errorText:o["trigger-limit"]?.message},e.type.literal))}),"custom"===r("trigger-limit.type")&&(0,eM.jsxs)(d.B,{_gap:"m",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",align:"center",children:[(0,eM.jsx)(n.EY,{as:"label",htmlFor:"max",children:e("ce.workflow-form.settings.group.trigger-limit.label.max")}),(0,eM.jsx)(ei.s,{width:"sm",id:"max",type:"number",step:"1",...t("trigger-limit.value",{valueAsNumber:!0}),suffix:e("ce.workflow-form.settings.group.trigger-limit.times.suffix")}),(0,eM.jsx)(n.EY,{as:"label",htmlFor:"day",children:e("ce.workflow-form.settings.group.trigger-limit.label.per")}),(0,eM.jsxs)(el.I,{disabled:!0,id:"day",width:"md",children:[(0,eM.jsx)("option",{value:"day",children:e("ce.workflow-form.settings.group.trigger-limit.label.day")}),(0,eM.jsx)("option",{value:"week",children:e("ce.workflow-form.settings.group.trigger-limit.label.week")})]})]}),o["trigger-limit"]?.value?.message?(0,eM.jsx)(en.N,{describingId:"max",errorText:o["trigger-limit"]?.value?.message}):null]})]})})]})]})},cE=rJ({icon:r5(ov.map(e=>rH(e))),code:rJ({system:r9(r4(),rO()),code:r9(r4(),rO()),display:r9(r4(),rO())}),beforeAddTask:rQ(function e(){return{kind:"schema",type:"any",reference:e,expects:"any",async:!1,get"~standard"(){return rS(this)},"~run":e=>(e.typed=!0,e)}}()),ui:function e(t){return{kind:"schema",type:"function",reference:e,expects:"Function",async:!1,message:t,get"~standard"(){return rS(this)},"~run"(e,t){return"function"==typeof e.value?e.typed=!0:rA(this,"type",e,t),e}}}()}),cP=(function e(t,r,o){return{kind:"schema",type:"map",reference:e,expects:"Map",async:!1,key:t,value:r,message:o,get"~standard"(){return rS(this)},"~run"(e,t){let r=e.value;if(r instanceof Map)for(let[o,i]of(e.typed=!0,e.value=new Map,r)){let l=this.key["~run"]({value:o},t);
3if(l.issues){let n={type:"map",origin:"key",input:r,key:o,value:i};for(let t of l.issues)t.path?t.path.unshift(n):t.path=[n],e.issues?.push(t);if(e.issues||(e.issues=l.issues),t.abortEarly){e.typed=!1;break}}let n=this.value["~run"]({value:i},t);if(n.issues){let l={type:"map",origin:"value",input:r,key:o,value:i};for(let t of n.issues)t.path?t.path.unshift(l):t.path=[l],e.issues?.push(t);if(e.issues||(e.issues=n.issues),t.abortEarly){e.typed=!1;break}}l.typed&&n.typed||(e.typed=!1),e.value.set(l.value,n.value)}else rA(this,"type",e,t);return e}}}(r4(),cE),(0,eW.createContext)(null)),cD=({externalFollowUpTasksConfiguration:e,children:t})=>{let r=r3(r$(cE),e);return(0,eM.jsx)(cP.Provider,{value:(e=>{let t=new Map;for(let r of e){let e=oZ.fromCode(r.code);t.set(e.toString(),r)}return t})(r),children:t})},cB=()=>{let e=(0,eW.useContext)(cP);if(!e)throw Error("useExternalFollowUpTasksContext must be used within a ExternalFollowUpTasksProvider");return e},cM=r$(oL),cW=e=>{let{identifier:t,defaultValue:r,onChange:o}=e,i=cB().get(t);if(!i)throw Error(`No external follow up task configuration found for identifier: ${t}`);let l=(0,eW.useRef)(null),n=i.ui,a=e=>{o(r3(cM,e))};return(0,eW.useEffect)(()=>{l.current&&n({div:l.current,onChange:a,defaultValue:r})},[]),(0,eM.jsx)("div",{ref:l})},cN=e=>{let t=tV(),r=cB().get(e.identifier);if(!r)throw Error(`No external follow up task configuration found for identifier: ${e.identifier}`);let{onSubmit:o,onRequestClose:i,handleOnDelete:l,identifier:n,defaultValue:a,allTasks:s,titleId:c}=e,h=(0,eE.mN)({mode:"onSubmit",defaultValues:{"external-task":a||{}},resolver:async(e,t,o)=>{let i=await cw(rJ({"external-task":function(e){let t=void Array.isArray(void 0),r=void Array.isArray(void 0),o={};for(let i in e.entries)o[i]=!t||t.includes(i)?function e(t,r){return{kind:"schema",type:"non_optional",reference:e,expects:"!undefined",async:!1,wrapped:t,message:r,get"~standard"(){return rS(this)},"~run"(e,t){return void 0!==e.value&&(e=this.wrapped["~run"](e,t)),void 0===e.value&&rA(this,"type",e,t),e}}}(e.entries[i],r):e.entries[i];return{...e,entries:o,get"~standard"(){return rS(this)}}}(oF)}))(e,t,o);if(Object.keys(i.errors).length>0)return{values:{},errors:i.errors};let{beforeAddTask:l}=r;if(!l)return{values:e,errors:{}};let n=await (async()=>{let t=[...s||[],e["external-task"]],r=await l({taskInputItems:e["external-task"].input||[],allTasks:t});return r.isValid?{values:{},errors:{}}:{values:{},errors:{"external-task":{type:"custom",message:r.errorMessage}}}})();return Object.keys(n.errors).length>0?{values:{},errors:n.errors}:{values:e,errors:{}}}}),g=cB().get(n);if(!g)throw Error(`No external follow up task configuration found for identifier: ${n}`);let m=(0,eW.useId)(),p=h.watch("external-task"),f=p?.input?.some(e=>e.value)??!1;return(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(j.yZ.Header,{children:(0,eM.jsx)(j.yZ.Title,{id:c,children:t("ce.workflow-builder.add-external-follow-up-modal.title",{name:g.code.display})})}),(0,eM.jsx)(b.c,{}),(0,eM.jsxs)(j.yZ.Body,{id:m,as:"form",onSubmit:h.handleSubmit(o),children:[(0,eM.jsx)("div",{role:"alert",children:h.formState.errors["external-task"]?.message&&(0,eM.jsx)(x.A,{color:"red",icon:k.A,children:h.formState.errors["external-task"]?.message})}),(0,eM.jsx)(eE.xI,{control:h.control,name:"external-task",render:({field:e})=>(0,eM.jsx)(cW,{identifier:n,onChange:t=>e.onChange({code:[g.code],input:t,step:1}),defaultValue:a?.input})})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsxs)(d.B,{axis:"x",justify:"between",width:"full",children:[(0,eM.jsx)(j.yZ.Actions,{children:(0,eM.jsx)(N.t,{onClick:l,textColor:"red",children:t("ce.generic.button-remove.label")})}),(0,eM.jsxs)(j.yZ.Actions,{children:[(0,eM.jsx)(N.t,{onClick:i,children:t("ce.generic.button-cancel.label")}),(0,eM.jsx)(u.j,{type:"submit",form:m,disabled:!f,children:t("ce.workflow-builder.add-external-follow-up-modal.submit-button.label")})]})]})})]})},cO=({onRequestClose:e,handleOnDelete:t,titleId:r})=>{let o=tV();return(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(j.yZ.Header,{children:(0,eM.jsx)(j.yZ.Title,{id:r,children:o("ce.workflow-builder.add-external-follow-up-error-modal.title")})}),(0,eM.jsx)(b.c,{}
3),(0,eM.jsx)(j.yZ.Body,{children:(0,eM.jsx)(n.EY,{containsDangerousHtml:!0,as:"div",children:o("ce.workflow-builder.add-external-follow-up-error-modal.description")})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsxs)(j.yZ.Actions,{justify:"between",width:"full",children:[(0,eM.jsx)(N.t,{onClick:t,textColor:"red",children:o("ce.generic.button-remove.label")}),(0,eM.jsx)(N.t,{onClick:e,children:o("ce.generic.button-cancel.label")})]})})]})},cz=e=>{let{identifier:t,onRequestClose:r,onSubmit:o,handleOnDelete:i,defaultValue:l,allTasks:n,...a}=e,s=(0,eW.useId)();return(0,eM.jsx)(j.yZ,{...a,size:"m","aria-labelledby":s,children:(0,eM.jsx)(t8,{fallback:(0,eM.jsx)(cO,{titleId:s,onRequestClose:r,handleOnDelete:i}),children:(0,eM.jsx)(cN,{identifier:t,onRequestClose:r,onSubmit:o,handleOnDelete:i,defaultValue:l,allTasks:n,titleId:s})})})},cL=e=>{let{priority:t}=e,r=tV(),o=cB(),{tasks:i,form:l,openEditDialog:a,openAddDialog:s}=(()=>{let e=(0,eE.xW)(),{append:t,remove:r,update:o}=(0,eE.jz)({name:"external-tasks"}),i=e.watch("external-tasks")??[];return{tasks:i,form:e,openEditDialog:async(e,t)=>{let l=t.value.code?.[0];if(!l)return;let n=oZ.fromCode(l),a=i.filter(e=>e.identifier!==t.identifier).map(e=>e.value),s=await uB.show({identifier:n.toString(),defaultValue:t.value,allTasks:a});"submit"===s.action&&o(e,{identifier:t.identifier,value:s.task}),"delete"===s.action&&r(e)},openAddDialog:async e=>{let r=i.map(e=>e.value),o=await uB.show({identifier:e.toString(),allTasks:r});"submit"===o.action&&t({identifier:globalThis.crypto.randomUUID(),value:o.task})},remove:r}})(),u=l.watch("alert-status");return(0,eM.jsxs)(d.B,{axis:"y",_gap:"base",justify:"stretch",children:[(0,eM.jsx)(n.EY,{variant:"body-base-bold",children:r("ce.workflow-form.configured-actions.title")}),(0,eM.jsxs)(d.B,{as:"ul",axis:"y",_gap:"base",width:"full",children:[(0,eM.jsx)(c.a,{as:"li",width:"full",children:(0,eM.jsx)(cF,{status:u,priority:t})}),i.map((e,t)=>(0,eM.jsxs)(c.a,{as:"li",width:"full",children:[(0,eM.jsx)("input",{type:"hidden",...l.register(`external-tasks.${t}`),value:JSON.stringify(e)}),(0,eM.jsx)(is,{variant:"cards",task:e.value,actions:(0,eM.jsx)(d.B,{axis:"x",_gap:"xs",children:(0,eM.jsx)(L.J,{onClick:()=>a(t,e),children:r("ce.generic.button-edit.label")})})})]},e.identifier))]}),o.size>0&&(0,eM.jsx)(cU,{onSelectedTask:s})]})};function cF({status:e,priority:t}){let{alertPriorityLabel:r,alertStatusLabel:o}=function(e){let t,{translate:r,priority:o,status:i}=e,l=lN({translate:r,priority:o});switch(i){case"processed":t=r("ce.threshold-detail-flow.automated-actions.alert-status.auto-processed.description.detailed",{alertPriorityName:""});break;case"processed-unless-comment":t=r("ce.threshold-detail-flow.automated-actions.alert-status.auto-processed-unless-comment.detailed",{alertPriorityName:""});break;case"escalated":t=r("ce.threshold-detail-flow.automated-actions.alert-status.escalated.detailed",{alertPriorityName:""});break;case"keep-open":t=r("ce.threshold-detail-flow.automated-actions.alert-status.keep-open.description.detailed",{alertPriorityName:""})}return{alertPriorityLabel:l,alertStatusLabel:t}}({translate:tV(),priority:t,status:e}),i=(0,eM.jsxs)(c.a,{children:[(0,eM.jsxs)(n.EY,{variant:"body-base-regular",children:[r," "]}),(0,eM.jsx)(n.EY,{variant:"body-base-light",children:o})]});switch(e){case"escalated":return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",_p:"base",children:[(0,eM.jsx)(_.A,{color:"primary"}),i]});case"keep-open":return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",_p:"base",children:[(0,eM.jsx)(rc,{priority:t}),i]});case"processed":return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",_p:"base",children:[(0,eM.jsx)(M.A,{color:"primary"}),i]});case"processed-unless-comment":return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",_p:"base",children:[(0,eM.jsx)(ea.A,{color:"primary"}),i]})}}let cU=({onSelectedTask:e})=>{let t=tV(),r=cB();return(0,eM.jsxs)(d.B,{axis:"y",_gap:"base",children:[(0,eM.jsx)(n.EY,{variant:"body-base-bold",children:t("ce.workflow-form.add-actions.title")}),(0,eM.jsx)(d.B,{axis:"x",_gap:"xl",children:Array.from(r).map(([t,r])=>{let o=oZ.parseString(t);return(0,eM.jsx)(s.Z,{as:"button",type:"button",border:!0,borderRadius:"xxs",hoverBackgroun
3dColor:"primary",onClick:()=>e(o),style:{maxWidth:180},children:(0,eM.jsxs)(d.B,{axis:"y",_gap:"l",align:"center",width:"full",children:[(0,eM.jsx)(c.a,{backgroundColor:"primary",borderRadius:"xxxxs",children:(0,eM.jsx)(I.I,{name:r.icon,color:"primary-dark"})}),(0,eM.jsx)(n.EY,{variant:"body-base-regular",children:r.code.display})]})},o.toString())})})]})},cR=e=>{let{priority:t,title:r,tagText:o,children:i,slots:l}=e;return(0,eM.jsxs)(s.Z,{border:!0,padding:!1,borderRadius:"xxs",children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(j.yZ.Title,{children:r}),(0,eM.jsx)(rd,{priority:t}),(0,eM.jsx)(B.v,{_variant:"bordered",_type:"neutral",children:o})]}),(0,eM.jsx)(c.a,{style:{marginLeft:"auto"},children:l?.actions})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{children:i})]})};function cV(e,t){return e<t?"completed":e===t?"current":"upcoming"}let c$=e=>{let{trigger:t,defaultValues:r,onCancel:o,onSubmit:i}=e,l=tV(),n=(0,eW.useId)(),a=(0,eW.useId)(),s=function(){let{steps:e,onComplete:t}={steps:[{},{}],onComplete:()=>{}},[r,o]=(0,eW.useState)(0),[i,l]=(0,eW.useState)({}),n=e.length,a=0===r,s=r===n-1,c=(0,eW.useCallback)(()=>{r>0&&o(e=>e-1)},[r]),d=(0,eW.useCallback)(async(a,c)=>{if(a!==r)return;let d=e[a];if(d.onSubmit&&!await d.onSubmit(c))return;let u={...i,[a]:c};if(l(u),s){let e=Array.from({length:n},(e,t)=>u[t]);await t(e)}else o(e=>e+1)},[r,e,s,i,t,n]);return{currentStep:r,totalSteps:n,isFirstStep:a,isLastStep:s,goBack:c,submitStep:d,getStepData:(0,eW.useCallback)(e=>i[e],[i]),reset:(0,eW.useCallback)(()=>{o(0),l({})},[])}}(),c=(0,eE.mN)({resolver:cw(cy),shouldUseNativeValidation:!1,defaultValues:r}),h=(0,eE.mN)({resolver:cw(cy),shouldUseNativeValidation:!1,defaultValues:r}),g=h.formState.isSubmitted&&!1===h.formState.isSubmitSuccessful;return(0,eM.jsx)(cR,{title:l("ce.workflow-form.create.title"),priority:t.priority,tagText:t.description,slots:{actions:(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(L.J,{onClick:o,children:l("ce.global.cancel")}),(0,eM.jsx)(N.t,{leadingIcon:(0,eM.jsx)(es.A,{}),onClick:()=>{let e=s.getStepData(0);e&&(c.setValue("name",e.name),c.setValue("trigger-limit",e["trigger-limit"])),s.goBack()},disabled:s.isFirstStep,children:l("ce.global.back")}),(0,eM.jsx)(u.j,{type:"submit",form:0===s.currentStep?n:a,trailingIcon:s.isLastStep?void 0:(0,eM.jsx)(ec.A,{}),isPending:e.isPending,children:l(s.isLastStep?"ce.global.save":"ce.global.next")})]})},children:(0,eM.jsxs)(d.B,{_gap:"l",width:"full",align:"stretch",children:[(0,eM.jsx)(d.B,{width:"full",align:"stretch",children:(0,eM.jsxs)(ed.g,{children:[(0,eM.jsx)(ed.g.Step,{state:cV(0,s.currentStep),title:`1. ${l("ce.workflow-form.workflow-details.name.label")}`}),(0,eM.jsx)(ed.g.Step,{state:cV(1,s.currentStep),title:`2. ${l("ce.workflow-form.automated-actions.name.label")}`})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)("div",{role:"alert",children:g&&(0,eM.jsx)(rb,{errorMessage:l("ce.threshold-detail-flow.error-banner.could-not-save.description")})}),0===s.currentStep&&(0,eM.jsx)(eE.Op,{...c,children:(0,eM.jsx)(cZ,{formId:n,onSubmit:c.handleSubmit(e=>{h.setValue("name",e.name),h.setValue("trigger-limit",e["trigger-limit"]),s.submitStep(0,{name:e.name,"trigger-limit":e["trigger-limit"]})})})}),1===s.currentStep&&(0,eM.jsx)(eE.Op,{...h,children:(0,eM.jsx)(cG,{formId:a,priority:t.priority,onSubmit:h.handleSubmit(e=>{i(oV(cI,e))})})})]})})},cZ=({formId:e,onSubmit:t})=>(0,eM.jsx)(d.B,{as:"form",id:e,role:"form",_gap:"l",width:"full",align:"stretch",onSubmit:t,children:(0,eM.jsx)(cq,{})}),cG=({formId:e,priority:t,onSubmit:r})=>{let o=(0,eE.xW)(),{fields:i}=(0,eE.jz)({name:"flag-codes"}),{register:l}=o;return(0,eM.jsxs)(d.B,{as:"form",id:e,role:"form",_gap:"l",width:"full",align:"stretch",onSubmit:r,children:[i.map((e,t)=>(0,eM.jsx)("input",{type:"hidden",...l(`flag-codes.${t}`)},e.id)),(0,eM.jsx)("input",{type:"hidden",...l("name")}),(0,eM.jsx)("input",{type:"hidden",...l("trigger-limit.type")}),(0,eM.jsx)("input",{type:"hidden",...l("trigger-limit.value")}),(0,eM.jsx)("input",{type:"hidden",...l("flag-priority")}),(0,eM.jsx)(c_,{}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(cL,{priority:t})]})},cH=e=>{let{title:t,tagText:r,priority:o,onCancel:i,onSubmit:l,onInvalid:a,...s}=e,c=tV(),h=(0,eE.xW)(),g=(0,eW.useId)(),{fields:m}=(0,eE.jz)({name:"flag-codes"}),{register:p}=h,f=(0,eW.useId)(),w=h.formState.isSubmitted&&!1===h.formState.isSubmitSuccessful;return(0,eM.jsx)(cR,{title:t,priority:o,tagText:r,slots:{actions:(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",style:{marginLeft:"auto"},children:[(0,eM.jsx)(N.t,{onClick:i,disabled:h.formState.isSubmitting,children:c("ce.global.cancel")}),(0,eM.jsx)(u.j,{type:"submit",form:g,isPending:h.formState.isSubmitting,children:c("ce.global.save")})]})},children:(0,eM.jsxs)(d.B,{_gap:"l",width:"full",align:"stretch",children:[(0,eM.jsx)("div",{role:"alert",children:w&&(0,eM.jsx)(rb,{errorMessage:c("ce.threshold-detail-flow.error-banner.could-not-save.de
3scription")})}),(0,eM.jsxs)(d.B,{as:"form",title:t,id:g,role:"form",_gap:"l",width:"full",align:"stretch",onSubmit:h.handleSubmit(l,a),...s,children:[m?.map((e,t)=>(0,eM.jsx)("input",{type:"hidden",...p(`flag-codes.${t}`)},e.id)),(0,eM.jsx)("input",{type:"hidden",...p("flag-priority")}),(0,eM.jsx)(cq,{}),(0,eM.jsx)(b.c,{}),(0,eM.jsxs)(d.B,{as:"section",_gap:"l","aria-labelledby":f,children:[(0,eM.jsx)(n.EY,{as:"h3",variant:"lg-strong",color:"on-surface",id:f,children:c("ce.workflow-form.automated-actions.name.label")}),(0,eM.jsx)(c_,{}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(cL,{priority:o})]})]})]})})},cY=e=>{e.preventDefault()},cK=e=>{var t;let r,o,i,l,n,{templateId:a,defaultValues:s,trigger:c,onCancel:d,onSubmitSuccessful:u}=e,h=tV(),g=(0,eE.mN)({resolver:cw(cI),shouldUnregister:!0,shouldUseNativeValidation:!1,defaultValues:s}),m=(t={mutation:{onSuccess:u}},r=(0,eS.jE)(),o=tV(),i=am({...t,mutation:{...t?.mutation,onSuccess:void 0}}),l=e=>({templateId:e.templateId,data:(e=>{if(!e.title||!e.status||!e.tasks)throw TypeError("title, status, and tasks are required to create or update a follow-up");if(0===e.flagCodes.length)throw TypeError('flagCodes must include at least one identifier code (e.g. a threshold\'s "threshold|<uuid>" code) to create or update a follow-up');return{delete:!1,flagCodes:e.flagCodes,flagPriority:e.flagPriority,tasks:e.tasks,description:e.title,flagStatus:((e,t=1)=>[{step:t,status:(()=>{switch(e){case"escalated":return"escalated";case"processed":return"processed";case"processed-unless-comment":return"processedUnlessComment";case"keep-open":return null}})()}])(e.status)}})(e.data)}),n=async(e,i,l,n)=>{(0,J.o)({type:"success",title:o("ce.workflow-editor.toast.workflow-updated.title"),message:o("ce.workflow-editor.toast.workflow-updated.description")});let a=ag(l.templateId);r.invalidateQueries({queryKey:a}),await t?.mutation?.onSuccess?.(i,l,n)},{...i,mutate:e=>i.mutate(l(e),{onSuccess:(t,r,o)=>n(e.operation,t,r,o)}),mutateAsync:e=>i.mutateAsync(l(e),{onSuccess:(t,r,o)=>n(e.operation,t,r,o)})});g.formState.isDirty?globalThis.addEventListener("beforeunload",cY):globalThis.removeEventListener("beforeunload",cY),(0,eW.useEffect)(()=>()=>{globalThis.removeEventListener("beforeunload",cY)},[]);let p=()=>{d?.(g.formState.isDirty)};return(0,eM.jsx)(eE.Op,{...g,children:"add"===e.mode?(0,eM.jsx)(c$,{trigger:c,defaultValues:s,onCancel:p,onSubmit:e=>m.mutateAsync({templateId:a,operation:"create",data:e})}):(0,eM.jsx)(cH,{title:h("ce.workflow-form.update.title"),priority:c.priority,tagText:c.description,onCancel:p,onSubmit:e=>m.mutateAsync({templateId:a,operation:"update",data:e})})})},cJ=e=>{let t,r,{mode:o,viewModel:i,code:l,templateId:n,onClose:a,slots:s}=e,c=(0,eW.useId)(),u=tV();return(0,eM.jsx)("div",{onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),a())},children:(0,eM.jsx)(eu.N,{backgroundColor:"background",header:(0,eM.jsx)(eu.N.Header,{slotsAlignment:"start",leftActionSlot:(0,eM.jsx)(eh.s,{color:"primary",label:u("ce.global.back"),onClick:a,children:(0,eM.jsx)(es.A,{})}),children:(0,eM.jsxs)(d.B,{_gap:"base",align:"stretch",width:"full",children:[e.title&&("string"==typeof e.title?(0,eM.jsx)(D.D,{id:c,children:e.title}):e.title),s?.belowHeader&&("function"==typeof s.belowHeader?s.belowHeader(i):s.belowHeader)]})}),children:(0,eM.jsx)(eu.N.Main,{backgroundColor:"background",style:{paddingTop:0},children:(0,eM.jsx)(cK,{mode:o,templateId:n,onCancel:a,defaultValues:(t=i,r=l,t.followUp?oV(cA,{viewModel:t.followUp}):(e=>{let{flagCodes:t,flagPriority:r}=e;return{name:"","alert-status":"processed","flag-codes":t.map(e=>e.toString()),"flag-priority":r,"trigger-limit":{type:"unlimited"},"external-tasks":[]}})({flagCodes:[r?oZ.fromCode(r):null,oZ.fromCode(t)].filter(oR),flagPriority:t.priority})),onSubmitSuccessful:a,trigger:i},[i.code,i.priority].join("-"))})})})},cQ=e=>{let{code:t,triggers:r,otherTriggers:o,title:i,subtitle:l,onClose:n,slots:a}=e,s=tV(),c=ts().identifier,u=ct(),[h,g]=(0,eW.useState)(null),m=e=>{let t=e.flagCodes[0];if(!t)throw Error("Follow-up is missing its identifier flagCode");uq.show({icon:(0,eM.jsx)(Z.A,{}),title:s("ce.confirmation-modal.remove-workflow.title"),message:s("ce.confirmation-modal.remove-workflow.description"),primaryButtonLabel:s("ce.confirmation-modal.remove-workflow.button.confirm"),secondaryButtonLabel:s("ce.global.cancel"),task:()=>u.mutateAsync({templateId:c,data:{identifierCode:t,flagPriority:e.flagPriority}}).then(()=>({success:!0}
3)).catch(()=>({success:!1,message:s("ce.confirmation-modal.remove-workflow.error-message.description")}))}).then(uq.hide)},p=e=>{g(e)};return(0,eM.jsxs)(j.yZ.Body,{style:{padding:0},children:[h?(0,eM.jsx)(cJ,{mode:h.followUp?"edit":"add",viewModel:h,title:i,templateId:c,code:t??null,onClose:()=>g(null)}):(0,eM.jsx)(cX,{onClose:n,title:i,subtitle:l,slots:a,children:(0,eM.jsxs)(d.B,{_gap:"xl",width:"full",align:"stretch",children:[(0,eM.jsx)(c0,{title:s("ce.workflow-builder.triggers-section.title"),triggers:r,onEditWorkflow:p,onAddWorkflow:p,onDeleteWorkflow:m}),(0,eM.jsx)(c0,{title:s("ce.workflow-builder.other-triggers-section.title"),triggers:o,onEditWorkflow:p,onAddWorkflow:p,onDeleteWorkflow:m})]})}),(0,eM.jsx)(eg.l$,{})]})},cX=e=>{let{onClose:t,title:r,subtitle:o,slots:i,triggerBeingEdited:l,children:n}=e,a=tV();return(0,eM.jsx)(eu.N,{backgroundColor:"background",header:(0,eM.jsxs)(eu.N.Header,{slotsAlignment:"start",leftActionSlot:(0,eM.jsx)(eh.s,{color:"primary",label:a("ce.global.back"),onClick:t,children:(0,eM.jsx)(es.A,{})}),children:[(0,eM.jsx)(d.B,{axis:"x",_gap:"2xl",align:"center",children:(0,eM.jsxs)(d.B,{_gap:"base",children:["string"==typeof r?(0,eM.jsx)(D.D,{variant:"h2",children:r}):r,o]})}),i?.belowHeader&&(0,eM.jsx)(s.Z,{border:!0,_mt:"2xl",children:"function"==typeof i.belowHeader?i.belowHeader(l):i.belowHeader})]}),children:(0,eM.jsx)(eu.N.Main,{backgroundColor:"background",style:{paddingTop:0},children:n})})},c0=e=>{let{title:t,subtitle:r,triggers:o,onEditWorkflow:i,onAddWorkflow:l,onDeleteWorkflow:a}=e,c=tV(),u=(0,eW.useId)(),h=(e={})=>(0,eM.jsxs)(d.B,{width:"full",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(D.D,{id:u,variant:"h2",children:t}),(0,eM.jsx)(n.EY,{variant:"xs",color:"active",children:r})]}),(0,eM.jsx)(n.EY,{color:"on-surface-variant",children:e.bodyText})]});return o.length?(0,eM.jsxs)(d.B,{_gap:"xl",width:"full",align:"stretch",children:[h(),(0,eM.jsx)(d.B,{as:"ul",_gap:"l",width:"full",align:"stretch","aria-labelledby":u,children:o.map(e=>{let{followUp:t,priority:r}=e,o=oZ.fromCode(e),n=oG.fromPriorityAndCode(e),c=n.toString("-"),d=ay.includes(c)?c:void 0;return(0,eM.jsx)(s.Z,{"data-testid":n.toString(),borderRadius:"xs",as:"li",padding:!1,style:{listStyle:"none"},width:"full",children:(0,eM.jsx)(cf,{isHighlighted:e.isHighlighted,title:e.description,triggerKey:d,code:e.code,hasWorkflow:!!t,workflowName:t?.title??void 0,followUpStatus:t?.status??"keep-open",followUpTasks:t?.tasks??[],onAddWorkflow:()=>l(e),menu:(0,eM.jsx)(n9,{actions:{onEditWorkflow:t?()=>i(e):void 0,onAddWorkflow:t?void 0:()=>l(e),onDeleteWorkflow:t?()=>a(t):void 0}})})},o.toString()+r)})})]}):h({bodyText:c("ce.workflow-builder.triggers-section.empty")})},c1=e=>{let{title:t,value:r}=e;return(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",align:"baseline",children:[(0,eM.jsx)(c.a,{as:"dt",children:(0,eM.jsxs)(n.EY,{as:"span",variant:"medium",color:"on-surface-variant",children:[t,":"]})}),(0,eM.jsx)(n.EY,{as:"dd",color:"on-surface-variant",variant:"strong",children:r})]})},c2=e=>{let{unit:t,minValue:r,maxValue:o,decimalPrecision:i,deltaMin:l,deltaMax:n}=e,a=tV(),s=t$(),c=new Intl.NumberFormat(s,{minimumFractionDigits:i,maximumFractionDigits:i}),u=null===r&&null===o,h=null!==r?c.format(r):"â",g=null!==o?c.format(o):"â";return(0,eM.jsxs)(d.B,{as:"dl",axis:"x",_gap:"l",align:"stretch",style:{flexWrap:"nowrap"},children:[(0,eM.jsx)(c1,{title:a("ce.workflow-builder.instrument-info.precision.title"),value:oK({decimalPrecision:i})}),(0,eM.jsx)(c1,{title:a("ce.workflow-builder.instrument-info.trigger-limits.title"),value:u?a("ce.workflow-builder.instrument-info.trigger-limits.not-set"):`${h} ${t} - ${g} ${t}`}),(0,eM.jsx)(c1,{title:"[I18N] Increase/decrease limits",value:`${c.format(l)} ${t} - ${c.format(n)} ${t}`})]})},c4=e=>{let{currentStep:t,maxStep:r}=e,o=tV();return(0,eM.jsxs)(c.a,{backgroundColor:"background",width:"full",children:[(0,eM.jsx)(b.c,{version:"v2",color:"border"}),(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",width:"full",_p:"l",children:[t&&r&&(0,eM.jsx)(n.EY,{color:"slate-500",children:o("ce.global.step-x-of-y",{x:t.toString(),y:r.toString()})}),(0,eM.jsx)(c8,{...e})]})]})};function c8(e){let{currentStep:t,maxStep:r,onComplete:o,onPrevious:i,onClose:l,isCompleting:n,isPreviousButtonDisabled:a,actions:s}=e,c=tV();return s||(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(t??Number.MAX_SAFE_INTEGER)>1?(0,eM.jsx)(N.t,{onClick:i,disabled:a,children:c("ce.global.back")}):(0,eM.jsx)(N.t,{onClick:l,disabled:a,children:c("ce.global.cancel")}),t===r?(0,eM.jsx)(u.j,{isPending:n,trailingIcon:(0,eM.jsx)(ec.A,{}),onClick:o,children:c("ce.global.publish")}):(0,eM.jsx)(u.j,{type:"submit",form:"selected-triggers-form",trailingIcon:(0,eM.jsx)(ec.A,{}),children:c("ce.global.next")})]})}let c5=({title:e,tasks:t,maxTriggers:r,status:o,onEdit:i,onDelete:l})=>{let a=tV(),c=(0,eW.useId)(),u=td();return(0,eM.jsx)(s.Z,{border:!0,padding:!1,as:"article","aria-labelledby":c,borderRadius:"xxs",children:(0,eM.jsxs)(d.B,{_gap:"xl",width:"full",align:"stretch",_p:"l",children:[(0,eM.jsxs)(d.B,{justify:"between",align:"center",axis:"x",children:[(0,eM.jsx)(n.EY,{as:"h3",variant:"strong",truncate:!0,id:c,children:e||a("ce.global.workflow")}),u.canEdit&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",style:{marginLeft:"auto"},children:[i&&(0,eM.jsx)(L.J,{onClick:i,children:a("ce.generic.button-edit.label")}
3),l&&(0,eM.jsx)(eh.s,{label:a("ce.global.button.remove-trigger.label"),onClick:l,children:(0,eM.jsx)(Z.A,{})})]})]}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",as:"ul",children:[o&&"keep-open"!==o&&(0,eM.jsx)("li",{children:(0,eM.jsx)(iy,{status:o})}),t?.map(e=>(0,eM.jsx)("li",{children:(0,eM.jsx)(is,{task:e})},e.code?.map(e=>e.code).join(""))),(0,eM.jsx)("li",{children:(0,eM.jsx)(ix,{maxTriggers:r})})]})]})})};(0,eW.forwardRef)((e,t)=>{let r=(0,eW.useRef)(null),o=(0,eW.useCallback)(e=>{r.current=e,"function"==typeof t&&t(e)},[t]);return(0,eW.useEffect)(()=>{let e=r.current;if(!e)return;let t=e=>e.preventDefault();return e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("mousewheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t),e.removeEventListener("mousewheel",t)}},[]),(0,eM.jsx)(ei.s,{...e,ref:o})}).displayName="ThresholdStyledInput";let c7=(0,eW.forwardRef)((e,t)=>{let{helperText:r,errorText:o,label:i,...l}=e,n=(0,eW.useId)(),a=(0,eW.useRef)(null),s=(0,eW.useCallback)(e=>{a.current=e,"function"==typeof t&&t(e)},[t]);return(0,eW.useEffect)(()=>{let e=a.current;if(!e)return;let t=e=>e.preventDefault();return e.addEventListener("wheel",t,{passive:!1}),e.addEventListener("mousewheel",t,{passive:!1}),()=>{e.removeEventListener("wheel",t),e.removeEventListener("mousewheel",t)}},[]),(0,eM.jsx)(er.o,{...l,ref:s,label:i,id:n,errorText:o,helperText:r})});c7.displayName="ThresholdLabeledInput";let c3=e=>{let{title:t,min:r,max:o,unit:i,decimalPrecision:l,titleAside:n,deltaMin:a,deltaMax:s}=e;return(0,eM.jsxs)(d.B,{_gap:"base",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(D.D,{id:e.id,children:t}),n]}),(0,eM.jsx)(c2,{minValue:r,maxValue:o,unit:i??"",decimalPrecision:l,deltaMin:a,deltaMax:s})]})},c6=e=>{let{thresholdGroupRangesViewModel:t}=e,r=tV();if(sJ(t.min)||sJ(t.max))throw Error("Instrument min and max must be defined");let{register:o,handleSubmit:i,watch:l,setValue:u,clearErrors:h,formState:g,control:m}=(0,eE.xW)(),{fields:p}=(0,eE.jz)({control:m,name:"thresholds"}),f=l();return(0,eM.jsxs)(d.B,{as:"form",noValidate:!0,id:e.id,"aria-label":e["aria-label"],_gap:"l",width:"full",align:"stretch",onSubmit:i(t=>e.onSubmit?.(t)),children:[g.errors.root&&(0,eM.jsx)(x.A,{color:"red",children:(0,eM.jsx)(n.EY,{color:"current",children:g.errors.root.message})}),p.map((i,m)=>{let v=m-1,b=m+1,y=b<p.length,x=o(`thresholds.${m}.from`,{valueAsNumber:!0}),k=o(`thresholds.${m}.to`,{valueAsNumber:!0,onChange:y?e=>{let r=Number(e.target.value);if(Number.isNaN(r))return;let o=c9({value:r,decimalPrecision:t.decimalPrecision,direction:"up"});l(`thresholds.${b}.referencesPreviousToValue`)&&u(`thresholds.${b}.from`,o)}:void 0}),j=g.errors.thresholds?.[m]?.from,C=(()=>{if(!j?.type)return j?.message;let e=j.type,r="min_value"===e?"min":"max";return(0,eM.jsxs)(eM.Fragment,{children:["min"===r?"Waarde is te laag.":"Waarde is te hoog."," ",(0,eM.jsx)(a.N,{as:"button",type:"button",onClick:()=>{u(`thresholds.${m}.referencesPreviousToValue`,!1),"min_value"===e&&u(`thresholds.${m}.from`,t.min),"max_value"===e&&u(`thresholds.${m}.from`,t.max),h(`thresholds.${m}.from`)},children:"Vullen"})," ","met ",(0,eM.jsxs)("strong",{children:["instrument ",r]}),"."]})})(),A=g.errors.thresholds?.[m]?.to,I=(()=>{if(!A?.type)return A?.message;let e=A.type,r="min_value"===e?"min":"max";return(0,eM.jsxs)(eM.Fragment,{children:["min"===r?"Waarde is te laag.":"Waarde is te hoog."," ",(0,eM.jsx)(a.N,{as:"button",type:"button",onClick:()=>{u(`thresholds.${m}.referencesPreviousToValue`,!1),"min_value"===e&&u(`thresholds.${m}.to`,t.min),"max_value"===e&&u(`thresholds.${m}.to`,t.max),h(`thresholds.${m}.to`)},children:"Vullen"})," ","met ",(0,eM.jsxs)("strong",{children:["instrument ",r]}),"."]})})(),S={type:"number",step:oK({decimalPrecision:t.decimalPrecision}),min:t.min,max:t.max,width:"lg"},_=f.thresholds[v]?.to;return(0,eM.jsx)(s.Z,{border:!0,children:(0,eM.jsxs)(d.B,{_gap:"l",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(ra,{rangeColor:i.color}),(0,eM.jsx)(w.h,{variant:"xs",children:i.name})]}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"xl",children:[(0,eM.jsx)(c7,{label:r("prototype.ce.threshold-input.from.label"),"aria-label":`${i.name}, ${r("prototype.ce.threshold-input.from.label")}`,suffix:t.unit,...S,...x,onFocus:()=>{e.onFieldFocus?.({index:m,field:"from"})},onBlur:()=>{e.onFieldFocus?.(null)},errorText:C,helperText:v>=0&&_?(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(a.N,{as:"button",type:"button",onClick:()=>{let e=c9({value:_,decimalPrecision:t.decimalPrecision,direction:"up"});e>t.max&&(e=t.max),e<t.min&&(e=t.min),u(`thresholds.${m}.from`,e),u(`thresholds.${m}.referencesPreviousToValue`,!0)},children:"Vullen"})," ","met"," ",c9({value:_,decimalPrecision:t.decimalPrecision,direction:"up"})," ","(sluit aan op"," ",(0,eM.jsx)("strong",{children:f.thresholds[v]?.name}),")."]}):(0,eM.jsx)("span",{style:{color:"transparent"},children:"."})}),(0,eM.jsx)(c7,{label:r("prototype.ce.threshold-input.to.label"),"aria-label":`${i.name}, ${r("prototype.ce.threshold-input.to.label")}`,suffix:t.unit,...S,...k,onFocus:()=>{e.onFieldFocus?.({index:m,field:"to"})},onBlur:()=>{e.onFieldFocus?.(null)},errorText:I}),(0,eM.jsx)(c.a,{style:{alignSelf:"flex-end"},_mb:"xl",children:!l(`thresholds.${m}.editFrequency`)&&(0,eM.jsx)(L.J,{onClick:()=>{u(`thresholds.${m}.editFrequency`,!0)},children:"Edit frequency"})})]}),l(`thresholds.${m}.editFrequency`)&&(0,eM.jsxs)(d.B,{_gap:"l",_pb:"l",children:[(0,eM.jsx)(n.EY,{variant:"strong",children:"Aantal metingen"}),(0,eM.jsxs)(em.k,{children:[(0,eM.jsx)(eo.Z,{defaultChecked:!0,id:"frequency-once",value:"once",label:"Enkel: trigger voor iedere keer dat de meting binnen deze waarden valt",...o(`thresholds.${m}.frequency.type`)}),(0,eM.jsx)(eo.Z,{id:"frequency-multiple",value:"multiple",label:"Meerdere keren: trigger als er meerdere metingen binnen deze waarden vallen",...o(`thresholds.${m}.frequency.type`)})]}),(0,eM.jsx)(d.B,{_ml:"2xl",children:"multiple"===l(`thresholds.${m}.frequency.type`)&&(0,eM.jsxs)(d.B,{_gap:"l",children:[(0,eM.jsxs)(d.B,{axis:"x",align:"center",_gap:"l",children:[(0,eM.jsx)(n.EY,{children:"Trigger bij:"}),(0,eM.jsx)(ei.s,{type:"number",step:1,min:2,...o(`thresholds.${m}.frequency.count`,{valueAsNumber:!0}),suffix:"metingen"}),(0,eM.jsx)(n.EY,{children:"binnen de triggerwaarden, binnen"}),(0,eM.jsxs)(d.B,{axis:"x",children:[(0,eM.jsx)(ei.s,{type:"number",step:1,min:1,size:2,...o(`thresholds.${m}.frequency.timeframe`,{valueAsNumber:!0})}),(0,eM.jsxs)(el.I,{...o(`thresholds.${m}.frequency.unit`),children:[(0,eM.jsx)("option",{value:"days",children:"dagen"}),(0,eM.jsx)("option",{value:"weeks",children:"weken"})]})]})]}),(0,eM.jsxs)(em.k,{title:"Reset nadat trigger is geactiveerd?",children:[(0,eM.jsx)(eo.Z,{defaultChecked:!0,id:`frequency-${m}-should-reset-false`,value:"false",label:"Nee",...o(`thresholds.${m}.frequency.shouldReset`)}),(0,eM.jsx)(eo.Z,{id:`frequency-${m}-should-reset-true`,value:"true",label:"Ja",...o(`thresholds.${m}.frequency.shouldReset`)})]})]})})]})]})},i.id)})]})};function c9(e){var t,r;let o,i,l=(o=Math.pow(10,(t={value:e.value,decimalPrecision:e.decimalPrecision}).decimalPrecision),Math.round(t.value*o));return i=Math.pow(10,(r={valueCents:"up"===e.direction?l+1:l-1,decimalPrecision:e.decimalPrecision}).decimalPrecision),r.valueCents/i}let de=e=>{let t=tV(),{identifier:r}=ts(),{mutateAsync:o,isPending:i}=ah();return(0,eM.jsx)(c6,{...e,"aria-label":t("ce.thresholds.panel.action.edit"),isSubmitting:i,onFieldFocus:e.onFieldFocus,onSubmit:t=>{o({templateId:r,data:{configuration:{thresholds:t.thresholds.map(t=>({logic:"rangeCompare",system:e.system,code:[{system:e.system,code:e.code}],name:t.name,type:"ranges__threshold",low:String(t.from),high:String(t.to),flagPriority:"PH"}))}}})}})},dt=Math.sqrt(50),dr=Math.sqrt(10),di=Math.sqrt(2);function dl(e,t,r){let o,i,l,n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),s=n/Math.pow(10,a),c=s>=dt?10:s>=dr?5:s>
3=di?2:1;return a<0?(o=Math.round(e*(l=Math.pow(10,-a)/c)),i=Math.round(t*l),o/l<e&&++o,i/l>t&&--i,l=-l):(o=Math.round(e/(l=Math.pow(10,a)*c)),i=Math.round(t/l),o*l<e&&++o,i*l>t&&--i),i<o&&.5<=r&&r<2?dl(e,t,2*r):[o,i,l]}function dn(e,t,r){return dl(e*=1,t*=1,r*=1)[2]}function da(e,t){return null==e||null==t?0/0:e<t?-1:e>t?1:e>=t?0:0/0}function ds(e,t){return null==e||null==t?0/0:t<e?-1:t>e?1:t>=e?0:0/0}function dc(e){let t,r,o;function i(e,o,l=0,n=e.length){if(l<n){if(0!==t(o,o))return n;do{let t=l+n>>>1;0>r(e[t],o)?l=t+1:n=t}while(l<n)}return l}return 2!==e.length?(t=da,r=(t,r)=>da(e(t),r),o=(t,r)=>e(t)-r):(t=e===da||e===ds?e:dd,r=e,o=e),{left:i,center:function(e,t,r=0,l=e.length){let n=i(e,t,r,l-1);return n>r&&o(e[n-1],t)>-o(e[n],t)?n-1:n},right:function(e,o,i=0,l=e.length){if(i<l){if(0!==t(o,o))return l;do{let t=i+l>>>1;0>=r(e[t],o)?i=t+1:l=t}while(i<l)}return i}}}function dd(){return 0}let du=dc(da),dh=du.right,dg=(du.left,dc(function(e){return null===e?0/0:+e}).center,dh);function dm(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dp(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function df(){}var dw=1/.7,dv="\\s*([+-]?\\d+)\\s*",db="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",dx=/^#([0-9a-f]{3,8})$/,dk=RegExp(`^rgb\\(${dv},${dv},${dv}\\)$`),dj=RegExp(`^rgb\\(${dy},${dy},${dy}\\)$`),dC=RegExp(`^rgba\\(${dv},${dv},${dv},${db}\\)$`),dA=RegExp(`^rgba\\(${dy},${dy},${dy},${db}\\)$`),dI=RegExp(`^hsl\\(${db},${dy},${dy}\\)$`),dS=RegExp(`^hsla\\(${db},${dy},${dy},${db}\\)$`),d_={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function dT(){return this.rgb().formatHex()}function dq(){return this.rgb().formatRgb()}function dE(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=dx.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?dP(t):3===r?new dM(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?dD(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?dD(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=dk.exec(e))?new dM(t[1],t[2],t[3],1):(t=dj.exec(e))?new dM(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=dC.exec(e))?dD(t[1],t[2],t[3],t[4]):(t=dA.exec(e))?dD(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=dI.exec(e))?dF(t[1],t[2]/100,t[3]/100,1):(t=dS.exec(e))?dF(t[1],t[2]/100,t[3]/100,t[4]):d_.hasOwnProperty(e)?dP(d_[e]):"transparent"===e?new dM(0/0,0/0,0/0,0):null}function dP(e){return new dM(e>>16&255,e>>8&255,255&e,1)}function dD(e,t,r,o){return o<=0&&(e=t=r=0/0),new dM(e,t,r,o)}function dB(e,t,r,o){var i;return 1==arguments.length?((i=e)instanceof df||(i=dE(i)),i?new dM((i=i.rgb()).r,i.g,i.b,i.opacity):new dM):new dM(e,t,r,null==o?1:o)}function dM(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}function dW(){return`#${dL(this.r)}${dL(this.g)}${dL(this.b)}`}function dN(){let e=dO(this.opacity);return`${1===e?"rgb(":"rgba("}${dz(this.r)}, ${dz(this.g)}, ${dz(this.b)}${1===e?")":`, ${e})`}`}function dO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dz(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dL(e){return((e=dz(e))<16?"0":"")+e.toString(16)}function dF(e,t,r,o){return o<=0?e=t=r=0/0:r<=0||r>=1?e=t=0/0:t<=0&&(e=0/0),new dR(e,t,r,o)}function dU(e){if(e instanceof dR)return new dR(e.h,e.s,e.l,e.opacity);if(e instanceof df||(e=dE(e)),!e)return new dR;if(e instanceof dR)return e;var t=(e=e.rgb()).r/255,r=e.g/255,o=e.b/255,i=Math.min(t,r,o),l=Math.max(t,r,o),n=0/0,a=l-i,s=(l+i)/2;return a?(n=t===l?(r-o)/a+6*(r<o):r===l?(o-t)/a+2:(t-r)/a+4,a/=s<.5?l+i:2-l-i,n*=60):a=s>0&&s<1?0:n,new dR(n,a,s,e.opacity)}function dR(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}function dV(e){return(e=(e||0)%360)<0?e+360:e}function d$(e){return Math.max(0,Math.min(1,e||0))}function dZ(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function dG(e,t,r,o,i){var l=e*e,n=l*e;return((1-3*e+3*l-n)*t+(4-6*l+3*n)*r+(1+3*e+3*l-3*n)*o+n*i)/6}dm(df,dE,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:dT,formatHex:dT,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dU(this).formatHsl()},formatRgb:dq,toString:dq}),dm(dM,dB,dp(df,{brighter(e){return e=null==e?dw:Math.pow(dw,e),new dM(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dM(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new dM(dz(this.r),dz(this.g),dz(this.b),dO(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:dW,formatHex:dW,formatHex8:function(){return`#${dL(this.r)}${dL(this.g)}${dL(this.b)}${dL(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:dN,toString:dN})),dm(dR,function(e,t,r,o){return 1==arguments.length?dU(e):new dR(e,t,r,null==o?1:o)},dp(df,{brighter(e){return e=null==e?dw:Math.pow(dw,e),new dR(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new dR(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,i=2*r-o;return new dM(dZ(e>=240?e-240:e+120,i,o),dZ(e,i,o),dZ(e<120?e+240:e-120,i,o),this.opacity)},clamp(){return new dR(dV(this.h),d$(this.s),d$(this.l),dO(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=dO(this.opacity);return`${1===e?"hsl(":"hsla("}${dV(this.h)}, ${100*d$(this.s)}%, ${100*d$(this.l)}%${1===e?")":`, ${e})`}`}}));let dH=e=>()=>e;function dY(e,t){var r=t-e;return r?function(t){return e+t*r}:dH(isNaN(e)?t:e)}let dK=function e(t){var r,o=1==(r=+t)?dY:function(e,t){var o,i,l;return t-e?(o=e,i=t,o=Math.pow(o,l=r),i=Math.pow(i,l)-o,l=1/l,function(e){return Math.pow(o+e*i,l)}):dH(isNaN(e)?t:e)};function i(e,t){var r=o((e=dB(e)).r,(t=dB(t)).r),i=o(e.g,t.g),l=o(e.b,t.b),n=dY(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=l(t),e.opacity=n(t),e+""}}return i.gamma=e,i}(1);function dJ(e){return function(t){var r,o,i=t.length,l=Array(i),n=Array(i),a=Array(i);for(r=0;r<i;++r)o=dB(t[r]),l[r]=o.r||0,n[r]=o.g||0,a[r]=o.b||0;return l=e(l),n=e(n),a=e(a),o.opacity=1,function(e){return o.r=l(e),o.g=n(e),o.b=a(e),o+""}}}function dQ(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}dJ(function(e){var t=e.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[o],l=e[o+1],n=o>0?e[o-1]:2*i-l,a=o<t-1?e[o+2]:2*l-i;return dG((r-o/t)*t,n,i,l,a)}}),dJ(function(e){var t=e.length;return function(r){var o=Math.floor(((r%=1)<0?++r:r)*t),i=e[(o+t-1)%t],l=e[o%t],n=e[(o+1)%t],a=e[(o+2)%t];return dG((r-o/t)*t,i,l,n,a)}});var dX=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,d0=RegExp(dX.source,"g");function d1(e,t){return e*=1,t*=1,function(r){return Math.round(e*(1-r)+t*r)}}function d2(e){return+e}var d4=[0,1];function d8(e){return e}function d5(e,t){var r;return(t-=e*=1)?function(r){return(r-e)/t}:(r=isNaN(t)?0/0:.5,function(){return r})}function d7(e,t,r){var o=e[0],i=e[1],l=t[0],n=t[1];return i<o?(o=d5(i,o),l=r(n,l)):(o=d5(o,i),l=r(l,n)),function(e){return l(o(e))}}function d3(e,t,r){var o=Math.min(e.length,t.length)-1,i=Array(o),l=Array(o),n=-1;for(e[o]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++n<o;)i[n]=d5(e[n],e[n+1]),l[n]=r(t[n],t[n+1]);return function(t){var r=dg(e,t,1,o)-1;return l[r](i[r](t))}}function d6(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var d9,ue,ut,ur,uo,ui=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ul(e){var t;if(!(t=ui.exec(e)))throw Error("invalid format: "+e);
vendor: 3,223 bytes, line 3
3return new un({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function un(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ua(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),o=e.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+e.slice(r+1)]}function us(e){return(e=ua(Math.abs(e)))?e[1]:0/0}function uc(e,t){var r=ua(e,t);if(!r)return e+"";var o=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+o:o.length>i+1?o.slice(0,i+1)+"."+o.slice(i+1):o+Array(i-o.length+2).join("0")}ul.prototype=un.prototype,un.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let ud={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>uc(100*e,t),r:uc,s:function(e,t){var r=ua(e,t);if(!r)return uo=void 0,e.toPrecision(t);var o=r[0],i=r[1],l=i-(uo=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,n=o.length;return l===n?o:l>n?o+Array(l-n+1).join("0"):l>0?o.slice(0,l)+"."+o.slice(l):"0."+Array(1-l).join("0")+ua(e,Math.max(0,t+l-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function uu(e){return e}var uh,ug,um,up=Array.prototype.map,uf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];ug=(uh=function(e){var t,r,o,i=void 0===e.grouping||void 0===e.thousands?uu:(r=up.call(e.grouping,Number),o=e.thousands+"",function(e,t){for(var i=e.length,l=[],n=0,a=r[0],s=0;i>0&&a>0&&(s+a+1>t&&(a=Math.max(1,t-s)),l.push(e.substring(i-=a,i+a)),!((s+=a+1)>t));)a=r[n=(n+1)%r.length];return l.reverse().join(o)}),l=void 0===e.currency?"":e.currency[0]+"",n=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?uu:(t=up.call(e.numerals,String),function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}),c=void 0===e.percent?"%":e.percent+"",d=void 0===e.minus?"â":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function h(e,t){var r=(e=ul(e)).fill,o=e.align,h=e.sign,g=e.symbol,m=e.zero,p=e.width,f=e.comma,w=e.precision,v=e.trim,b=e.type;"n"===b?(f=!0,b="g"):ud[b]||(void 0===w&&(w=12),v=!0,b="g"),(m||"0"===r&&"="===o)&&(m=!0,r="0",o="=");var y=(t&&void 0!==t.prefix?t.prefix:"")+("$"===g?l:"#"===g&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),x=("$"===g?n:/[%p]/.test(b)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),k=ud[b],j=/[defgprs%]/.test(b);function C(e){var t,l,n,c=y,g=x;if("c"===b)g=k(e)+g,e="";else{var C=(e*=1)<0||1/e<0;
3if(e=isNaN(e)?u:k(Math.abs(e),w),v&&(e=function(e){e:for(var t,r=e.length,o=1,i=-1;o<r;++o)switch(e[o]){case".":i=t=o;break;case"0":0===i&&(i=o),t=o;break;default:if(!+e[o])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),C&&0==+e&&"+"!==h&&(C=!1),c=(C?"("===h?h:d:"-"===h||"("===h?"":h)+c,g=("s"!==b||isNaN(e)||void 0===uo?"":uf[8+uo/3])+g+(C&&"("===h?")":""),j){for(t=-1,l=e.length;++t<l;)if(48>(n=e.charCodeAt(t))||n>57){g=(46===n?a+e.slice(t+1):e.slice(t))+g,e=e.slice(0,t);break}}}f&&!m&&(e=i(e,1/0));var A=c.length+e.length+g.length,I=A<p?Array(p-A+1).join(r):"";switch(f&&m&&(e=i(I+e,I.length?p-g.length:1/0),I=""),o){case"<":e=c+e+g+I;break;case"=":e=c+I+e+g;break;case"^":e=I.slice(0,A=I.length>>1)+c+e+g+I.slice(A);break;default:e=I+c+e+g}return s(e)}return w=void 0===w?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),C.toString=function(){return e+""},C}return{format:h,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(us(t)/3))),o=Math.pow(10,-r),i=h(((e=ul(e)).type="f",e),{suffix:uf[8+r/3]});return function(e){return i(o*e)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,um=uh.formatPrefix;let uw=e=>{let{rangeCompareBounds:t,deltaCompareBounds:r,unit:o,decimalPrecision:i,onConfirm:l,onDeny:a,isPending:c}=e,h=tV(),g=i??1;return[t.min,t.max,r.min,r.max].every(e=>!sJ(e))?(0,eM.jsx)(s.Z,{width:"full",border:!0,children:(0,eM.jsxs)(d.B,{_gap:"m",children:[(0,eM.jsx)(n.EY,{as:"h2",variant:"strong",children:h("prototype.ce.instrument-validation.banner.title")}),(0,eM.jsx)(n.EY,{children:h("prototype.ce.instrument-validation.banner.description")}),!sJ(t.min)&&!sJ(t.max)&&(0,eM.jsx)(n.EY,{as:"p",children:h("prototype.ce.instrument-validation.banner.settings",{limit:h("prototype.ce.instrument-validation.banner.range",{min:String(t.min),max:String(t.max),unit:o??""}),decimal_precision:oK({decimalPrecision:g})})}),r&&(0,eM.jsxs)(n.EY,{as:"p",children:["[I18N] Delta"," ",h("prototype.ce.instrument-validation.banner.settings-delta",{limit:h("prototype.ce.instrument-validation.banner.range",{min:String(r.min),max:String(r.max),unit:o??""}),decimal_precision:oK({decimalPrecision:g})})]}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(u.j,{onClick:l,isPending:c,children:h("prototype.ce.instrument-validation.banner.button-confirm.label")}),(0,eM.jsx)(N.t,{onClick:a,children:h("prototype.ce.instrument-validation.banner.button-edit.label")})]})]})}):(0,eM.jsx)(s.Z,{width:"full",border:!0,children:(0,eM.jsxs)(d.B,{_gap:"m",children:[(0,eM.jsx)(n.EY,{as:"h2",variant:"strong",children:h("prototype.ce.instrument-validation.banner.title.no-bounds")}),(0,eM.jsx)(n.EY,{children:h("prototype.ce.instrument-validation.banner.description.no-bounds")}),(0,eM.jsx)(d.B,{axis:"x",_gap:"base",children:(0,eM.jsx)(u.j,{onClick:a,children:h("ce.generic.button-edit.label")})})]})})},uv=e=>{let{children:t,title:r,subtitle:o,onClose:i,slots:l}=e,n=tV();return(0,eM.jsx)(eu.N,{backgroundColor:"background",style:{height:"100%",minHeight:"unset"},header:(0,eM.jsx)(eu.N.Header,{slotsAlignment:"start",leftActionSlot:(0,eM.jsx)(eh.s,{color:"primary",label:n("ce.global.back"),onClick:i,children:(0,eM.jsx)(es.A,{})}),children:(0,eM.jsxs)(d.B,{_gap:"base",align:"stretch",width:"full",children:[(0,eM.jsx)(d.B,{axis:"x",_gap:"2xl",align:"center",children:(0,eM.jsxs)(d.B,{_gap:"base",children:["string"==typeof r?(0,eM.jsx)(D.D,{children:r}):r,o]})}),l?.belowHeader]})}),children:(0,eM.jsx)(eu.N.Main,{backgroundColor:"background",_pt:"none",style:{flex:1,minHeight:0},children:(0,eM.jsx)(d.B,{axis:"y",_gap:"xl",width:"full",style:{height:"100%"},children:(0,eM.jsxs)(d.B,{axis:"y","data-component":"main-content",backgroundColor:"surface",width:"full",borderRadius:"m",className:"ui:border ui:border-slate-300 ui:overflow-hidden",style:{height:"100%"},children:[(0,eM.jsxs)(c.a,{as:j.yZ.Header,width:"full",children:[(0,eM.jsx)(j.yZ.Title,{children:n("ce.thresholds.panel.action.edit")}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:i})]}),(0,eM.jsx)(c.a,{width:"full",children:(0,eM.jsx)(b.c,{version:"v2",color:"border"})}),(0,eM.jsx)(c.a,{"data-component":"scroll-me",_p:"xl",width:"full",style:{flex:"1 1 0",minHeight:0,maxHeight:"100%",overflowY:"auto"},children:t}),(0,eM.jsx)(c4,{actions:l?.footerActions})]})})})})},ub=({threshold:e,unit:t})=>{let r=tV();return(0,eM.jsx)(D.D,{variant:"h4",children:e.description??oX({threshold:e,unit:t,translate:r})})},uy=({threshold:e,unit:t,dialogContainer:r,onEditWorkflow:o,onDeleteWorkflow:i,onAddWorkflow:l})=>{let n=tV();return(0,eM.jsx)(s.Z,{border:!0,borderRadius:"xxs",children:(0,eM.jsxs)(d.B,{axis:"x",width:"full",justify:"normal",align:"stretch",children:[(0,eM.jsx)(c.a,{width:"1/3",children:(0,eM.jsxs)(d.B,{_gap:"l",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",children:[(0,eM.jsx)(rd,{priority:e.priority}),(0,eM.jsx)(ub,{threshold:e,unit:t})]}),(0,eM.jsx)(lJ,{threshold:e,unit:t})]})}),(0,eM.jsx)(c.a,{width:"1/3",children:e.followUp&&(0,eM.jsx)(d.B,{_gap:"l",children:(0,eM.jsx)(l8,{layout:"detailed",priority:e.followUp.flagPriority??"PN",followUpStatus:e.followUp.status??"keep-open",followUpTasks:e.followUp.tasks??[],isAutoProcessed:"processed"===e.followUp.status||"processed-unless-comment"===e.followUp.status,workflowName:e.followUp.title??""})})}),(0,eM.jsx)(c.a,{width:"1/3",children:(0,eM.jsx)(d.B,{align:"end",children:e.followUp?(0,eM.jsxs)(F.P.Root,{children:[(0,eM.jsx)(F.P.Trigger,{asChild:!0,children:(0,eM.jsx)(eh.s,{label:n("ce.generic.button.flyout-more-icon.label"),children:(0,eM.jsx)(U.A,{})})}),(0,eM.jsx)(F.P.Content,{container:r,side:"bottom",align:"end",style:{minWidth:200},children:(0,eM.jsxs)(F.P.Group,{children:[(0,eM.jsx)(F.P.Label,{children:n("ce.global.workflow")}),(0,eM.jsx)(F.P.ButtonItem,{leadingIcon:(0,eM.jsx)(R.A,{}),onSelect:o,children:n("ce.generic.button-edit.label")}),(0,eM.jsx)(F.P.ButtonItem,{leadingIcon:(0,eM.jsx)(Z.A,{}),onSelect:i,children:n("ce.threshold.flyout-menu.delete-workflow.label")})]})})]}):(0,eM.jsx)(d.B,{axis:"x",_gap:"xs",width:"full",justify:"end",children:(0,eM.jsx)(L.J,{onClick:l,children:n("ce.global.button.add-workflow.label")})})})})]})},e.code.map(e=>e.code).join("-"))},ux=e=>{let{value:t,decimalPrecision:r}=e;return t*Math.pow(10,r)},uk=e=>
3{let{valueCents:t,maxCents:r}=e;return Math.min(t+1,r??1/0)},uj=e=>{let t=((e,t)=>{let r=cn();if("processing"===r.processingState)return;let o=r.instrumentThresholdGroups.data.get(e)?.get(t);if(o)return o;for(let[,o]of r.instrumentThresholdGroups.data)for(let[,r]of o)if("children"in r){let o=r.children.data.get(e)?.get(t);if(o)return o}})(e.systemCodeIdentifier.system,e.systemCodeIdentifier.code);if(!t)return(0,eM.jsx)(d.B,{align:"center",justify:"center",style:{height:"100%"},children:(0,eM.jsx)(ep.I,{})});if("children"in t)throw Error("Prototype editor does not support parent threshold groups.");return(0,eM.jsx)(uC,{...e,model:t})},uC=e=>{var t;let r,{model:o}=e,i=tV(),l=t$(),{$dialog:n}=j.yZ.useModalDialog(),{identifier:a,disableInstrumentValidationInert:h}=ts(),g=ct(),m=(0,eS.jE)(),f=(0,eI.n)((e=>{let t,r=["putApiConfigurationTemplatesTemplateIdAllowableThresholds"],{mutation:o,request:i}=e?e.mutation&&"mutationKey"in e.mutation&&e.mutation.mutationKey?e:{...e,mutation:{...e.mutation,mutationKey:r}}:{mutation:{mutationKey:r},request:void 0},l=(t=ad(),(e,r,o)=>t(`/api/configuration-templates/${e}/allowable-thresholds`,{...o,method:"PUT",headers:{"Content-Type":"application/json",...o?.headers},body:JSON.stringify(r)}));return{mutationFn:e=>{let{templateId:t,data:r}=e??{};return l(t,r,i)},...o}})(void 0),void 0),[w,b]=(0,eW.useState)(null),[y,x]=(0,eW.useState)(null),k=tI(),C=o.thresholdBounds.proposed,A=(r=o.unit??"",{fromTo:tZ.bind(null,i,r),aboveOrEqualTo:tG.bind(null,i,r),lowerOrEqualTo:tH.bind(null,i,r),increaseOf:tY.bind(null,i,r),decreaseOf:tK.bind(null,i,r),xToYUnit:tJ.bind(null,i,r)}),I="configured"===o.state?o.thresholds.rangeCompare:[],S="configured"===o.state?o.thresholds.deltaCompare:[],_=e=>e.description??oX({threshold:e,unit:o.unit??null,translate:i}),T=o.thresholdBounds.saved.rangeCompare,q=o.thresholdBounds.saved.decimalPlaces??0,E={thresholds:I.filter(e=>null!==e.range.from||null!==e.range.to).map(e=>({name:A.fromTo(String(e.range.from??""),String(e.range.to??""))??"Range",color:"PH"===e.priority?p.OC.Colors.RED:p.OC.Colors.AMBER,from:null!==e.range.from?Number(e.range.from):null,to:null!==e.range.to?Number(e.range.to):null,referencesPreviousToValue:!1,editFrequency:!1,frequency:{type:"once"}}))},P=(0,eE.mN)({mode:"onSubmit",resolver:null!==T.min&&null!==T.max?cw((({instrumentMin:e,instrumentMax:t})=>{var r,o;let i=rY(r9(rK("Dit moet een nummer zijn."),rN(e,"Waarde moet groter dan of gelijk zijn aan instrument min."),rW(t,"Waarde moet kleiner dan of gelijk zijn aan instrument max."))),l=r9(rJ({name:r4(),color:r4(),referencesPreviousToValue:rZ(),from:i,to:i,editFrequency:rZ(),frequency:r5([rJ({type:rH("once")}),rJ({type:rH("multiple"),count:r9(rK(),rM(),rN(2)),unit:r5([rH("days"),rH("weeks")]),timeframe:r9(rK(),rM(),rN(1)),shouldReset:rZ()})])}),(r=function e(t,r){return{kind:"validation",type:"check",reference:e,async:!1,expects:null,requirement:t,message:r,"~run"(e,t){return e.typed&&!this.requirement(e.value)&&rA(this,"input",e,t),e}}}(e=>null===e.from||null===e.to||e.to>=e.from,"Moet groter dan of gelijk zijn aan de 'Van' waarde"),o=["to"],{...r,"~run"(e,t){let i=e.issues&&[...e.issues];if((e=r["~run"](e,t)).issues){for(let t of e.issues)if(!i?.includes(t)){let r=e.value;for(let e of o){let o=r[e],i={type:"unknown",origin:"value",input:r,key:e,value:o};if(t.path?t.path.push(i):t.path=[i],!o)break;r=o}}}return e}}));return rJ({thresholds:r$(l)})})({instrumentMin:T.min,instrumentMax:T.max})):void 0,defaultValues:E??(null!==T.min&&null!==T.max?(t={instrumentMin:T.min,instrumentMax:T.max,decimalPrecision:q},{thresholds:[{name:"Red lower",color:p.OC.Colors.RED,referencesPreviousToValue:!1,from:t.instrumentMin,to:null},{name:"Amber lower",color:p.OC.Colors.AMBER,referencesPreviousToValue:!0,from:null,to:null},{name:"Amber upper",color:p.OC.Colors.AMBER,referencesPreviousToValue:!0,from:null,to:null},{name:"Red upper",color:p.OC.Colors.RED,referencesPreviousToValue:!0,from:null,to:t.instrumentMax}]}):void 0)});(0,eW.useEffect)(()=>{P.reset(E)},[I.length]);let B=()=>{P.reset(),b(null)},M=P.watch(),W=M.thresholds.reduce((e,t)=>
3(null!==t.from&&null!==t.to&&e.push({from:t.from,to:t.to,color:t.color}),e),[]),z=I.reduce((e,t)=>(null===t.range.from||null===t.range.to||e.push({from:Number(t.range.from),to:Number(t.range.to),color:function(e){let{priority:t,isHighlighted:r}=e;if("MISSING"===t)return[p.OC.Colors.GREY_LIGHT,p.OC.Colors.GREY_DARK];if(r)switch(t){case"PH":return p.OC.Colors.RED;case"PM":return p.OC.Colors.AMBER}return p.OC.Colors.BLUE}({priority:t.priority})}),e),[]),[L,F]=(0,eW.useState)(null),U=L?M.thresholds[L.index]?.color:null,R=null!==T.min&&null!==T.max?((e,t)=>{let r=e=>ux({value:e,decimalPrecision:n}),o=(e=>{let{sections:t,max:r,decimalPrecision:o}=e,i=e=>ux({value:e,decimalPrecision:o});return t.reduce((e,t)=>{if(sJ(t.from)||sJ(t.to))return e;let o=i(t.from),l=uk({valueCents:i(t.to),maxCents:i(r)});return o>=l||e.push({color:t.color,from:o,to:l}),e},[])})({sections:e,max:t.max,decimalPrecision:t.decimalPrecision}),{min:i,max:l,decimalPrecision:n,colors:a,highlightedSection:s,useThresholdColors:c}=t,d=r(i),u=r(l),h=e=>uk({valueCents:r(e),maxCents:u}),g=new Set([d,u]);for(let t of e){let e=r(t.from),o=h(t.to);g.add(e),g.add(o)}s&&(sJ(s.from)||g.add(r(s.from)),sJ(s.to)||g.add(h(s.to)));let m=Array.from(g).sort((e,t)=>e-t),p=[];for(let e=0;e<m.length-1;e++){let t,i=m[e],l=m[e+1];if(void 0===i||void 0===l)continue;let n=!1;!sJ(s?.from)&&!sJ(s?.to)&&i>=r(s.from)&&l<=h(s.to)&&(n=!0);let d=o.filter(e=>e.from<=i&&e.to>=l);if(0===d.length)t=a.gap;else if(1===d.length){let e=d[0]?.color,r=a.filled;t=n||c?e??r:r}else t=a.overlap;p.push({from:i,to:l,color:t})}return p})(W??z,{min:T.min,max:T.max,decimalPrecision:q,colors:{filled:p.OC.Colors.FILL,gap:p.OC.Colors.GAP,overlap:p.OC.Colors.OVERLAP},highlightedSection:L?{from:M.thresholds[L.index]?.from,to:M.thresholds[L.index]?.to,color:U}:void 0}):[],V=(0,eW.useRef)(null),$=function({min:e,max:t,containerRef:r,minTickSpacing:o=50,decimalPrecision:i=0}){let[l,n]=(0,eW.useState)([]);return(0,eW.useEffect)(()=>{if(!r?.current)return;let l=r=>{let l=Math.floor(r/Math.max(o,50)),a=(function e(){var t,r=(function(){var e,t,r,o,i,l,n=d4,a=d4,s=function e(t,r){var o,i,l=typeof r;return null==r||"boolean"===l?dH(r):("number"===l?dQ:"string"===l?(o=dE(r))?(r=o,dK):function(e,t){var r,o,i,l,n,a=dX.lastIndex=d0.lastIndex=0,s=-1,c=[],d=[];for(e+="",t+="";(i=dX.exec(e))&&(l=d0.exec(t));)(n=l.index)>a&&(n=t.slice(a,n),c[s]?c[s]+=n:c[++s]=n),(i=i[0])===(l=l[0])?c[s]?c[s]+=l:c[++s]=l:(c[++s]=null,d.push({i:s,x:dQ(i,l)})),a=d0.lastIndex;return a<t.length&&(n=t.slice(a),c[s]?c[s]+=n:c[++s]=n),c.length<2?d[0]?(r=d[0].x,function(e){return r(e)+""}):(o=t,function(){return o}):(t=d.length,function(e){for(var r,o=0;o<t;++o)c[(r=d[o]).i]=r.x(e);return c.join("")})}:r instanceof dE?dK:r instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(o){return r.setTime(e*(1-o)+t*o),r}}:!ArrayBuffer.isView(i=r)||i instanceof DataView?Array.isArray(r)?function(t,r){var o,i=r?r.length:0,l=t?Math.min(i,t.length):0,n=Array(l),a=Array(i);for(o=0;o<l;++o)n[o]=e(t[o],r[o]);for(;o<i;++o)a[o]=r[o];return function(e){for(o=0;o<l;++o)a[o]=n[o](e);return a}}:"function"!=typeof r.valueOf&&"function"!=typeof r.toString||isNaN(r)?function(t,r){var o,i={},l={};for(o in null!==t&&"object"==typeof t||(t={}),null!==r&&"object"==typeof r||(r={}),r)o in t?i[o]=e(t[o],r[o]):l[o]=r[o];return function(e){for(o in i)l[o]=i[o](e);return l}}:dQ:function(e,t){t||(t=[]);var r,o=e?Math.min(t.length,e.length):0,i=t.slice();return function(l){for(r=0;r<o;++r)i[r]=e[r]*(1-l)+t[r]*l;return i}})(t,r)},c=d8;function d(){var e,t,r,s=Math.min(n.length,a.length);return c!==d8&&(e=n[0],t=n[s-1],e>t&&(r=e,e=t,t=r),c=function(r){return Math.max(e,Math.min(t,r))}),o=s>2?d3:d7,i=l=null,u}function u(t){return null==t||isNaN(t*=1)?r:(i||(i=o(n.map(e),a,s)))(e(c(t)))}return u.invert=function(r){return c(t((l||(l=o(a,n.map(e),dQ)))(r)))},u.domain=function(e){return arguments.length?(n=Array.from(e,d2),d()):n.slice()},u.range=function(e){return arguments.length?(a=Array.from(e),d()):a.slice()},u.rangeRound=function(e){return a=Array.from(e),s=d1,d()},u.clamp=function(e){return arguments.length?(c=!!e||d8,d()):c!==d8},u.interpolate=function(e){return arguments.length?(s=e,d()):s},u.unknown=function(e){return arguments.length?(r=e,u):r},function(r,o){return e=r,t=o,d()}})()(d8,d8);return r.copy=function(){return e().domain(r.domain()).range(r.range()).interpolate(r.interpolate()).clamp(r.clamp()).unknown(r.unknown())},d6.apply(r,arguments),t=r.domain,r.ticks=function(e){var r=t();return function(e,t,r){if(!((r*=1)>0))return[];if((e*=1)==(t*=1))return[e];let o=t<e,[i,l,n]=o?dl(t,e,r):dl(e,t,r);if(!(l>=i))return[];let a=l-i+1,s=Array(a);if(o)if(n<0)for(let e=0;e<a;++e)s[e]=-((l-e)/n);else for(let e=0;e<a;++e)s[e]=(l-e)*n;else if(n<0)for(let e=0;e<a;++e)s[e]=-((i+e)/n);else for(let e=0;e<a;++e)s[e]=(i+e)*n;return s}(r[0],r[r.length-1],null==e?10:e)},r.tickFormat=function(e,r){var o=t();return function(e,t,r,o){let i,l;var n,a,s,c,d,u=(a=e,s=t,c=+r,l=(i=(s*=1)<(a*=1))?dn(s,a,c):dn(a,s,c),(i?-1:1)*(l<0?-(1/l):l));switch((o=ul(null==o?",f":o)).type){case"s":var h=Math.max(Math.abs(e),Math.abs(t));return null!=o.precision||isNaN(d=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(us(h)/3)))-us(Math.abs(u))))||(o.precision=d),um(o,h);case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(d=Math.max(0,us(Math.abs(Math.max(Math.abs(e),Math.abs(t)))-(n=Math.abs(n=u)))-u
3s(n))+1)||(o.precision=d-("e"===o.type));break;case"f":case"%":null!=o.precision||isNaN(d=Math.max(0,-us(Math.abs(u))))||(o.precision=d-2*("%"===o.type))}return ug(o)}(o[0],o[o.length-1],null==e?10:e,r)},r.nice=function(e){null==e&&(e=10);var o,i,l=t(),n=0,a=l.length-1,s=l[n],c=l[a],d=10;for(c<s&&(i=s,s=c,c=i,i=n,n=a,a=i);d-- >0;){if((i=dn(s,c,e))===o)return l[n]=s,l[a]=c,t(l);if(i>0)s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i}o=i}return r},r})().domain([e,t]).range([0,r]),s=Math.min(l,50),c=new Set(a.ticks(s));c.has(e)||c.add(e),c.has(t)||c.add(t),n(function(e,t){if(t<0)return e;let r=new Map,o=Math.pow(10,t);for(let t of e){let e=Math.round(t*o)/o;(!r.has(e)||Math.abs(t-e)<Math.abs(r.get(e)-e))&&r.set(e,t)}return Array.from(r.values()).sort((e,t)=>e-t)}(Array.from(c).sort((e,t)=>e-t),i))};l(r.current.offsetWidth);let a=new ResizeObserver(e=>{for(let t of e)l(t.contentRect.width)});return a.observe(r.current),()=>{a.disconnect()}},[e,t,o,r]),l}({min:T.min??0,max:T.max??0,containerRef:V,minTickSpacing:40*q,decimalPrecision:q}),G=e=>new Intl.NumberFormat(l,{minimumFractionDigits:q,maximumFractionDigits:q}).format(e/Math.pow(10,q)),H=({mode:e,viewModel:t})=>{x({mode:e,viewModel:t})},Y=o.hasAllThresholdBounds?(0,eM.jsx)(c3,{title:o.title,min:o.thresholdBounds.saved.rangeCompare.min,max:o.thresholdBounds.saved.rangeCompare.max,unit:o.unit,decimalPrecision:q,id:e.titleId,deltaMin:o.thresholdBounds.saved.deltaCompare.min,deltaMax:o.thresholdBounds.saved.deltaCompare.max,titleAside:(0,eM.jsx)(v.E,{label:"info",onClick:()=>{uz.show({itemName:o.title,itemIdentifier:e.systemCodeIdentifier.toString()}).then(uz.hide)},children:(0,eM.jsx)(O.A,{})})}):null,K=function(e){let{disableInstrumentValidationInert:t,hasThresholdBounds:r}=e;if(!t)return r?void 0:"true"}({disableInstrumentValidationInert:h,hasThresholdBounds:o.hasAllThresholdBounds});return"edit-all-thresholds"===w?(0,eM.jsx)("div",{onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),B())},style:{height:"100%"},children:(0,eM.jsx)(uv,{title:Y,onClose:B,slots:{belowHeader:null!==T.min&&null!==T.max?(0,eM.jsx)("div",{ref:V,children:(0,eM.jsx)(uA,{min:ux({value:T.min,decimalPrecision:q}),max:ux({value:T.max,decimalPrecision:q}),decimalPrecision:q,sections:R,ticks:$.map(e=>ux({value:e,decimalPrecision:q})),tickFormatter:G})}):void 0,footerActions:(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",children:[(0,eM.jsx)(N.t,{onClick:B,children:i("ce.global.cancel")}),(0,eM.jsx)(u.j,{type:"submit",form:"prototype-edit-thresholds-form",children:i("ce.global.save")})]})},children:(0,eM.jsx)(eE.Op,{...P,children:(0,eM.jsx)(de,{id:"prototype-edit-thresholds-form",system:e.systemCodeIdentifier.system,code:e.systemCodeIdentifier.code,thresholdGroupRangesViewModel:{min:T.min,max:T.max,unit:o.unit??"",decimalPrecision:q},onFieldFocus:F})})})}):y?(0,eM.jsx)(cJ,{mode:y.mode,viewModel:y.viewModel,title:Y??o.title,templateId:a,code:{system:e.systemCodeIdentifier.system,code:e.systemCodeIdentifier.code},onClose:()=>x(null),slots:{belowHeader:null!==T.min&&null!==T.max?(0,eM.jsx)(uA,{min:ux({value:T.min,decimalPrecision:q}),max:ux({value:T.max,decimalPrecision:q}),decimalPrecision:q,sections:R,ticks:$.map(e=>ux({value:e,decimalPrecision:q})),tickFormatter:G}):void 0}}):(0,eM.jsx)(eu.N,{style:{height:"100%",minHeight:"unset"},header:(0,eM.jsx)(eu.N.Header,{slotsAlignment:"start",leftActionSlot:(0,eM.jsx)(eh.s,{label:"back",onClick:k.resolve,children:(0,eM.jsx)(es.A,{})}),children:(0,eM.jsx)("div",{ref:V,children:o.hasAllThresholdBounds?(0,eM.jsxs)(d.B,{_gap:"base",align:"stretch",width:"full",children:[Y,(0,eM.jsx)(uA,{min:ux({value:o.thresholdBounds.saved.rangeCompare.min,decimalPrecision:q}),max:ux({value:o.thresholdBounds.saved.rangeCompare.max,decimalPrecision:o.thresholdBounds.saved.decimalPlaces}),decimalPrecision:o.thresholdBounds.saved.decimalPlaces,sections:R,ticks:$.map(e=>ux({value:e,decimalPrecision:o.thresholdBounds.saved.decimalPlaces})),tickFormatter:G})]}):(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",width:"full",children:[(0,eM.jsx)(D.D,{variant:"h2",id:e.titleId,children:o.title}),(0,eM.jsx)(uw,{rangeCompareBounds:{min:C?.rangeCompare?.min??null,max:C?.rangeCompare?.max??null},deltaCompareBounds:{min:C?.deltaCompare?.min??null,max:C?.deltaCompare?.max??null},decimalPrecision:C?.decimalPlaces??null,unit:o.unit,onConfirm:async()=>
3{if(sJ(C?.rangeCompare?.min)||sJ(C?.rangeCompare?.max))return;let t=C?.decimalPlaces??0,r=C.deltaCompare.min,o=C.deltaCompare.max;try{await f.mutateAsync({templateId:a,data:{logic:"rangeCompare",code:{code:e.systemCodeIdentifier.code,system:e.systemCodeIdentifier.system},high:String(C.rangeCompare.max),low:String(C.rangeCompare.min),decimals:t}}),await f.mutateAsync({templateId:a,data:{logic:"deltaCompare",code:{code:e.systemCodeIdentifier.code,system:e.systemCodeIdentifier.system},high:String(o),low:String(r),decimals:t}})}catch{return void J.o.error(i("ce.global.toaster.couldnt-save"))}await m.invalidateQueries({queryKey:ap(a)}),await m.invalidateQueries({predicate:e=>"fe-root"===e.queryKey[0]}),J.o.info(i("ce.global.toaster.saved-successfully"))},onDeny:async()=>{let t=await ht.show({unit:o.unit??"",defaultValues:{decimalPoints:C?.decimalPlaces??null,thresholdMin:C?.rangeCompare?.min??null,thresholdMax:C?.rangeCompare?.max??null,increaseDecreaseMin:C?.deltaCompare?.min??null,increaseDecreaseMax:C?.deltaCompare?.max??null}});if("submit"===t.closeReason){let{decimalPoints:r,thresholdMin:o,thresholdMax:l,increaseDecreaseMin:n,increaseDecreaseMax:s}=t.values;try{await f.mutateAsync({templateId:a,data:{logic:"rangeCompare",code:{code:e.systemCodeIdentifier.code,system:e.systemCodeIdentifier.system},high:String(l),low:String(o),decimals:r}}),await f.mutateAsync({templateId:a,data:{logic:"deltaCompare",code:{code:e.systemCodeIdentifier.code,system:e.systemCodeIdentifier.system},high:String(s),low:String(n),decimals:r}})}catch{return void J.o.error(i("ce.global.toaster.couldnt-save"))}
3await m.invalidateQueries({queryKey:ap(a)}),await m.invalidateQueries({predicate:e=>"fe-root"===e.queryKey[0]}),ht.hide(),J.o.info(i("ce.global.toaster.saved-successfully"))}},isPending:f.isPending})]})})}),children:(0,eM.jsx)(eu.N.Main,{style:{overflow:"auto",flex:1},children:(0,eM.jsxs)(d.B,{_gap:"l",width:"full",align:"stretch",inert:K,style:{opacity:o.hasAllThresholdBounds?1:.6},children:[(0,eM.jsxs)(d.B,{axis:"x",justify:"between",children:[(0,eM.jsx)(D.D,{children:i("ce.workflow-builder.triggers-section.title")}),(0,eM.jsx)(N.t,{onClick:()=>b("edit-all-thresholds"),style:{marginLeft:"auto"},children:i("ce.thresholds.panel.action.edit")})]}),(0,eM.jsx)(d.B,{as:"ul",_gap:"l",width:"full",align:"stretch",children:[...I,...S].map(e=>(0,eM.jsx)(c.a,{as:"li",children:(0,eM.jsx)(uy,{threshold:e,unit:o.unit??null,dialogContainer:n,onEditWorkflow:()=>{let t=e.flagCodes.find(e=>e.code.startsWith("threshold|"));if(!t)throw Error("Unexpected error: Threshold is missing identifier code (code starting with 'threshold|')");H({mode:"edit",viewModel:{system:t.system,code:t.code,description:_(e),priority:e.priority,followUp:e.followUp}})},onDeleteWorkflow:e.followUp?()=>{var t=e.followUp;let r=t.flagCodes[0];if(!r)throw Error("Follow-up is missing its identifier flagCode");uq.show({icon:(0,eM.jsx)(Z.A,{}),title:i("ce.confirmation-modal.remove-workflow.title"),message:i("ce.confirmation-modal.remove-workflow.description"),primaryButtonLabel:i("ce.confirmation-modal.remove-workflow.button.confirm"),secondaryButtonLabel:i("ce.global.cancel"),task:()=>g.mutateAsync({templateId:a,data:{identifierCode:r,flagPriority:t.flagPriority}}).then(()=>({success:!0})).catch(()=>({success:!1,message:i("ce.confirmation-modal.remove-workflow.error-message.description")}))}).then(uq.hide)}:void 0,onAddWorkflow:()=>{let t=e.flagCodes.find(e=>e.code.startsWith("threshold|"));if(!t)throw Error("Unexpected error: Threshold is missing identifier code (code starting with 'threshold|')");H({mode:"add",viewModel:{system:t.system,code:t.code,description:_(e),priority:e.priority,followUp:null}})}})},e.code.map(e=>e.code).join("-")))}),"empty"===o.state&&(0,eM.jsx)(s.Z,{border:!0,children:i("ce.protocol.thresholds.instrument.empty.description")})]})})})};function uA(e){let{min:t,max:r,sections:o,ticks:i,tickFormatter:l}=e,n=tV();return(0,eM.jsx)(s.Z,{border:!0,children:(0,eM.jsx)(p.OC,{title:n("ce.workflow-builder.range-coverage.title"),translations:{sectionOverlapsMessage:"ERROR: Overlapping sections"},start:t,end:r,sections:o,ticks:i,tickFormatter:l,style:{width:"100%"},legendSwatches:[{color:p.OC.Colors.FILL,label:n("ce.workflow-builder.range-coverage.legend.filled")},{color:p.OC.Colors.GAP,label:n("ce.workflow-builder.range-coverage.legend.gap")},{color:p.OC.Colors.OVERLAP,label:n("ce.workflow-builder.range-coverage.legend.overlap")}]})})}let uI=e=>{let{icon:t,title:r,children:o,primaryButton:i,secondaryButton:l,errorMessage:n}=e;return(0,eM.jsxs)(eW.Fragment,{children:[(0,eM.jsx)(j.yZ.Body,{_p:"xl",children:(0,eM.jsx)(d.B,{align:"stretch",children:(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[(0,eM.jsx)("div",{role:"alert",children:n&&(0,eM.jsx)(rb,{errorMessage:n})}),(0,eM.jsxs)(d.B,{align:"center",_gap:"m",children:[eW.default.cloneElement(t,{style:{width:48,height:48}}),r]}),o]})})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsxs)(j.yZ.Actions,{children:[l,i]})})]})},uS=e=>({open:e.visible,onClose:e.hide,onCloseAnimationFinished:()=>{e.resolveHide(),e.keepMounted||e.remove()}}),u_="ConfirmationTaskDialog",uT=async()=>Promise.resolve({success:!0});t_("ConfirmationTaskDialog",tS(e=>{let{task:t=uT,title:r,message:o}=e,i=tI(),[l,a]=(0,eW.useState)(!1),[s,c]=(0,eW.useState)(),d=(0,eW.useId)();return(0,eM.jsx)(j.yZ,{size:"s",...uS(i),"aria-labelledby":d,children:(0,eM.jsx)(uI,{icon:e.icon,title:(0,eM.jsx)(w.h,{variant:"sm",style:{textAlign:"center"},level:"2",id:d,children:r}),errorMessage:s,primaryButton:(0,eM.jsx)(u.j,{isPending:l,onClick:async()=>{a(!0),c(void 0);let e=await t();e.success?i.resolve({btn:"primary"}):c(e.message),a(!1)},children:e.primaryButtonLabel}),secondaryButton:(0,eM.jsx)(N.t,{disabled:l,onClick:()=>i.resolve({btn:"secondary"}),children:e.secondaryButtonLabel}
3),children:(0,eM.jsx)(n.EY,{containsDangerousHtml:!0,children:o})})})}));let uq={show:e=>tC(u_,e),hide:()=>tA(u_)},uE="EditorDialog";t_(uE,tS(e=>{let t=tI(),r=`editor-dialog-title-${(0,eW.useId)()}`;return(0,eM.jsxs)(j.yZ,{variant:"full-screen",...uS(t),"aria-labelledby":r,children:[(0,eM.jsx)(uj,{systemCodeIdentifier:e.systemCodeIdentifier,titleId:r}),(0,eM.jsx)(eg.l$,{})]})}));let uP=()=>tA(uE),uD="FollowUpTaskDialog";t_(uD,tS(e=>{let{identifier:t,defaultValue:r,allTasks:o}=e,i=tI();return(0,eM.jsx)(cz,{identifier:t,...uS(i),onRequestClose:()=>{i.resolve({action:"cancel"}),i.hide()},handleOnDelete:()=>{i.resolve({action:"delete"}),i.hide()},onSubmit:e=>{i.resolve({action:"submit",task:e["external-task"]}),i.hide()},defaultValue:r,allTasks:o})}));let uB={show:e=>tC(uD,e)},uM=(0,eW.createContext)(null),uW=({renderDetailsForCode:e,children:t})=>(0,eM.jsx)(uM.Provider,{value:(0,eW.useMemo)(()=>({renderDetailsForCode:e}),[e]),children:t}),uN="ItemDetailsDialog",uO=({itemIdentifier:e})=>{let t=(0,eW.useRef)(null),r=(()=>{let e=(0,eW.useContext)(uM);if(!e)throw Error("useExternalItemDetails must be used within an ExternalItemDetailsProvider");return e})().renderDetailsForCode;return(0,eW.useEffect)(()=>{if(!e)return;let o=oZ.fromString(e);t.current&&o&&r(o,t.current)},[e]),(0,eM.jsx)("div",{ref:t})};t_(uN,tS(e=>{let{itemName:t,itemIdentifier:r}=e,o=tI(),i=tV(),l=(0,eW.useId)();return(0,eM.jsxs)(j.yZ,{size:"l","aria-labelledby":l,...uS(o),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{id:l,children:i("ce.patient.thresholds.item.details.modal.title",{name:t})}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:o.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{_p:"none",children:(0,eM.jsx)(t8,{fallback:(0,eM.jsx)(t0,{}),children:(0,eM.jsx)(uO,{itemIdentifier:r})})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsx)(j.yZ.Actions,{children:(0,eM.jsx)(N.t,{onClick:o.resolve,children:i("ce.patient.item-details.close")})})})]})}));let uz={show:e=>tC(uN,e),hide:()=>tA(uN)},uL="RequestCalculationDialog";t_(uL,tS(e=>{let{code:t}=e,r=tI(),o=tV(),i=(0,eW.useId)();return(0,eM.jsxs)(j.yZ,{variant:"centered-dialog",size:"m",title:o("ce.thresholds.modal.calculation-missing.title"),"aria-labelledby":i,...uS(r),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{id:i,children:o("ce.thresholds.modal.calculation-missing.title")}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:r.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{children:(0,eM.jsxs)(d.B,{axis:"y",_gap:"xl",borderRadius:"m",children:[(0,eM.jsx)(n.EY,{children:o("ce.thresholds.modal.calculation-missing.description")}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",width:"full",align:"stretch",backgroundColor:"blue",borderRadius:"m",_p:"l",children:[(0,eM.jsx)(v.E,{label:o("ce.global.copy"),onClick:()=>{navigator.clipboard.write([new ClipboardItem({"text/plain":t})]).then(()=>{(0,J.o)({type:"success",message:o("ce.protocol.copy.success")})})},children:(0,eM.jsx)($.A,{})}),(0,eM.jsxs)(c.a,{children:[(0,eM.jsx)(n.EY,{children:o("ce.thresholds.modal.calculation-missing.copy-protocol-id")}),(0,eM.jsx)(n.EY,{children:t})]})]})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsxs)(j.yZ.Actions,{children:[(0,eM.jsx)(N.t,{onClick:r.resolve,children:o("ce.global.close")}),(0,eM.jsx)("a",{href:"https://www.notion.so/luscii/Calculations-and-Combination-Alerts-36d01353700b42e491ebf6205c9d45ea?pvs=4",target:"_blank",rel:"noopener noreferrer",children:(0,eM.jsx)(u.j,{
3children:o("ce.thresholds.modal.calculation-missing.button-request.label")})})]})})]})}));let uF={show:e=>tC(uL,e),hide:()=>tA(uL)},uU="MeasurementItemsMissingDialog";t_(uU,tS(e=>{let{missingItems:t}=e,r=tV(),o=tI();return(0,eM.jsxs)(j.yZ,{variant:"centered-dialog",size:"m",title:r("ce.thresholds.modal.instrument-missing.title"),...uS(o),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{children:r("ce.thresholds.modal.instrument-missing.title")}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:o.resolve})]}),(0,eM.jsx)(j.yZ.Body,{children:(0,eM.jsxs)(d.B,{_gap:"xl",width:"full",children:[(0,eM.jsx)(n.EY,{children:r("ce.thresholds.modal.instrument-missing.description")}),(0,eM.jsxs)(d.B,{_gap:"l",width:"full",align:"stretch",children:[(0,eM.jsx)(n.EY,{variant:"strong",children:r("ce.thresholds.modal.instrument-missing.required-instruments.title")}),(0,eM.jsx)(ef.A,{withBorder:!0,items:t.map(e=>{let t=oZ.fromCode(e).toString();return{itemId:t,title:e.code,subtitle:(0,eM.jsx)(n.EY,{color:"on-negative",variant:"sm",children:r("ce.thresholds.validation-error.instrument-missing-in-protocol.title")}),accessories:[(0,eM.jsx)(v.E,{label:r("ce.global.copy"),onClick:()=>{navigator.clipboard.write([new ClipboardItem({"text/plain":t})]),(0,J.o)({type:"success",message:r("ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label")})},children:(0,eM.jsx)($.A,{})},"copy-"+t)]}})})]})]})}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsx)(j.yZ.Actions,{children:(0,eM.jsx)(u.j,{onClick:o.resolve,children:r("ce.global.done")})})})]})}));let uR={show:e=>tC(uU,e),hide:()=>tA(uU)},uV=({thresholdGroup:e,threshold:t,onEdit:r,onDelete:o})=>{let i=tV(),l=td(),a=(0,eW.useId)();return(0,eM.jsx)(s.Z,{borderRadius:"xxs",border:!0,padding:!1,as:"article","aria-labelledby":a,children:(0,eM.jsxs)(d.B,{_gap:"xl",width:"full",align:"stretch",_p:"l",children:[(0,eM.jsxs)(d.B,{justify:"between",align:"center",axis:"x",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",children:[(0,eM.jsx)(rg,{threshold:t,instrumentMin:e.thresholdBounds.saved.rangeCompare.min,instrumentMax:e.thresholdBounds.saved.rangeCompare.max}),(0,eM.jsx)(n.EY,{as:"h3",variant:"strong",truncate:!0,id:a,children:t.description??i("ce.global.trigger")})]}),l.canEdit&&(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(L.J,{onClick:r,children:i("ce.generic.button-edit.label")}),o&&(0,eM.jsx)(eh.s,{label:i("ce.global.button.remove-trigger.label"),onClick:o,children:(0,eM.jsx)(Z.A,{})})]})]}),(0,eM.jsx)(c.a,{children:(0,eM.jsx)(B.v,{_type:"neutral",_variant:"bordered",children:(({threshold:e,translate:t})=>{if("deltaCompare"===e.logic)switch(e.type){case"DECREASE":return t("ce.threshold-list-view.trigger.threshold.decrease.label",{value:e.delta.decrease,unit:e.unit??""});case"INCREASE":return t("ce.threshold-list-view.trigger.threshold.increase.label",{value:e.delta.increase,unit:e.unit??""})}return t("ce.threshold.description.from-to",{from:e.range.from??"-",to:e.range.to??"-",unit:e.unit??""})})({threshold:t,translate:i})})})]})})},u$=({threshold:e})=>{let t=tV();return(0,eM.jsx)(s.Z,{border:!0,padding:!1,borderRadius:"xxs",children:(0,eM.jsxs)(d.B,{_gap:"m",_p:"l",children:[(0,eM.jsx)(n.EY,{as:"span",variant:"strong",truncate:!0,children:t("ce.threshold-detail-flow.create-alert.title")}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(rd,{priority:e.priority}),(0,eM.jsx)(n.EY,{children:((e,t)=>{switch(t){case"PH":return e("ce.threshold-detail-flow.create-alert.red.description");case"PM":return e("ce.threshold-detail-flow.create-alert.amber.description")}})(t,e.priority)})]})]})})},uZ="ViewThresholdDialog";t_(uZ,tS(e=>{let{thresholdGroup:t,threshold:r,onOpenEditor:o,onDeleteThreshold:i,onDeleteWorkflow:l}=e,n=()=>{s.resolve(),o()},a=(0,eW.useId)(),s=tI(),c=tV();return(0,eM.jsx)(j.yZ,{...uS(s),"aria-labelledby":a,variant:"side-modal",size:"m",children:(0,eM.jsx)(ry,{title:(0,eM.jsx)(j.yZ.Title,{id:a,children:t.title}),onClose:s.resolve,primaryButton:(0,eM.jsx)(u.j,{onClick:s.resolve,children:c("ce.global.close")}),secondaryButton:null,children:(0,eM.jsxs)(d.B,{width:"full",align:"stretch",divider:(0,eM.jsx)(b.c,{version:"v2",variant:"vertical-flow"}),children:[(0,eM.jsx)(uV,{threshold:r,thresholdGroup:t,onEdit:n,onDelete:i?async()=>{let e=await uq.show({icon:(0,eM.jsx)(Z.A,{}
3),title:c("ce.confirmation-modal.remove-trigger.title"),message:c("ce.confirmation-modal.remove-trigger.thresholds.description"),primaryButtonLabel:c("ce.confirmation-modal.remove-trigger.button.confirm"),secondaryButtonLabel:c("ce.global.cancel"),task:async()=>{try{return await i?.(),{success:!0}}catch{return{success:!1,message:c("ce.threshold-detail-flow.thresholds.remove-trigger.error-banner.description")}}}});uq.hide(),"primary"===e.btn&&s.resolve({isEdit:!1,isDelete:!0})}:void 0}),(0,eM.jsx)(u$,{threshold:r}),(r.followUp&&r.followUp.tasks.length>0||oR(r.followUp?.status))&&(0,eM.jsx)(c5,{tasks:r.followUp?.tasks??[],status:r.followUp?.status,maxTriggers:r.followUp?.maxTriggers??null,onEdit:n,onDelete:r.followUp&&e.onDeleteWorkflow?async()=>{if(!r.followUp)return;let e=await uq.show({icon:(0,eM.jsx)(Z.A,{}),title:c("ce.confirmation-modal.remove-workflow.title"),message:c("ce.confirmation-modal.remove-workflow.description"),primaryButtonLabel:c("ce.confirmation-modal.remove-workflow.button.confirm"),secondaryButtonLabel:c("ce.global.cancel"),task:async()=>{try{return await l?.(),{success:!0}}catch{return{success:!1,message:c("ce.confirmation-modal.remove-workflow.error-message.description")}}}});uq.hide(),"primary"===e.btn&&s.resolve({isEdit:!1,isDelete:!0})}:void 0})]})})})}));let uG=e=>(tN({id:"protocol_thresholds_view_details_range"}),tC(uZ,e)),uH=()=>tA(uZ),uY=({type:e,description:t,delta:r,unit:o,inputProps:i})=>{let l=tV(),n="INCREASE"===e,a=t??oQ({threshold:{type:e,delta:r},unit:o??null,translate:l});return(0,eM.jsx)(s.Z,{border:!0,width:"full",borderRadius:"xxs",padding:!1,children:(0,eM.jsxs)(d.B,{align:"stretch",_p:"l",_gap:"xl",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(n?ri:rr,{}),(0,eM.jsx)(D.D,{variant:"h3",children:a})]}),(0,eM.jsx)(er.o,{...i,label:l(n?"ce.global.threshold.increase.description":"ce.global.threshold.decrease.description"),suffix:o??void 0})]})})},uK=({description:e,range:t,instrumentMin:r,unit:o,fromInputProps:i,toInputProps:l,priority:n,onSetMin:u,onSetMax:h})=>{let g=tV(),m=e??oJ({threshold:{range:t},unit:o??null,translate:g}),p=g("ce.global.threshold-form-field.label.range-compare-from"),f=g("ce.global.threshold-form-field.label.range-compare-to"),w=g("ce.global.threshold-form-field.action.set-to-min"),v=g("ce.global.threshold-form-field.action.set-to-max");return(0,eM.jsx)(s.Z,{border:!0,width:"full",borderRadius:"xxs",padding:!1,children:(0,eM.jsxs)(d.B,{align:"stretch",_p:"l",_gap:"xl",children:[(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",children:[(0,eM.jsx)(rh,{range:t,priority:n,instrumentMin:r}),(0,eM.jsx)(D.D,{variant:"h3",children:m})]}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",children:[(0,eM.jsx)(c.a,{width:"1/2",children:(0,eM.jsx)(er.o,{...i,label:p,suffix:o??void 0,helperText:u&&(0,eM.jsx)(a.N,{as:"button",type:"button",style:{textDecoration:"underline"},onClick:u,children:w})})}),(0,eM.jsx)(c.a,{width:"1/2",children:(0,eM.jsx)(er.o,{...l,label:f,suffix:o??void 0,helperText:h&&(0,eM.jsx)(a.N,{as:"button",type:"button",style:{textDecoration:"underline"},onClick:h,children:v})})})]})]})})},uJ=e=>({rangeCompare:"configured"===e.state?e.thresholds.rangeCompare:[],deltaCompare:"configured"===e.state?e.thresholds.deltaCompare:[]}),uQ=({id:e,thresholdGroup:t,onSubmit:r})=>{var o;let i=tV(),{rangeCompare:l,deltaCompare:a}=uJ(t),s=t.thresholdBounds.saved?.rangeCompare,c=s?.min,u=s?.max,h=(0,eE.mN)({defaultValues:(e=>{let{rangeCompare:t,deltaCompare:r}=uJ(e);return{ranges:t.map(e=>({from:e.range.from??"",to:e.range.to??""})),deltas:r.map(e=>({value:"INCREASE"===e.type?e.delta.increase:e.delta.decrease}))}})(t),resolver:cw(((e,t)=>{let r,o,i,{rangeBounds:l,deltaBounds:n}=(r=e.thresholdBounds.saved,o=r?.decimalPlaces??2,i=e.unit??"",{rangeBounds:{min:r?.rangeCompare.min??-1/0,max:r?.rangeCompare.max??1/0,decimalPrecision:o,unit:i},deltaBounds:{min:r?.deltaCompare.min??-1/0,max:r?.deltaCompare.max??1/0,decimalPrecision:o,unit:i}});return rJ({ranges:r$(rJ({from:oz(l,t),to:oz(l,t)})),deltas:r$(rJ({value:oz(n,t)}))})})(t,i))}),{formState:{errors:g}}=h;return 0===l.length&&0===a.length?(0,eM.jsx)(n.EY,{children:(o="No thresholds are configured for this item.",console.warn(`ð§ missing translation, "${o}" for ce.patient.threshold-form-field.empty-state ð§`),`ð§ ${o.replaceAll("."," ")}`)}):(0,eM.jsxs)(d.B,{as:"form",id:e,axis:"y",_gap:"l",align:"stretch",onSubmit:h.handleSubmit(r),children:[l.map((e,r)=>{let o=0===r,i=r===l.length-1;return(0,eM.jsx)(uK,{priority:e.priority,description:e.description,range:e.range,instrumentMin:c,unit:t.unit,fromInputProps:{...h.register(`ranges.${r}.from`),errorText:g.ranges?.[r]?.from?.message},toInputProps:{...h.register(`ranges.${r}.to`),errorText:g.ranges?.[r]?.to?.message},onSetMin:o&&oR(c)?()=>h.setValue(`ranges.${r}.from`,String(c),{shouldValidate:!0,shouldDirty:!0}):void 0,onSetMax:i&&oR(u)?()=>h.setValue(`ranges.${r}.to`,String(u),{shouldValidate:!0,shouldDirty:!0}):void 0},e.thresholdIdentifierCode??r)}),a.map((e,r)=>(0,eM.jsx)(uY,{type:e.type,description:e.description,delta:e.delta,unit:t.unit,inputProps:{...h.register(`deltas.${r}.value`),errorText:g.deltas?.[r]?.value?.message}},e.thresholdIdentifierCode??r))]})},uX="EditPatientThresholdGroupDialog";t_(uX,tS(e=>{let{thresholdGroup:t}=e,r=tI(),o=tV(),{canEdit:i}=td(),l=(0,eW.useId)(),n=(0,eW.useId)();return(0,eM.jsxs)(j.yZ,{variant:"side-modal",size:"m","aria-labelledby":l,...uS(r),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{id:l,children:t.title}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:r.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{width:"full",backgroundColor:"background",children:(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[(0,eM.jsx)(uQ,{id:n,thresholdGroup:t,onSubmit:()=>r.resolve()}),(0,eM.jsx)(tQ,{})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{backgroundColor:"surface",children:(0,eM.jsxs)(j.yZ.Actions,{children:[(0,eM.jsx)(N.t,{onClick:r.resolve,children:o("ce.global.cancel")}),i&&(0,eM.jsx)(u.j,{form:n,type:"submit",children:o("ce.global.save")})]})})]})}));let u0=()=>tA(uX),u1="ViewCombinationThresholdMoreDetailsDialog",u2=e=>{var t;let{code:r,isMissing:o=!1}=e,i=tV();return(0,eM.jsx)(z.Z,{action:(0,eM.jsx)(v.E,{label:i("ce.global.copy"),onClick:(t={code:r,translate:i},async()=>{let{code:e,translate:r}=t;await navigator.clipboard.write([new ClipboardItem({"text/plain":e.code})]),(0,J.o)({type:"success",message:r("ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label")})}),children:(0,eM.jsx)($.A,{})}),children:(0,eM.jsxs)(d.B,{width:"full",axis:"x",justify:"between",children:[(0,eM.jsx)(d.B,{as:ew.e.Padding,children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",width:"full",children:[o?(0,eM.jsx)(k.A,{color:"on-negative"}):(0,eM.jsx)(ev.A,{}),(0,eM.jsxs)(d.B,{children:[(0,eM.jsxs)(n.EY,{children:[r.display," (",r.code,")"]}
3),o?(0,eM.jsx)(n.EY,{color:"on-negative",variant:"sm",children:i("ce.thresholds.validation-error.instrument-missing-in-protocol.title")}):null]})]})}),(0,eM.jsx)(c.a,{_mt:"m",_mr:"m",children:(0,eM.jsx)(z.Z.Action,{})})]})})};t_(u1,tS(e=>{let{presentCodes:t,missingCodes:r}=e,o=tI(),i=tV();return(0,eM.jsxs)(j.yZ,{variant:"centered-dialog",title:i("ce.thresholds.modal.instrument-missing.title"),size:"m",...uS(o),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{children:i("ce.thresholds.modal.instrument-missing.title")}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:o.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{children:(0,eM.jsxs)(d.B,{_gap:"l",width:"full",children:[(0,eM.jsx)(n.EY,{children:i("ce.thresholds.modal.instrument-missing.description")}),(0,eM.jsxs)(d.B,{_gap:"m",width:"full",align:"stretch",children:[(0,eM.jsx)(n.EY,{variant:"strong",children:i("ce.thresholds.modal.instrument-missing.required-instruments.title")}),(0,eM.jsx)(s.Z,{border:!0,padding:!1,children:(0,eM.jsxs)(ew.e,{children:[t.map(e=>(0,eM.jsx)(ew.e.Item,{children:(0,eM.jsx)(u2,{code:e})},oZ.fromCode(e).toString())),r.map(e=>(0,eM.jsx)(ew.e.Item,{children:(0,eM.jsx)(u2,{code:e,isMissing:!0})},oZ.fromCode(e).toString()))]})})]})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsx)(j.yZ.Actions,{children:(0,eM.jsx)(u.j,{onClick:o.resolve,children:i("ce.global.done")})})})]})}));let u4={show:e=>tC(u1,e),hide:()=>tA(u1)},u8=rJ({templateId:rQ(r4()),tags:rQ(rJ({program:rQ(r4()),programName:rQ(r4())}))});function u5(e){let t="__UNKNOWN-PROGRAM__",{success:r,output:o}=oe(u8,e);if(!r)return t;let{tags:i,templateId:l}=o;return i?.programName??i?.program??l??t}let u7=rJ({name:rQ(r4()),templateId:rQ(r4())});function u3(e){let t="__UNKNOWN-PROTOCOL__",{success:r,output:o}=oe(u7,e);if(!r)return t;let{name:i,templateId:l}=o;return i??l??t}t_("CopyCombinationThresholdDialog",tS(e=>{let t,r=tI(),{thresholdTitle:o,thresholdCombinationItems:i,thresholdPriority:l,system:a,thresholdCode:h}=e,g=tV(),{canEdit:m}=td(),[p,f]=(0,eW.useState)({name:"processing"}),{register:w,handleSubmit:v,formState:y,watch:A}=(0,eE.mN)({disabled:!m,defaultValues:{program:"",destinationTemplateId:""}}),I=A("program"),{mutateAsync:S,isPending:_,labels:T,isError:q}=((e={})=>{let t,r=tV(),{identifier:o,type:i}=ts(),{onCopyCombinationThresholdTransformer:l,urlResolvers:n}=aI(),a=(0,eS.jE)(),s=(t=(0,eS.jE)(),(e,r)=>{t.setQueryData(au(e),r)}),c={successTitle:r("ce.protocol.copy-trigger.modal.success.title"),renderSuccessDescription:e=>{let[t="",o=""]=r("ce.protocol.copy-trigger.modal.success.description",{protocol:"{{identifier}}"}
3).replace(/\\n/g,"\n").split("{{identifier}}");return e.render({beforeLink:t,afterLink:o,linkProps:n.renderOnCopyCombinationThresholdSuccessLink({identifier:e.identifier,tags:e.tags})})},failureMessage:r("ce.protocol.copy-trigger.modal.failed.title")},d=ah({mutation:{onSuccess:(t,r)=>{e.omitToasts?.includes("success")||(0,J.o)({type:"success",message:c.successTitle}),200===t.status&&s(r.templateId,t)}}}),u=(0,eW.useCallback)(e=>{if("template-configuration"!==i)throw Error("useCopyCombinationThresholdMutation can only be used within the application context of a template-configuration.");let{sourceSystem:t,sourceCode:r,destinationTemplateId:n}=e,s=a.getQueryData(au(o));if(!s)throw Error("Configuration template not found in the API cache.");let c=200===s.status?s.data:null;if(!c)throw Error("Configuration template data not available.");let u=c.configuration?.thresholds?.find(e=>e.flagCodes?.some(e=>e.system===t&&e.code===r));if(!u)throw Error("Combination threshold not found in the API cache.");let h=l?l(u):u;return d.mutateAsync({templateId:n,data:{configuration:{thresholds:[h]}}})},[d.mutateAsync,o]);return{...d,mutateAsync:u,type:i,labels:c}})({omitToasts:["success"]}),{data:E,isLoading:P}=(t=((e,t)=>{let r,{query:o,request:i}=t??{},l=o?.queryKey??["/api/configuration-templates",...e?[e]:[]],n=(r=ad(),(e,t)=>{let o,i;return r((o=new URLSearchParams,Object.entries(e||{}).forEach(([e,t])=>{void 0!==t&&o.append(e,null===t?"null":t.toString())}),(i=o.toString()).length>0?`/api/configuration-templates?${i}`:"/api/configuration-templates"),{...t,method:"GET"})});return{queryKey:l,queryFn:({signal:t})=>n(e,{signal:t,...i}),...o}})(void 0,void 0),{...(0,eA.I)(t,void 0),queryKey:t.queryKey}),D=200===E?.status?E.data:[],B=D?.map(e=>({...e,name:u5(e)})),M=B?.sort((e,t)=>u5(e).localeCompare(u5(t))),W=sK(M,"name"),O=D?.filter(e=>e.tags?.program===I).sort((e,t)=>u3(e).localeCompare(u3(t))),z=g("ce.protocol.copy-trigger.modal.copy-target-form.title"),L=g("ce.protocol.copy-trigger.modal.copy-target-form.program.label"),F=g("ce.protocol.copy-trigger.modal.copy-target-form.program.placeholder"),U=g("ce.protocol.copy-trigger.modal.copy-target-form.program.required"),R=g("ce.protocol.copy-trigger.modal.copy-target-form.protocol.label"),V=g("ce.protocol.copy-trigger.modal.copy-target-form.protocol.placeholder"),$=g("ce.protocol.copy-trigger.modal.copy-target-form.protocol.required"),Z="success"!==p.name?g("ce.protocol.copy-trigger.modal.title"):g("ce.protocol.copy-trigger.modal.success.title");return(0,eM.jsxs)(j.yZ,{size:"m",title:Z,...uS(r),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{children:Z}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:r.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{children:"success"===p.name?(0,eM.jsx)(eM.Fragment,{children:(0,eM.jsxs)(d.B,{_gap:"xl",width:"full",children:[(0,eM.jsx)(n.EY,{children:T.renderSuccessDescription({identifier:p.templateId,tags:p.tags,render:({beforeLink:e,afterLink:t,linkProps:r})=>(0,eM.jsxs)(eM.Fragment,{children:[e,"string"==typeof r?r:(0,eM.jsx)("a",{...r,children:r.label}),t]})})}),(0,eM.jsxs)(d.B,{_gap:"l",width:"full",align:"stretch",children:[(0,eM.jsx)(n.EY,{variant:"strong",children:g("ce.thresholds.modal.instrument-missing.required-instruments.title")}),(0,eM.jsx)(ef.A,{withBorder:!0,items:i.map(e=>({title:`${e.displayName} (${e.code})`,itemId:e.code,onClick:async()=>{await navigator.clipboard.write([new ClipboardItem({"text/plain":e.code})]),(0,J.o)({type:"success",message:g("ce.thresholds.modal.instrument-missing.tooltip.copy-ID.label")})}}))})]})]})}):(0,eM.jsxs)(d.B,{_gap:"l",width:"full",children:[q&&(0,eM.jsx)(x.A,{color:"red",icon:k.A,children:(0,eM.jsx)(n.EY,{color:"current",children:T.failureMessage})}),(0,eM.jsx)(s.Z,{border:!0,width:"full",children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"base",width:"full",children:[(0,eM.jsx)(rc,{priority:l,size:"s"}),(0,eM.jsxs)(d.B,{_gap:"base",children:[(0,eM.jsx)(n.EY,{variant:"medium",children:o}),(0,eM.jsxs)(c.a,{children:[(0,eM.jsx)(n.EY,{children:g("ce.protocol.copy-trigger.modal.required-instruments.title")}),(0,eM.jsx)("ul",{style:{listStyle:"disc",paddingLeft:"1rem",marginLeft:"1rem"},children:i.map(e=>
3(0,eM.jsx)("li",{"aria-label":e.displayName,children:(0,eM.jsx)(n.EY,{children:e.displayName})},e.code))})]})]})]})}),(0,eM.jsxs)(d.B,{as:"form",id:"copy-combination-threshold-form",_gap:"l",width:"full",onSubmit:v(e=>{let t=M?.find(t=>t.templateId===e.destinationTemplateId);S({sourceSystem:a,sourceCode:h,destinationTemplateId:e.destinationTemplateId}).then(()=>f({name:"success",templateId:e.destinationTemplateId,tags:t?.tags??{}}))}),children:[(0,eM.jsx)(n.EY,{variant:"strong",children:z}),P?(0,eM.jsxs)(d.B,{_gap:"base",children:[(0,eM.jsx)(C.E,{variant:"rounded",height:20,width:100}),(0,eM.jsx)(C.E,{variant:"rounded",height:44,width:240})]}):(0,eM.jsxs)(et.A,{label:L,errorText:y.errors.program&&U,...w("program",{required:!0,minLength:1}),children:[(0,eM.jsx)("option",{value:"",disabled:!0,children:F}),W?.map(e=>{if(!e.templateId)return null;let t=function(e){let t="__UNKNOWN-PROGRAM__",{success:r,output:o}=oe(u8,e);if(!r)return t;let{tags:i,templateId:l}=o;return i?.program??l??t}(e);return(0,eM.jsx)("option",{value:t,children:e.name},t)})]}),P?(0,eM.jsxs)(d.B,{_gap:"base",children:[(0,eM.jsx)(C.E,{variant:"rounded",height:20,width:100}),(0,eM.jsx)(C.E,{variant:"rounded",height:44,width:240})]}):(0,eM.jsxs)(et.A,{label:R,errorText:y.errors.destinationTemplateId&&$,...w("destinationTemplateId",{required:!0,minLength:1}),children:[(0,eM.jsx)("option",{value:"",disabled:!0,children:V}),O?.map(e=>{if(!e.templateId)return null;let t=u3(e);return(0,eM.jsx)("option",{value:e.templateId,children:t},e.templateId)})]})]})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsxs)(j.yZ.Actions,{children:[(0,eM.jsx)(N.t,{onClick:r.resolve,children:g(m?"ce.global.cancel":"ce.global.close")}),"success"!==p.name?(0,eM.jsx)(u.j,{isPending:_,type:"submit",form:"copy-combination-threshold-form",children:g("ce.protocol.copy-trigger.modal.button-copy.label")}):(0,eM.jsx)(u.j,{onClick:r.resolve,children:g("ce.global.close")})]})})]})}));let u6="SideModalFormDialog";t_(u6,tS(e=>{let{title:t,formComponent:r,defaultValues:o,performSubmit:i,primaryButtonLabel:l,secondaryButtonLabel:n}=e,{canEdit:a}=td(),s=(0,eW.useId)(),d=tI(),[h,g]=(0,eW.useState)(),[m,p]=(0,eW.useState)(!1);return(0,eM.jsxs)(j.yZ,{...uS(d),"aria-label":t,variant:"side-modal",size:"m",children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{children:t}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:d.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsxs)(j.yZ.Body,{width:"full",backgroundColor:"background",children:[(0,eM.jsx)("div",{role:"alert",children:h&&(0,eM.jsx)(c.a,{_mb:"l",children:(0,eM.jsx)(rb,{errorMessage:h})})}),(0,eM.jsx)(r,{id:s,defaultValues:o,onSubmit:async e=>{g(void 0),p(!0);let t=await i(e);if(p(!1),t.success)return d.resolve();g(t.message)}})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{backgroundColor:"surface",children:(0,eM.jsxs)(j.yZ.Actions,{children:[(0,eM.jsx)(N.t,{onClick:d.resolve,disabled:m,children:n}),a&&(0,eM.jsx)(u.j,{form:s,isPending:m,type:"submit",children:l})]})})]})}));let u9=()=>tA(u6),he="ThresholdBoundsDialog";t_(he,tS(e=>{let t,r=tI(),o=tV(),i=(t=t$(),e=>new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}).format(Math.pow(10,-e))),l=(0,eW.useId)(),a=o("ce.workflow-editor.instrument-info.min.label"),s=o("ce.workflow-editor.instrument-info.max.label"),c="bounds-form-id",h=e.defaultValues?.decimalPoints?String(e.defaultValues.decimalPoints):"2",g=(0,eE.mN)({defaultValues:e.defaultValues?{...e.defaultValues,decimalPoints:h}:{decimalPoints:null,thresholdMin:null,thresholdMax:null,increaseDecreaseMin:null,increaseDecreaseMax:null},resolver:cw(rJ({decimalPoints:r9(r4(),rz(e=>Number(e)),rK(),rM()),thresholdMin:rK(),thresholdMax:rK(),increaseDecreaseMin:rK(),increaseDecreaseMax:rK()}))}),m=Number(g.watch("decimalPoints","2"));return(0,eM.jsxs)(j.yZ,{variant:"centered-dialog",size:"m","aria-labelledby":l,...uS(r),children:[(0,eM.jsxs)(j.yZ.Header,{children:[(0,eM.jsx)(j.yZ.Title,{id:l,children:o("prototype.ce.instrument-validation.banner.title")}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:r.hide})]}),(0,eM.jsx)(j.yZ.Body,{children:(0,eM.jsxs)(d.B,{_gap:"base",as:"form",id:c,onSubmit:g.handleSubmit(e=>r.resolve({closeReason:"submit",values:e})),children:[(0,eM.jsxs)(em.k,{orientation:"horizontal",title:o("ce.workflow-builder.instrument-info.precision.title"),errorText:g.formState.errors?.decimalPoints?.message,children:[(0,eM.jsx)(eo.Z,{id:"decimals-zero",value:"
30",label:i(0),...g.register("decimalPoints")}),(0,eM.jsx)(eo.Z,{id:"decimals-one",value:"1",label:i(1),...g.register("decimalPoints")}),(0,eM.jsx)(eo.Z,{id:"decimals-two",value:"2",label:i(2),...g.register("decimalPoints")})]}),(0,eM.jsxs)(d.B,{as:"fieldset",axis:"y",_gap:"base",children:[(0,eM.jsx)("legend",{children:(0,eM.jsx)(n.EY,{variant:"strong",children:o("ce.workflow-editor.instrument-info.threshold-bounds.legend")})}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"xl",children:[(0,eM.jsx)(er.o,{id:"threshold-min",size:7,label:a,suffix:e.unit,errorText:g.formState.errors?.thresholdMin?.message,step:oK({decimalPrecision:m}),...g.register("thresholdMin",{valueAsNumber:!0})}),(0,eM.jsx)(er.o,{id:"threshold-max",size:7,label:s,suffix:e.unit,errorText:g.formState.errors?.thresholdMax?.message,step:oK({decimalPrecision:m}),...g.register("thresholdMax",{valueAsNumber:!0})})]})]}),(0,eM.jsxs)(d.B,{as:"fieldset",axis:"y",_gap:"base",children:[(0,eM.jsx)("legend",{children:(0,eM.jsx)(n.EY,{variant:"strong",children:o("ce.workflow-editor.instrument-info.increase-decrease-bounds.label")})}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"xl",children:[(0,eM.jsx)(er.o,{id:"increase-decrease-min",size:7,label:a,suffix:e.unit,errorText:g.formState.errors?.increaseDecreaseMin?.message,step:oK({decimalPrecision:m}),...g.register("increaseDecreaseMin",{valueAsNumber:!0})}),(0,eM.jsx)(er.o,{id:"increase-decrease-max",size:7,label:s,suffix:e.unit,errorText:g.formState.errors?.increaseDecreaseMax?.message,step:oK({decimalPrecision:m}),...g.register("increaseDecreaseMax",{valueAsNumber:!0})})]})]})]})}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsxs)(j.yZ.Actions,{children:[(0,eM.jsx)(N.t,{onClick:r.hide,children:o("ce.global.cancel")}),(0,eM.jsx)(u.j,{form:c,type:"submit",children:o("ce.global.save")})]})})]})}));let ht={show:e=>tC(he,e),hide:()=>tA(he)},hr="FaqDialog",ho="https://luscii.com/en/ifu",hi=[{question:"ce.template-configuration.faq.q1.question",answer:"ce.template-configuration.faq.q1.answer"},{question:"ce.template-configuration.faq.q2.question",answer:"ce.template-configuration.faq.q2.answer"},{question:"ce.template-configuration.faq.q3.question",answer:"ce.template-configuration.faq.q3.answer"},{question:"ce.template-configuration.faq.q4.question",answer:"ce.template-configuration.faq.q4.answer"},{question:"ce.template-configuration.faq.q5.question",answer:"ce.template-configuration.faq.q5.answer"},{question:"ce.template-configuration.faq.q6.question",answer:"ce.template-configuration.faq.q6.answer"}],hl=[{question:"ce.patient.faq.q1.question",answer:"ce.patient.faq.q1.answer"},{question:"ce.patient.faq.q2.question",answer:"ce.patient.faq.q2.answer"},{question:"ce.patient.faq.q3.question",answer:"ce.patient.faq.q3.answer"},{question:"ce.patient.faq.q4.question",answer:"ce.patient.faq.q4.answer"}],hn=e=>{let{configuration:t,title:r,questions:o,externalLinkUrl:i,externalLinkLabel:l,instructionsForUseUrl:s,instructionsForUseLabel:c,defaultOpenQuestionIndex:u}=e,h=tV(),g=tz(),m=tI();return(0,eM.jsxs)(j.yZ,{variant:"centered-dialog",size:"m",title:r,...uS(m),children:[(0,eM.jsxs)(j.yZ.Header,{_pb:"l",children:[(0,eM.jsx)(j.yZ.Title,{children:r}),(0,eM.jsx)(j.yZ.CloseButton,{onClick:m.resolve})]}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Body,{children:(0,eM.jsxs)(d.B,{_gap:"m",width:"full",align:"stretch",children:[(0,eM.jsx)(d.B,{_gap:"l",width:"full",align:"stretch",children:o.map(({question:e,answer:r},o)=>(0,eM.jsxs)(P.Up,{name:"faq",omitBorder:!0,omitSummaryDivider:!0,openByDefault:u===o+1,onToggleDetails:e=>{g({id:"faq_question_toggle",props:{configuration:t,questionIndex:o+1,newState:e?"expanded":"collapsed"}})},children:[(0,eM.jsx)(P.Up.Summary,{_p:"none",omitOpenIndicator:!0,style:{display:"block",listStyle:"none"},children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",align:"center",children:[(0,eM.jsx)(P.Up.Summary.DefaultOpenIndicator,{}),(0,eM.jsx)(n.EY,{variant:"strong",children:e})]})}),(0,eM.jsx)(d.B,{_px:"l",_py:"l",children:(0,eM.jsx)(n.EY,{children:r})})]},e))}),(0,eM.jsxs)(d.B,{axis:"x",_gap:"m",align:"stretch",justify:"start",_pl:"l",_pt:"m",children:[i&&(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(n.EY,{variant:"strong",children:(0,eM.jsx)(a.N,{href:i,target:"_blank",rel:"noopener noreferrer",onClick:()=>{g({id:"faq_link_click",props:{configuration:t,linkId:"more_information"}})},children:l})}),(0,eM.jsx)(b.c,{version:"v2",variant:"vertical"})]}),(0,eM.jsx)(n.EY,{variant:"strong",children:(0,eM.jsx)(a.N,{href:s,target:"_blank",rel:"noopener noreferrer",onClick:()=>{g({id:"faq_link_click",props:{configuration:t,linkId:"instructions_for_use"}})},children:c})})]})]})}),(0,eM.jsx)(b.c,{}),(0,eM.jsx)(j.yZ.Footer,{children:(0,eM.jsx)(j.yZ.Actions,{children:(0,eM.jsx)(N.t,{onClick:m.resolve,children:h("ce.global.close")})})})]})},ha=e=>{let{faqExternalUrl:t}=aI(),r=tV(),o=r("ce.template-configuration.faq.instructions-for-use
3-link.url"),i=o.startsWith("http")?o:ho,l=hi.map(({question:e,answer:t})=>({question:r(e),answer:r(t)}));return(0,eM.jsx)(hn,{configuration:"template",title:r("ce.template-configuration.faq.title"),questions:l,externalLinkUrl:t,externalLinkLabel:r("ce.template-configuration.faq.external-link.label"),instructionsForUseUrl:i,instructionsForUseLabel:r("ce.template-configuration.faq.instructions-for-use-link.label"),defaultOpenQuestionIndex:e.defaultOpenQuestionIndex})},hs=e=>{let t=cd(),r=t?.patientFaqExternalUrl,o=tV(),i=o("ce.template-configuration.faq.instructions-for-use-link.url"),l=i.startsWith("http")?i:ho,n=hl.map(({question:e,answer:t})=>({question:o(e),answer:o(t)}));return(0,eM.jsx)(hn,{configuration:"patient",title:o("ce.template-configuration.faq.title"),questions:n,externalLinkUrl:r,externalLinkLabel:o("ce.template-configuration.faq.external-link.label"),instructionsForUseUrl:l,instructionsForUseLabel:o("ce.template-configuration.faq.instructions-for-use-link.label"),defaultOpenQuestionIndex:e.defaultOpenQuestionIndex})};t_(hr,tS(e=>{let{type:t}=ts();return"template-configuration"===t?(0,eM.jsx)(ha,{...e}):(0,eM.jsx)(hs,{...e})}));let hc={show:e=>tC(hr,e),hide:()=>tA(hr)},hd=()=>{let e=tV();return(0,eM.jsxs)(x.A,{color:"blue",children:[(0,eM.jsx)(n.EY,{color:"current",variant:"strong",children:e("ce.patient.thresholds.loading.title")}),(0,eM.jsx)(n.EY,{color:"current",children:e("ce.patient.thresholds.loading.description")})]})},hu=function(){let e=e8()["item-identifier"],t=oZ.parseString(e),{system:r,code:o}=t,i=cu(),{triggerViewDetailLevel:l}=iD();if("processing"===i.processingState)return(0,eM.jsx)(hd,{});let n=i.combinationThresholds.data.get(r)?.get(o)??[],a=i.instrumentThresholdGroups.data.get(r)?.get(o);if(!a)throw Error(`Unable to obtain instrument for: system ${r} code ${o}`);return(0,eM.jsx)(iC,{onExpansionChange:e=>{tN({id:"change_all_trigger_rows_expansion_level",props:{configuration:"patient",newLevel:e}})},children:(0,eM.jsxs)(d.B,{_gap:"xl",align:"stretch",children:[(0,eM.jsx)(aa,{variant:"filter-and-ui-settings",selectedItemIdentifier:t.toString(),thresholdItemGroupCollection:i.instrumentThresholdGroups}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[(0,eM.jsx)(l5,{detailLevel:l,thresholdItemGroups:[a],onOpenSingleThresholdDetail:({thresholdGroup:e,threshold:t})=>{uG({thresholdGroup:e,threshold:t,onOpenEditor:()=>{tC(uX,{thresholdGroup:e}).then(u0)}}).then(uH)},onOpenThresholdItemGroup:e=>{tC(uX,e).then(u0)}}),n.length>0&&(0,eM.jsx)(al,{combinationThresholds:n,onExpansionChange:()=>{tN({id:"change_single_trigger_row_expansion_level",props:{configuration:"patient"}})}})]})]})})},hh=()=>{let e=tV();return(0,eM.jsx)(L.J,{leadingIcon:(0,eM.jsx)(eb.A,{color:"primary"}),onClick:()=>{tN({id:"faq_open",props:{configuration:"patient"}}),hc.show().then(hc.hide)},children:e("ce.template-configuration.faq.button.label")})},hg=()=>(0,eM.jsxs)(d.B,{_gap:"l",width:"full",align:"stretch",children:[(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",width:"full",children:[(0,eM.jsx)(tQ,{}),(0,eM.jsx)(hh,{})]}),(0,eM.jsx)(b.c,{version:"v2"})]}),hm=function(){let{triggerViewDetailLevel:e}=iD(),t=tV(),[r,o]=(0,eW.useState)(!1),i=cu(),l=im();if("processing"===i.processingState)return(0,eM.jsx)(hd,{});let s=oH(i.instrumentThresholdGroups.data),u=s.filter(e=>"configured"===e.state),h=s.filter(e=>"configured"!==e.state);return(0,eM.jsx)(iC,{onExpansionChange:e=>{tN({id:"change_all_trigger_rows_expansion_level",props:{configuration:"patient",newLevel:e}})},children:(0,eM.jsx)(d.B,{_gap:"xl",align:"stretch",width:"full",children:(0,eM.jsxs)(d.B,{_gap:"xl",align:"stretch",children:[(0,eM.jsx)(hg,{}),(0,eM.jsx)(aa,{variant:"filter-and-ui-settings",selectedItemIdentifier:null,thresholdItemGroupCollection:i.instrumentThresholdGroups}),(0,eM.jsx)(D.D,{as:"h1",variant:"h2",children:t("ce.patient.page.all-thresholds.title")}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[l&&(0,eM.jsx)(iw,{}),0===u.length&&(0,eM.jsx)(tX,{description:t("ce.patient.thresholds.all.empty.description")}),(0,eM.jsx)(l5,{detailLevel:e,thresholdItemGroups:u,onOpenSingleThresholdDetail:({threshold:e,thresholdGroup:t})=>{uG({thresholdGroup:t,threshold:e,onOpenEditor:()=>{tC(uX,{thresholdGroup:t}).then(u0)}}).then(uH)},onOpenThresholdItemGroup:e=>{tC(uX,e).then(u0)}})]}),i.combinationThresholds.items.length>0&&(0,eM.jsx)(al,{combinationThresholds:i.combinationThresholds.items,onExpansionChange:()=>{tN({id:"change_single_trigger_row_expansion_level",props:{configuration:"template"}})}}),h.length>0&&(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(b.c,{version:"v2"}),(0,eM.jsxs)(P.Up,{omitBorder:!0,open:r,onToggleDetails:o,children:[(0,eM.jsx)(P.Up.Summary,{omitOpenIndicator:!0,_p:"none",children:(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",children:[(0,eM.jsx)(D.D,{variant:"h3",children:t("ce.patient.thresholds.all.empty.title")}),(0,eM.jsx)(n.EY,{children:(0,eM.jsx)(a.N,{as:"span",children:t(r?"ce.global.hide":"ce.global.show")})})]})}),(0,eM.jsx)(c.a,{_pt:"xl",children:(0,eM.jsx)(l5,{detailLevel:e,thresholdItemGroups:h})})]})]})]})})})},hp=function(){let e=im();return"processing"===cu().processingState?(0,eM.jsx)(hd,{}):(0,eM.jsxs)(d.B,{width:"full",_gap:"xl",align:"stretch",children:[(0,eM.jsx)("div",{role:"alert",style:{display:"contents"},children:e&&(0,eM.jsx)(iw,{})}),(0,eM.jsxs)(tt,{children:[(0,eM.jsx)(e9,{path:"/",component:hm}),(0,eM.jsx)(e9,{path:"/all/:item-identifier",component:hu})]})]})},hf=(0,eW.createContext)(null),hw=({flagStore:e,children:t})=>{let r=(0,eW.useSyncExternalStore)(e.subscribe,e.getSnapshot);return(0,eM.jsx)(hf.Provider,{value:r,children:t})};
3hw.displayName="FlagsProvider";let hv=e=>{let{children:t,...r}=e;return(0,eM.jsx)(t5,{...r,children:(0,eM.jsx)(tR,{...r,children:(0,eM.jsx)(tO,{...r,children:(0,eM.jsx)(t8,{fallback:(0,eM.jsx)(t3,{error:Error("An error occurred initiating the clinical engine user interface.")}),children:(0,eM.jsx)(af,{...r,children:(0,eM.jsx)(hw,{...r,children:(0,eM.jsx)(uW,{...r,children:(0,eM.jsx)(io,{...r,children:(0,eM.jsx)(co,{...r,children:t})})})})})})})})})},hb=e=>oV(oA,e,{summaryMessagePrefix:"External items doesn't have the expected shape."}),hy=e=>{let{children:t,...r}=e;return(0,eM.jsx)(tn,{...r,children:(0,eM.jsx)(cc,{...r,children:(0,eM.jsx)(hv,{...r,children:t})})})};hy.displayName="CEProviders";let hx=(0,eW.createContext)({step:0,setStep:()=>{}}),hk=e=>{let{children:t}=e,[r,o]=(0,eW.useState)(0),i=(0,eS.jE)();return(0,eM.jsx)(hx.Provider,{value:{step:r,setStep:e=>{e!==r&&(o(e),i.refetchQueries())}},children:t})},hj=e=>{let{defaultValues:t,onSubmit:r,id:o,...i}=e,l=tV(),{canEdit:n}=td(),{register:a,handleSubmit:s,getValues:c}=(0,eE.mN)({disabled:!n,defaultValues:t});return(0,eM.jsx)(d.B,{as:"form",id:o,_gap:"l",align:"stretch",width:"full",...i,onSubmit:async e=>{e.preventDefault(),c().inactiveDays<=60?await s(r)():uq.show({icon:(0,eM.jsx)(k.A,{color:"primary"}),title:l("ce.threshold-updates.inactivity.confirm-exceeding-limit.title"),message:l("ce.threshold-updates.inactivity.confirm-exceeding-limit.description"),primaryButtonLabel:l("ce.global.save"),secondaryButtonLabel:l("ce.global.cancel"),task:async()=>(await s(r)(),{success:!0})}).then(uq.hide)},children:(0,eM.jsx)(er.o,{type:"number",step:1,min:1,label:l("ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.label"),suffix:l("ce.threshold-detail-flow.inactivity.trigger.form.inactive-days.suffix"),...a("inactiveDays",{valueAsNumber:!0})})})};function hC({id:e,defaultValues:t,onSubmit:r,onDeleteTrigger:o}){let i=tV(),l=cn().inactivity;if(!l)throw Error("Inactivity configuration is missing in the template");let a=l?.followUp?{followUpMaxTriggers:l?.followUp?.maxTriggers??null,followUpTasks:l?.followUp?.tasks.filter(e=>1===e.step)??[],followUpStatus:l?.followUp?.status??"keep-open"}:void 0,s=i("ce.threshold-detail-flow.inactivity.trigger.title");return(0,eM.jsxs)(rf,{children:[(0,eM.jsx)(hA,{title:s,onDeleteTrigger:o,children:(0,eM.jsxs)(d.B,{_gap:"l",children:[(0,eM.jsx)(n.EY,{children:i("ce.threshold-detail-flow.inactivity.trigger.description")}),(0,eM.jsx)(hj,{id:e,defaultValues:t,onSubmit:r})]})}),(0,eM.jsx)(hI,{}),a&&(0,eM.jsx)(c5,{title:i("ce.threshold-detail-flow.automated-actions.title"),tasks:a.followUpTasks,status:a.followUpStatus,maxTriggers:a.followUpMaxTriggers})]})}function hA(e){let{title:t,children:r,onDeleteTrigger:o}=e,i=tV();return(0,eM.jsx)(rp,{title:t,action:o?{icon:(0,eM.jsx)(Z.A,{color:"primary"}),iconLabel:i("ce.global.delete"),onClick:o}:void 0,children:r})}function hI(){let e=tV();return(0,eM.jsx)(rp,{title:e("ce.threshold-detail-flow.create-alert.grey.title"),children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(ex.A,{color:"grey"}),(0,eM.jsx)(n.EY,{children:e("ce.threshold-detail-flow.create-alert.grey.description")})]})})}let hS=(o=()=>{let e=tV(),t=tI(),r=aI().system,o=cn().inactivity;if(!o)throw Error("Inactivity configuration is missing in the template");let i="active"===o.state;return(0,eM.jsx)(cQ,{code:null,triggers:[],otherTriggers:[{system:r,code:"inactivity",description:i?e("ce.threshold-list-view.trigger.inactivity.label",{value:o.inactivityLimitDays.toString()}):e("ce.threshold-list-view.section.inactivity.empty"),priority:"PL",followUp:o.followUp}],title:e("ce.workflow-builder.inactivity.title"),onClose:t.resolve})},i={variant:"full-screen"},tS(()=>{let e=tI();return(0,eM.jsx)(j.yZ,{...uS(e),...i,children:(0,eM.jsx)(o,{})})})),h_=e=>{let t,r,o,i,{templateId:l}=e,a=tV(),s=cn().inactivity;if(!s)throw Error("Inactivity configuration is missing in the template");let{canEdit:c}=td(),d=tI(hS),u=a("ce.threshold-list-view.section.inactivity.title"),h=a("ce.threshold-detail-flow.inactivity.add-trigger.button.label"),g=a("ce.generic.button-edit.label"),{mutateAsync:m,labels:p}=av({operation:"add",triggerType:"inactivity"}),{mutateAsync:f,labels:w}=av({operation:"update",triggerType:"inactivity"}),{mutateAsync:v,labels:b}=(t=(0,eS.jE)(),o={successTitle:(r=tV())("ce.threshold-detail-flow.inactivity.remove-tr
3igger.success-toaster.title"),successMessage:r("ce.threshold-detail-flow.inactivity.remove-trigger.success-toaster.description"),failureMessage:r("ce.threshold-detail-flow.error-banner.could-not-save.description")},{...i=ah({mutation:{onSuccess:async(e,r,i)=>{tN({id:"protocol_activity_trigger_delete",props:{activity_trigger_type:"inactivity"}}),(0,J.o)({type:"success",title:o.successTitle,message:o.successMessage});let l=au(r.templateId);t.invalidateQueries({queryKey:l}),await void 0}}}),labels:o,mutate:e=>{let t=aw({triggerInactivityAlertAfterDays:null});i.mutate({templateId:e.templateId,data:{configuration:{...t.configuration,overrideInactivityLimit:!0}}})},mutateAsync:e=>{let t=aw({triggerInactivityAlertAfterDays:null});return i.mutateAsync({templateId:e.templateId,data:{configuration:{...t.configuration,overrideInactivityLimit:!0}}})}}),y=()=>{let e="active"===s.state?a("ce.global.save"):a("ce.threshold-detail-flow.inactivity.add-trigger.button.label"),t="active"===s.state&&c?a("ce.global.cancel"):a("ce.global.close");tC(u6,{title:a("ce.threshold-detail-flow.inactivity.add-trigger.title"),formComponent:e=>(0,eM.jsx)(hC,{...e,onDeleteTrigger:c&&"active"===s.state?x:void 0}),defaultValues:{inactiveDays:s.inactivityLimitDays??2},primaryButtonLabel:e,secondaryButtonLabel:t,performSubmit:async e=>{if("active"===s.state)try{return await (({inactiveDays:e})=>f({templateId:l,data:{triggerInactivityAlertAfterDays:e}}))({inactiveDays:e.inactiveDays}),{success:!0}}catch{return{success:!1,message:w.failureMessage}}try{return await (({inactiveDays:e})=>m({templateId:l,data:{triggerInactivityAlertAfterDays:e}}))({inactiveDays:e.inactiveDays}),{success:!0}}catch{return{success:!1,message:p.failureMessage}}}}).then(u9)},x=c&&"active"===s.state?()=>{uq.show({icon:(0,eM.jsx)(Z.A,{color:"primary"}),title:a("ce.confirmation-modal.remove-trigger.title"),message:a("ce.confirmation-modal.remove-trigger.inactivity.description"),primaryButtonLabel:a("ce.global.delete"),secondaryButtonLabel:a("ce.global.cancel"),task:async()=>{try{return await v({templateId:l}),{success:!0}}catch{return{success:!1,message:b.failureMessage}}}}).then(()=>{uq.hide(),u9()})}:void 0,k=()=>{d.show().then(d.hide)};return(0,eM.jsx)(rw,{title:u,secondaryActions:c?(0,eM.jsx)(N.t,{onClick:y,children:"inactive"===s.state?h:g}):void 0,children:"inactive"===s.state?(0,eM.jsx)(n.EY,{children:a("ce.threshold-list-view.section.inactivity.empty")}):(0,eM.jsx)(ae,{description:a("ce.threshold-list-view.trigger.inactivity.label",{value:s.inactivityLimitDays.toString()}),priority:"PL",followUpTasks:s.followUp?.tasks??[],followUpStatus:s.followUp?.status,code:"inactivity",icon:(0,eM.jsx)(ek.A,{color:"on-surface-variant"}),menuActions:{onDeleteTrigger:x,onEditTriggerDetails:y,onEditWorkflow:s.followUp?k:void 0,onAddWorkflow:s.followUp?void 0:k}})})};function hT({title:e,defaultOpen:t=!0,children:r}){let o=tV(),[i,l]=(0,eW.useState)(t);return(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(b.c,{version:"v2"}),(0,eM.jsxs)(P.Up,{omitBorder:!0,open:i,onToggleDetails:l,children:[(0,eM.jsx)(P.Up.Summary,{omitOpenIndicator:!0,_p:"none",children:(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",children:[(0,eM.jsx)(D.D,{variant:"h3",children:e}),(0,eM.jsx)(n.EY,{children:(0,eM.jsx)(a.N,{as:"span",children:o(i?"ce.global.hide":"ce.global.show")})})]})}),(0,eM.jsx)(c.a,{_pt:"xl",children:r})]})]})}function hq({hasCommentTrigger:e,onOpenModal:t,onDeleteTrigger:r}){let o=tV(),{canEdit:i}=td(),l=o("ce.threshold-list-view.section.comment.title");return(0,eM.jsx)(rw,{title:l,secondaryActions:i?(0,eM.jsx)(N.t,{onClick:t,children:o(e?"ce.generic.button-edit.label":"ce.threshold-detail-flow.comments.add-trigger.button.label")}):void 0,children:e?(0,eM.jsx)(ae,{description:o("ce.threshold-list-view.trigger.comment.label"),priority:"PL",followUpTasks:[],code:"comment",icon:(0,eM.jsx)(X.A,{color:"on-surface-variant"}),menuActions:{onEditTriggerDetails:t,onDeleteTrigger:e?r:void 0}}):(0,eM.jsx)(n.EY,{children:o("ce.threshold-list-view.section.comment.empty")})})}function hE({onDelete:e}){let t=tV(),{canEdit:r}
3=td(),o=t("ce.threshold-detail-flow.comments.trigger.title");return(0,eM.jsxs)(rf,{children:[(0,eM.jsx)(hP,{title:o,onDelete:r?e:void 0,children:(0,eM.jsx)(n.EY,{children:t("ce.threshold-detail-flow.comments.trigger.description")})}),(0,eM.jsx)(hD,{}),(0,eM.jsx)(hB,{})]})}function hP(e){let{title:t,onDelete:r,children:o}=e,i=tV();return(0,eM.jsx)(rp,{title:t,action:r?{icon:(0,eM.jsx)(Z.A,{color:"primary"}),iconLabel:i("ce.global.delete"),onClick:r}:void 0,children:o})}function hD(){let e=tV();return(0,eM.jsx)(rp,{title:e("ce.threshold-detail-flow.create-alert.grey.title"),children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(ex.A,{color:"grey"}),(0,eM.jsx)(n.EY,{children:e("ce.threshold-detail-flow.create-alert.grey.description")})]})})}function hB(){let e=tV();return(0,eM.jsx)(rp,{children:(0,eM.jsx)(n.EY,{color:"on-surface-variant",children:e("ce.threshold-detail-flow.comments.automated-actions.description")})})}let hM=new Intl.DateTimeFormat("nl-NL",{hour:"2-digit",minute:"2-digit"}),hW=Array.from({length:24},(e,t)=>{let r=new Date(2020,0,1,t);return hM.format(r)}).map(e=>({label:e,value:e}));function hN({hasOverdueTrigger:e,overdueReminderTime:t,followUpStatus:r,onOpenModal:o,onDeleteTrigger:i}){let l=tV(),{canEdit:a}=td(),s=l("ce.threshold-list-view.section.overdue.title"),c=l("ce.threshold-detail-flow.overdue.add-trigger.button.label"),d=l("ce.generic.button-edit.label");return(0,eM.jsx)(rw,{title:s,secondaryActions:a?(0,eM.jsx)(N.t,{onClick:o,children:e?d:c}):void 0,children:e?(0,eM.jsx)(ae,{description:l("ce.threshold-list-view.trigger.overdue.label"),subtitle:l("ce.threshold-list-view.trigger.overdue.subtitle",{time:t}),priority:"PL",followUpTasks:[],followUpStatus:r,code:"overdue",icon:(0,eM.jsx)(Q.A,{color:"on-surface-variant"}),menuActions:{onEditTriggerDetails:o,onDeleteTrigger:e?i:void 0}}):(0,eM.jsx)(n.EY,{children:l("ce.threshold-list-view.section.overdue.empty")})})}function hO({defaultValues:e,onSubmit:t,onDelete:r,...o}){let{clinicalEngineFeatureAutoProcessViaWorkflow:i}=(()=>{let e=(0,eW.useContext)(hf);if(!e)throw Error("Failed to obtain flags, ensure all calls to useFlags are placed within a FlagProvider.");return e})(),l=tV(),{canEdit:a}=td(),{register:s,handleSubmit:c}=(0,eE.mN)({disabled:!a,defaultValues:e}),u=l("ce.threshold-detail-flow.overdue.trigger.title");return(0,eM.jsx)(d.B,{as:"form",id:"overdue-trigger-form",_gap:"l",align:"stretch",...o,onSubmit:c(t),children:(0,eM.jsxs)(rf,{children:[(0,eM.jsx)(hz,{title:u,onDelete:a?r:void 0,children:(0,eM.jsxs)(d.B,{_gap:"l",children:[(0,eM.jsx)(n.EY,{children:l("ce.threshold-detail-flow.overdue.trigger.description")}),(0,eM.jsx)(et.A,{...s("overdueReminderTime"),width:"md",label:l("ce.threshold-detail-flow.overdue.trigger.form.all-day-time.label"),children:hW.map(e=>(0,eM.jsx)("option",{value:e.value,children:e.label},e.value))}),(0,eM.jsx)(et.A,{disabled:!0,width:"md",label:l("ce.threshold-detail-flow.overdue.trigger.form.time-sensitive-time.label"),children:(0,eM.jsx)("option",{value:"end-of-day",children:l("ce.threshold-detail-flow.overdue.trigger.form.all-day-alert-creation-option.end-of-day.label")})})]})}),(0,eM.jsx)(hL,{}),i?(0,eM.jsxs)(rp,{children:[(0,eM.jsx)(n.EY,{color:"on-surface-variant",children:l("ce.threshold-detail-flow.overdue.automated-actions.via-workflow-explanation")}),(0,eM.jsx)("input",{...s("autoProcessOverdues"),type:"hidden",id:"leave-open",value:"leave-open",checked:!0})]}):(0,eM.jsx)(rp,{title:l("ce.threshold-detail-flow.overdue.automated-actions.title"),children:(0,eM.jsx)(d.B,{_gap:"l",children:(0,eM.jsxs)(em.k,{title:l("ce.threshold-detail-flow.overdue.automated-actions.form.process-options.label"),helperText:l("ce.threshold-detail-flow.overdue.automated-actions.form.process-options.footnote"),children:[(0,eM.jsx)(eo.Z,{...s("autoProcessOverdues"),id:"leave-open",value:"leave-open",children:(0,eM.jsx)(n.EY,{children:l("ce.threshold-detail-flow.overdue.automated-actions.form.process-options.leave-open")})}),(0,eM.jsx)(eo.Z,{...s("autoProcessOverdues"),id:"process-auto",value:"process-auto",children:(0,eM.jsx)(n.EY,{children:l("ce.threshold-detail-flow.overdue.automated-actions.form.process-options.process-auto")})})]})})})]})})}function hz(e){let{title:t,onDelete:r,children:o}=e,i=tV();return(0,eM.jsx)(rp,{title:t,action:r?{icon:(0,eM.jsx)(Z.A,{color:"primary"}),iconLabel:i("ce.global.delete"),onClick:r}:void 0,children:o})}function hL(){let e=tV();
3return(0,eM.jsx)(rp,{title:e("ce.threshold-detail-flow.create-alert.grey.title"),children:(0,eM.jsxs)(d.B,{axis:"x",_gap:"l",align:"center",children:[(0,eM.jsx)(ex.A,{color:"grey"}),(0,eM.jsx)(n.EY,{children:e("ce.threshold-detail-flow.create-alert.grey.description")})]})})}let hF=function(){var e,t;let r,o,i,l,n,a,s,h,g=tV(),m=ts().identifier,{canEdit:p}=td(),[f,w]=(0,eW.useState)(null),v=cn(),b="active"===v.comments?.state,{mutate:y,isPending:x,isError:k,labels:j,reset:C}=av({operation:"add",triggerType:"comment",mutation:{onSuccess:()=>{w(null)}}}),{mutateAsync:A,isError:I,labels:S,reset:_}=(e={mutation:{onSuccess:()=>{w(null)}}},r=(0,eS.jE)(),i={successTitle:(o=tV())("ce.threshold-detail-flow.comments.remove-trigger.success-toaster.title"),successMessage:o("ce.threshold-detail-flow.comments.remove-trigger.success-toaster.description"),failureMessage:o("ce.threshold-detail-flow.error-banner.could-not-save.description")},{...l=ah({...e,mutation:{...e?.mutation,onSuccess:async(t,o,l)=>{tN({id:"protocol_activity_trigger_delete",props:{activity_trigger_type:"comment"}}),(0,J.o)({type:"success",title:i.successTitle,message:i.successMessage});let n=au(o.templateId);r.invalidateQueries({queryKey:n}),await e?.mutation?.onSuccess?.(t,o,l)}}}),labels:i,mutate:e=>{l.mutate({templateId:e.templateId,data:aw({triggerCommentAlerts:!1})})},mutateAsync:e=>l.mutateAsync({templateId:e.templateId,data:aw({triggerCommentAlerts:!1})})}),{mutate:T,isPending:q,isError:E,reset:P}=av({operation:"add",triggerType:"overdue",mutation:{onSuccess:()=>{w(null)}}}),{mutate:B,isPending:M,isError:W,labels:O,reset:z}=av({operation:"update",triggerType:"overdue",mutation:{onSuccess:()=>{w(null)}}}),{mutateAsync:L,reset:F}=(t={mutation:{onSuccess:()=>{w(null)}}},n=(0,eS.jE)(),s={successTitle:(a=tV())("ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.title"),successMessage:a("ce.threshold-detail-flow.overdue.remove-trigger.success-toaster.description"),failureMessage:a("ce.threshold-detail-flow.error-banner.could-not-save.description")},{...h=ah({...t,mutation:{...t?.mutation,onSuccess:async(e,r,o)=>{tN({id:"protocol_activity_trigger_delete",props:{activity_trigger_type:"overdue"}}),(0,J.o)({type:"success",title:s.successTitle,message:s.successMessage});let i=au(r.templateId);n.invalidateQueries({queryKey:i}),await t?.mutation?.onSuccess?.(e,r,o)}}}),labels:s,mutate:e=>{h.mutate({templateId:e.templateId,data:aw({triggerOverdueAlerts:!1})})},mutateAsync:e=>h.mutateAsync({templateId:e.templateId,data:aw({triggerOverdueAlerts:!1})})}),U=()=>{w(null),C(),_(),P(),z(),F()},R=()=>{uq.show({icon:(0,eM.jsx)(Z.A,{color:"primary"}),title:g("ce.confirmation-modal.remove-trigger.title"),message:g("ce.confirmation-modal.remove-trigger.comment.description"),primaryButtonLabel:g("ce.global.button.remove-trigger.label"),secondaryButtonLabel:g("ce.global.cancel"),task:()=>A({templateId:m}).then(()=>({success:!0})).catch(()=>({success:!1,message:g("ce.threshold-detail-flow.thresholds.remove-trigger.error-banner.description")}))}).then(uq.hide)},V=()=>{uq.show({icon:(0,eM.jsx)(Z.A,{color:"primary"}),title:g("ce.confirmation-modal.remove-trigger.title"),message:g("ce.confirmation-modal.remove-trigger.overdue.description"),primaryButtonLabel:g("ce.global.button.remove-trigger.label"),secondaryButtonLabel:g("ce.global.cancel"),task:()=>L({templateId:m}).then(()=>({success:!0})).catch(()=>({success:!1,message:g("ce.threshold-detail-flow.thresholds.remove-trigger.error-banner.description")}))}).then(uq.hide)},$=!0===b,G=im(),{triggerViewDetailLevel:H}=iD();if("processing"===v.processingState)return(0,eM.jsx)(hd,{});let Y=v.overdue,K=oH(v.instrumentThresholdGroups.data),Q=K.filter(e=>"configured"===e.state),X=K.filter(e=>"configured"!==e.state),ee=g("ce.threshold-detail-flow.comments.add-trigger.button.label"),et=g("ce.threshold-list-view.section.simple-triggers.title"),er=g("ce.threshold-list-view.section.combination-triggers.title"),eo=g("ce.threshold-list-view.section.inactivity-triggers.title"),ei=g("ce.patient.navigation.item.without");return(0,eM.jsx)(iC,{onExpansionChange:e=>{tN({id:"change_all_trigger_rows_expansion_level",props:{configuration:"template",newLevel:e}})},children:(0,eM.jsxs)(d.B,{width:"full",align:"stretch",_gap:"xl",children:[(0,eM.jsx)(aa,{variant:"filter-and-ui-settings",selectedItemIdentifier:null,thresholdItemGroupCollection:v.instrumentThresholdGroups}),(0,eM.jsxs)(d.B,{_gap:"m",align:"stretch",children:[(0,eM.jsx)(c.a,{_my:"base",children:(0,eM.jsx)(D.D,{variant:"h3",children:et})}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[G&&(0,eM.jsx)(iw,{}),0===Q.length&&(0,eM.jsx)(tX,{description:g("ce.patient.thresholds.all.empty.description")}),(0,eM.jsx)(l5,{detailLevel:H,thresholdItemGroups:Q,onOpenThresholdItemGroup:({thresholdGroup:e})=>{tC(uE,{systemCodeIdentifier:e.externalSystemCodeIdentifier}).then(uP)},onOpenSingleThresholdDetail:({threshold:e,thresholdGroup:t})=>{uG({thresholdGroup:t,threshold:e,onOpenEditor:()=>{tC(uE,{systemCodeIdentifier:t.externalSystemCodeIdentifier}).then(uP)}}).then(uH)}})]})]}),(0,eM.jsxs)(d.B,{_gap:"m",align:"stretch",children:[(0,eM.jsx)(c.a,{_my:"base",children:(0,eM.jsx)(D.D,{variant:"h3",children:eo})}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[oR(Y)&&(0,eM.jsxs)(eM.Fragment,{children:[(0,eM.jsx)(hN,{hasOverdueTrigger:"active"===Y.state,overdueReminderTime:Y.overdueReminderTime??Y.defaultOverdueReminderTime,followUpStatus:Y.autoProcessOverdues?"processed":"keep-open",onOpenModal:()=>w("overdue"),onDeleteTrigger:V}),"overdue"===f&&(0,eM.jsx)(hU,{isModalOpen:!0,closeModal:U,title:g("ce.threshold-detail-flow.overdue.add-trigger.title"),primaryButton:(0,eM.jsx)(hR,{canEdit:p,isPending:q||M,form:"overdue-trigger-form",type:"submit",children:"active"===Y.state?g("ce.global.save"):g("ce.threshold-detail-flow.overdue.add-trigger.button.label")}),isUpdateError:E||W,updateLabels:O,secondaryButton:(0,eM.jsx)(N.t,{onClick:U,children:"active"===Y.state&&p?g("ce.global.cancel"):g("ce.global.close")}),children:(0,eM.jsx)(hO,{defaultValues:{overdueReminderTime:Y.overdueReminderTime??Y.defaultOverdueReminderTime,autoProcessOverdues:"active"===Y.state&&!0===Y.autoProcessOverdues?"process-auto":"leave-open"},onDelete:"active"===Y.state?V:void 0,onSubmit:e=>{let t={overdueReminderTime:e.overdueReminderTime,autoProcessOverdues:"process-auto"===e.autoProcessOverdues};"active"===Y.state?B({templateId:m,data:t}):T({templateId:m,data:t})}})})]}),(0,eM.jsx)(h_,{templateId:m}),(0,eM.jsx)(hq,{hasCommentTrigger:$,onOpenModal:()=>
3w("comment"),onDeleteTrigger:R}),(0,eM.jsx)(hU,{isModalOpen:"comment"===f,closeModal:U,title:g("ce.threshold-detail-flow.comments.add-trigger.title"),primaryButton:!$&&(0,eM.jsx)(u.j,{isPending:x,onClick:()=>{y({templateId:m,data:{triggerCommentAlerts:!0}})},children:ee}),isUpdateError:k,isDeleteError:I,updateLabels:j,deleteLabels:S,secondaryButton:(0,eM.jsx)(N.t,{onClick:U,children:g($&&p?"ce.global.cancel":"ce.global.close")}),children:(0,eM.jsx)(hE,{onDelete:$?R:void 0})})]})]}),v.combinationThresholds.items.length>0&&(0,eM.jsxs)(d.B,{_gap:"m",align:"stretch",children:[(0,eM.jsx)(c.a,{_my:"base",children:(0,eM.jsx)(D.D,{variant:"h3",children:er})}),(0,eM.jsx)(al,{combinationThresholds:v.combinationThresholds.items,onExpansionChange:()=>{tN({id:"change_single_trigger_row_expansion_level",props:{configuration:"template"}})}})]}),X.length>0&&(0,eM.jsx)(hT,{title:ei,children:(0,eM.jsx)(l5,{detailLevel:H,thresholdItemGroups:X,onOpenThresholdItemGroup:({thresholdGroup:e})=>{tC(uE,{systemCodeIdentifier:e.externalSystemCodeIdentifier}).then(uP)},onOpenSingleThresholdDetail:({threshold:e,thresholdGroup:t})=>{uG({thresholdGroup:t,threshold:e,onOpenEditor:()=>{tC(uE,{systemCodeIdentifier:t.externalSystemCodeIdentifier}).then(uP)}}).then(uH)}})})]})})};function hU(e){let{children:t,isModalOpen:r,closeModal:o,title:i,primaryButton:l,secondaryButton:a,updateLabels:s,isUpdateError:d,deleteLabels:u,isDeleteError:h}=e;return(0,eM.jsx)(j.yZ,{variant:"side-modal",open:r,onClose:o,size:"m","aria-label":i,children:(0,eM.jsxs)(ry,{onClose:o,title:i,primaryButton:l,secondaryButton:a,children:[d&&(0,eM.jsx)(c.a,{_mb:"l",children:(0,eM.jsx)(x.A,{role:"alert",color:"red",icon:k.A,children:(0,eM.jsx)(n.EY,{color:"current",children:s.failureMessage})})}),h&&u&&(0,eM.jsx)(c.a,{_mb:"l",children:(0,eM.jsx)(x.A,{role:"alert",color:"red",icon:k.A,children:(0,eM.jsx)(n.EY,{color:"current",children:u.failureMessage})})}),t]})})}function hR(e){let{canEdit:t,isPending:r,form:o,type:i,children:l}=e;if(t)return(0,eM.jsx)(u.j,{isPending:r,form:o,type:i,children:l})}let hV=function(){let e=e8()["item-identifier"],t=oZ.parseString(e),{system:r,code:o}=t,i=cn();if("processing"===i.processingState)return(0,eM.jsx)(hd,{});let l=i.combinationThresholds.data.get(r)?.get(o)??[],n=i.instrumentThresholdGroups.data.get(r)?.get(o),{triggerViewDetailLevel:a}=iD();if(!n)throw Error(`Unable to obtain instrument for: system ${r} code ${o}`);return(0,eM.jsx)(iC,{onExpansionChange:e=>{tN({id:"change_all_trigger_rows_expansion_level",props:{configuration:"template",newLevel:e}})},children:(0,eM.jsxs)(d.B,{_gap:"xl",align:"stretch",children:[(0,eM.jsx)(aa,{variant:"filter-and-ui-settings",selectedItemIdentifier:t.toString(),thresholdItemGroupCollection:i.instrumentThresholdGroups}),(0,eM.jsxs)(d.B,{_gap:"l",align:"stretch",children:[(0,eM.jsx)(l5,{detailLevel:a,thresholdItemGroups:[n],onOpenThresholdItemGroup:({thresholdGroup:e})=>{tC(uE,{systemCodeIdentifier:e.externalSystemCodeIdentifier}).then(uP)},onOpenSingleThresholdDetail:({threshold:e,thresholdGroup:t})=>{uG({thresholdGroup:t,threshold:e,onOpenEditor:()=>{tC(uE,{systemCodeIdentifier:t.externalSystemCodeIdentifier}).then(uP)}}).then(uH)}}),l.length>0&&(0,eM.jsx)(al,{combinationThresholds:l,onExpansionChange:()=>{tN({id:"change_single_trigger_row_expansion_level",props:{configuration:"template"}})}})]})]})})};function h$(){let e=tV(),t=cn();if("processing"===t.processingState)return(0,eM.jsx)(hd,{});let r=t.combinationThresholds.items;return(0,eM.jsx)(iC,{onExpansionChange:e=>{tN({id:"change_all_trigger_rows_expansion_level",props:{configuration:"template",newLevel:e}})},children:(0,eM.jsxs)(d.B,{_gap:"xl",align:"stretch",children:[(0,eM.jsx)(aa,{variant:"ui-settings-only"}),r.length>0?(0,eM.jsx)(al,{combinationThresholds:r,onExpansionChange:()=>{tN({id:"change_single_trigger_row_expansion_level",props:{configuration:"template"}})}}):(0,eM.jsx)(tX,{description:e("ce.threshold-list-view.section.combined-instruments.empty.description")})]})})}let hZ="combined",hG="inactivity",hH=function(){let e=tV(),t=tz(),r=ts().identifier,[o,i]=e5(e1()),l=o.startsWith(`/${hG}`)?hG:o.startsWith(`/${hZ}`)?hZ:"all";return(0,eM.jsxs)(ej.t.Root,{value:l,onValueChange:e=>{switch(e){case"all":return i("/all");case hZ:return i("/combined");case hG:return i("/inactivity");default:throw Error(`Unknown tab value: ${e}`)}},children:[(0,eM.jsxs)(d.B,{axis:"x",justify:"between",align:"center",width:"full",children:[(0,eM.jsxs)(ej.t.List,{children:[(0,eM.jsx)(ej.t.Trigger,{value:"all",children:(0,eM.jsx)(n.EY,{as:"span",variant:"all"===l?"body-base-bold":"body-base-regular",color:"all"===l?"current":"neutral-secondary",children:e("ce.template-configuration.tabs.all-triggers.label")})}),(0,eM.jsx)(ej.t.Trigger,{value:hG,children:(0,eM.jsx)(n.EY,{as:"span",variant:l===hG?"body-base-bold":"body-base-regular",color:l===hG?"current":"neutral-secondary",children:e("ce.template-configuration.tabs.inactivity.label")})}),(0,eM.jsx)(ej.t.Trigger,{value:hZ,children:(0,eM.jsx)(n.EY,{as:"span",variant:l===hZ?"body-base-bold":"body-base-regular",color:l===hZ?"current":"neutral-secondary",children:e("ce.template-configuration.tabs.combined.label")})})]}),(0,eM.jsx)(L.J,{leadingIcon:(0,eM.jsx)(eb.A,{color:"primary"}),onClick:()=>{t({id:"faq_open",props:{configuration:"template"}}),hc.show().then(hc.hide)},children:e("ce.template-configuration.faq.button.label")})]}),(0,eM.jsx)(b.c,{version:"v2"}),(0,eM.jsx)(ej.t.Content,{value:"all",children:(0,eM.jsx)(ej.t.Padding,{children:(0,eM.jsx)(hY,{})})}),(0,eM.jsx)(ej.t.Content,{value:hG,children:(0,eM.jsx)(ej.t.Padding,{children:(0,eM.jsx)(hK,{templateId:r})})}),(0,eM.jsx)(ej.t.Content,{value:hZ,children:(0,eM.jsx)(ej.t.Padding,{children:(0,eM.jsx)(h$,{})})})]})};function hY(){return(0,eM.jsxs)(tt,{children:[(0,eM.jsx)(e9,{path:"/all/:item-identifier",component:hV}
3),(0,eM.jsx)(e9,{path:"/all",component:hF}),(0,eM.jsx)(e9,{path:"/",children:(0,eM.jsx)(tr,{to:"/all",replace:!0})})]})}function hK(e){return(0,eM.jsx)(h_,{templateId:e.templateId})}let hJ=function(){return"processing"===cn().processingState?(0,eM.jsx)(hd,{}):(0,eM.jsx)(d.B,{_gap:"xl",width:"full",align:"stretch",children:(0,eM.jsx)(tt,{children:(0,eM.jsx)(e9,{component:hH})})})},hQ=e=>{let{children:t,...r}=e;return(0,eM.jsx)(ta,{...r,children:(0,eM.jsx)(aA,{...r,children:(0,eM.jsx)(hv,{...r,children:(0,eM.jsx)(cD,{...r,children:t})})})})};hQ.displayName="CEProviders",r.d(t,{},{u:(e,t)=>{console.info("%c[CE] Init patient - v2","color: lightblue; background: darkblue; padding: 4px 8px"),hb(t.externalItems);let r=(0,eT.createRoot)(e),o=new e_.E,{hook:i}=to({record:!0});return r.render((0,eM.jsx)(hy,{...t,children:(0,eM.jsx)(ey.Kq,{children:(0,eM.jsxs)(eS.Ht,{client:o,children:[(0,eM.jsx)(ip,{children:(0,eM.jsx)(tP,{children:(0,eM.jsx)(e3,{hook:i,children:(0,eM.jsx)(hp,{})})})}),!1]})})})),()=>{console.info("%c[CE] Teardown patient - v2","color: lightblue; background: darkblue; padding: 4px 8px"),r.unmount(),o.clear()}},x:(e,t)=>{console.info("%c[CE] Init template - v2","color: lightblue; background: darkblue; padding: 4px 8px"),hb(t.externalItems);let r=(0,eT.createRoot)(e),o=new e_.E({defaultOptions:{queries:{staleTime:3e4}}}),{hook:i}=to({record:!0});return r.render((0,eM.jsx)(hQ,{...t,children:(0,eM.jsx)(ey.Kq,{children:(0,eM.jsxs)(eS.Ht,{client:o,children:[(0,eM.jsx)(hk,{children:(0,eM.jsx)(ip,{children:(0,eM.jsx)(tP,{children:(0,eM.jsx)(e3,{hook:i,children:(0,eM.jsx)(hJ,{})})})})}),!1]})})})),()=>{console.info("%c[CE] Teardown template - v2","color: lightblue; background: darkblue; padding: 4px 8px"),r.unmount(),o.clear()}}})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.