PageSourceSearch

https://www.furnster.de/theme/c9883e6c8cac7fc81500eb19192f199b/js/…mobile-filter-apply-button.plugin.46f656.js

js furnster.de collected 2026-10-07 19:34:41 UTC 4,878 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[34321],{105(t,e,s){s.d(e,{A:()=>l});var a=s(308);let i="js-offcanvas-singleton";class n{constructor(){this.$emitter=new a.A}open(t,e,s,a,i,n,o){this._removeExistingOffCanvas();let l=this._createOffCanvas(s,n,o,a);this.setContent(t,i),this._openOffcanvas(l,e)}setContent(t,e){let s=this.getOffCanvas();s[0]&&(s[0].innerHTML=t,this._registerEvents(e),this._setAriaAttrs())}setAdditionalClassName(t){this.getOffCanvas()[0].classList.add(t)}getOffCanvas(){return document.querySelectorAll(`.${i}`)}close(t){let e=this.getOffCanvas();e.forEach(t=>{bootstrap.Offcanvas.getInstance(t).hide()}),setTimeout(()=>{this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:e})},t)}goBackInHistory(){window.history.back()}exists(){return this.getOffCanvas().length>0}_openOffcanvas(t,e){window.focusHandler.saveFocusState("offcanvas"),n.bsOffcanvas.show(),window.history.pushState("offcanvas-open",""),"function"==typeof e&&e()}_registerEvents(t){let e=this.getOffCanvas();e.forEach(s=>{let a=()=>{setTimeout(()=>{s.remove(),window.focusHandler.resumeFocusState("offcanvas"),this.$emitter.publish("onCloseOffcanvas",{offCanvasContent:e})},t),s.removeEventListener("hide.bs.offcanvas",a)};s.addEventListener("hide.bs.offcanvas",a)}),window.addEventListener("popstate",this.close.bind(this,t),{once:!0}),document.querySelectorAll(".js-offcanvas-close").forEach(e=>{e.addEventListener("click",this.close.bind(this,t))})}_setAriaAttrs(){let t=this.getOffCanvas()[0],e="off-canvas-headline",s=t.querySelector(`[data-id="${e}"]`);s&&!t.hasAttribute("aria-labelledby")&&(s.setAttribute("id",e),t.setAttribute("aria-labelledby",e))}_removeExistingOffCanvas(){this.getOffCanvas().forEach(t=>{let e=bootstrap.Offcanvas.getInstance(t);e&&"function"==typeof e.dispose&&e.dispose(),t.remove()}),n.bsOffcanvas=null}_getPositionClass(t){return"left"===t?"offcanvas-start":"right"===t?"offcanvas-end":`offcanvas-${t}`}_createOffCanvas(t,e,s,a){let o=document.createElement("div");if(o.classList.add("offcanvas",i),o.classList.add(this._getPositionClass(t)),o.setAttribute("tabindex","-1"),!0===e&&o.classList.add("is-fullwidth"),s){let t=typeof s;if("string"===t)o.classList.add(s);else if(Array.isArray(s))s.forEach(t=>{o.classList.add(t)});else throw Error(`The type "${t}" is not supported. Please pass an array or a string.`)}return document.body.appendChild(o),n.bsOffcanvas=new bootstrap.Offcanvas(o,{backdrop:!1!==a||"static"}),o}}let o=Object.freeze(new n);class l{static open(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"left",a=!(arguments.length>3)||void 0===arguments[3]||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"";o.open(t,e,s,a,i,n,l)}static setContent(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:350;o.setContent(t,e,s)}static setAdditionalClassName(t){o.setAdditionalClassName(t)}static close(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:350;o.close(t)}static exists(){return o.exists()}static getOffCanvas(){return o.getOffCanvas()}static REMOVE_OFF_CANVAS_DELAY(){return 350}}},321(t,e,s){s.r(e),s.d(e,{default:()=>n});var a=s(220),i=s(105);class n extends a.A{static #t=this.options={buttonSelector:'[data-filter-apply-button="true"]',trackedInputSelectors:"input, select, textarea"};init(){var t;this._button=this.el.querySelector(this.options.buttonSelector),this._button&&(t=this.el)&&t.closest(".offcanvas.offcanvas-filter")&&window.matchMedia("(max-width: 991.98px)").matches&&(this._initialSnapshot=this._serializeFilterValues(),this._registerEvents(),this._updateButtonState())}_registerEvents(){this.el.addEventListener("input",this._onFilterInteraction.bind(this),!0),this.el.addEventListener("change",this._onFilterInteraction.bind(this),!0),this.el.addEventListener("disisd:mobile-filter-dirty",this._onFilterInteraction.bind(this)),this._button.addEventListener("click",this._onApplyClick.bind(this))}_onFilterInteraction(){this._updateButtonState()}_updateButtonState(){let t=this._serializeFilterValues()!==this._initialSnapshot;this._button.disabled=!t,this._button.classList.toggle("is-dirty",t)}_serializeFilterValues(){return Array.from(this.el.querySelectorAll(this.options.trackedInputSelectors)).filter(t=>t.name||t.id).map(t=>{let e=t.name||t.id;return"checkbox"===t.type||"radio"===t.type?`${e}:${t.value}:${t.checked?"1":"0"}`:`${e}:${t.value}`}).sort().join("|")}_onApplyClick(t){t.preventDefault();let e=this.el.closest(".offcanvas.offcanvas-filter"),s=e?e.querySelector(".js-offcanvas-close"):null;if(s){s.click();return}i.A.close(i.A.REMOVE_OFF_CANVAS_DELAY())}}}}]);

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.