PageSourceSearch

https://arrowsolutions.ai/build/routes/__app-BY6SQ3IC.js

js arrowsolutions.ai collected 2026-10-05 12:50:14 UTC 23,671 bytes, 1 lines download raw bytes

1import{a as ze}from"/build/_shared/chunk-2YKLWGWQ.js";import{a as pe,b as Ve,c as Ke,d as Ze}from"/build/_shared/chunk-ISSHW35T.js";import{a as Oe,b as je,c as _e}from"/build/_shared/chunk-VJ5DG6MB.js";import{a as We}from"/build/_shared/chunk-VES3MGCA.js";import{a as ue,b as de}from"/build/_shared/chunk-JZD37H4Q.js";import{a as Ye,b as Qe,d as Xe}from"/build/_shared/chunk-EOT75GIC.js";import{b as Ge}from"/build/_shared/chunk-TWORJS57.js";import{a as qe}from"/build/_shared/chunk-3O3AI4VX.js";import{b as Je,h as et,i as tt}from"/build/_shared/chunk-B7HUZAYN.js";import"/build/_shared/chunk-ZRWJYVXO.js";import{a as at}from"/build/_shared/chunk-HPNX4ZOI.js";import{a as Ee,b as Fe}from"/build/_shared/chunk-4TAK74PB.js";import{b as ke}from"/build/_shared/chunk-H62S322Q.js";import{b as J,c as ee,d as te,e as ae,f as Me,g as De}from"/build/_shared/chunk-3VWD3YZF.js";import{a as Ue}from"/build/_shared/chunk-XCWS4PZY.js";import{d as He}from"/build/_shared/chunk-ENZYFHPJ.js";import"/build/_shared/chunk-7HBP5FXL.js";import{a as ct}from"/build/_shared/chunk-EKC5QZSW.js";import{J as $e}from"/build/_shared/chunk-57EC6CLM.js";import{a as I}from"/build/_shared/chunk-4CCGQ36K.js";import{ba as Ie,ca as H,da as Le,fa as Te,ga as Re,ja as Ae,pa as oe,qa as ne,ra as U,sa as se}from"/build/_shared/chunk-YGMCVHQW.js";import"/build/_shared/chunk-DS3MXOOV.js";import{ma as Pe,o as Be}from"/build/_shared/chunk-2LMIISEY.js";import{L as X,p as V,q as Ne,x as xe,z as Se}from"/build/_shared/chunk-B7ROACGV.js";import{a as g}from"/build/_shared/chunk-YE7PRHAG.js";import{a as Q}from"/build/_shared/chunk-JMA3VR5L.js";import{e as r}from"/build/_shared/chunk-XDMRC4Q6.js";var ve=r(Q());var ie=r(Q());var b=r(Q());var e=r(g()),mt=1200;function ot(c){return c.split(/\s+/).filter(Boolean).slice(0,2).map(i=>i[0].toUpperCase()).join("")}var ut={open:!0};function nt({open:c,onClose:i}){var R,A,p;let m=X(),u=te(),y=ae(),[N,w]=(0,b.useState)(""),[s,L]=(0,b.useState)(null),[l,x]=(0,b.useState)("idle"),M=(0,b.useRef)(null),B=(0,b.useRef)(null),k=(R=y.find(a=>a.id===u.id))!=null?R:u,P=y.filter(a=>a.id!==u.id).sort((a,d)=>a.name.localeCompare(d.name)),o=[k,...P],C=N.trim().toLowerCase(),v=C===""?o:o.filter(a=>a.name.toLowerCase().includes(C)),S=a=>{if(a.id===u.id)return i();L(a),x("switching"),m.submit({id:a.id},{method:"post",action:"/seller"})};(0,b.useEffect)(()=>{l!=="switching"||m.state!=="idle"||!s||!m.data||(m.data.status==="success"&&u.id===s.id?x("done"):x("error"))},[l,m.state,m.data,u.id,s]),(0,b.useEffect)(()=>{if(l!=="done")return;let a=setTimeout(i,mt);return()=>clearTimeout(a)},[l,i]);let T=()=>{w(""),L(null),x("idle")},$=()=>{var a,d;return Array.from((d=(a=B.current)==null?void 0:a.querySelectorAll("button.list-row"))!=null?d:[])},ye=a=>{var d;a.key==="ArrowDown"?(a.preventDefault(),(d=$()[0])==null||d.focus()):a.key==="Enter"&&(a.preventDefault(),v[0]&&S(v[0]))},le=(a,d)=>{var F,_,G,q,Z,O;let f=$();a.key==="ArrowDown"?(a.preventDefault(),(F=f[Math.min(d+1,f.length-1)])==null||F.focus()):a.key==="ArrowUp"?(a.preventDefault(),d===0?(_=M.current)==null||_.focus():(G=f[d-1])==null||G.focus()):a.key==="Home"?(a.preventDefault(),(q=f[0])==null||q.focus()):a.key==="End"?(a.preventDefault(),(Z=f[f.length-1])==null||Z.focus()):(a.key==="Backspace"||a.key.length===1&&!a.metaKey&&!a.ctrlKey&&!a.altKey)&&((O=M.current)==null||O.focus())},E=l==="switching";return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("link",{rel:"preload",as:"style",href:ue}),(0,e.jsx)("link",{rel:"preload",as:"style",href:de}),(0,e.jsx)(H,{show:c,as:b.Fragment,afterLeave:T,afterEnter:()=>{var a;return(a=M.current)==null?void 0:a.focus()},appear:!0,children:(0,e.jsxs)(Re,{as:"div",className:"relative z-50",onClose:i,children:[(0,e.jsx)("link",{rel:"stylesheet",href:ue}),(0,e.jsx)("link",{rel:"stylesheet",href:de}),(0,e.jsx)(Ie,{as:b.Fragment,enter:"ease-out duration-150",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-150",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,e.jsx)("div",{className:"ds-surface dialog-scrim","data-theme":"light","aria-hidden":"true"})}),(0,e.jsx)("div",{className:"fixed inset-0 flex items-start justify-center overflow-y-auto p-4 sm:p-10",children:(0,e.jsxs)(Le,{...ut,"data-theme":"light",className:"ds-surface dialog dialog-narrow",children:[(0,e.jsxs)("div",{className:"dialog-head",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)(Te,{as:"h2",className:"dialog-title",children:"Change seller"}),(0,e.jsx)("div",{className:"dialog-sub","aria-live":"polite",children:l==="switching"&&s?(0,e.jsxs)(e.Fragment,{children:["Switching from ",(0,e.jsx)("b",{children:k.name})," to ",(0,e.jsx)("b",{children:s.name}),"\u2026"]}):l==="done"&&s?(0,e.jsxs)(e.Fragment,{children:["Now viewing ",(0,e.jsx)("b",{children:s.name})]}):(0,e.jsxs)(e.Fragment,{children:["Currently viewing ",(0,e.jsx)("b",{children:k.name})]})})]}),(0,e.jsx)("span",{className:"spacer"}),(0,e.jsx)("button",{type:"button",className:"btn-ghost btn-icon btn-sm","aria-label":"Close",onClick:i,children:(0,e.jsx)(I,{icon:"lucide:x",className:"ico-md","aria-hidden":"true"})})]}),l==="error"&&s&&(0,e.jsxs)("div",{className:"alert-error",role:"alert",children:[(0,e.jsx)(I,{icon:"lucide:circle-x",className:"alert-ico","aria-hidden":"true"}),(0,e.jsxs)("div",{className:"alert-body",children:["Couldn\u2019t switch to ",s.name,". ",(p=(A=m.data)==null?void 0:A.error)!=null?p:"Try again."]})]}),(l==="idle"||l==="error")&&(0,e.jsx)("div",{className:"toolbar",children:(0,e.jsxs)("label",{className:"affix",children:[(0,e.jsx)("span",{className:"affix-pre",children:(0,e.jsx)(I,{icon:"lucide:search",className:"ico-sm","aria-hidden":"true"})}),(0,e.jsx)("input",{ref:M,className:"input",type:"search",inputMode:"search",autoComplete:"off",autoFocus:!0,"data-autofocus":!0,placeholder:"Search sellers","aria-label":"Search sellers",value:N,onChange:a=>w(a.target.value),onKeyDown:ye})]})}),(0,e.jsxs)("div",{className:"dialog-body flush","aria-busy":E||void 0,children:[l==="switching"&&s&&(0,e.jsxs)("div",{className:"empty",role:"status",children:[(0,e.jsx)("span",{className:"avatar avatar-lg","aria-hidden":"true",children:ot(s.name)}),(0,e.jsxs)("b",{children:["Switching to ",s.name]}),(0,e.jsxs)("span",{children:["Loading ",s.name,"\u2019s data\u2026"]}),(0,e.jsx)("span",{className:"progress"})]}),l==="done"&&s&&(0,e.jsxs)("div",{className:"empty",role:"status",children:[(0,e.jsx)("span",{className:"avatar avatar-lg","aria-hidden":"true",children:(0,e.jsx)(I,{icon:"lucide:circle-check",className:"ico-lg"})}),(0,e.jsxs)("b",{children:["Now viewing ",s.name]}),(0,e.jsxs)("span",{children:["This page now shows ",s.name,"\u2019s data."]})]}),(l==="idle"||l==="error")&&(0,e.jsx)(e.Fragment,{children:v.length>0?(0,e.jsx)("div",{ref:B,role:"listbox","aria-label":"Sellers",children:v.map((a,d)=>{let f=a.id===u.id;return(0,e.jsxs)("button",{type:"button",role:"option","aria-selected":f,className:f?"list-row on":"list-row",onClick:()=>S(a),onKeyDown:F=>le(F,d),children:[(0,e.jsx)("span",{className:"avatar","aria-hidden":"true",children:ot(a.name)}),(0,e.jsxs)("span",{className:"list-row-body",children:[(0,e.jsx)("span",{className:"list-row-top",children:(0,e.jsx)("span",{className:"list-row-title",children:a.name})}),f&&(0,e.jsx)("span",{className:"list-row-meta",children:(0,e.jsxs)("span",{className:"tag green tag-sm",children:[(0,e.jsx)(I,{icon:"lucide:check",className:"ico-xs","aria-hidden":"true"}),"Current"]})})]})]},a.id)})}):(0,e.jsxs)("div",{className:"empty",children:[(0,e.jsxs)("b",{children:["No sellers match \u201C",N.trim(),"\u201D"]}),(0,e.jsx)("span",{children:"Try a different name."})]})})]})]})})]})})]})}
1var D=r(Q());var n=r(g());function fe(){var P;let{dbName:c}=J(),i=X(),m=Ne(),u=ee(),[y,N]=(0,D.useState)([]),[w,s]=(0,D.useState)(!0),[L,l]=(0,D.useState)(1),x=50;(0,D.useEffect)(()=>{M()},[]),(0,D.useEffect)(()=>{let o;(async()=>{let T=(await Fe.logIn(Ee.apiKey("VgSXf7BUEjBr7YkCODHGFckRYUfA2ZnRkkiHpDuDgywj47TcUZDRzm6H49HNbZlu"))).mongoClient("mongodb-atlas").db(c).collection("notifications");if(!o){o=T.watch({filter:{"fullDocument.pUserId":u==null?void 0:u.id,operationType:"insert"}});for await(let $ of o)M()}})()},[]);let M=async()=>{try{let o=await fetch(`/api/notifications?page=${L}&limit=${x}`),{notifications:C,hasMore:v}=await o.json();N(C),s(v)}catch(o){console.error("Error fetching data:",o)}},B=async()=>{if(w){let o=L+1;l(o);let C=await fetch(`/api/notifications?page=${o}&limit=${x}`),{notifications:v,hasMore:S}=await C.json();N(T=>[...T,...v]),s(S)}},k=o=>{i.submit({...o&&{notificationId:o}},{method:"POST",action:"/api/notifications",encType:"application/json"})};return(0,n.jsxs)(se,{as:"div",className:"relative",children:[(0,n.jsx)("div",{children:(0,n.jsxs)(oe,{className:"items-center rounded-md px-2 py-1 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2",children:[(0,n.jsx)(Be,{className:"h-6 w-6","aria-hidden":"true"}),y.filter(o=>o.new).length?(0,n.jsx)("span",{className:"absolute -top-0 right-1 flex w-fit items-center justify-center rounded-full bg-red-600 px-1 text-[10px] font-bold text-white",children:y.filter(o=>o.new).length>99?"99+":y.filter(o=>o.new).length}):null]})}),(0,n.jsx)(H,{as:D.Fragment,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,n.jsxs)(ne,{className:"absolute bottom-0 left-full z-20 mt-2 h-96 w-72 origin-top-right rounded-md bg-white py-1 text-left shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[(0,n.jsxs)("div",{className:"flex justify-between px-4 py-2.5",children:[(0,n.jsx)("p",{className:"cursor-default text-base font-semibold text-black",children:"Notifications"}),(0,n.jsx)("button",{onClick:()=>k(),children:(0,n.jsx)("p",{className:"text-xs font-light",children:"Mark all as read"})})]}),(0,n.jsx)("div",{className:"border-t border-[#E1E4ED]"}),(0,n.jsxs)("div",{className:"h-80 divide-y overflow-y-auto",children:[(P=y.filter(({body:o})=>o))==null?void 0:P.map((o,C)=>(0,n.jsx)(U,{children:({active:v})=>(0,n.jsxs)("button",{onClick:()=>{var S;m((S=o==null?void 0:o.details)!=null&&S.conversationId?`/customer/${o.customerId}/overview?conversationId=${o.details.conversationId}`:`/customer/${o.customerId}/overview`),k(o._id)},id:o._id,className:`block flex w-full items-start justify-between px-4 py-2.5 text-left text-sm ${v?"bg-gray-100":""}`,children:[(0,n.jsxs)("span",{className:"pr-2",children:[(0,n.jsx)("div",{children:o.body}),(0,n.jsx)("div",{children:He(o==null?void 0:o.createdAt,"America/Chicago","MM/dd/yyyy")})]}),(0,n.jsx)("span",{className:"w-4",children:o.new&&(0,n.jsx)("button",{className:"mt-2 h-2 w-2 rounded-full bg-[#00B140]"})})]})},C)),w&&(0,n.jsx)("button",{className:"w-full text-center text-sm text-blue-600",onClick:()=>B(),children:"Load more..."})]})]})})]})}var z=r(g()),st=c=>{let{counts:i}=ke();return(0,z.jsxs)("div",{className:"relative",children:[(0,z.jsx)(ze,{...c}),(0,z.jsx)("div",{className:"absolute -right-4 -top-4 flex w-fit items-center justify-center rounded-full bg-red-600 px-1 text-[10px] font-bold text-white",children:i.totalCount})]})};var he=r(g()),rt=c=>(0,he.jsx)("svg",{width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,he.jsx)("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M7.59933 1.87973H9.39751C9.45708 1.87973 9.51422 1.90332 9.55635 1.94533C9.59847 1.98733 9.62214 2.0443 9.62214 2.1037C9.62214 4.12839 11.8213 5.39494 13.5802 4.38147C13.6315 4.35253 13.6922 4.34488 13.7491 4.36018C13.8061 4.37547 13.8547 4.41248 13.8845 4.46322L14.7853 6.01758C14.8147 6.06887 14.8226 6.12965 14.8072 6.1867C14.7918 6.24375 14.7545 6.29244 14.7033 6.32217C12.9444 7.33452 12.9444 9.86538 14.7033 10.8788C14.7542 
110.9086 14.7913 10.9571 14.8067 11.0138C14.822 11.0706 14.8143 11.1311 14.7853 11.1823L13.8845 12.7367C13.8547 12.7874 13.8061 12.8244 13.7491 12.8397C13.6922 12.855 13.6315 12.8474 13.5802 12.8184C11.8213 11.805 9.62214 13.0704 9.62214 15.094C9.62214 15.1532 9.59863 15.21 9.55675 15.2519C9.51486 15.2939 9.45801 15.3176 9.39863 15.3179H7.60045C7.54088 15.3179 7.48374 15.2943 7.44161 15.2523C7.39949 15.2103 7.37582 15.1534 7.37582 15.094C7.37582 13.0693 5.17667 11.8038 3.4178 12.8162C3.36636 12.8455 3.30539 12.8533 3.24818 12.838C3.19096 12.8227 3.14212 12.7855 3.1123 12.7344L2.21378 11.1801C2.18465 11.129 2.17681 11.0686 2.19194 11.0119C2.20706 10.9551 2.24395 10.9065 2.29464 10.8766C4.05351 9.86314 4.05351 7.33228 2.29464 6.31882C2.24406 6.2891 2.20715 6.24081 2.19182 6.1843C2.1765 6.12779 2.18398 6.06754 2.21265 6.01646L3.1123 4.46098C3.14231 4.41013 3.19123 4.37314 3.24843 4.35805C3.30563 4.34295 3.3665 4.35097 3.4178 4.38035C5.17667 5.39382 7.37582 4.12727 7.37582 2.10258C7.37582 1.97939 7.47578 1.87973 7.59933 1.87973ZM5.69108 2.1037C5.69108 1.05104 6.54468 0.199951 7.59933 0.199951H9.39751C10.4533 0.199951 11.3069 1.05104 11.3069 2.1037C11.3072 2.27052 11.3515 2.43432 11.4353 2.57869C11.5192 2.72306 11.6396 2.84293 11.7845 2.9263C11.9294 3.00966 12.0938 3.05358 12.2611 3.05367C12.4284 3.05376 12.5928 3.01 12.7378 2.92679C13.1761 2.67511 13.6966 2.6071 14.1852 2.73769C14.6737 2.86828 15.0903 3.1868 15.3435 3.62333L16.2443 5.17769C16.7711 6.08813 16.4577 7.25053 15.5457 7.77574C15.4006 7.8593 15.2802 7.97946 15.1964 8.12413C15.1127 8.26881 15.0686 8.43291 15.0686 8.59995C15.0686 8.76699 15.1127 8.93109 15.1964 9.07577C15.2802 9.22044 15.4006 9.3406 15.5457 9.42416C15.9835 9.67665 16.303 10.092 16.4339 10.5791C16.5649 11.0662 16.4967 11.5852 16.2443 12.0222L15.3435 13.5766C15.0903 14.0131 14.6737 14.3316 14.1852 14.4622C13.6966 14.5928 13.1761 14.5248 12.7378 14.2731C12.5928 14.1899 12.4284 14.1461 12.2611 14.1462C12.0938 14.1463 11.9294 14.1902 11.7845 14.2736C11.6396 14.357 11.5192 14.4768 11.4353 14.6212C11.3515 14.7656 11.3072 14.9294 11.3069 15.0962C11.3069 16.1477 10.4533 17 9.39863 17H7.60045C7.09425 16.9997 6.60888 16.799 6.25105 16.442C5.89321 16.085 5.6922 15.6009 5.6922 15.0962C5.69187 14.9294 5.64757 14.7656 5.56375 14.6212C5.47992 14.4768 5.35952 14.357 5.2146 14.2736C5.06967 14.1902 4.90532 14.1463 4.73801 14.1462C4.5707 14.1461 4.40631 14.1899 4.2613 14.2731C3.82301 14.5248 3.30247 14.5928 2.81394 14.4622C2.3254 14.3316 1.9088 14.0131 1.65557 13.5766L0.754791 12.0222C0.502368 11.5852 0.434159 11.0662 0.565136 10.5791C0.696113 10.092 1.01557 9.67665 1.4534 9.42416C1.5982 9.34052 1.71841 9.2204 1.80198 9.07585C1.88554 8.93129 1.92953 8.76736 1.92953 8.60051C1.92953 8.43366 1.88554 8.26974 1.80198 8.12518C1.71841 7.98062 1.5982 7.8605 1.4534 7.77686C1.01557 7.52437 0.696113 7.109 0.565136 6.6219C0.434159 6.13481 0.502368 5.61581 0.754791 5.17881L1.65444 3.62333C1.90768 3.1868 2.32428 2.86828 2.81281 2.73769C3.30134 2.6071 3.82188 2.67511 4.26017 2.92679C4.40518 3.01 4.56958 3.05376 4.73689 3.05367C4.9042 3.05358 5.06855 3.00966 5.21347 2.9263C5.3584 2.84293 5.4788 2.72306 5.56262 2.57869C5.64645 2.43432 5.69075 2.27052 5.69108 2.1037ZM10.1837 8.59883C10.1837 9.04434 10.0062 9.47159 9.69027 9.78661C9.37432 10.1016 8.9458 10.2786 8.49898 10.2786C8.05216 10.2786 7.62364 10.1016 7.30769 9.78661C6.99174 9.47159 6.81424 9.04434 6.81424 8.59883C6.81424 8.15333 6.99174 7.72607 7.30769 7.41105C7.62364 7.09603 8.05216 6.91905 8.49898 6.91905C8.9458 6.91905 9.37432 7.09603 9.69027 7.41105C10.0062 7.72607 10.1837 8.15333 10.1837 8.59883ZM11.8685 8.59883C11.8685 9.48984 11.5135 10.3444 10.8816 10.9744C10.2497 11.6044 9.39262 11.9584 8.49898 11.9584C7.60534 11.9584 6.7483 11.6044 6.1164 10.9744C5.4845 10.3444 5.1295 9.48984 5.1295 8.59883C5.1295 7.70782 5.4845 6.85331 6.1164 6.22327C6.7483 5.59323 7.60534 5.23928 8.49898 5.23928C9.39262 5.23928 10.2497 5.59323 10.8816 6.22327C11.5135 6.85331 11.8685 7.70782 11.8685 8.59883Z",fill:"currentColor"})});var t=r(g());function re(...c){return c.filter(Boolean).join(" ")}function ge(){let{isCloudstoreSeller:c,isCloudstoreStaff:i,sellerDomain:m,showDashboard:u,showChat:y,showApplications:N,showEvaluation:w,showEvalVitals:s,showPersonnelPortal:L,showCampaignBuilder:l,showTradingDesk:x,showFleetPricing:M,showFleetEvaluation:B,showMarketplaceInventory:k,showLeads:P,showShareLists:o,showAutomation:C,showAnalytics:v,showSellerDirectory:S,showDataIngestion:T,showEvalDashboard:$}=J(),le=ae().sort((W,Y)=>W.name<Y.name?-1:1),E=te(),R=ee(),A=De(),p=Me(),[a,d]=(0,ie.useState)(!1),{pathname:f}=V(),F=Se(),_=R.firstName+" "+R.lastName,G=c?Ue.stringify({userName:_,checklistStatus:"active"}):"",q=V(),Z=f.startsWith("/chat"),O=E.name==="Sunshine"?"/sunshine/valuation":"/valuation",lt=[{name:"Inventory Management",href:"/inventory?search=&statusAvailable=on",route:["/inventory"],enabled:k,icon:(0,t.jsx)(Ke,{})},{name:"Leads",href:G?`/leads?${G}`:"/leads",route:["/leads"],enabled:P,icon:(0,t.jsx)(je,{})},{name:"Applications",href:"/applications",route:["/applications"],enabled:N,icon:(0,t.jsx)(Oe,{})},{name:"Share Lists",href:"/shares/customer",route:["/shares"],enabled:o,icon:(0,t.jsx)(We,{})},{name:"Personnel Portal",href:"/personnel-portal/lead-activity",route:["/personnel-portal"],enabled:L&&(A||(p==null?void 0:p.role)==="SELLERMEMBER"),icon:(0,t.jsx)(Pe,{className:"h-6 w-6"})},{name:"Automation",href:"/automation",route:["/automation"],enabled:C&&(A||(p==null?void 0:p.role)==="SELLERMEMBER"),icon:(0,t.jsx)(Ve,{})},{name:"Campaign Builder",href:"/campaign-dashboard",route:["/campaign-dashboard","/campaign-builder"],enabled:l&&(A||(p==null?void 0:p.role)==="SELLERMEMBER"||(p==null?void 0:p.role)==="ADMIN"),icon:(0,t.jsx)(Ge,{className:"h-6 w-6"})},{name:"Chat",href:"/chat",route:["/chat"],enabled:y,icon:(0,t.jsx)(st,{})},{name:"Analytics",href:"/analytics/view",route:["/analytics"],enabled:v&&c,icon:(0,t.jsx)(pe,{})},{name:"Sellers",href:"/sellers",route:["/sellers"],enabled:S&&c,icon:(0,t.jsx)(Ze,{className:"h-6 w-6"})},{name:"Dashboards",href:E.name==="Carter Machinery"?"/dashboard/inventory?inventoryStatus=current":`/${m}/dashboard/inventory?inventoryStatus=available`,route:E.name==="Carter Machinery"?["/dashboard/valuation","/dashboard/inventory"]:[`/${m}/dashboard/valuation`,`/${m}/dashboard/inventory`],enabled:u,icon:(0,t.jsx)(pe,{className:"h-6 w-6"})},{name:"Valuation",href:O,route:[O],enabled:w&&!(E.name==="Carter Machinery"&&x),icon:(0,t.jsx)(_e,{className:"h-6 w-6"})},{name:"Market Pricing",href:"/market-pricing",route:["/market-pricing"],enabled:M,icon:(0,t.jsx)(Je,{className:"h-6 w-6"})},{name:"Dealer Data",href:"/vitals",route:["/vitals"],enabled:i&&s,icon:(0,t.jsx)(et,{className:"h-6 w-6"})},{name:"Fleet Evaluation",href:"/fleet-evaluation",route:["/fleet-evaluation"],enabled:B,icon:(0,t.jsx)(tt,{className:"h-6 w-6"})},{name:"Carter Trading Desk",href:"/carter-desk/get-offers",route:["/carter-desk"],enabled:E.name==="Carter Machinery"&&x,icon:(0,t.jsx)($e,{className:"h-6 w-6"})},{name:"Data Ingestion",href:"/ingestion",route:["/ingestion"],enabled:T&&i,icon:(0,t.jsx)(Qe,{className:"h-6 w-6"})},{name:"Eval Dashboard",href:"/eval-dashboard",route:["/eval-dashboard"],enabled:$&&i,icon:(0,t.jsx)(Ye,{className:"h-6 w-6"})},{name:"Eval Utilization",href:"/eval-utilization",route:["/eval-utilization"],enabled:i,icon:(0,t.jsx)(Xe,{className:"h-6 w-6"})},{name:"Data Health",href:"/fleet-health",route:["/fleet-health"],enabled:i,icon:(0,t.jsx)(I,{icon:"lucide:heart-pulse",className:"h-6 w-6"})}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Ae,{as:"nav",className:`relative z-40 border-r border-[#d6dee7] bg-white shadow-[1px_0_4px_-1px_rgba(16,33,48,0.05)] lg:block ${Z?"hidden":""}`,children:()=>{var W,Y,we,Ce;return(0,t.jsxs)("div",{className:"flex h-full w-16 flex-col justify-between py-3",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-[5px]",children:[(0,t.jsx)("a",{href:"/","aria-label":"Home",className:"mb-3 flex h-[38px] w-[38px] items-center justify-center",children:(0,t.jsx)(qe,{width:38,height:38})}),lt.filter(h=>h.enabled).map(h=>{if(h.href==="/analytics/view"&&!A)return null;
1let ce=h.route.some(me=>me.startsWith("/titan")?f===me:f.startsWith(me));return(0,t.jsxs)("a",{href:h.href,"aria-current":ce?"page":void 0,className:re("has-tooltip relative flex h-[42px] w-[42px] items-center justify-center rounded-[3px] transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[#15803d] focus-visible:ring-offset-1 [&>svg]:h-5 [&>svg]:w-auto",ce?"bg-[rgba(34,168,58,0.13)] text-[#15803d]":"text-[#64778a] hover:bg-[rgba(16,33,48,0.06)] hover:text-[#102130]"),children:[ce&&(0,t.jsx)("span",{className:"absolute -left-[11px] bottom-2 top-2 w-[3px] rounded-r-[2px] bg-[#15803d]"}),h.icon,(0,t.jsx)("span",{className:"tooltip absolute left-full z-10 ml-2 whitespace-nowrap rounded bg-[#535353] px-2.5 py-1 text-sm text-white",children:h.name})]},h.name)})]}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[c&&(0,t.jsx)(fe,{}),(0,t.jsxs)(se,{as:"div",className:"relative",children:[(0,t.jsx)("div",{children:(0,t.jsx)(oe,{className:"flex h-[42px] w-[42px] items-center justify-center rounded-[3px] text-[#64778a] transition-colors hover:bg-[rgba(16,33,48,0.06)] hover:text-[#102130] focus:outline-none focus-visible:ring-2 focus-visible:ring-[#15803d] focus-visible:ring-offset-1 [&>svg]:h-5 [&>svg]:w-auto",children:(0,t.jsx)(rt,{})})}),(0,t.jsx)(H,{as:ie.Fragment,enter:"transition ease-out duration-200",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:(0,t.jsxs)(ne,{className:"absolute bottom-0 left-full z-10 w-48 origin-top-right rounded-md bg-white py-3 shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:[(0,t.jsx)("div",{className:"cursor-default px-4 pb-2.5 text-base font-semibold",children:E.name}),(0,t.jsx)("div",{className:"border-t border-[#E1E4ED]"}),(0,t.jsx)(U,{children:({active:h})=>(0,t.jsx)("a",{href:"/settings",className:re(h?"bg-gray-100":"","block px-4 py-2.5 text-sm text-primaryBlue"),children:"Settings"})}),le.length>0&&(0,t.jsx)(U,{children:({active:h})=>(0,t.jsx)("button",{onClick:()=>d(!0),className:re(h?"bg-gray-100":"","block w-full px-4 py-2.5 text-left text-sm text-primaryBlue"),children:"Change Seller"})}),(0,t.jsx)(U,{children:({active:h})=>(0,t.jsx)("button",{onClick:()=>{F({returnTo:q.pathname},{method:"post",action:"/logout",replace:!0})},className:re(h?"bg-gray-100":"","block w-full px-4 py-2.5 text-left text-sm text-primaryBlue"),children:"Sign out"})})]})})]}),(0,t.jsx)("span",{className:"inline-flex h-8 w-8 items-center justify-center rounded-full bg-primaryBlue",children:(0,t.jsxs)("span",{className:"text-sm font-medium leading-none text-gray-200",children:[(Y=(W=R.firstName)==null?void 0:W[0])!=null?Y:"",(Ce=(we=R.lastName)==null?void 0:we[0])!=null?Ce:""]})})]})]})}}),(0,t.jsx)(nt,{open:a,onClose:()=>d(!1)})]})}var K=r(g());function be({children:c}){let m=V().pathname.startsWith("/applications"),[u,y]=ve.default.useState(void 0);ve.default.useEffect(()=>{let w=()=>y(window.innerWidth<1024);return w(),window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)},[]);let N=!(m&&u);return u===void 0&&m?null:(0,K.jsxs)("div",{className:"flex h-full",children:[N&&(0,K.jsx)(ge,{}),(0,K.jsx)("div",{className:"min-w-0 flex-1 overflow-y-auto",children:c})]})}var dt=r(ct());var j=r(g());function it(){return(0,j.jsxs)(be,{children:[(0,j.jsx)(xe,{}),(0,j.jsx)(at,{position:"bottom-right"})]})}export{it 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.