Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Refactor formdetector and make it testable (#541)

Leendert de Borstfa221e3ae5c3
diff --git a/browser-extensions/chrome/package-lock.json b/browser-extensions/chrome/package-lock.json
index 40f93ee3a..07bb5004f 100644
--- a/browser-extensions/chrome/package-lock.json
+++ b/browser-extensions/chrome/package-lock.json
@@ -22,6 +22,7 @@
"vitest": "^3.0.4"
},
"devDependencies": {
+ "@types/jsdom": "^21.1.7",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@types/sql.js": "^1.4.9",
@@ -34,6 +35,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
+ "jsdom": "^26.0.0",
"postcss": "^8.5.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
@@ -68,6 +70,27 @@
"node": ">=6.0.0"
}
},
+ "node_modules/@asamuzakjp/css-color": {
+ "version": "2.8.3",
+ "resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-2.8.3.tgz",
+ "integrity": "sha512-GIc76d9UI1hCvOATjZPyHFmE5qhRccp3/zGfMPapK3jBi+yocEzp6BBB0UnfRYP9NP4FANqUZYb0hnfs3TM3hw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/css-calc": "^2.1.1",
+ "@csstools/css-color-parser": "^3.0.7",
+ "@csstools/css-parser-algorithms": "^3.0.4",
+ "@csstools/css-tokenizer": "^3.0.3",
+ "lru-cache": "^10.4.3"
+ }
+ },
+ "node_modules/@asamuzakjp/css-color/node_modules/lru-cache": {
+ "version": "10.4.3",
+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",
+ "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",
+ "devOptional": true,
+ "license": "ISC"
+ },
"node_modules/@babel/code-frame": {
"version": "7.26.2",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz",
@@ -346,6 +369,121 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@csstools/color-helpers": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-5.0.1.tgz",
+ "integrity": "sha512-MKtmkA0BX87PKaO1NFRTFH+UnkgnmySQOvNxJubsadusqPEC2aJ9MOQiMceZJJ6oitUl/i0L6u0M1IrmAOmgBA==",
+ "devOptional": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT-0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@csstools/css-calc": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-2.1.1.tgz",
+ "integrity": "sha512-rL7kaUnTkL9K+Cvo2pnCieqNpTKgQzy5f+N+5Iuko9HAoasP+xgprVh7KN/MaJVvVL1l0EzQq2MoqBHKSrDrag==",
+ "devOptional": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@csstools/css-parser-algorithms": "^3.0.4",
+ "@csstools/css-tokenizer": "^3.0.3"
+ }
+ },
+ "node_modules/@csstools/css-color-parser": {
+ "version": "3.0.7",
+ "resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-3.0.7.tgz",
+ "integrity": "sha512-nkMp2mTICw32uE5NN+EsJ4f5N+IGFeCFu4bGpiKgb2Pq/7J/MpyLBeQ5ry4KKtRFZaYs6sTmcMYrSRIyj5DFKA==",
+ "devOptional": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "@csstools/color-helpers": "^5.0.1",
+ "@csstools/css-calc": "^2.1.1"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@csstools/css-parser-algorithms": "^3.0.4",
+ "@csstools/css-tokenizer": "^3.0.3"
+ }
+ },
+ "node_modules/@csstools/css-parser-algorithms": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-3.0.4.tgz",
+ "integrity": "sha512-Up7rBoV77rv29d3uKHUIVubz1BTcgyUK72IvCQAbfbMv584xHcGKCKbWh7i8hPrRJ7qU4Y8IO3IY9m+iTB7P3A==",
+ "devOptional": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "@csstools/css-tokenizer": "^3.0.3"
+ }
+ },
+ "node_modules/@csstools/css-tokenizer": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-3.0.3.tgz",
+ "integrity": "sha512-UJnjoFsmxfKUdNYdWgOB0mWUypuLvAfQPH1+pyvRJs6euowbFkFC6P13w1l8mJyi3vxYMxc9kld5jZEGRQs6bw==",
+ "devOptional": true,
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/@es-joy/jsdoccomment": {
"version": "0.49.0",
"resolved": "https://registry.npmjs.org/@es-joy/jsdoccomment/-/jsdoccomment-0.49.0.tgz",
@@ -1445,6 +1583,18 @@
"integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
"license": "MIT"
},
+ "node_modules/@types/jsdom": {
+ "version": "21.1.7",
+ "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-21.1.7.tgz",
+ "integrity": "sha512-yOriVnggzrnQ3a9OKOCxaVuSug3w3/SbOj5i7VwXWZEyUNl3bLF9V3MfxGbZKuwqJOQyRfqXyROBB1CoZLFWzA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/tough-cookie": "*",
+ "parse5": "^7.0.0"
+ }
+ },
"node_modules/@types/json-schema": {
"version": "7.0.15",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
@@ -1521,6 +1671,13 @@
"@types/node": "*"
}
},
+ "node_modules/@types/tough-cookie": {
+ "version": "4.0.5",
+ "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz",
+ "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@typescript-eslint/eslint-plugin": {
"version": "8.21.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.21.0.tgz",
@@ -1874,6 +2031,16 @@
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
}
},
+ "node_modules/agent-base": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/ajv": {
"version": "6.12.6",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
@@ -2147,6 +2314,13 @@
"node": ">= 0.4"
}
},
+ "node_modules/asynckit": {
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/autoprefixer": {
"version": "10.4.20",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.20.tgz",
@@ -2643,6 +2817,19 @@
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"license": "MIT"
},
+ "node_modules/combined-stream": {
+ "version": "1.0.8",
+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "delayed-stream": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/commander": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
@@ -2768,6 +2955,20 @@
"node": ">=4"
}
},
+ "node_modules/cssstyle": {
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-4.2.1.tgz",
+ "integrity": "sha512-9+vem03dMXG7gDmZ62uqmRiMRNtinIZ9ZyuF6BdxzfOD+FdN5hretzynkn0ReS2DO2GSw76RWHs0UmJPI2zUjw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "@asamuzakjp/css-color": "^2.8.2",
+ "rrweb-cssom": "^0.8.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/csstype": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
@@ -2775,6 +2976,20 @@
"dev": true,
"license": "MIT"
},
+ "node_modules/data-urls": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-5.0.0.tgz",
+ "integrity": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-mimetype": "^4.0.0",
+ "whatwg-url": "^14.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/data-view-buffer": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.2.tgz",
@@ -2846,6 +3061,13 @@
}
}
},
+ "node_modules/decimal.js": {
+ "version": "10.5.0",
+ "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.5.0.tgz",
+ "integrity": "sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/deep-eql": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",
@@ -2897,6 +3119,16 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/delayed-stream": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4.0"
+ }
+ },
"node_modules/didyoumean": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",
@@ -3821,6 +4053,21 @@
"url": "https://github.com/sponsors/isaacs"
}
},
+ "node_modules/form-data": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
+ "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "asynckit": "^0.4.0",
+ "combined-stream": "^1.0.8",
+ "mime-types": "^2.1.12"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/fraction.js": {
"version": "4.3.7",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",
@@ -4169,6 +4416,60 @@
"integrity": "sha512-vvl3IM8FfT1uOnHtEqyjkDK9Luqz6MQrH82qIvVnjyXxRhkeaEZyRRPiBgf2yym3nweRVEfayxt/1SoTXZYd4Q==",
"license": "MIT"
},
+ "node_modules/html-encoding-sniffer": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-4.0.0.tgz",
+ "integrity": "sha512-Y22oTqIU4uuPgEemfz7NDJz6OeKf12Lsu+QC+s3BVpda64lTiMYCyGwg5ki4vFxkMwQdeZDl2adZoqUgdFuTgQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-encoding": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/http-proxy-agent": {
+ "version": "7.0.2",
+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz",
+ "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.0",
+ "debug": "^4.3.4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/https-proxy-agent": {
+ "version": "7.0.6",
+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.6.tgz",
+ "integrity": "sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "agent-base": "^7.1.2",
+ "debug": "4"
+ },
+ "engines": {
+ "node": ">= 14"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/ieee754": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
@@ -4492,6 +4793,13 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/is-potential-custom-element-name": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
+ "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/is-regex": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.2.1.tgz",
@@ -4775,6 +5083,47 @@
"node": ">=8"
}
},
+ "node_modules/jsdom": {
+ "version": "26.0.0",
+ "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-26.0.0.tgz",
+ "integrity": "sha512-BZYDGVAIriBWTpIxYzrXjv3E/4u8+/pSG5bQdIYCbNCGOvsPkDQfTVLAIXAf9ETdCpduCVTkDe2NNZ8NIwUVzw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "cssstyle": "^4.2.1",
+ "data-urls": "^5.0.0",
+ "decimal.js": "^10.4.3",
+ "form-data": "^4.0.1",
+ "html-encoding-sniffer": "^4.0.0",
+ "http-proxy-agent": "^7.0.2",
+ "https-proxy-agent": "^7.0.6",
+ "is-potential-custom-element-name": "^1.0.1",
+ "nwsapi": "^2.2.16",
+ "parse5": "^7.2.1",
+ "rrweb-cssom": "^0.8.0",
+ "saxes": "^6.0.0",
+ "symbol-tree": "^3.2.4",
+ "tough-cookie": "^5.0.0",
+ "w3c-xmlserializer": "^5.0.0",
+ "webidl-conversions": "^7.0.0",
+ "whatwg-encoding": "^3.1.1",
+ "whatwg-mimetype": "^4.0.0",
+ "whatwg-url": "^14.1.0",
+ "ws": "^8.18.0",
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "peerDependencies": {
+ "canvas": "^3.0.0"
+ },
+ "peerDependenciesMeta": {
+ "canvas": {
+ "optional": true
+ }
+ }
+ },
"node_modules/jsesc": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",
@@ -5052,6 +5401,29 @@
"node": ">=8.6"
}
},
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/minimatch": {
"version": "9.0.5",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
@@ -5169,6 +5541,13 @@
"node": ">=0.10.0"
}
},
+ "node_modules/nwsapi": {
+ "version": "2.2.16",
+ "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.16.tgz",
+ "integrity": "sha512-F1I/bimDpj3ncaNDhfyMWuFqmQDBwDB0Fogc2qpL3BWvkQteFD/8BzWuIRl83rq0DXfm8SGt/HFhLXZyljTXcQ==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@@ -5404,6 +5783,19 @@
"node": ">= 18"
}
},
+ "node_modules/parse5": {
+ "version": "7.2.1",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.2.1.tgz",
+ "integrity": "sha512-BuBYQYlv1ckiPdQi/ohiivi9Sagc9JG+Ozs0r7b/0iK3sKmrb0b9FdWdBbOdx6hBCM/F9Ir82ofnBhtZOjCRPQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^4.5.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
"node_modules/path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
@@ -5969,6 +6361,13 @@
"fsevents": "~2.3.2"
}
},
+ "node_modules/rrweb-cssom": {
+ "version": "0.8.0",
+ "resolved": "https://registry.npmjs.org/rrweb-cssom/-/rrweb-cssom-0.8.0.tgz",
+ "integrity": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
@@ -6058,6 +6457,26 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "devOptional": true,
+ "license": "MIT"
+ },
+ "node_modules/saxes": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
+ "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
+ "devOptional": true,
+ "license": "ISC",
+ "dependencies": {
+ "xmlchars": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=v12.22.7"
+ }
+ },
"node_modules/scheduler": {
"version": "0.25.0",
"resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.25.0.tgz",
@@ -6600,6 +7019,13 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/symbol-tree": {
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
+ "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/synckit": {
"version": "0.9.2",
"resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.2.tgz",
@@ -6716,6 +7142,26 @@
"node": ">=14.0.0"
}
},
+ "node_modules/tldts": {
+ "version": "6.1.76",
+ "resolved": "https://registry.npmjs.org/tldts/-/tldts-6.1.76.tgz",
+ "integrity": "sha512-6U2ti64/nppsDxQs9hw8ephA3nO6nSQvVVfxwRw8wLQPFtLI1cFI1a1eP22g+LUP+1TA2pKKjUTwWB+K2coqmQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "tldts-core": "^6.1.76"
+ },
+ "bin": {
+ "tldts": "bin/cli.js"
+ }
+ },
+ "node_modules/tldts-core": {
+ "version": "6.1.76",
+ "resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-6.1.76.tgz",
+ "integrity": "sha512-uzhJ02RaMzgQR3yPoeE65DrcHI6LoM4saUqXOt/b5hmb3+mc4YWpdSeAQqVqRUlQ14q8ZuLRWyBR1ictK1dzzg==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/to-regex-range": {
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
@@ -6729,6 +7175,32 @@
"node": ">=8.0"
}
},
+ "node_modules/tough-cookie": {
+ "version": "5.1.0",
+ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-5.1.0.tgz",
+ "integrity": "sha512-rvZUv+7MoBYTiDmFPBrhL7Ujx9Sk+q9wwm22x8c8T5IJaR+Wsyc7TNxbVxo84kZoRJZZMazowFLqpankBEQrGg==",
+ "devOptional": true,
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "tldts": "^6.1.32"
+ },
+ "engines": {
+ "node": ">=16"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-5.0.0.tgz",
+ "integrity": "sha512-tk2G5R2KRwBd+ZN0zaEXpmzdKyOYksXwywulIX95MBODjSzMIuQnQ3m8JxgbhnL1LeVo7lqQKsYa1O3Htl7K5g==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "punycode": "^2.3.1"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/tree-kill": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",
@@ -7177,6 +7649,66 @@
}
}
},
+ "node_modules/w3c-xmlserializer": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",
+ "integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "xml-name-validator": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "7.0.0",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz",
+ "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==",
+ "devOptional": true,
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ }
+ },
+ "node_modules/whatwg-encoding": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "iconv-lite": "0.6.3"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/whatwg-url": {
+ "version": "14.1.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-14.1.0.tgz",
+ "integrity": "sha512-jlf/foYIKywAt3x/XWKZ/3rz8OSJPiWktjmk891alJUEjiVxKX9LEO92qH3hv4aJ0mN3MWPvGMCy8jQi95xK4w==",
+ "devOptional": true,
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "^5.0.0",
+ "webidl-conversions": "^7.0.0"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
@@ -7403,6 +7935,45 @@
"node": ">=8"
}
},
+ "node_modules/ws": {
+ "version": "8.18.0",
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
+ "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
+ "devOptional": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=10.0.0"
+ },
+ "peerDependencies": {
+ "bufferutil": "^4.0.1",
+ "utf-8-validate": ">=5.0.2"
+ },
+ "peerDependenciesMeta": {
+ "bufferutil": {
+ "optional": true
+ },
+ "utf-8-validate": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/xml-name-validator": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
+ "integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
+ "devOptional": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/xmlchars": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
+ "devOptional": true,
+ "license": "MIT"
+ },
"node_modules/xmlcreate": {
"version": "2.0.4",
"resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz",
diff --git a/browser-extensions/chrome/package.json b/browser-extensions/chrome/package.json
index 7db09d71e..f38cc30ca 100644
--- a/browser-extensions/chrome/package.json
+++ b/browser-extensions/chrome/package.json
@@ -31,6 +31,7 @@
"vitest": "^3.0.4"
},
"devDependencies": {
+ "@types/jsdom": "^21.1.7",
"@types/react": "^19.0.7",
"@types/react-dom": "^19.0.3",
"@types/sql.js": "^1.4.9",
@@ -43,6 +44,7 @@
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
+ "jsdom": "^26.0.0",
"postcss": "^8.5.1",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.3",
diff --git a/browser-extensions/chrome/src/contentScript.ts b/browser-extensions/chrome/src/contentScript.ts
index 7dac5c6c6..c663d08cb 100644
--- a/browser-extensions/chrome/src/contentScript.ts
+++ b/browser-extensions/chrome/src/contentScript.ts
@@ -1,4 +1,4 @@
-import { detectForms } from './utils/FormDetector';
+import { FormDetector } from './utils/form-detector/FormDetector';
import { Credential } from './types/Credential';
import { IdentityGeneratorEn } from './generators/Identity/implementations/IdentityGeneratorEn';
import { PasswordGenerator } from './generators/Password/PasswordGenerator';
@@ -80,7 +80,9 @@ document.addEventListener('focusin', async (e) => {
* Show credential popup
*/
function showCredentialPopup(input: HTMLInputElement) : void {
- const forms = detectForms();
+ const formDetector = new FormDetector(document);
+ const forms = formDetector.detectForms();
+
if (!forms.length) return;
// Add keydown event listener for Enter key
@@ -585,7 +587,9 @@ function removeExistingPopup() : void {
* Fill credential
*/
function fillCredential(credential: Credential) : void {
- const forms = detectForms();
+ const formDetector = new FormDetector(document);
+ const forms = formDetector.detectForms();
+
if (!forms.length) return;
const form = forms[0];
@@ -597,6 +601,30 @@ function fillCredential(credential: Credential) : void {
form.passwordField.value = credential.Password;
triggerInputEvents(form.passwordField);
}
+ if (form.passwordConfirmField) {
+ form.passwordConfirmField.value = credential.Password;
+ triggerInputEvents(form.passwordConfirmField);
+ }
+ if (form.emailField) {
+ form.emailField.value = credential.Email;
+ triggerInputEvents(form.emailField);
+ }
+ if (form.firstNameField) {
+ form.firstNameField.value = credential.Alias.FirstName;
+ triggerInputEvents(form.firstNameField);
+ }
+ if (form.lastNameField) {
+ form.lastNameField.value = credential.Alias.LastName;
+ triggerInputEvents(form.lastNameField);
+ }
+ if (form.birthdateField) {
+ form.birthdateField.value = credential.Alias.BirthDate;
+ triggerInputEvents(form.birthdateField);
+ }
+ /*if (form.genderField) {
+ form.genderField.value = credential.Alias.Gender;
+ triggerInputEvents(form.genderField);
+ }*/
}
/**
@@ -655,7 +683,9 @@ async function disableAutoPopup(): Promise<void> {
* Inject icons into forms
*/
function injectIcons(): void {
- const forms = detectForms();
+ const formDetector = new FormDetector(document);
+ const forms = formDetector.detectForms();
+
forms.forEach(form => {
// Determine which field to attach the icon to
const targetField = form.usernameField || form.passwordField;
diff --git a/browser-extensions/chrome/src/utils/FormDetector.ts b/browser-extensions/chrome/src/utils/FormDetector.ts
deleted file mode 100644
index 6bf4d6bbd..000000000
--- a/browser-extensions/chrome/src/utils/FormDetector.ts
+++ /dev/null
@@ -1,60 +0,0 @@
-type LoginForm = {
- form: HTMLFormElement | null;
- usernameField: HTMLInputElement | null;
- passwordField: HTMLInputElement | null;
-}
-
-/**
- * Detect login forms on the page.
- */
-export function detectForms(): LoginForm[] {
- const forms: LoginForm[] = [];
-
- // Find all password fields
- const passwordFields = document.querySelectorAll<HTMLInputElement>('input[type="password"]');
-
- passwordFields.forEach(passwordField => {
- const form = passwordField.closest('form');
- const usernameField = findUsernameField(passwordField);
-
- forms.push({
- form,
- usernameField,
- passwordField
- });
- });
-
- return forms;
-}
-
-/**
- * Find the username field in the form containing the password field.
- */
-function findUsernameField(passwordField: HTMLInputElement): HTMLInputElement | null {
- const form = passwordField.closest('form');
- const candidates = form ? form.querySelectorAll<HTMLInputElement>('input') : document.querySelectorAll<HTMLInputElement>('input');
-
- for (const input of Array.from(candidates)) {
- if (input === passwordField) continue;
-
- // Check input type
- const type = input.type.toLowerCase();
- if (type === 'text' || type === 'email') {
- // Check common username/email patterns
- const attributes = [
- input.type,
- input.id,
- input.name,
- input.className,
- input.placeholder
- ].map(attr => attr?.toLowerCase() || '');
-
- const patterns = ['user', 'username', 'mail', 'email', 'login', 'identifier'];
- if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {
- return input;
- }
- }
- }
-
- return null;
-}
\ No newline at end of file
diff --git a/browser-extensions/chrome/src/utils/form-detector/FormDetector.ts b/browser-extensions/chrome/src/utils/form-detector/FormDetector.ts
new file mode 100644
index 000000000..ac37acf35
--- /dev/null
+++ b/browser-extensions/chrome/src/utils/form-detector/FormDetector.ts
@@ -0,0 +1,150 @@
+type LoginForm = {
+ form: HTMLFormElement | null;
+ emailField: HTMLInputElement | null;
+ usernameField: HTMLInputElement | null;
+ passwordField: HTMLInputElement | null;
+ passwordConfirmField: HTMLInputElement | null;
+
+ // Identity fields
+ firstNameField: HTMLInputElement | null;
+ lastNameField: HTMLInputElement | null;
+ birthdateField: HTMLInputElement | null;
+ genderField: HTMLInputElement | null;
+}
+
+export class FormDetector {
+ private document: Document;
+
+ constructor(document: Document) {
+ this.document = document;
+ }
+
+ /**
+ * Detect login forms on the page.
+ */
+ public detectForms(): LoginForm[] {
+ const forms: LoginForm[] = [];
+ const passwordFields = this.document.querySelectorAll<HTMLInputElement>('input[type="password"]');
+
+ passwordFields.forEach(passwordField => {
+ const form = passwordField.closest('form');
+
+ // Find all the required fields
+ const emailField = this.findInputField(form, ['email'], ['email']);
+ const usernameField = this.findUsernameField(passwordField);
+ const passwordConfirmField = this.findPasswordConfirmField(passwordField);
+
+ // Find identity fields
+ const firstNameField = this.findInputField(form, ['firstname', 'first-name', 'fname', 'voornaam'], ['text']);
+ const lastNameField = this.findInputField(form, ['lastname', 'last-name', 'lname', 'achternaam'], ['text']);
+ const birthdateField = this.findInputField(form, ['birthdate', 'birth-date', 'dob', 'geboortedatum'], ['date', 'text']);
+ const genderField = this.findInputField(form, ['gender', 'sex', 'geslacht'], ['text', 'select-one']);
+
+ forms.push({
+ form,
+ emailField,
+ usernameField,
+ passwordField,
+ passwordConfirmField,
+ firstNameField,
+ lastNameField,
+ birthdateField,
+ genderField
+ });
+ });
+
+ return forms;
+ }
+
+ /**
+ * Find an input field based on common patterns in its attributes.
+ */
+ private findInputField(
+ form: HTMLFormElement | null,
+ patterns: string[],
+ types: string[]
+ ): HTMLInputElement | null {
+ const candidates = form
+ ? form.querySelectorAll<HTMLInputElement>('input, select')
+ : this.document.querySelectorAll<HTMLInputElement>('input, select');
+
+ for (const input of Array.from(candidates)) {
+ const type = input.type.toLowerCase();
+ if (!types.includes(type)) continue;
+
+ const attributes = [
+ input.type,
+ input.id,
+ input.name,
+ input.className,
+ input.placeholder
+ ].map(attr => attr?.toLowerCase() || '');
+
+ if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {
+ return input;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Find the password confirmation field that matches the password field.
+ */
+ private findPasswordConfirmField(passwordField: HTMLInputElement): HTMLInputElement | null {
+ const form = passwordField.closest('form');
+ const candidates = form
+ ? form.querySelectorAll<HTMLInputElement>('input[type="password"]')
+ : this.document.querySelectorAll<HTMLInputElement>('input[type="password"]');
+
+ for (const input of Array.from(candidates)) {
+ if (input === passwordField) continue;
+
+ const attributes = [
+ input.id,
+ input.name,
+ input.className,
+ input.placeholder
+ ].map(attr => attr?.toLowerCase() || '');
+
+ const patterns = ['confirm', 'verification', 'repeat', 'retype', '2', 'verify'];
+ if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {
+ return input;
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Find the username field in the form containing the password field.
+ */
+ private findUsernameField(passwordField: HTMLInputElement): HTMLInputElement | null {
+ const form = passwordField.closest('form');
+ const candidates = form
+ ? form.querySelectorAll<HTMLInputElement>('input')
+ : this.document.querySelectorAll<HTMLInputElement>('input');
+
+ for (const input of Array.from(candidates)) {
+ if (input === passwordField) continue;
+
+ const type = input.type.toLowerCase();
+ if (type === 'text' || type === 'email') {
+ const attributes = [
+ input.type,
+ input.id,
+ input.name,
+ input.className,
+ input.placeholder
+ ].map(attr => attr?.toLowerCase() || '');
+
+ const patterns = ['user', 'username', 'mail', 'email', 'login', 'identifier'];
+ if (patterns.some(pattern => attributes.some(attr => attr.includes(pattern)))) {
+ return input;
+ }
+ }
+ }
+
+ return null;
+ }
+}
\ No newline at end of file
diff --git a/browser-extensions/chrome/src/utils/form-detector/__tests__/FormDetector.test.ts b/browser-extensions/chrome/src/utils/form-detector/__tests__/FormDetector.test.ts
new file mode 100644
index 000000000..6fb3c8776
--- /dev/null
+++ b/browser-extensions/chrome/src/utils/form-detector/__tests__/FormDetector.test.ts
@@ -0,0 +1,49 @@
+import { FormDetector } from '../FormDetector';
+import { readFileSync } from 'fs';
+import { join } from 'path';
+import { describe, it, expect, beforeEach } from 'vitest';
+import { JSDOM } from 'jsdom';
+
+// Helper function to load HTML test files
+const loadTestHtml = (filename: string): string => {
+ return readFileSync(join(__dirname, 'test-forms', filename), 'utf-8');
+};
+
+// Helper function to setup form detection test
+const setupFormTest = (htmlFile: string) => {
+ const html = loadTestHtml(htmlFile);
+ const dom = new JSDOM(html);
+ const document = dom.window.document;
+ const formDetector = new FormDetector(document);
+ const result = formDetector.detectForms()[0];
+ return { document, result };
+};
+
+enum FormField {
+ LastName = 'lastName',
+ Email = 'email',
+ Password = 'password',
+ PasswordConfirm = 'passwordConfirm'
+}
+
+// Helper function to test field detection
+const testField = (fieldName: FormField, elementId: string, htmlFile: string) => {
+ it(`should detect ${fieldName} field`, () => {
+ const { document, result } = setupFormTest(htmlFile);
+ const fieldKey = `${fieldName}Field` as keyof typeof result;
+
+ expect(result[fieldKey]).toBeDefined();
+ expect(result[fieldKey]).toBe(document.getElementById(elementId));
+ });
+};
+
+describe('FormDetector', () => {
+ describe('Dutch registration form detection', () => {
+ const htmlFile = 'nl-registration-form1.html';
+
+ testField(FormField.LastName, 'cpContent_txtAchternaam', htmlFile);
+ testField(FormField.Email, 'cpContent_txtEmail', htmlFile);
+ testField(FormField.Password, 'cpContent_txtWachtwoord', htmlFile);
+ testField(FormField.PasswordConfirm, 'cpContent_txtWachtwoord2', htmlFile);
+ });
+});
\ No newline at end of file
diff --git a/browser-extensions/chrome/src/utils/form-detector/__tests__/test-forms/nl-registration-form1.html b/browser-extensions/chrome/src/utils/form-detector/__tests__/test-forms/nl-registration-form1.html
new file mode 100644
index 000000000..5985aaa84
--- /dev/null
+++ b/browser-extensions/chrome/src/utils/form-detector/__tests__/test-forms/nl-registration-form1.html
@@ -0,0 +1,140 @@
+<div id="cpContent_pnlRegistratie" onkeypress="javascript:return WebForm_FireDefaultButton(event, 'cpContent_btnRegistreren')">
+ <div class="form-horizontal" role="form">
+ <div class="form-group">
+ <label for="cpContent_txtBedrijfsnaam" id="cpContent_lbBedrijfsnaam" class="control-label col-sm-3">Bedrijfsnaam</label>
+ <div class="col-sm-9"><input name="ctl00$cpContent$txtBedrijfsnaam" type="text" maxlength="50" id="cpContent_txtBedrijfsnaam" class="form-control"></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_rbMale" id="cpContent_lbAanhef" class="control-label col-sm-3">Aanhef</label>
+ <div class="col-sm-9"><input id="cpContent_rbMale" type="radio" name="ctl00$cpContent$geslacht" value="rbMale" checked="checked"><label for="cpContent_rbMale">De heer</label> <input id="cpContent_rbFemale" type="radio" name="ctl00$cpContent$geslacht" value="rbFemale"><label for="cpContent_rbFemale">Mevrouw</label></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_txtVoorletters" id="cpContent_lbVoorletters" class="control-label col-sm-3">Voorletters</label>
+ <div class="col-sm-9"><input name="ctl00$cpContent$txtVoorletters" type="text" maxlength="15" id="cpContent_txtVoorletters" class="form-control"></div>
+ </div>
+ <div id="cpContent_divTussenvoegselLabel" class="form-group">
+ <label for="cpContent_txtTussenvoegsel" id="cpContent_lbTussenvoegsel" class="control-label col-sm-3">Tussenvoegel</label>
+ <div class="col-sm-9"><input name="ctl00$cpContent$txtTussenvoegsel" type="text" maxlength="15" id="cpContent_txtTussenvoegsel" class="form-control"></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_txtAchternaam" id="cpContent_lbAchternaam" class="control-label col-sm-3 required">Achternaam</label>
+ <div class="col-sm-9"><input name="ctl00$cpContent$txtAchternaam" type="text" maxlength="50" id="cpContent_txtAchternaam" class="form-control" data-gtm-form-interact-field-id="3"></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_txtEmail" id="cpContent_lbEmailAdres" class="control-label col-sm-3 required">E-mail adres</label>
+ <div class="col-sm-9"><div style="position: relative; display: inline-block; width: 100%;"><input name="ctl00$cpContent$txtEmail" maxlength="50" id="cpContent_txtEmail" class="form-control" type="email" style="width: 555px; display: block;" data-gtm-form-interact-field-id="0"><div class="aliasvault-input-icon" style="
+display: flex;
+align-items: center;
+justify-content: center;
+position: absolute;
+right: 8px;
+top: 8px;
+margin: auto;
+cursor: pointer;
+width: 20px;
+height: 20px;
+z-index: 999999;
+">
+<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MDAgNTAwIiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA1MDAgNTAwIiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtNDU5Ljg3IDI5NC45NWMwLjAxNjIwNSA1LjQwMDUgMC4wMzI0MSAxMC44MDEtMC4zNTAyMiAxNi44NzMtMS4xMTEgNi4zMzkyLTEuMTk0MSAxMi4xNzMtMi42MzUxIDE3LjY0OS0xMC45MjIgNDEuNTA4LTM2LjczMSA2OS40ODEtNzcuMzUxIDgzLjQwOC03LjIxNTcgMi40NzM5LTE0Ljk3MiAzLjM3MDItMjIuNDc5IDQuOTk1LTIzLjYyOSAwLjA0MjIwNS00Ny4yNTcgMC4xMTQ1My03MC44ODYgMC4xMjAyNy00Ni43NjIgMC4wMTEzMjItOTMuNTIzLTAuMDE0MTYtMTQwLjk1LTAuNDM0MTEtOC41OS0yLjAwMjQtMTYuNzY2LTIuODM1Mi0yNC4zOTgtNS4zMzI2LTIxLjU5NS03LjA2NjYtMzkuNTIzLTE5LjY1Ni01My43MDgtMzcuNTUyLTEwLjIyNy0xMi45MDMtMTcuNTc5LTI3LjE3LTIxLjI4LTQzLjIyMS0xLjQ3NS02LjM5NjctMi40NzExLTEyLjkwNC0zLjY4NTItMTkuMzYxLTAuMDUxODQ5LTUuNzQ3LTAuMTAzNy0xMS40OTQgMC4yNjkxNS0xNy44ODYgNC4xNTktNDIuOTczIDI3LjY4LTcxLjYzOCA2My41NjItOTIuMTUzIDAtMC43MDc2MS0wLjAwMTk2MS0xLjY5ODggMy4xMmUtNCAtMi42OSAwLjAyMjQ4NC05LjgyOTMtMS4zMDcxLTE5Ljg5NCAwLjM1NjY0LTI5LjQzOCAzLjIzOTEtMTguNTc5IDExLjA4LTM1LjI3MiAyMy43NjMtNDkuNzczIDEyLjA5OC0xMy44MzIgMjYuNDU3LTIzLjk4OSA0My42MDktMzAuMDI5IDcuODEzLTIuNzUxMiAxNi4xNC00LjA0MTcgMjQuMjM0LTUuOTk0OCA3LjM5Mi0wLjAyNTczNCAxNC43ODQtMC4wNTE0NiAyMi44MzUgMC4zMjI1MyA0LjE5NTkgMC45NTM5MiA3Ljc5NDYgMS4yNTM4IDExLjI1OCAyLjEwNTMgMTcuMTYgNC4yMTkyIDMyLjI4NyAxMi4xNzYgNDUuNDY5IDI0LjEwNCAyLjI1NTggMi4wNDExIDQuMzcyIDYuNjI0MSA5LjYyMSAzLjg2OCAxNi44MzktOC44NDE5IDM0LjcxOC0xMS41OTcgNTMuNjAzLTguNTk0IDE2Ljc5MSAyLjY2OTkgMzEuNjAyIDkuNDMwOCA0NC4yMzYgMjAuNjM2IDExLjUzMSAxMC4yMjcgMTkuODQgMjIuODQxIDI1LjM5MyAzNy4yMzYgNi4zNDM2IDE2LjQ0NSAxMC4zODkgMzMuMTYzIDYuMDc5OCA0OS4zODkgNy45NTg3IDguOTMyMSAxNS44MDcgMTYuNzA0IDIyLjQyMSAyNS40MTQgOS4xNjIgMTIuMDY1IDE1LjMzIDI1Ljc0NiAxOC4xNDQgNDAuNzc2IDAuOTcwNDYgNS4xODQ4IDEuOTExMSAxMC4zNzUgMi44NjU0IDE1LjU2M20tNzEuNTk3IDcxLjAxMmM1LjU2MTUtNS4yMjg0IDEyLjAwMi05Ljc5ODYgMTYuNTA4LTE1LjgxNyAxMC40NzQtMTMuOTkyIDE0LjMzMy0yOS45MTYgMTEuMjg4LTQ3LjQ0Ni0yLjI0OTYtMTIuOTUtOC4xOTczLTI0LjA3Ni0xNy4yNDMtMzMuMDYzLTEyLjc0Ni0xMi42NjMtMjguODY1LTE4LjYxNC00Ni43ODYtMTguNTY5LTY5LjkxMiAwLjE3NzEyLTEzOS44MiAwLjU2ODMxLTIwOS43NCAwLjk2MTc2LTE1LjkyMiAwLjA4OTU5OS0yOS4xNjggNy40MjA5LTM5LjY4NSAxOC4yOTYtMTQuNDUgMTQuOTQ0LTIwLjQwOCAzMy4zNDMtMTYuNjU1IDU0LjM2OCAyLjI3NjMgMTIuNzU0IDguMjE2NyAyMy43NDggMTcuMTU4IDMyLjY2IDEzLjI5OSAxMy4yNTUgMzAuMDk3IDE4LjY1MyA0OC43MjggMTguNjUxIDU5LjMyMS0wLjAwNTE4OCAxMTguNjQgMC4wNDIzNTggMTc3Ljk2LTAuMDQ2NjAxIDkuNTkxMi0wLjAxNDM3NCAxOS4xODEtMC44NjU4OCAyOC43NzMtMC44ODg1NSAxMC42NDktMC4wMjUxNDYgMTkuOTc4LTMuODI1IDI5LjY4Ny05LjEwNzR6IiBmaWxsPSIjRUVDMTcwIi8+CjxwYXRoIGQ9Im0xNjIuNzcgMjkzYzE1LjY1NCA0LjM4ODMgMjAuNjI3IDIyLjk2NyAxMC4zMDQgMzQuOTgtNS4zMTA0IDYuMTc5NS0xNC44MTcgOC4zMjA4LTI0LjI3OCA1LjA0NzItNy4wNzIzLTIuNDQ3MS0xMi4zMzItMTAuMzYyLTEyLjg3Ni0xNy45MzMtMS4wNDUxLTE0LjU0MiAxMS4wODktMjMuMTc2IDIxLjcwNS0yMy4wNDYgMS41Nzk0IDAuMDE5Mjg3IDMuMTUxNyAwLjYxNTY2IDUuMTQ2MSAwLjk1MTg0eiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMjI3LjE4IDI5My42NGM3Ljg0OTkgMi4zOTczIDExLjkzOCA4LjIxNDMgMTMuNTI0IDE1LjA3NyAxLjg1OTEgOC4wNDM5LTAuNDQ4MTcgMTUuNzA2LTcuMTU4OCAyMS4xMjEtNi43NjMzIDUuNDU3Mi0xNC40MTcgNi44Nzk0LTIyLjU3OCAzLjE0ODMtOC4yOTcyLTMuNzkzMy0xMi44MzYtMTAuODQ5LTEyLjczNi0xOS40MzggMC4xNjg3LTE0LjQ5NyAxNC4xMy0yNS4zNjggMjguOTQ4LTE5LjkwOHoiIGZpbGw9IiNFRUMxNzAiLz4KPHBhdGggZD0ibTI2MS41NyAzMTkuMDdjLTIuNDk1LTE0LjQxOCA0LjY4NTMtMjIuNjAzIDE0LjU5Ni0yNi4xMDggOS44OTQ1LTMuNDk5NSAyMy4xODEgMy40MzAzIDI2LjI2NyAxMy43NzkgNC42NTA0IDE1LjU5MS03LjE2NTEgMjkuMDY0LTIxLjY2NSAyOC4xNjEtOC41MjU0LTAuNTMwODgtMTcuMjAyLTYuNTA5NC0xOS4xOTgtMTUuODMxeiIgZmlsbD0iI0VFQzE3MCIvPgo8cGF0aCBkPSJtMzM2LjkxIDMzMy40MWMtOS4wMTc1LTQuMjQ5MS0xNS4zMzctMTQuMzQ5LTEzLjgyOS0yMS42ODIgMy4wODI1LTE0Ljk4OSAxMy4zNDEtMjAuMzA0IDIzLjAxOC0xOS41ODUgMTAuNjUzIDAuNzkxNDEgMTcuOTMgNy40MDcgMTkuNzY1IDE3LjU0NyAxLjk1ODggMTAuODI0LTQuMTE3MSAxOS45MzktMTMuNDk0IDIzLjcwMy01LjI3MiAyLjExNjItMTAuMDkxIDEuNTA4Ni0xNS40NiAwLjAxNzg4M3oiIGZpbGw9IiNFRUMxNzAiLz4KPC9zdmc+" style="width: 100%; height: 100%;">
+</div></div></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_txtWachtwoord" id="cpContent_lbWachtwoord" class="control-label col-sm-3 required">Wachtwoord</label>
+ <div class="col-sm-9"><input name="ctl00$cpContent$txtWachtwoord" type="password" maxlength="20" id="cpContent_txtWachtwoord" class="form-control" data-gtm-form-interact-field-id="1"></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_txtWachtwoord2" id="cpContent_lbWachtwoordTerControle" class="control-label col-sm-3 required">Wachtwoord ter controle</label>
+ <div class="col-sm-9"><input name="ctl00$cpContent$txtWachtwoord2" type="password" maxlength="20" id="cpContent_txtWachtwoord2" class="form-control" data-gtm-form-interact-field-id="2"></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_ddlBranche" id="cpContent_lbBranche" class="control-label col-sm-3 required">Branche waarin u actief bent</label>
+ <div class="col-sm-9"><select name="ctl00$cpContent$ddlBranche" id="cpContent_ddlBranche" class="form-control">
+<option value="0">(Selecteer uw branche)</option>
+<option value="13">Advisering en onderzoek</option>
+<option value="6">Bouwnijverheid</option>
+<option value="18">Cultuur, sport en recreatie</option>
+<option value="4">Energie, productie en distributie</option>
+<option value="21">Extraterritoriale organisaties</option>
+<option value="11">Financiële instellingen</option>
+<option value="17">Gezondheids- en welzijnszorg</option>
+<option value="7">Groot- en detailhandel</option>
+<option value="9">Horeca</option>
+<option value="20">Huishoudens</option>
+<option value="3">Industrie</option>
+<option value="10">Informatie en communicatie</option>
+<option value="1">Landbouw, bosbouw en visserij</option>
+<option value="16">Onderwijs</option>
+<option value="12">Onroerend goed</option>
+<option value="15">Openbaar bestuur</option>
+<option value="19">Overige dienstverlening</option>
+<option value="8">Vervoer en opslag</option>
+<option value="5">Water; afval- en afvalwaterbeheer</option>
+<option value="2">Winning van delfstoffen</option>
+<option value="14">Zakelijke dienstverlening</option>
+
+</select></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_ddlWerknemers" id="cpContent_lbWerknemers" class="control-label col-sm-3 required">Werkzame personen in uw organisatie</label>
+ <div class="col-sm-9"><select name="ctl00$cpContent$ddlWerknemers" id="cpContent_ddlWerknemers" class="form-control">
+<option value="0">(Selecteer aantal werkzame personen)</option>
+<option value="1">1 werknemer</option>
+<option value="2">2-5 werknemers</option>
+<option value="3">6-10 werknemer</option>
+<option value="4">11-20 werknemers</option>
+<option value="5">21-50 werknemers</option>
+<option value="6">51-100 werknemers</option>
+<option value="7">101-200 werknemers</option>
+<option value="8">201-500 werknemers</option>
+<option value="9">501-750 werknemers</option>
+<option value="10">751-1000 werknemers</option>
+<option value="11">Meer dan 1000 werknemers</option>
+
+</select></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_ddlFunctie" id="cpContent_lbFunctie" class="control-label col-sm-3 required">Selecteer uw functie</label>:
+ <div class="col-sm-9"><select name="ctl00$cpContent$ddlFunctie" id="cpContent_ddlFunctie" class="form-control">
+<option value="0">(Selecteer uw functie)</option>
+<option value="1">Directie</option>
+<option value="2">Management</option>
+<option value="3">Financiën</option>
+<option value="4">Verkoop / commercie</option>
+<option value="5">Marketing</option>
+<option value="6">Juridisch</option>
+<option value="7">Inkoop</option>
+<option value="8">ICT</option>
+<option value="9">HRM</option>
+<option value="10">Consultancy</option>
+<option value="11">Produktie</option>
+<option value="13">Student</option>
+<option value="14">Gepensioneerd</option>
+<option value="15">Zonder werkkring</option>
+<option value="16">Overige</option>
+
+</select></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_chkNieuwsbrief" id="cpContent_lbNieuwsbrief" class="control-label col-sm-3">Nieuwsbrief</label>
+ <div class="col-sm-9"><input id="cpContent_chkNieuwsbrief" type="checkbox" name="ctl00$cpContent$chkNieuwsbrief"><label for="cpContent_chkNieuwsbrief">Ja, ik wil graag de nieuwsbrief ontvangen.</label></div>
+ </div>
+ <div class="form-group">
+ <label for="cpContent_chkVeilingen" id="cpContent_lbVeilingen" class="control-label col-sm-3">Nieuwsflitsen</label>
+ <div class="col-sm-9"><input id="cpContent_chkVeilingen" type="checkbox" name="ctl00$cpContent$chkVeilingen"><label for="cpContent_chkVeilingen">Ja, houd mij op de hoogte van nieuwe veilingen.</label></div>
+ </div>
+ <div class="form-group">
+ <div class="col-sm-3"></div>
+ <div class="col-sm-9"></div>
+ </div>
+ <div class="form-group">
+ <div class="col-sm-3"></div>
+ <div class="col-sm-9"><input type="submit" name="ctl00$cpContent$btnRegistreren" value="Registreren" id="cpContent_btnRegistreren" class="btn btn-success"> &nbsp; <a href="#" id="cpContent_hypPrivacyStatement" rel="nofollow" target="_blank">Privacy statement</a></div>
+ </div>
+ </div>
+
+ <div class="registratiedisclaimer">
+ Invulvelden die gemarkeerd zijn met een *, dienen verplicht ingevuld te worden.<br><br>
+ Uw gegevens worden strikt vertrouwelijk behandeld en worden niet doorverkocht of doorgegeven aan derde partijen. Het ingevulde emailadres wordt alleen gebruikt om u toegang te geven tot alle gegevens op en het versturen van relevante informatie indien u dit zelf heeft aangegeven. Zie verder ons <a target="_blank" href="#">privacy statement</a>..
+ </div>
+
+</div>
\ No newline at end of file