(function(){var a,b,c,d;a=27,c=function(){var a,b;return b='<div class="boxPopUp2-overlay boxPopUp2-clickActive" style="display: none;"></div>',(a=$(".boxPopUp2-overlay")).length>0?a:$(b)},d=function(b){var d,e,f,g,h,i;return i=$(this).data("template"),f='<div class="boxPopUp2 vtexsm-popupContent freeContentMain popupOpened sku-selector" style="position: fixed;">\n	<div class="boxPopUp2-wrap">\n		<div class="boxPopUp2-content vtexsm-popupContent freeContentPopup" style="position: fixed;">\n			<div class="skuWrap_ freeContent vtexsc-selectSku">\n				Carregando...\n			</div>\n		</div>\n	</div>\n</div>',e=c(),d=$(f),e.appendTo($("body")).fadeIn(),d.appendTo($("body")).fadeIn(),g=function(){return e.fadeOut(),d.remove(),$(document).off("click",g)},h=function(b){return b.keyCode===a?(g(),$(document).off("keyup",h)):void 0},e.on("click",g),$(document).on("keyup",h),$(window).on("vtex.modal.hide",g),$(window).on("modalHide.vtex",g),$.get(i).done(function(a){return d.find(".skuWrap_").html($(a.trim()))})},b=function(){return $(".to-bind-modal").each(function(){return $(this).removeClass("to-bind-modal").on("click",d)})},$(document).ready(b),$(document).on("ajaxComplete",b)}).call(this);