@hashicorp/design-system-components
Version:
Helios Design System Components
53 lines (50 loc) • 2.62 kB
JavaScript
import Component from '@glimmer/component';
import { service } from '@ember/service';
import HdsTHelper from '../../../helpers/hds-t.js';
import HdsAppFooterItem from './item.js';
import HdsAppFooterLink from './link.js';
import { precompileTemplate } from '@ember/template-compilation';
import { setComponentTemplate } from '@ember/component';
import { g, i } from 'decorator-transforms/runtime';
/**
* Copyright IBM Corp. 2021, 2025
* SPDX-License-Identifier: MPL-2.0
*/
class HdsAppFooterLegalLinks extends Component {
static {
g(this.prototype, "hdsIntl", [service]);
}
#hdsIntl = (i(this, "hdsIntl"), void 0);
get ariaLabel() {
return this.args.ariaLabel ?? this.hdsIntl.t('hds.components.app-footer.legal-links.aria-label', {
default: 'Legal links'
});
}
get hrefForSupport() {
return this.args.hrefForSupport ?? 'https://www.hashicorp.com/support';
}
get hrefForTerms() {
return this.args.hrefForTerms ?? 'https://www.hashicorp.com/terms-of-service';
}
get hrefForPrivacy() {
return this.args.hrefForPrivacy ?? 'https://www.hashicorp.com/privacy';
}
get hrefForSecurity() {
return this.args.hrefForSecurity ?? 'https://www.hashicorp.com/security';
}
get hrefForAccessibility() {
return this.args.hrefForAccessibility ?? 'https://www.hashicorp.com/accessibility';
}
static {
setComponentTemplate(precompileTemplate("<HdsAppFooterItem>\n <ul class=\"hds-app-footer__legal-links\" aria-label={{this.ariaLabel}} ...attributes>\n <HdsAppFooterLink @href={{this.hrefForSupport}}>\n {{hdsT \"hds.components.app-footer.legal-links.support\" default=\"Support\"}}\n </HdsAppFooterLink>\n <HdsAppFooterLink @href={{this.hrefForTerms}}>\n {{hdsT \"hds.components.app-footer.legal-links.terms\" default=\"Terms\"}}\n </HdsAppFooterLink>\n <HdsAppFooterLink @href={{this.hrefForPrivacy}}>\n {{hdsT \"hds.components.app-footer.legal-links.privacy\" default=\"Privacy\"}}\n </HdsAppFooterLink>\n <HdsAppFooterLink @href={{this.hrefForSecurity}}>\n {{hdsT \"hds.components.app-footer.legal-links.security\" default=\"Security\"}}\n </HdsAppFooterLink>\n <HdsAppFooterLink @href={{this.hrefForAccessibility}}>\n {{hdsT \"hds.components.app-footer.legal-links.accessibility\" default=\"Accessibility\"}}\n </HdsAppFooterLink>\n </ul>\n</HdsAppFooterItem>", {
strictMode: true,
scope: () => ({
HdsAppFooterItem,
HdsAppFooterLink,
hdsT: HdsTHelper
})
}), this);
}
}
export { HdsAppFooterLegalLinks as default };
//# sourceMappingURL=legal-links.js.map