@php $imageCropAspectRatio = $getImageCropAspectRatio(); $imageResizeTargetHeight = $getImageResizeTargetHeight(); $imageResizeTargetWidth = $getImageResizeTargetWidth(); $imageResizeMode = $getImageResizeMode(); $imageResizeUpscale = $getImageResizeUpscale(); $shouldTransformImage = $imageCropAspectRatio || $imageResizeTargetHeight || $imageResizeTargetWidth; @endphp
getLocale()), panelAspectRatio: {{ ($aspectRatio = $getPanelAspectRatio()) ? "'{$aspectRatio}'" : 'null' }}, panelLayout: {{ ($layout = $getPanelLayout()) ? "'{$layout}'" : 'null' }}, placeholder: @js($getPlaceholder()), maxSize: {{ ($size = $getMaxSize()) ? "'{$size} KB'" : 'null' }}, minSize: {{ ($size = $getMinSize()) ? "'{$size} KB'" : 'null' }}, removeUploadedFileUsing: async (fileKey) => { return await $wire.removeUploadedFile('{{ $getStatePath() }}', fileKey) }, removeUploadedFileButtonPosition: '{{ $getRemoveUploadedFileButtonPosition() }}', reorderUploadedFilesUsing: async (files) => { return await $wire.reorderUploadedFiles('{{ $getStatePath() }}', files) }, shouldAppendFiles: {{ $shouldAppendFiles() ? 'true' : 'false' }}, shouldOrientImageFromExif: {{ $shouldOrientImageFromExif() ? 'true' : 'false' }}, shouldTransformImage: {{ $shouldTransformImage ? 'true' : 'false' }}, state: $wire.{{ $applyStateBindingModifiers('entangle(\'' . $getStatePath() . '\')') }}, uploadButtonPosition: '{{ $getUploadButtonPosition() }}', uploadProgressIndicatorPosition: '{{ $getUploadProgressIndicatorPosition() }}', uploadUsing: (fileKey, file, success, error, progress) => { $wire.upload( `{{ $getStatePath() }}.${fileKey}`, file, () => { success(fileKey) }, error, (progressEvent) => { progress(true, progressEvent.detail.progress, 100) }, ) }, })" wire:ignore {!! ($id = $getId()) ? "id=\"{$id}\"" : null !!} style=" min-height: {{ $isAvatar() ? '8em' : ($getPanelLayout() === 'compact' ? '2.625em' : '4.75em') }}; " {{ $attributes ->merge($getExtraAttributes()) ->class([ 'filament-forms-file-upload-component', 'mx-auto w-32' => $isAvatar(), ]) }} {{ $getExtraAlpineAttributeBag() }} >