| 34531 | } = o |
| 34532 | return i(s) |
| 34533 | }, |
| 34534 | getConfigByUrl = (s, o) => (i) => { |
| 34535 | const { specActions: a, configsActions: u } = i |
| 34536 | if (s) return u.downloadConfig(s).then(next, next) |
| 34537 | function next(u) { |
| 34538 | u instanceof Error || u.status >= 400 |
| 34539 | ? (a.updateLoadingStatus('failedConfig'), |
| 34540 | a.updateLoadingStatus('failedConfig'), |
| 34541 | a.updateUrl(''), |
| 34542 | console.error(u.statusText + ' ' + s.url), |
| 34543 | o(null)) |
| 34544 | : o( |
| 34545 | ((s, o) => { |
| 34546 | try { |
| 34547 | return fn.load(s) |
| 34548 | } catch (s) { |
| 34549 | return (o && o.errActions.newThrownErr(new Error(s)), {}) |
| 34550 | } |
| 34551 | })(u.text, i) |
| 34552 | ) |
| 34553 | } |
| 34554 | }, |
| 34555 | get = (s, o) => s.getIn(Array.isArray(o) ? o : [o]), |
| 34556 | yn = { |