1import { 2 addPageScroll, 3 closeOnClickOutside, 4 init_cf_utils, 5 removePageScroll 6} from "./chunk-KIZY5IRN.js"; 7import { 8 CF2Component, 9 init_runtime, 10 registerComponent 11} from "./chunk-NQUHJ6NR.js"; 12import { 13 __esm, 14 init_define_process 15} from "./chunk-RFSPGZ3L.js"; 16 17// projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/modal-sidebar-v1.ts 18var ModalSidebarV1; 19var init_modal_sidebar_v1 = __esm({ 20 "projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/modal-sidebar-v1.ts"() { 21 init_define_process(); 22 init_cf_utils(); 23 init_runtime(); 24 ModalSidebarV1 = class extends CF2Component { 25 constructor(el, runtimeSel) { 26 super(el, runtimeSel); 27 } 28 mount() { 29 closeOnClickOutside(this.element.querySelector(".elModalSidebar"), () => this.hide()); 30 } 31 show() { 32 removePageScroll(); 33 this.element.classList.remove("forceHide"); 34 const wrapper = this.element.querySelector(".elModalSidebar"); 35 setTimeout(() => { 36 wrapper.classList.add("elModalSidebarSlideAnimation"); 37 }); 38 } 39 hide() { 40 addPageScroll(); 41 this.element.classList.add("forceHide"); 42 const wrapper = this.element.querySelector(".elModalSidebar"); 43 wrapper.classList.remove("elModalSidebarSlideAnimation"); 44 } 45 }; 46 registerComponent("ModalSidebar/V1", ModalSidebarV1); 47 window["ModalSidebarV1"] = ModalSidebarV1; 48 } 49}); 50 51export { 52 init_modal_sidebar_v1 53}; 54//# sourceMappingURL=chunk-MO2D3CXO.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.