PageSourceSearch

https://www.formblitz.de/theme/4bec893ce46d9d52ce82d4ed03a31ab0/js…refront.listing-pagination.plugin.767b38.js

js formblitz.de collected 2026-09-28 06:09:30 UTC 2,768 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[73106],{3106(t,e,i){i.r(e),i.d(e,{default:()=>o});var s=i(3701),n=i(4156),a=i.n(n);class o extends s.A{static #t=this.options=a()(s.A.options,{page:1,paginationItemSelector:".pagination .page-link",paginationNavSelector:".pagination-nav"});init(){this._initButtons(),this.tempValue=null,this._pageChanged=!1}_initButtons(){this.buttons=this.el.querySelectorAll(this.options.paginationItemSelector),this.buttons&&this._registerButtonEvents()}_registerButtonEvents(){this.buttons.forEach(t=>{t.addEventListener("click",this.onChangePage.bind(this))})}onChangePage(t){t.preventDefault(),this.tempValue=t.currentTarget.dataset.page,this._saveFocusState(t.currentTarget),this._pageChanged=!0,this.listing.changeListing(),this._updateCanonicalUrl(this.tempValue),this.tempValue=null}_saveFocusState(t){let e=t.closest(this.options.paginationNavSelector).dataset.paginationLocation;this.listing.options.scrollTopListingWrapper&&(e="top"),window.focusHandler.saveFocusState("listing-pagination",`[data-pagination-location="${e}"] [data-focus-id="${t.dataset.focusId}"]`)}_resumeFocusState(){window.focusHandler.resumeFocusState("listing-pagination",{preventScroll:!0})}reset(){}resetAll(){}getValues(){return null!==this.tempValue?{p:this.tempValue}:{p:1}}afterContentChange(){this._initButtons(),this.buttons&&this._pageChanged&&this._resumeFocusState(),this._pageChanged=!1}getLabels(){return[]}setValuesFromUrl(t){let e=!1;return this.tempValue=1,t.p&&parseInt(t.p)!==parseInt(this.tempValue)&&(this.tempValue=parseInt(t.p),e=!0),e}_updateCanonicalUrl(t){let e=document.querySelector('link[rel="canonical"]');if(e?.href){let i=new URL(e.href);i.searchParams.set("p",t),e.href=i.href}}}},3701(t,e,i){i.d(e,{A:()=>n});var s=i(4335);class n extends s.A{static #t=this.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"};_init(){super._init(),this._validateMethods();let t=document.querySelector(this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(t,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let t=this.el.querySelector(this.options.dropdownSelector);t&&t.addEventListener("click",t=>{t.stopPropagation()})}_validateMethods(){if("function"!=typeof this.getValues)throw Error(`[${this._pluginName}] Needs the method "getValues"'`);if("function"!=typeof this.getLabels)throw Error(`[${this._pluginName}] Needs the method "getLabels"'`);if("function"!=typeof this.reset)throw Error(`[${this._pluginName}] Needs the method "reset"'`);if("function"!=typeof this.resetAll)throw Error(`[${this._pluginName}] Needs the method "resetAll"'`)}}}}]);

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.