jQuery(document).ready(function(e){"use strict";function t(t,i=""){t.find(".sortable").append(''),t.find(".sortable").find(".repeater:last").slideDown("slow",function(){e(this).find("input").focus()})}function i(t){var i=t.find(".repeater-input").map(function(){return e(this).val()}).toArray();t.find(".customize-control-sortable-repeater").val(i),t.find(".customize-control-sortable-repeater").trigger("change")}function n(t){var i="";t.find(".customize_multi_fields .customize_multi_single_field").each(function(){i+=e(this).val()+"|"}),t.find(".customize_multi_value_field").val(i.slice(0,-1)).change()}e(".sortable_repeater_control").each(function(){var i,n=e(this).find(".customize-control-sortable-repeater").val().split(","),s=n.length;if(s>0&&(e(this).find(".repeater-input").val(n[0]),s>1))for(i=1;i1?e(this).parent().slideUp("fast",function(){var t=e(this).parent().parent();e(this).remove(),i(t)}):(e(this).parent().find(".repeater-input").val(""),i(e(this).parent().parent().parent()))}),e(".customize-control-sortable-repeater-add").click(function(n){n.preventDefault(),t(e(this).parent()),i(e(this).parent())}),e(".sortable_repeater.sortable").change(function(){i(e(this).parent())}),e(".sortable_repeater.sortable").on("blur",".repeater-input",function(){var t=e(this),i=t.val();i&&!i.match(/^.+:\/\/.*/)&&t.val("https://"+i).trigger("change")}),e(document).on("click",".customize_multi_add_field",function t(i){i.preventDefault(),e(this).parents(".customize_multi_input").find(".customize_multi_fields").append('
X
')}).on("keyup",".customize_multi_single_field",function t(){n(e(this).parents(".customize_multi_input"))}).on("click",".customize_multi_remove_field",function t(i){i.preventDefault();var s=e(this),a=s.parents(".customize_multi_input");s.parent().remove(),n(a)}),e(".customize_multi_input").each(function(){var t=e(this),i=t.find(".customize_multi_value_field").val();if(i.length>0){var n=i.split("|");t.find(".customize_multi_fields").empty(),e.each(n,function(e,i){t.find(".customize_multi_fields").append('
X
')})}})}),function(e){e.sectionConstructor["bizzweb-upsell"]=e.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}}),["banner","about","counter","service","mission","video","team","latest-news"].forEach(function e(t,i){t=t.replace(/-/g,"_"),wp.customize.section("bizzweb_"+t+"_section",function(e){e.expanded.bind(function(e){wp.customize.previewer.send(t,{expanded:e})})})})}(wp.customize);