{{-- Locale bar for LocaleSwapEditor: swaps the editor's content in the BROWSER, with no request. The two `$wire.set(..., false)` calls are deferred (no round trip). The editor picks the change up on its own because the TipTap plugin entangles its `state` and watches it (`$watch('state') -> updateEditorContent()`), so writing the scratch path is enough to repaint it. See docs/CLAUDE-PANEL-RENDIMIENTO.md. --}} @php // Absolute state paths of this item: the bar's own path minus its last segment. $base = \Illuminate\Support\Str::beforeLast($getStatePath(), '.'); $activePath = $base . '.' . $activeField; $localePath = $base . '.' . $field; @endphp {{-- wire:key con la ruta completa (incluye el uuid del item del repeater): sin él, el morph de Livewire reutiliza este nodo para OTRA card y el x-data sobrevive con los paths y el idioma de la card anterior — se veía "PT" activo mientras el editor mostraba el idioma por defecto, y escribir habría guardado en la card equivocada. --}}