/**
 * @since Fri Sep 28 2018
 * @author Charles Gouldmann - Klean
 */

import { Component } from '@angular/core'

// Component
import { FooterTemplate } from '@k-core/modules/footer/template/cmp.footer'


@Component({
    moduleId: module.id+ '',
    selector: 'footer-idemobler',
    templateUrl: './tpl.footer.idemobler.pug',
    styleUrls: ['./sty.footer.idemobler.scss'],

})

export class FooterIdeMoblerTemplate extends FooterTemplate {

    // ---- Variables ---- \\
    footerMenusToGet        = ['footer-menu-1', 'footer-menu-2', 'footer-menu-3']


    // ---- Functions ---- \\
    /**
     * strips spaces from a string, returns it without spaces
     * 
     * @param {string} phone
     * @returns {string}
     */
    stripNumber(phone: string): string {

        let result = ''


        if(!!phone) {

            for(let number of phone.split(' ')) {
                result += number
            }
        }

        return result
    }
}