1import { b as d } from "./chunk-i2pl4wu9.js"; 2import { $i as m, E as p, Ei as r, W as s, Z as _, g as f } from "./chunk-ql746sly.js"; 3import { j as l } from "./chunk-hcheit1f.js"; 4import { p as S } from "./chunk-b11o3szq.js"; 5import { ut as k } from "./chunk-fz42rx6r.js"; 6import { r as C } from "./chunk-icjzvqcx.js"; 7import { t as U } from "./chunk-jbaamz4y.js"; 8import { A as v, b as g } from "./chunk-c01xxjhs.js"; 9import { J as b, Y as A, gt as D, h as y, mt as j, rt as E, x as B } from "./chunk-jtpxiaxj.js"; 10import { o as I } from "./chunk-jaxwt8s1.js"; 11import { j as J } from "./chunk-nhl74n6z.js"; 12import { o as R, t as a } from "./chunk-br9ckdzm.js"; 13import { d as o, p as V } from "./chunk-bl09vhvv.js"; 14import { ot as w } from "./chunk-f0xko016.js"; 15import { c as x } from "./chunk-n63cutws.js"; 16import { Dn as N, jr as F } from "./chunk-eu7ozsb7.js"; 17import { a as P } from "./chunk-lt7tziae.js"; 18import { n as W } from "./chunk-gpn04stg.js"; 19import { t as q } from "./chunk-lf77xnpz.js"; 20import { i as G, p as L } from "./chunk-bnt36dw9.js"; 21import { n as Y } from "./chunk-d6iooz3w.js"; 22import { r as Z } from "./chunk-jouxu15i.js"; 23import { n as O } from "./chunk-c8btpjog.js"; 24import { tt as Q } from "./chunk-dkzazc5t.js"; 25import { t as X } from "./chunk-o4f8w5yc.js"; 26function z() { 27 return [y(c)]; 28} 29var u, c; 30function h() { 31 return (h = X((() => { 32 d(), m(), l(), S(), k(), C(), U(), v(), D(), I(), J(), R(), g(), V(), w(), b(), x(), F(), P(), W(), q(), L(), G(), Y(), Z(), O(), Q(), N(), u = (() => { 33 let i = class { 34 constructor() { 35 this.apiService = s(B), this.user = s(o), this.destroyRef = s(f), this.unAuthStatus = { 36 pendingWith: "", 37 isPending: !1 38 }, this.documentUplaodStatusEvents = new p(null), this.refreshSubject = new _(), this.refreshSubject.pipe(a(this.destroyRef)).subscribe((t) => { 39 this.load(t); 40 }); 41 } 42 get documentUplaodStatus() { 43 return this.documentUplaodStatusEvents; 44 } 45 refresh(t) { 46 this.refreshSubject.next(t); 47 } 48 load(t) { 49 this.user.isAuthenticated && this.apiService.get("documentUploadStatus", { 50 useCase: t.useCase, 51 cached: !!t.cached 52 }).subscribe((e) => { 53 this.documentUplaodStatusEvents.next({ 54 documentUploadStatus: e, 55 useCase: t.useCase 56 }); 57 }); 58 } 59 }; 60 return i.ɵfac = function(n) { 61 return new (n || i)(); 62 }, i.ɵprov = r({ 63 token: i, 64 factory: i.ɵfac, 65 providedIn: "root" 66 }), i; 67 })(), c = (() => { 68 let i = class { 69 constructor() { 70 this.dslRecorderService = s(j), this.dslCacheService = s(A), this.documentUploadStatusService = s(u), this.user = s(o), this.documentUploadStatus = {}; 71 let t = this.dslCacheService; 72 this.documentUploadStatusService.documentUplaodStatus.pipe(a()).subscribe((e) => { 73 e && (this.documentUploadStatus[e?.useCase] = e?.documentUploadStatus, t.invalidate(["documentUploadStatus"])); 74 }); 75 } 76 getProviders() { 77 return { DocumentUploadStatus: this.dslRecorderService.createRecordable("documentUploadStatus").createFunction({ 78 name: "IsPending", 79 get: (t) => this.getCurrentValue(t, "isPending"), 80 deps: ["documentUploadStatus", "user.isAuthenticated"] 81 }).createFunction({ 82 name: "PendingWith", 83 get: (t) => this.getCurrentValue(t, "pendingWith"), 84 deps: ["documentUploadStatus", "user.isAuthenticated"] 85 }) }; 86 } 87 getCurrentValue(t, e) { 88 return this.user.isAuthenticated ? (this.documentUploadStatus[t] || this.documentUploadStatusService.refresh({ 89 cached: !0, 90 useCase: t 91 }), this.documentUploadStatus[t] ? this.documentUploadStatus[t][e] : E) : this.documentUploadStatusService.unAuthStatus[e]; 92 } 93 }; 94 return i.ɵfac = function(n) { 95 return new (n || i)(); 96 }, i.ɵprov = r({ 97 token: i, 98 factory: i.ɵfac 99 }), i; 100 })(); 101 })))(); 102} 103h(); 104export { z as provide }; 105 106//# sourceMappingURL=chunk-Cmsqq449j.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.