jQuery(function($){if(Shop.values.licenseId!=225478){if($(document).width()<768){return;}} let mx_products_data={};let mx_after_init_ops={};var menu_array={"pl_PL":[{"id":"7466","date_added":"2023-07-07 15:32:13","shop_id":"965","active":"1","nazwa":"Wszystkie kategorie","lang":"pl_PL","category_id":"0","category_name":"Wszystkie kategorie","ilosc_zagniezdzen":"2","styl":"kafelki","prawy_box":"produkt","prawy_box_html":"","prawy_box_produkt_html1":"","prawy_box_produkt_html2":"","prawy_box_product_count":"1","prawy_box_product_type":"losowe","prawy_box_product_losowe_cat":"tak","prawy_box_product_losowe_promo":"tak","prawy_box_product_zmieniaj":"category","prawy_box_product_ids":"","dolny_box":"0","dolny_box_html":"","dolny_box_produkt_html1":"","dolny_box_produkt_html2":"","dolny_box_product_count":"1","dolny_box_product_type":"losowe","dolny_box_product_losowe_cat":"tak","dolny_box_product_losowe_promo":"tak","dolny_box_product_zmieniaj":"tak","dolny_box_product_ids":"","kolor1":"#ebdacc","kolor2":"#555555","kolor3":"#ffffff","menu_full_width":"0","mode":"full_menu","fs_background":"#aaaaaa","window_background":"#dddddd","pos_top":"0","padding":"0","shadow_spread":"0","shadow_color":"#a4a4a4","border_radius":"0","border_radius_width":"0","animation_time":"30","animation_type":"fade","bg_shade":"header","bg_shade_color":"#000000","bg_shade_opacity":"0.3","li_bg":"0","li_color":"#000000","li_change_color":"0","view_config":"{\"menu_col_count\":1,\"menu_col_width\":{\"1\":100,\"2\":0,\"3\":0},\"menu_width\":\"80\",\"prawy_box_width\":20,\"dolny_col_produkt_left_width\":0,\"dolny_col_produkt_width\":100,\"dolny_col_produkt_right_width\":0,\"menu_col_width_user\":{},\"width_user\":{\"menu_width\":\"80\",\"prawy_box_width\":0},\"menu_col_count_user_add\":0,\"categories_custom_positions\":{\"1\":{},\"2\":{},\"3\":{}},\"menu_grid_colnum\":\"5\",\"menu_grid_catnum\":4,\"menu_grid_showmore\":1,\"menu_grid_moretext\":\"wi\u0119cej...\",\"categories_style\":{\"bold\":{},\"color\":{},\"font-family\":{},\"font-size\":{},\"icon\":{},\"icon_color\":{},\"icon_custom\":{}},\"padding\":{\"menu_col\":\"15\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"15\",\"dolny_box\":\"15\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"0\",\"bottom_box_all\":\"0\"},\"border\":{\"menu_col\":\"border-top:4px solid #ebdacc;border-right:0;border-bottom:0;border-left:0;\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"border-top:4px solid #ebdacc;border-right:0;border-bottom:0;border-left:0;\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"\",\"bottom_box_all\":\"\"},\"background\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"#ebdacc\",\"bottom_box_all\":\"#ebdacc\"},\"background_image\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\",\"bottom_box_cats\":\"\",\"bottom_box_all\":\"\"},\"color\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\"},\"font-size\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\"},\"font-family\":{\"menu_col\":\"\",\"menu_col_1\":\"\",\"menu_col_2\":\"\",\"menu_col_3\":\"\",\"prawy_box\":\"\",\"dolny_box\":\"\",\"dolny_box_left\":\"\",\"dolny_box_right\":\"\"},\"categories_hidden\":{},\"categories_children_hidden\":{}}","font_main":"","font_cat1":"","font_cat2":"","font_cat3":"","font_siatka_in":"13","font_siatka_prefix":"","kolor_hover_lvl1":"#000000","kolor_hover_lvl2":"#000000","kolor_hover_lvl3":"#000000","kolor_dziobek_lvl1":"#9d9d9d","kolor_dziobek_lvl2":"#9d9d9d","kolor_produkt_nazwa":"#000000","kolor_produkt_staracena":"#000000","kolor_produkt_cena":"#000000","czcionka_produkt_nazwa":"18","czcionka_produkt_staracena":"13","czcionka_produkt_cena":"15","produkt_efekt":"","bottom_box_all":"tak","bottom_box_all_html":"
Darmowa dostawa za 0 z\u0142 na terenie Polski<\/strong><\/a><\/span><\/p>","bottom_box_cats":"","bottom_box_cats_html":"","change_kolor_hover_lvl1":"0","change_kolor_hover_lvl2":"0","change_kolor_hover_lvl3":"0","change_kolor_dziobek_lvl1":"1","change_kolor_dziobek_lvl2":"1","change_kolor_produkt_nazwa":"0","change_kolor_produkt_staracena":"0","change_kolor_produkt_cena":"0","bottom_box_cats_div_height":"80","wybrany_szablon":"min_2_kafelki_box","add_css":"","custom_shadow":"","transition":"0.15","change_product_cat2":"0","siatka_more_bg_color":"","bg_shade_top_margin":"0","menu_width_selector":"","prawy_product_ids":{"37":["104"],"39":["239"],"58":["355"],"61":["261"],"16":["55"],"38":["339"],"40":["145"],"29":["236"],"55":["245"],"35":["176"],"36":["221"],"54":["231"],"0":["176"]}}]};var shop_id=965;let mxFnGetMegamenuHtml=function(shop_id,menu_id,env,config,menu_items,view_config){function mxShow(el){el.show();}
function mxHide(el){el.hide();}
function mxGetCurrentFontColor(cat_id,menu_col_i){current_font_color=config["kolor2"];if(cat_id in view_config["categories_style"]["color"]&&view_config["categories_style"]["color"][cat_id].length>1){current_font_color=view_config["categories_style"]["color"][cat_id];}
else if(view_config["color"]["menu_col_"+menu_col_i].length>1){current_font_color=view_config["color"]["menu_col_"+menu_col_i];}
else if(view_config["color"]["menu_col"].length>1){current_font_color=view_config["color"]["menu_col"];}
return current_font_color;}
function mxComputeColumnNumber(cat_divs_cid,cat_pos_3,children_count,children_col_count){cat_pos_3_mod=cat_pos_3;if(children_count%children_col_count==0){cat_pos_3_mod=cat_pos_3+1;}
col_computed_i=Math.max(1,Math.ceil(((cat_pos_3_mod)/ children_count)/(1 / children_col_count)));return col_computed_i;}
function showProducts(menu_id,prawy_produkt_div_produkty,product_ids){if(env==='admin'){showProductsAdmin(prawy_produkt_div_produkty,product_ids);return true;}
if(Shop.values.licenseId==='74187'){}
all_products_dict={};for(cat_id in product_ids){for(cp_k in product_ids[cat_id]){all_products_dict[product_ids[cat_id][cp_k]]=1;}}
products_0=product_ids[0];products_0=shuffle(products_0);mx_after_init_ops[menu_id]={'first_product':products_0[0],'all_products_dict':all_products_dict,'prawy_produkt_div_produkty':prawy_produkt_div_produkty,'mxGetProductBox':mxGetProductBox,};return true;}
let mxGetProductBox=function(current_product){kolor_produkt_nazwa=config["kolor2"];kolor_produkt_staracena=config["kolor2"];kolor_produkt_cena=config["kolor1"];if("kolor_produkt_nazwa"in config&&config["kolor_produkt_nazwa"].length>1&&"change_kolor_produkt_nazwa"in config&&parseInt(config["change_kolor_produkt_nazwa"])>0){kolor_produkt_nazwa=config["kolor_produkt_nazwa"];}
if("kolor_produkt_staracena"in config&&config["kolor_produkt_staracena"].length>1&&"change_kolor_produkt_staracena"in config&&parseInt(config["change_kolor_produkt_staracena"])>0){kolor_produkt_staracena=config["kolor_produkt_staracena"];}
if("kolor_produkt_cena"in config&&config["kolor_produkt_cena"].length>1&&"change_kolor_produkt_cena"in config&&parseInt(config["change_kolor_produkt_cena"])>0){kolor_produkt_cena=config["kolor_produkt_cena"];}
czcionka_produkt_nazwa='inherit';czcionka_produkt_staracena='inherit';czcionka_produkt_cena='inherit';if("czcionka_produkt_nazwa"in config&&config["czcionka_produkt_nazwa"].length>1){czcionka_produkt_nazwa=config["czcionka_produkt_nazwa"]+'px';}
if("czcionka_produkt_staracena"in config&&config["czcionka_produkt_staracena"].length>1){czcionka_produkt_staracena=config["czcionka_produkt_staracena"]+'px';}
if("czcionka_produkt_cena"in config&&config["czcionka_produkt_cena"].length>1){czcionka_produkt_cena=config["czcionka_produkt_cena"]+'px';}
prawy_produkt_a=$('').css({'color':kolor_produkt_nazwa,'font-size':czcionka_produkt_nazwa,'line-height':'24px','text-align':'center','display':'block','padding-bottom':'10px',});if("main_image"in current_product&¤t_product["main_image"].length>0){main_image_path='/environment/cache/images/300_300_productGfx_'+current_product["main_image_filename"];}
else{main_image_path='/environment/cache/images/300_300_productGfx___overlay.jpg';}
currency_postfix_tmp='';if(env=='admin'){main_image_path=current_product["gfx_url"];currency_postfix_tmp=' zł';}
prawy_produkt_img=$('').css({'max-width':'100%','max-height':'210px',});prawy_produkt_img_div=$(''+current_product["price"]["gross"]["base"].replace('.',',')+currency_postfix_tmp+'