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 ( $pop_id, $combo_pops_id, $trait_id, $trial_id );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }

    foreach my $arg ( qw( trait_id ) )
    {
        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/models/model/gebv_pheno_regression.mas"
     $pop_id = exists $pos{'pop_id'} ? $_[ $pos{'pop_id'} ] :  '';
#line 18 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
     $combo_pops_id = exists $pos{'combo_pops_id'} ? $_[ $pos{'combo_pops_id'} ] :  '';
#line 19 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
    $trait_id = $_[ $pos{'trait_id'} ];
#line 20 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
     $trial_id = exists $pos{'trial_id'} ? $_[ $pos{'trial_id'} ] :  '';
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 14 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->print( '
' );
#line 23 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->print( '
' );
#line 24 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"


$pop_id = $trial_id if $trial_id;

#line 29 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->print( '

<style>

.axis path, .axis line {
  fill: none;
  stroke: #000;
  shape-rendering: crispEdges;
}

</style>

' );
#line 41 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->comp(   '/util/import_javascript.mas', classes => [ "solGS.gebvPhenoRegression", "solGS.scatterPlot"]   
); #line 41 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->print( '

  ' );
#line 43 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->comp( { content => sub {
#line 47 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->print( '
    
<div id="gebv_pheno_regression_canvas">
  <div id="gebv_pheno_regression_plot"></div>
  <div id="gebv_pheno_regression_message"></div>
</div>

' );
#line 54 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
} }, '/page/info_section.mas', 
  collapsible => 1, 
  collapsed   => 0, 
  title       => "GEBVs vs observed phenotypes"
 );
#line 54 "/home/production/cxgn/sgn/mason/solgs/population/models/model/gebv_pheno_regression.mas"
$m->print( '
' );
;return;
},
'declared_args' => {
  '$combo_pops_id' => { default => ' \'\'' },
  '$pop_id' => { default => ' \'\'' },
  '$trait_id' => { default => undef },
  '$trial_id' => { default => ' \'\'' }
},
'load_time' => 1763137176,

)
;