PageSourceSearch

https://www.athome.lu/client-pro/js/fcc1d1c1608bdfd60fd0.js

js athome.lu collected 2026-10-02 03:31:01 UTC 24,720 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunklu_athome_web_pro=self.webpackChunklu_athome_web_pro||[]).push([[947],{2133:(e,s,a)=>{a.d(s,{m:()=>l});var t=a(96540),l=()=>{var e=(0,t.useRef)(!0);return e.current?(e.current=!1,!0):e.current}},3065:(e,s,a)=>{a.d(s,{a:()=>l});var t=a(28410),l=()=>!!(0,t.o)()&&window.innerWidth<=768},5290:(e,s,a)=>{a.d(s,{$:()=>t.Button});var t=a(34631)},22505:(e,s,a)=>{a.d(s,{r:()=>d});a(23792),a(62953);var t=a(46942),l=a.n(t),r=a(96540),i=a(58065),n=a(74848),d=e=>{var{title:s,quantityActiveFilters:a,onReset:t,children:d,disabled:c,classNameAccordion:x,className:o}=e,[m,h]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{c&&h(!1)},[c]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("header",{className:l()("flex items-center justify-between flex-wrap px-5 py-4 gap-2",o),children:[(0,n.jsx)("h2",{className:"font-semibold text-slate-800",children:s}),(0,n.jsx)("div",{className:"flex flex-wrap justify-start md:justify-end gap-4",children:(0,n.jsxs)("div",{className:"flex gap-4",children:[Boolean(a)&&(0,n.jsxs)("button",{onClick:t,disabled:c,type:"button",className:l()("text-xs text-athome-100 hover:text-athome-200 -mr-6 z-10","disabled disabled:cursor-not-allowed disabled:opacity-70"),children:[(0,n.jsx)("span",{className:"hidden md:inline-block",children:(0,n.jsx)(i.A,{id:"IDS_GLOBAL_FILTERS_reset-filters"})})," ",(0,n.jsx)("span",{className:"inline-flex items-center justify-center w-4 h-4 text-[10px] font-medium text-white bg-athome px-1 rounded-full",children:a})]}),(0,n.jsxs)("button",{disabled:c,className:l()("relative flex items-center gap-2 bg-slate-50 rounded-full btn px-4","disabled disabled:cursor-not-allowed disabled:opacity-70"),"aria-expanded":m,type:"button",onClick:()=>h(!m),"aria-controls":"accordion-filter",children:[(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"shrink-0 w-6 h-6",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"#2c3e50",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,n.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,n.jsx)("circle",{cx:"14",cy:"6",r:"2"}),(0,n.jsx)("line",{x1:"4",y1:"6",x2:"12",y2:"6"}),(0,n.jsx)("line",{x1:"16",y1:"6",x2:"20",y2:"6"}),(0,n.jsx)("circle",{cx:"8",cy:"12",r:"2"}),(0,n.jsx)("line",{x1:"4",y1:"12",x2:"6",y2:"12"}),(0,n.jsx)("line",{x1:"10",y1:"12",x2:"20",y2:"12"}),(0,n.jsx)("circle",{cx:"17",cy:"18",r:"2"}),(0,n.jsx)("line",{x1:"4",y1:"18",x2:"15",y2:"18"}),(0,n.jsx)("line",{x1:"19",y1:"18",x2:"20",y2:"18"})]}),(0,n.jsx)("span",{className:"text-sm font-medium text-slate-800",children:(0,n.jsx)(i.A,{id:"IDS_GLOBAL_FILTERS_show-filters"})})]})]})})]}),(0,n.jsx)("div",{id:"accordion-filter",role:"region",className:"bg-slate-50 border-t border-slate-200 ".concat(x," ").concat(!m&&"hidden"),children:d})]})}},30189:(e,s,a)=>{a.d(s,{Dc:()=>x,Gj:()=>n,Im:()=>d,NH:()=>r,Qz:()=>c,o0:()=>h,oI:()=>i,tQ:()=>m,u_:()=>o,yR:()=>l});var t=a(74848),l=()=>(0,t.jsx)("div",{className:"flex items-center relative",children:(0,t.jsx)("span",{className:"w-8 h-8 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-4 h-4 shrink-0 fill-current text-gray-200",viewBox:"0 0 16 16",children:(0,t.jsx)("path",{d:"M8 0L6 5.934H0l4.89 3.954L2.968 16 8 12.223 13.032 16 11.11 9.888 16 5.934h-6L8 0z"})})})}),r=()=>(0,t.jsxs)("div",{className:"flex items-center gap-2 h-full",children:[(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)("span",{className:"bg-gray-200 rounded-full w-10 h-10"})}),(0,t.jsx)("span",{className:"h-2 w-full max-w-[250px] bg-gray-300 rounded-full"})]}),i=()=>(0,t.jsxs)("div",{className:"relative flex items-start gap-4",children:[(0,t.jsx)("div",{className:"relative flex items-center",children:(0,t.jsx)("span",{className:"bg-gray-200 rounded-full w-12 h-12"})}),(0,t.jsx)("div",{className:"space-y-2 w-full relative",children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("span",{className:"h-2 w-full max-w-[250px] bg-gray-300 rounded-full"}),(0,t.jsx)("span",{className:"h-2 w-16 bg-gray-200 rounded-full"})]})}),(0,t.jsx)("div",{className:"flex items-center absolute bottom-0 right-0",children:(0,t.jsx)("button",{type:"button",className:"w-6 h-6 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-4 h-4 shrink-0 fill-current text-gray-200",viewBox:"0 0 16 16",children:(0,t.jsx)("path",{d:"M8 0L6 5.934H0l4.89 3.954L2.968 16 8 12.223 13.032 16 11.11 9.888 16 5.934h-6L8 0z"})})})})]}),n=()=>(0,t.jsxs)("div",{className:"relative flex items-start gap-4",children:[(0,t.jsx)("div",{className:"relative flex items-center",children:(0,t.jsx)("span",{className:"bg-gray-200 rounded-full w-12 h-12"})}),(0,t.jsxs)("div",{className:"space-y-2 w-full relative",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,t.jsx)("span",{className:"h-2 w-full max-w-[250px] bg-gray-300 rounded-full"}),(0,t.jsx)("span",{className:"h-2 w-16 bg-gray-200 rounded-full"})]}),(0,t.jsxs)("div",{className:"flex items-start gap-2 pr-10",children:[(0,t.jsx)("span",{className:"block w-[36px] xs:w-[60px] rounded-sm xs:rounded aspect-square xs:aspect-video object-cover bg-gray-200"}),(0,t.jsxs)("div",{className:"flex flex-col justify-center w-full py-1",children:[(0,t.jsx)("span",{className:"h-2 w-full max-w-[300px] bg-gray-200 rounded-full mb-1"}),(0,t.jsx)("span",{className:"h-2 w-full max-w-[150px] bg-gray-200 rounded-full"})]})]})]}),(0,t.jsx)("div",{className:"flex items-center absolute bottom-0 right-0",children:(0,t.jsx)("button",{type:"button",className:"w-6 h-6 flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-4 h-4 shrink-0 fill-current text-gray-200",viewBox:"0 0 16 16",children:(0,t.jsx)("path",{d:"M8 0L6 5.934H0l4.89 3.954L2.968 16 8 12.223 13.032 16 11.11 9.888 16 5.934h-6L8 0z"})})})})]}),d=()=>(0,t.jsxs)("div",{className:"flex items-start",children:[(0,t.jsx)("div",{className:"relative w-[100px] h-[67px] xs:w-[138px] xs:h-[92px] shrink-0 mr-3",children:(0,t.jsx)("span",{className:"block w-[100px] h-[67px] xs:w-[138px] xs:h-[92px] rounded bg-gray-200"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-center w-full py-1 space-y-3",children:[(0,t.jsx)("span",{className:"h-2 w-full max-w-[250px] bg-gray-200 rounded-full mb-2"}),(0,t.jsx)("span",{className:"h-2 w-full max-w-[90px] bg-gray-200 rounded-full mb-2"}),(0,t.jsx)("span",{className:"h-2 w-full max-w-[64px] bg-gray-200 rounded-full mb-2"}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"block w-5 h-5 rounded bg-gray-200"})," ",(0,t.jsx)("span",{className:"h-2 w-full max-w-[40px] bg-gray-200 rounded-full"}),(0,t.jsx)("span",{className:"block w-5 h-5 rounded bg-gray-200"})," ",(0,t.jsx)("span",{className:"h-2 w-full max-w-[35px] bg-gray-200 rounded-full"})]})]})]}),c=()=>(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("div",{className:"w-[60px] h-[36px] lg:w-[60px] lg:h-[40px] shrink-0 mr-2 lg:mr-3",children:(0,t.jsx)("span",{className:"block w-[60
1px] h-[36px] lg:w-[60px] lg:wh-[40px] rounded bg-gray-200"})}),(0,t.jsxs)("div",{className:"flex flex-col justify-center w-full py-1 space-y-3",children:[(0,t.jsx)("span",{className:"h-2 w-full max-w-[200px] bg-gray-200 rounded-full mb-1"}),(0,t.jsx)("span",{className:"h-2 w-full max-w-[90px] bg-gray-200 rounded-full"})]})]}),x=e=>{var{width:s,height:a}=e;return(0,t.jsx)("span",{className:"block w-[60px] xs:rounded aspect-square xs:aspect-video object-cover bg-gray-200",style:s&&a?{width:s,height:a}:{}})},o=e=>{var{width:s,height:a}=e;return(0,t.jsx)("div",{className:"flex items-center text-blackPearl",children:(0,t.jsx)("span",{className:"".concat(a," ").concat(s," bg-gray-200 rounded-full")})})},m=()=>(0,t.jsxs)("div",{className:"flex items-center justify-around w-full xs:flex-col h-full min-[1440px]:flex-row gap-1",children:[(0,t.jsx)("span",{className:"w-8 h-8 bg-gray-200 rounded"}),(0,t.jsx)("span",{className:"w-8 h-8 bg-gray-200 rounded"}),(0,t.jsx)("span",{className:"w-8 h-8 bg-gray-200 rounded"}),(0,t.jsx)("span",{className:"w-8 h-8 bg-gray-200 rounded"})]}),h=()=>(0,t.jsxs)("div",{className:"flex items-center justify-around w-full xs:flex-col h-full min-[1440px]:flex-row gap-1",children:[(0,t.jsx)("span",{className:"w-8 h-8 bg-gray-200 rounded"}),(0,t.jsx)("span",{className:"w-8 h-8 bg-gray-200 rounded"})]})},40528:(e,s,a)=>{a.r(s),a.d(s,{default:()=>ie});a(23792),a(62953);var t=a(42243),l=a(6442),r=a(58065),i=a(2896),n=a(32584),d=a(20316),c=a(68285),x=a(50494),o=a(80108),m=a(31057),h=a(29886),p=a(36030),u=a(96540),j=a(21375),f=a(21116),g=a(68182),b=a(17238),v=a(48342),w=a(64733),N=a(74848),y=()=>{var e=(0,i.d4)(w.ys);return e?(0,N.jsxs)("div",{className:"mt-8",children:[(0,N.jsx)("p",{className:"font-medium text-slate-800 text-sm mb-2",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_at-home-finance-broker"})}),(0,N.jsxs)("div",{className:"bg-white shadow-lg rounded-lg overflow-hidden",children:[(0,N.jsx)("div",{className:"grow px-5 py-8",children:(0,N.jsx)("div",{className:"flex justify-between items-start",children:(0,N.jsxs)("div",{className:"flex items-center gap-4",children:[(0,N.jsx)("img",{className:"rounded-full object-cover aspect-square shrink-0 w-16 h-16",src:e.photo,width:"64",height:"64",alt:""}),(0,N.jsxs)("div",{className:"",children:[(0,N.jsxs)("p",{className:"text-lg leading-snug font-semibold text-blackPearl",children:[e.firstName," ",e.lastName]}),(0,N.jsx)("p",{className:"text-sm font-semibold text-slate-500",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_senior-mortgage-broker"})})]})]})})}),(0,N.jsx)("div",{className:"border-t border-slate-200",children:(0,N.jsxs)("div",{className:"flex divide-x divide-slate-200r",children:[(0,N.jsx)("a",{href:"mailto:".concat(e.email),className:"block flex-1 text-center text-sm bg-white hover:bg-athome-100 text-athome-100 hover:text-white font-medium px-3 py-4",children:(0,N.jsx)("div",{className:"flex items-center justify-center",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_send-email"})})}),(0,N.jsx)("a",{className:"block flex-1 text-center text-sm bg-white hover:bg-arsenic text-arsenic hover:text-white font-medium px-3 py-4 group",href:"tel:".concat(e.phone),children:(0,N.jsx)("div",{className:"flex items-center justify-center",children:(0,N.jsx)("span",{children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_call"})})})})]})})]})]}):null},_=a(10760),L=a(36926),A=(a(74423),a(21699),a(46942)),S=a.n(A),k=a(55677),O=e=>{var{status:s}=e;return(0,N.jsx)("div",{className:S()("text-xs inline-flex font-medium rounded-full text-center px-2.5 py-1",{"bg-slate-100 text-slate-500":k.PN.includes(s),"bg-orange-100 text-orange-500":k.ye.includes(s),"bg-finance-10 text-finance-100":k.XQ.includes(s),"bg-athome-150 text-rose-500":k.RL.includes(s)}),children:"leadCreated"===s?"-":(0,N.jsx)(r.A,{id:"IDS_GLOBAL_finance-status-".concat(s)})})},D=e=>{var{details:s}=e;return(0,N.jsx)(N.Fragment,{children:s.map(e=>{var{nameId:s,value:a}=e;return(0,N.jsxs)("div",{className:"flex justify-between space-x-1",children:[(0,N.jsx)("span",{className:"text-slate-600",children:(0,N.jsx)(r.A,{id:s})}),(0,N.jsx)("span",{className:"font-medium text-slate-700 text-right",children:a})]},s)})})},I=()=>{var{status:e,partner:s,date:a,id:t,borrowingCapacity:l}=(0,i.d4)(w.vm),{firstName:n,lastName:d}=s;return(0,N.jsxs)("div",{className:"drop-shadow-lg mt-8 divide-y divide-dashed bg-white rounded-lg p-5 space-y-4",children:[(0,N.jsxs)("div",{className:"text-sm space-y-4 py-3",children:[(0,N.jsxs)("div",{className:"flex items-center justify-between space-x-1",children:[(0,N.jsx)("span",{className:"text-slate-600",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_status"})}),(0,N.jsx)(O,{status:e})]}),(0,N.jsxs)("div",{className:"flex justify-between space-x-1 mb-8",children:[(0,N.jsx)("span",{className:"text-slate-600",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_borrowing-capacity"})}),(0,N.jsx)("span",{className:"font-bold text-slate-800 text-right",children:l?(0,N.jsx)(_.FormattedNumber,{value:l,style:"currency",currency:"EUR",maximumFractionDigits:0,minimumFractionDigits:0}):"-"})]})]}),(0,N.jsx)("div",{className:"pt-4 text-sm space-y-1",children:(0,N.jsx)(D,{details:[{nameId:"IDS_FOLLOW_UP_LEADS_agent",value:"".concat(n," ").concat(d)},{nameId:"IDS_FOLLOW_UP_LEADS_date-sent",value:(0,N.jsx)(L.n,{date:a})},{nameId:"IDS_FOLLOW_UP_LEADS_lead-id",value:"#".concat(t.split("-")[0].toUpperCase())}]})})]})},E=(0,u.forwardRef)((e,s)=>{var{isOpen:a,setIsOpen:l,closeButtonRef:r}=e,n=(0,x.j)(),d=(0,i.d4)(w.vm);return(0,N.jsx)(g.p,{ref:s,isOpen:a,children:(0,t.Ime)(d)?null:(0,N.jsxs)(N.Fragment,{children:[(0,N.jsx)("button",{ref:r,type:"button",onClick:()=>{l(!1)},className:"absolute top-0 right-0 mt-6 mr-6 group p-2",children:(0,N.jsx)("svg",{className:"w-4 h-4 fill-slate-400 group-hover:fill-slate-600 pointer-events-none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",children:(0,N.jsx)("path",{d:"m7.95 6.536 4.242-4.243a1 1 0 1 1 1.415 1.414L9.364 7.95l4.243 4.242a1 1 0 1 1-1.415 1.415L7.95 9.364l-4.243 4.243a1 1 0 0 1-1.414-1.415L6.536 7.95 2.293 3.707a1 1 0 0 1 1.414-1.414L7.95 6.536Z"})})}),(0,N.jsx)("button",{onClick:()=>{var e=d.isFavorite?v.K2:v.S9;n(e(d.id))},type:"button",className:"absolute top-0 left-0 mt-6 ml-6 group p-2",children:(0,N.jsx)(b.F,{isActive:d.isFavorite,className:"mr-1"})}),(0,N.jsx)("div",{className:"py-8 px-4 lg:px-8",children:(0,N.jsxs)("div",{className:"max-w-sm mx-auto lg:max-w-none",children:[(0,N.jsx)(j.M,{email:d.email,firstName:null==d?void 0:d.firstName,lastName:null==d?void 0:d.lastName}),(0,N.jsx)(f.d,{email:d.email,phone:d.phone}),(0,N.jsx)(I,{}),(0,N.jsx)(y,{})]})})]})})}),F=(a(89463),a(16280),a(44114),a(38781),a(96929),a(92262)),P=a(44731);function C(e,s){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);s&&(t=t.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,t)}return a}function R(e){for(var s=1;s<arguments.length;s++){var a=null!=arguments[s]?arguments[s]:{};
1s%2?C(Object(a),!0).forEach(function(s){U(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):C(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function U(e,s,a){return(s=function(e){var s=function(e,s){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var t=a.call(e,s||"default");if("object"!=typeof t)return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===s?String:Number)(e)}(e,"string");return"symbol"==typeof s?s:s+""}(s))in e?Object.defineProperty(e,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[s]=a,e}F.t1.register(F.A6,F.E8,F.kc,F.UA,F.m_,F.s$);const W=function(e){var{datasets:s,labels:a,options:l,renderTitles:i,width:n,height:d}=e,c=(0,u.useRef)(null),[x,o]=(0,u.useState)({}),m={datasets:s,labels:a};if(!s)return null;var h=e=>(0,t.FsL)((0,t.loj)(e),(0,t.X4r)([],["data"]),(0,t.Q7R)((0,t.aIS)(0)))(s);return(0,N.jsxs)("div",{className:"bar-chart",children:[(0,N.jsx)("div",{className:"px-5 py-3",children:(0,N.jsxs)("div",{className:"flex flex-wrap justify-between items-center",children:[i&&i(),(0,N.jsx)("div",{className:"grow ml-2 mb-1",children:(0,N.jsx)("ul",{className:"flex flex-wrap justify-end",children:s.map((e,s)=>(0,N.jsx)("li",{className:"ml-3",children:(0,N.jsxs)("button",{type:"button",disabled:h(s),className:S()("inline-flex items-center disabled:opacity-25",{"opacity-25":(0,t.zyy)(s.toString(),x)&&!x[s]}),onClick:()=>(e=>{var{current:s}=c,a=!s.isDatasetVisible(e);o(R(R({},x),{},{[e]:a})),s.setDatasetVisibility(e,a),s.update()})(s),children:[(0,N.jsx)("span",{className:"block w-3 h-3 mr-2 pointer-events-none border-2 rounded-full",style:{borderColor:e.backgroundColor}}),(0,N.jsx)("span",{className:"block mr-2 text-sm text-slate-500 capitalize",children:(0,N.jsx)(r.A,{id:e.key,defaultMessage:e.label})})]})},e.key))})})]})}),(0,N.jsx)("div",{className:"grow",children:(0,N.jsx)(P.yP,{ref:c,options:l,data:m,width:n,height:d})})]})};var B=a(83605),T=a(37656);const z=function(){var e=(0,i.d4)(w.sN);if((0,t.Ime)(e))return null;var{datasets:s,labels:a,titles:l}=e,n=(0,t.o8B)(T.iP);return(0,N.jsxs)("div",{className:"flex flex-col col-span-full md:col-span-6 bg-white shadow-lg rounded-lg",children:[(0,N.jsx)("header",{className:"px-5 py-4 border-b border-slate-100 flex items-center",children:(0,N.jsx)("h2",{className:"font-semibold text-slate-800",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_finance-leads-sent-by-status"})})}),(0,N.jsx)(W,{datasets:s,labels:a,options:n,width:595,height:248,renderTitles:()=>(0,N.jsx)(B.A,{titles:l})})]})};var q=a(45518),H=a(22505),M=a(89904),G=a(30189),V=a(61395),Q=a(68070),$=a(79165),K=a(60590),X=a(20512),Z=a(3065),J="name",Y="date",ee="commission",se="status",ae="isFavorite",te=a(87590),le=()=>{var e=(0,i.wA)(),s=(0,i.d4)(w.fE),{status:a}=(0,i.d4)(w.yw),t=s.filter(e=>null==a?void 0:a.includes(e.value)),l=(0,i.d4)(w.zw);return(0,N.jsxs)("div",{children:[(0,N.jsx)("p",{className:"text-slate-800 mb-1 text-sm font-medium",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_FINANCE_LEADS_TABLE_finance-status"})}),(0,N.jsx)(te.u,{activeOptions:t,options:s,allPlaceholderId:"IDS_FOLLOW_UP_LEADS_all-status",allId:"IDS_FOLLOW_UP_LEADS_all",allValue:l,onChange:s=>{var a=s.map(e=>{var{value:s}=e;return s});e((0,v._F)({status:a}))}})]})},re=e=>{var{onRowClick:s,onDotsClick:a,fetchFinanceLeads:t}=e,l=(0,x.j)(),n=(0,Z.a)(),d=(0,i.d4)(w.uU),c=(0,i.d4)(w.Ei),o=e=>s=>{l((0,v.d1)({sort:e,order:s?K.qP.isAsc:K.qP.isDesc}))},m=[{render:(e,s,a)=>(0,N.jsx)("button",{onClick:e,type:"button",className:"w-8 h-4 flex items-center justify-center",children:(0,N.jsx)(b.F,{isActive:!!a&&!s})}),onSort:o(ae),className:"w-px"},{title:(0,N.jsx)(r.A,{id:"IDS_LEADS_name"}),onSort:o(J),className:"lg:w-[40%]"},{title:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_FINANCE_LEADS_TABLE_agent"}),className:"lg:w-[10%]"},{title:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_FINANCE_LEADS_TABLE_finance-status"}),onSort:o(se),className:"lg:w-[20%]"},{title:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_FINANCE_LEADS_TABLE_commission"}),onSort:o(ee),className:"lg:w-[20%]"},{title:(0,N.jsx)(r.A,{id:"IDS_LEADS_date"}),onSort:o(Y),isInitialActive:!0,className:"w-px"},{render:()=>(0,N.jsx)("div",{className:"font-semibold text-left",children:(0,N.jsx)("span",{className:"sr-only",children:"Action"})}),className:"w-px"}],h={cells:[{render:e=>(0,N.jsx)("div",{className:"flex items-center relative",children:(0,N.jsx)("button",{type:"button",className:"w-8 h-8 flex items-center justify-center",onClick:s=>{s.stopPropagation(),(e=>{var s=e.isFavorite?v.K2:v.S9;l(s(e.id))})(e)},children:(0,N.jsx)(b.F,{isActive:e.isFavorite})})}),renderSkeleton:()=>(0,N.jsx)(G.yR,{}),className:"hidden md:table-cell px-2 first:pl-2 last:pr-5 py-3 whitespace-nowrap w-px"},{render:e=>(0,N.jsx)(Q.p,{firstName:e.firstName,lastName:e.lastName,date:e.date,children:e.status&&(0,N.jsx)(O,{status:e.status})}),renderSkeleton:()=>(0,N.jsx)(G.oI,{}),className:"px-2 first:pl-2 last:p-5 py-3 md:hidden"},{render:e=>(0,N.jsx)($.x,{firstName:e.firstName,lastName:e.lastName}),renderSkeleton:()=>(0,N.jsx)(G.NH,{}),className:"hidden md:table-cell px-2 first:pl-2 last:pr-5 py-6 whitespace-nowrap"},{render:e=>
1(0,N.jsx)("div",{className:"w-[40px] h-[40px] shrink-0",children:null!=e&&e.photo?(0,N.jsx)("img",{className:"w-[40px] h-[40px] rounded-full object-cover",src:e.photo,width:"40",height:"40",alt:e.lastName}):(0,N.jsx)("span",{className:"flex items-center justify-center bg-slate-100 rounded-full w-10 h-10 text-sm font-semibold uppercase text-slate-500",children:(0,X.o)(e.partner.firstName,e.partner.lastName)})}),renderSkeleton:()=>(0,N.jsx)(G.u_,{width:"w-11",height:"h-2"}),className:"hidden md:table-cell px-2 first:pl-2 last:pr-5 py-6 whitespace-nowrap"},{render:e=>(0,N.jsx)(O,{status:e.status}),renderSkeleton:()=>(0,N.jsx)(G.u_,{width:"w-11",height:"h-2"}),className:"hidden md:table-cell px-2 first:pl-2 last:pr-5 py-6 whitespace-nowrap"},{render:e=>(0,N.jsx)("div",{className:"font-medium text-blackPearl",children:e.commission||"-"}),renderSkeleton:()=>(0,N.jsx)(G.u_,{width:"w-11",height:"h-2"}),className:"hidden md:table-cell px-2 first:pl-2 last:pr-5 py-6 whitespace-nowrap"},{render:e=>{var{date:s}=e;return(0,N.jsx)("div",{className:"text-blackPearl",children:(0,N.jsx)(L.n,{date:s})})},renderSkeleton:()=>(0,N.jsx)(G.u_,{width:"w-11",height:"h-2"}),className:"hidden md:table-cell px-2 first:pl-2 last:pr-5 py-6 whitespace-nowrap w-px"},{isPreventPropagation:!0,render:e=>{return(0,N.jsx)(q.n,{onClick:(s=e,()=>{a(s)})});var s},renderSkeleton:()=>(0,N.jsx)(G.u_,{width:"w-11",height:"h-2"}),className:"hidden md:table-cell px-2 first:pl-2 last:p-5 py-3 whitespace-nowrap w-px"}]},p=(0,i.d4)(w.qc),u=()=>{l((0,v.dr)()),n&&t()};return(0,N.jsx)("div",{className:"bg-white shadow-lg border border-slate-200 relative rounded-lg",children:(0,N.jsxs)("div",{children:[(0,N.jsx)(H.r,{title:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_all-leads-finance"}),onReset:u,quantityActiveFilters:d,children:(0,N.jsx)("div",{className:"px-5 py-4 md:py-6 w-full",children:(0,N.jsxs)("div",{className:"gap-4 xs:gap-6 text-sm grid grid-cols-1 xs:grid-cols-2 md:grid-cols-2 xl:grid-cols-4",children:[(0,N.jsx)(le,{}),(0,N.jsx)(M.A,{onReset:u,onApply:()=>{t()}})]})})}),(0,N.jsx)(V.A,{headConfig:m,bodyConfig:h,data:p,onRowClick:e=>a=>{a.stopPropagation(),s(e)},isLoading:c})]})})};const ie=()=>{var e=(0,x.j)(),s=(0,i.d4)(p.wu),{locale:a}=(0,l.A)(),u=(0,i.d4)(w.W2),j=(0,h.A)(u),f=j&&!(0,t.aIS)(j,u),g=(0,i.d4)(w.yw),b=(0,i.d4)(w.v$),y=(0,i.d4)(w.vm),_=(0,i.d4)(w.s0),L=(0,i.d4)(w.NU),[A,S,k,O]=(0,m.A)(),D=(0,i.d4)(w.Ei),I=()=>e((0,v.SV)({id:s.id,period:u,sort:L}));(0,o.L)(I,[L,u,s,g,_],f),(0,o.L)(()=>{e((0,v.Cg)({id:s.id,period:u}))},[L,u,s,g],f);return(0,N.jsx)(n.A,{hasSidebar:!0,children:(0,N.jsx)("div",{className:"relative",children:(0,N.jsxs)("div",{className:"px-4 md:px-6 lg:px-8 py-6 lg:py-8 w-full max-w-8xl mx-auto",children:[(0,N.jsxs)("div",{className:"flex flex-wrap justify-between items-start mb-6 sm:mb-8 gap-4",children:[(0,N.jsxs)("div",{className:"shrink-1",children:[(0,N.jsx)("h1",{className:"text-2xl md:text-3xl text-slate-800 font-bold mb-2",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_follow-up-leads-finance"})}),(0,N.jsx)("p",{className:"text-base text-blackPearl",children:(0,N.jsx)(r.A,{id:"IDS_FOLLOW_UP_LEADS_check-your-benefits-from-lead-generation"})})]}),(0,N.jsx)("div",{className:"flex flex-col flex-wrap justify-start md:justify-end gap-2 mt-1",children:(0,N.jsx)(c.A,{locale:a,period:u,onChange:s=>{e((0,v._p)(s))}})})]}),(0,N.jsx)("div",{className:"grid grid-cols-12 gap-6 mb-8",children:(0,N.jsx)(z,{})}),(0,N.jsx)(re,{fetchFinanceLeads:I,onRowClick:s=>{(null==y?void 0:y.id)!==s.id?e((0,v.R2)(s.id)).then(()=>{S(!0)}):S(!0)},onDotsClick:s=>{e((0,v.R2)(s.id)),S(!0)}}),(0,N.jsx)("div",{className:"mt-8",children:(0,N.jsx)(d.A,{currentPage:_,onChange:s=>e((0,v.Ir)(s)),totalResults:b,disabled:D})}),(0,N.jsx)(E,{closeButtonRef:k,ref:O,isOpen:A,setIsOpen:S})]})})})}},80108:(e,s,a)=>{a.d(s,{L:()=>i});var t=a(96540),l=a(2133),r=a(3065),i=function(e,s){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=(0,l.m)(),n=(0,r.a)(),d=(0,t.useMemo)(()=>s,s);(0,t.useEffect)(()=>{(i||!n||n&&a)&&e()},[d])}},83605:(e,s,a)=>{a.d(s,{A:()=>i});var t=a(42243),l=a(58065),r=a(74848);const i=function(e){var{titles:s}=e;return s?(0,r.jsx)("div",{className:"flex flex-wrap",children:s.map(e=>(0,r.jsxs)("div",{className:"flex items-center py-2",children:[(0,r.jsxs)("div",{className:"mr-5",children:[(0,r.jsx)("div",{className:"flex items-center",children:(0,r.jsx)("div",{className:"text-3xl font-bold text-slate-800 mr-2",children:e.value})}),(0,r.jsx)("div",{className:"text-sm text-slate-500 capitalize",children:(0,r.jsx)(l.A,{id:e.key})})]}),(0,t.HVh)(s)!==e&&(0,r.jsx)("div",{className:"hidden md:block w-px h-8 bg-slate-200 mr-5","aria-hidden":"true"})]},e.key))}):null}},89904:(e,s,a)=>{a.d(s,{A:()=>r});var t=a(58065),l=a(74848),r=e=>{var{onReset:s,onApply:a}=e;return(0,l.jsxs)("div",{className:"flex gap-2 xs:gap-6 xs:col-span-2 md:hidden",children:[(0,l.jsx)("button",{type:"button",onClick:s,className:"btn text-sm border border-slate-200 hover:border-slate-300 shadow-sm bg-white text-slate-500 duration-150 ease-in-out w-full",children:(0,l.jsx)(t.A,{id:"IDS_GLOBAL_FILTERS_reset-filters"})}),(0,l.jsx)("button",{onClick:a,type:"button",className:"btn text-sm bg-athome-100 hover:bg-athome-200 text-white duration-150 ease-in-out w-full",children:(0,l.jsx)(t.A,{id:"IDS_GLOBAL_FILTERS_apply"})})]})}}}]);

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.