1import { g as l, y as d } from "./chunk-xgti9j2t.js"; 2import { Ai as k, Pi as L, fi as a, gt as e, la as C, nt as D, wr as v } from "./chunk-c97c17u8.js"; 3import { M as w } from "./chunk-l3jkbhly.js"; 4import { p as g } from "./chunk-k52vj1ic.js"; 5import { o as y } from "./chunk-l24fzhmb.js"; 6import { A as G } from "./chunk-jrtaqqwj.js"; 7import { o as A, t as B } from "./chunk-pesy0vb6.js"; 8import { D as b, o as F } from "./chunk-llc8ry2a.js"; 9import { j as I, ut as V } from "./chunk-fbjoug0d.js"; 10import { a as S } from "./chunk-ewplex8i.js"; 11import { n as R } from "./chunk-c18gpzrj.js"; 12import { r as M } from "./chunk-c9rg1mp5.js"; 13import { t as x } from "./chunk-kyqvtgtk.js"; 14import { $ as h, X as O, Y as $, ft as H, gt as J, mt as P } from "./chunk-w0x32net.js"; 15import { d as Q, p as W } from "./chunk-bhnvkbxx.js"; 16import { ot as X } from "./chunk-f2v2cgea.js"; 17import { c as q } from "./chunk-og5uebri.js"; 18import { Dn as K, Tt as T, jr as Y } from "./chunk-go6pvd0a.js"; 19import { n as j, t as z } from "./chunk-k4et3zlq.js"; 20import { i as N, p as Z } from "./chunk-hul0ult7.js"; 21import { n as E } from "./chunk-lmnwxprc.js"; 22import { n as U, r as tt, t as it } from "./chunk-ilfhy0in.js"; 23import { n as st } from "./chunk-ohg30iel.js"; 24import { $ as rt } from "./chunk-iuhjzybw.js"; 25import { fn as et } from "./chunk-g8mtbi19.js"; 26import { $n as nt, bn as ot } from "./chunk-iq8thase.js"; 27import { t as at } from "./chunk-o4f8w5yc.js"; 28function mt(t) { 29 return t.get(n); 30} 31function ut() { 32 return [ 33 { 34 provide: n, 35 deps: [it], 36 useFactory: mt 37 }, 38 H(f), 39 T(_) 40 ]; 41} 42var n, _, f; 43function p() { 44 return (p = at((() => { 45 d(), L(), w(), g(), y(), G(), A(), b(), V(), S(), R(), M(), x(), F(), J(), W(), X(), $(), q(), Y(), z(), Z(), N(), E(), tt(), st(), rt(), K(), et(), nt(), C(), n = (() => { 46 var t = class extends U {}; 47 let s = (t.ɵfac = (() => { 48 let i; 49 return function(r) { 50 return (i || (i = k(t)))(r || t); 51 }; 52 })(), t.ɵprov = a({ 53 token: t, 54 factory: t.ɵfac 55 }), t); 56 return s = v([j({ 57 key: "vnDepositLimits", 58 product: I.SF 59 })], s), s; 60 })(), _ = (() => { 61 let t = class { 62 constructor() { 63 this.config = e(n); 64 } 65 onFeatureInit() { 66 return l(this, null, function* () { 67 yield D(this.config.whenReady); 68 }); 69 } 70 }; 71 return t.ɵfac = function(s) { 72 return new (s || t)(); 73 }, t.ɵprov = a({ 74 token: t, 75 factory: t.ɵfac 76 }), t; 77 })(), f = (() => { 78 let t = class { 79 constructor() { 80 this.dslRecorderService = e(P), this.depositLimitsService = e(ot), this.depositLimitConfig = e(n), this.user = e(Q), this.loaded = !1, this.limitDefaultValue = -1; 81 let i = e(O); 82 this.depositLimitsService.limits.pipe(B()).subscribe((r) => { 83 this.limits = r, this.loaded = !0, i.invalidate(["depositLimits.Get"]); 84 }); 85 } 86 getProviders() { 87 return { DepositLimits: this.dslRecorderService.createRecordable("depositLimits").createFunction({ 88 name: "Get", 89 get: (i) => this.getCurrentValue(() => this.limits ? this.limits.find((r) => r.limitSet && r.type?.toLowerCase() === i?.toLowerCase())?.currentLimit || this.limitDefaultValue : h), 90 deps: ["depositLimits.Get", "user.isAuthenticated"] 91 }).createFunction({ 92 name: "IsLow", 93 get: (i) => this.isLow(i), 94 deps: ["depositLimits.Get", "user.isAuthenticated"] 95 }) }; 96 } 97 getCurrentValue(i) { 98 return this.user.isAuthenticated ? (this.loadDepositLimits(), i()) : this.limitDefaultValue; 99 } 100 isLow(i) { 101 if (!this.user.isAuthenticated) return !1; 102 if (this.loadDepositLimits(), !this.limits) return h; 103 i = i?.toLowerCase(); 104 let r = this.user.currency, o = this.depositLimitConfig.lowThresholds[i]; 105 if (!o) return !1; 106 let m = o[r] || o["*"]; 107 if (m == null) return !1; 108 let u = this.limits.find((c) => c.limitSet && c.type?.toLowerCase() === i)?.currentLimit; 109 return u ? u <= m : !1; 110 } 111 loadDepositLimits() { 112 this.loaded || (this.loaded = !0, this.depositLimitsService.load()); 113 } 114 }; 115 return t.ɵfac = function(s) { 116 return new (s || t)(); 117 }, t.ɵprov = a({ 118 token: t, 119 factory: t.ɵfac 120 }), t; 121 })(); 122 })))(); 123} 124p(); 125export { ut as provide }; 126 127//# sourceMappingURL=chunk-Vljvb8imo.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.