<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
# This file was preprocessed, do not edit!


package Debconf::Element::Multiselect;
use warnings;
use strict;
use base qw(Debconf::Element::Select);


sub order_values {
	my $this=shift;
	my %vals=map { $_ =&gt; 1 } @_;
	$this-&gt;question-&gt;template-&gt;i18n('');
	my @ret=grep { $vals{$_} } $this-&gt;question-&gt;choices_split;
	$this-&gt;question-&gt;template-&gt;i18n(1);
	return @ret;
}


sub visible {
        my $this=shift;

        my @choices=$this-&gt;question-&gt;choices_split;
        return ($#choices &gt;= 0);
}


sub translate_default {
	my $this=shift;

	my @choices=$this-&gt;question-&gt;choices_split;
	$this-&gt;question-&gt;template-&gt;i18n('');
	my @choices_c=$this-&gt;question-&gt;choices_split;
	$this-&gt;question-&gt;template-&gt;i18n(1);

	my @ret;
	foreach my $c_default ($this-&gt;question-&gt;value_split) {
		foreach (my $x=0; $x &lt;= $#choices; $x++) {
			push @ret, $choices[$x]
				if $choices_c[$x] eq $c_default;
		}
	}
	return @ret;
}


1
</pre></body></html>