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":35410,"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":{"3475":{"quantity":2,"price":0}},"producers":{},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}},{"productId":174844,"name":"","image":"","price":0,"description":" Dodaj produkt za 16,89 z\u0142 \u2665<\/strong><\/span><\/p>","settings":{"blockBuying":false,"categoriesChildrens":false,"sumCategories":false,"sumProducers":false,"showHigherPrices":true,"needAllSettings":true,"skipCountLimit":false,"highestPrice":false,"price":0,"categories":{"3476":{"quantity":1,"price":0}},"producers":{},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}},{"productId":34923,"name":"","image":"","price":99,"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":99,"categories":{},"producers":{},"products":{},"usersGroups":{"0":"Wszystkie grupy klient\u00f3w"}}}]};let freeProductsIds={"pl_PL":[35410,174844,34923]};let allFreeProductsIds={"pl_PL":[35410,174844,34923]};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{$('