1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2ab0c01d-469d-426a-9258-297e1d084b8a",e._sentryDebugIdIdentifier="sentry-dbid-2ab0c01d-469d-426a-9258-297e1d084b8a")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[899],{7700:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/home/accreditation/[...kind]",function(){return n(6789)}])},1792:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var a=n(2322);n(2784);var r=n(5740),l=n(3578),o=n(450),s=n(9815),c=n(9438),i=n.n(c);function u(e){let{category:t,type:n,id:c,onFinish:u,from:d}=e,[p]=(0,l.Qk)(),m=t===o.L.EXPERIENCED;return(0,a.jsxs)(r.Row,{children:[(0,a.jsxs)(r.Col,{pb:{xs:10,lg:5},children:[(0,a.jsxs)("div",{...(0,r.className)("".concat(i().box," text-center bg-white p-3 mb-5")),children:[(0,a.jsx)("img",{src:"/icons/isotipo.svg",width:40,...(0,r.className)("mb-2")}),(0,a.jsx)(r.Heading,{tag:"h4",className:"".concat(i().resultTestTitle," h4"),children:p("acreditionprofile_notification.subtitle.".concat(m?"experienced":"not_experienced"))})]}),(0,a.jsx)(r.Text,{...(0,r.className)("body mb-5"),children:p("acreditionprofile_notification.text")})]}),u?(0,a.jsx)(r.Col,{col:{xs:12,lg:6},offset:{lg:3},children:(0,a.jsx)(r.Button,{button:{block:!0,Tag:"button",label:p("acreditionprofile_notification.continue_button"),detached:!0,onClick:u}})}):(0,a.jsx)(r.Col,{col:{xs:12,lg:8},offset:{lg:2},children:d?(0,a.jsx)(r.Button,{button:{block:!0,Tag:s.Z,href:"/home/invertir/".concat(d,"/?profile=").concat(n||"physical","&id=").concat(c||""),label:p("avatarprofile_form.return_invesment_process_button"),detached:!0,className:i().btn}}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Button,{button:{block:!0,Tag:s.Z,href:"/home/invertir/",label:p("acreditionprofile_notification.opportunities_button"),detached:!0,className:i().btn}}),(0,a.jsx)(r.Button,{button:{block:!0,Tag:s.Z,href:"/home/profile/".concat(n,"/").concat(c),label:p("acreditionprofile_notification.gotoprofile_button"),detached:!1,underline:!0}})]})})]})}},7631:function(e,t,n){"use strict";var a=n(2322);n(2784);var r=n(4106),l=n(5740),o=n(9815),s=n(3198),c=n(3578),i=n(9363),u=n(4950),d=n.n(u);function p(e){return e.toLocaleString("en-US")}let m=e=>{let{onFinish:t,backHref:n,backLabel:u}=e,{showModal:m,closeModal:f}=(0,i.IA)(),[b]=(0,c.Qk)(),{register:x,handleSubmit:h,watch:y}=(0,r.cI)({mode:"onSubmit",defaultValues:{incomeLastYear:null,extraIncome:null,assetsValue:null,financialCommitmentsValue:null}}),_=y("incomeLastYear"),g=y("extraIncome"),C=y("assetsValue"),T=e=>{let t=Number(e.incomeLastYear||0)+Number(e.extraIncome||0)+Number(e.assetsValue||0)-Number(e.financialCommitmentsValue||0);m({title:b("modalcalculator.title"),description:b("modalcalculator.text",[{key:"totalAmount",value:p(t)},{key:"maxToLoose",value:p(t/10)}]),buttons:[{label:b("modalcalculator.close"),underline:!1,block:!0,detached:!0,Tag:"button",onClick:e=>{e.preventDefault(),f()}}]})};return(0,a.jsxs)(l.Row,{children:[(0,a.jsxs)("form",{onSubmit:h(T),children:[(0,a.jsxs)(l.Col,{mb:{xs:5},children:[(0,a.jsx)(l.Text,{tag:"p",className:"body text-secondary-700 mb-5",children:b("investorcalculator.text")}),(0,a.jsx)(l.Input,{wrapperClassName:"mb-5",labelClassName:d().label,label:b("investorcalculator.income_label"),placeholder:b("investorcalculator.income_placeholder"),name:"incomeLastYear",ref:x(),type:"number",min:0}),(0,a.jsx)(l.Input,{wrapperClassName:"mb-5",labelClassName:d().label,label:b("investorcalculator.extra_income_label"),placeholder:b("investorcalculator.extra_income_placeholder"),name:"extraIncome",ref:x(),type:"number",min:0}),(0,a.jsx)(l.Input,{wrapperClassName:"mb-5",labelClassName:d().label,label:b("investorcalculator.assets_label"),placeholder:b("investorcalculator.assets_placeholder"),name:"assetsValue",ref:x(),type:"number",min:0}),(0,a.jsx)(l.Input,{labelClassName:d().label,label:b("investorcalculator.financial_commitments_label"),placeholder:b("investorcalculator.financial_commitments_placeholder"),name:"financialCommitmentsValue",ref:x(),type:"number",min:0})]}),(0,a.jsx)(l.Col,{col:{lg:8},offset:{lg:2},children:(0,a.jsx)(s.Z,{button:{label:b("investorcalculator.calculate_button"),Tag:"button",block:!0,detached:!0,isSubmit:!0,disabled:!_&&!g&&!C}})})]}),(0,a.jsx)(l.Col,{col:{lg:8},offset:{lg:2},children:(0,a.jsx)(s.Z,{button:{label:t?b("investorcalculator.continue_button"):u||b("investorcalculator.back_button"),block:!0,underline:!0,className:d().btn,isSubmit:!1,...t?{Tag:"button",onClick:t}:{Tag:o.Z,href:n||"/home/cartera/"}}})})]})};t.Z=m},2691:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var a=n(2322),r=n(2784),l=n(4106),o=n(3198),s=n(3400),c=n(5740),i=n(8819),u=n(4190),d=n.n(u);let p=(0,r.forwardRef)((e,t)=>{let{title:n,content:r,cta:l,...o}=e;return(0,a.jsxs)("div",{className:d().wrapper,children:[(0,a.jsx)("div",{className:(0,s.cls)(d().radioWra
1pper,"pt-2","pb-2","pl-2","pr-2"),children:(0,a.jsx)(i.Z,{ref:t,...o,wrapperClassName:(0,s.cls)(d().radio),className:(0,s.cls)(d().radioInput),labelClassName:(0,s.cls)(d().radioLabel,"font-weight-bold text-uppercase text-secondary-900")})}),(0,a.jsxs)("div",{className:d().detail,children:[n&&(0,a.jsx)("div",{className:(0,s.cls)("pt-2","pb-2","pl-2","pr-2",d().detailTitle),children:(0,a.jsx)(s.Text,{tag:"p",className:"font-weight-normal caption text-secondary-700",children:n})}),(0,a.jsxs)("div",{className:(0,s.cls)("pt-3","pb-3","pl-2","pr-2",d().detailContentWrapper),children:[(0,a.jsx)(s.Text,{tag:"div",addBreaklines:!1,className:(0,s.cls)("subtitle text-secondary-700",d().detailContent),children:r}),l&&(0,a.jsx)(c.Button,{button:{...l,detached:!0,className:"mt-3"}})]})]})]})});var m=n(8961),f=n(3578),b=n(450);let x=(e,t)=>{var n;let{setlocalApiErrors:c}=(0,m.Z)(),[i]=(0,f.Qk)(),{handleSubmit:u,setError:d,formState:x,register:h}=(0,l.cI)({mode:"onChange",defaultValues:{category:null===(n=e.person)||void 0===n?void 0:n.category}}),{isValid:y}=x;return(0,r.useImperativeHandle)(t,()=>({setErrors:e=>{c(e,d)}})),(0,a.jsx)("form",{onSubmit:u(e.onFinish),children:(0,a.jsxs)(s.Row,{children:[(0,a.jsxs)(s.Col,{col:{xs:12},children:[(0,a.jsx)(p,{ref:h({required:!0}),name:"category",id:b.L.NOT_EXPERIENCED,value:b.L.NOT_EXPERIENCED,label:i("inversortype_form.no_experienced"),title:i("inversortype_form.no_experienced.title"),content:i("inversortype_form.no_experienced.text")}),(0,a.jsx)(p,{ref:h({required:!0}),name:"category",id:b.L.EXPERIENCED,value:b.L.EXPERIENCED,label:i("inversortype_form.experienced"),content:i("inversortype_form.experienced.text")})]}),e.onBack&&(0,a.jsx)(s.Col,{col:{xs:6},pt:{xs:5},children:(0,a.jsx)(o.Z,{button:{label:i("inversortype_form.turnback_button"),arrow:"left",Tag:"button",onClick:t=>{t.preventDefault(),e.onBack()}}})}),(0,a.jsx)(s.Col,{col:{xs:6},pt:{xs:5},...!e.onBack&&{offset:{xs:3}},children:(0,a.jsx)(o.Z,{button:{isSubmit:!0,detached:!0,block:!0,disabled:!y,loading:e.loading,label:i("inversortype_form.submitprofile_button")}})})]})})};var h=(0,r.forwardRef)(x)},3957:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(2322);n(2784);var r=n(5740),l=n(2340),o=n.n(l);function s(e){let{children:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.LineComponent,{className:o().line1}),(0,a.jsx)(r.LineComponent,{up:!0,className:o().line2,showOnlyOnDesktop:!0}),(0,a.jsx)(r.SquareComponent,{className:o().square1,showOnlyOnDesktop:!0}),t]})}},2781:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(2322),r=n(2784),l=n(6826);function o(e){let{children:t,bodyBackground:n,load:o,navbarHref:s}=e,{setBodyBackground:c,setRoutePrivate:i,setLoadingComponent:u,setHrefNavBrand:d,setProgressPercentage:p}=(0,l.q1)();return(0,r.useEffect)(()=>(d(s||"/home/cartera/"),()=>{d(null)}),[s]),(0,r.useEffect)(()=>(i(!0),p(null),()=>{i(!1)}),[]),(0,r.useEffect)(()=>(n&&c(n),()=>{c(null)}),[n,c]),(0,r.useEffect)(()=>{u(!!o&&o)},[o]),(0,a.jsx)(a.Fragment,{children:t})}},9118:function(e,t,n){"use strict";n.d(t,{C:function(){return r}});let a="juridical-persons",r={getJuridicalPersonMetricsById:e=>({type:"GET",url:"".concat(a,"/").concat(e,"/metrics")}),getJuridicalPersonTestById:e=>({type:"GET",url:"".concat(a,"/").concat(e,"/accreditation-test")}),getJuridicalPersonAptitudeTests:e=>({type:"GET",url:"".concat(a,"/").concat(e,"/aptitude-tests")}),postJuridicalPersonTest:(e,t)=>({type:"POST",url:"".concat(a,"/").concat(e,"/accreditation-test"),body:t}),startAccreditationJuridicalPerson:(e,t)=>({type:"PATCH",url:"".concat(a,"/").concat(e,"/start-accreditation"),body:t}),acceptRisksJuridicalPerson:(e,t)=>({type:"PATCH",url:"".concat(a,"/").concat(e,"/accept-risks"),body:t}),startLemonwayOnboarding:(e,t)=>({type:"POST",url:"".concat(a,"/").concat(e,"/start-lemonway-onboarding"),body:t})}},1653:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});let a="physical-persons",r={getPhysicalPersonMetricsById:e=>({type:"GET",url:"".concat(a,"/").concat(e,"/metrics")}),getPhysicalPersonTestById:e=>({type:"GET",url:"".concat(a,"/").concat(e,"/accreditation-test")}),getPhysicalPersonAptitudeTests:e=>({type:"GET",url:"".concat(a,"/").concat(e,"/aptitude-tests")}),postPhysicalPersonTest:(e,t)=>
1({type:"POST",url:"".concat(a,"/").concat(e,"/accreditation-test"),body:t}),startAccreditationPhysicalPerson:(e,t)=>({type:"PATCH",url:"".concat(a,"/").concat(e,"/start-accreditation"),body:t}),acceptRisksPhysicalPerson:(e,t)=>({type:"PATCH",url:"".concat(a,"/").concat(e,"/accept-risks"),body:t}),startLemonwayOnboarding:(e,t)=>({type:"POST",url:"".concat(a,"/").concat(e,"/start-lemonway-onboarding"),body:t})}},6789:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return P}});var a=n(2322),r=n(2784),l=n(5632),o=n(7729),s=n.n(o),c=n(3400),i=n(5740),u=n(1653),d=n(9118),p=n(8538),m=n(2781),f=n(3578),b=n(6826),x=n(9184),h=n(158),y=n(2691),_=n(7370),g=n.n(_),C=n(3957),T=n(450),j=n(6e3),v=n(9359),E=n(7631),N=n(1792);let I={CATEGORY:0,DECLARATION:1,SUITABILITY:2,CALCULATOR:3,CONFIRMED:4};function P(){let{setHeaderBackMobile:e}=(0,b.q1)(),t=(0,l.useRouter)(),[n]=(0,f.Qk)(),[o,,{mergePerson:_,refreshPerson:P}]=(0,x.k7)(),[k,A]=(0,r.useState)(I.CATEGORY),[L,w]=(0,r.useState)(!0),[O,R]=(0,r.useState)(),{apiRequest:D}=(0,p.b)(),{showNotification:Z}=(0,h.lm)(),{query:S}=t,{kind:B}=S,[Y,F,U]=B;(0,r.useEffect)(()=>(e("/home/profile/physical/".concat(F,"/")),()=>{e(null)}),[F]),(0,r.useEffect)(()=>{if(!(null==o?void 0:o.user)||"physical"===Y&&!o.user.physicalPerson||"juridical"===Y&&!o.user.juridicalPerson)return;let e=o.user["physical"===Y?"physicalPerson":"juridicalPerson"].find(e=>e.id===parseInt(F));e&&(R(e),w(!1))},[o,R,F,w,Y]);let G=(0,r.useCallback)(e=>{w(!0);let t="physical"===Y?u.b.startAccreditationPhysicalPerson:d.C.startAccreditationJuridicalPerson;D(t(O.id,e)).then(e=>{_({id:O.id,type:Y,...e}),A(I.DECLARATION)}).catch(()=>{Z(n("personalprofile_form.save_error"),"danger")}).finally(()=>{w(!1)})},[O,Y,Z,_,w,n,D,A]),J=(0,r.useCallback)(e=>{w(!0),P(Y,O.id).then(()=>{void 0!==e&&A(e)}).catch(()=>{Z(n("personalprofile_form.save_error"),"danger")}).finally(()=>{w(!1)})},[O,Y,Z,P,w,n,A]),[M,V]=(0,r.useMemo)(()=>{switch(k){case I.CATEGORY:return[n("inversortype_form.title"),n("inversortype_form.text")];case I.DECLARATION:return[n("inversortype_form.title"),null];case I.SUITABILITY:return[n("suitability_test.title"),null];case I.CALCULATOR:return[n("investorcalculator.title"),null];case I.CONFIRMED:return[n("acreditionprofile_notification.title"),null];default:return[n("inversortype_form.title"),null]}},[n,k]);return(0,a.jsxs)(m.Z,{load:L,children:[(0,a.jsx)(s(),{children:(0,a.jsx)("title",{children:M})}),(0,a.jsx)(C.Z,{children:(0,a.jsx)(c.Container,{children:(0,a.jsxs)(i.Row,{children:[(0,a.jsxs)(i.Col,{pt:{xs:5,lg:8},col:{lg:6},offset:{lg:3},...(0,i.className)("text-center"),children:[!!M&&(0,a.jsx)(i.Heading,{tag:"h1",className:"mb-".concat(V?2:5," font-weight-normal text-center h3"),children:M}),!!V&&(0,a.jsx)(i.Text,{tag:"p",className:"mb-5 text-center body ".concat(g().subtitle),children:V})]}),!!O&&(0,a.jsxs)(i.Col,{col:{lg:k===I.SUITABILITY?12:6},offset:{lg:k===I.SUITABILITY?0:3},pb:{xs:5,lg:10},children:[k===I.CATEGORY&&(0,a.jsx)(y.Z,{person:O,onFinish:G}),k===I.DECLARATION&&(0,a.jsx)(j.Z,{category:O.category,id:F,type:Y,loading:L,onFinish:()=>{J(I.SUITABILITY)}}),k===I.CALCULATOR&&(0,a.jsx)(E.Z,{onFinish:()=>{A(I.CONFIRMED)}}),k===I.SUITABILITY&&(0,a.jsx)(v.Z,{profile:O,type:Y,loading:L,simulatorIsNext:O.category===T.L.NOT_EXPERIENCED,onFinish:()=>{A(O.category===T.L.NOT_EXPERIENCED?I.CALCULATOR:I.CONFIRMED)}}),k===I.CONFIRMED&&(0,a.jsx)(N.Z,{category:O.category,type:Y,id:F,from:U})]})]})})})]})}},9438:function(e){e.exports={box:"__1ZQeh",resultTestTitle:"Rd6t1",btn:"dEJ_M"}},4950:function(e){e.exports={btn:"n_ifV",label:"KCxQp"}},2340:function(e){e.exports={line1:"TH_qs",line2:"QWjm9",square1:"hMmpG"}},7370:function(e){e.exports={subtitle:"zDaZu"}},4190:function(e){e.exports={wrapper:"vjZCo",radio:"tZJ92",radioInput:"jJR8L",radioLabel:"IDw9S",radioWrapper:"YEQ4m",detail:"rqOLm",detailTitle:"__26cm5",detailContentWrapper:"__9OObT",detailContent:"CURAC"}}},function(e){e.O(0,[106,359,0,774,888,179],function(){return e(e.s=7700)}),_N_E=e.O()}]);
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.