UNPKG

@dracoui/ember

Version:

Draco Design System for Ember

3 lines (2 loc) 1.08 kB
import{assert as e}from"@ember/debug";import t from"../index.js";import{precompileTemplate as s}from"@ember/template-compilation";import{setComponentTemplate as a}from"@ember/component";var i=s('<div class="draco-avatar-bitbucket" aria-label={{concat "Avatar for " this.username}} ...attributes>\n <Draco::Avatar @src={{this.src}} @size={{this.size}} @shape={{this.shape}} @alt={{if this.alt this.alt this.username}} />\n\n <Draco::Icon\n @name="mdi:bitbucket"\n @size={{if (eq this.size "small") 10\n (if (eq this.size "medium") 12 16)\n }}\n @color="white"\n class={{this.classNames}}\n />\n</div>');class r extends t{get username(){const{username:t}=this.args;return e(`@username for "Draco::Avatar::Bitbucket" is required; received: ${t}`,t),t}get src(){return`https://bitbucket.org/account/${this.username}/avatar/`}get classNames(){const e=["draco-icon-bitbucket"];return e.push(`draco-icon-bitbucket--size-${this.size}`),e.push(`draco-icon-bitbucket--shape-${this.shape}`),e.join(" ")}}a(i,r);export{r as default}; //# sourceMappingURL=index.js.map