1"use strict";(self.webpackChunkpwa=self.webpackChunkpwa||[]).push([[9313],{2126:function(){},12363:function(e,t,a){a.a(e,async function(e,s){try{a(44114),a(18111),a(7588);var i=a(16546),r=a(59566),o=a(85111),n=a(4121),l=a(24058),c=a(40159),u=a(99070),h=e([n]);n=(h.then?(await h)():h)[0],t.A={components:{LoaderPJN:u.A},mixins:[n.A],data(){return{retryVerification:!1,message:null,token:null,returnRoute:null,isCameraOpen:!1,isPhotoTaken:!1,isShotPhoto:!1,isLoading:!1,link:"#",native:i.Ii.isNativePlatform(),tips:["Make sure your entire head is in the frame and that you are front facing the camera","Make sure you are the only person in the picture"]}},created(){if(this.token=this.$route.params.token,this.message=this.$route.query.message,!this.$route.query.returnRoute)return this.$router.push("/my-account");this.returnRoute=JSON.parse(this.$route.query.returnRoute);let e=this.returnRoute.query;e=Object.assign(e,{successAfterImageVerify:!1}),this.returnRoute.query=e,this.$store.dispatch(l.Af,!0)},methods:{cancel(){this.isCameraOpen=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,this.stopCameraStream();let e=this.returnRoute.path.includes("my-profile")?"/my-account":this.returnRoute.path;return this.$router.push({path:e})},retry(){this.isCameraOpen=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,this.stopCameraStream(),this.retryVerification=!0},toggleCamera(){i.Ii.isNativePlatform()||(this.isCameraOpen?(this.isCameraOpen=!1,this.isPhotoTaken=!1,this.isShotPhoto=!1,this.stopCameraStream()):(this.isCameraOpen=!0,this.createCameraElement()))},createCameraElement(){this.isLoading=!0;const e=window.constraints={audio:!1,video:!0};navigator.mediaDevices?navigator.mediaDevices.getUserMedia(e).then(e=>{this.isLoading=!1,this.$refs.camera.srcObject=e},e=>{this.isLoading=!1,alert("Sorry there was a problem accessing your camera.")}):alert("Sorry there was a problem accessing your camera.")},stopCameraStream(){if(this.$refs.camera&&this.$refs.camera.srcObject){this.$refs.camera.srcObject.getTracks().forEach(e=>{e.stop()})}},async takePhoto(){if(i.Ii.isNativePlatform()){await o.i7.getPhoto({quality:45,allowEditing:!1,resultType:o.LK.Base64,saveToGallery:!1,width:450,height:337.5,source:o.ru.Camera,promptLabelHeader:"promptLabelHeader",promptLabelCancel:"promptLabelCancel",promptLabelPhoto:"promptLabelPhoto",promptLabelPicture:"promptLabelPicture"}).then(e=>{this.submitImage(e)})}else{if(!this.isPhotoTaken){this.isShotPhoto=!0;setTimeout(()=>{this.isShotPhoto=!1},50)}this.isPhotoTaken=!this.isPhotoTaken;this.$refs.canvas.getContext("2d").drawImage(this.$refs.camera,0,0,450,337.5)}},submitImage(e=null){e=e?e.base64String:document.getElementById("photoTaken").toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream").replace("data:image/octet-stream;base64,",""),this.stopCameraStream(),this.$store.dispatch(l.Af,!1).then(()=>{let t=this.token;this.$store.dispatch(c.DE,{image:e,token:t}).then(e=>{this.getAllUserData().finally(()=>{let t=e.original.data;if(t&&1==t["3dsecure"]){let e={name:"3dsecure-acs",query:{response:JSON.stringify(t.response)}};return i.Ii.isNativePlatform()?void(0,r.t)({router:this.$router,peachResponse:t.response,pollingPath:"/3dsecure-transaction-status",onLaunchFailure:()=>{this.$store.dispatch(l.Af,!0),this.$notify({title:"Sorry!",text:"We couldn't open your bank's 3DSecure page. Please try again.",group:"top",type:"error"})}}):this.$router.push(e)}return this.returnRoute.query.successAfterImageVerify=!0,t?.return_url&&(this.returnRoute.query.reponse=JSON.stringify(t)),this.$router.push(this.returnRoute)})}).catch(e=>{let t=0;try{t=e.response.status}catch(e){}let a="An error has occurred.";try{a=e.response.data.errors[0]}catch(e){}403==t?this.$store.dispatch(l.Af,!0).then(()=>
1{this.$notify({title:"Sorry!",text:"Selfie verification failed",group:"top",type:"error"}),this.retry()}):this.$store.dispatch(l.Af,!0).then(()=>{this.$notify({title:"Sorry!",text:"An error has occurred: "+a,group:"top",type:"error"}),this.retry()})})})}},mounted(){}},s()}catch(e){s(e)}})},26071:function(e,t,a){e.exports=a.p+"img/selfie-verification-fail-icon.3b00b1f0.svg"},49451:function(e,t,a){e.exports=a.p+"img/checkmark-black.bda8e7a5.svg"},56587:function(e,t,a){a.d(t,{X:function(){return O}});var s=a(20641),i=a(90033),r=a(53751),o=a(84940),n=a(49451),l=a(26071),c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAACyElEQVRoge2YMW/TQBTHbahSKjL0M9AyQKEd2hRos9CygoQYkPgcsMMnoEQMLTMRnQClS5HaCHWDEQFBgoWWCAHpFKRWNM2PwU70YmLnnR07QfJfsnSK3//u9y7nO/tZVqpUqVIBY8AD4AtwhL+OgM/AfeDUoLkty2rDvw2A9tMbYGzQ/BawEgK+pZVBw0/RuWTuAqMB8aPAPRF/BEwlyewFeiVgtgx8m8K3HSdjEMQtz0xeNPCeA/4I/824IPPAOlAFGv1cywQ/Ow3gG/AMWAwDPgI8DhhA6icwHmKMcderUQEYMelcC/8LuG4KL8a5AdS0SWg7zXuML4FZIBMW1FRABpgDSoKjCSxozOvCVEqAtxfPc8FT1BiqwjCbAGMvnjnBs6cxyN3GeNkA14AnQAX47V4V97flEP1lBE9DY2jLcKCzwOuuj1+nysCkYd96pjAJ4Dz4+wr4lvaB/FAk4M68hD8AHgLzwGn3msc5uA5EXA2YGIYE5LL5ClwIiJ0GdkV8eaAJAMuemfeF9yRxKHxLUZhO9DL30G3RXrVt+30vg23b7yzLWvPpI7oM/4FPIjxnMMYl4av0k8k0gboIzyr5LSArfPUoTFGXUFjJcZv96iiMqqJ93sAnY6u+UQpFTWBHtO8Y+GTsjm9UGEXcRqcVnhnPNnq1n0xhDrKysOwGJeHC74l4VSEg7gQm6XyVOAQeAZfd3Sbrtguema8BZwaegOvJo/80bMGrP9ZjT8D1TQDbCvgt7cwnmoDwLwFrwEecg64OfABWUTywpkx2t+D2Tdv+5/4gFMTU7Rw4FsbEKhF+8jAce+93S+CHaKvLhTFqRrS/94zGKee1tBEfl07AC8HzVGNY9OwaJSCX5HLCqUTkgA3B0QSuaDsoKLbDpKUvIOMUd4cliSZOQeBkmL9yASjivL8Eldf7rYY7ZhHtskmVKtX/qb/g3liwIyyndwAAAABJRU5ErkJggg==";const u={class:"dashboard-inner"},h={class:"contain-width"},p={class:"tile md:py-10 md:px-0 text-center selfie-container"},m={key:0,class:"mb-6"},d={class:"tip-box"},f={key:1,class:"mb-6"},g={class:"tip-box"},y={id:"ap",class:"py-4"},k={class:"w-full p-12"},A={class:"loader justify-center"},b={class:"responsive-selfie-container"},L={ref:"camera",class:"rounded-lg",width:450,height:337.5,autoplay:""},v={class:"responsive-selfie-container"},C={id:"photoTaken",class:"rounded-lg",ref:"canvas",width:450,height:337.5},w={class:"selfie-btns"},P={key:0,class:"camera-shoot"},S={key:1},E={key:0,class:"camera-button",style:{overflow:"visible"}};function O(e,t,a,O,T,x){const j=(0,s.g2)("LoaderPJN");return(0,s.uX)(),(0,s.CE)("div",u,[(0,s.Lk)("div",h,[(0,s.Lk)("div",p,[T.isCameraOpen||T.retryVerification?(0,s.Q3)("",!0):((0,s.uX)(),(0,s.CE)("div",m,[t[6]||(t[6]=(0,s.Lk)("img",{src:o,class:"mb-4"},null,-1)),t[7]||(t[7]=(0,s.Lk)("h2",{class:"heading-1 text-pjn-neutral-0 mb-6 text-xl font-bold"},"Photo Verification",-1)),t[8]||(t[8]=(0,s.Lk)("p",{class:"mb-8 text-n700 font-medium"}," Please take a quick selfie to help us verify your identity. ",-1)),(0,s.Lk)("div",d,[t[5]||(t[5]=(0,s.Lk)("p",{class:"title"},"Tips:",-1)),(0,s.Lk)("ul",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(T.tips,(e,a)=>((0,s.uX)(),(0,s.CE)("li",{key:a},[t[4]||(t[4]=(0,s.Lk)("img",{class:"m-2",src:n},null,-1)),(0,s.eW)(" "+(0,i.v_)(e),1)]))),128))])])])),!T.isCameraOpen&&T.retryVerification?((0,s.uX)(),(0,s.CE)("div",f,[t[11]||(t[11]=(0,s.Lk)("img",{src:l,class:"mb-4"},null,-1)),t[12]||(t[12]=(0,s.Lk)("h2",{class:"heading-1 text-pjn-neutral-0 mb-6 text-xl font-bold"}," Oh No, Letâs Try Again ",-1)),t[13]||(t[13]=(0,s.Lk)("p",{class:"mb-8 text-n700 font-medium"}," We couldnât process your image, try some of our tips below to capture it correctly. ",-1)),(0,s.Lk)("div",g,[t[10]||(t[10]=(0,s.Lk)("p",{class:"title"},"Tips:",-1)),(0,s.Lk)("ul",null,[((0,s.uX)(!0),(0,s.CE)(s.FK,null,(0,s.pI)(T.tips,(e,a)=>((0,s.uX)(),(0,s.CE)("li",{key:a},[t[9]||(t[9]=(0,s.Lk)("img",{class:"m-2",src:n},null,-1)),(0,s.eW)(" "+(0,i.v_)(e),1)]))),128))])])])):(0,s.Q3)("",!0),(0,s.Lk)("div",y,[(0,s.bo)((0,s.Lk)("div",k,[(0,s.Lk)("div",A,[(0,s.bF)(j)])],512),[[r.aG,T.isCameraOpen&&T.isLoading]]),T.isCameraOpen?(0,s.bo)(((0,s.uX)(),(0,s.CE)("div",{key:0,class:(0,i.C4)(["camera-box mb-4",{flash:T.isShotPhoto}])},[(0,s.Lk)("div",{class:(0,i.C4)(["camera-shutter",{flash:T.isShotPhoto}])},null,2),(0,s.bo)((0,s.Lk)("div",b,[(0,s.Lk)("video",L,null,512)],512),[[r.aG,!T.isPhotoTaken]]),(0,s.bo)((0,s.Lk)("div",v,[(0,s.Lk)("canvas",C,null,512)],512),[[r.aG,T.isPhotoTaken]])],2)),[[r.aG,!T.isLoading]]):(0,s.Q3)("",!0),(0,s.Lk)("div",w,[!T.isPhotoTaken&&T.isCameraOpen&&!T.isLoading||T.native?((0,s.uX)(),(0,s.CE)("div",P,[(0,s.Lk)("button",{type:"button",class:"pjn-photo-btn w-full md:m-auto",onClick:t[0]||(t[0]=(...e)=>x.takePhoto&&x.takePhoto(...e))},t[14]||(t[14]=[(0,s.Lk)("img",{src:c},null,-1)]))])):(0,s.Q3)("",!0),T.isPhotoTaken&&T.isCameraOpen?((0,s.uX)(),(0,s.CE)("div",S,[(0,s.Lk)("button",{class:"pjn-btn w-full md:m-auto",onClick:t[1]||(t[1]=e=>x.submitImage(null))},"Submit")])):(0,s.Q3)("",!0),(0,s.Lk)("div",{id:"ap",class:(0,i.C4)([{flex:T.native},"h-full flex-grow flex flex-col justify-end"])},[!T.native&&!T.isCameraOpen||!T.native&&T.isCameraOpen&&T.isLoading?((0,s.uX)(),(0,s.CE)("div",E,[(0,s.Lk)("button",{type:"button",class:(0,i.C4)(["pjn-btn w-full mb-4",{"pjn-btn--disabled":T.isCameraOpen}]),onClick:t[2]||(t[2]=(...e)=>x.toggleCamera&&x.toggleCamera(...e))},(0,i.v_)(T.retryVerification?"Retake Photo":"Take Photo"),3)])):(0,s.Q3)("",!0),(0,s.Lk)("div",null,[(0,s.Lk)("button",{class:"pjn-btn pjn-btn--dark-border w-full",onClick:t[3]||(t[3]=(...e)=>x.cancel&&x.cancel(...e))},"Cancel")])],2)])])])])])}},59904:function(e,t,a){a.a(e,async function(e,s){try{a.d(t,{A:function(){return i.A}});var i=a(12363),r=e([i]);i=(r.then?(await r)():r)[0],s()}catch(e){s(e)}})},79313:function(e,t,a){a.a(e,async function(e,s){try{a.r(t);var i=a(56587),r=a(59904),o=(a(2126),a(66262)),n=e([r]);r=(n.then?(await n)():n)[0];const l=(0,o.A)(r.A,[["render",i.X],["__scopeId","data-v-4d53231c"]]);t.default=l,s()}catch(e){s(e)}})},84940:function(e,t,a){e.exports=a.p+"img/selfie-verification-icon.f619f976.svg"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.