import{r as t,h as i,g as n,H as r}from"./p-21516f8c.js";import{m as s}from"./p-3e55f270.js";const a=":host{padding:var(--lu-grid-column-padding-xs, var(--lu-grid-column-padding, 5px));margin:0;box-sizing:border-box;position:relative;flex-basis:0;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{padding:var(--lu-grid-column-padding-sm, var(--lu-grid-column-padding, 5px))}}@media (min-width: 768px){:host{padding:var(--lu-grid-column-padding-md, var(--lu-grid-column-padding, 5px))}}@media (min-width: 992px){:host{padding:var(--lu-grid-column-padding-lg, var(--lu-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{padding:var(--lu-grid-column-padding-xl, var(--lu-grid-column-padding, 5px))}}";const l=window;const d=!!(l.CSS&&l.CSS.supports&&l.CSS.supports("--a: 0"));const o=["","xs","sm","md","lg","xl"];const e=class{constructor(i){t(this,i)}onResize(){this.el.forceUpdate()}getColumns(t){let i;for(const n of o){const r=s(n);const a=this[t+n.charAt(0).toUpperCase()+n.slice(1)];if(r&&a!==undefined){i=a}}return i}calculateSize(){const t=this.getColumns("size");if(!t||t===""){return}const i=t==="auto"?"auto":d?`calc(calc(${t} / var(--lu-grid-columns, 12)) * 100%)`:t/12*100+"%";return{flex:`0 0 ${i}`,width:`${i}`,"max-width":`${i}`}}calculatePosition(t,i){const n=this.getColumns(t);if(!n){return}const r=d?`calc(calc(${n} / var(--lu-grid-columns, 12)) * 100%)`:n>0&&n<12?n/12*100+"%":"auto";return{[i]:r}}calculateOffset(){return this.calculatePosition("offset","margin-left")}calculatePull(){return this.calculatePosition("pull","right")}calculatePush(){return this.calculatePosition("push","left")}hostData(){return{style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset()),this.calculatePull()),this.calculatePush()),this.calculateSize())}}__stencil_render(){return i("slot",null)}get el(){return n(this)}render(){return i(r,this.hostData(),this.__stencil_render())}};e.style=a;export{e as lu_col};
//# sourceMappingURL=p-351c3e36.entry.js.map