const HanyuuOAuth2AppScopeEntry = function(text, warn) {
const icon =
;
if(warn)
icon.classList.add('oauth2-scope-perm-icon-warn');
const element = ;
return {
get element() { return element; },
};
};
const HanyuuOAuth2AppScopeList = function(scopes) {
const permsElem = ;
if(Array.isArray(scopes) && scopes.length > 0) {
for(const scope of scopes)
if(typeof scope === 'string')
permsElem.appendChild(new HanyuuOAuth2AppScopeEntry(scope).element);
} else
permsElem.appendChild(new HanyuuOAuth2AppScopeEntry('A limited amount of things. No scope was specified by the developer.', true).element);
const element =
{permsElem}
;
return {
get element() { return element; },
};
};