% (function(Model, config, lang, Utils) { var authorities = /prod/i.test(config.environment || '') ? (config.authorities || {}) : {}; const socialLinksMapTable = { "facebook": { svgClass: 'facebook', title: 'Facebook' }, "instagram": { title: 'Instagram', svgClass: 'instagram' }, "twitter": { svgClass: 'x-twitter', title: 'Twitter' }, "linkedin": { svgClass: 'linkedin', title: 'LinkedIn' }, "youtube": { svgClass: 'youtube', title: 'YouTube' }, "pinterest": { svgClass: 'pinterest', title: 'Pinterest' }, "issuu": { svgClass: 'issuu', title: 'Issuu' }, "soundcloud": { svgClass: 'soundcloud', title: 'Soundcloud' }, "tiktok": { svgClass: 'tiktok', title: 'TikTok' }, }; // prepare social links from custom project config.js and mapping table const socialLinks = []; if(config.socialIcons && config.socialIcons.hasOwnProperty(lang)) { config.socialIcons[lang].forEach((socialConfig) => { if(socialLinksMapTable.hasOwnProperty(socialConfig.type) && socialConfig.url && socialConfig.url.length > 0) { socialLinksMapTable[socialConfig.type]['url'] = socialConfig.url; if(socialConfig.title && socialConfig.title.length > 0) { socialLinksMapTable[socialConfig.type]['title'] = socialConfig.title; } if(socialConfig.svgClass && socialConfig.svgClass.length > 0) { socialLinksMapTable[socialConfig.type]['svgClass'] = socialConfig.svgClass; } socialLinks.push(socialLinksMapTable[socialConfig.type]); } }); } %>