1import { 2 CF2Component, 3 init_runtime, 4 registerComponent 5} from "./chunk-NQUHJ6NR.js"; 6import { 7 __esm, 8 init_define_process 9} from "./chunk-RFSPGZ3L.js"; 10 11// projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/radio-v1.ts 12var RadioV1; 13var init_radio_v1 = __esm({ 14 "projects/lib/packages/yggdrasil-blueprints/__generated__/blueprints/radio-v1.ts"() { 15 init_define_process(); 16 init_runtime(); 17 RadioV1 = class extends CF2Component { 18 constructor(el, runtimeSel) { 19 super(el, runtimeSel); 20 } 21 mount() { 22 const radioInput = this.element.querySelector(".elRadioInput"); 23 if (this.element.dataset.triggerClickOnWrapper == "true") { 24 this.element.addEventListener("click", (e) => { 25 if (e.target.closest("a")) return; 26 e.preventDefault(); 27 this.enableRadio(radioInput); 28 }); 29 } 30 } 31 enableRadio(radio) { 32 const event = new Event("change"); 33 if (!radio.checked) radio.checked = true; 34 radio.dispatchEvent(event); 35 } 36 }; 37 registerComponent("Radio/V1", RadioV1); 38 window["RadioV1"] = RadioV1; 39 } 40}); 41 42export { 43 init_radio_v1 44}; 45//# sourceMappingURL=chunk-TLMSI2UF.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.