// Modern helper functions for customer details modal
function formatCustomerPhonesModern(phones) {
if (!phones || phones.length === 0) {
return `
${addressParts.map(part => `
${part}
`).join('')}
`;
}
// Ultra-compact formatting functions for minimal space usage
function formatCustomerPhonesUltraCompact(phones) {
if (!phones || phones.length === 0) {
return `
${addressParts.map(part => `
${part}
`).join('')}
`;
}
// Legacy formatting functions to match the old system layout
function formatCustomerPhonesLegacy(phones) {
if (!phones || phones.length === 0) {
return `
${addressParts.map(part => `
${part}
`).join('')}
`;
}
// Legacy formatting functions with larger text
function formatCustomerPhonesLegacyLarger(phones) {
if (!phones || phones.length === 0) {
return `
${addressParts.map(part => `
${part}
`).join('')}
`;
}
// Make functions globally available
window.formatCustomerPhonesModern = formatCustomerPhonesModern;
window.formatCustomerAddressModern = formatCustomerAddressModern;
window.formatCustomerPersonalInfo = formatCustomerPersonalInfo;
window.formatCustomerPhonesCompact = formatCustomerPhonesCompact;
window.formatCustomerAddressCompact = formatCustomerAddressCompact;
window.formatCustomerPhonesUltraCompact = formatCustomerPhonesUltraCompact;
window.formatCustomerAddressUltraCompact = formatCustomerAddressUltraCompact;
window.formatCustomerPhonesLegacy = formatCustomerPhonesLegacy;
window.formatCustomerAddressLegacy = formatCustomerAddressLegacy;
window.formatCustomerPhonesLegacyLarger = formatCustomerPhonesLegacyLarger;
window.formatCustomerAddressLegacyLarger = formatCustomerAddressLegacyLarger;
window.showCustomerDetailsModal = showCustomerDetailsModal;