PageSourceSearch

https://acredge.ai/_next/static/chunks/430.70bc317ed6f4d755.js

js acredge.ai collected 2026-10-05 11:48:23 UTC 6,010 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[430],{10430:function(e,t,s){s.r(t);var r=s(83610),i=s(70438);s(47414);var n=s(22948),a=s(10566),o=s(79534),l=s(79625);t.default=e=>{let{isOpen:t,onClose:s,userInfo:d,handleLogout:c,onMouseEnter:x,onMouseLeave:p}=e,g=(0,o.useRef)(null),[u,h]=(0,o.useState)(!1),m=String((null==d?void 0:d.currentRole)||"").toLowerCase().trim(),f=String((null==d?void 0:d.role)||"").toLowerCase().trim(),v="owner"===f||"consultant"===f;return((0,o.useEffect)(()=>{let e=e=>{u||!g.current||g.current.contains(e.target)||s()};return t&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[t,s,u]),(0,o.useEffect)(()=>{let e=e=>{"Escape"===e.key&&t&&s()};return t&&document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,s]),t&&"undefined"!=typeof document)?(0,l.createPortal)((0,r.jsxs)("div",{className:"fixed inset-0 z-[1000] flex items-start justify-start pt-[45px] ",onClick:e=>{e.target===e.currentTarget&&s()},children:[(0,r.jsx)("div",{ref:g,className:"bg-white rounded-[16px] overflow-hidden transform transition-all duration-300 ".concat(t?"scale-100 opacity-100":"scale-95 opacity-0"),onClick:e=>e.stopPropagation(),children:(0,r.jsxs)("div",{className:"grid shrink-0 grid-rows-1 grid-cols-1 min-w-[259px] p-[12px] gap-[12px]",children:[(0,r.jsxs)("div",{className:"border-b border-[#DEE2E6] pb-[20px] flex items-center justify-start gap-[16px] px-[2px]",children:[(0,r.jsx)("div",{className:"w-[64px] aspect-square relative",children:(0,r.jsx)("img",{className:"w-full h-full object-cover rounded-full border-2 border-[#D9EBFF]",src:(0,n.r)(null==d?void 0:d.profileImage,"/images/resource/user.png"),onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src="/images/resource/user.png"},alt:"Profile image"})}),(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsxs)("div",{className:"text-[#343A40] text-[16px] font-urbanist font-[700] leading-[24px]",children:[(null==d?void 0:d.firstName)||"Guest User"," ",(null==d?void 0:d.lastName)||""]}),(0,r.jsx)(a.default,{href:"broker"===m?"/consultant":"/my-profile",onClick:s,children:(0,r.jsx)("div",{className:"text-[#104685] text-[14px] font-urbanist font-[400] leading-[20px] cursor-pointer",children:"Edit Profile"})})]})]}),(0,r.jsx)("div",{className:"data-BuyData",children:(0,r.jsxs)("div",{className:"flex flex-col gap-[12px] text-[14px] font-urbanist font-[400] leading-[20px] text-[#212529] w-full mb-[12px]",children:[v&&(0,r.jsx)(a.default,{href:"/my-properties",onClick:s,children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-[12px] p-[12px] bg-[#F8F9FA] rounded-[8px] hover:bg-gray-100 transition-colors duration-200 cursor-pointer",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start gap-[12px]",children:[(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"20px",height:"20px",src:"/images/dashboard/Property.svg",alt:"Property-logo"})}),(0,r.jsx)("div",{className:"text-[14px] text-[#333] font-urbanist font-[500] leading-[20px]",children:"Properties"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"12px",height:"12px",src:"/images/newIcons/ChevronRight.svg",alt:"Property-logo"})})]})}),(0,r.jsx)(a.default,{href:"/my-favourites",onClick:s,children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-[12px] p-[12px] bg-[#F8F9FA] rounded-[8px] hover:bg-gray-100 transition-colors duration-200 cursor-pointer",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start gap-[12px]",children:[(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"20px",height:"20px",src:"/images/dashboard/Favourite.svg",alt:"Property-logo"})}),(0,r.jsx)("div",{className:"text-[14px] text-[#333] font-urbanist font-[500] leading-[20px]",children:"Favorites"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"12px",height:"12px",src:"/images/newIcons/ChevronRight.svg",alt:"Property-logo"})})]})}),(0,r.jsx)(a.default,{href:"/user-activity",onClick:s,children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-[12px] p-[12px] bg-[#F8F9FA] rounded-[8px] hover:bg-gray-100 transition-colors duration-200 cursor-pointer",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start gap-[12px]",children:[(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"20px",height:"20px",src:"/images/newIcons/Activity.svg",alt:"Property-logo"})}),(0,r.jsx)("div",{className:"text-[14px] text-[#333] font-urbanist font-[500] leading-[20px]",children:"Activity"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"12px",height:"12px",src:"/images/newIcons/ChevronRight.svg",alt:"Property-logo"})})]})}),v&&(0,r.jsx)(a.default,{href:"/my-leads",onClick:s,children:(0,r.jsxs)("div",{className:"flex items-center justify-between gap-[12px] p-[12px] bg-[#F8F9FA] rounded-[8px] hover:bg-gray-100 transition-colors duration-200 cursor-pointer",children:[(0,r.jsxs)("div",{className:"flex items-center justify-start gap-[12px]",children:[(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"20px",height:"20px",src:"/images/newIcons/Leads.svg",alt:"Property-logo"})}),(0,r.jsx)("div",{className:"text-[14px] text-[#333] font-urbanist font-[500] leading-[20px]",children:"Leads"})]}),(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"12px",height:"12px",src:"/images/newIcons/ChevronRight.svg",alt:"Property-logo"})})]})}),(0,r.jsx)("div",{className:"flex items-center justify-between gap-[12px] p-[12px] bg-[#F8F9FA] rounded-[8px] hover:bg-gray-100 transition-colors duration-200 cursor-pointer",onClick:()=>{h(e=>!e)},children:(0,r.jsxs)("div",{className:"flex items-center justify-start gap-[12px]",children:[(0,r.jsx)("div",{children:(0,r.jsx)("img",{width:"20px",height:"20px",src:"/images/newIcons/LogOut.svg",alt:"Property-logo"})}),(0,r.jsx)("div",{className:"text-[14px] text-[#FF3932] font-urbanist font-[500] leading-[24px]",children:"Log out"})]})})]})})]})}),u&&(0,r.jsx)(i.Z,{toggleLogOutModal:()=>h(!1)})]}),document.body):null}}}]);

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.