1import { g as A, y as T } from "./chunk-xgti9j2t.js"; 2import { $ as O, $r as v, Ai as E, Ea as s, Hn as a, Li as P, Pi as G, Pt as f, Sa as d, Sn as L, T as J, To as k, Y as K, Yn as Y, fa as c, fi as m, gt as o, h as $, l as z, la as j, nt as V, on as H, ri as b, ro as W, sa as X, t as S, tn as u, ua as q, wa as C, wr as Q } from "./chunk-c97c17u8.js"; 3import { C as U, M as Z, U as tt, u as et } from "./chunk-l3jkbhly.js"; 4import { p as nt } from "./chunk-k52vj1ic.js"; 5import { o as ot } from "./chunk-l24fzhmb.js"; 6import { A as it } from "./chunk-jrtaqqwj.js"; 7import { o as st, t as y } from "./chunk-pesy0vb6.js"; 8import { D as rt, o as at } from "./chunk-llc8ry2a.js"; 9import { j as ct, ut as mt } from "./chunk-fbjoug0d.js"; 10import { a as ut } from "./chunk-ewplex8i.js"; 11import { n as ht } from "./chunk-c18gpzrj.js"; 12import { r as lt } from "./chunk-c9rg1mp5.js"; 13import { t as pt } from "./chunk-kyqvtgtk.js"; 14import { Y as ft, gt as _t } from "./chunk-ldkhjowa.js"; 15import { p as vt } from "./chunk-bhnvkbxx.js"; 16import { ot as dt } from "./chunk-f2v2cgea.js"; 17import { c as kt } from "./chunk-mnbyc2sm.js"; 18import { C as bt, Dn as St, P as Ct, T as yt, Tt as gt, ft as Dt, h as wt, i as g, ir as D, jr as Mt, pr as Bt, wt as xt } from "./chunk-gacv0pfq.js"; 19import { n as It, t as Rt } from "./chunk-k4et3zlq.js"; 20import { i as Ft, p as Nt } from "./chunk-hul0ult7.js"; 21import { n as At } from "./chunk-lmnwxprc.js"; 22import { n as Tt, r as Ot, t as Et } from "./chunk-ilfhy0in.js"; 23import { n as Pt } from "./chunk-ohg30iel.js"; 24import { $ as Gt, st as Lt, ut as Jt } from "./chunk-iuhjzybw.js"; 25import { a as Kt, s as Yt } from "./chunk-kdzbhsd4.js"; 26import { r as $t } from "./chunk-n5f0it4j.js"; 27import { r as zt, t as jt } from "./chunk-bt0uh5ix.js"; 28import { n as Vt } from "./chunk-bh3f6w1f.js"; 29import { t as Ht } from "./chunk-bwsrvyqb.js"; 30import { n as Wt } from "./chunk-k0kygnvj.js"; 31import { _t as Xt, at as w, it as qt, l as Qt, lt as Ut, o as Zt, pt as te, wt as ee, xt as ne, yt as oe } from "./chunk-fkxg6vdg.js"; 32import { Qn as ie } from "./chunk-hx2yplj1.js"; 33import { t as se } from "./chunk-o4f8w5yc.js"; 34function re(t) { 35 return t.get(r); 36} 37function ae(t, e) { 38 if (t & 1 && (s(0, "div", 1), O(1), c()), t & 2) { 39 let n = d(); 40 u("ngClass", n.content.menu.class), f(), X(n.content.menu.title); 41 } 42} 43function ce(t, e) { 44 t & 1 && H(0); 45} 46function me(t, e) { 47 if (t & 1 && W(0, ce, 1, 0, "ng-container", 3), t & 2) { 48 let n = e.$implicit; 49 u("vnDynamicComponent", d().getItemComponent(n.type))("vnDynamicComponentAttr", q(2, M, n)); 50 } 51} 52function ue() { 53 return [ 54 h, 55 l, 56 { 57 provide: r, 58 useFactory: re, 59 deps: [Et] 60 }, 61 gt(F) 62 ]; 63} 64var r, h, M, B, x, l, _, I, R, F; 65function N() { 66 return (N = se((() => { 67 T(), G(), Z(), nt(), ot(), it(), st(), rt(), mt(), ut(), ht(), lt(), pt(), at(), _t(), vt(), dt(), ft(), kt(), Mt(), Rt(), Nt(), Ft(), At(), Ot(), Pt(), Gt(), St(), Yt(), Kt(), $t(), jt(), Vt(), Ht(), Wt(), ee(), ne(), oe(), Xt(), te(), Ut(), qt(), Qt(), Zt(), ie(), j(), r = (() => { 68 var t = class extends Tt {}; 69 let e = (t.ɵfac = (() => { 70 let n; 71 return function(i) { 72 return (n || (n = E(t)))(i || t); 73 }; 74 })(), t.ɵprov = m({ 75 token: t, 76 factory: t.ɵfac 77 }), t); 78 return e = Q([It({ 79 key: "vnBottomSheet", 80 product: ct.SF 81 })], e), e; 82 })(), h = (() => { 83 let t = class { 84 constructor() { 85 this.menuItemsService = o(yt), this.bottomSheetComponents = /* @__PURE__ */ new Map(); 86 } 87 setItemCounter(n, i, p) { 88 this.menuItemsService.setCounter(D.BottomSheet, n, i, p); 89 } 90 setBottomSheetComponent(n, i) { 91 this.bottomSheetComponents.set(n, i); 92 } 93 getBottomSheetComponent(n) { 94 return n = n || "default", this.bottomSheetComponents.get(n) || null; 95 } 96 }; 97 return t.ɵfac = function(e) { 98 return new (e || t)(); 99 }, t.ɵprov = m({ 100 token: t, 101 factory: t.ɵfac 102 }), t; 103 })(), M = (t) => ({ item: t }), B = (() => { 104 let t = class { 105 constructor() { 106 this.trackByProp = bt("id"), this.content = o(r), this.bottomSheetService = o(h); 107 } 108 getItemComponent(n) { 109 return this.bottomSheetService.getBottomSheetComponent(n); 110 } 111 }; 112 return t.ɵfac = function(e) { 113 return new (e || t)(); 114 }, t.ɵcmp = a({ 115 type: t, 116 selectors: [["vn-bottom-sheet-menu"]], 117 decls: 7, 118 vars: 5, 119 consts: [ 120 [ 121 1, 122 "bottom-sheet", 123 "list-nav" 124 ], 125 [ 126 1, 127 "bottom-sheet-h", 128 "py-1", 129 "px-wrapper", 130 3, 131 "ngClass" 132 ], 133 [ 134 1, 135 "bottom-sheet-menu", 136 "list-nav", 137 "px-wrapper" 138 ], 139 [ 140 4, 141 "vnDynamicComponent", 142 "vnDynamicComponentAttr" 143 ] 144 ], 145 template: function(e, n) { 146 e & 1 && (s(0, "div", 0), K(1, ae, 2, 2, "div", 1), s(2, "div", 2), $(3, me, 1, 4, "ng-container", null, n.trackByProp, !0), b(5, "dsl"), b(6, "async"), c()()), e & 2 && (f(), P(n.content.menu.title ? 1 : -1), f(2), Y(C(6, 3, C(5, 1, n.content.menu.items)))); 147 }, 148 dependencies: [ 149 tt, 150 et, 151 wt, 152 U, 153 Ct 154 ], 155 styles: [`@charset "UTF-8";.bottom-sheet.list-nav{border-top-left-radius:5px;border-top-right-radius:5px;margin:2px;overflow:hidden}.bottom-sheet-menu{background-color:var(--%NS%bottom-sheet-menu-wrapper-bg-color);color:var(--%NS%bottom-sheet-menu-wrapper-color);max-height:60vh;overflow:hidden scroll;-webkit-overflow-scrolling:touch;-ms-overflow-style:-ms-autohiding-scrollbar}.bottom-sheet-h{background:var(--%NS%bottom-sheet-h-bg);color:var(--%NS%bottom-sheet-h-color);font-weight:var(--%NS%theme-font-medium)}.bottom-sheet .list-nav-link .vn-icon{--%NS%vn-icon-size: 24px;box-sizing:content-box;margin-left:calc(var(--%NS%site-spacer-s) * -1);padding:var(--%NS%site-spacer-s)}.vn-bottom-sheet-container,vn-bottom-sheet-overlay{width:100%} 156`], 157 encapsulation: 2, 158 changeDetection: 1 159 }), t; 160 })(), x = (() => { 161 let t = class {}; 162 return t.ɵfac = function(e) { 163 return new (e || t)(); 164 }, t.ɵcmp = a({ 165 type: t, 166 selectors: [["vn-bottom-sheet-overlay"]], 167 decls: 1, 168 vars: 0, 169 template: function(e, n) { 170 e & 1 && L(0, "vn-bottom-sheet-menu"); 171 }, 172 dependencies: [B], 173 encapsulation: 2 174 }), t; 175 })(), l = (() => { 176 let t = class { 177 constructor() {
178 this.overlay = o(zt), this.injector = o(k), this.destroyRef = o(z); 179 } 180 toggle(n) { 181 if (n = n ?? !this.currentRef, n && !this.currentRef) { 182 let i = this.overlay.create({ 183 panelClass: "vn-bottom-sheet-container", 184 positionStrategy: this.overlay.position.global().bottom() 185 }); 186 i.backdropClick().pipe(y(this.destroyRef)).subscribe(() => this.currentRef?.detach()), i.detachments().pipe(y(this.destroyRef)).subscribe(() => { 187 this.overlay.dispose(this.currentRef), this.currentRef = null; 188 }); 189 let p = new Jt(x, null, k.create({ 190 providers: [{ 191 provide: Lt, 192 useValue: i 193 }], 194 parent: this.injector 195 })); 196 i.attach(p), this.currentRef = i; 197 } else !n && this.currentRef && this.currentRef.detach(); 198 } 199 }; 200 return t.ɵfac = function(e) { 201 return new (e || t)(); 202 }, t.ɵprov = m({ 203 token: t, 204 factory: t.ɵfac 205 }), t; 206 })(), _ = (() => { 207 let t = class { 208 constructor() { 209 this.MenuSection = D, this.bottomSheetOverlayService = o(l); 210 } 211 close() { 212 this.bottomSheetOverlayService.toggle(!1); 213 } 214 }; 215 return t.ɵfac = function(e) { 216 return new (e || t)(); 217 }, t.ɵdir = J({ 218 type: t, 219 inputs: { item: "item" } 220 }), t; 221 })(), I = (() => { 222 let t = class extends _ { 223 constructor() { 224 super(), this.MenuDisplayMode = g; 225 } 226 }; 227 return t.ɵfac = function(e) { 228 return new (e || t)(); 229 }, t.ɵcmp = a({ 230 type: t, 231 selectors: [["vn-bs-button"]], 232 features: [v], 233 decls: 1, 234 vars: 3, 235 consts: [[ 236 "badgePosition", 237 "FastIcon", 238 "linkClass", 239 "btn", 240 1, 241 "bottom-sheet-item", 242 3, 243 "onClick", 244 "item", 245 "section", 246 "displayMode" 247 ]], 248 template: function(e, n) { 249 e & 1 && (s(0, "vn-menu-item", 0), S("onClick", function() { 250 return n.close(); 251 }), c()), e & 2 && u("item", n.item)("section", n.MenuSection.BottomSheet)("displayMode", n.MenuDisplayMode.FastIcon); 252 }, 253 dependencies: [w], 254 encapsulation: 2, 255 changeDetection: 1 256 }), t; 257 })(), R = (() => { 258 let t = class extends _ { 259 constructor() { 260 super(), this.MenuDisplayMode = g; 261 } 262 }; 263 return t.ɵfac = function(e) { 264 return new (e || t)(); 265 }, t.ɵcmp = a({ 266 type: t, 267 selectors: [["vn-bs-link"]], 268 features: [v], 269 decls: 1, 270 vars: 3, 271 consts: [[ 272 "badgePosition", 273 "FastIcon", 274 "linkClass", 275 "list-nav-link", 276 "iconClass", 277 "ui-icon ui-icon-size-xl", 278 "badgeClass", 279 "badge-offset", 280 "textClass", 281 "list-nav-txt", 282 1, 283 "bottom-sheet-item", 284 3, 285 "onClick", 286 "item", 287 "section", 288 "displayMode" 289 ]], 290 template: function(e, n) { 291 e & 1 && (s(0, "vn-menu-item", 0), S("onClick", function() { 292 return n.close(); 293 }), c()), e & 2 && u("item", n.item)("section", n.MenuSection.BottomSheet)("displayMode", n.MenuDisplayMode.FastIcon); 294 }, 295 dependencies: [w], 296 encapsulation: 2, 297 changeDetection: 1 298 }), t; 299 })(), F = (() => { 300 let t = class { 301 constructor() { 302 this.config = o(r), this.bottomSheetService = o(h), this.coreBottomSheetService = o(Bt), this.bottomSheetOverlayService = o(l), this.menuActionsService = o(Dt); 303 } 304 onFeatureInit() { 305 return A(this, null, function* () { 306 this.coreBottomSheetService.set(this.bottomSheetService), yield V(this.config.whenReady), this.menuActionsService.register(xt.TOGGLE_BOTTOM_SHEET, () => { 307 this.bottomSheetOverlayService.toggle(); 308 }), this.bottomSheetService.setBottomSheetComponent("default", R), this.bottomSheetService.setBottomSheetComponent("button", I); 309 }); 310 } 311 }; 312 return t.ɵfac = function(e) { 313 return new (e || t)(); 314 }, t.ɵprov = m({ 315 token: t, 316 factory: t.ɵfac 317 }), t; 318 })(); 319 })))(); 320} 321N(); 322export { ue as provide }; 323 324//# sourceMappingURL=chunk-Dg6hsrqz8.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.