`);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:134,text:"Walze 0,139 kg, 280,58 € / kg, 39,00 € zzgl. MwSt.",html:'Walze 0,139 kg<\/span> 280,58 € / kg<\/span> 39,00 € 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:"280,58 € / kg",BasePricePAngVValue:39,Price:"39,00 €",PriceValue:39,Quantity:1,CustomProperties:{}}],AssociatedProducts:[],DefaultPictureZoomEnabled:!1,DefaultPictureModel:{ImageUrl:"https://www.kleiberit-direct.com/images/thumbs/0000170_0000170_0_320.jpg",ThumbImageUrl:null,FullSizeImageUrl:"https://www.kleiberit-direct.com/images/thumbs/0000170_0000170_0.jpg",Title:"892.8 Gupfo Moosgummi Walze - 75mm Walze 0,139 kg",AlternateText:"892.8 Gupfo Moosgummi Walze - 75mm Walze 0,139 kg",Id:0,CustomProperties:{}},PictureModels:[{ImageUrl:"https://www.kleiberit-direct.com/images/thumbs/0000170_0000170_0_320.jpg",ThumbImageUrl:"https://www.kleiberit-direct.com/images/thumbs/0000170_0000170_0_60.jpg",FullSizeImageUrl:"https://www.kleiberit-direct.com/images/thumbs/0000170_0000170_0.jpg",Title:"892.8 Gupfo Moosgummi Walze - 75mm Walze 0,139 kg",AlternateText:"892.8 Gupfo Moosgummi Walze - 75mm Walze 0,139 kg",Id:170,CustomProperties:{}}],VideoModels:[],Name:"Walze 0,139 kg",ShortDescription:"",FullDescription:"",JsonLd:null,MetaKeywords:"",MetaDescription:"",MetaTitle:"",SeName:"walze-0139-kg",VisibleIndividually:!1,ProductType:5,ShowSku:!0,Sku:"89289500",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:"39,00 € zzgl. MwSt.",PriceValue:39,PriceWithDiscount:null,PriceWithDiscountValue:null,CustomerEntersPrice:!1,CallForPrice:!1,ProductId:134,HidePrices:!1,IsRental:!1,RentalPrice:null,RentalPriceValue:null,DisplayTaxShippingInfo:!0,BasePricePAngV:"280,58 € / kg",BasePricePAngVValue:39,CustomProperties:{}},AddToCart:{ProductId:134,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:134,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:134,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:134,CustomProperties:{}};window.Kleiberit.ProductDetails.getState().selectedVariant=n;totalTimeout=100;setaddtocarddiv(n.Id);const t=document.getElementById("productfulldescription-container");wrapListOfDetailsWithTitle(t)})