{{-- Gemeinsamer visueller Picker. Kontexte: aufbau (Bestandteil mit Fassung), praesentation (mehrere Medien), austausch (ein Medium ersetzt eine Zuordnung). --}} @php $zweck = $this->pickerPurpose; $mehrfach = $this->pickerAllowsMany(); $ergebnis = $this->pickerResult(); $detail = $this->pickerDetail(); $markiert = $this->pickerMarked; $ersetzt = $zweck === 'austausch' ? $this->pickerReplacing() : null; $rollen = $this->presentationRoleOptions(); $bindbar = $zweck !== 'aufbau' && in_array($this->presentationRole, \App\Domain\Catalog\PresentationRole::BOUND_ROLES, true); $symbol = fn (?string $output): string => match ($output) { 'film' => 'film', 'bild' => 'bild', 'audio' => 'audio', default => 'dokument' }; $kopf = $this->pickerKontext(); @endphp