onlyProps([ 'color' => 'primary', 'darkMode' => false, 'disabled' => false, 'form' => null, 'icon' => null, 'iconPosition' => 'before', 'keyBindings' => null, 'size' => 'md', 'tag' => 'a', 'tooltip' => null, 'type' => 'button', ]) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> exceptProps([ 'color' => 'primary', 'darkMode' => false, 'disabled' => false, 'form' => null, 'icon' => null, 'iconPosition' => 'before', 'keyBindings' => null, 'size' => 'md', 'tag' => 'a', 'tooltip' => null, 'type' => 'button', ]); ?> 'primary', 'darkMode' => false, 'disabled' => false, 'form' => null, 'icon' => null, 'iconPosition' => 'before', 'keyBindings' => null, 'size' => 'md', 'tag' => 'a', 'tooltip' => null, 'type' => 'button', ]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) { $$__key = $$__key ?? $__value; } ?> $__value) { if (array_key_exists($__key, $__defined_vars)) unset($$__key); } ?> $disabled, 'text-sm' => $size === 'sm', 'text-lg' => $size === 'lg', 'text-primary-600 hover:text-primary-500' => $color === 'primary', 'text-danger-600 hover:text-danger-500' => $color === 'danger', 'text-gray-600 hover:text-gray-500' => $color === 'secondary', 'text-success-600 hover:text-success-500' => $color === 'success', 'text-warning-600 hover:text-warning-500' => $color === 'warning', 'dark:text-primary-500 dark:hover:text-primary-400' => $color === 'primary' && $darkMode, 'dark:text-danger-500 dark:hover:text-danger-400' => $color === 'danger' && $darkMode, 'dark:text-gray-300 dark:hover:text-gray-200' => $color === 'secondary' && $darkMode, 'dark:text-success-500 dark:hover:text-success-400' => $color === 'success' && $darkMode, 'dark:text-warning-500 dark:hover:text-warning-400' => $color === 'warning' && $darkMode, ]; $iconClasses = \Illuminate\Support\Arr::toCssClasses([ 'filament-link-icon', 'w-4 h-4' => $size === 'sm', 'w-5 h-5' => $size === 'md', 'w-6 h-6' => $size === 'lg', 'mr-1 rtl:ml-1' => $iconPosition === 'before', 'ml-1 rtl:mr-1' => $iconPosition === 'after', ]); $wireTarget = $attributes->whereStartsWith(['wire:target', 'wire:click'])->first(); $hasLoadingIndicator = filled($wireTarget) || ($type === 'submit' && filled($form)); if ($hasLoadingIndicator) { $loadingIndicatorTarget = html_entity_decode($wireTarget ?: $form, ENT_QUOTES); } ?> x-data="{}" x-mousetrap.global.map(fn (string $keyBinding): string => str_replace('+', '-', $keyBinding))->implode('.')); ?> x-tooltip.raw="" class($linkClasses)); ?> > $icon] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('dynamic-component'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['class' => $iconClasses]); ?> renderComponent(); ?> $icon] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?> withName('dynamic-component'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> getConstructor()): ?> except(collect($constructor->getParameters())->map->getName()->all()); ?> withAttributes(['class' => $iconClasses]); ?> renderComponent(); ?>