­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ if(!window.vc)var vc={};if(function(){vc.templateOptions={default:{evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},custom:{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g}};var noMatch=/(.)^/,escapes={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},escapeRegExp=/\\|'|\r|\n|\u2028|\u2029/g,escapeChar=function(match){return"\\"+escapes[match]};vc.template=function(text,settings){settings=_.defaults({},settings,vc.templateOptions.default);var matcher=RegExp([(settings.escape||noMatch).source,(settings.interpolate||noMatch).source,(settings.evaluate||noMatch).source].join("|")+"|$","g"),index=0,source="__p+='";text.replace(matcher,function(match,escape,interpolate,evaluate,offset){return source+=text.slice(index,offset).replace(escapeRegExp,escapeChar),index=offset+match.length,escape?source+="'+\n((__t=("+escape+"))==null?'':_.escape(__t))+\n'":interpolate?source+="'+\n((__t=("+interpolate+"))==null?'':__t)+\n'":evaluate&&(source+="';\n"+evaluate+"\n__p+='"),match}),source+="';\n",settings.variable||(source="with(obj||{}){\n"+source+"}\n"),source="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+source+"return __p;\n";var render;try{render=new Function(settings.variable||"obj","_",source)}catch(e){throw e.source=source,e}var template=function(data){return render.call(this,data,_)};return template.source="function("+(settings.variable||"obj")+"){\n"+source+"}",template}}(),function($){"use strict";_.isUndefined(window.vc)&&(window.vc={}),window.Vc_postSettingsEditor=Backbone.View.extend({$editor:!1,sel:"wpb_csseditor",ace_enabled:!1,initialize:function(sel){sel&&0").css({width:"100%",height:"100%",minHeight:"300px"}),$("#"+this.sel).empty().append(this.$editor).css({overflowLeft:"hidden",width:"100%",height:"100%"})),this.$editor.val(value),this.$editor.focus(),this.$editor.parent().css({overflow:"auto"}),this.$editor},setSize:function(){var height=$(window).height()-380;this.aceEnabled()?$("#"+this.sel).css({height:height,minHeight:height}):(this.$editor.parent().css({height:height,minHeight:height}),this.$editor.css({height:"98%",width:"98%"}))},setSizeResizable:function(){var height,editorPositionTop,footerPositionTop,$editor=$("#"+this.sel);editorPositionTop=$editor.offset().top,footerPositionTop=vc.active_panel.$el.find('[data-vc-ui-element="panel-footer"]').offset().top,height=footerPositionTop-editorPositionTop-70,this.aceEnabled()?$editor.css({height:height,minHeight:height}):(this.$editor.parent().css({height:height,minHeight:height}),this.$editor.css({height:"98%",width:"98%"}))},getEditor:function(){return this.$editor},getValue:function(){return this.aceEnabled()?this.$editor.getValue():this.$editor.val()}})}(window.jQuery),function($){"use strict";$(function(){var $form=$('[data-vc-roles="form"]');$('[data-vc-roles="part-state"]').click(function(){var $this=$(this);$this.data("vcCustomSelector",$this.find(":selected").data("vcCustomSelector")||"")}).change(function(){var value,part,$customBlock,$this,customSelector;if($this=$(this),part=$this.data("vcRolePart"),$customBlock=$('[data-vc-role-related-part="'+part+'"]'),"*"===$customBlock.data("vcRolePartState"))return!1;value=$this.val(),customSelector=$this.data("vcCustomSelector")||"",$customBlock.data("vcRolePartState").toString()===value?($customBlock.addClass("vc_visible"),customSelector.length&&$customBlock.find($this.data("vcCustomSelector")).prop("checked",!0)):$customBlock.removeClass("vc_visible")}),$form.submit(function(e){var $submitButton,data={};e.preventDefault(),$submitButton=$("#submit_btn"),$submitButton.attr("disabled",!0),$("#vc_wp-spinner").show(),data.action=$("#vc_settings-roles-action").val(),data.vc_nonce_field=$("#vc_nonce_field").val(),data.vc_roles={},$("[data-vc-role]").each(function(){var $this=$(this),role=$this.data("vcRole"),roleData={};$this.find("select").each(function(){var $this=$(this),part=$this.data("vcPart");void 0===roleData[part]&&(roleData[part]={}),roleData[part][$this.data("vcName")]=$this.val()}),$this.find('[data-vc-role-related-part].vc_visible [data-vc-name][type="checkbox"]').each(function(){var $this=$(this),part=$this.data("vcPart");void 0===roleData[part]&&(roleData[part]={}),roleData[part][$this.data("vcName")]=$this.is(":checked")?$this.val():"0"}),data.vc_roles[role]=JSON.stringify(roleData)}),$.ajax({url:$form.attr("action"),type:"POST",dataType:"json",data:data,context:this}).done(function(data){var $messageHtml;$("#vc_wp-spinner").hide(),data.message&&($messageHtml=$(''),$messageHtml.find("strong").text(data.message),$messageHtml.insertBefore($submitButton).fadeIn(100),window.setTimeout(function(){$messageHtml.slideUp(100,function(){$(this).remove(),$submitButton.attr("disabled",!1)})},2e3))})})}),$("[data-vc-accordion]").on("show.vc.accordion",function(){$(this).addClass("vc_opened")}).on("hide.vc.accordion",function(){$(this).removeClass("vc_opened")}),$('[data-vc-ui-element="panel-tab-control"]').click(function(e){var filterValue,$control=$(this),$fieldset=$control.parents("fieldset").first(),filter=".vc_wp-form-table";e.preventDefault(),$('[data-vc-ui-element="panel-tabs-controls"] .vc_active',$fieldset).removeClass("vc_active"),$control.parent().addClass("vc_active"),filterValue=$control.data("filter"),$fieldset.attr("data-vc-roles-filter-value",filterValue),filter+=" "+filterValue,$(".vc_wp-form-table [data-vc-capability]",$fieldset).addClass("vc_hidden"),$(filter,$fieldset).removeClass("vc_hidden")}),$('[data-vc-roles="table-checkbox"]').change(function(){var $this=$(this);$this.is(":checked")?$this.parents("tr:first").find('[data-vc-name!="'+$this.attr("data-vc-name")+'"]:checked').prop("checked",!1):$this.parents('[data-vc-roles="table"]').first().find('[data-vc-roles-select-all-checkbox="'+$this.data("vcCap")+'"]').prop("checked",!1)}),$("[data-vc-roles-select-all-checkbox]").change(function(){var $this,checked,$parent,$relatedControl,value;$this=$(this),checked=$this.is(":checked"),$parent=$this.parents('[data-vc-roles="table"]').first(),$relatedControl=$parent.find($this.data("vcRelatedControls")),value=$this.data("vcRolesSelectAllCheckbox"),$parent.find('[data-vc-cap="'+value+'"]:visible').prop("checked",checked),$relatedControl.prop("checked",checked),checked&&_.defer(function(){$parent.find("[data-vc-roles-select-all-checkbox!="+value+"]:not([data-vc-cap])").prop("checked",!1),$parent.find('[data-vc-cap!="'+value+'"]:not([data-vc-roles-select-all-checkbox]):visible').prop("checked",!1)})}),$('[data-vc-role-related-part].vc_visible [data-vc-roles="table"]').each(function(){var $table=$(this);$table.find("thead [data-vc-roles-select-all-checkbox]").each(function(){var $this=$(this),value=$this.data("vcRolesSelectAllCheckbox");$table.find('[data-vc-cap="'+value+'"]:not(:checked)').length||($this.prop("checked",!0),$table.find('tfoot [data-vc-roles-select-all-checkbox="'+value+'"]').prop("checked",!0))})})}(window.jQuery),_.isUndefined(window.vc))var vc={};jQuery(document).ready(function($){"use strict";_.isUndefined(window.less)||(vc.less={},vc.less.options={relativeUrls:!1,rootpath:!1},less.options.env=vcData.debug?"development":"production",less.options.logLevel=vcData.debug?4:0,vc.less.generateLessFormData=function(formData,variablesData){var lessData={};return _.isEmpty(variablesData)||_.each(variablesData,function(value,key){var object,objectValue;_.isString(value)?(object=_.first(_.where(formData,{name:value})),_.isObject(object)&&(objectValue=object.value,0