PageSourceSearch

https://app.payjustnow.com/js/6071.87be4f01.js

js payjustnow.com collected 2026-09-24 12:50:34 UTC 9,355 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkpwa=self.webpackChunkpwa||[]).push([[6071],{11177:function(){},26071:function(e,t,s){e.exports=s.p+"img/selfie-verification-fail-icon.3b00b1f0.svg"},27305:function(e,t,s){s.a(e,async function(e,i){try{s.r(t);var r=s(76787),a=s(89960),n=(s(11177),s(66262)),o=e([a]);a=(o.then?(await o)():o)[0];const l=(0,n.A)(a.A,[["render",r.X],["__scopeId","data-v-538358a7"]]);t.default=l,i()}catch(e){i(e)}})},38533:function(e,t,s){s.a(e,async function(e,i){try{var r=s(24058),a=s(4121),n=s(40159),o=s(79993),l=s(59566),c=e([a]);a=(c.then?(await c)():c)[0],t.A={components:{AppLinks:o.A},mixins:[a.A],data(){return{retryVerification:!1,message:null,isLoading:!1,native:Capacitor.isNativePlatform(),isCameraOpen:!1,token:null,selfie_link:"",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"],is_busy_processing:0}},created(){this.token=this.$route.params.token,this.message=this.$route.query.message,this.$route.query.returnRoute||(this.isCameraOpen=!1,this.isLoading=!1,this.retryVerification=!0),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(r.Af,!0)},computed:{customer(){return this.$store.getters.user}},mounted(){this.selfie_link="/selfie/index.html",window.addEventListener("message",this.handleMessageFromIframe)},methods:{async startVerification(){this.isCameraOpen=!0,this.isLoading=!0,await this.sendMessageToIframe()},async sendMessageToIframe(){await new Promise(e=>setTimeout(e,2e3)),this.$store.dispatch(n.nJ).then(e=>{const t=document.getElementById("iframe"),s={session_url:this.customer.selfie_liveness.session_url,hash:this.customer.selfie_liveness.verify_hash,id:this.customer.id,id_number:this.customer.id_number,minimum_confidence_score:e.minimum_confidence_score,cognito_user_pool_id:this.customer.selfie_liveness.userpool_id,cognito_client_id:this.customer.selfie_liveness.client_id,identity_pool_id:this.customer.selfie_liveness.identity_pool_id};t&&t.contentWindow.postMessage({type:"PWA",data:s},"*")}).catch(e=>(this.$notify({title:"Sorry!",text:"Selfie verification failed",group:"top",type:"error"}),this.retry()))},async cancel(){let e=this.returnRoute.path.includes("my-profile")?"/my-account":this.returnRoute.path;window.location.href=e},async retry(){this.isCameraOpen=!1,this.isLoading=!1,this.retryVerification=!0},async handleMessageFromIframe(e){if(!e.source.FaceDetection)return;if(1==this.is_busy_processing)return!1;if(this.is_busy_processing=1,!(e.origin.startsWith("http://localhost")||e.origin.startsWith("http://127.0.0.1")||e.origin.startsWith("https://localhost")||e.origin.startsWith("https://127.0.0.1")||e.origin.startsWith("capacitor://")||"https://sandbox-app.payjustnow.com"===e.origin||"https://payjustnow.com"===e.origin))return;const{type:t,data:s}=e.data;if("Liveness"===t){if(s.status&&"failed"===s.status)return this.$notify({title:"Sorry!",text:"Selfie verification failed!",group:"top",type:"error"}),this.retry();if(s.status&&"cancelled"===s.status){const e=document.getElementById("iframe");return void(e&&(e.contentWindow.location.reload(!0),await this.sendMessageToIframe()))}await this.$store.dispatch(r.Af,!1);try{const e=await this.$store.dispatch(n.Q4,{token:this.token,...s});await this.getAllUserData(),this.is_busy_processing=0;let t=e.original.data;if(t&&1==t["3dsecure"]){let e={name:"3dsecure-acs",query:{response:JSON.stringify(t.response)}};return Capacitor.isNativePlatform()?void(0,l.t)({router:this.$router,peachResponse:t.response,pollingPath:"/3dsecure-transaction-status",navigate:e=>window.location.assign(e),onLaunchFailure:()=>{this.$store.dispatch(r.Af,!0),this.$notify({title:"Sorry!",text:"We couldn't open your bank's 3DSecure page. Please try again.",group:"top",type:"error"})}}):window.location.assign(e.path+"?"+new URLSearchParams(e.query).toString())}return this.returnRoute.query.successAfterImageVerify=!0,t?.return_url&&(this.returnRoute.query.reponse=JSON.stringify(t)),window.location.assign(this.returnRoute.path+"?"+new URLSearchParams(this.returnRoute.query).toString())}catch(e){this.$store.dispatch(r.Af,!0);let t=0;try{t=e.response.status}catch(e){}let s="An error has occurred.";try{s=e.response.data.errors[0]}catch(e){}return 406==t?(this.$notify({title:"Sorry!",text:"Selfie verification failed.",group:"top",type:"error"}),this.retry()):(this.$notify({title:"Sorry!",text:"An error has occurred: "+s,group:"top",type:"error"}),this.retry())}}}}},i()}catch(e){i(e)}})},49451:function(e,t,s){e.exports=s.p+"img/checkmark-black.bda8e7a5.svg"},76787:function(e,t,s){s.d(t,{X:function(){return k}});var i=s(20641),r=s(90033),a=s(84940),n=s(49451),o=s(26071);const l={class:"dashboard-inner"},c={class:"contain-width flex flex-1 px-2"},u={class:"md:py-10 px-0 text-center flex flex-1 flex-col"},p={key:0,class:"camera-box responsive-camera-box mb-4 flex flex-col"},h=["src"],d={key:1,class:"mb-6"},f={class:"tip-box"},m={key:2,class:"mb-6"},g={class:"tip-box"},y={key:0,class:"camera-button",style:{overflow:"visible"}};function k(e,t,s,k,v,b){return(0,i.uX)(),(0,i.CE)("div",l,[(0,i.Lk)("div",c,[(0,i.Lk)("div",u,[""!==v.selfie_link&&v.isCameraOpen?((0,i.uX)(),(0,i.CE)("div",p,[(0,i.Lk)("iframe",{id:"iframe",src:v.selfie_link,ref:"liveness",frameborder:"0",class:"selfieVideo stylediframe roun
1ded-lg w-full md:rounded-xl z-40",allowfullscreen:""},null,8,h),t[2]||(t[2]=(0,i.Lk)("div",{class:"facemeshMessage p-4 text-pjn-neutral-0"},[(0,i.Lk)("p",{class:"mb-2 mt-1"},[(0,i.Lk)("strong",null,"WARNING:"),(0,i.eW)(" This check displays colored lights. Use with caution if you are photosensitive. ")])],-1))])):(0,i.Q3)("",!0),v.isCameraOpen||v.retryVerification?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",d,[t[5]||(t[5]=(0,i.Lk)("img",{src:a,class:"mb-4"},null,-1)),t[6]||(t[6]=(0,i.Lk)("h2",{class:"heading-1 text-pjn-neutral-0 mb-6 text-xl font-bold"},"Photo Verification",-1)),t[7]||(t[7]=(0,i.Lk)("p",{class:"mb-8 text-n700 font-medium"}," Please take a quick selfie to help us verify your identity. ",-1)),(0,i.Lk)("div",f,[t[4]||(t[4]=(0,i.Lk)("p",{class:"title"},"Tips:",-1)),(0,i.Lk)("ul",null,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(v.tips,(e,s)=>((0,i.uX)(),(0,i.CE)("li",{key:s},[t[3]||(t[3]=(0,i.Lk)("img",{class:"m-2",src:n},null,-1)),(0,i.eW)(" "+(0,r.v_)(e),1)]))),128))])])])),!v.isCameraOpen&&v.retryVerification?((0,i.uX)(),(0,i.CE)("div",m,[t[10]||(t[10]=(0,i.Lk)("img",{src:o,class:"mb-4"},null,-1)),t[11]||(t[11]=(0,i.Lk)("h2",{class:"heading-1 text-pjn-neutral-0 mb-6 text-xl font-bold"}," Oh No, Let’s Try Again ",-1)),t[12]||(t[12]=(0,i.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,i.Lk)("div",g,[t[9]||(t[9]=(0,i.Lk)("p",{class:"title"},"Tips:",-1)),(0,i.Lk)("ul",null,[((0,i.uX)(!0),(0,i.CE)(i.FK,null,(0,i.pI)(v.tips,(e,s)=>((0,i.uX)(),(0,i.CE)("li",{key:s},[t[8]||(t[8]=(0,i.Lk)("img",{class:"m-2",src:n},null,-1)),(0,i.eW)(" "+(0,r.v_)(e),1)]))),128))])])])):(0,i.Q3)("",!0),v.isCameraOpen?(0,i.Q3)("",!0):((0,i.uX)(),(0,i.CE)("div",{key:3,id:"ap",class:(0,r.C4)([{flex:v.native},"h-full flex-grow flex flex-col justify-end"])},[(0,i.Lk)("div",{class:(0,r.C4)([{isCameraOpen:v.isCameraOpen,isLoading:v.isLoading},"selfie-btns"])},[!v.isCameraOpen||v.isCameraOpen&&v.isLoading?((0,i.uX)(),(0,i.CE)("div",y,[(0,i.Lk)("button",{type:"button",class:(0,r.C4)(["pjn-btn w-full mb-4 font-bold",{"pjn-btn--disabled":v.isCameraOpen}]),onClick:t[0]||(t[0]=(...e)=>b.startVerification&&b.startVerification(...e))},(0,r.v_)(v.retryVerification?"Retake Photo":"Take Photo"),3)])):(0,i.Q3)("",!0),(0,i.Lk)("div",null,[(0,i.Lk)("button",{class:"pjn-btn pjn-btn--dark-border w-full",onClick:t[1]||(t[1]=(...e)=>b.cancel&&b.cancel(...e))},"Cancel")])],2)],2))])])])}},79993:function(e,t,s){s.d(t,{A:function(){return m}});var i=s(20641),r=s.p+"img/apple_store.a2e763b8.svg",a=s.p+"img/google_store.d1103da1.svg",n=s.p+"img/huawei-store.5624794d.svg";const o={class:"applinks mx-auto flex"},l={class:"signup-badges1 flex-1"},c=["href"],u={class:"signup-badges1 flex-1"},p=["href"],h={class:"signup-badges1 flex-1"},d=["href"];var f={data(){return{appleurl:"https://apps.apple.com/za/app/payjustnow/id1542974651",huaweiurl:"https://appgallery.huawei.com/app/C103873181",googleurl:"https://play.google.com/store/apps/details?id=com.payjustnow&hl=en_IE&gl=US&pli=1"}}};var m=(0,s(66262).A)(f,[["render",function(e,t,s,f,m,g){return(0,i.uX)(),(0,i.CE)("div",o,[(0,i.Lk)("div",l,[(0,i.Lk)("a",{href:m.appleurl,target:"_blank"},t[0]||(t[0]=[(0,i.Lk)("img",{src:r,alt:"Badges1342",class:"signup-badges2"},null,-1)]),8,c)]),(0,i.Lk)("div",u,[(0,i.Lk)("a",{href:m.googleurl,target:"_blank"},t[1]||(t[1]=[(0,i.Lk)("img",{src:a,alt:"Badges1342",class:"signup-badges2"},null,-1)]),8,p)]),(0,i.Lk)("div",h,[(0,i.Lk)("a",{href:m.huaweiurl,target:"_blank"},t[2]||(t[2]=[(0,i.Lk)("img",{src:n,alt:"Badges1342",class:"signup-badges2"},null,-1)]),8,d)])])}]])},84940:function(e,t,s){e.exports=s.p+"img/selfie-verification-icon.f619f976.svg"},89960:function(e,t,s){s.a(e,async function(e,i){try{s.d(t,{A:function(){return r.A}});var r=s(38533),a=e([r]);r=(a.then?(await a)():a)[0],i()}catch(e){i(e)}})}}]);

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.