­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ if(_.isUndefined(window.vc))var vc={atts:{}};if(function($){var VcColumnOffsetParam=Backbone.View.extend({events:{},$lg_offset_placeholder_value:!1,$lg_size_placeholder_value:!1,initialize:function(){_.bindAll(this,"setLgPlaceholders")},render:function(){return this},save:function(){var data=[];return this.$el.find(".vc_column_offset_field").each(function(){var $field=$(this);$field.is(":checkbox:checked")?data.push($field.attr("name")):$field.is("select")&&""!==$field.val()&&data.push($field.val())}),data},setLgPlaceholders:function(){var offset=this.$lg_offset_placeholder_value.val().replace(/[^\d]/g,"");this.$lg_size.find("option:first").text(VcI8nColumnOffsetParam.inherit_default),this.$lg_offset.find("option:first").text(offset?VcI8nColumnOffsetParam.inherit+offset:"")}});vc.atts.column_offset={parse:function(param){return this.content().find("input.wpb_vc_param_value."+param.param_name).data("vcColumnOffset").save().join(" ")},init:function(param,$field){$('[data-column-offset="true"]',$field).each(function(){var $this=$(this);$this.find(".wpb_vc_param_value").data("vcColumnOffset",new VcColumnOffsetParam({el:$this}).render())})}}}(window.jQuery),_.isUndefined(window.vc))var vc={atts:{}};if(function($){function parseOldDesignOptions(){var keys={bg_color:"background-color",padding:"padding",margin_bottom:"margin-bottom",bg_image:"background-image"},params=vc.edit_element_block_view.model.get("params"),cssString=_.reduce(keys,function(memo,css_name,attr_name){var value=params[attr_name];return _.isUndefined(value)||!value.length?memo:("bg_image"===attr_name&&(value="url("+value+")"),memo+css_name+": "+value+";")},"",this);return cssString?".tmp_class{"+cssString+"}":""}function filterSelection(selection,obj){function finishImageProcessing(newAttachments){if(!window.vc||!window.vc.active_panel)return!1;var attachments,objects;attachments=_.map(newAttachments,function(newAttachment){return newAttachment.attributes}),selection.reset(attachments),objects=_.map(selection.models,function(model){return model.attributes});var template=vc.template($("#vc_css-editor-image-block").html(),_.defaults({},{variable:"img"},vc.templateOptions.custom));obj._css_editor.$el.find(".vc_background-image .vc_image").html(template(objects[0])),$(".media-modal").removeClass("processing-media")}var ids;ids=[],$(".media-modal").addClass("processing-media"),selection.each(function(model){ids.push(model.get("id"))}),processImages(ids,finishImageProcessing)}function processImages(ids,callback){$.ajax({dataType:"json",type:"POST",url:window.ajaxurl,data:{action:"vc_media_editor_add_image",filters:window.vc_selectedFilters,ids:ids,vc_inline:!0,_vcnonce:window.vcAdminNonce}}).done(function(response){var attachments,attachment,promises,i;if("function"==typeof callback){for(attachments=[],promises=[],i=0;i