/* Compiled from: rsx/theme/components/_archived/unfinished/modal_dialog.jqhtml */ (function() { 'use strict'; const template_Modal_Dialog = { _jqhtml_version: '2.2.185', name: 'Modal_Dialog', tag: 'div', defaultAttributes: {"class": "modal fade", "tabindex": "-1", "aria-hidden": "true"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" ");_output.push({tag: ["div", {"class": "modal-dialog"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "modal-content"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "modal-header"}, false]}); _output.push(" ");_output.push({tag: ["h5", {"class": "modal-title", "id": "title" + ":" + this._cid, "data-id": "title"}, false]}); (() => { const result = this.args.title || 'Modal' ; 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({tag: ["button", {"type": "button", "class": "btn-close", "data-bs-dismiss": "modal", "aria-label": "Close"}, false]}); _output.push(""); _output.push(" "); _output.push(""); _output.push({tag: ["div", {"class": "modal-body", "id": "body" + ":" + this._cid, "data-id": "body"}, false]}); _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({tag: ["div", {"class": "modal-footer", "id": "footer" + ":" + this._cid, "data-id": "footer"}, false]}); _output.push(" "); _output.push({comp: ["Button_Secondary", {"data-bs-dismiss": "modal"}, function(Button_Secondary) { let _output = []; _output.push("Close"); return [_output, this]; }.bind(this)]}); _output.push(" "); _output.push({comp: ["Button_Primary", {"id": "confirm" + ":" + this._cid, "data-id": "confirm"}, function(Button_Primary) { let _output = []; _output.push("Confirm"); return [_output, this]; }.bind(this)]}); _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_Modal_Dialog); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vZGFsX2RpYWxvZy5qcWh0bWwiXSwic291cmNlc0NvbnRlbnQiOlsiPERlZmluZTpNb2RhbF9EaWFsb2cgY2xhc3M9XCJtb2RhbCBmYWRlXCIgdGFiaW5kZXg9XCItMVwiIGFyaWEtaGlkZGVuPVwidHJ1ZVwiPlxuICA8ZGl2IGNsYXNzPVwibW9kYWwtZGlhbG9nXCI+XG4gICAgPGRpdiBjbGFzcz1cIm1vZGFsLWNvbnRlbnRcIj5cbiAgICAgIDxkaXYgY2xhc3M9XCJtb2RhbC1oZWFkZXJcIj5cbiAgICAgICAgPGg1IGNsYXNzPVwibW9kYWwtdGl0bGVcIiAkaWQ9XCJ0aXRsZVwiPjwlPSB0aGlzLmFyZ3MudGl0bGUgfHwgJ01vZGFsJyAlPjwvaDU+XG4gICAgICAgIDxidXR0b24gdHlwZT1cImJ1dHRvblwiIGNsYXNzPVwiYnRuLWNsb3NlXCIgZGF0YS1icy1kaXNtaXNzPVwibW9kYWxcIiBhcmlhLWxhYmVsPVwiQ2xvc2VcIj48L2J1dHRvbj5cbiAgICAgIDwvZGl2PlxuICAgICAgPGRpdiBjbGFzcz1cIm1vZGFsLWJvZHlcIiAkaWQ9XCJib2R5XCI+XG4gICAgICAgIDwlPSBjb250ZW50KCkgJT5cbiAgICAgIDwvZGl2PlxuICAgICAgPGRpdiBjbGFzcz1cIm1vZGFsLWZvb3RlclwiICRpZD1cImZvb3RlclwiPlxuICAgICAgICA8QnV0dG9uX1NlY29uZGFyeSBkYXRhLWJzLWRpc21pc3M9XCJtb2RhbFwiPkNsb3NlPC9CdXR0b25fU2Vjb25kYXJ5PlxuICAgICAgICA8QnV0d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