jQuery(document).ready(function(e){"use strict";function t(t,n=""){t.find(".sortable").append(''),t.find(".sortable").find(".repeater:last").slideDown("slow",function(){e(this).find("input").focus()})}function n(t){var n=t.find(".repeater-input").map(function(){return e(this).val()}).toArray();t.find(".customize-control-sortable-repeater").val(n),t.find(".customize-control-sortable-repeater").trigger("change")}e(".sortable_repeater_control").each(function(){var n,r=e(this).find(".customize-control-sortable-repeater").val().split(","),a=r.length;if(a>0&&(e(this).find(".repeater-input").val(r[0]),a>1))for(n=1;n1?e(this).parent().slideUp("fast",function(){var t=e(this).parent().parent();e(this).remove(),n(t)}):(e(this).parent().find(".repeater-input").val(""),n(e(this).parent().parent().parent()))}),e(".customize-control-sortable-repeater-add").click(function(r){r.preventDefault(),t(e(this).parent()),n(e(this).parent())}),e(".sortable_repeater.sortable").change(function(){n(e(this).parent())}),e(".sortable_repeater.sortable").on("blur",".repeater-input",function(){var t=e(this),n=t.val();n&&!n.match(/^.+:\/\/.*/)&&t.val("https://"+n).trigger("change")})}),function(e){e.sectionConstructor["business-vibes-upsell"]=e.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}}),["banner","about","counter","service","featured-video","projects","team","blog","associate"].forEach(function e(t,n){t=t.replace(/-/g,"_"),wp.customize.section("business_vibes_"+t+"_section",function(e){e.expanded.bind(function(e){wp.customize.previewer.send(t,{expanded:e})})})})}(wp.customize);