1import{j as t,ch as T,cF as l,dK as v,cE as w,cN as J,k as C,ht as O,hu as D,r as m,cg as Q,ci as Y,bd as X,aB as he,aJ as Z,dm as ye,hv as me,dr as ge,dN as xe,d6 as be,B as Te,aK as ke,dA as Ie,dl as P}from"./redirect-69d1a63e.js";import{w as g,e7 as Ce,j as H,fc as je,fd as E,aB as ee,aa as W,s as S,fe as te,a0 as x,ff as ne,fg as K,fh as Se,fi as _e,fj as M,fk as ve,fl as we,fm as B,fn as $,fo as F,fp as se,fq as re,fr as ie,fs as Ee,c5 as Ae,ai as Pe,aD as Me,aE as Oe,C as De,n as He,f9 as oe,a1 as N,ft as We,a$ as Ne,b0 as Be,aj as Fe,a8 as Re,b7 as Le,aS as qe,aR as Ue}from"./render_utils-f2da862e.js";import"./_sentry-release-injection-file-06efb426.js";import{D as I,J as Ve,K as Ke}from"./dynamic_link-0a7bf0d5.js";import{i as _,D as $e}from"./deposit_check_dialog-22014750.js";import{p as z}from"./error_announcement-b8376cf7.js";import{A as b}from"./action_carousel-47a3999f.js";import{u as ze,P as Ge}from"./pending_microdeposit_notice-ca39fef5.js";import{P as Je}from"./helpers-80dc1ea7.js";import{t as Qe,a as Ye}from"./helpers-39ce881a.js";import"./router-7b3ba8f9.js";import"./bing_tracking-4b938951.js";import"./router-ef54cd0d.js";import"./autopilot_actions-13121683.js";import"./router-5ea17a1c.js";import"./router_root-a3df4259.js";import"./router_root_builder-c16587bc.js";import"./global_wrapper-f6fd36f5.js";import"./funding_http_client-6eb9e4e8.js";import"./fullscreen_overlay-f0338553.js";import"./get_path_params-22adc9af.js";import"./guest-voyager-navigate-de2619d9.js";import"./page_footer-7fe5a2b7.js";import"./CSSTransition-3ffb67cf.js";import"./PortalCompat-a62179c4.js";import"./clickable_container-5418b9bb.js";import"./centered_spinner-dabfcdee.js";import"./image-dde371c0.js";import"./index-dcd69b77.js";import"./badge-89feb9c4.js";import"./router-3cafe7c1.js";import"./loans_tracker-e5215c29.js";import"./router-c2cc067b.js";import"./router-2d563daa.js";import"./router-c8b5a357.js";import"./router-b6050b40.js";import"./router-45622950.js";import"./index-fa35cefb.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;
1n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf776f8c-f38a-4a45-b26e-17ccb880a046",e._sentryDebugIdIdentifier="sentry-dbid-cf776f8c-f38a-4a45-b26e-17ccb880a046")}catch{}{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[new e.Error().stack]=Object.assign({},e._sentryModuleMetadata[new e.Error().stack],{"_sentryBundlerPluginAppKey:sentry-wealthfront-sfe":!0})}const Xe=({autopilotDashboardInfo:e})=>{const{hasAutopilotPlan:n,minimizedDashboardCardTitle:s,transferState:i}=e,r=n?"autopilotOverview":"autopilotSetupStart";function o(){g.trackClick({target_element:"automated-savings",click_type:"next",click_text:s,click_url:C.buildPath(r)}),Ce.trackClickEvent("autopilot-intro-card","learn-more",{transferState:i==null?void 0:i.code,interimTransferHub:!0}),g.trackClick({target_element:"global-dashboard-merchandising",click_type:"other-cta",click_url:C.buildPath("autopilotSetupStart"),click_text:"See how it works"},{merchandising_type:"autopilot",selection:"setup"})}return t.jsxs(T,{spacing:"large",children:[t.jsx(l,{children:t.jsx(I,{to:r,children:t.jsx(l.Item,{as:"a",onClick:o,mainAccessory:t.jsx(v,{variant:"interactive",children:t.jsx(w,{source:"autopilot",testId:"accessory-icon"})}),primaryContent:t.jsx(l.PrimaryContent,{children:s}),testId:n?"autopilot-view":"autopilot-learn-more"})})}),t.jsx(J,{})]})};function ae(e){return e&&je.includes(e)}function Ze(e,n){return _()?e&&e.type==="EligibleCheckTransferEligibility"&&(e.sendCheckStatus===O.ELIGIBLE||e.sendCheckStatus===O.UNAVAILABLE):ae(n)}function et(e,n){return _()?e&&e.type!=="NoCheckingAccountEligibility":ae(n)}function tt(e){return _()?e&&e.type==="EligibleCheckTransferEligibility"&&e.sendCheckStatus===O.UNAVAILABLE:!1}const R=e=>e.migratedToOneTransfer?e.migratedToOneTransfer:!1,ce=e=>{const n={},{qsContext:s,transferContext:i,trackingOrigin:r}=e;return R(e)?(i&&(n.context=i),r&&(n.origin=r),n):(s&&(n.context=s),n)},nt=e=>e.includes(D.BUY_STOCKS)?H("growth_web_buy_stocks_transfer_hub_20260909"):!1,le=({as:e,transferAction:n,onClick:s})=>{const i={mainAccessory:t.jsx(v,{variant:"interactive",children:t.jsx(w,{source:n.icon,testId:"accessory-icon"})}),primaryContent:t.jsx(l.PrimaryContent,{children:n.text}),secondaryContent:n.description?t.jsx(l.SecondaryContent,{children:n.description}):null,testId:n.testId,onClick:s};return e==="a"?t.jsx(I,{to:{path:R(n)?"transferMoneySetup":n.actionPath,queryStringParams:ce(n)},children:t.jsx(l.Item,{...i,as:"a"})}):t.jsx(l.Item,{...i,as:"button"})},st=({parentTransferAction:e,transferActions:n,isOpen:s,onDismiss:i,handleLinkClick:r,trackLinkClick:o})=>{m.useEffect(()=>{if(s&&(e==null?void 0:e.type)===E){const c=n.map(({transferOption:u})=>u);g.trackImpression(ee.ModalImpression,{target_element:"cross-account-transfer-bottom-sheet",modal_source:"cross-account-transfer:next"},{cross_account_transfer_options:c})}},[s,e]);function a(){return n.map(c=>t.jsx(le,{as:"a",transferAction:c,onClick:()=>{r(c.type),o(c)}},c.type))}return t.jsx(Q,{isOpen:s,onDismiss:i,ariaLabel:"Action dialog",children:t.jsx(l,{children:a()})})},rt=({isOpen:e,onDismiss:n})=>{m.useEffect(()=>{e&&g.trackImpression(ee.ModalImpression,{target_element:"send-check-eligibility",modal_source:"send-check-transfer:next"})},[e]);const s=W(r=>S.wealthfrontAccounts.getCheckFeaturesEligibilityDetails(r));if((s==null?void 0:s.type)!==te.ineligible)return null;const{paymentCopyItems:i}=s;return t.jsx(Q,{isOpen:e,onDismiss:n,ariaLabel:"Send check dialog",testId:"global-transfer-modal-send-check-ineligible",children:t.jsxs(T,{children:[t.jsx(Y,{as:"h2",variant:"small-sans",children:i.map(r=>{if(r.type==="CopyItemHeader")return z(r.content,r.inlineItems)})}),t.jsx(X,{children:i.map(r=>{if(r.type==="CopyItemParagraph")return z(r.content,r.inlineItems)})})]})})},k=(e,n)=>e.find(s=>s.type===n),it=he.toEnum([E]),ot=[{...k(K,ne),text:"Deposit",description:"Into Wealthfront",transferOption:"deposit-transfer"},{...k(K,Se),text:"Withdraw",description:"From Wealthfront",transferOption:"withdraw-transfer"}],ue={type:E,text:"Transfer",description:"Between Wealthfront accounts · Cash, categories, and investment accounts",icon:"transfer",testId:"transfer-money-interim-transfer-hub-entrypoint-between-accounts",actions:[{...k(M,_e),text:"Cash Account to Investment Account",transferOption:"cash-to-investment-transfer",transferContext:x.CASH_TO_INVESTMENT,trackingOrigin:"cash-to-investment-transfer",migratedToOneTransfer:!0},{...k(M,ve),text:"Investment Account to Cash Account",transferOption:"investment-to-cash-transfer",transferContext:x.INVESTMENT_TO_CASH,trackingOrigin:"investment-to-cash-transfer",migratedToOneTransfer:!0},{...k(M,we),text:"Cash Account and its categories",transferOption:"cash-and-categories-transfer",transferContext:x.CASH_CATEGORY,trackingOrigin:"cash-and-categories-transfer",migratedToOneTransfer:!0}],transferOption:"cross-account-transfer"};({...k($,B)},k($,F));const at={type:ie,text:"Bring over investments",actionPath:"transfer",icon:"transferInvestments",testId:"global-transfer-modal-rollover",description:"From external brokerage accounts, 401(k) rollovers, etc.",transferOption:"bring-over-investment-transfer"},ct={type:se,text:"Send a wire",actionPath:"transferMoneySetup",icon:"invitation",testId:"global-transfer-modal-wire",transferOption:"send-wire-transfer"},lt={type:re,text:"Deposit a wire",actionPath:"fundWire",icon:"moneyIn",testId:"global-transfer-deposit-wire",transferOption:"receive-wire-transfer"},f={type:B,text:"Send a check",icon:"sendCheck",actionPath:"checkSend",includeAccountIdInPath:!0,testId:"global-transfer-modal-send-check",description:"From a Cash Account",transferOption:"send-check-transfer"},j={type:F,text:"Deposit a check",icon:"checkWithArrowDown",testId:"global-transfer-modal-deposit-check",transferOption:"deposit-check-transfer"};function ut({parentTransferAction:e,handleLinkClick:n,trackLinkClick:s,setChildTransferActions:i,setActiveParentTransferAction:r,transferEligibilities:o}){function a(d,h){s(d),n(d.type),i(h),r(d)}function c(d){return d.filter(h=>o.includes(h.type))}const u=e.type===E?c(ue.actions):e.actions;return t.jsx(I,{to:{path:"transferMoneySetup",queryStringParams:{context:x.C
1ROSS_ACCOUNT,origin:"cross-account-transfer"}},children:t.jsx(l.Item,{as:"a",mainAccessory:t.jsx(v,{variant:"interactive",children:t.jsx(w,{source:e.icon,testId:"accessory-icon"})}),primaryContent:t.jsx(l.PrimaryContent,{children:e.text}),secondaryContent:e.description?t.jsx(l.SecondaryContent,{children:e.description}):null,testId:e.testId,onClick:()=>a(e,u)})},"between-wealthfront-account")}function dt({transferAction:e,trackLinkClick:n,handleLinkClick:s}){function i({context:r,origin:o,onClick:a}){return t.jsx(I,{to:{path:"transferMoneySetup",queryStringParams:{context:r,origin:o}},children:t.jsx(l.Item,{as:"a",mainAccessory:t.jsx(v,{variant:"interactive",children:t.jsx(w,{source:e.icon,testId:"accessory-icon"})}),primaryContent:t.jsx(l.PrimaryContent,{children:e.text}),secondaryContent:e.description&&t.jsx(l.SecondaryContent,{children:e.description}),testId:e.testId,onClick:a})},e.type)}if(Ee.includes(e.type)){let r=function(o){n(o),Z.track({category:"transfer-funds-modal",name:o.type,action:"click",details:{interimTransferHub:!0}})};return i({context:x.WITHDRAWAL,origin:"withdrawals",onClick:()=>r(e)})}return e.type===ne&&H("cash_move_web_otd_20260107")&&H("cash_move_otd_20260107")?i({context:x.DEPOSIT,origin:"deposits",onClick:()=>{s(e.type),n(e)}}):t.jsx(le,{as:"a",transferAction:e,onClick:()=>{s(e.type),n(e)}},e.type)}const ft=({hasStockInvestingAccount:e})=>{const n=Ae("growth_buy_stocks_transfer_hub_20260909");if(n==null||n==="control")return null;const s=e?"your":"a",i=n==="buy_stocks"?"Buy stocks and ETFs":"Invest",r=n==="buy_stocks"?`Easily invest with ${s} Stock Investing Account.`:`Easily buy stocks & ETFs with ${s} Stock Investing Account.`,o="stocksAndEtfs",a={origin:"transfer-hub"};function c(){g.trackClick({target_element:"open-si-from-transfer-hub",click_type:"next",click_text:i,click_url:C.buildPath(o,void 0,a)})}return t.jsx(I,{to:{path:o,queryStringParams:a},children:t.jsx(l.Item,{as:"a",mainAccessory:t.jsx(ye,{customerAccountIconType:me.STOCK,size:"large",testId:"accessory-icon"}),primaryContent:t.jsx(l.PrimaryContent,{children:i}),secondaryContent:t.jsx(l.SecondaryContent,{children:r}),testId:"transfer-money-interim-transfer-hub-entrypoint-buy-stocks",onClick:c})})};function pt({transferHubActions:e,trackLinkClick:n,handleLinkClick:s,setChildTransferActions:i,setActiveParentTransferAction:r,hasStockInvestingAccount:o}){const{primaryActions:a,transferEligibilities:c}=e;function u(d){const h=Object.keys(it);return d.map(y=>h.includes(y.type)?t.jsx(ut,{parentTransferAction:y,handleLinkClick:s,trackLinkClick:n,setChildTransferActions:i,setActiveParentTransferAction:r,transferEligibilities:c},y.type):t.jsx(dt,{transferAction:y,trackLinkClick:n,handleLinkClick:s},y.type))}return t.jsxs(l,{children:[u(a),nt(c)&&t.jsx(ft,{hasStockInvestingAccount:o})]})}function ht({isSendCheckUnavailable:e,handleLinkClick:n,trackLinkClick:s,onIneligibleClick:i,checkEligibilityType:r}){const{addToast:o}=ge(),a=_();return a&&e?t.jsx(b.Action,{as:"button",iconSource:f.icon,text:f.text,testId:f.testId,onClick:()=>{o({content:Pe,leadingAccessory:t.jsx(xe,{source:"x"})})}},f.type):!a&&r===te.ineligible?t.jsx(b.Action,{as:"button",iconSource:f.icon,text:f.text,testId:f.testId,onClick:()=>{i(),s({...f,actionPath:void 0})}},f.type):t.jsx(b.Action,{as:"a",to:f.actionPath,iconSource:f.icon,text:f.text,testId:f.testId,onClick:()=>{n(f.type),s(f)}},f.type)}function yt({trackLinkClick:e,onOpen:n}){return t.jsx(b.Action,{as:"button",iconSource:j.icon,text:j.text,testId:j.testId,onClick:()=>{n(),e(j)}})}function mt({action:e,handleLinkClick:n,trackLinkClick:s,checkEligibilityType:i,isSendCheckUnavailable:r,setIneligibleSendCheckOpen:o,depositCheckDialogControls:a}){return e.type===ie?t.jsx(b.Action,{as:"a",to:e.actionPath,iconSource:e.icon,text:e.text,testId:e.testId,onClick:()=>{n(e.type),s(e)}}):e.type===se?t.jsx(b.Action,{as:"a",to:{path:"transferMoneySetup",queryStringParams:{context:x.WIRES,origin:"wire"}},iconSource:e.icon,text:e.text,testId:e.testId,onClick:()=>{n(e.type),s(e)}}):e.type===re?t.jsx(b.Action,{as:"a",to:{path:e.actionPath,queryStringParams:{context:x.DEPOSIT_WIRE}},iconSource:e.icon,text:e.text,testId:e.testId,onClick:()=>{n(e.type),s(e)}}):e.type===B?t.jsx(ht,{checkEligibilityType:i,isSendCheckUnavailable:r,handleLinkClick:n,trackLinkClick:s,onIneligibleClick:()=>o(!0)}):e.type===F?t.jsx(yt,{trackLinkClick:s,onOpen:()=>a.open()}):null}function gt({transferHubActions:e,handleLinkClick:n,trackLinkClick:s,setIneligibleSendCheckOpen:i,depositCheckDialogControls:r}){const{carouselActions:o,isSendCheckUnavailable:a,checkEligibilityType:c}=e;return t.jsxs(T,{children:[t.jsx(X,{variant:"caption",color:"secondary",children:"More ways to transfer"}),t.jsx(b,{testId:"transfer-hub-action-carousel",children:o.map(u=>t.jsx(mt,{action:u,handleLinkClick:n,trackLinkClick:s,checkEligibilityType:c,isSendCheckUnavailable:a,setIneligibleSendCheckOpen:i,depositCheckDialogControls:r},u.type))})]})}const xt=({transferHubActions:e,handleLinkClick:n,hasStockInvestingAccount:s})=>{const[i,r]=m.useState(!1),[o,a]=m.useState([]),[c,u]=m.useState(void 0),d=be();function h(A){const{transferOption:de,text:fe,actionPath:L}=A,q=R(A);let U="";if(q||L){const V=ce(A),pe=Object.keys(V).length?V:void 0;U=C.buildPath(q?"transferMoneySetup":L,void 0,pe)}g.trackClick({target_element:de,click_type:"next",click_text:fe,click_url:U})}function y(){return t.jsx(st,{parentTransferAction:c,transferActions:o,isOpen:!i&&o.length>0,onDismiss:()=>{a([]),u(void 0)},handleLinkClick:n,trackLinkClick:h})}function p(){return t.jsx(rt,{isOpen:o.length===0&&i,onDismiss:()=>r(!1)})}return t.jsxs("div",{"data-testid":"transfer-money-interim-transfer-hub-entry-point",children:[t.jsxs(T,{spacing:"xlarge",children:[t.jsx(pt,{transferHubActions:e,trackLinkClick:h,handleLinkClick:n,setChildTransferActions:a,setActiveParentTransferAction:u,hasStockInvestingAccount:s}),t.jsx(gt,{transferHubActions:e,handleLinkClick:n,trackLinkClick:h,setIneligibleSendCheckOpen:r,depositCheckDialogControls:d})]}),y(),p(),t.jsx($e,{dialogControls:d})]})},bt=({handleLinkClick:e})=>{function n(){g.trackClick({target_element:"open-new-account",click_type:"next",click_text:"Open a new account",click_url:C.buildPath("application")}),e("open-account-button")}return t.jsx(I,{to:"application",children:t.jsx(Te,{as:"a",testId:"open-account-button",onClick:n,children:"Open a new account"})})},Tt="https://cdn.wealthfront.com/vite/assets/scheduled-77e8b3eb.svg",G="View scheduled transfers",kt=({numberOfTransfers:e,handleLinkClick:n})=>{function s(){g.trackClick({target_element:"view-scheduled-transfer",click_type:"next",click_text:G,click_url:C.buildPath("scheduledTransfers",{},{origin:"transfer-hub"})}),n("scheduled-transfers")}return t.jsx(l,{children:t.jsx(I,{to:{path:"scheduledTransfers",queryStringParams:{origin:"transfer-hub"}},children:t.jsx(l.Item,{as:"a",mainAccessory:t.jsx(Ve,{alt:"Scheduled transfers",theme:"sunrise-plum-lilac-blurple-white-light",src:Tt,children:e>0&&t.jsx(Ke,{variant:"inverse",content:e})}),primaryContent:t.jsx(l.PrimaryContent,{children:G}),testId:"scheduled-transfers",onClick:s})})})};function It({isLoading:e,primaryActions:n,carouselActions:s}){const i=m.useRef(!0);m.useEffect(()=>{if(e||!i.current)return;i.current=!1;const r=[...n,...s].map(o=>o.transferOption);g.trackPage(Me.Transfers,Oe.TransferHub,{user_context:De("origin",{validate:He().parse})||"",transfer_options:r})},[e,n,s])}function Ct(){const e=W(p=>S.wealthfrontAccounts.getSortedAccountsWithFilter(p,oe)),n=W(p=>S.wealthfrontAccounts.getCheckFeaturesEligibility(p)),s=e.length>0,i=_(),{data:r,isLoading:o}=N("getTransferEligibilitiesForUser",[]),{data:a,isLoadingAndEnabled:c}=N("getCheckTransferEligibility",[],{enabled:i}),u=(r==null?void 0:r.transferEligibilities)??[],d=a==null?void 0:a.checkTransferEligibility,h=m.useMemo(()=>
1{if(!s)return[];const p=[...ot];return We(u)&&p.push(ue),p},[s,u]),y=m.useMemo(()=>{const p=[at];return u.includes(D.WIRE)&&p.push(ct),u.includes(D.RECEIVE_WIRE)&&p.push(lt),s&&Ze(d,n)&&p.push(f),s&&et(d,n)&&p.push(j),p},[u,s,d,n]);return{isLoading:o||c,primaryActions:h,carouselActions:y,transferEligibilities:u,isSendCheckUnavailable:tt(d),checkEligibilityType:n}}const jt=({wealthfrontAccounts:e,autopilotDashboardInfo:n})=>{const s=Ne(Be.transferMoney.getIsLoading),{data:i}=N("getAllPendingTransfers2",[]),r=((i==null?void 0:i.pendingTransfers)??[]).length,o=ze(),a=Ct(),c=s||a.isLoading,u=(e==null?void 0:e.some(y=>Fe(y.accountType)))??!1;It({isLoading:c,primaryActions:a.primaryActions,carouselActions:a.carouselActions});function d(y){Z.track({category:"transfer-funds-modal",name:y,action:"click",shouldHandleNavigation:!0,details:{interimTransferHub:!0}})}function h(){if(n)return t.jsx("div",{className:"margin-double--bottom",children:t.jsx(Xe,{autopilotDashboardInfo:n})})}return t.jsxs(t.Fragment,{children:[t.jsx(Ie,{title:"Transfer Money - Wealthfront"}),t.jsxs(P,{children:[t.jsx(P.Sidebar,{children:t.jsx(T,{spacing:"xsmall",children:t.jsx(Y,{variant:"large-sans",as:"h1",children:"Transfer money"})})}),t.jsx(P.MainContent,{children:c?t.jsx(Re,{size:"large"}):t.jsxs(T,{spacing:"large",testId:"transfer-hub-content",children:[o&&t.jsx(Ge,{origin:Je.TransferMoney}),t.jsxs(T,{spacing:"small",children:[t.jsx(kt,{numberOfTransfers:r,handleLinkClick:d}),h()]}),t.jsx(xt,{transferHubActions:a,handleLinkClick:d,hasStockInvestingAccount:u}),t.jsx(J,{}),t.jsx(bt,{handleLinkClick:d})]})})]})]})};function St(e){return{wealthfrontAccounts:S.wealthfrontAccounts.getSortedAccountsWithFilter(e,oe),autopilotDashboardInfo:S.autopilot.getAutopilotDashboardInfo(e)}}const _t=ke(St)(jt),vt=()=>t.jsx(_t,{});function wt(){Qe()}async function Et(){await qe(),await Ye()}function mn(e){return t.jsx(Le,{componentClassProps:e,routeWillMount:wt,children:()=>t.jsx(At,{...e})})}function At(e){return Ue({routeDidMount:Et,componentClassProps:e}),t.jsx(vt,{})}export{mn as default,Et as routeDidMount,wt as routeWillMount};
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.