@php $fieldWrapperView = $getFieldWrapperView(); $extraAttributeBag = $getExtraAttributeBag(); $isDisabled = $isDisabled(); $isLive = $isLive(); $isLiveOnBlur = $isLiveOnBlur(); $isLiveDebounced = $isLiveDebounced(); $isPrefixInline = $isPrefixInline(); $isSuffixInline = $isSuffixInline(); $liveDebounce = $getLiveDebounce(); $prefixActions = $getPrefixActions(); $prefixIcon = $getPrefixIcon(); $prefixIconColor = $getPrefixIconColor(); $prefixLabel = $getPrefixLabel(); $suffixActions = $getSuffixActions(); $suffixIcon = $getSuffixIcon(); $suffixIconColor = $getSuffixIconColor(); $suffixLabel = $getSuffixLabel(); $statePath = $getStatePath(); @endphp
class(['fi-input-wrp-content']) }} > merge([ 'autocomplete' => 'off', 'disabled' => $isDisabled, 'id' => $getId(), 'placeholder' => $getPlaceholder(), 'required' => $isRequired() && (! $isConcealed()), 'type' => 'text', 'x-model' . ($isLiveDebounced ? '.debounce.' . $liveDebounce : null) => 'state', 'x-on:blur' => $isLiveOnBlur ? 'isOpen() ? null : commitState()' : null, ], escape: false) ->class([ 'fi-input', 'fi-input-has-inline-prefix' => $isPrefixInline && (count($prefixActions) || $prefixIcon || filled($prefixLabel)), 'fi-input-has-inline-suffix' => $isSuffixInline && (count($suffixActions) || $suffixIcon || filled($suffixLabel)), ]) }} />
@php $tag = match ($getFormat()) { 'hsl' => 'hsl-string', 'rgb' => 'rgb-string', 'rgba' => 'rgba-string', default => 'hex', } . '-color-picker'; @endphp <{{ $tag }} color="{{ $getState() }}" />