PageSourceSearch

https://meetborderless.com/build/assets/dashboard-BfWIvRyz.js

js meetborderless.com collected 2026-10-09 22:43:12 UTC 9,690 bytes, 1 lines download raw bytes

1import{j as e}from"./app-C1iegf7Q.js";import{h as v,b as _,H as h,L as m,f as y}from"./inertia-BpyZy4w-.js";import{D as N,e as b,a as k,d as u,b as x}from"./dropdown-menu-Wh5d0FzN.js";import{u as C}from"./use-funnel-tracking-DZvQDmiU.js";import{A as g}from"./app-layout-N5SYko6V.js";import{AdviserCard as P}from"./AdviserCard-5Jk7zBCs.js";import{AllowancesCard as A}from"./AllowancesCard-5hpTyRyK.js";import{CurrentStepCard as S}from"./CurrentStepCard-XLX9Kyze.js";import{JourneyStepperCard as D}from"./JourneyStepperCard-t6nvnBHJ.js";import{OnboardingCard as M}from"./OnboardingCard-Cn-Ju-jV.js";import{ProgressCard as E}from"./ProgressCard-DyhDsbjM.js";import{RouteRecommendationsCard as R}from"./RouteRecommendationsCard-0WpjQHMA.js";import{UpgradeCard as L}from"./UpgradeCard-mQDQFyDv.js";import{GettingStartedDashboard as T}from"./getting-started-D-19-osj.js";import{EventsForYouCard as B}from"./events-for-you-DoADp2Bi.js";import{GoalBanner as G}from"./goal-banner-jeskHt03.js";import{PathwayNudge as J}from"./pathway-nudge-vb3my_QQ.js";import{WhatsOnRail as W,SettlementRail as H,ProvidersRail as O,ToolsRail as $}from"./right-rail-D5Ix5KIX.js";import{WelcomeBackBanner as q}from"./welcome-back-B82Zua-m.js";import{C as F}from"./circle-user-BGRnThUj.js";import{A as I}from"./arrow-right-CQhEyoMD.js";import{C as U}from"./circle-alert-D8tEThd5.js";import{C as Y}from"./compass-Sjw0tQtp.js";import{C as z}from"./chevron-down-B1YaU0K5.js";import{C as K}from"./check-0O-UND6N.js";import{P as j}from"./package-65QLf_ad.js";import{P as Q}from"./plus-BJl-aJiX.js";/* empty css            */import"./index-Dc_FVRD7.js";import"./index-CGXdj8xB.js";import"./index-XydtsrKA.js";import"./index-CL12STDK.js";import"./index-B0NHTN87.js";import"./index-C48dRAib.js";import"./index-BDqbV96p.js";import"./index-Cja0wFUH.js";import"./Combination-Cr5kvm8y.js";import"./index-D4vO54bj.js";import"./index-BRU_LjHB.js";import"./index-B1PKR-s8.js";import"./index-iZtkVXs0.js";import"./index-C_n-C52S.js";import"./utils-BiuKVCuu.js";import"./case-shell-EPUgGCr1.js";import"./mobile-chrome-C0ug21w9.js";import"./shield-alert-CGX6PHoz.js";import"./createLucideIcon-wqc1LSWg.js";import"./menu-BR3Nc3Gr.js";import"./x-DQSeRCcH.js";import"./message-circle-c43k_fjC.js";import"./app-logo-Dz0wogSq.js";import"./logo-light-DU4bWymm.js";import"./flash-toast-C6O0iVL1.js";import"./info-D2ZN_yLm.js";import"./triangle-alert-C7AVwNi-.js";import"./circle-x-Bp6Mbpgt.js";import"./circle-check-BMWvzPMx.js";import"./site-announcement-fVSM8f3a.js";import"./journey-labels-D75PCX0v.js";import"./bell-BvDZckLh.js";import"./guest-nav-Dk8jWUwY.js";import"./user-zm6AyDtY.js";import"./clock-BtI_SZvJ.js";import"./map-BNV3OJ1S.js";import"./lock-eEI5w3jQ.js";import"./circle-CLXJbTMk.js";import"./external-link-avvfS30C.js";import"./briefcase-CaOXuslt.js";import"./clipboard-check-CjgTm5I1.js";import"./trending-up-BfKjCZdl.js";import"./search-BY9GDMxP.js";import"./button-BE4q1_FS.js";import"./pricing-D_ZUQgLm.js";import"./file-search-CM0E7Jpo.js";import"./shield-check-CdWPLoDE.js";import"./building-2-Bm2I7vEj.js";import"./calendar-C9IvR7oY.js";import"./plane-B5evcQu0.js";import"./pound-sterling-D16GLaAZ.js";import"./shield-E3smhAzV.js";import"./users-BCcupCXV.js";import"./award-BziOa6p_.js";import"./file-text-XcQuIA-l.js";import"./chevron-right-ymZwGCJO.js";import"./video-CJHgxwGi.js";import"./map-pin-CrQmCnbd.js";import"./wrench-DYTITa-m.js";import"./square-check-big-Dm8_6ZnG.js";import"./target-Cj5tDbkI.js";import"./sparkles-C0aC1RHI.js";const V={ready:"Ready",on_track:"On track",building:"Building",early:"Early stage"};function X({pathways:s}){const r=s.find(t=>t.is_current),a=s.filter(t=>!t.is_current),l=t=>{y.post("/pathway",{pathway:t},{preserveScroll:!0})};return e.jsxs(N,{children:[e.jsx(b,{asChild:!0,children:e.jsxs("button",{className:"inline-flex items-center gap-1.5 rounded-lg border border-app-border px-3 py-1.5 text-xs font-medium text-app-text hover:bg-app-surface2 transition-colors cursor-pointer",children:[e.jsx(Y,{className:"h-3.5 w-3.5 text-app-text3"}),r?.label??"Choose pathway",e.jsx(z,{className:"h-3 w-3 text-app-text3"})]})}),e.jsxs(k,{align:"end",className:"w-[260px]",children:[r&&e.jsxs("div",{className:"px-3 py-2.5",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(K,{className:"h-3.5 w-3.5 text-app-lime"}),e.jsx("span",{className:"text-sm font-semibold",children:r.label}),r.has_pack&&e.jsx(j,{className:"h-3 w-3 text-app-lime"})]}),r.progress&&e.jsxs("div",{className:"mt-1.5 ml-5.5",children:[e.jsx("div",{className:"h-1 w-full rounded-full bg-app-surface2 overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full bg-app-lime transition-all",style:{width:`${Math.max(r.progress.percentage,2)}%`}})}),e.jsxs("p",{className:"text-2xs text-muted-foreground mt-0.5",children:[r.progress.completed_steps,"/",r.progress.total_steps," steps done"]})]})]}),a.length>0&&e.jsx(u,{}),a.map(t=>e.jsxs(x,{onClick:()=>l(t.key),className:"flex flex-col items-start gap-1 px-3 py-2.5 cursor-pointer",children:[e.jsxs("div",{className:"flex items-center gap-2 w-full",children:[e.jsx("span",{className:"text-sm font-medium",children:t.label}),t.has_pack&&e.jsx(j,{className:"h-3 w-3 text-app-lime"})]}),t.has_started&&t.progress?e.jsxs("p",{className:"text-2xs text-muted-foreground",children:[t.progress.completed_steps,"/",t.progress.total_steps," steps done · ",t.progress.percentage,"%"]}):e.jsx("p",{className:"text-2xs text-muted-foreground",children:"Not started yet"})]},t.key)),e.jsx(u,{}),e.jsxs(x,{onClick:()=>l("none"),className:"px-3 py-2 cursor-pointer",children:[e.jsx(Q,{className:"h-3.5 w-3.5 mr-2 rotate-45 text-muted-foreground"}),e.jsx("span",{className:"text-sm text-muted-foreground",children:"Clear pathway"})]})]})]})}function Ts(){const{props:s}=v(),{pathway:r,settlementSnapshot:a,lifecyclePhase:l,auth:t}=s,o=t.user;C("dashboard_viewed",{lifecycle_phase:l?.phase??"unknown",has_visa_type:!!o.visa_type,subscription_tier:o.subscription_tier??"free",pathway:r??"none"});const d=_.useMemo(()=>{const i=new Date().getHours();return i<12?"Good morning":i<18?"Good afternoon":"Good evening"},[]),n=a?{score:a.score??null,total:100,tier:a.tier?V[a.tier]??a.tier:null}:null,p=o.name?.split(" ")[0]??"there";if(s.dashboard_mode==="getting_started"&&s.getting_started)return e.jsxs(g,{pageEyebrow:d,pageTitle:`Welcome, ${p}.`,children:[e.jsx(h,{title:"Dashboard"}),e.jsx("div",{className:"dash-page",children:e.jsx(T,{userName:p,tasks:s.getting_started})})]});const c=s.subscription_allowances??[],f=e.jsxs("div",{className:"flex items-center gap-3",children:[c.length>0&&e.jsx("div",{className:"dash-allowance-row hidden sm:inline-flex",children:c.map((i,w)=>e.jsxs("span",{className:"inline-flex items-center gap-2",children:[w>0&&e.jsx("span",{className:"dot-sep","aria-hidden":!0}),e.jsx("strong",{children:i.remaining})," ",i.action.replace("Job ","").toLowerCase()]},i.action))}),(s.available_pathways??[]).length>0&&e.jsx("div",{className:"md:hidden",children:e.jsx(X,{current:r??null,pathways:s.available_pathways??[]})})]});return e.jsxs(g,{pageEyebrow:d,pageTitle:`Welcome back, ${p}.`,header:f,children:[e.jsx(h,{title:"Dashboard"}),e.jsxs("div",{className:"dash-page",children:[s.dashboard_mode==="welcome_back"&&s.welcome_back&&e.jsx(q,{userName:p,data:s.welcome_back}),s.dashboard_mode==="active"&&s.goal_banner&&e.jsx(G,{data:s.goal_banner}),!r&&e.jsx("div",{className:"dash-pathway-nudge",children:e.jsx(J,{})}),(!o.onboarding_completed||!o.country_code)&&e.jsxs(m,{href:"/onboarding",className:"dash-onboard-nudge",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"dash-onboard-nudge-icon",children:e.jsx(F,{className:"h-4 w-4"})}),e.jsxs("div",{className:"dash-onboard-nudge-text",children:[e.jsx("strong",{children:"Complete your profile"}),e.jsx("span",{children:"Answer a few quick questions so we can personalise your experience."})]})]}),e.jsx(I,{className:"h-4 w-4 shrink-0 text-[var(--ink-3)]"})]}),e.jsxs("div",{className:"dash-priority-strip",children:[(s.schedule?.overdue_count??0)>0&&e.jsxs(m,{href:"/schedule",className:"dash-priority-pill is-warn",children:[e.jsx(U,{className:"h-3.5 w-3.5"}),s.schedule?.overdue_count," overdue"]}),n?.score!=null&&e.jsxs(m,{href:"/journey",className:"dash-priority-pill",children:["Settlement: ",n.score,"/100"]})]}),e.jsxs("div",{className:"dash-page-grid",children:[e.jsxs("div",{className:"dash-page-main",children:[e.jsx(L,{pathway:r??null,hasActivePack:s.has_active_pack??!1,isPro:o.subscription_tier==="pro",hasStartedJourney:!!r}),e.jsx(D,{stepper:s.journey_stepper??null}),e.jsx(S,{step:s.current_step??null,stepper:s.journey_stepper??null,adviser:s.adviser??null}),e.jsx(P,{adviser:s.adviser??null,providers:s.providersMini??[]}),e.jsx(E,{progress:s.pathway_progress??null,employerSlug:s.sw_employer_slug}),e.jsx(M,{hasPathway:!!r,hasProvider:(s.providersMini??[]).length>0,hasActivePack:s.has_active_pack??!1,hasJourneyStepper:!!s.journey_stepper,relocationStage:o.relocation_stage,pathway:r}),s.route_recommendations&&s.route_recommendations.length>0&&e.jsx(R,{recommendations:s.route_recommendations}),s.suggestedEvents&&s.suggestedEvents.length>0&&e.jsx(B,{events:s.suggestedEvents})]}),e.jsxs("aside",{className:"dash-page-rail",children:[e.jsx(A,{allowances:s.journeyPackData?.allowances??[],hasActivePack:s.has_active_pack??!1,subscriptionAllowances:s.subscription_allowances}),s.schedule&&e.jsx(W,{schedule:s.schedule}),n&&(n.score!=null||r)&&e.jsx(H,{settlement:n,pathway:r}),s.providersMini&&s.providersMini.length>0&&e.jsx(O,{providers:s.providersMini}),e.jsx($,{})]})]})]})]})}export{Ts 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.