(rawValue = '')
| 681 | } |
| 682 | |
| 683 | function normalizeAccountRunHistoryHelperBaseUrl(rawValue = '') { |
| 684 | const value = String(rawValue || '').trim(); |
| 685 | if (!value) return DEFAULT_ACCOUNT_RUN_HISTORY_HELPER_BASE_URL; |
| 686 | |
| 687 | try { |
| 688 | const parsed = new URL(value); |
| 689 | if (parsed.pathname === '/append-account-log') { |
| 690 | parsed.pathname = ''; |
| 691 | parsed.search = ''; |
| 692 | parsed.hash = ''; |
| 693 | } |
| 694 | return normalizeHotmailLocalBaseUrl(parsed.toString()); |
| 695 | } catch { |
| 696 | return normalizeHotmailLocalBaseUrl(value); |
| 697 | } |
| 698 | } |
| 699 | |
| 700 | function getHotmailServiceSettings(state = {}) { |
| 701 | return { |
no test coverage detected