protected function resolveMediaConfig(array $pairs = []): array 	{ 		$resolvedPairs = []; 		$pairs = empty($pairs) ? $this->model->mediaConfig() : $pairs;  		foreach ($pairs as $key => $options) { 			if (is_string($key)) { 				$collection = $options['collection'] ?? $key; 			} else { 				$key = $collection = $options['collection'] ?? $options; 			}  			$disk = $options['disk'] ?? $this->model->getStorageDisk();  			$resolvedPairs[$key] = [ 				'collection' => $collection, 				'disk' => $disk, 				'conversions_disk' => $options['conversions_disk'] ?? $disk, 				'max' => $options['max'] ?? 0, 				'name' => isset($options['name']) ? $this->generateFileName($options['name']) : null, 				'custom_properties' => $options['custom_properties'] ?? [], 			]; 		}  		return $resolvedPairs; 	}