var e,t,i={5095(e,t,i){i.d(t,{N_:()=>v,Rq:()=>c,jg:()=>h,wD:()=>f,xC:()=>y,yG:()=>b});var r=i(9609),o=i(4084),a=i(2927),s=i(8899),n=i(4955),l=i(3517),p=i(476),d=function(e,t,i,r){var o,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(s=(a<3?o(s):a>3?o(t,i,s):o(t,i))||s);return a>3&&s&&Object.defineProperty(t,i,s),s};const h=["a","div","span"],f=["","blue","red","green","yellow","orange"],y=["button","checkbox","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","switch","tab"],b=["large","midsize","small"],c=["default","error"];var v;!function(e){let t=class extends a.LitElement{constructor(){super(...arguments),this.color="",this.ariaLabel="",this.ariaRole="link",this.disabled=!1,this.inline=!1,this.inlineStyle=void 0,this.inverted=void 0,this.href="",this.tag="a",this.target="_self",this.size=void 0,this._tabIndex=0,this.autofocus=!1}get tabIndex(){return this._tabIndex}set tabIndex(e){const t=this._tabIndex;this._tabIndex=e,this.requestUpdate("tabIndex",t)}static get styles(){return[o.A,p.A]}firstUpdated(){this.autofocus&&requestAnimationFrame(()=>{this.focus()})}focus(){var e;null===(e=this.linkRef)||void 0===e||e.focus()}blur(){var e;null===(e=this.linkRef)||void 0===e||e.blur()}get linkClassNamesInfo(){return{[`md-link--${this.color}`]:this.color,"md-link--inline":this.inline,[`md-link--inline-style-${this.inlineStyle}`]:!!this.inlineStyle,[`${this.size}`]:!!this.size,inverted:!0===this.inverted,disabled:this.disabled}}get linkElement(){switch(this.tag){case"div":return a.html`
            <div
              class="md-link ${(0,n.classMap)(this.linkClassNamesInfo)}"
              tabindex=${this.tabIndex}
              aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
              aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
              role=${this.ariaRole}
              part="link"
            >
              <slot></slot>
            </div>
          `;case"span":return a.html`
            <span
              class="md-link ${(0,n.classMap)(this.linkClassNamesInfo)}"
              tabindex=${this.tabIndex}
              aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
              aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
              role=${this.ariaRole}
              part="link"
            >
              <slot></slot>
            </span>
          `;default:return a.html`
            <a
              class="md-link ${(0,n.classMap)(this.linkClassNamesInfo)}"
              .target="${this.target}"
              href=${(0,l.ifDefined)(this.disabled?void 0:this.href)}
              tabindex=${this.tabIndex}
              aria-label=${(0,l.ifDefined)(this.ariaLabel||void 0)}
              aria-disabled=${(0,l.ifDefined)(this.disabled||void 0)}
              role=${this.ariaRole}
              part="link"
            >
              <slot></slot>
            </a>
          `}}render(){return a.html` ${this.linkElement} `}};d([(0,s.property)({type:String,attribute:!1})],t.prototype,"color",void 0),d([(0,s.property)({type:String})],t.prototype,"ariaLabel",void 0),d([(0,s.property)({type:String})],t.prototype,"ariaRole",void 0),d([(0,s.property)({type:Boolean})],t.prototype,"disabled",void 0),d([(0,s.property)({type:Boolean})],t.prototype,"inline",void 0),d([(0,s.property)({type:String,attribute:"inline-style"})],t.prototype,"inlineStyle",void 0),d([(0,s.property)({type:Boolean})],t.prototype,"inverted",void 0),d([(0,s.property)({type:String})],t.prototype,"href",void 0),d([(0,s.property)({type:String})],t.prototype,"tag",void 0),d([(0,s.property)({type:String})],t.prototype,"target",void 0),d([(0,s.property)({type:String})],t.prototype,"size",void 0),d([(0,s.property)({type:Number,attribute:"tab-index",reflect:!0})],t.prototype,"tabIndex",null),d([(0,s.property)({type:Boolean})],t.prototype,"autofocus",void 0),d([(0,s.query)(".md-link")],t.prototype,"linkRef",void 0),t=d([(0,r.w)("md-link")],t),e.ELEMENT=t}(v||(v={}))}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var a=r[e]={exports:{}};return i[e](a,a.exports,o),a.exports}o.m=i,e=[],o.O=(t,i,r,a)=>{if(!i){var s=1/0;for(d=0;d<e.length;d++){for(var[i,r,a]=e[d],n=!0,l=0;l<i.length;l++)(!1&a||s>=a)&&Object.keys(o.O).every(e=>o.O[e](i[l]))?i.splice(l--,1):(n=!1,a<s&&(s=a));if(n){e.splice(d--,1);var p=r();void 0!==p&&(t=p)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[i,r,a]},o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);export{o as __webpack_require__};t={6132:0},o.C=e=>{var i,r,{__webpack_esm_ids__:a,__webpack_esm_modules__:s,__webpack_esm_runtime__:n}=e,l=0;for(i in s)o.o(s,i)&&(o.m[i]=s[i]);for(n&&n(o);l<a.length;l++)r=a[l],o.o(t,r)&&t[r]&&t[r][0](),t[a[l]]=0;o.O()},o.O.j=e=>0===t[e];import*as a from"../9609.js";o.C(a);import*as s from"../4084.js";o.C(s);import*as n from"../4955.js";o.C(n);import*as l from"../3517.js";o.C(l);import*as p from"../546.js";o.C(p);import*as d from"../476.js";o.C(d);import*as h from"../9375.js";o.C(h);var f=o.O(void 0,[9609,4084,4955,3517,546,476,9375],()=>o(5095));const y=(f=o.O(f)).N_,b=f.Rq,c=f.wD,v=f.xC,m=f.yG,u=f.jg;export{y as Link,b as inlineStyle,c as linkColor,v as linkRole,m as linkSize,u as linkTag};