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 ( $user_id );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }
#line 3 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
     $user_id = exists $pos{'user_id'} ? $_[ $pos{'user_id'} ] :  undef;
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 1 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '
' );
#line 5 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '
' );
#line 6 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp(   '/util/import_css.mas', paths => [
    'leaflet.css',
    'leaflet.extra-markers.min.css',
    'esri-leaflet-geocoder.css'
]   
); #line 10 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 12 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp(   '/page/page_title.mas', title=>"Manage Locations"   
); #line 12 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

<div class="container-fluid">

' );
#line 16 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp( { content => sub {
#line 16 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 18 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp(   '/breeders_toolbox/location_table.mas', user_id=>$user_id   
); #line 18 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 20 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
} }, '/page/info_section.mas', title=>'Location Table',  collapsible=>1, collapsed=>0, subtitle=>'[<a id="upload_locations_link">Upload New Locations</a>]'
 );
#line 20 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 22 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp( { content => sub {
#line 22 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '
<br>
<div style="text-align:right" id="locations_to_list_menu"></div>
<div id="location_names" style="display: none;"></div>
' );
#line 26 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
} }, '/page/info_section.mas', title => 'Copy Locations to a List', collapsible=>1, collapsed=>0, subtitle=>'<i>Copy the location names in the table to a new or exisiting list</i>'
 );
#line 26 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 28 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp( { content => sub {
#line 28 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 30 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->comp(   '/breeders_toolbox/location_map.mas', user_id=>$user_id   
); #line 30 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

' );
#line 32 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
} }, '/page/info_section.mas', title=>'Location Map',  collapsible=>1, collapsed=>0
 );
#line 32 "/home/production/cxgn/sgn/mason/breeders_toolbox/manage_locations.mas"
$m->print( '

</div>
' );
;return;
},
'declared_args' => {
  '$user_id' => { default => ' undef' }
},
'load_time' => 1763180352,

)
;