CPF
{
let pastedValue = (event.clipboardData || window.clipboardData).getData('text').replace(/[^\d]/g, '').slice(0, 14);
if (pastedValue.length == 11) {
pastedValue = pastedValue.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, '$1.$2.$3-$4');
} else if (pastedValue.length == 14){
pastedValue = pastedValue.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, '$1.$2.$3/$4-$5')
}
$wire.set('form.cpf_cnpj', pastedValue);
}" inputmode="numeric" label="CPF" wire:model="form.cpf_cnpj"
name="form.cpf_cnpj" data-flux-control
data-flux-group-target
>