1import{_ as K}from"./BDCW-OlI.js";import{b4 as N,bh as V,b9 as s,ba as c,bb as o,bx as A,bc as g,b8 as t,bm as a,bd as y,by as E,bt as R,bG as X,bQ as Z,bI as ee,bp as x,be as i,br as B,bg as oe,b5 as te,bi as ne,bj as T,bl as re,bf as se,bq as ae}from"./kiPoRQUa.js";import{S as ie}from"./Crx8bu31.js";import{E as le}from"./WCC1C_56.js";import{I as O}from"./C2YUBk_8.js";import{u as G}from"./gGjqskUv.js";import{_ as de}from"./87jNj1TJ.js";import{_ as ue}from"./CD-ckYqc.js";import{_ as ce}from"./BSCEYTY6.js";import{F as me,_ as fe}from"./Bak96pqS.js";import{S as ge}from"./BA2lKJsI.js";import{u as pe}from"./R5977-Wu.js";import{u as be}from"./BK8WRypf.js";import{u as ve}from"./BWgsKK5v.js";import{G as ye}from"./Di9kh94f.js";import"./Df2cYXWy.js";import"./B0b6Vob7.js";import"./tvVB1YrN.js";import"./ljBcRQmC.js";import"./CR81VlnS.js";import"./-TKunLha.js";import"./D5Fw7FEG.js";import"./G2Okh4nT.js";import"./DTC2j5VJ.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"ed9c04bcb539d9c6f529cf44ad3b04093fba2740"};var f=new r.Error().stack;f&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[f]="49c969c8-1495-4191-b2f0-ee938879b5a6",r._sentryDebugIdIdentifier="sentry-dbid-49c969c8-1495-4191-b2f0-ee938879b5a6")}catch{}})();const ke={class:""},_e={class:"mt-5 grid grid-cols-12 gap-0"},he={class:"col-span-12"},Ce=["href"],Ie=["href"],Ae=["href"],we=["href"],Le=["href"],Se=["href"],Pe=["href"],De={class:"mb-7.5 mt-5"},Te={key:0,class:"mt-2.5 mb-2.5"},xe={class:""},Re={class:"mt-5 flex justify-end"},Be=["disabled"],Fe=N({__name:"GlobalPortfolioOnboardingAgreement",props:{agreementType:{type:String,default:"terms"},isLoading:{type:Boolean,default:!1},serverErrors:{type:Array,default:()=>null}},emits:["completed"],setup(r,{emit:f}){const w=r,k=f,p=i(!1),b=i(!1),_=i(),L=G(),{agreements:S,constants:h}=V(L),C=B(()=>!b.value||w.isLoading);function I(){const m=_.value;if(!m)return;m.scrollTop+m.clientHeight>=m.scrollHeight&&(p.value=!0)}function l(){p.value||I()}function v(){k("completed")}function d(m){const e=S.value;if(!e)return"";const n=e.find(P=>P.type===m);return n?.url?`https://${n.url}`:""}return(m,e)=>(s(),c("div",ke,[o("div",_e,[o("div",he,[r.agreementType=="disclosure"?(s(),c(A,{key:0},[o("div",{class:"terms-container",ref_key:"termsContainer",ref:_,onScroll:l},[g(t(O)),e[13]||(e[13]=o("h5",{class:"form--title flex items-center mb-5"},"Investment Disclosure.",-1)),o("ol",null,[o("li",null,[e[1]||(e[1]=o("strong",null,"Brokerage Services and Risk Information:",-1)),e[2]||(e[2]=a(" CFTL Digital Services Limited (âCFTL Digitalâ)has an engagement with Atomic Brokerage, LLC (âAtomic Brokerageâ) a registered broker-dealer and member of ",-1)),o("a",{target:"_blank",href:d("ADVISOR_FORM_CRS")},"FINRA",8,Ce),e[3]||(e[3]=a(" and ",-1)),o("a",{target:"_blank",href:d("ADVISOR_FORM_CRS")},"SIPC",8,Ie),e[4]||(e[4]=a(" to bring you the opportunity to open a brokerage account. Brokerage services for customers of CFTL Digital are provided by Atomic Brokerage. Neither Atomic Brokerage nor its affiliates are a bank. Investments in securities are Not FDIC insured, Not Bank Guaranteed, and May Lose Value. Investing involves risk, including the possible loss of principal. Past returns are no guarantee of future performance and there is no assurance that the investments will provide positive performance over any period of time. Before investing, consider your investment objectives, the fees and expenses. For more details about Atomic Brokerage, please see the ",-1)),o("a",{target:"_blank",href:d("ADVISOR_FORM_CRS")},"Form CRS,",8,Ae),e[5]||(e[5]=a(" the ",-1)),o("a",{target:"_blank",href:d("ADVISOR_GENERAL_DISCLOSURES")},"Atomic Brokerage General Disclosures",8,we),e[6]||(e[6]=a(" and the ",-1)),o("a",{target:"_blank",href:d("PRIVACY_NOTICE")},"Privacy Policy.",8,Le),e[7]||(e[7]=a(" Check the background and the custodial/clearing services of Atomic Brokerage on FINRAâs ",-1)),e[8]||(e[8]=o("a",{target:"_blank",href:"https://brokercheck.finra.org/"},"BrokerCheck.",-1)),e[9]||(e[9]=a(" Technology services for the brokerage services may be provided by AtomicVest, Inc. ",-1))]),e[12]||(e[12]=o("li",null,[o("strong",null,"Investment Advisory Disclaimer:"),a(" CFTL Digital is licensed by the Nigerian Securities and Exchange Commission as a digital sub-broker in Nigeria. CFTL Digital does not provide investment advisory services and does not make any personal recommendations to buy, sell or otherwise deal in investments. Individual investors are strongly advised to make their own decisions and seek independent advice before investing.. For more details about CFTL Digital, please see CFTL Digital's "),o("a",{target:"_blank",href:"https://cowrywise.com/terms"},"Terms of Use"),a(" and "),o("a",{target:"_blank",href:"https://cowrywise.com/privacy"},"Privacy Policy.")],-1)),o("li",null,[e[10]||(e[10]=o("strong",null,"Identity Verification and Information Protection:",-1)),e[11]||(e[11]=a(" As a registered broker-dealer, Atomic Brokerage LLC has a legal and regulatory obligation to verify your identity. We will take all practical steps to protect all personal information that you provide. See Atomicâs ",-1)),o("a",{target:"_blank",href:d("PRIVACY_NOTICE")},"Privacy Policy.",8,Se)])])],544),o("div",{class:"mt-5 flex justify-end"},[o("button",{class:"button--has-spinner",onClick:v}," Continue ")])],64)):y("",!0),r.agreementType=="terms"?(s(),c(A,{key:1},[o("div",{class:"terms-container",ref_key:"termsContainer",ref:_,onScroll:l},[g(t(O)),e[20]||(e[20]=o("h5",{class:"form--title mb-5"},"Your agreement with Atomic Invest LLC and Atomic Brokerage LLC",-1)),e[21]||(e[21]=o("p",null," You are agreeing that you are of legal age, have the capacity to enter into contracts and would like to open an account with Atomic Brokerage LLC with investment advisory services provided by Atomic Invest LLC. You confirm that you have been provided with, read, understood, and agree to the agreements, disclosures and policies listed below: ",-1)),o("ul",null,[(s(!0),c(A,null,E(t(S),n=>(s(),c("li",{key:n.agreement_id},[o("a",{target:"_blank",href:n.url},R(n.display_type),9,Pe)]))),128))]),e[22]||(e[22]=o("p",null,"You also confirm that:",-1)),o("ul",null,[e[14]||(e[14]=o("li",null,"You agree to resolve any disputes with Atomic Invest and Atomic Brokerage through binding arbitration.",-1)),e[15]||(e[15]=o("li",null,"You delegate proxy voting authority to Atomic Invest.",-1)),e[16]||(e[16]=o("li",null,"You allow Atomic Invest to direct the purchase and sale of investments on your behalf.",-1)),e[17]||(e[17]=o("li",null," You agree that electronic signatures are legally binding and to the electronic delivery of Atomic Invest and Atomic Brokerage account communications, including account statements, trading confirmations, and tax documents. ",-1)),e[18]||(e[18]=o("li",null," You agree to the Quarterly Delivery of Trading Confirmations Certification . ",-1)),e[19]||(e[19]=o("li",null," You have read, understood, and agree to the Taxpayer Certification , including that you are not subject to back-up withholding and are exempt from FATCA reporting for this account. ",-1)),o("li",null," By opening your account, you agree to pay an investment advisory fee of "+R(t(h)?.advisory_fee)+" annually. Fees are accrued daily and billed monthly in arrears, and are prorated for additions, withdrawals, or account termination. ",1)])],544),o("div",De,[r.serverErrors?(s(),c("div",Te,[(s(!0),c(A,null,E(r.serverErrors,n=>(s(),c("span",{class:"mt-2.5 input-field__message",key:n.message?n.message:n},[g(t(le)),a(" "+R(n.message?n.message:n),1)]))),128))])):y("",!0),o("div",xe,[X(o("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=n=>ee(b)?b.value=n:null),name:"Agreement",id:"termsConfirmation"},null,512),[[Z,t(b)]]),e[23]||(e[23]=o("label",{for:"termsConfirmation",class:"checkbox"},"I have read, understood, and confirmed the contents of the terms, the delivery instruction, and the W-8 Certification.",-1))])]),o("div",Re,[o("button",{disabled:t(C),class:"button--has-spinner",onClick:v},[r.isLoading?(s(),x(t(ie),{key:0})):y("",!0),e[24]||(e[24]=a(" Continue ",-1))],8,Be)])],64)):y("",!0)])])]))}}),Ee=Object.assign(de(Fe,[["__scopeId","data-v-d4bcbbfe"]]),{__name:"GlobalPortfolioOnboardingAgreement"}),Oe={class:"global-portfolio-flow-container onboarding p-4"},Ne={class:"flex flex-wrap"},Ve={class:"w-full"},co=N({__name:"index",setup(r){pe();const f=oe(),w=te(),{user:k}=be(),p=G(),b=ve(),_=i(new Map),L=ae("doLaterConfirmationModal"),S=i(null),h=i(),C=i(!1),I=i(100/2),l=i(w.query.step==="2"?2:1),v=i(I.value*l.value),d=i(),m=i(""),{agreements:e,onboardingProgress:n}=V(p),P=B(()=>_.value.get(S.value)),U=B(()=>k.value?.is_bvn_set),F=()=>{l.value++,v.value+=I.value,T.scrollFlowPageToTop()},Y=()=>{if(l.value===1){T.goBack("/investments");return}if(l.value===2){f.push("/investments?action=open_gp_awaiting_document");return}l.value--,v.value-=I.value,T.scrollFlowPageToTop()},M=()=>{h.value?.open()};async function $(){C.value=!0,d.value=null;const D=e.value.find(u=>u.need_signature);try{const{data:u}=await new ye().initialiseOnboarding({agreement_id:D.agreement_id});m.value=u.completion_link,M(),p.fetchProgress()}catch(u){P.value&&P.value.close(),u.response?._data?.errors?d.value=u.response._data.errors:d.value=[{message:"An error occurred."}]}finally{C.value=!1}}function j(){n.value?.copy?.status_extra==="no_plan"?f.push("/investments/global-portfolio/create"):f.push("/investments?action=open_gp_progress")}return ne(async()=>{T.setPageTitle("Global Portfolio Onboarding"),b.updatePlanCreation(null),p.fetchConstants()}),re(()=>k.value,D=>{D&&(U.value||l.value==1&&F())},{immediate:!0}),se({title:"My Cowrywise | Invest in US Global Portfolio"}),(D,u)=>{const W=K,H=Ee,q=ue,Q=ce,z=me,J=fe;return s(),c("div",Oe,[t(k)&&t(e)?(s(),c(A,{key:0},[g(W,{progressWidth:t(v)},null,8,["progressWidth"]),o("div",Ne,[o("div",Ve,[o("button",{class:"button button--has-arrow button--no-height text-dark arrow--back mt-8",onClick:Y},[g(t(ge)),u[1]||(u[1]=a(" Back ",-1))]),t(l)==1?(s(),x(H,{key:0,serverErrors:t(d),isLoading:t
1(C),agreementType:"terms",onCompleted:$},null,8,["serverErrors","isLoading"])):y("",!0),t(l)==2?(s(),x(q,{key:1,onCompleted:j})):y("",!0)])])],64)):(s(),x(Q,{key:1})),g(z,{ref_key:"fileUploadIntroRef",ref:h,onContinue:F,onDoLater:t(L)?.open},null,8,["onDoLater"]),g(J,{onCancelDoLater:u[0]||(u[0]=Ge=>t(h)?.open()),ref_key:"doLaterConfirmationModal",ref:L},null,512)])}}});export{co as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.