import{Cb as r,Ja as o,qb as m,rb as l}from"./chunk-AO7NUUXN.js";var d=(()=>{class e{set tisColumns(t){this._tisColumns=t,this._applyStyles()}get tisColumns(){return this._tisColumns}constructor(t,i){this._el=t,this._renderer=i,this.maxColumn=12,this.maxColumnLine=13,this.maxColumnMobile=6,this._tisColumns=""}ngOnInit(){(!this.tisColumns||!/^\d{1,2}\/\d{1,2}$/.test(this.tisColumns))&&(this.tisColumns="1/12"),(!this.columnsAdaptive||!/^\d{1}\/\d{1}$/.test(this.columnsAdaptive))&&(this.columnsAdaptive="1/7"),this._applyStyles(),window.addEventListener("resize",this._applyStyles.bind(this))}_applyStyles(){let t=window.innerWidth<=991,[i,s]=this.tisColumns.split("/").map(Number),n=s;t&&this.columnsAdaptive?([i,s]=this.columnsAdaptive.split("/").map(Number),n=s>this.maxColumnMobile?this.maxColumnMobile+1:s+1):n=s>=this.maxColumn?this.maxColumnLine:s+1,this._renderer.setStyle(this._el.nativeElement,"grid-column-start",i.toString()),this._renderer.setStyle(this._el.nativeElement,"grid-column-end",n.toString())}static{this.\u0275fac=function(i){return new(i||e)(l(o),l(m))}}static{this.\u0275dir=r({type:e,selectors:[["","tisColumns",""]],inputs:{tisColumns:"tisColumns",columnsAdaptive:"columnsAdaptive"}})}}return e})();export{d as a};
