{"version":3,"sources":["webpack:///./wp-content/themes/is5communications/src/scripts/components/loader.js"],"names":["$","each","$holder","this","on","e","preventDefault","nextPage","attr","remove","append","load"],"mappings":"8EAAA,YAOAA,GAAG,WACFA,EAAG,6BAA8BC,MAAM,WACtC,IAAIC,EAAUF,EAAGG,MAEjBH,EAAG,YAAaE,GAAUE,GAAI,QAAS,qBAAqB,SAAWC,GACtEA,EAAEC,iBACF,IAAIC,EAAWP,EAAGG,MAAOK,KAAM,QAE/BR,EAAGG,MAAOM,SACVT,EAAG,YAAaE,GAAUQ,OACzBV,EAAG,WAAYW,KAAf,UAAwBJ,EAAxB,2B","file":"scripts/6.chunk.js","sourcesContent":["/**\n * Ajax Loader\n *\n * This component requires jQuery to function.\n * You can require it on the page using
\n */\n\n$( function () {\n\t$( '[data-component=\"loader\"]' ).each( function () {\n\t\tlet $holder = $( this );\n\n\t\t$( '#articles', $holder ).on( 'click', '#load-older-posts', function ( e ) {\n\t\t\te.preventDefault();\n\t\t\tlet nextPage = $( this ).attr( 'href' );\n\n\t\t\t$( this ).remove();\n\t\t\t$( '#articles', $holder ).append(\n\t\t\t\t$( '' ).load( `${nextPage} #articles` )\n\t\t\t);\n\t\t} );\n\t} );\n} );\n"],"sourceRoot":""}