PageSourceSearch

https://app.novo.co/Business%20Info%20update%20.e85f0cce92ca53c4.js

js novo.co collected 2026-09-24 19:02:36 UTC 230,295 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"20260916.130036"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];if(null!=a)for(var t in a)a.hasOwnProperty(t)&&(e[t]=a[t])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:novo-core-app":!0});var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f9fcd4ae-4d93-4ee8-b76b-4d80378fdf8a",e._sentryDebugIdIdentifier="sentry-dbid-f9fcd4ae-4d93-4ee8-b76b-4d80378fdf8a")}catch(e){}}(),(self.webpackChunkcore=self.webpackChunkcore||[]).push([[69066],{41387(e,n,a){"use strict";a.d(n,{r:()=>_});var t=a(90024),i=a(8549),s=a.n(i),o=a(77542),r=a(23463),l=a(28110),d=a(80824),u=a(69500);const c=["showUSTerritories","setAddressDetails"],m=["GU","PR","MP","VI"],_=e=>{let{showUSTerritories:n=!0,setAddressDetails:a}=e,i=(0,t.A)(e,c);const{name:_="",defaultValue:p}=i,{control:f}=(0,d.xW)(),h=()=>{var e;const t={types:["address"],componentRestrictions:{country:n?["US",...m]:["US"]},sessionToken:new window.google.maps.places.AutocompleteSessionToken},s=document.getElementById(null!=(e=i.id)?e:"");if(s){const e=new window.google.maps.places.Autocomplete(s,t);null==e||e.setFields(["address_component","formatted_address","name","place_id","plus_code"]),window.google.maps.event.clearInstanceListeners(s),null==s||s.addEventListener("keydown",(e=>{"Enter"===e.code&&e.preventDefault()})),window.google.maps.event.addListener(e,"place_changed",(()=>{const n=e.getPlace(),t={primary_line:n.name,secondary_line:"",city:"",state:"",zip_code:""},i=n.address_components;if(i){const e=(e=>{const n=e.find((e=>{var n;return null==e||null==(n=e.types)?void 0:n.includes("country")}));return n&&m.includes(n.short_name)})(i);i.forEach((n=>{"locality"===n.types[0]&&(t.city=n.long_name.split("").filter((e=>"."!==e)).join("")),"postal_code"===n.types[0]&&(t.zip_code=n.long_name),e&&"country"===n.types[0]&&(t.state=n.short_name),e||"administrative_area_level_1"!==n.types[0]||(t.state=n.short_name)}))}a(t)}))}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(s(),{url:`https://maps.googleapis.com/maps/api/js?key=${l.c.GOOGLE_DEVELOPER_KEY}&libraries=places`,onLoad:()=>setTimeout(h,1e3),onError:()=>(0,o.oI)("Could not load google map api script","THIRD_PARTY_SCRIPT_FAILURE",{script:"google-maps"})}),(0,u.jsx)(d.xI,{control:f,name:_,defaultValue:p,render:({field:{value:e,onChange:n}})=>(0,u.jsx)(r.Input,Object.assign({name:_,onFocus:e=>e.target.setAttribute("autocomplete","google"),value:e,onChange:n},i))})]})}},72756(e,n,a){"use strict";a.d(n,{A:()=>v});var t=a(90024),i=a(55531),s=a(23463),o=a(21215),r=a(20951),l=a.n(r),d=a(75969),u=a(80824),c=a(4578),m=a(47861),_=a(72937),p=a(69500);const f=["name","rudderStackData","onClick","valueType","excludeCountryCodes","alertBlockedCountryTransaction"],h=({image:e,label:n})=>(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)("img",{src:e,alt:"",className:"w-4"}),(0,p.jsx)("div",{className:"",children:n})]}),v=e=>{let{name:n,rudderStackData:a,onClick:r,valueType:v,excludeCountryCodes:y=[],alertBlockedCountryTransaction:b=!1}=e,g=(0,t.A)(e,f);const{setValue:N,control:x}=(0,u.xW)(),E=(0,c.useSelector)((e=>null==e?void 0:e.common)),[S,I]=(0,d.useState)([]),w=(0,c.useDispatch)();(0,d.useEffect)((()=>{w((0,m.BJ)())}),[]),(0,d.useEffect)((()=>{var e;if(null!=E&&E.countries&&null!=E&&null!=(e=E.countries)&&e.length){const e=[];null==E||E.countries.forEach((n=>!y.includes(n.code)&&(e.push({name:n.name,value:n[v||"name"],label:(0,p.jsx)(h,{image:n.image,label:n.name}),icon:n.image,isCardTransactionBlocked:n.isCardTransactionBlocked}),!0))),I(e)}}),[null==E?void 0:E.countries]);const D=e=>{N(n,l()(e,(e=>e.value)),{shouldDirty:!0,shouldValidate:!0}),b&&null!=e&&e.isCardTransactionBlocked&&alert((0,_.catalogueText)("core-shared","we_do_not_support_card_transactions_in",{country:e.name})),a&&(0,i.sx)(Object.assign({},a.SELECTED,{value:e?e.name:""}))},k=e=>{a&&(0,i.sx)(a.VIEWED),r&&r(e)};return(0,p.jsx)(u.xI,{name:n,control:x,defaultValue:"",render:({field:{value:e}})=>(0,p.jsx)(s.Select,Object.assign({blurInputOnSelect:!0,noOptionsMessage:()=>(0,o.getErrorMessage)("NO_COUNTRY_FOUND"),options:S,name:n,isClearable:!0,value:S.find((n=>
1n.value===e))||null,onChange:D,onClick:k,"data-test-id":"country-select",filterOption:({data:e},n)=>{if(n){const a=((null==e?void 0:e.name)||"").toLowerCase(),t=(n||"").trimStart().toLowerCase(),i=` ${t}`,s=a.startsWith(t),o=a.includes(i);return s||o||!1}return!0}},g))})}},84961(e,n,a){"use strict";a.d(n,{G:()=>o,d:()=>r});var t=a(54701),i=a(26443),s=a(34266);const o=async(e,n)=>{const a={data:{query:(0,t.y)(s.AccountInformation),variables:n}};if(void 0===e)throw new Error("apiInstance is undefined");const o=await e.request(a);return(0,i.yi)(o)},r=async e=>{const n={data:{query:(0,t.y)(s.CreateBankLetter)}};if(void 0===e)throw new Error("apiInstance is undefined");const a=await e.request(n);return(0,i.yi)(a)}},67094(e,n,a){"use strict";a.d(n,{A:()=>g,By:()=>c,DJ:()=>p,Lb:()=>b,MA:()=>y,Zf:()=>_,se:()=>v,vr:()=>m,wM:()=>h,x2:()=>f});var t=a(54701),i=a(55531),s=a(90717),o=a(54213),r=a(26443),l=a(85875),d=a(65789),u=a(16787);const c=async e=>{const n={data:{query:(0,t.y)(s.BusinessInformation)}};if(void 0===e)throw new Error("apiInstance is undefined");const a=await e.request(n);return(0,r.yi)(a)},m=async e=>{const n={data:{query:(0,t.y)(s.BusinessDetails)}};if(void 0===e)throw new Error("apiInstance is undefined");const a=await e.request(n);return(0,r.yi)(a)},_=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.CreateBusinessInfoUpdateRequest),variables:a}};let l={};if(a.data.mailing_address&&(l=a.data.mailing_address),a.data.address&&(l=a.data.address),void 0===e)throw new Error("apiInstance is undefined");const u=await e.request(s);return(0,i.sx)(Object.assign({},d.w.BUSINESS_INFO_UPDATE_REQUEST,{type:a.data.type,phone:a.data.phone,request_id:a.data.request_id,address:l.address,address_line_2:l.address_line_2,city:l.city,state:l.state,zip_code:l.zip_code,action:"create"})),(0,r.yi)(u)},p=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.CancelBusinessInfoUpdateRequest),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.BUSINESS_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"cancel"})),(0,r.yi)(l)},f=async(e,n)=>{if(void 0===e)throw new Error("apiInstance is undefined");const a=await e.request({url:l.bD,headers:{"content-type":"multipart/form-data"},data:n});return(0,i.sx)(Object.assign({},d.w.ACCOUNT_DOCS,{action:"upload",document_type:"business_info_update"})),a.data},h=async(e,n)=>{try{const a={data:n},s={data:{query:(0,t.y)(o.BusinessInfoUpdateCloudUpload),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.ACCOUNT_DOCS,{action:"upload",document_type:"business_info_update"})),(0,r.yi)(l)}catch(a){console.error(a)}},v=async(e,n)=>{const a={data:{query:(0,t.y)(s.BusinessInfoUpdateAttachment),variables:n}};if(void 0===e)throw new Error("apiInstance is undefined");const i=await e.request(a);return(0,r.yi)(i)},y=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.RemoveBusinessInfoUpdateRequestAttachment),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.ACCOUNT_DOCS,{file_id:a.data.file_id,request_id:a.data.request_id,action:"delete",document_type:"business_info_update"})),(0,r.yi)(l)},b=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.SelfServeBusinessInfo),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.BUSINESS_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"update"})),(0,r.yi)(l)},g=async(e,n,a)=>(0,u.In)({axiosInstance:e,config:Object.assign({data:{query:(0,t.y)(o.UBOUpdateRequest),variables:{data:n}}},a),requestAPIType:"Mutation"})},28816(e,n,a){"use strict";a.d(n,{Aw:()=>p,EJ:()=>_,FA:()=>b,Oe:()=>E,RR:()=>f,W8:()=>x,_0:()=>c,ao:()=>h,ds:()=>N,fw:()=>m,h5:()=>g,pD:()=>v,pF:()=>u,wR:()=>y});var t=a(54701),i=a(55531),s=a(87811),o=a(13627),r=a(26443),l=a(85875),d=a(65789);const u=async e=>{const n={data:{query:(0,t.y)(s.PersonalInformation)}};if(void 0===e)throw new Error("apiInstance is undefined");const a=await e.request(n);return(0,r.yi)(a)},c=async(e,n)=>{var a;const s={data:n},l={data:{query:(0,t.y)(o.UpdateCommunicationInfo),variables:s}};if(void 0===e)throw new Error("apiInstance is undefined");const u=await e.request(l);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:s.data.request_id,action:"requested",type:(null==(a=s.data)?void 0:a.type)||"email"})),(0,r.yi)(u)},m=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.CancelPersonalInfoUpdateRequest),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"cancel"})),(0,r.yi)(l)},_=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.ResendCommunicationInfo),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"requested",type:a.data.type||"Email"})),(0,r.yi)(l)},p=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.ValidateCommunicationOtp),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"requested",type:a.data.type||"EMAIL"})),(0,r.yi)(l)},f=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.ValidateChangePhoneOTP),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"update",type:"phone"})),(0,r.yi)(l)},h=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.ResendChangePhoneOTP),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"requested",type:"phone"})),(0,r.yi)(l)},v=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.ValidateChangeEmailOTP),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"requested",type:"email"})),(0,r.yi)(l)},y=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.ResendChangeEmailOTP),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{request_id:a.data.request_id,action:"requested",type:"email"})),(0,r.yi)(l)},b=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.UpdatePersonalInfoRequest),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.PERSONAL_INFO_UPDATE_REQUEST,{phone:a.data.phone,type:a.data.type,action:"update"})),(0,r.yi)(l)},g=async(e,n)=>{if(void 0===e)throw new Error("apiInstance is undefined");const a=await e.request({url:l.bI,headers:{"content-type":"multipart/form-data"},data:n});return(0,i.sx)(Object.assign({},d.w.ACCOUNT_DOCS,{action:"upload",document_type:"personal_info_update"})),a.data},N=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.PersonalInfoUpdateCloudUpload),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.ACCOUNT_DOCS,{action:"upload",document_type:"personal_info_update"})),(0,r.yi)(l)},x=async(e,n)=>{const a={data:{query:(0,t.y)(s.PersonalInfoUpdateAttachment),variables:n}};if(void 0===e)throw new Error("apiInstance is undefined");const i=await e.request(a);return(0,r.yi)(i)},E=async(e,n)=>{const a={data:n},s={data:{query:(0,t.y)(o.RemovePersonalInfoUpdateRequestAttachment),variables:a}};if(void 0===e)throw new Error("apiInstance is undefined");const l=await e.request(s);return(0,i.sx)(Object.assign({},d.w.ACCOUNT_DOCS,{file_id:a.data.file_id,request_id:a.data.request_id,action:"delete",document_type:"personal_info_update"})),(0,r.yi)(l)}},87702(e,n,a){"use strict";a.d(n,{$:()=>o,K:()=>r});var t=a(8448),i=a(85875),s=a(69500);const o=({action:e,className:n,id:a,children:o})=>(0,s.jsx)(t.P.section,{variants:i.jU,initial:"back"===e?"enterFromLeft":"enterFromRight",animate:"center",id:a,exit:"back"===e?"exitToRight":"exitToLeft",className:`${n} md:w-552 w-full`,children:o},a),r=({action:e,className:n,id:a,children:o})=>(0,s.jsx)(t.P.section,{variants:i.km,initial:"back"===e?"enterFromLeft":"enterFromRight",animate:"center",id:a,exit:"back"===e?"exitToRight":"exitToLeft",className:n,children:o},a)},71538(e,n,a){"use strict";a.d(n,{r:()=>h});var t=a(96534),i=a(80824),s=a(75969),o=a(22949),r=a(23463),l=a(85875),d=a(28816),u=a(67094),c=a(16787),m=a(43051);const _=({documentType:e,requestId:n,entryPoint:a,subType:t,uploadedFiles:p=[],maxAllowedFiles:f=1})=>{var h;const{privateAPIInstance:v}=null!=(h=(0,s.useContext)(o.AuthContext))?h:{}
1,[y,b]=(0,s.useState)(!1),[g,N]=(0,s.useState)(n),[x,E]=(0,s.useState)(p||[]),{setValue:S}=(0,i.xW)(),I=async(n,i)=>{if(n.size>10485760)return b(!1),r.toast.error({title:m.WD.error,message:m.WD.file_size_should_be_less_than});const s=new FormData;s.append("file",n,encodeURIComponent(n.name)),s.append("type",e);const o=i||t;let _;if(o&&s.append("sub_type",o),g&&s.append("request_id",g),a===l.uV.PERSONAL_INFO&&(_=await(0,d.h5)(v,s)),a===l.uV.BUSINESS_INFO)if("identity_document_id"===o){const e={APIInstance:v,variables:{data:{local_file:{file:n},entity:c.zU.BENEFICIAL_OWNER_DOCUMENT}}};_=await(0,c.QM)(e)}else _=await(0,u.x2)(v,s);return w(_,i)},w=(e,n)=>{var a;if(b(!1),e.hasError||!e)return void r.toast.error({message:e.message||m.Sq.ERROR_MESSAGE});g||"identity_document_id"===n||(N(e.data.request_id),S("request_id",e.data.request_id));const i=Array.isArray(x)?x:[x],s=null!=(a=e.data.file)?a:e.data;s&&!s.file_id&&(s.file_id=null==s?void 0:s.file_name),E([...i,Object.assign({},s,{sub_type:n||t})]),S(t,f>1?[...x.filter((e=>e.sub_type===t)),Object.assign({},s,{sub_type:n||t})]:Object.assign({},s,{sub_type:n||t}))},D=(e,n)=>{if(b(!1),e.hasError||!e)return void r.toast.error({message:e.message||m.Sq.ERROR_MESSAGE});const a=Array.isArray(x)?x:[x];S(t,f>1?a.filter((e=>e.file_id!==n&&e.sub_type===t)):""),E(a.filter((e=>e.file_id!==n)))};return{useCommonFileUpload:_,onFileSelect:async(e,n)=>{try{var a;if(e.preventDefault(),null==(a=e.target)||null==(a=a.files)||!a.length)return;if(y)return;b(!0),await I(e.target.files[0],n)}catch(e){console.error("useCommonFileUpload onFileSelect:",e),r.toast.error({message:e.message.includes("status code 413")?m.WD.uploaded_file_size_is_higher:m.Sq.ERROR_MESSAGE})}finally{b(!1)}},onCloudFileSelect:async(n,t,i)=>{try{if(n.size>10485760)return b(!1),r.toast.error({title:m.WD.error,message:m.WD.file_size_should_be_less_than});if(y)return!1;b(!0);const s={type:e.toUpperCase(),file:n,cloud:t,sub_type:i};let o;if(g&&(s.request_id=g),a===l.uV.PERSONAL_INFO&&(o=await(0,d.ds)(v,s)),a===l.uV.BUSINESS_INFO)if("identity_document_id"===i){const e={APIInstance:v,variables:{data:{cloud_file:Object.assign({file:n},t),entity:c.zU.BENEFICIAL_OWNER_DOCUMENT}}};o=await(0,c.QM)(e)}else o=await(0,u.wM)(v,s);return w(o,i)}catch(s){console.error("useCommonFileUpload onFileSelect:",s),r.toast.error({message:s.message.includes("status code 413")?m.WD.uploaded_file_size_is_higher:m.Sq.ERROR_MESSAGE})}finally{b(!1)}},handleFileUploadResponse:w,handleFileRemoveResponse:D,openFile:async(e,n)=>{if(n||"identity_document_id"===t)return void window.open(n,"_blank","noopener noreferrer");const i={request_id:g||"",file_id:e};let s;if(a===l.uV.PERSONAL_INFO&&(s=await(0,d.W8)(v,i)),a===l.uV.BUSINESS_INFO&&(s=await(0,u.se)(v,i)),!s.hasError&&s)return window.open(s.file_url,"_blank","noopener noreferrer");r.toast.error({message:s.message||m.Sq.ERROR_MESSAGE})},removeFile:async(e,n,t)=>{if(y)return!1;b(!0);const i={request_id:g||"",file_id:e};let s;if(a===l.uV.PERSONAL_INFO&&(s=await(0,d.Oe)(v,i)),a===l.uV.BUSINESS_INFO)if("identity_document_id"===t){const e={APIInstance:v,variables:{data:{file_name:n,entity:c.zU.BENEFICIAL_OWNER_DOCUMENT}}};s=await(0,c.Ww)(e)}else s=await(0,u.MA)(v,i);return D(s,e)},uploadFileRequest:I,fileLoader:y,files:x,requestID:g}};
1var p=a(89389),f=a(69500);const h=({documentType:e="name",subType:n,fileInputName:a,title:s,maxAllowedFiles:o=1,additionalLabel:r,label:l})=>{var d,u;const{control:c,formState:{errors:h}}=(0,i.xW)(),v=(0,i.FH)({control:c,name:n}),y=(0,i.FH)({control:c,name:"request_id"}),{onFileSelect:b,onCloudFileSelect:g,removeFile:N,fileLoader:x,openFile:E,uploadFileRequest:S}=_({documentType:e,requestId:y,entryPoint:"BUSINESS_INFO",subType:n,uploadedFiles:null!=v?v:[],maxAllowedFiles:o});return(0,f.jsxs)("div",{className:"flex flex-col gap-0.5",children:[(0,f.jsxs)("div",{className:"flex flex-col md:flex-row md:justify-between",children:[(0,f.jsx)("label",{children:null!=l?l:m.WD.upload_document}),r&&(0,f.jsx)("span",{className:"text-typography-grey text-body-s-regular text-left md:text-right",children:r})]}),(0,f.jsx)(t.ef,{title:s,fileInputName:a,maxAllowedFiles:o,onFileSelect:b,onCloudFileSelect:(e,a)=>g(e,a,n),removeFile:(e,a)=>N(e,a,n),uploadedFiles:v?Array.isArray(v)?v:[v]:[],fileLoader:x,openFile:E,allowDragDrop:!1,uploadFileRequest:S,allowedTypes:void 0,className:""+(h[a]?"border-inputs-error-border":"")}),(0,f.jsx)("div",{className:"text-caption-regular font-light "+(h[a]?"text-typography-error":"text-typography-grey"),children:null!=(d=null==(u=h[a])||null==(u=u.message)?void 0:u.toString())?d:p.A.FILE_UPLOAD_LIMIT})]})}},88404(e,n,a){"use strict";a.d(n,{G:()=>d,n:()=>l});var t=a(23463),i=a(91317),s=a.n(i),o=a(43051),r=a(69500);const l=({title:e,type:n,fields:a=[],children:i,className:s})=>void 0!==i||a.length?(0,r.jsx)(t.Card,{id:"existing-business-info-card",children:(0,r.jsxs)(t.CardContent,{className:"relative",children:[(0,r.jsx)(d,{type:n,title:e}),i||(0,r.jsx)("section",{className:`grid grid-cols-1 items-start gap-6 ${s} `,children:a.map(((e,n)=>{var a;return(e.value||e.element)&&(0,r.jsxs)("dl",{className:"col-span-1 flex flex-col self-start text-start",children:[(0,r.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:e.label}),e.value?(0,r.jsx)("dd",{className:"overflow-hidden text-ellipsis whitespace-nowrap",title:e.value,children:e.value}):e.element]},(null!=(a=e.value)?a:e.label)+n)}))})]})}):null,d=({type:e,title:n})=>(0,r.jsx)(t.Tag,{className:`text-caption-regular absolute -top-3 left-4 border border-solid px-2 py-0.5 ${"existing"===e?"bg-fill-neutral border-border-light text-typography-grey":"bg-fill-light border-border-interactive-resting text-typography-info"} `,children:s()(n)?"existing"===e?o.WD.current_info:o.WD.update_info:n})},63663(e,n,a){"use strict";a.d(n,{i:()=>r});var t=a(1291),i=a(23463),s=a(43051),o=a(69500);const r=({fields:e})=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("dl",{className:"text-typography-grey flex flex-row justify-between",children:[(0,o.jsx)("dt",{children:s.WD.BusinessOwnersLabel.OWNER}),(0,o.jsx)("dt",{className:"self-end",children:s.WD.COMMON.OWNERSHIP})]}),(0,o.jsx)(i.Card,{id:"confirm-ownership-and-ubo-card",children:(0,o.jsx)(i.CardContent,{className:"flex-col gap-3 p-4",children:e.map(((e,n)=>{var a;return(0,o.jsxs)("dl",{className:"flex flex-col gap-1 font-medium md:flex-row md:justify-between "+(e.isDeleted?"text-typography-grey":"text-typography-default"),children:[(0,o.jsx)("dt",{className:"text-body-regular w-full overflow-hidden text-ellipsis",children:e.ownerName}),(0,o.jsx)("dt",{className:"text-body-regular flex items-center justify-end gap-1 md:self-end md:text-right",children:e.isDeleted?(0,o.jsx)(i.Tag,{className:"border-border-light bg-fill-light border border-solid",children:s.WD.deleted}):(0,o.jsxs)(o.Fragment,{children:[" ",(0,o.jsxs)("span",{children:[" ",e.ownerShip," "]}),(0,o.jsx)(t.Int,{name:"percent",size:"xs",color:"current"})]})})]},`${null==(a=e.ownerName)?void 0:a.replaceAll(" ","")}-${n}`)}))})})]})},50818(e,n,a){"use strict";a.d(n,{h:()=>s});var t=a(23463),i=a(69500);const s=({title:e,description:n,id:a="business-info-update-header"})=>(0,i.jsxs)("div",{className:"flex flex-col gap-1 self-start",children:[(0,i.jsx)(t.Header2,{id:a,children:e}),(0,i.jsx)("p",{"aria-labelledby":a,className:"text-body-regular text-typography-grey",children:n})]})},24576(e,n,a){"use strict";a.r(n),a.d(n,{default:()=>Be});var t=a(75969),i=a(23463),s=a(3534),o=a(80824),r=a(85875),l=a(50818),d=a(88404),u=a(71538);const c=(0,t.createContext)(void 0);function m(){const e=(0,t.useContext)(c);if(!e)throw new Error("useBusinessInfoUpdateContext must be used within a BusinessInfoUpdateContext");return e}var _=a(91317),p=a.n(_),f=a(87702),h=a(43051),v=a(69500);const y=({onContinue:e})=>{var n,a;const{control:t,formState:{errors:s},trigger:c,setError:_}=(0,o.xW)(),{businessInfoReference:y,action:b}=m(),g=(0,o.FH)({control:t,name:"new_business_name"}),N=(0,o.FH)({control:t,name:"name_change_document"});return(0,v.jsxs)(f.$,{id:"update-your-business-name-section",className:"flex w-full flex-col gap-8",action:b,children:[(0,v.jsx)(l.h,{title:h.WD.update_your_business_name,description:h.WD.please_provide_your_new_legal_business,id:"update-your-business-name-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:(null==y?void 0:y.company_name)||""},{label:h.WD.COMMON.BUSINESS_TYPE,value:null!=(n=null==(a=r.xw.find((e=>e.value===(null==y?void 0:y.business_type))))?void 0:a.label)?n:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(i.Card,{id:"business-name-change-card",children:(0,v.jsxs)(i.CardContent,{className:"relative",children:[(0,v.jsx)(d.G,{type:"update"}),(0,v.jsxs)("section",{className:"flex w-full flex-col gap-6",children:[(0,v.jsx)(o.xI,{name:"new_business_name",control:t,render:({field:e})=>{var n;return(0,v.jsx)(i.Input,Object.assign({id:"new_business_name_input",label:h.WD.provide_your_new_legal_business_name,placeholder:h.WD.new_legal_business_name,required:!0,showError:!!s.new_business_name,error:null==(n=s.new_business_name)?void 0:n.message},e))}}),(0,v.jsx)(u.r,{title:h.WD.business_name_amendment_document,fileInputName:"name_change_document",documentType:"name",subType:"name_change_document",maxAllowedFiles:5})]})]})}),(0,v.jsx)(i.Button,{id:"update-your-business-name-continue-button",className:"w-226px self-center",onClick:async()=>{const n=await c("new_business_name"),a=await c("name_change_document");g!==(null==y?void 0:y.company_name)?n&&a&&e():_("new_business_name",{type:"manual",message:"Please provide a different business name"})},disabled:p()(g)||p()(N)||(null==g?void 0:g.trim())===(null==y?void 0:y.company_name),"data-test-id":"update-your-business-name-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})};var b=a(1291);const g=a.p+"license-example.a75f159b2ee8c705.svg",N=a.p+"passport-example.6008e58c0acb68d5.svg";var x=a(72617),E=a(8448);const S=({fieldName:e,documentType:n,subType:a,fileInputName:t,isReferenceRequired:s=!0})=>{const{control:l,setValue:d}=(0,o.xW)(),c=(0,o.FH)({control:l,name:e}),m=(0,o.FH)({control:l,name:t});return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("fieldset",{className:"flex flex-col items-start gap-4 md:flex-row",children:(0,v.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,v.jsx)("p",{className:"text-body-regular text-typography-default",children:h.WD.select_your_document_type}),(0,v.jsx)("div",{className:"flex w-full flex-row flex-wrap items-start gap-4",children:r.EU.map((n=>(0,v.jsx)(o.xI,{control:l,name:e,render:({field:{value:a}})=>(0,v.jsx)(i.Card,{background:a!==n.value?"primary":"brandSecondaryLight",className:` ${a!==n.value?"":"border-border-interactive-resting"} !rounded`,children:(0,v.jsx)(i.CardContent,{className:"w-full px-6 py-3",children:(0,v.jsx)(i.RadioButton,{name:e,value:n.value,id:`${e}-${n.value}`,label:n.label,checked:a===n.value,isPaddingRequired:!1,isHoverRequired:!1,onChange:()=>{d(e,n.value,{shouldValidate:!0}),p()(m)||d(t,null)}})})})},n.value)))})]})}),(0,v.jsx)(i.Divider,{orientation:"horizontal"}),(0,v.jsx)(x.N,{initial:!1,children:c&&(0,v.jsxs)(E.P.div,{initial:{opacity:0,y:-20}
1,animate:{opacity:1,y:0,transition:{type:"spring",bounce:0,duration:.7,delayChildren:.3,staggerChildren:.05}},className:"flex flex-col gap-6",children:[(0,v.jsxs)("section",{className:"flex flex-col gap-6 md:flex-row md:items-start",children:[(0,v.jsxs)("section",{className:"flex flex-col gap-6",children:[(0,v.jsxs)("dl",{className:"flex flex-col self-start text-start",children:[(0,v.jsx)("dt",{className:"text-body-regular text-typography-default",children:c===r.EU[0].value?h.WD.IDENTITY_VERIFICATION_OPTIONS.license.label:h.WD.IDENTITY_VERIFICATION_OPTIONS.passport.label}),(0,v.jsx)("dt",{className:"text-typography-grey",children:c===r.EU[0].value?s?h.WD.upload_a_selfie_along_with_your:h.WD.upload_a_photo_of_the_owner:s?h.WD.upload_a_selfie_along_with_your_2:h.WD.upload_a_photo_of_the_passport})]}),(0,v.jsxs)("dl",{className:"flex flex-col gap-4",children:[(0,v.jsxs)("dt",{className:"text-typography-default flex flex-row items-center",children:[(0,v.jsx)(b.Int,{name:"check-circle-fill",size:"md"}),(0,v.jsx)("p",{className:"ml-4",children:h.WD.signature_and_photo_must_be_visible})]}),(0,v.jsxs)("dt",{className:"text-typography-default flex flex-row items-center",children:[(0,v.jsx)(b.Int,{name:"check-circle-fill",size:"md"}),(0,v.jsxs)("p",{className:"ml-4",children:[" ",h.WD.information_should_be_clear_and]})]}),(0,v.jsxs)("dt",{className:"text-typography-default flex flex-row items-center",children:[(0,v.jsx)("p",{className:"bg-fill-neutral flex h-6 w-6 items-center justify-center rounded-full",children:(0,v.jsx)(b.Int,{name:"x"})}),(0,v.jsxs)("p",{className:"ml-4",children:[" ",h.WD.cannot_be_expired_or_a_military]})]})]})]}),s&&(0,v.jsxs)("section",{className:"flex flex-col items-start md:max-w-[11.3125rem] md:items-center md:self-end",children:[(0,v.jsx)(i.Image,{src:"LICENSE"===c?g:N,name:"ID Document Example",width:181,height:181,className:"rounded-xl"}),(0,v.jsx)("p",{className:"text-typography-grey text-caption-regular text-center",children:h.WD.example_of_photo_and_id_needed})]})]}),(0,v.jsx)(i.Divider,{orientation:"horizontal"}),(0,v.jsx)(u.r,{title:c===r.EU[0].value?h.WD.front_of_driver_s_license_state:h.WD.main_page_of_passport,label:h.WD.upload_photo,additionalLabel:s?h.WD.upload_a_photo_like_the_example:"",fileInputName:t,documentType:n,subType:a})]})})]})},I=({onContinue:e})=>{const{trigger:n,formState:{errors:a},control:t}=(0,o.xW)(),{action:s,selectedChange:r}=m(),d=(0,o.FH)({control:t,name:"users_identity_type"}),u=(0,o.FH)({control:t,name:"user_identity_document"});return(0,v.jsxs)(f.$,{id:`${null==r?void 0:r.value}-update-your-business-name-section-verify-identity`,className:"flex flex-col gap-8",action:s,children:[(0,v.jsxs)("section",{className:"flex flex-col gap-6",children:[(0,v.jsx)(l.h,{title:h.WD.verify_your_identity,description:h.WD.please_provide_your_government_id,id:"update-your-business-name-header"}),(0,v.jsx)(S,{fieldName:"users_identity_type",documentType:"name",fileInputName:"user_identity_document",subType:"user_identity_document",title:h.WD.upload_your_government_id})]}),(0,v.jsx)(i.Button,{id:"update-your-business-name-continue-button",className:"w-226px self-center",onClick:async()=>{const a=await n("users_identity_type"),t=await n("user_identity_document");a&&t&&e()},disabled:!!a.users_identity_type||!!a.user_identity_document||p()(u)||p()(d),"data-test-id":"update-your-business-name-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})};var w=a(71067);const D=({onContinue:e})=>{var n,a;const{control:t,getValues:s,setValue:r,trigger:d}=(0,o.xW)(),{ownersData:u,handleUpdateOwnerShip:c,selectedChange:_,uboData:p,action:y,getRemainingOwnershipPercentage:g}=m(),N=(0,o.FH)({control:t,name:"ubo_details_authorized"}),x=(0,o.FH)({control:t,name:"ownership_percentage",defaultValue:null!=(n=null==u||null==(a=u[0])?void 0:a.ownership_percentage.toString())?n:"0"}),E=(0,o.FH)({control:t,name:"new_business_type"}),S=()=>E!==w.e8.single_member_llc&&E!==w.e8.sole_proprietorship;return(0,v.jsxs)(f.$,{id:`${null==_?void 0:_.value}-confirm-ownership-and-ubo`,className:"flex flex-col gap-8",action:y,children:[(0,v.jsx)(l.h,{title:h.WD.confirm_ownership_info,description:h.WD.let_us_know_who_owns_25_or_more_of_the_business,id:"confirm-ownership-and-ubo-header"}),(0,v.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,v.jsxs)("dl",{className:"text-typography-grey text-body-s-regular flex flex-row justify-between px-4",children:[(0,v.jsx)("dt",{children:h.WD.BusinessOwnersLabel.OWNER}),(0,v.jsx)("dt",{className:"self-end",children:h.WD.COMMON.OWNERSHIP})]}),null==u?void 0:u.filter((e=>e.is_applicant)).map((e=>{var n;return(0,v.jsxs)("dl",{className:"border-border-light flex flex-col gap-1 rounded-xl border border-solid p-4 font-medium md:flex-row md:items-center md:justify-between",children:[(0,v.jsxs)("div",{className:"text-body-regular flex w-full flex-col gap-0.5 overflow-hidden text-ellipsis",children:[(0,v.jsx)("dt",{className:"",children:null!=(n=e.full_name)?n:""}),(0,v.jsx)("dd",{className:"text-typography-grey text-body-s-regular font-normal",children:null==e?void 0:e.email})]}),(0,v.jsxs)("div",{className:"text-body-regular text-typography-default flex items-center text-left md:self-end md:text-right",children:[(0,v.jsx)("dt",{children:!1===S()?100:x||e.ownership_percentage}),(0,v.jsx)(b.Int,{name:"percent",size:"xs",color:"default"})]})]},`${e.dob}-${e.phone}`)})),!1!==S()&&(null==p?void 0:p.map((e=>{var n;return(0,v.jsxs)("dl",{className:"border-border-light flex flex-col gap-1 rounded-xl border border-solid p-4 font-medium md:flex-row md:items-center md:justify-between",children:[(0,v.jsxs)("div",{className:"text-body-regular text-typography-default flex w-full flex-col gap-0.5 overflow-hidden text-ellipsis",children:[(0,v.jsx)("dt",{className:"",children:null!=(n=[e.first_name,e.middle_name,e.last_name].concat().join(" "))?n:""}),(0,v.jsx)("dd",{className:"text-typography-grey text-body-s-regular font-normal",children:null==e?void 0:e.email})]}),(0,v.jsxs)("div",{className:"text-body-regular text-typography-default flex items-center md:text-right",children:[(0,v.jsx)("dt",{children:e.ownership_percentage}),(0,v.jsx)(b.Int,{name:"percent",size:"xs",color:"default"})]})]},`${e.dob}-${e.phone}`)}))),S()&&(0,v.jsx)("button",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled mt-4 w-full cursor-pointer self-center text-center font-medium underline",tabIndex:0,onClick:c,children:h.WD.update_ownership_info})]}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:t,name:"ubo_details_authorized",render:({field:e})=>(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-body-s-regular",children:g()>25?h.WD.i_confirm_no_other_owners_has_more_than_25_of_ownership:h.WD.i_confirm_that_the_information_provided})},e,{checked:e.value}))})}),(0,v.jsx)(i.Button,{id:"confirm-ownership-and-ubo-continue-button",className:"w-226px self-center",onClick:async()=>
1{if(!(await d("ubo_details_authorized")))return;var n,a;s("ownership_percentage")||r("ownership_percentage",null!=(n=null==u||null==(a=u[0])?void 0:a.ownership_percentage)?n:100,{shouldValidate:!0});e()},disabled:!N,"data-test-id":"confirm-ownership-and-ubo-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})},k=({onContinue:e})=>{var n;const{control:a,setValue:s,getValues:r}=(0,o.xW)(),{ownersData:d,handleAddUBO:u,uboData:c,handleUboDetail:_,getRemainingOwnershipPercentage:y,selectedChange:g,action:N,handleUBOPercentageChange:S,ownershipData:I}=m(),w=(0,o.FH)({control:a,name:"ownership_percentage",defaultValue:null!=I?I:"0"});(0,t.useEffect)((()=>{r("ownership_percentage")||s("ownership_percentage",I,{shouldValidate:!0,shouldDirty:!0})}),[]);const D=(0,o.FH)({control:a,name:"updated_ubo_details_authorized"});(0,t.useEffect)((()=>{s("ubo_details_authorized",!!D)}),[D]);const k=y();return(0,v.jsxs)(f.$,{id:`${g}-update-ownership-and-ubo`,className:"flex flex-col gap-8",action:N,children:[(0,v.jsx)(l.h,{title:h.WD.update_your_ownership_info,description:h.WD.adjust_the_percentage_of_ownership,id:"update-ownership-and-ubo-header"}),(0,v.jsxs)("section",{className:"flex flex-col gap-2",children:[(0,v.jsxs)("dl",{className:"text-typography-grey text-body-s-regular flex flex-row justify-between pl-4 pr-16",children:[(0,v.jsx)("dt",{children:h.WD.BusinessOwnersLabel.OWNER}),(0,v.jsx)("dt",{className:"self-end",children:h.WD.COMMON.OWNERSHIP})]}),null==d||null==(n=d.filter((e=>e.is_applicant)))?void 0:n.map(((e,n)=>{var t;return(0,v.jsxs)("dl",{className:"border-border-light flex flex-row gap-2 rounded-xl border border-solid p-4 font-medium md:items-center md:justify-between",children:[(0,v.jsxs)("div",{className:"text-body-regular max-w-1/2 flex w-full flex-col overflow-hidden text-ellipsis",children:[(0,v.jsx)("dt",{className:"",children:null!=(t=e.full_name)?t:""}),(0,v.jsx)("dd",{className:"text-typography-grey text-body-s-regular font-normal",children:null==e?void 0:e.email})]}),(0,v.jsx)("div",{className:"text-typography-error text-caption-regular hidden w-28 flex-1 flex-col items-end justify-center text-right md:flex",children:(0,v.jsx)("p",{children:(isNaN(w)||""===w)&&h.WD.required_field_please_enter_a_value})}),(0,v.jsxs)("div",{className:"text-body-regular text-typography-default flex w-32 flex-shrink-0 items-center justify-start gap-6 text-left md:self-end md:text-right",children:[(0,v.jsx)(o.xI,{control:a,name:"ownership_percentage",render:({field:{value:e,onChange:n},fieldState:{error:a}})=>{const t=k+parseFloat(""===e||p()(e)?0:null==e?void 0:e.toString());return(0,v.jsx)(i.PercentageInput,{value:e,isClearRequired:!1,className:"w-20",onChange:n,showError:e<25||isNaN(e),placeholder:"25",maxValue:t})}}),(0,v.jsx)("div",{className:"w-6 flex-shrink-0","aria-hidden":"true"})]})]},`${e.dob}-${e.phone}`)})),null==c?void 0:c.map(((e,n)=>{var a,t;const s=k+parseFloat(isNaN(e.ownership_percentage)?"0":null==(a=e.ownership_percentage)?void 0:a.toString());return(0,v.jsxs)("dl",{className:"border-border-light flex flex-col gap-2 rounded-xl border border-solid p-4 font-medium md:flex-row md:items-center md:justify-between",children:[(0,v.jsxs)("div",{className:"text-body-regular text-typography-default max-w-1/2 flex w-full flex-col overflow-hidden text-ellipsis",children:[(0,v.jsx)("dt",{className:"",children:null!=(t=[e.first_name,e.middle_name,e.last_name].concat().join(" "))?t:""}),(0,v.jsx)("dd",{className:"text-typography-grey text-body-s-regular font-normal",children:null==e?void 0:e.email})]}),(0,v.jsxs)("div",{className:"text-typography-error text-caption-regular hidden w-28 flex-1 flex-col items-center justify-center text-right md:flex",children:[(0,v.jsx)("p",{children:e.ownership_percentage<25&&h.WD.ownership_should_be_more_than_25}),(0,v.jsx)("p",{children:isNaN(e.ownership_percentage)&&h.WD.required_field_please_enter_a_value})]}),(0,v.jsxs)("div",{className:"text-body-regular text-typography-default flex w-32 items-center justify-start gap-6 md:text-right",children:[(0,v.jsx)(i.PercentageInput,{value:e.ownership_percentage,className:"w-20",isClearRequired:!1,onChange:e=>S(n,parseFloat(e.target.value)),maxValue:s,showError:e.ownership_percentage<25||isNaN(e.ownership_percentage),placeholder:"25"}),(0,v.jsx)("button",{className:"flex items-center justify-center "+(e.ownership_percentage<25||isNaN(e.ownership_percentage)?"text-typography-grey":"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled"),type:"button",disabled:e.ownership_percentage<25||isNaN(e.ownership_percentage),onClick:()=>_(n),children:(0,v.jsx)(b.Int,{name:"chevron-right",size:"md"})})]})]},`${e.dob}-${e.phone}`)}))]}),(0,v.jsxs)(x.N,{children:[(c.length>=3||k<25)&&(0,v.jsx)(E.P.div,{initial:{opacity:0,y:50}
1,animate:{opacity:1,y:0},exit:{opacity:0,y:-50},className:"border-border-light flex flex-row items-center gap-6 rounded-xl border border-solid p-4",children:(0,v.jsxs)("dl",{className:"flex w-full flex-col items-center",children:[(0,v.jsx)("dt",{className:"text-body-medium text-center",children:h.WD.there_s_no_space_for_more}),(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular text-center",children:h.WD.add_another_owner_by_adjusting_your})]})}),w<=75&&c.length<3&&k>=25&&(0,v.jsx)(E.P.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50},className:"border-border-interactive-resting text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled flex flex-row items-center gap-6 rounded-xl border border-dashed p-4",children:(0,v.jsxs)("dl",{className:"flex w-full flex-col items-center",children:[(0,v.jsx)("dt",{className:"text-body-regular text-center",children:(0,v.jsxs)("button",{id:"add-owner-button",className:"flex w-44 flex-row items-center gap-2 self-center",onClick:u,disabled:!1,"data-test-id":"add-owner-button",children:[(0,v.jsx)(b.Int,{name:"plus",size:"xs",color:"current"}),(0,v.jsx)("span",{className:"font-medium",children:h.WD.add_another_owner})]})}),(0,v.jsx)("dd",{className:"text-center",children:h.WD.include_anyone_who_owns_25_or_more_of_the_business})]})}),"\\"]}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:a,name:"updated_ubo_details_authorized",render:({field:e})=>(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-body-s-regular",children:k>25?h.WD.i_confirm_no_other_owners_has_more_than_25_of_ownership:h.WD.i_confirm_that_the_information_provided})},e,{checked:e.value}))})}),(0,v.jsx)(i.Button,{id:"update-ownership-and-ubo-continue-button",className:"w-226px self-center",onClick:e,disabled:!(parseFloat(w)>0)||Number.isNaN(parseFloat(w))||c.some((e=>e.ownership_percentage<25||isNaN(e.ownership_percentage)))||!D||k<0,"data-test-id":"update-your-business-name-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})};var O=a(73681),A=a.n(O),T=a(72756);const C=({handleNext:e,uboSteps:n,isDisabled:a,nextButtonType:t,handlePrevious:s,isUpdate:o=!1})=>(0,v.jsxs)("footer",{className:"border-border-light flex flex-row items-center justify-between border-t border-solid px-6 py-4",children:[(null!=n?n:0)>0&&(0,v.jsx)(i.Button,{buttonVariant:"secondary",onClick:s,className:"left-0 flex min-w-[150px] flex-row items-center gap-3",disabled:!1,"data-test-id":"add-update-ubo-previous-button",children:(0,v.jsx)("p",{children:h.WD.previous})}),(0,v.jsx)(i.Button,Object.assign({buttonVariant:"primary"},"submit"!==t&&{onClick:e},{className:"ml-auto flex min-w-[150px] flex-row items-center gap-3",disabled:a,type:t,"data-test-id":"add-ubo-continue-button",children:(0,v.jsx)("p",{children:"submit"===t?o?h.WD.update_owner:h.WD.add_owner:h.WD.next})}))]}),j=({remainingOwnerShipPercentage:e,handleNext:n,action:a})=>{var t,s;const{control:r,formState:{errors:l}}=(0,o.xW)(),{selectedChange:d}=m(),{spotlightState:{data:u}}=(0,i.useModal)(),{uboDetails:c}=null!=u?u:{},_=(0,o.FH)({name:"ownership_percentage",control:r,defaultValue:null!=(t=null==c?void 0:c.ownership_percentage)?t:0}),y=(0,o.FH)({name:"first_name",control:r}),g=(0,o.FH)({name:"last_name",control:r}),N=(0,o.FH)({name:"ssn",control:r}),x=(0,o.FH)({name:"dob",control:r}),E=(0,o.FH)({name:"citizenship",control:r}),S=e=>{let n;return n=e?(0,O.isMoment)(e)?e:A()(e):void 0,n};return(0,v.jsxs)(f.K,{id:`${null==d?void 0:d.value}-personal-info`,action:a,className:"flex flex-col",children:[(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 p-6",children:[(0,v.jsx)("div",{className:""+(p()(null==c?void 0:c.id)?"flex w-full flex-col":"hidden"),children:(0,v.jsx)(o.xI,{control:r,name:"ownership_percentage",render:({field:{value:n,onChange:a},fieldState:{error:t}})=>{var s;return(0,v.jsx)(i.PercentageInput,{value:n,onChange:a,label:h.WD.percentage_owned,secondaryLabel:`Remaining Ownership Percentage: ${e}%`,placeholder:h.WD.only_add_owners_with_25_or_more_ownership,showError:!0,maxValue:e+parseFloat(null!=(s=null==c?void 0:c.ownership_percentage)?s:0),error:null==t?void 0:t.message})}})}),(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 md:flex-row md:items-start",children:[(0,v.jsx)(o.xI,{control:r,
1name:"first_name",render:({field:{value:e,onChange:n},fieldState:{error:a}})=>(0,v.jsx)(i.Input,{value:e,onChange:n,label:h.WD.first_name,placeholder:h.WD.enter_first_name,showError:!0,error:null==a?void 0:a.message})}),(0,v.jsx)(o.xI,{control:r,name:"middle_name",render:({field:{value:e,onChange:n},fieldState:{error:a}})=>(0,v.jsx)(i.Input,{value:e,onChange:n,label:h.WD.middle_name,secondaryLabel:h.WD.DDAClosureLabels.REASONS.TEXTAREA_OPTIONAL,placeholder:h.WD.enter_middle_name,showError:!0,error:null==a?void 0:a.message})})]}),(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 md:flex-row md:items-start",children:[(0,v.jsx)(o.xI,{control:r,name:"last_name",render:({field:{value:e,onChange:n},fieldState:{error:a}})=>(0,v.jsx)("div",{className:"md:max-w-1/2 w-full",children:(0,v.jsx)(i.Input,{value:e,onChange:n,label:h.WD.last_name,placeholder:h.WD.enter_last_name,showError:!0,error:null==a?void 0:a.message})})}),(0,v.jsx)("div",{className:"md:max-w-1/2 w-full",children:(0,v.jsx)(T.A,{label:h.WD.COMMON.CITIZENSHIP,name:"citizenship",placeholder:h.WD.select_citizenship,showError:!!l.citizenship,error:null==(s=l.citizenship)?void 0:s.message,valueType:"code"})})]}),(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 md:flex-row md:items-start",children:[(0,v.jsx)(o.xI,{control:r,name:"ssn",render:({field:{value:e,onChange:n,name:a},fieldState:{error:t}})=>(0,v.jsx)(i.SSNInput,{value:e,onChange:n,placeholder:"xxx-xx-xxxx",label:"SSN",secondaryLabel:h.WD.social_security_number,showError:!!t,name:a,error:null==t?void 0:t.message})}),(0,v.jsx)(o.xI,{control:r,name:"dob",render:({field:{onChange:e,value:n}})=>(0,v.jsx)(i.DatePickerWithoutContext,{label:h.WD.COMMON.DATE_OF_BIRTH,date:S(n),placeholder:h.WD.select_ubo_s_date_of_birth,displayFormat:"MM-DD-YYYY",minDate:A()().subtract(120,"year"),maxDate:A()().subtract(18,"year"),showDefaultInputIcon:!1,className:"w-full",onFocusChange:()=>{},customInputIcon:(0,v.jsx)(b.Int,{name:"calendar",size:"sm",color:"grey"}),onChange:e})})]})]}),(0,v.jsx)(C,{isDisabled:parseFloat(null!=_?_:0)<25||""===_||void 0===_||p()(y)||p()(g)||p()(N)||p()(x)||p()(E),nextButtonType:"button",handleNext:n})]})};var U=a(41387),R=a(68193),P=a(65789);const F=({setUboSteps:e,uboSteps:n,handleNext:a,handlePrevious:t,action:s})=>{const{control:r,formState:{errors:l},setValue:d}=(0,o.xW)(),{selectedChange:u}=m(),c=(0,o.FH)({control:r,name:"email"}),_=(0,o.FH)({control:r,name:"phone"}),y=(0,o.FH)({control:r,name:"address.primary_line"}),b=(0,o.FH)({control:r,name:"address.city"}),g=(0,o.FH)({control:r,name:"address.state"}),N=(0,o.FH)({control:r,name:"address.zip_code"}),x=e=>{Object.keys(e).forEach((n=>{"secondary_line"===n&&(n="address_line_2"),d(`address.${n}`,e[n],{shouldDirty:!0,shouldTouch:!0})}))};return(0,v.jsxs)(f.K,{id:`${null==u?void 0:u.value}-contact-info`,action:s,className:"flex flex-col",children:[(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 p-6",children:[(0,v.jsx)(o.xI,{control:r,name:"email",render:({field:{value:e,onChange:n},fieldState:{error:a}})=>(0,v.jsx)(i.EmailInput,{value:e,name:"email",onChange:n,label:h.WD.COMMON.EMAIL,placeholder:h.WD.enter_email_address,showError:!!a,error:null==a?void 0:a.message})}),(0,v.jsx)(o.xI,{control:r,name:"phone",render:({field:{value:e,onChange:n,name:a},fieldState:{error:t}})=>(0,v.jsx)(i.PhoneNumberInput,{value:e,onChange:n,name:a,label:h.WD.COMMON.PHONE,placeholder:"(201) 555-5555",showError:!!t,error:null==t?void 0:t.message})}),(0,v.jsx)(o.xI,{control:r,name:"address.primary_line",render:({field:{value:e,name:n},fieldState:{error:a}})=>(0,v.jsx)(U.r,{id:"address",name:n,placeholder:h.WD.enter_address,maxLength:40,showError:!!a,error:null==a?void 0:a.message,setAddressDetails:x,defaultValue:e,secondaryLabel:h.WD.no_p_o_boxes,label:h.WD.COMMON.PERSONAL_ADDRESS})}),(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 md:flex-row",children:[(0,v.jsx)(o.xI,{control:r,name:"address.unit",render:({field:{value:e,onChange:n,name:a},fieldState:{error:t}})=>(0,v.jsx)(i.Input,{type:"text",label:h.WD.unit,secondaryLabel:h.WD.DDAClosureLabels.REASONS.TEXTAREA_OPTIONAL,showError:!0,error:null==t?void 0:t.message,placeholder:h.WD.enter_unit,maxLength:40,onChange:n,name:a,value:e})}
1),(0,v.jsx)(o.xI,{control:r,name:"address.city",render:({field:{value:e,onChange:n,name:a},fieldState:{error:t}})=>(0,v.jsx)(i.Input,{type:"text",label:h.WD.city,name:a,showError:!0,error:null==t?void 0:t.message,placeholder:h.WD.enter_city,onChange:n,value:e})})]}),(0,v.jsxs)("fieldset",{className:"flex flex-col gap-6 md:flex-row",children:[(0,v.jsx)("div",{className:"md:max-w-1/2 w-full",children:(0,v.jsx)(R.Q,{name:"address.state",label:h.WD.state,showError:!0,error:"",placeholder:h.WD.select_state,"data-test-id":"ubo-contact-info-state-select",rudderStackData:P.w.OPTION.STATE})}),(0,v.jsx)("div",{className:"md:max-w-1/2 w-full",children:(0,v.jsx)(o.xI,{control:r,name:"address.zip_code",render:({field:{value:e,onChange:n,name:a},fieldState:{error:t}})=>(0,v.jsx)(i.Form.NumberInput,{label:h.WD.zip_code,showError:!0,className:"w-full",name:a,error:null==t?void 0:t.message,type:"text",placeholder:h.WD.enter_zip_code,maxLength:5,onChange:n,value:e})})})]})]}),(0,v.jsx)(C,{nextButtonType:"button",uboSteps:n,handlePrevious:t,handleNext:a,isDisabled:p()(c)||p()(_)||p()(y)||p()(b)||p()(g)||p()(N)})]})},M=({setUboSteps:e,uboSteps:n,handlePrevious:a,action:t})=>{const{control:s}=(0,o.xW)(),{selectedChange:r}=m(),{spotlightState:{data:l}}=(0,i.useModal)(),{uboDetails:d}=null!=l?l:{},u=(0,o.FH)({name:"identity_document_type",control:s}),c=(0,o.FH)({name:"identity_document_id",control:s});return(0,v.jsxs)(f.K,{id:`${null==r?void 0:r.value}-contact-info`,action:t,className:"flex flex-col",children:[(0,v.jsx)("fieldset",{className:"flex flex-col gap-6 p-6",children:(0,v.jsx)(S,{fieldName:"identity_document_type",documentType:"name",fileInputName:"identity_document_id",subType:"identity_document_id",title:h.WD.upload_ubo_identity_document,isReferenceRequired:!1})}),(0,v.jsx)(C,{handlePrevious:a,uboSteps:n,nextButtonType:"submit",isDisabled:p()(u)||p()(c),isUpdate:!p()(null==d?void 0:d.id)})]})};var B=a(83179),L=a.n(B);const q=()=>{const[e,n]=(0,t.useState)(0),{trigger:a,handleSubmit:s}=(0,o.xW)(),{spotlightState:{data:d}}=(0,i.useModal)(),{updateIndex:u,onUBOSubmit:c}=null!=d?d:{},[_,p]=(0,t.useState)("next"),{uboData:f,getUpdatedOwnershipPercentage:y}=m(),b=(0,t.useMemo)((()=>{const e=y();return 100-f.reduce(((e,n)=>{var a;return e+(null!=(a=n.ownership_percentage)?a:0)}),0)-(null!=e?e:0)}),[]),g=async()=>{if(0===e){await a(["first_name","last_name","ssn","citizenship","dob","ownershipPercentage"])&&(p("next"),n(e+1))}else if(1===e){const t=await a("email"),i=await a("phone"),s=await a("address.address_line_1"),o=await a("address.city"),r=await a("address.state"),l=await a("address.zip_code");t&&i&&s&&o&&r&&l&&(p("next"),n(e+1))}},N=()=>{0!==e&&(p("back"),n((e=>e-1)))};return(0,v.jsxs)("section",{id:"add-update-ubo",className:"flex flex-col gap-8",children:[(0,v.jsx)(l.h,{title:L()(u)?h.WD.edit_this_owner_s_info:h.WD.add_another_owner,description:L()(u)?h.WD.make_updates_to_their_personal_info:h.WD.enter_their_personal_info_contact_info,id:"add-update-ubo-header"}),(0,v.jsxs)(i.Card,{children:[(0,v.jsx)(i.CardHeader,{className:"border-b-0 px-0 pb-0",children:(0,v.jsx)("ol",{"aria-label":h.WD.progress,className:"flex w-full flex-row items-center justify-start gap-1",children:r.Ac.map(((n,a)=>(0,v.jsx)("li",{"aria-current":"step",className:"w-1/3",children:(0,v.jsxs)("dl",{className:"flex flex-col items-center justify-between gap-3",children:[(0,v.jsx)("dt",{className:"text-body-medium "+(e>=a?"text-typography-info":"text-typography-grey"),children:n.title}),(0,v.jsx)("dt",{className:"h-1 w-full self-end "+(e>=a?"bg-fill-interactive-resting":"bg-fill-neutral")})]})},n.title)))})}),(0,v.jsx)(i.CardContent,{className:"flex-col p-0",children:(0,v.jsx)("form",{className:"add-ubo-form flex flex-col gap-8",onSubmit:s((e=>c(e,u))),children:(0,v.jsxs)(x.N,{mode:"wait",children:[0===e&&(0,v.jsx)(j,{handleNext:g,action:_,remainingOwnerShipPercentage:b}),1===e&&(0,v.jsx)(F,{handleNext:g,setUboSteps:n,uboSteps:e,handlePrevious:N,action:_}),2===e&&(0,v.jsx)(M,{setUboSteps:n,uboSteps:e,handlePrevious:N,action:_})]})})})]})]})};var W=a(26443),V=a(63663),Y=a(36195);const G=()=>{const{getValues:e,control:n}
1=(0,o.xW)(),a=e(),{personalInfoData:i,uboData:s,ownersData:l}=m(),u=(0,o.FH)({control:n,name:"new_business_type"}),c=(0,t.useMemo)((()=>{var e,n,t,i;if("sole_proprietorship"===u||"single_member_llc"===u){const e=null==l?void 0:l.map((e=>{var n,a,t,i,s,o;return e.is_applicant?{ownerName:`${null!=(n=e.first_name)?n:""} ${null!=(a=e.middle_name)?a:""} ${null!=(t=e.last_name)?t:""}`,ownerShip:100,isDeleted:!1}:{ownerName:`${null!=(i=e.first_name)?i:""} ${null!=(s=e.middle_name)?s:""} ${null!=(o=e.last_name)?o:""}`,ownerShip:0,isDeleted:!0}}));return null!=e?e:[]}const o=null!=(e=null==l?void 0:l.find((e=>e.is_applicant)))?e:{},r={ownerName:`${null!=(n=o.first_name)?n:""} ${null!=(t=o.middle_name)?t:""} ${null!=(i=o.last_name)?i:""}`,ownerShip:a.ownership_percentage,isDeleted:!1},d=[...s].map((e=>{var n,a,t;return{ownerName:`${null!=(n=e.first_name)?n:""} ${null!=(a=e.middle_name)?a:""} ${null!=(t=e.last_name)?t:""}`,ownerShip:e.ownership_percentage,isDeleted:!1}})),c=null==l?void 0:l.filter((e=>void 0===s.find((n=>n.id===e.id))&&!1===e.is_applicant)),m=[r];return d.length>0&&m.push(...d),c&&c.length>0&&c.forEach((e=>{var n,a,t;m.push({ownerName:`${null!=(n=e.first_name)?n:""} ${null!=(a=e.middle_name)?a:""} ${null!=(t=e.last_name)?t:""}`,ownerShip:0,isDeleted:!0})})),m}),[null==i?void 0:i.name.data.name,a.ownership_percentage,s]),_=(0,t.useMemo)((()=>{var e;if(!l||!s)return[];const n=[...s].filter((e=>"UPDATE"===e.action));return null!=(e=(0,W.JX)([...l],[...n]))?e:[]}),[l,s]),f=(0,t.useMemo)((()=>{var e;return null!=(e=[...s].filter((e=>""===e.id||void 0===e.id)))?e:[]}),[s]);return(0,v.jsxs)(v.Fragment,{children:[(null==f?void 0:f.length)>0&&(0,v.jsx)("section",{className:"flex flex-col gap-6",children:f.map((e=>{var n,a,t,i,s;return(0,v.jsx)("section",{className:"flex w-full flex-col gap-6",children:(0,v.jsx)(d.n,{className:"w-full grid-cols-1 md:grid-cols-2",fields:[{label:h.WD.COMMON.FULL_NAME,value:e.first_name+" "+e.middle_name+" "+e.last_name},{label:h.WD.BusinessOwnersLabel.OWNERSHIP_PERCENTAGE,value:e.ownership_percentage.toString()},{label:h.WD.COMMON.DATE_OF_BIRTH,value:A()(e.dob).format(r.Bc)},{label:"SSN",value:(0,W.Fb)(null!=(n=e.ssn)?n:"")},{label:h.WD.COMMON.EMAIL,value:e.email},{label:h.WD.COMMON.PHONE,value:(0,W.n4)(null!=(a=e.phone)?a:"")},{label:h.WD.COMMON.ADDRESS,value:(0,Y.getFullAddress)(null!=(t=null!=(i=e.address.address_line_1)?i:e.address.primary_line)?t:"",null!=(s=e.address.unit)?s:"",e.address.city,e.address.state,e.address.zip_code)}],title:h.WD.new_ubo,type:"existing"})})}))}),_.length>0&&(0,v.jsx)("section",{className:"flex flex-col gap-6",children:null==_?void 0:_.map((e=>{var n,a,t,i;return(0,v.jsxs)("section",{className:"flex flex-col gap-6",children:[(0,v.jsx)("div",{className:"font-medium",children:(0,W.qt)(null!=(n=null==e||null==(a=e.data)?void 0:a.full_name)?n:"")}),(0,v.jsxs)("section",{className:"grid w-full auto-rows-auto grid-cols-1 gap-6 md:grid-cols-2 md:items-center",children:[(0,v.jsx)("div",{className:"col-span-1",children:(0,v.jsx)(d.n,{fields:null==(t=Object.keys(null==e?void 0:e.changes))||null==(t=t.filter((e=>!1===["ownership_percentage","request_id"].includes(e))))?void 0:t.map((n=>{var a,t,i,s,o,l,d;if("address"===n){var u,c;const{address_line_1:n,unit:a,city:t,state:i,zip_code:s}=null!=(u=null==e||null==(c=e.data)?void 0:c.address)?u:{};return{label:h.WD.COMMON.ADDRESS,value:(0,Y.getFullAddress)(null!=n?n:"",null!=a?a:"",null!=t?t:"",null!=i?i:"",null!=s?s:"")}}return"ssn"===n?{label:"SSN",value:p()(null==e||null==(s=e.changes)||null==(s=s.ssn)?void 0:s.old_value)?"N/A":(0,W.Fb)(null==e||null==(o=e.changes)||null==(o=o.ssn)?void 0:o.old_value)}:"phone"===n?{label:h.WD.COMMON.PHONE,value:p()(null==e||null==(l=e.changes)||null==(l=l.phone)?void 0:l.old_value)?"N/A":(0,W.n4)(null==e||null==(d=e.changes)||null==(d=d.phone)?void 0:d.old_value)}:{label:null!=(a=r.Oj[n])?a:(0,W.qt)(n),value:p()(null==e||null==(t=e.changes[n])?void 0:t.old_value)?"N/A":null==e||null==(i=e.changes[n])?void 0:i.old_value}})),title:h.WD.current_info,type:"existing"})}),(0,v.jsx)("div",{className:"col-span-1",children:(0,v.jsx)(d.n,{fields:null==(i=Object.keys(null==e?void 0:e.changes))||null==(i=i.filter((e=>!1===["ownership_percentage","request_id"].includes(e))))?void 0:i.map((n=>{var a,t,i,o,l,d,u,c;if("address"===n){var m,_,f,v,y,b,g;const n=null==(m=s.find((n=>{var a;return n.id===(null==e||null==(a=e.data)?void 0:a.id)})))?void 0:m.address;return{label:h.WD.COMMON.ADDRESS,value:(0,Y.getFullAddress)(null!=(_=null!=(f=null==n?void 0:n.address_line_1)?f:null==n?void 0:n.primary_line)?_:"",null!=(v=null==n?void 0:n.unit)?v:"",null!=(y=null==n?void 0:n.city)?y:"",null!=(b=null==n?void 0:n.state)?b:"",null!=(g=null==n?void 0:n.zip_code)?g:"")}}return"ssn"===n?{label:"SSN",value:p()(null==e||null==(o=e.changes)||null==(o=o.ssn)?void 0:o.new_value)?"N/A":(0,W.Fb)(null==e||null==(l=e.changes)||null==(l=l.ssn)?void 0:l.new_value)}:"dob"===n?{label:"DOB",value:A()(null==e||null==(d=e.changes)||null==(d=d.dob)?void 0:d.new_value).format(r.Bc)}:"phone"===n?{label:h.WD.COMMON.PHONE,value:p()(null==e||null==(u=e.changes)||null==(u=u.phone)?void 0:u.new_value)?"N/A":(0,W.n4)(null==e||null==(c=e.changes)||null==(c=c.phone)?void 0:c.new_value)}:{label:null!=(a=r.Oj[n])?a:(0,W.qt)(n),value:p()(null==e||null==(t=e.changes[n])?void 0:t.new_value)?"N/A":null==e||null==(i=e.changes[n])?void 0:i.new_value}})),title:h.WD.update_info,type:"update"})})]})]})}))}),(0,v.jsx)("section",{className:"flex flex-col",children:(0,v.jsx)(V.i,{fields:c})})]})};var $=a(93415);const H=({onContinue:e,children:n,id:a="business-info-change-document-requirement",requiredFooterText:t=!0})=>(0,v.jsxs)(E.P.section,{className:"flex h-full w-full flex-col gap-6 p-6","aria-labelledby":"document-section",initial:{opacity:0}
1,animate:{opacity:1,transition:{duration:.3}},id:a,children:[(0,v.jsx)("p",{className:"break-words","aria-describedby":"document-section-title",children:h.WD.please_prepare_the_following_documents}),(0,v.jsx)(E.P.ul,{className:"flex flex-col gap-3",variants:r.h5,initial:"hidden",animate:"visible",children:n}),(0,v.jsxs)("footer",{className:"mt-auto flex flex-col items-end justify-end gap-6",children:[(0,v.jsx)(i.Divider,{}),(0,v.jsxs)("div",{className:"flex w-full flex-col items-center gap-3 md:flex-row",children:[t&&(0,v.jsx)("p",{className:"text-typography-grey text-caption-regular",children:h.WD.the_document_must_be_complete_dated}),(0,v.jsx)(i.Button,{"data-test-id":`${a}-continue-button`,buttonVariant:"primary",onClick:()=>{e()},disabled:!1,className:"ml-auto w-32 self-end",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})]})]}),z=[{get title(){return h.WD.proof_of_updated_business_name},get description(){return h.WD.the_official_name_amendment_document}},{get title(){return h.WD.confirm_your_ownership_and_ubo_info},get description(){return h.WD.please_confirm_the_information_regarding_your}},{get title(){return h.WD.proof_of_identity},get description(){return h.WD.provide_a_photo_of_you_next}}];var Q=a(21215),X=a(76676),K=a(32059);const Z=()=>{var e;const n=(0,s.useNavigate)(),{selectedChange:a,action:t,updateRequestResponse:o}=m(),r=!0===(null==o||null==(e=o.data)?void 0:e.isApprovalRequired)||"ubo"!==(null==a?void 0:a.value);return(0,v.jsxs)(f.$,{className:"mt-12 flex flex-col items-center justify-center gap-8",id:`${null==a?void 0:a.value}-success-screen`,action:t,children:[(0,v.jsx)(X.default,{options:{loop:!1,autoplay:!0,animationData:K},height:80,width:80,style:{cursor:"default"}}),(0,v.jsxs)("section",{className:"flex flex-col gap-3",children:[(0,v.jsx)("section",{className:"flex flex-col",children:(0,v.jsx)(i.Header3,{className:"text-center",children:r?h.WD.we_re_looking_everything_over:h.WD.your_ownership_info_has_been_updated})}),(0,v.jsx)("p",{className:"text-typography-default text-center",children:r?h.WD.you_should_hear_back_from_us:h.WD.you_can_find_all_your_updates})]}),(0,v.jsx)(i.Button,{id:"success-done",className:"w-226px self-center",type:"button",onClick:e=>{e.preventDefault(),n(Q.NOVO_PAGE_ROUTES.AccountInfo)},disabled:!1,"data-test-id":"success-done",children:h.WD.EmailPhoneChangeSuccessLabels.actionButton})]})},J=({onContinue:e})=>{var n;const{control:a,formState:{errors:t},trigger:s}=(0,o.xW)(),{businessInfoReference:r,action:c,selectedChange:_}=m(),y=(0,o.FH)({control:a,name:"new_ein_number"}),b=(0,o.FH)({control:a,name:"ein_document"});return(0,v.jsxs)(f.$,{id:`${null==_?void 0:_.value}-update-your-business-ein-section `,className:"flex w-full flex-col gap-8",action:c,children:[(0,v.jsx)(l.h,{title:h.WD.update_your_business_ein,description:h.WD.please_provide_updated_business_ein,id:"update-your-business-ein-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.EIN,value:null!=(n=(0,W.pY)(r.ein))?n:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(i.Card,{id:"business-name-change-card",children:(0,v.jsxs)(i.CardContent,{className:"relative",children:[(0,v.jsx)(d.G,{type:"update"}),(0,v.jsxs)("section",{className:"flex w-full flex-col gap-6",children:[(0,v.jsx)(o.xI,{name:"new_ein_number",control:a,render:({field:e})=>{var n;return(0,v.jsx)(i.EinInput,Object.assign({id:"business-ein-change-input",label:h.WD.provide_updated_ein,placeholder:"xx-xxxxxxx",showError:!!t.new_ein_number,error:null==(n=t.new_ein_number)?void 0:n.message},e))}}),(0,v.jsx)(u.r,{title:h.WD.ein_certificate_issued_by_irs,fileInputName:"ein_document",documentType:"ein",maxAllowedFiles:2,subType:"ein_document"})]})]})}),(0,v.jsx)(i.Button,{id:"update-your-business-ein-continue-button",className:"w-226px self-center",onClick:async()=>{await s(["new_ein_number","ein_document"])&&e()},disabled:p()(y)||p()(b),"data-test-id":"update-your-business-ein-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})},ee=[{get title(){return h.WD.proof_of_updated_ein},get description(){return h.WD.your_business_ein_certificate_issued}},{get title(){return h.WD.proof_of_identity},get description(){return h.WD.provide_a_photo_of_you_next}}];
1var ne=a(72937);const ae=({onContinue:e})=>{var n,a,u;const{control:c,setValue:_,formState:{errors:y},trigger:b,register:g,clearErrors:N}=(0,o.xW)(),x=(0,o.FH)({control:c,name:"new_business_type"}),E=(0,o.FH)({control:c,name:"new_business_name"}),{businessInfoReference:S,selectedChange:I,action:D}=m(),k=(0,o.FH)({control:c,name:"new_business_name"}),O=e=>{_("new_business_type",x===e?"":e,{shouldValidate:!0})};(0,t.useEffect)((()=>{g("new_business_name")}),[]),(0,t.useEffect)((()=>{N(["new_business_name"])}),[null==I?void 0:I.value]);const A=(0,W.Gh)(null==S?void 0:S.business_type),T=p()(k)||(null==E?void 0:E.trim())===(null==S?void 0:S.company_name),C=p()(x)||x===(null==A?void 0:A.value),j="name_type_ein"===(null==I?void 0:I.value)&&(null==A?void 0:A.value)===w.e8.llc&&x===w.e8.corporation,U="name_type"===(null==I?void 0:I.value)?T&&C:T||p()(x)||j,R="name_type"===(null==I?void 0:I.value)?"or":"and";return(0,v.jsxs)(f.$,{id:`${null==I?void 0:I.value}-update-your-business-name-and-type-section `,className:"flex w-full flex-col gap-8",action:D,children:[(0,v.jsx)(l.h,{title:(0,ne.catalogueText)("account-info","businessNameType.title",{connector:R}),description:(0,ne.catalogueText)("account-info","businessNameType.description",{connector:R}),id:"update-your-business-name-and-type-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:null!=(n=S.company_name)?n:""},{label:h.WD.COMMON.BUSINESS_TYPE,value:null!=(a=null==A?void 0:A.label)?a:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(i.Card,{id:"business-name-change-card",children:(0,v.jsxs)(i.CardContent,{className:"relative",children:[(0,v.jsx)(d.G,{type:"update"}),(0,v.jsxs)("section",{className:"flex w-full flex-col gap-6",children:[(0,v.jsx)(o.xI,{name:"new_business_name",control:c,render:({field:e})=>{var n;return(0,v.jsx)(i.Input,Object.assign({id:"business-name-change-input",label:h.WD.provide_updated_legal_business_name,placeholder:h.WD.new_legal_business_name,showError:!!y.new_business_name,error:null==(n=y.new_business_name)||null==(n=n.message)?void 0:n.toString()},e))}}),(0,v.jsxs)("div",{children:[(0,v.jsx)("p",{id:"business-type",children:h.WD.select_updated_business_type}),(0,v.jsx)("p",{className:"flex flex-row flex-wrap gap-4",children:r.xw.map(((e,n)=>(0,v.jsx)("button",{type:"button",className:`border-border-light cursor-pointer rounded border border-solid px-6 py-3 ${(null==A?void 0:A.value)===e.value||x===e.value?"bg-fill-neutral text-typography-grey pointer-events-none cursor-none":"text-typography-default"} ${x===e.value?"bg-fill-light border-border-interactive-resting text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled":""}`,"aria-labelledby":"business-type",onClick:()=>{O(e.value)},onKeyDown:n=>{"Enter"===n.key&&O(e.value)},children:e.label},e.value)))}),(0,v.jsx)("p",{className:"text-typography-error text-body-s-regular "+(y.new_business_type?"flex":"hidden"),children:null==(u=y.new_business_type)||null==(u=u.message)?void 0:u.toString()})]})]})]})}),"name_type_ein"===(null==I?void 0:I.value)&&(null==A?void 0:A.value)===w.e8.llc&&x===w.e8.corporation&&(0,v.jsxs)("p",{className:"justify-center-center rounded-8 text-typography-default flex flex-col gap-3 border border-solid border-[#FFDFAF] bg-[#FFFAF2] px-4 py-3",children:[(0,v.jsxs)("span",{className:"text-body-regular",children:[h.WD.please_be_aware_that_while_we," "]}),(0,v.jsxs)("span",{className:"text-body-s-regular",children:[h.WD.please_write_to_us_via," ",(0,v.jsxs)(s.Link,{to:Q.NOVO_PAGE_ROUTES.SupportTicket,children:[h.WD.create_ticket," "]})," "]})]}),(0,v.jsx)(i.Button,{id:"update-your-business-name-and-type-continue-button",className:"w-226px self-center",onClick:async()=>{const n=await b("new_business_name"),a=await b("new_business_type");n&&a&&e()},disabled:U,"data-test-id":"update-your-business-name-and-type-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})},te=[{get title(){return h.WD.proof_of_updated_business_name_2},get description(){return h.WD.secretary_of_state_documents_articles},get subDescription(){return h.WD.businessDocuments.subDescription},get subList(){return[...h.WD.businessDocuments.subList,h.WD.businessDocuments.partnershipAgreementDashed]}},{get title(){return h.WD.confirm_your_ownership_and_ubo_info},get description(){return h.WD.please_confirm_the_information_regarding_your}},{get title(){return h.WD.proof_of_identity},get description(){return h.WD.provide_a_photo_of_you_next}}],ie=({onContinue:e})=>{const{trigger:n,formState:{errors:a},control:t}=(0,o.xW)(),s=(0,o.FH)({name:"type_change_document",control:t}),{action:r,selectedChange:d}=m();return(0,v.jsxs)(f.$,{id:`${null==d?void 0:d.value}-provide-your-business-type-doc-section`,className:"flex w-full flex-col gap-8",action:r,children:[(0,v.jsx)(l.h,{title:h.WD.provide_your_secretary_of_state_document,description:h.WD.please_attach_a_business_document,id:"provide-your-business-type-doc-header"}),(0,v.jsxs)("section",{className:"flex flex-col gap-6",children:[(0,v.jsxs)("section",{className:"flex flex-col",children:[(0,v.jsx)("p",{className:"text-body-medium",children:h.WD.you_can_attach_any_of}),(0,v.jsxs)("ul",{className:"list-disc",children:[(0,v.jsx)("li",{className:"text-typography-grey list-item list-inside",children:h.WD.statement_of_organizer}),(0,v.jsx)("li",{className:"text-typography-grey list-item list-inside",children:h.WD.initial_resolutions}),(0,v.jsx)("li",{className:"text-typography-grey list-item list-inside",children:h.WD.articles_of_organization_incorporation}),(0,v.jsx)("li",{className:"text-typography-grey list-item list-inside",children:h.WD.operating_agreement}),(0,v.jsx)("li",{className:"text-typography-grey list-item list-inside",children:h.WD.minutes_of_meeting}),(0,v.jsxs)("li",{className:"text-typography-grey list-item list-inside",children:[(0,v.jsx)("span",{children:h.WD.conversion_document}),(0,v.jsx)("br",{}),(0,v.jsx)("span",{className:"ml-5",children:h.WD.in_case_the_business_type})]}),(0,v.jsxs)("li",{className:"text-typography-grey list-item list-inside",children:[(0,v.jsx)("span",{children:h.WD.partnership_agreement}),(0,v.jsx)("br",{}),(0,v.jsx)("span",{className:"ml-5",children:h.WD.in_case_the_business_type_2})]})]})]}),(0,v.jsx)(u.r,{title:h.WD.secretary_of_state_document,fileInputName:"type_change_document",documentType:"name",subType:"type_change_document",maxAllowedFiles:5})]}),(0,v.jsx)(i.Button,{id:"update-your-business-type-doc-continue-button",className:"w-226px self-center",onClick:async()=>{await n("type_change_document")&&e()},disabled:!!a.type_change_document||p()(s),"data-test-id":"update-your-business-type-doc-continue-button",children:h.WD.ConfirmPhoneFormLabels.actionButton})]})},se=[{get title(){return h.WD.proof_of_updated_business_name},get description(){return h.WD.the_official_name_amendment_document}},{get title(){return h.WD.proof_of_updated_ein},get description(){return h.WD.your_business_ein_certificate_issued}},{get title(){return h.WD.confirm_your_ownership_and_ubo_info},get description(){return h.WD.please_confirm_the_information_regarding_your}},{get title(){return h.WD.proof_of_identity},get description(){return h.WD.provide_a_photo_of_you_next}}],oe=[{get title(){return h.WD.proof_of_updated_business_name_3},get description(){return h.WD.secretary_of_state_documents_articles},get subDescription(){return h.WD.businessDocuments.subDescription},get subList(){return[...h.WD.businessDocuments.subList,h.WD.businessDocuments.partnershipAgreement]}},{get title(){return h.WD.confirm_your_ownership_and_ubo_info},get description(){return h.WD.please_confirm_the_information_regarding_your}},{get title(){return h.WD.proof_of_updated_ein},get description(){return h.WD.your_business_ein_certificate_issued}},{get title(){return h.WD.proof_of_identity},get description(){return h.WD.provide_a_photo_of_you_next}}];var re=a(72252);const le=(0,t.createContext)(null);var de=a(18877);const ue=e=>!e.isLayoutDirty&&e.willUpdate(!1);function ce(){const e=new Set,n=new WeakMap,a=()=>e.forEach(ue);return{add:t=>{e.add(t),n.set(t,t.addEventListener("willUpdate",a))},remove:t=>{e.delete(t);const i=n.get(t);i&&(i(),n.delete(t)),a()},dirty:a}}const me=e=>!0===e,_e=({children:e,id:n,inherit:a=!0})=>{const i=(0,t.useContext)(re.L),s=(0,t.useContext)(le),[o,r]=(0,de.C)(),l=(0,t.useRef)(null),d=i.id||s;null===l.current&&((e=>me(!0===e)||"id"===e)(a)&&d&&(n=n?d+"-"+n:d),l.current={id:n,group:me(a)&&i.group||
1ce()});const u=(0,t.useMemo)((()=>({...l.current,forceRender:o})),[r]);return t.createElement(re.L.Provider,{value:u},e)};var pe=a(55531);const fe=[{get title(){return h.WD.confirm_ownership_and_ubo_info},get description(){return h.WD.uboRequirements.description},get subList(){return h.WD.uboRequirements.subList}}],he=({handleClick:e,handleKeyPress:n})=>{const{closeModal:a,modalState:t}=(0,i.useModal)(),{currentStep:s,selectedChange:o}=m();return(0,v.jsxs)(i.Modal,{isOpen:t.name===r.yQ.CONFIRM_UBO_DELETE,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,closeIcon:!0,children:[(0,v.jsx)(i.ModalHeader,{children:(0,v.jsx)(i.Header4,{children:h.WD.remove_this_owner})}),(0,v.jsx)(i.ModalContent,{className:"flex-col items-center gap-6",children:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("section",{className:"text-typography-default flex w-full flex-col gap-3",children:[(0,v.jsx)("p",{children:h.WD.this_owner_s_info_will}),(0,v.jsx)("p",{className:"bg-fill-light text-typography-default text-body-s-regular rounded-xl border border-solid border-blue-100 px-4 py-3",children:h.WD.removing_this_owner_doesn_t_remove})]}),(0,v.jsxs)("footer",{className:"flex w-full flex-row items-center gap-3",children:[(0,v.jsx)(i.Button,{"data-test-id":"cancel-delete-ubo",onClick:()=>{(0,pe.sx)(Object.assign({},P.Y.CLICK.UBO_DETAIL_CANCEL_REMOVE,{current_step:s,screen_name:`Update Business Info - Step ${s}`,selected_change:null==o?void 0:o.value})),a()},className:"w-full",buttonVariant:"secondary",children:h.WD.DiscardChangesLabel.secondaryButton}),(0,v.jsx)(i.Button,{"data-test-id":"remove-ubo",onClick:n=>{(0,pe.sx)(Object.assign({},P.Y.CLICK.UBO_DETAIL_CONFIRM_DELETE,{current_step:s,screen_name:`Update Business Info - Step ${s}`,selected_change:null==o?void 0:o.value})),e(n,"delete"),a()},className:"w-full",onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||((0,pe.sx)(Object.assign({},P.Y.CLICK.UBO_DETAIL_CONFIRM_DELETE,{current_step:s,screen_name:`Update Business Info - Step ${s}`,selected_change:null==o?void 0:o.value})),n(e,"delete"))},children:h.WD.remove})]})]})})]})},ve=()=>{const{action:e,selectedChange:n,uboData:a,targetedUboDetailIndex:t=0,handleEditUBO:s,handleDeleteUBO:o}=m(),d=a[null!=t?t:0],{openModal:u}=(0,i.useModal)();function c(e,n){const a=e.currentTarget,i="true"===a.getAttribute("aria-pressed");a.setAttribute("aria-pressed",i?"false":"true"),"edit"===n&&s(null!=t?t:0),"delete"===n&&o(null!=t?t:0)}function _(e,n){"Enter"!==e.key&&" "!==e.key||(c(e,n),e.preventDefault())}const{first_name:p,last_name:y,middle_name:g,address:{address_line_1:N,city:x,state:E,address_line_2:S,country_code:I,zip_code:w,unit:D,primary_line:k},phone:O,ownership_percentage:T,dob:C,ssn:j,email:U,citizenship:R}=null!=d?d:{};return(0,v.jsxs)(f.$,{id:`${n}-update-ownership-and-ubo`,className:"flex flex-col gap-8",action:e,children:[(0,v.jsx)(l.h,{title:h.WD.owner_details,description:"",id:"update-ownership-and-ubo-detail-header"}),(0,v.jsx)("section",{className:"flex h-full min-h-0 w-full flex-grow-0 flex-col items-center overflow-y-auto",children:(0,v.jsx)("div",{className:"align-center md:w-552 flex w-full flex-col justify-center gap-6 self-center",children:(0,v.jsxs)("div",{className:"border-border-light flex flex-col rounded-xl border border-solid",children:[(0,v.jsxs)("dl",{className:"flex flex-col md:flex-row",children:[(0,v.jsxs)("div",{className:"flex w-full flex-col px-4 py-3",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.FULL_NAME}),(0,v.jsx)("dd",{className:"font-medium",children:[p,g,y].filter(Boolean).join(" ")})]}),(0,v.jsxs)("div",{className:"border-border-light flex w-full flex-col border-t border-solid px-4 py-3 md:border-l md:border-t-0",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.WD.COMMON.OWNERSHIP}),(0,v.jsxs)("dd",{className:"font-medium",children:[null!=T?T:0,"%"]})]})]}),(0,v.jsx)("dl",{className:"border-border-light flex flex-col border-t border-solid md:flex-row",children:(0,v.jsxs)("div",{className:"flex w-full flex-col px-4 py-3",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.DOB}),(0,v.jsx)("dd",{className:"font-medium",children:A()(C).format(r.Bc)})]})}),(0,v.jsxs)("dl",{className:"border-border-light flex flex-col border-t border-solid md:flex-row",children:[(0,v.jsxs)("div",{className:"flex w-full flex-col px-4 py-3",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.CITIZENSHIP}),(0,v.jsx)("dd",{className:"font-medium",children:R})]}),(0,v.jsxs)("div",{className:"border-border-light flex w-full flex-col border-t border-solid px-4 py-3 md:border-l md:border-t-0",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.SSN}),(0,v.jsx)("dd",{className:"font-medium",children:(0,W.Fb)(null!=j?j:"")})]})]}),(0,v.jsxs)("dl",{className:"border-border-light flex flex-col border-t border-solid md:flex-row",children:[(0,v.jsxs)("div",{className:"flex w-full flex-col px-4 py-3",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.EMAIL}),(0,v.jsx)("dd",{className:"font-medium",children:U})]}),(0,v.jsxs)("div",{className:"border-border-light flex w-full flex-col border-t border-solid px-4 py-3 md:border-l md:border-t-0",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.PHONE}),(0,v.jsx)("dd",{className:"font-medium",children:(0,W.n4)(null!=O?O:"")})]})]}),(0,v.jsx)("dl",{className:"border-border-light flex flex-col border-t border-solid md:flex-row",children:(0,v.jsxs)("div",{className:"flex w-full flex-col px-4 py-3",children:[(0,v.jsx)("dt",{className:"text-typography-grey text-body-s-regular",children:h.Sq.PERSONAL_ADDRESS}),(0,v.jsx)("dd",{className:"font-medium",children:[k||N,S,D,x,E,I,w].filter(
1Boolean).join(", ")})]})})]})})}),(0,v.jsxs)("section",{className:"flex flex-col items-center gap-2 md:flex-row md:justify-between",children:[(0,v.jsxs)("button",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled flex cursor-pointer flex-row items-center gap-2 font-medium",type:"button",tabIndex:0,onClick:()=>u({name:r.yQ.CONFIRM_UBO_DELETE}),onKeyDown:()=>u({name:r.yQ.CONFIRM_UBO_DELETE}),children:[(0,v.jsx)(b.Int,{name:"trash",size:"md",color:"current"}),h.H1.REMOVE_THIS_OWNER]}),(0,v.jsx)("button",{className:"text-typography-interactive-resting hover:text-typography-interactive-hover active:text-typography-interactive-pressed visited:text-typography-interactive-pressed disabled:text-typography-interactive-disabled flex flex-row items-center font-medium",type:"button",tabIndex:0,onClick:e=>c(e,"edit"),onKeyDown:e=>_(e,"delete"),"data-test-id":"edit-ubo-button",children:h.Sq.EDIT})]}),(0,v.jsx)(he,{handleClick:c,handleKeyPress:_})]})},ye=({onContinue:e,setSelectedChange:n})=>{const{setValue:a,control:s}=(0,o.xW)(),d=(0,t.useRef)(null),u=(0,t.useRef)(null),[c,_]=(0,t.useState)(!1),{businessInfoReference:p}=m(),f=(0,t.useMemo)((()=>"sole_proprietorship"===(null==p?void 0:p.business_type)||"single_member_llc"===(null==p?void 0:p.business_type)?r.YB.filter((e=>"ubo"!==e.value)):r.YB),[null==p?void 0:p.business_type]),y=(0,o.FH)({name:"change_type",control:s});(0,t.useEffect)((()=>{var e,n;y&&u.current&&d.current&&(null==(e=u.current)?void 0:e.clientHeight)>(null==(n=d.current)?void 0:n.clientHeight)?_(!0):_(!1)}),[y]);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(l.h,{id:"change-type-section-header",title:h.WD.update_your_business_info,description:h.WD.select_a_section_to_make_changes}),(0,v.jsxs)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-12 md:gap-0",children:[(0,v.jsx)("div",{className:"col-span-1 md:col-span-5",children:(0,v.jsx)(i.Card,{className:"rounded-8 md:rounded-r-none md:border-r-0",ref:d,children:(0,v.jsx)(i.CardContent,{className:"w-full flex-col p-0",children:f.map(((e,t)=>(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(o.xI,{control:s,name:"change_type",render:({field:{value:s,onChange:o}})=>(0,v.jsx)("div",{className:`first:rounded-t-card last:rounded-b-card w-full p-4 md:rounded-none ${s!==e.value?"bg-none":"bg-fill-light"} ${0===t?"md:rounded-tl-card first:md:rounded-tr-none":""} ${t===f.length-1&&"md:rounded-bl-card last:md:rounded-br-none"}`,children:(0,v.jsx)(i.RadioButton,{name:"change_type",value:e.value,label:e.label,secondaryText:e.description,checked:s===e.value,onChange:()=>(e=>{a("change_type",e.value),n(e),(0,pe.sx)(Object.assign({},P.Y.CLICK.SELECT_CHANGE_TYPE,{selected_change:e.value}))})(e),isPaddingRequired:!1,isHoverRequired:!1})})},e.value),t!==f.length-1&&(0,v.jsx)(i.Divider,{})]})))})})}),(0,v.jsx)(_e,{children:(0,v.jsx)(E.P.div,{layout:"size",transition:{duration:.3,opacity:{ease:"linear"},ease:"linear"},className:"rounded-8 col-span-1 flex h-full w-full flex-1 flex-col md:col-span-7",children:(0,v.jsx)(i.Card,{ref:u,className:"rounded-8 h-full w-full md:rounded-l-none "+(c?"md:rounded-bl-card":""),children:(0,v.jsxs)(i.CardContent,{className:"flex w-full items-center justify-center p-0 md:border-l-0",children:[!y&&(0,v.jsx)(E.P.p,{className:"text-typography-grey p-16 text-center",initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.3},children:h.WD.once_you_select_an_option_you}),y&&(()=>{if(!y)return null;const n=be.update[y].requirements;return(0,v.jsx)(n,{onContinue:e})})()]})})})})]})]})},be={update:{name:{select_change_type:ye,requirements:({onContinue:e})=>(0,v.jsx)(H,{onContinue:e,id:"business-info-name-change-document-requirement",children:z.map(((e,n)=>(0,v.jsxs)(E.P.li,{variants:r.An,className:"border-border-light flex flex-col border-b border-solid pb-3 last:border-b-0 last:pb-0",children:[(0,v.jsxs)("div",{className:"flex flex-row items-center gap-2 font-medium",children:[(0,v.jsx)("span",{children:(0,v.jsx)(b.Int,{name:"paper-stack",size:"md",color:"default"})}),(0,v.jsx)("span",{children:e.title})]}),(0,v.jsx)("p",{className:"text-typography-grey pl-8",children:e.description})]},`document-item-name-${n.toString()}`)))}),update_name:y,verify_identity:I,confirm_ownership:D,update_ownership_info:k,ubo_detail:ve,add_ubo:q,review_changes:()=>{var e,n;const{control:a,getValues:s,formState:{errors:u}}=(0,o.xW)(),c=s(),{businessInfoReference:_,personalInfoData:p,requestSubmitStatus:y,accountInfo:b,uboData:g,ownersData:N,action:x,selectedChange:E}=m(),S=(0,o.FH)({name:"has_ack",control:a});(0,t.useMemo)((()=>{var e,n,a,t;const i=null!=(e=null==N?void 0:N.find((e=>e.is_applicant)))?e:{},s={ownerName:`${null!=(n=i.first_name)?n:""} ${null!=(a=i.middle_name)?a:""} ${null!=(t=i.last_name)?t:""}`,ownerShip:c.ownership_percentage},o=g.map((e=>{var n,a,t;return{ownerName:`${null!=(n=e.first_name)?n:""} ${null!=(a=e.middle_name)?a:""} ${null!=(t=e.last_name)?t:""}`,ownerShip:e.ownership_percentage}})),r=[s];return o.length>0&&r.push(...o),r}),[null==p?void 0:p.name.data.name,c.ownership_percentage,g]);return(0,v.jsxs)(f.$,{id:`${null==E?void 0:E.value}-review-changes`,className:"flex flex-col gap-8",action:x,children:[(0,v.jsx)(l.h,{title:h.WD.review_your_update_request,description:h.WD.confirm_and_verify_the_changes_you,id:"review-changes-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:(null==_?void 0:_.company_name)||""},{label:h.WD.COMMON.BUSINESS_TYPE,value:null!=(e=null==(n=r.xw.find((e=>e.value===(null==_?void 0:_.business_type))))?void 0:n.label)?e:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:c.new_business_name}],title:h.WD.update_info,type:"update"}),(0,v.jsx)(G,{}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:a,name:"has_ack",render:({field:e})=>{var n,a,t,s;return(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-typography-default text-body-s-regular",children:(0,v.jsx)($.Trans,{i18nKey:"authorization.name",ns:"account-info",values:{who:null!=(n=null==p||null==(a=p.name)||null==(a=a.data)?void 0:a.name)?n:"",from:_.company_name,to:c.new_business_name,acct:(0,W.n$)(null!=(t=null==(s=b.data)?void 0:s.bank_account_number)?t:"")},components:{who:(0,v.jsx)("em",{className:"ml-1 font-medium"}),from:(0,v.jsx)("em",{className:"font-medium"}),to:(0,v.jsx)("em",{className:"font-medium"}),acct:(0,v.jsx)("em",{className:"font-medium"})}})})},e,{checked:e.value}))}})}),(0,v.jsx)(i.Button,{id:"name-change-final-submit-button",className:"w-226px self-center",type:"submit",disabled:!!u.has_ack||"pending"===y||!S,"data-test-id":"name-change-final-submit-button",children:h.Sq.SUBMIT})]})},success:Z},ein:{select_change_type:ye,requirements:({onContinue:e})=>(0,v.jsx)(H,{onContinue:e,id:"business-info-ein-change-document-requirement",requiredFooterText:!1,children:ee.map(((e,n)=>(0,v.jsxs)(E.P.li,{variants:r.An,className:"border-border-light flex flex-col border-b border-solid pb-3 last:border-b-0 last:pb-0",children:[(0,v.jsxs)("div",{className:"flex flex-row items-center gap-2 font-medium",children:[(0,v.jsx)("span",{children:(0,v.jsx)(b.Int,{name:"paper-stack",size:"md",color:"default"})}),(0,v.jsx)("span",{children:e.title})]}),(0,v.jsx)("p",{className:"text-typography-grey pl-8",children:e.description})]},`document-item-ein-${n.toString()}`)))}),update_ein:J,verify_identity:I,review_changes:({onContinue:e})=>{var n,a;const{control:t,getValues:s,formState:{errors:r}}=(0,o.xW)(),u=s(),{businessInfoReference:c,personalInfoData:_,requestSubmitStatus:p,accountInfo:y,action:b,selectedChange:g}=m(),N=(0,o.FH)({name:"has_ack",control:t});return(0,v.jsxs)(f.$,{action:b,id:`${null==g?void 0:g.value}-ein-review-changes`,className:"flex flex-col gap-8",children:[(0,v.jsx)(l.h,{title:h.WD.review_your_update_request,description:h.WD.confirm_and_verify_the_changes_you,id:"review-changes-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.EIN,value:(0,W.pY)(null!=(n=c.ein)?n:"")}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.EIN,value:null!=(a=(0,W.pY)(u.new_ein_number))?a:""}],title:h.WD.update_info,type:"update"}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:t,name:"has_ack",render:({field:e})=>{var n,a,t,s;return(0,v.jsx)(i.Checkbox,Object.assign({label:(0,v.jsx)("p",{className:"text-typography-default text-body-s-regular",children:(0,v.jsx)($.Trans,{i18nKey:"authorization.ein",ns:"account-info",values:{who:null!=(n=null==_||null==(a=_.name)||null==(a=a.data)?void 0:a.name)?n:"",company:c.company_name,from:(0,W.pY)(c.ein),to:(0,W.pY)(u.new_ein_number),acct:(0,W.n$)(null!=(t=null==(s=y.data)?void 0:s.bank_account_number)?t:"")},components:{who:(0,v.jsx)("em",{className:"ml-1 font-medium"}),company:(0,v.jsx)("em",{className:"mx-1 font-medium"}),from:(0,v.jsx)("em",{className:"mx-1 font-medium"}),to:(0,v.jsx)("em",{className:"mx-1 font-medium"}),acct:(0,v.jsx)("em",{className:"mx-1 font-medium"})}})})},e,{checked:e.value}))}})}),(0,v.jsx)(i.Button,{id:"review-update-your-business-name-button",className:"w-226px self-center",type:"submit",disabled:!!r.has_ack||"pending"===p||!N,"data-test-id":"review-update-your-business-name-button",children:h.Sq.SUBMIT})]})},success:Z},name_type:{select_change_type:ye,requirements:({onContinue:e})=>(0,v.jsx)(H,{onContinue:e,id:"business-info-name-type-change-document-requirement",children:te.map(((e,n)=>{var a,t;return(0,v.jsxs)(E.P.li,{variants:r.An,className:"border-border-light flex flex-col border-b border-solid pb-3 last:border-b-0 last:pb-0",children:[(0,v.jsxs)("div",{className:"flex flex-row items-center gap-2 font-medium",children:[(0,v.jsx)("span",{children:(0,v.jsx)(b.Int,{name:"paper-stack",size:"md",color:"default"})}),(0,v.jsx)("span",{children:e.title})]}),(0,v.jsx)("p",{className:"text-typography-grey pl-8",children:e.description}),e.subDescription&&(0,v.jsx)("p",{className:"text-typography-grey mt-3 pl-8",children:e.subDescription}),((null==e||null==(a=e.subList)?void 0:a.length)||0)>0&&(0,v.jsx)("ul",{className:"text-typography-grey mt-3 list-disc pl-8",children:(null!=(t=null==e?void 0:e.subList)?t:[]).map(((e,n)=>(0,v.jsx)("li",{className:"list-item list-inside",children:e},`document-item-name-type-sub-${n.toString()}`)))})]},`document-item-name-type-${n.toString()}`)}))}),update_name_type:ae,business_type_document:ie,verify_identity:I,confirm_ownership:D,update_ownership_info:k,ubo_detail
1:ve,add_ubo:q,review_changes:()=>{var e,n;const{control:a,getValues:t,formState:{errors:s}}=(0,o.xW)(),r=t(),{businessInfoReference:u,personalInfoData:c,requestSubmitStatus:_,accountInfo:p,action:y,selectedChange:b}=m(),g=(0,o.FH)({name:"has_ack",control:a}),N=(0,W.Gh)(r.new_business_type),x=(0,W.Gh)(null==u?void 0:u.business_type);return(0,v.jsxs)(f.$,{id:`${null==b?void 0:b.value}-name-type-ein-review-changes`,className:"flex flex-col gap-8",action:y,children:[(0,v.jsx)(l.h,{title:h.WD.review_your_update_request,description:h.WD.confirm_and_verify_the_changes_you,id:"name-type-ein-review-changes-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:null!=(e=null==u?void 0:u.company_name)?e:""},{label:h.WD.COMMON.BUSINESS_TYPE,value:null!=(n=null==x?void 0:x.label)?n:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:r.new_business_name},{label:h.WD.COMMON.BUSINESS_TYPE,value:null==N?void 0:N.label}],title:h.WD.update_info,type:"update"}),(0,v.jsx)(G,{}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:a,name:"has_ack",render:({field:e})=>{var n,a,t,s,o,l;return(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-body-s-regular",children:(0,v.jsx)($.Trans,{i18nKey:"authorization.name_and_type",ns:"account-info",values:{who:null!=(n=null==c||null==(a=c.name)||null==(a=a.data)?void 0:a.name)?n:"",fromName:u.company_name,fromType:null!=(t=null==x?void 0:x.label)?t:"",toName:r.new_business_name,toType:null!=(s=null==N?void 0:N.label)?s:"",acct:(0,W.n$)(null!=(o=null==(l=p.data)?void 0:l.bank_account_number)?o:"")},components:{who:(0,v.jsx)("em",{className:"font-medium"}),from:(0,v.jsx)("em",{className:"font-medium"}),to:(0,v.jsx)("em",{className:"font-medium"}),acct:(0,v.jsx)("em",{className:"font-medium"})}})})},e,{checked:e.value}))}})}),(0,v.jsx)(i.Button,{id:"review-update-your-business-name-type-button",className:"w-226px self-center",type:"submit",disabled:!!s.has_ack||"pending"===_||!g,"data-test-id":"review-update-your-business-name-type-button",children:h.Sq.SUBMIT})]})},success:Z},name_ein:{select_change_type:ye,requirements:({onContinue:e})=>(0,v.jsx)(H,{onContinue:e,id:"business-info-name-ein-change-document-requirement",children:se.map(((e,n)=>(0,v.jsxs)(E.P.li,{variants:r.An,className:"border-border-light flex flex-col border-b border-solid pb-3 last:border-b-0 last:pb-0",children:[(0,v.jsxs)("div",{className:"flex flex-row items-center gap-2 font-medium",children:[(0,v.jsx)("span",{children:(0,v.jsx)(b.Int,{name:"paper-stack",size:"md",color:"default"})}),(0,v.jsx)("span",{children:e.title})]}),(0,v.jsx)("p",{className:"text-typography-grey pl-8",children:e.description})]},`document-item-name-ein-${n.toString()}`)))}),update_name:y,update_ein:J,verify_identity:I,confirm_ownership:D,update_ownership_info:k,ubo_detail:ve,add_ubo:q,review_changes:()=>{var e,n;const{control:a,getValues:s,formState:{errors:r}}=(0,o.xW)(),u=s(),{businessInfoReference:c,personalInfoData:_,requestSubmitStatus:p,accountInfo:y,uboData:b,ownersData:g,action:N,selectedChange:x}=m(),E=(0,o.FH)({name:"has_ack",control:a});(0,t.useMemo)((()=>{var e,n,a,t;const i=null!=(e=null==g?void 0:g.find((e=>e.is_applicant)))?e:{},s={ownerName:`${null!=(n=i.first_name)?n:""} ${null!=(a=i.middle_name)?a:""} ${null!=(t=i.last_name)?t:""}`,ownerShip:u.ownership_percentage},o=b.map((e=>{var n,a,t;return{ownerName:`${null!=(n=e.first_name)?n:""} ${null!=(a=e.middle_name)?a:""} ${null!=(t=e.last_name)?t:""}`,ownerShip:e.ownership_percentage}})),r=[s];return o.length>0&&r.push(...o),r}),[null==_?void 0:_.name.data.name,u.ownership_percentage,b]);return(0,v.jsxs)(f.$,{id:`${null==x?void 0:x.value}-review-changes`,className:"flex flex-col gap-8",action:N,children:[(0,v.jsx)(l.h,{title:h.WD.review_your_update_request,description:h.WD.confirm_and_verify_the_changes_you,id:"review-changes-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:(null==c?void 0:c.company_name)||""},{label:h.WD.COMMON.EIN,value:null!=(e=(0,W.pY)(c.ein))?e:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:u.new_business_name},{label:h.WD.COMMON.EIN,value:null!=(n=(0,W.pY)(u.new_ein_number))?n:""}],title:h.WD.update_info,type:"update"}),(0,v.jsx)(G,{}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:a,name:"has_ack",render:({field:e})=>{var n,a,t,s;return(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-body-s-regular",children:(0,v.jsx)($.Trans,{i18nKey:"authorization.name_ein",ns:"account-info",values:{who:null!=(n=null==_||null==(a=_.name)||null==(a=a.data)?void 0:a.name)?n:"",from:c.company_name,to:u.new_business_name,einFrom:(0,W.pY)(c.ein),einTo:(0,W.pY)(u.new_ein_number),acct:(0,W.n$)(null!=(t=null==(s=y.data)?void 0:s.bank_account_number)?t:"")},components:{who:(0,v.jsx)("em",{className:"ml-1 font-medium"}),from:(0,v.jsx)("em",{className:"mx-1 font-medium"}),to:(0,v.jsx)("em",{className:"mx-1 font-medium"}),einFrom:(0,v.jsx)("em",{className:"mx-1 font-medium"}),einTo:(0,v.jsx)("em",{className:"mx-1 font-medium"}),acct:(0,v.jsx)("em",{className:"mx-1 font-medium"})}})})},e,{checked:e.value}))}})}),(0,v.jsx)(i.Button,{id:"name-ein-change-final-submit-button",className:"w-226px self-center",type:"submit",disabled:!!r.has_ack||"pending"===p||!E,"data-test-id":"name-ein-change-final-submit-button",children:h.Sq.SUBMIT})]})},success:Z},name_type_ein:{select_change_type:ye,requirements:({onContinue:e})=>(0,v.jsx)(H,{onContinue:e,id:"business-info-name-type-ein-change-document-requirement",children:oe.map(((e,n)=>{var a,t;return(0,v.jsxs)(E.P.li,{variants:r.An,className:"border-border-light flex flex-col border-b border-solid pb-3 last:border-b-0 last:pb-0",children:[(0,v.jsxs)("div",{className:"flex flex-row items-center gap-2 font-medium",children:[(0,v.jsx)("span",{children:(0,v.jsx)(b.Int,{name:"paper-stack",size:"md",color:"default"})}),(0,v.jsx)("span",{children:e.title})]}),(0,v.jsx)("p",{className:"text-typography-grey pl-8",children:e.description}),e.subDescription&&(0,v.jsx)("p",{className:"text-typography-grey mt-3 pl-8",children:e.subDescription}),((null==e||null==(a=e.subList)?void 0:a.length)||0)>0&&(0,v.jsx)(E.P.ul,{className:"text-typography-grey mt-3 list-disc pl-8",variants:r.h5,children:(null!=(t=null==e?void 0:e.subList)?t:[]).map(((e,n)=>(0,v.jsx)(E.P.li,{variants:r.An,className:"list-item list-inside",children:e},`document-item-name-type-sub-${n.toString()}`)))})]},`document-item-name-type-${n.toString()}`)}))}),update_name_type:ae,business_type_document:ie,update_ein:J,verify_identity:I,confirm_ownership:D,update_ownership_info:k,ubo_detail
1:ve,add_ubo:q,review_changes:()=>{var e,n,a,s;const{control:r,getValues:u,formState:{errors:c}}=(0,o.xW)(),_=u(),{businessInfoReference:p,personalInfoData:y,requestSubmitStatus:b,accountInfo:g,ownersData:N,uboData:x,action:E,selectedChange:S}=m(),I=(0,o.FH)({name:"has_ack",control:r}),w=((0,t.useMemo)((()=>{var e,n,a,t;const i=null!=(e=null==N?void 0:N.find((e=>e.is_applicant)))?e:{},s={ownerName:`${null!=(n=i.first_name)?n:""} ${null!=(a=i.middle_name)?a:""} ${null!=(t=i.last_name)?t:""}`,ownerShip:_.ownership_percentage},o=x.map((e=>{var n,a,t;return{ownerName:`${null!=(n=e.first_name)?n:""} ${null!=(a=e.middle_name)?a:""} ${null!=(t=e.last_name)?t:""}`,ownerShip:e.ownership_percentage}})),r=[s];return o.length>0&&r.push(...o),r}),[null==y?void 0:y.name.data.name,_.ownership_percentage,x]),(0,W.Gh)(_.new_business_type)),D=(0,W.Gh)(null==p?void 0:p.business_type);return(0,v.jsxs)(f.$,{id:`${null==S?void 0:S.value}-name-type-ein-review-changes`,className:"flex flex-col gap-8",action:E,children:[(0,v.jsx)(l.h,{title:h.WD.review_your_update_request,description:h.WD.confirm_and_verify_the_changes_you,id:"name-type-ein-review-changes-header"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:null!=(e=null==p?void 0:p.company_name)?e:""},{label:h.WD.COMMON.BUSINESS_TYPE,value:null!=(n=null==D?void 0:D.label)?n:""},{label:h.WD.COMMON.EIN,value:null!=(a=(0,W.pY)(null==p?void 0:p.ein))?a:""}],title:h.WD.current_info,type:"existing"}),(0,v.jsx)(d.n,{fields:[{label:h.WD.COMMON.LEGAL_BUSINESS_NAME,value:_.new_business_name},{label:h.WD.COMMON.BUSINESS_TYPE,value:null==w?void 0:w.label},{label:h.WD.COMMON.EIN,value:null!=(s=(0,W.pY)(_.new_ein_number))?s:""}],title:h.WD.update_info,type:"update"}),(0,v.jsx)(G,{}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:r,name:"has_ack",render:({field:e})=>{var n,a,t,s,o,r;return(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-body-s-regular",children:(0,v.jsx)($.Trans,{i18nKey:"authorization.name_type_ein",ns:"account-info",values:{who:null!=(n=null==y||null==(a=y.name)||null==(a=a.data)?void 0:a.name)?n:"",fromName:p.company_name,fromType:null!=(t=null==D?void 0:D.label)?t:"",toName:_.new_business_name,toType:null!=(s=null==w?void 0:w.label)?s:"",einFrom:(0,W.pY)(p.ein),einTo:(0,W.pY)(_.new_ein_number),acct:(0,W.n$)(null!=(o=null==(r=g.data)?void 0:r.bank_account_number)?o:"")},components:{who:(0,v.jsx)("em",{className:"font-medium"}),from:(0,v.jsx)("em",{className:"font-medium"}),to:(0,v.jsx)("em",{className:"font-medium"}),einFrom:(0,v.jsx)("em",{className:"font-medium"}),einTo:(0,v.jsx)("em",{className:"font-medium"}),acct:(0,v.jsx)("em",{className:"font-medium"})}})})},e,{checked:e.value}))}})}),(0,v.jsx)(i.Button,{id:"review-update-your-business-name-type-ein-button",className:"w-226px self-center",type:"submit",disabled:!!c.has_ack||"pending"===b||!I,"data-test-id":"review-update-your-business-name-type-ein-button",children:h.Sq.SUBMIT})]})},success:Z},ubo:{select_change_type:ye,requirements:({onContinue:e})=>(0,v.jsx)(H,{onContinue:e,id:"business-info-name-change-document-requirement",children:fe.map(((e,n)=>{var a,t;return(0,v.jsxs)(E.P.li,{variants:r.An,className:"border-border-light flex flex-col border-b border-solid pb-3 last:border-b-0 last:pb-0",children:[(0,v.jsxs)("div",{className:"flex flex-row items-center gap-2 font-medium",children:[(0,v.jsx)("span",{children:(0,v.jsx)(b.Int,{name:"paper-stack",size:"md",color:"default"})}),(0,v.jsx)("span",{children:e.title})]}),(0,v.jsx)("p",{className:"text-typography-grey pl-8",children:e.description}),((null==e||null==(a=e.subList)?void 0:a.length)||0)>0&&(0,v.jsx)(E.P.ul,{className:"text-typography-grey mt-3 list-disc pl-8",variants:r.h5,children:(null!=(t=null==e?void 0:e.subList)?t:[]).map(((e,n)=>(0,v.jsx)(E.P.li,{variants:r.An,className:"list-item list-inside",children:e},`document-item-name-type-sub-${n.toString()}`)))})]},`document-item-name-${n.toString()}`)}))}
1),confirm_ownership:D,update_ownership_info:k,ubo_detail:ve,add_ubo:q,review_changes:()=>{const{control:e,formState:{errors:n}}=(0,o.xW)(),{requestSubmitStatus:a,action:t,selectedChange:s}=m(),r=(0,o.FH)({name:"has_ack",control:e});return(0,v.jsxs)(f.$,{id:`${null==s?void 0:s.value}-review-changes`,className:"flex flex-col gap-8",action:t,children:[(0,v.jsx)(l.h,{title:h.WD.review_your_update,description:h.WD.make_sure_everything_looks_good_before,id:"review-changes-header"}),(0,v.jsx)(G,{}),(0,v.jsx)("fieldset",{className:"bg-fill-light rounded-8 flex flex-row items-center gap-4 border border-solid border-blue-100 px-4 py-3",children:(0,v.jsx)(o.xI,{control:e,name:"has_ack",render:({field:e})=>(0,v.jsx)(i.Checkbox,Object.assign({isHoverRequired:!1,isPaddingRequired:!1,label:(0,v.jsx)("p",{className:"text-body-s-regular",children:h.WD.i_authorize_novo_to_update})},e,{checked:e.value}))})}),(0,v.jsx)(i.Button,{id:"name-change-final-submit-button",className:"w-226px self-center",type:"submit",disabled:"pending"===a||!r,"data-test-id":"name-change-final-submit-button",children:h.Sq.SUBMIT})]})},success:Z}}},ge=()=>{var e,n,a;const{setCurrentStep:t,currentStep:l,setSelectedChange:d,selectedChange:u,nextStep:c,prevStep:_,handleUpdateOwnerShip:p}=m(),{openModal:f}=(0,i.useModal)(),y=(0,s.useNavigate)(),{handleSubmit:b}=(0,o.xW)(),{onSubmitRequest:g}=m(),N=()=>{var e;if("update_ownership_info"===r.YL[null!=(e=null==u?void 0:u.value)?e:"name"][l]){var n;const e=r.YL[null!=(n=null==u?void 0:u.value)?n:"name"].indexOf("add_ubo");t(e)}};return(0,v.jsx)(i.SpotlightScreen,{closeAction:()=>{f({name:r.yQ.CONFIRM_EXIT_BUSINESS_INFO_UPDATE})},closeText:h.WD.close,isBackRequired:!(0===l||l===r.YL[null!=(e=null==u?void 0:u.value)?e:"name"].length-1),isCloseRequired:"ubo_detail"===r.YL[null!=(n=null==u?void 0:u.value)?n:"name"][l]||l!==r.YL[null!=(a=null==u?void 0:u.value)?a:"name"].length-1,backAction:()=>{0===l?y(-1):_()},childContainerClass:"justify-center self-center w-full md:-mt-11 flex justify-center "+(0===l?"md:w-936":""),className:"overflow-y-auto",children:(0,v.jsx)("section",{className:"flex min-h-0 w-full flex-grow-0 flex-col items-center overflow-y-auto",children:(0,v.jsx)("div",{className:"align-center flex w-full flex-col items-center justify-center gap-6",children:(0,v.jsx)("form",{onSubmit:b(g),className:"flex w-full flex-col items-center gap-6 overflow-hidden",children:(0,v.jsx)(x.N,{mode:"wait",children:(()=>{var e,n;const a=r.YL[null!=(e=null==u?void 0:u.value)?e:"name"][l],t=be.update[null!=(n=null==u?void 0:u.value)?n:"name"][a];return(0,v.jsx)(t,{onContinue:()=>c(),setSelectedChange:d,handleUpdateOwnerShip:p,handleAddUbo:N})})()})})})})})};var Ne=a(60120),xe=a(22949),Ee=a(41307),Se=a(18184),Ie=a(78604),we=a(27581),De=a(50583),ke=a(90024);const Oe=["children"],Ae=e=>{let{children:n}=e,a=(0,ke.A)(e,Oe);return(0,v.jsx)(c.Provider,{value:a,children:n})};var Te=a(67094),Ce=a(78065),je=a(19024);const Ue=()=>{var e,n,a,t,s,r,l,d,u,c,m,_,p,f,h,y,b,g,N,x,E,S,I,w,D,k;const{spotlightState:{data:O}}=(0,i.useModal)(),{uboDetails:A={},fileUploadRequestId:T}=O||{},C=(0,o.mN)({mode:"onChange",reValidateMode:"onChange",defaultValues:{id:null!=(e=null==A?void 0:A.id)?e:"",request_id:T,first_name:null!=(n=null==A?void 0:A.first_name)?n:"",last_name:null!=(a=null==A?void 0:A.last_name)?a:"",middle_name:null!=(t=null==A?void 0:A.middle_name)?t:"",citizenship:null!=(s=null==A?void 0:A.citizenship)?s:"",ssn:null!=(r=null==A?void 0:A.ssn)?r:"",dob:null==A?void 0:A.dob,phone:null!=(l=null==A?void 0:A.phone)?l:"",email:null!=(d=null==A?void 0:A.email)?d:"",address:{primary_line:(null==A||null==(u=A.address)?void 0:u.primary_line)||(null==A||null==(c=A.address)?void 0:c.address_line_1)||"",address_line_2:null!=(m=null==A||null==(_=A.address)?void 0:_.address_line_2)?m:"",unit:null!=(p=null!=(f=null==A||null==(h=A.address)?void 0:h.unit)?f:null==A||null==(y=A.address)?void 0:y.address_line_2)?p:"",city:null!=(b=null==A||null==(g=A.address)?void 0:g.city)?b:"",state:null!=(N=null==A||null==(x=A.address)?void 0:x.state)?N:"",zip_code:null!=(E=null==A||null==(S=A.address)?void 0:S.zip_code)?E:""},identity_document_id:null!=(I=null==A?void 0:A.identity_document_id)?I:"",identity_document_type:null!=(w=null==A?void 0:A.identity_document_type)?w:"",ownership_percentage:parseFloat(null!=(D=null==A?void 0:A.ownership_percentage)?D:0),role:null!=(k=null==A?void 0:A.role)?k:""},resolver:(0,we.aw)(De.hq)});return(0,v.jsx)("section",{className:" flex flex-col items-center  overflow-y-auto flex-grow-0 min-h-0  w-full h-full ",children:(0,v.jsx)("div",{className:"flex flex-col align-center gap-6 w-full md:w-552 justify-center self-center",children:(0,v.jsx)(o.Op,Object.assign({},C,{children:(0,v.jsx)(q,{})}))})})},Re=()=>{const{closeModal:e,closeSpotlightModal:n,modalState:a}
1=(0,i.useModal)(),{currentStep:t,selectedChange:s}=m();return(0,v.jsxs)(i.Modal,{isOpen:a.name===r.yQ.CONFIRM_UBO_EXIT,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,closeIcon:!0,children:[(0,v.jsx)(i.ModalHeader,{children:(0,v.jsx)(i.Header4,{children:h.WD.are_you_sure_you_want_2})}),(0,v.jsx)(i.ModalContent,{className:"flex-col items-center gap-6",children:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsxs)("section",{className:"text-typography-default flex w-full flex-col gap-3",children:[(0,v.jsx)("p",{children:h.WD.by_cancelling_this_process_now_any}),(0,v.jsx)("p",{children:h.WD.you_will_still_be_able})]}),(0,v.jsxs)("footer",{className:"flex w-full flex-col gap-3",children:[(0,v.jsx)(i.Button,{"data-test-id":"continue-to-ubo",onClick:()=>{(0,pe.sx)(Object.assign({},P.Y.CLICK.UBO.CONTINUE_TO_UBO_UPDATE,{current_step:t,screen_name:`Update Business Info - Step ${t}`,selected_change:null==s?void 0:s.value})),e()},className:"w-full",buttonVariant:"secondary",children:h.WD.continue_updating_ubo_information}),(0,v.jsx)(i.Button,{"data-test-id":"exit-ubo",onClick:()=>{(0,pe.sx)(Object.assign({},P.Y.CLICK.UBO.EXIT_UBO_UPDATE,{current_step:t,screen_name:`Update Business Info - Step ${t}`,selected_change:null==s?void 0:s.value})),n(),e()},className:"w-full",children:h.WD.back_to_business_info_update})]})]})})]})},Pe=()=>{const{closeModal:e,modalState:n}=(0,i.useModal)(),a=(0,s.useNavigate)(),{currentStep:t,selectedChange:o}=m();return(0,v.jsxs)(i.Modal,{isOpen:n.name===r.yQ.CONFIRM_EXIT_BUSINESS_INFO_UPDATE,shouldCloseOnBackdrop:!0,shouldCloseOnEsc:!0,closeIcon:!0,children:[(0,v.jsx)(i.ModalHeader,{children:(0,v.jsx)(i.Header4,{children:h.WD.are_you_sure_you_want})}),(0,v.jsx)(i.ModalContent,{className:"flex-col items-center gap-6",children:(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)("section",{className:"text-typography-default flex w-full flex-col gap-3",children:(0,v.jsx)("p",{children:h.WD.if_you_cancel_this_process_now})}),(0,v.jsxs)("footer",{className:"flex w-full flex-row gap-3",children:[(0,v.jsx)(i.Button,{"data-test-id":"continue-to-business-info-update",onClick:()=>{(0,pe.sx)(Object.assign({},P.Y.CLICK.CONTINUE_TO_BUSINESS_INFO_UPDATE,{current_step:t,screen_name:`Update Business Info - Step ${t}`,selected_change:null==o?void 0:o.value})),e()},className:"w-full",buttonVariant:"secondary",children:h.WD.stay_and_continue}),(0,v.jsx)(i.Button,{"data-test-id":"exit-business-info-update",onClick:()=>{(0,pe.sx)(Object.assign({},P.Y.CLICK.EXIT_BUSINESS_INFO_UPDATE,{current_step:t,screen_name:`Update Business Info - Step ${t}`,selected_change:null==o?void 0:o.value})),a(Q.NOVO_PAGE_ROUTES.AccountInfo)},className:"w-full",children:h.WD.cancel_anyway})]})]})})]})};var Fe=a(86891),Me=a(47134);const Be=()=>{var e,n,a;const l=(0,s.useLocation)(),d=(0,s.useNavigate)(),u=(0,Ne.useQueryClient)(),c=Fe.A.parse(l.search),[m,_]=(0,t.useState)(),[p,f]=(0,t.useState)(0),[y,b]=(0,t.useState)(null),{spotlightState:g,openSpotlightModal:N,closeSpotlightModal:x,openModal:E}=(0,i.useModal)(),[S,I]=(0,t.useState)("next"),[D,k]=(0,t.useState)([]),{privateAPIInstance:O}=(0,t.useContext)(xe.AuthContext)||{},A=(0,t.useRef)(!1),{data:T,status:C}=(0,Ne.useQuery)({queryKey:[r.lD.BUSINESS_INFO_UPDATE_FETCH_OWNERS],queryFn:async()=>await(0,Ee.H)(O,{}),enabled:void 0!==O,staleTime:2e3}),j=(0,Ce.J)();(0,t.useEffect)((()=>{m||g.name!==r.yQ.ADD_UBO||x()}),[]);const U=()=>{var e,n;(0,pe.sx)(Object.assign({},P.Y.CLICK.GO_TO_NEXT_SECTION,{existing_step:p,existing_step_name:r.YL[null!=(e=null==m?void 0:m.value)?e:"name"][p],selected_change:null==m?void 0:m.value,ubos:K,applicant_ownership:ee.getValues("ownership_percentage")})),I("next");const a=r.YL[null!=(n=null==m?void 0:m.value)?n:"name"][p];if("confirm_ownership"!==a&&"update_ownership_info"!==a)if("add_ubo"!==a)f((e=>{var n;return Math.min(e+1,r.YL[null!=(n=null==m?void 0:m.value)?n:"name"].length-1)}));else{var t;const e=r.YL[null!=(t=null==m?void 0:m.value)?t:"name"].indexOf("update_ownership_info");f(e)}else{var i;const e=r.YL[null!=(i=null==m?void 0:m.value)?i:"name"].indexOf("review_changes");f(e)}},{status:R,mutate:F}=(0,Ne.useMutation)({mutationKey:[r.lD.BUSINESS_INFO_UPDATE_SUBMIT],mutationFn:async e=>await(0,Te.Lb)(O,e),onSuccess:e=>{e.hasError?i.toast.error({message:e.message}):U()},onError:e=>{var n;console.error("BUSINESS_INFO_UPDATE_SUBMIT Error",e),i.toast.error({message:null!=(n=e.message)?n:h.WD.something_went_wrong})}}),{status:M,data:B,mutate:L}=(0,Ne.useMutation)({mutationKey:[r.lD.BUSINESS_UBO_UPDATE],mutationFn:async e=>await(0,Te.A)(O,e),onSuccess:e=>{null!=e&&e.hasError?i.toast.error({message:e.message}):!1===(null==e?void 0:e.hasError)&&(u.invalidateQueries({queryKey:[r.lD.BUSINESS_INFO_UPDATE_FETCH_OWNERS]}),U())},onError:e=>{var n;console.error("ACCOUNT_INFO_QUERY_KEYS.BUSINESS_UBO_UPDATE Error",e),i.toast.error({message:null!=(n=e.message)?n:h.WD.something_went_wrong})}}),q=(0,Se.c)(),V=(0,Ie.Y)(),Y=(0,Me.e)(),G=(0,t.useMemo)((()=>{var e,n,a;return null!=(e=Y.data)&&e.name&&Y.data.name.in_review?"name":null!=(n=Y.data)&&n.ein&&Y.data.ein.in_review?"ein":null!=(a=Y.data)&&a.beneficial_owners&&Y.data.beneficial_owners.in_review?"ubo":void 0}),[Y.data]),$=(0,t.useMemo)((()=>
1{if("success"===Y.status){var e,n,a;if("name"===G)return null==(e=Y.data)?void 0:e.name;if("ein"===G)return null==(n=Y.data)?void 0:n.ein;if("ubo"===G)return null==(a=Y.data)?void 0:a.beneficial_owners}}),[Y.status,Y.data,G]),{configDetails:H}=(0,je.w)(),z={name:(e,n,a)=>{var t,i,s,o,l,d,u;n.values={name:null==(t=e.new_business_name)?void 0:t.trim()},n.meta={ownership_percentage:e.ownership_percentage,ubo_details:null!=T&&T.length&&K.length>0?(0,W.TR)(T,[...K],D,e.ownership_percentage):[],ubo_details_authorized:!0},n.authorization=r.aN[a].replace("NAME",null!=(i=null==(s=q.data)||null==(s=s.name)||null==(s=s.data)?void 0:s.name)?i:"").replaceAll("EXISTING_COMPANY_NAME",null!=(o=null==(l=V.data)?void 0:l.company_name)?o:"").replace("NEW_COMPANY_NAME",e.new_business_name).replace("EXISTING_ACCOUNT_NUMBER",(0,W.n$)(null!=(d=null==(u=j.data)?void 0:u.bank_account_number)?d:""))},ein:(e,n,a)=>{var t,i,s,o,l,d,u,c;n.values={ein:e.new_ein_number},n.authorization=r.aN[a].replace("NAME",null!=(t=null==(i=q.data)||null==(i=i.name)||null==(i=i.data)?void 0:i.name)?t:"").replaceAll("EXISTING_COMPANY_NAME",null!=(s=null==(o=V.data)?void 0:o.company_name)?s:"").replaceAll("EXISTING_EIN",null!=(l=null==(d=V.data)?void 0:d.ein)?l:"").replace("NEW_EIN",e.new_ein_number).replace("EXISTING_ACCOUNT_NUMBER",(0,W.n$)(null!=(u=null==(c=j.data)?void 0:c.bank_account_number)?u:""))},name_type:(e,n,a)=>{var t,i,s,o,l,d,u,c,m,_,p,f,h;const v=!(null==(t=e.new_business_name)||!t.trim())&&e.new_business_name.trim()!==(null==(i=V.data)?void 0:i.company_name),y=!!e.new_business_type&&e.new_business_type!==(null==(s=V.data)?void 0:s.business_type);n.type=[...v?["NAME"]:[],...y?["TYPE"]:[]],n.values=Object.assign({},v?{name:e.new_business_name}:{},y?{type:r.Io[e.new_business_type]}:{});const b=e.new_business_type===w.e8.single_member_llc||e.new_business_type===w.e8.sole_proprietorship;n.meta={ownership_percentage:b?100:e.ownership_percentage,ubo_details:null!=T&&T.length?(0,W.TR)(T,[...K],D,e.ownership_percentage,b):[],ubo_details_authorized:!0},n.authorization=r.aN[a].replace("NAME",null!=(o=null==(l=q.data)||null==(l=l.name)||null==(l=l.data)?void 0:l.name)?o:"").replaceAll("EXISTING_COMPANY_NAME",null!=(d=null==(u=V.data)?void 0:u.company_name)?d:"").replaceAll("EXISTING_EIN",null!=(c=null==(m=V.data)?void 0:m.ein)?c:"").replace("NEW_EIN",e.new_ein_number).replaceAll("EXISTING_BUSINESS_TYPE",null!=(_=null==(p=V.data)?void 0:p.business_type)?_:"").replace("NEW_BUSINESS_TYPE",e.new_business_type).replace("NEW_COMPANY_NAME",e.new_business_name).replace("EXISTING_ACCOUNT_NUMBER",(0,W.n$)(null!=(f=null==(h=j.data)?void 0:h.bank_account_number)?f:""))},name_ein:(e,n,a)=>{var t,i,s,o,l,d,u,c;n.values={name:e.new_business_name,ein:e.new_ein_number},n.meta={ownership_percentage:e.ownership_percentage,ubo_details:null!=T&&T.length?(0,W.TR)(T,[...K],D,e.ownership_percentage):[],ubo_details_authorized:!0},n.authorization=r.aN[a].replace("NAME",null!=(t=null==(i=q.data)||null==(i=i.name)||null==(i=i.data)?void 0:i.name)?t:"").replaceAll("EXISTING_COMPANY_NAME",null!=(s=null==(o=V.data)?void 0:o.company_name)?s:"").replace("NEW_COMPANY_NAME",e.new_business_name).replaceAll("EXISTING_EIN",null!=(l=null==(d=V.data)?void 0:d.ein)?l:"").replace("NEW_EIN",e.new_ein_number).replace("EXISTING_ACCOUNT_NUMBER",(0,W.n$)(null!=(u=null==(c=j.data)?void 0:c.bank_account_number)?u:""))},name_type_ein:(e,n,a)=>{var t,i,s,o,l,d,u,c,m,_;n.values={name:e.new_business_name,ein:e.new_ein_number,type:r.Io[e.new_business_type]};const p=e.new_business_type===w.e8.single_member_llc||e.new_business_type===w.e8.sole_proprietorship;n.meta={ownership_percentage:p?100:e.ownership_percentage,ubo_details:null!=T&&T.length?(0,W.TR)(T,[...K],D,e.ownership_percentage,p):[],ubo_details_authorized:!0},n.authorization=r.aN[a].replace("NAME",null!=(t=null==(i=q.data)||null==(i=i.name)||null==(i=i.data)?void 0:i.name)?t:"").replaceAll("EXISTING_COMPANY_NAME",null!=(s=null==(o=V.data)?void 0:o.company_name)?s:"").replace("NEW_COMPANY_NAME",e.new_business_name).replaceAll("EXISTING_BUSINESS_TYPE",null!=(l=null==(d=V.data)?void 0:d.business_type)?l:"").replace("NEW_BUSINESS_TYPE",e.new_business_type).replaceAll("EXISTING_EIN",
1null!=(u=null==(c=V.data)?void 0:c.ein)?u:"").replace("NEW_EIN",e.new_ein_number).replace("EXISTING_ACCOUNT_NUMBER",(0,W.n$)(null!=(m=null==(_=j.data)?void 0:_.bank_account_number)?m:""))},ubo:(e,n,a)=>{n.meta={ubo_details:null!=T&&T.length?(0,W.TR)(T,[...K],D,e.ownership_percentage):[]}},type:function(e,n,a){throw new Error("Function not implemented.")}},X=(0,t.useMemo)((()=>{var e,n,a,t,i,s;return{company_name:null!=(e=null==(n=V.data)?void 0:n.company_name)?e:"",ein:null!=(a=null==(t=V.data)?void 0:t.ein)?a:"",business_type:null!=(i=null==(s=V.data)?void 0:s.business_type)?i:""}}),[null==(e=V.data)?void 0:e.company_name,null==(n=V.data)?void 0:n.ein,null==(a=V.data)?void 0:a.business_type]),[K,Z]=(0,t.useState)([]);(0,t.useEffect)((()=>{var e,n;if(!T)return;const a=null!=(e=null==T||null==(n=T.filter((e=>!1===e.is_applicant)))?void 0:n.map((e=>{var n,a,t,i,s,o,r,l,d,u,c,m,_,p,f,h,v,y,b,g,N,x;return{id:null!=(n=e.id)?n:"",first_name:null!=(a=e.first_name)?a:"",last_name:null!=(t=e.last_name)?t:"",middle_name:null!=(i=e.middle_name)?i:"",citizenship:null!=(s=e.citizenship)?s:"",ssn:null!=(o=e.ssn)?o:"",dob:null!=(r=e.dob)?r:"",phone:null!=(l=e.phone)?l:"",email:null!=(d=e.email)?d:"",address:{address_line_1:null!=(u=null==(c=e.address)?void 0:c.address_line_1)?u:"",address_line_2:null!=(m=null==(_=e.address)?void 0:_.address_line_2)?m:"",unit:null!=(p=null!=(f=null==(h=e.address)?void 0:h.unit)?f:null==(v=e.address)?void 0:v.address_line_2)?p:"",city:null==(y=e.address)?void 0:y.city,state:null==(b=e.address)?void 0:b.state,zip_code:null==(g=e.address)?void 0:g.zip_code,country_code:null==(N=e.address)?void 0:N.country_code},type:"EXISTING",identity_document_type:"",identity_document_id:"",ownership_percentage:null!=(x=e.ownership_percentage)?x:0}})))?e:[];Z(a)}),[T]);const J=(0,t.useMemo)((()=>{var e,n;return null!=(e=null==T||null==(n=T.find((e=>e.is_applicant)))?void 0:n.ownership_percentage)?e:0}),[T]),ee=(0,o.mN)({mode:"onBlur",reValidateMode:"onChange",defaultValues:{request_id:"",change_type:"",new_business_name:"",name_change_document:[],users_identity_type:"",confirm_ownership:!1,user_identity_document:null,ubo_details_authorized:!1,ownership_percentage:J,ubo_details:K.length>0?[Object.assign({},K)]:[],new_business_type:"",type_change_document:[],new_ein_number:"",ein_document:[],has_ack:!1},resolver:(0,we.aw)(De.v2)});(0,t.useEffect)((()=>{if("success"===C){if(A.current)return;A.current=!0,"ubo"===(null==c?void 0:c.changeType)&&(_(r.YB.find((e=>"ubo"===e.value))),ee.setValue("change_type","ubo"),f((e=>Math.min(e+1,r.YL.ubo.length-1))))}}),[C]);const ne=(e,n)=>{if(null!=n){const a=K.map(((a,t)=>t===n?Object.assign({},e,{action:"UPDATE"}):a));Z(a)}else Z((n=>[...n,e]));x()},ae=()=>{const e=ee.getValues("ownership_percentage");return"string"==typeof e&&""===e?0:e||(null!=J?J:0)},te=()=>{const e=ae();return 100-K.reduce(((e,n)=>e+(Number.isFinite(n.ownership_percentage)?n.ownership_percentage:0)),0)-(null!=e?e:0)};return"success"!==C?null:"success"===Y.status&&void 0!==$&&void 0!==G?(0,v.jsx)(s.Navigate,{to:Q.NOVO_PAGE_ROUTES.AccountInfo}):(0,v.jsxs)(Ae,{businessInfoReference:X,onSubmitRequest:e=>{var n,a;if(p===r.YL[null!=(n=null==m?void 0:m.value)?n:"name"].length-1)return;const t=e.change_type,s={request_id:e.request_id,type:r.cD[t],values:{},authorization:e.has_ack?"acknowledged":"pending",remaining_percentage_authorized:te()>25,meta:{}},o=z[t];if(o&&o(e,s,t),(0,pe.sx)(Object.assign({},P.Y.CLICK.SUBMIT_UPDATE_REQUEST,{existing_step:p,existing_step_name:r.YL[null!=(a=null==m?void 0:m.value)?a:"name"][p],selected_change:null==m?void 0:m.value})),"ubo"===t){var l;if(0===(null==(l=s.meta.ubo_details)?void 0:l.length))return i.toast.error({message:h.WD.no_changes_detected_if_you_need}),void d(Q.NOVO_PAGE_ROUTES.AccountInfo);L({ubo_details:s.meta.ubo_details})}else F(s)},uboData:K,ownershipData:J,ownersData:null==T?void 0:T.sort((e=>e.is_applicant?-1:1)),personalInfoData:q.data,requestSubmitStatus:"ubo"===(null==m?void 0:m.value)?M:R,updateRequestResponse:B,accountInfo:j,handleUpdateOwnerShip:()=>{var e;const n=r.YL[null!=(e=null==m?void 0:m.value)?e:"name"][p];if("confirm_ownership"===n){var a;const e=r.YL[null!=(a=null==m?void 0:m.value)?a:"name"].indexOf("update_ownership_info");(0,pe.sx)(Object.assign({},P.Y.CLICK.UPDATE_OWNERSHIP,{existing_step:p,existing_step_name:n,selected_change:null==m?void 0:m.value})),f(e)}},nextStep:U,prevStep:()=>{var e,n;(0,pe.sx)(Object.assign({},P.Y.CLICK.GO_TO_PREVIOUS_SECTION,{existing_step:p,existing_step_name:r.YL[null!=(e=null==m?void 0:m.value)?e:"name"][p],selected_change:null==m?void 0:m.value,ubos:K,applicant_ownership:ee.getValues("ownership_percentage")})),I("back");const a=r.YL[null!=(n=null==m?void 0:m.value)?n:"name"][p];if("ubo"===(null==m?void 0:m.value)&&"ubo"===(null==c?void 0:c.changeType)&&"update_ownership_info"===a&&d(Q.NOVO_PAGE_ROUTES.AccountInfo),"ubo_detail"===a&&b(null),"ein"===(null==m?void 0:m.value)||"review_changes"!==a)f((e=>Math.max(e-1,0)));else{var t;const e="ubo"===(null==m?void 0:m.value)?"update_ownership_info":"confirm_ownership",n=r.YL[null!=(t=null==m?void 0:m.value)?t:"name"].indexOf(e);f(n)}},setSelectedChange:_,selectedChange:m,currentStep:p,setCurrentStep:f,configDetails:H,handleAddUBO:()=>{var e;const n=r.YL[null!=(e=null==m?void 0:m.value)?e:"name"][p];"update_ownership_info"===n&&((0,pe.sx)(Object.assign({},P.Y.CLICK.ADD_UBO,{existing_step:p,existing_step_name:n,selected_change:null==m?void 0:m.value})),N({name:r.yQ.ADD_UBO,data:{uboDetails:{},onUBOSubmit:ne,fileUploadRequestId:ee.getValues("request_id")}}))},setUBOData:Z,handleEditUBO:e=>{var n;(0,pe.sx)(Object.assign({},P.Y.CLICK.EDIT_UBO,{existing_step:p})),N({name:r.yQ.ADD_UBO,data:{uboDetails:K[e],updateIndex:e,onUBOSubmit:ne,fileUploadRequestId:ee.getValues("request_id")}});const a=r.YL[null!=(n=null==m?void 0:m.value)?n:"name"].indexOf("update_ownership_info");f(a)},handleDeleteUBO:e=>{var n;k([...D,K[e]]);const a=K.filter(((n,a)=>a!==e));(0,pe.sx)(Object.assign({},P.Y.CLICK.DELETE_UBO,{existing_step:p})),Z(a),b(null);const t=r.YL[null!=(n=null==m?void 0:m.value)?n:"name"].indexOf("update_ownership_info");f(t)}
1,getUpdatedOwnershipPercentage:ae,getRemainingOwnershipPercentage:te,action:S,handleUBOPercentageChange:(e,n)=>{const a=K.map(((a,t)=>t===e?Object.assign({},a,{ownership_percentage:n}):a));Z(a)},targetedUboDetailIndex:y,setTargetedUboDetailIndex:b,handleUboDetail:e=>{var n;if(null==e||"ein"===(null==m?void 0:m.value))return;(0,pe.sx)(Object.assign({},P.Y.CLICK.UBO_DETAIL,{existing_step:p,targeted_owner:K[e]})),b(e);const a=r.YL[null!=(n=null==m?void 0:m.value)?n:"name"].indexOf("ubo_detail");f(a)},children:[(0,v.jsx)(o.Op,Object.assign({},ee,{children:(0,v.jsx)(ge,{})})),(0,v.jsx)(i.SpotlightModal,{isOpen:g.name===r.yQ.ADD_UBO,closeIcon:!0,onModalClose:()=>{E({name:r.yQ.CONFIRM_UBO_EXIT})},shouldCloseOnBackdrop:!1,shouldCloseOnEsc:!1,children:(0,v.jsx)(Ue,{})}),(0,v.jsx)(Re,{}),(0,v.jsx)(Pe,{})]})}},78065(e,n,a){"use strict";a.d(n,{J:()=>l});var t=a(75969),i=a(60120),s=a(22949),o=a(84961),r=a(85875);function l(){var e;const{privateAPIInstance:n}=null!=(e=(0,t.useContext)(s.AuthContext))?e:{};return(0,i.useQuery)({queryKey:[r.lD.ACCOUNT_INFO],queryFn:()=>(0,o.G)(n),staleTime:6048e5,enabled:!!n})}},78604(e,n,a){"use strict";a.d(n,{Y:()=>l});var t=a(75969),i=a(60120),s=a(22949),o=a(67094),r=a(85875);function l(){var e;const{privateAPIInstance:n}=null!=(e=(0,t.useContext)(s.AuthContext))?e:{};return(0,i.useQuery)({queryKey:[r.lD.BUSINESS_DETAILS],queryFn:()=>(0,o.vr)(n),enabled:!!n})}},47134(e,n,a){"use strict";a.d(n,{e:()=>l});var t=a(75969),i=a(60120),s=a(22949),o=a(67094),r=a(85875);function l(){var e;const{privateAPIInstance:n}=null!=(e=(0,t.useContext)(s.AuthContext))?e:{};return(0,i.useQuery)({queryKey:[r.lD.BUSINESS_INFO],queryFn:()=>(0,o.By)(n),enabled:!!n})}},19024(e,n,a){"use strict";a.d(n,{w:()=>u});var t=a(75969),i=a(60120),s=a(22949),o=a(54701),r=a(26443),l=a(94634);var d=a(85875);function u(){var e;const{privateAPIInstance:n}=null!=(e=(0,t.useContext)(s.AuthContext))?e:{};return{meDetails:(0,i.useQuery)({queryKey:[d.lD.ME_INFO],queryFn:()=>(async(e,n)=>{const a={data:{query:(0,o.y)(l.MeInformation),variables:n}};if(void 0===e)throw new Error("apiInstance is undefined");const t=await e.request(a);return(0,r.yi)(t)})(n),enabled:!!n}),configDetails:(0,i.useQuery)({queryKey:[d.lD.CONFIG_INFO],queryFn:()=>(async(e,n)=>{const a={data:{query:(0,o.y)(l.ConfigInformation),variables:n}};if(void 0===e)throw new Error("apiInstance is undefined");const t=await e.request(a);return(0,r.yi)(t)})(n),enabled:!!n})}}},18184(e,n,a){"use strict";a.d(n,{c:()=>l});var t=a(75969),i=a(60120),s=a(22949),o=a(28816),r=a(85875);function l(){var e;const{privateAPIInstance:n}=null!=(e=(0,t.useContext)(s.AuthContext))?e:{};return(0,i.useQuery)({queryKey:[r.lD.PERSONAL_INFO],queryFn:()=>(0,o.pF)(n),enabled:!!n})}},19582(e,n,a){"use strict";var t=a(72937);const i=JSON.parse('{"AccountInfoContainerLabels":{"AccountInfoSection":{"Title":"Settings","BankLetterButton":"Bank Letter","StatementsButton":"Statements","UsersButton":"Users"},"TransferLimitsSection":{"Title":"Transfer Limits"}},"PhoneNumberFormLabels":{"title":"Edit Mobile Phone","subTitle":"What\'s your new mobile phone number?","description":"A SMS will be sent to your mobile phone number to verify it\'s you. Message and data rates may apply.","fieldLabel":"Mobile Phone Number","actionButton":{"continue":"Continue","submit":"Submit"}},"PhoneOtpVerificationFormLabels":{"title":"Confirm Mobile Phone Change","fieldLabel":"Enter the code sent to","actionButton":"Continue","description":["You are updating your mobile phone number to","In order to confirm this mobile phone change, please confirm your new mobile phone number."]},"EmailFormLabels":{"title":"Edit Email","description":"An email will be sent to your new email address to verify it\'s you.","fieldLabel":"Mobile Phone Number","actionButton":"Send Code"},"EmailOtpVerificationFormLabels":{"title":"Confirm Email Change","fieldLabel":"Enter the code sent to","actionButton":"Continue","description":["You are updating your email to","In order to confirm this email change, please confirm your new email address."]},"EmailPhoneChangeSuccessLabels":{"title":"Information Updated!","subTitle":"Important Notice","description":"For security, you will be logged out of your Novo account in all devices. Please log in using your new email.","actionButton":"Done"},"ConfirmPhoneFormLabels":{"title":"Confirm Your Identity","fieldLabel":"Enter the code sent to","actionButton":"Continue","description":"In order to save these changes, we\'ll first need to confirm it\'s you making this change. This is to protect your account security."},"AddressFormLabels":{"title":"Edit","subTitle":"What\'s your new","actionButton":"Submit","file":{"title":"Proof of Address","uploadLimit":"Allowed file formats: PDF, JPG, PNG | Maximum file size 10MB"}},"BankLetterModalLabels":{"title":"Bank Letter","description":["The Bank Letter is a document provided by our partner bank to demonstrate the banking relationship and ownership of the account.","The bank letter will include the following information."],"actionButton":"Download","fields":{"accountOwner":"Account Holder","companyName":"Business N
1ame","accountNumber":"Account Number","routingNumber":"Routing Number","businessAddress":"Business Address","accountOpeningDate":"Account Opening Date"}},"DBAFormLabels":{"title":"Update your DBA","subTitle":"What\'s your new \u201cDoing Business As\u201d?","description":"<p>\\n                  Depending on the state or county of registration, it may be\\n                  called: DBA, Trade Name, Fictitious Name, or Assumed Name\\n                  certificate or statement.\\n                </p>\\n                <p>\\n                  Examples of various DBA Certificate names by state:\\n                  <br />\\n                  NC - Assumed Business Name Certificate\\n                  <br />\\n                  CT - Certificate of Trade Name\\n                  <br />\\n                  CA - Fictitious Business Name Statement\\n                  <br />\\n                  OH - State of Ohio Certificate, Trade Name Registration\\n                  <br />\\n                </p>\\n                <p>\\n                  If you didn\u2019t receive a certificate and your DBA is listed\\n                  publicly on the website of your Secretary of State, a\\n                  screenshot of the listing is acceptable.\\n                </p>\\n                <p>\\n                  We are unable to accept IRS certificates for proof of\\n                  registration at this time.\\n                </p>","actionButton":"Continue","fileUploadLimit":"Allowed file formats: PDF, JPG, PNG | Maximum file size 10MB"},"DBASuccessScreenLabels":{"title":"We have your request!","description":["We\'ll notify you as all the info has been verified or reach out to you if we need any details.","You can order a new debit card with your updated DBA once it\'s approved."]},"InReviewUpdateReqLabels":{"title":"in Review","description_first":"The edits are under review.","description_second":"New","actionButton":"Cancel Request"},"StartNewApplicationLabels":{"DIFFERENT_EIN":"Different EIN","DIFFERENT_EIN_ONE":"The EIN you entered is different than the one we have on file.","DIFFERENT_EIN_TWO":"For compliance reasons we can\'t add a new DBA to your account when there has been an EIN change. If you want to add a new DBA to your account while your EIN has changed we must ask you fill out a new account application.","DIFFERENT_EIN_THREE":"After your application is approved you will get a new Novo bank account where your new DBA and EIN will be updated.","DIFFERENT_EIN_FOUR":"You can choose to keep both Novo accounts or close one of them afterwards.","START_NEW_APPLICATION":"Start New Application","BACK":"Back"},"W9FormLabels":{"title":"W9 Form","note":"Please provide a W-9 to certify what EIN/TIN is attached to your business. To provide your W-9, please follow these three steps:","fileUploadLimit":"Allowed file formats: PDF, JPG, PNG | Maximum file size 10MB","secondaryButton":"Back","actionButton":"Submit"},"DiscardChangesLabel":{"title":"Discard Changes?","subTitle":"All your changes would be lost. Do you want to terminate this process?","actionButton":"Confirm","secondaryButton":"Cancel"},"BusinessOwnersLabel":{"BUSINESS_OWNERSHIP_INFO":"Business Ownership Info","MANAGE_OWNER":"Manage Owner","PRIMARY_OWNER":"Primary Owner","OWNERSHIP":"Ownership","OWNER":"Owner","IN_REVIEW":"In Review","OWNERSHIP_PERCENTAGE":"Ownership Percentage"},"BusinessInfoUpdateLabels":{"REMOVE_THIS_OWNER":"Remove this owner"},"EditWebsiteLabels":{"title":"Edit Website","actionButton":"Submit"},"COMMON":{"EDIT":"Edit","FULL_NAME":"Full Name","OWNERSHIP":"Ownership","DOB":"Date of Birth","CITIZENSHIP":"Citizenship","SSN":"SSN (Social Security Number)","SSN_SIMPLE":"SSN","EMAIL":"Email","PHONE":"Phone","PERSONAL_ADDRESS":"Personal Address","SUBMIT":"Submit","DBA":"DBA (Doing Business As)","EIN":"EIN (Employer Identification Number)","HOME_ADDRESS":"Home Address","LEGAL_NAME":"Legal Name","BUSINESS_INFO":"Business Info","PERSONAL_INFO":"Personal Info","MOBILE_NUMBER":"Mobile Number","LEGAL_BUSINESS_NAME":"Legal Business Name","BUSINESS_TYPE":"Business Type","PHONE_NUMBER":"Phone Number","BUSINESS_ADDRESS":"Business Address","MAILING_ADDRESS":"Mailing Address","BUSINESS_OWNERSHIP_INFO":"Business Ownership Info","OWNER_NAME":"Owner Name","DATE_OF_BIRTH":"Date of Birth","ADDRESS":"Address","FULL_LEGAL_NAME":"Full Legal Name","BUSINESS_NAME":"Business N
1ame","EMAIL_ADDRESS":"Email Address","ERROR_MESSAGE":"Something Went Wrong!","MOBILE_PHONE":"Mobile Phone","DBA_CERTIFICATE":"DBA Certificate","BENEFICIAL_OWNERS":"Beneficial Owners","WEBSITE":"Website","PROOF_OF_ADDRESS":"Proof of Address","IN_REVIEW":"In Review","REQUEST_A_NEW_CODE_IN":"Didn\'t get a code? Request a new code in {countdown}.","ADDRESS_DOC_EXAMPLES":["Utility bill","Lease agreement"],"AS_A_TYPE_YOUR_SSN":"As a {businessType} your SSN can be used in place of an EIN to identify your business."},"REVIEW_ACCOUNT_INFORMATION":{"TITLE":"Review your current account information","EDIT_INFORMATION":"Edit Information","LOOKS_GOOD":"Looks Good"},"DDAClosureLabels":{"CLOSE_ACCOUNT_BUTTON":"Close account","CLOSE_ACCOUNT_DESCRIPTION":"Permanently close your Novo account and remove access to Novo.","NOT_PRIMARY_USER":{"TITLE":"You\'re not the primary user","DESCRIPTION":"Only the Primary User on this account is authorized to make this request. Please contact {primaryUserEmail} to proceed.","DISMISS":"Dismiss","PRIMARY_USER_FALLBACK":"the Primary User"},"PASSWORD_MODAL":{"HEADER":"Close your Novo account?","DESCRIPTION":"Closing your account is permanent.","SUBMIT":"Close account","CANCEL":"Cancel"},"BLOCKERS":{"TITLE":"Almost done","SUBTITLE":"We can\'t close your account until everything below is resolved.","GOT_IT":"Got it"},"REASONS":{"TITLE":"Before you go","SUBTITLE":"We\'re sorry to see you leave. Let us know what led to your decision, your feedback helps us improve. Select all that apply:","SUB_REASONS_LABEL":"Select all that apply:","TEXTAREA_LABEL":"What could we have done better?","TEXTAREA_OPTIONAL":"Optional","TEXTAREA_PLACEHOLDER":"Your feedback helps us improve...","TEXTAREA_MIN_ERROR":"Please enter at least 80 characters","SUBMIT":"Submit","CANCEL":"Cancel","OTHERS_LABEL":"Other"},"AUTHORIZATION":{"TITLE":"Final authorization","SUBTITLE":"By clicking Delete account, you understand you\'ll lose access to the Novo platform permanently and cannot be undone.","CONFIRM_LABEL":"Please confirm all of the following:","CHECKBOX_1":"I authorize Novo to permanently close this account and understand my access will be revoked.","CHECKBOX_2":"I confirm there are no pending, upcoming, or recurring payments scheduled.","CHECKBOX_3":"I have downloaded any business documents and statements I need before closing my account.","CLOSE_ACCOUNT":"Close account","BACK":"Back"},"SUCCESS":{"TITLE":"You\'re all set","LOGOUT_BUTTON":"Log out"}},"BUSINESS_INFO_UPDATE_CHANGE_OPTIONS":{"name_type_ein":{"label":"Business Name, Business Type and EIN","description":"Update everything at once."},"name_type":{"label":"Business Name or Business Type","description":"Update your business name or type."},"name":{"label":"Business Name","description":"Update your business name only."},"name_ein":{"label":"Business Name and EIN","description":"Update your business name and the EIN."},"ein":{"label":"EIN (Employer Identification Number)","description":"Update your business EIN only."},"ubo":{"label":"Ownership Info","description":"Update your UBO (Ultimate Beneficial Owner)"}},"IDENTITY_VERIFICATION_OPTIONS":{"license":{"label":"U.S. Driver\u2019s License / State ID"},"passport":{"label":"Passport"}},"BUSINESS_TYPE_OPTIONS":{"sole_proprietorship":{"label":"Sole Proprietorship"},"partnership":{"label":"Partnership"},"corporation":{"label":"Corporation"},"llc":{"label":"LLC"},"single_member_llc":{"label":"Single Member LLC"}},"ADD_UPB_STEPS":{"personal_info":{"title":"Personal Info"},"contact_info":{"title":"Contact Info"},"id_verification":{"title":"ID Verification"}},"Title":"Personal Info","first_name":"First Name","last_name":"Last Name","middle_name":"Middle Name","phone":"Phone","email":"Email","address":"Address","full_name":"Full Name","validation":{"INVALID_PHONE_NUMBER":"Please enter valid phone number","INVALID_EMAIL":"Please enter a valid email","INVALID_WEBSITE":"Please enter a valid website","BUSINESS_NAME_MIN":"Business Name must be at least 2 characters","BUSINESS_NAME_MAX":"Business Name must be at most 250 characters","CONFIRM_OWNERSHIP":"You must confirm the ownership","FIRST_NAME_MIN":"First name must be at least 1 characters long.","FIRST_NAME_MAX":"First name must be at most 30 characters","LAST_NAME_MIN":"Last name must be at least 2 characters long.","LAST_NAME_MAX":"Last name must be at most 30 characters","UNIT_MAX":"Unit must be at most 20 characters"},"addressHeader":{"personal_address":{"title":"Home Address","question":"What\'s your new home address?","documentShouldCover":["Your legal name","Your address"]},"business_address":{"title":"Business Address","question":"What\'s your new physical business address?","documentShouldCover":["New address","Your legal name","Your business name"]},"mailing_address":{"title":"Mailing Address","question":"What\'s your new mailing address?","documentShouldCover":["New address","Your legal name","Your business name"]}},"not_editable":"Not Editable","new_ubo":"New UBO","current_info":"Current Info","update_info":"Update Info","please_prepare_the_following_documents":"Please prepare the following documents for the update request.","the_document_must_be_complete_dated":"The document must be complete, dated and signed. Kindly note we cannot accept IRS documents as a proof of a business document.","upload_document":"Upload Document","select_your_document_type":"Select your document type","upload_a_selfie_along_with_your":" Upload a selfie along with your driver\'s license or state ID.","upload_a_photo_of_the_owner":"Upload a photo of the owner\'s front license or state ID.","upload_a_selfie_along_with_your_2":"Upload a selfie along with your passport\'s main page.","upload_a_photo_of_the_passport":" Upload a photo of the passport\'s main page.","signature_and_photo_must_be_visible":"Signature and photo must be visible","information_should_be_clear_and":"Information should be clear and in focus","cannot_be_expired_or_a_military":"Cannot be expired, or a Military ID","example_of_photo_and_id_needed":"Example of photo and ID needed","front_of_driver_s_license_state":"Front of driver\u2019s license / State ID","main_page_of_passport":"Main page of passport","upload_photo":"Upload Photo","upload_a_photo_like_the_example":"Upload a photo like the example shown","deleted":"Deleted","previous":"Previous","update_owner":"Update Owner","add_owner":"Add Owner","next":"Next","are_you_sure_you_want":"Are you sure you want to cancel?","if_you_cancel_this_process_now":"If you cancel this process now, none of the information you have entered so far will be saved. You will need to start from the beginning next time.","stay_and_continue":"Stay and continue","cancel_anyway":"Cancel anyway","confirm_ownership_info":"Confirm ownership info","update_ownership_info":"Update ownership info","i_confirm_that_the_information_provided":"I confirm that the information provided on the beneficial\\n                    ownership of the business is accurate and factual, and I\\n                    would like to proceed with the request.","provide_your_ein_certificate":"Provide your EIN certificate","please_attache_your_ein_certificate_issued":"Please attache your EIN certificate issued by the IRS","to_provide_your_w_9_form":"To provide your W-9 form, please follow these three steps.","n1_download":"1. Download the","w_9_form":"W-9 Form","n2_open_the_w_9_form":"2. Open the W-9 form, fill and sign it digitally using free tool such as Adobe Fill & Sign, or print it out, and sign it manually.","you_can_access_the_tools_app":"You can access the tools/app by selecting the preferred platform..","open_adobe_tool_in_your_device":"Open Adobe tool in your device browser.","download_the_adobe_app_from_play":"Download the Adobe app from Play Store.","download_the_adobe_app_from_app":"Download the Adobe app from App Store.","proof_of_updated_ein":"Proof of updated EIN","your_business_ein_certificate_issued":"Your business EIN certificate issued by the IRS.","proof_of_identity":"Proof of Identity","provide_a_photo_of_you_next":"Provide a photo of you next to your driver\u2019s license or passport.","review_your_update_request":"Review your update request","confirm_and_verify_the_changes_you":"Confirm and verify the changes you have requested before final submission.","update_your_business_ein":"Update your Business EIN","please_provide_updated_business_ein":"Please provide updated Business EIN.","provide_updated_ein":"Provide updated EIN","ein_certificate_issued_by_irs":"EIN certificate issued by IRS","update_your_business_info":"Update your business info","select_a_section_to_make_changes":"Select a section to make changes.","once_you_select_an_option_you":"Once you select an option, you\'ll see a list of documents and information required to process your request.","close"
1:"Close","proof_of_updated_business_name":"Proof of updated business name","the_official_name_amendment_document":"The official name amendment document that shows the business name change or, the official business document that shows the correct business name if an incorrect one was updated on the account.","confirm_your_ownership_and_ubo_info":"Confirm your ownership and UBO info","please_confirm_the_information_regarding_your":"Please confirm the information regarding your business ownership.","update_your_business_name":"Update your Business Name","please_provide_your_new_legal_business":"Please provide your new legal business name","provide_your_new_legal_business_name":"Provide your new legal business name","new_legal_business_name":"New legal business name","business_name_amendment_document":"Business name amendment document","provide_your_secretary_of_state_document":"Provide your Secretary of State document","please_attach_a_business_document":"Please attach a business document that has your name as a member, manager, owner, or organizer of the business.","you_can_attach_any_of":"You can attach any of the following documents.","statement_of_organizer":"Statement of Organizer","initial_resolutions":"Initial Resolutions","articles_of_organization_incorporation":"Articles of Organization/Incorporation","operating_agreement":"Operating Agreement","minutes_of_meeting":"Minutes of Meeting","conversion_document":"Conversion Document","in_case_the_business_type":"(In case the business type is being changed from LLC to Corporation.)","partnership_agreement":"Partnership Agreement","in_case_the_business_type_2":"(In case the business type is being changed to Partnership.)","secretary_of_state_document":"Secretary of State document","proof_of_updated_business_name_2":"Proof of updated business name or type","secretary_of_state_documents_articles":"Secretary of State documents (Articles of Organization, Signed Operating Agreement, etc.)","provide_updated_legal_business_name":"Provide updated legal Business Name","select_updated_business_type":"Select updated Business Type","please_be_aware_that_while_we":"Please be aware that while we are able to support most business entity changes, if you are an LLC changing to a Corporation, your EIN number must remain the same. If the EIN number has changed, for these specific cases, you will need to apply for a new account.","please_write_to_us_via":"Please write to us via a support query with your circumstances, and we may be able to help you.","create_ticket":"Create Ticket","proof_of_updated_business_name_3":"Proof of updated business name and type","cancel_this_update":"Cancel this update?","no_changes_will_be_made":"No changes will be made on this page.","never_mind":"Never mind","we_are_reviewing_your_request":"We are reviewing your request","we_will_update_you_shortly":"We will update you shortly","requested_business_info":"Requested Business Info","we_re_looking_everything_over":"We\u2019re looking everything over","your_ownership_info_has_been_updated":"Your ownership info has been updated","you_should_hear_back_from_us":"You should hear back from us within 2 business days.","you_can_find_all_your_updates":"You can find all your updates by going to Account Info.","remove_this_owner":"Remove this owner?","this_owner_s_info_will":"This owner\u2019s info will be deleted, along with any of their data.","removing_this_owner_doesn_t_remove":"Removing this owner doesn\u2019t remove their access to this account if they are on the User List. To completely remove their access, make sure to delete them from the User List as well.","remove":"Remove","are_you_sure_you_want_2":"Are you sure you want to close this?","by_cancelling_this_process_now_any":"By cancelling this process now, any information you have entered or updated for UBO so far will not be saved.","you_will_still_be_able":"You will still be able to proceed with updating the Business Info.","continue_updating_ubo_information":"Continue updating UBO information","back_to_business_info_update":"Back to Business Info update","enter_email_address":"Enter email address","enter_address":"Enter Address","no_p_o_boxes":"No P.O.Boxes","unit":"Unit","enter_unit":"Enter Unit","enter_city":"Enter City","select_state":"Select State","zip_code":"Zip Code ","enter_zip_code":"Enter zip code","owner_details":"Owner details","upload_ubo_identity_document":"Upload UBO Identity Document","edit_this_owner_s_info":"Edit this owner\'s info","add_another_owner":"Add another owner","make_updates_to_their_personal_info":"Make updates to their personal info, contact info, and identification.","enter_their_personal_info_contact_info":"Enter their personal info, contact info, and identification.","progress":"Progress","percentage_owned":"Percentage Owned","enter_first_name":"Enter first name","enter_middle_name":"Enter middle name","enter_last_name":"Enter last name","select_citizenship":"Select citizenship","social_security_number":"Social Security Number","select_ubo_s_date_of_birth":"Select UBO\'s Date of Birth","confirm_ownership_and_ubo_info":"Confirm ownership and UBO info","review_your_update":"Review your update","make_sure_everything_looks_good_before":"Make sure everything looks good before submitting.","i_authorize_novo_to_update":"I authorize Novo to update the business ownership on my account and confirm I have obtained consent from all relevant business owners.","update_your_ownership_info":"Update your ownership info","adjust_the_percentage_of_ownership":"Adjust the percentage of ownership for each person.","required_field_please_enter_a_value":"Required field. Please enter a value.","there_s_no_space_for_more":"There\u2019s no space for more owners","add_another_owner_by_adjusting_your":"Add another owner by adjusting your percentages to free up at least 25%.","verify_your_identity":"Verify your identity","please_provide_your_government_id":"Please provide your government ID to verify your identity","upload_your_government_id":"Upload your government ID","edit_business_information":"Edit business Information","review_business_information":"Review business Information","change_password":"Change password","to_keep_your_novo_account_safe":"To keep your Novo account safe we must verify address changes.","please_provide_a_document_that_displays":"Please provide a document that displays these:","all_provided_docs_should_not":"All provided docs should not be older than 30 days.","some_common_examples":"Some common examples are:","unit_suite":"Unit / Suite","enter_unit_suite":"Enter Unit / Suite","zip":"Zip","enter_zip":"Enter Zip","all_done":"ALL DONE!","your_request_has_been_submitted":"Your request has been submitted","we_re_reviewing_your_business_info":"We\u2019re reviewing your business Info updates and will get back to you within 2 business days.","confirm_business_info":"Confirm Business Info","confirm_submit":"Confirm & Submit","requested_info":"Requested Info","cancel_this_request":"Cancel this Request","confirm_ein":"Confirm EIN","please_confirm_if_your_ssn":"Please confirm if your SSN is still relevant to identify your business or enter your new EIN 
1in case you have one.","keep_using_my_ssn":"Keep using my SSN","i_have_new_ein":"I have new EIN","verify_your_ein":"Verify your EIN","update_ein_info":"Update EIN info","i_confirm_that_the_information_provided_2":"I confirm that the information provided on the EIN is accurate and factual, and I would like to proceed with the request.","update_your_ein":"Update your EIN","update":"Update","provide_updated_dba":"Provide updated DBA","didn_t_get_a_code":"Didn\'t get a code?","request_a_new_code":"Request a new code.","request_a_new_code_2":"Request a new code","we_re_reviewing_your_updates":"We\'re reviewing your updates","you_should_hear_back_from_us_2":"You should hear back from us soon.","update_request":"Update Request","please_revert_requested_information":"Please revert requested information","cancel_updates":"Cancel updates","something_went_wrong":"Something went wrong","no_changes_detected_if_you_need":"No changes detected. If you need to update ownership information, please try again.","error":"Error","file_size_should_be_less_than":"File size should be less than 10 MB","uploaded_file_size_is_higher":"Uploaded File size is higher","businessDocuments":{"subDescription":"Please provide a business document that has your name as a member, manager, owner, or organizer of the business. This can be any of the following documents.","subList":["Statement of Organizer","Initial Resolutions","Articles of Organization/Incorporation","Operating Agreement","Minutes of Meeting","Conversion Document - (In case the business type is being changed from LLC to Corporation.)"],"partnershipAgreementDashed":"Partnership Agreement - (In case the business type is being changed to Partnership)","partnershipAgreement":"Partnership Agreement (In case the business type is being changed to Partnership)"},"uboRequirements":{"description":"You\u2019ll need to confirm any business owners that own or control at least 25% of the company. Here\u2019s what you\u2019ll need to provide:","subList":["Personal info (name, citizenship, DOB, and SSN)","Contact info","Driver\u2019s license or Passport","Selfie photo of person next to ID"]},"authorization":{"name":"I, <who>{who}</who>, hereby authorize Novo to update my business name from <from>{from}</from> to <to>{to}</to> on the account ending in <acct>{acct}</acct> due to a business name change.","name_and_type":"I, <who>{who}</who> , hereby authorize Novo to update my business name or type from <from>{fromName} {fromType}</from> to <to>{toName} {toType}</to> on the account ending in <acct>{acct}</acct> due to a business name or type change.","ein":"I,<who>{who}</who>, member of<company>{company}</company>hereby authorize Novo to update my EIN from<from>{from}</from>to<to>{to}</to>on the account ending in<acct>{acct}</acct>due to receiving a new EIN.","name_ein":"I,<who>{who}</who>, hereby authorize Novo to update my business name from<from>{from}</from>to<to>{to}</to> and update my EIN from<einFrom>{einFrom}</einFrom>to<einTo>{einTo}</einTo>on the account ending in<acct>{acct}</acct>due to a business name change along with the EIN.","name_type_ein":"I, <who>{who}</who> , hereby authorize Novo to update my business name and type from <from>{fromName} {fromType}</from> to <to>{toName} {toType}</to> and update my EIN from <einFrom>{einFrom}</einFrom> to <einTo>{einTo}</einTo> on the account ending in <acct>{acct}</acct> due to a business name and type change along with the EIN."},"businessNameType":{"title":"{connector, select, or {Update your Business Name or Type} other {Update your Business Name and Type}}","description":"{connector, select, or {Please provide updated legal Business Name or Type.} other {Please provide updated legal Business Name and Type.}}"},"let_us_know_who_owns_25_or_more_of_the_business":"Let us know who owns 25% or more of the business.","i_confirm_no_other_owners_has_more_than_25_of_ownership":"I confirm no other owners has more than 25% of ownership in the business and information provided on the beneficial\\n                    ownership of the business is accurate and factual, and I\\n                    would like to proceed with the request. ","only_add_owners_with_25_or_more_ownership":"Only add owners with 25% or more ownership","ownership_should_be_more_than_25":"Ownership should be more than 25%","include_anyone_who_owns_25_or_more_of_the_business":"Include anyone who owns 25% or more of the business.","city":"City","state":"State","LanguagePreferenceLabels":{"title":"Language","description":"The language Novo uses across the web app, emails, and Ask Anything.","saveLabel":"Save changes"},"AssistantAccessLabels":{"saveSuccess":"Data access updated"},"SettingsTabsLabels":{"accountInfo":"Account info","preferences":"Preferences"}}');(0,t.registerCatalogue)("account-info",i,{es:()=>a.e(22911).then(a.t.bind(a,22911,19)).then((e=>e.default))})},30958(e,n,a){"use strict";a.d(n,{E:()=>t,x:()=>i});let t=function(e){return e.SUPPORT="SUPPORT",e.SEND_MONEY="SEND_MONEY",e.CREDIT_CARD="CREDIT_CARD",e.LENDING="LENDING",e}({}),i=function(e){return e.BLOCKERS="blockers",e.REASONS="reasons",e.AUTHORIZATION="authorization",e.SUCCESS="success",e}({})},85875(e,n,a){"use strict";a.d(n,{Ac:()=>x,Ah:()=>R,An:()=>w,Bc:()=>A,DW:()=>_,EU:()=>y,Io:()=>N,OG:()=>j,OK:()=>m,Oj:()=>O,W5:()=>p,YB:()=>v,YL:()=>E,Yd:()=>C,Yq:()=>c,aN:()=>S,bD:()=>h,bI:()=>f,cD:()=>g,co:()=>U,h5:()=>I,jU:()=>D,km:()=>k,lD:()=>r,rx:()=>u,uV:()=>l,xw:()=>b,yQ:()=>d,zv:()=>T});var t=a(21215),i=a(71067),s=a(30958),o=a(72937);a(19582);var r=function(e){return e.USERS_INFO="USERS_INFO",e.ACCOUNT_INFO="ACCOUNT_INFO",e.PERSONAL_INFO="PERSONAL_INFO",e.BUSINESS_INFO="BUSINESS_INFO",e.BUSINESS_DETAILS="BUSINESS_DETAILS",e.ME_INFO="ME_INFO",e.CONFIG_INFO="CONFIG_INFO",e.BUSINESS_INFO_UPDATE_FETCH_OWNERSHIP="BUSINESS_INFO_UPDATE_FETCH_OWNERSHIP",e.BUSINESS_INFO_UPDATE_FETCH_OWNERS="BUSINESS_INFO_UPDATE_FETCH_OWNERS",e.BUSINESS_INFO_UPDATE_SUBMIT="BUSINESS_INFO_UPDATE_SUBMIT",e.EIN_SSN_DETAILS="EIN_SSN_DETAILS",e.BUSINESS_UBO_UPDATE="BUSINESS_UBO_UPDATE",e.ACKNOWLEDGE_ACCOUNT_INFO="ACKNOWLEDGE_ACCOUNT_INFO",e}(r||{}),l=function(e){return e.PERSONAL_INFO="PERSONAL_INFO",e.BUSINESS_INFO="BUSINESS_INFO",e}(l||{}),d=function(e){return e.ACCOUNT_INFO="ACCOUNT_INFO",e.BANK_LETTER_MODAL="BANK_LETTER_MODAL",e.EMAIL="EMAIL",e.EMAIL_IDENTITY_VERIFICATION="EMAIL_IDENTITY_VERIFICATION",e.EMAIL_OTP_VERIFICATION="EMAIL_OTP_VERIFICATION",e.PHONE_NUMBER="PHONE_NUMBER",e.CONFIRM_PHONE_CHANGE="CONFIRM_PHONE_CHANGE",e.PHONE_OTP_VERIFICATION="PHONE_OTP_VERIFICATION",e.ADDRESS="ADDRESS",e.MAILING_ADDRESS="MAILING_ADDRESS",e.IN_REVIEW_UPDATE_REQUEST="IN_REVIEW_UPDATE_REQUEST",e.DBA="DBA",e.DBA_EIN="DBA_EIN",e.DBA_START_NEW_APPLICATION="DBA_START_NEW_APPLICATION",e.DBA_W9="DBA_W9",e.DBA_EIN_UPDATE="DBA_EIN_UPDATE",e.DBA_EIN_REVIEW="DBA_EIN_REVIEW",e.DISCARD_CHANGES="DISCARD_CHANGES",e.BUSINESS_NAME_TYPE_CHANGE="BUSINESS_NAME_TYPE_CHANGE",e.ADD_UBO="ADD_UBO",e.CONFIRM_UBO_EXIT="CONFIRM_UBO_EXIT",e.CONFIRM_EXIT_BUSINESS_INFO_UPDATE="CONFIRM_EXIT_BUSINESS_INFO_UPDATE",e.CONFIRM_CANCEL_BUSINESS_INFO_UPDATE="CONFIRM_CANCEL_BUSINESS_INFO_UPDATE",e.UBO_DETAILS="UBO_DETAILS",e.CONFIRM_UBO_DELETE="CONFIRM_UBO_DELETE",e.WEBSITE="WEBSITE",e.DDA_CLOSE_ACCOUNT_NOT_PRIMARY_USER="DDA_CLOSE_ACCOUNT_NOT_PRIMARY_USER",e}(d||{});const u={shouldCloseOnBackdrop:!1,shouldCloseOnEsc:!1};var c=function(e){return e.FROZEN="FROZEN",e}(c||{}),m=function(e){return e.ACCOUNT_STATUS="ACCOUNT_STATUS",e}(m||{}),_=function(e){return e.FULL_FREEZE="FULL_FREEZE",e}(_||{});const p=6048e5,f="/upload/personal-info-update-upload",h="/upload/business-info-update-upload",v=[{value:"name_type_ein",get label(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type_ein.label")},get description(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type_ein.description")}},{value:"name_type",get label(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type.label")},get description(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_type.description")}},{value:"name",get label(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name.label")},get description(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name.de
1scription")}},{value:"name_ein",get label(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_ein.label")},get description(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.name_ein.description")}},{value:"ein",get label(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ein.label")},get description(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ein.description")}},{value:"ubo",get label(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ubo.label")},get description(){return(0,o.catalogueText)("account-info","BUSINESS_INFO_UPDATE_CHANGE_OPTIONS.ubo.description")}}],y=[{value:"LICENSE",get label(){return(0,o.catalogueText)("account-info","IDENTITY_VERIFICATION_OPTIONS.license.label")}},{value:"PASSPORT",get label(){return(0,o.catalogueText)("account-info","IDENTITY_VERIFICATION_OPTIONS.passport.label")}}],b=[{value:i.e8.sole_proprietorship,get label(){return(0,o.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.sole_proprietorship.label")}},{value:i.e8.partnership,get label(){return(0,o.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.partnership.label")}},{value:i.e8.corporation,get label(){return(0,o.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.corporation.label")}},{value:i.e8.llc,get label(){return(0,o.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.llc.label")}},{value:i.e8.single_member_llc,get label(){return(0,o.catalogueText)("account-info","BUSINESS_TYPE_OPTIONS.single_member_llc.label")}}],g={name:["NAME"],ein:["EIN"],name_ein:["NAME","EIN"],name_type:["NAME","TYPE"],name_type_ein:["NAME","TYPE","EIN"],type:["NAME","TYPE"],ubo:["UBO"]},N={sole_proprietorship:"SOLE_PROPRIETORSHIP",partnership:"PARTNERSHIP",corporation:"CORPORATION",llc:"LLC",single_member_llc:"LLC"},x=[{get title(){return(0,o.catalogueText)("account-info","ADD_UPB_STEPS.personal_info.title")}},{get title(){return(0,o.catalogueText)("account-info","ADD_UPB_STEPS.contact_info.title")}},{get title(){return(0,o.catalogueText)("account-info","ADD_UPB_STEPS.id_verification.title")}}],E={name:["select_change_type","update_name","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],ein:["select_change_type","update_ein","verify_identity","review_changes","success"],name_type:["select_change_type","update_name_type","business_type_document","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],name_ein:["select_change_type","update_name","update_ein","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],name_type_ein:["select_change_type","update_name_type","business_type_document","update_ein","verify_identity","confirm_ownership","update_ownership_info","ubo_detail","add_ubo","review_changes","success"],ubo:["select_change_type","update_ownership_info","ubo_detail","add_ubo","review_changes","success"]},S={ein:"I, NAME, member of EXISTING_COMPANY_NAME authorize Novo to update my EIN from EXISTING_EIN to NEW_EIN on the account ending in EXISTING_ACCOUNT_NUMBER due to receiving a new EIN.",name:"I, NAME, hereby authorize Novo to update my business name from EXISTING_COMPANY_NAME to NEW_COMPANY_NAME on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name change.",name_ein:"I, NAME, hereby authorize Novo to update my business name from EXISTING_COMPANY_NAME to NEW_COMPANY_NAME and update my EIN from EXISTING_EIN to NEW_EIN on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name change along with the EIN.",name_type:"I, NAME, hereby authorize Novo to update my business name or type from EXISTING_COMPANY_NAME EXISTING_BUSINESS_TYPE to NEW_COMPANY_NAME NEW_BUSINESS_TYPE on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name or type change.",name_type_ein:"I, NAME, hereby authorize Novo to update my business name and type from EXISTING_COMPANY_NAME EXISTING_BUSINESS_TYPE to NEW_COMPANY_NAME NEW_BUSINESS_TYPE and update my EIN from EXISTING_EIN to NEW_EIN on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name and type change along with the EIN.",type:"I, NAME, hereby authorize Novo to update my business name and type from EXISTING_COMPANY_NAME EXISTING_BUSINESS_TYPE to NEW_COMPANY_NAME NEW_BUSINESS_TYPE on the account ending in EXISTING_ACCOUNT_NUMBER due to a business name and type change.",ubo:"I, NAME, hereby authorize Novo to update my business ownership on the account ending in EXISTING_ACCOUNT_NUMBER."},I={visible:{transition:{delayChildren:.2,staggerChildren:.05}}},w={hidden:{y:-10,opacity:0}
1,visible:{y:0,opacity:1}},D={enterFromLeft:{x:"-100vw",opacity:0,transition:{duration:.7}},enterFromRight:{x:"100vw",opacity:0,transition:{duration:.7}},center:{x:0,opacity:1,transition:{duration:.7}},exitToLeft:{x:"100vw",opacity:0,transition:{duration:.7}},exitToRight:{x:"-100vw",opacity:0,transition:{duration:.7}}},k={enterFromLeft:{x:"-200px",opacity:0,transition:{duration:.5}},enterFromRight:{x:"200px",opacity:0,transition:{duration:.5}},center:{x:0,opacity:1,transition:{duration:.5,delay:.1}},exitToLeft:{x:"200px",opacity:0,transition:{duration:.5}},exitToRight:{x:"-200px",opacity:0,transition:{duration:.5}}},O={get first_name(){return(0,o.catalogueText)("account-info","first_name")},get last_name(){return(0,o.catalogueText)("account-info","last_name")},get middle_name(){return(0,o.catalogueText)("account-info","middle_name")},citizenship:"Citizenship",ssn:"SSN",dob:"DOB",get phone(){return(0,o.catalogueText)("account-info","phone")},get email(){return(0,o.catalogueText)("account-info","email")},get address(){return(0,o.catalogueText)("account-info","address")},get full_name(){return(0,o.catalogueText)("account-info","full_name")}},A="DD MMM YYYY",T={[s.E.SUPPORT]:t.NOVO_PAGE_ROUTES.Support,[s.E.SEND_MONEY]:t.NOVO_PAGE_ROUTES.MakePayment,[s.E.CREDIT_CARD]:t.NOVO_PAGE_ROUTES.NovoCard,[s.E.LENDING]:t.NOVO_PAGE_ROUTES.Lending},C="OTHER",j=80,U=1e3,R=[{label:"English (US)",value:"en"},{label:"Espa\xf1ol",value:"es"}]},65789(e,n,a){"use strict";a.d(n,{Y:()=>s,w:()=>i});const t="button_clicked",i={BUTTON:{EDIT_PHONE_NUMBER:{event_name:t,name:"edit_phone_number",action:"open_phone_update_modal",position:"left"},EDIT_ADDRESS:{event_name:t,name:"edit_address",action:"open_address_update_modal",position:"left"},RESEND_OTP:{event_name:t,name:"resend_otp",action:"resend_otp",position:"right"},VERIFY_OTP:{event_name:t,name:"verify_otp",action:"update_phone_number",position:"right"},CHANGE_MOBILE_NUMBER:{event_name:t,name:"change_mobile_number",action:"open_phone_update_modal",position:"right"},UPDATE_ADDRESS:{event_name:t,name:"update_address",action:"form_submit",position:"bottom"},UPDATE_DBA:{event_name:t,name:"update_dba",action:"form_submit",position:"bottom"},ACCOUNT_NUMBER_VIEW:{name:"account_number",action:"account_number_view",position:"left_menu",screen_name:"web_home_screen",event_name:t},COPY_ACCOUNT_NUMBER:{event_type:t,event_name:"copy_account_number",screen_name:""},COPY_ROUTING_NUMBER:{event_type:t,event_name:"copy_routing_number",screen_name:""},MANAGE_OWNERS:{event_type:t,event_name:"manage_owners",screen_name:"accounting_info"},EDIT_INFORMATION:{event_type:t,event_name:"edit_information",screen_name:"review_accounting_info"},EDIT_WEBSITE:{event_type:t,event_name:"edit_website",action:"form_submit"},LOOKS_GOOD:{event_type:t,event_name:"looks_good",screen_name:"review_accounting_info"}},OPTION:{STATE:{VIEWED:{event_name:"option_viewed",type:"select",label:"state",name:"address_state"},SELECTED:{event_name:"option_selected",type:"select",label:"state",name:"address_state"}}},PERSONAL_INFO_UPDATE_REQUEST:{event_name:"personal_info_update",state:"initiate",action:"update"},BUSINESS_INFO_UPDATE_REQUEST:{event_name:"business_info_update",state:"initiate",action:"create"},ACCOUNT_DOCS:{event_name:"account_docs",state:"initiate"},SCREEN:{REVIEW_ACCOUNT_INFORMATION:{event_name:"review_account_information_screen_viewed",event_type:"screen_viewed",screen_name:"review_account_information"}}},s={CLICK:{SELECT_CHANGE_TYPE:{event_name:"select_change_type",event_type:t,screen_name:"Update Business Info Step 1"},UBO:{EXIT_UBO_UPDATE:{event_name:"exit_ubo_update",event_type:t},CONTINUE_TO_UBO_UPDATE:{event_name:"continue_to_ubo_update",event_type:t}},EDIT_UBO:{event_name:"edit_ubo",event_type:t,screen_name:"update_ownership"},UBO_DETAIL:{event_name:"ubo_detail",event_type:t,screen_name:"update_ownership"},UBO_DETAIL_CANCEL_REMOVE:{event_name:"ubo_detail_cancel_remove",event_type:t,screen_name:"ubo_detail"},UBO_DETAIL_CONFIRM_DELETE:{event_name:"ubo_detail_confirm_delete",event_type:t,screen_name:"ubo_detail"},DELETE_UBO:{event_name:"delete_ubo",event_type:t,screen_name:"update_ownership"},EXIT_BUSINESS_INFO_UPDATE:{event_name:"exit_business_info_update",event_type:t},CONTINUE_TO_BUSINESS_INFO_UPDATE:{event_name:"continue_to_business_info_update",event_type:t},UPDATE_OWNERSHIP:{event_name:"update_ownership_button_clicked",event_type:"button_clicked",screen_name:"Update Business Info"},ADD_UBO:{event_name:"add_ubo_button_clicked",event_type:"button_clicked",screen_name:"Update Business Info"},GO_TO_NEXT_SECTION:{event_name:"go_to_next_section",event_type:"button_clicked",screen_name:"Update Business Info"},GO_TO_PREVIOUS_SECTION:{event_name:"go_to_previous_section",event_type:"button_clicked",screen_name:"Update Business Info"},SUBMIT_UPDATE_REQUEST:{event_name:"submit_button_clicked",event_type:"button_clicked",screen_name:"Update Business Info"},REVIEW:{GO_BACK_TO_REVIEW_REQUEST:{event_name:"go_back_to_review_request",event_type:t,current_step:"request_review"},CONFIRM_AND_CANCEL_BUSINESS_INFO_UPDATE:{event_name:"confirm_and_cancel_business_info_update",event_type:t,current_step:"request_review"}}}}},26443(e,n,a){"use strict";a.d(n,{Fb:()=>d.formateSSN,Gh:()=>S,Iy:()=>g,JX:()=>A,QG:()=>k,TR:()=>w,bL:()=>v,f8:()=>b,n$:()=>I,n4:()=>N,pL:()=>E,pY:()=>D,qt:()=>T,vd:()=>x,yi:()=>p,zx:()=>C});var t=a(90024),i=a(73681),s=a.n(i),o=a(85875),r=a(91317),l=a.n(r),d=a(36195),u=a(43051);const c=["data"],m=["data"],_=["entry","type","requestId","modalProps","newValue","otpSentTo","files"],p=e=>{if(e.data.errors)throw new Error(e.data.errors[0].message);if(!e.data.data)throw new Error("No data returned");
1if(!e.data.data.responseData)throw new Error("Developer doesn't define aliases (responseData) for Query/Mutation");return e.data.data.responseData},f=e=>{const{address:n,address_line_1:a,address_line_2:t,city:i,state:s,zip_code:o}=e;return`${[a||n,t,i,s].filter((e=>!!e)).join(", ")} - ${o||""}`},h=(e,n)=>{var a;const{data:i}=n,r=(0,t.A)(n,c),l=r.in_review?o.yQ.IN_REVIEW_UPDATE_REQUEST:"";switch(e){case"name":return Object.assign({title:u.Sq.LEGAL_NAME,formattedValue:n.data.name},r);case"email":return Object.assign({title:u.Sq.EMAIL,formattedValue:n.data.email,modalName:l||o.yQ.EMAIL},r);case"phone":return Object.assign({title:u.Sq.MOBILE_PHONE,formattedValue:N(n.data.phone),modalName:l||o.yQ.PHONE_NUMBER},r);case"address":return Object.assign({title:u.Sq.HOME_ADDRESS,formattedValue:f(i.address),modalName:l||o.yQ.ADDRESS,docTitle:u.Sq.PROOF_OF_ADDRESS},r);case"ssn":return Object.assign({title:u.Sq.SSN,formattedValue:null==(a=n.data.ssn)?void 0:a.masked},r);case"dob":return Object.assign({title:u.Sq.DOB,formattedValue:s()(n.data.dob).format("DD MMM YYYY")},r);default:return{}}},v=e=>{const n={};return Object.keys(e).forEach((a=>{const t=a;n[t]=h(t,e[t])})),n},y=(e,n)=>{const a=(0,t.A)(n,m),i=a.in_review?o.yQ.IN_REVIEW_UPDATE_REQUEST:"";switch(e){case"company_name":return Object.assign({title:u.Sq.LEGAL_BUSINESS_NAME,formattedValue:n.data.company_name},a,{is_editable:!0});case"dba":return Object.assign({title:"DBA",formattedValue:n.data.dba||"N.A",modalName:i||o.yQ.DBA,docTitle:u.Sq.DBA_CERTIFICATE},a);case"phone":return Object.assign({title:u.Sq.PHONE_NUMBER,formattedValue:N(n.data.phone),modalName:i||o.yQ.PHONE_NUMBER},a);case"address":return Object.assign({title:u.Sq.BUSINESS_ADDRESS,formattedValue:f(n.data.address),modalName:i||o.yQ.ADDRESS,docTitle:u.Sq.PROOF_OF_ADDRESS},a);case"mailing_address":return Object.assign({title:u.Sq.MAILING_ADDRESS,formattedValue:f(n.data.address),modalName:i||o.yQ.MAILING_ADDRESS,docTitle:u.Sq.PROOF_OF_ADDRESS},a);case"name":return Object.assign({title:u.Sq.BUSINESS_NAME,formattedValue:n.data.name||"N.A"},a);case"ein":return Object.assign({title:"EIN",formattedValue:n.data.ein||"N.A"},a);case"beneficial_owners":return Object.assign({title:u.Sq.BENEFICIAL_OWNERS,formattedValue:n.data.beneficial_owners||"N.A"},a);case"website":return Object.assign({title:u.Sq.WEBSITE,formattedValue:n.data.website||"-",modalName:i||o.yQ.WEBSITE},a);default:return{}}},b=e=>{const n={};return Object.keys(e).forEach((a=>{const t=a;n[t]=y(t,e[t])})),n},g=(e,n)=>{if(e===o.uV.PERSONAL_INFO&&n===o.yQ.ADDRESS)return u.cE.personal_address;if(e===o.uV.BUSINESS_INFO){if(n===o.yQ.ADDRESS)return u.cE.business_address;if(n===o.yQ.MAILING_ADDRESS)return u.cE.mailing_address}return{}},N=e=>e?e.slice(-10).replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):"",x=(e,n,a)=>{const t=[n.first_name,n.middle_name,n.last_name].filter(Boolean).join(" "),i=e.company_name,o=a.bank_account_number,r=a.routing_number;let l="-";a.opening_date&&(l=s()(a.opening_date).format("MMM D, YYYY"));const d=e.business_address;return{accountOwner:t,companyName:i,accountNumber:o,routingNumber:r,accountOpeningDate:l,businessAddress:f(d)}},E=e=>{const{entry:n}=e,a=(0,t.A)(e,_);return n===o.uV.PERSONAL_INFO?h("address",a):n===o.uV.BUSINESS_INFO?y("dba",a):{}},S=e=>{if(e)return o.xw.find((n=>n.value===e))},I=e=>e.slice(-4),w=(e,n,a,t,i=!1)=>{var r;const d=[];if(i)return n.forEach((e=>{d.push({action:"DELETE",type:"EXISTING",id:e.id})})),d;n.forEach((n=>{const a={action:"UPDATE",type:"EXISTING"};if(null!=n&&n.identity_document_id&&null!=n&&n.identity_document_type){var t,i,r,u;if(a.identity_document={file_name:null!=(t=n.identity_document_id.file_name)?t:"",type:n.identity_document_type},n.address)a.address={address_line_1:null!=(i=null!=(r=n.address.primary_line)?r:n.address.address_line_1)?i:"",city:n.address.city,state:n.address.state,zip_code:n.address.zip_code,unit:null!=(u=n.address.unit)?u:n.address.address_line_2};a.dob=s()(n.dob).format(o.Bc),a.email=n.email,a.first_name=n.first_name,a.last_name=n.last_name,a.middle_name=n.middle_name,a.phone=n.phone,a.ownership_percentage=n.ownership_percentage,a.citizenship=n.citizenship,a.ssn=n.ssn}else{var c,m;const t=e.find((e=>e.id===n.id));if((null==t||null==(c=t.ownership_percentage)?void 0:c.toString())===(null==(m=n.ownership_percentage)?void 0:m.toString()))return;a.ownership_percentage=n.ownership_percentage}
1l()(n.id)?(a.action="ADD",a.type="NEW"):(a.id=n.id,a.action="UPDATE",a.type="EXISTING"),d.push(a)})),a.forEach((e=>{if(!e.id)return;const n={action:"DELETE",type:"EXISTING",id:e.id};d.push(n)}));const u=e.find((e=>!0===e.is_applicant));if(u&&(null==t?void 0:t.toString())!==(null==(r=u.ownership_percentage)?void 0:r.toString())){const e={action:"UPDATE",type:"EXISTING",id:u.id,ownership_percentage:t};d.push(e)}return d},D=e=>e?e.replace(/(\d{2})(\d{7})/,"$1-$2"):"",k=e=>e?e.replace(/^(\w{2})\w{5}(\w{2})$/,"XX-XXXXX$2"):"";function O(e,n){const a={};for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)){const i=e[t],s=n[t];if("primary_line"===t){const t=e.address_line_1,i=n.primary_line;t!==i&&(a.address_line_1={old_value:String(null!=t?t:""),new_value:String(null!=i?i:"")})}else i!==s&&(a[t]={old_value:String(null!=i?i:""),new_value:String(null!=s?s:"")})}return a}function A(e,n){const a=[];return n.forEach((n=>{const t=[...e].find((e=>e.id===n.id));if(t){const e=function(e,n){const a={};for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)){const i=e[t],s=n[t];if("identity_document"===t||"identity_document_id"===t||"type"===t||"action"===t||"id"===t||"role"===t||"identity_document_type"===t)continue;i!==s&&("address"===t?a.address=O(e.address,n.address):a[t]={old_value:String(null!=i?i:""),new_value:String(null!=s?s:"")})}return a}(t,n);Object.keys(e).length>0&&a.push({id:n.id,changes:e,data:t})}})),a}const T=e=>{var n;return e?e.includes(" ")?e.split(" ").map((e=>{var n;return e.charAt(0).toUpperCase()+(null==e||null==(n=e.toLowerCase())?void 0:n.slice(1))})).join(" "):e.charAt(0).toUpperCase()+(null==e||null==(n=e.toLowerCase())?void 0:n.slice(1)):""};function C(e){const n=e.old_data,a=e.new_data;for(const t in n)("ownership_percentage"===t||null===n[t]&&a&&null===a[t])&&(delete n[t],a&&delete a[t]);return e}},43051(e,n,a){"use strict";a.d(n,{Co:()=>I,Cq:()=>o,Cu:()=>m,D4:()=>c,Dc:()=>p,FL:()=>r,GM:()=>g,H1:()=>x,HQ:()=>N,Hn:()=>D,Hq:()=>O,NS:()=>E,O1:()=>u,Sq:()=>S,WD:()=>i,YA:()=>v,_z:()=>_,c2:()=>d,cE:()=>s,dB:()=>f,eh:()=>l,kt:()=>y,uv:()=>w,yr:()=>h,yz:()=>k});var t=a(72937);a(19582);const i=(0,t.createLabels)("account-info"),{addressHeader:s,AccountInfoContainerLabels:o,PhoneNumberFormLabels:r,PhoneOtpVerificationFormLabels:l,EmailFormLabels:d,EmailOtpVerificationFormLabels:u,EmailPhoneChangeSuccessLabels:c,ConfirmPhoneFormLabels:m,AddressFormLabels:_,BankLetterModalLabels:p,DBAFormLabels:f,DBASuccessScreenLabels:h,InReviewUpdateReqLabels:v,StartNewApplicationLabels:y,W9FormLabels:b,DiscardChangesLabel:g,BusinessOwnersLabel:N,BusinessInfoUpdateLabels:x,EditWebsiteLabels:E,COMMON:S,REVIEW_ACCOUNT_INFORMATION:I,DDAClosureLabels:w,LanguagePreferenceLabels:D,AssistantAccessLabels:k,SettingsTabsLabels:O}=i},71067(e,n,a){"use strict";a.d(n,{N0:()=>s,OW:()=>i,e8:()=>t});var t=function(e){return e.sole_proprietorship="sole_proprietorship",e.llc="llc",e.partnership="partnership",e.corporation="corporation",e.single_member_llc="single_member_llc",e}(t||{}),i=function(e){return e.BUSINESS_INFO_UPDATE="BUSINESS_INFO_UPDATE",e.BUSINESS_OWNERS_UPDATE="BUSINESS_OWNERS_UPDATE",e}(i||{}),s=function(e){return e.REVIEW_ACCOUNT_INFO="REVIEW_ACCOUNT_INFO",e}(s||{})},50583(e,n,a){"use strict";a.d(n,{Jt:()=>g,K5:()=>v,QC:()=>b,VV:()=>f,Yn:()=>h,eB:()=>N,hq:()=>E,hx:()=>y,v2:()=>x});var t=a(21215),i=a(72937),s=a(10524);a(19582);const o=()=>t.errorMessages.REQUIRED_FIELD,r=()=>(0,i.catalogueText)("account-info","validation.INVALID_PHONE_NUMBER"),l=()=>t.errorMessages.INVALID_OTP,d=()=>(0,i.catalogueText)("account-info","validation.INVALID_EMAIL"),u=()=>t.errorMessages.INVALID_EMAIL_DOMAIN,c=()=>t.errorMessages.INVALID_ZIPCODE,m=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,_=/^[^@:$%&'#]*$/,p=/^(.*)@(.*)\.web$/,f=(0,s.Ik)().shape({phone:(0,s.Yj)().trim().required(o).min(10,r)}),h=(0,s.Ik)().shape({otp:(0,s.Yj)().required(o).matches(/^\d+$/,l).length(6,l)}),v=(0,s.Ik)().shape({email:(0,s.Yj)().trim().required(o).matches(new RegExp(m),d).test("email",u,(e=>{if(!e)return!0;const n=e.split("@")[1];return!p.test(n)}))}),y=(0,s.Ik)().shape({newDba:(0,s.Yj)().trim().required(o)}),b=(0,s.Ik)().shape({ein:(0,s.Yj)().when("ssn_ein",{is:"ein",then:e=>e.trim().required(o).min(9)}),has_ack:(0,s.zM)()}),g=(0,s.Ik)().shape({website:(0,s.Yj)().trim().required(o).matches(new RegExp(/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,20}(:[0-9]{1,5})?(\/.*)?$/i),(()=>(0,i.catalogueText)("account-info","validation.INVALID_WEBSITE")))}),N=(0,s.Ik)().shape({primary_line:(0,s.Yj)().nullable().required(o).max(40).matches(_,(()=>t.errorMessages.INVALID_ADDRESS_MESSAGE)),secondary_line:(0,s.Yj)().nullable().max(40).matches(_,(()=>t.errorMessages.INVALID_ADDRESS_MESSAGE)),city:(0,s.Yj)().nullable().required(o).matches(_,(()=>t.errorMessages.INVALID_ADDRESS_MESSAGE)),state:(0,s.Yj)().nullable().required(o),zip_code:(0,s.Yj)().nullable().required(o).length(5,c),mailing_address_primary_line:(0,s.Yj)().when("want_debit_card",{is:!0,then:e=>e.required(o).max(40).matches(_,(()=>t.errorMessages.INVALID_ADDRESS_MESSAGE))}),mailing_address_secondary_line:(0,s.Yj)().when("want_debit_card",{is:!0,then:e=>e.max(40).matches(_,(()=>t.errorMessages.INVALID_ADDRESS_MESSAGE))}),mailing_address_city:(0,s.Yj)().when("want_debit_card",{is:!0,then:e=>e.required(o).matches(_,(()=>t.errorMessages.INVALID_ADDRESS_MESSAGE))}),mailing_address_state:(0,s.Yj)().when("want_debit_card",{is:!0,then:e=>e.required(o)}),mailing_address_zip_code:(0,s.Yj)().when("want_debit_card",{is:!0,then:e=>e.required(o).length(5,c)})}),x=(0,s.Ik)().shape({change_type:(0,s.Yj)().required((()=>t.errorMessages.REQUIRED_FIELD)),request_id:(0,s.Yj)().nullable().when("change_type",{is:e=>"ubo"!==e,then:e=>e.nullable().trim().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),new_business_name:(0,s.Yj)().trim().nullable().when(["change_type","new_business_type"],{is:(e,n)=>"ein"!==e&&"ubo"!==e&&("name_type"!==e||!n),then:e=>e.nullable().trim().min(2,(()=>(0,i.catalogueText)("account-info","validation.BUSINESS_NAME_MIN"))).max(250,(()=>(0,i.catalogueText)("account-info","validation.BUSINESS_NAME_MAX"))).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),name_change_document:(0,s.YO)().of((0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()})).nullable().when("change_type",{is:e=>"name"===e||"name_ein"===e,then:e=>e.of((0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()})).nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),users_identity_type:(0,s.Yj)().when("change_type",{is:e=>"ein"!==e&&"ubo"!==e,then:e=>e.nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),user_identity_document:(0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()}).nullable().when("change_type",{is:e=>"ein"!==e&&"ubo"!==e,then:e=>e.shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()}).nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),ubo_details_authorized:(0,s.zM)().when("change_type",{is:e=>"ein"!==e,then:e=>
1e.oneOf([!0],(()=>(0,i.catalogueText)("account-info","validation.CONFIRM_OWNERSHIP"))).required((()=>t.errorMessages.REQUIRED_FIELD))}),updated_ubo_details_authorized:(0,s.zM)(),ownership_percentage:(0,s.ai)().when("change_type",{is:e=>"ein"!==e,then:e=>e.min(.1,(()=>t.errorMessages.INVALID_OWNERSHIP_PERCENTAGE)).max(100,(()=>t.errorMessages.INVALID_OWNERSHIP_PERCENTAGE)).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),new_business_type:(0,s.Yj)().when(["change_type","new_business_name"],{is:(e,n)=>"name_type_ein"===e||"name_type"===e&&!(null!=n&&n.trim()),then:e=>e.nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),type_change_document:(0,s.YO)().of((0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()})).nullable().when("change_type",{is:e=>"name_type_ein"===e||"name_type"===e,then:e=>e.of((0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()})).nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),new_ein_number:(0,s.Yj)().when("change_type",{is:e=>"name_ein"===e||"name_type_ein"===e||"ein"===e,then:e=>e.nullable().length(9,(()=>t.errorMessages.INVALID_EIN)).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),ein_document:(0,s.YO)().of((0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()})).nullable().when("change_type",{is:e=>"name_ein"===e||"name_type_ein"===e||"ein"===e,then:e=>e.of((0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)()})).nullable().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD))}),has_ack:(0,s.zM)().oneOf([!0],(()=>t.errorMessages.ACKNOWLEDGE_TERMS)).required((()=>t.errorMessages.ACKNOWLEDGE_TERMS))},[["new_business_name","new_business_type"]]),E=(0,s.Ik)().shape({first_name:(0,s.Yj)().trim().nullable().required((()=>t.errorMessages.REQUIRED_FIELD)).min(1,(()=>(0,i.catalogueText)("account-info","validation.FIRST_NAME_MIN"))).max(30,(()=>(0,i.catalogueText)("account-info","validation.FIRST_NAME_MAX"))),middle_name:(0,s.Yj)().trim().nullable().notRequired(),last_name:(0,s.Yj)().trim().nullable().required((()=>t.errorMessages.REQUIRED_FIELD)).min(2,(()=>(0,i.catalogueText)("account-info","validation.LAST_NAME_MIN"))).max(30,(()=>(0,i.catalogueText)("account-info","validation.LAST_NAME_MAX"))),email:(0,s.Yj)().trim().nullable().matches(new RegExp(m),d).test("email",u,(e=>{if(!e)return!0;const n=e.split("@")[1];return!p.test(n)})),citizenship:(0,s.Yj)().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD)),phone:(0,s.Yj)().trim().required(o).min(10,r),ssn:(0,s.Yj)().trim().nullable().length(9,(()=>t.errorMessages.INVALID_SSN)).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD)),dob:(0,s.Yj)().typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD)),address:(0,s.Ik)().shape({unit:(0,s.Yj)().nullable().max(20,(()=>(0,i.catalogueText)("account-info","validation.UNIT_MAX"))),primary_line:(0,s.Yj)().required((()=>t.errorMessages.REQUIRED_FIELD)).max(40),city:(0,s.Yj)().required((()=>t.errorMessages.REQUIRED_FIELD)),state:(0,s.Yj)().required((()=>t.errorMessages.REQUIRED_FIELD)),zip_code:(0,s.Yj)().required((()=>t.errorMessages.REQUIRED_FIELD)).length(5,(()=>t.errorMessages.INVALID_ZIPCODE))}),ownership_percentage:(0,s.ai)().nullable().min(25,(()=>t.errorMessages.INVALID_UBO_OWNERSHIP_PERCENTAGE)).max(100,(()=>t.errorMessages.INVALID_UBO_OWNERSHIP_PERCENTAGE)).typeError((()=>t.errorMessages.REQUIRED_FIELD)).required((()=>t.errorMessages.REQUIRED_FIELD)),role:(0,s.Yj)().trim().nullable(),identity_document_type:(0,s.Yj)().required((()=>t.errorMessages.REQUIRED_FIELD)),identity_document_id:(0,s.Ik)().shape({file_id:(0,s.Yj)(),file_name:(0,s.Yj)(),sub_type:(0,s.Yj)(),s3_url:(0,s.Yj)()}).nullable().required((()=>t.errorMessages.REQUIRED_FIELD))})},41307(e,n,a){"use strict";a.d(n,{H:()=>r});var t=a(54701),i=a(40791),s=a(21215),o=a(93389);const r=async(e,n)=>{var a;const r=Object.assign({data:{query:(0,t.y)(i.GetOwners)}},n);if(void 0===e)throw new Error((0,s.getErrorMessage)("API_INSTANCE_IS_NOT_DEFINED"));const l=await e.request(r),d=(0,o.y)(l);
1return null!=(a=null==d?void 0:d.owners)?a:[]}},93389(e,n,a){"use strict";a.d(n,{y:()=>t});const t=e=>{if(e.data.errors)throw new Error(e.data.errors[0].message);if(!e.data.data)throw new Error("No data returned");if(!e.data.data.responseData)throw new Error("Developer doesn't define aliases (responseData) for Query/Mutation");return e.data.data.responseData}},68193(e,n,a){"use strict";a.d(n,{Q:()=>f});var t=a(90024),i=a(75969),s=a(80824),o=a(55531),r=a(23463),l=a(60120),d=a(54701),u=a(53264),c=a(62727);function m(){return(0,l.useQuery)({queryKey:["STATES_LIST"],queryFn:()=>(async()=>{const e=await(0,c.getPublicInstance)(),n={data:{query:(0,d.y)(u.GetStates)}};if(null===e)throw new Error("apiInstance is undefined");const a=await e.request(n);if(a.data.errors)throw new Error(a.data.errors[0].message);if(!a.data.data)throw new Error("No data returned");if(!a.data.data.responseData)throw new Error("Developer doesn't define aliases (responseData) for Query/Mutation");return a.data.data.responseData})(),staleTime:6048e5})}var _=a(69500);const p=["rudderStackData","shouldValidate","name","onClick"],f=e=>{let{rudderStackData:n,shouldValidate:a=!1,name:l="",onClick:d}=e,u=(0,t.A)(e,p);const{setValue:c,control:f}=(0,s.xW)(),{data:h=[],isFetching:v}=m(),y=(0,i.useMemo)((()=>h.map((e=>({value:e.shortForm,label:e.name})))),[h]),b=e=>{const t=e;n&&((0,o.sx)(Object.assign({},n.SELECTED,{value:t?t.value:""})),(0,o.sx)(n.VIEWED)),c(l,(null==t?void 0:t.value)||"",{shouldDirty:!0,shouldValidate:a}),d&&d(t)};return(0,_.jsx)(s.xI,{name:l,control:f,render:({field:{value:e}})=>(u["data-test-id"]||(u["data-test-id"]="state-select"),(0,_.jsx)(r.Select,Object.assign({blurInputOnSelect:!0,options:y,name:l,id:`select-${l}`,value:y.find((n=>n.value===e))||void 0,onChange:b,showError:!0,isLoading:v},u)))})}},15193(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"BusinessInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BusinessInfoResponse"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"request_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_editable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"in_review"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maximum_allowed_files"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_doc_required"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zendesk_ticket_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"crm_ticket_id"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PersonalInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PersonalInfoFieldSchema"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"request_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_editable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"in_review"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maximum_allowed_files"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_doc_required"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AccountInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Account"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"opening_date"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"routing_number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"bank_account_number"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"freeze_type"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"UsersInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"User"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"first_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"middle_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"last_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_applicant"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"role"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[]}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"MutationResponse"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MutationResponseType"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"hasError"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"userErrors"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}],loc:{start:0,end:648}};n.loc.source={body:"fragment BusinessInfo on BusinessInfoResponse {\n  request_id\n  is_editable\n  data\n  in_review\n  maximum_allowed_files\n  is_doc_required\n  zendesk_ticket_id\n  crm_ticket_id\n}\n\nfragment PersonalInfo on PersonalInfoFieldSchema {\n  request_id\n  is_editable\n  data\n  in_review\n  maximum_allowed_files\n  is_doc_required\n}\n\nfragment AccountInfo on Account {\n  opening_date\n  routing_number\n  bank_account_number\n  status\n  freeze_type\n}\n\nfragment UsersInfo on User {\n  id\n  first_name\n  middle_name\n  last_name\n  email\n  is_applicant\n  role\n  phone\n}\n\nfragment MutationResponse on MutationResponseType {\n  hasError\n  title\n  message\n  userErrors\n  data\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var t={};function i(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function s(e,n){var a={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=t[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var t=i(e,n);t&&a.definitions.push(t)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.BusinessInfo=s(n,"BusinessInfo"),e.exports.PersonalInfo=s(n,"PersonalInfo"),e.exports.AccountInfo=s(n,"AccountInfo"),e.exports.UsersInfo=s(n,"UsersInfo"),e.exports.MutationResponse=s(n,"MutationResponse")},54213(e,n,a){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CreateBusinessInfoUpdateRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateBusinessInfoUpdateRequestInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"create_business_info_update_request"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"BusinessInfoUpdateCloudUpload"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UploadCloudFileInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_info_update_cloud_upload"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveBusinessInfoUpdateRequestAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemoveBusinessInfoUpdateRequestAttachment"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"remove_business_info_update_request_attachment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelBusinessInfoUpdateRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CancelBusinessInfoUpdateRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"cancel_business_info_update_request"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SelfServeBusinessInfo"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateSelfServeBusinessInfoUpdateRequestInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"create_self_serve_business_info_update_request"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UBOUpdateRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CreateBeneficialOwnerUpdateRequestInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"create_beneficial_owner_update_request"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}}],loc:{start:0,end:1189}};t.loc.source={body:'#import "../fragments/index.graphql"\n\nmutation CreateBusinessInfoUpdateRequest(\n  $data: CreateBusinessInfoUpdateRequestInputType!\n) {\n  responseData: create_business_info_update_request(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation BusinessInfoUpdateCloudUpload($data: UploadCloudFileInputType!) {\n  responseData: business_info_update_cloud_upload(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation RemoveBusinessInfoUpdateRequestAttachment(\n  $data: RemoveBusinessInfoUpdateRequestAttachment!\n) {\n  responseData: remove_business_info_update_request_attachment(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation CancelBusinessInfoUpdateRequest(\n  $data: CancelBusinessInfoUpdateRequest!\n) {\n  responseData: cancel_business_info_update_request(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation SelfServeBusinessInfo(\n  $data: CreateSelfServeBusinessInfoUpdateRequestInputType!\n) {\n  responseData: create_self_serve_business_info_update_request(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation UBOUpdateRequest($data: CreateBeneficialOwnerUpdateRequestInput!) {\n  responseData: create_beneficial_owner_update_request(data: $data) {\n    ...MutationResponse\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}t.definitions=t.definitions.concat(a(15193).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)})));var o={};function r(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function l(e,n){var a={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=o[n]||new Set,i=new Set,s=new Set;for(t.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){i.has(e)||(i.add(e),(o[e]||new Set).forEach((function(e){s.add(e)})))}))}return i.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}t.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),o[e.name.value]=n}})),e.exports=t,e.exports.CreateBusinessInfoUpdateRequest=l(t,"CreateBusinessInfoUpdateRequest"),e.exports.BusinessInfoUpdateCloudUpload=l(t,"BusinessInfoUpdateCloudUpload"),e.exports.RemoveBusinessInfoUpdateRequestAttachment=l(t,"RemoveBusinessInfoUpdateRequestAttachment"),e.exports.CancelBusinessInfoUpdateRequest=l(t,"CancelBusinessInfoUpdateRequest"),e.exports.SelfServeBusinessInfo=l(t,"SelfServeBusinessInfo"),e.exports.UBOUpdateRequest=l(t,"UBOUpdateRequest")},13627(e,n,a){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"Update
1CommunicationInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"updateCommInfoInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"update_comm_info"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ResendCommunicationInfo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ResendCommOTPInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"resend_comm_otp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ValidateCommunicationOtp"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ValidateCommOTPInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"validate_comm_otp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ValidateChangePhoneOTP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ValidateChangePhoneOTP"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"validate_change_phone_otp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ValidateChangeEmailOTP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ValidateChangeEmailOTPInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"validate_change_email_otp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ResendChangePhoneOTP"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ResendChangePhoneOTP"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"resend_change_phone_otp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ResendChangeEmailOTP"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ResendChangeEmailOTPInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"resend_change_email_otp"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"UpdatePersonalInfoRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UpdatePersonalInfoInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"update_personal_info"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelPersonalInfoUpdateRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CancelPersonalInfoUpdateRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"cancel_personal_info_update_request"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemovePersonalInfoUpdateRequestAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RemovePersonalInfoUpdateRequestAttachment"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"remove_personal_info_update_request_attachment"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"PersonalInfoUpdateCloudUpload"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PersonalInfoUpdateUploadCloudFileInputType"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"personal_info_update_cloud_upload"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CancelPersonalInfoUpdateRequest"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"data"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"CancelPersonalInfoUpdateRequest"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"cancel_personal_info_update_request"},arguments:[{kind:"Argument",name:{kind:"Name",value:"data"},value:{kind:"Variable",name:{kind:"Name",value:"data"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MutationResponse"},directives:[]}]}}]}}],loc:{start:0,end:2040}};t.loc.source={body:'#import "../fragments/index.graphql"\n\nmutation UpdateCommunicationInfo($data: updateCommInfoInputType!) {\n  responseData: update_comm_info(data: $data) {\n    ...MutationResponse\n  }\n}
1\n\nmutation ResendCommunicationInfo($data: ResendCommOTPInputType!) {\n  responseData: resend_comm_otp(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation ValidateCommunicationOtp($data: ValidateCommOTPInputType!) {\n  responseData: validate_comm_otp(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation ValidateChangePhoneOTP($data: ValidateChangePhoneOTP!) {\n  responseData: validate_change_phone_otp(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation ValidateChangeEmailOTP($data: ValidateChangeEmailOTPInputType!) {\n  responseData: validate_change_email_otp(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation ResendChangePhoneOTP($data: ResendChangePhoneOTP!) {\n  responseData: resend_change_phone_otp(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation ResendChangeEmailOTP($data: ResendChangeEmailOTPInputType!) {\n  responseData: resend_change_email_otp(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation UpdatePersonalInfoRequest($data: UpdatePersonalInfoInputType!) {\n  responseData: update_personal_info(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation CancelPersonalInfoUpdateRequest(\n  $data: CancelPersonalInfoUpdateRequest!\n) {\n  responseData: cancel_personal_info_update_request(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation RemovePersonalInfoUpdateRequestAttachment(\n  $data: RemovePersonalInfoUpdateRequestAttachment!\n) {\n  responseData: remove_personal_info_update_request_attachment(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation PersonalInfoUpdateCloudUpload(\n  $data: PersonalInfoUpdateUploadCloudFileInputType!\n) {\n  responseData: personal_info_update_cloud_upload(data: $data) {\n    ...MutationResponse\n  }\n}\n\nmutation CancelPersonalInfoUpdateRequest(\n  $data: CancelPersonalInfoUpdateRequest!\n) {\n  responseData: cancel_personal_info_update_request(data: $data) {\n    ...MutationResponse\n  }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}t.definitions=t.definitions.concat(a(15193).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)})));var o={};function r(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function l(e,n){var a={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=o[n]||new Set,i=new Set,s=new Set;for(t.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){i.has(e)||(i.add(e),(o[e]||new Set).forEach((function(e){s.add(e)})))}))}return i.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}t.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),o[e.name.value]=n}})),e.exports=t,e.exports.UpdateCommunicationInfo=l(t,"UpdateCommunicationInfo"),e.exports.ResendCommunicationInfo=l(t,"ResendCommunicationInfo"),e.exports.ValidateCommunicationOtp=l(t,"ValidateCommunicationOtp"),e.exports.ValidateChangePhoneOTP=l(t,"ValidateChangePhoneOTP"),e.exports.ValidateChangeEmailOTP=l(t,"ValidateChangeEmailOTP"),e.exports.ResendChangePhoneOTP=l(t,"ResendChangePhoneOTP"),e.exports.ResendChangeEmailOTP=l(t,"ResendChangeEmailOTP"),e.exports.UpdatePersonalInfoRequest=l(t,"UpdatePersonalInfoRequest"),e.exports.CancelPersonalInfoUpdateRequest=l(t,"CancelPersonalInfoUpdateRequest"),e.exports.RemovePersonalInfoUpdateRequestAttachment=l(t,"RemovePersonalInfoUpdateRequestAttachment"),e.exports.PersonalInfoUpdateCloudUpload=l(t,"PersonalInfoUpdateCloudUpload"),e.exports.CancelPersonalInfoUpdateRequest=l(t,"CancelPersonalInfoUpdateRequest")},34266(e,n,a){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AccountInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"account"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AccountInfo"},directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CreateBankLetter"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"create_bank_letter"},arguments:[],directives:[]}]}}],loc:{start:0,end:179}};t.loc.source={body:'#import "../fragments/index.graphql"\n\nquery AccountInformation {\n  responseData: account {\n    ...AccountInfo\n  }\n}\n\nquery CreateBankLetter {\n  responseData: create_bank_letter\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}t.definitions=t.definitions.concat(a(15193).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)})));var o={};function r(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function l(e,n){var a={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=o[n]||new Set,i=new Set,s=new Set;for(t.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){i.has(e)||(i.add(e),(o[e]||new Set).forEach((function(e){s.add(e)})))}))}return i.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}t.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),o[e.name.value]=n}})),e.exports=t,e.exports.AccountInformation=l(t,"AccountInformation"),e.exports.CreateBankLetter=l(t,"CreateBankLetter")},90717(e,n,a){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_information"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"company_name"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dba"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"mailing_address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ein"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"beneficial_owners"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"BusinessInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"request_id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_editable"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"data"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessDetails"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"company_name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"business_type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ein"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maskedEin"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maskedSsn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"business_address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address_line_1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"address_line_2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"city"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"state"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"zip_code"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"BusinessInfoUpdateAttachment"}
1,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_info_update_request_signed_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request_id"},value:{kind:"Variable",name:{kind:"Name",value:"request_id"}}},{kind:"Argument",name:{kind:"Name",value:"file_id"},value:{kind:"Variable",name:{kind:"Name",value:"file_id"}}}],directives:[]}]}}],loc:{start:0,end:971}};t.loc.source={body:'#import "../fragments/index.graphql"\n\nquery BusinessInformation {\n  responseData: business_information {\n    company_name {\n      ...BusinessInfo\n    }\n    dba {\n      ...BusinessInfo\n    }\n    phone {\n      ...BusinessInfo\n    }\n    address {\n      ...BusinessInfo\n    }\n    mailing_address {\n      ...BusinessInfo\n    }\n    name {\n      ...BusinessInfo\n    }\n    ein {\n      ...BusinessInfo\n    }\n    beneficial_owners {\n      ...BusinessInfo\n    }\n    website {\n      request_id\n      is_editable\n      data\n    }\n  }\n}\n\nquery BusinessDetails {\n  responseData: business_details {\n    company_name\n    business_type\n    ein\n    maskedEin\n    maskedSsn\n    business_address {\n      address\n      address_line_1\n      address_line_2\n      city\n      state\n      zip_code\n    }\n  }\n}\n\nquery BusinessInfoUpdateAttachment($request_id: UUID!, $file_id: UUID!) {\n  responseData: business_info_update_request_signed_url(\n    request_id: $request_id\n    file_id: $file_id\n  )\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}t.definitions=t.definitions.concat(a(15193).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)})));var o={};function r(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function l(e,n){var a={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=o[n]||new Set,i=new Set,s=new Set;for(t.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){i.has(e)||(i.add(e),(o[e]||new Set).forEach((function(e){s.add(e)})))}))}return i.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}t.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),o[e.name.value]=n}})),e.exports=t,e.exports.BusinessInformation=l(t,"BusinessInformation"),e.exports.BusinessDetails=l(t,"BusinessDetails"),e.exports.BusinessInfoUpdateAttachment=l(t,"BusinessInfoUpdateAttachment")},94634(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MeInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"me"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"ssn"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_applicant"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"is_self_serve_closure_enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"acknowledgements"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"review_account_info"},arguments:[],directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ConfigInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"all_configs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dba"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"w9_form_link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ios_sign_pdf_link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"android_sign_pdf_link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"web_sign_pdf_link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"onboarding_url"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:358}};n.loc.source={body:"query MeInformation {\n  responseData: me {\n    ssn\n    is_applicant\n    is_self_serve_closure_enabled\n    acknowledgements {\n      review_account_info\n    }\n  }\n}
1\n\nquery ConfigInformation {\n  responseData: all_configs {\n    dba {\n      w9_form_link\n      ios_sign_pdf_link\n      android_sign_pdf_link\n      web_sign_pdf_link\n      onboarding_url\n    }\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var t={};function i(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function s(e,n){var a={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=t[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var t=i(e,n);t&&a.definitions.push(t)})),a}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.MeInformation=s(n,"MeInformation"),e.exports.ConfigInformation=s(n,"ConfigInformation")},87811(e,n,a){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PersonalInformation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"personal_information"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PersonalInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PersonalInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"phone"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PersonalInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"address"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PersonalInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"ssn"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PersonalInfo"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"dob"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PersonalInfo"},directives:[]}]}}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"PersonalInfoUpdateAttachment"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file_id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"UUID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"personal_info_update_request_signed_url"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request_id"},value:{kind:"Variable",name:{kind:"Name",value:"request_id"}}},{kind:"Argument",name:{kind:"Name",value:"file_id"},value:{kind:"Variable",name:{kind:"Name",value:"file_id"}}}],directives:[]}]}}],loc:{start:0,end:536}};t.loc.source={body:'#import "../fragments/index.graphql"\n\nquery PersonalInformation {\n  responseData: personal_information {\n    name {\n      ...PersonalInfo\n    }\n    email {\n      ...PersonalInfo\n    }\n    phone {\n      ...PersonalInfo\n    }\n    address {\n      ...PersonalInfo\n    }\n    ssn {\n      ...PersonalInfo\n    }\n    dob {\n      ...PersonalInfo\n    }\n  }\n}\n\nquery PersonalInfoUpdateAttachment($request_id: UUID!, $file_id: UUID!) {\n  responseData: personal_info_update_request_signed_url(\n    request_id: $request_id\n    file_id: $file_id\n  )\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var i={};function s(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);
1else if("VariableDefinition"===e.kind){var a=e.type;"NamedType"===a.kind&&n.add(a.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){s(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){s(e,n)})),e.definitions&&e.definitions.forEach((function(e){s(e,n)}))}t.definitions=t.definitions.concat(a(15193).definitions.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!i[n]&&(i[n]=!0,!0)})));var o={};function r(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}function l(e,n){var a={kind:e.kind,definitions:[r(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var t=o[n]||new Set,i=new Set,s=new Set;for(t.forEach((function(e){s.add(e)}));s.size>0;){var l=s;s=new Set,l.forEach((function(e){i.has(e)||(i.add(e),(o[e]||new Set).forEach((function(e){s.add(e)})))}))}return i.forEach((function(n){var t=r(e,n);t&&a.definitions.push(t)})),a}t.definitions.forEach((function(e){if(e.name){var n=new Set;s(e,n),o[e.name.value]=n}})),e.exports=t,e.exports.PersonalInformation=l(t,"PersonalInformation"),e.exports.PersonalInfoUpdateAttachment=l(t,"PersonalInfoUpdateAttachment")},40791(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetOwners"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"business_details"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"owners"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:70}};n.loc.source={body:"query GetOwners {\n  responseData: business_details {\n    owners\n  }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var t={};function i(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.GetOwners=function(e,n){var a={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=t[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){r.add(e)})))}))}return o.forEach((function(n){var t=i(e,n);t&&a.definitions.push(t)})),a}(n,"GetOwners")},53264(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetStates"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"responseData"},name:{kind:"Name",value:"states_list"},arguments:[],directives:[]}]}}],loc:{start:0,end:48}};n.loc.source={body:"query GetStates {\n  responseData: states_list\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function a(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){a(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){a(e,n)})),e.definitions&&e.definitions.forEach((function(e){a(e,n)}))}var t={};function i(e,n){for(var a=0;a<e.definitions.length;a++){var t=e.definitions[a];if(t.name&&t.name.value==n)return t}}n.definitions.forEach((function(e){if(e.name){var n=new Set;a(e,n),t[e.name.value]=n}})),e.exports=n,e.exports.GetStates=function(e,n){var a={kind:e.kind,definitions:[i(e,n)]};e.hasOwnProperty("loc")&&(a.loc=e.loc);var s=t[n]||new Set,o=new Set,r=new Set;for(s.forEach((function(e){r.add(e)}));r.size>0;){var l=r;r=new Set,l.forEach((function(e){o.has(e)||(o.add(e),(t[e]||new Set).forEach((function(e){r.add(e)})))}
1))}return o.forEach((function(n){var t=i(e,n);t&&a.definitions.push(t)})),a}(n,"GetStates")},83179(e,n,a){var t=a(69052),i=a(97926);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==t(e)}},32059(e){"use strict";e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 1.1.0","a":"","k":"","d":"","tc":""},"fr":30,"ip":0,"op":60,"w":200,"h":200,"nm":"Comp 1","ddd":0,"assets":[],"layers":[{"ddd":0,"ind":2,"ty":4,"nm":"Check mark","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[89.71428571428575,110.28571428571433,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[13.514714285714291,16.089285714285722,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[-260.244,-32.992],[-55.842,140.843],[473.799,-296.18]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":98,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0.527895220588,0.527895220588,0.527895220588,1],"ix":4},"o":{"a":0,"k":0,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[70.842,70.131],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":16,"s":[0]},{"t":26.0000010590017,"s":[100]}],"ix":1},"e":{"a":0,"k":0,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":239.00000973467,"st":0,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[100.00000000000004,100.00000000000004,0],"ix":2},"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[14.285714285714292,14.285714285714292,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":2,"ty":"el","s":{"a":0,"k":[1069.719,1069.719],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0.772549033165,0.525490224361,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":50,"ix":5},"lc":2,"lj":2,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":false},{"ty":"fl","c":{"a":0,"k":[0,0.772549033165,0.525490224361,1],"ix":4},"o":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":8,"s":[0]},{"t":14.0000005702317,"s":[100]}],"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic - Fill","hd":false},{"ty":"tr","p":{"a":0,"k":[-8.992,5.227],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":0,"s":[100]},{"t":11.0000004480392,"s":[0]}],"ix":1},"e":{"a":0,"k":100,"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":0,"op":239.00000973467,"st":0,"bm":0}],"markers":[]}')}}]);
2//# sourceMappingURL=Business Info update .e85f0cce92ca53c4.js.map

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.