PageSourceSearch

https://soulspring.no/wp-content/themes/theme/dist/js/filter-app.min.js?v=6abf941a3f54c&ver=7.1.2

js soulspring.no collected 2026-10-02 11:23:20 UTC 25,538 bytes, 2 lines download raw bytes

vendor: 4,872 bytes, lines 1-2
1/*! For license information please see filter-app.min.js.LICENSE.txt */
2(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";t=function(){return n};var r,n={},a=Object.prototype,o=a.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},l="function"==typeof Symbol?Symbol:{},s=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(r){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),l=new A(n||[]);return i(o,"_invoke",{value:j(e,r,l)}),o}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=d;var p="suspendedStart",y="suspendedYield",v="executing",m="completed",g={};function b(){}function x(){}function w(){}var k={};f(k,s,(function(){return this}));var F=Object.getPrototypeOf,L=F&&F(F(N([])));L&&L!==a&&o.call(L,s)&&(k=L);var E=w.prototype=b.prototype=Object.create(k);function S(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function T(t,r){function n(a,i,l,s){var c=h(t[a],t,i);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):r.resolve(f).then((function(e){u.value=e,l(u)}),(function(e){return n("throw",e,l,s)}))}s(c.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new r((function(r,a){n(e,t,r,a)}))}return a=a?a.then(o,o):o()}})}function j(e,t,n){var a=p;return function(o,i){if(a===v)throw new Error("Generator is already running");if(a===m){if("throw"===o)throw i;return{value:r,done:!0}}for(n.method=o,n.arg=i;;){var l=n.delegate;if(l){var s=C(l,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===p)throw a=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=v;var c=h(e,t,n);if("normal"===c.type){if(a=n.done?m:y,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(a=m,n.method="throw",n.arg=c.arg)}}}function C(e,t){var n=t.method,a=e.iterator[n];if(a===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=r,C(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var o=h(a,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,g;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,g):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function N(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,i=function e(){for(;++a<t.length;)if(o.call(t,a))return e.value=t[a],e.done=!1,e;return e.value=r,e.done=!0,e};return i.next=i}}throw new TypeError(e(t)+" is not iterable")}return x.prototype=w,i(E,"constructor",{value:w,configurable:!0}),i(w,"constructor",{value:x,configurable:!0}),x.displayName=f(w,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,f(e,u,"GeneratorFunction")),e.prototype=Object.create(E),e},n.awrap=function(e){return{__await:e}},S(T.prototype),f(T.prototype,c,(function(){return this})),n.AsyncIterator=T,n.async=function(e,t,r,a,o){void 0===o&&(o=Promise);var i=new T(d(e,t,r,a),o);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},S(E),f(E,u,"Generator"),f(E,s,(function(){return this})),f(E,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=N,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEac
vendor: 4,202 bytes, line 2
2h(q),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,a){return l.type="throw",l.arg=e,t.next=n,a&&(t.method="next",t.arg=r),!!a}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),q(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;q(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),g}},n}function r(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return l=e.done,e},e:function(e){s=!0,i=e},f:function(){try{l||null==r.return||r.return()}finally{if(s)throw i}}}}function n(e,t,r,n,a,o,i){try{var l=e[o](i),s=l.value}catch(e){return void r(e)}l.done?t(s):Promise.resolve(s).then(n,a)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o,i,l=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(l.push(n.value),l.length!==t);s=!0);}catch(e){c=!0,a=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw a}}return l}}(e,t)||o(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(t){var r=function(t,r){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,r||"default");if("object"!=e(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
2(t,"string");return"symbol"==e(r)?r:String(r)}var c;c=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.filters={},this.overlay=document.querySelector(".casino-filters-overlay"),this.modal=document.querySelector(".casino-filters-modal"),this.footer=document.querySelector(".casino-filters-footer"),this.init()}var o,i,s,c,u;return o=e,i=[{key:"init",value:function(){this.bindEvents(),this.hideFooter()}},{key:"bindEvents",value:function(){var e=this;document.querySelectorAll(".casino-filters-open-btn").forEach((function(t){t.addEventListener("click",(function(){return e.openFilters()}))})),document.addEventListener("click",(function(t){if((t.target.matches(".casino-filters-open-btn")||t.target.closest(".casino-filters-open-btn"))&&e.openFilters(),t.target.matches(".filter-tag-remove")||t.target.closest(".filter-tag-remove")){t.preventDefault();var r=t.target.closest(".filter-tag");if(r){var n=r.dataset.parameter,a=r.dataset.value;e.removeFilterFromTag(n,a)}}})),document.addEventListener("click",(function(t){if(t.target.matches(".filter-tag-remove")||t.target.closest(".filter-tag-remove")){t.preventDefault();var r=t.target.closest(".filter-tag");if(r){var n=r.dataset.parameter,a=r.dataset.value;return void e.removeFilterFromTag(n,a)}var o=t.target.closest(".filter-tag-value-item");if(o){var i=o.closest(".filter-tag-group");if(i){var l=i.dataset.parameter,s=o.dataset.value;e.removeFilterFromTag(l,s)}}}}));var t=document.querySelector(".casino-filters-close");t&&t.addEventListener("click",(function(){return e.closeFilters()})),this.overlay&&this.overlay.addEventListener("click",(function(t){t.target===e.overlay&&e.closeFilters()})),document.querySelectorAll(".casino-filter-header").forEach((function(t){t.addEventListener("click",(function(){return e.toggleFilterGroup(t)}))})),document.addEventListener("change",(function(t){t.target.matches("[data-parameter]")&&e.handleFilterChange(t.target)})),document.addEventListener("input",(function(t){t.target.matches('[data-type="number"]')&&e.handleFilterChange(t.target)}));var r=document.getElementById("casino-filters-clear"),n=document.getElementById("casino-filters-apply");r&&r.addEventListener("click",(function(){return e.clearFilters()})),n&&n.addEventListener("click",(function(){return e.applyFilters()}))}},{key:"openFilters",value:function(){this.overlay&&(this.overlay.style.display="flex",document.body.style.overflow="hidden")}},{key:"closeFilters",value:function(){this.overlay&&(this.overlay.style.display="none",document.body.style.overflow="")}},{key:"toggleFilterGroup",value:function(e){var t=e.nextElementSibling,r=e.querySelector(".casino-filter-toggle svg");if(t){var n="none"!==t.style.display;t.style.display=n?"none":"block",r&&(r.style.transform=n?"rotate(-90deg)":"rotate(0deg)")}}},{key:"handleFilterChange",value:function(e){var t=e.dataset.parameter,r=e.dataset.type;if(t){switch(r){case"number":this.handleNumberFilter(t,e);break;case"yes_no":case"select":this.handleSelectFilter(t,e);break;case"checkbox":this.handleCheckboxFilter(t,e)}this.updateFooterVisibility(),this.logCurrentFilters()}}},{key:"handleNumberFilter",value:function(e,t){var r=t.value.trim();r&&""!==r?this.filters[e]={type:"number",value:parseInt(r),label:this.getParameterLabel(e)}:delete this.filters[e]}},{key:"handleSelectFilter",value:function(e,t){var r=t.value;""!==r?this.filters[e]={type:"select",value:r,label:this.getParameterLabel(e),valueLabel:this.getValueLabel(e,r)}:delete this.filters[e]}},{key:"handleCheckboxFilter",value:function(e,t){var r=this,n=document.querySelectorAll('input[data-parameter="'.concat(e,'"][type="checkbox"]:checked')),a=Array.from(n).map((function(e){return e.value}));a.length>0?this.filters[e]={type:"checkbox",values:a,label:this.getParameterLabel(e),valueLabels:a.map((function(t){return r.getValueLabel(e,t)}))}:delete this.filters[e]}},{key:"getParameterLabel",value:function(e){var t=document.querySelector('[data-parameter="'.concat(e,'"]'));if(t){var r=t.closest(".casino-filter-group");if(r){var n=r.querySelector(".casino-filter-name");if(n)return n.textContent.trim()}}return e}},{key:"getValueLabel",value:function(e,t){if("yes"===t)return"Yes";if("no"===t)return"No";var r=document.querySelector('input[data-parameter="'.concat(e,'"][value="').concat(t,'"] + .casino-filter-checkbox-mark + .casino-filter-checkbox-label'));if(r)return r.textContent.trim();var n=document.querySelector('input[data-parameter="'.concat(e,'"][value="').concat(t,'"]'));if(n){var a=n.closest("label");if(a){var o=a.querySelector(".casino-filter-checkbox-label");if(o)return o.textContent.trim()}}var i=document.querySelector('select[data-parameter="'.concat(e,'"] option[value="').concat(t,'"]'));return i?i.textContent.trim():t}},{key:"updateFilterTags",value:function(){var e=this;document.querySelectorAll(".ajax-filter-items").forEach((function(t){t.innerHTML="",Object.entries(e.filters).forEac
2h((function(r){var n=a(r,2),o=n[0],i=n[1];if("checkbox"===i.type){var l=e.createGroupFilterTag(o,i);t.appendChild(l)}else{var s="number"===i.type?i.value:i.valueLabel||i.value,c=e.createSingleFilterTag(o,i.value,i.label,s);t.appendChild(c)}}))}))}},{key:"createGroupFilterTag",value:function(e,t){var r=document.createElement("div");r.className="filter-tag-group",r.dataset.parameter=e;var n=document.createElement("div");n.className="filter-tag-values";var a=document.createElement("span");return a.className="filter-tag-group-label",a.textContent=t.label+":",r.appendChild(a),t.values.forEach((function(e,r){var a=document.createElement("span");a.className="filter-tag-value-item",a.dataset.value=e,a.innerHTML='\n                    <span class="filter-tag-value-text">'.concat(t.valueLabels[r],'</span>\n                    <button type="button" class="filter-tag-remove" aria-label="Remove filter">\n                        <svg width="12" height="12" viewBox="0 0 24 24" fill="none">\n                            <path d="M18 6L6 18M6 6l12 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>\n                        </svg>\n                    </button>\n                '),n.appendChild(a)})),r.appendChild(n),r.style.cssText="\n                display: inline-flex;\n                align-items: center;\n                background: #f8f9fa;\n                border: 1px solid #e9ecef;\n                border-radius: 25px;\n                padding: 8px 12px;\n                margin: 4px;\n                font-size: 13px;\n                gap: 8px;\n                flex-wrap: wrap;\n            ",a.style.cssText="\n                font-weight: 600;\n                color: #495057;\n                white-space: nowrap;\n            ",n.style.cssText="\n                display: flex;\n                gap: 6px;\n                flex-wrap: wrap;\n                align-items: center;\n            ",r.querySelectorAll(".filter-tag-value-item").forEach((function(e){e.style.cssText="\n                    display: inline-flex;\n                    align-items: center;\n                    background: #e9ecef;\n                    border-radius: 15px;\n                    padding: 4px 8px;\n                    gap: 4px;\n                    font-size: 13px;\n                ",e.querySelector(".filter-tag-remove").style.cssText="\n                    background: none;\n                    border: none;\n                    cursor: pointer;\n                    padding: 2px;\n                    border-radius: 50%;\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    opacity: 0.7;\n                    transition: opacity 0.2s;\n                "})),r}},{key:"createSingleFilterTag",value:function(e,t,r,n){var a=document.createElement("div");return a.className="filter-tag",a.dataset.parameter=e,a.dataset.value=t,a.innerHTML='\n                <span class="filter-tag-content">\n                    <span class="filter-tag-parameter">'.concat(r,':</span>\n                    <span class="filter-tag-value">').concat(n,'</span>\n                </span>\n                <button type="button" class="filter-tag-remove" aria-label="Remove filter">\n                    <svg width="14" height="14" viewBox="0 0 24 24" fill="none">\n                        <path d="M18 6L6 18M6 6l12 12" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>\n                    </svg>\n                </button>\n            '),a.style.cssText="\n                display: inline-flex;\n                align-items: center;\n                background: #f0f0f0;\n                border: 1px solid #ddd;\n                border-radius: 20px;\n                padding: 6px 12px;\n                margin: 4px;\n                font-size: 13px;\n                gap: 8px;\n            ",a.querySelector(".filter-tag-remove").style.cssText="\n                background: none;\n                border: none;\n                cursor: pointer;\n                padding: 2px;\n                border-radius: 50%;\n                display: flex;\n                align-items: center;\n                justify-content: center;\n                opacity: 0.7;\n                transition: opacity 0.2s;\n            ",a}},{key:"removeFilterFromTag",value:function(e,t){if(this.filters[e]){var r=this.filters[e];if("checkbox"===r.type){var n=r.values.indexOf(t);n>-1&&(r.values.splice(n,1),r.valueLabels.splice(n,1),0===r.values.length&&delete this.filters[e])}else delete this.filters[e];this.updateFormFields(),this.updateFooterVisibility(),Object.keys(this.filters).length>0?this.applyFilters():(this.updateFilterTags(),this.hideAjaxContainer())}}},{key:"updateFormFields",value:function(){var e=this;
2Object.keys(this.filters).forEach((function(t){var r=e.filters[t];if("number"===r.type){var n=document.querySelector('input[data-parameter="'.concat(t,'"][data-type="number"]'));n&&(n.value=r.value)}else if("select"===r.type||"yes_no"===r.type){var a=document.querySelector('select[data-parameter="'.concat(t,'"]'));a&&(a.value=r.value)}else"checkbox"===r.type&&document.querySelectorAll('input[data-parameter="'.concat(t,'"][type="checkbox"]')).forEach((function(e){e.checked=r.values.includes(e.value)}))})),document.querySelectorAll("[data-parameter]").forEach((function(t){var r=t.dataset.parameter;e.filters[r]||("checkbox"===t.type?t.checked=!1:"SELECT"===t.tagName?t.selectedIndex=0:"number"===t.type&&(t.value=""))}))}},{key:"updateFooterVisibility",value:function(){Object.keys(this.filters).length>0?this.showFooter():this.hideFooter()}},{key:"showFooter",value:function(){this.footer&&(this.footer.style.display="flex")}},{key:"hideFooter",value:function(){this.footer&&(this.footer.style.display="none")}},{key:"clearFilters",value:function(){this.filters={},this.updateFormFields(),this.updateFilterTags(),this.hideAjaxContainer(),this.hideFooter()}},{key:"applyFilters",value:(c=t().mark((function e(){var n,o,i,l,s,c,u,f;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==Object.keys(this.filters).length){e.next=2;break}return e.abrupt("return");case 2:if(this.setLoadingState(!0),(n=new FormData).append("action","filter_app"),Object.entries(this.filters).forEach((function(e){var t=a(e,2),r=t[0],o=t[1];"checkbox"===o.type?o.values.forEach((function(e){n.append("filters[".concat(r,"][]"),e)})):n.append("filters[".concat(r,"]"),o.value)})),this.overlay){o=r(this.overlay.attributes);try{for(o.s();!(i=o.n()).done;)(l=i.value).name.startsWith("data-")&&(s=l.name.replace("data-",""),n.append(s,l.value))}catch(e){o.e(e)}finally{o.f()}}return e.prev=7,e.next=10,fetch(window.ajaxurl||"/wp-admin/admin-ajax.php",{method:"POST",body:n});case 10:return c=e.sent,e.next=13,c.text();case 13:u=e.sent,(f=this.findTargetContainer())?(this.isEmptyResult(u)?f.innerHTML=this.createNoResultsMessage():f.innerHTML=u,this.showAjaxContainer(),this.closeFilters(),this.scrollToResults(f),this.updateFilterTags()):console.error("❌ Target container not found"),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(7),console.error("❌ Error applying filters:",e.t0);case 21:return e.prev=21,this.setLoadingState(!1),e.finish(21);case 24:case"end":return e.stop()}}),e,this,[[7,18,21,24]])})),u=function(){var e=this,t=arguments;return new Promise((function(r,a){var o=c.apply(e,t);function i(e){n(o,r,a,i,l,"next",e)}function l(e){n(o,r,a,i,l,"throw",e)}i(void 0)}))},function(){return u.apply(this,arguments)})}
2,{key:"setLoadingState",value:function(e){document.querySelectorAll(".casino-filters-open-btn").forEach((function(t){e?(t.classList.add("casino-filters-open-btn-loading"),t.disabled=!0):(t.classList.remove("casino-filters-open-btn-loading"),t.disabled=!1)}))}},{key:"scrollToResults",value:function(e){setTimeout((function(){if(e){var t=e.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:t,behavior:"smooth"})}}),300)}},{key:"findTargetContainer",value:function(){if(this.overlay){var e=this.overlay.closest(".offers-table-wrapper");if(e){var t=e.querySelector(".insert-ajax-offers");if(t)return t}}return document.querySelector(".offers-table-wrapper .insert-ajax-offers")}},{key:"findHideContainer",value:function(){if(this.overlay){var e=this.overlay.closest(".offers-table-wrapper");if(e){var t=e.querySelector(".hide-ajax-offers");if(t)return t}}return document.querySelector(".offers-table-wrapper .hide-ajax-offers")}},{key:"showAjaxContainer",value:function(){var e=this.findTargetContainer(),t=this.findHideContainer();e&&(e.style.display="block"),t&&(t.style.display="none")}},{key:"hideAjaxContainer",value:function(){var e=this.findTargetContainer(),t=this.findHideContainer();e&&(e.innerHTML="",e.style.display="none"),t&&(t.style.display="block")}},{key:"resetAllFilters",value:function(){this.clearFilters()}},{key:"isEmptyResult",value:function(e){var t=e.trim();return""===t||"[]"===t||"{}"===t||t.includes("No results found")||t.includes("Нет результатов")||t.includes("empty")||t.length<50}},{key:"createNoResultsMessage",value:function(){return'\n                <div class="no-results-message" style="text-align: center; padding: 40px 20px; background: #f9f9f9; border-radius: 8px; margin: 20px 0;">\n                    <div style="margin-bottom: 20px;">\n                        <svg width="64" height="64" viewBox="0 0 24 24" fill="none" style="opacity: 0.3;">\n                            <circle cx="11" cy="11" r="8" stroke="currentColor" stroke-width="2"/>\n                            <path d="M21 21l-4.35-4.35" stroke="currentColor" stroke-width="2"/>\n                            <line x1="9" y1="9" x2="13" y2="13" stroke="currentColor" stroke-width="2"/>\n                            <line x1="13" y1="9" x2="9" y2="13" stroke="currentColor" stroke-width="2"/>\n                        </svg>\n                    </div>\n                    <h3 style="margin-bottom: 10px; color: #666;">'.concat(this.getNoResultsTitle(),'</h3>\n                    <p style="margin-bottom: 25px; color: #888; max-width: 400px; margin-left: auto; margin-right: auto;">\n                        ').concat(this.getNoResultsDescription(),'\n                    </p>\n                    <button type="button" class="reset-all-filters-btn" onclick="window.casinoFilters.resetAllFilters()" \n                            style="background:#3a3a3a; color: white; border: none; padding: 12px 24px; border-radius: 6px; cursor: pointer; font-size: 16px;">\n                        ').concat(this.getResetButtonText(),"\n                    </button>\n                </div>\n            ")}},{key:"getNoResultsTitle",value:function(){return this.overlay&&this.overlay.dataset.noResultTitle?this.overlay.dataset.noResultTitle:"No results found"}},{key:"getNoResultsDescription",value:function(){return this.overlay&&this.overlay.dataset.noResultText?this.overlay.dataset.noResultText:"Try adjusting your filter criteria or reset all filters to see all available options."}},{key:"getResetButtonText",value:function(){return this.overlay&&this.overlay.dataset.noResultBtnText?this.overlay.dataset.noResultBtnText:"Reset All Filters"}},{key:"logCurrentFilters",value:function(){Object.keys(this.filters).length}}],i&&l(o.prototype,i),s&&l(o,s),Object.defineProperty(o,"prototype",{writable:!1}),e}(),document.addEventListener("DOMContentLoaded",(function(){window.casinoFilters=new c}))})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.