152 lines
11 KiB
PHP
Executable File
152 lines
11 KiB
PHP
Executable File
<?php
|
|
if (!function_exists('_1f71139a782d8d14d022079614a36d1c')):
|
|
function _1f71139a782d8d14d022079614a36d1c($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
|
$__env = $__blaze->env;
|
|
$__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();
|
|
?>
|
|
|
|
|
|
<?php $iconTrailing ??= $attributes->pluck('icon:trailing'); ?>
|
|
<?php $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
|
|
|
<?php
|
|
$__awareDefaults = [ 'variant' ];
|
|
$variant = $__blaze->getConsumableData('variant'); unset($attributes['variant']);
|
|
unset($__awareDefaults);
|
|
?>
|
|
|
|
<?php
|
|
$__defaults = [
|
|
'iconVariant' => 'outline',
|
|
'iconTrailing' => null,
|
|
'badgeColor' => null,
|
|
'variant' => null,
|
|
'iconDot' => null,
|
|
'accent' => true,
|
|
'badge' => null,
|
|
'icon' => null,
|
|
];
|
|
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
|
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
|
|
$badgeColor ??= $attributes['badge-color'] ?? $attributes['badgeColor'] ?? $__defaults['badgeColor']; unset($attributes['badgeColor'], $attributes['badge-color']);
|
|
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
|
$iconDot ??= $attributes['icon-dot'] ?? $attributes['iconDot'] ?? $__defaults['iconDot']; unset($attributes['iconDot'], $attributes['icon-dot']);
|
|
$accent ??= $attributes['accent'] ?? $__defaults['accent']; unset($attributes['accent']);
|
|
$badge ??= $attributes['badge'] ?? $__defaults['badge']; unset($attributes['badge']);
|
|
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
|
unset($__defaults);
|
|
?>
|
|
|
|
<?php
|
|
// Button should be a square if it has no text contents...
|
|
$square ??= $slot->isEmpty();
|
|
|
|
// Size-up icons in square/icon-only buttons...
|
|
$iconClasses = Flux::classes($square ? 'size-5!' : 'size-4!');
|
|
|
|
$classes = Flux::classes()
|
|
->add('h-10 lg:h-8 relative flex items-center gap-3 rounded-lg')
|
|
->add($square ? 'px-2.5!' : '')
|
|
->add('py-0 text-start w-full px-3 my-px')
|
|
->add('text-zinc-500 dark:text-white/80')
|
|
->add(match ($variant) {
|
|
'outline' => match ($accent) {
|
|
true => [
|
|
'data-current:text-(--color-accent-content) hover:data-current:text-(--color-accent-content)',
|
|
'data-current:bg-white dark:data-current:bg-white/[7%] data-current:border data-current:border-zinc-200 dark:data-current:border-transparent',
|
|
'hover:text-zinc-800 dark:hover:text-white dark:hover:bg-white/[7%] hover:bg-zinc-800/5 ',
|
|
'border border-transparent',
|
|
],
|
|
false => [
|
|
'data-current:text-zinc-800 dark:data-current:text-zinc-100 data-current:border-zinc-200',
|
|
'data-current:bg-white dark:data-current:bg-white/10 data-current:border data-current:border-zinc-200 dark:data-current:border-white/10 data-current:shadow-xs',
|
|
'hover:text-zinc-800 dark:hover:text-white',
|
|
],
|
|
},
|
|
default => match ($accent) {
|
|
true => [
|
|
'data-current:text-(--color-accent-content) hover:data-current:text-(--color-accent-content)',
|
|
'data-current:bg-zinc-800/[4%] dark:data-current:bg-white/[7%]',
|
|
'hover:text-zinc-800 dark:hover:text-white hover:bg-zinc-800/[4%] dark:hover:bg-white/[7%]',
|
|
],
|
|
false => [
|
|
'data-current:text-zinc-800 dark:data-current:text-zinc-100',
|
|
'data-current:bg-zinc-800/[4%] dark:data-current:bg-white/10',
|
|
'hover:text-zinc-800 dark:hover:text-white hover:bg-zinc-800/[4%] dark:hover:bg-white/10',
|
|
],
|
|
},
|
|
})
|
|
;
|
|
?>
|
|
|
|
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link.blade.php', $__blaze->compiledPath.'/0ce2b11ed180c4dc0167f11a527ecb34.php'); ?>
|
|
<?php if (isset($__slots0ce2b11ed180c4dc0167f11a527ecb34)) { $__slotsStack0ce2b11ed180c4dc0167f11a527ecb34[] = $__slots0ce2b11ed180c4dc0167f11a527ecb34; } ?>
|
|
<?php if (isset($__attrs0ce2b11ed180c4dc0167f11a527ecb34)) { $__attrsStack0ce2b11ed180c4dc0167f11a527ecb34[] = $__attrs0ce2b11ed180c4dc0167f11a527ecb34; } ?>
|
|
<?php $__attrs0ce2b11ed180c4dc0167f11a527ecb34 = ['attributes' => $attributes->class($classes),'dataFluxNavlistItem' => true]; ?>
|
|
<?php $__slots0ce2b11ed180c4dc0167f11a527ecb34 = []; ?>
|
|
<?php $__blaze->pushData($__attrs0ce2b11ed180c4dc0167f11a527ecb34); ?>
|
|
<?php ob_start(); ?>
|
|
<?php if ($icon): ?>
|
|
<div class="relative">
|
|
<?php if (is_string($icon) && $icon !== ''): ?>
|
|
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $icon, 'variant' => $iconVariant, 'class' => $iconClasses]); ?><?php if ($blaze_memoized_key !== null && \Livewire\Blaze\Memoizer\Memo::has($blaze_memoized_key)) : ?><?php echo \Livewire\Blaze\Memoizer\Memo::get($blaze_memoized_key); ?><?php else : ?><?php ob_start(); ?><?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
|
<?php $__blaze->pushData(['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
|
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
|
<?php $__blaze->popData(); ?><?php $blaze_memoized_html = ob_get_clean(); ?><?php if ($blaze_memoized_key !== null) { \Livewire\Blaze\Memoizer\Memo::put($blaze_memoized_key, $blaze_memoized_html); } ?><?php echo $blaze_memoized_html; ?><?php endif; ?>
|
|
<?php else: ?>
|
|
<?php echo e($icon); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if ($iconDot): ?>
|
|
<div class="absolute top-[-2px] end-[-2px]">
|
|
<div class="size-[6px] rounded-full bg-zinc-500 dark:bg-zinc-400"></div>
|
|
</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<?php if ($slot->isNotEmpty()): ?>
|
|
<div class="flex-1 text-sm font-medium leading-none whitespace-nowrap [[data-nav-footer]_&]:hidden [[data-nav-sidebar]_[data-nav-footer]_&]:block" data-content><?php echo e($slot); ?></div>
|
|
<?php endif; ?>
|
|
|
|
<?php if (is_string($iconTrailing) && $iconTrailing !== ''): ?>
|
|
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconTrailing, 'variant' => $iconVariant, 'class' => 'size-4!']); ?><?php if ($blaze_memoized_key !== null && \Livewire\Blaze\Memoizer\Memo::has($blaze_memoized_key)) : ?><?php echo \Livewire\Blaze\Memoizer\Memo::get($blaze_memoized_key); ?><?php else : ?><?php ob_start(); ?><?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
|
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => 'size-4!']); ?>
|
|
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => 'size-4!'], [], ['icon', 'variant'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
|
<?php $__blaze->popData(); ?><?php $blaze_memoized_html = ob_get_clean(); ?><?php if ($blaze_memoized_key !== null) { \Livewire\Blaze\Memoizer\Memo::put($blaze_memoized_key, $blaze_memoized_html); } ?><?php echo $blaze_memoized_html; ?><?php endif; ?>
|
|
<?php elseif ($iconTrailing): ?>
|
|
<?php echo e($iconTrailing); ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if (isset($badge) && $badge !== ''): ?>
|
|
<?php $badgeAttributes = Flux::attributesAfter('badge:', $attributes, ['color' => $badgeColor]); ?>
|
|
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/badge.blade.php', $__blaze->compiledPath.'/d6f0e8f201ea668d6d5f2ae1e30f6d6e.php'); ?>
|
|
<?php if (isset($__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__slotsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e[] = $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e; } ?>
|
|
<?php if (isset($__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__attrsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e[] = $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e; } ?>
|
|
<?php $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e = ['attributes' => $badgeAttributes]; ?>
|
|
<?php $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e = []; ?>
|
|
<?php $__blaze->pushData($__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e); ?>
|
|
<?php ob_start(); ?><?php echo e($badge); ?><?php $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
|
<?php $__blaze->pushSlots($__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e); ?>
|
|
<?php _d6f0e8f201ea668d6d5f2ae1e30f6d6e($__blaze, $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e, $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
|
<?php if (! empty($__slotsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e = array_pop($__slotsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e); } ?>
|
|
<?php if (! empty($__attrsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e = array_pop($__attrsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e); } ?>
|
|
<?php $__blaze->popData(); ?>
|
|
<?php endif; ?>
|
|
<?php $__slots0ce2b11ed180c4dc0167f11a527ecb34['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
|
<?php $__blaze->pushSlots($__slots0ce2b11ed180c4dc0167f11a527ecb34); ?>
|
|
<?php _0ce2b11ed180c4dc0167f11a527ecb34($__blaze, $__attrs0ce2b11ed180c4dc0167f11a527ecb34, $__slots0ce2b11ed180c4dc0167f11a527ecb34, ['attributes', 'dataFluxNavlistItem'], ['dataFluxNavlistItem' => 'data-flux-navlist-item'], $__this ?? (isset($this) ? $this : null)); ?>
|
|
<?php if (! empty($__slotsStack0ce2b11ed180c4dc0167f11a527ecb34)) { $__slots0ce2b11ed180c4dc0167f11a527ecb34 = array_pop($__slotsStack0ce2b11ed180c4dc0167f11a527ecb34); } ?>
|
|
<?php if (! empty($__attrsStack0ce2b11ed180c4dc0167f11a527ecb34)) { $__attrs0ce2b11ed180c4dc0167f11a527ecb34 = array_pop($__attrsStack0ce2b11ed180c4dc0167f11a527ecb34); } ?>
|
|
<?php $__blaze->popData(); ?>
|
|
<?php
|
|
echo ltrim(ob_get_clean());
|
|
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/item.blade.php ENDPATH**/ ?>
|