1(self.webpackChunkprimoVeNde=self.webpackChunkprimoVeNde||[]).push([["node_modules_angular_material_fesm2022_grid-list_mjs-_cd020"],{16488:(j,v,s)=>{s.r(v),s.d(v,{MatGridAvatarCssMatStyler:()=>c,MatGridList:()=>m,MatGridListModule:()=>f,MatGridTile:()=>_,MatGridTileFooterCssMatStyler:()=>u,MatGridTileHeaderCssMatStyler:()=>p,MatGridTileText:()=>h,\u0275TileCoordinator:()=>$});var w,E,T,D,b,C,S,n=s(36732),i=s(68930),g=s(96511),M=s(2814),I=s(63680);const P=["*"],R=[[["","mat-grid-avatar",""],["","matGridAvatar",""]],[["","mat-line",""],["","matLine",""]],"*"],L=["[mat-grid-avatar], [matGridAvatar]","[mat-line], [matLine]","*"];class O{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){const t=Math.max(...this.tracker);return t>1?this.rowCount+t-1:this.rowCount}positions;update(t,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(r=>this._trackTile(r))}_trackTile(t){const e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new G(this.rowIndex,e)}_findMatchingGap(t){this.tracker.length;let e=-1,r=-1;do{this.columnIndex+t>this.tracker.length?(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),r=this._findGapEndIndex(e)):(e=this.tracker.indexOf(0,this.columnIndex),-1!=e?(r=this._findGapEndIndex(e),this.columnIndex=e+1):(this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),r=this._findGapEndIndex(e)))}while(r-e<t||0==r);return Math.max(e,0)}_nextRow(){this.columnIndex=0,this.rowIndex++;for(let t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)}_findGapEndIndex(t){for(let e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length}_markTilePosition(t,e){for(let r=0;r<e.colspan;r++)this.tracker[t+r]=e.rowspan}}class G{row;col;constructor(t,e){this.row=t,this.col=e}}const A=new i.InjectionToken("MAT_GRID_LIST");class _{_element=(0,i.inject)(i.ElementRef);_gridList=(0,i.inject)(A,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(t){this._rowspan=Math.round((0,M.OE)(t))}get colspan(){return this._colspan}set colspan(t){this._colspan=Math.round((0,M.OE)(t))}_setStyle(t,e){this._element.nativeElement.style[t]=e}static#t=w=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||_)}),(0,n.A)(this,"\u0275cmp",i.\u0275\u0275defineComponent({type:_,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("rowspan",r.rowspan)("colspan",r.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:P,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div",0),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}))}}w();class h{_element=(0,i.inject)(i.ElementRef);_lines;constructor(){}ngAfterContentInit(){(0,g.setLines)(this._lines,this._element)}static#t=E=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||h)}),(0,n.A)(this,"\u0275cmp",i.\u0275\u0275defineComponent({type:h,selectors:[["mat-grid-tile-header"],["mat-grid-tile-footer"]],contentQueries:function(e,r,a){if(1&e&&i.\u0275\u0275contentQuery(a,g.MatLine,5),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r._lines=o)}},ngContentSelectors:L,decls:4,vars:0,consts:[[1,"mat-grid-list-text"]],template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(R),i.\u0275\u0275projection(0),i.\u0275\u0275elementStart(1,"div",0),i.\u0275\u0275projection(2,1),i.\u0275\u0275elementEnd(),i.\u0275\u0275projection(3,2))},encapsulation:2,changeDetection:0}))}}E();class c{static#t=T=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||c)}),(0,n.A)(this,"\u0275dir",i.\u0275\u0275defineDirective({type:c,selectors:[["","mat-grid-avatar",""],["","matGridAvatar",""]],hostAttrs:[1,"mat-grid-avatar"]}))}}T();class p{static#t=D=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||p)}),(0,n.A)(this,"\u0275dir",i.\u0275\u0275defineDirective({type:p,selectors:[["mat-grid-tile-header"]],hostAttrs:[1,"mat-grid-tile-header"]}))}}D();class u{static#t=b=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||u)}),(0,n.A)(this,"\u0275dir",i.\u0275\u0275defineDirective({type:u,selectors:[["mat-grid-tile-footer"]],hostAttrs:[1,"mat-grid-tile-footer"]}))}}b();const B=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class x{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(t,e,r,a){this._gutterSize=z(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=r,this._direction=a}getBaseTileSize(t,e){return`(${t}% - (${this._gutterSize} * ${e}))`}getTilePosition(t,e){return 0===e?"0":d(`(${t} + ${this._gutterSize}) * ${e}`)}getTileSize(t,e){return`(${t} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(t,e,r){let a=100/this._cols,o=(this._cols-1)/this._cols;this.setColStyles(t,r,a,o),this.setRowStyles(t,e,a,o)}setColStyles(t,e,r,a){let o=this.getBaseTileSize(r,a),y="rtl"===this._direction?"right":"left";t._setStyle(y,this.getTilePosition(o,e)),t._setStyle("width",d(this.getTileSize(o,t.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan}
1 - 1)`}getTileSpan(t){return`${this._rowspan} * ${this.getTileSize(t,1)}`}getComputedHeight(){return null}}class H extends x{fixedRowHeight;constructor(t){super(),this.fixedRowHeight=t}init(t,e,r,a){super.init(t,e,r,a),this.fixedRowHeight=z(this.fixedRowHeight),B.test(this.fixedRowHeight)}setRowStyles(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",d(this.getTileSize(this.fixedRowHeight,t.rowspan)))}getComputedHeight(){return["height",d(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["height",null]),t._tiles&&t._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}class W extends x{rowHeightRatio;baseTileHeight;constructor(t){super(),this._parseRatio(t)}setRowStyles(t,e,r,a){let o=r/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(o,a),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",d(this.getTileSize(this.baseTileHeight,t.rowspan)))}getComputedHeight(){return["paddingBottom",d(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(t){t._setListStyle(["paddingBottom",null]),t._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(t){const e=t.split(":");e.length,this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}}class U extends x{setRowStyles(t,e){let r=100/this._rowspan,a=(this._rows-1)/this._rows,o=this.getBaseTileSize(r,a);t._setStyle("top",this.getTilePosition(o,e)),t._setStyle("height",d(this.getTileSize(o,t.rowspan)))}reset(t){t._tiles&&t._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}}function d(l){return`calc(${l})`}function z(l){return l.match(/([A-Za-z%]+)$/)?l:`${l}px`}class m{_element=(0,i.inject)(i.ElementRef);_dir=(0,i.inject)(I.dS,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(t){this._cols=Math.max(1,Math.round((0,M.OE)(t)))}get gutterSize(){return this._gutter}set gutterSize(t){this._gutter=`${t??""}`}get rowHeight(){return this._rowHeight}set rowHeight(t){const e=`${t??""}`;e!==this._rowHeight&&(this._rowHeight=e,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){this.cols}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(t){this._tileStyler&&this._tileStyler.reset(this),"fit"===t?this._tileStyler=new U:t&&t.indexOf(":")>-1?this._tileStyler=new W(t):this._tileStyler=new H(t)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new O);const t=this._tileCoordinator,e=this._tiles.filter(a=>!a._gridList||a._gridList===this),r=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,e),this._tileStyler.init(this.gutterSize,t,this.cols,r),e.forEach((a,o)=>{const y=t.positions[o];this._tileStyler.setStyle(a,y.row,y.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(t){t&&(this._element.nativeElement.style[t[0]]=t[1])}static#t=C=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||m)}),(0,n.A)(this,"\u0275cmp",i.\u0275\u0275defineComponent({type:m,selectors:[["mat-grid-list"]],contentQueries:function(e,r,a){if(1&e&&i.\u0275\u0275contentQuery(a,_,5),2&e){let o;i.\u0275\u0275queryRefresh(o=i.\u0275\u0275loadQuery())&&(r._tiles=o)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(e,r){2&e&&i.\u0275\u0275attribute("cols",r.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[i.\u0275\u0275ProvidersFeature([{provide:A,useExisting:m}])],ngContentSelectors:P,decls:2,vars:0,template:function(e,r){1&e&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275projection(1),i.\u0275\u0275elementEnd())},styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;
1left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}"],encapsulation:2,changeDetection:0}))}}C();class f{static#t=S=()=>{(0,n.A)(this,"\u0275fac",function(e){return new(e||f)}),(0,n.A)(this,"\u0275mod",i.\u0275\u0275defineNgModule({type:f})),(0,n.A)(this,"\u0275inj",i.\u0275\u0275defineInjector({imports:[g.MatLineModule,g.MatCommonModule,g.MatLineModule,g.MatCommonModule]}))}}S();const $=O}}]); 2//# sourceMappingURL=node_modules_angular_material_fesm2022_grid-list_mjs-_cd020.b5fd80bcc9933066.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.