@props([ 'id' => 'captcha', ]) @php if (! preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $id)) { throw new InvalidArgumentException("The Turnstile ID [{$id}] must start start with a letter or underscore, and can only contain alphanumeric or underscore characters."); } $model = $attributes->has('wire:model') ? $attributes->get('wire:model') : null; @endphp
filter(fn($value, $key) => ! in_array($key, ['data-callback', 'data-expired-callback', 'data-timeout-callback', 'wire:model', 'id'])) }} @else {{ $attributes->whereStartsWith('data-') }} @endif >
@if ($model) @endif