import{r as t,h as n,H as i,g as e}from"./p-afb110dc.js";const s=class{constructor(n){t(this,n),this.isActive=!1,this.closeLabel="Close",this.disabled=!1}handleKeyUp(t){"Escape"!==t.key&&"Esc"!==t.key||(t.preventDefault(),this.close())}clickOnOutside(t){!this.element.contains(t.target)&&this.isActive&&this.toggle()}async toggle(){this.isActive=!this.isActive}async open(){this.isActive=!0}async close(){this.isActive=!1}render(){return n(i,null,n("div",{role:"button",class:"bal-hint-icon",onClick:()=>this.toggle()},n("span",null,"i")),n("div",{class:"bal-hint-content",style:{display:this.isActive?"inline-block":"none"}},n("slot",null),n("div",{class:"buttons is-row-reverse"},n("bal-button",{type:"is-info",outlined:!0,inverted:!0,onClick:()=>this.close()},this.closeLabel))))}get element(){return e(this)}};s.style="@-webkit-keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.sc-bal-hint-h{display:inline-block}.bal-hint-icon.sc-bal-hint{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;background:#003399;width:20px;height:20px;border-radius:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-hint-icon.sc-bal-hint span.sc-bal-hint{color:#ffffff;font-weight:700;font-family:MetaPro, Arial, sans-serif;font-size:15px;margin-top:-1px}.bal-hint-icon.sc-bal-hint:hover{background:#002b82}.bal-hint-content.sc-bal-hint{position:fixed;top:0;bottom:0;left:0;right:0;z-index:100;background:#003399;color:#ffffff;padding:30px;min-width:280px}.bal-hint-content.sc-bal-hint .title.sc-bal-hint{color:#ffffff}.bal-hint-content.sc-bal-hint .buttons.sc-bal-hint{margin-top:30px}@media screen and (min-width: 720px), print{.bal-hint-content.sc-bal-hint{position:absolute;margin-left:40px;top:-20px;bottom:initial;left:initial;right:initial;-webkit-box-shadow:0 0 10px 0 rgba(0, 33, 98, 0.15);box-shadow:0 0 10px 0 rgba(0, 33, 98, 0.15)}}";export{s as bal_hint}