PageSourceSearch

https://balticket.bilietai.lt/chunk-OJRUHSDG.js

js bilietai.lt collected 2026-10-03 19:21:00 UTC 1,984 bytes, 1 lines download raw bytes

1import{A as t,D as h,F as o,If as d,Jf as f,ce as m,ge as s,qg as c,rg as l,vf as u}from"./chunk-DYSAII2F.js";var w=(()=>{class a{constructor(r,e,i){this.api=r,this.snackService=e,this.authService=i}search(r){return this.api.customersFind(r.name||null,r.email||null,r.search||null,r.legalPersonId||null,r.page,r.pageSize,r.sortBy,r.sortOrder).pipe(t({error:e=>this.snackService.showBackendError(e)}))}displayScrollLoadOption(r){return"<b>"+r.firstName+" "+r.lastName+"</b>&nbsp;<i>("+r.email+(r.phoneNr?", "+r.phoneNr.split("").join("&#8203;"):"")+")</i>"}displayScrollLoadSelection(r){if(!r)return"";let e=[];r.email&&e.push(r.email),r.phoneNr&&e.push(r.phoneNr);let i=(r.firstName||"").concat(" ").concat(r.lastName||"");return e.length&&(i=i.concat(" (").concat(e.join(", ")).concat(")")),i}getScrollLoad(r,e){return new f(r||50,e||"uuid","search")}get(r){return this.api.customerFindByUuid(r).pipe(t({error:e=>this.snackService.showBackendError(e)}))}add(r){return this.api.customerAdd(r).pipe(t({error:e=>this.snackService.showBackendError(e)}))}update(r,e){return this.api.customerPutById(r,e).pipe(t({error:i=>this.snackService.showBackendError(i)}))}searchFromWebshop(r){return this.api.customersWebshopGet(r).pipe(t({error:e=>this.snackService.showBackendError(e)}))}getLegals(){return this.api.findAllLegalsWithCustomers().pipe(t({error:r=>this.snackService.showBackendError(r)}))}getAuditLogs(r,e,i){return this.api.getCustomerAuditLogsByCustomerUuid(r,e,i).pipe(t({error:n=>this.snackService.showBackendError(n)}))}validateCustomer(r,e=!1){if(!r)return!1;let i=r.firstName&&s.validateString(r.firstName,c,l)&&r.lastName&&s.validateString(r.lastName,c,l),n=!r.email||s.validateEmail(r.email),N=!r.phoneNr||s.validatePhone(r.phoneNr),p=!0;return e&&(p=r.legalPersons&&!r.legalPersons.filter(S=>!S.id).length),i&&n&&N&&p}static{this.\u0275fac=function(e){return new(e||a)(o(u),o(m),o(d))}}static{this.\u0275prov=h({token:a,factory:a.\u0275fac})}}return a})();export{w as a};

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.