// source --> https://mastertips.pt/wp-content/plugins/indeed-membership-pro/assets/js/functions.js function ihc_delete_file_via_ajax(id, u_id, parent, name, hidden_id){ var r = confirm("Are you sure you want to delete?"); if (r) { var s = jQuery(parent).attr('data-h'); jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_delete_attachment_ajax_action", attachemnt_id: id, user_id: u_id, field_name: name, h: s }, success: function (data) { jQuery(hidden_id).val(''); jQuery(parent + ' .ajax-file-upload-filename').remove(); jQuery(parent + ' .ihc-delete-attachment-bttn').remove(); if (jQuery(parent + ' .ihc-member-photo').length){ jQuery(parent + ' .ihc-member-photo').remove(); if (name=='ihc_avatar'){ jQuery(parent).prepend("
"); jQuery(parent + " .ihc-file-upload").css("display", 'block'); } } if (jQuery(parent + " .ihc-file-name-uploaded").length){ jQuery(parent + " .ihc-file-name-uploaded").remove(); } if (jQuery(parent + ' .ajax-file-upload-progress').length){ jQuery(parent + ' .ajax-file-upload-progress').remove(); } if (jQuery(parent + ' .ihc-icon-file-type').length){ jQuery(parent + ' .ihc-icon-file-type').remove(); } } }); } } function ihc_set_form_i(i_id, f_id, l_id, confirm){ /* * i_id = input hidden id * f_id = form id * l_id = level id */ if (confirm){ var ihc_labels = JSON.parse(window.ihc_translated_labels) var c = window.confirm( ihc_labels.delete_level ); if (!c){ return; } } if (jQuery("#ihc_coupon").val()){ jQuery(f_id).append(""); } jQuery(i_id).val(l_id); jQuery(f_id).submit(); } function ihc_dh_selector(id, display){ if (display){ jQuery(id).css('visibility', 'visible'); } else { jQuery(id).css('visibility', 'hidden'); } } function ihc_set_level_ap(l){ jQuery('#ihc_renew_level').val(l); jQuery('#ihc_form_ap_subscription_page').submit(); } function ihc_run_social_reg(s){ var form = jQuery("form#createuser"); jQuery("form#createuser input, form#createuser textarea").each(function(){ ihc_append_input(this.name, this.value, "#ihc_social_login_form"); }); ihc_append_input('sm_type', s, "#ihc_social_login_form"); jQuery("#ihc_social_login_form").submit(); } function ihc_append_input(n,v,w){ jQuery(w).append(""); } function ihc_buy_new_level(href){ if (jQuery("#ihc_coupon").val()){ //we have a coupon var url = href + "&ihc_coupon=" + jQuery("#ihc_coupon").val(); window.location.href = url; } else { window.location.href = href; } } jQuery(document).ready(function(){ jQuery('.ihc-mobile-bttn').on('click', function(){ jQuery('.ihc-ap-menu').toggle(); }); }); function ihc_register_check_via_ajax(the_type){ var target_id = '#' + jQuery('.ihc-form-create-edit [name='+the_type+']').parent().attr('id'); var val1 = jQuery('.ihc-form-create-edit [name='+the_type+']').val(); var val2 = ''; if (the_type=='pass2'){ val2 = jQuery('.ihc-form-create-edit [name=pass1]').val(); } else if (the_type=='confirm_email'){ val2 = jQuery('.ihc-form-create-edit [name=user_email]').val(); } jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_reg_field_ajax", type: the_type, value: val1, second_value: val2 }, success: function (data) { //remove prev notice, if its case jQuery(target_id + ' .ihc-register-notice').remove(); jQuery('.ihc-form-create-edit [name='+the_type+']').removeClass('ihc-input-notice'); if (data==1){ // it's all good } else { jQuery(target_id).append('
'+data+'
'); jQuery('.ihc-form-create-edit [name='+the_type+']').addClass('ihc-input-notice'); } } }); } function ihc_check_login_field(t, e){ var n = jQuery('#notice_' + t); n.fadeOut(500, function(){ n.remove(); }); var target = jQuery('#ihc_login_form [name='+t+']').parent(); var v = jQuery('#ihc_login_form [name='+t+']').val(); if (v==''){ jQuery(target).append('
' + e + '
'); } } function ihc_get_checkbox_radio_value(type, selector){ if (type=='radio'){ var r = jQuery('[name='+selector+']:checked').val(); if (typeof r!='undefined'){ return r; } } else { var arr = []; jQuery('[name=\''+selector+'[]\']:checked').each(function(){ arr.push(this.value); }); if (arr.length>0){ return arr.join(','); } } return ''; } function ihc_register_check_via_ajax_rec(types_arr){ jQuery('.ihc-register-notice').remove(); var fields_to_send = []; //EXCEPTIONS var exceptions = jQuery("#ihc_exceptionsfields").val(); if (exceptions){ var exceptions_arr = exceptions.split(','); } for (var i=0; i-1){ continue; } var is_unique_field = false; jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').removeClass('ihc-input-notice'); var field_type = jQuery('.ihc-form-create-edit [name=' + types_arr[i] + ']').attr('type'); if (typeof field_type=='undefined'){ var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').attr('type'); } if (typeof field_type=='undefined'){ var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '\']').prop('nodeName'); } if (typeof field_type=='undefined'){ var field_type = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').prop('nodeName'); if (field_type=='SELECT'){ field_type = 'multiselect'; } } if (field_type=='checkbox' || field_type=='radio'){ var val1 = ihc_get_checkbox_radio_value(field_type, types_arr[i]); } else if ( field_type=='multiselect' ){ val1 = jQuery('.ihc-form-create-edit [name=\'' + types_arr[i] + '[]\']').val(); if (typeof val1=='object' && val1!=null){ val1 = val1.join(','); } } else { var val1 = jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').val(); if (jQuery('.ihc-form-create-edit [name='+types_arr[i]+']').attr('data-search-unique')){ var is_unique_field = true; } } var val2 = ''; if (types_arr[i]=='pass2'){ val2 = jQuery('.ihc-form-create-edit [name=pass1]').val(); } else if (types_arr[i]=='confirm_email'){ val2 = jQuery('.ihc-form-create-edit [name=user_email]').val(); } else if (types_arr[i]=='tos') { if (jQuery('.ihc-form-create-edit [name=tos]').is(':checked')){ val1 = 1; } else { val1 = 0; } } var params_to_send = {type: types_arr[i], value: val1, second_value: val2}; if (is_unique_field){ params_to_send.is_unique_field = true; } fields_to_send.push(params_to_send); } jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_reg_field_ajax", fields_obj: fields_to_send }, success: function (data) { var obj = JSON.parse(data); var must_submit = 1; for (var j=0; j'+obj[j].value+''); must_submit = 0; } else { jQuery('#'+target_id).append('
'+obj[j].value+'
'); jQuery('.ihc-form-create-edit [name=' + obj[j].type + ']').addClass('ihc-input-notice'); must_submit = 0; } } } if (must_submit==1){ window.must_submit = 1 jQuery(".ihc-form-create-edit").submit(); } else { return false; } } }); } function ihc_payment_gateway_update(v, is_r){ //remove authorize block //remove stripe stuff jQuery('[name=ihc_payment_gateway]').val(v); jQuery('#ihc_submit_bttn').unbind('click'); jQuery('#ihc_authorize_r_fields').fadeOut(200); jQuery('#ihc_braintree_r_fields').fadeOut(200); switch (v){ case 'stripe': jQuery('#ihc_submit_bttn').bind('click', function(e){ e.preventDefault(); var p = jQuery("#iumpfinalglobalp").val(); if ((jQuery("#stripeToken").val() && jQuery("#stripeEmail").val()) || p==0){ jQuery(".ihc-form-create-edit").submit(); return true; } p = p * 100; if (p<50){ p = 50; } iump_stripe.open({ name: jQuery('#iumpfinalglobal_ll').val(), description: jQuery('#iumpfinalglobal_ll').val(), amount: p, currency: jQuery('#iumpfinalglobalc').val(), }); }); break; case 'authorize': if (is_r==1){ jQuery('#ihc_authorize_r_fields').fadeIn(200); } break; case 'braintree': jQuery('#ihc_braintree_r_fields').fadeIn(200); break; } } function iump_stripe_price(){ var p = jQuery("#iumpfinalglobalp").val(); p = p * 100; if (p<50){ p = 50; } return p; } function ihc_buy_new_level_from_ap(l_name, l_amount, lid, url){ var v = jQuery('[name=ihc_payment_gateway]').val(); if (v=='stripe'){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_lid_price", level_id: lid }, success: function (data){ if (data==1){ //it's free ihc_buy_new_level(url+'&ihc_payment_gateway='+v); } else { // make payment with stripe ihc_stripe_payment(l_name, l_amount, lid); } } }); // } else { var c = jQuery('#ihc_coupon').val(); if (typeof v!='undefined'){ url = url +'&ihc_payment_gateway='+v; } ihc_buy_new_level(url); } } function ihc_renew_function(i_id, f_id, l_id, l_name, l_amount){ /* * i_id = input hidden id * f_id = form id * l_id = level id * l_name = level name * l_amount = level amount */ var v = jQuery('[name=ihc_payment_gateway]').val(); if (v=='stripe'){ if (typeof ihc_stripe_renew_payment == 'function') { ihc_stripe_renew_payment(l_name, l_amount, l_id); return false; } } else { ihc_set_form_i(i_id, f_id, l_id); } } function ihc_payment_select_icon(t){ jQuery('.ihc-payment-icon').removeClass('ihc-payment-select-img-selected'); jQuery('#ihc_payment_icon_'+t).addClass('ihc-payment-select-img-selected'); } //////////////logic condition function ihc_ajax_check_field_condition_onblur_onclick(check_name, field_id, field_name, show){ var check_value = jQuery(".ihc-form-create-edit [name="+check_name+"]").val(); ihc_ajax_check_field_condition(check_value, field_id, field_name, show); } function ihc_ajax_check_onClick_field_condition(check_name, field_id, field_name, type, show){ if (type=='checkbox'){ var vals = []; jQuery(".ihc-form-create-edit [name='"+check_name+"[]']:checked").each(function() { vals.push(jQuery(this).val()); }); var check_value = vals.join(','); } else { var check_value = jQuery(".ihc-form-create-edit [name="+check_name+"]:checked").val(); } ihc_ajax_check_field_condition(check_value, field_id, field_name, show); } function ihc_ajax_check_onChange_multiselect_field_condition(check_name, field_id, field_name, show){ var obj = jQuery(".ihc-form-create-edit [name='"+check_name+"[]']").val(); if (obj!=null){ var check_value = obj.join(','); ihc_ajax_check_field_condition(check_value, field_id, field_name, show); } } function ihc_ajax_check_field_condition(check_value, field_id, field_name, show){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_logic_condition_value", val: check_value, field: field_name }, success: function (data){ var str = jQuery("#ihc_exceptionsfields").val(); if (str){ var arr = str.split(','); var index = arr.indexOf(field_name); } else { var arr = []; } if (data=='1'){ if (show==1){ jQuery(field_id).fadeIn(200); if (arr.indexOf(field_name)!=-1){ arr.splice(index, 1); } } else { jQuery(field_id).fadeOut(200); if (arr.indexOf(field_name)==-1){ arr.push(field_name); } } } else { if (show==1){ jQuery(field_id).fadeOut(200); if (arr.indexOf(field_name)==-1){ arr.push(field_name); } } else { jQuery(field_id).fadeIn(200); if (arr.indexOf(field_name)!=-1){ arr.splice(index, 1); } } } if (arr){ var str = arr.join(','); jQuery("#ihc_exceptionsfields").val(str); } } }); } function ihc_check_unique_value_field(the_type){ var target_id = '#' + jQuery('.ihc-form-create-edit [name='+the_type+']').parent().attr('id'); var v = jQuery('.ihc-form-create-edit [name='+the_type+']').val(); if (v){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_unique_value_field_register", meta_key: the_type, meta_value: v }, success: function (data) { //remove prev notice, if its case jQuery(target_id + ' .ihc-register-notice').remove(); jQuery('.ihc-form-create-edit [name='+the_type+']').removeClass('ihc-input-notice'); if (data==1){ // it's all good } else { jQuery(target_id).append('
'+data+'
'); jQuery('.ihc-form-create-edit [name='+the_type+']').addClass('ihc-input-notice'); window.must_submit = 0; } } }); } } function ihc_check_invitation_code(){ var target_id = '#' + jQuery('.ihc-form-create-edit #ihc_invitation_code_field').parent().attr('id'); var v = jQuery('#ihc_invitation_code_field').val(); if (v){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_invitation_code_via_ajax", c: v, }, success: function (data) { //remove prev notice, if its case jQuery(target_id + ' .ihc-register-notice').remove(); jQuery('.ihc-form-create-edit #ihc_invitation_code_field').removeClass('ihc-input-notice'); if (data==1){ // it's all good } else { jQuery(target_id).append('
'+data+'
'); jQuery('.ihc-form-create-edit #ihc_invitation_code_field').addClass('ihc-input-notice'); window.must_submit = 0; } } }); } } function ihc_update_cart(){ var lid_val = jQuery('.ihc-form-create-edit [name=lid]').val(); var coupon_val = jQuery('.ihc-form-create-edit [name=ihc_coupon]').val(); var country_val = jQuery('.ihc-form-create-edit #ihc_country_field').val(); var state_val = jQuery('.ihc-form-create-edit [name=ihc_state]').val(); if (jQuery('#ihc_dynamic_price').length){ var d_a = jQuery('#ihc_dynamic_price').val(); } else { var d_a = -1; } var payment_gateway = jQuery('[name=ihc_payment_gateway]').val() jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_get_cart_via_ajax", country: country_val, lid: lid_val, coupon: coupon_val, state: state_val, a: d_a, payment_type: payment_gateway, }, success: function (response){ jQuery('#ihc_cart_wrapper').remove(); jQuery('.ihc-form-create-edit').after(response); } }); } function ihc_show_print(i){ jQuery(i).css('display', 'block'); } function ihc_hide_print(i){ jQuery(i).css('display', 'none'); } function ihc_do_print(i){ var file = jQuery(i).files[0]; var reader = new FileReader(); reader.onload = function(event) { var html = "" + "" + ""+ "" + ""; var win = window.open("about:blank","_blank"); win.document.write(html); }; reader.readAsDataURL(file); } jQuery(document).ready(function(){ var e = jQuery('.ihc-form-create-edit [name=ihc_coupon]'); e.on('blur', function(){ ihc_update_cart(); var p = '#' + e.parent().attr('id'); jQuery(p+' #ihc_coupon_code_check_div_msg').remove(); if (e.val()){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_check_coupon_status_via_ajax", c: e.val(), l: jQuery('.ihc-form-create-edit [name=lid]').val(), }, success: function (r) { var obj = JSON.parse(r); if (obj.is_active){ jQuery(p).append('
' + obj.success_msg + '
'); } else { jQuery(p).append('
' + obj.err_msg + '
'); } setTimeout(function(){jQuery('#ihc_coupon_code_check_div_msg').fadeOut(500, function(){this.remove();});},5000); } }); } }); }); function ihc_update_state_field( updateCart ){ var s = jQuery('.ihc-form-create-edit [name=ihc_state]').length>0; if (s){ var e = jQuery('.ihc-form-create-edit [name=ihc_country]'); jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_get_ihc_state_field", country: e.val(), }, success: function (r) { var f = jQuery('.ihc-form-create-edit [name=ihc_state]'); var p = f.parent(); f.remove(); p.append(r); if (updateCart){ ihc_update_cart() } } }); } } function ihc_remove_social(t){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_remove_sm_from_user", type: t, }, success: function (r) { location.reload(); } }); } function iump_generate_invoice(i){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_generate_invoice", order_id: i }, success: function (r) { if (r){ jQuery('body').append(r); } } }); } function ihc_closePopup(){ jQuery('#popup_box').fadeOut(300, function(){ jQuery(this).remove(); }); } function ihc_deselect_all(n, c){ if (jQuery(c).is(':checked')){ jQuery('[name="'+n+'[]"]').each(function(){ if (jQuery(this).val()!=''){ jQuery(this).attr('checked', false); } }); } } function ihc_dynamic_price_update_global(){ var p = jQuery('#ihc_dynamic_price').val(); jQuery('#iumpfinalglobalp').val(p); ihc_update_cart(); } function ihc_do_usersite_module_delete(i){ var c = confirm(window.ihc_current_question); if (c){ jQuery.ajax({ type : "post", url : decodeURI(window.ihc_site_url)+'/wp-admin/admin-ajax.php', data : { action: "ihc_do_user_delete_blog", lid: i }, success: function (r){ window.location.href = window.ihc_current_url; } }); } }; // source --> https://mastertips.pt/wp-content/plugins/indeed-membership-pro/assets/js/printThis.js /* * printThis v1.5 * @desc Printing plug-in for jQuery * @author Jason Day * * Resources (based on) : * jPrintArea: http://plugins.jquery.com/project/jPrintArea * jqPrint: https://github.com/permanenttourist/jquery.jqprint * Ben Nadal: http://www.bennadel.com/blog/1591-Ask-Ben-Print-Part-Of-A-Web-Page-With-jQuery.htm * * Licensed under the MIT licence: * http://www.opensource.org/licenses/mit-license.php * * (c) Jason Day 2015 * * Usage: * * $("#mySelector").printThis({ * debug: false, * show the iframe for debugging * importCSS: true, * import page CSS * importStyle: false, * import style tags * printContainer: true, * grab outer container as well as the contents of the selector * loadCSS: "path/to/my.css", * path to additional css file - us an array [] for multiple * pageTitle: "", * add title to print page * removeInline: false, * remove all inline styles from print elements * printDelay: 333, * variable print delay * header: null, * prefix to html * formValues: true * preserve input/form values * }); * * Notes: * - the loadCSS will load additional css (with or without @media print) into the iframe, adjusting layout */ ; (function($) { var opt; $.fn.printThis = function(options) { opt = $.extend({}, $.fn.printThis.defaults, options); var $element = this instanceof jQuery ? this : $(this); var strFrameName = "printThis-" + (new Date()).getTime(); if (window.location.hostname !== document.domain && navigator.userAgent.match(/msie/i)) { // Ugly IE hacks due to IE not inheriting document.domain from parent // checks if document.domain is set by comparing the host name against document.domain var iframeSrc = "javascript:document.write(\"\")"; var printI = document.createElement('iframe'); printI.name = "printIframe"; printI.id = strFrameName; printI.className = "MSIE"; document.body.appendChild(printI); printI.src = iframeSrc; } else { // other browsers inherit document.domain, and IE works if document.domain is not explicitly set var $frame = $("'+this.content+""),null!==i.iframeHeight&&this.$element.find("."+r+"-iframe").css("height",i.iframeHeight)):this.$element.html('
'+this.content+"
"),null!==this.options.background&&this.$element.css("background",this.options.background),this.$wrap=this.$element.find("."+r+"-wrap"),null===i.zindex||isNaN(parseInt(i.zindex))||(this.$element.css("z-index",i.zindex),this.$navigate.css("z-index",i.zindex-1),this.$overlay.css("z-index",i.zindex-2)),""!==i.radius&&this.$element.css("border-radius",i.radius),""!==i.padding&&this.$element.find("."+r+"-content").css("padding",i.padding),""!==i.theme&&("light"===i.theme?this.$element.addClass(r+"-light"):this.$element.addClass(i.theme)),i.rtl===!0&&this.$element.addClass(r+"-rtl"),i.openFullscreen===!0&&(this.isFullscreen=!0,this.$element.addClass("isFullscreen")),this.createHeader(),this.recalcWidth(),this.recalcVerticalPos(),!n.options.afterRender||"function"!=typeof n.options.afterRender&&"object"!=typeof n.options.afterRender||n.options.afterRender(n)},createHeader:function(){this.$header=t('

'+this.options.title+'

'+this.options.subtitle+'

'),this.options.closeButton===!0&&this.$header.find("."+r+"-header-buttons").append('"),this.options.fullscreen===!0&&this.$header.find("."+r+"-header-buttons").append('"),this.options.timeoutProgressbar===!0&&this.$header.prepend('
'),""===this.options.subtitle&&this.$header.addClass(r+"-noSubtitle"),""!==this.options.title&&(null!==this.options.headerColor&&(this.options.borderBottom===!0&&this.$element.css("border-bottom","3px solid "+this.options.headerColor),this.$header.css("background",this.options.headerColor)),null===this.options.icon&&null===this.options.iconText||(this.$header.prepend(''),null!==this.options.icon&&this.$header.find("."+r+"-header-icon").addClass(this.options.icon).css("color",this.options.iconColor),null!==this.options.iconText&&this.$header.find("."+r+"-header-icon").html(this.options.iconText)),this.$element.css("overflow","hidden").prepend(this.$header))},setGroup:function(e){var i=this,n=this.group.name||e;if(this.group.ids=[],void 0!==e&&e!==this.group.name&&(n=e,this.group.name=n,this.$element.attr("data-"+r+"-group",n)),void 0!==n&&""!==n){var o=0;t.each(t("."+r+"[data-"+r+"-group="+n+"]"),function(e,n){i.group.ids.push(t(this)[0].id),i.id==t(this)[0].id&&(i.group.index=o),o++})}},toggle:function(){this.state==l.OPENED&&this.close(),this.state==l.CLOSED&&this.open()},startProgress:function(t){var e=this;this.isPaused=!1,clearTimeout(this.timerTimeout),this.options.timeoutProgressbar===!0?(this.progressBar={hideEta:null,maxHideTime:null,currentTime:(new Date).getTime(),el:this.$element.find("."+r+"-progressbar > div"),updateProgress:function(){if(!e.isPaused){e.progressBar.currentTime=e.progressBar.currentTime+10;var t=(e.progressBar.hideEta-e.progressBar.currentTime)/e.progressBar.maxHideTime*100;e.progressBar.el.width(t+"%"),t<0&&e.close()}}},t>0&&(this.progressBar.maxHideTime=parseFloat(t),this.progressBar.hideEta=(new Date).getTime()+this.progressBar.maxHideTime,this.timerTimeout=setInterval(this.progressBar.updateProgress,10))):this.timerTimeout=setTimeout(function(){e.close()},e.options.timeout)},pauseProgress:function(){this.isPaused=!0},resumeProgress:function(){this.isPaused=!1},resetProgress:function(t){clearTimeout(this.timerTimeout),this.progressBar={},this.$element.find("."+r+"-progressbar > div").width("100%")},open:function(e){function i(){s.state=l.OPENED,s.$element.trigger(l.OPENED),!s.options.onOpened||"function"!=typeof s.options.onOpened&&"object"!=typeof s.options.onOpened||s.options.onOpened(s)}function n(){s.$element.off("click","[data-"+r+"-close]").on("click","[data-"+r+"-close]",function(e){e.preventDefault();var i=t(e.currentTarget).attr("data-"+r+"-transitionOut");void 0!==i?s.close({transition:i}):s.close()}),s.$element.off("click","[data-"+r+"-fullscreen]").on("click","[data-"+r+"-fullscreen]",function(t){t.preventDefault(),s.isFullscreen===!0?(s.isFullscreen=!1,s.$element.removeClass("isFullscreen")):(s.isFullscreen=!0,s.$element.addClass("isFullscreen")),s.options.onFullscreen&&"function"==typeof s.options.onFullscreen&&s.options.onFullscreen(s),s.$element.trigger("fullscreen",s)}),s.$navigate.off("click","."+r+"-navigate-next").on("click","."+r+"-navigate-next",function(t){s.next(t)}),s.$element.off("click","[data-"+r+"-next]").on("click","[data-"+r+"-next]",function(t){s.next(t)}),s.$navigate.off("click","."+r+"-navigate-prev").on("click","."+r+"-navigate-prev",function(t){s.prev(t)}),s.$element.off("click","[data-"+r+"-prev]").on("click","[data-"+r+"-prev]",function(t){s.prev(t)})}var s=this;try{void 0!==e&&e.preventClose===!1&&t.each(t("."+r),function(e,i){if(void 0!==t(i).data().iziModal){var n=t(i).iziModal("getState");"opened"!=n&&"opening"!=n||t(i).iziModal("close")}})}catch(c){}if(function(){if(s.options.history){var t=document.title;document.title=t+" - "+s.options.title,o("#"+s.id),document.title=t,window.$iziModal.history=!0}else window.$iziModal.history=!1}(),this.state==l.CLOSED){if(n(),this.setGroup(),this.state=l.OPENING,this.$element.trigger(l.OPENING),this.$element.attr("aria-hidden","false"),this.options.timeoutProgressbar===!0&&this.$element.find("."+r+"-progressbar > div").width("100%"),this.options.iframe===!0){this.$element.find("."+r+"-content").addClass(r+"-content-loader"),this.$element.find("."+r+"-iframe").on("load",function(){t(this).parent().removeClass(r+"-content-loader")});var u=null;try{u=""!==t(e.currentTarget).attr("href")?t(e.currentTarget).attr("href"):null}catch(c){}if(null===this.options.iframeURL||null!==u&&void 0!==u||(u=this.options.iframeURL),null===u||void 0===u)throw new Error("Failed to find iframe URL");this.$element.find("."+r+"-iframe").attr("src",u)}(this.options.bodyOverflow||h)&&(t("html").addClass(r+"-isOverflow"),h&&t("body").css("overflow","hidden")),this.options.onOpening&&"function"==typeof this.options.onOpening&&this.options.onOpening(this),function(){if(s.group.ids.length>1){s.$navigate.appendTo("body"),s.$navigate.addClass("fadeIn"),s.options.navigateCaption===!0&&s.$navigate.find("."+r+"-navigate-caption").show();var n=s.$element.outerWidth();s.options.navigateArrows!==!1?"closeScreenEdge"===s.options.navigateArrows?(s.$navigate.find("."+r+"-navigate-prev").css("left",0).show(),s.$navigate.find("."+r+"-navigate-next").css("right",0).show()):(s.$navigate.find("."+r+"-navigate-prev").css("margin-left",-(n/2+84)).show(),s.$navigate.find("."+r+"-navigate-next").css("margin-right",-(n/2+84)).show()):(s.$navigate.find("."+r+"-navigate-prev").hide(),s.$navigate.find("."+r+"-navigate-next").hide());var o;0===s.group.index&&(o=t("."+r+"[data-"+r+'-group="'+s.group.name+'"][data-'+r+"-loop]").length,0===o&&s.options.loop===!1&&s.$navigate.find("."+r+"-navigate-prev").hide()),s.group.index+1===s.group.ids.length&&(o=t("."+r+"[data-"+r+'-group="'+s.group.name+'"][data-'+r+"-loop]").length,0===o&&s.options.loop===!1&&s.$navigate.find("."+r+"-navigate-next").hide())}s.options.overlay===!0&&(s.options.appendToOverlay===!1?s.$overlay.appendTo("body"):s.$overlay.appendTo(s.options.appendToOverlay)),s.options.transitionInOverlay&&s.$overlay.addClass(s.options.transitionInOverlay);var a=s.options.transitionIn;"object"==typeof e&&(void 0===e.transition&&void 0===e.transitionIn||(a=e.transition||e.transitionIn),void 0!==e.zindex&&s.setZindex(e.zindex)),""!==a&&void 0!==d?(s.$element.addClass("transitionIn "+a).show(),s.$wrap.one(d,function(){s.$element.removeClass(a+" transitionIn"),s.$overlay.removeClass(s.options.transitionInOverlay),s.$navigate.removeClass("fadeIn"),i()})):(s.$element.show(),i()),s.options.pauseOnHover!==!0||s.options.pauseOnHover!==!0||s.options.timeout===!1||isNaN(parseInt(s.options.timeout))||s.options.timeout===!1||0===s.options.timeout||(s.$element.off("mouseenter").on("mouseenter",function(t){t.preventDefault(),s.isPaused=!0}),s.$element.off("mouseleave").on("mouseleave",function(t){t.preventDefault(),s.isPaused=!1}))}(),this.options.timeout===!1||isNaN(parseInt(this.options.timeout))||this.options.timeout===!1||0===this.options.timeout||s.startProgress(this.options.timeout),this.options.overlayClose&&!this.$element.hasClass(this.options.transitionOut)&&this.$overlay.click(function(){s.close()}),this.options.focusInput&&this.$element.find(":input:not(button):enabled:visible:first").focus(),function p(){s.recalcLayout(),s.timer=setTimeout(p,300)}(),a.on("keydown."+r,function(t){s.options.closeOnEscape&&27===t.keyCode&&s.close()})}},close:function(e){function i(){n.state=l.CLOSED,n.$element.trigger(l.CLOSED),n.options.iframe===!0&&n.$element.find("."+r+"-iframe").attr("src",""),(n.options.bodyOverflow||h)&&(t("html").removeClass(r+"-isOverflow"),h&&t("body").css("overflow","auto")),n.options.onClosed&&"function"==typeof n.options.onClosed&&n.options.onClosed(n),n.options.restoreDefaultContent===!0&&n.$element.find("."+r+"-content").html(n.content),0===t("."+r+":visible").length&&t("html").removeClass(r+"-isAttached")}var n=this;if(this.state==l.OPENED||this.state==l.OPENING){a.off("keydown."+r),this.state=l.CLOSING,this.$element.trigger(l.CLOSING),this.$element.attr("aria-hidden","true"),clearTimeout(this.timer),clearTimeout(this.timerTimeout),n.options.onClosing&&"function"==typeof n.options.onClosing&&n.options.onClosing(this);var o=this.options.transitionOut;"object"==typeof e&&(void 0===e.transition&&void 0===e.transitionOut||(o=e.transition||e.transitionOut)),o===!1||""===o||void 0===d?(this.$element.hide(),this.$overlay.remove(),this.$navigate.remove(),i()):(this.$element.attr("class",[this.classes,r,o,"light"==this.options.theme?r+"-light":this.options.theme,this.isFullscreen===!0?"isFullscreen":"",this.options.rtl?r+"-rtl":""].join(" ")),this.$overlay.attr("class",r+"-overlay "+this.options.transitionOutOverlay),n.options.navigateArrows===!1||h||this.$navigate.attr("class",r+"-navigate fadeOut"),this.$element.one(d,function(){n.$element.hasClass(o)&&n.$element.removeClass(o+" transitionOut").hide(),n.$overlay.removeClass(n.options.transitionOutOverlay).remove(),n.$navigate.removeClass("fadeOut").remove(),i()}))}},next:function(e){var i=this,n="fadeInRight",o="fadeOutLeft",s=t("."+r+":visible"),a={};a.out=this,void 0!==e&&"object"!=typeof e?(e.preventDefault(),s=t(e.currentTarget),n=s.attr("data-"+r+"-transitionIn"),o=s.attr("data-"+r+"-transitionOut")):void 0!==e&&(void 0!==e.transitionIn&&(n=e.transitionIn),void 0!==e.transitionOut&&(o=e.transitionOut)),this.close({transition:o}),setTimeout(function(){for(var e=t("."+r+"[data-"+r+'-group="'+i.group.name+'"][data-'+r+"-loop]").length,o=i.group.index+1;o<=i.group.ids.length;o++){try{a["in"]=t("#"+i.group.ids[o]).data().iziModal}catch(s){}if("undefined"!=typeof a["in"]){t("#"+i.group.ids[o]).iziModal("open",{transition:n});break}if(o==i.group.ids.length&&e>0||i.options.loop===!0)for(var l=0;l<=i.group.ids.length;l++)if(a["in"]=t("#"+i.group.ids[l]).data().iziModal,"undefined"!=typeof a["in"]){t("#"+i.group.ids[l]).iziModal("open",{transition:n});break}}},200),t(document).trigger(r+"-group-change",a)},prev:function(e){var i=this,n="fadeInLeft",o="fadeOutRight",s=t("."+r+":visible"),a={};a.out=this,void 0!==e&&"object"!=typeof e?(e.preventDefault(),s=t(e.currentTarget),n=s.attr("data-"+r+"-transitionIn"),o=s.attr("data-"+r+"-transitionOut")):void 0!==e&&(void 0!==e.transitionIn&&(n=e.transitionIn),void 0!==e.transitionOut&&(o=e.transitionOut)),this.close({transition:o}),setTimeout(function(){for(var e=t("."+r+"[data-"+r+'-group="'+i.group.name+'"][data-'+r+"-loop]").length,o=i.group.index;o>=0;o--){try{a["in"]=t("#"+i.group.ids[o-1]).data().iziModal}catch(s){}if("undefined"!=typeof a["in"]){t("#"+i.group.ids[o-1]).iziModal("open",{transition:n});break}if(0===o&&e>0||i.options.loop===!0)for(var l=i.group.ids.length-1;l>=0;l--)if(a["in"]=t("#"+i.group.ids[l]).data().iziModal,"undefined"!=typeof a["in"]){t("#"+i.group.ids[l]).iziModal("open",{transition:n});break}}},200),t(document).trigger(r+"-group-change",a)},destroy:function(){var e=t.Event("destroy");this.$element.trigger(e),a.off("keydown."+r),clearTimeout(this.timer),clearTimeout(this.timerTimeout),this.options.iframe===!0&&this.$element.find("."+r+"-iframe").remove(),this.$element.html(this.$element.find("."+r+"-content").html()),this.$element.off("click","[data-"+r+"-close]"),this.$element.off("click","[data-"+r+"-fullscreen]"),this.$element.off("."+r).removeData(r).attr("style",""),this.$overlay.remove(),this.$navigate.remove(),this.$element.trigger(l.DESTROYED),this.$element=null},getState:function(){return this.state},getGroup:function(){return this.group},setWidth:function(t){this.options.width=t,this.recalcWidth();var e=this.$element.outerWidth();this.options.navigateArrows!==!0&&"closeToModal"!=this.options.navigateArrows||(this.$navigate.find("."+r+"-navigate-prev").css("margin-left",-(e/2+84)).show(),this.$navigate.find("."+r+"-navigate-next").css("margin-right",-(e/2+84)).show())},setTop:function(t){this.options.top=t,this.recalcVerticalPos(!1)},setBottom:function(t){this.options.bottom=t,this.recalcVerticalPos(!1)},setHeader:function(t){t?this.$element.find("."+r+"-header").show():(this.headerHeight=0,this.$element.find("."+r+"-header").hide())},setTitle:function(t){this.options.title=t,0===this.headerHeight&&this.createHeader(),0===this.$header.find("."+r+"-header-title").length&&this.$header.append('

'),this.$header.find("."+r+"-header-title").html(t)},setSubtitle:function(t){""===t?(this.$header.find("."+r+"-header-subtitle").remove(),this.$header.addClass(r+"-noSubtitle")):(0===this.$header.find("."+r+"-header-subtitle").length&&this.$header.append('

'),this.$header.removeClass(r+"-noSubtitle")),this.$header.find("."+r+"-header-subtitle").html(t),this.options.subtitle=t},setIcon:function(t){0===this.$header.find("."+r+"-header-icon").length&&this.$header.prepend(''),this.$header.find("."+r+"-header-icon").attr("class",r+"-header-icon "+t),this.options.icon=t},setIconText:function(t){this.$header.find("."+r+"-header-icon").html(t),this.options.iconText=t},setHeaderColor:function(t){this.options.borderBottom===!0&&this.$element.css("border-bottom","3px solid "+t),this.$header.css("background",t),this.options.headerColor=t},setBackground:function(t){t===!1?(this.options.background=null,this.$element.css("background","")):(this.$element.css("background",t),this.options.background=t)},setZindex:function(t){isNaN(parseInt(this.options.zindex))||(this.options.zindex=t,this.$element.css("z-index",t),this.$navigate.css("z-index",t-1),this.$overlay.css("z-index",t-2))},setFullscreen:function(t){t?(this.isFullscreen=!0,this.$element.addClass("isFullscreen")):(this.isFullscreen=!1,this.$element.removeClass("isFullscreen"))},setContent:function(t){if("object"==typeof t){var e=t["default"]||!1;e===!0&&(this.content=t.content),t=t.content}this.options.iframe===!1&&this.$element.find("."+r+"-content").html(t)},setTransitionIn:function(t){this.options.transitionIn=t},setTransitionOut:function(t){this.options.transitionOut=t},setTimeout:function(t){this.options.timeout=t},resetContent:function(){this.$element.find("."+r+"-content").html(this.content)},startLoading:function(){this.$element.find("."+r+"-loader").length||this.$element.append('
'),this.$element.find("."+r+"-loader").css({top:this.headerHeight,borderRadius:this.options.radius})},stopLoading:function(){var t=this.$element.find("."+r+"-loader");t.length||(this.$element.prepend('
'),t=this.$element.find("."+r+"-loader").css("border-radius",this.options.radius)),t.removeClass("fadeIn").addClass("fadeOut"),setTimeout(function(){t.remove()},600)},recalcWidth:function(){var t=this;if(this.$element.css("max-width",this.options.width),i()){var e=t.options.width;e.toString().split("%").length>1&&(e=t.$element.outerWidth()),t.$element.css({left:"50%",marginLeft:-(e/2)})}},recalcVerticalPos:function(t){null!==this.options.top&&this.options.top!==!1?(this.$element.css("margin-top",this.options.top),0===this.options.top&&this.$element.css({borderTopRightRadius:0,borderTopLeftRadius:0})):t===!1&&this.$element.css({marginTop:"",borderRadius:this.options.radius}),null!==this.options.bottom&&this.options.bottom!==!1?(this.$element.css("margin-bottom",this.options.bottom),0===this.options.bottom&&this.$element.css({borderBottomRightRadius:0,borderBottomLeftRadius:0})):t===!1&&this.$element.css({marginBottom:"",borderRadius:this.options.radius})},recalcLayout:function(){var e=this,o=s.height(),a=this.$element.outerHeight(),d=this.$element.outerWidth(),h=this.$element.find("."+r+"-content")[0].scrollHeight,c=h+this.headerHeight,u=this.$element.innerHeight()-this.headerHeight,p=(parseInt(-((this.$element.innerHeight()+1)/2))+"px",this.$wrap.scrollTop()),f=0;i()&&(d>=s.width()||this.isFullscreen===!0?this.$element.css({left:"0",marginLeft:""}):this.$element.css({left:"50%",marginLeft:-(d/2)})),this.options.borderBottom===!0&&""!==this.options.title&&(f=3),this.$element.find("."+r+"-header").length&&this.$element.find("."+r+"-header").is(":visible")?(this.headerHeight=parseInt(this.$element.find("."+r+"-header").innerHeight()),this.$element.css("overflow","hidden")):(this.headerHeight=0,this.$element.css("overflow","")),this.$element.find("."+r+"-loader").length&&this.$element.find("."+r+"-loader").css("top",this.headerHeight),a!==this.modalHeight&&(this.modalHeight=a,this.options.onResize&&"function"==typeof this.options.onResize&&this.options.onResize(this)),this.state!=l.OPENED&&this.state!=l.OPENING||(this.options.iframe===!0&&(o=s.width()?this.$element.find("."+r+"-button-fullscreen").hide():this.$element.find("."+r+"-button-fullscreen").show(),this.recalcButtons(),this.isFullscreen===!1&&(o=o-(n(this.options.top)||0)-(n(this.options.bottom)||0)),c>o?(this.options.top>0&&null===this.options.bottom&&h0&&null===this.options.top&&hu&&c>o?(e.$element.addClass("hasScroll"),e.$wrap.css("height",a-(e.headerHeight+f))):(e.$element.removeClass("hasScroll"),e.$wrap.css("height","auto"))}(),function(){u+p1){try{n.$el=document.createElement(id[0])}catch(o){}n.$el.id=this.selector.split("#")[1].trim()}else if(n["class"].length>1){try{n.$el=document.createElement(n["class"][0])}catch(o){}for(var s=1;s https://mastertips.pt/wp-content/plugins/woocommerce/assets/js/jquery-blockui/jquery.blockUI.min.js?ver=2.70 /*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U='"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();