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

    foreach my $arg ( qw( cvterm ) )
    {
        HTML::Mason::Exception::Params->throw
            ( error => "no value sent for required parameter '$arg'" )
                unless exists $pos{$arg};
    }
#line 2 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
     $title = exists $pos{'title'} ? $_[ $pos{'title'} ] :  'Ontology browser';
#line 3 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
    $cvterm = $_[ $pos{'cvterm'} ];
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 5 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->comp( { content => sub {
#line 8 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->print( '
' );
#line 9 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->comp(   '/util/import_javascript.mas',
    classes => [
        'MochiKit.DOM',
        'MochiKit.Visual',
        'MochiKit.Async',
        'MochiKit.Logging',
        'CXGN.Onto.Browser',
        'CXGN.Page.FormattingHelpers',
     ]
  
); #line 18 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->print( '
' );
#line 19 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->comp(   '/ontology/parentage.mas', accession => $cvterm->accession , db_name => $cvterm->db->name    
); #line 19 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->print( '
' );
#line 20 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
} }, '/page/info_section.mas',
    title       => $title,
    collapsible => 1,
 );
#line 20 "/home/production/cxgn/sgn/mason/ontology/embedded_browser.mas"
$m->print( '
' );
;return;
},
'declared_args' => {
  '$cvterm' => { default => undef },
  '$title' => { default => ' \'Ontology browser\'' }
},
'load_time' => 1763079580,

)
;