1"use strict";(globalThis.webpackChunkimplify||=[]).push([[8028],{85611(e,l,s){const a={customURLNeeded:!0,method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"GetAllResourcesAndProgramsAPI",apiType:"configuration",apiVersion:2},i={url:"configuration/getslalist",method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"getSlalistAPI",apiType:"configuration",apiVersion:2},t={url:"configuration/AddCohortBasicDetails",method:"POST",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"AddBasicDetailsAPI",apiType:"configuration",apiVersion:2},n={url:"activity/getactivitydispositionswithmodes",method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"GetActiveDispositionListAPI",apiVersion:2,apiType:"activity"},o={customURLNeeded:!0,method:"POST",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"AddActivityRulessAPI",apiType:"activity",apiVersion:2},r={customURLNeeded:!0,method:"POST",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"AddCohortFileRuledetailsAPI",apiType:"member",apiVersion:2},d={url:"assessment/assessmentdetailswithgroups",method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"GetAssessmentDetailsWithGroupsAPI",apiType:"assessment",apiVersion:2},c={url:"assessment/allassessmentlist ",method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"GetAllAssessmentListAPI",apiType:"assessment",apiVersion:2},u={url:"assessment/addcohortassessments",method:"POST",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"AddCohortAssessmentsAPI",apiType:"assessment",apiVersion:2},m={url:"finance/defaultfinancerules",method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"GetFinancialDataAPI",apiType:"billing",apiVersion:2},h={url:"finance/adddefaultfinancerules",method:"POST",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"AddFinancialRulesAPI",apiType:"billing",apiVersion:2};s.d(l,["$k",0,r,"A5",0,c,"O3",0,m,"Q6",0,{customURLNeeded:!0,method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"CohortActiveOrInactiveAPI",apiType:"configuration",apiVersion:2},"QX",0,t,"RO",0,i,"Ul",0,u,"Vj",0,o,"YT",0,n,"cm",0,h,"j5",0,{url:"assessment/addnewassessment",method:"POST",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"AddNewAssesAPI",apiType:"assessment",apiVersion:2},"lA",0,{customURLNeeded:!0,method:"GET",responseSchema:null,requestSchema:null,queryParamsSchema:null,callErrorPage:!1,storeKey:"GetViewCohortAPI",apiType:"configuration",apiVersion:2},"tf",0,d,"yQ",0,a])},57662(e,l,s){s.d(l,["Im",0,e=>`activity/${e}/addactivitydispositions `,"LT",0,e=>`configuration/searchvalue/${e}/cohortdashboarddetails`,"O3",0,e=>`configuration/cohortinfo/${e}`,"R5",0,(e,l)=>`configuration/${e}/isactive/${l}/cohortactivestatus`,"i_",0,e=>`referrals/isedit/${e}/addcohortfileruledetails `])},78028(e,l,s){s.r(l),s.d(l,{default:()=>G});var a=s(9950),i=s(17062),t=s(79969),n=s(65488),o=s(59335),r=s(97176),d=s(46114),c=s(27291),u=s(67755),m=s(95961),h=s(20532),v=s(15845),g=s(91646),x=s(84679),p=s(44414);const A=e=>{let{open:l,handleClose:s}=e;const[i,t]=(0,a.useState)("");return(0,p.jsxs)(m.A,{isOpen:l,direction:"end",toggle:s,"data-bs-scroll":!0,className:"offcanvas offcanvas-end border-0 w-40",tabIndex:"-1",children:[(0,p.jsx)(h.A,{className:"bg-soft-primary",children:(0,p.jsx)("h4",{className:"tex-dark",children:"Clone Cohort"})}),(0,p.jsx)(v.A,{className:"profile-offcanvas px-5 py-4",children:(0,p.jsx)(r.A,{children:(0,p.jsxs)(d.A,{xs:12,sm:12,md:12,lg:12,xl:12,xxl:12,className:"mb-4",children:[(0,p.jsx)(g.A,{className:"mt-1",children:"Cohort Name"}),(0,p.jsx)(x.A,{type:"text",className:"form-control w-100",placeholder:"Cohort Name",id:"cohortName",value:i,onChange:e=>t(e.target.value)})]})})}),(0,p.jsxs)("div",{className:"d-flex justify-content-end w-100 offcanvas-footer p-3 bg-light",children:[(0,p.jsx)("button",{onClick:s,type:"button",className:"btn btn-md btn-outline-primary waves-effect center waves-light w-20",id:"assignSave",children:"cancel"}),(0,p.jsx)("button",{onClick:()=>{},disabled:!i,type:"button",className:"btn btn-md btn-primary ms-4 w-20",id:"cancelAssign",children:"save"})]})]})};var y=s(57935),f=s(85611),b=s(74742),j=s(27666),S=s(40738),I=s(57662),P=s(27232),N=s(61364),C=s(78125),w=s(35746),T=s(55909),k=s(48738),q=s.n(k),R=(s(24110),s(28575));const O=e=>{var l,s,a,i;let{basicInfo:t}=e;const n=e=>{const l=null===R.qD||void 0===R.qD?void 0:R.qD.find(l=>l.key===e);return l?l.color:"#c8fcff"};return(0,p.jsxs)(p.Fragment,{children:[null===R.Ot||void 0===R.Ot?void 0:R.Ot.map((e,l)=>{const s=null===t||void 0===t?void 0:t[e.key];let a="-";return a=Array.isArray(s)?s.length?s.join(", "):"-":"object"===typeof s&&null!==s?JSON.stringify(s):s||"-",(0,p.jsxs)(r.A,{className:"mb-2",children:[(0,p.jsx)(d.A,{xs:4,sm:4,md:4,lg:4,xl:4,xxl:4,children:(0,p.jsx)("span",{className:"fw-medium text-muted",children:e.label})}),(0,p.jsx)(d.A,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:"LOB"===e.label&&Array.isArray(s)?(0,p.jsx)(p.Fragment,{children:Array.isArray(s)&&s.length>0?s.map((e,l)=>(0,p.jsx)("span",{className:"px-2 py-1 me-2 d-inline-block rounded",style:{backgroundColor:n(e),border:`1px solid ${n(e)}`},children:e},l)):"-"}):(0,p.jsx)("span",{className:"text-dark",children:a})})]},l)}),(0,p.jsxs)("div",{className:"mt-2",children:[(0,p.jsx)("span",{className:"fw-bold fs-14 text-dark",children:"File Ingestion :"}),(0,p.jsxs)(r.A,{className:"mb-2 mt-2",children:[(0,p.jsx)(d.A,{xs:4,sm:4,md:4,lg:4,xl:4,xxl:4,children:(0,p.jsx)("span",{className:"fw-medium text-muted",children:"Receive Location"})}),(0,p.jsx)(d.A,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:(0,p.jsx)("span",{className:"text-dark",children:null!==t&&void 0!==t&&t.receiveLocation&&null!==t&&void 0!==t&&null!==(l=t.receiveLocation)&&void 0!==l&&l.directory?null===t||void 0===t||null===(s=t.receiveLocation)||void 0===s?void 0:s.directory:"-"})}),(0,p.jsx)(d.A,{xs:4,sm:4,md:4,lg:4,xl:4,xxl:4,children:(0,p.jsx)("span",{className:"fw-medium text-muted",children:"Drop Location"})}),(0,p.jsx)(d.A,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:(0,p.jsx)("span",{className:"text-dark",children:null!==t&&void 0!==t&&t.droppingLocation&&null!==t&&void 0!==t&&null!==(a=t.droppingLocation)&&void 0!==a&&a.directory?null===t||void 0===t||null===(i=t.droppingLocation)||void 0===i?void 0:i.directory:"-"})})]})]})]})},V=e=>{var l,s;let{assementInfo:a}=e;return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(r.A,{children:[(0,p.jsx)(d.A,{xs:4,sm:4,md:4,lg:4,xl:4,xxl:4,children:(0,p.jsx)("span",{className:"fw-medium text-muted",children:"Mandatory Assessments"})}),(0,p.jsx)(d.A,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:(0,p.jsx)("span",{className:"text-dark",children:(null===a||void 0===a||null===(l=a.mandatoryAssessments)||void 0===l?void 0:l.length)>0?null===a||void 0===a?void 0:a.mandatoryAssessments.join(", "):"-"})}),(0,p.jsx)(d.A,{xs:4,sm:4,md:4,lg:4,xl:4,xxl:4,children:(0,p.jsx)("span",{className:"fw-medium text-muted",children:"Non-Mandatory Assessments"})}),(0,p.jsx)(d.A,{xs:8,sm:8,md:8,lg:8,xl:8,xxl:8,children:(0,p.jsx)("span",{className:"text-dark",children:(null===a||void 0===a||null===(s=a.nonMandatoryAssessments)||void 0===s?void 0:s.length)>0?null===a||void 0===a?void 0:a.nonMandatoryAssessments.join(", "):"-"})})]})})},L=e=>{let{open:l,handleClose:s,cohortData:i,cohortName:t}=e;(0,N.mz)("viewConfig");const[n,o]=(0,a.useState)("1"),r=null===i||void 0===i?void 0:i.basicDetail
1s,d=null===i||void 0===i?void 0:i.assessmentDetails;return(0,p.jsx)(p.Fragment,{children:(0,p.jsxs)(m.A,{isOpen:l,direction:"end",toggle:s,"data-bs-scroll":!0,className:"offcanvas offcanvas-end border-0 w-40",tabIndex:"-1",children:[(0,p.jsx)(h.A,{className:"d-flex align-items-center bg-cohort text-cacel p-3",toggle:s,children:(0,p.jsx)("span",{className:"m-0 me-2",children:`${t} Cohort Info`})}),(0,p.jsx)(v.A,{className:"viewCohort-offcanvas px-5 py-4",children:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"mb-5 border-bottom border-light",children:(0,p.jsx)(C.A,{pills:!0,className:"nav-success fs-12 cursor-pointer nav-pills",children:null===R.cq||void 0===R.cq?void 0:R.cq.map(e=>(0,p.jsx)(w.A,{children:(0,p.jsx)(T.A,{className:q()("nav-pill",{active:n===e.id,inactive:n!==e.id}),onClick:()=>(e=>{n!==e&&o(e)})(e.id),children:(0,p.jsx)("span",{className:q()("m-0 me-2",{"text-primary":n===e.id,"text-dark":n!==e.id}),children:e.label})})},e.id))})}),(0,p.jsx)("div",{className:"tab-content",children:(()=>{switch(n){case"1":return(0,p.jsx)(O,{basicInfo:r});case"2":return(0,p.jsx)(V,{assementInfo:d});default:return(0,p.jsx)("div",{children:"No Data Found"})}})()})]})})]})})};var D=s(44620),E=s(98960),W=s(18354);const G=()=>{const e=(0,i.W6)(),[l,s]=(0,a.useState)(""),[m,h]=(0,a.useState)(!1),[v,g]=(0,a.useState)(1),[x,C]=(0,a.useState)(10),[w,T]=(0,a.useState)([]),[k,q]=(0,a.useState)(!1),[R,O]=(0,a.useState)(),[V,G]=(0,a.useState)(!1),[F,K]=(0,a.useState)(null),[Q,$]=(0,a.useState)(""),M=(0,b.d4)(e=>(0,j.mI)(e,f.yQ)),U=(0,b.d4)(e=>(0,j.mI)(e,f.lA)),H=(0,b.d4)(e=>(0,j.mI)(e,f.Q6)),B=(0,b.d4)(e=>(0,E.Y)(e,"allRolesData")),z=(0,b.wA)();(0,a.useEffect)(()=>{_(),Y()},[]);const Y=()=>{var e;(0,y.t)(f.yQ,(0,I.LT)("all")),(0,y.t)(f.RO),(0,y.t)(f.YT),(0,y.t)(D.xN,`configuration/search/all/records/true/roles/${null===B||void 0===B||null===(e=B[0])||void 0===e?void 0:e.roleID}/organizations/0/500`,null,null)},_=()=>{(0,y.Vm)("AddBasicDetailsAPI"),(0,y.Vm)("AddActivityRulessAPI"),(0,y.Vm)("AddCohortFileRuledetailsAPI"),(0,y.Vm)("AddCohortAssessmentsAPI"),localStorage.removeItem("cohort_current_step"),z((0,W.zp)())};(0,a.useEffect)(()=>{var e,l,s,a,i,t,n,o,r;U&&null!==U&&void 0!==U&&null!==(e=U[S.Wg])&&void 0!==e&&e.isSuccess&&null!==U&&void 0!==U&&null!==(l=U[S.Wg])&&void 0!==l&&l.data?(null===U||void 0===U||null===(s=U[S.Wg])||void 0===s||null===(a=s.warnings)||void 0===a?void 0:a.length)>0&&0===(null===U||void 0===U||null===(i=U[S.Wg])||void 0===i||null===(t=i.data)||void 0===t?void 0:t.lengh)?(P.oR.warning(null===U||void 0===U||null===(n=U[S.Wg])||void 0===n?void 0:n.warnings[0]),(0,y.Vm)("GetViewCohortAPI")):(O(null===U||void 0===U||null===(o=U[S.Wg])||void 0===o||null===(r=o.data)||void 0===r?void 0:r[0]),q(e=>!e),(0,y.Vm)("GetViewCohortAPI")):(0,N.aU)(U,"GetViewCohortAPI")},[U]);(0,a.useEffect)(()=>{var e,l,s;if(M&&null!==M&&void 0!==M&&null!==(e=M[S.Wg])&&void 0!==e&&e.isSuccess)if((null===M||void 0===M||null===(l=M[S.Wg])||void 0===l||null===(s=l.warnings)||void 0===s?void 0:s.length)>0){var a,i,t,n;P.oR.warning(null===M||void 0===M||null===(a=M[S.Wg])||void 0===a?void 0:a.warnings[0]);const e=null!==M&&void 0!==M&&null!==(i=M[S.Wg])&&void 0!==i&&i.data&&(null===M||void 0===M||null===(t=M[S.Wg])||void 0===t?void 0:t.data.length)>0?null===M||void 0===M||null===(n=M[S.Wg])||void 0===n?void 0:n.data:[];T(e),(0,y.Vm)("getAllCohortsListAPI")}else{var o,r,d;const e=null!==M&&void 0!==M&&null!==(o=M[S.Wg])&&void 0!==o&&o.data&&(null===M||void 0===M||null===(r=M[S.Wg])||void 0===r?void 0:r.data.length)>0?null===M||void 0===M||null===(d=M[S.Wg])||void 0===d?void 0:d.data:[];T(e),(0,y.Vm)("getAllCohortsListAPI"),(0,y.Vm)("CohortActiveOrInactiveAPI")}else(0,y.Vm)("getAllCohortsListAPI"),(0,y.Vm)("CohortActiveOrInactiveAPI")},[M]),(0,a.useEffect)(()=>{var e,l,s,a,i;H&&null!==H&&void 0!==H&&null!==(e=H[S.Wg])&&void 0!==e&&e.isSuccess?(null===H||void 0===H||null===(l=H[S.Wg])||void 0===l||null===(s=l.warnings)||void 0===s?void 0:s.length)>0?(P.oR.warning((null===H||void 0===H||null===(a=H[S.Wg])||void 0===a?void 0:a.warnings[0])&&!(null!==H&&void 0!==H&&null!==(i=H[S.Wg])&&void 0!==i&&i.data)),(0,y.Vm)("CohortActiveOrInactiveAPI")):((0,y.t)(f.yQ,(0,I.LT)("all")),(0,y.Vm)("CohortActiveOrInactiveAPI")):(0,N.aU)(H,"CohortActiveOrInactiveAPI")},[H]);return(0,p.jsx)("div",{className:"page-content",children:(0,p.jsxs)(o.A,{fluid:!0,children:[(0,p.jsxs)("div",{className:"d-flex justify-content-between align-items-center w-100",children:[(0,p.jsxs)("div",{className:"d-flex align-items-center flex-grow-1 gap-5",children:[(0,p.jsx)("h1",{className:"fs-22 m-0",children:"Cohorts"}),(0,p.jsx)("div",{className:"search-box me-2 d-inline-block w-50",children:(0,p.jsxs)("div",{className:"position-relative",children:[(0,p.jsx)("div",{htmlFor:"search-bar-0",className:"search-label",children:(0,p.jsx)("input",{onKeyDown:e=>{if("Enter"===e.key){const l=e.target.value?e.target.value:"all";$(e.target.value),(0,y.t)(f.yQ,(0,I.LT)(l))}},onChange:e=>{if(s(e.target.value),(""===e.target.value||!e.target.value)&&Q&&""!==Q){const l=e.target.value?e.target.value:"all";(0,y.t)(f.yQ,(0,I.LT)(l))}},id:"cohort-search-bar",type:"text",className:"form-control w-100",placeholder:"Search...",value:l})}),(0,p.jsx)("i",{className:"ri-search-line search-widget-icon search-icon"})]})})]}),(0,p.jsx)("div",{children:(0,p.jsxs)("button",{onClick:()=>{e.push("/cohortconfig")},type:"button",className:"btn fs-18 btn-primary btn-sm me-auto ms-2 d-flex align-items-center gap-2",children:[(0,p.jsx)("i",{className:"ri-add-fill fs-18 fw-bold"})," Onboard Cohort"]})})]}),(0,p.jsx)(r.A,{className:"mt-5",children:(0,p.jsx)(d.A,{xl:12,children:(0,p.jsx)(u.A,{tabelID:"CohortsTable",hasToogle:!1,hideCardTitle:!0,isGlobalFilter:!1,allDataObj:{totalRecords:w.length},columns:c.OL,data:w,onPageChange:(e,l)=>{return s=l,g(e),void C(s);var s},pageNo:v,customPageSize:x,divClass:"table-responsive table-card",tableClass:"table table-borderless table-centered align-middle",theadClass:"default-table-header text-muted",loading:(null===M||void 0===M?void 0:M[S.Id])||(null===H||void 0===H?void 0:H[S.Id]),showRowsPerPage:!0,customActionsTemplate:(e,l,s)=>{var a;return(0,p.jsx)("div",{className:"d-flex align-items-center",children:(0,p.jsx)(t.A,{switch:!0,children:(0,p.jsx)(n.A,{type:"switch",role:"switch",checked:null===(a=l.original)||void 0===a?void 0:a.isActive,onChange:e=>((e,l)=>{var s;const a=e.target.checked;(0,y.t)(f.Q6,(0,I.R5)(null===l||void 0===l||null===(s=l.original)||void 0===s?void 0:s.sourceId,a),null)})(e,l)})})})},onViewCohort:(e,l)=>{const s=null===e||void 0===e?void 0:e.cohortName,a={DataSourceId:null===e||void 0===e?void 0:e.sourceId};K(s),(0,y.t)(f.lA,(0,I.O3)(null===e||void 0===e?void 0:e.sourceId),a)}})})}),(0,p.jsx)(A,{open:m,handleClose:()=>{h(e=>!e)}}),(0,p.jsx)(L,{open:k,handleClose:()=>{q(e=>!e)},cohortData:R,cohortName:F})]})})}},28575(e,l,s){[{disposition:"Sent Resourses",dispositionId:11},{disposition:"Email Sent",dispositionId:22},{disposition:"SMS sent",dispositionId:33},{disposition:"On the way to Home",dispositionId:44},{disposition:"I Love You 3000",dispositionId:55}].filter(e=>e.disposition&&e.dispositionId);s.d(l,["Cs",0,{isSucess:!0,data:[{label:"Basic Details",value:1,id:1,content:"Enter your basic details here."},{label:"Activity Rules",value:2,id:2,content:"Define activity rules for the process."},{label:"Financial Rules",value:3,id:3,content:"Define financial rules for the process."},{label:"Cohort File Processing",value:4,id:4,content:"Upload and process cohort files."},{label:"Assessment Config",value:5,id:5,content:"Configure assessments for users."}]},"DQ",0,[{label:"Level 1",value:"60",id:"1",level:[1],days:[30]},{label:"Level 1 & Level 2",value:"90",id:"2",level:[1,2],days:[30,60]}],"O_",0,[{label:"AR Rules",value:1},{label:"AP Rules",value:2}],"Ot",0,[{label:"Cohort Name",value:"hlo",key:"cohortName"},{label:"LOB",value:"hlo",key:"lobs"},{label:"States",value:"hlo",key:"states"},{label:"Referral Type",value:"hlo",key:"type"},{label:"Program",value:"hlo",key:"schema"},{label:"Activities",value:"hlo",key:"activities"},{label:"Outreach Info",value:"hlo",key:"oureachInfo"},{label:"Active Status",value:"hlo",key:"status"},{label:"SLA",value:"hlo",key:"sla"}],"cq",0,[{id:"1",label:"Basic Info"},{id:"2",label:"Assessment Config"}],"oj",0,[{label:"Rhi",id:"Residential Health Insurance",value:1},{label:"Fhir",id:"Federal Health Insurance Regulations",value:2}
1,{label:"NonRhi",id:"Non-Residential Health Insurance",value:4},{label:"Hhi",id:"Household Health Insurance",value:8},{label:"Whi",id:"Workplace Health Insurance",value:16}],"qD",0,[{key:"MDCR",color:"#c8fcff"},{key:"MDCD",color:"#f8f8c4"},{key:"COMM",color:"#dcd4fc"}]])},24110(){}}]);
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.