null, 'alpineValid' => null, 'disabled' => false, 'inlinePrefix' => false, 'inlineSuffix' => false, 'prefix' => null, 'prefixActions' => [], 'prefixIcon' => null, 'prefixIconColor' => 'gray', 'prefixIconAlias' => null, 'suffix' => null, 'suffixActions' => [], 'suffixIcon' => null, 'suffixIconColor' => 'gray', 'suffixIconAlias' => null, 'valid' => true, ])); 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(([ 'alpineDisabled' => null, 'alpineValid' => null, 'disabled' => false, 'inlinePrefix' => false, 'inlineSuffix' => false, 'prefix' => null, 'prefixActions' => [], 'prefixIcon' => null, 'prefixIconColor' => 'gray', 'prefixIconAlias' => null, 'suffix' => null, 'suffixActions' => [], 'suffixIcon' => null, 'suffixIconColor' => 'gray', 'suffixIconAlias' => null, 'valid' => true, ]), '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); ?> $prefixAction->isVisible(), ); $suffixActions = array_filter( $suffixActions, fn (\Filament\Forms\Components\Actions\Action $suffixAction): bool => $suffixAction->isVisible(), ); $hasPrefix = count($prefixActions) || $prefixIcon || filled($prefix); $hasSuffix = count($suffixActions) || $suffixIcon || filled($suffix); $hasAlpineDisabledClasses = filled($alpineDisabled); $hasAlpineValidClasses = filled($alpineValid); $hasAlpineClasses = $hasAlpineDisabledClasses || $hasAlpineValidClasses; $enabledWrapperClasses = 'bg-white dark:bg-white/5 [&:not(:has(.fi-ac-action:focus))]:focus-within:ring-2'; $disabledWrapperClasses = 'fi-disabled bg-gray-50 dark:bg-transparent'; $validWrapperClasses = 'ring-gray-950/10'; $invalidWrapperClasses = 'fi-invalid ring-danger-600 dark:ring-danger-500'; $enabledValidWrapperClasses = 'dark:ring-white/20 [&:not(:has(.fi-ac-action:focus))]:focus-within:ring-primary-600 dark:[&:not(:has(.fi-ac-action:focus))]:focus-within:ring-primary-500'; $enabledInvalidWrapperClasses = '[&:not(:has(.fi-ac-action:focus))]:focus-within:ring-danger-600 dark:[&:not(:has(.fi-ac-action:focus))]:focus-within:ring-danger-500'; $disabledValidWrapperClasses = 'dark:ring-white/10'; $actionsClasses = 'flex items-center gap-3'; $labelClasses = 'fi-input-wrp-label whitespace-nowrap text-sm text-gray-500 dark:text-gray-400'; $getIconClasses = fn (string | array $color = 'gray'): string => \Illuminate\Support\Arr::toCssClasses([ 'fi-input-wrp-icon h-5 w-5', match ($color) { 'gray' => 'text-gray-400 dark:text-gray-500', default => 'text-custom-500', }, ]); $getIconStyles = fn (string | array $color = 'gray'): string => \Illuminate\Support\Arr::toCssStyles([ \Filament\Support\get_color_css_variables( $color, shades: [500], alias: 'input-wrapper.icon', ) => $color !== 'gray', ]); $wireTarget = $attributes->whereStartsWith(['wire:target'])->first(); $hasLoadingIndicator = filled($wireTarget); if ($hasLoadingIndicator) { $loadingIndicatorTarget = html_entity_decode($wireTarget, ENT_QUOTES); } ?>
x-bind:class="{ }" except(['wire:target', 'tabindex']) ->class([ 'fi-input-wrp flex rounded-lg shadow-sm ring-1 transition duration-75', $enabledWrapperClasses => (! $hasAlpineClasses) && (! $disabled), $disabledWrapperClasses => (! $hasAlpineClasses) && $disabled, $validWrapperClasses => (! $hasAlpineClasses) && $valid, $invalidWrapperClasses => (! $hasAlpineClasses) && (! $valid), $enabledValidWrapperClasses => (! $hasAlpineClasses) && (! $disabled) && $valid, $enabledInvalidWrapperClasses => (! $hasAlpineClasses) && (! $disabled) && (! $valid), $disabledValidWrapperClasses => (! $hasAlpineClasses) && $disabled && $valid, ])); ?> >
wire:loading.delay..flex wire:target="" wire:key="" class=" $hasPrefix, 'hidden' => ! $hasPrefix, 'pe-1' => $inlinePrefix && filled($prefix), 'pe-2' => $inlinePrefix && blank($prefix), 'border-e border-gray-200 pe-3 ps-3 dark:border-white/10' => ! $inlinePrefix, ]); ?>" >
addLoop($__currentLoopData); foreach($__currentLoopData as $prefixAction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> popLoop(); $loop = $__env->getLastLoop(); ?>
'filament::components.icon','data' => ['attributes' => \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'alias' => $prefixIconAlias, 'icon' => $prefixIcon, 'wire:loading.remove.delay.' . config('filament.livewire_loading_delay', 'default') => $hasLoadingIndicator, 'wire:target' => $hasLoadingIndicator ? $loadingIndicatorTarget : null, ]) ) ->class([$getIconClasses($prefixIconColor)]) ->style([$getIconStyles($prefixIconColor)]) ]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::icon'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute( \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'alias' => $prefixIconAlias, 'icon' => $prefixIcon, 'wire:loading.remove.delay.' . config('filament.livewire_loading_delay', 'default') => $hasLoadingIndicator, 'wire:target' => $hasLoadingIndicator ? $loadingIndicatorTarget : null, ]) ) ->class([$getIconClasses($prefixIconColor)]) ->style([$getIconStyles($prefixIconColor)]) )]); ?> renderComponent(); ?> 'filament::components.loading-indicator','data' => ['attributes' => \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'wire:loading.delay.' . config('filament.livewire_loading_delay', 'default') => $hasPrefix, 'wire:target' => $hasPrefix ? $loadingIndicatorTarget : null, ]) )->class([$getIconClasses()]) ]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::loading-indicator'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['attributes' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute( \Filament\Support\prepare_inherited_attributes( new \Illuminate\View\ComponentAttributeBag([ 'wire:loading.delay.' . config('filament.livewire_loading_delay', 'default') => $hasPrefix, 'wire:target' => $hasPrefix ? $loadingIndicatorTarget : null, ]) )->class([$getIconClasses()]) )]); ?> renderComponent(); ?>
wire:loading.delay..class.remove="ps-3" wire:target="" class=" $hasLoadingIndicator && (! $hasPrefix) && $inlinePrefix, ]); ?>" >
'filament::components.icon','data' => ['alias' => $suffixIconAlias,'icon' => $suffixIcon,'class' => $getIconClasses($suffixIconColor),'style' => $getIconStyles($suffixIconColor)]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> withName('filament::icon'); ?> shouldRender()): ?> startComponent($component->resolveView(), $component->data()); ?> except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> withAttributes(['alias' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($suffixIconAlias),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($suffixIcon),'class' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getIconClasses($suffixIconColor)),'style' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($getIconStyles($suffixIconColor))]); ?> renderComponent(); ?>
addLoop($__currentLoopData); foreach($__currentLoopData as $suffixAction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> popLoop(); $loop = $__env->getLastLoop(); ?>