env; $errors = $__blaze->errors; $__slots['slot'] ??= new \Illuminate\View\ComponentSlot(''); if (($__data['attributes'] ?? null) instanceof \Illuminate\View\ComponentAttributeBag) { $__data = $__data + $__data['attributes']->all(); unset($__data['attributes']); } extract($__slots, EXTR_SKIP); unset($__slots); extract($__data, EXTR_SKIP); $attributes = \Livewire\Blaze\Runtime\BlazeAttributeBag::make($__data, $__bound, $__keys); unset($__data, $__bound, $__keys); ob_start(); ?> pluck('icon:trailing'); ?> pluck('icon:leading'); ?> pluck('icon:variant'); ?> pluck('mask:dynamic'); ?> $attributes->whereStartsWith('wire:model')->first(), 'iconVariant' => 'mini', 'variant' => 'outline', 'iconTrailing' => null, 'iconLeading' => null, 'maskDynamic' => null, 'expandable' => null, 'clearable' => null, 'copyable' => null, 'viewable' => null, 'invalid' => null, 'loading' => null, 'type' => 'text', 'mask' => null, 'size' => null, 'icon' => null, 'kbd' => null, 'as' => null, ]; $name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']); $iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']); $variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']); $iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']); $iconLeading ??= $attributes['icon-leading'] ?? $attributes['iconLeading'] ?? $__defaults['iconLeading']; unset($attributes['iconLeading'], $attributes['icon-leading']); $maskDynamic ??= $attributes['mask-dynamic'] ?? $attributes['maskDynamic'] ?? $__defaults['maskDynamic']; unset($attributes['maskDynamic'], $attributes['mask-dynamic']); $expandable ??= $attributes['expandable'] ?? $__defaults['expandable']; unset($attributes['expandable']); $clearable ??= $attributes['clearable'] ?? $__defaults['clearable']; unset($attributes['clearable']); $copyable ??= $attributes['copyable'] ?? $__defaults['copyable']; unset($attributes['copyable']); $viewable ??= $attributes['viewable'] ?? $__defaults['viewable']; unset($attributes['viewable']); $invalid ??= $attributes['invalid'] ?? $__defaults['invalid']; unset($attributes['invalid']); $loading ??= $attributes['loading'] ?? $__defaults['loading']; unset($attributes['loading']); $type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']); $mask ??= $attributes['mask'] ?? $__defaults['mask']; unset($attributes['mask']); $size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']); $icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']); $kbd ??= $attributes['kbd'] ?? $__defaults['kbd']; unset($attributes['kbd']); $as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']); unset($__defaults); ?> wire('model'); $wireTarget = null; if ($loading !== false) { if ($loading === true) { $loading = true; } elseif ($wireModel?->directive) { $loading = $wireModel->hasModifier('live'); $wireTarget = $loading ? $wireModel->value() : null; } else { $wireTarget = $loading; $loading = (bool) $loading; } } $iconLeading ??= $icon; $hasLeadingIcon = (bool) ($iconLeading); $countOfTrailingIcons = collect([ (bool) $iconTrailing, (bool) $kbd, (bool) $clearable, (bool) $copyable, (bool) $viewable, (bool) $expandable, ])->filter()->count(); $iconClasses = Flux::classes() // When using the outline icon variant, we need to size it down to match the default icon sizes... ->add($iconVariant === 'outline' ? 'size-5' : '') ; $inputLoadingClasses = Flux::classes() // When loading, we need to add some extra padding to the input to account for the loading icon... ->add(match ($countOfTrailingIcons) { 0 => 'pe-10', 1 => 'pe-16', 2 => 'pe-23', 3 => 'pe-30', 4 => 'pe-37', 5 => 'pe-44', 6 => 'pe-51', }) ; $classes = Flux::classes() ->add('w-full border rounded-lg block disabled:shadow-none dark:shadow-none') ->add('appearance-none') // Without this, input[type="date"] on mobile doesn't respect w-full... ->add(match ($size) { default => 'text-base sm:text-sm py-2 h-10 leading-[1.375rem]', // This makes the height of the input 40px (same as buttons and such...) 'sm' => 'text-sm py-1.5 h-8 leading-[1.125rem]', 'xs' => 'text-xs py-1.5 h-6 leading-[1.125rem]', }) ->add(match ($hasLeadingIcon) { true => 'ps-10', false => 'ps-3', }) ->add(match ($countOfTrailingIcons) { // Make sure there's enough padding on the right side of the input to account for all the icons... 0 => 'pe-3', 1 => 'pe-10', 2 => 'pe-16', 3 => 'pe-23', 4 => 'pe-30', 5 => 'pe-37', 6 => 'pe-44', }) ->add(match ($variant) { // Background... 'outline' => 'bg-white dark:bg-white/10 dark:disabled:bg-white/[7%]', 'filled' => 'bg-zinc-800/5 dark:bg-white/10 dark:disabled:bg-white/[7%]', }) ->add(match ($variant) { // Text color 'outline' => 'text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500', 'filled' => 'text-zinc-700 placeholder-zinc-500 disabled:placeholder-zinc-400 dark:text-zinc-200 dark:placeholder-white/60 dark:disabled:placeholder-white/40', }) ->add(match ($variant) { // Border... 'outline' => 'shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5', 'filled' => 'border-0', }) ->add(match ($variant) { // Invalid... 'outline' => 'data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500', 'filled' => 'data-invalid:border-red-500' }) ->add($attributes->pluck('class:input')) ; ?> ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/c47a7698d859fe0603a8ccaf476ef2fa.php'); ?> $attributes,'name' => $name]; ?> pushData($__attrsc47a7698d859fe0603a8ccaf476ef2fa); ?> ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/file.blade.php', $__blaze->compiledPath.'/c89f043107b28069800e6228c61d599c.php'); ?> pushData(['attributes' => $attributes,'name' => $name,'size' => $size]); ?> $attributes,'name' => $name,'size' => $size], [], ['attributes', 'name', 'size'], [], $__this ?? (isset($this) ? $this : null)); ?> popData(); ?> pushSlots($__slotsc47a7698d859fe0603a8ccaf476ef2fa); ?> popData(); ?> ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/c47a7698d859fe0603a8ccaf476ef2fa.php'); ?> $attributes,'name' => $name]; ?> pushData($__attrsc47a7698d859fe0603a8ccaf476ef2fa); ?>