PageSourceSearch

https://www.solakon.de/cdn/shop/t/299/assets/main-DWLA-IFH.js

js solakon.de collected 2026-09-24 10:47:41 UTC 24,276 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./swiper-DqQHirCW.js","./swiper-BLfnHoLw.css"])))=>i.map(i=>d[i]);
2import{t as D,r as S}from"./aktionen-CGNqQw3e.js";import{i as N}from"./b2b-quantity-price-breaks-B3YrKac7.js";import{d as b}from"./helper-D8DnnMe_.js";import{i as _}from"./inventory-notice-C5OzYZD_.js";import{i as A}from"./legal-texts-YwGPVIk0.js";import{i as R}from"./shipping-cost-BZI7ljvJ.js";import"./variant-info-BTxETBYL.js";import"./simple-slider-gkmkF9Q-.js";import"./product-option-accordion-06B0dYhp.js";const $="modulepreload",k=function(t,e){return new URL(t,e).href},O={},P=function(e,n,i){let a=Promise.resolve();if(n&&n.length>0){let u=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};const r=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),c=o?.nonce||o?.getAttribute("nonce");a=u(n.map(l=>{if(l=k(l,i),l in O)return;O[l]=!0;const d=l.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(i)for(let f=r.length-1;f>=0;f--){const y=r[f];if(y.href===l&&(!d||y.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${p}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":$,d||(h.as="script"),h.crossOrigin="",h.href=l,c&&h.setAttribute("nonce",c),document.head.appendChild(h),d)return new Promise((f,y)=>{h.addEventListener("load",f),h.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${l}`)))})}))}function s(r){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=r,window.dispatchEvent(o),!o.defaultPrevented)throw r}return a.then(r=>{for(const o of r||[])o.status==="rejected"&&s(o.reason);return e().catch(s)})},E={solarmodule:{singular:"Solarmodul",plural:"Solarmodule"},halterungen:{singular:"Halterung",plural:"Halterungen",dependency:{singular:"Modulplatz",plural:"Modulplätze"}},speicher:{singular:"Speicher",plural:"Speicher"},erweiterungen:{singular:"Erweiterungsspeicher",plural:"Erweiterungsspeicher"},strommesser:{singular:"Strommessgerät",plural:"Strommessgeräte"},zubehoer:{singular:"Zubehör",plural:"Zubehör"}};function g(t,e,n){const i=e?E[e]:void 0,a=i?.dependency||i,s=t===1?a?.singular:a?.plural;return`${t} ${s||n}`}function B(t,e,n){const i=E[e],a=t===1?i?.singular:i?.plural;return`${t} ${a||n}`}const L={optionId:"",allowMultiple:!1,required:!1,title:"",subtitle:"",defaultOption:{title:"",description:"",image:""},emptyOption:null,quantityConfig:{enabled:!1,dependencyEnabled:!1,min:1,max:1,default:1,dependencyOptionId:null},compatibilityConfig:{parentOptionId:null},products:{}};function F(t,e,n){return{showHint:!1,hintTimer:null,selectCard(){const i=this.isSelected(t,e);if(this.selectProduct(t,e),!this.isSelected(t,e)){this.hideTechnicalInfo();return}n&&!i&&this.deferTechnicalInfo(3500)},deferTechnicalInfo(i){this.clearTechnicalInfoTimer(),this.hintTimer=window.setTimeout(()=>{this.hintTimer=null,this.isSelected(t,e)&&this.showTechnicalInfo(i)},0)},toggleTechnicalInfo(){if(this.showHint){this.hideTechnicalInfo();return}this.showTechnicalInfo(5e3)},showTechnicalInfo(i){this.clearTechnicalInfoTimer(),this.showHint=!0,this.hintTimer=window.setTimeout(()=>{this.showHint=!1,this.hintTimer=null},i)},hideTechnicalInfo(){this.clearTechnicalInfoTimer(),this.showHint=!1},clearTechnicalInfoTimer(){this.hintTimer!=null&&(window.clearTimeout(this.hintTimer),this.hintTimer=null)},destroy(){this.clearTechnicalInfoTimer()}}}function I(t){try{const e={};return t.querySelectorAll("[data-upgradeset-option]").forEach(i=>{const a=C(i.querySelector("[data-upgradeset-option-config]"),"option");if(!a.optionId)throw new Error("Upgradeset option configuration has no option ID.");const s={};i.querySelectorAll("[data-upgradeset-product-config]").forEach(r=>{const o=C(r,"product");if(o.variantId==null)throw new Error(`Upgradeset product configuration in ${a.optionId} has no variant ID.`);s[String(o.variantId)]=o}),e[a.optionId]={...a,products:s}}),{initialOptionId:t.dataset.upgradesetInitialOptionId||null,groups:e}}catch(e){return console.error("Failed to parse upgradeset configuration:",e),null}}function C(t,e){if(!t)throw new Error(`Missing upgradeset ${e} configuration.`);try{const n=JSON.parse(t.textContent||"");if(!n||typeof n!="object"||Array.isArray(n))throw new Error(`Invalid upgradeset ${e} configuration shape.`);return n}catch(n){throw new Error(`Could not parse upgradeset ${e} configuration: ${String(n)}`)}}function T(){return{data:{},selectedProducts:{},activeOption:null,swiper:null,isAddingToCart:!1,cartError:"",init(){const t=I(this.$root);if(!t){this.data={},this.selectedProducts={},this.activeOption=null,this.cartError="Der Upgrade-Set-Konfigurator konnte nicht geladen werden.";return}this.data=structuredClone(t.groups),this.activeOption=t.initialOptionId,this.selectedProducts=Object.fromEntries(Object.keys(this.data).map(e=>[e,{}])),this.$nextTick(()=>{const e=this.$refs.swiperContainer;if(!e?.isConnected)return;const n=typeof window.getSwiperInstance=="function"?window.getSwiperInstance(e):null;if(n){this.swiper=n;return}const i=a=>
2{if(a.target!==e)return;const s=a.detail?.instance;s&&(e.removeEventListener("swiper:ready",i),this.swiper=s)};e.addEventListener("swiper:ready",i)})},formatPrice(t){return new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(t/100)},getOptionData(t){return this.data?.[t]||L},getOptionSelections(t){return this.selectedProducts?.[t]||{}},getSelectedItems(t){return Object.values(this.getOptionSelections(t)).filter(e=>!e.isEmpty)},getSelectedProductRows(t){return this.getSelectedItems(t).map(e=>({...this.getProductData(t,e.variantId),quantity:e.quantity})).filter(e=>e.variantId!=null)},getSelectedCount(t){return this.getSelectedItems(t).length},getOptionTotalQuantity(t){return this.getSelectedItems(t).reduce((e,n)=>e+(Number(n.quantity)||0),0)},getPrimarySelectedItem(t){return this.getSelectedItems(t)[0]||null},isEmptyOptionSelected(t){return!!this.getOptionSelections(t).empty_option?.isEmpty},isSelected(t,e){return!!this.getOptionSelections(t)[e]},getProductData(t,e){return this.getOptionData(t)?.products?.[e]},hasQuantityDependency(t){const e=this.getOptionData(t)?.quantityConfig;return!!(e?.dependencyEnabled&&e?.dependencyOptionId)},hasMultiQuantityDependency(t){return!!(this.getOptionData(t)?.allowMultiple&&this.hasQuantityDependency(t))},getDependencyFactor(t,e){const n=Number(this.getProductData(t,e)?.quantityDependencyFactor);return Number.isFinite(n)&&n>0?n:1},allowsDependencyOvercapacity(t,e){return this.getProductData(t,e)?.allowDependencyOvercapacity===!0},getDependencyParentQuantity(t){if(!this.hasQuantityDependency(t))return 0;const e=this.getOptionData(t).quantityConfig.dependencyOptionId;return this.getOptionTotalQuantity(e)},getDependentCapacity(t){return this.hasMultiQuantityDependency(t)?this.getSelectedItems(t).reduce((e,n)=>e+(Number(n.quantity)||0)*this.getDependencyFactor(t,n.variantId),0):0},getRemainingDependentCapacity(t){return this.getDependencyParentQuantity(t)-this.getDependentCapacity(t)},getDependentInitialQuantity(t,e){if(!this.hasMultiQuantityDependency(t))return null;const n=this.getOptionData(t).quantityConfig,i=this.getRemainingDependentCapacity(t);if(i<=0)return null;const a=1,s=Number(n.max),r=Number.isFinite(s)?Math.max(s,a):1/0,o=i/this.getDependencyFactor(t,e),c=this.allowsDependencyOvercapacity(t,e)?Math.ceil(o):Math.floor(o);return Math.min(r,c)<a?null:a},isAcceptedDependentOvercapacity(t){if(!this.hasMultiQuantityDependency(t))return!1;const e=this.getDependencyParentQuantity(t),n=this.getDependentCapacity(t);return n<=e?!1:this.getSelectedItems(t).some(i=>this.allowsDependencyOvercapacity(t,i.variantId)?n-this.getDependencyFactor(t,i.variantId)<e
2:!1)},hasDependentOvercapacity(t){if(!this.hasMultiQuantityDependency(t))return!1;const e=this.getDependencyParentQuantity(t);return e>0&&this.getDependentCapacity(t)>e},isDependentSelectionResolved(t){if(!this.hasQuantityDependency(t))return!0;const e=this.getDependencyParentQuantity(t);return e<=0||this.isEmptyOptionSelected(t)?!0:this.hasMultiQuantityDependency(t)?this.getDependentCapacity(t)===e||this.isAcceptedDependentOvercapacity(t):this.getSelectedCount(t)>0},isQuantityDependencyDisabled(t){return this.hasQuantityDependency(t)?this.getDependencyParentQuantity(t)===0:!1},isDisabled(t,e){const n=this.getProductData(t,e);return this.hasMultiQuantityDependency(t)&&!this.isSelected(t,e)&&this.getDependentInitialQuantity(t,e)==null?!0:!n||n.available===!1||this.isQuantityDependencyDisabled(t)||!this.isCompatibleWithParent(t,e)},isCompatibleWithParent(t,e){const n=this.getOptionData(t),i=this.getProductData(t,e);if(!n||!i)return!1;const a=n.compatibilityConfig?.parentOptionId;if(!a)return!0;const s=this.getSelectedItems(a);if(!s.length)return!0;const r=(i.compatibleParentVariantIds??[]).map(String);return r.length?s.every(o=>r.includes(String(o.variantId))):!0},changeActiveOption(t){if(this.activeOption===t){this.activeOption=null;return}this.activeOption=t,this.changeActiveSlider(t)},changeActiveSlider(t){if(!this.swiper)return;const n=Array.from(this.swiper.slides).findIndex(i=>i.dataset.optionId===t);n!==-1&&this.swiper.slideTo(n)},getOptionDisplayTitle(t){const e=this.getOptionData(t);if(!e)return"";if(this.isEmptyOptionSelected(t))return e.emptyOption?.title||e.defaultOption?.title||"";const n=this.getSelectedItems(t);if(!n.length)return e.defaultOption?.title||"";if(e.allowMultiple)return`${B(n.length,t,e.title)} ausgewählt`;const i=this.getProductData(t,n[0].variantId)?.title||"";return i?`${i} ausgewählt`:"Ausgewählt"},getOptionDisplayQuantity(t){return this.getOptionData(t)?.allowMultiple?0:Number(this.getPrimarySelectedItem(t)?.quantity)||0},getOptionImage(t){const e=this.getOptionData(t);if(!e)return"";if(this.isEmptyOptionSelected(t))return e.emptyOption?.image||e.defaultOption?.image||"";if(!e.allowMultiple){const n=this.getPrimarySelectedItem(t),i=n?this.getProductData(t,n.variantId)?.image:null;if(i)return i}return e.defaultOption?.image||""},isRequiredMet(t){const e=this.getOptionData(t);return!e||!e.required?!0:this.getSelectedCount(t)>0},hasInvalidDependentOvercapacity(t){return this.hasDependentOvercapacity(t)&&!this.isAcceptedDependentOvercapacity(t)},getValidationErrors(){const t=Object.keys(this.data||{}),e=r=>Array.from(new Set(r.map(o=>this.getOptionData(o)?.title).filter(Boolean))),n=t.filter(r=>this.isRequiredMet(r)?!this.hasQuantityDependency(r)||this.hasInvalidDependentOvercapacity(r)?!1:!this.isDependentSelectionResolved(r):!0),i=Array.from(new Set(n.map(r=>{const o=this.getOptionData(r);if(!o?.title)return null;if(this.hasQuantityDependency(r)){const u=this.getDependencyParentQuantity(r),l=o.quantityConfig.dependencyOptionId,d=this.getOptionData(l)?.title||"abhängige Option";if(u>0){const p=g(u,l,d);return`Bitte wählen Sie ${o.title} mit einer Abdeckung von insgesamt ${p}.`}}return`Bitte wählen Sie mindestens ${o.quantityConfig?.enabled?Math.max(Number(o.quantityConfig.min)||1,1):1} ${o.title}.`}).filter(Boolean))),a=e(t.filter(r=>this.hasInvalidDependentOvercapacity(r))),s=[];return i.length&&s.push({type:"required_selection",text:i.join(" ")}),a.length&&s.push({type:"overquantity",text:`Bitte reduzieren Sie die Menge bei ${a.join(", ")}.`}),s},canAddToCart(){return this.getValidationErrors().length===0&&this.getSelectedProducts().length>0&&!this.isAddingToCart},getDependentStatus(t){if(!this.hasMultiQuantityDependency(t))return{lines:[],hint:null};const e=this.getOptionData(t),n=this.getDependencyParentQuantity(t),i=this.getDependentCapacity(t),a=e.quantityConfig.dependencyOptionId,s=this.getOptionData(a)?.title||"abhängige Option",r=e.title||"Option";if(n<=0)return{lines:[{text:`Bitte zuerst ${s} konfigurieren.`}],hint:null};if(this.isEmptyOptionSelected(t))return{lines:[{text:`${e.emptyOption?.title||"Keine Option"} ausgewählt.`}],hint:null};if(i===0){const c=e.emptyOption?.title;return{lines:[{text:c?`Bitte ${r}
2 konfigurieren oder „${c}“ auswählen.`:`Bitte ${r} passend konfigurieren.`}],hint:null}}const o=[{label:"Aktuell ausgewählt:",text:g(n,a,s)},{label:"Benötigt:",text:g(n,t,r)}];if(i<n){const c=n-i;return o.push({label:c===1?"Es fehlt":"Es fehlen",text:g(c,t,r)}),{lines:o,hint:null}}if(i>n){if(this.isAcceptedDependentOvercapacity(t)){const c=i-n,u=g(c,t,r);return o.push({label:"Anforderung erfüllt",text:""}),{lines:o,hint:{label:"! Hinweis:",text:`Die ausgewählte Konfiguration bietet ${u} mehr als erforderlich.`}}}return o.push({label:"Zu viel:",text:g(i-n,t,r)}),{lines:o,hint:null}}return o.push({label:"",text:"Anforderung erfüllt."}),{lines:o,hint:null}},getDependentStatusText(t){const e=this.getDependentStatus(t),n=e.hint?[e.hint.label,e.hint.text].filter(Boolean).join(" "):"";return[...e.lines.map(i=>[i.label,i.text].filter(Boolean).join(" ")),n].filter(Boolean).join(`
3`)},clampQuantity(t,e,n){const i=Number(t)||0,a=Number(e)||0,s=Number(n),r=Number.isFinite(s)?s:1/0;return Math.min(Math.max(i,a),r)},calculateDependentQuantity(t,e){const n=Number(t),i=Number.isFinite(n)&&n>0?n:1;return Math.ceil((Number(e)||0)/i)},createSelectedItem(t,e,n=0){const i=this.getOptionData(t),a=this.getProductData(t,e);if(!i||!a)return null;const s=i.quantityConfig||{};let r=1;if(s.enabled)if(this.hasQuantityDependency(t))if(i.allowMultiple){if(r=this.getDependentInitialQuantity(t,e),r==null)return null}else r=this.calculateDependentQuantity(a.quantityDependencyFactor,this.getOptionTotalQuantity(s.dependencyOptionId));else{const o=Number(n)>0?n:s.default??s.min??1;r=this.clampQuantity(o,s.min??1,s.max??1/0)}return{variantId:a.variantId,quantity:r}},selectProduct(t,e){const n=this.getOptionData(t);if(!n||this.isDisabled(t,e))return;const i=this.getOptionSelections(t);if(n.allowMultiple&&i[e]){delete i[e],this.cartError="",this.reconcileChildren(t);return}const a=this.createSelectedItem(t,e,n.allowMultiple?i[e]?.quantity:this.getPrimarySelectedItem(t)?.quantity);a&&(n.allowMultiple?(delete i.empty_option,i[e]=a):this.selectedProducts[t]={[e]:a},this.cartError="",this.reconcileChildren(t))},selectEmptyOption(t){!this.getOptionData(t)?.emptyOption||this.isQuantityDependencyDisabled(t)||(this.selectedProducts[t]={empty_option:{variantId:"empty_option",quantity:0,isEmpty:!0}},this.cartError="",this.reconcileChildren(t))},canUpdateQuantity(t,e,n){const i=this.getOptionSelections(t)[e],a=this.getOptionData(t);if(!i||!a?.quantityConfig?.enabled||this.hasQuantityDependency(t)&&!a.allowMultiple)return!1;const s=a.quantityConfig,r=Number(i.quantity)||0,o=r+Number(n||0),c=this.hasMultiQuantityDependency(t)?1:Math.max(Number(s.min)||1,1),u=Number(s.max),l=Number.isFinite(u)?Math.max(u,c):1/0;if(o<c||o>l)return!1;if(this.hasMultiQuantityDependency(t)){const d=this.getDependentCapacity(t),p=d+(o-r)*this.getDependencyFactor(t,e),h=this.getDependencyParentQuantity(t);if(o>r&&p>h){const f=o===r+1;if(!(d<h&&f&&this.allowsDependencyOvercapacity(t,e)))return!1}}return o!==r},updateQuantity(t,e,n){const i=this.getOptionSelections(t)[e],a=this.getOptionData(t);!i||!a?.quantityConfig?.enabled||this.canUpdateQuantity(t,e,n)&&(i.quantity=(Number(i.quantity)||0)+Number(n||0),this.cartError="",this.reconcileChildren(t))},reconcileChildren(t,e=new Set){if(e.has(t))return;const n=new Set(e);n.add(t),Object.keys(this.data).forEach(i=>{if(n.has(i))return;const a=this.getOptionData(i),s=a.quantityConfig?.dependencyEnabled&&a.quantityConfig?.dependencyOptionId===t,r=a.compatibilityConfig?.parentOptionId===t;if(!s&&!r)return;let o=!1;if(s){const c=this.getOptionTotalQuantity(t);c===0?o=!0:a.allowMultiple||this.getSelectedItems(i).forEach(u=>{const l=this.getProductData(i,u.variantId);u.quantity=this.calculateDependentQuantity(l?.quantityDependencyFactor,c)})}r&&this.getSelectedItems(i).some(c=>!this.isCompatibleWithParent(i,c.variantId))&&(o=!0),o&&(this.selectedProducts[i]={}),this.reconcileChildren(i,n)})},getPriceDifference(t,e){const n=this.getOptionData(t);if(!n||n.allowMultiple)return"";const i=this.getPrimarySelectedItem(t),a=this.isEmptyOptionSelected(t);if(!i&&!a||String(i?.variantId)===String(e))return"";const s=(this.getProductData(t,e)?.price||0)-(i&&this.getProductData(t,i.variantId)?.price||0),r=s>0?"+":"";return s===0?"":r+this.formatPrice(s)},getItemPrice(t,e){const n=this.getOptionSelections(t)[e],i=this.getProductData(t,e);return!n||!i?this.formatPrice(0):this.formatPrice(i.price*n.quantity)}
3,getOptionSubtotal(t){return this.getSelectedItems(t).reduce((e,n)=>{const i=this.getProductData(t,n.variantId)?.price||0;return e+i*(Number(n.quantity)||0)},0)},getOptionSubtotalText(t){return this.formatPrice(this.getOptionSubtotal(t))},getSelectedProducts(){return Object.keys(this.selectedProducts||{}).flatMap(t=>this.getSelectedItems(t).filter(e=>(Number(e.quantity)||0)>0).map(e=>({...this.getProductData(t,e.variantId),optionId:t,quantity:Number(e.quantity)||0})).filter(e=>e.variantId!=null))},getCombinedSelectedProducts(){const t=new Map;return this.getSelectedProducts().forEach(e=>{const n=String(e.productId??e.variantId),i=t.get(n);if(i){i.quantity+=Number(e.quantity)||0;return}t.set(n,{...e,quantity:Number(e.quantity)||0})}),Array.from(t.values())},getDeliveryRange(){const t=this.getSelectedProducts().flatMap(e=>{if(e.minDeliveryTime==null||e.maxDeliveryTime==null)return[];const n=Number(e.minDeliveryTime),i=Number(e.maxDeliveryTime);return Number.isFinite(n)&&Number.isFinite(i)?[{min:n,max:i}]:[]});return t.length?{min:Math.max(...t.map(e=>e.min)),max:Math.max(...t.map(e=>e.max))}:null},getDeliveryTimeText(){const t=this.getDeliveryRange();return t?`Versand in <span class='font-bold'>${t.min} - ${t.max} Werktagen</span>`:""},getDeliveryCost(){return this.getCombinedSelectedProducts().reduce((t,e)=>{const n=Number(e.unitDeliveryCost),i=Number(e.quantity)||0;let a=Number.isFinite(n)?n*i:0;if(e.maxDeliveryCost!=null){const s=Number(e.maxDeliveryCost);Number.isFinite(s)&&(a=Math.min(a,s))}return t+Math.max(a,0)},0)},getDeliveryCostText(){const t=this.getDeliveryCost();return t===0?"0,00 €":this.formatPrice(t)},getTotalPrice(){const t=Object.keys(this.selectedProducts||{}).reduce((e,n)=>e+this.getOptionSubtotal(n),0);return this.formatPrice(t)},async addToCart(){if(!this.canAddToCart())return;const t="50675169034566",e="bundle-"+Date.now(),n=this.getSelectedProducts();if(n.length===0)return;const i=[{id:t,quantity:1,properties:{_bundle_id:e,_upgradesetItem:!0,_upgradesetParent:!0},instructions:{canUpdateQuantity:!1}},...n.map(s=>({id:s.variantId,quantity:s.quantity,parent_id:t,properties:{_bundle_id:e,_upgradesetItem:!0,_upgradesetParent:!1}}))],a=["main-cart","cart-drawer","cart-bubble"];this.isAddingToCart=!0,this.cartError="";try{const s=await fetch(theme.routes.cart_add_url,{method:"POST",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({items:i,sections:a,sections_url:window.location.pathname})}),r=await s.json();if(!s.ok||r.status)throw new Error(r.description||r.message||"Das Upgrade-Set konnte nicht hinzugefügt werden.");this.renderSections(r),dispatchEvent(new CustomEvent("cart:item-added",{detail:{product:r.items?.[0]??r}}))}catch(s){console.error("Failed to add bundle to cart:",s),this.cartError=s.message||"Das Upgrade-Set konnte nicht hinzugefügt werden."}finally{this.isAddingToCart=!1}},renderSections(t){[{id:"Cart",section:"main-cart",selector:".thb-cart-form"},{id:"Cart-Drawer",section:"cart-drawer",selector:".cart-drawer"},{id:"cart-drawer-toggle",section:"cart-bubble",selector:".thb-item-count"}].forEach(i=>{const a=document.getElementById(i.id);if(!a)return;const s=a.querySelector(i.selector)||a,r=t.sections?.[i.section];if(!r)return;const o=new DOMParser().parseFromString(r,"text/html").querySelector(i.selector);o&&(s.innerHTML=o.innerHTML)}),typeof CartDrawer<"u"&&new CartDrawer,typeof Cart<"u"&&new Cart().renderContents(t);const n=document.getElementById("Cart-Drawer");n&&(document.body.classList.add("open-cc","overflow-hidden"),n.classList.add("active"),dispatchEvent(new CustomEvent("cart-drawer:open")))}}}window.upgradesetConfigurator=T;document.addEventListener("alpine:init",()=>{window.Alpine.data("upgradesetConfigurator",T),window.Alpine.data("upgradesetTechnicalInfo",F)},{once:!0});let m;const w=new WeakMap;function x(){if(!m){const t=P(()=>import("./swiper-DqQHirCW.js"),__vite__mapDeps([0,1]),import.meta.url).catch(e=>{throw m===t&&(m=void 0),e});m=t}return m}async function q(t=document){const e=await x();return t.isConnected&&e.initSwipers(t),e}window.loadSwiper=q;class j extends HTMLElement{swiperRoot=null;connectedCallback(){const e=this.closest("[data-swiper]");e&&(this.swiperRoot=e,w.set(e,this),q(e).then(n=>{const i=w.get(e);(!this.isConnected||this.swiperRoot!==e)&&(!i||!i.isConnected)&&n.destroySwipers(e)}).catch(n=>{console.error("Failed to load Swiper.",n)}))}disconnectedCallback(){const e=this.swiperRoot;this.swiperRoot=null,e&&w.get(e)===this&&w.delete(e),!(!e||!m)&&m.then(n=>{const i=w.get(e);(!i||!i.isConnected)&&n.destroySwipers(e)}).catch(()=>{})}}customElements.get("theme-swiper-loader")||customElements.define("theme-swiper-loader",j);function U(t){return t instanceof HTMLElement&&t.matches('[data-instant-type="slider"]')||!!t.querySelector('[data-instant-type="slider"]')}async function M(t){if(U(t))try{await x(),window.Instant?.initSwiper?.()}catch(e){console.error("Failed to load Swiper for an Instant section.",e)}}document.addEventListener("DOMContentLoaded",()=>{if(H(),N(),_(),A(),R(),requestAnimationFrame(async()=>{const{initPhotoZoom:t}=await P(async()=>{const{initPhotoZoom:e}=await import("./photo-zoom-CjsMr2kF.js");return{initPhotoZoom:e}}
3,[],import.meta.url);t()}),M(document),window.location.href.includes("/products/onbasic-bild")){D('<img height="60" style="height: 60px" src="https://cdn.shopify.com/s/files/1/0605/9684/6744/files/Group_1312317121_1.webp?v=1729157592" />'),b();return}if(window.location.href.includes("/products/onpower-pcwelt")){D('<img height="40" style="height: 40px" src="https://cdn.shopify.com/s/files/1/0605/9684/6744/files/Home_Smart_Banner.webp?v=1727024604" />'),b();return}if(window.location.href.includes("/products/onbasic-burda")){D('<img height="40" style="height: 40px" src="https://cdn.shopify.com/s/files/1/0605/9684/6744/files/onBasic_Burda_Banner_Top_Bar.png?v=1727176479" />'),b();return}document.addEventListener("initDone",()=>{v()}),window.isInitDone&&v()});function Q(t){const e=t.detail?.sectionId;return t.target instanceof HTMLElement?t.target:e?document.getElementById(`shopify-section-${e}`):null}document.addEventListener("shopify:section:load",t=>{const e=Q(t);e&&M(e)});document.addEventListener("shopify:section:unload",t=>{const e=Q(t);e&&e.querySelectorAll('[data-instant-type="slider"]').forEach(n=>{const i=n.swiper;i&&!i.destroyed&&i.destroy(!0,!0)})});function H(){setTimeout(()=>{const t=setInterval(()=>{typeof window.gtag=="function"&&(clearInterval(t),window.gtag("consent","update",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"}))},1e3);setTimeout(()=>{clearInterval(t),typeof window.gtag!="function"&&console.warn("gtag function not defined after 30 seconds.")},3e4)},5e3)}function v(){if(S(window.codextActionConfig,!0),window.location.href.includes("/collections/eprimo")||window.location.href.includes("/products/onbasic-eprimo")||window.location.href.includes("/products/onpower-burda")||window.location.href.includes("/products/onbasicxl-burda")||window.location.href.includes("/products/onbasic-pcwelt")||window.location.href.includes("/products/onlite-ntv")||window.location.href.includes("/products/onbasic-ntv")||window.location.href.includes("/products/onbasicxl-ntv")||window.location.href.includes("/products/onpower-ntv")||window.location.href.includes("/products/onbasic-t3n")||window.location.href.includes("/products/onbasicxl-homesmart")||window.location.href.includes("/products/onbasic-v2")||window.location.href.includes("/products/upgradeset")||document.getElementById("skip-action")){const t=document.getElementById("codext-action-coupon-placeholder");t&&(t.style.display="none");return}S(window.codextActionConfig,!1)}

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.