PageSourceSearch

https://abstour.by/build/assets/checking_application-Cxn3rn9n.js

js abstour.by collected 2026-10-02 20:14:59 UTC 1,945 bytes, 1 lines download raw bytes

1const a=document.querySelector('meta[name="csrf-token"]')?.getAttribute("content"),l={"Content-Type":"application/json",Accept:"application/json",...a&&{"X-CSRF-TOKEN":a}},e=document.querySelector("#check-application-btn");e&&e.addEventListener("click",async()=>{const r=document.querySelector("#check-application-input");if(!r.value){toastr.error("Введите номер договора");return}const u=r.value;e.disabled=!0,e.textContent="Отправка...";try{const n=await fetch(`/api/request-status/${u}`,{method:"GET",headers:l}),t=await n.json();if(console.log(t),n.ok){window.Alpine.store("common").applicationStatus="success",document.querySelector("#contract-number").textContent=t.dogovor_code,document.querySelector("#contract-date").textContent=t.tour_date,document.querySelector("#contract-name").textContent=t.turist_masked,document.querySelector("#contract-phone").textContent=t.phone_masked;const o=document.querySelector("#contract-status");o.querySelector("span").textContent=t.status_text,o.classList.add("bg-yellow"),o.insertAdjacentHTML("afterbegin",'<svg class="w-[18px] h-[18px]"><use xlink:href="#aprove-doc"></use></svg>');const c=document.querySelector("#payment-status");c.querySelector("span").textContent=t.payment_text,c.classList.add("bg-blue"),c.insertAdjacentHTML("afterbegin",'<svg class="w-[18px] h-[18px]"><use xlink:href="#pending"></use></svg>')}else n.status==404?toastr.error("Заявка не найдена"):toastr.error("Ошибка при отправке.")}catch(n){console.error("Сетевая ошибка при отправке:",n),toastr.error("Не удалось подключиться к серверу.")}finally{e.disabled=!1,e.textContent="Отправить"}});const s=document.querySelector("#check-application-back-btn");s&&s.addEventListener("click",()=>{window.Alpine.store("common").applicationStatus=null,document.querySelector("#contract-status svg").remove()});

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.