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]="fc202351-06f0-4634-ada3-f0b37f59e4d7",e._sentryDebugIdIdentifier="sentry-dbid-fc202351-06f0-4634-ada3-f0b37f59e4d7")}catch(e){}}();"use strict";(globalThis.rspackChunkvitals||=[]).push([[3797],{85768(e){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDI1IDI0Ij48cmVjdCB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHg9IjMuMyIgeT0iMi41IiBmaWxsPSIjRTdGNUVDIiBzdHJva2U9IiMzODgzNjgiIHJ4PSIzLjUiLz48L3N2Zz4="},49656(e){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cmVjdCB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHg9IjIuNSIgeT0iMi41IiBmaWxsPSIjRUZGNkZGIiBzdHJva2U9IiMxRDRFRDgiIHJ4PSIzLjUiLz48L3N2Zz4="},16039(e){e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNSIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDI1IDI0Ij48cmVjdCB3aWR0aD0iMTkiIGhlaWdodD0iMTkiIHg9IjIuNyIgeT0iMi41IiBmaWxsPSIjRjNGNEY2IiBzdHJva2U9IiM5Q0EzQUYiIHJ4PSIzLjUiLz48L3N2Zz4="},35838(e,t,l){var i=l(74848),n=l(19732),a=l(65908),r=l(39812),u=l(25467);let s=()=>(0,i.jsxs)(n.B,{axis:"x",_gap:"l",align:"center",as:"li",width:"full",children:[(0,i.jsx)(a.E,{variant:"rounded",width:24,height:24}),(0,i.jsxs)(n.B,{children:[(0,i.jsx)(r.EY,{variant:"base",children:(0,i.jsx)(a.E,{width:100})}),(0,i.jsx)(r.EY,{variant:"sm",children:(0,i.jsx)(a.E,{width:120})})]})]}),d=({isError:e=!1,children:t})=>(0,i.jsx)(r.EY,{variant:"base",color:e?"red":"base",children:t}),o=({isError:e=!1,children:t})=>(0,i.jsx)(r.EY,{variant:"sm",color:e?"red":"slate-500",children:t});l.d(t,{},{Pd:o,e8:({title:e,subtitle:t,icon:l,leadingIcon:a,isLoading:r=!1})=>r?(0,i.jsx)(s,{}):(0,i.jsxs)(n.B,{axis:"x",_gap:"l",align:"center",as:"li",width:"full",children:[l&&(0,i.jsx)(u.I,{name:l}),a,(0,i.jsxs)(n.B,{children:["string"==typeof e?(0,i.jsx)(d,{children:e}):e,"string"==typeof t?(0,i.jsx)(o,{children:t}):t]})]}),hE:d})},69636(e,t,l){l.d(t,{W:()=>j});var i=l(74848);l(96540);var n=l(19732),a=l(39812),r=l(74822),u=l(61028),s=l(69158),d=l(11400),o=l(69826),c=l(18032),m=l(66963),p=l(52166),f=l(85768),h=l(49656),g=l(16039),y=l(35838),I=l(72509),x=l(288);let D={protocol:(0,i.jsx)("img",{src:h,alt:(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.protocol")}),personal:(0,i.jsx)("img",{src:f,alt:(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.personal")}),workflow:(0,i.jsx)("img",{src:g,alt:(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.workflow")}),selfPlanned:(0,i.jsx)("img",{src:g,alt:(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.extraAction")})},v=({action:e,moments:t,scheduleLink:l})=>{let a=(0,p.Z)(),{formatDate:r}=(0,I.g)(),u=(0,x.P7)(e?.measureDays?.filter(e=>void 0!==e)??void 0,e?.notBeforeTime,e?.validPeriod),f=(0,x.Sx)(e?.interval??void 0),h=(0,x.NZ)({interval:e?.interval??null,endOffset:e?.endOffset??null,scheduleType:e?.scheduleType??null})??(0,x.JN)({interval:e?.interval??"",startDate:e?.startDate??"",endDate:e?.endDate??""}),g=1===h,v=g?(0,s.Tl)("luscii.frequencies.once"):f,j=!!e?.endOffset||!!e?.endDate,T=!g&&h&&j?(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.endsAfter",{repeatCount:h}):null,S=(0,x.Of)(e,t,r),b=u.length>0,w=b?u:S,M=e.actionSource,P=()=>{e.momentUuid&&e.scheduleType?a({to:new URL(`${l}/${e.momentUuid}/${e.scheduleType}`).pathname}):a({to:l})};return(0,i.jsx)(n.B,{width:"full",children:(0,i.jsx)(d.x,{borderRadius:"s",hoverBackgroundColor:"blue",indicator:(0,i.jsx)(o.N,{onClick:P,className:"text-sm",children:(0,s.Tl)("luscii.upcomingSchedule.goToSchedule")}),_p:"l",width:"full",children:(0,i.jsxs)(n.B,{axis:"y",_gap:"l",onClick:P,children:[v&&(0,i.jsxs)(n.B,{axis:"x",justify:"between",width:"full",children:[(0,i.jsx)(y.e8,{title:v,leadingIcon:(0,i.jsx)(c.A,{color:"on-surface-variant"}),subtitle:T}),(0,i.jsx)(d.x.Indicator,{})]}),(0,i.jsxs)(n.B,{axis:"x",justify:"between",width:"full",children:[(0,i.jsx)(y.e8,{title:w,leadingIcon:(0,i.jsx)(m.A,{color:"on-surface-variant"}),subtitle:b?S:null}),!v&&(0,i.jsx)(d.x.Indicator,{})]}),M&&(0,i.jsx)(y.e8,{title:M.label,leadingIcon:D[M.type]})]})},`hover-indicator-${e.uuid}`)})},j=({actions:e,moments:t,scheduleLink:l,isLoading:d,isProtocol:o=!1})=>(0,i.jsxs)(n.B,{axis:"y",_gap:"l",width:"full",children:[(0,i.jsx)(a.EY,{variant:"strong",children:o?(0,s.Tl)("luscii.schedule"):(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.title")}),(0,i.jsxs)(n.B,{axis:"y",_gap:"m",width:"full",children:[d&&(0,i.jsx)(r.I,{}),!d&&0===e.length&&(0,i.jsx)(a.EY,{children:(0,s.Tl)("luscii.patient.measurements.modal.upcomingSchedule.notScheduled")}),e.map((n,a)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{action:n,moments:t,scheduleLink:l},n.uuid),a!==e.length-1&&(0,i.jsx)(u.c,{})]}))]})]})},288(e,t,l){var i=l(67327),n=l(79577),a=l(69158);let r=["",(0,a.Tl)("luscii.globel.time.monday"),(0,a.Tl)("luscii.globel.time.tuesday"),(0,a.Tl)("luscii.globel.time.wednesday"),(0,a.Tl)("luscii.globel.time.thursday"),(0,a.Tl)("luscii.globel.time.friday"),(0,a.Tl)("luscii.globel.time.saturday"),(0,a.Tl)("luscii.globel.time.sunday")];function u(e,t,l){let i=Array.isArray(e)&&e.length>0,n=function(e,t){if(!e||!t)return null;let l=e.substring(0,5),i=l.split(":").map(Number);if(2!==i.length||i.some(isNaN))return null;let n=/^PT(?:(\d{1,2})H)?(?:(\d{1,2})M)?$/.exec(t);if(!n)return null;let a=n[1]?parseInt(n[1],10):0,r=n[2]?parseInt(n[2],10):0;if(0===a&&0===r)return null;let[u,s]=i;if(void 0===u||void 0===s)return null;let d=(u+a+Math.floor((s+r)/60))%24;return`${l} - ${d.toString().padStart(2,"0")}:${((s+r)%60).toString().padStart(2,"0")}`}(t,l),a=n&&n.length>0;if(i&&a){let t=e.map(e=>r[e]).join(", ");return`${t}, ${n}`}return i?e.map(e=>r[e]).join(", "):a?n:""}function s(e){if(!e||"P0D"===e)return null;if("P1D"===e)return(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.repeatsEveryDay");if("P7D"===e||"P1W"===e)return(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.repeatsEveryWeek");if(e.startsWith("P")&&e.endsWith("D")){let t=parseInt(e.slice(1,-1),10);return(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.repeatsEveryDays",{days:t})}if(e.startsWith("P")&&e.endsWith("W")){let t=parseInt(e.slice(1,-1),10);return(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.repeatsEveryWeeks",{weeks:t})}return null}function d(e,t){return Object.values(e.filter(e=>e.uuid===t?.uuid||e.programActionUuid===t?.uuid).reduce((e,t)=>
1{let l=t.patientMeasurementFrequency?.id;return e[l?`${t.programActionUuid}-${l}`:t.programActionUuid]=t,e},{}))}function o(e){if(!e?.interval)return null;let t=(0,i.pJ)(e.interval);if(e?.startDate&&e?.endDate){let l=new Date(e.startDate),i=new Date(e.endDate);if(t>0)return Math.floor((i.getTime()-l.getTime())/(24*t*36e5))+1}return t>0?t+1:null}function c({interval:e,endOffset:t,scheduleType:l}){if(!e||!t)return null;let n=l??(e.includes("W")||t.includes("W")?"week":"day"),a="day"===n?(0,i.pJ)(e):(0,i.Ld)(e);if(a<=0)return null;let r="day"===n?Math.floor((0,i.pJ)(t)):Math.floor((0,i.Ld)(t));return r<0?null:Math.floor(r/a)+1}l.d(t,{JN:()=>o,NZ:()=>c,P7:()=>u,Qm:()=>d,Sx:()=>s},{Bi:e=>{let t=null;return t=e.startOffset?e.startOffset.includes("D")?"day":"week":Array.isArray(e.measureDays)&&e.measureDays.length>0?"week":"day",{uuid:e.uuid??"",interval:e.interval??null,validPeriod:e.validPeriod??null,notBeforeTime:e.notBeforeTime??null,measureDays:e.measureDays?.map(n.J7)??null,startDate:null,endDate:null,endOffset:e.endOffset??null,momentUuid:e.moment?.uuid??null,scheduleType:t,actionSource:null}},Of:(e,t,l)=>{if(!e.momentUuid||!t.length)return e?.startDate?`${(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.startingFrom")} ${l(e.startDate,{style:"short"})}`:"";let i=t.find(t=>t.uuid===e.momentUuid);if(!i)return e?.startDate?`${(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.startingFrom")} ${l(e.startDate,{style:"short"})}`:"";if(e?.startDate&&"date"in i&&i.date){let t=new Date(e.startDate),l=new Date(i.date),n=Math.ceil((t.getTime()-l.getTime())/6048e5);if(n>0)return(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.startingFromWeekAfter",{week:n,momentName:i.name})}return`${(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.startingFrom")} ${i.name}`},Ot:e=>{let t=null;return e.schedule?.offset&&(t=e.schedule.offset.includes("D")?"day":"week"),{uuid:e.workflowUuid??"",interval:e.schedule?.offset??null,validPeriod:null,notBeforeTime:null,measureDays:e.schedule?.days?.map(n.J7)??null,startDate:null,endDate:null,endOffset:null,momentUuid:e.schedule?.momentUuid??null,scheduleType:t,actionSource:null}},kI:e=>{var t;return{uuid:e.uuid,interval:e.patientMeasurementFrequency?.interval??null,validPeriod:e.patientMeasurementFrequency?.validPeriod??null,notBeforeTime:e.patientMeasurementFrequency?.notBeforeTime??null,measureDays:e.patientMeasurementFrequency?.measureDays?.filter(e=>void 0!==e)??null,startDate:e.patientMeasurementFrequency?.startDate??null,endD
1ate:e.patientMeasurementFrequency?.endDate??null,endOffset:null,momentUuid:e.patientMeasurementFrequency?.protocolFrequency?.momentUuid??null,scheduleType:null,actionSource:(t=e).isSelfPlanned?{type:"selfPlanned",label:(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.extraAction")}:"wfa"===t.plannedVia?{type:"workflow",label:(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.workflow")}:t.patientMeasurementFrequency?.protocolFrequency!==null?{type:"protocol",label:(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.protocol")}:{type:"personal",label:(0,a.Tl)("luscii.patient.measurements.modal.upcomingSchedule.personal")}}}})}}]);
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.