PageSourceSearch

https://interede.com.br/wp-content/plugins/addon-elements-for-elem…/assets/js/iconHelper.js?ver=1.0

js interede.com.br collected 2026-09-24 11:00:34 UTC 4,036 bytes, 85 lines download raw bytes

1window.eae = {};
2window.renderIconHtml = function(view,elementor,sett,control_name, wClass = '', index=''){
3    // console.log("View => ", view);
4    // data.addRenderAttribute('key', 'context', 'value');
5    // console.log(data.getRenderAttributeString('key'));
6
7    var icon_class = '';
8    let imageHtml = '';
9    let lottie_data = [];
10    let iconHtml = '';
11    if(sett[control_name+'_graphic_type'] != 'none' && sett[control_name+'_graphic_type'] != ''){
12        icon_class += ' eae-gbl-icon eae-graphic-type-'+ sett[control_name+'_graphic_type'] + ' elementor-animation-' + sett[control_name+'_hover_animation'];
13        if(wClass != ''){
14            icon_class += ' '+wClass;     
15        }
16
17        icon_class += ' eae-graphic-view-'+sett[control_name+'_view']; 
18        if(sett[control_name+'_view'] != 'default'){
19            icon_class += ' eae-graphic-shape-'+sett[control_name+'_shape'];
20        }
21
22        if(sett[control_name+'_graphic_type'] == 'lottie'){
23            if( (sett[control_name+'_lottie_animation_url'] != '' ) ||  (sett[control_name+'_source_json']['url'] != '') ) {
24                icon_class += ' eae-lottie-animation eae-lottie';
25                lottie_data = {
26                    'loop' : ( sett[control_name+'_lottie_animation_loop'] === 'yes' ) ? true : false,
27                    'reverse' : ( sett[control_name+'_lottie_animation_reverse'] === 'yes' ) ? true : false,
28                } 
29                if(sett[control_name+'_source'] == 'media_file' && (sett[control_name+'_source_json']['url'] != '')){
30                    lottie_data.url = sett[control_name+'_source_json']['url'];
31                }else{
32                    lottie_data.url = sett[control_name+'_lottie_animation_url'];
33                }
34                view.addRenderAttribute('panel-icon-'+ index, 'data-lottie-settings', JSON.stringify(lottie_data));
35            }         
36        }
37        view.addRenderAttribute('panel-icon-'+ index, 'class', icon_class);
38        if(sett[control_name+'_graphic_type'] == 'lottie' ){
39            if(lottie_data.url != undefined){
40                iconHtml = `<span ${view.getRenderAttributeString( 'panel-icon-'+ index )}></span>`;    
41            }
42        }else{
43            if(sett[control_name+'_graphic_type'] === 'icon'){
44                if(sett[control_name+'_graphic_icon']['value'] != ''){
45                    var icon = elementor.helpers.renderIcon( view, sett[control_name+'_graphic_icon'], { 'aria-hidden': true }, 'i' , 'object' );
46                    imageHtml = icon.value;
47                    iconHtml = `<span ${ view.getRenderAttributeString( 'panel-icon-'+ index ) }>
48                                ${imageHtml}
49                                </span>`;
50                }            
51            }else{
52                if(sett[control_name+'_graphic_image']['url'] != ''){
53                    var image = {
54                        id: sett[control_name+'_graphic_image']['id'],
55                        url: sett[control_name+'_graphic_image']['url'],
56                        size: sett[control_name+'_graphic_image_size'],
57                        dimension: sett[control_name+'_graphic_image_custom_dimension'],
58                        model: view.getEditModel()
59                    };
60                    var image_url = elementor.imagesManager.getImageUrl( image );
61                    imageHtml = '<img src="' + image_url + '" />';
62                    
63                    iconHtml = `<span ${ view.getRenderAttributeString( 'panel-icon-'+ index ) }>
64                                    ${imageHtml}
65                                </span>`;
66                }
67            }
68        }       
69    }
70    return iconHtml;
71}
72
73window.eae.validateHTMLTag = function( $tag, $collection = null, $fallback = null){
74   if($collection == null){
75        $collection = ['h1','h2','h3','h4','h5','h6','p','span','div'];
76   }
77   if($fallback == null){
78    $fallback = 'h3';
79   }    
80   if($collection.includes($tag)){
81        return $tag;
82   }else{
83        return $fallback;
84   }
85}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.