processDirectiveArguments = bindingValue => {
	const isFunction = typeof bindingValue === 'function'
	if (!isFunction && typeof bindingValue !== 'object') {
		throw new Error(
			'v-click-outside: Binding value must be a function or an object'
		)
	}
	return {
		handler: isFunction ? bindingValue : bindingValue.handler,
		middleware: bindingValue.middleware || (item => item),
		events: bindingValue.events || EVENTS,
		isActive: !(bindingValue.isActive === false),
		detectIframe: !(bindingValue.detectIframe === false),
		capture: Boolean(bindingValue.capture)
	}
}
Modified for Vue 3 from https://github.com/ndelvalle/v-click-outside
Cf. https://github.com/ndelvalle/v-click-outside/issues/238