PageSourceSearch

https://media.lordicon.com/assets/js/restore.page.QNGBocp7.js

js lordicon.com collected 2026-09-24 08:31:39 UTC 1,126 bytes, 2 lines download raw bytes

1import{a as i,H as o,T as n}from"./chunks/ui.NkqJAWMk.js";import"./chunks/form.hO27CKo8.js";import{u as c}from"./chunks/use-forms.CvN7xnEc.js";import{a as h}from"./chunks/utils.DhwRXUlI.js";class r{constructor(e,s){this.httpService=e,this.toastService=s}start(){const[e]=h(),{key:s}=e.element.dataset;e.on("send",t=>{s?this.assignPassword(e,{key:s,...t}):this.startRestore(e,t)})}switchToMessage(e){e.querySelector("form").classList.add("hidden"),e.querySelector("div.message").classList.remove("hidden")}async startRestore(e,s){try{e.busy=!0,await this.httpService.post("/api/auth/restore",s,{rawResponse:!0}),this.switchToMessage(e.element.parentElement),sessionStorage["login-email"]=s.email}catch(t){this.toastService.showError(t)}finally{e.busy=!1}}async assignPassword(e,s){try{e.busy=!0,await this.httpService.patch("/api/auth/restore",s,{rawResponse:!0}),this.switchToMessage(e.element.parentElement)}catch(t){this.toastService.showError(t)}finally{e.busy=!1}}}async function y(a){c(a);const e=new i(a);e.bindInjectable(r,[o,n]),e.get(r).start()}export{y as default};
2//# sourceMappingURL=restore.page.QNGBocp7.js.map

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.