{"version":3,"sources":["popstate.js"],"names":["instant","popstate","status","hasInitPopState","init","initPopstate","bindEvents","window","addEventListener","page","getURLParam","filteredList","cash","each","wrapper","this","updateFilters","loadMore","pagination","closest","length"],"mappings":";AACAA,QAAQC,SAAW,CACjBC,OAAQ,CACNC,iBAAiB,GAEnBC,KAAM,WACJJ,QAAQC,SAASI,gBAEnBA,aAAc,WACPL,QAAQC,SAASC,OAAOC,kBAC3BH,QAAQC,SAASK,aACjBN,QAAQC,SAASC,OAAOC,iBAAkB,IAK9CG,WAAY,WACVC,OAAOC,iBAAiB,YAAY,WAClC,IAAIC,EAAOF,OAAOG,YAAY,QAE1BV,QAAQW,cACVC,KAAK,0BAA0BC,MAAK,WAClC,IAAIC,EAAUF,KAAKG,MAEnBf,QAAQW,aAAaK,cAAcF,GACnCd,QAAQW,aAAaM,SAASH,GAAS,EAAOL,MAI9CT,QAAQkB,YAEVN,KAAK,mBAAmBC,MAAK,WAC3B,IAAIC,EAAUF,KAAKG,MAEqC,GAApDD,EAAQK,QAAQ,0BAA0BC,QAC5CpB,QAAQkB,WAAWD,SAASH,EAASL,GAAM","file":"../popstate.min.js","sourcesContent":["/*! dependencies: cash */\r\ninstant.popstate = {\r\n status: {\r\n hasInitPopState: false\r\n },\r\n init: function () {\r\n instant.popstate.initPopstate();\r\n },\r\n initPopstate: function () {\r\n if (!instant.popstate.status.hasInitPopState) {\r\n instant.popstate.bindEvents();\r\n instant.popstate.status.hasInitPopState = true;\r\n\r\n }\r\n\r\n },\r\n bindEvents: function () {\r\n window.addEventListener('popstate', function () {\r\n var page = window.getURLParam('page');\r\n\r\n if (instant.filteredList) {\r\n cash('.filtered-list-wrapper').each(function () {\r\n var wrapper = cash(this);\r\n\r\n instant.filteredList.updateFilters(wrapper);\r\n instant.filteredList.loadMore(wrapper, false, page);\r\n });\r\n }\r\n\r\n if (instant.pagination) {\r\n\r\n cash('.paging-wrapper').each(function () {\r\n var wrapper = cash(this);\r\n\r\n if (wrapper.closest('.filtered-list-wrapper').length == 0) {\r\n instant.pagination.loadMore(wrapper, page, false);\r\n }\r\n });\r\n }\r\n });\r\n }\r\n};"]}