import{r as registerInstance,h,H as Host}from"./index-e04a7bc5.js";import{B as BEM}from"./bem-8c7d2eb0.js";import{L as Logger}from"./log-cf8e52ef.js";import"./browser-a623d3a0.js";var balContentCss=".bal-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:flex-start;text-align:left;gap:.25rem}.bal-content--align-center{-ms-flex-align:center;align-items:center;text-align:center}.bal-content--align-end{-ms-flex-align:end;align-items:flex-end;text-align:right}.bal-content--layout-horizontal{-ms-flex-direction:row;flex-direction:row}.bal-content--layout-vertical{-ms-flex-direction:column;flex-direction:column}.bal-content--space-xx-small{gap:.25rem}.bal-content--space-x-small{gap:.5rem}.bal-content--space-small{gap:.75rem}.bal-content--space-normal{gap:1rem}.bal-content>.bal-text{margin:0}";var __decorate=undefined&&undefined.__decorate||function(t,e,n,a){var l=arguments.length,i=l<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,n):a,r;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(t,e,n,a);else for(var o=t.length-1;o>=0;o--)if(r=t[o])i=(l<3?r(i):l>3?r(e,n,i):r(e,n))||i;return l>3&&i&&Object.defineProperty(e,n,i),i};var BalContent=function(){function t(t){registerInstance(this,t);this.layout="vertical";this.align="start";this.space="xx-small";this.direction="";this.alignment=""}t.prototype.createLogger=function(t){this.log=t};t.prototype.render=function(){var t=BEM.block("content");var e=!!this.direction;var n=!!this.layout;var a=!!this.alignment;var l=!!this.align;var i=!!this.space;var r=this.layout;if(e){r=this.direction==="row"?"horizontal":"vertical"}var o=this.align.split(" ").join("-");if(a){o=this.alignment.split(" ").join("-")}return h(Host,{class:Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("layout-".concat(r)).class(n||e)),t.modifier("align-".concat(o)).class(l||a)),t.modifier("space-".concat(this.space)).class(i))},h("slot",null))};return t}();__decorate([Logger("bal-content")],BalContent.prototype,"createLogger",null);BalContent.style=balContentCss;export{BalContent as bal_content};