110 lines
6.8 KiB
PHP
110 lines
6.8 KiB
PHP
<?php $attributes = $attributes->exceptProps(['title' => __('Confirm Password'), 'content' => __('For your security, please confirm your password to continue.'), 'button' => __('Confirm')]); ?>
|
|
<?php foreach (array_filter((['title' => __('Confirm Password'), 'content' => __('For your security, please confirm your password to continue.'), 'button' => __('Confirm')]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
|
$$__key = $$__key ?? $__value;
|
|
} ?>
|
|
<?php $__defined_vars = get_defined_vars(); ?>
|
|
<?php foreach ($attributes as $__key => $__value) {
|
|
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
|
} ?>
|
|
<?php unset($__defined_vars); ?>
|
|
|
|
<?php
|
|
$confirmableId = md5($attributes->wire('then'));
|
|
?>
|
|
|
|
<span
|
|
<?php echo e($attributes->wire('then')); ?>
|
|
|
|
x-data
|
|
x-ref="span"
|
|
x-on:click="$wire.startConfirmingPassword('<?php echo e($confirmableId); ?>')"
|
|
x-on:password-confirmed.window="setTimeout(() => $event.detail.id === '<?php echo e($confirmableId); ?>' && $refs.span.dispatchEvent(new CustomEvent('then', { bubbles: false })), 250);"
|
|
>
|
|
<?php echo e($slot); ?>
|
|
|
|
</span>
|
|
|
|
<?php if (! $__env->hasRenderedOnce('f4f44ac6-b80d-44d5-abf0-c9aa2d2b224a')): $__env->markAsRenderedOnce('f4f44ac6-b80d-44d5-abf0-c9aa2d2b224a'); ?>
|
|
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.dialog-modal','data' => ['wire:model' => 'confirmingPassword']]); ?>
|
|
<?php $component->withName('jet-dialog-modal'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php $component->withAttributes(['wire:model' => 'confirmingPassword']); ?>
|
|
<?php $__env->slot('title'); ?>
|
|
<?php echo e($title); ?>
|
|
|
|
<?php $__env->endSlot(); ?>
|
|
|
|
<?php $__env->slot('content'); ?>
|
|
<?php echo e($content); ?>
|
|
|
|
|
|
<div class="mt-4" x-data="{}" x-on:confirming-password.window="setTimeout(() => $refs.confirmable_password.focus(), 250)">
|
|
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.input','data' => ['type' => 'password','class' => 'mt-1 block w-3/4','placeholder' => ''.e(__('Password')).'','xRef' => 'confirmable_password','wire:model.defer' => 'confirmablePassword','wire:keydown.enter' => 'confirmPassword']]); ?>
|
|
<?php $component->withName('jet-input'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php $component->withAttributes(['type' => 'password','class' => 'mt-1 block w-3/4','placeholder' => ''.e(__('Password')).'','x-ref' => 'confirmable_password','wire:model.defer' => 'confirmablePassword','wire:keydown.enter' => 'confirmPassword']); ?>
|
|
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.input-error','data' => ['for' => 'confirmable_password','class' => 'mt-2']]); ?>
|
|
<?php $component->withName('jet-input-error'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php $component->withAttributes(['for' => 'confirmable_password','class' => 'mt-2']); ?>
|
|
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php $__env->endSlot(); ?>
|
|
|
|
<?php $__env->slot('footer'); ?>
|
|
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.secondary-button','data' => ['wire:click' => 'stopConfirmingPassword','wire:loading.attr' => 'disabled']]); ?>
|
|
<?php $component->withName('jet-secondary-button'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php $component->withAttributes(['wire:click' => 'stopConfirmingPassword','wire:loading.attr' => 'disabled']); ?>
|
|
<?php echo e(__('Cancel')); ?>
|
|
|
|
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
|
|
<?php $component = $__env->getContainer()->make(Illuminate\View\AnonymousComponent::class, ['view' => 'jetstream::components.button','data' => ['class' => 'ml-2','dusk' => 'confirm-password-button','wire:click' => 'confirmPassword','wire:loading.attr' => 'disabled']]); ?>
|
|
<?php $component->withName('jet-button'); ?>
|
|
<?php if ($component->shouldRender()): ?>
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
|
<?php $component->withAttributes(['class' => 'ml-2','dusk' => 'confirm-password-button','wire:click' => 'confirmPassword','wire:loading.attr' => 'disabled']); ?>
|
|
<?php echo e($button); ?>
|
|
|
|
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php $__env->endSlot(); ?>
|
|
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
|
|
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
|
|
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
|
|
<?php endif; ?>
|
|
<?php echo $__env->renderComponent(); ?>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
<?php /**PATH /var/www/exchange/vendor/laravel/jetstream/resources/views/components/confirms-password.blade.php ENDPATH**/ ?>
|