// source --> https://our-hometown.com/wp-content/plugins/memberpress/js/signup.js?ver=1.9.18b3 (function($) { $(document).ready(function() { $('body').on('click', '.mepr-signup-form .have-coupon-link', function(e) { e.preventDefault(); $(this).hide(); $('div.mepr_coupon_'+$(this).data("prdid")).show(); }); // Store the default price string $('.mepr_price_cell').each(function () { $(this).data('default-price-string', $(this).text()); }); var meprValidateInput = function (obj, submitting) { $(obj).removeClass('invalid'); var form = $(obj).closest('.mepr-signup-form'); if ($(obj).attr('required') !== undefined) { var notBlank = true; if(!$(obj).is(':visible')) { // Pass validation on fields that are not visible } else if ($(obj).is('input') || $(obj).is('select') || $(obj).is('textarea')) { notBlank = mpValidateNotBlank($(obj).val()); } else if ($(obj).hasClass('mepr-checkbox-field')) { notBlank = $(obj).find('input').is(':checked'); } else if ($(obj).hasClass('mepr-radios-field') || $(obj).hasClass('mepr-checkboxes-field')) { var input_vals = []; $.each($(obj).find('input'), function (i, obj) { if($(obj).is(':checked')) { input_vals.push(true); } }); notBlank = mpValidateNotBlank(input_vals); } mpToggleFieldValidation($(obj), notBlank); } // Validate actual email only if it's not empty otherwise let the required/un-required logic hold if ($(obj).attr('type')==='email' && $(obj).val().length > 0) { var validEmail = mpValidateEmail($(obj).val()); mpToggleFieldValidation($(obj), validEmail); } // Validate the URL by using the browser validation functions if ($(obj).attr('type')==='url' && $(obj).val().length > 0) { var validURL = $(obj).is(':valid'); mpToggleFieldValidation($(obj), validURL); } if ($(obj).hasClass('mepr-password-confirm')) { var confirmMatch = $(obj).val() === form.find('.mepr-password').val(); mpToggleFieldValidation($(obj), confirmMatch); } if($(obj).hasClass('mepr-coupon-code') && !submitting) { var price_string = form.find('div.mepr_price_cell'); if($(obj).val().match(/(\s|\S)/)) { $(obj).prev('.mp-form-label').find('.mepr-coupon-loader').fadeIn(); var data = { action: 'mepr_validate_coupon', code: $(obj).val(), prd_id: $(obj).data("prdid"), coupon_nonce: MeprSignup.coupon_nonce }; $.post(MeprI18n.ajaxurl, data, function(res) { $(obj).prev('.mp-form-label').find('.mepr-coupon-loader').hide(); res = res.trim(); mpToggleFieldValidation($(obj), (res.toString() == 'true')); if(res.toString() == 'true') { // Let's update price string meprUpdatePriceTerms(form); } else { form.find('.mepr-payment-methods-wrapper:hidden').show(); form.find('input[name="mepr_payment_methods_hidden"]').remove(); price_string.text(price_string.data('default-price-string')); // Invalid Coupon - update SPC Invoice meprUpdatePriceTerms(form); } }); } else if($(obj).val().trim() === '') { if (form.find('.mepr-payment-methods-wrapper').is(':hidden')) { // Looks like we need to restore the payment methods form.find('.mepr-payment-methods-wrapper').show(); form.find('input[name="mepr_payment_methods_hidden"]').remove(); } price_string.text(price_string.data('default-price-string')); // Enpty Coupon - update SPC Invoice meprUpdatePriceTerms(form); } } $(obj).trigger('mepr-validate-input'); }; var meprUpdatePriceTerms = function (form) { var price_string = form.find('div.mepr_price_cell'); let settings = { url: MeprI18n.ajaxurl, type: 'POST', dataType: 'json', data: { code: form.find('input[name="mepr_coupon_code"]').val(), prd_id: form.find('input[name="mepr_product_id"]').val(), mepr_address_one: form.find('input[name="mepr-address-one"]').val(), mepr_address_two: form.find('input[name="mepr-address-two"]').val(), mepr_address_city: form.find('input[name="mepr-address-city"]').val(), mepr_address_state: form.find('select[name="mepr-address-state"]').is(':visible') ? form.find('select[name="mepr-address-state"]').val() : form.find('input[name="mepr-address-state"]').val(), mepr_address_country: form.find('select[name="mepr-address-country"]').val(), mepr_address_zip: form.find('input[name="mepr-address-zip"]').val(), mepr_vat_number: form.find('input[name="mepr_vat_number"]').val(), mepr_vat_customer_type: form.find('input[name="mepr_vat_customer_type"]:checked').val(), coupon_nonce: MeprSignup.coupon_nonce } } if(form.find('input[name="mpgft-signup-gift-checkbox"]').length > 0){ settings.data.mpgft_gift_checkbox = $('input[name="mpgft-signup-gift-checkbox"]').is(':checked'); } // Let's update terms settings.data.action = 'mepr_update_price_string'; $.ajax(settings) .done(function (response) { if (response && typeof response == 'object' && response.status === 'success') { form.trigger('meprPriceStringUpdated', [response]); if(price_string.length) { var scroll_top = price_string.offset().top; price_string.html(response.price_string); } if(response.payment_required) { form.find('.mepr-payment-methods-wrapper').show(); form.find('input[name="mepr_payment_methods_hidden"]').remove(); } else { form.find('.mepr-payment-methods-wrapper').hide(); form.append(''); // Clear validation errors on fields now hidden form.find('.mepr-payment-methods-wrapper .mepr-form-input').each(function () { meprValidateInput(this); }); } } }); // Let's update SPC Invoice if (MeprSignup.spc_enabled == '1'){ settings.data.action = 'mepr_update_spc_invoice_table'; // Show SPC invoice table loader form.find('.mepr-invoice-loader').fadeIn(); $.ajax(settings) .done(function (response) { if (response && typeof response == 'object' && response.status === 'success') { $(form).find('.mepr-transaction-invoice-wrapper > div').replaceWith(response.invoice); } $(form).find('.mepr-invoice-loader').hide(); $(form).find(".mepr-transaction-invoice-wrapper .mp_invoice").css({ opacity: 1 }); }); } } $('body').on('focus', '.mepr-form .mepr-form-input', function (e) { $(this).prev('.mp-form-label').find('.cc-error').hide(); $(this).removeClass('invalid'); }); $('body').on('blur', '.mepr-form .mepr-form-input', function (e) { //Don't validate date fields here, wait til the push the submit button if(!$(this).hasClass('mepr-date-picker')) { meprValidateInput(this); } }); // Specific to validating with the datepicker ui text field $('body').on('mepr-date-picker-closed', '.mepr-form .mepr-form-input.mepr-date-picker', function (e, date, inst) { meprValidateInput(this); }); $('body').on('click', '.mepr-signup-form .mepr-submit', function (e) { // We want to control if/when the form is submitted e.preventDefault(); var form = $(this).closest('.mepr-signup-form'); var button = $(this); $.each(form.find('.mepr-form-input:visible'), function(i,obj) { meprValidateInput(obj, true); }); if (0 < form.find('.invalid:visible').length) { form.find('.validation').addClass('failed'); } else { var submittedTelInputs = document.querySelectorAll(".mepr-tel-input"); for (var i = 0; i < submittedTelInputs.length; i++) { var iti = intlTelInput(submittedTelInputs[i]); submittedTelInputs[i].value = iti.getNumber(); } form.find('.validation').addClass('passed'); this.disabled = true; form.find('.mepr-loading-gif').show(); $(this).trigger('mepr-register-submit'); form.submit(); } }); $('body').on('click', '.mepr-signup-form div[class^=mepr-payment-method] input.mepr-form-radio', function () { var form = $(this).closest('.mepr-signup-form'); // Reset the transaction ID to prevent any issues after switching payment methods form.find('input[name="mepr_transaction_id"]').val(''); var pmid = '.mp-pm-desc-' + $(this).val(); var pmid_exists = (form.find(pmid).length > 0); form.find('.mepr-payment-method-desc-text').addClass('mepr-close'); if(pmid_exists) { form.find(pmid).removeClass('mepr-close'); } //If nothing has the mepr-close class, we still need to show this one's description var mepr_close_exists = (form.find('.mepr-payment-method-desc-text.mepr-close').length > 0); if(mepr_close_exists) { form.find('.mepr-payment-method-desc-text.mepr-close').slideUp({ duration: 200, complete: function() { if(pmid_exists) { form.find(pmid).slideDown(200); } } }); } else { if(pmid_exists) { form.find(pmid).slideDown(200); } } }); // Update price string & invoice when certain inputs change value $("body").on("change", ".mepr-form .mepr-form-input, .mepr-form .mepr-form-radios-input, .mepr-form .mepr-select-field", function (e) { if($(this).attr('name') == 'mepr-address-zip' || $(this).attr('name') == 'mepr-address-city' || $(this).attr('name') == 'mepr-address-country' || $(this).attr('name') == 'mepr-address-one' || $(this).attr('name') == 'mepr-address-state' || $(this).attr('name') == 'mepr_vat_customer_type' || $(this).attr('name') == 'mepr_vat_number' || $(this).attr('name') == 'mpgft-signup-gift-checkbox' ) { let form = $(this).closest(".mepr-signup-form"); meprUpdatePriceTerms(form); } } ); // Update price string & invoice when geolocation occurs $('body').on('mepr-geolocated', '.mepr-form .mepr-countries-dropdown', function () { meprUpdatePriceTerms($(this).closest('.mepr-signup-form')); }); $(".mepr-replace-file").each(function(){ $(this).closest('div').find('.mepr-file-uploader').hide(); }); $('body').on('click', '.mepr-replace-file', function (e) { $(this).closest('div').find('.mepr-file-uploader').toggle(); }); }); })(jQuery); // source --> https://our-hometown.com/wp-content/plugins/amazon-polly/public/js/amazonpolly-public.js?ver=1.0.0 /** * Additional JS if needed. * * @link amazon.com * @since 1.0.0 * * @package Amazonpolly */ (function( $ ) { 'use strict'; $( document ).ready( function(){ } ); })( jQuery ); // source --> https://our-hometown.com/wp-content/plugins/responsive-lightbox/assets/swipebox/jquery.swipebox.min.js?ver=2.3.1 !function(p,c,m,b){m.swipebox=function(o,e){var n,a,t={useCSS:!0,useSVG:!0,initialIndexOnArray:0,removeBarsOnMobile:!0,hideCloseButtonOnMobile:!1,hideBarsDelay:3e3,videoMaxWidth:1140,vimeoColor:"cccccc",beforeOpen:null,afterOpen:null,afterClose:null,afterMedia:null,nextSlide:null,prevSlide:null,loopAtEnd:!1,autoplayVideos:!1,queryStringData:{},toggleClassOnLoad:"",selector:null},r=this,g=[],i=navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(Android)|(PlayBook)|(BB10)|(BlackBerry)|(Opera Mini)|(IEMobile)|(webOS)|(MeeGo)/i),s=null!==i||c.createTouch!==b||"ontouchstart"in p||"onmsgesturechange"in p||navigator.msMaxTouchPoints,l=!!c.createElementNS&&!!c.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,f=p.innerWidth?p.innerWidth:m(p).width(),d=p.innerHeight?p.innerHeight:m(p).height(),w=0;r.settings={},m.swipebox.close=function(){n.closeSlide()},m.swipebox.extend=function(){return n},r.init=function(){r.settings=m.extend({},t,e),Array.isArray(o)?(g=o,n.target=m(p),n.init(r.settings.initialIndexOnArray)):m(o).on("click",r.settings.selector,function(e){return"slide current"!==e.target.parentNode.className&&(n.destroy(),a=null===r.settings.selector?m(o):m(o).find(r.settings.selector),g=[],s||(i="data-rel",s=m(this).attr(i)),s||(i="rel",s=m(this).attr(i)),s&&""!==s&&"nofollow"!==s&&(a=a.filter("["+i+'="'+s+'"]')),a.each(function(){var e=null,t=null;m(this).attr("title")&&(e=m(this).attr("title")),m(this).attr("href")&&(t=m(this).attr("href")),g.push({href:t,title:e})}),t=a.index(m(this)),e.preventDefault(),e.stopPropagation(),n.target=m(e.target),void n.init(t));var t,i,s})},n={init:function(e){r.settings.beforeOpen&&r.settings.beforeOpen(),this.target.trigger("swipebox-start"),m.swipebox.isOpen=!0,this.build(),this.openSlide(e),this.openMedia(e),this.preloadMedia(e+1),this.preloadMedia(e-1),r.settings.afterOpen&&r.settings.afterOpen(e)},build:function(){var e,t=this;m("body").append('
\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t\t\t
\t\t\t
'),l&&!0===r.settings.useSVG&&(e=(e=m("#swipebox-close").css("background-image")).replace("png","svg"),m("#swipebox-prev, #swipebox-next, #swipebox-close").css({"background-image":e})),i&&r.settings.removeBarsOnMobile&&m("#swipebox-bottom-bar, #swipebox-top-bar").remove(),m.each(g,function(){m("#swipebox-slider").append('
')}),t.setDim(),t.actions(),s&&t.gesture(),t.keyboard(),t.animBars(),t.resize()},setDim:function(){var e,t,i;"onorientationchange"in p?p.addEventListener("orientationchange",function(){0===p.orientation?(e=f,t=d):90!==p.orientation&&-90!==p.orientation||(e=d,t=f)},!1):(e=p.innerWidth?p.innerWidth:m(p).width(),t=p.innerHeight?p.innerHeight:m(p).height()),i={width:e,height:t},m("#swipebox-overlay").css(i)},resize:function(){var e=this;m(p).on("resize",function(){e.setDim()}).trigger("resize")},supportTransition:function(){for(var e="transition WebkitTransition MozTransition OTransition msTransition KhtmlTransition".split(" "),t=0;tMath.abs(n)?(t=0=g.length)return!1;i=m("#swipebox-slider .slide").eq(e),this.isVideo(t)?(i.html(this.getVideo(t)),r.settings.afterMedia&&r.settings.afterMedia(e)):(i.addClass("slide-loading"),this.loadMedia(t,function(){i.removeClass("slide-loading"),i.html(this),r.settings.afterMedia&&r.settings.afterMedia(e)}))},setTitle:function(e){var t=null;m("#swipebox-title").empty(),g[e]!==b&&(t=g[e].title),t?(m("#swipebox-top-bar").show(),m("#swipebox-title").append(t)):m("#swipebox-top-bar").hide()},isVideo:function(e){if(e){if(e.match(/(youtube\.com|youtube-nocookie\.com)\/watch\?v=([a-zA-Z0-9\-_]+)/)||e.match(/vimeo\.com\/([0-9]*)/)||e.match(/youtu\.be\/([a-zA-Z0-9\-_]+)/))return!0;if(0<=e.toLowerCase().indexOf("swipeboxvideo=1"))return!0}},parseUri:function(e,t){var i=c.createElement("a"),s={};return i.href=decodeURIComponent(e),i.search&&(s=JSON.parse('{"'+i.search.toLowerCase().replace("?","").replace(/&/g,'","').replace(/=/g,'":"')+'"}')),m.isPlainObject(t)&&(s=m.extend(s,t,r.settings.queryStringData)),m.map(s,function(e,t){if(e&&""'):o?(a=n.parseUri(e,{autoplay:r.settings.autoplayVideos?"1":"0",byline:"0",portrait:"0",color:r.settings.vimeoColor}),''):'';return'
'+t+"
"},loadMedia:function(e,t){var i;0===e.trim().indexOf("#")?t.call(m("
",{class:"swipebox-inline-container"}).append(m(e).clone().toggleClass(r.settings.toggleClassOnLoad))):this.isVideo(e)||(i=m("").on("load",function(){t.call(i)})).attr("src",e)},getNext:function(){var e,t=this,i=m("#swipebox-slider .slide").index(m("#swipebox-slider .slide.current"));i+1 https://our-hometown.com/wp-content/plugins/responsive-lightbox/assets/infinitescroll/infinite-scroll.pkgd.min.js?ver=b50ece86b387e455ec428fe30db363c7 /*! * Infinite Scroll PACKAGED v3.0.6 * Automatically add next page * * Licensed GPLv3 for open source use * or Infinite Scroll Commercial License for commercial use * * https://infinite-scroll.com * Copyright 2018 Metafizzy */ !function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,l){function a(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,a){var h=l.data(a,i);if(!h)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var c=h[e];if(!c||"_"==e.charAt(0))return void s(r+" is not a valid method");var u=c.apply(h,n);o=void 0===o?u:o}),void 0!==o?o:t}function h(t,e){t.each(function(t,n){var o=l.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),l.data(n,i,o))})}l=l||e||t.jQuery,l&&(r.prototype.option||(r.prototype.option=function(t){l.isPlainObject(t)&&(this.options=l.extend(!0,this.options,t))}),l.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return a(this,t,e)}return h(this,t),this},n(l))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o=0,this.isPrefilling?(this.log("prefill"),this.loadNextPage()):this.stopPrefill()},s.getPrefillDistance=function(){return this.options.elementScroll?this.scroller.clientHeight-this.scroller.scrollHeight:this.windowHeight-this.element.clientHeight},s.stopPrefill=function(){this.log("stopPrefill"),this.off("append",this.prefill)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/scroll-watch",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;return e.defaults.scrollThreshold=400,e.create.scrollWatch=function(){this.pageScrollHandler=this.onPageScroll.bind(this),this.resizeHandler=this.onResize.bind(this);var t=this.options.scrollThreshold,e=t||0===t;e&&this.enableScrollWatch()},e.destroy.scrollWatch=function(){this.disableScrollWatch()},n.enableScrollWatch=function(){this.isScrollWatching||(this.isScrollWatching=!0,this.updateMeasurements(),this.updateScroller(),this.on("last",this.disableScrollWatch),this.bindScrollWatchEvents(!0))},n.disableScrollWatch=function(){this.isScrollWatching&&(this.bindScrollWatchEvents(!1),delete this.isScrollWatching)},n.bindScrollWatchEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.pageScrollHandler),t[i]("resize",this.resizeHandler)},n.onPageScroll=e.throttle(function(){var t=this.getBottomDistance();t<=this.options.scrollThreshold&&this.dispatchEvent("scrollThreshold")}),n.getBottomDistance=function(){return this.options.elementScroll?this.getElementBottomDistance():this.getWindowBottomDistance()},n.getWindowBottomDistance=function(){var e=this.top+this.element.clientHeight,i=t.pageYOffset+this.windowHeight;return e-i},n.getElementBottomDistance=function(){var t=this.scroller.scrollHeight,e=this.scroller.scrollTop+this.scroller.clientHeight;return t-e},n.onResize=function(){this.updateMeasurements()},i.debounceMethod(e,"onResize",150),e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/history",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){var n=e.prototype;e.defaults.history="replace";var o=document.createElement("a");return e.create.history=function(){if(this.options.history){o.href=this.getAbsolutePath();var t=o.origin||o.protocol+"//"+o.host,e=t==location.origin;return e?void(this.options.append?this.createHistoryAppend():this.createHistoryPageLoad()):void console.error("[InfiniteScroll] cannot set history with different origin: "+o.origin+" on "+location.origin+" . History behavior disabled.")}},n.createHistoryAppend=function(){this.updateMeasurements(),this.updateScroller(),this.scrollPages=[{top:0,path:location.href,title:document.title}],this.scrollPageIndex=0,this.scrollHistoryHandler=this.onScrollHistory.bind(this),this.unloadHandler=this.onUnload.bind(this),this.scroller.addEventListener("scroll",this.scrollHistoryHandler),this.on("append",this.onAppendHistory),this.bindHistoryAppendEvents(!0)},n.bindHistoryAppendEvents=function(e){var i=e?"addEventListener":"removeEventListener";this.scroller[i]("scroll",this.scrollHistoryHandler),t[i]("unload",this.unloadHandler)},n.createHistoryPageLoad=function(){this.on("load",this.onPageLoadHistory)},e.destroy.history=n.destroyHistory=function(){var t=this.options.history&&this.options.append;t&&this.bindHistoryAppendEvents(!1)},n.onAppendHistory=function(t,e,i){if(i&&i.length){var n=i[0],r=this.getElementScrollY(n);o.href=e,this.scrollPages.push({top:r,path:o.href,title:t.title})}},n.getElementScrollY=function(t){return this.options.elementScroll?this.getElementElementScrollY(t):this.getElementWindowScrollY(t)},n.getElementWindowScrollY=function(e){var i=e.getBoundingClientRect();return i.top+t.pageYOffset},n.getElementElementScrollY=function(t){return t.offsetTop-this.top},n.onScrollHistory=function(){for(var t,e,i=this.getScrollViewY(),n=0;n=i)break;t=n,e=o}t!=this.scrollPageIndex&&(this.scrollPageIndex=t,this.setHistory(e.title,e.path))},i.debounceMethod(e,"onScrollHistory",150),n.getScrollViewY=function(){return this.options.elementScroll?this.scroller.scrollTop+this.scroller.clientHeight/2:t.pageYOffset+this.windowHeight/2},n.setHistory=function(t,e){var i=this.options.history,n=i&&history[i+"State"];n&&(history[i+"State"](null,t,e),this.options.historyTitle&&(document.title=t),this.dispatchEvent("history",null,[t,e]))},n.onUnload=function(){var e=this.scrollPageIndex;if(0!==e){var i=this.scrollPages[e],n=t.pageYOffset-i.top+this.top;this.destroyHistory(),scrollTo(0,n)}},n.onPageLoadHistory=function(t,e){this.setHistory(t.title,e)},e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/button",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t,e){this.element=t,this.infScroll=e,this.clickHandler=this.onClick.bind(this),this.element.addEventListener("click",this.clickHandler),e.on("request",this.disable.bind(this)),e.on("load",this.enable.bind(this)),e.on("error",this.hide.bind(this)),e.on("last",this.hide.bind(this))}return e.create.button=function(){var t=i.getQueryElement(this.options.button);if(t)return void(this.button=new n(t,this))},e.destroy.button=function(){this.button&&this.button.destroy()},n.prototype.onClick=function(t){t.preventDefault(),this.infScroll.loadNextPage()},n.prototype.enable=function(){this.element.removeAttribute("disabled")},n.prototype.disable=function(){this.element.disabled="disabled"},n.prototype.hide=function(){this.element.style.display="none"},n.prototype.destroy=function(){this.element.removeEventListener("click",this.clickHandler)},e.Button=n,e}),function(t,e){"function"==typeof define&&define.amd?define("infinite-scroll/js/status",["./core","fizzy-ui-utils/utils"],function(i,n){return e(t,i,n)}):"object"==typeof module&&module.exports?module.exports=e(t,require("./core"),require("fizzy-ui-utils")):e(t,t.InfiniteScroll,t.fizzyUIUtils)}(window,function(t,e,i){function n(t){r(t,"none")}function o(t){r(t,"block")}function r(t,e){t&&(t.style.display=e)}var s=e.prototype;return e.create.status=function(){var t=i.getQueryElement(this.options.status);t&&(this.statusElement=t,this.statusEventElements={request:t.querySelector(".infinite-scroll-request"),error:t.querySelector(".infinite-scroll-error"),last:t.querySelector(".infinite-scroll-last")},this.on("request",this.showRequestStatus),this.on("error",this.showErrorStatus),this.on("last",this.showLastStatus),this.bindHideStatus("on"))},s.bindHideStatus=function(t){var e=this.options.append?"append":"load";this[t](e,this.hideAllStatus)},s.showRequestStatus=function(){this.showStatus("request")},s.showErrorStatus=function(){this.showStatus("error")},s.showLastStatus=function(){this.showStatus("last"),this.bindHideStatus("off")},s.showStatus=function(t){o(this.statusElement),this.hideStatusEventElements();var e=this.statusEventElements[t];o(e)},s.hideAllStatus=function(){n(this.statusElement),this.hideStatusEventElements()},s.hideStatusEventElements=function(){for(var t in this.statusEventElements){var e=this.statusEventElements[t];n(e)}},e}),function(t,e){"function"==typeof define&&define.amd?define(["infinite-scroll/js/core","infinite-scroll/js/page-load","infinite-scroll/js/scroll-watch","infinite-scroll/js/history","infinite-scroll/js/button","infinite-scroll/js/status"],e):"object"==typeof module&&module.exports&&(module.exports=e(require("./core"),require("./page-load"),require("./scroll-watch"),require("./history"),require("./button"),require("./status")))}(window,function(t){return t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("imagesloaded/imagesloaded",["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?h.call(t):[t]}function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);var s=t;return"string"==typeof t&&(s=document.querySelectorAll(t)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof e?r=e:i(this.options,e),r&&this.on("always",r),this.getImages(),l&&(this.jqDeferred=new l.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||t))}function r(t){this.img=t}function s(t,e){this.url=t,this.element=e,this.img=new Image}var l=t.jQuery,a=t.console,h=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&c[e]){for(var i=t.querySelectorAll("img"),n=0;n