1import{j as e,c4 as Ce,br as c,B as E,r as m,m as yt,i as jt,F as T,aS as Ct,d9 as bt,c5 as Mt,cw as C,bK as be}from"./redirect-95747236.js";import{a3 as Y,B as Ne,dl as Nt,s as O,eQ as kt,fT as wt,dI as P,bE as It}from"./dynamic_import-2e51ff91.js";import"./_sentry-release-injection-file-3f4e48d2.js";import{p as St}from"./index-6081c66d.js";import{a as S}from"./check_flow-2ea9f708.js";import{T as _}from"./constants-47e033c3.js";import{M as ke}from"./modal-3ad65990.js";import{r as Tt,c as i}from"./constants-d05ff765.js";import{a as Et,F as At}from"./form_selection_group_row-d75009a1.js";import{f as Me}from"./flow_handler-b3b48136.js";import{D as Rt}from"./date_picker-e130734b.js";import{D as Ot}from"./dollar_input-9944a6b7.js";import{S as B}from"./select-d247c803.js";import{T as Bt}from"./telephone_input-cbe9ca72.js";import"./index-9c62a712.js";import"./component_stub-7302b9e1.js";import"./dom_search-8a74da58.js";import"./global_wrapper-0db86085.js";import"./router_root_builder-39a4d445.js";import"./wf_app_router-b5174f1d.js";import"./rails_client-70421323.js";import"./http_client-be792547.js";import"./errors-42ecb38f.js";import"./___vite-browser-external_commonjs-proxy-a20f1868.js";import"./announcements-ff61cc20.js";import"./index-e9249ee8.js";import"./react_lazy_retry-0186b7b8.js";import"./plan-eddbce22.js";import"./external_accounts_actions-749370e7.js";import"./loading-8c1cb0b6.js";import"./wealthfront_accounts_actions-593e0302.js";import"./wealthfront_accounts_http_client-6b602a86.js";import"./navigation-763ae5c9.js";import"./requirement_helpers-31123303.js";import"./linkedin_pixel_tracking-9d535a5c.js";import"./index-f8ca169a.js";import"./users_actions-86d2a2f1.js";import"./growth_tracker-d39f2a4d.js";import"./voyager-navigate-ce5f38f6.js";import"./use_stock_investing_eligibility-d4255701.js";import"./stock_investing_experiment_helper-c93a964a.js";import"./PortalWithState-faff521d.js";import"./PortalCompat-d3d8abd7.js";import"./with_custom_error_boundary-dc881fa9.js";import"./CSSTransition-cde470e5.js";import"./wf_flow_handler-e6d2ae64.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new a.Error().stack;
1n&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[n]="2ebbed94-b61f-4aa6-aaff-c0342151c611",a._sentryDebugIdIdentifier="sentry-dbid-2ebbed94-b61f-4aa6-aaff-c0342151c611")}catch{}{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a._sentryModuleMetadata=a._sentryModuleMetadata||{},a._sentryModuleMetadata[new a.Error().stack]=Object.assign({},a._sentryModuleMetadata[new a.Error().stack],{"_sentryBundlerPluginAppKey:sentry-wealthfront-sfe":!0})}const _t=({onModalClose:a,onConfirmClick:n,onGoBackClick:o,callBy:g,newArrivalBy:x,frequency:N,testId:D})=>{function f(){let p;return g?p=e.jsxs(c,{variant:"body-bold",children:["Your check should arrive on time if you call us by"," ",Y(g,{includeDay:!0,includeWeekday:!0,includeYear:!0,shortMonth:!0}),"."]}):x&&(N===Tt.ONE_TIME?p=e.jsxs(e.Fragment,{children:[e.jsx(c,{as:"span",variant:"body-bold",children:"Your check will arrive later."})," ",e.jsxs(c,{as:"span",children:["The earliest it can arrive is"," ",Y(x,{includeDay:!0,includeWeekday:!0,includeYear:!0,shortMonth:!0}),", if you call us within the next business day."]})]}):p=e.jsxs(e.Fragment,{children:[e.jsx(c,{as:"span",variant:"body-bold",children:"Your first check will arrive later."})," ",e.jsxs(c,{as:"span",children:["If you call us within the next business day, your first check will arrive by"," ",Y(x,{includeDay:!0,includeWeekday:!0,includeYear:!0,shortMonth:!0}),". Each check after that will arrive on time."]})]})),e.jsxs(Ce,{children:[e.jsx(c,{children:"After you submit your request, youâll be prompted to call us and verify itâs you."}),e.jsx(c,{children:p}),e.jsx(c,{children:"This is an extra layer of security for this check and wonât always be required."})]})}function k(){return e.jsxs(Ne,{children:[e.jsx(E,{as:"button",variant:"primary",testId:"confirm-manual-review",onClick:n,children:"I understand"}),e.jsx(E,{as:"button",variant:"subtle",onClick:o,testId:"go-back",children:"Go back"})]})}return e.jsx(ke,{flex:!0,header:"Youâll have to call us",width:"large",className:"modal-component-default",onClose:a,"data-testid":D,children:e.jsxs(Ce,{children:[f(),k()]})})};class Dt extends m.Component{constructor(){super(...arguments),this.state={options:this.props.initialValue?void 0:this.props.payees},this.handleInputChange=n=>{if(this.props.onHandlePayeeInputChange(n),n.length>0){const o=this.props.payees.filter(g=>this.filterMethod(n,g));o.length===0?this.resetOptions():this.resetOptions(o)}else this.resetOptions()},this.handleInputBlur=n=>{var x;const o=n.target.value;((x=n.relatedTarget)==null?void 0:x.classList.contains("typeahead-option-component"))||(this.props.onHandlePayeeInputBlur(o),this.resetOptions())},this.handleOptionSelect=n=>{this.props.onHandlePayeeOptionSelection(n),this.resetOptions()},this.resetOptions=n=>{this.setState({options:n})},this.filterMethod=(n,o)=>o.name.toLowerCase().indexOf(n.toLowerCase())!==-1,this.toTextMethod=n=>n.name,this.displayMethod=n=>e.jsx("div",{children:e.jsx("div",{className:"horizontal align-middle-md",children:e.jsx("div",{className:"col-md",children:e.jsx("div",{children:n.name})})})})}render(){return e.jsx(Nt,{ref:n=>{this.refTypeahead=n},inputId:this.props.inputId,initialValue:this.props.initialValue,autoComplete:"off",inputClassName:"form-control",inputMaxLength:this.props.inputMaxLength,placeholder:"Pay to the order of",shouldRenderIcon:!1,options:this.state.options,filterMethod:this.filterMethod,toTextMethod:this.toTextMethod,displayMethod:this.displayMethod,onInputChange:this.handleInputChange,onInputBlur:this.handleInputBlur,onOptionSelect:this.handleOptionSelect})}}function qt(a){const[n,o]=m.useState(a.addresses.length===1?0:void 0);m.useEffect(()=>{a.addresses.length===1&&o(0)},[]);function g(h){o(parseInt(h.target.value))}function x(){const h=a.addresses[n];T.track({category:_,name:"send-check-address-validation",type:"use-this-address-link",action:"click"}),a.onConfirmClick(h)}function N(){return a.addresses.length===0}function D(){return N()?"Unable to verify address":"Confirm address"}return e.jsx(ke,{flex:!0,header:D(),width:"large",className:"modal-component-default",onClose:a.onModalClose,"data-testid":a.testId,children:e.jsxs(e.Fragment,{children:[N()?f():k(),J()]})});function f(){return e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"We were unable to verify the mailing address you entered."}),e.jsxs("p",{className:"no-margin--bottom",children:[e.jsx("span",{children:"If youâre sure the address is correct, please"})," ",e.jsx(E,{as:"a",variant:"inline",href:yt.buildPath("contactUs"),children:"contact us"})," ",e.jsx("span",{children:"for assistance."})]})]})}function k(){return e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"Please choose the most accurate address."}),e.jsx(Et,{condensed:!0,children:p()})]})}function p(){return a.addresses.map((h,q)=>{const Q=[h.street1,h.street2,h.locality,h.jurisdiction,h.postalCode].filter(b=>b&&b.length>0).join(", ");return e.jsx(At,{name:"address",type:"radio",className:"e2e-verify-address-modal-radio",defaultValue:q,defaultChecked:q===n,onChange:g,children:Q},q)})}function J(){const h="margin--top padding--top";return N()?e.jsx("div",{className:h,children:e.jsx(E,{as:"button",variant:"primary",onClick:a.onEditClick,testId:"edit-address",children:"Go back"})}):e.jsx("div",{className:h,children:e.jsxs(Ne,{children:[e.jsx(E,{as:"button",variant:"primary",testId:"confirm-ad
1dress-validation",onClick:x,disabled:!jt(n),children:"Use this address"}),e.jsx(E,{as:"button",variant:"subtle",onClick:a.onEditClick,testId:"edit-address",children:"Edit address"})]})})}}function Lt(a){const o=a.dayOfWeek().toString().toLowerCase();return o.charAt(0).toUpperCase()+o.slice(1)}function Vt(a){const n=a.dayOfMonth();if(n>=11&&n<=13)return n+"th";switch(n%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd";default:return n+"th"}}const Yt=({checkPaymentInfo:a,accountExternalId:n,checkPaymentFields:o,submissionError:g,verifyAddressResponse:x,manualReviewResponse:N,onUpdateAccountExternalId:D,onUpdateCheckPaymentField:f,onUpdateCheckPaymentPayeeField:k,onUpdateCheckPaymentPayeeAddressField:p,onUpdateSubmissionError:J,verifyAddress2:h,getCheckPaymentRequestRequiresManualReview:q})=>{const[Q,b]=m.useState(!1),[we,L]=m.useState(!1),[ce,X]=m.useState(void 0),[Z,U]=m.useState(void 0),[ee,te]=m.useState(void 0),[re,se]=m.useState(void 0),[ue,ne]=m.useState(void 0),[he,me]=m.useState(void 0),[fe,ae]=m.useState(void 0),[Ie,oe]=m.useState(void 0),[ie,pe]=m.useState(void 0),v=nt(o.amount);function Se(t){var r;k("name",t),(r=H(t))!=null&&r.valid&&X(void 0)}function Te(t){const{valid:r,errorType:s}=H(t);X(r?void 0:i.errorMessages.name[s])}function Ee(t){const{externalId:r,name:s,phoneNumber:l,address:d}=t,{street1:u,street2:y,locality:w,jurisdiction:M,postalCode:R}=d,I=K(R),{errorMessages:j}=i,V=H(s),je=F(l);T.track({category:_,name:"send-check-select-past-payee",action:"click",details:{payeeId:r}}),f("payee",{...t,address:{...d,postalCode:I}}),X(V.valid?void 0:j.name[V.errorType]),te(z(u)?void 0:j.street1),se(G(y)?void 0:j.street2),ne(W(w)?void 0:j.locality),me(le(M)?void 0:j.jurisdiction),ae($(R)?void 0:j.postalCode),U(je.valid?void 0:j.phoneNumber[je.errorType])}function Ae(t){const r=t.currentTarget.value;p("street1",r),z(r)&&te(void 0)}function Re(t){const r=t.currentTarget.value;te(z(r)?void 0:i.errorMessages.street1)}function Oe(t){const r=t.currentTarget.value;p("street2",r),G(r)&&se(void 0)}function Be(t){const r=t.currentTarget.value;se(G(r)?void 0:i.errorMessages.street2)}function _e(t){const r=t.currentTarget.value;p("locality",r),W(r)&&ne(void 0)}function De(t){const r=t.currentTarget.value;ne(W(r)?void 0:i.errorMessages.locality)}function qe(t){const r=t.target.value;p("jurisdiction",r),me(le(r)?void 0:i.errorMessages.jurisdiction)}function Le(t){const r=t.currentTarget.value;(r===""||/^\d+$/.test(r))&&(p("postalCode",r),$(r)&&ae(void 0))}function Ve(t){const r=t.currentTarget.value;ae($(r)?void 0:i.errorMessages.postalCode)}function Ye(t){var r;k("phoneNumber",t),(r=F(t))!=null&&r.valid&&U(void 0)}function He(t){const{valid:r,errorType:s}=F(t);U(r?void 0:i.errorMessages.phoneNumber[s])}function ze(t){const r=t.target.value;D(r)}function Ge(t){const r=It(t),s=ge(r);T.track({category:_,name:"send-check-set-date",action:"change",details:{arrivesBy:t,sendOn:s}}),f("arrivesBy",r),f("sendOn",s)}function We(t){const r=t.target.value;T.track({category:_,name:"send-check-set-frequency",action:"change",details:{frequency:r}}),f("frequency",r)}function $e(t,r){var d;const s=(d=v==null?void 0:v.severity)==null?void 0:d.toLowerCase();T.track({category:"fast-cash",name:s?"send-check-amount-"+s:"send-check-set-amount",action:"click",details:{amount:o.amount,amountTriggerMessage:v}});const l=r===""?null:parseFloat(r);f("amount",l)}function Fe(t){const r=t.currentTarget.value;r.length<i.lengthChecks.memo&&oe(!1),pe(de(r)?void 0:i.errorMessages.memo),f("memo",r)}function Ke(t){oe(!1);const r=t.currentTarget.value;pe(de(r)?void 0:i.errorMessages.memo)}async function Pe(t){b(!1),await xe(t)}function Je(){T.track({category:_,name:"send-check-address-edit",action:"click",type:"edit-this-address-link"}),b(!1)}function Qe(){b(!1)}function Xe(){L(!1),Me.goToNextStep()}function Ze(){L(!1)}function Ue(){L(!1)}function et(t){t.currentTarget.value.length===i.lengthChecks.memo-1&&oe(!0)}async function tt(t){t.preventDefault();const r=ve(),s={payeeId:r};if(b(!1),J(null),r)await ye(o.payee.address);else{const u=await h(o.payee.address);u&&(s.verifyAddressResultStatus=u.status,u.status===i.verifyAddressMatchTypes.POSSIBLE_MATCHES?b(!0):u.status===i.verifyAddressMatchTypes.EXACT_MATCH&&await xe(u.exactMatch))}const{phoneNumber:l,address:d}=o.payee;Z&&(s.phoneNumber=l),(ee||re)&&(s.address=`${d.street1}, ${d.street2}`),T.track({category:_,name:"send-check-submit-form",action:"click",type:"submit-clicked",details:s})}function H(t){const{min:r,max:s}=i.lengthChecks.name;let l=!0,d;return((t==null?void 0:t.length)<r||(t==null?void 0:t.length)>s)&&(l=!1,d="lengthCheck"),/^[\000-\177]*$/.test(t)||(l=!1,d="characterCheck"),{valid:l,errorType:d}}function z(t){return(t==null?void 0:t.length)&&t.length<=i.lengthChecks.street1}function G(t){return(t==null?void 0:t.length)<=i.lengthChecks.street2}function W(t){return t==null?void 0:t.length}function le(t){return t==null?void 0:t.length}function $(t){return(t==null?void 0:t.length)>=i.lengthChecks.postalCode}function F(t){let r=!0,s;return(t==null?void 0:t.length)!==i.lengthChecks.phoneNumber?(r=!1,s="lengthCheck"):/^[2-9]\d{2}[2-9]\d{2}\d{4}$/.test(t)||(r=!1,s="characterCheck"),{valid:r,errorType:s}}function rt(t){return t&&(v==null?void 0:v.severity)!==i.checkMessageSeverity.ERROR}function de(t){return t?/^[\000-\177]*$/.test(t):!0}function st(){var j,V;const{payee:t,amount:r,memo:s}=o,{phoneNumber:l,name:d,address:u}=t,{street1:y,street2:w,locality:M,jurisdiction:R,postalCode:I}=u;return((j=H(d))==null?void 0:j.valid)&&z(y)&&G(w)&&W(M)&&le(R)&&$(I)&&((V=F(l))==null?void 0:V.valid)&&rt(r)&&de(s)}function A(){return a.find(t=>t.accountExternalId===n)}function nt(t){const{checkPaymentMessageTriggers:r}=A();return t&&r&&r.find(s=>
1{if(t>=s.minInclusive)return s.maxExclusive?t<s.maxExclusive:!0})}function at(){const{paymentFrequencies:t}=A(),{getRecurringTypesDetails:r}=i,s=St(o.arrivesBy);return t.map(l=>{const d=r(Lt(s),Vt(s)),u=d[l].displayStandalone;return d&&e.jsx(B.Option,{value:d[l].value,children:u},l)})}function K(t){return t.substring(0,i.lengthChecks.postalCode)}function ve(){const{payee:t}=o,r=A().payees.find(s=>s.name===t.name&&s.phoneNumber===t.phoneNumber&&s.address.street1===t.address.street1&&s.address.street2===t.address.street2&&s.address.locality===t.address.locality&&s.address.jurisdiction===t.address.jurisdiction&&K(s.address.postalCode)===K(t.address.postalCode));return(r==null?void 0:r.externalId)||null}function ge(t){const{arrivalBySendOnMap:r}=A();return r[t]}async function xe(t){const r={street1:t.street1,street2:t.street2,locality:t.locality,jurisdiction:t.jurisdiction,postalCode:t.postalCode};k("address",r),await ye(r)}async function ye(t){L(!1);const{amount:r,frequency:s,sendOn:l,memo:d,payee:u,arrivesBy:y}=o,w={amount:r,frequency:s,sendOn:l,memo:d,arrivesBy:y,payee:{...u,externalId:ve(),address:t}},M=await q(n,w);if(M){const{manualReviewRequired:R,newArrivalBy:I}=M;R?(I&&(f("arrivesBy",I),f("sendOn",ge(I))),L(!0)):Me.goToNextStep()}}function ot(){const t=A(),r=t==null?void 0:t.payees;return r||kt.trackImpressionEvent("send-check","render-payee-info",{errorMessage:`Error retrieving payees. The selected account is ${t}. The check payment info is ${a}.`}),e.jsx("div",{className:"form-row form-row-bordered",children:e.jsxs("div",{className:"horizontal",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"payee-label",children:"Whoâs this check for?"})}),e.jsxs("div",{className:"col-md-6",children:[e.jsx("div",{className:"form-group",children:e.jsx(Dt,{inputId:"payee",initialValue:o.payee.name,payees:r||[],inputMaxLength:i.lengthChecks.name.max,onHandlePayeeInputChange:Se,onHandlePayeeInputBlur:Te,onHandlePayeeOptionSelection:Ee})}),ce&&e.jsx("div",{className:"form-group margin--top",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"name-error-message",children:ce})})})]})]})})}function it(){const{street1:t,street2:r,locality:s,jurisdiction:l,postalCode:d}=o.payee.address,{phoneNumber:u}=o.payee;return e.jsx("div",{className:"form-row form-row-bordered",children:e.jsxs("div",{className:"horizontal",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"address-label",children:"Where should we mail it?"})}),e.jsxs("div",{className:"col-md-6 align-middle-md",children:[e.jsx("div",{className:"form-group form-group-return",children:e.jsx("input",{type:"text",className:"form-control",placeholder:'Address line 1 ("123 Main Street")',value:t,onChange:Ae,onBlur:Re,"data-testid":"street1"})}),ee&&e.jsx("div",{className:"form-group form-group-return",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"street1-error-message",children:ee})})}),e.jsx("div",{className:"form-group form-group-return",children:e.jsx("input",{type:"text",className:"form-control",placeholder:'Address line 2 ("Unit 2")',value:r,onChange:Oe,onBlur:Be,"data-testid":"street2","aria-label":"address-line-2"})}),re&&e.jsx("div",{className:"form-group form-group-return",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"street2-error-message",children:re})})}),e.jsx("div",{className:"form-group form-group-return",children:e.jsx("input",{type:"text",className:"form-control",placeholder:"City",value:s,onChange:_e,onBlur:De,"data-testid":"locality"})}),ue&&e.jsx("div",{className:"form-group form-group-return",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"locality-error-message",children:ue})})}),e.jsx("div",{className:"form-group form-group-return",children:e.jsx(B,{id:"jurisdiction",testId:"state-jurisdiction",placeholder:"Select a state",onChange:qe,value:l,__LEGACY_STYLE__:!0,children:wt.map(y=>e.jsx(B.Option,{value:y,children:y},y))})}),he&&e.jsx("div",{className:"form-group form-group-return",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"jurisdiction-error-message",children:he})})}),e.jsx("div",{className:"form-group form-group-return",children:e.jsx("input",{type:"text",className:"form-control",placeholder:"ZIP",pattern:"[0-9]*",maxLength:i.lengthChecks.postalCode,onBlur:Ve,value:K(d),onChange:Le,"data-testid":"postal-code"})}),fe&&e.jsx("div",{className:"form-group form-group-return",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"postal-code-error-message",children:fe})})}),e.jsx("div",{className:"form-group",children:e.jsx(Bt,{placeholder:"Phone number",value:u,onInput:Ye,onBlur:He,ariaLabel:"telephone","data-testid":"phone-number"})}),Z&&e.jsx("div",{className:"form-group margin--top",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"phone-error-message",children:Z})})})]})]})})}function lt(){const t=a.map(r=>{const s=`${r.accountDisplayName} (${be(r.accountValue)})`;return e.jsx(B.Option,{value:r.accountExternalId,children:s},r.accountExternalId)});return e.jsx("div",{className:"form-row form-row-bordered",children:e.jsxs("div",{className:"horizontal align-middle-md",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"from-label",children:"From"})}),e.jsx("div",{className:"col-md-6",children:e.jsx("div",{className:"form-group",children:e.jsx(B,{testId:"from-account-dropdown",placeholder:"Select an account",onChange:ze,value:n,__LEGACY_STYLE__:!0,
1children:t})})})]})})}function dt(){return e.jsxs("div",{className:"form-row form-row-bordered",children:[ct(),ut()]})}function ct(){const{earliestArrivalBy:t,latestArrivalBy:r}=A(),{arrivesBy:s,sendOn:l,frequency:d}=o,u=Y(s,{includeDay:!0,includeYear:!1,includeWeekday:!0}),w=`The check will leave your account on ${Y(l,{includeDay:!0,includeYear:!1,includeWeekday:!0})} and arrive by ${u}.`,M=d===i.recurringTypes.ONE_TIME;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"horizontal",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"arrives-by-label",children:M?"Arrive by":"First check arrives by"})}),e.jsx("div",{className:"col-lg-5 col-md-6",children:e.jsx("div",{className:"form-group",children:e.jsx(Rt,{date:P(s),minDate:P(t),maxDate:P(r),onChange:Ge})})})]}),e.jsx("div",{className:"horizontal",children:e.jsx("div",{className:"col-md-6 col-md-offset-3",children:e.jsx("div",{"data-testid":"arrives-by-message",className:"flows-check-components-form-step-form-step-message",children:w})})})]})}function ut(){const{arrivesBy:t,frequency:r}=o,s=at();return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"horizontal margin--top",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"frequency-label",children:"Frequency"})}),e.jsx("div",{className:"col-lg-5 col-md-6",children:e.jsx("div",{className:"form-group",children:e.jsx(B,{id:"check-frequency",testId:"pay-by-check-frequency",placeholder:"Select a frequency",onChange:We,value:r,__LEGACY_STYLE__:!0,children:s})})})]}),ht(t,r)]})}function ht(t,r){const{endOfMonthDates:s,recurringTypes:l}=i;if(s.includes(P(t).getDate())&&[l.MONTHLY,l.EVERY_3_MONTHS].includes(r))return e.jsx("div",{className:"horizontal",children:e.jsx("div",{className:"col-md-6 col-md-offset-3",children:e.jsx("div",{"data-testid":"frequency-message",className:"flows-check-components-form-step-form-step-message",children:"Checks will arrive earlier on months without this date"})})})}function mt(){return e.jsxs("div",{className:"form-row form-row-bordered",children:[e.jsxs("div",{className:"horizontal align-middle-md",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"amount-label",children:"Amount"})}),e.jsx("div",{className:"col-lg-3 col-md-4",children:e.jsx("div",{className:"form-group",children:e.jsx(Ot,{className:"form-control",value:o.amount,allowCents:!0,placeholder:"$0.00",maxLength:11,onChange:$e,"data-testid":"amount"})})})]}),v&&e.jsx("div",{className:"horizontal margin--top",children:e.jsx("div",{className:"col-md-6 col-md-offset-3",children:e.jsx(C,{variant:v.severity.toLowerCase()==="error"?"error":"default",children:e.jsx(c,{variant:"subtext",testId:"amount-trigger-message",children:v.message})},v.severity)})})]})}function ft(){return e.jsxs("div",{className:"form-row",children:[e.jsxs("div",{className:"horizontal align-middle-md",children:[e.jsx("div",{className:"col-md-3",children:e.jsx("label",{"data-testid":"memo-label",children:"Memo"})}),e.jsx("div",{className:"col-md-6",children:e.jsx("div",{className:"form-group",children:e.jsx("input",{type:"text",className:"form-control",maxLength:i.lengthChecks.memo,placeholder:"This will appear on the front of the check",value:o.memo,onChange:Fe,onKeyDown:et,onBlur:Ke,"data-testid":"memo"})})})]}),ie&&e.jsx("div",{className:"horizontal margin--top",children:e.jsx("div",{className:"col-md-6 col-md-offset-3",children:e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"memo-error-message",children:ie})},ie)})}),Ie&&e.jsx("div",{className:"horizontal",children:e.jsx("div",{className:"col-md-6 col-md-offset-3","data-testid":"memo-info-item",children:e.jsx("div",{className:"flows-check-components-form-step-form-step-message",children:"Only up to 34 characters can be printed."})})})]})}function pt(){const{amount:t}=o,s=`Send ${be(t||0,{precision:2})}`;return e.jsx(E,{as:"button",className:"flows-card-component-btn",type:"submit",variant:"primary",disabled:!st(),testId:"send",children:s})}function vt(){return g?e.jsx(C,{variant:"error",children:e.jsx(c,{variant:"subtext",testId:"submission-error-message",children:g.message})}):null}function gt(){if(!Q)return null;const t=x.possibleMatches;return e.jsx(qt,{addresses:t,onConfirmClick:Pe,onEditClick:Je,onModalClose:Qe,testId:"verify-address-modal"})}
1function xt(){if(!we)return null;const{callBy:t,newArrivalBy:r}=N,{frequency:s}=o;return e.jsx(_t,{onModalClose:Ue,onConfirmClick:Xe,onGoBackClick:Ze,callBy:t,newArrivalBy:r,frequency:s,testId:"manual-review-modal"})}return e.jsxs("form",{onSubmit:tt,children:[e.jsx(bt,{title:"Send a Check - Wealthfront"}),e.jsx("div",{className:"flows-flex-container",children:e.jsxs("div",{className:"flows-flex-flexible",children:[e.jsx("div",{className:"flows-check-components-form-step-form-step-title",children:e.jsx("div",{className:"horizontal",children:e.jsx("div",{className:"col-xs",children:e.jsx(Mt,{as:"h1",variant:"small-sans",children:"Letâs send a check"})})})}),e.jsxs("div",{className:"form-rows",children:[ot(),it(),lt(),dt(),mt(),ft()]})]})}),vt(),pt(),gt(),xt()]})};function Ht(a){return{checkPaymentInfo:O.check.getCheckPaymentInfo(a),accountExternalId:O.check.getAccountExternalId(a),checkPaymentFields:O.check.getCheckPaymentFields(a),submissionError:O.check.getSubmissionError(a),verifyAddressResponse:O.check.getVerifyAddressResponse(a),manualReviewResponse:O.check.getManualReviewResponse(a)}}function zt(a){return{onUpdateAccountExternalId:n=>a(S.updateAccountExternalId(n)),onUpdateCheckPaymentField:(n,o)=>a(S.updateCheckPaymentField(n,o)),onUpdateCheckPaymentPayeeField:(n,o)=>a(S.updateCheckPaymentPayeeField(n,o)),onUpdateCheckPaymentPayeeAddressField:(n,o)=>a(S.updateCheckPaymentPayeeAddressField(n,o)),onUpdateSubmissionError:n=>a(S.updateSubmissionError(n)),verifyAddress2:n=>a(S.verifyAddress2(n)),getCheckPaymentRequestRequiresManualReview:(n,o)=>a(S.getCheckPaymentRequestRequiresManualReview(n,o))}}const _r=Ct(Ht,zt)(Yt);export{_r as default,Vt as toDayOfMonthWithSuffix,Lt as toTitleCaseDayOfWeek};
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.