(()=>{"use strict";var e={669:e=>{e.exports=jQuery}},t={},r=function r(o){var n=t[o];if(void 0!==n)return n.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,r),i.exports}(669);function o(e){e&&document.body.insertAdjacentHTML("beforeend",e)}function n(e,t){var r=e.querySelectorAll(".brxe-".concat(t,":not(.brx-popup)"));return r[r.length-1]||null}var i={};function a(e,t,i,a){if("bricks-query-loop"===e){var s=window.JetSmartFilters.filterGroups[e+"/"+t];s&&s.$provider.length&&function(e){var t=e.nodes,i=e.providerSelector,a=e.elementId,s=e.pagination,d=e.html,u=e.styles,l=e.popups,p=e.updated_query,c=e.append,w=e.autoscroll,v={html:d,styles:u,popups:l,updated_query:p};c?function(e,t,r){var i=window.bricksData.queryLoopInstances[e].resultsContainer,a=n(i,e),s=t.html,d=t.styles,u=t.popups;a.insertAdjacentHTML("afterend",s),o(d),o(u),window.bricksData.queryLoopInstances[e].page=r.page,bricksUtils.hideOrShowLoadMoreButtons(e);var l=n(i,e);document.dispatchEvent(new CustomEvent("bricks/ajax/load_page/completed",{detail:{queryTrailElement:l,queryId:e}}))}(a,v,s):(bricksDisplayQueryResult(a,v),bricksInitQueryLoopInstances(),function(e){for(var t,r=document.createTreeWalker(document.body,NodeFilter.SHOW_COMMENT,{acceptNode:function(t){return t.nodeValue.trim()==="brx-loop-start-"+e?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),o=[];t=r.nextNode();)o.push(t);o.length>=2&&o[1].remove()}(a));var m='.brx-popup[data-popup-loop="'.concat(a,'"]');!function(e){var t=r(e);window.JetPlugins&&window.JetPlugins.init(t)}("".concat(i,", ").concat(m)),function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!1!==t){var r=e[0];if(r){var o="number"==typeof t?t:0,n=r.getBoundingClientRect().top+window.pageYOffset;window.scrollTo({top:n-o,behavior:"smooth"})}}}(t,w)}({nodes:s.$provider,providerSelector:s.providerSelector,elementId:i.element_id,pagination:i.pagination,html:i.html,styles:i.styles,popups:i.popups,updated_query:i.updated_query,append:a.append,autoscroll:a.autoscroll})}}document.addEventListener("DOMContentLoaded",(function(){window.JetSmartFilters&&(document.addEventListener("jet-smart-filters/inited",(function(){window.JetSmartFilters.events.subscribe("ajaxFilters/start-loading",(function(e,t){"bricks-query-loop"===e&&i[t]&&delete i[t]}))})),window.JetSmartFilters.events.subscribe("ajaxFilters/updated",a)),function(){if(window.bricksData&&window.JetSmartFilters&&window.JetSmartFilterSettings&&!window.bricksData.useQueryFilter){var e=window.JetSmartFilterSettings.settings;null!=e&&e["bricks-query-loop"]&&Object.keys(e["bricks-query-loop"]).length&&(window.bricksData.useQueryFilter="1")}}()}))})();