/* Compiled from: rsx/theme/components/_archived/unfinished/form_actions_component.jqhtml */ (function() { 'use strict'; const template_Form_Actions_Component = { _jqhtml_version: '2.2.185', name: 'Form_Actions_Component', tag: 'div', defaultAttributes: {"class": "mt-3"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" "); if (this.args.cancel_url) { _output.push(" ");_output.push({tag: ["a", {"href": (this.args.cancel_url), "class": "btn btn-secondary"}, false]}); (() => { const result = this.args.cancel_text || 'Cancel' ; 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({tag: ["button", {"class": "btn btn-primary", "type": "submit"}, false]}); (() => { const result = this.args.submit_text || 'Save' ; 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(" "); 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_Actions_Component); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZvcm1fYWN0aW9uc19jb21wb25lbnQuanFodG1sIl0sInNvdXJjZXNDb250ZW50IjpbIjxEZWZpbmU6Rm9ybV9BY3Rpb25zX0NvbXBvbmVudCB0YWc9XCJkaXZcIiBjbGFzcz1cIm10LTNcIj5cbiAgPCUgaWYgKHRoaXMuYXJncy5jYW5jZWxfdXJsKSB7ICU+XG4gICAgPGEgaHJlZj1cIjwlPSB0aGlzLmFyZ3MuY2FuY2VsX3VybCAlPlwiIGNsYXNzPVwiYnRuIGJ0bi1zZWNvbmRhcnlcIj48JT0gdGhpcy5hcmdzLmNhbmNlbF90ZXh0IHx8ICdDYW5jZWwnICU+PC9hPlxuICA8JSB9ICU+XG4gIDxidXR0b24gY2xhc3M9XCJidG4gYnRuLXByaW1hcnlcIiB0eXBlPVwic3VibWl0XCI+PCU9IHRoaXMuYXJncy5zdWJtaXRfdGV4dCB8fCAnU2F2ZScgJT48L2J1dHRvbj5cbjwvRGVmaW5lOkZvcm1fQWN0aW9uc19Db21wb25lbnQ+XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSIsIm5hbWVzIjpbXX0=