PageSourceSearch

https://id.easypay.pt/_nuxt/DT0uRZWt.js

js easypay.pt collected 2026-09-24 08:31:16 UTC 1,411 bytes, 1 lines download raw bytes

1import{f as l,u as h,g as y,h as w,n as m}from"./DPw7Hleb.js";const g="It seems that your phone is not allowed. Do you want to try again?",v="Code invalid. Do you want to try again?",_=l({__name:"authorize",setup(b){let n=3;const u=w(),s=h(),d=()=>{alert("Authentication Failed"),s.redirectedFrom!==void 0&&m(s.redirectedFrom,{redirectCode:301})},f=(r,o,t)=>{const e={retry:!1,password:""};if(n>0){const i=o.concat(` (tries left: ${r})`);if(confirm(i)){if(e.retry=!0,t==="code"){const a=prompt("Enter the authentication code you received via SMS:");if(a)return e.password=a,e.retry=!0,e;e.retry=!1}return e}}return e},c=async(r,o,t,e)=>{try{const i=await $fetch(`${u.public.apiUrl}${r}`,{method:"post",body:{...o}});if(i)return n=3,await i;alert("Authentication Failed. Try again later"),window.location.reload()}catch{const{retry:a,password:p}=f(n,t,e);if(a)return n--,e==="code"&&(o.password=p),await c(r,o,t,e)}};return y(async()=>{const r=prompt("Enter your phone number:");let o;if(r){const t=await c("/resource/session/authorize",{url:s.query.url,type:"phone",value:r},g,"phone");t&&(o=t)}if(o){const t=prompt("Enter the authentication code you received via SMS:");if(t&&await c("/resource/session/submit",{id:o.id,password:t},v,"code")){window.location.href=s.query.url;return}}if(r&&n>0&&confirm("Do you want to change the phone?")){window.location.reload();return}d()}),()=>{}}});export{_ as default};

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.