<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
    'size' => 'md',
    'variant' => 'primary',
    'text' => null,
    'class' => ''
]));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter(([
    'size' => 'md',
    'variant' => 'primary',
    'text' => null,
    'class' => ''
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<?php
    $sizeClasses = [
        'xs' => 'w-3 h-3',
        'sm' => 'w-4 h-4', 
        'md' => 'w-6 h-6',
        'lg' => 'w-8 h-8',
        'xl' => 'w-12 h-12'
    ];

    $variantClasses = [
        'primary' => 'text-blue-600',
        'secondary' => 'text-gray-600',
        'success' => 'text-green-600',
        'warning' => 'text-yellow-600',
        'danger' => 'text-red-600',
        'info' => 'text-cyan-600',
        'light' => 'text-gray-300',
        'dark' => 'text-gray-800',
        'white' => 'text-white'
    ];

    $sizeClass = $sizeClasses[$size] ?? $sizeClasses['md'];
    $variantClass = $variantClasses[$variant] ?? $variantClasses['primary'];
?>

<div class="inline-flex items-center <?php echo e($class); ?>">
    <?php if (isset($component)) { $__componentOriginalc47b3e2c4e78455e4404417bfe094627 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginalc47b3e2c4e78455e4404417bfe094627 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.basics.icon','data' => ['name' => 'ph-spinner-gap','class' => 'animate-spin '.e($variantClass).'']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('basics.icon'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['name' => 'ph-spinner-gap','class' => 'animate-spin '.e($variantClass).'']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginalc47b3e2c4e78455e4404417bfe094627)): ?>
<?php $attributes = $__attributesOriginalc47b3e2c4e78455e4404417bfe094627; ?>
<?php unset($__attributesOriginalc47b3e2c4e78455e4404417bfe094627); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc47b3e2c4e78455e4404417bfe094627)): ?>
<?php $component = $__componentOriginalc47b3e2c4e78455e4404417bfe094627; ?>
<?php unset($__componentOriginalc47b3e2c4e78455e4404417bfe094627); ?>
<?php endif; ?>
    
    <!--[if BLOCK]><![endif]--><?php if($text): ?>
        <span class="ml-2 text-sm font-medium text-gray-700"><?php echo e($text); ?></span>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div>
<?php /**PATH D:\WORK\MAARIFA\ANGO\DESKTOP\V4\ango-desktop\resources\views/components/basics/spinner.blade.php ENDPATH**/ ?>