PageSourceSearch

https://yorato.ai/build/assets/register-08abd57c.js

js yorato.ai collected 2026-10-05 13:22:42 UTC 2,425 bytes, 1 lines download raw bytes

1import{i as E,a as O,c as j,u as q,r as a,w as I,o as R,S as b}from"./sweetalert2.all-c0811efd.js";import{a as v}from"./axios-3a76d256.js";const T=E(),L=[T];let u,h,m,C;u="0x38",h="https://bsc-dataseed.binance.org",m="Binance - Mainnet",C="BNB";O({wallets:L,connect:{autoConnectLastWallet:!0},appMetadata:{name:"Yorato",icon:"<svg><svg/>",description:"Connect with your wallet",recommendedInjectedWallets:[{name:"MetaMask",url:"https://metamask.io"},{name:"TrustWallet",url:"https://trustwallet.com"}]},chains:[{id:u,token:C,label:m,rpcUrl:h}]});j({setup(){const{connectWallet:w,connectedChain:y,connectedWallet:d,setChain:k,getChain:A,connectingWallet:x}=q(),B=async()=>w(),S=async()=>k({wallet:d.value.label,chainId:u}),l=a(""),n=a(""),g=a(!1),t=a(""),r=a(""),f=a(!1);I(d,async(o,e)=>{o!==null?(l.value=o.accounts[0].address,await v.get("check-wallet-address/"+l.value).then(function(s){if(s.data.isBlocked===!0)return b.fire({title:"Oops...",text:s.data.message,icon:"error",allowOutsideClick:!1,allowEscapeKey:!1,confirmButtonText:"Go to dashboard"}).then(U=>{U.isConfirmed&&(location.href="/")}),"";s.data.status===!0?(f.value=!0,location.href="dashboard"):f.value=!1})):l.value=""});const M=async o=>{if(n.value===""?(c.value="Side is required",r.value=""):c.value="",W.value===!1?(i.value="Terms & Conditions is required",r.value=""):i.value="",i.value!==""||c.value!=="")return"";await v.post("register",{walletAddress:l.value,referralWalletAddress:t.value,side:n.value}).then(function(e){e.data.status===!0&&(location.href="dashboard"),e.data.status===!1&&b.fire({title:"Oops...",text:e.data.message,icon:"error"})}).catch(function(e){e.response.status===422&&(r.value="",r.value=e.response.data)})},p=async()=>{const o=window.location.search,e=new URLSearchParams(o);t.value=e.get("referralWalletAddress"),n.value=e.get("side"),n.value&&(g.value=!0),console.log(t.value),t.value===null&&await v.get("get-referral-wallet").then(function(s){s.data.status===!0&&(t.value=s.data.referralWalletAddress)})};R(async()=>{await p()});const W=a(!1),i=a(""),c=a("");return{connect:B,setBinanceChain:S,connectWallet:w,connectedWallet:d,connectedChain:y,getChain:A,connectingWallet:x,chainId:u,rpcUrl:h,chainName:m,walletAddress:l,referralWalletAddress:t,side:n,isUserRegistered:f,register:M,registerValidationError:r,termsCheckbox:W,termsError:i,sideError:c,getReferralWalletAddressFromUrl:p,isSideDisable:g}}}).mount("#app");

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.