`);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:310,text:"Kartuschenpresse 0,776 kg, 65,72 € / kg, 51,00 € zzgl. MwSt.",html:'Kartuschenpresse 0,776 kg<\/span> 65,72 € / kg<\/span> 51,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:"65,72 € / kg",BasePricePAngVValue:51,Price:"51,00 €",PriceValue:51,Quantity:1,CustomProperties:{}}],AssociatedProducts:[],DefaultPictureZoomEnabled:!1,DefaultPictureModel:{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000091_0000091_0_320.jpg",ThumbImageUrl:null,FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000091_0000091_0.jpg",Title:"894.1 Kartuschenpistole Kartuschenpresse 0,776 kg",AlternateText:"894.1 Kartuschenpistole Kartuschenpresse 0,776 kg",Id:0,CustomProperties:{}},PictureModels:[{ImageUrl:"https://kleiberit-direct.com/images/thumbs/0000091_0000091_0_320.jpg",ThumbImageUrl:"https://kleiberit-direct.com/images/thumbs/0000091_0000091_0_60.jpg",FullSizeImageUrl:"https://kleiberit-direct.com/images/thumbs/0000091_0000091_0.jpg",Title:"894.1 Kartuschenpistole Kartuschenpresse 0,776 kg",AlternateText:"894.1 Kartuschenpistole Kartuschenpresse 0,776 kg",Id:91,CustomProperties:{}}],VideoModels:[],Name:"Kartuschenpresse 0,776 kg",ShortDescription:"",FullDescription:"",JsonLd:null,MetaKeywords:"",MetaDescription:"",MetaTitle:"",SeName:"kartuschenpresse-0776-kg",VisibleIndividually:!1,ProductType:5,ShowSku:!0,Sku:"89419502",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:"51,00 € zzgl. MwSt.",PriceValue:51,PriceWithDiscount:null,PriceWithDiscountValue:null,CustomerEntersPrice:!1,CallForPrice:!1,ProductId:310,HidePrices:!1,IsRental:!1,RentalPrice:null,RentalPriceValue:null,DisplayTaxShippingInfo:!0,BasePricePAngV:"65,72 € / kg",BasePricePAngVValue:51,CustomProperties:{}},AddToCart:{ProductId:310,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:310,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:310,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:310,CustomProperties:{}};window.Kleiberit.ProductDetails.getState().selectedVariant=n;totalTimeout=100;setaddtocarddiv(n.Id);const t=document.getElementById("productfulldescription-container");wrapListOfDetailsWithTitle(t)})