import{r as e,h as o,H as a,g as t}from"./p-BdVwMG9u.js";import{_ as s,a as i}from"./p-dfXERft2.js";import{B as r}from"./p-ByiN-QjD.js";import{i as n}from"./p-Ct27z6g9.js";import{d as l}from"./p-CBkFUwrD.js";import{L as c}from"./p-B-L34nz8.js";import"./p-D7M-7v58.js";import"./p-B1u-Mq75.js";import"./p-D7ovid3w.js";const b=class{constructor(o){e(this,o),this.language=l.language,this.region=l.region,this.size="",this.inverted=!1}async configChanged(e){this.language=e.language,this.region=e.region}render(){const e=r.block("close"),t=e.element("button"),s=t.element("icon"),i=n[this.language].close;return o(a,{key:"087ee2337aa7bf8828fbcf32b3a8aa1ae74de0c7",class:Object.assign({},e.class())},o("button",{key:"ff78161fb93ebc2e8c5855e3ca734f32a78db700",type:"button","aria-label":i,title:i,tabindex:"0",class:Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("inverted").class(this.inverted)),t.modifier(`size-${this.size}`).class(""!==this.size)),"data-testid":"bal-close"},o("bal-icon",{key:"6f69b61b7ddbd9c0d2c2c532e3115e3429d9acf3",name:"close",size:"small"===this.size?"x-small":"medium"===this.size?"medium":"small",inverted:this.inverted,class:Object.assign({},s.class())})))}get el(){return t(this)}};s([c(),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],b.prototype,"configChanged",null),b.style="@media (hover: hover)and (pointer: fine){.bal-close__button:focus-visible:not(:active),.bal-close__button--inverted:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-close-background: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{b as bal_close}