PageSourceSearch

https://hireeing.com/assets/route-Didi0NFu.js

js hireeing.com collected 2026-09-24 14:45:16 UTC 17,369 bytes, 1 lines download raw bytes

1import{a4 as F,bk as e,_ as D,V as B,w as T,n as $,aJ as H,aU as p,aF as J,bw as g,p as K,s as Q,u as Z,q,r as G,t as W,f as y,S as X,aA as O,aE as Y,aI as V,bT as _,bu as ee,aD as z,l as P,bb as L,K as C,N as se,aQ as U,bX as v,J as w,L as ae,d as re,aH as te,aB as ne,m as oe,af as ie,c6 as le,c9 as de,c5 as ce,U as M,O as me,bO as pe}from"./index-BdR958M7.js";import{B as xe,I as ue}from"./inbox-DYKr_y0y.js";import{B as fe}from"./badge-DB8vyzPB.js";import{t as j}from"./analytics-Bvs4eqqS.js";import{C as he}from"./credit-card-B8FRlJBi.js";import{L as ge}from"./lock-DIFvkdai.js";import{S as be}from"./shield-check-SxB-sk0Q.js";import{Z as je}from"./zap-Bju978CI.js";import{P as ye}from"./progress-BFPrx9Y_.js";import{R as Ne}from"./rocket-DoMINQOg.js";import{F as ve}from"./file-text-BlC7zoaz.js";import{L as we}from"./library-DGCa7-Iy.js";import{S as ke}from"./send-DgiRIt5H.js";import{S as Se}from"./sliders-horizontal-CFaUZo56.js";const Ce=F,ze={left:"inset-y-0 left-0 h-full w-80 border-r data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left",right:"inset-y-0 right-0 h-full w-80 border-l data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right"};function Ie({className:s,children:r,side:a="left",...n}
1){return e.jsxs(D,{children:[e.jsx(B,{className:"bg-foreground/30 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 backdrop-blur-sm"}),e.jsxs(T,{className:p("bg-sidebar shadow-pop data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 p-0 transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-300",ze[a],s),...n,children:[r,e.jsxs($,{className:"text-muted-foreground absolute top-4 right-4 rounded-md p-1 opacity-70 transition-opacity hover:opacity-100",children:[e.jsx(H,{className:"size-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Oe({className:s,...r}){return e.jsx(J,{className:p("text-sm font-semibold",s),...r})}function Pe(s){g.useEffect(()=>{const r=a=>{a.key.toLowerCase()==="k"&&(a.metaKey||a.ctrlKey)&&(a.preventDefault(),s())};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[s])}function Le({open:s,onOpenChange:r,actions:a}){const n=g.useMemo(()=>{const o=new Map;for(const i of a){const t=i.group??"Actions";o.set(t,[...o.get(t)??[],i])}return[...o.entries()]},[a]);return e.jsxs(K,{open:s,onOpenChange:r,children:[e.jsx(Q,{placeholder:"Go to…"}),e.jsxs(Z,{children:[e.jsx(q,{children:"No results found."}),n.map(([o,i])=>e.jsx(G,{heading:o,children:i.map(t=>{const c=t.icon;return e.jsxs(W,{value:t.label,onSelect:()=>{r(!1),t.onSelect()},children:[c&&e.jsx(c,{}),t.label]},t.id)})},o))]})]})}function Ue(s,r){return s===r||s.startsWith(r+"/")?r.length:-1}function Me(s,r){let a=null,n=-1;for(const o of s)for(const i of o.items){const t=Ue(r,i.href);t>n&&(n=t,a=i.href)}return a}function A({sections:s,pathname:r,LinkComponent:a,onNavigate:n}){const o=a,i=Me(s,r);return e.jsx("nav",{className:"flex flex-1 flex-col gap-6 px-3 py-4",children:s.map((t,c)=>e.jsxs("div",{className:"flex flex-col gap-1",children:[t.label&&e.jsx("p",{className:"text-muted-foreground/70 px-3 pb-1 text-[11px] font-semibold tracking-wider uppercase",children:t.label}),t.items.map(d=>{const f=d.href===i,x=d.icon;return e.jsxs(o,{href:d.href,onClick:n,"aria-current":f?"page":void 0,className:p("group flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",f?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:bg-sidebar-accent/60 hover:text-foreground"),children:[e.jsx(x,{className:p("size-[18px] shrink-0 transition-colors",f?"text-sidebar-primary":"text-muted-foreground group-hover:text-foreground")}),e.jsx("span",{className:"flex-1 truncate",children:d.label}),d.badge?e.jsx("span",{className:"bg-primary/15 text-primary rounded-full px-2 py-0.5 text-[10px] font-bold tracking-wider uppercase",children:d.badge}):null]},d.href)})]},t.label??c))})}function Re({brand:s,sections:r,pathname:a,LinkComponent:n,footer:o}){return e.jsxs("aside",{className:"bg-sidebar/86 flex h-full w-64 flex-col backdrop-blur-xl",children:[e.jsx("div",{className:"flex h-16 items-center px-5",children:s}),e.jsx(A,{sections:r,pathname:a,LinkComponent:n}),o&&e.jsx("div",{className:"px-3 pb-4",children:o})]})}function _e({user:s,onOpenSearch:r,onOpenMobileNav:a,onSignOut:n,actions:o,unreadNotificationsCount:i,onOpenNotifications:t}){return e.jsxs("header",{className:"border-border/75 bg-card/72 flex h-16 shrink-0 items-center justify-between gap-2.5 border-b px-3.5 shadow-[0_1px_0_rgba(255,255,255,.65)] backdrop-blur-xl sm:px-4 md:px-6",children:[e.jsxs("div",{className:"flex min-w-0 items-center gap-2 sm:gap-3",children:[e.jsx(y,{variant:"ghost",size:"icon",className:"size-9 shrink-0 lg:hidden",onClick:a,"aria-label":"Open navigation",children:e.jsx(X,{className:"size-5"})}),e.jsxs("button",{type:"button",onClick:r,className:"group border-border bg-secondary/60 text-muted-foreground hover:bg-secondary hidden h-9 w-full max-w-sm items-center gap-2 rounded-lg border px-3 text-sm transition-colors md:flex",children:[e.jsx(O,{className:"size-4"}),e.jsx("span",{className:"flex-1 text-left",children:"Search…"}),e.jsx("kbd",{className:"border-border bg-background text-muted-foreground rounded border px-1.5 py-0.5 font-mono text-[10px]",children:"⌘K"})]})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 items-center justify-end gap-1.5",children:[o&&e.jsx("div",{className:"flex max-w-full min-w-0 shrink scrollbar-none items-center gap-1.5 overflow-x-auto",children:o}),e.jsx(y,{variant:"ghost",size:"icon",className:"size-9 shrink-0 md:hidden",onClick:r,"aria-label":"Search",children:e.jsx(O,{className:"size-4 sm:size-5"})}),t&&e.jsxs(y,{variant:"ghost",size:"icon",className:"relative size-9 shrink-0",onClick:t,"aria-label":"Notifications",children:[e.jsx(xe,{className:"size-4.5"}),typeof i=="number"&&i>0&&e.jsx("span",{className:"absolute top-1.5 right-1.5 flex size-2 items-center justify-center rounded-full bg-primary ring-2 ring-background"})]}),e.jsx("div",{className:"shrink-0",children:e.jsx(Y,{})}),e.jsx("div",{className:"shrink-0",children:e.jsx(V,{user:s,onSignOut:n})})]})]})}function Ae({brand:s,sections:r,pathname:a,LinkComponent:n,user:o,onSignOut:i,commands:t=[],sidebarFooter:c,topbarActions:d,unreadNotificationsCount:f,onOpenNotifications:x,children:m}){const[b,u]=g.useState(!1),[k,N]=g.useState(!1);return Pe(()=>u(!0)),e.jsxs("div",{className:"app-canvas bg-background flex h-dvh overflow-hidden",children:[e.jsx("div",{className:"border-sidebar-border hidden shrink-0 border-r lg:block",children:e.jsx(Re,{brand:s,sections:r,pathname:a,LinkComponent:n,footer:c})}),e.jsx(Ce,{open:k,onOpenChange:N,children:e.jsxs(Ie,{side:"left",className:"w-72",children:[e.jsxs("div",{className:"flex h-16 items-center px-5",children:[e.jsx(Oe,{className:"sr-only",children:"Navigation"}),s]}),e.jsx(A,{sections:r,pathname:a,LinkComponent:n,onNavigate:()=>N(!1)})]})}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsx(_e,{user:o,onSignOut:i,onOpenSearch:()=>u(!0),onOpenMobileNav:()=>N(!0),actions:d,unreadNotificationsCount:f,onOpenNotifications:x}),e.jsx("main",{className:"flex-1 overflow-y-auto",children:m})]}),e.jsx(Le,{open:b,onOpenChange:u,actions:t})]})}function Ee(s,r){return s.flatMap(a=>a.items.map(n=>({id:n.href,label:n.label,group:a.label??"Navigate",icon:n.icon,onSelect:()=>r(n.href)})))}function Fe({user:s,onSignOut:r,subscription:a,plans:n}){const[o,i]=g.useState(a?.planId??"starter"),[t,c]=g.useState(!1),[d,f]=g.useState(!1),x=n.find(l=>
1l.id===o)??n[0],m=_(a??null),b=a?.planId?ee(a.planId):null;if(g.useEffect(()=>{j("paywall_viewed",{userId:s.id,userEmail:s.email,currentPlan:a?.planId??"none",subscriptionStatus:a?.status??"none",isRecovery:m})},[s.id,s.email,a?.planId,a?.status,m]),!x)return null;function u(l){i(l);const h=n.find(S=>S.id===l);j("paywall_plan_selected",{planId:l,monthlyUsd:h?.monthlyUsd??0})}async function k(){if(x){c(!0),j("paywall_checkout_initiated",{planId:o,monthlyUsd:x.monthlyUsd,userId:s.id});try{const{data:l,error:h}=await U.dodopayments.checkoutSession({slug:o,metadata:{userId:s.id}});if(l?.url){window.location.href=l.url;return}h&&v.error(h.message??"Could not start checkout")}catch{v.error("Network error - please retry")}finally{c(!1)}}}async function N(){c(!0),j("paywall_recovery_portal_opened",{planId:a?.planId??null,userId:s.id});try{const{data:l,error:h}=await U.dodopayments.customer.portal();if(l?.url){window.location.href=l.url;return}v.error(h?.message??"Could not open the billing portal.")}catch{v.error("Network error - please retry")}finally{c(!1)}}async function E(){f(!0),j("paywall_signout_clicked",{userId:s.id});try{await r()}finally{f(!1)}}return e.jsxs("div",{className:"relative w-full max-w-xl rounded-3xl border border-primary/25 bg-card/95 p-6 sm:p-7 shadow-2xl shadow-primary/15 backdrop-blur-2xl ring-1 ring-primary/15 my-auto animate-in fade-in zoom-in-95 duration-200",children:[e.jsx("div",{className:"pointer-events-none absolute -top-24 left-1/2 -z-10 h-48 w-80 -translate-x-1/2 rounded-full bg-primary/20 blur-3xl"}),e.jsxs("div",{className:"text-center space-y-3",children:[e.jsx("div",{className:"flex justify-center",children:e.jsxs(fe,{variant:"secondary",className:p("gap-1.5 px-3 py-1 text-xs font-semibold",m?"text-amber-600 bg-amber-500/10 border-amber-500/20 dark:text-amber-400":"text-primary bg-primary/10 border-primary/20"),children:[e.jsx(z,{className:p("size-3.5",m?"text-amber-500":"text-primary")}),m?`Action Required · ${b?`${b} `:""}Paused`:"Unlock Access · Matches Ready"]})}),e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold tracking-tight text-foreground",children:m?"Payment issue — update your card":"Unlock Your Matched Jobs & Dashboard"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-lg mx-auto leading-relaxed",children:m?`Your ${b??""} plan is paused because the last charge didn't go through. Update your payment method to restore access — your matches are waiting.`:"We've matched your profile with real, verified job listings. Choose a plan to reveal full employer details, verified salary bands, and approval-gated auto-apply."})]}),e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 my-6",children:n.map(l=>{const h=o===l.id,S=l.id==="pro";return e.jsxs("button",{type:"button",onClick:()=>u(l.id),className:p("relative flex flex-col justify-between p-5 rounded-2xl border text-left transition-all cursor-pointer",h?S?"border-primary bg-gradient-to-b from-primary/15 via-primary/5 to-card ring-2 ring-primary/50 shadow-md shadow-primary/10":"border-primary bg-primary/10 ring-2 ring-primary/40 shadow-sm":"border-border/80 bg-card/60 hover:border-primary/40 hover:bg-card"),children:[l.popular&&e.jsx("span",{className:"absolute -top-2.5 right-4 bg-primary text-primary-foreground text-[10px] font-bold uppercase tracking-wider px-2 py-0.5 rounded-full shadow-sm",children:"Most Popular"}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("span",{className:"font-semibold text-foreground text-base",children:l.name}),e.jsx("span",{className:p("size-4 rounded-full border flex items-center justify-center transition-colors",h?"border-primary bg-primary text-primary-foreground":"border-muted-foreground/40"),children:h&&e.jsx(P,{className:"size-2.5 stroke-[3]"})})]}),e.jsxs("div",{className:"mt-2 flex items-baseline gap-1",children:[e.jsx("span",{className:"text-2xl sm:text-3xl font-bold text-foreground",children:L(l.monthlyUsd)}),e.jsx("span",{className:"text-xs text-muted-foreground font-normal",children:"/ month"})]}),e.jsx("p",{className:"mt-1.5 text-xs text-muted-foreground line-clamp-2",children:l.tagline}),e.jsx("div",{className:"mt-4 pt-3 border-t border-border/50 space-y-1.5",children:l.features.slice(0,3).map(I=>e.jsxs("div",{className:"flex items-center gap-2 text-xs text-foreground
1/90",children:[e.jsx(P,{className:"size-3 text-primary shrink-0"}),e.jsx("span",{className:"truncate",children:I})]},I))})]})]},l.id)})}),e.jsxs("div",{className:"space-y-3",children:[m?e.jsx(y,{size:"lg",className:"w-full text-base font-semibold py-6 rounded-xl gap-2 shadow-lg shadow-primary/20 hover:shadow-primary/30 transition-all cursor-pointer",onClick:N,disabled:t||d,children:t?e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"size-5 animate-spin"})," Opening billing portal…"]}):e.jsxs(e.Fragment,{children:[e.jsx(he,{className:"size-4"}),"Update payment method"]})}):e.jsx(y,{size:"lg",className:"w-full text-base font-semibold py-6 rounded-xl gap-2 shadow-lg shadow-primary/20 hover:shadow-primary/30 transition-all cursor-pointer",onClick:k,disabled:t||d,children:t?e.jsxs(e.Fragment,{children:[e.jsx(C,{className:"size-5 animate-spin"})," Preparing secure checkout…"]}):e.jsxs(e.Fragment,{children:[e.jsx(ge,{className:"size-4"}),"Unlock Dashboard with ",x.name," — ",L(x.monthlyUsd),"/mo"]})}),e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-4 gap-y-1 text-xs text-muted-foreground pt-1",children:[e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(be,{className:"size-3.5 text-emerald-500"}),"Zero ghost jobs guaranteed"]}),e.jsx("span",{className:"text-muted-foreground/40",children:"•"}),e.jsxs("span",{className:"inline-flex items-center gap-1",children:[e.jsx(je,{className:"size-3.5 text-amber-500"}),"1-click cancel anytime"]}),e.jsx("span",{className:"text-muted-foreground/40",children:"•"}),e.jsx("span",{children:"Secured by Dodo Payments"})]})]}),e.jsxs("div",{className:"mt-6 pt-4 border-t border-border/60 flex items-center justify-between text-xs text-muted-foreground",children:[e.jsxs("span",{className:"truncate max-w-[240px] sm:max-w-xs",children:["Signed in as ",e.jsx("span",{className:"font-medium text-foreground",children:s.email})]}),e.jsxs("button",{type:"button",onClick:E,disabled:d,className:"inline-flex items-center gap-1 hover:text-foreground hover:underline transition-colors",children:[d?e.jsx(C,{className:"size-3 animate-spin"}):e.jsx(se,{className:"size-3"}),"Sign out"]})]})]})}function De({entitlement:s,className:r}){if(!s)return null;if(s.limit==="unlimited")return e.jsx("span",{className:p("text-muted-foreground hidden text-xs sm:inline",r),children:"Unlimited applications"});const a=Math.min(s.applicationsUsed,s.limit),n=Math.max(s.limit-s.applicationsUsed,0),o=s.limit===0?100:a/s.limit*100,i=s.id==="free",t=n===0;return e.jsxs(w,{to:"/pricing",className:p("hidden min-w-36 flex-col gap-1 sm:flex",r),title:i?`${n} of your ${s.limit} free applications left`:`${n} applications left this billing period`,children:[e.jsxs("span",{className:"flex items-center justify-between gap-2 text-xs",children:[e.jsxs("span",{className:p("tabular-nums",t?"text-destructive":"text-muted-foreground"),children:[a," / ",s.limit,i?" free":""]}),e.jsx("span",{className:"text-primary font-medium",children:t?"Upgrade":"Plans"})]}),e.jsx(ye,{value:o,className:p("h-1",t&&"[&>*]:bg-destructive")}
1)]})}const R=[{items:[{href:"/app",label:"Overview",icon:ae},{href:"/app/inbox",label:"Inbox",icon:ue},{href:"/app/jobs",label:"All jobs",icon:re},{href:"/app/matches",label:"Jobs for you",icon:z},{href:"/app/startups",label:"Funded startups",icon:Ne,badge:"PRO"},{href:"/app/applications",label:"Applications",icon:ve},{href:"/app/answers",label:"Answer Library",icon:we},{href:"/app/outreach",label:"Outreach",icon:ke,badge:"PRO"}]},{label:"Account",items:[{href:"/app/profile",label:"Profile",icon:te},{href:"/app/preferences",label:"Preferences",icon:Se},{href:"/app/settings",label:"Settings",icon:ne},{href:"/app/support",label:"Support & Help",icon:oe}]}],Be=({href:s,children:r,...a})=>e.jsx(w,{to:s,...a,children:r});function ss(){const{user:s,unreadCount:r,subscription:a,entitlement:n,plans:o,waitForCheckout:i}=ie.useRouteContext(),t=le(),c=de({select:u=>u.location.pathname}),f=ce().some(u=>u.routeId==="/app/support");g.useEffect(()=>{i&&j("checkout_success",{userId:s.id,planId:a?.planId})},[i,s.id,a?.planId]);const x=Ee(R,u=>t({to:u})),m=async()=>{await pe(),t({to:"/login"})},b=_(a??null)&&!f;return e.jsx(Ae,{brand:e.jsx(w,{to:"/app",children:e.jsx(me,{})}),sections:R,pathname:c,LinkComponent:Be,user:{name:s.name,email:s.email,image:s.image},onSignOut:m,commands:x,unreadNotificationsCount:r,onOpenNotifications:()=>t({to:"/app/inbox"}),topbarActions:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(De,{entitlement:n}),e.jsx(y,{asChild:!0,size:"sm",variant:"outline",className:"hidden gap-1.5 sm:inline-flex",children:e.jsxs(w,{to:"/app/jobs",children:[e.jsx(z,{className:"text-primary size-3.5"})," Review matches"]})})]}),children:b?e.jsxs("div",{className:"relative min-h-[calc(100vh-4rem)]",children:[e.jsx("div",{className:"pointer-events-none opacity-65 blur-[3.5px] filter select-none","aria-hidden":"true",children:e.jsx(M,{})}),e.jsx("div",{className:"bg-background/25 fixed inset-y-0 top-16 right-0 left-0 z-30 flex items-center justify-center overflow-y-auto p-4 backdrop-blur-[1.5px] sm:p-6 lg:left-64",children:e.jsx(Fe,{user:s,onSignOut:m,subscription:a,plans:o})})]}):e.jsx(M,{})})}export{ss as component};

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.