let mxOdswiezGratis=function mxOdswiezGratis(basket){};(function appProduktGratisowy($){let position='products';let selector='#table_with_prods_in_basket';let sum_basket='sum_products';let product_border_color='#333333';let product_border_radius='0px';let product_name_font='14px';let product_info_background='rgba(51, 51, 51, 0.6)';let product_info_color='#ffffff';let product_info_font='15px';let product_info_align='left';let product_info_border_color='#333333';let product_info_border_radius='0px';let clicked_on_image='url';let clicked_on_name='url';let clicked_on_button='add';let arrows_background='#d8d8d8';let arrows_color='#333333';let arrows_font='14px';let arrows_border_color='#333333';let arrows_border_radius='0px';let line_color='rgb(169, 104, 66)';let line_end_color='rgb(169, 104, 66)';let line_background_color='rgb(211, 184, 150)';let tag_background_color='rgb(252, 1, 101)';let tag_font_color='rgb(255, 255, 255)';let tag_off_background_color='rgb(255, 255, 255)';let tag_off_font_color='rgb(211, 184, 150)';let tag_font='13px';let tag_padding='5px';let tag_border_radius_tl='10px';let tag_border_radius_tr='10px';let tag_border_radius_br='10px';let product_promo_font='14px';let product_description_font='14px';let shopId=38;let translations_array={"text_addToBasket":{"__default":"wybierz prezent","pl_PL":"DODAJ DO KOSZYKA"},"text_variant":{"__default":"Ten produkt otrzymujesz jako prezent","pl_PL":""},"text_boxhead":{"__default":"Wybierz prezent do Twojego zam\u00f3wienia!","pl_PL":"Wybierz produkt do swojego zam\u00f3wienia"},"text_tag":{"__default":"xxx","pl_PL":"prezent za 1z\u0142 przy zakupach powy\u017cej xxx"},"text_productExceed":{"__default":"W koszyku jest ju\u017c maksymalna liczba prezent\u00f3w. Usu\u0144 kt\u00f3ry\u015b z nich, aby zmieni\u0107 wyb\u00f3r.","pl_PL":"W koszyku jest ju\u017c maksymalna liczba prezent\u00f3w. Usu\u0144 kt\u00f3ry\u015b z nich, aby zmieni\u0107 wyb\u00f3r."},"text_productLowFreeLeft":{"__default":"Gratisy s\u0105 dost\u0119pne dla zam\u00f3wie\u0144 o warto\u015bci powy\u017cej yyy","pl_PL":"Gratisy s\u0105 dost\u0119pne dla zam\u00f3wie\u0144 o warto\u015bci powy\u017cej yyy"},"text_productLowPrice":{"__default":"Brakuje Ci jeszcze xxx, \u017ceby wybra\u0107 ten gratis.","pl_PL":"Brakuje Ci jeszcze xxx, \u017ceby wybra\u0107 ten prezent."},"text_productLowMaxPrice":{"__default":"Prezent dost\u0119pny dla produkt\u00f3w powy\u017cej yyy","pl_PL":"Prezent za 1z\u0142 dost\u0119pny dla produkt\u00f3w powy\u017cej yyy"},"text_productAbovePrice":{"__default":"Prezent powy\u017cej xxx","pl_PL":"Prezent przy zam\u00f3wieniu powy\u017cej xxx"},"text_blockBuying":{"__default":"Ten produkt jest dost\u0119pny tylko jako gratis do zam\u00f3wienia","pl_PL":"Ten produkt jest dost\u0119pny tylko jako prezent do zam\u00f3wienia"},"html_boxfooter":{"__default":"","pl_PL":""}};let freeProducts={"pl_PL":[{"productId":40612,"name":"","image":"","price":159,"description":"
Dodaj produkt za 1 z\u0142 \u2665<\/strong><\/span><\/p>","settings":{"blockBuying":false,"categoriesChildrens":false,"sumCategories":false,"sumProducers":false,"showHigherPrices":true,"needAllSettings":true,"skipCountLimit":false,"highestPrice":false,"price":159,"categories":{},"producers":{},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}},{"productId":35880,"name":"","image":"","price":0,"description":" Dodaj produkt za 1 z\u0142 \u2665 <\/strong><\/span><\/p>","settings":{"blockBuying":false,"categoriesChildrens":false,"sumCategories":false,"sumProducers":false,"showHigherPrices":true,"needAllSettings":true,"skipCountLimit":true,"highestPrice":false,"price":0,"categories":{"3463":{"quantity":2,"price":0}},"producers":{},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}},{"productId":173519,"name":"","image":"","price":0,"description":" Dodaj produkt za 9,99 z\u0142<\/strong><\/span> \u2665 Kupuj\u0105c go ratujesz kr\u00f3tkie terminy! \u2665 DATA: 8.09.24<\/p>","settings":{"blockBuying":false,"categoriesChildrens":false,"sumCategories":false,"sumProducers":false,"showHigherPrices":true,"needAllSettings":true,"skipCountLimit":false,"highestPrice":false,"price":0,"categories":{},"producers":{},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}},{"productId":174696,"name":"","image":"","price":0,"description":" Dodaj produkt za 1 z\u0142<\/strong><\/span><\/p>","settings":{"blockBuying":false,"categoriesChildrens":false,"sumCategories":false,"sumProducers":false,"showHigherPrices":true,"needAllSettings":true,"skipCountLimit":false,"highestPrice":false,"price":0,"categories":{},"producers":{"1224":{"quantity":2,"price":0}},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}}]};let freeProductsIds={"pl_PL":[40612,35880,173519,174696]};let allFreeProductsIds={"pl_PL":[40612,35880,173519,174696]};let freeProductsCounts={"0":"1"};let optionGroupId=5;let optionId=6;let delayedPreloader=0;let forceSingleDownload=0;let template=1;let container_margin_bottom=0;let product_padding=0;let product_border_width=0;let product_image_width=200;let product_image_height=200;let product_image_margin=10;let product_name_margin=10;let product_info_margin=20;let product_info_letter_spacing=2;let product_info_border_width=0;let product_width=200;let product_min_margin=10;let product_name_height=40;let product_button_margin=20;let arrows_hover_visible=1;let arrows_width=40;let arrows_height=40;let arrows_margin=-40;let container_margin=0;let arrows_border_width=0;let line_height=10;let line_margin=10;let tag_triangle_height=10;let product_margin=10;let product_promo_margin=10;let product_description_margin=10;freeProducts=freeProducts[Shop.lang.name]||[];freeProductsIds=freeProductsIds[Shop.lang.name]||[];if(location.href.indexOf('mx_debug')!=-1){let types=['blockBuying','categoriesChildrens','sumCategories','sumProducers','showHigherPrices','needAllSettings','skipCountLimit','highestPrice'];let container=$('').css({position:'absolute',top:'80px',left:'50%',transform:'translate(-50%, 0)',background:'white',border:'1px solid #000',padding:'20px','border-radius':'10px','font-family':'Open Sans','text-align':'center','z-index':'999',});$('').find('table');let header=table.append('
').find('tr');for(let item of['productId','price','flags','categories','producers','products','usersGroups']){$(` ${item} `).css({padding:'5px 10px'}).appendTo(header);}
for(let item of freeProducts){let row=$('');let flags=0;for(let type of types){flags<<=1;flags|=item.settings[type];}
$(` ${item.productId} `).css({padding:'5px 10px'}).appendTo(row);$(`${item.settings.price} `).css({padding:'5px 10px'}).appendTo(row);$(`${flags.toString(2).padStart(types.length,0)} `).css({padding:'5px 10px'}).appendTo(row);$(`${JSON.stringify(item.settings.categories).slice(1, -1).replaceAll('},','} `).css({padding:'5px 10px','text-align':'left'}).appendTo(row);$(`
')}${JSON.stringify(item.settings.producers).slice(1, -1).replaceAll('},','} `).css({padding:'5px 10px','text-align':'left'}).appendTo(row);$(`
')}${JSON.stringify(item.settings.products).slice(1, -1).replaceAll('},','} `).css({padding:'5px 10px','text-align':'left'}).appendTo(row);$(`
')}${JSON.stringify(item.settings.usersGroups).slice(1, -1).replaceAll('},','} `).css({padding:'5px 10px','text-align':'left'}).appendTo(row);row.appendTo(table);}
container.append(`
')}'+text_boxhead+'
').insertBefore(container);}
else{$('');};let generateHtml=function generateHtml(){if(waitingForFrontApi||waitingForSoobasket)return;if(!isPreloader)generatePreloader();let isAdding=false;let prevWidth=0;if(container.find('.line_filler').length>0)prevWidth=container.find('.line_filler').get(0).offsetWidth;let tempElement=$('').insertBefore(container);container.remove();container=$('').insertAfter(tempElement);tempElement.remove();if(template==0){container.addClass('template_slider owl-carousel');for(let freeProduct of freeProducts){if(!avaibleIds.includes(freeProduct.productId))continue;let product=productDatas[freeProduct.productId];let name=freeProduct.name!=''?freeProduct.name:product.name;let image=freeProduct.image!=''?freeProduct.image:'/environment/cache/images/300_300_productGfx_'+(product.main_image_filename?product.main_image_filename:'__overlay.jpg');let description=freeProduct.description!=''?freeProduct.description:product.shortDescription;let exceedSkipCountLimit=freeProduct.settings.skipCountLimit&&addedFreeProductsSkippedCountLimit.includes(freeProduct.productId);let exceedCountLimit=!freeProduct.settings.skipCountLimit&&freeProductsLeft<=0;let notEnoughMaxPrice=freeProduct.settings.highestPrice&&maxPrice
`);let mx_name=$(`