distinct(); $this->live(); $this->disableOptionWhen(static function (Component & CanDisableOptions $component, string $value, mixed $state) { $repeater = $component->getParentRepeater(); if (! $repeater) { return false; } return collect($repeater->getState()) ->pluck( (string) str($component->getStatePath()) ->after("{$repeater->getStatePath()}.") ->after('.'), ) ->flatten() ->diff(Arr::wrap($state)) ->filter(fn (mixed $siblingItemState): bool => filled($siblingItemState)) ->contains($value); }); return $this; } }