`);return r.click(()=>{const n=window.Kleiberit.ProductDetails.getState().associatedProducts.find(n=>n.Id===t);window.Kleiberit.ProductDetails.getState().selectedVariant=n}),r}function template(n){return n.html}function setaddtocarddiv(n){$(".add-to-cart-div").hide();$("#add-to-cart-div-"+n).show();partialpageupdate(n)}function updateProductVariantDetails(n){$(".add-to-cart-div").hide();$("#add-to-cart-div-"+n).show()}let data=[];window.Kleiberit.ProductDetails.onChange("selectedVariant",n=>{const i=n.associatedProducts.filter(t=>t.Id!==n.selectedVariant.Id).map(createProductVariantSelectableImage),r=n.selectedVariant.PictureModels[0].ImageUrl,u=n.selectedVariant.PictureModels[0].AlternateText,t=n.selectedVariant.PictureModels[0].FullSizeImageUrl;$("#sevenspikes-cloud-zoom a img").attr("src",r);$("#sevenspikes-cloud-zoom a img").attr("alt",u);$("#zoom1").attr("data-full-image-url",t);$("#cloudzoom-zoom-image-1").attr("src",t);const f=$("
").append(i);$(".sevenspikes-cloudzoom-gallery > #other-product-variants-container").remove();$(".sevenspikes-cloudzoom-gallery").append(f);$("#klei-search-cartoon-top").val(n.selectedVariant.Id.toString());$("#klei-search-cartoon-top").trigger("change")});data.push({id:130,text:"Leimer 1 kg, 209,30 € / kg, 209,30 € zzgl. MwSt.",html:'Leimer 1 kg<\/span> 209,30 € / kg<\/span> 209,30 € zzgl. MwSt.<\/span><\/div>'});$("#klei-search-cartoon-top").select2({data:data,dropdownPosition:"below",dropdownParent:$(".k-cart-detail-select-container"),templateResult:template,minimumResultsForSearch:-1,escapeMarkup:function(n){return n}});$("#klei-search-cartoon-top").change(function(n){updateProductVariantDetails($(this).val());const t=window.Kleiberit.ProductDetails.getState().associatedProducts.find(t=>t.Id===parseInt(n.target.value));window.Kleiberit.ProductDetails.getState().selectedVariant=t;setaddtocarddiv($(this).val());totalTimeout=100;const i=document.getElementById("productfulldescription-container");wrapListOfDetailsWithTitle(i)});$(document).ready(function(){function n(){var t=$("#cloudzoom-zoom-image-1"),i;const n=window.Kleiberit.ProductDetails.getState().selectedVariant,r=n.PictureModels[0].ImageUrl;if(t.length>0&&t.attr("src")!==n.PictureModels[0].FullSizeImageUrl)if(i=t.attr("src"),i){const i=n.PictureModels[0].AlternateText,t=n.PictureModels[0].FullSizeImageUrl;$("#sevenspikes-cloud-zoom a img").attr("src",r);$("#sevenspikes-cloud-zoom a img").attr("alt",i);$("#zoom1").attr("data-full-image-url",t);$("#cloudzoom-zoom-image-1").attr("src",t);$("#klei-search-cartoon-top").val(n.Id.toString());$("#klei-search-cartoon-top").trigger("change")}else console.log("Element found but src is not set yet")}var t=setInterval(n,50)});$(()=>{const n={CustomerTierPrices:[{BasePricePAngV:"209,30 € / kg",BasePricePAngVValue:209.3,Price:"209,30 €",PriceValue:209.3,Quantity:1,CustomProperties:{}}],AssociatedProducts:[],DefaultPictureZoomEnabled:!1,DefaultPictureModel:{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000339_0000339_0_320.jpg",ThumbImageUrl:null,FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000339_0000339_0.jpg",Title:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",AlternateText:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",Id:0,CustomProperties:{}},PictureModels:[{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000339_0000339_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000339_0000339_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000339_0000339_0.jpg",Title:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",AlternateText:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",Id:339,CustomProperties:{}},{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000232_0000232_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000232_0000232_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000232_0000232_0.jpg",Title:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",AlternateText:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",Id:232,CustomProperties:{}},{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000041_0000041_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000041_0000041_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000041_0000041_0.jpg",Title:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",AlternateText:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",Id:41,CustomProperties:{}},{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000381_0000381_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000381_0000381_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000381_0000381_0.jpg",Title:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",AlternateText:"892.0 Gupfo Pfohl-Leimer - 1,0 ltr Leimer 1 kg",Id:381,CustomProperties:{}}],VideoModels:[],Name:"Leimer 1 kg",ShortDescription:"",FullDescription:"",JsonLd:null,MetaKeywords:"",MetaDescription:"",MetaTitle:"",SeName:"leimer-1-kg",VisibleIndividually:!1,ProductType:5,ShowSku:!0,Sku:"89209570",ShowManufacturerPartNumber:!1,ManufacturerPartNumber:null,ShowGtin:!1,Gtin:null,ShowVendor:!1,VendorModel:{Name:null,SeName:null,Id:0,CustomProperties:{}},HasSampleDownload:!1,GiftCard:{IsGiftCard:!1,RecipientName:null,RecipientEmail:null,SenderName:null,SenderEmail:null,Message:null,GiftCardType:0,CustomProperties:{}},IsShipEnabled:!0,IsFreeShipping:!1,FreeShippingNotificationEnabled:!0,DeliveryDate:"ca. 3 Werktage",IsRental:!1,RentalStartDate:null,RentalEndDate:null,AvailableEndDate:null,ManageInventoryMethod:1,StockAvailability:"",DisplayBackInStockSubscription:!1,DisplayAttributeCombinationImagesOnly:!1,EmailAFriendEnabled:!1,CompareProductsEnabled:!0,PageShareCode:null,ProductPrice:{CurrencyCode:"EUR",OldPrice:null,OldPriceValue:null,Price:"209,30 € zzgl. MwSt.",PriceValue:209.3,PriceWithDiscount:null,PriceWithDiscountValue:null,CustomerEntersPrice:!1,CallForPrice:!1,ProductId:130,HidePrices:!1,IsRental:!1,RentalPrice:null,RentalPriceValue:null,DisplayTaxShippingInfo:!0,BasePricePAngV:"209,30 € / kg",BasePricePAngVValue:209.3,CustomProperties:{}},AddToCart:{ProductId:130,EnteredQuantity:1,MinimumQuantityNotification:null,AllowedQuantities:[],CustomerEntersPrice:!1,CustomerEnteredPrice:0,CustomerEnteredPriceRange:null,DisableBuyButton:!1,DisableWishlistButton:!1,IsRental:!1,AvailableForPreOrder:!1,PreOrderAvailabilityStartDateTimeUtc:null,PreOrderAvailabilityStartDateTimeUserTime:null,UpdatedShoppingCartItemId:0,UpdateShoppingCartItemType:null,CustomProperties:{}},Breadcrumb:{Enabled:!1,JsonLd:null,ProductId:0,ProductName:null,ProductSeName:null,CategoryBreadcrumb:[],CustomProperties:{}},ProductTags:[],ProductAttributes:[],ProductSpecificationModel:{Groups:[],CustomProperties:{}},ProductManufacturers:[],ProductReviewOverview:{ProductId:130,RatingSum:0,TotalReviews:0,AllowCustomerReviews:!1,CanAddNewReview:!0,CanCurrentCustomerLeaveReview:!1,CustomProperties:{}},ProductReviews:{ProductId:0,Items:[],AddProductReview:{Title:null,ReviewText:null,Rating:0,DisplayCaptcha:!1,CanCurrentCustomerLeaveReview:!1,CanAddNewReview:!1,CustomProperties:{}},ReviewTypeList:[],AddAdditionalProductReviewList:[],CustomProperties:{}},ProductEstimateShipping:{ProductId:130,RequestDelay:300,Enabled:!0,CountryId:null,StateProvinceId:null,ZipPostalCode:null,UseCity:!1,City:null,AvailableCountries:[{Disabled:!1,Group:null,Selected:!1,Text:"Land auswählen",Value:"0"},{Disabled:!1,Group:null,Selected:!1,Text:"Deutschland",Value:"84"}],AvailableStates:[{Disabled:!1,Group:null,Selected:!1,Text:"Andere",Value:"0"}],CustomProperties:{}},TierPrices:[],DisplayDiscontinuedMessage:!1,CurrentStoreName:"KLEIBERIT SE & Co. KG",InStock:!0,AllowAddingOnlyExistingAttributeCombinations:!1,Id:130,CustomProperties:{}};window.Kleiberit.ProductDetails.getState().selectedVariant=n;totalTimeout=100;setaddtocarddiv(n.Id);const t=document.getElementById("productfulldescription-container");wrapListOfDetailsWithTitle(t)})