import{r as e,h as o,H as t,g as a}from"./p-90108212.js";import{i as s}from"./p-e4c2dcfc.js";import{B as i}from"./p-ae86d0a0.js";import{i as r}from"./p-a0fe8d65.js";import{d as n}from"./p-e7a581f5.js";import{L as l}from"./p-4b49a76f.js";import"./p-2f931022.js";import"./p-e680e7e4.js";import"./p-73aabc9d.js";import"./p-ba041fc5.js";const c=class{constructor(o){e(this,o),this.inheritedAttributes={},this.language=n.language,this.region=n.region,this.size="",this.inverted=!1}componentWillRender(){this.inheritedAttributes=s(this.el,["tabindex"])}async configChanged(e){this.language=e.language,this.region=e.region}render(){const e=i.block("close"),a=e.element("button"),s=a.element("icon"),n=r[this.language].close;return o(t,{class:Object.assign({},e.class())},o("button",Object.assign({type:"button","aria-label":n,title:n,class:Object.assign(Object.assign(Object.assign({},a.class()),a.modifier("inverted").class(this.inverted)),a.modifier(`size-${this.size}`).class(""!==this.size)),"data-testid":"bal-close"},this.inheritedAttributes),o("bal-icon",{name:"close",size:"small"===this.size?"x-small":"medium"===this.size?"medium":"small",inverted:this.inverted,class:Object.assign({},s.class())})))}get el(){return a(this)}};(function(e,o,t,a){var s,i=arguments.length,r=i<3?o:null===a?a=Object.getOwnPropertyDescriptor(o,t):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,o,t,a);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(r=(i<3?s(r):i>3?s(o,t,r):s(o,t))||r);i>3&&r&&Object.defineProperty(o,t,r)})([l()],c.prototype,"configChanged",null),c.style="@media (hover: hover)and (pointer: fine){.bal-close__button--inverted:focus-visible:not(:active),.bal-close__button:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-close-background:var(--bal-color-transparent);--bal-close-background-focus-visible:var(--bal-form-field-control-background);--bal-close-background-focus-inverted-focus-visible:var(--bal-form-field-control-background);--bal-close-border-radius:var(--bal-radius-rounded)}.bal-close{position:static;display:inline-block}.bal-close__button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-moz-appearance:none;-webkit-appearance:none;background-color:var(--bal-close-background);border:none;border-radius:var(--bal-close-border-radius);cursor:pointer;pointer-events:auto;display:inline-block;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;font-size:0;outline:none;position:relative;vertical-align:top;padding:.313rem}@media (hover: hover)and (pointer: fine){.bal-close__button:hover{background:rgba(0,7,57,.1)}}@media (hover: hover)and (pointer: fine){.bal-close__button:focus-visible:not(:active){background:var(--bal-close-background-focus-visible)}}.bal-close__button:active{background:rgba(0,7,57,.3)}@media (hover: hover)and (pointer: fine){.bal-close__button--inverted:hover{background:rgba(255,255,255,.3)}}@media (hover: hover)and (pointer: fine){.bal-close__button--inverted:focus-visible:not(:active){background:var(--bal-close-background-focus-inverted-focus-visible)}}.bal-close__button--inverted:active{background:rgba(255,255,255,.5)}.bal-close__button--size-small{padding:.25rem}.bal-close__button--size-medium{padding:.531rem}";export{c as bal_close}