Welcome to Aleson Shipping Lines

Explore our services and contact us to learn how we can serve you.

Contact Us
dow.__signupVerificationSyncInstalled = true; function getSignupEls() { const form = document.getElementById('signupForm'); const mobile = document.getElementById('signup_mobile'); const email = document.getElementById('signup_email'); const preferred = document.getElementById('signupPreferredChannel'); const note = document.getElementById('signupChannelNote'); const emailRadio = document.querySelector('input[name="signup_channel_option"][value="email"]'); const smsRadio = document.querySelector('input[name="signup_channel_option"][value="sms"]'); const emailBtn = emailRadio ? emailRadio.closest('label') : null; const smsBtn = smsRadio ? smsRadio.closest('label') : null; return { form, mobile, email, preferred, note, emailRadio, smsRadio, emailBtn, smsBtn }; } function hasValue(input) { return !!input && input.value.trim() !== ''; } function paintButton(button, active) { if (!button) { return; } button.classList.toggle('active', active); button.classList.toggle('btn-primary', active); button.classList.toggle('btn-outline-primary', !active); button.setAttribute('aria-pressed', active ? 'true' : 'false'); } window.setSignupVerificationChannel = function (channel, options = {}) { const els = getSignupEls(); if (!els.preferred || !els.emailRadio || !els.smsRadio) { return; } channel = channel === 'sms' ? 'sms' : 'email'; els.preferred.value = channel; els.emailRadio.checked = channel === 'email'; els.smsRadio.checked = channel === 'sms'; paintButton(els.emailBtn, channel === 'email'); paintButton(els.smsBtn, channel === 'sms'); if (els.email) { els.email.required = channel === 'email'; } if (els.mobile) { els.mobile.required = channel === 'sms'; } if (els.note) { els.note.textContent = channel === 'sms' ? 'We’ll send verification codes via SMS to your mobile number.' : 'We’ll send verification codes to your email address.'; } if (options.focus === true) { if (channel === 'sms' && els.mobile && !hasValue(els.mobile)) { els.mobile.focus(); } if (channel === 'email' && els.email && !hasValue(els.email)) { els.email.focus(); } } }; window.syncSignupVerificationChannel = function (preferredWhenBoth = null) { const els = getSignupEls(); const hasMobile = hasValue(els.mobile); const hasEmail = hasValue(els.email); if (preferredWhenBoth === 'sms' && hasMobile) { window.setSignupVerificationChannel('sms'); return; } if (preferredWhenBoth === 'email' && hasEmail) { window.setSignupVerificationChannel('email'); return; } if (hasMobile && !hasEmail) { window.setSignupVerificationChannel('sms'); return; } if (hasEmail && !hasMobile) { window.setSignupVerificationChannel('email'); return; } if (hasMobile && hasEmail) { const current = els.preferred && els.preferred.value === 'sms' ? 'sms' : 'email'; window.setSignupVerificationChannel(current); return; } window.setSignupVerificationChannel('email'); }; function installSignupVerificationEvents() { const els = getSignupEls(); if (!els.mobile || !els.email || !els.emailRadio || !els.smsRadio) { return; } els.mobile.addEventListener('input', function () { if (hasValue(els.mobile)) { window.setSignupVerificationChannel('sms'); } else { window.syncSignupVerificationChannel(); } }); els.email.addEventListener('input', function () { if (hasValue(els.email)) { window.setSignupVerificationChannel('email'); } else { window.syncSignupVerificationChannel(); } }); if (els.emailBtn) { els.emailBtn.addEventListener('click', function () { window.setSignupVerificationChannel('email', { focus: true }); }); } if (els.smsBtn) { els.smsBtn.addEventListener('click', function () { window.setSignupVerificationChannel('sms', { focus: true }); }); } if (els.form) { els.form.addEventListener('submit', function (event) { const current = els.preferred && els.preferred.value === 'sms' ? 'sms' : 'email'; if (current === 'sms' && !hasValue(els.mobile)) { if (hasValue(els.email)) { window.setSignupVerificationChannel('email'); } else { event.preventDefault(); window.setSignupVerificationChannel('sms', { focus: true }); } } if (current === 'email' && !hasValue(els.email)) { if (hasValue(els.mobile)) { window.setSignupVerificationChannel('sms'); } else { event.preventDefault(); window.setSignupVerificationChannel('email', { focus: true }); } } }); } window.syncSignupVerificationChannel(); } document.addEventListener('DOMContentLoaded', installSignupVerificationEvents); document.addEventListener('shown.bs.modal', function (event) { if (event.target && event.target.id === 'signupModal') { setTimeout(function () { window.syncSignupVerificationChannel(); }, 50); } }); document.addEventListener('click', function (event) { if (event.target.closest('.signup-link')) { setTimeout(function () { window.syncSignupVerificationChannel(); }, 150); } }); })();