PageSourceSearch

https://ng-app.pulsepro.ai/static/js/2303.d49edff0.chunk.js

js pulsepro.ai collected 2026-10-04 15:24:55 UTC 9,622 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkpulse=globalThis.webpackChunkpulse||[]).push([[2303],{40025(e,n,s){s.d(n,{BC:()=>r,QA:()=>h,QX:()=>o,Yg:()=>y,Yp:()=>m,gc:()=>x,k1:()=>a,lh:()=>d,pw:()=>u,xf:()=>c});var i=s(36150),t=s(14171);const l={staleTime:0,cacheTime:0,refetchOnMount:!0,refetchOnWindowFocus:!1,keepPreviousData:!0,retry:!1},r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.I)({queryKey:["compliance-filter-options",JSON.stringify(e)],queryFn:()=>(0,t.I9R)(e),...l})},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.I)({queryKey:["compliance-hierarchy-health",JSON.stringify(e)],queryFn:()=>(0,t.vXF)(e),...l})},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.I)({queryKey:["compliance-rankings",JSON.stringify(e)],queryFn:()=>(0,t.Bh9)(e),...l})},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.I)({queryKey:["compliance-trends",JSON.stringify(e)],queryFn:()=>(0,t.Wmy)(e),...l})},d=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.I)({queryKey:["compliance-trends-node",e,JSON.stringify(n)],queryFn:()=>(0,t.uC6)(e,n),enabled:!!e,...l})},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.I)({queryKey:["compliance-top-issues",JSON.stringify(e)],queryFn:()=>(0,t.PId)(e),...l})},m=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.I)({queryKey:["compliance-top-issue-detail",e,JSON.stringify(n)],queryFn:()=>(0,t.zU8)(e,n),enabled:!!e,...l})},u=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.I)({queryKey:["compliance-center-overview",e,JSON.stringify(n)],queryFn:()=>(0,t.oaG)(e,n),enabled:!!e,...l})},x=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.I)({queryKey:["compliance-center-issues",e,JSON.stringify(n)],queryFn:()=>(0,t.V6H)(e,n),enabled:!!e,...l})},y=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.I)({queryKey:["compliance-center-trends",e,JSON.stringify(n)],queryFn:()=>(0,t.R4q)(e,n),enabled:!!e,...l})}},66199(e,n,s){s.d(n,{A:()=>t});s(9950);var i=s(44414);const t=e=>{let{data:n,benchmark:s,color:t="#6b7280"}=e;if(!n||0===n.length)return null;const l=60,r=20,a=700/(n.length-1||1),o=e=>{const n=null===e||void 0===e?0:e;return r+280-(Math.max(0,Math.min(100,n))-0)/100*280},c=[0,20,40,60,80,100],d=c.map(e=>({value:e,y:o(e)})),h=n.map(e=>"number"===typeof e?e:e&&"object"===typeof e&&"health_index"in e?e.health_index:null),m=h.map((e,n)=>`${l+n*a},${o(e)}`).join(" "),u=o(s);return(0,i.jsxs)("svg",{width:"100%",viewBox:"0 0 820 360",className:"sw-chart-area",children:[d.map((e,n)=>(0,i.jsx)("line",{x1:l,y1:e.y,x2:l+700,y2:e.y,stroke:"#e2e8f0",strokeWidth:"1",strokeDasharray:"3,3"},`grid-${n}`)),c.map((e,n)=>(0,i.jsx)("text",{x:l-15,y:o(e)+5,fontSize:"16",fontWeight:"500",textAnchor:"end",fill:"#94a3b8",children:e},`label-${n}`)),n.map((e,n)=>e&&e.label?(0,i.jsx)("text",{x:l+n*a,y:r+280+40,fontSize:"14",textAnchor:"middle",fill:"#94a3b8",children:e.label},`x-label-${n}`):null),(0,i.jsx)("line",{x1:l,y1:u,x2:l+700,y2:u,stroke:"#cbd5e1",strokeWidth:"2.5",strokeDasharray:"5,4"}),(0,i.jsx)("polyline",{points:m,fill:"none",stroke:t,strokeWidth:"2.5",strokeLinejoin:"round",strokeLinecap:"round"}),h.map((e,n)=>(0,i.jsx)("circle",{cx:l+n*a,cy:o(e),r:"3.5",fill:t},`dot-${n}`))]})}},82303(e,n,s){s.r(n),s.d(n,{default:()=>y});var i=s(9950),t=s(16673),l=s(67818),r=s(84084),a=s(88156),o=s(87537),c=s(46882),d=s(14209),h=s(16327),m=s(66199),u=s(40025),x=(s(91027),s(44414));const y=()=>{var e,n,s,y;const g=(0,t.W6)(),{t:p}=(0,l.Bd)(),{regionId:v}=(0,t.g)(),j=v?parseInt(v,10):null,[f,b]=(0,i.useState)("this_month"),{data:N,isLoading:k,isError:w}=(0,u.lh)(j,{time_filter:f}),_=(null===N||void 0===N?void 0:N.node_name)||"Region",q=(null===N||void 0===N?void 0:N.hierarchy_path)||[],S=null!==(e=null===N||void 0===N?void 0:N.children)&&void 0!==e?e:[],A=null!==(n=null===N||void 0===N||null===(s=N.overall_trend)||void 0===s?void 0:s.map(e=>e.health_index))&&void 0!==n?n:[];return(0,x.jsx)("div",{className:"page-content",children:(0,x.jsxs)("div",{className:"container-fluid",children:[k&&(0,x.jsx)("div",{className:"d-flex justify-content-center py-5",children:(0,x.jsx)(d.A,{color:"primary"})}),w&&(0,x.jsx)(c.A,{color:"danger",className:"mb-3",children:p("error_loading_data")||"Error loading data"}),!k&&!w&&N&&(0,x.jsxs)(x.Fragment,{children:[q.length>0&&(0,x.jsx)("div",{className:"sw-breadcrumb mb-3",children:q.map((e,n)=>(0,x.jsxs)(i.Fragment,{children:[n>0&&(0,x.jsx)("i",{className:"ri-arrow-right-s-line",style:{color:"#cbd5e1",margin:"0 8px",fontSize:"0.75rem"}}),(0,x.jsx)("span",{className:n===q.length-1?"sw-bc-current":"sw-bc-link",style:n===q.length-1?{}
1:{cursor:"pointer"},children:e})]},n))}),(0,x.jsx)(r.A,{className:"shadow-sm mb-3",children:(0,x.jsxs)(o.A,{className:"border-0 bg-white d-flex align-items-center justify-content-between py-3",children:[(0,x.jsxs)("div",{className:"d-flex align-items-center gap-2",children:[(0,x.jsx)("button",{className:"btn btn-link p-0 me-1 text-dark",onClick:()=>g.goBack(),children:(0,x.jsx)("i",{className:"ri-arrow-left-line fs-5"})}),(0,x.jsx)("div",{children:(0,x.jsxs)("h4",{className:"mb-1",style:{fontWeight:700},children:[_," ",p("trend")||"Trend"]})})]}),(0,x.jsxs)("select",{value:f,onChange:e=>b(e.target.value),className:"form-select",style:{width:"150px"},children:[(0,x.jsx)("option",{value:"today",children:p("today")||"Today"}),(0,x.jsx)("option",{value:"this_week",children:p("this_week")||"This Week"}),(0,x.jsx)("option",{value:"this_month",children:p("this_month")||"This Month"}),(0,x.jsx)("option",{value:"last_3_months",children:p("last_3_months")||"Last 3 Months"}),(0,x.jsx)("option",{value:"last_6_months",children:p("last_6_months")||"Last 6 Months"})]})]})}),(0,x.jsx)(r.A,{className:"shadow-sm mb-3",children:(0,x.jsx)(a.A,{className:"py-3",children:(0,x.jsxs)("div",{className:"sw-info-banner",children:[(0,x.jsx)("div",{className:"sw-info-icon-wrap",children:(0,x.jsx)("i",{className:"ri-building-4-line"})}),(0,x.jsxs)("div",{children:[(0,x.jsx)("strong",{style:{fontSize:"0.9rem",display:"block",marginBottom:2},children:p("what_youre_seeing")||"What you're seeing"}),(0,x.jsx)("p",{className:"text-muted mb-0",style:{fontSize:"0.8125rem"},children:p("region_trend_desc")||`Health trend for centers within ${_}. Compare centers to quickly identify deteriorating locations.`})]})]})})}),(0,x.jsxs)(r.A,{className:"shadow-sm mb-3",children:[(0,x.jsxs)(o.A,{className:"border-0 bg-white py-3 d-flex align-items-center gap-3",children:[(0,x.jsxs)("h6",{className:"mb-0 fw-semibold",children:[_," ",p("overall_trend")||"Overall Trend"]}),(0,x.jsxs)("div",{className:"d-flex gap-3 ms-auto",style:{fontSize:"0.8125rem",color:"#64748b"},children:[(0,x.jsxs)("span",{className:"d-flex align-items-center gap-1",children:[(0,x.jsx)("svg",{width:"16",height:"3",children:(0,x.jsx)("line",{x1:"0",y1:"1.5",x2:"16",y2:"1.5",stroke:"#cbd5e1",strokeWidth:"2",strokeDasharray:"4,3"})}),p("benchmark")||"Benchmark"]}),(0,x.jsxs)("span",{className:"d-flex align-items-center gap-1",children:[(0,x.jsx)("svg",{width:"16",height:"3",children:(0,x.jsx)("line",{x1:"0",y1:"1.5",x2:"16",y2:"1.5",stroke:"#344767",strokeWidth:"2"})}),_]})]})]}),(0,x.jsxs)(a.A,{children:[A.length>0&&(0,x.jsx)(m.A,{data:A,benchmark:(null===N||void 0===N?void 0:N.benchmark)||85,color:"#344767"}),(0,x.jsx)("div",{className:"d-flex justify-content-between mt-2",style:{fontSize:"0.75rem",color:"#94a3b8"},children:(null!==(y=null===N||void 0===N?void 0:N.overall_trend)&&void 0!==y?y:[]).map((e,n)=>(0,x.jsx)("span",{children:e.label||`Period ${n+1}`},n))})]})]}),(0,x.jsxs)("p",{className:"text-uppercase fw-semibold mb-2",style:{fontSize:"0.75rem",color:"#94a3b8",letterSpacing:"0.5px"},children:[p("centers_in")||"Centers in"," ",_]}),(0,x.jsx)("div",{children:S.map(e=>{var n,s,i;const t=(l=null!==(n=e.latest_score)&&void 0!==n?n:0)>=85?"healthy":l>=70?"warning":"critical";var l,r;return(0,x.jsxs)("div",{className:"sw-list-item",onClick:()=>{var n;(n=e).is_center?g.push(`/compliance-analytics/center-health/${n.id}`):g.push(`/compliance-analytics/region-trend/${n.id}`)},children:[(0,x.jsxs)("div",{className:"sw-list-info",children:[(0,x.jsx)("div",{className:"sw-list-name",children:e.name}),(0,x.jsxs)("div",{className:"sw-trend-link",style:{marginTop:2},children:[p("view_details")||"View details"," ",(0,x.jsx)("i",{className:"ri-arrow-right-s-line"})]})]}),(0,x.jsxs)("div",{className:"d-flex flex-column align-items-end gap-1",children:[(0,x.jsx)("span",{className:"sw-trend-latest-label",children:p("latest")||"Latest"}),(null!==(s=e.sparkline)&&void 0!==s?s:[]).length>0&&(0,x.jsx)(h.A,{data:e.sparkline,color:e.color||"#6b7280",width:80,height:28}),(0,x.jsx)("strong",{style:{fontSize:"1rem",color:(r=t,"healthy"===r?"#16a34a":"warning"===r?"#d97706":"#e11d48")},children:(null!==(i=e.latest_score)&&void 0!==i?i:0).toFixed(1)})]})]},e.id)})})]})]})})}},16327(e,n,s){s.d(n,{A:()=>t});s(9950);var i=s(44414);const t=e=>{let{data:n=[],color:s="#6b7280",width:t=80,height:l=32}=e;if(!n.length)return null;const r=Math.min(...n),a=Math.max(...n)-r||1,o=t/(n.length-1),c=n.map((e,n)=>`${n*o},${l-(e-r)/a*(l-4)-2}`);return(0,i.jsx)("svg",{width:t,height:l,className:"sw-sparkline",children:(0,i.jsx)("polyline",{points:c.join(" "),fill:"none",stroke:s,strokeWidth:"2",strokeLinejoin:"round",strokeLinecap:"round"})})}},91027(){}}]);

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.