/* Compiled from: rsx/theme/components/_archived/unfinished/notification_badge.jqhtml */ (function() { 'use strict'; const template_Notification_Badge = { _jqhtml_version: '2.2.185', name: 'Notification_Badge', tag: 'span', defaultAttributes: {"class": "position-relative"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _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({tag: ["span", {"class": "position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger", "id": "count" + ":" + this._cid, "data-id": "count", "style": ((this.args.count > 0 ? '' : 'display: none;'))}, false]}); _output.push(" "); (() => { const result = this.args.count || 0 ; 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_Notification_Badge); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vdGlmaWNhdGlvbl9iYWRnZS5qcWh0bWwiXSwic291cmNlc0NvbnRlbnQiOlsiPERlZmluZTpOb3RpZmljYXRpb25fQmFkZ2UgdGFnPVwic3BhblwiIGNsYXNzPVwicG9zaXRpb24tcmVsYXRpdmVcIj5cbiAgPCU9IGNvbnRlbnQoKSAlPlxuICA8c3BhbiBjbGFzcz1cInBvc2l0aW9uLWFic29sdXRlIHRvcC0wIHN0YXJ0LTEwMCB0cmFuc2xhdGUtbWlkZGxlIGJhZGdlIHJvdW5kZWQtcGlsbCBiZy1kYW5nZXJcIlxuICAgICAgICAkaWQ9XCJjb3VudFwiXG4gICAgICAgIHN0eWxlPVwiPCU9ICh0aGlzLmFyZ3MuY291bnQgPiAwID8gJycgOiAnZGlzcGxheTogbm9uZTsnKSAlPlwiPlxuICAgIDwlPSB0aGlzLmFyZ3MuY291bnQgfHwgMCAlPlxuICA8L3NwYW4+XG48L0RlZmluZTpOb3RpZmljYXRpb25fQmFkZ2U+XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEiLCJuYW1lcyI6W119