var e,r,t,a;r={},t={},null==(a=(e=globalThis).parcelRequire179d)&&((a=function(e){if(e in r)return r[e].exports;if(e in t){var a=t[e];delete t[e];var o={id:e,exports:{}};return r[e]=o,a.call(o.exports,o,o.exports),o.exports}var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=function(e,r){t[e]=r},e.parcelRequire179d=a),(0,a.register)("ik5Sr",function(e,r){Object.defineProperty(e.exports,"default",{get:()=>t,set:void 0,enumerable:!0,configurable:!0});class t{constructor(){this.orderTable(),this.paginationTable()}orderTable(){let e=document.querySelectorAll(".order-table"),r=new URLSearchParams(window.location.search).get("order")||"DESC";e.forEach(e=>{let t=e.getAttribute("data-order");t&&e.addEventListener("click",()=>{r="ASC"===r?"DESC":"ASC",this.queryURL([{key:"orderby",value:t},{key:"order",value:r}])})})}paginationTable(){document.querySelectorAll(".pagination").forEach(e=>{let r=e.getAttribute("data-page");r&&e.addEventListener("click",()=>{this.queryURL([{key:"table-page",value:r}])})})}queryURL(e){let r=new URLSearchParams(window.location.search);e.forEach(({key:e,value:t})=>{r.delete(e),r.append(e,t)}),window.location.replace(`${location.origin+location.pathname}?${r.toString()}`)}}}),a("ik5Sr");
//# sourceMappingURL=table.js.map
