package SGN::View::Mason::Commands;
use strict;
use vars qw($m $c);
HTML::Mason::Component::FileBased->new(
'code' => sub {
use utf8; local $SGN::View::Mason::Commands::m = $HTML::Mason::Commands::m;
HTML::Mason::Exception::Params->throw
    ( error =>
      "Odd number of parameters passed to component expecting name/value pairs"
    ) if @_ % 2;
my ( $training_pop_id, $training_pop_name, $training_pop_desc, $selection_pop_id, $selection_pop_name, $selection_pop_desc, $model_page_url, $training_pop_url, $trial_detail_page, $stocks_no, $markers_no, $traits_no, $trait_name, $protocol_url, $list_reference, $owner, $combined_populations );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }

    foreach my $arg ( qw( stocks_no markers_no protocol_url ) )
    {
        HTML::Mason::Exception::Params->throw
            ( error => "no value sent for required parameter '$arg'" )
                unless exists $pos{$arg};
    }
#line 17 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $training_pop_id = exists $pos{'training_pop_id'} ? $_[ $pos{'training_pop_id'} ] :  '';
#line 18 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $training_pop_name = exists $pos{'training_pop_name'} ? $_[ $pos{'training_pop_name'} ] :  '';
#line 19 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $training_pop_desc = exists $pos{'training_pop_desc'} ? $_[ $pos{'training_pop_desc'} ] :  '';
#line 21 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $selection_pop_id = exists $pos{'selection_pop_id'} ? $_[ $pos{'selection_pop_id'} ] :  '';
#line 22 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $selection_pop_name = exists $pos{'selection_pop_name'} ? $_[ $pos{'selection_pop_name'} ] :  '';
#line 23 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $selection_pop_desc = exists $pos{'selection_pop_desc'} ? $_[ $pos{'selection_pop_desc'} ] :  '';
#line 25 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $model_page_url = exists $pos{'model_page_url'} ? $_[ $pos{'model_page_url'} ] : '';
#line 26 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $training_pop_url = exists $pos{'training_pop_url'} ? $_[ $pos{'training_pop_url'} ] : '';
#line 27 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $trial_detail_page = exists $pos{'trial_detail_page'} ? $_[ $pos{'trial_detail_page'} ] :  'NA';
#line 28 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
    $stocks_no = $_[ $pos{'stocks_no'} ];
#line 29 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
    $markers_no = $_[ $pos{'markers_no'} ];
#line 30 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $traits_no = exists $pos{'traits_no'} ? $_[ $pos{'traits_no'} ] :  'NA';
#line 31 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $trait_name = exists $pos{'trait_name'} ? $_[ $pos{'trait_name'} ] :  '';
#line 32 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
    $protocol_url = $_[ $pos{'protocol_url'} ];
#line 33 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $list_reference = exists $pos{'list_reference'} ? $_[ $pos{'list_reference'} ] :  '';
#line 34 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $owner = exists $pos{'owner'} ? $_[ $pos{'owner'} ] :  '';
#line 35 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
     $combined_populations = exists $pos{'combined_populations'} ? $_[ $pos{'combined_populations'} ] :  '';
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 14 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->print( '
' );
#line 38 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->print( '  
' );
#line 39 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"


$owner = 'NA' if !$owner;
$training_pop_url = $training_pop_name if !$training_pop_url;
my $pop_desc = $selection_pop_desc ? $selection_pop_desc : $training_pop_desc;
my $pop_name = $selection_pop_name ? $selection_pop_name : $training_pop_url;
my @data_c1 = (['Name', $pop_name],  ['Description', $pop_desc], ['Owner', $owner], ['Trial detail page', $trial_detail_page]);
my @data_c2 = (['No. of lines', $stocks_no],  ['No. of markers', $markers_no], ['Genotyping version', $protocol_url]);

push @data_c2,  ['No. of traits', $traits_no] if $traits_no > 1;
push @data_c2,  ['Training model', $model_page_url] if $model_page_url;

#line 52 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->print( '
<table class="table">
  <tr>
    <td>
      ' );
#line 56 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->comp(   '/page/columnar_table.mas',
         data         => \@data_c1,
         __alt_freq   => 0,
         __align      => "l",

          
); #line 61 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->print( '
    </td>
    <td>
      ' );
#line 64 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->comp(   '/page/columnar_table.mas',
         data       =>\@data_c2,
        __alt_freq  => 1,
        __align     => "l",

          
); #line 69 "/home/production/cxgn/sgn/mason/solgs/population/summary.mas"
$m->print( '
    </td>
  </tr>
</table>
' );
;return;
},
'declared_args' => {
  '$combined_populations' => { default => ' \'\'' },
  '$list_reference' => { default => ' \'\'' },
  '$markers_no' => { default => undef },
  '$model_page_url' => { default => '\'\'' },
  '$owner' => { default => ' \'\'' },
  '$protocol_url' => { default => undef },
  '$selection_pop_desc' => { default => ' \'\'' },
  '$selection_pop_id' => { default => ' \'\'' },
  '$selection_pop_name' => { default => ' \'\'' },
  '$stocks_no' => { default => undef },
  '$training_pop_desc' => { default => ' \'\'' },
  '$training_pop_id' => { default => ' \'\'' },
  '$training_pop_name' => { default => ' \'\'' },
  '$training_pop_url' => { default => '\'\'' },
  '$trait_name' => { default => ' \'\'' },
  '$traits_no' => { default => ' \'NA\'' },
  '$trial_detail_page' => { default => ' \'NA\'' }
},
'load_time' => 1763135441,

)
;