1"use strict";(self.webpackChunkclinica_ai=self.webpackChunkclinica_ai||[]).push([[1],{7228:(e,t,a)=>{a.d(t,{bl:()=>m});var r=a(9379),l=a(5043),n=a(6058),i=a(6361),s=(a(6238),a(9273)),o=a(7690),c=a(579);i.t1.register(...i.$L);const h={responsive:!0,scales:{x:{title:{display:!0,text:"HCPs ranked by patients with suboptimal care"},grid:{display:!1},ticks:{autoSkip:!1,callback:function(e){return e%500!==0?"":e}}},y:{ticks:{callback:function(e,t,a){return e/10%2!==0?"":"".concat(e,"%")},font:{size:10}}}},plugins:{datalabels:{display:!1}}};const d={labels:Array.from({length:3001},((e,t)=>t)),datasets:[{label:"Dataset 1",data:function(){const e=[];for(let t=0;t<3e3;t++)if(t<1e3)e.push(.1*t);else{const a=(t-1e3)*Math.log(t)/400;e.push(100+a)}return e}(),borderColor:"rgb(15,255, 122)",backgroundColor:"rgb(15,255, 122, 0.2)"}]},u=[{name:"Pulmonary Specialist",rgba:"rgba(135, 206, 235, 1)"},{name:"Allergy Specialist",rgba:"rgba(34, 139, 34, 1)"},{name:"Primary Care Provider",rgba:"rgba(220, 20, 60, 1)"},{name:"Others",rgba:"rgba(255, 215, 0, 1)"}],p=e=>{let t=0,a=0,r=0,l=0,n=["PULMONARY DISEASE","PEDIATRIC PULMONOLOGY","PULMONARY CRITICAL CARE MEDICINE"],i=["ALLERGY & IMMUNOLOGY"],s=["FAMILY MEDICINE","PEDIATRICS","INTERNAL MEDICINE","GENERAL PRACTICE","INTERNAL MEDICINE/PEDIATRICS","GERIATRIC MEDICINE (INTERNAL MEDICINE)","GERIATRIC MEDICINE (FAMILY MEDICINE)"];return e.forEach((e=>{n.includes(e)?t+=1:i.includes(e)?a+=1:s.includes(e)?r+=1:l+=1})),[t,a,r,l]},b={indexAxis:"x",elements:{bar:{borderWidth:1}},responsive:!0,scales:{x:{ticks:{min:0,autoSkip:!1,font:{size:13.5,weight:500},color:"#000"}},y:{title:{display:!0,text:"Patients"},ticks:{callback:function(e,t,a){return 0===e?"0":e>=1e6||e<=-1e6?"".concat((e/1e6).toFixed(e%1e6!==0?1:0),"m"):e>=1e3||e<=-1e3?"".concat((e/1e3).toFixed(e%1e3!==0?1:0),"k"):"".concat(e)},font:{size:12}}}},plugins:{legend:{display:!1},datalabels:{display:!1}}};function m(e){let{arb_value:t=0,setPageData:a=(()=>{}),primarySpecialtyData:i,key:m=null,arbitrary:f=!0,options:w=h,data:g=d,height:y=100,chartHeight:x,maxRenderedPoints:A,updateRef:v,barchartData:S,setBarChartData:C=(()=>{})}=e;const[k,E]=(0,l.useState)(0),[M,U]=(0,l.useState)(g),[I,N]=(0,l.useState)({min:0,max:0}),D=(0,l.useRef)(null),L=(0,l.useRef)(null),P=(0,l.useRef)(0),j=(0,l.useMemo)((()=>(0,o.pH)(M,A)),[M,A]),T=(0,l.useCallback)((e=>{const t=Math.min(g.labels.length,Math.max(0,parseInt(e.target.value)||0));P.current=t,D.current&&clearTimeout(D.current),D.current=setTimeout((()=>{if(L.current){if(L.current.draw(),i&&t){let e=i.slice(0,t),a=p(e),r={labels:u.map((e=>e.name)),datasets:[{data:a,borderColor:u.map((e=>e.rgba)),backgroundColor:u.map((e=>e.rgba))}]};C(r)}0===t&&C(null),a((e=>(0,r.A)((0,r.A)({},e),{},{value:t})))}}),500),E(t)}),[g.labels.length,i,C,a]);(0,l.useEffect)((()=>{v&&t&&!v.current&&(v.current=!0,T({target:{value:t}}))}),[t,T,v]),(0,l.useEffect)((()=>(g&&(U(g),N((e=>(0,r.A)((0,r.A)({},e),{},{max:g.labels.length})))),()=>{D.current&&clearTimeout(D.current)})),[g]);const F=(0,l.useMemo)((()=>({id:"intersectDataVerticalLine",afterDraw:e=>{if(P.current>0){const{ctx:t,chartArea:{top:a,bottom:r},scales:{x:l}}=e;t.save(),t.beginPath(),t.lineWidth=3,t.strokeStyle="black",t.setLineDash([10,15]);const n=A?P.current:P.current-1;t.moveTo(l.getPixelForValue(n),a),t.lineTo(l.getPixelForValue(n),r),t.stroke(),t.restore()}}})),[A]);return(0,c.jsxs)("div",{className:"w-full h-full px-2 pt-4 overflow-hidden min-h-[200px]",children:[(0,c.jsx)("div",{style:x?{height:x}:void 0,className:"".concat(f&&"pointer-events-none"),children:(0,c.jsx)(n.N1,{height:y,ref:L,plugins:f&&[F],options:w,data:j},m)}),S&&(0,c.jsx)("div",{className:"my-8",children:(0,c.jsx)(s.Ay,{height:document.body.clientWidth<786?80:30,data:S,options:b})}),f&&(0,c.jsxs)("div",{className:"px-2 py-4",children:[(0,c.jsx)("div",{className:"text-xs flex items-center justify-between w-full",children:(0,c.jsx)("input",{id:"priority-rank-number","aria-label":"Number of HCPs to prioritize",type:"number",value:k,onChange:T,className:"w-[30%] p-4 h-1 cursor-pointer"})}),(0,c.jsxs)("div",{children:[(0,c.jsx)("label",{className:"text-xs text-slate-700",htmlFor:"priority-rank-sli
1der",children:"Number of HCPs to prioritize"}),(0,c.jsx)("input",{id:"priority-rank-slider",type:"range",min:0,value:k,max:I.max,onChange:T,className:"w-full h-1 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-500"})]})]})]})}},5833:(e,t,a)=>{a.d(t,{Ay:()=>m});var r=a(9379),l=a(5043),n=a(8767),i=a(1694),s=a(4069),o=a(5230);var c=a(9273),h=a(5394),d=a(579);const u=[["Location","Parent","Market trade volume (size)","Market increase/decrease (color)"],["Global",null,0,0],["America","Global",0,0],["Europe","Global",0,0],["Asia","Global",0,0],["Australia","Global",0,0],["Africa","Global",0,0],["Brazil","America",11,10],["USA","America",52,31],["Mexico","America",24,12],["Canada","America",16,-23],["France","Europe",42,-11],["Germany","Europe",31,-2],["Sweden","Europe",22,-13],["Italy","Europe",17,4],["UK","Europe",21,-5],["China","Asia",36,4],["Japan","Asia",20,-12],["India","Asia",40,63],["Laos","Asia",4,34],["Mongolia","Asia",1,-5],["Israel","Asia",12,24],["Iran","Asia",18,13],["Pakistan","Asia",11,-52],["Egypt","Africa",21,0],["S. Africa","Africa",30,43],["Sudan","Africa",12,2],["Congo","Africa",10,12],["Zaire","Africa",8,10],["Alabama","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Alaska","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Arizona","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Arkansas","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["California","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Colorado","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Connecticut","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Delaware","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Florida","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Georgia","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Hawaii","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Idaho","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Illinois","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Indiana","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Iowa","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Kansas","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Kentucky","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Louisiana","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Maine","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Maryland","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Massachusetts","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Michigan","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Minnesota","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Mississippi","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Missouri","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Montana","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Nebraska","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Nevada","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["New Hampshire","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["New Jersey","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["New Mexico","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["New York","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["North Carolina","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["North Dakota","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Ohio","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Oklahoma","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Oregon","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Pennsylvania","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Rhode Island","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["South Carolina","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["South Dakota","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Tennessee","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Texas","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Utah","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Vermont","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Virginia","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Washington","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["West Virginia","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Wisconsin","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)],["Wyoming","USA",(0,s.hw)(0,100),(0,s.hw)(-50,50)]],p={minColor:"#ffef96",midColor:"#ff6e73",maxColor:"#d2177a",headerHeight:15,fontColor:"black",title:"Asthma Patients by States",titleTextStyle:{color:"#888",textAlign:"center"},colorAxis:{values:[0,1e3,1e4,100005,1e6],colors:["#ffef96","#ff6e73","white","white","#d2177a"]},showScale:!1,generateTooltip:(e,t)=>'<div style="background:rgb(0 141 218); color:#fff; padding:10px; border-style:solid, zIndex: 10">
1 '+t.toLocaleString()+"</div>"},b={indexAxis:"y",elements:{bar:{borderWidth:1}},responsive:!0,scales:{y:{afterFit(e){e.width=Math.max(e.width,150)},ticks:{callback:function(e){return(0,c.bH)(this.getLabelForValue(e))},font:{size:10,weight:700}}},x:{title:{display:!0,text:"Patients"},ticks:{callback:function(e){return e?"".concat(e,"%"):0},font:{size:10}}}},plugins:{legend:{display:!1},tooltip:{callbacks:{title:function(e){const t=e[0].label;return t.replace(/,/g," ")},label:function(e){const t=e.formattedValue;return t?"".concat(t,"%"):0}}}}},m=e=>{let{closeModal:t,values:a,preventDrill:s=!1,needCallbacks:m=!0,options:f=p,data:w=u,handleOpen:g=(()=>{})}=e;const[y,x]=(0,l.useState)(!1),A=(0,l.useId)(),v=(0,i.A)(A),S=(0,l.useMemo)((()=>(0,r.A)((0,r.A)({},f),null!==f&&void 0!==f&&f.generateTooltip?{generateTooltip:function(){return'<div data-clinica-chart-tooltip="'.concat(A,'">').concat(f.generateTooltip(...arguments),"</div>")}}:{})),[f,A]),[C,k]=(0,l.useState)(null);return(0,d.jsxs)("div",{className:"relative mt-6 md:mt-10 w-full overflow-x-auto",children:[(0,d.jsx)("button",{id:"backBtn",onClick:()=>{t()},className:"hidden absolute left-0 -top-14 items-center gap-1",children:(0,d.jsx)(h.$72,{size:30})}),a&&(0,d.jsxs)("div",{className:"flex absolute justify-between -top-5 w-[34%] right-[1%] text-xs md:text-sm",children:[(0,d.jsx)("div",{children:a.min.toFixed()}),(0,d.jsx)("div",{children:a.max.toFixed()})]}),(0,d.jsx)(n.t1,{getChartWrapper:v,chartType:"TreeMap",width:"100%",height:"min(800px, 70vh)",data:w,options:S,chartEvents:[{eventName:"select",callback:e=>{let{chartWrapper:t,google:a}=e;if(!m)return;const r=document.getElementById("backBtn");r&&(r.style.display="flex");const l=t.getChart(),n=t.getDataTable();a.visualization.events.addListener(l,"select",(function(){const e=l.getSelection();if(e.length>0&&n.getValue(e[0].row,0).length>2){((e,t,a)=>{s?g(e,t,a):x((e=>!e))})(n.getValue(e[0].row,0).split("_")[0],n.getValue(e[0].row,2),n.getValue(e[0].row,3))}}))}}]}),(0,d.jsx)(o.A,{onClose:()=>{x((e=>!e)),k(null)},modal:!0,open:y,position:"center center",children:(0,d.jsx)("div",{className:"w-extraLarge",children:C&&(0,d.jsx)(c.Ay,{height:250,data:C,options:b})})})]})}},1001:(e,t,a)=>{a.r(t),a.d(t,{default:()=>S});var r=a(9379),l=a(5043),n=a(2595),i=a(361),s=a(7228),o=a(5833),c=a(9574),h=a(7056),d=a(9805),u=a(2532);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},p.apply(this,arguments)}var b=function(e){return function(){return e}},m=l.memo((function(e){var t=e.render,a=void 0===t?b(null):t,r=e.style,n=void 0===r?b({}):r,i=e.ratio,s=e.posX,o=e.posY,c=e.square,h=void 0!==c&&c,d=e.height,u=void 0===d?"2rem":d,m=e.value,f=e.onClick;return l.createElement("div",{onClick:function(){return(f||b({}))(s,o)},style:p({border:"1px solid #fff",borderWidth:"1px 1px 0 0",textAlign:"center",color:"rgb(0, 0, 0, "+(i/2+.4)+")",overflow:"hidden",boxSizing:"border-box",flexGrow:h?0:1,flexBasis:h?u:0,flexShrink:0,height:u,lineHeight:u,borderRadius:"4px",fontSize:".8rem",cursor:f?"pointer":"initial",background:"rgb(12, 160, 44, "+(i+.05)+")"},n(s,o,i))},a(s,o,m))}));function f(e){var t=e.children,a=e.reverse,r=void 0!==a&&a;return l.createElement("div",{style:{display:"flex",flexDirection:r?"row-reverse":"row",justifyContent:r?"flex-end":"initial"}},t)}function w(e){var t=e.labels,a=e.xLabelsStyle,r=void 0===a?function(){return{}}:a,n=e.height,i=e.square,s=void 0!==i&&i,o=100/t.length+"%";return l.createElement("div",{style:{display:"flex",textAlign:"center"}},t.map((function(e,t){return l.createElement("div",{key:e+"-"+t,style:p({padding:"0.2rem 0",boxSizing:"border-box",flexGrow:s?"initial":1,overflow:"hidden",flexShrink:1,flexBasis:s?n:o,width:s?n:o},r(t))},e)})))}function g(e){var t=e.children,a=e.grow,r=void 0!==a&&a,n=e.reverse,i=void 0!==n&&n;return l.createElement("div",{style:{display:"flex",flexDirection:i?"column-reverse":"column",flexGrow:r?1:0}},t)}function y(e){var t=e.labels,a=e.height,r=e.yLabelsStyle,n=void 0===r?function(){return{}}:r,i=e.reverse,s=void 0!==i&&i;return l.createElement("div",{style:{display:"flex",flexDirection:"column",textAlign:s?"left":"right"}},t.map((function(e,t){return l.createElement("div",{key:e,style:p({boxSizing:"border-box",padding:"0 0.2rem",lineHeight:a},n(t))},e)})))}function x(e){var t,a=e.xLabelHeight,r=e.isXLabelReverse,n=e.children,i=((t={})[r?"marginBottom":"marginTop"]=a+"px",t);return l.createElement("div",{style:i},n)}var A=function(e){var t=e.data,a=e.xLabels,r=e.yLabels,n=e.xLabelsPos,i=void 0===n?"top":n,s=e.yLabelsPos,o=void 0===s?"left":s,c=e.square,h=void 0!==c&&c,d=e.cellHeight,u=void 0===d?"2px":d,p=e.xLabelsStyle,b=e.yLabelsStyle,A=e.cellStyle,v=e.cellRender,S=e.onClick,C=function(e){var t=l.useRef(null),a=l.useState(e),r=a[
10],n=a[1];return l.useEffect((function(){if(t.current){var e=(t.current||{}).clientHeight;n(e)}}),[]),[r,t]}(22),k=C[0],E=C[1],M=function(e){var t=e.reduce((function(e,t){return[].concat(t,e)}),[]),a=Math.max.apply(Math,t);return[Math.min.apply(Math,t),a]}(t),U=M[0],I=M[1]-U,N="bottom"===i,D="right"===o;return(0,l.createElement)(f,{reverse:D},r&&(0,l.createElement)(x,{xLabelHeight:k,isXLabelReverse:N},(0,l.createElement)(y,{reverse:D,labels:r,height:u,yLabelsStyle:b})),(0,l.createElement)(g,{reverse:N,grow:!h},(0,l.createElement)("div",{ref:E},a&&(0,l.createElement)(w,{labels:a,xLabelsStyle:p,height:u,square:h})),(0,l.createElement)(g,null,t.map((function(e,t){return(0,l.createElement)(f,{key:t},e.map((function(e,a){return(0,l.createElement)(m,{key:t+"-"+a,posX:t,posY:a,onClick:S,value:e,height:u,square:h,render:v,style:A,ratio:(e-U)/I})})))})))))},v=a(579);const S=()=>{const{accessToken:e,refreshToken:t}=(0,l.useContext)(i.cy),[a,p]=(0,l.useState)(null),[b,m]=(0,l.useState)(null),[f,w]=(0,l.useState)(null),[g,y]=(0,l.useState)(null),[x,S]=(0,l.useState)(null),[C,k]=(0,l.useState)(null),[E,M]=(0,l.useState)(null),[U,I]=(0,l.useState)({xLabels:[],yLabels:[]}),[N,D]=(0,l.useState)(null),L=(0,l.useMemo)((()=>[{Header:"Specialty",accessor:"Physician_Specialty"},{Header:"Specialty Classification",accessor:"Specialty_Bucket"},{Header:"Claims",accessor:"Total_Claims"},{Header:"Patients",accessor:"Total_Patients"}]),[]),P=(0,l.useMemo)((()=>[{Header:"Type",accessor:"Type"},{Header:"Claims",accessor:"Total_Claims"},{Header:"Patients",accessor:"Total_Patients"}]),[]),j=(0,l.useMemo)((()=>({responsive:!0,scales:{x:{display:!0,title:{display:!0,text:"Month/Year"},ticks:{font:{size:14,weight:600},callback:function(e,t,a){let r=this.getLabelForValue(e);return parseInt(r&&r.split("/")[0])%6===0?r:null}}},y:{display:!0,title:{display:!0,text:"Value"}}},plugins:{title:{display:!0,text:"Asthma Patients and Claims By Month"},datalabels:{display:!1}}})),[]),T=(0,l.useMemo)((()=>({responsive:!0,scales:{x:{display:!0,title:{display:!0,text:"Month/Year"},ticks:{font:{size:14,weight:600},callback:function(e,t,a){let r=this.getLabelForValue(e);return parseInt(r&&r.split("/")[0])%6===0?r:null}}},y:{display:!0,title:{display:!0,text:"Value"}}},plugins:{title:{display:!0,text:"Asthma Incidence"},datalabels:{display:!1}}})),[]),F=(0,l.useMemo)((()=>(0,d.l)("Patients treated by Therapy Type")),[]);return(0,l.useEffect)((()=>{(0,n.q)("data_stats_1",e,t).then((e=>{if(e){const t=e.data,a=[],r=[],l=[];t.sort(((e,t)=>e.Year!==t.Year?e.Year-t.Year:e.Month-t.Month));t.filter((e=>e.Year>2016||2016===e.Year&&e.Month>=1)).forEach((e=>{const t=e.Month,n=e.Year,i=e.Distinct_Patients,s=e.Distinct_Rows;a.push("".concat(t,"/").concat(n)),r.push(i),l.push(s)}));p({labels:a,datasets:[{label:"Patients",data:r,borderColor:"rgb(255, 99, 132)",borderWidth:2,fill:!1},{label:"Claims",data:l,borderColor:"rgb(54, 162, 235)",borderWidth:2,fill:!1}]})}})).catch((()=>{})),(0,n.q)("hcp_correlation_matrix",e,t).then((e=>{if(e){let t={};e.forEach((e=>{let a=(0,r.A)({},e);delete a.index,t[e.index]=a}));let a=[];Object.keys(u.IM).forEach((e=>{if(t.hasOwnProperty(e)){let r=[];Object.keys(u.IM).forEach((a=>{t[e].hasOwnProperty(a)&&r.push(t[e][a])})),a.push(r)}})),M(a),I({xLabels:Object.keys(u.IM).filter((e=>t.hasOwnProperty(e))).map((e=>u.IM[e])),yLabels:Object.keys(u.IM).filter((e=>t.hasOwnProperty(e))).map((e=>u.IM[e]))})}})).catch((()=>{})),(0,n.q)("data_stats_11",e,t).then((e=>{if(e){const t=e.data,a=[],r=[];t.sort(((e,t)=>e.Year!==t.Year?e.Year-t.Year:e.Month-t.Month));t.filter((e=>e.Year>2016||2016===e.Year&&e.Month>=1)).forEach((e=>{const t=e.Month,l=e.Year,n=e.NumberOfPatients;a.push("".concat(t,"/").concat(l)),r.push(n)}));k({labels:a,datasets:[{label:"Patients",data:r,borderColor:"rgb(25, 99, 132)",borderWidth:2,fill:!1}]})}})).catch((()=>{})),(0,n.q)("data_stats_10",e,t).then((e=>{if(e){let t=[];e.data.forEach((e=>t.push(e.Type)));let a=(0,d.f)(e,t[0],"NumberOfPatients");S(a)}})).catch((()=>{})),(0,n.q)("data_stats_2",e,t).then((e=>{if(e){const t=e.data;let a={};t.forEach((e=>{a[e.State]={State:e.State,Asthma_Claims:e.Asthma_Claims,Distinct_Patients:e.Distinct_Patients}})),D(a);let r=[["State","Parent","Number of Asthma Patients"],["USA",null,0],...t.map((e=>[e.State,"USA",e.Distinct_Patients]))];m(r)}})).catch((()=>{})),(0,n.q)("data_stats_7",e,t).then((e=>{if(e){const t=e.data;w(t)}})).catch((()=>{})),(0,n.q)("data_stats_8",e,t).then((e=>{if(e){const t=e.data;y(t)}})).catch((()=>{}))}),[e,t]),(0,v.jsxs)("div",{children:[a&&(0,v.jsx)(s.bl,{arbitrary:!1,data:a,options:j}),x&&(0,v.jsx)(v.Fragment,{children:(0,v.jsx)(s.bl,{height:150,arbitrary:!1,data:x,options:F})}),C&&(0,v.jsx)(s.bl,{arbitrary:!1,data:C,options:T}),b&&(0,v.jsxs)("div",{className:"flex w-full flex-col gap-12",children:[(0,v.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,v.jsx)("p",{className:"text-[#888888] font-bold text-xs",children:"Asthma Patients by States"}
1),(0,v.jsx)(h.A,{dataQuality:!0,markersEnabled:!1,mapData:N})]}),(0,v.jsx)(o.Ay,{needCallbacks:!1,data:b})]}),f&&(0,v.jsx)(c.A,{Title:"Asthma HCP Specialties by Patient Interactions",activeCells:!1,showSelectionBtns:!1,TableData:f,TableColummns:L}),g&&(0,v.jsx)(c.A,{Title:"Patients by Type of Medicine",activeCells:!1,showSelectionBtns:!1,TableData:g,TableColummns:P}),E&&(0,v.jsxs)("div",{className:"p-6 w-full overflow-auto",children:[(0,v.jsx)("h4",{className:"mb-8 ml-2 font-[500]",children:"Unmet Need Correlation Heatmap"}),(0,v.jsx)(A,{cellRender:(e,t,a)=>e>=t?(0,v.jsx)("div",{style:{fontSize:"0.5rem"},title:"Pos(".concat(e,", ").concat(t,") = ").concat(a),children:a.toFixed(2)}):null,xLabelsPos:"bottom",yLabelsStyle:()=>({fontSize:".65rem",width:"15rem",textAlign:"center",display:"grid",placeContent:"center",lineHeight:1,height:"2.5rem"}),xLabelsStyle:()=>({fontSize:".5rem"}),cellStyle:(e,t,a)=>{if(e>=t){let r=E[e][t];return{background:r>0?"rgb(12, 160, 44, ".concat(a,")"):"rgba(255,74,48, ".concat(Math.abs(r),")"),fontSize:".8rem",color:"rgb(0, 0, 0, ".concat(a/2+.4,")")}}return{background:"rgba(0,0,0,0)",fontSize:".8rem",color:"rgba(255,255,255,0.8)"}},cellHeight:"2.5rem",data:E,xLabelWidth:10,xLabels:U.xLabels,yLabels:U.yLabels})]})]})}},9805:(e,t,a)=>{function r(e,t,a){const r=e.data;r.sort(((e,t)=>new Date(e.Date)-new Date(t.Date)));const l=["#3AAB9D","#D65FDB","#65C5E3","#FC8A71","#7C53A6","#E3B505","#1BB83C","#FDE84D","#8CB3E3","#FF72A5","#FF9F1C","#00B159","#00AEEF","#F37735","#8E44AD","#F1C40F","#3498DB","#2C3E50","#E74C3C","#9B59B6"],n={};r.forEach((e=>{let t=e.Type,r=e.Date,l=e[a];n[t]||(n[t]={}),n[t][r]||(n[t][r]=[]),n[t][r].push(l)}));const i=Object.keys(n).map(((e,t)=>{const a=Object.keys(n[e]).map((t=>{const[a,r,l]=t.split("-").map(Number);return new Date(a,r-1,l)>=new Date(2016,0,1)?{x:t,y:n[e][t].reduce(((e,t)=>e+t),0)}:null})).filter((e=>null!==e));return{label:e,data:a,borderColor:l[t],fill:!1}}));return{labels:Object.keys(r.reduce(((e,t)=>{const[a,r,l]=t.Date.split("-").map(Number);return new Date(a,r-1,l)>=new Date(2016,0,1)&&(e[t.Date]=!0),e}),{})),datasets:i}}function l(e){return{responsive:!0,scales:{x:{grid:{display:!1},display:!0,title:{display:!0,text:"Date"},ticks:{font:{size:14,weight:600},callback:function(e,t,a){return this.getLabelForValue(e)}}},y:{display:!0,title:{display:!0,text:"Value"}}},plugins:{title:{display:!0,text:e},datalabels:{display:!1}}}}a.d(t,{f:()=>r,l:()=>l})},7690:(e,t,a)=>{a.d(t,{lg:()=>n,pH:()=>l});var r=a(9379);const l=(e,t)=>{var a;const l=(null===(a=e.labels)||void 0===a?void 0:a.length)||0;if(!t||!l)return e;const n=Math.min(l,Math.max(2,t)),i=Array.from({length:n},((e,t)=>1===n?0:Math.round(t*(l-1)/(n-1))));return{labels:i.map((t=>e.labels[t])),datasets:e.datasets.map((t=>(0,r.A)((0,r.A)({},t),{},{data:i.map((a=>({x:Number(e.labels[a]),y:t.data[a]}))),borderColor:Array.isArray(t.borderColor)?i.map((e=>t.borderColor[e])):t.borderColor,backgroundColor:Array.isArray(t.backgroundColor)?i.map((e=>t.backgroundColor[e])):t.backgroundColor})))}},n=(e,t)=>e.reduce(((e,a)=>{const r=Number(a[t]);return Number.isFinite(r)?Math.max(e,r):e}),0)},1694:(e,t,a)=>{a.d(t,{A:()=>l});var r=a(5043);function l(e){const t=(0,r.useRef)(null),a=(0,r.useCallback)(((e,a)=>{t.current={wrapper:e,google:a}}),[]);return(0,r.useEffect)((()=>()=>{var a,r;const l=t.current;t.current=null;const n=null===l||void 0===l||null===(a=(r=l.wrapper).getChart)||void 0===a?void 0:a.call(r);var i,s,o,c;n&&(null===(i=l.google)||void 0===i||null===(s=i.visualization)||void 0===s||null===(o=s.events)||void 0===o||o.removeAllListeners(n),null===(c=n.clearChart)||void 0===c||c.call(n));e&&document.querySelectorAll("[data-clinica-chart-tooltip]").forEach((t=>{if(t.getAttribute("data-clinica-chart-tooltip")!==e)return;const a=t.parentElement;(null===a||void 0===a?void 0:a.parentElement)===document.body&&a.remove()}))}),[e]),a}}}]); 2//# sourceMappingURL=1.8b175f46.chunk.js.map
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.