	<div class="container">
				 <div class="form-inline">
					  <div class="form-group col-sm-2" >
					     <br>
					     <label class="labelEtiqueta">Minimo Garantizado</label>		    
					  </div>
					  
					  <div class="form-group col-sm-2">
					     <label class="radio-inline"><input type="radio" value="categoria" ng-model="tipoMinLib" ng-click="inicializarDivsMinimos(tipoMinLib, 'Lib')">Por Categoria</label>
					  </div>
					  <div class="form-group col-sm-2">
					     <label class="radio-inline"><input type="radio" value="anio" ng-model="tipoMinLib" ng-click="inicializarDivsMinimos(tipoMinLib, 'Lib')">Por Año</label>
					  </div>
					  <div class="form-group col-sm-2">
					     <label class="radio-inline"><input type="radio" value="na" ng-model="tipoMinLib" ng-click="inicializarDivsMinimos(tipoMinLib, 'Lib')">No Aplica</label>
					  </div>
											  
					  <div class="form-group col-sm-4"  id="divMinCateLib" style="display:none">
					  	<br>
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-bs-toggle="tooltip" data-placement="top" title="Exportar a excel"  ng-click="exportarExcel('libreria', 'min_cat', tablaMinGarLib, tablaMinGarLib.encabezados)"  > <i class="fa fa-file-excel-o"></i></button></div>					    
					    <div class="col-sm-1"></div>  
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-importar" ng-click="abrirModalMinimos('libreria')" >Importar Categoría</button></div>
					    <div class="col-sm-4"></div>					    
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="agregarPeriodos('libreria', tipoMinLib)" >Agregar Periodo</button></div>
					  </div>					  
					  
					  <div class="form-group col-sm-4"  id="divMinAnioLib" style="display:none">
					    <br>
					    <div class="col-sm-1"><button type="button" class="btn btn-primary btn-sm btn-exportar" data-bs-toggle="tooltip" data-placement="top" title="Exportar a excel"  ng-click="exportarExcel('libreria', 'min_anio', tablaMinAnioLib, tablaMinAnioLib.encabezados)" > <i class="fa fa-file-excel-o"></i></button></div>
					    <div class="col-sm-1"></div>
					  	<div class="col-sm-2"><button type="button" class="btn btn-primary btn-sm btn-agregar" ng-click="agregarPeriodos('libreria', tipoMinLib)" >Agregar Periodo</button></div>
					  </div>
				 </div>
	</div>
			   
	<br/>
	<br/>
					   			  
    <div id="divMinimos" class="search-table-outter wrapper"  style="max-width: 750px;">                    				
	           	   <table id="tabMinCatLib" class="table table-responsive feesT"  ng-show="tipoMinLib == 'categoria'" style="max-width: 750px;">
	           	      <col style="width: 60px; min-width: 60px;"/>
            		  <col style="width: 60px; min-width: 60px;"/>            		              		              		  
	           	      <thead class="">                		
				      		<tr>                                                                    				      			
								<th class="encabezados encabezadoTabla" colspan="{{setColspan(x)}}" ng-repeat="x in tablaMinGarLib.encabezados" ng-click="modificarFechasAnioMinimos($index, $event, tipoMinLib, 'libreria')">{{x.valor}}</th>
								<th colspan="1" class="encabezadoTabla" style="width: 20px; min-width: 20px;">
	                					<i role="button" class="fa fa-plus" ng-click="editarTablaMinGarantizados('addRow', null, null, 'libreria', tablaMinGarLib, tablaRevenueLibBox)" data-bs-toggle="tooltip" data-placement="top" title="Agregar Categorías!"></i>	                					 	                					
	                			</th>																	     	                			 	
				    		</tr>
				        <thead>
				        <tbody>
		                    <tr ng-repeat="datum in tablaMinGarLib.datos">                                                                        
		                        <td ng-repeat="field in datum" class="tdEditable">		                            
		                            <input class="tdEditable" ng-if="$index <= 2 && $parent.$index == 0" type="{{tablaMinGarLib.metadatos[$index].tipo}}" ng-model="field.valor" readonly/>                           
		                            <input class="tdEditable" ng-if="$index > 2 && $parent.$index == 0 " type="{{tablaMinGarLib.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$parent.$index, $index, $event, 'libreria', tipoMinLib, tablaMinAnioLib, tablaMinGarLib, tablaRevenueLibBox)" />
		                            <input class="tdEditable" ng-if="$parent.$index > 0 "                type="{{tablaMinGarLib.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$parent.$index, $index, $event, 'libreria', tipoMinLib, tablaMinAnioLib, tablaMinGarLib, tablaRevenueLibBox)" />	                           	                           	                          		                                              			
		                  		</td>                  	
		                  		<td> 
		                  		    <label> {{tablaMinGarLib.mensajes[$index] }} </label> 
		                  		    <i ng-if="$index > 0" role="button" class="fa fa-times" ng-click="editarTablaMinGarantizados('removeRow',$index, null,'libreria', tablaMinGarLib, tablaRevenueLibBox)"></i>
		                  		</td>		                  		 	
		                    </tr>		                    
	                    </tbody>	           	      
	           	   </table>
	           	   
	           	   <table id="tabAnioMinLib" class="table table-responsive feesT"  ng-show="tipoMinLib == 'anio'" style="max-width: 500px;">
		           	   	  <col style="width: 60px; min-width: 70px;"/>
	            		  <col style="width: 60px; min-width: 70px;"/>
	            		  <col style="width: 50px; max-width: 50px;"/>
	            		  <col style="width: 20px; min-width: 20px;"/>	           	      	           	      
		           	      <thead class="">                		
					      		<tr>
									<th class="encabezados encabezadoTabla" colspan="{{setColspan(x)}}" ng-repeat="x in tablaMinAnioLib.encabezados" >{{x.valor}}</th>
									<th colspan="1" class="encabezadoTabla" style="width: 20px; min-width: 20px;">	                						                				
		                			</th>																	     	                			 	
					    		</tr>
					        <thead>
					        <tbody>
			                    <tr ng-repeat="datum in tablaMinAnioLib.datos">                                                                        
			                         <td ng-repeat="field in datum">		                                                                                        
			                            <input class="tdEditable" ng-if="$index == 0" type="{{tablaMinAnioLib.metadatos[$index].tipo}}" ng-model="field.valor" ng-click="modificarFechasAnioMinimos($parent.$parent.$index, $event, tipoMinLib, 'libreria')" ng-readonly="$index == 0"/>
			                            <input class="tdEditable" ng-if="$index == 1" type="{{tablaMinAnioLib.metadatos[$index].tipo}}" ng-model="field.valor" ng-blur="actualizarMinCelda($parent.$index, $index, $event, 'libreria', tipoMinLib, tablaMinAnioLib, tablaMinGarLib)" ng-model-options="{updateOn: 'blur'}"/>
			                            <select  class="form-control-sm" name="selectAplica" id="selectAplica" ng-if="$index == 2" ng-model="field.valor">                                                          
										      <option value="">Selecciona Valor</option> 
										      <option value="TITULO">Por Título</option> 
										      <option value="TOTAL">Total</option>
										</select>	                           	                           	                          		                                              		
			                  		 </td>		                  		                   	
			                  		 <td> 
			                  		    <label> {{tablaMinAnioLib.mensajes[$index] }} </label> 		                  		    
			                  		 </td>		                  		 	
			                    </tr>
		                    </tbody>
	           	   </table>     		           	   	           	      
	</div>
	           	          	           	           	                               				                	    	          	           
	<br/>
	<br/>