(rawUrl)
| 3308 | } |
| 3309 | |
| 3310 | function isLocalCpaUrl(rawUrl) { |
| 3311 | if (typeof navigationUtils !== 'undefined' && navigationUtils?.isLocalCpaUrl) { |
| 3312 | return navigationUtils.isLocalCpaUrl(rawUrl); |
| 3313 | } |
| 3314 | const parsed = parseUrlSafely(rawUrl); |
| 3315 | if (!parsed) return false; |
| 3316 | if (!['http:', 'https:'].includes(parsed.protocol)) return false; |
| 3317 | return ['localhost', '127.0.0.1'].includes(parsed.hostname); |
| 3318 | } |
| 3319 | |
| 3320 | function shouldBypassStep9ForLocalCpa(state) { |
| 3321 | if (typeof navigationUtils !== 'undefined' && navigationUtils?.shouldBypassStep9ForLocalCpa) { |
no test coverage detected