(function(){var a,b,c,d;a=27,c=function(){var a,b;return b='
',(a=$(".boxPopUp2-overlay")).length>0?a:$(b)},d=function(){var b,d,e,f,g,h;return h=$(this).data("template"),e='\n \n
',d=c(),b=$(e),d.appendTo($("body")).fadeIn(),b.appendTo($("body")).fadeIn(),f=function(){return d.fadeOut(),b.remove(),$(document).off("click",f)},g=function(b){return b.keyCode===a?(f(),$(document).off("keyup",g)):void 0},d.on("click",f),$(document).on("keyup",g),$(window).on("vtex.modal.hide",f),$(window).on("modalHide.vtex",f),$.get(h).done(function(a){return b.find(".skuWrap_").html($(a))})},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);