PageSourceSearch

https://app.propell.co.uk/_next/static/chunks/9322-89dc3dff40ccec8c.js

js propell.co.uk collected 2026-10-02 01:11:58 UTC 36,121 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9322],{462:(e,t,a)=>{a.d(t,{A:()=>i});var s=a(37876);a(14232);var l=a(33719),r=a(15565);function i(e){let{value:t,label:a,values:i,onChange:n,className:o}=e;return(0,s.jsxs)(l.l6,{variant:"sort",onValueChange:n,defaultValue:t,children:[(0,s.jsx)(l.bq,{className:(0,r.cn)("ml-[0.2vw] h-11 w-full px-[0.4vw] capitalize text-slate-blue","max-tablet:w-[40vw] max-tablet:rounded-mobile-8px max-tablet:pl-[2vw] max-tablet:text-base max-tablet:leading-[1.2]","tablet:max-laptop:w-[30vw] tablet:max-laptop:rounded-xl tablet:max-laptop:text-sm",o),children:(0,s.jsx)("span",{className:"block truncate",children:t?t.split("_").join(" "):a})}),(0,s.jsx)(l.gC,{children:i.map(e=>(0,s.jsx)(l.eb,{value:e,className:"capitalize",children:e.toString().split("_").join(" ")},e))})]})}},622:(e,t,a)=>{a.d(t,{Eb:()=>g,Iu:()=>p,M_:()=>v,WA:()=>x,cU:()=>m,dK:()=>c,n$:()=>u});var s=a(37876),l=a(14232),r=a(9552),i=a(29053),n=a(38724),o=a(15565),d=a(42298);let c=e=>{let{className:t,...a}=e;return(0,s.jsx)("nav",{role:"navigation","aria-label":"pagination",className:(0,o.cn)("mx-auto flex w-full justify-center",t),...a})};c.displayName="Pagination";let p=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("ul",{ref:t,className:(0,o.cn)("flex flex-row items-center gap-1",a),...l})});p.displayName="PaginationContent";let m=l.forwardRef((e,t)=>{let{className:a,...l}=e;return(0,s.jsx)("li",{ref:t,className:(0,o.cn)("",a),...l})});m.displayName="PaginationItem";let u=e=>{let{className:t,isActive:a,size:l="icon",...r}=e;return(0,s.jsx)("a",{"aria-current":a?"page":void 0,className:(0,o.cn)((0,d.r)({variant:a?"outline":"ghost",size:l}),t),...r})};u.displayName="PaginationLink";let g=e=>{let{className:t,...a}=e;return(0,s.jsxs)(u,{"aria-label":"Go to previous page",size:"xl",className:(0,o.cn)("gap-1 pl-2.5",t),...a,children:[(0,s.jsx)(r.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{children:"Previous"})]})};g.displayName="PaginationPrevious";let x=e=>{let{className:t,...a}=e;return(0,s.jsxs)(u,{"aria-label":"Go to next page",size:"xl",className:(0,o.cn)("gap-1 pr-2.5",t),...a,children:[(0,s.jsx)("span",{children:"Next"}),(0,s.jsx)(i.A,{className:"h-4 w-4"})]})};x.displayName="PaginationNext";let v=e=>{let{className:t,...a}=e;return(0,s.jsxs)("span",{"aria-hidden":!0,className:(0,o.cn)("flex h-9 w-9 items-center justify-center",t),...a,children:[(0,s.jsx)(n.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"More pages"})]})};v.displayName="PaginationEllipsis"},6775:(e,t,a)=>{a.d(t,{A:()=>c});var s=a(37876),l=a(14232),r=a(15565),i=a(71423),n=a(28351),o=a(3193),d=a(39300);function c(e){var t,a;let{label:c,allLabel:p,items:m,value:u,onChange:g,className:x}=e,[v,h]=l.useState(!1),j=u&&null!=(a=null==(t=m.find(e=>e.id===u))?void 0:t.label)?a:p;return(0,s.jsx)("div",{className:"relative",children:(0,s.jsxs)(i.AM,{modal:!0,open:v,onOpenChange:h,children:[(0,s.jsx)(i.Wv,{asChild:!0,children:(0,s.jsxs)("button",{className:(0,r.cn)("ml-[0.2vw] flex h-11 w-full items-center justify-between rounded-lg border-[1px] border-field-border bg-surface-field px-[0.4vw] py-2 text-sm capitalize text-warm-black dark:bg-ryleigh-10 dark:text-white","max-laptop:pl-[2vw]",x),role:"combobox","aria-controls":"","aria-expanded":v,children:[(0,s.jsx)("span",{className:"truncate",children:j}),(0,s.jsx)(d.A,{className:"h-auto w-5 shrink-0 text-slate-blue dark:text-white",isStroke:!0})]})}),(0,s.jsx)(i.hl,{className:"py-0 max-laptop:rounded-mobile-12px max-laptop:px-[1vw]",children:(0,s.jsxs)(n.uB,{children:[(0,s.jsx)(n.G7,{placeholder:"Search ".concat(c.toLowerCase(),"...")}),(0,s.jsx)(n.xL,{children:"Not found."}),(0,s.jsx)(n.L$,{children:(0,s.jsx)(o.FK,{className:"h-[345px] max-laptop:h-[12rem]",children:(0,s.jsxs)(n.oI,{className:"pb-4",children:[p&&(0,s.jsx)(n.h_,{value:p,onSelect:()=>{g(void 0),h(!1)},children:p}),m.map(e=>(0,s.jsx)(n.h_,{value:"".concat(e.label," ").concat(e.id),onSelect:()=>{g(e.id),h(!1)},children:e.label},e.id))]})})})]})})]})})}},9552:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(97814).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},19322:(e,t,a)=>{a.d(t,{I:()=>ee});var s=a(37876),l=a(14232),r=a(4626),i=a(15565),n=a(20951),o=a(85461),d=a(78625),c=a(3193),p=a(33219),m=a(73072),u=a(33333),g=function(e){return e.SearchMortgages="broker-search-mortgages",e}({});function x(e){var t;let a=(0,u.Q)(n.S).mortgageBroker.searchMortgages.useQuery(["broker-search-mortgages",null!=e?e:{}],{query:e});return(null==(t=a.data)?void 0:t.status)===200?a.data.body.mortgages:[]}
1var v=a(22212),h=a(42298),j=a(15387),f=a(65734),b=a(88655),y=a(16823);function N(e){let{isOpen:t,mortgageApplication:a,setOpen:l}=e;if(t&&a){var r,i,n,o,d,p,m,u,g,x,v,h,j,N,C,S;return(0,s.jsx)(f.lG,{open:t,onOpenChange:l,children:(0,s.jsx)(f.Cf,{className:"px-0 py-0",children:(0,s.jsxs)(c.FK,{className:"h-[60vh]",children:[(0,s.jsx)(f.q5,{}),(0,s.jsxs)(f.L3,{children:["Expiring mortgage for ",null==(r=a.user)?void 0:r.firstName," ",null==(i=a.user)?void 0:i.lastName," -"," ",a.propertyAddressLine1]}),(0,s.jsx)("div",{className:"flex"}),(0,s.jsxs)("div",{className:"flex px-[50px] pb-[6vh]",children:[(0,s.jsxs)("div",{className:"w-[45%] border-r-2 border-[#CCCCCC40]",children:[(0,s.jsx)(A,{label:"Mortgage"}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsx)(w,{label:"Mortgage Type",value:null==(o=a.existingMortgage)||null==(n=o.type)?void 0:n.toString()}),(0,s.jsx)(w,{label:"Mortgage Lender",value:null==(d=a.existingMortgage)?void 0:d.lender})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsx)(w,{label:"Outstanding Debt",value:(null==(p=a.existingMortgage)?void 0:p.outstandingDebt)?"\xa3"+(0,b.ZV)(a.existingMortgage.outstandingDebt):"--"}),(0,s.jsx)(w,{label:"Mortgage Term",value:null==(u=a.existingMortgage)||null==(m=u.term)?void 0:m.toString()})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsx)(w,{label:"Mortgage Product",value:null==(x=a.existingMortgage)||null==(g=x.product)?void 0:g.toString()}),(0,s.jsx)(w,{label:"Payment pcm",value:(null==(v=a.existingMortgage)?void 0:v.paymentPcm)?"\xa3"+(0,b.ZV)(a.existingMortgage.paymentPcm):"--"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsx)(w,{label:"Property Value",value:a.currentValuation?"\xa3"+(0,b.ZV)(a.currentValuation):"--"}),(0,s.jsx)(w,{label:"Rent pcm",value:a.rentPcm?"\xa3"+(0,b.ZV)(a.rentPcm):"--"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsx)(w,{label:"Property Tenure",value:a.ownershipType}),(0,s.jsx)(w,{label:"Property Category",value:null!=(S=a.propertyCategory)?S:void 0}),(0,s.jsx)(w,{label:"Company Address",value:a.companyAddress}),(0,s.jsx)(w,{label:"Company Number",value:a.companyNumber})]})]}),(0,s.jsxs)("div",{className:"relative w-[45%] pl-[2%]",children:[(0,s.jsx)(A,{label:"Personal"}),(0,s.jsxs)("div",{className:"grid grid-cols-2",children:[(0,s.jsx)(w,{label:"Job Title",value:null==(h=a.user)?void 0:h.jobTitle}),(0,s.jsx)(w,{label:"Employer",value:null==(j=a.user)?void 0:j.employer})]}),(0,s.jsx)(w,{label:"Email",value:null==(N=a.user)?void 0:N.email}),(0,s.jsx)("div",{className:"w-full",children:(null==(C=a.user)?void 0:C.phone)&&(0,s.jsx)(y.A,{countryCode:a.user.phone.countryCode,phonePrefix:a.user.phone.phonePrefix,phoneNumber:a.user.phone.phoneNumber,className:"mt-[2vh]"})})]})]})]})})})}}function w(e){let t,{label:a,startSign:l,endSign:r,value:n,className:o}=e;return(0,s.jsxs)("div",{className:"mt-[2vh] flex flex-col",children:[(0,s.jsx)("span",{className:(0,i.cn)("text-accent-purple-500 text-shadow-lg text-label-1",o),children:a}),(0,s.jsx)("span",{className:"text-sm font-bold leading-none text-shadow-lg",children:n?(t="",l&&(t+=l),t+=n,r&&(t+=r),t):"--"})]})}function A(e){let{label:t}=e;return(0,s.jsx)("div",{className:"bg-gradient-to-r from-gradient-purple-300 to-accent-purple-600 bg-clip-text text-3xl font-bold text-transparent",children:t})}var C=a(54587),S=a.n(C),k=a(88992),M=a(13810),O=a(64207),D=a(3884);function L(e){let{isOpen:t,mortgageApplicationId:a,close:l}=e,r=(0,o.jE)(),{toast:i}=(0,d.dj)(),c=(0,k.mN)({resolver:(0,M.u)(m.closeMortgageApplicationRequestSchema),defaultValues:{mortgageApplicationId:a},mode:"onSubmit"}),p=n.S.mortgageBroker.closeMortgageApplication.useMutation({onSuccess:()=>{r.invalidateQueries({queryKey:["broker-awaiting-mortgages"]}),i({title:"Success",description:"Application closed"}),l()},onError:e=>{console.error(e),i({title:"Error",description:"Failed to close application",variant:"destructive"})}}),u=async(e,t)=>{null==t||t.preventDefault(),p.mutate({body:e})};return(0,s.jsx)(f.lG,{open:t,onOpenChange:e=>{e||l()},children:(0,s.jsxs)(f.Cf,{className:"px-[4rem] py-[3vh]",onInteractOutside:e=>{e.preventDefault()},children:[(0,s.jsx)(f.q5,{className:"right-[1vh] top-[1vh]"}),(0,s.jsx)(f.L3,{children:"Oh no, that’s a shame"}),(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)(S(),{className:"h-[30vh] w-auto",src:"/svg/sad-face-90.svg",alt:"sad-face-90",width:300,height:200})}),(0,s.jsx)("p",{className:"text-base",children:"We will now mark this application as Did not proceed and archive it."}),(0,s.jsx)(D.lV,{...c,children:(0,s.jsxs)("form",{onSubmit:c.handleSubmit(u),className:"space-y-4 max-phone:max-w-[calc(100%-4vw)]",children:[(0,s.jsx)(O.Vq,{form:c,fieldKey:"additionalNotes",fieldLabel:"Additional Notes",className:"h-[15vh]"}),(0,s.jsx)(h.$,{variant:"primaryCta",text:"Mark as did not proceed",type:"submit",className:"inline-flex h-12 w-[100%] items-center justify-center whitespace-nowrap rounded-[8px] bg-gradient-to-r from-gradient-yellow-200 to-gradient-yellow-500 px-12 py-3 text-lg font-normal text-primary-gray-500 ring-offset-background transition-colors disabled:pointer-events-none"})]})})]})})}var B=a(41553),P=a(19400),I=a(6138),E=a(99052),V=a(67946);function F(e){var t,a,r,i,c,p,u;let{isOpen:g,mortgageApplication:x,propertyId:v,close:j}=e,{toast:b}=(0,d.dj)(),y=(0,o.jE)(),N=(0,k.mN)({resolver:(0,M.u)(m.brokerAddNewMortgageRequestSchema),defaultValues:{mortgageApplicationId:x.mortgageApplication.id,mortgageInterestRate:null!=(t=x.mortgageApplication.interestRate)?t:void 0,mortgageLender:null!=(a=x.mortgageApplication.lender)?a:void 0,mortgagePaymentPcm:null!=(r=x.mortgageApplication.paymentPcm)?r:void 0,mortgageProduct:null!=(i=x.mortgageApplication.product)?i:void 0,mortgageTerm:null!=(c=x.mortgageApplication.term)?c:void 0,mortgageType:null!=(p=x.mortgageApplication.type)?p:void 0,outstandingDebt:null!=(u=x.mortgageApplication.outstandingDebt)?u:void 0},mode:"onSubmit"}),[w,A]=l.useState(void 0),C=n.S.mortgageBroker.addNewMortgage.useMutation({onSuccess:()=>{y.invalidateQueries({queryKey:["broker-active-mortgages"]}),N.reset(),b({title:"Success",description:"Mortgage created, and mortgage application completed"}),j()},onError:e=>{console.error(e),b({title:"Error",description:"Failed to finalise mortgage",variant:"destructive"})}}),S=async(e,t)=>{null==t||t.preventDefault(),C.mutate({body:e})},L=n.S.documents.AWSPutDocumentSignedUrl.useMutation(),F=async(e,t)=>{let a="";if(e){let s=await L.mutateAsync({body:{fileName:e.name,propertyId:t}});(null==s?void 0:s.status)===200&&(await fetch(s.body.signedUrl,{method:"PUT",body:e})).ok&&(a=s.body.fullFileName)}return a},T=async(e,t)=>{let a=await F(e,t);""!==a&&(A(e),N.setValue("mortgageDocFileName",a),await N.trigger())};return(0,s.jsx)(f.lG,{open:g,onOpenChange:j,children:(0,s.jsxs)(f.Cf,{className:"px-16 py-[4vh]",children:[(0,s.jsx)(f.q5,{className:"right-[1vh] top-[1vh]"}),(0,s.jsxs)(f.L3,{children:["Great ",(0,s.jsx)(I._O,{label:"Job!"})]}),(0,s.jsx)(D.lV,{...N,children:(0,s.jsxs)("form",{onSubmit:N.handleSubmit(S),id:"finalise-mortgage-form",children:[(0,s.jsx)("div",{className:"text-center text-base tablet:text-sm",children:(0,s.jsxs)("p",{children:["Please update the below information, and we will send all the"," ",(0,s.jsx)("br",{className:"max-laptop:hidden"}),"documents and details to the Landlord.",(0,s.jsx)("br",{}),"When their next Remortgage is due, we will let you know!"]})}),(0,s.jsxs)("div",{className:"mt-[2vh] grid grid-cols-2",children:[(0,s.jsx)("div",{className:"pr-4",children:(0,s.jsx)(E.HG,{form:(0,E.qD)(N),className:"phone:grid-cols-1"})}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsx)(P.A,{id:"mortgageDoc",file:w,propertyId:v,setFile:T,label:"Mortgage Doc",fileSizeLimit:0x2800000,mainClassName:"my-0 py-0 
1w-[100%] h-auto"}),(0,s.jsxs)(B.G,{children:[(0,s.jsx)(O.FO,{form:N,fieldKey:"mortgageDocTitle",fieldLabel:"Document Title"}),(0,s.jsx)(O.Lh,{form:N,fieldKey:"expiryDate",fieldLabel:"Fixed Term Expiry",fieldError:N.formState.errors.expiryDate,hint:"This is the expiry date of the fixed term element of your mortgage, normally 2 or 5 years in term"}),(0,s.jsx)(O.OO,{form:N,fieldKey:"mortgagePaymentPcm",fieldLabel:"Payment pcm",Icon:V.A})]})]})]}),(0,s.jsx)("div",{className:"mt-[3vh] flex items-center justify-center",children:(0,s.jsx)(h.$,{variant:"primaryCta",text:"Mark as Completed",type:"submit",className:"ml-4 h-[4.5rem] max-laptop:ml-[1vw] max-laptop:h-[7vh]"})})]})})]})})}function T(e){let{isOpen:t,mortgageApplication:a,setOpen:l}=e;if(t&&a){var r,i,n,o,d;return(0,s.jsx)(f.lG,{open:t,onOpenChange:l,children:(0,s.jsxs)(f.Cf,{className:"px-[2vw]",children:[(0,s.jsx)(f.q5,{}),(0,s.jsx)(f.L3,{children:"Mortgage Broker Details"}),(0,s.jsx)(q,{label:"Name",value:(null==(r=a.mortgageBroker)?void 0:r.firstName)+" "+(null==(i=a.mortgageBroker)?void 0:i.lastName)}),(0,s.jsx)(q,{label:"Company",value:null==(n=a.mortgageBroker)?void 0:n.company}),(0,s.jsx)(q,{label:"Email",value:null==(o=a.mortgageBroker)?void 0:o.email}),(0,s.jsx)(q,{label:"Phone Number",value:null==(d=a.mortgageBroker)?void 0:d.phoneNumber})]})})}}function q(e){let t,{label:a,startSign:l,endSign:r,value:n,className:o}=e;return(0,s.jsxs)("div",{className:"mt-[2vh] flex flex-col",children:[(0,s.jsx)("span",{className:(0,i.cn)("text-accent-purple-500 text-shadow-lg text-label-1",o),children:a}),(0,s.jsx)("span",{className:"text-sm font-bold leading-none text-shadow-lg",children:n?(t="",l&&(t+=l),t+=n,r&&(t+=r),t):"--"})]})}var U=a(622),K=a(56618);function $(){let[e,t]=(0,K.IB)(),a=(0,o.jE)(),{toast:l}=(0,d.dj)(),r=(0,k.mN)({resolver:(0,M.u)(m.insertMortgageNotesRequestSchema),defaultValues:{mortgageId:e.mortgageId},mode:"onSubmit"}),i=()=>{t({isOpen:!1,notes:[],mortgageId:-1})},c=n.S.mortgageBroker.insertMortgageNote.useMutation({onSuccess:()=>{a.invalidateQueries({queryKey:[g.SearchMortgages]}),l({title:"Success",description:"Note added"}),i()},onError:e=>{console.error(e),l({title:"Error",description:"Failed to add note",variant:"destructive"})}}),p=async(e,t)=>{null==t||t.preventDefault(),c.mutate({body:e})};return(0,s.jsx)(D.lV,{...r,children:(0,s.jsxs)("form",{onSubmit:r.handleSubmit(p),className:"space-y-4 max-phone:max-w-[calc(100%-4vw)]",children:[(0,s.jsx)("div",{className:"mx-[20px] mb-[5vh]",children:(0,s.jsx)(O.Vq,{form:r,fieldKey:"notes",fieldLabel:"Notes",className:"h-[24vh]"})}),(0,s.jsxs)("div",{className:"flex justify-end gap-3",children:[(0,s.jsx)(h.$,{variant:"secondaryCta",text:"Cancel",onClick:()=>{i()}}),(0,s.jsx)(h.$,{variant:"primaryCta",text:"Save Changes",type:"submit"})]})]})})}function G(){let[e,t]=(0,K.IB)();return(0,s.jsx)(f.lG,{open:e.isOpen,onOpenChange:e=>{e||t({isOpen:!1,notes:[],mortgageId:-1})},children:(0,s.jsxs)(f.Cf,{className:"px-[4rem] py-[3vh]",onInteractOutside:e=>{e.preventDefault()},children:[(0,s.jsx)(f.q5,{className:"right-[1vh] top-[1vh]"}),(0,s.jsx)(f.L3,{children:"Notes"}),(0,s.jsxs)(c.FK,{className:"mx-[20px] max-h-[calc(30vh)] w-[calc(100%-40px)]",children:[(0,s.jsxs)("div",{className:"flex text-xl",children:[(0,s.jsx)("div",{className:"w-[140px]",children:(0,s.jsx)(I.ER,{label:"Date"})}),(0,s.jsx)("div",{className:"w-[calc(100%-140px)]",children:(0,s.jsx)(I.ER,{label:"Notes"})})]}),e.notes.map((e,t)=>(0,s.jsxs)("div",{className:"flex border-b-2 border-[#CCCCCC40] py-2 text-xl",children:[(0,s.jsx)("div",{className:"w-[140px]",children:(0,r.GP)(e.createdAt,"dd/MM/yyyy")}),(0,s.jsx)("div",{className:"w-[calc(100%-140px)",children:e.note})]},t))]}),(0,s.jsx)($,{})]})})}var z=a(12770),Q=a(49473),_=a.n(Q),R=a(36301);function W(e){let{mortgages:t}=e;return(0,s.jsxs)("div",{className:"mb-4 mt-4 flex w-[100px] flex-col justify-start space-y-2 max-laptop:mb-0 max-laptop:mt-0 desktop:mt-10",children:[(0,s.jsx)(h.$,{variant:"secondaryCta",Icon:R.A,className:"h-14 w-14 rounded-full border-2 border-dashed border-accent-purple-500 bg-gradient-to-br from-gradient-glass-200 to-gradient-glass-transparent hover:from-secondary-white-500 hover:to-accent-purple-300",onClick:()=>
1{if(t){let e=[];for(let a of t)e.push({...a,notes:a.notes.map(e=>e.note+" "+(0,r.GP)(e.createdAt,"dd/MM/yyyy")).join(", ")});let a=z.Ay.utils.json_to_sheet(e),s=z.Ay.utils.book_new();z.Ay.utils.book_append_sheet(s,a,"Mortgage");let l=new Blob([z.Ay.write(s,{bookType:"xlsx",type:"array"})],{type:"application/octet-stream"});_()(l,"result-mortgages.xlsx")}}}),(0,s.jsx)("span",{className:"font-bold text-secondary-white-200 text-shadow-lg text-label-1 max-laptop:hidden",children:"Download Mortgages"})]})}var X=a(21148);function Z(e){let{mortgageId:t,status:a,clearEditState:l}=e,r=(0,o.jE)(),{toast:i}=(0,d.dj)(),c=(0,k.mN)({resolver:(0,M.u)(m.editMortgageAssignedStatusRequestSchema),mode:"onChange",defaultValues:{mortgageId:t,status:null!=a?a:void 0}}),p=n.S.mortgageBroker.editMortgageAssignedStatus.useMutation({onSuccess:()=>{r.invalidateQueries({queryKey:[g.SearchMortgages]}),i({title:"Success",description:"Status changed"}),l()},onError:e=>{console.error(e),i({title:"Error",description:"Failed to change mortgage status",variant:"destructive"})}}),u=async(e,a)=>{null==a||a.preventDefault(),p.mutate({body:{mortgageId:t,status:e.status}})};return(0,s.jsx)(D.lV,{...c,children:(0,s.jsxs)("form",{onSubmit:c.handleSubmit(u),className:"space-y-2 max-phone:max-w-[calc(100%-4vw)]",children:[(0,s.jsx)("div",{children:(0,s.jsx)(X.z,{form:c,fieldKey:"status",fieldLabel:"Status",options:(0,X.k)(m.mortgageAssignedStatuses)})}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(h.$,{variant:"primaryCta",text:"Save Changes",type:"submit",onClick:c.handleSubmit(u),isDisabled:p.isLoading}),(0,s.jsx)(h.$,{variant:"secondaryCta",text:"Cancel",onClick:l})]})]})})}var J=a(6775),H=a(462),Y=function(e){return e[e.ClientName=1]="ClientName",e[e.PropertyAddress=2]="PropertyAddress",e[e.BrokerName=3]="BrokerName",e[e.MortgageExpiry=4]="MortgageExpiry",e[e.SubscriptionStatus=5]="SubscriptionStatus",e[e.Status=6]="Status",e}(Y||{});function ee(){let[e,t]=l.useState("Live"),[a,r]=l.useState(4),[i,n]=l.useState({userId:void 0,expiryFilter:void 0,status:void 0});return(0,s.jsxs)("div",{className:"px-[4vw]",children:[(0,s.jsx)("p",{className:"my-[2vh] text-heading-3 font-bold",children:"Case Tracking"}),(0,s.jsx)(v.tU,{variant:"pill",defaultValue:e,className:"my-4 w-[25rem] max-laptop:w-full",onValueChange:e=>{t(e)},children:(0,s.jsxs)(v.j7,{className:"px-0",children:[(0,s.jsx)(v.Xi,{value:"Awaiting",className:"max-laptop:mx-[3vw] max-tablet:text-base tablet:max-laptop:text-sm",tabName:"Awaiting"},"Awaiting"),(0,s.jsx)(v.Xi,{value:"Live",className:"max-laptop:mx-[3vw] max-tablet:text-base tablet:max-laptop:text-sm",tabName:"Live"},"Live"),(0,s.jsx)(v.Xi,{value:"Archived",className:"max-laptop:mx-[3vw] max-tablet:text-base tablet:max-laptop:text-sm",tabName:"Archived"},"Archived"),(0,s.jsx)(v.Xi,{value:"All Mortgages",className:"max-laptop:mx-[3vw] max-tablet:text-base tablet:max-laptop:text-sm",tabName:"All Mortgages"},"All Mortgages")]})}),"All Mortgages"!==e?(0,s.jsx)(et,{sortedBy:a,setSorted:r}):(0,s.jsx)(ea,{sortedBy:a,setSorted:r,requestData:i,setRequestData:n}),"Awaiting"===e?(0,s.jsx)(es,{sortedBy:a}):"Archived"===e?(0,s.jsx)(er,{sortedBy:a}):"Live"===e?(0,s.jsx)(el,{sortedBy:a}):(0,s.jsx)(eo,{requestData:i})]})}function et(e){let{sortedBy:t,setSorted:a}=e;return(0,s.jsxs)("div",{className:"flex border-b-[2px] border-[#CCCCCC40] pb-[2vh]",children:[(0,s.jsx)(ei,{width:"20%",isActive:1===t,label:"Client Name",onClick:()=>{a(1)}}),(0,s.jsx)(ei,{width:"16%",isActive:2===t,label:"Property Address",onClick:()=>{a(2)}}),(0,s.jsx)(ei,{width:"17%",isActive:3===t,label:"Broker Name",onClick:()=>{a(3)}}),(0,s.jsx)(ei,{width:"17%",isActive:4===t,label:"Mortgage Expiry",onClick:()=>{a(4)}}),(0,s.jsx)(ei,{width:"17%",isActive:6===t,label:"Status",onClick:()=>{a(6)}}),(0,s.jsx)(ei,{width:"15%",label:"Action"}),(0,s.jsx)(ei,{width:"15%",label:"Details"})]})}function ea(e){var t,a,l,r;let{sortedBy:i,setSorted:o,requestData:d,setRequestData:c}=e,p=x(d),g=(function(){var e;let t=(0,u.Q)(n.S).mortgageBroker.getMortgageLandlords.useQuery(["mortgage-landlords"]);return(null==(e=t.data)?void 0:e.status)===200?t.data.body.landlords:[]})().map(e=>({id:e.id,label:"".concat(e.firstName," ").concat(e.lastName)}));return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:"absolute right-0 top-0",children:(0,s.jsx)(W,{mortgages:p})})}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center gap-[1vw] py-[1vh]",children:[(0,s.jsx)(J.A,{label:"Landlord",allLabel:"All Landlords",items:g,value:d.userId,onChange:e=>{c({...d,userId:e})}
1,className:"w-[15vw] max-laptop:w-[27vw] tablet:max-laptop:w-[30vw]"}),(0,s.jsx)(H.A,{label:"Mortgage Expiry",value:null!=(t=d.expiryFilter)?t:"All Expiries",values:["All Expiries",...m.expiryDateFilterOptions],onChange:e=>{c({...d,expiryFilter:"All Expiries"===e?void 0:e})},className:"w-[13vw]"}),(0,s.jsx)(H.A,{label:"Active/Inactive",value:null!=(a=d.status)?a:"All Statuses",values:["All Statuses",...m.statusFilters],onChange:e=>{c({...d,status:"All Statuses"===e?void 0:e})},className:"w-[10vw]"}),(0,s.jsx)(H.A,{label:"Subscription",value:null!=(l=d.subscription)?l:"All Subscriptions",values:["All Subscriptions",...m.subscriptionStatuses],onChange:e=>{c({...d,subscription:"All Subscriptions"===e?void 0:e})},className:"w-[13vw]"}),(0,s.jsx)(H.A,{label:"Assigned Status",value:null!=(r=d.assignedStatus)?r:"All Assigned Statuses",values:["All Assigned Statuses",...m.mortgageAssignedStatuses],onChange:e=>{c({...d,assignedStatus:"All Assigned Statuses"===e?void 0:e})},className:"w-[16vw]"})]}),(0,s.jsxs)("div",{className:"flex border-b-[2px] border-[#CCCCCC40] pb-[2vh]",children:[(0,s.jsx)(ei,{width:"20%",isActive:1===i,label:"Landlord",onClick:()=>{o(1)}}),(0,s.jsx)(ei,{width:"16%",isActive:2===i,label:"Property Address",onClick:()=>{o(2)}}),(0,s.jsx)(ei,{width:"14%",isActive:3===i,label:"Active/Inactive",onClick:()=>{o(3)}}),(0,s.jsx)(ei,{width:"15%",isActive:4===i,label:"Mortgage Expiry",onClick:()=>{o(4)}}),(0,s.jsx)(ei,{width:"14%",isActive:5===i,label:"Subscription",onClick:()=>{o(5)}}),(0,s.jsx)(ei,{width:"15%",isActive:6===i,label:"Assigned Status",onClick:()=>{o(6)}}),(0,s.jsx)(ei,{width:"15%",label:"Notes"})]})]})}function es(e){var t,a;let{sortedBy:i}=e,o=function(){var e;let t=(0,u.Q)(n.S).mortgageBroker.getMortgagesAwaitingSubmission.useQuery(["broker-awaiting-mortgages"]);return(null==(e=t.data)?void 0:e.status)===200?t.data.body.mortgages:[]}();o.sort((e,t)=>{var a,s,l,r,n,o;if(4===i){if((null==(a=e.existingMortgage)?void 0:a.expiryDate)&&(null==(s=t.existingMortgage)?void 0:s.expiryDate))return new Date(null==(l=e.existingMortgage)?void 0:l.expiryDate).getTime()-new Date(null==(r=t.existingMortgage)?void 0:r.expiryDate).getTime()}else if(1===i){if((null==(n=e.user)?void 0:n.firstName)&&(null==(o=t.user)?void 0:o.firstName))return e.user.firstName.localeCompare(t.user.firstName)}else if(2===i&&e.propertyAddressLine1&&t.propertyAddressLine1)return e.propertyAddressLine1.localeCompare(t.propertyAddressLine1);return 0});let[d,p]=l.useState({isOpen:!1,mortgageApplication:null}),[m,g]=l.useState({isOpen:!1,mortgageApplication:null});return(0,s.jsxs)(c.FK,{className:"h-[calc(90vh-200px)] w-full",children:[o.map((e,t)=>{var a,l,i,n;return(0,s.jsxs)("div",{className:"mb-[1vh] mt-[2vh] flex border-b-[2px] border-[#CCCCCC40] pb-[2vh] text-sm leading-tight",children:[(0,s.jsxs)("div",{className:"w-[20%]",children:[null==(a=e.user)?void 0:a.firstName," ",null==(l=e.user)?void 0:l.lastName]}),(0,s.jsx)("div",{className:"w-[16%] capitalize",children:e.propertyAddressLine1}),(0,s.jsx)("div",{className:"w-[16%] overflow-x-hidden truncate capitalize",children:"--"}),(0,s.jsx)("div",{className:"w-[16%]",children:(null==(i=e.existingMortgage)?void 0:i.expiryDate)?(0,r.GP)(null==(n=e.existingMortgage)?void 0:n.expiryDate,"dd.MMMM.yyyy"):"N/A"}),(0,s.jsx)("div",{className:"w-[17%]",children:"Awaiting User Submission"}),(0,s.jsx)("div",{className:"flex w-[15%]",children:(0,s.jsx)(h.$,{variant:"primaryCta",text:"Close Application",type:"submit",className:"inline-flex h-12 w-[100%] items-center justify-center whitespace-nowrap rounded-[8px] bg-gradient-to-r from-gradient-yellow-200 to-gradient-yellow-500 px-12 py-3 text-lg font-normal text-primary-gray-500 ring-offset-background transition-colors disabled:pointer-events-none",isValid:!0,onClick:()=>{g({isOpen:!0,mortgageApplication:e})}})}),(0,s.jsx)("div",{className:"flex w-[15%]",children:(0,s.jsx)(h.$,{variant:"secondaryCta",text:"View Details",className:"ml-2 h-12 rounded-[8px] from-[#B6ADE540]",onClick:()=>{p({isOpen:!0,mortgageApplication:e})}})})]},t)}),d.isOpen&&(0,s.jsx)(N,{isOpen:d.isOpen,mortgageApplication:d.mortgageApplication,setOpen:()=>{p({isOpen:!1,mortgageApplication:null})}}),m.isOpen&&(null==(t=m.mortgageApplication)?void 0:t.mortgageApplicationId)&&(0,s.jsx)(L,{isOpen:m.isOpen,mortgageApplicationId:null==(a=m.mortgageApplication)?void 0:a.mortgageApplicationId,close:()=>{g({isOpen:!1,mortgageApplication:null})}})]})}function el(e){let{sortedBy:t}=e,a=function(){var e;let t=(0,u.Q)(n.S).mortgageBroker.getActiveMortgageApplications.useQuery(["broker-active-mortgages"]);return(null==(e=t.data)?void 0:e.status)===200?t.data.body.mortgageApplications:[]}(),{toast:i}=(0,d.dj)(),p=(0,o.jE)(),g=n.S.mortgageBroker.submitApplicationToLender.useMutation({onSuccess:()=>{p.invalidateQueries({queryKey:["broker-active-mortgages"]}),i({title:"Success",description:"Review submitted"})},onError:e=>{console.error(e),i({title:"Error",description:"Failed to submit review",variant:"destructive"})}});a.sort((e,a)=>{var s,l,r,i,n,o,d,c;if(4===t){if((null==(s=e.existingMortgage)?void 0:s.expiryDate)&&(null==(l=a.existingMortgage)?void 0:l.expiryDate))return new Date(null==(r=e.existingMortgage)?void 0:r.expiryDate).getTime()-new Date(null==(i=a.existingMortgage)?void 0:i.expiryDate).getTime()}else if(1===t){if((null==(n=e.user)?void 0:n.firstName)&&(null==(o=a.user)?void 0:o.firstName))return e.user.firstName.localeCompare(a.user.firstName)}else if(2===t){if(e.propertyAddressLine1&&a.propertyAddressLine1)return e.propertyAddressLine1.localeCompare(a.propertyAddressLine1)}else if(6===t){if(e.mortgageApplication.status&&a.mortgageApplication.status)return e.mortgageApplication.status.localeCompare(a.mortgageApplication.status)}else if(3===t&&(null==(d=e.mortgageBroker)?void 0:d.firstName)&&(null==(c=a.mortgageBroker)?void 0:c.firstName))return e.mortgageBroker.firstName.localeCompare(a.mortgageBroker.firstName);return 0});let[x,v]=l.useState({isOpen:!1,mortgageApplication:null}),[f,b]=l.useState({isOpen:!1,mortgageApplication:null}),[y,N]=l.useState({isOpen:!1,mortgageApplication:null});
1return(0,s.jsxs)(c.FK,{className:"h-[calc(90vh-200px)] w-full",children:[a.map((e,t)=>{var a,l,i,n,o;return(0,s.jsxs)("div",{className:"mb-[1vh] mt-[2vh] flex border-b-[2px] border-[#CCCCCC40] pb-[2vh] text-sm leading-tight",children:[(0,s.jsxs)("div",{className:"w-[20%]",children:[null==(a=e.user)?void 0:a.firstName," ",null==(l=e.user)?void 0:l.lastName]}),(0,s.jsx)("div",{className:"w-[16%] capitalize",children:e.propertyAddressLine1}),(0,s.jsxs)("div",{className:"w-[16%] cursor-pointer overflow-x-hidden truncate capitalize underline",onClick:()=>{N({isOpen:!0,mortgageApplication:e})},children:[null==(i=e.mortgageBroker)?void 0:i.firstName," ",null==(n=e.mortgageBroker)?void 0:n.lastName]}),(0,s.jsx)("div",{className:"w-[16%]",children:(null==(o=e.existingMortgage)?void 0:o.expiryDate)?(0,r.GP)(e.existingMortgage.expiryDate,"dd.MMMM.yyyy"):"N/A"}),(0,s.jsx)("div",{className:"w-[17%]",children:e.mortgageApplication.status}),(0,s.jsx)("div",{className:"flex w-[15%]",children:e.mortgageApplication.status===m.mortgageApplicationStatusEnum.SubmittedByUser?(0,s.jsx)(h.$,{variant:"primaryCta",text:"Mark as submitted",type:"submit",className:"inline-flex h-12 w-[100%] items-center justify-center whitespace-nowrap rounded-[8px] bg-gradient-to-r from-gradient-yellow-200 to-gradient-yellow-500 px-12 py-3 text-lg font-normal text-primary-gray-500 ring-offset-background transition-colors disabled:pointer-events-none",isValid:!0,onClick:()=>{g.mutate({body:{mortgageApplicationId:e.mortgageApplication.id}})}}):e.mortgageApplication.status===m.mortgageApplicationStatusEnum.SubmittedByBroker?(0,s.jsx)(h.$,{variant:"primaryCta",text:"Finalise application",type:"submit",className:"inline-flex h-12 w-[100%] items-center justify-center whitespace-nowrap rounded-[8px] bg-gradient-to-r from-gradient-yellow-200 to-gradient-yellow-500 px-12 py-3 text-lg font-normal text-primary-gray-500 ring-offset-background transition-colors disabled:pointer-events-none",isValid:!0,onClick:()=>{v({isOpen:!0,mortgageApplication:e})}}):void 0}),(0,s.jsx)("div",{className:"flex w-[15%]",children:(0,s.jsx)(h.$,{variant:"secondaryCta",text:"View Details",className:"ml-2 h-12 rounded-[8px] from-[#B6ADE540]",onClick:()=>{b({isOpen:!0,mortgageApplication:e})}})})]},t)}),f.isOpen&&(0,s.jsx)(j.A,{isOpen:f.isOpen,mortgageApplication:f.mortgageApplication,setOpen:()=>{b({isOpen:!1,mortgageApplication:null})}}),y.isOpen&&(0,s.jsx)(T,{isOpen:y.isOpen,mortgageApplication:y.mortgageApplication,setOpen:()=>{N({isOpen:!1,mortgageApplication:null})}}),x.isOpen&&x.mortgageApplication&&(0,s.jsx)(F,{isOpen:x.isOpen,propertyId:x.mortgageApplication.propertyId,mortgageApplication:x.mortgageApplication,close:()=>{v({isOpen:!1,mortgageApplication:null})}})]})}function er(e){let{sortedBy:t}=e,a=function(){var e;let t=(0,u.Q)(n.S).mortgageBroker.getArchivedMortgageApplications.useQuery(["broker-archived-mortgages"]);return(null==(e=t.data)?void 0:e.status)===200?t.data.body.mortgageApplications:[]}(),[i,o]=l.useState({isOpen:!1,mortgageApplication:null});a.sort((e,a)=>{var s,l,r,i,n,o;if(4===t){if((null==(s=e.existingMortgage)?void 0:s.expiryDate)&&(null==(l=a.existingMortgage)?void 0:l.expiryDate))return new Date(null==(r=e.existingMortgage)?void 0:r.expiryDate).getTime()-new Date(null==(i=a.existingMortgage)?void 0:i.expiryDate).getTime()}else if(1===t){if((null==(n=e.user)?void 0:n.firstName)&&(null==(o=a.user)?void 0:o.firstName))return e.user.firstName.localeCompare(a.user.firstName)}else if(2===t){if(e.propertyAddressLine1&&a.propertyAddressLine1)return e.propertyAddressLine1.localeCompare(a.propertyAddressLine1)}else if(6===t&&e.mortgageApplication.status&&a.mortgageApplication.status)return e.mortgageApplication.status.localeCompare(a.mortgageApplication.status);return 0});let[d,p]=l.useState({isOpen:!1,mortgageApplication:null});return(0,s.jsxs)(c.FK,{className:"h-[calc(90vh-200px)] w-full",children:[a.map((e,t)=>{var a,l,i,n,d;return(0,s.jsxs)("div",{className:"mb-[1vh] mt-[2vh] flex border-b-[2px] border-[#CCCCCC40] pb-[2vh] text-sm leading-tight",children:[(0,s.jsxs)("div",{className:"w-[20%]",children:[null==(a=e.user)?void 0:a.firstName," ",null==(l=e.user)?void 0:l.lastName]}),(0,s.jsx)("div",{className:"w-[16%] capitalize",children:e.propertyAddressLine1}),(0,s.jsxs)("div",{className:"w-[16%] overflow-x-hidden truncate capitalize underline",onClick:()=>{e.mortgageBroker&&o({isOpen:!0,mortgageApplication:e})},children:[null==(i=e.mortgageBroker)?void 0:i.firstName," ",null==(n=e.mortgageBroker)?void 0:n.lastName]}),(0,s.jsx)("div",{className:"w-[16%]",children:(null==(d=e.existingMortgage)?void 0:d.expiryDate)?(0,r.GP)(e.existingMortgage.expiryDate,"dd.MMMM.yyyy"):"N/A"}),(0,s.jsx)("div",{className:"w-[17%]",children:e.mortgageApplication.status}),(0,s.jsx)("div",{className:"flex w-[15%]"}),(0,s.jsx)("div",{className:"flex w-[15%]",children:(0,s.jsx)(h.$,{variant:"secondaryCta",text:"View Details",className:"ml-2 h-12 rounded-[8px] from-[#B6ADE540]",onClick:()=>{p({isOpen:!0,mortgageApplication:e})}})})]},t)}),d.isOpen&&(0,s.jsx)(j.A,{isOpen:d.isOpen,mortgageApplication:d.mortgageApplication,setOpen:()=>{p({isOpen:!1,mortgageApplication:null})}}),i.isOpen&&(0,s.jsx)(T,{isOpen:i.isOpen,mortgageApplication:i.mortgageApplication,setOpen:()=>{o({isOpen:!1,mortgageApplication:null})}})]})}function ei(e){let{label:t,isActive:a,onClick:l,width:r}=e;return(0,s.jsxs)("div",{className:"flex items-center text-[1vw] w-[".concat(r,"]"),children:[(0,s.jsx)(en,{label:t}),(0,s.jsx)("div",{onClick:()=>{null==l||l()},children:(0,s.jsx)(p.A,{isStroke:!0,className:(0,i.cn)("ml-2 w-[1.3vw] curs
1or-pointer text-accent-purple-300",a&&"rotate-90")})})]})}function en(e){let{label:t}=e;return(0,s.jsx)("div",{className:"bg-gradient-to-r from-gradient-purple-300 to-accent-purple-600 bg-clip-text font-bold text-transparent",children:t})}function eo(e){let{requestData:t}=e,[a,i]=l.useState(1),[,n]=(0,K.IB)(),[o,d]=l.useState(null),p=x(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(c.FK,{className:"h-[calc(80vh-200px-3vw)] w-full py-[1vh]",children:p.slice((a-1)*10,10*a).map((e,t)=>{var a;let l=e.notes[0];return(0,s.jsxs)("div",{className:"mb-[1vh] mt-[2vh] flex border-b-[2px] border-[#CCCCCC40] pb-[2vh] text-sm leading-tight",children:[(0,s.jsxs)("div",{className:"flex w-[20%] flex-col",children:[(0,s.jsxs)("span",{children:[e.firstName," ",e.lastName]}),(0,s.jsx)("span",{className:"block truncate",children:e.email})]}),(0,s.jsx)("div",{className:"wrap w-[16%] capitalize",children:e.propertyAddress}),(0,s.jsx)("div",{className:"w-[14%] overflow-x-hidden truncate capitalize",children:e.status}),(0,s.jsx)("div",{className:"w-[15%]",children:e.expiryDate?(0,r.GP)(e.expiryDate,"dd.MMMM.yyyy"):"N/A"}),(0,s.jsx)("div",{className:"w-[14%]",children:e.subscriptionStatus}),(0,s.jsx)("div",{className:"w-[15%]",children:o===e.mortgageId?(0,s.jsx)(Z,{mortgageId:e.mortgageId,status:e.assignedStatus,clearEditState:()=>d(null)}):(0,s.jsx)("div",{className:"cursor-pointer rounded-xl px-2 hover:bg-accent-purple-focus",onClick:()=>d(e.mortgageId),children:null!=(a=e.assignedStatus)?a:"Select Status..."})}),(0,s.jsx)("div",{className:"w-[15%] truncate",children:(0,s.jsx)("div",{className:"cursor-pointer truncate rounded-xl px-2 hover:bg-accent-purple-focus",onClick:()=>{n({isOpen:!0,mortgageId:e.mortgageId,notes:e.notes})},children:l?l.note:"Insert Text..."})})]},t)})}),(0,s.jsx)(G,{}),(0,s.jsx)(U.dK,{children:(0,s.jsxs)(U.Iu,{children:[a-1>0&&(0,s.jsx)(U.cU,{children:(0,s.jsx)(U.Eb,{onClick:()=>i(a-1)})}),a-1>0&&(0,s.jsx)(U.cU,{children:(0,s.jsx)(U.n$,{onClick:()=>i(a-1),children:a-1})}),(0,s.jsx)(U.cU,{children:(0,s.jsx)(U.n$,{isActive:!0,children:a})}),(0,s.jsx)(U.cU,{children:(0,s.jsx)(U.n$,{onClick:()=>i(a+1),children:a+1})}),(0,s.jsx)(U.cU,{children:(0,s.jsx)(U.M_,{})}),(0,s.jsx)(U.cU,{children:(0,s.jsx)(U.WA,{onClick:()=>i(a+1)})})]})})]})}},56618:(e,t,a)=>{a.d(t,{$D:()=>c,IB:()=>o,Qk:()=>g,UG:()=>j,an:()=>i,b7:()=>b,kk:()=>v,vz:()=>m});var s=a(99542),l=a(85278);let r=(0,s.eU)({isOpen:!1,notes:[],userId:-1});function i(){return(0,l.fp)(r)}let n=(0,s.eU)({isOpen:!1,notes:[],mortgageId:-1});function o(){return(0,l.fp)(n)}let d=(0,s.eU)({isOpen:!1,notes:[],certificateId:-1});function c(){return(0,l.fp)(d)}let p=(0,s.eU)({isOpen:!1,claimedProperties:0,userId:-1});function m(){return(0,l.fp)(p)}let u=(0,s.eU)({isOpen:!1});function g(){return(0,l.fp)(u)}let x=(0,s.eU)(!1);function v(){return(0,l.fp)(x)}let h=(0,s.eU)(!1);function j(){return(0,l.fp)(h)}let f=(0,s.eU)({isOpen:!1,userId:-1,firstName:"",lastName:"",propertiesCount:0,subscribedPropertiesLimit:0});function b(){return(0,l.fp)(f)}}}]);

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.