import{Db as u,Ia as m,tb as r,ub as o}from"./chunk-DYUFV4HF.js";var p=(()=>{let t=class t{set tisColumns(i){this._tisColumns=i,this._applyStyles()}get tisColumns(){return this._tisColumns}constructor(i,s){this._el=i,this._renderer=s,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 i=window.innerWidth<=991,[s,e]=this.tisColumns.split("/").map(Number),l=e;i&&this.columnsAdaptive?([s,e]=this.columnsAdaptive.split("/").map(Number),l=e>this.maxColumnMobile?this.maxColumnMobile+1:e+1):l=e>=this.maxColumn?this.maxColumnLine:e+1,this._renderer.setStyle(this._el.nativeElement,"grid-column-start",s.toString()),this._renderer.setStyle(this._el.nativeElement,"grid-column-end",l.toString())}};t.\u0275fac=function(s){return new(s||t)(o(m),o(r))},t.\u0275dir=u({type:t,selectors:[["","tisColumns",""]],inputs:{tisColumns:"tisColumns",columnsAdaptive:"columnsAdaptive"}});let n=t;return n})();export{p as a};
//# sourceMappingURL=chunk-TIS36BNQ.js.map
