1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5513],{27173:(e,a,n)=>{"use strict";n.r(a),n.d(a,{ValidateIdentity:()=>N,__N_SSP:()=>w,default:()=>k});var t=n(59827),r=n(72223),i=n(4452),d=n(40029),l=n(93858),o=n(17600);let s=({link:e,androidLink:a,packageName:n,name:r,iconUrl:s,onClick:c})=>{let p=(0,i.useRouter)(),u=(0,o.Jv)({isAndroid:l.m0,packageName:n,name:r,link:e,androidLink:a}),m=a||e?a||e:"";return(0,t.Y)(d.Bd,{onClick:()=>{c(),""!=m&&p.push(u)},"data-testid":"button",children:(0,t.FD)(d.bP,{children:[(0,t.Y)("img",{src:s,className:"mr-1 app-button-image",alt:"app-icon"}),(0,t.Y)(d.sS,{children:r})]})})};var c=n(64069),p=n(19671);function u(){return(0,t.Y)("div",{className:"absolute left-1/2 top-[88px] -translate-x-1/2 z-10 w-[80px] h-[80px] rounded-full",style:{background:p.w4.color.white},children:(0,t.Y)("img",{src:"/static/images/face-validation.png",className:"w-full h-full object-contain p-3",alt:"Validar identidad"})})}function m(){return(0,t.Y)("div",{className:"relative flex items-start justify-center gap-[5px] h-[128px] rounded-b-[20px] pt-[25px]",style:{background:p.w4.color.slimGray},children:(0,t.FD)(d.gY,{children:["Eleg\xed la ",(0,t.Y)("strong",{children:"app con la que quieras"})," validar tu identidad"]})})}function h({onlyAppModo:e}){return(0,t.Y)(d.NF,{style:{background:"white"},dangerouslySetInnerHTML:{__html:e?"Pr\xf3ximamente podr\xe1s confirmar tu identidad desde la app de tu banco":"Proximamente podras validar estas compras desde la app de m\xe1s bancos."}})}let _=({apps:e,linkProperty:a,onClick:n,handleAddParams:r,isLoading:i,onlyAppModo:l})=>{let o=e=>e[a]&&null!==e[a]?r(e[a]):"";return(0,t.FD)("div",{className:"relative",children:[(0,t.Y)(u,{}),(0,t.Y)(m,{}),i?(0,t.Y)(c.y,{}):(0,t.FD)(d.fj,{style:{marginTop:"45px",background:p.w4.color.white},children:[(0,t.Y)(d.MP,{children:(0,t.Y)(d.PE,{className:1===e.length?"single":"",children:e.map(e=>(0,t.Y)(s,{iconUrl:e.image_url,name:e.name,packageName:e.app_info?.android?.package_name,link:o(e),androidLink:o(e),onClick:n},e.name))})}),(0,t.Y)(h,{onlyAppModo:l})]})]})};var g=n(95506),f=n(85651),x=n(49736),y=n(50084),b=n.n(y),w=!0;function N({staticBanks:e}){let{merchant:a,otp:n,state:d}=(0,i.useRouter)().query,l=[];(0,r.useEffect)(()=>{document.documentElement.className="not-home"},[]);let{data:o}=(0,g.jW)({enabled:!e}),s=e??o;s&&(l=(e||(0,g.F8)((0,g.Ir)(o)).map(e=>({...e,modo_conexiones_url:e.vata_auth_url}))).filter(e=>e.modo_conexiones_url));return(0,t.FD)(t.FK,{children:[(0,t.Y)(_,{apps:l,linkProperty:f.f.MODO_CONEXIONES,onClick:()=>{(0,x.w)({eventName:"Vata Identity Validation",properties:{merchant:a}})},handleAddParams:e=>{let a;try{a=new URL(e)}catch{return e}return a.searchParams.set("otp",n),a.searchParams.set("state",d),a.toString()},isLoading:!s,onlyAppModo:1===l.length&&l[0]?.name==="MODO"}),(0,t.Y)("div",{className:"fixed bottom-0 left-0 right-0 h-[150px] rounded-t-[15px] shadow-[0px_-2px_20px_0px_#87878740] flex justify-center items-center",style:{background:p.w4.color.white},children:(0,t.FD)("div",{className:"text-[12px] font-medium border border-Gray20 p-[8px] px-[32px] rounded-full",style:{borderColor:p.w4.color.gray20},children:["Confirm\xe1 tu identidad - ",a]})})]})}let k=N;N.propTypes={staticBanks:b().arrayOf(b().shape({name:b().string.isRequired,image_url:b().string,modo_conexiones_url:b().string,app_info:b().shape({ios:b().shape({app_id:b().string,app_name:b().string}),android:b().shape({package_name:b().string})})}))}},36519:(e,a,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/validar-identidad/[[...validar-identidad]]",function(){return n(27173)}])}},e=>{e.O(0,[3299,3858,6347,7095,2955,636,6593,8792],()=>e(e.s=36519)),_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.