/* Compiled from: rsx/theme/components/_archived/unfinished/calendar_event.jqhtml */ (function() { 'use strict'; const template_Calendar_Event = { _jqhtml_version: '2.2.185', name: 'Calendar_Event', tag: 'div', defaultAttributes: {"class": "card mb-2", "style": "cursor: pointer;"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" ");_output.push({tag: ["div", {"class": "card-body p-2"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "d-flex align-items-start gap-2"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "bg-" + (this.args.color || 'primary') + "rounded", "style": "width: 4px; height: 100%; min-height: 40px;"}, false]}); _output.push(""); _output.push(" ");_output.push({tag: ["div", {"class": "flex-grow-1"}, false]}); _output.push(" ");_output.push({tag: ["div", {"class": "fw-bold small"}, false]}); (() => { const result = this.args.title ; 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: ["div", {"class": "text-muted small"}, false]}); _output.push(" ");_output.push({tag: ["i", {"class": "bi bi-clock me-1"}, false]}); _output.push(""); _output.push(" "); (() => { const result = this.args.time ; 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(""); if (this.args.location) { _output.push(" ");_output.push({tag: ["div", {"class": "text-muted small"}, false]}); _output.push(" ");_output.push({tag: ["i", {"class": "bi bi-geo-alt me-1"}, false]}); _output.push(""); _output.push(" "); (() => { const result = this.args.location ; 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(""); _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_Calendar_Event); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNhbGVuZGFyX2V2ZW50LmpxaHRtbCJdLCJzb3VyY2VzQ29udGVudCI6WyI8RGVmaW5lOkNhbGVuZGFyX0V2ZW50IGNsYXNzPVwiY2FyZCBtYi0yXCIgc3R5bGU9XCJjdXJzb3I6IHBvaW50ZXI7XCI+XG4gIDxkaXYgY2xhc3M9XCJjYXJkLWJvZHkgcC0yXCI+XG4gICAgPGRpdiBjbGFzcz1cImQtZmxleCBhbGlnbi1pdGVtcy1zdGFydCBnYXAtMlwiPlxuICAgICAgPGRpdiBjbGFzcz1cImJnLTwlPSB0aGlzLmFyZ3MuY29sb3IgfHwgJ3ByaW1hcnknICU+IHJvdW5kZWRcIiBzdHlsZT1cIndpZHRoOiA0cHg7IGhlaWdodDogMTAwJTsgbWluLWhlaWdodDogNDBweDtcIj48L2Rpdj5cbiAgICAgIDxkaXYgY2xhc3M9XCJmbGV4LWdyb3ctMVwiPlxuICAgICAgICA8ZGl2IGNsYXNzPVwiZnctYm9sZCBzbWFsbFwiPjwlPSB0aGlzLmFyZ3MudGl0bGUgJT48L2Rpdj5cbiAgICAgICAgPGRpdiBjbGFzcz1cInRleHQtbXV0ZWQgc21hbGxcIj5cbiAgICAgICAgICA8aSBjbGFzcz1cImJpIGJpLWNsb2NrIG1lLTFcIj48L2k+XG4gICAgICAgICAgPCU9IHRoaXMuYXJncy50aW1lICU+XG4gICAgICAgIDwvZGl2PlxuICAgICAgICA8JSBpZiAodGhpcy5hcmdzLmxvY2F0aW9uKSB7ICU+XG4gICAgICAgICAgPGRpdiBjbGFzcz1cInRleHQtbXV0ZWQgc21hbGxcIj5cbiAgICAgICAgICAgIDxpIGNsYXNzPVwiY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