UNPKG

@scalar/api-client

Version:

the open source API testing client

20 lines (19 loc) 414 B
import { isAuthOptional as i } from "../../../blocks/scalar-auth-selector-block/helpers/is-auth-optional.js"; const c = (e, t, s = [], r = !1) => { if (r) { if (t) return t; } else if (e) return e; const f = i(s), n = s[0]; return f || !n ? { selectedIndex: -1, selectedSchemes: [] } : { selectedIndex: 0, selectedSchemes: [n] }; }; export { c as getSelectedSecurity };