PageSourceSearch

https://vitals.luscii.com/assets/v4.207.0-hotfix.1/js/743.1d62fc071763ddf4.js

js luscii.com collected 2026-10-01 12:31:44 UTC 14,302 bytes, 1 lines download raw bytes

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]="cafb59e6-056a-4989-a10e-f40db9848994",e._sentryDebugIdIdentifier="sentry-dbid-cafb59e6-056a-4989-a10e-f40db9848994")}catch(e){}}();"use strict";(globalThis.rspackChunkvitals||=[]).push([[743],{83006(e,t,r){var i=r(69158);r.d(t,{},{I:e=>{switch(e){case"group_created":return(0,i.Tl)("luscii.group.activityFeed.groupCreated.eventItem.description");case"group_updated":return(0,i.Tl)("luscii.group.activityFeed.groupUpdated.eventItem.description");case"program_created":return(0,i.Tl)("luscii.program.activityFeed.programCreated.eventItem.description");case"program_updated":return(0,i.Tl)("luscii.program.activityFeed.programUpdated.eventItem.description");case"program_deleted":return(0,i.Tl)("luscii.program.activityFeed.programDeleted.eventItem.description");case"program_action_created":return(0,i.Tl)("luscii.program.activityFeed.programActionCreated.eventItem.description");case"program_action_updated":return(0,i.Tl)("luscii.program.activityFeed.programActionUpdated.eventItem.description");case"program_action_deleted":return(0,i.Tl)("luscii.program.activityFeed.programActionDeleted.eventItem.description");case"protocol_schedule_action_not_available":return(0,i.Tl)("luscii.program.activityFeed.protocolScheduleActionNotAvailable.eventItem.description");case"program_care_block_created":return(0,i.Tl)("luscii.program.activityFeed.programCareBlockCreated.eventItem.description");case"program_care_block_updated":return(0,i.Tl)("luscii.program.activityFeed.programCareBlockUpdated.eventItem.description");case"program_care_block_deleted":return(0,i.Tl)("luscii.program.activityFeed.programCareBlockDeleted.eventItem.description");case"program_patient_information_created":return(0,i.Tl)("luscii.program.activityFeed.programPatientInformationCreated.eventItem.description");case"program_patient_information_updated":return(0,i.Tl)("luscii.program.activityFeed.programPatientInformationUpdated.eventItem.description");case"program_patient_information_deleted":return(0,i.Tl)("luscii.program.activityFeed.programPatientInformationDeleted.eventItem.description");case"program_moment_created":return(0,i.Tl)("luscii.program.activityFeed.programMomentCreated.eventItem.description");case"program_moment_updated":return(0,i.Tl)("luscii.program.activityFeed.programMomentUpdated.eventItem.description");case"program_moment_deleted":return(0,i.Tl)("luscii.program.activityFeed.programMomentDeleted.eventItem.description");case"program_note_created":return(0,i.Tl)("luscii.program.activityFeed.programNoteCreated.eventItem.description");case"program_note_updated":return(0,i.Tl)("luscii.program.activityFeed.programNoteUpdated.eventItem.description");case"program_note_deleted":return(0,i.Tl)("luscii.program.activityFeed.programNoteDeleted.eventItem.description");case"program_message_template_created":return(0,i.Tl)("luscii.program.activityFeed.programMessageTemplateCreated.eventItem.description");case"program_message_template_updated":return(0,i.Tl)("luscii.program.activityFeed.programMessageTemplateUpdated.eventItem.description");case"program_message_template_deleted":return(0,i.Tl)("luscii.program.activityFeed.programMessageTemplateDeleted.eventItem.description");case"protocol_created":return(0,i.Tl)("luscii.program.programProtocolCreated.eventItem.description");case"protocol_updated":return(0,i.Tl)("luscii.program.activityFeed.programProtocolUpdated.eventItem.description");case"protocol_deleted":return(0,i.Tl)("luscii.program.activityFeed.programProtocolDeleted.eventItem.description");case"protocol_moment_schedule_created":return(0,i.Tl)("luscii.protocol.activityFeed.programMomentCreated.eventItem.description");case"protocol_moment_schedule_updated":return(0,i.Tl)("luscii.protocol.activityFeed.programMomentUpdated.eventItem.description");case"protocol_moment_schedule_deleted":return(0,i.Tl)("luscii.protocol.activityFeed.programMomentDeleted.eventItem.description");case"protocol_workflow_created":return(0,i.Tl)("luscii.protocol.activityFeed.protocolWorkflowCreated.eventItem.description");case"protocol_workflow_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolWorkflowUpdated.eventItem.description");case"protocol_workflow_deleted":return(0,i.Tl)("luscii.protocol.activityFeed.protocolWorkflowDeleted.eventItem.description");case"protocol_alert_settings_for_comments_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolAlertForCommentsSettingsUpdated.eventItem.description");case"protocol_alert_settings_inactivity_alert_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolInactivityAlertSettingsUpdated.eventItem.description");case"protocol_alert_settings_overdue_alert_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolOverdueAlertSettingsUpdated.eventItem.description");case"protocol_action_settings_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolActionSettingsUpdated.eventItem.description");case"protocol_threshold_created":return(0,i.Tl)("luscii.protocol.activityFeed.protocolThresholdCreated.eventItem.description");case"protocol_threshold_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolThresholdChanged.eventItem.description");case"protocol_combination_threshold_copied_from":return(0,i.Tl)("luscii.protocol.activityFeed.combinationAlertCopiedFrom.eventItem.description");case"protocol_combination_threshold_copied_to":return(0,i.Tl)("luscii.protocol.activityFeed.combinationAlertCopiedTo.eventItem.description");case"protocol_combination_threshold_deleted":return(0,i.Tl)("luscii.protocol.activityFeed.protocolCombinationAlertDeleted.eventItem.description");case"protocol_notification_settings_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolNotificationsUpdated.eventItem.description");case"protocol_duplicated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolDuplicated.eventItem.description");case"program_duplicated":return(0,i.Tl)("luscii.protocol.activityFeed.programDuplicated.eventItem.description");case"protocol_self_onboarding_settings_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolSelfonboardingSettingsUpdate.eventItem.description");case"protocol_frequency_created":return(0,i.Tl)("luscii.protocol.activityFeed.protocolFrequencyCreated.eventItem.description");case"protocol_frequency_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolFrequencyUpdated.eventItem.description");case"protocol_frequency_deleted":return(0,i.Tl)("luscii.protocol.activityFeed.protocolFrequencyDeleted.eventItem.description");case"protocol_action_updated":return(0,i.Tl)("luscii.protocol.activityFeed.protocolActionUpdated.eventItem.description");default:return e}}})},53798(e,t,r){r.d(t,{},{g:e=>"Unavailable"===e})},82138(e,t,r){r.d(t,{ProgramEventsHistoryPage:()=>R});var i=r(74848),o=r(96540),a=r(19732),n=r(74822),c=r(28826),l=r(10378),s=r(88821),d=r(60670),p=r(9745),m=r(53574),u=r(82437),g=r(69158),_=r(91862);let{useGetProgramEventsLogQuery:v,useLazyGetProgramEventLogDetailQuery:y}=r(25136).Iu.injectEndpoints({endpoints:e=>({getProgramEventsLog:e.query({query:({programUuid:e,limit:t=50,cursor:r})=>{let i=`/programs/${e}/event-logs/?`,o=new URLSearchParams({limit:String(t)});return r&&o.set("cursor",r),{url:i+o.toString(),headers:_.B.RequestRTKHeader(_.s.ORGANIZATION,"2.0")}},transformResponse:e=>
1e.data,keepUnusedDataFor:0}),getProgramEventLogDetail:e.query({query:({programUuid:e,logDetailUuid:t})=>({url:`/programs/${e}/event-logs/${encodeURIComponent(t)}`,headers:_.B.RequestRTKHeader(_.s.ORGANIZATION,"2.0")}),transformResponse:e=>e.data})})});var f=r(86620),h=r(25472),x=r(39812),T=r(1918),j=r(86149),I=r(69843),F=r.n(I),b=r(72455),E=r(83006),D=r(53798),C=r(72509),U=r(81486),B=r(53759),w=r(62193),S=r.n(w);let N="no-value",k=e=>{let{logEntry:t,programUuid:r}=e,[o,n]=y(),{formatDateTime:c}=(0,C.g)();return(0,i.jsxs)(f.Up,{onToggle:e=>{e.currentTarget.open&&o({logDetailUuid:t.SK,programUuid:r}).unwrap().then(e=>{(0,u.u4)("program_events_log_open_item_details",{event_name:e.event.name,outcome_reason:e.outcome.reason,outcome_status:e.outcome.status,actor_type:t.actor.type,object_name:e.object.name})}).catch(()=>{(0,u.u4)("program_events_log_open_item_error")})},children:[(0,i.jsx)(f.Up.Summary,{children:(0,i.jsxs)(a.B,{axis:"x",justify:"between",align:"center",width:"full",_py:"m",_px:"m",children:[(0,i.jsxs)(a.B,{axis:"x",_gap:"base",align:"baseline",children:[(0,i.jsx)(h.e,{initials:"D",size:"xsmall"}),(0,i.jsxs)(a.B,{axis:"x",_gap:"base",children:[(0,i.jsx)(x.EY,{as:"span",variant:"strong",children:t.actor.name}),(0,i.jsx)(x.EY,{as:"span",color:"slate-500",children:(0,E.I)(t.event.name)}),(0,U.A)((0,D.g)(t.object.name))&&(0,i.jsx)(x.EY,{as:"span",variant:"strong",children:t.object.name})]})]}),(0,i.jsx)(a.B,{axis:"x",_gap:"m",align:"baseline",children:(0,i.jsx)(x.EY,{as:"span",color:"slate-500",children:c(t.event.time,{style:"short"})})})]})}),(0,i.jsx)(a.B,{axis:"x",_gap:"2xl",_p:"2xl",className:"bg-primary-background",align:"center",children:(0,i.jsx)(A,{isLoading:n.isLoading,eventDetail:n.data})})]})},A=e=>{let{eventDetail:t}=e;return e.isLoading?(0,i.jsx)(a.B,{align:"center",justify:"center",width:"full",children:(0,i.jsx)(n.I,{})}):F()(t)?(0,i.jsx)(a.B,{align:"center",justify:"center",width:"full",children:(0,i.jsx)(d.w,{title:(0,g.Tl)("luscii.program.activityFeed.emptyState.title"),description:(0,g.Tl)("luscii.program.activityFeed.emptyState.description")})}):(0,b.xi)(t)?(0,i.jsx)(a.B,{className:"pl-[28px]",width:"full",axis:"x",align:"center",children:(0,i.jsx)(x.EY,{as:"span",className:"mr-1 capitalize",children:(0,g.Tl)("luscii.eventlog.noChanges")})}):(0,b.mQ)(t.event.name)||(0,b.MG)(t.event.name)?(0,i.jsxs)(a.B,{className:"pl-[28px]",width:"full",axis:"x",align:"start",children:[(0,i.jsxs)(a.B,{axis:"x",align:"stretch",justify:"between",className:"flex-shrink-0 w-1/2",children:[(0,i.jsx)(a.B,{children:(0,i.jsx)(P,{state:t.before_state,title:(0,g.Tl)("luscii.program.activityFeed.genericEditEvent.eventDetails.beforeEdit.title")})}),(0,i.jsx)(a.B,{align:"center",justify:"center",_px:"xl",children:(0,i.jsx)(T.A,{})})]}),(0,i.jsx)(a.B,{align:"stretch",children:(0,i.jsx)(P,{state:t.after_state,title:(0,g.Tl)("luscii.program.activityFeed.genericEditEvent.eventDetails.afterEdit.title")})})]}):(0,b.Sm)(t.event.name)?(0,i.jsx)(a.B,{className:"pl-[28px]",children:(0,i.jsx)(P,{state:t.after_state,title:(0,g.Tl)("luscii.program.activityFeed.genericCreateEvent.eventDetails.title")})}):(0,b.yx)(t.event.name)?(0,i.jsx)(a.B,{className:"pl-[28px]",children:(0,i.jsx)(P,{state:t.before_state,title:(0,g.Tl)("luscii.program.activityFeed.genericDeleteEvent.eventDetails.title")})}):(0,i.jsx)("pre",{children:JSON.stringify(e.eventDetail,null,2)})},P=e=>{let{state:t,title:r}=e,o=(0,s.j)();return F()(t)?null:(0,i.jsxs)(a.B,{_gap:"s",children:[e.title&&(0,i.jsx)(x.EY,{variant:"strong",children:r}),(0,i.jsx)(j.o,{className:"pl-4",children:(F()(t)?[]:Object.keys(t).map(e=>((e,t)=>{let r=t[e];if("string"==typeof r||"number"==typeof r)return S()(r)?[e,N]:[e,String(r)];if("specialties"===e||"conditions"===e||"fhirPractitionerRoles"===e){let r=t[e];return F()(r)||S()(r)?[e,N]:[e,r.map(e=>e.display).join(", ")]}if("observables"===e){let r=t[e];if(F()(r)||S()(r))return[e,N];let i=r.filter(e=>!!e.care_block_title).map(e=>e.care_block_title);if(i.length>0)return["patient_information_title",i.join(", ")];let o=r.filter(e=>!!e.instrument_name).map(e=>e.instrument_name);if(o.length>
10)return["instrument_name",o.join(", ")]}if("actionLocalisations"===e){let r=t[e];return F()(r)||S()(r)?[e,N]:[e,r?.map(e=>`(${e.locale}) ${e.name}`).join(", ")]}if("localisations"===e){let r=t[e];return F()(r)||S()(r)?[e,N]:[e,r?.map(e=>{let t=e.friendlyName??e.name??"",r=e.friendlyDescription??e.description??"";return`(${e.locale}) ${t}: ${r}`}).join(", ")]}if("variations"===e){let r=t[e];return F()(r)||S()(r)?[e,N]:[e,r.join(", ")]}if("program"===e||"protocol"===e){let r=t[e];return F()(r)||S()(r)?[e,N]:[e,r.name]}return[e,JSON.stringify(t[e])]})(e,t))).filter(([e])=>"fhirPractitionerRoles"!==e||o.data.isCareNetworkEnabled).map(([e,t])=>(0,i.jsxs)(j.o.Item,{children:[(0,i.jsxs)(x.EY,{as:"span",className:"mr-1 capitalize",children:[(0,B.GB)(e),":"]}),"no-value"===t?(0,i.jsx)(x.EY,{as:"span",children:"-"}):(0,i.jsx)(x.EY,{className:"inline",containsDangerousHtml:!0,children:(0,B.BD)(t,{removeLinks:!0})})]}))})]})},R=({onError:e})=>{let t=(0,s.j)(),[r]=(0,o.useState)({pageSize:25,currentPage:1,pageCount:100}),[_,y]=(0,o.useState)(),[f,h]=(0,o.useState)({items:[],metadata:{nextCursor:"",perPage:0,totalRecords:0}}),x=v(t.identifiers.programUuid?{programUuid:t.identifiers.programUuid,limit:r.pageSize??25,cursor:_}:l.hT),T=!!x.data?.metadata.nextCursor;return((0,o.useEffect)(()=>{x.isError&&e?.((0,g.Tl)("luscii.global.activityFeed.tab"))},[x.isError]),(0,o.useEffect)(()=>{if(x.data){let e=x.data.items,t=x.data.metadata;h(r=>({items:[...r.items,...e],metadata:t}))}},[x.data]),(0,o.useEffect)(()=>{x.isError&&(0,u.u4)("program_events_log_open_item_error")},[x.isError]),(0,m.B)([(0,g.Tl)("luscii.program.tabbar.history"),t.data.programName]),x.isLoading)?(0,i.jsx)(a.B,{align:"center",justify:"center",_mt:"xl",children:(0,i.jsx)(n.I,{})}):x.isError?(0,i.jsx)(a.B,{align:"center",justify:"center",_mt:"xl",children:(0,i.jsx)(p.V,{title:(0,g.Tl)("luscii.program.activityFeed.cannotLoad.errorTitle"),description:(0,g.Tl)("luscii.program.activityFeed.cannotLoad.errorDescription")})}):0===f.items.length?(0,i.jsx)(a.B,{align:"center",justify:"center",_mt:"xl",children:(0,i.jsx)(d.w,{title:(0,g.Tl)("luscii.program.activityFeed.emptyState.title"),description:(0,g.Tl)("luscii.program.activityFeed.emptyState.description")})}):(0,i.jsxs)(a.B,{_gap:"xl",align:"stretch",children:[(0,i.jsx)(a.B,{align:"stretch",children:f?.items.map(e=>(0,i.jsx)(k,{logEntry:e,programUuid:t.identifiers.programUuid},e.SK))}),(0,i.jsx)(a.B,{align:"center",justify:"center",width:"full",children:T&&(0,i.jsx)(c.t,{isPending:x.isFetching,onClick:()=>{y(x.data?.metadata.nextCursor)},children:(0,g.Tl)("luscii.eventlog.loadMore",{ammount:25})})})]})}}}]);

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.