/* Compiled from: rsx/theme/components/_archived/unfinished/table_pagination.jqhtml */ (function() { 'use strict'; const template_Table_Pagination = { _jqhtml_version: '2.2.185', name: 'Table_Pagination', tag: 'div', defaultAttributes: {"class": "d-flex justify-content-between align-items-center mt-3"}, render: function render(data, args, content, jqhtml) { let _output = []; const _cid = this._cid; const that = this; _output.push(" ");_output.push({tag: ["div", {"class": "text-muted small", "id": "info" + ":" + this._cid, "data-id": "info"}, false]}); _output.push(" "); _output.push(" Showing "); (() => { const result = this.args.start || 1 ; 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(" to "); (() => { const result = this.args.end || 10 ; 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(" of "); (() => { const result = this.args.total || 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(" entries "); _output.push(""); _output.push(" ");_output.push({tag: ["nav", {"aria-label": "Table pagination"}, false]}); _output.push(" ");_output.push({tag: ["ul", {"class": "pagination mb-0", "id": "pagination" + ":" + this._cid, "data-id": "pagination"}, 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_Table_Pagination); })(); //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRhYmxlX3BhZ2luYXRpb24uanFodG1sIl0sInNvdXJjZXNDb250ZW50IjpbIjxEZWZpbmU6VGFibGVfUGFnaW5hdGlvbiBjbGFzcz1cImQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtYmV0d2VlbiBhbGlnbi1pdGVtcy1jZW50ZXIgbXQtM1wiPlxuICA8ZGl2IGNsYXNzPVwidGV4dC1tdXRlZCBzbWFsbFwiICRpZD1cImluZm9cIj5cbiAgICBTaG93aW5nIDwlPSB0aGlzLmFyZ3Muc3RhcnQgfHwgMSAlPiB0byA8JT0gdGhpcy5hcmdzLmVuZCB8fCAxMCAlPiBvZiA8JT0gdGhpcy5hcmdzLnRvdGFsIHx8IDAgJT4gZW50cmllc1xuICA8L2Rpdj5cbiAgPG5hdiBhcmlhLWxhYmVsPVwiVGFibGUgcGFnaW5hdGlvblwiPlxuICAgIDx1bCBjbGFzcz1cInBhZ2luYXRpb24gbWItMFwiICRpZD1cInBhZ2luYXRpb25cIj5cbiAgICAgIDwlPSBjb250ZW50KCkgJT5cbiAgICA8L3VsPlxuICA8L25hdj5cbjwvRGVmaW5lOlRhYmxlX1BhZ2luYXRpb24+XG4iXSwibWFwcGluZ3MiOiJBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwibmFtZXMiOltdfQ==