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