@props(['title' => __('Confirm Password'), 'content' => __('For your security, please confirm your password to continue.'), 'button' => __('Confirm')])
@php
$confirmableId = md5($attributes->wire('then'));
@endphp
wire('then') }}
x-data
x-ref="span"
x-on:click="$wire.startConfirmingPassword('{{ $confirmableId }}')"
x-on:password-confirmed.window="
setTimeout(
() =>
$event.detail.id === '{{ $confirmableId }}' &&
$refs.span.dispatchEvent(new CustomEvent('then', { bubbles: false })),
250,
)
"
>
{{ $slot }}
@once
{{ $title }}
{{ $content }}
{{ __('Cancel') }}
{{ $button }}
@endonce