PageSourceSearch

https://www.musik-produktiv.de/theme/b7624d5e510b4a1e68b5001e1a25c…/session-localstores/session-localstores.js

js musik-produktiv.de collected 2026-09-24 21:35:09 UTC 12,485 bytes, 1 lines download raw bytes

1(()=>{"use strict";var t={857:t=>{var e=function(t){var e;return!!t&&"object"==typeof t&&"[object RegExp]"!==(e=Object.prototype.toString.call(t))&&"[object Date]"!==e&&t.$$typeof!==i},i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(t,e){return!1!==e.clone&&e.isMergeableObject(t)?l(Array.isArray(t)?[]:{},t,e):t}function s(t,e,i){return t.concat(e).map(function(t){return r(t,i)})}function n(t){return Object.keys(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[])}function o(t,e){try{return e in t}catch(t){return!1}}function l(t,i,a){(a=a||{}).arrayMerge=a.arrayMerge||s,a.isMergeableObject=a.isMergeableObject||e,a.cloneUnlessOtherwiseSpecified=r;var c,h,u=Array.isArray(i);return u!==Array.isArray(t)?r(i,a):u?a.arrayMerge(t,i,a):(h={},(c=a).isMergeableObject(t)&&n(t).forEach(function(e){h[e]=r(t[e],c)}),n(i).forEach(function(e){(!o(t,e)||Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))&&(o(t,e)&&c.isMergeableObject(i[e])?h[e]=(function(t,e){if(!e.customMerge)return l;var i=e.customMerge(t);return"function"==typeof i?i:l})(e,c)(t[e],i[e],c):h[e]=r(i[e],c))}),h)}l.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce(function(t,i){return l(t,i,e)},{})},t.exports=l}},e={};function i(r){var s=e[r];if(void 0!==s)return s.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,i),n.exports}(()=>{i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e}})(),(()=>{i.d=(t,e)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}})(),(()=>{i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{class t{static ucFirst(t){return t.charAt(0).toUpperCase()+t.slice(1)}static lcFirst(t){return t.charAt(0).toLowerCase()+t.slice(1)}static toDashCase(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()}static toLowerCamelCase(e,i){let r=t.toUpperCamelCase(e,i);return t.lcFirst(r)}static toUpperCamelCase(e,i){return i?e.split(i).map(e=>t.ucFirst(e.toLowerCase())).join(""):t.ucFirst(e.toLowerCase())}static parsePrimitive(t){try{return/^\d+(.|,)\d+$/.test(t)&&(t=t.replace(",",".")),JSON.parse(t)}catch(e){return t.toString()}}}class e{static isNode(t){return"object"==typeof t&&null!==t&&(t===document||t===window||t instanceof Node)}static hasAttribute(t,i){if(!e.isNode(t))throw Error("The element must be a valid HTML Node!");return"function"==typeof t.hasAttribute&&t.hasAttribute(i)}static getAttribute(t,i){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!1===e.hasAttribute(t,i))throw Error('The required property "'.concat(i,'" does not exist!'));if("function"!=typeof t.getAttribute){if(r)throw Error("This node doesn't support the getAttribute function!");return}return t.getAttribute(i)}static getDataAttribute(i,r){let s=!(arguments.length>2)||void 0===arguments[2]||arguments[2],n=r.replace(/^data(|-)/,""),o=t.toLowerCamelCase(n,"-");if(!e.isNode(i)){if(s)throw Error("The passed node is not a valid HTML Node!");return}if(void 0===i.dataset){if(s)throw Error("This node doesn't support the dataset attribute!");return}let l=i.dataset[o];if(void 0===l){if(s)throw Error('The required data attribute "'.concat(r,'" does not exist on ').concat(i,"!"));return l}return t.parsePrimitive(l)}static querySelector(t,i){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!e.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelector(i)||!1;if(r&&!1===s)throw Error('The required element "'.concat(i,'" does not exist in parent node!'));return s}static querySelectorAll(t,i){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(r&&!e.isNode(t))throw Error("The parent node is not a valid HTML Node!");let s=t.querySelectorAll(i);if(0===s.length&&(s=!1),r&&!1===s)throw Error('At least one item of "'.concat(i,'" must exist in parent node!'));return s}static getFocusableElements(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return t.querySelectorAll('\n            input:not([tabindex^="-"]):not([disabled]):not([type="hidden"]),\n            select:not([tabindex^="-"]):not([disabled]),\n            textarea:not([tabindex^="-"]):not([disabled]),\n            button:not([tabindex^="-"]):not([disabled]),\n            a[href]:not([tabindex^="-"]):not([disabled]),\n            [tabindex]:not
1([tabindex^="-"]):not([disabled])\n        ')}static getFirstFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return this.getFocusableElements(t)[0]}static getLastFocusableElement(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=this.getFocusableElements(t);return e[e.length-1]}}class r{static iterate(t,e){if(t instanceof Map||Array.isArray(t))return t.forEach(e);if(t instanceof FormData){for(var i of t.entries())e(i[1],i[0]);return}if(t instanceof NodeList)return t.forEach(e);if(t instanceof HTMLCollection)return Array.from(t).forEach(e);if(t instanceof Object)return Object.keys(t).forEach(i=>{e(t[i],i)});throw Error("The element type ".concat(typeof t," is not iterable!"))}}var s=i(857),n=i.n(s);class o{publish(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new CustomEvent(t,{detail:e,cancelable:i});return this.el.dispatchEvent(r),r}subscribe(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this,s=t.split("."),n=i.scope?e.bind(i.scope):e;if(i.once&&!0===i.once){let e=n;n=function(i){r.unsubscribe(t),e(i)}}return this.el.addEventListener(s[0],n),this.listeners.push({splitEventName:s,opts:i,cb:n}),!0}unsubscribe(t){let e=t.split(".");return this.listeners=this.listeners.reduce((t,i)=>([...i.splitEventName].sort().toString()===e.sort().toString()?this.el.removeEventListener(i.splitEventName[0],i.cb):t.push(i),t),[]),!0}reset(){return this.listeners.forEach(t=>{this.el.removeEventListener(t.splitEventName[0],t.cb)}),this.listeners=[],!0}get el(){return this._el}set el(t){this._el=t}get listeners(){return this._listeners}set listeners(t){this._listeners=t}constructor(t=document){this._el=t,t.$emitter=this,this._listeners=[]}}class l{init(){throw Error('The "init" method for the plugin "'.concat(this._pluginName,'" is not defined.'))}update(){}_init(){this._initialized||(this.init(),this._initialized=!0)}_update(){this._initialized&&this.update()}_mergeOptions(i){let r=t.toDashCase(this._pluginName),s=e.getDataAttribute(this.el,"data-".concat(r,"-config"),!1),o=e.getAttribute(this.el,"data-".concat(r,"-options"),!1),l=[this.constructor.options,this.options,i];s&&l.push(window.PluginConfigManager.get(this._pluginName,s));try{o&&l.push(JSON.parse(o))}catch(t){throw console.error(this.el),Error('The data attribute "data-'.concat(r,'-options" could not be parsed to json: ').concat(t.message))}return n().all(l.filter(t=>t instanceof Object&&!(t instanceof Array)).map(t=>t||{}))}_registerInstance(){window.PluginManager.getPluginInstancesFromElement(this.el).set(this._pluginName,this),window.PluginManager.getPlugin(this._pluginName,!1).get("instances").push(this)}_getPluginName(t){return t||(t=this.constructor.name),t}constructor(t,i={},r=!1){if(!e.isNode(t))throw Error("There is no valid element given.");this.el=t,this.$emitter=new o(this.el),this._pluginName=this._getPluginName(r),this.options=this._mergeOptions(i),this._initialized=!1,this._registerInstance(),this._init()}}class a extends l{_init(){super._init(),this._validateMethods();let t=e.querySelector(document,this.options.parentFilterPanelSelector);this.listing=window.PluginManager.getPluginInstanceFromElement(t,"Listing"),this.listing.registerFilter(this),this._preventDropdownClose()}_preventDropdownClose(){let t=e.querySelector(this.el,this.options.dropdownSelector,!1);t&&t.addEventListener("click",t=>{t.stopPropagation()})}_validateMethods(){if("function"!=typeof this.getValues)throw Error("[".concat(this._pluginName,'] Needs the method "getValues"\''));if("function"!=typeof this.getLabels)throw Error("[".concat(this._pluginName,'] Needs the method "getLabels"\''));if("function"!=typeof this.reset)throw Error("[".concat(this._pluginName,'] Needs the method "reset"\''));if("function"!=typeof this.resetAll)throw Error("[".concat(this._pluginName,'] Needs the method "resetAll"\''))}}a.options={parentFilterPanelSelector:".cms-element-product-listing-wrapper",dropdownSelector:".filter-panel-item-dropdown"};class c extends a{init(){this.selection=[],this.counter=e.querySelector(this.el,this.options.countSelector),this.mainFilterButton=e.querySelector(this.el,this.options.mainFilterButtonSelector,!1),this._registerEvents()}_registerEvents(){let t=e.querySelectorAll(this.el,this.options.checkboxSelector);r.iterate(t,t=>{t.addEventListener("change",this._onChangeFilter.bind(this))})}getValues(){let t=e.querySelectorAll(this.el,"".concat(this.options.checkboxSelector,":checked"),!1),i=[];t?r.iterate(t,t=>{i.push(t.id)}):i=[],this.selection=i,this._updateCount();let s={};return s[this.options.name]=i,s}getLabels(){let t=e.querySelectorAll(this.el,"".concat(this.options.checkboxSelector,":checked"),!1),i=[];return t?r.iterate(t,t=>{i.push({label:t.dataset.label,id:t.id})}):i=[],i}setValuesFromUrl(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=!1,r=t[this.options.name],s=r?r.split("|"):[],n=this.selection.filter(t=>!s.includes(t)),o=s.filter(t=>!this.selection.includes(t));return(n.length>0||o.length>0)&&(i=!0),o.forEach(t=>{let i=e.querySelector(this.el,'[id="'.concat(t,'"]'),!1);i&&(i.checked=!0,this.selection.push(i.id))}
1),n.forEach(t=>{this.reset(t),this.selection=this.selection.filter(e=>e!==t)}),this._updateCount(),i}_onChangeFilter(){this.listing.changeListing(!0,{p:1})}reset(t){let i=e.querySelector(this.el,'[id="'.concat(t,'"]'),!1);i&&(i.checked=!1)}resetAll(){this.selection.filter=[];let t=e.querySelectorAll(this.el,"".concat(this.options.checkboxSelector,":checked"),!1);t&&r.iterate(t,t=>{t.checked=!1})}refreshDisabledState(t){let e=t[this.options.name];if(!e.entities||e.entities.length<1){this.disableFilter();return}this.enableFilter(),this._disableInactiveFilterOptions(e.entities.map(t=>t.id))}_disableInactiveFilterOptions(t){let i=e.querySelectorAll(this.el,this.options.checkboxSelector);r.iterate(i,e=>{!0!==e.checked&&(t.includes(e.id)?this.enableOption(e):this.disableOption(e))})}disableOption(t){let e=t.closest(this.options.listItemSelector);e.classList.add("disabled"),e.setAttribute("title",this.options.snippets.disabledFilterText),t.disabled=!0}enableOption(t){let e=t.closest(this.options.listItemSelector);e.removeAttribute("title"),e.classList.remove("disabled"),t.disabled=!1}enableAllOptions(){let t=e.querySelectorAll(this.el,this.options.checkboxSelector);r.iterate(t,t=>{this.enableOption(t)})}disableFilter(){let t=e.querySelector(this.el,this.options.mainFilterButtonSelector);t.classList.add("disabled"),t.setAttribute("disabled","disabled"),t.setAttribute("title",this.options.snippets.disabledFilterText)}enableFilter(){let t=e.querySelector(this.el,this.options.mainFilterButtonSelector);t.classList.remove("disabled"),t.removeAttribute("disabled"),t.removeAttribute("title")}_updateCount(){this.counter.textContent=this.selection.length?"(".concat(this.selection.length,")"):"",this._updateAriaLabel()}_updateAriaLabel(){if(this.options.snippets.ariaLabel){if(0===this.selection.length){this.mainFilterButton.setAttribute("aria-label",this.options.snippets.ariaLabel);return}this.mainFilterButton.setAttribute("aria-label","".concat(this.options.snippets.ariaLabel," (").concat(this.options.snippets.ariaLabelCount.replace("%count%",this.selection.length.toString()),")"))}}}c.options=n()(a.options,{checkboxSelector:".filter-multi-select-checkbox",countSelector:".filter-multi-select-count",listItemSelector:".filter-multi-select-list-item",snippets:{disabledFilterText:"Filter not active",ariaLabel:"",ariaLabelCount:""},mainFilterButtonSelector:".filter-panel-item-toggle"}),window.PluginManager.register("FilterMultiSelectExt",class extends c{init(){this.selection=[],this.counter=e.querySelector(this.el,this.options.countSelector),this._registerEvents()}refreshDisabledState(t){this.options.alwaysEnabled?this.enableFilter():super.refreshDisabledState(t)}},"[data-filter-multi-select-ext]")})()})();

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.