PageSourceSearch

https://green-spirit.de/templates/SALEPIX/storefront/dist/js/label-attach.plugin.ts.1f8d9d.js

js green-spirit.de collected 2026-10-06 16:26:31 UTC 2,664 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksalepix_storefront=self.webpackChunksalepix_storefront||[]).push([["label-attach.plugin.ts"],{4990(e,t,l){l.r(t),l.d(t,{default:()=>a});var r=l(4825),o=l(9028);class a extends r.A{init(){let{el:e}=this;if(!e||"true"!==e.getAttribute("data-slpx-label"))return void(0,o.qz)('LabelAttachPlugin: element with data-slpx-label="true" is required.');let t=e.querySelector("select[id]");if(!t||!t.id)return;let l=document.querySelector(`label[for="${t.id}"]`);if(!l)return;let r=5,a=setInterval(()=>{((()=>{let r=(0,o.UM)(e,".bootstrap-select");if(!r)return!1;r.contains(l)||r.prepend(l);let a=(0,o.UM)(r,"button.dropdown-toggle");return a&&!a.hasAttribute("aria-labelledby")&&(l.id||(l.id=`label-${t.id}`),(0,o.Wp)(a,{"aria-labelledby":l.id})),!0})()||--r<=0)&&clearInterval(a)},100)}}},9028(e,t,l){l.d(t,{CB:()=>h,IC:()=>s,NO:()=>b,Pt:()=>A,UM:()=>a,V6:()=>o,Wp:()=>d,YB:()=>c,eC:()=>g,el:()=>i,n:()=>m,pQ:()=>u,q2:()=>y,qz:()=>p,wt:()=>f,xP:()=>n});var r=l(455);let o=(e,t=document)=>t.querySelector(e),a=(e,t)=>e.querySelector(t),n=(e,t)=>e.querySelectorAll(t),s=(e,t=document)=>Array.from(t.querySelectorAll(e)),i=(e,t)=>t?e.closest(`.${t}`):null,d=(e,t)=>{for(let[l,r]of Object.entries(t))e.setAttribute(l,r)},c=(e,t)=>{let l=r.A.getAttribute(e,t,!1);try{if(l)return JSON.parse(l)}catch(e){p(`The data attribute "${t}" could not be parsed to json`)}return!1},u=(e,t)=>{e.classList.add(...t.split(" "))},g=(e,t)=>{for(let[l,r]of Object.entries(t))"string"==typeof r&&e.style.setProperty(l,r)},m=(e="div",t,l,r)=>{let o=document.createElement(e);return t&&o.classList.add(...t.split(" ")),l&&d(o,l),r&&(o.innerHTML=r),o},f=(e,t)=>{for(let[l,r]of Object.entries(t))e[l]=r},p=e=>{throw Error(e)},b=e=>{let{width:t,height:l,top:r,right:o,bottom:a,left:n}=e.getBoundingClientRect();return{width:t,height:l,top:r,right:o,bottom:a,left:n}},y=(e,t,l,r)=>{e&&e instanceof HTMLElement&&e.addEventListener(t,l,r)},h=async(e,t,l=!1)=>{let r=n(e,`.${t}`);if(l&&console.log("registerImages:",{context:e}),l&&console.log("Found images:",r.length),!r.length)return l&&console.log("No images found"),Promise.resolve();try{await Promise.allSettled(Array.from(r).map(e=>new Promise(t=>{e.complete?(l&&console.log("Image already loaded:",{image:e}),t()):(e.onload=()=>{l&&console.log("Image loaded:",{image:e}),t()},e.onerror=()=>{l&&console.log("Image failed to load:",{image:e}),t()},setTimeout(()=>{l&&console.log("Image load timeout:",{image:e}),t()},1e3))}))),l&&console.log("All images loaded")}catch(e){l&&console.error("Error loading images:",e)}return Promise.resolve()},A=(e,t=document,l={})=>{t.dispatchEvent(new CustomEvent(e,{detail:l}))}}}]);

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.