/* Compiled from: rsx/theme/components/inputs/checkbox_input.jqhtml */ (function() { 'use strict'; const template_Checkbox_Input = { _jqhtml_version: '2.2.185', name: 'Checkbox_Input', tag: 'div', defaultAttributes: {"class": "Widget"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" ");_output.push({tag: ["div", {"class": "form-check"}, false]}); _output.push(" ");_output.push({tag: ["input", Object.assign({}, Object.assign({}, {"id": "input" + ":" + this._cid, "data-id": "input", "class": "form-check-input", "type": "checkbox"}, ((this.data.checked)) ? {"checked": "true"} : {}), ((this.args.disabled)) ? {"disabled": "true"} : {}), true]}); _output.push(""); _output.push(" "); if (this.args.label) { _output.push(" ");_output.push({tag: ["label", {"id": "label" + ":" + this._cid, "data-id": "label", "class": "form-check-label"}, false]}); _output.push(" "); (() => { const result = this.args.label ; if (Array.isArray(result)) { if (result.length === 2 && Array.isArray(result[0])) { _output.push(...result[0]); } else { _output.push(...result); } } else { _output.push(jqhtml.escape_html(result)); } })(); _output.push(" "); _output.push(""); } _output.push(" "); _output.push(""); return [_output, this]; }, dependencies: [] }; // Self-register with jqhtml runtime // Must use window.jqhtml since we're in bundle scope if (!window.jqhtml) { throw new Error('FATAL: window.jqhtml is not defined. The jqhtml runtime must be loaded before registering templates.'); } // Auto-register following standard jqhtml pattern window.jqhtml.register_template(template_Checkbox_Input); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNoZWNrYm94X2lucHV0LmpxaHRtbCJdLCJzb3VyY2VzQ29udGVudCI6WyI8IS0tXG5DaGVja2JveF9JbnB1dFxuXG5DaGVja2JveCB3aWRnZXQgZm9yIGZvcm1zLlxuXG4kbGFiZWwgLSBMYWJlbCB0ZXh0IHRvIGRpc3BsYXkgbmV4dCB0byBjaGVja2JveFxuJGNoZWNrZWRfdmFsdWUgLSBWYWx1ZSB3aGVuIGNoZWNrZWQgKGRlZmF1bHQ6IFwiMVwiKVxuJ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