HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/smilepac/public_html/wp-content/plugins/codevz-plus/wpbakery/assets/js/accordion.js
! function( $ ) {
	"use strict";

	Codevz_Plus.accordion = function( wpb ) {

		wpb && $( '.cz_acc' ).removeData( 'codevz' );

		$( '.cz_acc' ).codevzPlus( 'accordion', function( x ) {

			var arrows = x.data( 'arrows' );

			// Add arrows.
			x.find( '.cz_acc_open_icon, .cz_acc_close_icon' ).remove();
			x.find( '.cz_acc_child' ).append( '<i class="cz_acc_open_icon ' + arrows.open + '"></i><i class="cz_acc_close_icon ' + arrows.close + '"></i>' );

			// First open.
			if ( x.hasClass( 'cz_acc_first_open' ) ) {
				x.find( '> div > div:first' ).addClass( 'cz_isOpen' ).find( '.cz_acc_child_content' ).show();
				x.find( '> div > div:first .cz_acc_open_icon' ).hide().next( 'i' ).show();
			}

			// onClick.
			x.find( '.cz_acc_child' ).off( 'click' ).on( 'click', function( e ) {

				var dis = $( this ),
					clo = dis.closest( '.cz_acc' ),
					con = dis.next();

				if ( con.is( ':visible' ) ) {
					dis.find( '.cz_acc_open_icon' ).show().next( 'i' ).hide();
					con.slideUp().parent().removeClass( 'cz_isOpen' );
					return;
				}

				if ( ! clo.hasClass( 'cz_acc_toggle' ) ) {
					clo.find( '.cz_acc_open_icon' ).show().next( 'i' ).hide();
					clo.find( '.cz_acc_child_content' ).slideUp().parent().removeClass( 'cz_isOpen' );
				}

				dis.find( '.cz_acc_open_icon' ).hide().next('i').show();
				con.slideToggle().parent().toggleClass( 'cz_isOpen' );

				// Fixes after open.
				setTimeout(function() {

					// Fix Grid masonry.
					if ( con.find( '.cz_grid' ).data( 'isotope' ) ) {
						con.find( '.cz_grid' ).isotope( 'layout' );
					}

					// Fix Google maps.
					$( window ).trigger( 'scroll.xtra_gmap' );

				}, 250 );

				return false;

			});

		});

	};

	Codevz_Plus.accordion();

}( jQuery );