// Compiled from: Notification_Dropdown.jqhtml
(function() {
'use strict';
const template_Notification_Dropdown = {
_jqhtml_version: '2.2.185',
name: 'Notification_Dropdown',
tag: 'div',
defaultAttributes: {"class": "dropdown"},
render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this;
_output.push(" ");_output.push({tag: ["button", {"class": "btn btn-link position-relative", "type": "button", "data-bs-toggle": "dropdown", "aria-expanded": "false"}, false]});
_output.push(" "); _output.push({comp: ["Icon", {"data-name": "bell"}]});
_output.push(" "); if (this.args.unread_count > 0) {
_output.push(" ");_output.push({tag: ["span", {"class": "position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger"}, false]});
_output.push(" "); (() => { const result = this.args.unread_count ; 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({tag: ["div", {"class": "dropdown-menu dropdown-menu-end", "style": "width: 320px;"}, false]});
_output.push(" ");_output.push({tag: ["div", {"class": "dropdown-header d-flex justify-content-between align-items-center"}, false]});
_output.push(" ");_output.push({tag: ["span", {"class": "fw-bold"}, false]}); _output.push("Notifications"); _output.push("");
_output.push(" ");_output.push({tag: ["a", {"href": "#", "class": "small"}, false]}); _output.push("Mark all read"); _output.push("");
_output.push(" "); _output.push("");
_output.push({tag: ["div", {"class": "dropdown-divider"}, false]}); _output.push("");
_output.push(" ");_output.push({tag: ["div", {"class": "overflow-auto", "style": "max-height: 400px;"}, 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("");
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_Dropdown);
})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vdGlmaWNhdGlvbl9kcm9wZG93bi5qcWh0bWwiXSwic291cmNlc0NvbnRlbnQiOlsiPERlZmluZTpOb3RpZmljYXRpb25fRHJvcGRvd24gY2xhc3M9XCJkcm9wZG93blwiPlxuICA8YnV0dG9uIGNsYXNzPVwiYnRuIGJ0bi1saW5rIHBvc2l0aW9uLXJlbGF0aXZlXCJcbiAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICBkYXRhLWJzLXRvZ2dsZT1cImRyb3Bkb3duXCJcbiAgICAgICAgICBhcmlhLWV4cGFuZGVkPVwiZmFsc2VcIj5cbiAgICA8SWNvbiAkbmFtZT1cImJlbGxcIiAvPlxuICAgIDwlIGlmICh0aGlzLmFyZ3MudW5yZWFkX2NvdW50ID4gMCkgeyAlPlxuICAgICAgPHNwYW4gY2xhc3M9XCJwb3NpdGlvbi1hYnNvbHV0ZSB0b3AtMCBzdGFydC0xMDAgdHJhbnNsYXRlLW1pZGRsZSBiYWRnZSByb3VuZGVkLXBpbGwgYmctZGFuZ2VyXCI+XG4gICAgICAgIDwlPSB0aGlzLmFyZ3MudW5yZWFkX2NvdW50ICU+XG4gICAgICA8L3NwYW4+XG4gICAgPCUgfSAlPlxuICA8L2J1dHRvbj5cbiAgPGRpdiBjbGFzcz1cImRyb3Bkb3duLW1lbnUgZHJvcGRvd24tbWVudS1lbmRcIiBzdHlsZT1cIndpZHRoOiAzMjBweDtcIj5cbiAgICA8ZGl2IGNsYXNzPVwiZHJvcGRvd24taGVhZGVyIGQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtYmV0d2VlbiBhbGlnbi1pdGVtcy1jZW50ZXJcIj5cbiAgICAgIDxzcGFuIGNsYXNzPVwiZnctYm9sZFwiPk5vdGlmaW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