()
| 112 | } |
| 113 | |
| 114 | function getVerificationCodeTarget() { |
| 115 | const codeInput = document.querySelector(VERIFICATION_CODE_INPUT_SELECTOR); |
| 116 | if (codeInput && isVisibleElement(codeInput)) { |
| 117 | return { type: 'single', element: codeInput }; |
| 118 | } |
| 119 | |
| 120 | const singleInputs = Array.from(document.querySelectorAll('input[maxlength="1"]')) |
| 121 | .filter(isVisibleElement); |
| 122 | if (singleInputs.length >= 6) { |
| 123 | return { type: 'split', elements: singleInputs }; |
| 124 | } |
| 125 | |
| 126 | return null; |
| 127 | } |
| 128 | |
| 129 | function getActionText(el) { |
| 130 | return [ |
no test coverage detected