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 ( $name, @choices, $selected, $id, $multiple, $params, $label );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }

    foreach my $arg ( qw( name choices ) )
    {
        HTML::Mason::Exception::Params->throw
            ( error => "no value sent for required parameter '$arg'" )
                unless exists $pos{$arg};
    }
#line 19 "/home/production/cxgn/sgn/mason/page/html_select.mas"
    $name = $_[ $pos{'name'} ];
#line 20 "/home/production/cxgn/sgn/mason/page/html_select.mas"
    @choices = HTML::Mason::Tools::coerce_to_array( $_[ $pos{'choices'} ], '@choices');
#line 21 "/home/production/cxgn/sgn/mason/page/html_select.mas"
     $selected = exists $pos{'selected'} ? $_[ $pos{'selected'} ] :  '';
#line 22 "/home/production/cxgn/sgn/mason/page/html_select.mas"
     $id = exists $pos{'id'} ? $_[ $pos{'id'} ] :  '';
#line 23 "/home/production/cxgn/sgn/mason/page/html_select.mas"
     $multiple = exists $pos{'multiple'} ? $_[ $pos{'multiple'} ] :  '';
#line 24 "/home/production/cxgn/sgn/mason/page/html_select.mas"
     $params = exists $pos{'params'} ? $_[ $pos{'params'} ] :  '';
#line 25 "/home/production/cxgn/sgn/mason/page/html_select.mas"
     $label = exists $pos{'label'} ? $_[ $pos{'label'} ] :  '';
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 1 "/home/production/cxgn/sgn/mason/page/html_select.mas"
$m->print( '
' );
#line 17 "/home/production/cxgn/sgn/mason/page/html_select.mas"
$m->print( '
' );
#line 27 "/home/production/cxgn/sgn/mason/page/html_select.mas"
$m->print( '
' );
#line 28 "/home/production/cxgn/sgn/mason/page/html_select.mas"

use strict;
use CXGN::Page::FormattingHelpers qw | simple_selectbox_html |;

print simple_selectbox_html(
   name => $name,
   choices => \@choices,
   selected => $selected,
   multiple => $multiple,
   id => $id,
   params => $params,
   label => $label,
);
;return;
},
'declared_args' => {
  '$id' => { default => ' \'\'' },
  '$label' => { default => ' \'\'' },
  '$multiple' => { default => ' \'\'' },
  '$name' => { default => undef },
  '$params' => { default => ' \'\'' },
  '$selected' => { default => ' \'\'' },
  '@choices' => { default => undef }
},
'load_time' => 1763121823,

)
;