import{r as a,h as e,H as i}from"./p-76ab1744.js";import{e as r,a as t,c as l}from"./p-b62d3090.js";const c={ATTENTION:"attention",SPECIAL:"special",NEUTRAL:"neutral",INFORMATION:"information",SUCCESS:"success",WARNING:"warning",ERROR:"error",SPECIAL_OFFER:"special-offer",NOT_AVAILABLE:"not-available"};Object.values(c);const o=class{constructor(e){a(this,e),this.dataTestid=null,this.allyLabel=null,this.dataTrackingId="telia-badge",this.mapIcon=a=>{switch(a){case c.SUCCESS:return l.svg;case c.WARNING:return t.svg;case c.ERROR:return r.svg;default:return null}}}validateDeprecatedVariants(){const a=`Deprecation warning - [Telia-badge]: ${this.variant} variant. This variant will be deprecated soon.`;[c.SPECIAL_OFFER,c.NOT_AVAILABLE].includes(this.variant)&&console.warn(a)}componentWillLoad(){this.validateDeprecatedVariants()}render(){const a=this.mapIcon(this.variant);return e("span",{class:{"telia-badge":!0,[`telia-badge--${this.variant}`]:!!this.variant},"data-testid":this.dataTestid},(a||this.icon)&&e("telia-icon",{"ally-title":this.allyLabel,name:this.icon,size:"sm",svg:a}),e("slot",null),e("telia-vst",{dataTrackingId:this.dataTrackingId}))}};o.style='.telia-badge{font-family:"TeliaSans", Helvetica, Arial, "Lucida Grande", sans-serif;font-weight:500;font-size:calc(1.4rem * var(--voca-rem-multiplier));align-items:center;border-radius:calc(0.2rem * var(--voca-rem-multiplier));display:inline-flex;gap:calc(0.4rem * var(--voca-rem-multiplier));line-height:1;padding:calc(0.4rem * var(--voca-rem-multiplier)) calc(0.8rem * var(--voca-rem-multiplier))}.telia-badge--attention{background-color:#5e0092;color:#ffffff}.telia-badge--special{background-color:#edc8ff;color:#30004b}.telia-badge--neutral{background-color:rgba(0, 0, 0, 0.2);color:#303032}.telia-badge--information{background-color:#a6dbff;color:#003d66}.telia-badge--success{background-color:#a6e3c4;color:#00572a}.telia-badge--warning{background-color:#ffdca6;color:#663e00}.telia-badge--error{background-color:#f6aec6;color:#5b0925}.telia-badge--special-offer{background-color:#edc8ff;color:#29003e}.telia-badge--not-available{background-color:#dcdce1;color:#303032}';const n=class{constructor(e){a(this,e),this.dataTrackingId="telia-card-frame-link",this.componentClass="telia-card-frame-link"}render(){return e(i,{class:this.componentClass,"data-testid":this.dataTestid},e("telia-link",{silent:!0,variant:"text",href:this.href,"link-title":this.linkTitle,class:this.componentClass+"__link"},e("div",{class:`${this.componentClass}__content`},e("telia-card-frame",{class:`${this.componentClass}__frame`,disablePadding:this.disablePadding},e("slot",null)))),e("telia-vst",{dataTrackingId:this.dataTrackingId}))}};n.style=".telia-card-frame-link__link{background-clip:padding-box;box-sizing:border-box;cursor:pointer;height:100%;white-space:normal}.telia-card-frame-link__content{border-radius:calc(0.8rem * var(--voca-rem-multiplier));display:flex;flex-direction:column;height:100%}.telia-card-frame-link__content:hover{color:#222222}@media screen and (min-width: 37.5em){.telia-card-frame-link__content:hover{box-shadow:0 calc(0.1rem * var(--voca-rem-multiplier)) calc(0.4rem * var(--voca-rem-multiplier)) rgba(0, 0, 0, 0.1)}}.telia-card-frame-link__frame{height:100%;width:100%}";export{o as telia_badge,n as telia_card_frame_link}