(stateOrValue = '')
| 15 | } |
| 16 | |
| 17 | function getConfiguredIcloudHostPreference(stateOrValue = '') { |
| 18 | const preference = typeof stateOrValue === 'object' |
| 19 | ? String(stateOrValue?.icloudHostPreference || '').trim().toLowerCase() |
| 20 | : String(stateOrValue || '').trim().toLowerCase(); |
| 21 | if (!preference || preference === 'auto') return ''; |
| 22 | return normalizeIcloudHost(preference); |
| 23 | } |
| 24 | |
| 25 | function getIcloudLoginUrlForHost(host) { |
| 26 | const normalizedHost = normalizeIcloudHost(host); |
no test coverage detected