<#
if ( '' === settings.text && '' === settings.selected_icon.value ) {
return;
}
const optimized_markup = elementorCommon.config.experimentalFeatures.e_optimized_markup;
view.addRenderAttribute( 'wrapper', 'class', 'elementor-button-wrapper' );
view.addRenderAttribute( 'button', 'class', 'elementor-button' );
if ( '' !== settings.link.url ) {
view.addRenderAttribute( 'button', 'href', elementor.helpers.sanitizeUrl( settings.link.url ) );
view.addRenderAttribute( 'button', 'class', 'elementor-button-link' );
} else {
view.addRenderAttribute( 'button', 'role', 'button' );
}
if ( '' !== settings.button_css_id ) {
view.addRenderAttribute( 'button', 'id', settings.button_css_id );
}
if ( '' !== settings.size ) {
view.addRenderAttribute( 'button', 'class', 'elementor-size-' + settings.size );
}
if ( '' !== settings.hover_animation ) {
view.addRenderAttribute( 'button', 'class', 'elementor-animation-' + settings.hover_animation );
}
view.addRenderAttribute( 'icon', 'class', 'elementor-button-icon' );
view.addRenderAttribute( 'text', 'class', 'elementor-button-text' );
view.addInlineEditingAttributes( 'text', 'none' );
var iconHTML = elementor.helpers.renderIcon( view, settings.selected_icon, { 'aria-hidden': true }, 'i' , 'object' ),
migrated = elementor.helpers.isIconMigrated( settings, 'selected_icon' );
#>
<# if ( ! optimized_markup ) { #>