/* Compiled from: rsx/theme/components/_archived/unfinished/form_group_component.jqhtml */ (function() { 'use strict'; const template_Form_Group_Component = { _jqhtml_version: '2.2.185', name: 'Form_Group_Component', tag: 'div', defaultAttributes: {}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" ");_output.push({tag: ["div", {}, false]}); _output.push(" "); if (this.args.label) { _output.push(" ");_output.push({tag: ["label", {"for": (this.args.id)}, false]}); (() => { 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(" "); if (this.args.type === 'select') { _output.push(" "); if (this.args.required) { _output.push(" ");_output.push({tag: ["select", {"class": "form-select", "id": "[object Object]", "required": "true"}, false]}); _output.push(" "); if (this.args.placeholder) { _output.push(" ");_output.push({tag: ["option", {"value": ""}, false]}); (() => { const result = this.args.placeholder ; 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(" "); (() => { if (this.args._inner_html) { _output.push(this.args._inner_html); } else if (typeof content === 'function') { const [contentInstructions] = content.call(this); _output.push(['_content', contentInstructions]); } })(); _output.push(" "); _output.push(""); } else { _output.push(" ");_output.push({tag: ["select", {"class": "form-select", "id": "[object Object]"}, false]}); _output.push(" "); if (this.args.placeholder) { _output.push(" ");_output.push({tag: ["option", {"value": ""}, false]}); (() => { const result = this.args.placeholder ; 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(" "); (() => { if (this.args._inner_html) { _output.push(this.args._inner_html); } else if (typeof content === 'function') { const [contentInstructions] = content.call(this); _output.push(['_content', contentInstructions]); } })(); _output.push(" "); _output.push(""); } _output.push(" "); } else if (this.args.type === 'textarea') { _output.push(" "); if (this.args.required) { _output.push(" ");_output.push({tag: ["textarea", {"class": "form-control", "id": "[object Object]", "rows": (this.args.rows || 4), "placeholder": (this.args.placeholder || ''), "required": "true"}, false]}); _output.push(""); _output.push(" "); } else { _output.push(" ");_output.push({tag: ["textarea", {"class": "form-control", "id": "[object Object]", "rows": (this.args.rows || 4), "placeholder": (this.args.placeholder || '')}, false]}); _output.push(""); _output.push(" "); } _output.push(" "); } else { _output.push(" "); if (this.args.required) { _output.push(" ");_output.push({tag: ["input", {"class": "form-control", "id": "[object Object]", "type": (this.args.type || 'text'), "placeholder": (this.args.placeholder || ''), "required": "true"}, true]}); _output.push(""); _output.push(" "); } else { _output.push(" ");_output.push({tag: ["input", {"class": "form-control", "id": "[object Object]", "type": (this.args.type || 'text'), "placeholder": (this.args.placeholder || '')}, true]}); _output.push(""); _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_Form_Group_Component); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvcm1fZ3JvdXBfY29tcG9uZW50LmpxaHRtbCJdLCJzb3VyY2VzQ29udGVudCI6WyI8RGVmaW5lOkZvcm1fR3JvdXBfQ29tcG9uZW50IHRhZz1cImRpdlwiPlxuICA8ZGl2PlxuICAgIDwlIGlmICh0aGlzLmFyZ3MubGFiZWwpIHsgJT5cbiAgICAgIDxsYWJlbCBmb3I9XCI8JT0gdGhpcy5hcmdzLmlkICU+XCI+PCU9IHRoaXMuYXJncy5sYWJlbCAlPjwvbGFiZWw+XG4gICAgPCUgfSAlPlxuICAgIDwlIGlmICh0aGlzLmFyZ3M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