
$("#modal-container").html("<div class=\'modal modal-fullscreen\' role=\'dialog\' tabindex=\'-1\'>\n<div class=\'modal-dialog modal-dialog-centered modal-lg\' role=\'document\'>\n<div class=\'modal-content\'>\n<div class=\'modal-header\'>\n<h5 class=\'modal-title\'>Select a product for shopping cart<\/h5>\n<button aria-label=\'Close\' class=\'close\' data-dismiss=\'modal\' type=\'button\'>\n<span aria-hidden=\'true\'>×<\/span>\n<\/button>\n<\/div>\n<div class=\'modal-body\' data-track-modal-analytics>\n<div class=\'row justify-content-center align-items-stretch list-group-selector\'>\n<div class=\'col-12 col-md-6\'>\n<a data-product-path-in-modal=\"true\" href=\"/ron-thompson-arezzo-7-210cm-5-20g-3000fd-inc-0-30mm\"><div class=\'tile-img tile-group-selector\'>\n<img alt=\'Ron Thompson Arezzo 2,1 m 5 - 20 g\' class=\'img-fluid\' data-image-change src=\'https://muzikercdn.com/uploads/products/3327/332701/thumb_519e7139.jpg\'>\n<\/div>\n<p class=\'product-tile-header\' data-product-name title=\'Ron Thompson Arezzo 2,1 m 5 - 20 g\'>\nRon Thompson Arezzo 2,1 m 5 - 20 g\n<\/p>\n<\/a><div class=\'d-flex align-items-center justify-content-between\'>\n<div class=\'product-price-group-selector\' data-product-price><\/div>\n<\/div>\n<\/div>\n<div class=\'col-12 col-md-6\'>\n<div class=\'d-flex flex-column justify-content-between h-100\' data-group-products=\'[{&quot;param_values&quot;:&quot;2,1_m|5_-_20_g|&quot;,&quot;path&quot;:&quot;/ron-thompson-arezzo-7-210cm-5-20g-3000fd-inc-0-30mm&quot;,&quot;thumb_image&quot;:&quot;https://muzikercdn.com/uploads/products/3327/332701/thumb_519e7139.jpg&quot;,&quot;image&quot;:{&quot;icon&quot;:&quot;https://muzikercdn.com/uploads/products/3327/332701/icon_519e7139.jpg&quot;,&quot;icon_base&quot;:&quot;https://muzikercdn.com/uploads/products/3327/332701/icon_base_519e7139.jpg&quot;},&quot;technical_params&quot;:{&quot;28&quot;:&quot;2,1_m&quot;,&quot;574&quot;:&quot;5_-_20_g&quot;},&quot;id_hash&quot;:&quot;849da0d204&quot;,&quot;name&quot;:&quot;Ron Thompson Arezzo 2,1 m 5 - 20 g&quot;,&quot;code&quot;:324772,&quot;price_with_vat&quot;:&quot;31.9&quot;,&quot;brand&quot;:&quot;Ron Thompson&quot;,&quot;vat_payer_price_without_vat&quot;:&quot;25.93&quot;,&quot;eshop_available&quot;:true,&quot;is_set&quot;:false,&quot;add_to_basket&quot;:true},{&quot;param_values&quot;:&quot;2,4_m|10_-_30_g|&quot;,&quot;path&quot;:&quot;/ron-thompson-arezzo-8-240cm-10-30g-4000fd-inc-0-35mm&quot;,&quot;thumb_image&quot;:&quot;https://muzikercdn.com/uploads/products/3327/332704/thumb_c00d0520.jpg&quot;,&quot;image&quot;:{&quot;icon&quot;:&quot;https://muzikercdn.com/uploads/products/3327/332704/icon_c00d0520.jpg&quot;,&quot;icon_base&quot;:&quot;https://muzikercdn.com/uploads/products/3327/332704/icon_base_c00d0520.jpg&quot;},&quot;technical_params&quot;:{&quot;28&quot;:&quot;2,4_m&quot;,&quot;574&quot;:&quot;10_-_30_g&quot;},&quot;id_hash&quot;:&quot;56ebd18dd3&quot;,&quot;name&quot;:&quot;Ron Thompson Arezzo 2,4 m 10 - 30 g&quot;,&quot;code&quot;:324773,&quot;price_with_vat&quot;:&quot;31.9&quot;,&quot;brand&quot;:&quot;Ron Thompson&quot;,&quot;vat_payer_price_without_vat&quot;:&quot;25.93&quot;,&quot;eshop_available&quot;:true,&quot;is_set&quot;:false,&quot;add_to_basket&quot;:true}]\' data-selector-position=\'product_list\' data-technical-param-values=\'{&quot;28&quot;:[{&quot;value&quot;:&quot;2,1_m&quot;,&quot;translate_value&quot;:&quot;2,1 m&quot;,&quot;product_image&quot;:null,&quot;position&quot;:0},{&quot;value&quot;:&quot;2,4_m&quot;,&quot;translate_value&quot;:&quot;2,4 m&quot;,&quot;product_image&quot;:null,&quot;position&quot;:1}],&quot;574&quot;:[{&quot;value&quot;:&quot;5_-_20_g&quot;,&quot;translate_value&quot;:&quot;5 - 20 g&quot;,&quot;product_image&quot;:null,&quot;position&quot;:26},{&quot;value&quot;:&quot;10_-_30_g&quot;,&quot;translate_value&quot;:&quot;10 - 30 g&quot;,&quot;product_image&quot;:null,&quot;position&quot;:41}]}\' id=\'group_selector_section\'>\n<div class=\'row\'>\n<div class=\'col-12 mb-3\' data-param-id=\'28\' data-param-position=\'1\' data-param-type=\'select_box\'>\n<div class=\'d-flex flex-column justify-content-between h-100\'>\n<div class=\'product-select-text js-param-name d-flex mb-2 flex-wrap\'>\n<div class=\'counter-green mr-2\'>\n1\n<\/div>\nLength\n<div class=\'js-param-value param-value ml-2\'><\/div>\n<\/div>\n<select class=\'no-select2 select-product\' data-selector-for=\'28\'>\n<option disabled=\'disabled\' hidden selected=\'selected\' value=\'\'>Select an option<\/option>\n<\/select>\n<\/div>\n<\/div>\n<div class=\'col-12 mb-3\' data-param-id=\'574\' data-param-position=\'2\' data-param-type=\'select_box\'>\n<div class=\'d-flex flex-column justify-content-between h-100\'>\n<div class=\'product-select-text js-param-name d-flex mb-2 flex-wrap\'>\n<div class=\'counter-green mr-2\'>\n2\n<\/div>\nCasting Weight\n<div class=\'js-param-value param-value ml-2\'><\/div>\n<\/div>\n<select class=\'no-select2 select-product\' data-selector-for=\'574\'>\n<option disabled=\'disabled\' hidden selected=\'selected\' value=\'\'>Select an option<\/option>\n<\/select>\n<\/div>\n<\/div>\n<\/div>\n<div class=\'row\'>\n<div class=\'col-12\'>\n<div class=\'d-flex\'>\n<div class=\'w-100\' data-analytics-actions=\'[&quot;addProductToBasket&quot;]\' data-analytics-data-click-event=\'[&quot;{\\&quot;trackers\\&quot;:[\\&quot;mainTracker\\&quot;,\\&quot;generalTracker\\&quot;],\\&quot;fieldsObject\\&quot;:{\\&quot;hitType\\&quot;:\\&quot;event\\&quot;,\\&quot;eventCategory\\&quot;:\\&quot;UX\\&quot;,\\&quot;eventAction\\&quot;:\\&quot;click\\&quot;,\\&quot;eventLabel\\&quot;:\\&quot;add to cart from listing\\&quot;}}&quot;, &quot;{\\&quot;trackers\\&quot;:[\\&quot;mainTracker\\&quot;,\\&quot;generalTracker\\&quot;],\\&quot;fieldsObject\\&quot;:{\\&quot;hitType\\&quot;:\\&quot;event\\&quot;,\\&quot;eventCategory\\&quot;:\\&quot;Basket\\&quot;,\\&quot;eventAction\\&quot;:\\&quot;Add\\&quot;,\\&quot;eventLabel\\&quot;:\\&quot;\\&quot;,\\&quot;eventValue\\&quot;:0}}&quot;]\' data-analytics-data-ecommerce-set-action=\'{&quot;actionName&quot;:&quot;add&quot;}\' data-analytics-data-ecommerce-trackers=\'[&quot;mainTracker&quot;, &quot;generalTracker&quot;]\' data-analytics-ga-data=\'\' data-analytics-track data-selector-analytics>\n<form class=\"text-center\" id=\"new_public_shop_basket_item_form\" autocomplete=\"off\" role=\"form\" action=\"/shop/basket_items\" accept-charset=\"UTF-8\" data-remote=\"true\" method=\"post\"><input value=\"1\" type=\"hidden\" name=\"public_shop_basket_item_form[quantity]\" id=\"public_shop_basket_item_form_quantity\" />\n<input data-basket-product-id-hash=\"true\" type=\"hidden\" name=\"public_shop_basket_item_form[product_hash]\" id=\"public_shop_basket_item_form_product_hash\" />\n<input value=\"standard\" data-basket-product-type=\"true\" data-basket-extra-gift=\"false\" type=\"hidden\" name=\"public_shop_basket_item_form[item_type]\" id=\"public_shop_basket_item_form_item_type\" />\n<input type=\"submit\" name=\"commit\" value=\"Add to Cart\" class=\"btn btn-buy btn-green my-2\" disabled=\"disabled\" data-analytics-add-to-basket=\"true\" data-add-to-cart-button=\"true\" data-disable-with=\"Add to Cart\" />\n<\/form><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\'modal-footer\'>\n<button class=\'btn btn-outline-dark\' data-dismiss=\'modal\' type=\'button\'>Close<\/button>\n<\/div>\n\n<\/div>\n<\/div>\n<\/div>\n");
$("#modal-container").find('.modal').modal();
PublicUtility.Layout.initInScope('.modal');

var groupSelectorSection;

groupSelectorSection = $('#group_selector_section');

if (groupSelectorSection.length) {
  new PublicUtility.ProductGroupSelector(groupSelectorSection);
}

new PublicUtility.Analytics('[data-track-modal-analytics]')
