PageSourceSearch

https://app2.pacmansoftware.com/build/assets/ClaimAssignModal-D3i0McX_.js

js pacmansoftware.com collected 2026-10-05 00:58:13 UTC 10,281 bytes, 1 lines download raw bytes

1import{p as ee,E as it,i as re,f as u,k as a,s as v,b as h,g as t,m as N,u as o,o as z,c as d,d as ae,C as lt,q as vt,v as Z,t as D,n as w,h as P,r as C,A as U,B as pt}from"./app2-BtNoqpnM.js";import{c as se,o as oe}from"./index-client-DKt5lZOB.js";import{s as ne}from"./attributes-Dv2-e8Mq.js";import{s as F}from"./class-CmjT7T8A.js";import{s as dt}from"./style-DrvzCjTZ.js";import{c as ie}from"./input-D35MOiLq.js";import{a as le}from"./api-B9rT76R0.js";import B from"./ClaimText-Drpkwcv1.js";import ve from"./ClaimFilter-Y1SoawZP.js";import de from"./ClaimSearch-BXxxtwzi.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./attributes-BRzKQYUk.js";import"./html-Cu09Kep-.js";import"./actions-Bd2gjmaj.js";import"./this-DirzbWwH.js";import"./event-modifiers-BDD76Zze.js";import"./Portal-B2jmFx6O.js";import"./clickOutside-a7XEC-kH.js";var pe=pt('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5"><path stroke-linecap="round" stroke-linejoin="round" d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"></path></svg>'),ue=pt('<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5"><path stroke-linecap="round" stroke-linejoin="round" d="M13.5 21v-7.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75V21m-4.5 0H2.36m11.14 0H18m0 0h3.64m-1.39 0V9.349M3.75 21V9.349m0 0a3.001 3.001 0 0 0 3.75-.615A2.993 2.993 0 0 0 9.75 9.75c.896 0 1.7-.393 2.25-1.016a2.993 2.993 0 0 0 2.25 1.016c.896 0 1.7-.393 2.25-1.015a3.001 3.001 0 0 0 3.75.614"></path></svg>'),ce=u('<span class="bg-gradient-to-tr from-pink-600 to-pink-400 text-white text-[10px] px-1 py-0.5 rounded"> </span>'),ge=u('<span class="inline-flex items-center gap-1 text-xs font-bold text-white bg-emerald-400 rounded-md px-2 py-1 ml-2"><svg xmlns="http://www.w3.org/2000/svg" class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"></path></svg> </span>'),xe=u('<span class="text-gray-500">NEW</span>'),fe=u('<span class="text-gray-800"> </span>'),_e=u('<div class="relative group"><span class="bg-green-200 text-green-600 text-sm font-bold px-1.5 py-0.5 rounded">P</span> <div class="absolute bottom-full left-1/2 transform -translate-x-1/2 bg-gray-700 text-white text-xs rounded px-2 py-1 opacity-0 group-hover:opacity-100 transition">Payment</div></div>'),me=u('<div class="relative group"><span class="bg-red-300 text-red-600 text-sm font-bold px-1.5 py-0.5 rounded">L</span> <div class="absolute bottom-full left-1/2 transform -translate-x-1/2 bg-gray-700 text-white text-xs rounded px-2 py-1 opacity-0 group-hover:opacity-100 transition">Litigation</div></div>'),he=u('<tr><td class="text-center px-2 py-4"><input type="radio" name="claim-selection" class="accent-blue-500 
1w-4 h-4"/></td><td class="text-sm text-gray-600 text-center px-2 py-4"> </td><td class="relative px-3 py-2 max-w-[200px]"><div class="flex items-center gap-2"><div class="p-1 rounded shadow bg-white"><!></div> <div class="flex flex-col flex-1 ml-2 justify-center"><a class="text-sm text-lg hover:underline"><!></a> <div class="mt-1 inline-flex gap-1.5"></div></div> <!></div></td><td class="px-3 py-2 text-sm text-slate-600"><!></td><td class="px-3 py-2 text-center"><span class="bg-gradient-to-tl from-green-600 to-lime-400 px-2.5 text-xs rounded-1.8 py-1.4 inline-block whitespace-nowrap text-center align-baseline font-bold uppercase leading-none text-white"> </span></td><td class="px-3 py-2 text-center text-xs text-slate-500"><!></td><td class="px-3 py-2 text-center text-xs text-slate-500"><!></td><td><!></td><td><div class="text-center flex items-center gap-2 justify-start"><!></div></td></tr>'),be=u('<tr><td colspan="100%" class="text-center py-4 text-gray-500"><div class="inline-flex items-center justify-center py-6"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"></path></svg> <span class="text-lg">There are no claims in <b> </b></span></div></td></tr>'),ye=u('<span class="px-3 py-1 text-sm text-gray-400 select-none">...</span>'),we=u("<button> </button>"),Ce=u('<div class="mt-4 flex gap-1 flex-wrap justify-end"></div>'),ke=u('<div class="fixed inset-0 bg-black-opacity-50 flex items-center justify-center z-50" style="z-index: 9999999999;"><div class="bg-white rounded-lg p-6 w-[80%] "><label class="block mb-2 text-sm">Select Claim:</label> <div class="mb-8 relative inline-flex w-full justify-between items-end"><!> <!></div> <div class="max-h-[500px] overflow-y-auto border rounded"><table class="w-full"><tbody><!></tbody></table></div> <!> <div class="mt-6 flex justify-end gap-2"><button class="px-4 py-2 bg-gray-300 rounded hover:bg-gray-400">Cancel</button> <button class="px-4 py-2 bg-blue-600 text-white rounded hover:bg-blue-700">Save</button></div></div></div>');function ze(ut,H){ee(H,!1);const ct=[],O=se();let f=it(H,"search",12,""),S=it(H,"claimFilter",12,""),A=N([]),I=N(),_=N(0),Y=N(0),b=N(1),k={type:"ALL",claimFilter:"All Active Claims",search:"",selectedTags:[],selectedResources:[],selectedClaimType:[],sortField:"claimReview",sortDirection:"asc",page:1,perPage:25};S("All Active Claims");async function E(){try{const r=await le("POST","/claims/",k);P(A,r.claims??[]),P(_,r.page),P(Y,r.perPage),P(b,r.totalPages)}catch(r){console.error(r)}finally{}}function gt(){k.page=1,k.perPage=25}oe(E);function xt(r){const n=Date.now()/1e3,p=String((r==null?void 0:r.ClaimStatus)||"").trim().toUpperCase();let i=Number((r==null?void 0:r.ClaimStarted)||0);if(["CLAIM","PAYMENT"].includes(p)?i=Number((r==null?void 0:r.ClaimSigned)||i):["CLOSED","NO SALE","CANCELED","UNCOLLECTABLE","APPRAISAL DENIED"].includes(p)&&(i=Number((r==null?void 0:r.ClaimClosed)||i)),!Number.isFinite(i)||i<=0)return 0;const e=Math.floor((n-i)/86400);return Number.isFinite(e)?e:0}function G(r){if(!r||r===0)return"";const n=new Date(r*1e3),p=new Date;return p.setHours(0,0,0,0),n.toDateString()===p.toDateString()?"bg-yellow-200":n<p?"bg-red-200":""}function ft(r){k.page=r,E()}function _t(){const r=[];if(t(b)<=7)for(let n=1;n<=t(b);n++)r.push(n);else{r.push(1),t(_)>4&&r.push("...");const n=Math.max(2,t(_)-2),p=Math.min(t(b)-1,t(_)+2);for(let i=n;i<=p;i++)r.push(i);t(_)<t(b)-3&&r.push("..."),r.push(t(b))}return r}function mt(r){gt(),S(r.detail.selected),k.claimFilter=S(),E()}function ht(r){f(r.detail.search),k.search=f(),E()}re();var W=ke(),bt=a(W),$=v(a(bt),2),J=a($);ve(J,{get selected(){return S()},$$events:{change:mt}});var yt=v(J,2);de(yt,{get search(){return f()},set search(r){f(r)},$$events:{update:ht},$$legacy:!0});var K=v($,2),wt=a(K),Ct=a(wt),kt=a(Ct);{var Dt=r=>{var n=lt(),p=vt(n);Z(p,1,()=>t(A),U,(i,e,L)=>{var m=he(),T=a(m),c=a(T),x,M=v(T),V=a(M),j=v(M),Nt=a(j),tt=a(Nt),Pt=a(tt);{var It=s=>{var l=pe();d(s,l)},Et=s=>{var l=ue();d(s,l)};h(Pt,s=>{t(e),o(()=>t(e).ClaimResidentialType==="Residential")?s(It):s(Et,!1)})}var et=v(tt,2),R=a(et),Tt=a(R);const jt=C(()=>(t(e),o(()=>t(e).ClaimName??"")));B(Tt,{get text(){return t(jt)},get term(){return f()}});var Rt=v(R,2);Z(Rt,5,()=>(t(e),o(()=>t(e).tags)),U,(s,l)=>{var g=ce(),y=a(g);D(()=>w(y,(t(l),o(()=>t(l).Name)))),d(s,g)});var Ft=v(et,2);{var Bt=s=>{var l=ge(),g=v(a(l));D(()=>w(g,` ${t(e),o(()=>t(e).CurrentStage)??""}`)),d(s,l)};h(Ft,s=>{t(e),o(()=>t(e).CurrentStage)&&s(Bt)})}var rt=v(j),Ht=a(rt);const Ot=C(()=>(t(e),o(()=>t(e).ClaimType??"")));B(Ht,{get text(){return t(Ot)},get term(){return f()}});var at=v(rt),Vt=a(at),qt=a(Vt),st=v(at),zt=a(st);const Zt=C(()=>(t(e),o(()=>t(e).ClaimAdjuster??"—")));B(zt,{get text(){return t(Zt)},get term(){return f()}});var ot=v(st),Ut=a(ot);const Yt=C(()=>(t(e),o(()=>t(e).ClaimClaimNo??"—")));B(Ut,{get text(){return t(Yt)},get term(){return f()}});var q=v(ot),Gt=a(q);{var Wt=s=>{var l=xe();d(s,l)},$t=s=>
1{var l=fe(),g=a(l);D(y=>w(g,y),[()=>(t(e),o(()=>new Date(t(e).ClaimReview*1e3).toLocaleDateString()))],C),d(s,l)};h(Gt,s=>{t(e),o(()=>t(e).ClaimReview===0||t(e).ClaimReview==null)?s(Wt):s($t,!1)})}var nt=v(q),Jt=a(nt),Kt=a(Jt);{var Qt=s=>{var l=_e();d(s,l)},Xt=(s,l)=>{{var g=y=>{var te=me();d(y,te)};h(s,y=>{t(e),o(()=>t(e).ClaimStatus==="LITIGATION")&&y(g)},l)}};h(Kt,s=>{t(e),o(()=>t(e).ClaimStatus==="PAYMENT")?s(Qt):s(Xt,!1)})}D((s,l,g)=>{F(m,1,(t(e),o(()=>`transition-colors ${t(e).ClaimColor?"":"hover:bg-blue-200"}`))),dt(m,(t(e),o(()=>t(e).ClaimColor?`background-color: ${t(e).ClaimColor}`:""))),x!==(x=(t(e),o(()=>t(e).ClaimID)))&&(c.value=(c.__value=(t(e),o(()=>t(e).ClaimID)))??""),w(V,(t(_)-1)*t(Y)+L+1),ne(R,"href",(t(e),o(()=>`/claims/${t(e).ClaimID}`))),dt(R,`color: ${t(e),o(()=>t(e).ClaimColor?"white":"")??""}`),w(qt,`${s??""} days`),F(q,1,l),F(nt,1,g)},[()=>(t(e),o(()=>xt(t(e)))),()=>(t(e),o(()=>`px-3 py-2 text-center text-xs text-slate-500 ${G(t(e).ClaimReview)}`)),()=>(t(e),o(()=>`px-3 py-2 ${G(t(e).ClaimReview)}`))],C),ie(ct,[],c,()=>(t(e),o(()=>t(e).ClaimID),t(I)),s=>P(I,s)),d(i,m)}),d(r,n)},St=r=>{var n=be(),p=a(n),i=a(p),e=v(a(i),2),L=v(a(e)),m=a(L);D(()=>w(m,`"${S()??""}"`)),d(r,n)};h(kt,r=>{t(A),o(()=>t(A).length>0)?r(Dt):r(St,!1)})}var Q=v(K,2);{var At=r=>{var n=Ce();Z(n,5,()=>o(_t),U,(p,i)=>{var e=lt(),L=vt(e);{var m=c=>{var x=ye();d(c,x)},T=c=>{var x=we();let M;var V=a(x);D(j=>{M=F(x,1,"px-3 py-1 text-sm rounded border hover:bg-gray-100",null,M,j),w(V,t(i))},[()=>({"text-black":t(i)===t(_),"font-bold":t(i)===t(_)})],C),z("click",x,()=>ft(t(i))),d(c,x)};h(L,c=>{t(i)==="..."?c(m):c(T,!1)})}d(p,e)}),d(r,n)};h(Q,r=>{t(b)>1&&r(At)})}var Lt=v(Q,2),X=a(Lt),Mt=v(X,2);z("click",X,()=>O("close")),z("click",Mt,()=>{const r=t(A).find(n=>String(n.ClaimID)===String(t(I)));O("claimSelected",{claim:r||null,ClaimID:t(I)}),O("close")}),d(ut,W),ae()}export{ze as default};

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.