package SGN::View::Mason::Commands;
use strict;
use vars qw($m $c);
#line 72 "/home/production/cxgn/sgn/mason/page/info_table.mas"

  use CXGN::Page::FormattingHelpers 'info_table_html';
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 ( $sub, $title, $tableattrs, $multicol, $caption, $border, $data );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }
#line 48 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $sub = exists $pos{'sub'} ? $_[ $pos{'sub'} ] :  0;
#line 49 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $title = exists $pos{'title'} ? $_[ $pos{'title'} ] :  '';
#line 50 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $tableattrs = exists $pos{'tableattrs'} ? $_[ $pos{'tableattrs'} ] :  '';
#line 51 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $multicol = exists $pos{'multicol'} ? $_[ $pos{'multicol'} ] :  1;
#line 52 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $caption = exists $pos{'caption'} ? $_[ $pos{'caption'} ] :  '';
#line 53 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $border = exists $pos{'border'} ? $_[ $pos{'border'} ] :  0;
#line 55 "/home/production/cxgn/sgn/mason/page/info_table.mas"
     $data = exists $pos{'data'} ? $_[ $pos{'data'} ] :  undef;
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 58 "/home/production/cxgn/sgn/mason/page/info_table.mas"


  my %mapped_args = (
      __border   => $border,
      __caption  => $caption,
      __multicol => $multicol,
      __tableattrs => $tableattrs,
      __title    => $title,
      __sub      => $sub
   );

  $data ||= [ split /^\s*\-{2,}\s*$/m, $m->content ];

#line 46 "/home/production/cxgn/sgn/mason/page/info_table.mas"
$m->print( '
' );
#line 57 "/home/production/cxgn/sgn/mason/page/info_table.mas"
$m->print(  info_table_html( %mapped_args, @$data )  );
#line 57 "/home/production/cxgn/sgn/mason/page/info_table.mas"
$m->print( '
' );
;return;
},
'declared_args' => {
  '$border' => { default => ' 0' },
  '$caption' => { default => ' \'\'' },
  '$data' => { default => ' undef' },
  '$multicol' => { default => ' 1' },
  '$sub' => { default => ' 0' },
  '$tableattrs' => { default => ' \'\'' },
  '$title' => { default => ' \'\'' }
},
'load_time' => 1763108195,

)
;