`);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:308,text:"Kartuschenpresse 0,83 kg, 45,06 € / kg, 37,40 € zzgl. MwSt.",html:'Kartuschenpresse 0,83 kg<\/span> 45,06 € / kg<\/span> 37,40 € 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:"45,06 € / kg",BasePricePAngVValue:37.4,Price:"37,40 €",PriceValue:37.4,Quantity:1,CustomProperties:{}}],AssociatedProducts:[],DefaultPictureZoomEnabled:!1,DefaultPictureModel:{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000117_0000117_0_320.jpg",ThumbImageUrl:null,FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000117_0000117_0.jpg",Title:"890.1 Doppelkartuschenpresse, Ideal Kartuschenpresse 0,83 kg",AlternateText:"890.1 Doppelkartuschenpresse, Ideal Kartuschenpresse 0,83 kg",Id:0,CustomProperties:{}},PictureModels:[{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000117_0000117_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000117_0000117_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000117_0000117_0.jpg",Title:"890.1 Doppelkartuschenpresse, Ideal Kartuschenpresse 0,83 kg",AlternateText:"890.1 Doppelkartuschenpresse, Ideal Kartuschenpresse 0,83 kg",Id:117,CustomProperties:{}},{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000200_0000200_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000200_0000200_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000200_0000200_0.jpg",Title:"890.1 Doppelkartuschenpresse, Ideal Kartuschenpresse 0,83 kg",AlternateText:"890.1 Doppelkartuschenpresse, Ideal Kartuschenpresse 0,83 kg",Id:200,CustomProperties:{}}],VideoModels:[],Name:"Kartuschenpresse 0,83 kg",ShortDescription:"",FullDescription:"",JsonLd:null,MetaKeywords:"",MetaDescription:"",MetaTitle:"",SeName:"kartuschenpresse-083-kg",VisibleIndividually:!1,ProductType:5,ShowSku:!0,Sku:"89019502",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:"37,40 € zzgl. MwSt.",PriceValue:37.4,PriceWithDiscount:null,PriceWithDiscountValue:null,CustomerEntersPrice:!1,CallForPrice:!1,ProductId:308,HidePrices:!1,IsRental:!1,RentalPrice:null,RentalPriceValue:null,DisplayTaxShippingInfo:!0,BasePricePAngV:"45,06 € / kg",BasePricePAngVValue:37.4,CustomProperties:{}},AddToCart:{ProductId:308,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:308,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:308,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:308,CustomProperties:{}};window.Kleiberit.ProductDetails.getState().selectedVariant=n;totalTimeout=100;setaddtocarddiv(n.Id);const t=document.getElementById("productfulldescription-container");wrapListOfDetailsWithTitle(t)})