PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` paginators as $key => $value) { $this->$key = $value; } return array_fill_keys(array_keys($this->paginators), ['except' => 1]); } public function initializeWithPagination() { foreach ($this->paginators as $key => $value) { $this->$key = $value; } $this->page = $this->resolvePage(); $this->paginators['page'] = $this->page; if (class_exists(CursorPaginator::class)) { CursorPaginator::currentCursorResolver(function ($pageName){ if (! isset($this->paginators[$pageName])) { $this->paginators[$pageName] = request()->query($pageName, ''); } return Cursor::fromEncoded($this->paginators[$pageName]); }); } Paginator::currentPageResolver(function ($pageName) { if (! isset($this->paginators[$pageName])) { $this->paginators[$pageName] = request()->query($pageName, 1); } return (int) $this->paginators[$pageName]; }); Paginator::defaultView($this->paginationView()); Paginator::defaultSimpleView($this->paginationSimpleView()); } public function paginationView() { return 'livewire::' . (property_exists($this, 'paginationTheme') ? $this->paginationTheme : 'tailwind'); } public function paginationSimpleView() { return 'livewire::simple-' . (property_exists($this, 'paginationTheme') ? $this->paginationTheme : 'tailwind'); } public function previousPage($pageName = 'page') { $this->setPage(max($this->paginators[$pageName] - 1, 1), $pageName); } public function nextPage($pageName = 'page') { $this->setPage($this->paginators[$pageName] + 1, $pageName); } public function gotoPage($page, $pageName = 'page') { $this->setPage($page, $pageName); } public function resetPage($pageName = 'page') { $this->setPage(1, $pageName); } public function setPage($page, $pageName = 'page') { if (is_numeric($page)){ $page = (int)$page; $page = $page <= 0 ? 1 : $page ; } $beforePaginatorMethod = 'updatingPaginators'; $afterPaginatorMethod = 'updatedPaginators'; $beforeMethod = 'updating' . $pageName; $afterMethod = 'updated' . $pageName; if (method_exists($this, $beforePaginatorMethod)) { $this->{$beforePaginatorMethod}($page, $pageName); } if (method_exists($this, $beforeMethod)) { $this->{$beforeMethod}($page, null); } $this->paginators[$pageName] = $page; $this->{$pageName} = $page; if (method_exists($this, $afterPaginatorMethod)) { $this->{$afterPaginatorMethod}($page, $pageName); } if (method_exists($this, $afterMethod)) { $this->{$afterMethod}($page, null); } } public function resolvePage() { // The "page" query string item should only be available // from within the original component mount run. // Avoid cast to integer to prevent hydrate error return request()->query('page', $this->page); } }