index
int64
0
0
repo_id
stringlengths
16
181
file_path
stringlengths
28
270
content
stringlengths
1
11.6M
__index_level_0__
int64
0
10k
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/sieve/.eslintrc.js
module.exports = { extends: ['@proton/eslint-config-proton'], parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: __dirname, project: './tsconfig.json', }, ignorePatterns: ['.eslintrc.js'], };
8,900
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/sieve/README.md
# Sieve.js TypeScript library to wrap sieve configuration ### Simple representation ```js { Operator: { label: '', value: 'AllOf' // 'AnyOf' }, Conditions: [ { Comparator: { value: 'contains' // 'is', 'matches', 'starts', 'ends' }, Values: ['[email protected]'] } ], Actions: { FileInto: ['trash'], Mark: { Read: false, Starred: false }, Vacation: 'Not here for few days' } } ```
8,901
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/sieve/babel.config.js
module.exports = { presets: ['@babel/preset-env', ['@babel/preset-react', { runtime: 'automatic' }], '@babel/preset-typescript'], plugins: [ '@babel/plugin-proposal-object-rest-spread', '@babel/plugin-transform-runtime', 'transform-require-context', ], };
8,902
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/sieve/index.ts
export { fromSieveTree } from './src/fromSieve/fromSieveTree'; export { toSieveTree } from './src/toSieve/toSieveTree';
8,903
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/sieve/package.json
{ "name": "@proton/sieve", "description": "Proton sieve", "license": "GPL-3.0", "author": "ProtonMail", "sideEffects": false, "main": "index.ts", "scripts": { "check-types": "tsc", "lint": "eslint src fixtures --ext .ts --quiet --cache", "pretty": "prettier --write $(find src fixtures -type f -name '*.ts')", "test": "jest", "test:dev": "jest --watch --coverage=false --watchAll" }, "devDependencies": { "eslint": "^8.54.0", "jest": "^29.7.0", "prettier": "^3.1.0", "typescript": "^5.3.2" } }
8,904
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/sieve/tsconfig.json
{ "extends": "../../tsconfig.base.json" }
8,905
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/archive.ts
/* * Sieve/Tree test inputs */ import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { If: { Tests: [ { Test: { Headers: ['Subject'], Keys: ['Subject1'], Match: { Type: 'Contains', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, Type: 'Not', }, { Headers: ['To', 'Cc', 'Bcc'], Keys: ['Recipient1'], Match: { Type: 'Is', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Address', AddressPart: { Type: 'All', }, }, { Test: { Headers: ['To', 'Cc', 'Bcc'], Keys: ['Recipient2'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Address', AddressPart: { Type: 'All', }, }, Type: 'Not', }, { Headers: ['From'], Keys: ['Sender1*'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Address', AddressPart: { Type: 'All', }, }, { Test: { Headers: ['From'], Keys: ['*Sender2'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Address', AddressPart: { Type: 'All', }, }, Type: 'Not', }, { Test: { Headers: ['X-Attached'], Type: 'Exists', }, Type: 'Not', }, ], Type: 'AllOf', }, Then: [ { Name: 'panda qwe qwe qwe qweqwe qw e', Type: 'FileInto', }, { Name: 'panda3', Type: 'FileInto', }, { Name: 'cool', Type: 'FileInto', }, { Name: 'panda2', Type: 'FileInto', }, { Name: 'test', Type: 'FileInto', }, { Name: 'very long label wowowowowowowowowowowowoowowowwo', Type: 'FileInto', }, { Name: 'wqeqweqweqweqweqweqweqweqweqweqweqweqweqweqwe', Type: 'FileInto', }, { Name: 'archive', Type: 'FileInto', }, { Flags: ['\\Seen'], Type: 'AddFlag', }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'does not contain', value: ConditionComparator.DOES_NOT_CONTAIN, }, Values: ['Subject1'], }, { Type: { label: 'Recipient', value: ConditionType.RECIPIENT, }, Comparator: { label: 'is exactly', value: ConditionComparator.IS, }, Values: ['Recipient1'], }, { Type: { label: 'Recipient', value: ConditionType.RECIPIENT, }, Comparator: { label: 'does not match', value: ConditionComparator.DOES_NOT_MATCH, }, Values: ['Recipient2'], }, { Type: { label: 'Sender', value: ConditionType.SENDER, }, Comparator: { label: 'Matches', value: ConditionComparator.STARTS, }, Values: ['Sender1'], }, { Type: { label: 'Sender', value: ConditionType.SENDER, }, Comparator: { label: 'does not end with', value: ConditionComparator.DOES_NOT_END, }, Values: ['Sender2'], }, { Type: { label: 'Attachments', value: ConditionType.ATTACHMENTS, }, Comparator: { label: 'does not contain', value: ConditionComparator.DOES_NOT_CONTAIN, }, Values: [], }, ], Actions: { FileInto: [ 'panda qwe qwe qwe qweqwe qw e', 'panda3', 'cool', 'panda2', 'test', 'very long label wowowowowowowowowowowowoowowowwo', 'wqeqweqweqweqweqweqweqweqweqweqweqweqweqweqwe', 'archive', ], Mark: { Read: true, Starred: false, }, }, }; export default { tree, simple };
8,906
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/folder.ts
/* * Sieve/Tree test inputs */ import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { If: { Tests: [ { Headers: ['Subject'], Keys: ['Order'], Match: { Type: 'Contains', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, ], Type: 'AllOf', }, Then: [ { Type: 'FileInto', Name: 'important', }, { Type: 'FileInto', Name: 'Folder', }, { Type: 'AddFlag', Flags: ['\\Seen'], }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: ['Order'], Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'contains', value: ConditionComparator.CONTAINS, }, }, ], Actions: { FileInto: ['important', 'Folder'], Mark: { Read: true, Starred: false, }, }, }; export default { tree, simple };
8,907
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v1StartsEndsTest.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { If: { Tests: [ { Headers: ['Subject'], Keys: ['starts with*'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, { Test: { Headers: ['Subject'], Keys: ['*ends with'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, Type: 'Not', }, ], Type: 'AllOf', }, Then: [ { Type: 'FileInto', Name: 'important', }, { Type: 'FileInto', Name: 'Folder', }, { Type: 'AddFlag', Flags: ['\\Seen'], }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: ['starts with*'], Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'matches', value: ConditionComparator.MATCHES, }, }, { Values: ['*ends with'], Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'does not match', value: ConditionComparator.DOES_NOT_MATCH, }, }, ], Actions: { FileInto: ['important', 'Folder'], Mark: { Read: true, Starred: false, }, }, }; export default { tree, simple };
8,908
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type and\r\n * @comparator contains\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['Subject'], Keys: ['Order'], Match: { Type: 'Contains', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, ], Type: 'AllOf', }, Then: [ { Type: 'FileInto', Name: 'important', }, { Type: 'FileInto', Name: 'Folder', }, { Type: 'AddFlag', Flags: ['\\Seen'], }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: ['Order'], Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'contains', value: ConditionComparator.CONTAINS, }, }, ], Actions: { FileInto: ['important', 'Folder'], Mark: { Read: true, Starred: false, }, }, }; export default { tree, simple };
8,909
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2Attachments.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type and\r\n * @comparator default\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['X-Attached'], Type: 'Exists', }, ], Type: 'AllOf', }, Then: [ { Type: 'FileInto', Name: 'inbox', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: [], Type: { label: 'Attachments', value: ConditionType.ATTACHMENTS, }, Comparator: { label: 'contains', value: ConditionComparator.CONTAINS, }, }, ], Actions: { Mark: { Read: false, Starred: false, }, FileInto: ['inbox'], }, }; export default { tree, simple };
8,910
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2Complex.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type or\r\n * @comparator starts\r\n * @comparator starts\r\n * @comparator ends\r\n * @comparator default\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['Subject'], Keys: ['subject*'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, { Headers: ['From'], Keys: ['\\\\*\\\\?\\\\sender\\\\\\\\?\\\\**'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, { Headers: ['To', 'Cc', 'Bcc'], Keys: ['*\\\\*\\\\?\\\\recipient\\\\\\\\?\\\\*'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, { Headers: ['X-Attached'], Type: 'Exists', }, ], Type: 'AnyOf', }, Then: [ { Flags: ['\\Seen'], Type: 'AddFlag', }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'Any', value: FilterStatement.ANY, }, Conditions: [ { Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'begins with', value: ConditionComparator.STARTS, }, Values: ['subject'], }, { Type: { label: 'Sender', value: ConditionType.SENDER, }, Comparator: { label: 'begins with', value: ConditionComparator.STARTS, }, Values: ['*?\\sender\\?*'], }, { Type: { label: 'Recipient', value: ConditionType.RECIPIENT, }, Comparator: { label: 'ends with', value: ConditionComparator.ENDS, }, Values: ['*?\\recipient\\?*'], }, { Type: { label: 'Attachments', value: ConditionType.ATTACHMENTS, }, Comparator: { label: 'contains', value: ConditionComparator.CONTAINS, }, Values: [], }, ], Actions: { FileInto: [], Mark: { Read: true, Starred: false, }, }, }; export default { tree, simple };
8,911
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2EscapeVariables.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags', 'vacation'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Name: 'dollar', Value: '$', Flags: [], Type: 'Set', }, { Text: '/**\r\n * @type or\r\n * @comparator ends\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['To', 'Cc', 'Bcc'], Keys: [ { Type: 'VariableString', Value: '*${dollar}{frommail}', }, '*${}', { Type: 'VariableString', Value: '*${dollar}{frommail} ${dollar}{tomail}', }, ], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, ], Type: 'AnyOf', }, Then: [ { Name: 'archive', Type: 'FileInto', }, { Name: 'polo', Type: 'FileInto', }, { Name: { Value: '${dollar}{File}', Type: 'VariableString', }, Type: 'FileInto', }, { Flags: ['\\Seen', '\\Flagged'], Type: 'AddFlag', }, { Type: 'Keep', }, { Message: { Value: "<div>Je mange une pomme, ${dollar}{d3_so} pas ${déso} mais ${j'ai} faim pedro</div> ", Type: 'VariableString', }, Args: { MIMEType: 'text/html', }, Type: 'Vacation', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'Any', value: FilterStatement.ANY, }, Conditions: [ { Type: { label: 'Recipient', value: ConditionType.RECIPIENT, }, Comparator: { label: 'ends with', value: ConditionComparator.ENDS, }, Values: ['${frommail}', '${}', '${frommail} ${tomail}'], }, ], Actions: { FileInto: ['archive', 'polo', '${File}'], Mark: { Read: true, Starred: true, }, Vacation: "<div>Je mange une pomme, ${d3_so} pas ${déso} mais ${j'ai} faim pedro</div> ", }, }; export default { tree, simple };
8,912
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2From.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type and\r\n * @comparator contains\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['From'], Keys: ['From'], Match: { Type: 'Contains', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, ], Type: 'AllOf', }, Then: [ { Flags: ['\\Seen'], Type: 'AddFlag', }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: ['From'], Type: { label: 'Sender', value: ConditionType.SENDER, }, Comparator: { label: 'contains', value: ConditionComparator.CONTAINS, }, }, ], Actions: { Mark: { Read: true, Starred: false, }, FileInto: [], }, }; export default { tree, simple };
8,913
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2InvalidStructure.ts
const tree = [ { List: ['fileinto', 'imap4flags', 'reject'], Type: 'Require', }, { Type: 'Reject', Message: 'No message here please', }, ]; const simple = undefined; export default { tree, simple };
8,914
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2SpamOnly.ts
const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, ]; export default { tree, simple: undefined };
8,915
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2StartsEndsTest.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type and\r\n * @comparator starts\r\n * @comparator !ends\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['Subject'], Keys: ['starts with*'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, { Test: { Headers: ['Subject'], Keys: ['*ends with'], Match: { Type: 'Matches', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, Type: 'Not', }, ], Type: 'AllOf', }, Then: [ { Type: 'FileInto', Name: 'important', }, { Type: 'FileInto', Name: 'Folder', }, { Type: 'AddFlag', Flags: ['\\Seen'], }, { Type: 'Keep', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: ['starts with'], Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'begins with', value: ConditionComparator.STARTS, }, }, { Values: ['ends with'], Type: { label: 'Subject', value: ConditionType.SUBJECT, }, Comparator: { label: 'does not end with', value: ConditionComparator.DOES_NOT_END, }, }, ], Actions: { FileInto: ['important', 'Folder'], Mark: { Read: true, Starred: false, }, }, }; export default { tree, simple };
8,916
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2Vacation.ts
import { ConditionComparator, ConditionType, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags', 'vacation'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type and\r\n * @comparator default\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['X-Attached'], Type: 'Exists', }, ], Type: 'AllOf', }, Then: [ { Message: '<div>Vacation test<br></div>', Args: { MIMEType: 'text/html', }, Type: 'Vacation', }, ], Type: 'If', }, ]; const simple: SimpleObject = { Operator: { label: 'All', value: FilterStatement.ALL, }, Conditions: [ { Values: [], Type: { label: 'Attachments', value: ConditionType.ATTACHMENTS, }, Comparator: { label: 'contains', value: ConditionComparator.CONTAINS, }, }, ], Actions: { Mark: { Read: false, Starred: false, }, FileInto: [], Vacation: '<div>Vacation test<br></div>', }, }; export default { tree, simple };
8,917
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2VacationDouble.ts
const tree = [ { List: ['include', 'environment', 'variables', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags', 'date', 'vacation'], Type: 'Require', }, { List: ['relational'], Type: 'Require', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { If: { Tests: [ { DateFormat: 'date', Keys: ['2018-06-14'], Zone: { Argument: 'CET', Type: 'Zone', }, Format: null, MatchOperator: { Comparator: 'gt', Type: 'GreaterValue', }, Type: 'CurrentDate', }, { Headers: ['To', 'Cc', 'Bcc'], Keys: ['[email protected]'], Match: { Type: 'Is', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, ], Type: 'AllOf', }, Then: [ { Message: 'SHABAN Autoresponder message text goes here', Args: [], Type: 'Vacation', }, ], Type: 'If', }, { If: { Tests: [ { DateFormat: 'date', Keys: ['2018-06-14'], Zone: { Argument: 'CET', Type: 'Zone', }, Format: null, MatchOperator: { Comparator: 'gt', Type: 'GreaterValue', }, Type: 'CurrentDate', }, { Headers: ['To', 'Cc', 'Bcc'], Keys: ['[email protected]'], Match: { Type: 'Is', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, ], Type: 'AllOf', }, Then: [ { Message: 'FT1 Autoresponder message text goes here', Args: [], Type: 'Vacation', }, ], Type: 'If', }, ]; export default { tree, simple: undefined };
8,918
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/fixtures/v2VariableManyConditionsComplex.ts
const tree = [ { List: ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], Type: 'Require', }, { List: ['fileinto', 'imap4flags', 'vacation'], Type: 'Require', }, { Name: 'frommail', Value: '[email protected]', Flags: [], Type: 'Set', }, { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, { Text: '/**\r\n * @type or\r\n * @comparator contains\r\n * @comparator contains\r\n * @comparator default\r\n * @comparator is\r\n */', Type: 'Comment', }, { If: { Tests: [ { Headers: ['Subject'], Keys: ['jeanne', '/monique\\d+/'], Match: { Type: 'Contains', }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }, { Headers: ['From'], Keys: ['protonmail'], Match: { Type: 'Contains', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, { Headers: ['X-Attached'], Type: 'Exists', }, { Headers: ['To', 'Cc', 'Bcc'], Keys: [ { Value: '${frommail}', Type: 'VariableString', }, ], Match: { Type: 'Is', }, Format: { Type: 'UnicodeCaseMap', }, AddressPart: { Type: 'All', }, Type: 'Address', }, ], Type: 'AnyOf', }, Then: [ { Name: 'archive', Type: 'FileInto', }, { Name: 'polo', Type: 'FileInto', }, { Flags: ['\\Seen', '\\Flagged'], Type: 'AddFlag', }, { Type: 'Keep', }, { Message: "<div>Je mange une pomme, déso pas déso mais j'ai faim pedro</div> ", Args: { MIMEType: 'text/html', }, Type: 'Vacation', }, ], Type: 'If', }, ]; export default { tree, simple: undefined };
8,919
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/src/constants.ts
export const V1 = 1; export const V2 = 2; export const TEST_NODES = { spamtest: [ { Text: '# Generated: Do not run this script on spam messages', Type: 'Comment', }, { If: { Tests: [ { Name: 'vnd.proton.spam-threshold', Keys: ['*'], Format: null, Match: { Type: 'Matches', }, Type: 'Environment', }, { Value: { Value: '${1}', Type: 'VariableString', }, Flags: [], Format: { Type: 'ASCIINumeric', }, Match: { Comparator: 'ge', Type: 'GreaterEqualsValue', }, Type: 'SpamTest', }, ], Type: 'AllOf', }, Then: [ { Type: 'Return', }, ], Type: 'If', }, ], attachment: [ { Headers: ['X-Attached'], Type: 'Exists', }, ], dollar: [ { Name: 'dollar', Value: '$', Flags: [], Type: 'Set', }, ], };
8,920
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/src/helpers.ts
import { EscapeVariableType, LABEL_KEYS, LABEL_KEY_TYPE } from './interface'; type ReturnValue = { Value: String; Type: String }; /** * Builds a value label object. */ export const buildLabelValueObject = (value: LABEL_KEY_TYPE) => ({ value, label: LABEL_KEYS[value], }); /** * Escapes the sieve specific characters. (aka *, ? and \) */ export const escapeCharacters = (text: string) => text.replace(/([*?])/g, '\\$1').replace(/\\/g, '\\\\'); /** * Unescape the sieve specific characters (*, ? and \) */ export const unescapeCharacters = (text: string) => text.replace(/\\\\/g, '\\').replace(/\\([?*])/g, '$1'); /** * Escapes sieve variables */ export const escapeVariables = (text: string): EscapeVariableType => { const regex = /\$({[\w._]+})/g; if (!text.match(regex)) { return text; } return { Value: text.replace(regex, '${dollar}$1'), Type: 'VariableString', }; }; /** * Unescape sieve variables */ export const unescapeVariables = (text: string | ReturnValue) => { if (typeof text === 'string') { return text; } const { Value: value, Type: type } = text; if (type !== 'VariableString' || value.match(/\${(?!dollar)[\w._]+}/)) { return; } const regex = /\${dollar}({[\w._]+})/g; return text.Value.replace(regex, '$$$1'); }; /** * Remove duplicates in array. */ export const unique = <T>(arr: T[]) => [...new Set(arr)]; /** * Find last value that pass the given callback */ export const findLatest = <T>(arr: T[], callback: (item: T) => {}) => { let i = arr.length; while (i--) { if (callback(arr[i])) { return arr[i]; } } };
8,921
0
petrpan-code/ProtonMail/WebClients/packages/sieve
petrpan-code/ProtonMail/WebClients/packages/sieve/src/interface.ts
import { ConditionComparator, FilterStatement } from '@proton/components/containers/filters/interfaces'; export type SIEVE_VERSION = 1 | 2; export interface ValueTypePair { Type: string; Value: string; } export interface ValueNamePair { Name: string; Value: string; } export interface ValueTextPair { Text: string; Value: string; } export interface PrepareType { Type: string; Headers: string; } export interface Match { Type: string; } export const LABEL_KEYS = { all: 'All', any: 'Any', subject: 'Subject', sender: 'Sender', recipient: 'Recipient', attachments: 'Attachments', contains: 'contains', '!contains': 'does not contain', is: 'is exactly', '!is': 'is not', matches: 'matches', '!matches': 'does not match', starts: 'begins with', '!starts': 'does not begin with', ends: 'ends with', '!ends': 'does not end with', }; export type LABEL_KEY_TYPE = keyof typeof LABEL_KEYS; export const LABEL_KEY_MATCHING = [ { match: 'Contains', default: 'contains', negate: '!contains', }, { match: 'Is', default: 'is', negate: '!is', }, { match: 'Matches', default: 'matches', negate: '!matches', }, { match: 'Starts', default: 'starts', negate: '!starts', }, { match: 'Ends', default: 'ends', negate: '!ends' }, ]; export const MATCH_KEYS: Partial<Record<ConditionComparator | 'default', string>> = { is: 'Is', contains: 'Contains', matches: 'Matches', starts: 'Starts', ends: 'Ends', default: 'Defaults', }; export const OPERATOR_KEYS: Record<FilterStatement, string> = { all: 'AllOf', any: 'AnyOf', }; export interface BuildFileIntoType { Type: string; Name: string | ValueTypePair; } export interface IfTest { Headers: string[]; Keys: string[]; Match: Match; Format: Match; Type: string; Test: IfTest; DateFormat?: string; Zone?: { Argument: string; Type: string; }; MatchOperator?: { Comparator: string; Type: string; }; AddressPart?: Match; } export interface ItType { If: { Tests: IfTest[]; Type: string; }; Then: { Type: string; Name: string; Flags: string[]; Message: string; Args: any[]; }[]; Type: string; } export interface SieveTests { Headers?: string[]; Test?: {}; Type: string; } export interface SieveCondition { tests: SieveTests[]; comparators: string[]; dollarNeeded: boolean; } export type EscapeVariableType = string | ValueTypePair; export interface MainNodeType { List?: string[]; Type?: string; Name?: string; Value?: string; Flags?: never[]; Text?: string; Then?: any[]; If?: { Tests: any; Type: string; }; } export type SieveBranch = | { List: string[]; Type: string; } | { Name: string; Value: string; Flags: never[]; Type: string; } | { Text: string; Type: string; } | ItType;
8,922
0
petrpan-code/ProtonMail/WebClients/packages/sieve/src
petrpan-code/ProtonMail/WebClients/packages/sieve/src/fromSieve/fromSieveTree.helpers.ts
import { ConditionComparator, FilterActions } from '@proton/components/containers/filters/interfaces'; import isTruthy from '@proton/utils/isTruthy'; import { buildLabelValueObject, findLatest, unescapeCharacters, unescapeVariables } from '../helpers'; import { IfTest, ItType, LABEL_KEYS, LABEL_KEY_MATCHING, LABEL_KEY_TYPE, MainNodeType, PrepareType, ValueNamePair, ValueTextPair, ValueTypePair, } from '../interface'; /** * Parse a specific comment annotation */ const prepareComment = (commentComparator?: string) => { if (!commentComparator) { return {}; } const negate = commentComparator.startsWith('!'); return { negate, comparator: negate ? commentComparator.slice(1) : commentComparator, }; }; /** * Builds a simple condition. */ const buildSimpleCondition = (type: LABEL_KEY_TYPE, comparator: LABEL_KEY_TYPE, params: {}) => { return { Type: buildLabelValueObject(type), Comparator: buildLabelValueObject(comparator), ...params, }; }; /** * Prepares single condition. */ const prepareSingleCondition = (element: { Type: string; Test?: any }) => { const negate = element.Type === 'Not'; return { negate, element: negate ? element.Test : element, }; }; /** * Prepare the type. */ const prepareType = (element: PrepareType) => { const hasHeader = (Headers: string, key: string, value: string) => { return Headers.includes(key) ? value : ''; }; const hasAnyHeader = (element: PrepareType, keys: string[], value: string) => { return keys.some((key) => hasHeader(element.Headers, key, value)) ? value : ''; }; const { Headers, Type } = element; if (Type === 'Exists') { return hasHeader(Headers, 'X-Attached', 'attachments'); } else if (Type === 'Header') { return hasHeader(Headers, 'Subject', 'subject'); } else if (Type === 'Address') { return hasHeader(Headers, 'From', 'sender') || hasAnyHeader(element, ['To', 'Cc', 'Bcc'], 'recipient'); } return ''; }; /** * Builds the simple comparator . */ const buildSimpleComparator = (comparator: string, negate: boolean) => { const value = LABEL_KEY_MATCHING.find((item) => item.match === comparator); if (!value) { throw new Error('Invalid match keys'); } const key = (negate ? value.negate : value.default) as LABEL_KEY_TYPE; return buildLabelValueObject(key); }; /** * Builds simple parameters. */ const buildSimpleParams = ( comparator: string, values: (string | ValueTypePair)[], negate: boolean, commentComparator?: string ) => { const unescapedValues = values.map(unescapeVariables).filter(isTruthy); if (commentComparator === ConditionComparator.STARTS || commentComparator === ConditionComparator.ENDS) { if (comparator !== 'Matches') { throw new Error(`Comment and computed comparator incompatible: ${comparator} instead of matches`); } const values = unescapedValues.map((value) => { const unescaped = unescapeCharacters(value); if (commentComparator === 'ends') { return unescaped.slice(1); } return unescaped.slice(0, -1); }); return { Comparator: buildSimpleComparator(commentComparator[0].toUpperCase() + commentComparator.slice(1), negate), Values: values, }; } if (commentComparator && comparator.toLowerCase() !== commentComparator) { // commentComparator is not required throw new Error(`Comment and computed comparator incompatible: ${comparator} instead of ${commentComparator}`); } return { Comparator: buildSimpleComparator(comparator, negate), Values: unescapedValues, }; }; /** * Parses the comparator comment, to retrieve the expected comparators. */ export const parseComparatorComment = (comparator?: ValueTextPair) => { if (!comparator) { return; } const text = comparator.Text; const chunks = text.split('\r\n *'); const mapAnnotations = new Map([ ['and', 'all'], ['or', 'any'], ]); const results: { comparators: string[]; type: string; errors: ValueTypePair[] } = { comparators: [], type: '', errors: [], }; chunks.forEach((chunk) => { const res = chunk.match(/\s@(\w*)\s(.*)$/); if (res) { const [, annotationType, value] = res; if (annotationType === 'type') { const val = mapAnnotations.get(value); if (!val) { results.errors.push({ Type: annotationType, Value: value }); return; } results.type = val; } if (annotationType === 'comparator') { results.comparators.push(value.replace('default', 'contains')); return; } } }); if (results.errors.length) { throw new Error( `Unknown ${results.errors.reduce( (acc, { Type, Value }) => `${acc ? acc + ', ' : ''}${Type} "${Value}"`, '' )}` ); } return results; }; /** * Validate the tree and extracts the main node. */ export const extractMainNode = (tree: MainNodeType[]) => { const typed: { Set: ValueNamePair[]; If: ItType[]; Comment: ValueTextPair[]; Require: { List: string[]; Type: string }[]; } = tree.reduce( (acc, tree) => { const type = tree.Type; if (type && ['Require', 'If', 'Comment', 'Set'].includes(type)) { const typeKey = type as keyof typeof typed; const elt = [...(acc[typeKey] || []), tree]; return { ...acc, [type]: elt }; } return acc; }, { Set: [], If: [], Comment: [], Require: [], } ); if (Object.keys(typed).some((type) => !['Require', 'If', 'Comment', 'Set'].includes(type))) { throw new Error(`Invalid tree representation: Invalid node types.`); } if (typed.Set.filter(({ Value, Name }) => Value === '$' && Name === 'dollar').length !== typed.Set.length) { throw new Error(`Invalid tree representation: Invalid set node.`); } if (typed.If.length > 2) { throw new Error(`Invalid tree representation: too many if blocks`); } if (typed.Comment.length > 2) { throw new Error(`Invalid tree representation: too many comments blocks`); } const missingExtensions = typed.Require.reduce( (requiredExtensions, { List }) => { return requiredExtensions.filter((extension) => !List.includes(extension)); }, ['fileinto', 'imap4flags'] ); if (missingExtensions.length) { throw new Error('Invalid tree representation: requirements'); } const mainNode = findLatest(typed.If, ({ If: ifBlock, Then: thenBlock }) => thenBlock && ifBlock && ifBlock.Tests); if (!mainNode) { throw new Error('Invalid tree representation'); } const comment = findLatest(typed.Comment, async ({ Text }) => Text.match(/^\/\*\*\r\n(?:\s\*\s@(?:type|comparator)[^\r]+\r\n)+\s\*\/$/) ); return { comment, tree: mainNode }; }; /** * Parses the different ifs. */ export const parseIfConditions = (ifConditions: IfTest[], commentComparators?: string[]) => { const conditions = []; for (let index = 0; index < ifConditions.length; index++) { const { comparator: commentComparator, negate: commentNegate } = prepareComment(commentComparators?.[index]); const { element, negate } = prepareSingleCondition(ifConditions[index]); if (commentComparator && commentNegate !== negate) { throw new Error('Comment and computed negation incompatible'); } const type = prepareType(element); const { Match, Keys: values = [] } = element || {}; if (type !== 'attachments' && !Match) { throw new Error('Unsupported test'); } const comparator = type === 'attachments' ? 'Contains' : Match.Type; const params = buildSimpleParams(comparator, values, negate, commentComparator); const typedKey = Object.keys(LABEL_KEYS).find((key) => key === type) as LABEL_KEY_TYPE | undefined; if (!typedKey) { throw new Error('Unsupported test'); } conditions.push(buildSimpleCondition(typedKey, comparator, params)); } return conditions; }; /** * Parse the then nodes to extract the actions. */ export const parseThenNodes = ( thenNodes: { Type: string; Name: string; Flags: string[]; Message: string; Args: any[]; }[] ) => { const actions: FilterActions = { FileInto: [], Mark: { Read: false, Starred: false, }, }; thenNodes.forEach((node) => { const type = node.Type; if (type === 'Keep') { //Nothing to do } if (type === 'Discard') { actions.FileInto.push('trash'); } if (type === 'AddFlag') { actions.Mark = { Read: node.Flags.includes('\\Seen'), Starred: node.Flags.includes('\\Flagged') }; } if (type === 'FileInto') { const { Name } = node; const unescapedName = unescapeVariables(Name); if (typeof unescapedName !== 'string') { throw new Error(`Unsupported string ${Name}`); } actions.FileInto.push(unescapedName); } if (type === 'Vacation') { const { Message } = node; const unescapedMessage = unescapeVariables(Message); if (typeof unescapedMessage !== 'string') { throw new Error(`Unsupported string ${Message}`); } actions.Vacation = unescapedMessage; } }); return actions; };
8,923
0
petrpan-code/ProtonMail/WebClients/packages/sieve/src
petrpan-code/ProtonMail/WebClients/packages/sieve/src/fromSieve/fromSieveTree.ts
import invert from 'lodash/invert'; import { FilterCondition, FilterStatement, SimpleObject } from '@proton/components/containers/filters/interfaces'; import { LABEL_KEYS, OPERATOR_KEYS } from '../interface'; import { extractMainNode, parseComparatorComment, parseIfConditions, parseThenNodes } from './fromSieveTree.helpers'; /** * Transforms a tree into a simple representation. */ export const fromSieveTree = (tree: any): SimpleObject | undefined => { try { const validated = extractMainNode(tree); const validatedTree = Object.assign(validated.tree, {}); const comment = parseComparatorComment(validated.comment); const operator = invert(OPERATOR_KEYS)[validatedTree.If.Type]; if (comment && comment.type && operator !== comment.type) { throw new Error('Comment and computed type incompatible'); } const conditions = parseIfConditions( validatedTree.If.Tests, comment && comment.comparators ) as FilterCondition[]; return { Operator: { label: operator === 'all' ? LABEL_KEYS.all : LABEL_KEYS.any, value: operator === 'all' ? FilterStatement.ALL : FilterStatement.ANY, }, Conditions: [...conditions], Actions: parseThenNodes(validatedTree.Then), }; } catch (e) { return undefined; } };
8,924
0
petrpan-code/ProtonMail/WebClients/packages/sieve/src
petrpan-code/ProtonMail/WebClients/packages/sieve/src/fromSieve/fromTree.test.ts
import folder from '../../fixtures/folder'; import v1StartsEndsTest from '../../fixtures/v1StartsEndsTest'; import v2 from '../../fixtures/v2'; import v2Attachments from '../../fixtures/v2Attachments'; import v2Complex from '../../fixtures/v2Complex'; import v2EscapeVariables from '../../fixtures/v2EscapeVariables'; import v2From from '../../fixtures/v2From'; import v2InvalidStructure from '../../fixtures/v2InvalidStructure'; import v2SpamOnly from '../../fixtures/v2SpamOnly'; import v2StartsEndsTest from '../../fixtures/v2StartsEndsTest'; import v2Vacation from '../../fixtures/v2Vacation'; import v2VacationDouble from '../../fixtures/v2VacationDouble'; import v2VariableManyConditionsComplex from '../../fixtures/v2VariableManyConditionsComplex'; import { fromSieveTree } from './fromSieveTree'; describe('To Tree testing', () => { it('fromSieveTree - Should match simple test', () => { const { simple, tree } = folder; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2', () => { const { simple, tree } = v2; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v1 with tree', () => { const { simple, tree } = v1StartsEndsTest; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with tree', () => { const { simple, tree } = v2StartsEndsTest; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with attachments', () => { const { simple, tree } = v2Attachments; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with vacation', () => { const { simple, tree } = v2Vacation; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with from', () => { const { simple, tree } = v2From; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with complex', () => { const { simple, tree } = v2Complex; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with vacation double', () => { const { simple, tree } = v2VacationDouble; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with complex with many conditions and variables', () => { const { simple, tree } = v2VariableManyConditionsComplex; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with escape variables', () => { const { simple, tree } = v2EscapeVariables; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should error on invalid tree', () => { const { simple, tree } = v2InvalidStructure; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); it('fromSieveTree - Should match on v2 with spam only folder', () => { const { simple, tree } = v2SpamOnly; const generated = fromSieveTree(tree); expect(generated).toEqual(simple); }); });
8,925
0
petrpan-code/ProtonMail/WebClients/packages/sieve/src
petrpan-code/ProtonMail/WebClients/packages/sieve/src/toSieve/toSieveTree.helpers.ts
import { ConditionComparator, ConditionComparatorInvertedMap, ConditionType, FilterActions, FilterCondition, FilterRedirect, FilterStatement, SimpleObject, } from '@proton/components/containers/filters/interfaces'; import { TEST_NODES, V1, V2 } from '../constants'; import { escapeCharacters, escapeVariables, unique } from '../helpers'; import { BuildFileIntoType, EscapeVariableType, MATCH_KEYS, OPERATOR_KEYS, SIEVE_VERSION, SieveCondition, ValueTypePair, } from '../interface'; /** * Builds a vacation action. */ const buildVacationAction = (message: string | ValueTypePair, version: SIEVE_VERSION) => { return { Message: message, Args: { MIMEType: 'text/html' }, Type: version === V1 ? 'Vacation\\Vacation' : 'Vacation', }; }; /** * Builds a setFlag action, for read or starred. */ const buildSetFlagThen = (read: boolean, starred: boolean) => { const flags = []; if (read) { flags.push('\\Seen'); } if (starred) { flags.push('\\Flagged'); } return { Flags: flags, Type: 'AddFlag', }; }; /** * Builds a require node. */ const buildSieveRequire = (requires: string[], mandatory: string[] = ['fileinto', 'imap4flags']) => { return { List: unique([...mandatory, ...requires]), Type: 'Require', }; }; /** * Builds a file into action. */ const buildFileIntoAction = (name: string | ValueTypePair) => { return { Name: name, Type: 'FileInto', }; }; /** * Build the comment node from a comparator. */ const buildComparatorComment = (comparators: string[], type: FilterStatement) => { const commentArray = ['/**']; if (OPERATOR_KEYS[type] === OPERATOR_KEYS.all) { commentArray.push(' @type and'); } else if (OPERATOR_KEYS[type] === OPERATOR_KEYS.any) { commentArray.push(' @type or'); } commentArray.push(...comparators.map((comparator) => ' @comparator ' + comparator)); commentArray.push('/'); return { Text: commentArray.join('\r\n *'), Type: 'Comment', }; }; /** * Builds an address test. */ const buildAddressTest = (headers: string[], keys: EscapeVariableType[], match: string) => { return { Headers: headers, Keys: keys, Match: { Type: match, }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Address', AddressPart: { Type: 'All', }, }; }; /** * Build match and values from comparator and condition. */ const buildMatchAndValues = (comparator: ConditionComparator, condition: { Values: string[] }) => { // starts and ends does not exists in sieve. Replacing it to match. const values = condition.Values.map((value) => { const escaped = escapeCharacters(value); if (comparator === ConditionComparator.STARTS) { return `${escaped}*`; } if (comparator === ConditionComparator.ENDS) { return `*${escaped}`; } return value; }); let val = MATCH_KEYS.default; if (comparator === ConditionComparator.STARTS || comparator === ConditionComparator.ENDS) { val = MATCH_KEYS.matches; } else { val = MATCH_KEYS[comparator]; } return { values, match: val ?? MATCH_KEYS.default ?? 'Defaults', }; }; /** * Builds a simple test. */ const buildSimpleHeaderTest = (headers: string[], keys: EscapeVariableType[], match: string) => { return { Headers: headers, Keys: keys, Match: { Type: match, // The value can be removed if needed, it's backend compatible. }, Format: { Type: 'UnicodeCaseMap', }, Type: 'Header', }; }; /** * Prepare comparator. */ const prepareComparator = (comparator: ConditionComparator) => { const mappedCondition = ConditionComparatorInvertedMap.get(comparator); if (mappedCondition) { return { negate: true, comparator: mappedCondition, }; } return { negate: false, comparator, }; }; /** * Negates a given test. */ const buildTestNegate = <T>(test: T) => { return { Test: test, Type: 'Not', }; }; /** * Prepare the comment. */ const prepareComment = (comparator: string, type: string, negate: boolean) => { const negation = negate ? '!' : ''; if (type === 'attachments') { return `${negation}default`; } return `${negation}${comparator}`; }; /** * Builds mark blocks. */ export const buildMark = ({ Read: read, Starred: starred }: { Read: boolean; Starred: boolean }) => { if (!read && !starred) { return { blocks: [] }; } return { blocks: [buildSetFlagThen(read, starred), { Type: 'Keep' }] }; }; export const buildRedirects = (redirects?: FilterRedirect[]) => { if (!redirects) { return { blocks: [] }; } return { blocks: redirects.map((redirect) => ({ Address: redirect.Address, Type: 'Redirect', })), }; }; /** * Build vacation blocks. */ export const buildVacation = (vacation: string | null | undefined, version: SIEVE_VERSION) => { if (!vacation) { return { blocks: [] }; } const message = escapeVariables(vacation); return { blocks: [buildVacationAction(message, version)], dollarNeeded: typeof message === 'object', }; }; /** * Builds the tree. */ export const buildBasicTree = ( parameters: { requires: string[]; comparators: string[]; type: FilterStatement; tests: any; thens: any[]; dollarNeeded?: boolean; }, version: SIEVE_VERSION ) => { const treeStructure = []; if (version === V2) { treeStructure.push( buildSieveRequire( ['include', 'environment', 'variables', 'relational', 'comparator-i;ascii-numeric', 'spamtest'], [] ) ); } treeStructure.push(buildSieveRequire(parameters.requires)); if (version === V2) { treeStructure.push(...TEST_NODES.spamtest); if (parameters.dollarNeeded) { treeStructure.push(...TEST_NODES.dollar); } treeStructure.push(buildComparatorComment(parameters.comparators, parameters.type)); } treeStructure.push({ If: { Tests: parameters.tests, Type: OPERATOR_KEYS[parameters.type], }, Then: parameters.thens, Type: 'If', }); return treeStructure; }; /** * Validates the received simple representation. */ export const validateSimpleRepresentation = (simple: SimpleObject) => { /* beware the not */ if (!(simple.Operator instanceof Object && Array.isArray(simple.Conditions) && simple.Actions instanceof Object)) { throw new Error('Invalid simple data types'); } if (!simple.Operator.label || !simple.Operator.value) { throw new Error('Invalid simple operator'); } simple.Conditions.forEach((condition) => { if (!condition.Values) { throw new Error('Invalid simple conditions'); } const { comparator } = prepareComparator(condition.Comparator.value); if (!MATCH_KEYS[comparator] || MATCH_KEYS[comparator] === MATCH_KEYS.default) { throw new Error('Unrecognized simple condition: ' + condition.Comparator.value); } }); if ( !simple.Actions.FileInto || !Array.isArray(simple.Actions.FileInto) || !simple.Actions.Mark || simple.Actions.Mark.Read === undefined || simple.Actions.Mark.Starred === undefined ) { throw new Error('Invalid simple actions'); } return simple; }; /** * Builds fileInto blocks. */ export const buildFileInto = (actions: FilterActions['FileInto']) => { const initialObject: { dollarNeeded: boolean; blocks: BuildFileIntoType[]; } = { dollarNeeded: false, blocks: [], }; actions.forEach((action) => { const formattedAction = escapeVariables(action); if (typeof formattedAction === 'object') { initialObject.dollarNeeded = true; } initialObject.blocks.push(buildFileIntoAction(formattedAction)); }); return initialObject; }; //A bit hard to migrate /** * Builds condition block. */ export const buildCondition = (conditions: FilterCondition[]): SieveCondition => { const initialObject: SieveCondition = { tests: [], comparators: [], dollarNeeded: false, }; conditions.forEach((condition) => { const { comparator, negate } = prepareComparator(condition.Comparator.value); const { match, values: matchValues } = buildMatchAndValues(comparator, condition); const values = matchValues.map(escapeVariables); const conditionMap = { sender: () => buildAddressTest(['From'], values, match), recipient: () => buildAddressTest(['To', 'Cc', 'Bcc'], values, match), subject: () => buildSimpleHeaderTest(['Subject'], values, match), attachments: () => TEST_NODES.attachment[0], }; const conditionMapping = new Map([ [ConditionType.SENDER, conditionMap.sender], [ConditionType.RECIPIENT, conditionMap.recipient], [ConditionType.SUBJECT, conditionMap.subject], [ConditionType.ATTACHMENTS, conditionMap.attachments], ]); const mappedCondition = conditionMapping.get(condition.Type.value); if (mappedCondition) { const test = mappedCondition(); initialObject.tests.push(negate ? buildTestNegate(test) : test); } initialObject.dollarNeeded = values.some((value) => typeof value !== 'string'); initialObject.comparators.push(prepareComment(comparator, condition.Type.value, negate)); }); return initialObject; };
8,926
0
petrpan-code/ProtonMail/WebClients/packages/sieve/src
petrpan-code/ProtonMail/WebClients/packages/sieve/src/toSieve/toSieveTree.ts
import { SimpleObject } from '@proton/components/containers/filters/interfaces'; import { V1 } from '../constants'; import { SIEVE_VERSION } from '../interface'; import { buildBasicTree, buildCondition, buildFileInto, buildMark, buildRedirects, buildVacation, validateSimpleRepresentation, } from './toSieveTree.helpers'; /** * Transforms a simple representation to a filter tree. */ export const toSieveTree = (simple: SimpleObject, version: SIEVE_VERSION = V1) => { try { validateSimpleRepresentation(simple); const condition = buildCondition(simple.Conditions); const fileInto = buildFileInto(simple.Actions.FileInto); const mark = buildMark(simple.Actions.Mark); const vacation = buildVacation(simple.Actions.Vacation, version); const redirects = buildRedirects(simple.Actions.Redirects); return buildBasicTree( { type: simple.Operator.value, requires: vacation.blocks.length ? ['vacation'] : [], tests: condition.tests, comparators: condition.comparators, dollarNeeded: condition.dollarNeeded || fileInto.dollarNeeded || vacation.dollarNeeded, thens: [...fileInto.blocks, ...mark.blocks, ...vacation.blocks, ...redirects.blocks], }, version ); } catch (exception) { throw exception; } };
8,927
0
petrpan-code/ProtonMail/WebClients/packages/sieve/src
petrpan-code/ProtonMail/WebClients/packages/sieve/src/toSieve/toTree.test.ts
import archive from '../../fixtures/archive'; import folder from '../../fixtures/folder'; import v1StartsEndsTest from '../../fixtures/v1StartsEndsTest'; import v2 from '../../fixtures/v2'; import v2Attachments from '../../fixtures/v2Attachments'; import v2Complex from '../../fixtures/v2Complex'; import v2EscapeVariables from '../../fixtures/v2EscapeVariables'; import v2From from '../../fixtures/v2From'; import v2StartsEndsTest from '../../fixtures/v2StartsEndsTest'; import v2Vacation from '../../fixtures/v2Vacation'; import { toSieveTree } from './toSieveTree'; describe('To Tree testing', () => { it('toSieveTree - Should match simple test', () => { const { simple, tree } = archive; const generated = toSieveTree(simple, 1); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on folders mapping', () => { const { simple, tree } = folder; const generated = toSieveTree(simple, 1); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2', () => { const { simple, tree } = v2; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v1 with tree', () => { const { simple, tree } = v1StartsEndsTest; const generated = toSieveTree(simple, 1); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2 with tree', () => { const { simple, tree } = v2StartsEndsTest; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2 with attachments', () => { const { simple, tree } = v2Attachments; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2 with vacation', () => { const { simple, tree } = v2Vacation; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2 with from', () => { const { simple, tree } = v2From; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2 with complex', () => { const { simple, tree } = v2Complex; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); it('toSieveTree - Should match on v2 with escape variables', () => { const { simple, tree } = v2EscapeVariables; const generated = toSieveTree(simple, 2); expect(generated).toEqual(tree); }); });
8,928
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/.eslintignore
test/**/*data.js
8,929
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/.eslintrc.js
module.exports = { extends: ['@proton/eslint-config-proton'], parser: '@typescript-eslint/parser', env: { mocha: true, }, parserOptions: { tsconfigRootDir: __dirname, project: './tsconfig.json', }, ignorePatterns: ['.eslintrc.js'], };
8,930
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/.mocharc.json
{ "extension": ["ts"], "require": "test/babel-register.js" }
8,931
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/.prettierignore
test
8,932
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/LICENSE
MIT License Copyright (c) 2013-2019 Proton Technologies A.G. (Switzerland) Email: [email protected] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8,933
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/babel.config.js
module.exports = (api) => { // Cache configuration is a required option according to mocha api.cache(false); return { targets: 'node 16', presets: ['@babel/preset-env', '@babel/preset-typescript'], }; };
8,934
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/package.json
{ "name": "@proton/srp", "description": "Proton SRP and auth library", "license": "MIT", "author": "Proton", "main": "lib/index.ts", "module": "lib/index.ts", "scripts": { "check-types": "tsc", "lint": "eslint lib --ext .ts --quiet --cache", "pretty": "prettier --write $(find lib -type f -name '*.ts')", "test": "mocha '**/*.spec.ts'" }, "dependencies": { "@proton/crypto": "workspace:packages/crypto", "asmcrypto.js": "^2.3.2", "bcryptjs": "^2.4.3" }, "devDependencies": { "@babel/preset-env": "^7.23.3", "@babel/preset-typescript": "^7.23.3", "@babel/register": "^7.22.15", "@proton/eslint-config-proton": "workspace:packages/eslint-config-proton", "eslint": "^8.54.0", "mocha": "^10.2.0", "prettier": "^3.1.0", "typescript": "^5.3.2" } }
8,935
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/srp/tsconfig.json
{ "extends": "../../tsconfig.base.json", "compilerOptions": { "types": ["webpack-env"] } }
8,936
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/constants.ts
export const VERIFICATION_STATUS = { NOT_SIGNED: 0, SIGNED_AND_VALID: 1, SIGNED_AND_INVALID: 2, }; export const SRP_LEN = 2048; export const AUTH_FALLBACK_VERSION = 2; export const AUTH_VERSION = 4; export const MAX_VALUE_ITERATIONS = 1000; export const SRP_MODULUS_KEY = `-----BEGIN PGP PUBLIC KEY BLOCK----- xjMEXAHLgxYJKwYBBAHaRw8BAQdAFurWXXwjTemqjD7CXjXVyKf0of7n9Ctm L8v9enkzggHNEnByb3RvbkBzcnAubW9kdWx1c8J3BBAWCgApBQJcAcuDBgsJ BwgDAgkQNQWFxOlRjyYEFQgKAgMWAgECGQECGwMCHgEAAPGRAP9sauJsW12U MnTQUZpsbJb53d0Wv55mZIIiJL2XulpWPQD/V6NglBd96lZKBmInSXX/kXat Sv+y0io+LR8i2+jV+AbOOARcAcuDEgorBgEEAZdVAQUBAQdAeJHUz1c9+KfE kSIgcBRE3WuXC4oj5a2/U3oASExGDW4DAQgHwmEEGBYIABMFAlwBy4MJEDUF hcTpUY8mAhsMAAD/XQD8DxNI6E78meodQI+wLsrKLeHn32iLvUqJbVDhfWSU WO4BAMcm1u02t4VKw++ttECPt+HUgPUq5pqQWe5Q2cW4TMsE =Y4Mw -----END PGP PUBLIC KEY BLOCK-----`; // Version 2 of bcrypt with 2**10 rounds. // https://en.wikipedia.org/wiki/Bcrypt#Description export const BCRYPT_PREFIX = '$2y$10$';
8,937
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/getAuthVersion.spec.ts
import assert from 'assert'; import { describe, it } from 'mocha'; import '../test/setup'; import getAuthVersionWithFallback from './getAuthVersionWithFallback'; describe('auth version fallback', () => { for (let i = 1; i <= 4; ++i) { it(`should get specified auth version ${i}`, () => { const result = getAuthVersionWithFallback({ Version: 4 }, ''); assert.deepStrictEqual(result, { version: 4, done: true, }); }); } it('should get specified auth version if a version has been attempted', () => { const result = getAuthVersionWithFallback({ Version: 4 }, '', 2); assert.deepStrictEqual(result, { version: 4, done: true, }); }); it('should fall back to auth version 2 when it is unknown', () => { const result = getAuthVersionWithFallback({ Version: 0 }, ''); assert.deepStrictEqual(result, { version: 2, done: false, }); }); it('should fall back to auth version 1 when it has attempted 2 and the username contains underscore', () => { const result = getAuthVersionWithFallback({ Version: 0 }, 'test_100', 2); assert.deepStrictEqual(result, { version: 1, done: false, }); }); it('should fall back to auth version 0 when it has attempted 2', () => { const result = getAuthVersionWithFallback({ Version: 0 }, '', 2); assert.deepStrictEqual(result, { version: 0, done: true, }); }); it('should throw when all attempts have been made', () => { assert.throws( () => { getAuthVersionWithFallback({ Version: 0 }, '', 0); }, { name: 'Error', message: 'Can not provide any other auth version', } ); }); });
8,938
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/getAuthVersionWithFallback.ts
import { AUTH_FALLBACK_VERSION } from './constants'; import { AuthVersion } from './interface'; import { cleanUsername } from './utils/username'; /** * Get the next auth version to use and if it's the last attempt. */ export default ( { Version }: { Version: AuthVersion }, username: string, lastAuthVersion?: AuthVersion ): { version: AuthVersion; done: boolean } => { if (Version !== 0) { return { version: Version, done: true, }; } if (typeof lastAuthVersion === 'undefined') { return { version: AUTH_FALLBACK_VERSION, done: false, }; } if (lastAuthVersion === 2 && cleanUsername(username) !== username.toLowerCase()) { return { version: 1, done: false, }; } if (lastAuthVersion === 1 || lastAuthVersion === 2) { return { version: 0, done: true, }; } throw new Error('Can not provide any other auth version'); };
8,939
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/index.ts
export { AUTH_VERSION } from './constants'; export { getSrp, getRandomSrpVerifier } from './srp'; export { computeKeyPassword, generateKeySalt } from './keys'; export { default as getAuthVersionWithFallback } from './getAuthVersionWithFallback';
8,940
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/interface.ts
export type AuthVersion = 0 | 1 | 2 | 3 | 4; export interface AuthInfo { Version: number; Modulus: string; ServerEphemeral: string; Username?: string; // Only present if auth version < 3 Salt: string; } export interface AuthCredentials { username?: string; password: string; }
8,941
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/keys.spec.ts
import assert from 'assert'; import { describe, it } from 'mocha'; import '../test/setup'; import { computeKeyPassword, generateKeySalt } from './keys'; describe('passwords', () => { it('should generate key salt', () => { const salt = generateKeySalt(); assert.strictEqual(salt.length, 24); }); it('should compute key password', async () => { const keyp = await computeKeyPassword('hello', 'ajHO5Xshwb9h9DcAExIkbg=='); assert.strictEqual(keyp, 'vQp4euSvXpBygefcOfyhCbWmFgFmgeW'); }); it('should throw without a salt', async () => { // @ts-expect-error const promise = computeKeyPassword('hello'); await assert.rejects(promise, { name: 'Error', message: 'Password and salt required.', }); }); it('should throw without a password', async () => { // @ts-expect-error const promise = computeKeyPassword(undefined, 'ajHO5Xshwb9h9DcAExIkbg=='); await assert.rejects(promise, { name: 'Error', message: 'Password and salt required.', }); }); });
8,942
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/keys.ts
import bcrypt from 'bcryptjs'; import { arrayToBinaryString, binaryStringToArray, decodeBase64, encodeBase64 } from '@proton/crypto/lib/utils'; import { BCRYPT_PREFIX } from './constants'; /** * Compute the key password. */ export const computeKeyPassword = async (password: string, salt: string) => { if (!password || !salt || salt.length !== 24 || password.length < 1) { throw new Error('Password and salt required.'); } const saltBinary = binaryStringToArray(decodeBase64(salt)); const hash: string = await bcrypt.hash(password, BCRYPT_PREFIX + bcrypt.encodeBase64(saltBinary, 16)); // Remove bcrypt prefix and salt (first 29 characters) return hash.slice(29); }; /** * Generate salt for a key. */ export const generateKeySalt = () => encodeBase64(arrayToBinaryString(crypto.getRandomValues(new Uint8Array(16))));
8,943
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/passwords.spec.ts
import assert from 'assert'; import { describe, it } from 'mocha'; import { binaryStringToArray } from '@proton/crypto/lib/utils'; import { hashedResult0, hashedResult2, hashedResult4, watResult } from '../test/passwords.data'; import '../test/setup'; import { expandHash, hashPassword } from './passwords'; describe('passwords', () => { it('should expand a hash', async () => { const result = await expandHash(binaryStringToArray('wat')); assert.deepStrictEqual(result, watResult); }); it('should hash password version 4', async () => { const hashed = await hashPassword({ password: 'hello', username: 'user1', salt: '»¢põó<±Ò‡&', modulus: new Uint8Array(256), version: 4, }); assert.deepStrictEqual(hashed, hashedResult4); }); it('should hash password version 3', async () => { const hashed = await hashPassword({ password: 'hello', username: 'user1', salt: '»¢põó<±Ò‡&', modulus: new Uint8Array(256), version: 3, }); assert.deepStrictEqual(hashed, hashedResult4); }); it('should hash password version 2', async () => { const hashed = await hashPassword({ password: 'hello', username: 'user1', salt: '»¢põó<±Ò‡&', modulus: new Uint8Array(256), version: 2, }); assert.deepStrictEqual(hashed, hashedResult2); }); it('should hash password version 1', async () => { const hashed = await hashPassword({ password: 'hello', username: 'user1', salt: '»¢põó<±Ò‡&', modulus: new Uint8Array(256), version: 1, }); assert.deepStrictEqual(hashed, hashedResult2); }); it('should hash password version 0', async () => { const hashed = await hashPassword({ password: 'hello', username: 'user1', salt: '»¢põó<±Ò‡&', modulus: new Uint8Array(256), version: 0, }); assert.deepStrictEqual(hashed, hashedResult0); }); });
8,944
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/passwords.ts
import bcrypt from 'bcryptjs'; import { CryptoProxy } from '@proton/crypto'; import { arrayToBinaryString, arrayToHexString, binaryStringToArray, encodeBase64, encodeUtf8, } from '@proton/crypto/lib/utils'; import mergeUint8Arrays from '@proton/utils/mergeUint8Arrays'; import { BCRYPT_PREFIX } from './constants'; import { cleanUsername } from './utils/username'; /** * Expand a hash */ export const expandHash = async (input: Uint8Array) => { const promises = []; const arr = mergeUint8Arrays([input, new Uint8Array([0])]); for (let i = 1; i <= 4; i++) { promises.push(CryptoProxy.computeHash({ algorithm: 'SHA512', data: arr })); arr[arr.length - 1] = i; } return mergeUint8Arrays(await Promise.all(promises)); }; /** * Format a hash */ const formatHash = async (password: string, salt: string, modulus: Uint8Array) => { const unexpandedHash = await bcrypt.hash(password, BCRYPT_PREFIX + salt); return expandHash(mergeUint8Arrays([binaryStringToArray(unexpandedHash), modulus])); }; /** * Hash password in version 3. */ const hashPassword3 = (password: string, salt: string, modulus: Uint8Array) => { const saltBinary = binaryStringToArray(`${salt}proton`); return formatHash(password, bcrypt.encodeBase64(saltBinary, 16), modulus); }; /** * Hash password in version 1. */ const hashPassword1 = async (password: string, username: string, modulus: Uint8Array) => { const value = binaryStringToArray(encodeUtf8(username.toLowerCase())); const salt = arrayToHexString(await CryptoProxy.computeHash({ algorithm: 'unsafeMD5', data: value })); return formatHash(password, salt, modulus); }; /** * Hash password in version 0. */ const hashPassword0 = async (password: string, username: string, modulus: Uint8Array) => { const value = await CryptoProxy.computeHash({ algorithm: 'SHA512', data: binaryStringToArray(username.toLowerCase() + encodeUtf8(password)), }); const prehashed = encodeBase64(arrayToBinaryString(value)); return hashPassword1(prehashed, username, modulus); }; /** * Hash a password. */ export const hashPassword = ({ password, salt, username, modulus, version, }: { password: string; salt?: string; username?: string; modulus: Uint8Array; version: number; }) => { if (version === 4 || version === 3) { if (!salt) { throw new Error('Missing salt'); } return hashPassword3(password, salt, modulus); } if (version === 2) { return hashPassword1(password, cleanUsername(username), modulus); } if (version === 1) { if (!username) { throw new Error('Missing username'); } return hashPassword1(password, username, modulus); } if (version === 0) { if (!username) { throw new Error('Missing username'); } return hashPassword0(password, username, modulus); } throw new Error('Unsupported auth version'); };
8,945
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/srp.spec.ts
import assert from 'assert'; import { describe, it } from 'mocha'; import { disableRandomMock, initRandomMock } from '@proton/testing/lib/mockRandomValues'; import { getRandomSrpVerifier, getSrp } from '../lib/srp'; import '../test/setup'; import { AUTH_RESPONSE, FAKE_RANDOM, SERVER_MODULUS, SERVER_MODULUS_FAKE } from '../test/srp.data'; const mockRandomValues = (buf: Uint8Array) => new Uint8Array(FAKE_RANDOM.slice(0, buf.length)); describe('srp', () => { before(() => initRandomMock(mockRandomValues)); after(() => disableRandomMock()); it('should generate verifier', async () => { const result = await getRandomSrpVerifier({ Modulus: SERVER_MODULUS }, { password: '123' }); assert.deepStrictEqual(result, { version: 4, salt: 'SzHkg+YYA/eN1A==', verifier: 'j2o8z9G+Xm5t07Y6D7rauq3bNi6v0ZqnM1nWuZHS8PgtQOl4Xgh8LjuzulhX1izaOqeIoW221Z/LDVkrUZzxAXwFdi5LfxMN+RHPJCg0Uk5OcigQHsO1xTMuk3hvoIXO7yIXXs2oCqpBwKNfuhMNjcwVlgjyh5ZC4FzhSV2lwlP7KE1me/USAOfq4FbW7KtDtvxX8fk6hezWIz9X8/bcAHwQkHobqOVTCE81Lg+WL7s4sMed72YHwx5p6S/YGm558zrZmeETv6PuS4MRkQ8vPRrIvmzPEQDUiOXCaqfLkGvBFeCbBjNtBM8AlbWcW8XE+gcb/GwWH8cHinzd4ddh4A==', }); }); it('should reject verify if it is unable to verify identity', async () => { const promise = getRandomSrpVerifier({ Modulus: SERVER_MODULUS_FAKE }, { password: 'hello' }); await assert.rejects(promise, { name: 'Error', message: 'Unable to verify server identity', }); }); it('should generate auth parameters', async () => { const result = await getSrp(AUTH_RESPONSE, { password: '123' }); assert.deepStrictEqual(result, { clientEphemeral: 'hlszWWqvmsVvSCYdu0Zvmn/Ow9dSkp91vfhd20yYvd8XTcNixlOloz7lbD+bFR/0mAUYrYuOyYwPDoARAqRiAijQTWSkfOsByeKvmHZN7scxsmMQSp/8BdkIpEcJzUBg762o4L2tgrOFdydtagYRH0++qaJI6iMWlGLVI1atJvEcQ1h9xRylYT8rtL+gqKcYOQbqYgl3mXlHE/9uT8qEBFIP8LthQfIntst1p/dUDYyN4GH5Pb3ajL0qehzrQrDkF5xMmggDXgqflwMtcJTSIB0WcyiG+ls8KhUy8NVwyNhJrbikkzAnhAk4Mq3HmTwtj82BNQzSnDDg1W1lvU1JrA==', clientProof: 'iuCo00BHgTVw4808ZU4EIESZhRR4BV8CQoNu8sZJ270hdz2ufRge7/Xpr8hdt08qoNCbDXT0M333d6CeyymLeMcWo7Lr13nGHzmoB5iRSjIjcmROHSD5YkjGAsCejnvoS2Pr0TzGKa32lBwYaxLEuT2162q98N6HpqpYNo2Iuvsd11gx1g9YJiLR7VESiD93NutcZIFta5M0vUQIBvzPI88Ev77d2CoEPyNFZctqcKxeZYsACN+JLq2sw+ME9sIPoSpujn6v6fK9NDSq/tldQmZ/upjFrXMhoLpxwK/daepvHHzfFVv8BbRrXJ2YH9jGPtJPVTUxUqnA2Lu1jBk+nw==', expectedServerProof: 'ZBdnSNfaP4mgqNoh//ZJgqbsuxBNqSDL+tEPSH7b1wYlamdXNzz1pnp7G1QRBmvSgksdrSQaTZR575hIZ9UbWZNB7qP2opgHKeQATtE69sIgC4ehBF4HZzX2hr/4WC9Q5U0XOdM+1/KWEtVCNjwkmdXJ/3jjRbPH+d2K1yNGAo0iAjTBkIrY5l3FwgDLREKxVZyMyp6CTqzY4XMNY29r/URs+WH+45j4OFOOzhtxE4BoHXTtIPAr6gMTaZ/GsXtDvdBWHZQAYL/lIoQk+BdJhm2riy+OXRwEu0CzMo7JhbbZUbmLDf8gqQFteQnlGdPJD+SEiQC8ebJv4RbbUGnD1g==', // eslint-disable-next-line max-len sharedSession: new Uint8Array([ 232, 138, 48, 101, 47, 10, 241, 220, 72, 46, 138, 53, 109, 224, 110, 199, 82, 78, 121, 186, 176, 217, 74, 235, 109, 115, 239, 55, 231, 173, 71, 100, 48, 42, 27, 154, 125, 254, 69, 244, 17, 161, 184, 143, 191, 248, 135, 102, 4, 144, 200, 240, 170, 189, 139, 106, 15, 106, 80, 55, 195, 98, 77, 203, 0, 123, 24, 88, 130, 151, 83, 26, 68, 25, 11, 243, 179, 9, 183, 247, 210, 38, 153, 156, 163, 201, 86, 94, 227, 103, 114, 102, 173, 36, 178, 34, 1, 191, 98, 29, 230, 191, 32, 132, 72, 182, 7, 40, 14, 103, 80, 232, 98, 43, 78, 147, 81, 69, 162, 157, 94, 119, 7, 132, 11, 96, 241, 14, 175, 64, 43, 144, 21, 103, 246, 112, 226, 239, 94, 25, 107, 47, 208, 98, 58, 67, 49, 242, 68, 156, 46, 16, 103, 89, 33, 73, 211, 139, 190, 198, 157, 57, 226, 186, 159, 227, 71, 70, 208, 230, 164, 179, 250, 62, 221, 163, 137, 114, 117, 166, 93, 236, 131, 247, 45, 125, 155, 16, 62, 235, 54, 147, 54, 195, 212, 134, 107, 60, 143, 66, 218, 200, 29, 209, 85, 238, 151, 75, 141, 29, 8, 70, 73, 158, 75, 174, 127, 3, 52, 99, 3, 40, 5, 159, 91, 208, 54, 123, 75, 89, 158, 187, 156, 179, 158, 100, 116, 101, 240, 81, 87, 249, 206, 198, 1, 243, 95, 159, 22, 42, 162, 131, 231, 45, 215, 68, ]), }); }); it('should reject auth if it is unable to verify server', async () => { const promise = getSrp( { Modulus: SERVER_MODULUS_FAKE, ServerEphemeral: '', Salt: '', Version: 4 }, { password: '123' } ); await assert.rejects(promise, { name: 'Error', message: 'Unable to verify server identity', }); }); });
8,946
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/lib/srp.ts
import { BigNumber, Modulus } from 'asmcrypto.js/dist_es8/bignum/bignum'; import { arrayToBinaryString, binaryStringToArray, decodeBase64, encodeBase64 } from '@proton/crypto/lib/utils'; import mergeUint8Arrays from '@proton/utils/mergeUint8Arrays'; import { AUTH_VERSION, MAX_VALUE_ITERATIONS, SRP_LEN } from './constants'; import { AuthCredentials, AuthInfo } from './interface'; import { expandHash, hashPassword } from './passwords'; import { fromBN, toBN } from './utils/bigNumber'; import { verifyAndGetModulus } from './utils/modulus'; import { checkUsername } from './utils/username'; const ZERO_BN = BigNumber.fromNumber(0); const ONE_BN = BigNumber.fromNumber(1); const TWO_BN = BigNumber.fromNumber(2); export const srpHasher = (arr: Uint8Array) => expandHash(arr); /** * Generate a random client secret. */ const generateClientSecret = (len: number) => toBN(crypto.getRandomValues(new Uint8Array(len / 8))); /** * Get the client secret. Loops until it finds a safe value. */ const getClientSecret = (len: number) => { const comparator = BigNumber.fromNumber(len * 2); for (let i = 0; i < MAX_VALUE_ITERATIONS; ++i) { const clientSecret = generateClientSecret(len); if (clientSecret.compare(comparator) <= 0) { continue; } return clientSecret; } throw new Error('Could not find safe client value'); }; interface GenerateParametersArgs { len: number; generator: BigNumber; modulus: Modulus; serverEphemeralArray: Uint8Array; } const generateParameters = async ({ len, generator, modulus, serverEphemeralArray }: GenerateParametersArgs) => { const clientSecret = getClientSecret(len); const clientEphemeral = modulus.power(generator, clientSecret); const clientEphemeralArray = fromBN(len, clientEphemeral); const clientServerHash = await srpHasher(mergeUint8Arrays([clientEphemeralArray, serverEphemeralArray])); const scramblingParam = toBN(clientServerHash); return { clientSecret, clientEphemeral, scramblingParam, }; }; /** * Get parameters. Loops until it finds safe values. */ const getParameters = async ({ len, generator, modulus, serverEphemeralArray }: GenerateParametersArgs) => { for (let i = 0; i < MAX_VALUE_ITERATIONS; ++i) { const { clientSecret, clientEphemeral, scramblingParam } = await generateParameters({ len, generator, modulus, serverEphemeralArray, }); if (scramblingParam.compare(ZERO_BN) === 0) { continue; } return { clientSecret, clientEphemeral, scramblingParam, }; } throw new Error('Could not find safe parameters'); }; interface GenerateProofsArgs { len: number; modulusArray: Uint8Array; hashedPasswordArray: Uint8Array; serverEphemeralArray: Uint8Array; } export const generateProofs = async ({ len, modulusArray, hashedPasswordArray, serverEphemeralArray, }: GenerateProofsArgs) => { const modulusBn = toBN(modulusArray); if (modulusBn.bitLength !== len) { throw new Error('SRP modulus has incorrect size'); } const generator = TWO_BN; const hashedArray = await srpHasher(mergeUint8Arrays([fromBN(len, generator), modulusArray])); const multiplierBn = toBN(hashedArray); const serverEphemeral = toBN(serverEphemeralArray); const hashedPassword = toBN(hashedPasswordArray); const modulus = new Modulus(modulusBn); const modulusMinusOne = modulus.subtract(ONE_BN); const multiplierReduced = modulus.reduce(multiplierBn); if (multiplierReduced.compare(ONE_BN) <= 0 || multiplierReduced.compare(modulusMinusOne) >= 0) { throw new Error('SRP multiplier is out of bounds'); } if (generator.compare(ONE_BN) <= 0 || generator.compare(modulusMinusOne) >= 0) { throw new Error('SRP generator is out of bounds'); } if (serverEphemeral.compare(ONE_BN) <= 0 || serverEphemeral.compare(modulusMinusOne) >= 0) { throw new Error('SRP server ephemeral is out of bounds'); } const { clientSecret, clientEphemeral, scramblingParam } = await getParameters({ len, generator, modulus, serverEphemeralArray, }); let subtracted = serverEphemeral.subtract( modulus.reduce(modulus.power(generator, hashedPassword).multiply(multiplierReduced)) ); if (subtracted.compare(ZERO_BN) < 0) { subtracted = subtracted.add(modulus); } const exponent = scramblingParam.multiply(hashedPassword).add(clientSecret).divide(modulusMinusOne).remainder; const sharedSession = modulus.power(subtracted, exponent); const clientEphemeralArray = fromBN(len, clientEphemeral); const sharedSessionArray = fromBN(len, sharedSession); const clientProof = await srpHasher( mergeUint8Arrays([clientEphemeralArray, serverEphemeralArray, sharedSessionArray]) ); const expectedServerProof = await srpHasher( mergeUint8Arrays([clientEphemeralArray, clientProof, sharedSessionArray]) ); return { clientEphemeral: clientEphemeralArray, clientProof, expectedServerProof, sharedSession: sharedSessionArray, }; }; export const getSrp = async ( { Version, Modulus: serverModulus, ServerEphemeral, Username, Salt }: AuthInfo, { username, password }: AuthCredentials, authVersion = Version ) => { if (!checkUsername(authVersion, username, Username)) { const error: any = new Error( 'Please login with just your ProtonMail username (without @protonmail.com or @protonmail.ch).' ); error.trace = false; throw error; } const modulusArray = await verifyAndGetModulus(serverModulus); const serverEphemeralArray = binaryStringToArray(decodeBase64(ServerEphemeral)); const hashedPasswordArray = await hashPassword({ version: authVersion, password, salt: authVersion < 3 ? undefined : decodeBase64(Salt), username: authVersion < 3 ? Username : undefined, modulus: modulusArray, }); const { clientEphemeral, clientProof, expectedServerProof, sharedSession } = await generateProofs({ len: SRP_LEN, modulusArray, hashedPasswordArray, serverEphemeralArray, }); return { clientEphemeral: encodeBase64(arrayToBinaryString(clientEphemeral)), clientProof: encodeBase64(arrayToBinaryString(clientProof)), expectedServerProof: encodeBase64(arrayToBinaryString(expectedServerProof)), sharedSession, }; }; const generateVerifier = (len: number, hashedPassword: Uint8Array, modulus: Uint8Array) => { const generator = TWO_BN; const modulusBn = new Modulus(toBN(modulus)); const hashedPasswordBn = toBN(hashedPassword); const verifier = modulusBn.power(generator, hashedPasswordBn); return fromBN(len, verifier); }; export const getRandomSrpVerifier = async ( { Modulus: serverModulus }: { Modulus: string }, { username, password }: AuthCredentials, version = AUTH_VERSION ) => { const modulus = await verifyAndGetModulus(serverModulus); const salt = arrayToBinaryString(crypto.getRandomValues(new Uint8Array(10))); const hashedPassword = await hashPassword({ version, username, password, salt, modulus, }); const verifier = generateVerifier(SRP_LEN, hashedPassword, modulus); return { version, salt: encodeBase64(salt), verifier: encodeBase64(arrayToBinaryString(verifier)), }; };
8,947
0
petrpan-code/ProtonMail/WebClients/packages/srp/lib
petrpan-code/ProtonMail/WebClients/packages/srp/lib/utils/bigNumber.ts
import { BigNumber } from 'asmcrypto.js/dist_es8/bignum/bignum'; /** * From Uint8Array to big number */ export const toBN = (arr: Uint8Array) => { const reversed = new Uint8Array(arr.length); for (let i = 0; i < arr.length; i++) { reversed[arr.length - i - 1] = arr[i]; } return BigNumber.fromArrayBuffer(reversed); }; /** * From big number to Uint8Array */ export const fromBN = (len: number, bn: BigNumber) => { const arr = bn.toBytes(); const reversed = new Uint8Array(len / 8); for (let i = 0; i < arr.length; i++) { reversed[arr.length - i - 1] = arr[i]; } return reversed; };
8,948
0
petrpan-code/ProtonMail/WebClients/packages/srp/lib
petrpan-code/ProtonMail/WebClients/packages/srp/lib/utils/modulus.ts
import { CryptoProxy, PublicKeyReference } from '@proton/crypto'; import { binaryStringToArray, decodeBase64 } from '@proton/crypto/lib/utils'; import { SRP_MODULUS_KEY, VERIFICATION_STATUS } from '../constants'; const { NOT_SIGNED, SIGNED_AND_VALID } = VERIFICATION_STATUS; /** * Get key to verify the modulus */ export const getModulusKey = (() => { let cachedKeyReference: PublicKeyReference | undefined; const get = async () => { try { const keyReference = await CryptoProxy.importPublicKey({ armoredKey: SRP_MODULUS_KEY }); cachedKeyReference = keyReference; return cachedKeyReference; } catch (e) { cachedKeyReference = undefined; throw e; } }; return async () => { const isValidKeyReference = cachedKeyReference && // after logging out, the key store is cleared, and the key reference becomes invalid. // try and export the key to see if it's still valid (await CryptoProxy.exportPublicKey({ key: cachedKeyReference, format: 'binary' }) .then(() => true) .catch(() => false)); if (isValidKeyReference) { return cachedKeyReference as PublicKeyReference; } return get(); }; })(); /** * Verify the modulus signature with the SRP public key * @returns modulus value if verification is successful * @throws on verification error */ export const verifyModulus = async (publicKey: PublicKeyReference, modulus: string) => { try { const { data: modulusData, verified = NOT_SIGNED } = await CryptoProxy.verifyCleartextMessage({ armoredCleartextMessage: modulus, verificationKeys: publicKey, }); if (verified !== SIGNED_AND_VALID) { throw new Error(); } return modulusData; } catch (e) { throw new Error('Unable to verify server identity'); } }; /** * Verify modulus from the API and get the value. */ export const verifyAndGetModulus = async (modulus: string) => { const publicKey = await getModulusKey(); const modulusData = await verifyModulus(publicKey, modulus); return binaryStringToArray(decodeBase64(modulusData)); };
8,949
0
petrpan-code/ProtonMail/WebClients/packages/srp/lib
petrpan-code/ProtonMail/WebClients/packages/srp/lib/utils/username.ts
/** * Clean the username, remove underscore, dashes, dots and lowercase. */ export const cleanUsername = (name = '') => name.replace(/[.\-_]/g, '').toLowerCase(); /** * Validate username for old auth versions. */ export const checkUsername = (authVersion: number, username?: string, usernameApi?: string) => { if (authVersion === 2) { if (!username || !usernameApi) { throw new Error('Missing username'); } if (cleanUsername(username) !== cleanUsername(usernameApi)) { return false; } } if (authVersion <= 1) { if (!username || !usernameApi) { throw new Error('Missing username'); } if (username.toLowerCase() !== usernameApi.toLowerCase()) { return false; } } return true; };
8,950
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/test/babel-register.js
const register = require('@babel/register').default; register({ extensions: ['.ts', '.tsx', '.js', '.jsx', '.mjs'], ignore: [ /node_modules\/(?!(asmcrypto|jsmimeparser|pmcrypto|openpgp|@openpgp\/web-stream-tools|@openpgp\/asmcrypto.js))/, ], });
8,951
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/test/passwords.data.js
export const watResult = new Uint8Array([ 69, 48, 61, 219, 35, 37, 220, 38, 10, 164, 157, 54, 199, 3, 241, 241, 104, 218, 149, 212, 128, 239, 27, 124, 16, 118, 12, 154, 39, 146, 70, 184, 210, 160, 39, 0, 32, 71, 207, 30, 218, 104, 119, 81, 146, 23, 173, 89, 12, 105, 207, 8, 10, 101, 74, 32, 124, 155, 0, 171, 216, 186, 168, 215, 132, 218, 122, 33, 39, 218, 40, 252, 253, 224, 131, 70, 50, 157, 177, 83, 205, 18, 10, 44, 31, 61, 229, 221, 127, 169, 96, 223, 146, 100, 251, 159, 135, 156, 216, 82, 140, 206, 239, 103, 26, 99, 217, 39, 6, 76, 233, 139, 17, 140, 90, 15, 204, 100, 148, 62, 142, 140, 133, 223, 18, 129, 229, 27, 56, 181, 204, 208, 230, 175, 211, 198, 4, 220, 35, 104, 141, 135, 182, 226, 197, 139, 80, 214, 254, 253, 104, 247, 151, 163, 27, 246, 156, 134, 230, 202, 218, 12, 147, 168, 149, 113, 230, 113, 211, 101, 54, 33, 68, 220, 188, 10, 13, 98, 207, 34, 79, 205, 8, 25, 187, 64, 148, 36, 14, 145, 53, 170, 228, 61, 155, 26, 22, 124, 103, 49, 165, 215, 8, 123, 69, 70, 192, 56, 95, 25, 254, 85, 149, 133, 167, 170, 184, 79, 79, 135, 245, 231, 0, 155, 145, 169, 81, 147, 115, 169, 196, 119, 126, 103, 92, 9, 116, 99, 163, 207, 79, 183, 125, 39, 178, 104, 148, 151, 154, 163, 74, 146, 126, 183, 96, 91, ]); export const hashedResult4 = new Uint8Array([ 173, 116, 62, 96, 218, 98, 107, 7, 219, 166, 73, 207, 207, 52, 140, 10, 137, 170, 96, 35, 62, 72, 85, 170, 97, 118, 206, 159, 241, 34, 83, 188, 182, 183, 101, 14, 18, 198, 179, 122, 5, 94, 224, 235, 247, 66, 220, 27, 236, 224, 65, 45, 28, 122, 225, 137, 241, 103, 157, 229, 41, 46, 49, 104, 236, 79, 131, 182, 175, 186, 137, 204, 186, 162, 1, 2, 135, 196, 19, 194, 183, 180, 225, 127, 238, 83, 27, 84, 148, 164, 87, 83, 144, 231, 178, 87, 153, 157, 110, 188, 51, 240, 253, 146, 85, 53, 230, 217, 8, 108, 97, 111, 80, 176, 134, 105, 176, 201, 213, 60, 157, 142, 62, 194, 120, 210, 164, 72, 106, 236, 219, 158, 105, 210, 75, 177, 192, 78, 165, 145, 195, 64, 164, 181, 50, 182, 89, 254, 191, 241, 69, 241, 234, 2, 89, 251, 249, 10, 137, 20, 149, 251, 138, 225, 139, 189, 158, 220, 32, 141, 180, 172, 31, 159, 188, 161, 59, 236, 16, 137, 156, 140, 148, 41, 168, 181, 141, 152, 122, 134, 245, 80, 11, 73, 36, 106, 205, 234, 225, 113, 154, 20, 208, 72, 235, 202, 90, 140, 94, 28, 125, 80, 250, 90, 26, 167, 13, 237, 239, 88, 50, 246, 183, 52, 19, 231, 16, 16, 149, 86, 153, 181, 37, 109, 16, 119, 234, 187, 156, 48, 44, 75, 51, 163, 119, 138, 215, 116, 144, 180, 237, 149, 15, 38, 70, 229, ]); export const hashedResult2 = new Uint8Array([ 0, 87, 68, 30, 61, 48, 217, 154, 69, 29, 159, 229, 45, 216, 23, 202, 15, 153, 250, 23, 210, 26, 213, 62, 186, 34, 155, 114, 188, 244, 25, 146, 40, 124, 106, 201, 120, 199, 83, 130, 78, 9, 203, 34, 125, 195, 198, 33, 201, 78, 232, 249, 110, 19, 115, 48, 205, 170, 216, 66, 57, 58, 241, 36, 40, 217, 241, 224, 14, 107, 161, 35, 46, 102, 55, 175, 167, 39, 64, 149, 140, 65, 46, 33, 39, 125, 83, 243, 236, 151, 3, 113, 248, 10, 74, 235, 89, 50, 56, 86, 5, 145, 167, 39, 152, 33, 191, 249, 248, 246, 17, 94, 126, 125, 121, 53, 180, 210, 198, 247, 99, 130, 199, 6, 249, 202, 27, 1, 189, 63, 46, 94, 208, 229, 225, 189, 87, 205, 224, 22, 194, 231, 44, 113, 52, 92, 185, 149, 134, 56, 123, 234, 53, 96, 103, 25, 138, 249, 41, 199, 178, 108, 155, 92, 38, 210, 150, 165, 178, 239, 223, 100, 6, 107, 165, 94, 252, 87, 157, 132, 229, 147, 182, 116, 171, 42, 219, 138, 17, 184, 47, 240, 172, 147, 99, 58, 105, 123, 78, 85, 103, 235, 171, 10, 168, 99, 28, 21, 200, 117, 54, 119, 204, 233, 127, 32, 248, 254, 125, 48, 223, 173, 51, 169, 208, 244, 210, 12, 94, 251, 208, 149, 251, 153, 66, 5, 103, 138, 77, 51, 194, 55, 10, 132, 112, 176, 176, 83, 65, 74, 170, 142, 1, 25, 114, 205, ]); export const hashedResult0 = new Uint8Array([ 175, 206, 164, 116, 140, 166, 187, 66, 72, 230, 153, 76, 229, 198, 38, 125, 234, 15, 28, 205, 251, 207, 23, 162, 16, 202, 215, 58, 130, 210, 75, 222, 115, 121, 232, 56, 178, 96, 209, 78, 161, 162, 18, 67, 62, 92, 207, 221, 216, 160, 224, 233, 70, 117, 36, 16, 28, 16, 113, 21, 111, 132, 123, 10, 245, 17, 102, 222, 40, 213, 194, 172, 122, 20, 125, 13, 86, 119, 125, 235, 92, 184, 35, 249, 38, 127, 119, 195, 119, 16, 162, 13, 115, 59, 181, 164, 27, 11, 117, 88, 102, 34, 204, 133, 141, 138, 58, 209, 53, 130, 171, 10, 200, 97, 223, 70, 240, 63, 231, 17, 156, 254, 211, 29, 74, 4, 153, 58, 216, 41, 168, 75, 179, 209, 135, 93, 202, 239, 177, 179, 251, 99, 195, 239, 51, 252, 64, 5, 180, 42, 74, 228, 143, 161, 104, 13, 204, 90, 14, 204, 200, 131, 209, 202, 199, 174, 113, 240, 213, 161, 130, 38, 146, 89, 239, 164, 165, 227, 123, 230, 58, 112, 76, 38, 242, 13, 147, 140, 36, 180, 227, 152, 30, 94, 159, 201, 35, 246, 10, 172, 82, 25, 18, 102, 18, 16, 44, 240, 165, 200, 14, 16, 17, 187, 248, 6, 211, 75, 144, 120, 231, 133, 202, 179, 181, 134, 72, 88, 9, 208, 18, 246, 45, 142, 45, 55, 81, 64, 164, 154, 89, 152, 239, 36, 92, 247, 186, 116, 198, 187, 84, 185, 193, 253, 40, 41, ]);
8,952
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/test/setup.js
import { after, before } from 'mocha'; import { CryptoProxy } from '@proton/crypto'; import { Api as CryptoApi } from '@proton/crypto/lib/worker/api'; before(async () => { await CryptoProxy.setEndpoint(new CryptoApi(), (endpoint) => endpoint.clearKeyStore()); }); after(async () => { await CryptoProxy.releaseEndpoint(); });
8,953
0
petrpan-code/ProtonMail/WebClients/packages/srp
petrpan-code/ProtonMail/WebClients/packages/srp/test/srp.data.js
export const SERVER_MODULUS = `-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 y6TtufhYg2mIeauZYOti+GPbd/0vP66kP34TgE6elK/kXkTW/Yfrp1jMmtLiWWSq5cszTMRIEighuwPbZ/z3RrWPxsOg0+jYgbFu8yZ8vOAwrPtLxZl94x0PFTAZBrVapmCn+VYcM+UXdO9v70xFDLwj34tpPbvpODHVWHSlGlhOwndWg3XBE2D9PJopFZajNZiqOScBXree5rDgzU5BBaPbIb6nySpyaeThMCcNzpcEqE8r3ro+E/VdXBvSSJpusr1dvAwHc3IDGUzAhodqV5mjYy9nXwq/9gHWpYNtm76Ols7ReWAhZwy1+cQllQZwGfzzOVGpc+3WutOntQjM6Q== -----BEGIN PGP SIGNATURE----- Version: ProtonMail Comment: https://protonmail.com wl4EARYIABAFAlwB1j8JEDUFhcTpUY8mAADfEAD8DFdNXn4TsgbfbAZRDa9a yywqa/2W9Qyg5MJaNZd2a+0BAPg04gEZI+G8RaoPVh/SYvWx7jpP3L1O8bEi M/j1cjIO =5RYw -----END PGP SIGNATURE-----`; export const SERVER_MODULUS_FAKE = `-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 y6TtufhYg2mIeauZYOti+GPbd/0vP66kP34TgE6elK/kXkTW/Yfrp1jMmtLiWWSq5cszTMRIEighuwPbZ/z3RrWPxsOg0+jYgbFu8yZ8vOAwrPtLxZl94x0PFTAZBrVapmCn+VYcM+UXdO9v70xFDLwj34tpPbvpODHVWHSlGlhOwndWg3XBE2D9PJopFZajNZiqOScBXree5rDgzU5BBaPbIb6nySpyaeThMCcNzpcEqE8r3ro+E/VdXBvSSJpusr1dvAwHc3IDGUzAhodqV5mjYy9nXwq/9gHWpYNtm76Ols7ReWAhZwy1+cQllQZwGfzzOVGpc+3WutOntQjM6Q== -----BEGIN PGP SIGNATURE----- Version: ProtonMail Comment: https://protonmail.com iD8DBQFFxqRFCMEe9B/8oqERAqA2AJ91Tx4RziVzY4eR4Ms4MFsKAMqOoQCgg7y6 e5AJIRuLUIUikjNWQIW63QE= =aAhr -----END PGP SIGNATURE-----`; export const AUTH_RESPONSE = { Modulus: SERVER_MODULUS, SRPSession: '417402af24f9b0af2120e2e0fce20309', Salt: 'u6Jw9fM8sdKHJg==', ServerEphemeral: '5FV4Hp7kU58P4i6KYc+f9y0wuUaRje/wwxFkrBL5KvnBjcr53952s0yM0TOH56H55RcZ1sMGuSqbyGZSj4ACoZdc0Yw1u102B38B+IOhPhhjAP2Yd+5NBXccMpmNrzjkgW78r+WAm7Fm5SvBapI8SpZiuVARYTsupoP7frBpTAjnwm5aD4gVnkv7yZ9kZ1vEdHjZzQtaJZ4GFE1iiM8eRGw9POkcvIvBt8ynJ4RWNZljCU9svsNfjEEdNPpWC+6RJtcK6dSuDZ5NxlLByzydCH78KVnFoCKGH9imLqQG+KC7BwBuCLA9JtGpsHwAe5xNiBkeZ6q431yqF/vS6ZeNxw==', TwoFactor: 0, Version: 4, }; export const FAKE_RANDOM = [ 75, 49, 228, 131, 230, 24, 3, 247, 141, 212, 73, 51, 105, 133, 181, 248, 186, 42, 12, 71, 16, 168, 87, 246, 58, 86, 87, 92, 89, 234, 84, 166, 247, 126, 196, 126, 110, 136, 128, 155, 140, 241, 105, 157, 172, 32, 117, 93, 204, 77, 35, 162, 63, 63, 195, 31, 171, 69, 130, 18, 125, 138, 129, 63, 49, 36, 186, 227, 202, 219, 114, 244, 10, 13, 209, 51, 222, 1, 139, 103, 18, 91, 133, 84, 5, 253, 227, 82, 207, 42, 147, 41, 104, 22, 188, 119, 117, 22, 249, 71, 165, 46, 176, 95, 24, 154, 33, 47, 50, 221, 229, 88, 106, 227, 198, 20, 187, 78, 209, 217, 147, 135, 164, 120, 179, 232, 212, 61, 180, 174, 138, 126, 183, 84, 170, 67, 90, 74, 199, 50, 208, 22, 226, 54, 232, 92, 43, 110, 218, 146, 135, 162, 238, 164, 16, 163, 55, 229, 18, 167, 112, 42, 75, 74, 45, 130, 65, 182, 148, 16, 132, 241, 93, 217, 24, 122, 21, 35, 3, 61, 205, 53, 131, 115, 72, 94, 119, 105, 41, 27, 145, 121, 46, 173, 57, 107, 160, 78, 39, 233, 19, 211, 53, 112, 3, 13, 150, 192, 221, 95, 131, 97, 45, 102, 207, 254, 197, 83, 144, 36, 143, 248, 18, 134, 31, 197, 12, 88, 0, 10, 132, 24, 104, 79, 17, 133, 247, 124, 69, 176, 188, 206, 169, 76, 83, 14, 89, 18, 75, 59, 247, 241, 206, 152, 98, 175, ];
8,954
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/stylelint-config-proton/LICENSE.md
Copyright (c) 2020, Proton AG <[email protected]> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8,955
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/stylelint-config-proton/index.js
module.exports = { extends: ['stylelint-config-standard-scss', 'stylelint-config-prettier-scss'], rules: { 'color-no-invalid-hex': true, 'font-family-no-duplicate-names': true, 'font-family-no-missing-generic-family-keyword': true, 'function-calc-no-unspaced-operator': true, 'function-linear-gradient-no-nonstandard-direction': true, 'string-no-newline': true, 'unit-no-unknown': true, 'property-no-unknown': true, 'keyframe-declaration-no-important': true, 'declaration-block-no-duplicate-properties': [ true, { ignore: ['consecutive-duplicates-with-different-values'] }, ], 'declaration-block-no-shorthand-property-overrides': true, 'block-no-empty': true, 'selector-pseudo-class-no-unknown': true, 'selector-pseudo-element-no-unknown': true, 'selector-type-no-unknown': true, 'selector-anb-no-unmatchable': null, 'media-feature-name-no-unknown': true, 'at-rule-no-unknown': [ true, { ignoreAtRules: [ 'use', 'forward', 'import', 'mixin', 'include', 'function', 'extend', 'at-root', 'error', 'warn', 'debug', 'if', 'else', 'each', 'for', 'while', 'return', ], }, ], 'comment-no-empty': true, 'no-descending-specificity': null, 'no-duplicate-at-import-rules': true, 'no-duplicate-selectors': true, 'no-empty-source': true, 'no-invalid-double-slash-comments': null, 'alpha-value-notation': 'number', 'hue-degree-notation': 'angle', 'color-function-notation': 'modern', 'color-named': ['always-where-possible', { ignore: ['inside-function'] }], 'color-no-hex': null, 'font-weight-notation': 'named-where-possible', 'function-url-no-scheme-relative': null, 'keyframes-name-pattern': null, 'number-max-precision': 3, 'time-min-milliseconds': null, 'shorthand-property-no-redundant-values': true, 'value-no-vendor-prefix': true, 'custom-property-pattern': null, 'property-no-vendor-prefix': true, 'selector-pseudo-element-colon-notation': 'double', 'selector-class-pattern': null, 'scss/at-extend-no-missing-placeholder': null, 'scss/no-global-function-names': null, // todo: reintroduce this later with sass migrate 'function-name-case': 'lower', 'function-url-quotes': 'never', 'liberty/use-logical-spec': 'always', }, plugins: ['stylelint-use-logical-spec'], };
8,956
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/stylelint-config-proton/package.json
{ "name": "@proton/stylelint-config-proton", "license": "ISC", "author": "Proton AG", "main": "index.js", "files": [ "index.js" ], "dependencies": { "stylelint": "^15.11.0", "stylelint-config-prettier-scss": "^1.0.0", "stylelint-config-standard-scss": "^10.0.0", "stylelint-use-logical-spec": "^5.0.0" } }
8,957
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/styles/.prettierignore
scss/**/_index.scss
8,958
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/styles/.stylelintignore
8,959
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/styles/CHANGELOG.md
# [2.0.0] - 2021-xx-xx ## New ### Brand new 🎉 and super duper 🔥 - refactor all design system arbo ^^ - refactor numerous namespaces ^^ - new input fields! - new buttons API! - new toggle! - new themes! - tons of new custom properties! - styles for new phone input - styles for theming/new taxonomy - new illustrations! - new checkboxes - root em replacement - settings rework! - new button groups! ### Still 🔥 - calendar invitation styles - shortcuts helpers - storyBook styles - new `modal--tiny` and `modal--intermediate` modifier for Signup - add table new style `alternate-table-bg-row-rounded` - remove CSS SVG sprite ### New helpers - added `z-index`, `min-w7e`, `onmobile-min-h0`, `mr-2e`, `flex-flex-items-center`, `w3e` helpers - added `tv`, `broken-link`, `keyboard`, `netshield`, `nologs`, `world`, `sort`, `parent-folder-filled`, `folder-filled`, `exclamation-circle-filled`, `stop` icons - added `pm-field-icon-container-empty` class (to avoid layout shift for Drive) - added `bg-global-muted-dm-on-hover` class - added `on-hover-opacity-100` and `opacity-65` helpers - added negative margin helpers: `mt-0-5` and `mb-0-5` - added `on-tinymobile-p(l/r/b/t)0`, `on-tinymobile-w100` `on-tinymobile-text-left` helpers - added `flex-item-grow-1-8` helper - added `border-block-end-children` helper - added `absolute-only` helper ## Updated/fixes - fix variable override - fix `mirror` helper - fix vocalisation of toggle - fix minicalendar range border radius - fix focus style for radio/checkboxes in dark mode - hotfix for Drive - `icon-110p` - fix failing specificity for Drive - extract `item-icon` for Calendar - hotfix - back to mailbox button in Dark mode - change `is-thin` meterbar class - fixes for new select - add sizing values - updated logos - hotfixed `text-capitalize` helper - udpated `hover-same-color` to work with `color-currentColor` - fixed tab header layout - added `remote-content` icons - fixed `select` with centered content for Chrome - fix toggle for VPN - fix `mark styling` - reworked toggle structure ### Misc - fix SVGO temporary issue - fix CI - design-system is included in branch pipelines 🎉 # [1.8.6] - 2020-12-18 ## New ### Brand new 🎉🎉 - added Android CSS reset - added `pm-editableSection` fragment (Mail autoreply & filters) - Bf stuff - added `pm-select` - limit nested blockquote to 5 levels - Feat - attachment preview rework ### New helpers - added new typographic helper `strike` - added `borderColor-primary` helper - added `sticky-top` and `sticky-bottom` helpers - added `hyphens` helper (only hyphenation, no `word-break`) - added `bg-global-muted-dm` (dark-mode-friendly alias of `bg-global-muted`) + custom prop - added `onmobile-no-border` helper - added inline-grid helper ### Misc - added `--width-conversation-column` CSS custom property - added Gmail and Yahoo logos - added some images for Import - added new icons `globe`, `caret-double-left`, `tour`, `outbox`, `scheduled-box`, `attention-circle`, `chrome`, `calendar-today` ## Updated/fixes - fixed overflow for `select`s in Safari 🤪 - fixed padding around `.appsDropdown-button` to make it square - events participants in the calendar event popover - fixed text cut off in navigation - fix for Firefox strange behaviour around `input checkboxes` - updated height of row view in compact mode - fix hover over area around item in compact mode - added white border to qr codes for dark mode - fixed warning badge - contrast color issue - added `pm-button--primaryborderEvenInDarkMode`: a `pm-button--primaryborder` that stays the same even on Dark mode - fixed display on Design system website - fixed double border for quotes - display of past unanswered events in month view - update list view and message view layouts - changed event popover sizes - added a testcase for `optgroup`s - fixed attachment icon in dark mode - hotfixed `pm-field--tiny`, `pm-field--small`, `pm-field--large`/textarea and account fields that were broken - fixed icon list to make it more maintanable - added icon size of `60` - fixed template to get rid of `vh`, thanks Safari - debug flags - factorised some mixins - added `max-width` values - fixed `eventpopover` `z-index` - cleaned up CSS custom props references - fixed account display - remove mime icons sprite because they aren’t used - Hotfix - loading state of conversations - fixed display on website (modal page was broken) # [1.8.5] - 2020-09-30 ## New ### Brand new 🎉 - new label stack component/rework transitions - add helper in `LabelStack` to remove max width - new overview page design 🎉 - new event styles for Calendar - added SSO login styles + multi-account support ### New helpers - added `ellipsis-two-lines` helper - added `semibold` helper - added `tiny-shadow-container` helper, made it dark mode friendly - added `button-showOnHover` and `.button-showOnHover-element` helper (to display something when hovering a parent) - added `flex-flex-children` helper - added `bottom` and `centered-absolute-horizontal` helpers - added `min-h5e`, `w11e` helpers ### New fixes/reset - tiny reset for `mark` tag - fix meterBar component background color in dark mode - fix links default underline style - improve buttons loading state - hover effect for conversation row - added `.pm-button--pill` modifier - fix - `table` reset for Mail - added a Sass variable to trigger it or not (Mail is the special case, newsletter compatibility ftw) - remove italic for placeholders text in fields ### Misc - documentation for responsive helpers, 2-columns list and sizing helpers - add “broken file” image - add “TOR”, “P2P”, `empty-folder`, `proton-account`, `contact-full` icons ## Updated/bugfixes ### Safari 🤪 - fix Safari dumb and 💩 behaviour (scrolling caused by `sr-only` 🤪 🤪 🤪 ) - fix Safari 💩 and crazy behaviour on `main-area--noHeader` - fix Safari bug on modal footers ### Others - fix - cursor on scroll track in Chrome with textarea - revamped a bit `pm-field--linkSelect` stuff - fix `item-weight` display in row mode - fix - notifications display on mobile - fix autogrid margin behaviour on mobile - fix - delete action in dropdown should be red - added modifier for it - remove duplicate code - fix - firefox multi-selection of emails - fix - attachment icon display - update - documentation for label stack component - update conversation display - update appsDropdown sizing way and values - updated tooltip fragment to allow creating colored tooltips easily - fixed `pm-button--small` loading state - fixed fields with text positionned above (@protonmail.com) - fix several regressions: overflow on some fields (`field-icon-container`), composer, etc. - fix display of attachment size - improve button backgrounds management to avoid conflicts between states - Drive - move the fab a little higher when the transfer manager is there - added new type of media-query to `respond-to` mixin - cursor pointer on select fields - add `onmobile-w33` helper and fixed `onmobile-aligncenter` for some `th` # [1.8.4] - 2020-07-28 ## New - list MIME icons - add `swipe`, `pause`, `resume`, `question-nocircle` icons - added helper `onmobile-flex-self-start` and `onmobile-p0-5/pl0-5/pt0-5/etc.` stuff - new app switcher! - new tab switcher component - global structure change (for banners) - added new minor breakpoint (medium-landscape, ~1100, will be documented soon) - add Sass variable for default height fields - added “initial hover over circle” styles (Mail) - added `shape-file-txt` mime icon - added `.caret-like` helper for icons inside buttons - added `no-wrap` helper - added `pre` helper and example - added some mobile helpers - better element list with placeholders - new design for header links - add scss fragment dedicated to mail reset styles - fix - `td` and `img` reset for Mail - added some Sass variables to trigger them or not (Mail is the special case, newsletter compatibility) - huge fix - vocalization of all checkboxes/radios/toggle - signup styles! - new ellipsis-loader component - new loading placeholders in discussion view ## Updated/fixes - added shadow and bold text for unread/collapsed mail - fixed style for circle-bar chart - updated Drive icon 🎉 - update of event popover layout - fix bigger shape examples doc for icons (thanks @mmiskinis !) - hotfixed navigation icon styles - hotfixed and reworked meter and progress elements next to Chrome 83 update - remove gradient in navigation - remove pointer-events on disabled buttons - fix selected/last element border in dropDown - fix unread message selected - fix - unread item in row mode - fix - limitated modal full-width for very big screens. - fix - some missing `!default` - hotfix - warning and attention buttons didn’t keep their color in dark mode - fix loading (dark mode) - fixes for transfer manager - added some exceptions for iframe challenge - updated container sticky behaviour/values - fix - event modal redesign - fix - icon alignment - fix dropdown sizes on search - fix - remove Safari padding-fix on Calendar - fix - calendar popover tweaks - fix - star button custom property - fix - `z-index` on `main` for Safari 🤪 and 💩-fixed positionning - fix - badge borders and row view - fix - navigation on laaaaarge viewports - fix - mail list in dark mode - fix - increase clickable area around list checkbox - hotfix - primary button in disabled state in dark mode - fix - `.trashed-messages` styles added - fix modal scroll shadow! (not yet fixed on Design system website) - fix - crazy combination of `.pm-button--redborder` mixed with `.pm-button--link` and `.pm-button` - fix - bgcolor of read messages/labels/again - fix - move file preview styles from proton-drive - fix - added possibility to hide arrow for dropdown - moved breadcrumbs component from drive to shared - fix - added `input type="number"` for Design team - hotfix - `checkbox` issue with Safari (need a `relative` container) - fix - meterbars in Chrome - fix dropdowns - fix - dark mode “primaryborders-buttons” ## Misc - fix some stuff on Design system website, shame on me for not taking care of you, my dear website. # [1.8.3] - 2020-05-18 ## New - add `pre-wrap` text helper - added styles for printed version react - add `protondrive`, `nospam`, `attention-plain` icon - add new lock icons (18×18) - add new selected state on calendar events - new URL for accessing Design System: https://design-system.protontech.ch/ 🎉 - enabled custom scrollbar design everywhere (can be activated/not via `$custom-scroll`) - added `pm-modal--heightAuto` modifier for modals - added `width`s helpers in `rem` - compact/comfort view styles - added `bordered-container--error` modifier - add `min-w1-4e` helper - drop down rework! - added `$use-ie-calc-font-fallback` Sass variable to remove IE11 font-reset fix - added some examples for vertical centering with flex 🎉 - added group button for primary colors - fix icons sizing from 25px to 24px - remove fixed width for tooltips, min and max width instead - added `boxes-placeholder-container` container (well, took it back from Angular) - added new conversation styles and moved some CSS stuff here - added new `.pm-simple-table--isHoverable` flag to enable row hovering effect - added new `.pm-simple-table-stickyRow` flag settable on any table row to enable itself to stick the top when scrolling - added `covered-absolute` helper - added `flex-self-end` helper - added collapsed label styles - added easing functions - added helpers `ontablet-hideTd2`, `ontablet-hideTd3`, `onmobile-hideTd2` to `onmobile-hideTd5` (on a `tr`) to hide `td`s - primary buttons now keep their color when disabled ## Updated/fixes - add variable for composer autocomplete hover - close button modal font size - fix placeholder and add class for it - fixed redirections for Netlify update: https://community.netlify.com/t/changed-behavior-in-redirects/10084 - hotfix print version on Firefox - fixed `optgroup` styling in dark mode - moved link reset styles to reset (to avoid color bug in Mail button/links) - fixed blockquote print version (allowed page-break inside, for Mail) - fixed harmonization between Chrome/Firefox for monospace-d elements - hotfixed `pm-button--currentColor` with `pm-button--link` - fix em width helper - fix labels max-width - fixed contrast colour for email in dark mode (added `--bgcolor-unread-item-column-list` CSS custom property) - fixed loading state for SVG icons - fixed dark mode notification links - fixed print version in dark mode - fixed date size in mail extra-details - updated `circle-bar--` modifiers class names - fixed decoration of topnav links - updated icon `calendar-repeat` to `repeat` # [1.8.2] - 2020-03-19 ## New - Treeview - Quill Sass files + Dark mode for it and bugfixes at the same time 🎉 - add Sass variable `$input-shadow-color` for input shadow color - add `parent-folder` icon - add `size-40` helper (card layout) - add `0.4` margin helpers - add helper for rtl mirroring content `on-rtl-mirror` (icons mostly) - add placeholder images - revamped sections and FE helpers - add `ratio-container-5-1` helper and improved doc for it - add `border-block-end--currentColor` helper - add dark-mode friendly bank logos/icons - add `fill-white-dm` and `fill-global-highlight` aliases (dark mode) - refactor `<Icon/>` fill - set default color of labels, buttons, inputs and selects to `currentColor` - added `shape-file-edit`, `shape-file-upload`, `shape-folder-new`, `shape-folder-upload` icons - loader animation rework for less blury effect and more customization / random feeling - added new responsive helpers: `ontinymobile-flex-self-start`/`ontinymobile-flex-column` and `ontinymobile-m1/mt1/mr1/mb1/ml1` - new animation for Calendar event loading - drag and drop image for Drive - add `min-h16e` helper (`min-height` in em helper) - add `react-intl-tel-input` styles ## Updated/fixes - fix for recurring frequency in popover - remove dirty fix for SVGs in `button`s - fix Quill editor in Dark mode (placeholder) - fix subnavigation links in dark mode - fix elliptical shape for `dropDown-logout-text` - fix horizontal scrolling case for `customScrollBar-container` - fix `row--orderable` helper to be dark-mode friendly - fix `--paddingFix` stuff (for iOS/VPN settings) - fix `tree-view` stuff - add hover state for `dropDown-item` - fixed dark mode stuf - fixed Angular star issue - fixed `.toolbar-select` issue in Dark Mode - fix arrow colors (mini-calendar) - add exception for `pm-button--link` and `nodecoration` - fix import/export icons - increase dropdown width on default and narrow states, for time options # [1.8.1] - 2020-01-31 ## New - added `gift` and `calendar-repeat` icons - made `bg-global-border` dark-mode friendly - add `progress-contact--success`/`progress-contact--error`/`progress-contact--warning` modifiers - add new subnav styles - add `w120e`, `w140e`, `w220e` helpers - add `ontablet-w25`, `ontablet-mw100`, `ontablet-wauto`, `onmobile-w25`, `ontinymobile-wauto` helpers - add `--bgcolor-highlight` CSS custom property - added Assets section (with list of images/flags/etc.) - add new margin helpers - add `pm-simple-table--bordered` modifier (for tables) - add `pm-radio--onTop` modifier (alignment) - add `flex-noMinChildren` class - add `pm-modal--auto` modifier - add `flex-self-start` helper - add helpers for display/hide on dark mode and doc about it in helpers - add arrow for dark mode and rtl in CSS sprite - add helper `color-global-grey-dm` (dark-mode friendly) - add `day-checkbox` component (for Calendar) - add label styles for React - add `mt0-5r` and `mr0-5r` helpers - add `w14e` class ## Updated/fixes - fix mobile week selectors - fix caret icon positionning for alignment when rotated - fix time indicator display - fix display event on Safari Mac - update time-indicator in Calendar - fix `pm-button--warning`/`pm-button--error` display when used with `pm-button` - fix conversation item selector hover state - fix display of conversations - fix `pm-button--primaryborder` - fix `disabled` state for `pm-button--primary` - update calendar now hour line indicator and added CSS variable `--bgcolor-calendar-now-indicator` - fixed toggle dark mode design - fixed calendar selected/current day display - fix `fill-currentColor` in dark mode - fix selective/current day on mini-calendar/calendar - fix `pm-label` for credit card autogrid issue (`width` was too large for small modals) - fix inconsistency for mini-calendar colors (current/selected day) - fix display of outside modifier (calendar) - fix `pm-label` - first round of updates for placeholder images - fix modal close button position - second round of updates for placeholder images - fix advanced search (clear button) - increased `container-section-sticky` max-width - fix expand caret in toolbar-button--dropdown - fix `day-icon` on tiny breakpoint (recurring) ## Misc - Readme/doc update # [1.8.0] - 2019-12-20 ## New - added css-arrow-right in css svg sprite - hover styles for minicalendar - added `pm-modal--full` modifier - added `minus` icon - padding fix for settings/calendar - added `pm-form--iconLabels` modifier (for Calendar) - added `border-block-start--dashed` modifier - added `fixed` (`position: fixed`) - added `onmobile-static` (`position: static` on… mobile!!!) - added `lock-alone`, `lock-check`, `lock-warning`, `lock-write`, `pen` icons (for composer) - added `pm-simple-table--alternate-bg-row` modifier to have alternate background colors for rows in a table - added alias for `bg-global-light`, `bg-white`: `bg-global-highlight`, `bg-white-dm` (dark mode friendly) - added `ontablet-flex-column` helper - added `blocked-content`, `payments-type-amex`, `payments-type-cash`, `payments-type-discover`, `payments-type-mastercard`, `payments-type-visa`, `p2p`, `servers-country`, `speed-fast`, `speed-low`, `speed-medium`, `vpn-connx` - Dark Mode! ## Updated/fixes - fix selected element in contact - fix dropdown link display - hover styles for minicalendar - a lot of fixes for calendar styles - fix shorter labels display on mobile - update tiny-breakpoint value - fixed selected conversation item - fix modal display in case of low viewport height - fix `z-index`es for Calendar - add `min-width` to `pm-checkbox-fakecheck` - removed `bg-global-light` class in table examples for `pm-plans-table-row--highlighted` (more darkmode-friendly) - updated Calendar/Contacts icon - fixed mini-calendar range display in responsive view - fixed disabled buttons # [1.7.7] - 2019-11-21 ## New - added `circle`, `calendar`, `clock` and `target` icons - added mini-calendar styles - added `toolbar-select` styles - added `mw8e` helper - added `filter-blur` helper - added `w50p` helper - added `.pm-modal--shorterLabels` modifier - added `calendar-grid` fragment - added `atomLoader-text` styles - added calendar event loader/skeleton loading anim styles - added `bg-inherit` helper class - added `w95` helper - added mini calendar range selection styles - added `flex-justify-center` helper - added `border-currentColor` helper - added `onmobile-remain-sticky` modifier for sticky title - added `blackfriday` icon - added `ellipsis-four-lines` helper - added `alignsub` helper ## Updated/fixes - added custom scrollbar in Firefox. - fixed text cut off in user drop down - fix `main-area-withToolbar` stuff ^^ - fix `protonmail_quote` styles - fix `no-result-folder` image (removed artifact) - added a fix for Angular bug with Safari - removed “global” hover state for conversations - updated `protoncalendar`/`protoncontacts` icon - fixed mini calendar icon color/removed transitions - fixes for (mini) calendar display - fix issue with `pm-button--link` - fix for Safari slow perf (filter CSS) - fix modal icons - fix flags - fix Chrome bug for selects - fix standard modal width - added a `max-width` on user drop down display name - fix path not closed properly in SVG (thanks @johBerlin !) ## New # [1.7.6] - 2019-10-24 ## New - added `pm-button--currentColor` modifier (used in notification area for example) - added `navigation__refresh` classes (for mail) - added `pm-button--for-smallicon` modifier - added placeholder images (no result) - added helper `color-currentColor` (for notification zone) - added CSS custom property `--label-width` - added more border and max width options - hover state for conversations - add protoncontacts icon - new icons - added new responsive navigation styles - added rem margin-block-start helper (will enhance it later) - added FAB styles - added option on `respond-to` (`$query-type == "height"`) - added `plus` icon - added `0.75` margin helpers - added `selectall` icon ## Updated/fixes - fix special case for `block-info` - fixed conversations and `main-area--withToolbar` - fixed cursor value for modals (Edge bug) - fixed header structure of website - fixed top navigation - fixed selected conversation state - fixed settings icon - fixed toggle margins - increased width of `pm-label` - fixed padding of `item-container`/added some flex for proper rendering in conversations - fixed `line-height` of text in user dropdown - fixed drop down example on design system website - splitted `global-structure` into several fragments - hotfix form error with AngularJS - fixed special case of long inputs in modal (rich text edition, etc.) using `pm-field-container--full` - fixed notification display on mobile - added `compose-fab--inBackground` modifier - fixed height issues on contact containers (`items-column-list--mobile`, `view-column-detail`) - fix tooltip background color - updated `reload` icon # [1.7.5] - 2019-09-27 ## New - added `flex-item-start` helper - added modifier `pm-button--whiteborder` - added `right-icon` helper - added “field with icon” container styles (`pm-field-icon-container` and `pm-field-icon-container--invalid`) - added circle bar styles (see in dropdown to see the bigger version) - added storage dropdown styles - added `smallest` helper (~9px) - added some bank icons - added `flex-item-noflex` helper (`flex: 0`) ## Updated/fixes - added a modifier for invalid password container `.password-revealer-container--invalid` - fixed some bugs with Firefox error zone display - updated `loadingAnimation-circle--pm-blue` class to `loadingAnimation-circle--pm-primary` - fixed flicker effect when tapping on modal - fixed a display bug on Safari for password revealer - added modifier `pm-field-container--address` (container for address on contacts) - fixed vertical centering of logo/added modifier for logo without plan - fixed password revealer outline issue - removed outline on `pm-field`s - removed password revealer code (same behaviour as `pm-field-icon-container`) - fixed navigation icon hover color (for blue theme) - fixed color image `upgrade.svg` - fixed `hover-same-color`/`primary-link` helpers - fixed `navigation__counterItem` padding - updated badges CSS code to better fit to mail constraints - fixed searchbar layout # [1.7.4] - 2019-09-12 ## New - added `$list-max-width-ch` Sass variable, ex. `.mw70ch`: `max-width: 70ch` - added `flex-justify-start` helper - added `onmobile-wauto` and `min-w5e` helper classes - added `scroll-horizontal-if-needed` for horizontal scrolling - hamburger color - padding helper with `3`: `pt3`, etc. - added `h100v` helper - added `ontablet-mw100` helper - added aliases `pm-button--primaryborder`, `pm-button--primaryborder-dark` (based on `$pm-primary` value) - added `header-height-anchor` for scrolling issues - added `badgeLabel-primary` and set this one by default - added `flex-item-fluid-auto` helper: `flex: 1 1 auto` - added `onmobile-flex-wrap` and `onmobile-min-w100` helpers - added `rounded-none`, `rounded-none-left` and `rounded-none-right` helpers - added title style for VPN signup ## Updated/fixes - fixed `height` of `select` (alignment in settings) - rwd adaptation for sticky title/space between sections - rwd adaptation of navigation - added some margin helpers on mobile - fixed `textarea` with `pristine` class (Firefox bug) - updated `pm-buttons` (replaced `@extend .nodecoration` to `text-decoration: none`) to fix a crazy bug on Edge 🥴 - update table plan responsive behaviour - fixed contrasts of placeholder, yeah! - fixed blurry modals/updated modal positionning/fixed on design system website - fixed `meter` display on Chrome - fixed password revealer - updated `.pm-field-container` with use case of `auto` - fixed `error-zone` display (with `password-revealer` container and classic `pm-field`) - fixed drop down logout display - fixed `pm-toggle` `aria-busy="true"` and `disabled` states - fixed responsive issues with flex helpers - increased mobile breakpoint value # [1.7.3] - 2019-08-30 ## New - added `$vpnplus` and `$vpnbasic` plan colors - added `pm-simple-table--has-actions` modifier to right-align “action” column (design rule) - added `stroke-*` classes (for SVG `stroke` properties) - added paypal logo in bank images - added `$pm-primary`, `$pm-primary-light`, `$pm-primary-dark` Sass variables (aliases for main colors) - added class aliases for primary colors: `color-primary`, `bg-primary`, `fill-primary`, `stroke-primary` - added styles for toolbar elements (and clean up a bit this mess) - added `flex-justify-end` helper - added plans tables - updated searchbar styles: if there is no search bar, the next element (navigation) is pushed to the right (VPN/settings/etc.) - login page in responsive - added svg illustrations - added `fill-beta` color and styles ## Updated/fixes - increased `z-index` of notifications, in order for them to be on the top of modals :) - added styles for “info” notification - moved some styles to exceptions (only for Design System) - fixed `checked` state of `item-icon` - fixed logout dropdown display - increased small modal width - fixed password revealer (added a `background-color`) - if `searchbox-container` is empty, set up its `width` to 0 - removed `z-index` from active `pm-group-button` - fixed badge `font-size` to use rem to avoid inheritance on mail - fixed `padding-inline-end` value on `navigation__link` (alignment with compose button) - fixed navigation icons/display - fixed star button color - fixed a bug for `caption` tag on Firefox - removed responsive adaptation for top navigation (might add it only for Mail or project that do really need it) - fixed issue in `pm-simple-table--has-actions` - fixed some RTL stuff - fixed password revealer - fixed active state for error/warning button aliases - update `disabled` state for buttons - added `max-width` to modals and fixed !_%_!!$\* safari mobile bugs # [1.7.2] - 2019-08-15 ## New - new loading images/animations - fixed toggle “slow `aria-busy`” state animation - custom scrollbar - added small toggle: add `pm-toggle-label--small` to `pm-toggle-label` and maaaagic - added class `container-section-sticky-section` to increase margin between sections - added tabs styles - added documentation for square container/`ratio-container-*` helpers (padding-hack technique, use it wisely young jedis) - added documentation for `nodecoration`, `underline` and `underline-hover` ## Updated/fixes - remove `settings` icons in left sidebar - fixed Chrome bug with `.spacebar` (autoprefixer issue) - updated DropDown react styles - added disabled state for toolbar button - added alias `question` for `what-is-it` icon (to merge) - added example of image in conversations - fixed `.cut` class for Chrome - added `cursor-row-resize` helper - added `1.25` value to `padding` helpers - updated top nav design - add state `disabled` to `pm-button--link` - documentation for absolute/relative helpers + `opacity` helpers - fixed `alignright` helper of `th` element - added `max-width` to sidebar (equiv 220px max) - fixed `background-color` of search field - updated logout dropdown layout (with caret icon on hover, etc.) # [1.7.1] - 2019-08-06 ## New - added `dashed` and `dashed-container` containers - added `language`, `timezone1`, `timezone2`, `linux`, `windows`, `alias`, `calendar`, `cc`, `check-circle`, `key`, `user-storage` icons - added bank icon images (discover/jcb to clean up) - added `pm-button--noborder` modifier - add plan colors/classes - add `no-outline` helper (god, please forgive me for having created this) - add class `mw100` on `navigation` element (fixes ellipsis bug in some cases) - fixed “button” active state when applied to `div` and triggered by dropdowns inside - updated logo - added react dedicated styles (and notes/documentation about them) - added `lh-standard` class (standard `line-height`) - added `$list-max-width-em` feature (needed for composer) - added flags files in `assets/img/illustrations/flags` - added `pv-indicator` css file (and notes/documentation about `pv-styles`) - added `.underline-hover` helper ## Updated/fixes - added exception on `main-area` with `no-scroll` ## Misc - added icons in left bar - has to change CSP policies (Firefox, when do you will fix this CSP bug for CSS in SVG images?) # [1.7.0] - 2019-07-12 ## New - added `android`, `apple`, `facebook`, `github`, `instagram`, `linkedin`, `mastodon`, `reddit`, `youtube` (updated `twitter` one) - added design for checkbox for “select all” - added `w15` width helper - added icon `shape-contract-window` (for composer) ## Updated/fixes - fixed `dropDown-item` border display - add exception for `pm-button` with `p0` (needed for dropdowns) - remove `margin` for `item-icon` (more reusable), replaced by a helper (`mr1-5`) - fixed some button designs for more stability for hover states - fixed notification container positionning - updated top nav responsive behaviour for better matching v4’s one. - removed `padding-inline-start/right` for `pm-button--link` ## Misc - added subsections for containers and helpers pages - enhanced responsive of Design System website # [1.6.18] - 2019-06-27 ## New - `toolbar-separator` styles + `toolbar` design details ## Updated/fixes - removed `.toolbar svg` for `.toolbar-icon` selector (limit depth of applicability for styles, always) - update selector for modal button display # [1.6.18] - 2019-06-27 ## New - added `dropDown-content--wide` modifier (super large drop down, for advanced search) - added `break` helper - added `no-pointer-events-children` helper ## Updated/fixes - fixed `pm-label` to accept `auto` helper (`width: auto`) # [1.6.17] - 2019-06-25 ## New - added `rotateZ-90` and `rotateZ-270` helpers - added Sass variables for `max-width` in percentages - added helper `flex-row` - added modifier `pm-modal--wider` for… wider modals. # [1.6.16] - 2019-06-19 ## New - added `progress` styles for exporting contacts - added `fill-currentColor` class for SVG ## Updated/fixes - updated reset for `progress` - added Sass variable for `meter` tag (space bar) - vertical alignment for checkboxes and radios - fix for logout dropdown (if there is only one letter inside) # [1.6.15] - 2019-06-07 ## New - added `border-block-end--dashed` modifier - added helper `underline` - added `icon-w40p` size - added cursor helper classes ## Updated/fixes - exception for applying `pt0` to `pm-label` - missing scroll in conversations on Design System website # [1.6.14] - 2019-06-05 ## Updated/fixes - updated `hr` color - updated `flex-items-end` helper and added example (renamed it, was `flex-item-end`, not consistent) - fixed color of ProtonMail version text - fixed navigation padding (added partial `exceptions` ONLY for Design System website) - fixed logout expand on Design system website # [1.6.13] - 2019-06-04 ## New Logout dropdown - added it :) - added helpers `opacity-30`, `lh100`, `bordered` container - commented some stuff (`q` styles) - updated “How to use the Design system” (new partial) ## Updated/fixes - updated drop downs (`max-height` limit, plus shadows/etc.) - updated classnames for conversation lists (for `item-`, more generic, as it is used in contacts) - fixed `viewbox` for some icons/simplified documentation - renamed some classes for CSS multicolumns (consistency) - renamed some Sass variables for better consistency - added documentation about width helpers # [1.6.12] - 2019-05-29 ## New - added `alignbaseline` helper class ## Updated/fixes - fixed big screen adaptation ## Misc - Add SVG illustrations # [1.6.11] - 2019-05-28 ## New - added `--width-sidebar`, `--width-subnav` and `--body-fontsize` CSS variables - added `pm-field--highlight` modifier - added `meter` bars styles for settings - POC screen adaptation for very large screens (to test) ## Updated/fixes - added state class `is-disabled` for buttons - increased tooltips width - fix icon positionning in aside bar # [1.6.10] - 2019-05-23 ## New - added icon `shape-lock` - added `block-info-success`/`block-info-standard-success` in containers ## Updated/fixes - Updated fake checkbox in conversations (WIP) - Reseted `figure` default browsers styles # [1.6.9] - 2019-05-22 ## New - sticky header for settings (using `.sticky-title` class, and `sticky-title--onTop` modifier to remove `box-shadow` at the top, has to be managed via JS) - added container `container-section-sticky` class for pages using sticky header (for each section) - also added modifier `container-section-sticky--fullwidth` modifier class to remove `max-width` if needed. - updated smooth scrolling feature on Design System website (used https://github.com/zengabor/zenscroll) ## Updated/fixes - update modal positionning (WIP for Safari bugs) - updated `pm-label` class (set up to `width` to avoid bad alignments and add `padding` to the right) - removed decoration from `pm-buttons` (except for `.pm-button--link`) - added examples of vertical centering in forms # [1.6.8] - 2019-05-19 ## New - add `capitalize` helper # [1.6.7] - 2019-05-14 ## Updated/fixes - fixed bug on button group with 2 buttons `last/first-of-type` - revamped drop down code (removed class, simplified, choosed classname more generic) - also moved button classes to drop down and generalised `focus-within` - added group button example with colors - fixed color management for caret - updated leftArrow/rightArrow to modifier classes Bonuses: - added modifier `wizard-container--noTextDisplayed` for wizard (hides the current step) - fixed button--link modifier (background transparent - documentation for drop down in button groups # [1.6.6] - 2019-05-13 ## New - wizard component - add `shadow-container` class - updated/standardized animations and classnames - update notifications/modals after discussion with @mmso - documentated in namespacing classes - added mention of modifier convention - documented modal modifier `pm-modal--inBackground` and animation names for modals ## Updated/fixes - add `block-info-standard-warning` class - fix `aligncenter` helper on `th` - update reduce motion MQ (compatibility with `animationEnd` listener) # [1.6.5] - 2019-05-08 ## New - add `650` value to `$list-max-width` ## Updated/fixes - set search image as content image - removed CSS variable for it - fix RTL adaptation - updated blue and light theme - updated theme config - updated documentation # [1.6.4] - 2019-05-07 ## New ### Revamped modals: - added scroll inside modal - centering checked - added shadows in case of long content - added anim out - cleanup, positionning, RTL tests, comments ### Others: - added `no-pointer-events` helper class - added `border-block-end` helper class # [1.6.3] - 2019-05-03 ## New - manage a list of notifications - added flexbox helper `flex-items-center` # [1.6.2] - 2019-05-03 ## Updated/fixes - Update theme scss files for WebPack. # [1.6.1] - 2019-05-02 ## New - added password revealer in forms - new icons ## Updated/fixes - Fix documentation of Sass partials # [1.6.0] - 2019-05-01 ## New - added CSS custom properties - added generation of static CSS files for themes surcharge - added previsualisation in Design system website - added documentation for all of these - added `pm-field--tiny` modifier ## Updated/fixes - Fix mismatch for `pm-button--link` when used with `pm-button` - also fixed layout of top nav #95 ## Misc - remove inline-styles for space bar (this is bad) - removed 'unsafe-inline' for CSS for design system website # [1.5.18] - 2019-04-25 ## New - added pagination drop down - added button drop down - added class `.increase-surface-click` class (needed for pagination drop down, and could be used for other cases, to increase tap zone) - add `rotateX-180` helper ## Updated/fixes - fixed documentation in group buttons # [1.5.17] - 2019-04-24 ## New - add `prefers-reduced-motion: reduce` MQ (for vestibular disorder) ## Updated/fixes - set up max width for input/select/textarea - fix select text overflow - updated `ng-valid` to `is-valid` (byebye Angular) - fix `pm-label` alignment # [1.5.16] - 2019-04-18 ## New - add warning styles for input (contrast to enhance) # [1.5.15] - 2019-04-17 ## New - add error styles (using `aria-invalid="true"` and CSS transforms) - add `details`/`summary` styles - add `scroll-smooth-touch` class ## Updated/fixes - fixed a minification issue with `::placeholder` for `searchbox-container` styles - updated reference for CSS icons `css-caret-close` - fix topnav “shrink” icons in rwd ## Misc - had to activate `unsafe-inline` for CSP `style-src` for design system website (bugs on Firefox/inline style) # [1.5.14] - 2019-04-10 ## Updated/fixes - remove `flex-item-grow-1-5` item to `flex-item-grow-2`. # [1.5.11] - 2019-04-10 ## Updated/fixes - update badge height (Chrome bug) - add `flex-item-grow-1-5` item. - fix sticky subnav # [1.5.11] - 2019-04-10 ## Updated/fixes - conversation row class # [1.5.10] - 2019-04-09 ## Updated/fixes - add missing CSS fragment in how to use the design system. - fix print version # [1.5.9] - 2019-04-05 ## New - add selected state for conversation styles - add a DO/DON’T ## Updated/fixes - fixed a display bug in code sections with Prism - fixed a display bug in conversations # [1.5.8] - 2019-04-05 ## New - conversation styles - add class `w0` (`width: 0`) ## Updated/fixes - reordered padding/margin helpers # [1.5.7] - 2019-04-04 ## New - add color rules ## Updated/fixes - fix small bug/cleanup - fixed color wrong values # [1.5.6] - 2019-04-03 ## New - add example of settings layout - add `aria-busy="true"` state to toggle ## Updated/fixes - fixed RTL for top search and navigation - fixed logo plan with RTL - fixed sidebar display - splitted/cleanup some SCSS files - fixed white mode poc # [1.5.5] - 2019-04-02 ## New - top search bar styles - top navigation styles ## Updated/fixes - splitted main template in several files for Design System website - update documentation page on Sass variables # [1.5.4] - 2019-04-01 ## New - put variables in `design-system-config` - rewamped color pages - add `h100` class - added documentation page on Sass variables ## Updated/fixes - add missing color in icons - fix 404 page # [1.5.3] - 2019-03-29 ## New - Plan under logo # [1.5.2] - 2019-03-27 ## New - styles for conversations ## Updated/fixes - “caret” has a single “r”. - added modifier `.pm-button--for-icon` (for group button made of icons) - add missing ` !default` to some variables - add `shape-burger` icon (for design system website) # [1.5.1] - 2019-03-26 ## Updated/fixes - remove `progress` tag to `meter` (for space used) - added `white` classes (`fill-white` & `bg-white`) - added `opacity-50` class (=> `opacity: .5`) - doc for `flex-nowrap` class # [1.5.0] - 2019-03-25 ## New - detect scroll on main navigation/display gradient - add `disabled` style for toggle - add `indeterminate` style for checkbox ## Updated/fixes - Update button aliases to modifiers. # [1.4.9] - 2019-03-22 ## New - added caret icon - WIP: detect scroll on main navigation ## Updated/fixes - Update toggle component, also fixed it in RTL version # [1.4.7] - 2019-03-21 ## New - Tooltips styles - RTL documentation - added class `.mirror` in `sprite-for-css-only.svg` and in `_design-system-layout-modules.scss` ## Updated/fixes - Missing paths `$path-images` in `_pm-loadingcontent.scss` ## Misc - Fixed CSP issue on SVG sprite for CSS (Firefox… you really start to stress me up!) # [1.4.6] - 2019-03-19 ## New - conversation styles (WIP) # [1.4.5] - 2019-03-18 ## New - added new images useful in settings (in `assets/img/pm-images`) ## Updated/fixes - added disabled styles for `radio`/`checkbox` - added new color on `block-info-standard`: `block-info-standard-error` - added ProtonMail icon with “native” viewbox of 16×16 # [1.4.4] - 2019-03-15 ## New - added class `dash2x` to make path bigger on SVGs ## Updated/fixes - added example/fix on icons in `button`/`a`. # [1.4.3] - 2019-03-12 ## New - added class `rounded-50` (`border-radius: 50%`) - made design system more RTL-friendly (WIP) - added examples of integration in icons - added one DO/DONT ## Updated/fixes - removed duplicate SVG icon - moved some classes that are specific to design system website - indentation fixes # [1.4.2] - 2019-03-11 ## Updated/fixes - used relative path for images (for webpack) - added documentation for variables - added missing `!default` on variables of the design system - updated `styles-pm` comments and “how to use design system” for variables - indentation fixes # [1.4.1] - 2019-03-08 ## New - added “domain breadcrumb” styles (in containers) - added “Information panels” styles (in containers) - added `#shape-drag` and `#shape-reload` icons (not definitive icons) ## Updated/fixes - updated asset structure - fixed overflow on Chrome - also “fixed” a iOS Safari bug # [1.3.8] - 2019-03-07 ## Updated/fixes - fixed `padding`s on `block-info-warning` ## Misc - Added documentation for `unstyled` class # [1.3.6] - 2019-03-04 ## New - added `.italic` class - added SVG sprite for CSS use only (with doc) - added `.bold` alias for `.strong` - added animation on `radio`/`checkbox` ## Misc - Fixed CSP issue on SVG sprite for CSS (Firefox) # [1.3.5] - 2019-03-01 ## New - added `input type="radio/checkbox/search"` in forms - added SVG sprite for CSS use only - added `.strong` and reset for `b` and `strong` ## Updated/fixes - `select` enhanced but WIP ## Misc - moved to Github - created templates for issues/PR, labels, etc. # [1.3.4] - 2019-02-18 ## New - added alias `.pm-button-redborder` in buttons - added all icons - added `pm-modal--smaller` class and example ## Updated/fixes - remove margin on `textarea` # [1.3.3] - 2019-02-18 ## New - added simple horizontal `flex-autogrid` examples in flexbox helpers # [1.3.2] - 2019-02-15 ## New - added `block-info-*` examples in containers - added `ratio-container-*` examples (in "icons tests", also useful for responsive `iframes`/etc. with keeping ratios) ## Updated/fixes - mentionned new `scss` files in “how to use the design system” # [1.3.0] - 2019-02-14 ## New - added loading content page/templates - added drop downs (WIP) - added design for `progress` bar in navigation (remaining size) - added `information-block` style in container section - added aliases for buttons: `pm-button-(primary/link/error/warning/info)` - added class `.link` (same style as for `a` tag) - added class `.scroll-if-needed`, to apply `overflow: auto` on an element ## Updated/fixes - adapted height of buttons/status/input/table cells (from Keven input) - updated: default case for `main-area` is without the toolbar, exception is now `main-area--withToolbar` - increased speed of all animations/transitions - moved `.rounded` class to global layout - enhanced Flexbox documentation section (mention of `flex-item-noshrink`, `flex-item-nogrow` and `flex-self-vcenter` classes) ## Misc - added meta descriptions and keywords for all pages - bugfixes: IE11 JS fix (arrow functions are too modern for IE11, f\*\*\*) - added another stupid joke on 404 page - updated license # [1.2.0] - 2019-01-24 ## New - added login page/template - added class `main-area--noToolbar` (main area without toolbar) - added class `main-full` (full-height page for login) - splitted `pm-layout` into separate components - added list/documentation on each module in “How to use the Design System” ## Fixed - renamed status to badges (including classes) - tables (used more `extend`s to factorise) - add cache buster for JS file - bugfixes (links) # [1.1.0] - 2019-01-22 ## New - added sub navigation (buttons + IntersectionObserver stuff) - refactored group buttons - added classes `is-hover` and `is-active` for buttons - added exception for main content without toolbar (`main-area--noToolbar`) - styled buttons in left toolbar (PM, PVPN, Burger, etc.) ## Fixed - renamed svg sprite - updated modal code - fixed print version - reordered import to have helper working properly on `Hx` stuff - bugfixes # [1.0.0] - 2019-01-14 The design system for Proton projects is here. A quick look? ## Features of the Design System - A global reference for design: colors, SVG icons available, buttons styles, etc. - A documentation to share front-end best practices (conventions, DOs/DONTs, etc.) - Some sets of re-usable classes (helpers) for front-end: typographic/hiding/etc. helpers, positionning helpers, etc. - A mini Flexbox micro-framework for achieving most common positionning. - To be notified of updates, a RSS is available. ## Goals Here are goals of this tool: - Having a more consistent experience for users - Having a consistent reference for all the teams, and mutualizing some elements on all Proton projects in order to save time - Improving/simplifying work discussions between design and devs, and between all front-end team (same language, same conventions, same objectives) - Improving/simplifying Front-End maintenability/scalability, by not reinventing the wheel: the goal is to reduce drastically the CSS weight on PM V4 - target is to reduce it by half - Facilitating the onboarding of newcomers in the team. ## Roadmap This will be first the main place to implement design of the V4 of PM. Real assets will come quickly, and project will be updated on a regular basis. In a near future, there will be other projects (click on the VPN icon to get a nice message)
8,960
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/styles/LICENSE
Copyright 2021 Proton AG Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8,961
0
petrpan-code/ProtonMail/WebClients/packages
petrpan-code/ProtonMail/WebClients/packages/styles/package.json
{ "name": "@proton/styles", "description": "Proton Design system, for all Proton Projects: https://design-system.protontech.ch/", "keywords": [ "Design System", "CSS guidelines", "Flexbox", "a11y", "ProtonMail", "SVG" ], "license": "ISC", "author": "Proton AG", "main": "index.js", "scripts": { "build:reset": "sass --no-source-map --style=compressed scss/specifics/android-reset.scss assets/css/android-reset.css; sass --no-source-map --style=compressed scss/specifics/android-dark-mode.scss assets/css/android-dark-mode.css", "lint": "yarn run lint:scss && yarn run lint:svg", "lint:scss": "stylelint '**/*.scss'", "lint:svg": "./tasks/lint-svg.sh" }, "dependencies": { "inter-ui": "^3.19.3" }, "devDependencies": { "include-media": "^2.0.0", "prettier": "^3.1.0", "sass": "^1.69.5", "stylelint": "^15.11.0", "stylelint-config-prettier-scss": "^1.0.0", "stylelint-config-standard-scss": "^10.0.0", "stylelint-use-logical-spec": "^5.0.0", "svgo": "^3.0.4" } }
8,962
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets
petrpan-code/ProtonMail/WebClients/packages/styles/assets/css/android-dark-mode.css
:root { --background-norm: #262a33; --text-norm: white; }
8,963
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets
petrpan-code/ProtonMail/WebClients/packages/styles/assets/css/android-reset.css
article, aside, datalist, details, dialog, figure, footer, header, main, menu, nav, section { display: block; } audio, canvas, progress, video { display: inline-block; } abbr, mark, meter, time, output { display: inline; } html, body, blockquote, ul, ol, form, button, figure { margin: 0; padding: 0; } button, progress { border: 0; } p, ul, ol, dl, blockquote, pre, menu, td, th { font-size: 1em; line-height: 1.5; margin: 1.5em 0; } input, select, textarea, optgroup, button { font: inherit; } img, iframe { vertical-align: middle; } ul, ol, menu { padding-inline-start: 2em; } dd { margin-inline-start: 2em; } b, strong { font-weight: bold; } pre, code, kbd, samp { font-family: SFMono-Regular, Consolas, 'Liberation Mono', 'Menlo', monospace, monospace; font-size: 1em; } pre { white-space: pre-wrap; word-wrap: break-word; } mark { background-color: #ff0; color: #000; font-weight: bold; } small { font-size: 80%; } a:link img, a:visited img, img { border-style: none; } audio:not([controls]) { display: none; block-size: 0; } abbr[title] { border-block-end: dotted 1px; cursor: help; text-decoration: none; } code, pre, samp { white-space: pre-wrap; } code { line-height: 1; } dfn { font-style: italic; } body { color: var(--text-norm); line-height: 1.25; font-size: 1em; } h1, .h1 { display: block; font-size: 2em; margin: 0 0 0.625em 0; font-weight: var(--font-weight-normal); } h2, .h2 { display: block; font-size: 1.5em; margin: 0 0 0.8333333333em 0; font-weight: var(--font-weight-normal); } h3, .h3 { display: block; font-size: 1.1875em; margin: 0 0 1.0526315789em 0; font-weight: var(--font-weight-normal); } h4, .h4 { display: block; font-size: 1em; margin: 0 0 1.25em 0; font-weight: var(--font-weight-normal); } h5, .h5 { display: block; font-size: 0.8125em; margin: 0 0 1.5384615385em 0; font-weight: var(--font-weight-normal); } h6, .h6 { display: block; font-size: 0.75em; margin: 0 0 1.6666666667em 0; font-weight: var(--font-weight-normal); } :root { --background-norm: white; --text-norm: #262a33; } body { font-size: 100%; inline-size: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; padding: 1rem; line-height: 1.25; background-color: var(--background-norm); color: var(--text-norm); } q { quotes: none; } q::after, q::before { content: none; } a:focus { outline: dotted thin; } a:active, a:hover { outline: 0; } img { border: 0; max-inline-size: 100%; } table img { max-inline-size: none; } blockquote { padding-block: 0.2em !important; padding-inline: 1.2em !important; margin: 0 !important; border: 3px solid var(--primary) !important; border-width: 0 0 0 3px !important; } blockquote blockquote blockquote blockquote blockquote blockquote { padding: 0 !important; border: none !important; } [hidden] { display: none; }
8,964
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/3d-secure.svg
<svg xmlns="http://www.w3.org/2000/svg" width="90" height="44" fill="none" viewBox="0 0 90 44"> <path fill="#A4A9B5" fill-opacity=".6" d="M45.882 17.481C44.012 16.211 42.109 16 40.689 16c-3.252 0-5.095 1.869-5.095 4.276 0 1.833 1.314 2.953 3.42 3.358l.6.115c1.34.255 2.045.502 2.045 1.19 0 .802-.837 1.19-1.966 1.19-1.27 0-2.803-.388-4.081-1.393l-1.666 2.336c1.393 1.19 3.676 1.728 5.518 1.728 3.182 0 5.404-1.666 5.404-4.31 0-1.825-1.349-2.901-3.58-3.324l-.554-.106c-.979-.194-1.931-.45-1.931-1.216 0-.618.573-1.146 1.886-1.146.9 0 2.504.264 3.685 1.128l1.508-2.345zM52.037 25.785c-.573.538-1.234.697-1.878.697-.917 0-1.525-.476-1.596-1.384h5.722c.194-.45.352-1.27.352-1.843 0-2.133-1.569-3.57-3.746-3.57-3.623 0-5.025 3.191-5.025 5.324 0 2.195 1.525 3.791 4.108 3.791 1.604 0 2.83-.485 3.658-1.375l-1.595-1.64zm-1.314-3.755c.794 0 1.296.423 1.296 1.278v.044h-3.112c.318-.705.89-1.322 1.816-1.322zM64.136 22.039c-.68-1.473-2.001-2.337-3.844-2.337-2.962 0-4.972 2.266-4.972 4.964 0 2.38 1.763 4.108 4.302 4.108 1.499 0 2.777-.653 3.694-1.746l-1.975-1.622c-.467.538-1.005.802-1.613.802-.917 0-1.57-.714-1.57-1.728 0-1.207.812-2.221 1.993-2.221.582 0 1.172.23 1.551.934l2.434-1.154zM73.823 19.923h-2.786l-.961 4.584c-.23 1.093-.837 1.719-1.72 1.719-.651 0-1.092-.326-1.092-1.031 0-.142.009-.283.044-.45l1.031-4.822h-2.785l-.961 4.54a5.218 5.218 0 00-.133 1.12c0 2.124 1.526 3.217 3.694 3.217 2.098 0 3.976-.926 4.593-3.808l1.076-5.07zM77.47 24.066c.247-1.181 1.032-1.728 1.931-1.728.432 0 .917.088 1.287.238l.776-2.67c-.388-.133-.776-.221-1.155-.221-.917 0-1.693.326-2.31 1.164l.212-.926H75.6L73.76 28.57h2.768l.943-4.505zM87.299 25.785c-.574.538-1.235.697-1.878.697-.917 0-1.525-.476-1.596-1.384h5.721c.194-.45.353-1.27.353-1.843 0-2.133-1.57-3.57-3.746-3.57-3.624 0-5.025 3.191-5.025 5.324 0 2.195 1.525 3.791 4.108 3.791 1.604 0 2.83-.485 3.658-1.375l-1.596-1.64zm-1.314-3.755c.793 0 1.296.423 1.296 1.278v.044h-3.112c.317-.705.89-1.322 1.816-1.322z" /> <g> <path fill="#696F7D" fill-opacity=".6" d="M3.006 19.685c.644-.59 1.534-1.12 2.557-1.12.943 0 1.569.406 1.569 1.076 0 .793-.785 1.446-2.142 1.446H3.667l-.538 2.512h1.34c1.032 0 1.799.397 1.799 1.146 0 .837-.644 1.49-1.984 1.49-.987 0-1.85-.353-2.397-1.023L0 27.002c.785 1.128 2.23 1.79 4.214 1.79 3.138 0 4.972-1.8 4.972-3.994 0-.996-.52-1.843-1.508-2.31 1.481-.59 2.442-1.886 2.442-3.288 0-1.728-1.551-3.191-4.1-3.191-1.956 0-3.27.626-4.327 1.648l1.313 2.028zM16.288 22.709H11.06l-.502 2.353h5.236l.494-2.353zM24.096 16.23h-4.602l-2.627 12.34h5.325c4.9 0 7.598-3.164 7.598-7.21 0-2.812-2.142-5.13-5.694-5.13zm-.344 2.723c2.036 0 2.927 1.19 2.927 2.803 0 2.407-1.543 4.09-4.153 4.09h-2.062l1.463-6.893h1.825z" /> </g> </svg>
8,965
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/amex-safekey-colored.svg
<svg width="69" height="44" viewBox="0 0 69 44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M32.8172 25.8171C32.7039 24.5192 32.0553 23.8299 30.8547 23.8299C29.8818 23.8299 28.99 24.375 28.7951 25.8171H32.8172ZM26.7676 26.6508C26.7676 23.4132 29.087 22.2276 30.8713 22.2276C32.8015 22.2276 34.6505 23.3652 34.6505 26.8266V27.2914H28.7628C28.8438 28.8299 29.8009 29.5027 31.0658 29.5027C32.1849 29.5027 32.8335 29.1344 33.4828 28.5096L34.5369 29.535C33.6444 30.5126 32.4607 31.0735 30.9196 31.0735C28.7628 31.0735 26.7676 29.7756 26.7676 26.6508ZM21.8691 30.8971V23.9586H20.3769V22.3876H21.8691V21.5228C21.8691 20.0965 22.4694 18.9909 24.6591 18.9909C25.032 18.9909 25.6969 19.0547 25.8428 19.0709V20.5929C25.7132 20.5607 25.3888 20.5291 25.1616 20.5291C24.4483 20.5291 23.8643 20.7216 23.8643 21.635V22.3876H25.7456V23.9586H23.8643V30.8971H21.8691ZM16.6304 28.5257V26.6508C14.2461 26.9711 12.9811 27.5481 12.9811 28.4774C12.9811 29.1505 13.4512 29.5027 14.1814 29.5027C15.2035 29.5027 15.9978 29.1183 16.6304 28.5257ZM11.0186 28.8457C11.0186 27.0028 12.6083 25.769 16.6304 25.3204V25.064C16.6304 24.2147 16.1763 23.8464 15.2195 23.8464C14.0192 23.8464 13.0458 24.4234 12.3161 25.0001L11.3433 23.7658C12.2678 22.9329 13.711 22.2276 15.4953 22.2276C17.7984 22.2276 18.5929 23.3174 18.5929 25.3043V28.8141C18.5929 29.8397 18.6579 30.4648 18.8364 30.8971H16.8252C16.7119 30.5445 16.6304 30.2884 16.6304 29.8075C15.7545 30.689 14.7331 31.0254 13.4512 31.0254C12.0563 31.0254 11.0186 30.2562 11.0186 28.8457ZM0.184326 28.109L1.79008 27.2759C2.50309 28.6696 3.60611 29.3427 5.09827 29.3427C6.5581 29.3427 7.54753 28.878 7.54753 27.8042C7.54753 26.7786 6.8016 26.298 4.82274 25.721C2.50309 25.0481 0.638409 24.4234 0.638409 22.1634C0.638409 20.1446 2.30882 18.8141 4.74177 18.8141C7.10947 18.8141 8.50434 19.9682 9.23455 21.3619L7.75811 22.372C7.0451 21.1858 6.02305 20.641 4.72575 20.641C3.39553 20.641 2.63329 21.1222 2.63329 21.987C2.63329 23.0932 3.49252 23.4613 5.45507 24.0383C7.72608 24.6956 9.54241 25.4326 9.54241 27.6601C9.54241 29.5994 7.87171 31.1215 5.0176 31.1215C2.63329 31.1215 0.946272 29.9033 0.184326 28.109Z" fill="#4F5054" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M65.5713 23.6151C65.7243 23.6151 65.81 23.5647 65.81 23.4358C65.81 23.3127 65.7243 23.2562 65.5713 23.2562H65.3844V23.6151H65.5713ZM65.038 22.9537H65.5941C65.9405 22.9537 66.1443 23.1052 66.1443 23.4191C66.1443 23.6377 66.0482 23.7555 65.8889 23.8285L66.1733 24.3668H65.81L65.5541 23.8678H65.3844V24.3668H65.038V22.9537ZM66.5984 23.694C66.5984 23.0938 66.1502 22.634 65.5481 22.634C64.9579 22.634 64.516 23.0824 64.516 23.6825C64.516 24.2824 64.9579 24.7369 65.5656 24.7369C66.1558 24.7369 66.5984 24.2938 66.5984 23.694ZM64.2488 23.694C64.2488 22.9593 64.8218 22.3928 65.5656 22.3928C66.2979 22.3928 66.8656 22.9537 66.8656 23.6825C66.8656 24.4169 66.2926 24.9837 65.5481 24.9837C64.8108 24.9837 64.2488 24.4228 64.2488 23.694ZM55.5411 33.9421L55.8656 32.8365C56.1088 32.9003 56.5305 32.9803 57.1302 32.9803C58.0067 32.9803 58.4281 32.612 58.7689 31.7788L59.0928 30.9451L55.7843 22.4356H57.2604L59.7747 29.2786H59.807L62.3206 22.4356H63.7315L60.0665 31.8588C59.4825 33.349 58.817 34.1502 57.1468 34.1502C56.3846 34.1502 55.9142 34.0544 55.5411 33.9421ZM53.1891 25.9455C53.0758 24.4389 52.3459 23.4132 50.9347 23.4132C49.783 23.4132 48.6963 24.1989 48.5024 25.9455H53.1891ZM47.0743 26.6664C47.0743 23.5897 49.1504 22.2601 50.951 22.2601C52.9782 22.2601 54.5187 23.6699 54.5187 26.7308V27.0192H48.4691C48.5178 28.9263 49.6371 29.952 51.0483 29.952C52.2809 29.952 52.9782 29.4547 53.6266 28.5738L54.4375 29.2786C53.6429 30.4006 52.5568 31.0735 50.951 31.0735C48.9235 31.0735 47.0743 29.6147 47.0743 26.6664ZM37.1482 30.8971V19.0386H38.5757V25.1604L44.0087 19.0386H45.728L41.6084 23.5577L46.2957 30.8971H44.6576L40.6682 24.6314L38.5757 26.8905V30.8971H37.1482Z" fill="#8B8E8D" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M46.3258 14.3112C46.0852 14.3112 45.7186 14.3112 45.7186 14.3112V13.6832C45.7186 13.6832 46.2498 13.6832 46.3281 13.6832C46.5702 13.6832 46.7445 13.7714 46.7445 13.9857C46.7445 14.2008 46.5648 14.3112 46.3258 14.3112ZM46.5776 13.1168C46.3495 13.1168 46.0342 13.1168 45.7186 13.1168C45.1382 13.1168 44.5628 13.1168 44.5628 13.1168V15.8826H45.7186V14.9008C45.7186 14.9008 46.1454 14.9008 46.4741 14.9008C46.8237 14.9008 47.1221 14.8742 47.3932 14.7617C47.7091 14.6307 47.9395 14.4053 47.9395 13.9959C47.9395 13.2419 47.2671 13.1168 46.5776 13.1168ZM36.1992 13.1168H39.0818V13.6832H37.4737V14.2008H39.0818V14.7359H37.4737V15.2765H39.0818V15.8826H36.1992V13.1168ZM26.2233 14.7118L26.6572 13.8198L27.0897 14.7118H26.2233ZM25.9143 13.1168L24.4814 15.8826H25.6568L25.9202 15.3381H27.3931L27.6579 15.8826H28.9027L27.4699 13.1168H25.9143ZM32.4176 13.1168H33.5717V15.8826H32.2432L30.5405 14.3218V15.8826H29.3859V13.1168H30.7001L32.4176 14.6837V13.1168ZM50.3431 14.3613C50.1044 14.3613 49.6577 14.3613 49.6577 14.3613V13.7061C49.6577 13.7061 50.2678 13.7061 50.3455 13.7061C50.5893 13.7061 50.7631 13.8221 50.7631 14.0369C50.7631 14.252 50.5839 14.3613 50.3431 14.3613ZM51.9563 13.9959C51.9563 13.2419 51.2845 13.1168 50.5961 13.1168C50.3541 13.1168 50.0029 13.1168 49.6577 13.1168C49.0725 13.1168 48.5033 13.1168 48.5033 13.1168V15.8826H49.6577V14.8548H49.7505L50.6269 15.8826H52.2484L51.0695 14.7933C51.6354 14.6984 51.9563 14.4053 51.9563 13.9959ZM63.5391 15.0585C63.5391 15.3401 63.3069 15.9708 61.8823 15.9708C60.7099 15.9708 60.2834 15.7366 60.0328 15.5977L60.4074 15.1033C60.8977 15.2929 61.2806 15.3014 61.5591 15.2982C61.8562 15.2941 62.1327 15.2399 62.1353 15.0594C62.1395 14.8707 61.9512 14.8258 61.5048 14.7921C61.0904 14.7611 60.1823 14.6471 60.1757 13.9959C60.1683 13.3621 60.8499 13.0535 61.8295 13.0535C62.3619 13.0535 63.0165 13.1338 63.4789 13.3796L63.0809 13.8658C62.7199 13.7401 62.442 13.7131 62.1638 13.7131C61.8622 13.7131 61.5522 13.7665 61.5522 13.9725C61.5522 14.1794 61.8731 14.1861 62.1006 14.2122C62.394 14.2465 62.7697 14.252 63.074 14.3854C63.4359 14.5451 63.5391 14.7652 63.5391 15.0585ZM59.6561 15.0585C59.6561 15.3401 59.4221 15.9708 57.9976 15.9708C56.8257 15.9708 56.455 15.7366 56.2047 15.5977L56.5235 15.1033C57.0129 15.2929 57.3976 15.3014 57.6755 15.2982C57.9727 15.2941 58.2497 15.2399 58.2509 15.0594C58.2544 14.8707 58.0661 14.8258 57.6194 14.7921C57.2069 14.7611 56.3536 14.6471 56.3473 13.9959C56.3396 13.3621 56.9648 13.0535 57.9466 13.0535C58.4772 13.0535 59.1329 13.1338 59.5941 13.3796L59.1979 13.8658C58.8349 13.7401 58.5584 13.7131 58.2793 13.7131C57.9774 13.7131 57.6687 13.7665 57.6687 13.9725C57.6687 14.1794 57.9884 14.1861 58.2173 14.2122C58.5098 14.2465 58.8856 14.252 59.1911 14.3854C59.5523 14.5451 59.6561 14.7652 59.6561 15.0585ZM52.7823 13.1168H55.6643V13.6832H54.0567V14.2008H55.6643V14.7359H54.0567V15.2765H55.6643V15.8826H52.7823V13.1168ZM42.6688 14.4557L43.9652 15.8826H42.5893L41.8321 14.9958L41.0779 15.8826H39.7011L40.9998 14.4557L39.8319 13.1168H41.2297L41.8321 13.8544L42.4374 13.1168H43.8353L42.6688 14.4557ZM9.69183 13.1168L10.3686 15.8826H9.21016L8.82785 14.3153L8.08726 15.8826H7.35645L6.61527 14.3153L6.23356 15.8826H5.14654L5.82366 13.1168H7.06372L7.72334 14.4841L8.3797 13.1168H9.69183ZM2.35353 14.7118L2.78656 13.8198L3.21899 14.7118H2.35353ZM2.04418 13.1168L0.611938 15.8826H1.78615L2.05012 15.3381H3.52329L3.78726 15.8826H5.03325L3.59981 13.1168H2.04418ZM10.982 13.1168H13.8643V13.6832H12.2576V14.2008H13.8643V14.7359H12.2576V15.2765H13.8643V15.8826H10.982V13.1168ZM18.95 15.8826H20.1728V13.1168H18.95V15.8826ZM23.0412 13.0508C23.5549 13.0508 23.9372 13.125 24.1466 13.2035V13.8813C23.9327 13.828 23.6308 13.7635 23.2423 13.7635C23.0501 13.7635 22.1452 13.7925 22.1452 14.5222C22.1452 15.2513 23.0501 15.2587 23.2423 15.2587C23.5973 15.2587 23.9327 15.1945 24.1466 15.1397V15.8198C23.9372 15.8972 23.5549 15.9708 23.0412 15.9708C22.4364 15.9708 20.8662 15.8096 20.8662 14.5222C20.8662 13.2346 22.4364 13.0508 23.0412 13.0508ZM16.5502 14.3613C16.3109 14.3613 15.8654 14.3613 15.8654 14.3613V13.7061C15.8654 13.7061 16.4746 13.7061 16.5532 13.7061C16.7958 13.7061 16.9699 13.8221 16.9699 14.0369C16.9699 14.252 16.7896 14.3613 16.5502 14.3613ZM18.1637 13.9959C18.1637 13.2419 17.4916 13.1168 16.8029 13.1168C16.5612 13.1168 16.2112 13.1168 15.8654 13.1168C15.2796 13.1168 14.7102 13.1168 14.7102 13.1168V15.8826H15.8654V14.8548H15.9573L16.8344 15.8826H18.4564L17.2766 14.7933C17.8419 14.6984 18.1637 14.4053 18.1637 13.9959Z" fill="#016FD0" /> </svg>
8,966
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/amex-safekey.svg
<svg xmlns="http://www.w3.org/2000/svg" width="68" height="44" fill="none" viewBox="0 0 68 44"> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M32.816 25.817c-.113-1.298-.762-1.987-1.963-1.987-.972 0-1.864.545-2.06 1.987h4.023zm-6.05.834c0-3.238 2.32-4.423 4.104-4.423 1.93 0 3.78 1.137 3.78 4.599v.464h-5.888c.08 1.539 1.038 2.212 2.303 2.212 1.119 0 1.767-.369 2.416-.993l1.055 1.025c-.893.978-2.077 1.538-3.618 1.538-2.156 0-4.152-1.297-4.152-4.422zm-4.898 4.246V23.96h-1.492v-1.571h1.492v-.865c0-1.427.6-2.532 2.79-2.532.373 0 1.038.064 1.184.08v1.522a3.76 3.76 0 00-.682-.064c-.713 0-1.297.193-1.297 1.106v.753h1.881v1.57h-1.88v6.94h-1.996zm-5.239-2.371V26.65c-2.384.32-3.65.897-3.65 1.826 0 .674.471 1.026 1.201 1.026 1.022 0 1.816-.385 2.45-.977zm-5.612.32c0-1.843 1.59-3.077 5.612-3.526v-.256c0-.85-.454-1.218-1.41-1.218-1.201 0-2.175.577-2.904 1.154l-.973-1.234c.925-.833 2.368-1.538 4.152-1.538 2.303 0 3.098 1.09 3.098 3.076v3.51c0 1.026.065 1.65.243 2.083h-2.011c-.113-.352-.195-.609-.195-1.09-.876.882-1.897 1.218-3.179 1.218-1.395 0-2.433-.769-2.433-2.18zM.183 28.109l1.606-.833c.713 1.394 1.816 2.067 3.308 2.067 1.46 0 2.45-.465 2.45-1.539 0-1.025-.747-1.506-2.725-2.083-2.32-.673-4.185-1.298-4.185-3.558 0-2.018 1.67-3.349 4.104-3.349 2.367 0 3.762 1.154 4.492 2.548l-1.476 1.01c-.713-1.186-1.735-1.731-3.032-1.731-1.33 0-2.093.481-2.093 1.346 0 1.106.86 1.474 2.822 2.051 2.27.658 4.087 1.395 4.087 3.622 0 1.94-1.67 3.462-4.525 3.462-2.384 0-4.07-1.219-4.833-3.013z" clip-rule="evenodd" /> <path fill="#A4A9B5" fill-opacity=".6" fill-rule="evenodd" d="M65.57 23.615c.153 0 .239-.05.239-.18 0-.122-.086-.179-.239-.179h-.187v.36h.187zm-.533-.661h.556c.346 0 .55.151.55.465 0 .219-.096.337-.255.41l.284.538h-.363l-.256-.5h-.17v.5h-.346v-1.413zm1.56.74c0-.6-.448-1.06-1.05-1.06-.59 0-1.032.448-1.032 1.049 0 .6.442 1.054 1.05 1.054.59 0 1.032-.443 1.032-1.043zm-2.35 0c0-.735.573-1.301 1.317-1.301.733 0 1.3.56 1.3 1.29 0 .734-.573 1.3-1.317 1.3-.737 0-1.3-.56-1.3-1.289zM55.54 33.942l.324-1.105c.244.063.665.143 1.265.143.876 0 1.298-.368 1.639-1.201l.324-.834-3.309-8.51h1.476l2.514 6.844h.033l2.513-6.843h1.411l-3.665 9.423c-.584 1.49-1.25 2.291-2.92 2.291-.762 0-1.232-.096-1.605-.208zm-2.352-7.997c-.113-1.506-.843-2.532-2.255-2.532-1.151 0-2.238.786-2.432 2.532h4.687zm-6.115.721c0-3.076 2.076-4.406 3.877-4.406 2.027 0 3.567 1.41 3.567 4.47v.29h-6.05c.05 1.906 1.169 2.932 2.58 2.932 1.233 0 1.93-.497 2.578-1.378l.811.705c-.794 1.122-1.88 1.794-3.486 1.794-2.028 0-3.877-1.458-3.877-4.407zm-9.926 4.231V19.04h1.428v6.121l5.432-6.121h1.72l-4.12 4.519 4.688 7.34h-1.639l-3.99-6.267-2.091 2.26v4.006h-1.428z" clip-rule="evenodd" /> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M46.325 14.311h-.608v-.628h.61c.242 0 .416.088.416.303s-.18.325-.419.325zm.251-1.194H44.562v2.766h1.155V14.9h.756c.35 0 .648-.027.919-.14.316-.13.546-.356.546-.765 0-.754-.672-.88-1.362-.88zm-10.378 0h2.883v.566h-1.609v.518h1.609v.535h-1.609v.54h1.609v.607h-2.883v-2.766zm-9.976 1.595l.434-.892.432.892h-.866zm-.309-1.595l-1.433 2.766h1.176l.263-.545h1.473l.265.545H28.9l-1.432-2.766h-1.556zm6.503 0h1.155v2.766h-1.329l-1.703-1.561v1.56h-1.154v-2.765h1.314l1.717 1.567v-1.567zm17.926 1.244h-.685v-.655h.687c.244 0 .418.116.418.33 0 .216-.18.325-.42.325zm1.613-.365c0-.754-.672-.88-1.36-.88h-2.093v2.767h1.154v-1.028h.093l.877 1.028h1.621l-1.179-1.09c.566-.095.887-.388.887-.797zm11.583 1.063c0 .281-.232.912-1.657.912-1.172 0-1.599-.234-1.85-.373l.375-.495c.49.19.873.198 1.152.195.297-.004.573-.058.576-.239.004-.188-.184-.233-.63-.267-.415-.03-1.323-.145-1.33-.796-.007-.634.675-.943 1.654-.943.533 0 1.187.08 1.65.327l-.398.486a2.613 2.613 0 00-.917-.153c-.302 0-.612.054-.612.26 0 .206.32.213.548.24.294.034.67.039.974.172.362.16.465.38.465.674zm-3.883 0c0 .281-.234.912-1.659.912-1.172 0-1.542-.234-1.793-.373l.32-.495c.489.19.873.198 1.151.195.297-.004.575-.058.576-.239.003-.188-.185-.233-.632-.267-.412-.03-1.266-.145-1.272-.796-.008-.634.618-.943 1.6-.943.53 0 1.186.08 1.647.327l-.396.486a2.625 2.625 0 00-.919-.153c-.302 0-.61.054-.61.26 0 .206.32.213.548.24.293.034.668.039.974.172.361.16.465.38.465.674zm-6.874-1.942h2.882v.566h-1.607v.518h1.607v.535h-1.607v.54h1.607v.607h-2.882v-2.766zm-10.113 1.339l1.296 1.427h-1.376l-.757-.887-.754.887H39.7l1.299-1.427-1.168-1.34h1.397l.603.738.605-.737h1.398l-1.166 1.339zM9.69 13.116l.676 2.767H9.21l-.382-1.568-.741 1.568h-.73l-.742-1.568-.382 1.568H5.145l.677-2.766h1.24l.66 1.367.656-1.367h1.313zm-7.339 1.596l.433-.892.433.892h-.866zm-.309-1.595L.611 15.883h1.174l.264-.545h1.473l.264.545h1.246l-1.433-2.766H2.043zm8.938 0h2.882v.566h-1.607v.518h1.607v.535h-1.607v.54h1.607v.607h-2.882v-2.766zm7.968 2.766h1.223v-2.766h-1.223v2.766zm4.09-2.832c.515 0 .897.074 1.106.152v.678a3.62 3.62 0 00-.904-.117c-.192 0-1.097.029-1.097.758 0 .73.905.737 1.097.737.355 0 .69-.065.904-.12v.68c-.21.078-.591.152-1.105.152-.605 0-2.175-.161-2.175-1.449 0-1.287 1.57-1.471 2.175-1.471zm-6.49 1.31h-.685v-.655h.688c.243 0 .417.116.417.33 0 .216-.18.325-.42.325zm1.614-.365c0-.754-.673-.88-1.361-.88h-2.093v2.767h1.155v-1.028h.092l.877 1.028h1.622l-1.18-1.09c.566-.095.888-.388.888-.797z" clip-rule="evenodd" /> </svg>
8,967
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/discover-protectbuy-colored.svg
<svg width="141" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M45.835 38.5v-33h-.917v33h.917Z" fill="#A8A9AD" /> <path d="M60.867 20.172c0 1.674-.797 3.02-2.172 3.675-.58.273-1.123.419-2.516.419h-1.394v4.658h-2.534V16.278h3.312c2.136 0 2.788.218 3.494.618 1.176.655 1.81 1.82 1.81 3.276Zm-2.77.054c0-1.183-.633-1.892-1.701-1.892h-1.61v3.857h1.32c1.032 0 1.34-.127 1.684-.655.217-.345.307-.71.307-1.31Zm9.623-.637-.67 2.148a1.363 1.363 0 0 0-.705-.182c-.543 0-1.032.254-1.484.782v6.587h-2.426v-6.223c0-1.256-.145-2.202-.344-2.73l2.172-.582c.218.382.344.8.38 1.329.525-.71 1.267-1.329 2.172-1.329.362 0 .525.037.905.2Zm8.32 4.64c0 1.602-.362 2.694-1.158 3.603-.706.8-1.63 1.292-3.06 1.292-2.515 0-4.162-1.892-4.162-4.822s1.665-4.876 4.163-4.876c1.321 0 2.353.455 3.15 1.4.741.874 1.067 1.893 1.067 3.403Zm-2.642-.018c0-1.255-.163-2.074-.49-2.493-.234-.309-.615-.491-1.049-.491-.58 0-1.05.364-1.249.946-.163.492-.253 1.147-.253 2.075 0 1.073.109 1.874.308 2.347.217.51.76.764 1.23.764 1.05 0 1.503-.946 1.503-3.148Zm9.116 4.513c-.706.291-1.34.418-1.973.418-1.23 0-2.208-.546-2.498-1.364-.145-.4-.163-.583-.163-1.438v-5.058h-.923v-1.674h.923c0-.91 0-1.51.09-2.202l2.462-.619c-.09.855-.145 1.874-.145 2.82h2.172l-.615 1.675h-1.556v4.676c0 1.183.217 1.492 1.05 1.492.217 0 .434-.054.868-.182l.308 1.456Zm8.555-3.694H85.71v.073c0 1.437.706 2.256 1.955 2.256.833 0 1.611-.31 2.353-.928l.941 1.456c-1.068.873-2.19 1.292-3.493 1.292-2.66 0-4.38-1.893-4.38-4.822 0-1.674.344-2.784 1.158-3.694.76-.855 1.684-1.256 2.914-1.256 1.068 0 2.082.364 2.68.983.85.873 1.23 2.129 1.23 4.076v.564Zm-2.516-1.783v-.11c0-.69-.072-1.055-.29-1.4-.235-.364-.579-.546-1.068-.546-.922 0-1.447.728-1.447 2.02v.036h2.805Zm10.781 4.622c-.362.364-.525.491-.85.691-.652.382-1.376.582-2.263.582-2.552 0-4.036-1.783-4.036-4.803 0-2.148.814-3.567 1.9-4.313.616-.418 1.52-.691 2.3-.691.614 0 1.284.145 1.791.418.344.182.507.31.905.655l-1.177 1.601c-.488-.454-1.013-.727-1.466-.727-1.086 0-1.574.946-1.574 3.13 0 1.219.163 1.946.47 2.347.254.327.67.527 1.086.527.561 0 1.068-.236 1.665-.764l.145-.127 1.104 1.474Zm6.202.855c-.705.291-1.339.418-1.972.418-1.231 0-2.209-.546-2.498-1.364-.145-.4-.163-.583-.163-1.438v-5.058h-.923v-1.674h.923c0-.91 0-1.51.09-2.202l2.462-.619a28.12 28.12 0 0 0-.145 2.82h2.172l-.615 1.675h-1.557v4.676c0 1.183.217 1.492 1.05 1.492.217 0 .434-.054.869-.182l.307 1.456Z" fill="#E7792B" /> <path d="M116.022 25.394c0 1.747-1.086 3.385-3.294 3.494-.398.018-.923.036-1.611.036h-3.964V16.278h4.254c1.538 0 2.335.236 3.095.91.706.618 1.032 1.346 1.032 2.256 0 .855-.29 1.583-.851 2.11-.362.346-.579.474-1.158.656 1.556.454 2.497 1.528 2.497 3.184Zm-2.859-.31c0-.727-.362-1.382-.924-1.546-.307-.091-.506-.11-.977-.11h-1.575v3.422h1.647c.525 0 .905-.073 1.177-.292.38-.29.652-.873.652-1.473Zm-.272-5.203c0-.528-.271-1.092-.724-1.274-.217-.091-.489-.164-1.05-.164h-1.466v2.893h1.502c.598 0 .869-.054 1.086-.164.344-.182.652-.782.652-1.291Zm12.7 8.315-1.72.983a2.139 2.139 0 0 1-.724-.91c-.597.582-1.466.892-2.443.892-1.303 0-2.425-.62-2.733-1.51-.145-.42-.199-.91-.199-1.857v-5.968l2.389-.455v5.987c0 .837.072 1.273.199 1.528.127.255.489.437.851.437.597 0 1.321-.437 1.502-.892v-6.55l2.317-.492v7.115c0 .619.199 1.255.561 1.692Zm9.641-8.588-3.367 9.462c-.633 1.801-1.104 2.584-1.773 3.075-.616.455-1.412.746-2.245.855l-.832-1.601c.525-.146 1.14-.364 1.502-.619.272-.2.489-.455.688-.764.235-.382.308-.546.525-1.092h-.616c-.289-.873-.778-2.33-.868-2.62l-2.191-6.55 2.48-.292 1.611 5.44c.145.547.452 1.802.489 1.93 0-.055.181-1.038.289-1.493.073-.309.217-.855.362-1.292l1.394-4.44h2.552ZM138.063 22.1h-.448a10.546 10.546 0 0 1-.176-.31c-.187-.342-.244-.434-.312-.464a.196.196 0 0 0-.06-.017v.792h-.372v-1.897h.703c.334 0 .554.223.554.556 0 .284-.187.52-.421.524.038.03.055.047.079.08.109.136.453.737.453.737Zm-.51-1.331c0-.118-.046-.2-.136-.232a.677.677 0 0 0-.214-.028h-.136v.514h.128c.163 0 .233-.017.285-.063a.26.26 0 0 0 .073-.191Z" fill="#A8A9AD" /> <path d="M138.063 22.1h-.448a10.546 10.546 0 0 1-.176-.31c-.187-.342-.244-.434-.312-.464a.196.196 0 0 0-.06-.017v.792h-.372v-1.897h.703c.334 0 .554.223.554.556 0 .284-.187.52-.421.524.038.03.055.047.079.08.109.136.453.737.453.737Zm-.51-1.331c0-.118-.046-.2-.136-.232a.677.677 0 0 0-.214-.028h-.136v.514h.128c.163 0 .233-.017.285-.063a.26.26 0 0 0 .073-.191Z" fill="#A8A9AD" /> <path d="M137.334 22.858c.917 0 1.659-.746 1.659-1.668 0-.92-.742-1.668-1.659-1.668-.916 0-1.659.747-1.659 1.669 0 .92.743 1.668 1.659 1.668Zm0-.379a1.285 1.285 0 0 1-1.282-1.288c0-.712.574-1.29 1.282-1.29.708 0 1.282.578 1.282 1.29 0 .711-.574 1.288-1.282 1.288Z" fill="#A8A9AD" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M.001 10v25h38.8V10H.001Z" fill="#fff" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.585 34.5H38.5V22.583S27.116 30.816 4.585 34.5Z" fill="#E7792B" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M38.301 10.5H.501v24h37.8v-24ZM.001 10v25h38.8V10H.001Z" fill="#1A1918" /> <path d="M20.733 23.24c1.634 0 2.96-1.308 2.96-2.92 0-1.613-1.326-2.92-2.96-2.92s-2.96 1.307-2.96 2.92c0 1.612 1.326 2.92 2.96 2.92Z" fill="url(#a)" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.212 17.52H2.646v5.399h1.558c.828 0 1.427-.193 1.952-.623.624-.51.993-1.278.993-2.072 0-1.594-1.206-2.703-2.937-2.703Zm1.247 4.056c-.336.299-.771.429-1.46.429h-.287v-3.57h.286c.69 0 1.108.122 1.46.437.37.324.592.827.592 1.343 0 .519-.222 1.037-.591 1.36ZM7.64 17.52h1.067v5.399H7.64V17.52ZM11.317 19.592c-.64-.234-.829-.388-.829-.68 0-.34.335-.598.795-.598.32 0 .583.13.86.437l.56-.721a2.413 2.413 0 0 0-1.608-.599c-.969 0-1.707.664-1.707 1.547 0 .744.344 1.124 1.346 1.48.418.146.63.243.738.308.213.137.32.332.32.558 0 .438-.352.762-.829.762-.509 0-.918-.251-1.164-.72l-.69.655c.492.712 1.082 1.027 1.895 1.027 1.108 0 1.886-.727 1.886-1.772 0-.857-.36-1.246-1.573-1.684ZM13.227 20.223c0 1.587 1.263 2.817 2.888 2.817.46 0 .853-.089 1.338-.314v-1.24c-.427.422-.805.592-1.288.592-1.075 0-1.838-.77-1.838-1.863 0-1.036.787-1.853 1.788-1.853.509 0 .894.179 1.338.607V17.73c-.468-.234-.854-.331-1.313-.331-1.617 0-2.913 1.255-2.913 2.824ZM25.914 21.146l-1.459-3.625H23.29l2.322 5.536h.574l2.364-5.536h-1.157l-1.478 3.625ZM29.032 22.919h3.026v-.914h-1.96v-1.457h1.888v-.914h-1.888v-1.199h1.96v-.914h-3.026v5.398ZM36.284 19.114c0-1.01-.706-1.593-1.937-1.593h-1.582v5.398h1.066V20.75h.14l1.476 2.169h1.313l-1.723-2.274c.804-.162 1.247-.704 1.247-1.53Zm-2.141.892h-.312V18.37h.328c.665 0 1.026.275 1.026.8 0 .543-.36.835-1.042.835ZM36.965 17.724c0-.095-.066-.147-.182-.147h-.155v.474h.115v-.183l.135.184h.14l-.158-.196c.068-.018.105-.067.105-.133Zm-.203.064h-.019v-.124h.02c.058 0 .087.02.087.061 0 .042-.03.063-.088.063Z" fill="#1A1918" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M36.806 17.4a.414.414 0 1 0 0 .827.415.415 0 0 0 .414-.413.415.415 0 0 0-.414-.414Zm-.002.753a.337.337 0 0 1-.334-.339c0-.189.149-.34.334-.34.183 0 .332.155.332.34 0 .187-.149.34-.332.34Z" fill="#1A1918" /> <defs> <radialGradient id="a" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="matrix(6.72376 0 0 6.63371 23.692 23.24)" > <stop stop-color="#F59900" /> <stop offset=".21" stop-color="#F39501" /> <stop offset=".908" stop-color="#CE3C0B" /> <stop offset="1" stop-color="#A4420A" /> </radialGradient> </defs> </svg>
8,968
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/discover-protectbuy.svg
<svg xmlns="http://www.w3.org/2000/svg" width="140" height="44" fill="none" viewBox="0 0 140 44"> <defs /> <path fill="#A4A9B5" fill-opacity=".6" d="M45.83 38.5v-33h-.91v33h.91z" /> <path fill="#696F7D" fill-opacity=".6" d="M60.87 20.17c0 1.68-.8 3.02-2.18 3.68a5.2 5.2 0 01-2.51.42h-1.4v4.65h-2.53V16.28h3.31c2.14 0 2.79.22 3.5.62a3.56 3.56 0 011.8 3.27zm-2.77.06c0-1.19-.64-1.9-1.7-1.9h-1.62v3.86h1.33c1.03 0 1.33-.13 1.68-.65.22-.35.3-.71.3-1.31zm9.62-.64l-.67 2.15a1.36 1.36 0 00-.7-.19c-.55 0-1.04.26-1.5.79v6.58h-2.42V22.7c0-1.25-.14-2.2-.34-2.73l2.17-.58a3 3 0 01.38 1.33c.53-.71 1.27-1.33 2.17-1.33.37 0 .53.04.9.2zm8.32 4.64c0 1.6-.36 2.7-1.16 3.6-.7.8-1.63 1.3-3.06 1.3-2.51 0-4.16-1.9-4.16-4.83s1.66-4.87 4.16-4.87c1.32 0 2.35.45 3.15 1.4.74.87 1.07 1.89 1.07 3.4zm-2.64-.02c0-1.25-.17-2.07-.5-2.5a1.3 1.3 0 00-1.04-.48c-.58 0-1.05.36-1.25.94-.16.5-.25 1.15-.25 2.08 0 1.07.1 1.87.3 2.34.22.51.76.77 1.23.77 1.05 0 1.5-.95 1.5-3.15zm9.11 4.51c-.7.3-1.34.42-1.97.42-1.23 0-2.2-.54-2.5-1.36-.14-.4-.16-.58-.16-1.44v-5.06h-.92v-1.67h.92c0-.91 0-1.51.09-2.2l2.46-.62c-.09.85-.14 1.87-.14 2.82h2.17l-.62 1.67H80.3v4.68c0 1.18.21 1.49 1.05 1.49.21 0 .43-.05.86-.18l.31 1.45zm8.56-3.69H85.7v.07c0 1.44.7 2.26 1.95 2.26.84 0 1.62-.31 2.36-.93l.94 1.46a5.3 5.3 0 01-3.5 1.29c-2.65 0-4.37-1.9-4.37-4.82 0-1.68.34-2.79 1.15-3.7a3.63 3.63 0 012.92-1.25c1.07 0 2.08.36 2.68.98.85.87 1.23 2.13 1.23 4.08v.56zm-2.52-1.78v-.11c0-.7-.07-1.06-.29-1.4-.23-.37-.58-.55-1.07-.55-.92 0-1.44.73-1.44 2.02v.04h2.8zm10.78 4.62c-.36.36-.52.49-.85.69-.65.38-1.37.58-2.26.58-2.55 0-4.04-1.78-4.04-4.8 0-2.15.82-3.57 1.9-4.31.62-.42 1.52-.7 2.3-.7.62 0 1.29.15 1.8.42.34.19.5.31.9.66L97.9 22c-.49-.46-1.01-.73-1.46-.73-1.09 0-1.58.95-1.58 3.13 0 1.22.17 1.95.47 2.35.26.33.67.53 1.09.53.56 0 1.07-.24 1.66-.77l.15-.13 1.1 1.48zm6.2.85c-.7.3-1.33.42-1.97.42-1.23 0-2.2-.54-2.5-1.36-.14-.4-.16-.58-.16-1.44v-5.06h-.92v-1.67h.92c0-.91 0-1.51.1-2.2l2.45-.62c-.09.85-.14 1.87-.14 2.82h2.17l-.61 1.67h-1.56v4.68c0 1.18.22 1.49 1.05 1.49.22 0 .43-.05.87-.18l.3 1.45z" /> <path fill="#A4A9B5" fill-opacity=".6" d="M116.02 25.4c0 1.74-1.08 3.38-3.3 3.49-.4.02-.92.03-1.6.03h-3.97V16.28h4.26c1.53 0 2.33.23 3.1.9.7.63 1.02 1.35 1.02 2.26a2.8 2.8 0 01-.85 2.11 2.4 2.4 0 01-1.16.66c1.56.45 2.5 1.53 2.5 3.18zm-2.86-.32c0-.72-.36-1.38-.92-1.54-.3-.1-.5-.11-.98-.11h-1.57v3.42h1.64c.53 0 .9-.07 1.18-.3.38-.28.65-.86.65-1.47zm-.27-5.2c0-.53-.27-1.1-.72-1.27-.22-.1-.5-.17-1.05-.17h-1.47v2.9h1.5c.6 0 .87-.06 1.09-.17.34-.18.65-.78.65-1.29zm12.7 8.32l-1.72.98c-.3-.22-.56-.53-.72-.91-.6.58-1.47.9-2.45.9-1.3 0-2.42-.63-2.73-1.52a5.6 5.6 0 01-.2-1.86v-5.96l2.39-.46v5.99c0 .83.07 1.27.2 1.53.13.25.49.43.85.43.6 0 1.32-.43 1.5-.89v-6.55l2.32-.5v7.12c0 .62.2 1.26.56 1.7zm9.64-8.6l-3.37 9.47c-.63 1.8-1.1 2.58-1.77 3.07-.62.46-1.41.75-2.24.86l-.84-1.6a5.43 5.43 0 001.5-.62c.28-.2.5-.45.7-.76.23-.39.3-.55.52-1.1h-.62l-.87-2.62-2.19-6.55 2.48-.29 1.62 5.44.48 1.93a16.6 16.6 0 01.65-2.78l1.4-4.44h2.55zM138.06 22.1h-.45l-.17-.31c-.19-.34-.25-.43-.31-.46a.2.2 0 00-.06-.02v.8h-.38v-1.9h.7c.34 0 .56.22.56.55 0 .28-.19.52-.42.52l.08.08c.1.14.45.74.45.74zm-.5-1.33c0-.12-.05-.2-.14-.23a.68.68 0 00-.22-.03h-.13v.51h.12c.17 0 .24-.01.29-.06a.26.26 0 00.07-.2z" /> <path fill="#A8A9AD" fill-opacity=".6" d="M138.06 22.1h-.45l-.17-.31c-.19-.34-.25-.43-.31-.46a.2.2 0 00-.06-.02v.8h-.38v-1.9h.7c.34 0 .56.22.56.55 0 .28-.19.52-.42.52l.08.08c.1.14.45.74.45.74zm-.5-1.33c0-.12-.05-.2-.14-.23a.68.68 0 00-.22-.03h-.13v.51h.12c.17 0 .24-.01.29-.06a.26.26 0 00.07-.2z" /> <path fill="#A4A9B5" fill-opacity=".6" d="M137.33 22.86c.92 0 1.66-.75 1.66-1.67 0-.92-.74-1.67-1.66-1.67-.91 0-1.66.75-1.66 1.67 0 .92.75 1.67 1.66 1.67zm0-.38c-.7 0-1.28-.58-1.28-1.29 0-.71.57-1.29 1.28-1.29.71 0 1.28.58 1.28 1.3 0 .7-.57 1.28-1.28 1.28z" /> <path fill="url(#paint0_radial)" d="M20.73 23.24c1.64 0 2.96-1.3 2.96-2.92a2.94 2.94 0 00-2.96-2.92 2.94 2.94 0 00-2.96 2.92 2.94 2.94 0 002.96 2.92z" /> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M4.21 17.52H2.64v5.4H4.2c.83 0 1.43-.2 1.95-.62a2.7 2.7 0 001-2.08c0-1.59-1.2-2.7-2.94-2.7zm1.25 4.06c-.34.3-.77.42-1.46.42H3.7v-3.56H4c.69 0 1.1.12 1.46.43a1.84 1.84 0 010 2.7zM7.64 17.52H8.7v5.4H7.64v-5.4zM11.32 19.6c-.64-.24-.83-.4-.83-.69 0-.34.33-.6.8-.6.31 0 .57.13.85.44l.56-.72c-.46-.4-1-.6-1.6-.6-.97 0-1.71.66-1.71 1.55 0 .74.34 1.12 1.34 1.48.42.14.63.24.74.3.21.14.32.34.32.56 0 .44-.35.77-.83.77-.5 0-.92-.26-1.16-.72l-.7.65c.5.71 1.09 1.03 1.9 1.03 1.11 0 1.89-.73 1.89-1.77 0-.86-.36-1.25-1.57-1.69zM13.23 20.22a2.81 2.81 0 002.88 2.82c.46 0 .86-.09 1.34-.31v-1.24c-.43.42-.8.59-1.29.59a1.78 1.78 0 01-1.83-1.86 1.8 1.8 0 011.78-1.86c.51 0 .9.18 1.34.6v-1.23a2.86 2.86 0 00-4.23 2.5zM25.91 21.15l-1.46-3.63H23.3l2.32 5.54h.57l2.37-5.54h-1.16l-1.48 3.63zM29.03 22.92h3.03V22H30.1v-1.45h1.88v-.92H30.1v-1.2h1.96v-.9h-3.03v5.39zM36.28 19.11c0-1-.7-1.59-1.93-1.59h-1.59v5.4h1.07v-2.17h.14l1.48 2.17h1.3l-1.71-2.28c.8-.16 1.24-.7 1.24-1.53zm-2.14.9h-.31v-1.64h.33c.66 0 1.02.28 1.02.8 0 .54-.36.84-1.04.84zM36.96 17.72c0-.1-.06-.14-.18-.14h-.15v.47h.11v-.18l.14.18h.14l-.16-.2c.07-.01.1-.06.1-.13zm-.2.07h-.02v-.13h.02c.06 0 .09.02.09.07 0 .04-.03.06-.09.06z" clip-rule="evenodd" /> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M36.8 17.4a.41.41 0 100 .83c.23 0 .42-.19.42-.42a.42.42 0 00-.42-.41zm0 .75a.34.34 0 01-.33-.34c0-.18.15-.34.33-.34.19 0 .34.16.34.34 0 .2-.15.34-.34.34z" clip-rule="evenodd" /> <path fill="#A4A9B5" fill-opacity=".6" fill-rule="evenodd" d="M.5 10.5h37.8v12.22c-1.6 1.1-12.91 8.38-33.72 11.78H38.3.5v-24zM0 35V10h38.8v25H0z" clip-rule="evenodd" /> <defs> <radialGradient id="paint0_radial" cx="0" cy="0" r="1" gradientTransform="matrix(6.72376 0 0 6.63371 23.7 23.24)" gradientUnits="userSpaceOnUse" > <stop stop-color="#BBBFC9" stop-opacity=".6" /> <stop offset=".21" stop-color="#BAC0CE" stop-opacity=".6" /> <stop offset=".91" stop-color="#6F7177" stop-opacity=".6" /> <stop offset="1" stop-color="#5E6169" stop-opacity=".6" /> </radialGradient> </defs> </svg>
8,969
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/mastercard-securecode-colored.svg
<svg width="77" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0)"> <path d="M6.57 26.176a5.862 5.862 0 00-1.274-.611 4.289 4.289 0 00-1.375-.204c-.305 0-.56.05-.865.102-.255.05-.459.152-.662.254a1.202 1.202 0 00-.408.459 1.027 1.027 0 00-.153.56c0 .203.051.356.153.509a.943.943 0 00.408.357c.203.101.407.203.61.254.255.102.56.153.815.153l.662.102c.357.05.764.153 1.12.254.357.102.663.255.968.459.255.203.51.458.662.764.204.356.255.713.255 1.12 0 .458-.102.866-.305 1.273a2.791 2.791 0 01-.815.917 3.544 3.544 0 01-1.172.56c-.509.05-1.018.153-1.476.153a6.23 6.23 0 01-.968-.102c-.356-.051-.662-.153-1.019-.255a7.204 7.204 0 01-.916-.407c-.306-.153-.56-.357-.815-.56l.815-1.223c.153.153.356.306.56.408.458.255.968.458 1.528.56.254.051.56.051.815.102.305 0 .56 0 .865-.102.255-.05.459-.153.713-.254.204-.102.357-.255.459-.408.101-.153.152-.356.152-.611a.907.907 0 00-.509-.815c-.51-.255-1.018-.356-1.579-.407l-.713-.102c-.356-.051-.662-.153-1.018-.255a2.83 2.83 0 01-.866-.458 2.254 2.254 0 01-.61-.764c-.154-.356-.256-.713-.256-1.12 0-.408.102-.866.306-1.223.102-.356.407-.662.713-.916a3.545 3.545 0 011.171-.56c.459-.153.968-.204 1.426-.204.611 0 1.222.102 1.834.255.56.152 1.069.407 1.527.712l-.764 1.274zm5.092.713c.407 0 .815.101 1.222.254.357.153.662.408.968.662.255.306.458.662.611 1.07.153.458.255.916.204 1.375v.509H9.93c.05.255.101.51.254.764.102.204.255.356.408.51.152.152.356.254.56.305.204.05.407.102.662.102.305 0 .662-.051.967-.153.306-.102.611-.306.866-.51l.713.968c-.356.306-.764.56-1.222.713a4.289 4.289 0 01-1.375.204c-.458 0-.917-.102-1.324-.255-.408-.153-.713-.407-1.019-.662a2.907 2.907 0 01-.662-1.07c-.153-.458-.254-.916-.254-1.374 0-.459.05-.917.254-1.375.153-.408.357-.764.662-1.07.306-.305.611-.51 1.019-.662a2.42 2.42 0 011.222-.305zm-.05 1.222c-.205 0-.46.05-.663.102-.204.05-.356.203-.51.305a1.829 1.829 0 00-.356.51c-.102.203-.152.407-.203.61h3.31a2.188 2.188 0 00-.51-1.17 1.794 1.794 0 00-1.069-.357zm7.383-1.222c.459 0 .917.101 1.324.254a2.17 2.17 0 011.019.764l-.917.968c-.203-.204-.458-.357-.713-.51a2.308 2.308 0 00-.814-.152c-.255 0-.51.05-.764.152a1.593 1.593 0 00-.56.459c-.153.203-.306.407-.408.662-.204.56-.204 1.12 0 1.63.102.254.204.458.407.662.153.203.357.305.612.407.254.102.509.153.763.153.306 0 .612-.051.866-.204.255-.102.51-.306.713-.458l.866.967a2.6 2.6 0 01-1.07.764 3.824 3.824 0 01-1.324.255c-.458 0-.916-.102-1.375-.255-.814-.305-1.426-.967-1.731-1.782a3.94 3.94 0 010-2.648c.305-.815.917-1.426 1.731-1.783a3.19 3.19 0 011.375-.305zm9.523 3.819c0 .458-.05.917-.254 1.324a2.357 2.357 0 01-.662.917c-.255.254-.611.407-.917.509a4 4 0 01-2.19 0 2.535 2.535 0 01-.967-.51 2.356 2.356 0 01-.662-.916 3.827 3.827 0 01-.255-1.324v-3.667h1.375v3.565c0 .255.051.51.102.764.05.204.204.357.356.51.153.152.306.254.51.305.407.102.814.102 1.222 0 .204-.051.356-.153.51-.306a1.83 1.83 0 00.356-.509c.101-.255.152-.51.101-.764v-3.565h1.375v3.667zm5.042-3.82c.204 0 .408 0 .56.051.153.051.357.051.51.153l-.357 1.375a.982.982 0 00-.51-.152c-.203-.051-.356-.051-.56-.051-.203 0-.407.05-.61.101-.204.051-.357.204-.459.357a1.214 1.214 0 00-.305.56c-.102.255-.102.458-.102.713v3.514H30.3V27.04h1.375v.713c.204-.305.458-.509.815-.662a2.66 2.66 0 011.07-.203zm4.685 0c.408 0 .815.102 1.223.255.356.153.662.408.967.662.306.306.51.662.662 1.07.153.458.255.916.204 1.375v.509h-4.736c.05.255.102.51.254.764.102.204.255.356.408.51.153.152.356.254.56.305.204.05.407.102.662.102.306 0 .662-.051.968-.153.305-.102.61-.306.865-.51l.713.968c-.356.306-.764.56-1.222.713a4.288 4.288 0 01-1.375.204c-.458 0-.917-.102-1.324-.255-.407-.153-.713-.407-1.018-.662a2.907 2.907 0 01-.662-1.07c-.153-.458-.255-.916-.255-1.374 0-.459.05-.917.255-1.375.152-.408.356-.764.662-1.07.305-.305.61-.51 1.018-.662.306-.204.713-.305 1.171-.305zm-.05 1.223c-.204 0-.459.05-.663.102-.203.05-.356.203-.509.305a1.828 1.828 0 00-.356.51 2.867 2.867 0 00-.204.61h3.31a2.188 2.188 0 00-.51-1.17 1.794 1.794 0 00-1.069-.357zm9.013-4.176c.408 0 .815.05 1.172.153.356.101.713.203 1.07.407.305.153.61.357.916.611.254.255.509.51.662.815l-1.273.815a2.596 2.596 0 00-1.12-.968c-.46-.254-1.02-.356-1.529-.356-.458 0-.916.102-1.324.254-.407.153-.713.408-1.018.713-.306.306-.51.662-.662 1.07a3.67 3.67 0 000 2.75c.153.407.407.764.662 1.07.305.305.611.509 1.018.712.408.153.866.255 1.325.255 1.018 0 1.986-.458 2.597-1.324l1.222.916c-.204.306-.458.56-.713.764-.255.255-.56.459-.866.611-.356.153-.662.306-1.07.357-1.069.255-2.138.153-3.157-.255a4.476 4.476 0 01-2.546-2.546c-.458-1.222-.458-2.597 0-3.87a4.476 4.476 0 012.546-2.547 5.415 5.415 0 012.088-.407zm8.2 2.954c.458 0 .916.101 1.374.254.408.153.764.408 1.07.713.305.306.56.662.713 1.07a3.412 3.412 0 010 2.648 3.034 3.034 0 01-.713 1.07c-.306.305-.662.56-1.07.712-.865.357-1.833.357-2.75 0a3.034 3.034 0 01-1.069-.713 3.364 3.364 0 01-.713-1.018 3.412 3.412 0 010-2.648c.153-.408.407-.764.713-1.07.306-.305.662-.56 1.07-.713a3.361 3.361 0 011.374-.305zm0 1.273c-.255 0-.56.05-.815.152a1.83 1.83 0 00-.612.408c-.203.204-.305.407-.407.662a2.25 2.25 0 000 1.63c.102.254.255.458.407.662.204.203.408.305.612.407.509.204 1.069.204 1.578 0 .459-.204.866-.56 1.07-1.018a2.25 2.25 0 000-1.63c-.102-.255-.255-.458-.408-.662-.203-.204-.407-.306-.61-.408a3.815 3.815 0 00-.816-.203zm7.638-1.273a2.324 2.324 0 011.986.916v-3.972h1.375v9.574h-1.375v-.764c-.203.306-.509.51-.814.662a3.02 3.02 0 01-1.172.255c-.865 0-1.68-.357-2.24-.917a2.908 2.908 0 01-.662-1.07 4.089 4.089 0 010-2.698c.152-.408.407-.764.662-1.07.56-.61 1.375-.916 2.24-.916zm.153 1.273c-.255 0-.56.05-.815.152-.203.102-.458.255-.61.459-.154.204-.306.407-.357.662a2.776 2.776 0 000 1.579c.102.254.203.458.356.662.153.203.357.356.611.458.51.204 1.07.204 1.579 0a1.83 1.83 0 00.611-.407c.153-.153.306-.357.407-.612a2.25 2.25 0 000-1.63c-.101-.254-.203-.457-.407-.661-.153-.204-.356-.306-.611-.408-.255-.152-.51-.203-.764-.254zm7.843-1.273c.407 0 .814.101 1.222.254.356.153.662.408.968.662.254.306.458.662.61 1.07.153.458.255.916.204 1.375v.509h-4.685c.051.255.102.51.255.764.102.204.254.356.458.51.153.152.357.254.56.305.204.05.408.102.662.102.306 0 .662-.051.968-.153.305-.102.611-.306.866-.51l.713.968c-.357.306-.764.56-1.223.713a4.29 4.29 0 01-1.375.204c-.458 0-.916-.102-1.324-.255-.407-.153-.713-.407-1.018-.662a2.907 2.907 0 01-.662-1.07c-.153-.458-.255-.916-.255-1.374 0-.459.051-.917.255-1.375.153-.408.356-.764.662-1.07.305-.305.61-.51 1.018-.662.255-.204.713-.305 1.12-.305zm3.666 6.518v-.305h.102v-.051h-.305v.05h.152v.306h.051zm.611 0V33h-.101l-.102.254-.102-.254h-.102v.407h.051v-.305l.102.254h.05l.103-.255v.306h.101zm-4.328-5.296c-.204 0-.459.05-.662.102-.204.05-.357.203-.51.305a1.827 1.827 0 00-.356.51 2.867 2.867 0 00-.204.61h3.31c-.05-.458-.203-.865-.509-1.17a1.794 1.794 0 00-1.07-.357z" fill="#F79E1B" /> <path d="M11.153 20.32H9.575v-7.945l-2.801 6.977h-1.63l-2.8-6.926v7.842H.763v-9.625h2.394l2.801 6.875 2.801-6.875h2.393v9.676zm8.2 0h-1.426v-.765a2.95 2.95 0 01-.866.713c-.357.204-.815.255-1.222.255a3.359 3.359 0 01-2.343-.968 3.235 3.235 0 01-.713-1.12 3.802 3.802 0 010-2.801c.153-.407.408-.764.713-1.12a3.359 3.359 0 012.343-.968c.407 0 .815.102 1.222.255.356.152.611.407.866.713v-.815h1.426v6.62zm-3.362-5.45c-.305 0-.56.051-.814.153a1.39 1.39 0 00-.611.458c-.153.204-.306.408-.408.662a2.25 2.25 0 000 1.63c.102.255.204.458.408.662.152.204.407.356.61.458a2.25 2.25 0 001.63 0 1.39 1.39 0 00.611-.458c.153-.204.306-.407.408-.662.204-.56.204-1.12 0-1.68-.102-.255-.255-.459-.408-.663-.152-.203-.407-.356-.61-.458a3.96 3.96 0 00-.815-.102zm9.982.51c-.102-.052-.255-.153-.357-.204-.152-.051-.356-.153-.509-.204-.203-.05-.356-.102-.56-.153-.204-.05-.407-.05-.611-.05-.306 0-.662.05-.917.203-.203.102-.305.357-.305.56 0 .102.05.204.102.306.05.102.152.153.203.203a.735.735 0 00.357.102c.152.051.254.051.407.102l.662.102c.611.05 1.171.306 1.68.611.408.357.612.866.612 1.375 0 .306-.051.611-.204.866-.153.254-.356.51-.61.662a3.856 3.856 0 01-.918.458 5.436 5.436 0 01-1.273.153c-.152 0-.356 0-.61-.05-.256 0-.46-.052-.714-.103-.255-.05-.51-.153-.764-.254a5.563 5.563 0 01-.764-.408l.662-1.07c.102.103.255.204.408.255.153.102.305.153.458.204l.611.153c.255.05.51.05.713.05.408 0 .764-.05 1.12-.203.255-.102.357-.356.408-.56a.535.535 0 00-.255-.458 1.717 1.717 0 00-.865-.255l-.662-.102a3.015 3.015 0 01-1.68-.662c-.357-.306-.612-.815-.561-1.273 0-.306.05-.611.204-.866.101-.254.305-.51.56-.662.254-.204.56-.356.865-.407a4.244 4.244 0 011.12-.153c.51 0 .968.05 1.478.204.407.101.815.254 1.222.509l-.713 1.018zm6.824-.357h-2.546v2.852a1.832 1.832 0 00.305.967.821.821 0 00.357.204c.153.051.254.051.407.051.255 0 .459-.05.662-.153.204-.102.459-.203.662-.305l.56 1.171c-.305.204-.56.356-.916.458-.357.153-.764.204-1.12.204-.663.05-1.274-.204-1.732-.611-.458-.56-.713-1.222-.611-1.935v-2.903H27.5v-1.324h1.324v-1.986h1.426v1.986h2.546v1.324zm4.43-1.477c.459 0 .866.102 1.274.255.356.152.713.407.967.713.306.305.51.713.662 1.07.153.457.255.916.204 1.425v.509h-4.889c.051.255.102.51.255.764.102.204.255.357.458.51.153.152.357.254.611.305.204.05.459.102.662.102.357 0 .713-.051 1.019-.204.305-.102.662-.305.916-.51l.714 1.02c-.357.305-.815.56-1.274.712-.458.153-.967.204-1.426.204-.458 0-.967-.05-1.375-.204a3.034 3.034 0 01-1.07-.713 2.825 2.825 0 01-.712-1.12 4.417 4.417 0 01-.255-1.426c0-.458.051-.967.255-1.426.153-.407.357-.764.662-1.12.306-.306.611-.56 1.019-.713a5.549 5.549 0 011.324-.153zm-.05 1.273c-.255 0-.459.051-.662.102-.204.051-.357.204-.51.357a1.828 1.828 0 00-.356.509c-.102.204-.153.458-.204.662h3.412c-.05-.459-.254-.866-.56-1.222a1.678 1.678 0 00-1.12-.408zm8.148-1.273c.203 0 .407 0 .61.051.154.05.357.102.51.153l-.356 1.375c-.153-.102-.357-.153-.51-.204-.203-.05-.356-.05-.56-.05-.203 0-.407.05-.61.101-.204.05-.357.204-.51.357a1.215 1.215 0 00-.306.56c-.102.254-.102.509-.102.764v3.615h-1.476v-6.62h1.426v.764a1.75 1.75 0 01.814-.662c.306-.153.713-.204 1.07-.204zm4.94 0c.458 0 .967.102 1.375.255.407.152.764.458 1.07.764l-.918.967c-.203-.204-.458-.356-.712-.51-.255-.1-.56-.203-.866-.203-.255 0-.51.051-.764.153a1.39 1.39 0 00-.611.458c-.204.204-.306.408-.408.662a2.53 2.53 0 000 1.732c.102.254.255.458.408.662.153.204.407.356.61.407.256.102.51.153.765.153.305 0 .61-.05.866-.204.254-.152.509-.305.712-.509l.866 1.019a2.601 2.601 0 01-1.07.764c-.458.203-.916.254-1.374.254-.51 0-.968-.102-1.426-.255-.815-.305-1.477-1.018-1.783-1.833a4.239 4.239 0 010-2.75c.306-.815.968-1.477 1.783-1.833.509-.102.967-.204 1.477-.153zm10.134 6.773h-1.426v-.764c-.255.306-.51.51-.866.713-.356.204-.815.255-1.222.255a3.359 3.359 0 01-2.343-.968 3.235 3.235 0 01-.712-1.12 3.802 3.802 0 010-2.801c.152-.407.407-.764.712-1.12a3.359 3.359 0 012.343-.968c.407 0 .815.102 1.222.255.357.152.611.407.866.713v-.815h1.426v6.62zm-3.361-5.449c-.306 0-.56.051-.815.153a1.39 1.39 0 00-.611.458c-.153.204-.306.408-.407.662a2.25 2.25 0 000 1.63c.101.255.203.458.407.662.153.204.407.356.611.458a2.25 2.25 0 001.63 0 1.39 1.39 0 00.61-.458c.154-.204.306-.407.408-.662.204-.56.204-1.12 0-1.68-.102-.255-.255-.459-.407-.663-.153-.203-.408-.356-.611-.458a3.96 3.96 0 00-.815-.102zm8.81-1.324c.204 0 .407 0 .611.051.153.05.357.102.51.153l-.357 1.426c-.153-.102-.357-.153-.51-.204-.203-.05-.356-.05-.56-.05-.203 0-.407.05-.61.1-.204.052-.357.205-.51.357a1.214 1.214 0 00-.305.56c-.102.255-.102.51-.102.764v3.616h-1.426V13.7h1.426v.764c.203-.306.458-.56.814-.662.255-.204.663-.255 1.019-.255zm4.736 0c.407 0 .815.102 1.222.255.357.152.611.407.866.713v-4.125h1.426v9.93h-1.426v-.764a2.95 2.95 0 01-.866.713c-.356.204-.814.255-1.222.255a3.359 3.359 0 01-2.343-.968 3.236 3.236 0 01-.713-1.12 3.802 3.802 0 010-2.801c.153-.407.408-.764.713-1.12.612-.662 1.426-.968 2.343-.968zm5.194 6.162c.051 0 .102 0 .153.051.051 0 .102.051.153.102.051.05.051.102.102.153a.324.324 0 010 .305c0 .051-.051.102-.102.153-.05.05-.102.05-.153.102-.05 0-.102.05-.153.05-.152 0-.305-.101-.407-.254a.325.325 0 010-.305c.051-.102.102-.204.204-.204.102-.153.153-.153.203-.153zm0 .764h.102c.051 0 .051-.05.102-.05.102-.154.102-.357 0-.46-.05-.05-.05-.05-.102-.05h-.203c-.153.102-.255.254-.153.458 0 .051.05.051.05.051.052.051.052.051.103.051 0-.05.05-.05.101 0zm0-.51c.051 0 .102 0 .102.052.051 0 .051.05.051.102 0 .05 0 .05-.05.101 0 0-.052.051-.103.051l.102.153h-.102l-.101-.153h-.051v.153-.407l.152-.051zm-.101.052v.102h.152v-.102h-.152zm-4.94-5.093c-.306 0-.56.051-.815.153a1.39 1.39 0 00-.611.458c-.153.204-.306.408-.408.662a2.25 2.25 0 000 1.63c.102.254.204.458.408.662.153.204.407.356.611.458a2.25 2.25 0 001.63 0 1.39 1.39 0 00.61-.458c.204-.204.357-.458.46-.713.203-.56.203-1.12 0-1.68-.103-.255-.255-.459-.408-.663-.153-.203-.408-.356-.611-.458-.306-.05-.56-.102-.866-.05z" fill="#EB001B" /> </g> <defs> <clipPath id="clip0"> <path fill="#fff" d="M0 0h77v44H0z" /> </clipPath> </defs> </svg>
8,970
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/mastercard-securecode.svg
<svg xmlns="http://www.w3.org/2000/svg" width="78" height="44" fill="none" viewBox="0 0 78 44"> <g clip-path="url(#clip0)"> <path fill="#A4A9B5" fill-opacity=".6" d="M6.57 26.176a5.862 5.862 0 00-1.274-.611 4.289 4.289 0 00-1.375-.204c-.305 0-.56.051-.865.102-.255.051-.459.153-.662.255a1.202 1.202 0 00-.408.458 1.027 1.027 0 00-.153.56c0 .204.051.357.153.51a.944.944 0 00.408.356c.203.102.407.204.61.255.255.101.56.152.815.152l.662.102c.357.051.764.153 1.12.255.357.102.663.255.968.458.255.204.51.458.662.764.204.357.255.713.255 1.12 0 .459-.102.866-.305 1.274a2.79 2.79 0 01-.815.916 3.544 3.544 0 01-1.172.56c-.509.051-1.018.153-1.476.153-.306 0-.662-.05-.968-.102-.356-.05-.662-.152-1.019-.254a7.204 7.204 0 01-.916-.408c-.306-.153-.56-.356-.815-.56l.815-1.222c.153.153.356.305.56.407.458.255.968.459 1.528.56.254.051.56.051.815.102.305 0 .56 0 .865-.102.255-.05.459-.152.713-.254.204-.102.357-.255.459-.407.101-.153.152-.357.152-.612a.907.907 0 00-.509-.814c-.51-.255-1.018-.357-1.579-.408l-.713-.102c-.356-.05-.662-.152-1.018-.254a2.832 2.832 0 01-.866-.459 2.254 2.254 0 01-.61-.764c-.154-.356-.256-.712-.256-1.12 0-.407.102-.866.306-1.222.102-.357.407-.662.713-.917a3.544 3.544 0 011.171-.56c.459-.153.968-.204 1.426-.204.611 0 1.222.102 1.834.255.56.153 1.069.407 1.527.713l-.764 1.273zm5.092.713c.407 0 .815.102 1.222.255.357.152.662.407.968.662.255.305.458.662.611 1.07.153.457.255.916.204 1.374v.509H9.93c.05.255.101.51.254.764.102.204.255.357.408.51.152.152.356.254.56.305.204.051.407.102.662.102.305 0 .662-.051.967-.153.306-.102.611-.305.866-.51l.713.968c-.356.306-.764.56-1.222.713a4.289 4.289 0 01-1.375.204c-.458 0-.917-.102-1.324-.255-.408-.152-.713-.407-1.019-.661a2.909 2.909 0 01-.662-1.07c-.153-.458-.254-.917-.254-1.375 0-.458.05-.917.254-1.375.153-.407.357-.764.662-1.07.306-.305.611-.509 1.019-.662a2.42 2.42 0 011.222-.305zm-.05 1.222c-.205 0-.46.051-.663.102-.204.051-.356.204-.51.306a1.83 1.83 0 00-.356.509c-.102.204-.152.407-.203.611h3.31a2.188 2.188 0 00-.51-1.171 1.794 1.794 0 00-1.069-.357zm7.383-1.222c.459 0 .917.102 1.324.255a2.17 2.17 0 011.019.764l-.917.967c-.203-.204-.458-.356-.713-.51a2.308 2.308 0 00-.814-.152c-.255 0-.51.051-.764.153a1.593 1.593 0 00-.56.458c-.153.204-.306.408-.408.662-.204.56-.204 1.12 0 1.63.102.255.204.458.407.662.153.204.357.305.612.407.254.102.509.153.763.153.306 0 .612-.05.866-.204.255-.102.51-.305.713-.458l.866.968a2.6 2.6 0 01-1.07.764 3.824 3.824 0 01-1.324.254c-.458 0-.916-.102-1.375-.255-.814-.305-1.426-.967-1.731-1.782a3.939 3.939 0 010-2.648c.305-.815.917-1.426 1.731-1.782a3.19 3.19 0 011.375-.306zm9.523 3.82c0 .458-.05.916-.254 1.323a2.358 2.358 0 01-.662.917c-.255.255-.611.408-.917.51a4 4 0 01-2.19 0 2.536 2.536 0 01-.967-.51 2.358 2.358 0 01-.662-.916 3.827 3.827 0 01-.255-1.325v-3.666h1.375v3.565c0 .254.051.509.102.764.05.203.204.356.356.509.153.152.306.254.51.305.407.102.814.102 1.222 0 .204-.05.356-.153.51-.305.152-.153.254-.306.356-.51.101-.254.152-.509.101-.763v-3.565h1.375v3.666zm5.042-3.82c.204 0 .408 0 .56.05.153.052.357.052.51.154l-.357 1.375a.982.982 0 00-.51-.153c-.203-.051-.356-.051-.56-.051-.203 0-.407.05-.61.102-.204.05-.357.204-.459.356a1.214 1.214 0 00-.305.56c-.102.255-.102.459-.102.713v3.514H30.3v-6.467h1.375v.713a1.75 1.75 0 01.815-.662 2.66 2.66 0 011.07-.204zm4.685 0c.408 0 .815.102 1.223.255.356.152.662.407.967.662.306.305.51.662.662 1.07.153.457.255.916.204 1.374v.509h-4.736c.05.255.102.51.254.764.102.204.255.357.408.51.153.152.356.254.56.305.204.051.407.102.662.102.306 0 .662-.051.968-.153.305-.102.61-.305.865-.51l.713.968c-.356.306-.764.56-1.222.713a4.288 4.288 0 01-1.375.204c-.458 0-.917-.102-1.324-.255-.407-.152-.713-.407-1.018-.661a2.908 2.908 0 01-.662-1.07c-.153-.458-.255-.917-.255-1.375 0-.458.05-.917.255-1.375.152-.407.356-.764.662-1.07.305-.305.61-.509 1.018-.662.306-.203.713-.305 1.171-.305zm-.05 1.222c-.204 0-.459.051-.663.102-.203.051-.356.204-.509.306a1.83 1.83 0 00-.356.509c-.102.204-.153.407-.204.611h3.31a2.188 2.188 0 00-.51-1.171 1.794 1.794 0 00-1.069-.357zm9.013-4.176c.408 0 .815.051 1.172.153.356.102.713.204 1.07.407.305.153.61.357.916.612.254.254.509.509.662.814l-1.273.815a2.596 2.596 0 00-1.12-.967c-.46-.255-1.02-.357-1.529-.357-.458 0-.916.102-1.324.255-.407.152-.713.407-1.018.713-.306.305-.51.662-.662 1.07a3.67 3.67 0 000 2.75c.153.407.407.763.662 1.069.305.305.611.509 1.018.713.408.152.866.254 1.325.254 1.018 0 1.986-.458 2.597-1.324l1.222.917c-.204.305-.458.56-.713.764-.255.254-.56.458-.866.61-.356.154-.662.306-1.07.357-1.069.255-2.138.153-3.157-.254a4.476 4.476 0 01-2.546-2.547c-.458-1.222-.458-2.597 0-3.87a4.476 4.476 0 012.546-2.546 5.415 5.415 0 012.088-.408zm8.2 2.954c.458 0 .916.102 1.374.255.408.152.764.407 1.07.713.305.305.56.662.713 1.069a3.412 3.412 0 010 2.648 3.034 3.034 0 01-.713 1.07c-.306.305-.662.56-1.07.713-.865.356-1.833.356-2.75 0a3.033 3.033 0 01-1.069-.713 3.363 3.363 0 01-.713-1.019 3.412 3.412 0 010-2.648c.153-.407.407-.764.713-1.07.306-.305.662-.56 1.07-.712a3.361 3.361 0 011.374-.306zm0 1.273c-.255 0-.56.051-.815.153a1.832 1.832 0 00-.612.407c-.203.204-.305.408-.407.662a2.25 2.25 0 000 1.63c.102.255.255.458.407.662.204.204.408.306.612.407.509.204 1.069.204 1.578 0 .459-.203.866-.56 1.07-1.018a2.25 2.25 0 000-1.63c-.102-.254-.255-.458-.408-.662-.203-.203-.407-.305-.61-.407a3.821 3.821 0 00-.816-.204zm7.638-1.273a2.324 2.324 0 011.986.917v-3.973h1.375v9.575h-1.375v-.764c-.203.305-.509.509-.814.662a3.022 3.022 0 01-1.172.254c-.865 0-1.68-.356-2.24-.916a2.907 2.907 0 01-.662-1.07 4.089 4.089 0 010-2.699c.152-.407.407-.764.662-1.07.56-.61 1.375-.916 2.24-.916zm.153 1.273c-.255 0-.56.051-.815.153-.203.102-.458.255-.61.458-.154.204-.306.408-.357.662a2.776 2.776 0 000 1.579c.102.255.203.458.356.662.153.204.357.357.611.458.51.204 1.07.204 1.579 0 .255-.102.458-.254.611-.407.153-.153.306-.357.407-.611a2.25 2.25 0 000-1.63c-.101-.254-.203-.458-.407-.662-.153-.204-.356-.305-.611-.407-.255-.153-.51-.204-.764-.255zm7.843-1.273c.407 0 .814.102 1.222.255.356.152.662.407.968.662.254.305.458.662.61 1.07.153.457.255.916.204 1.374v.509h-4.685c.051.255.102.51.255.764.102.204.254.357.458.51.153.152.357.254.56.305.204.051.408.102.662.102.306 0 .662-.051.968-.153.305-.102.611-.305.866-.51l.713.968c-.357.306-.764.56-1.223.713a4.29 4.29 0 01-1.375.204c-.458 0-.916-.102-1.324-.255-.407-.152-.713-.407-1.018-.661a2.908 2.908 0 01-.662-1.07c-.153-.458-.255-.917-.255-1.375 0-.458.051-.917.255-1.375.153-.407.356-.764.662-1.07.305-.305.61-.509 1.018-.662.255-.203.713-.305 1.12-.305zm3.666 6.518v-.305h.102v-.051h-.305v.051h.152v.306h.051zm.611 0V33h-.101l-.102.255-.102-.255h-.102v.407h.051v-.305l.102.255h.05l.103-.255v.306h.101zm-4.328-5.296c-.204 0-.459.051-.662.102-.204.051-.357.204-.51.306a1.828 1.828 0 00-.356.509c-.102.204-.153.407-.204.611h3.31c-.05-.458-.203-.866-.509-1.171a1.794 1.794 0 00-1.07-.357z" /> <path fill="#696F7D" fill-opacity=".6" d="M11.153 20.32H9.574v-7.945l-2.8 6.977h-1.63l-2.801-6.926v7.842H.763v-9.625h2.394l2.801 6.875 2.801-6.875h2.394v9.677zm8.199 0h-1.426v-.764c-.255.305-.51.509-.866.712-.356.204-.815.255-1.222.255a3.359 3.359 0 01-2.343-.967 3.237 3.237 0 01-.713-1.12 3.802 3.802 0 010-2.802c.153-.407.408-.764.713-1.12a3.359 3.359 0 012.343-.968c.407 0 .815.102 1.222.255.357.153.611.407.866.713v-.815h1.426v6.62zm-3.361-5.45c-.306 0-.56.051-.815.153a1.39 1.39 0 00-.611.459c-.153.203-.306.407-.408.662a2.25 2.25 0 000 1.63c.102.254.204.457.408.661.153.204.407.357.61.459a2.25 2.25 0 001.63 0 1.39 1.39 0 00.612-.459c.152-.203.305-.407.407-.662.204-.56.204-1.12 0-1.68-.102-.255-.255-.459-.407-.662-.153-.204-.408-.357-.611-.459a3.96 3.96 0 00-.815-.102zm9.981.51c-.102-.051-.254-.153-.356-.204-.153-.051-.357-.153-.51-.204-.203-.05-.356-.102-.56-.152-.203-.052-.407-.052-.61-.052-.306 0-.663.051-.918.204-.203.102-.305.357-.305.56 0 .102.05.204.102.306.05.102.153.153.203.204.102.05.204.101.357.101.153.052.255.052.407.102l.663.102c.61.051 1.17.306 1.68.611.407.357.611.866.611 1.375 0 .306-.05.612-.204.866-.152.255-.356.51-.61.662a3.858 3.858 0 01-.917.459 5.442 5.442 0 01-1.273.152c-.153 0-.357 0-.612-.05-.254 0-.458-.052-.713-.102a4.487 4.487 0 01-.764-.255c-.254-.102-.509-.255-.763-.408l.662-1.069c.101.102.254.204.407.255.153.102.306.152.458.203l.611.153c.255.051.51.051.713.051.408 0 .764-.05 1.12-.204.256-.101.357-.356.408-.56a.535.535 0 00-.254-.458 1.717 1.717 0 00-.866-.255l-.662-.102a3.016 3.016 0 01-1.68-.662c-.357-.305-.612-.814-.56-1.273 0-.305.05-.611.203-.866.102-.254.305-.509.56-.662.255-.203.56-.356.866-.407a4.24 4.24 0 011.12-.153c.51 0 .968.051 1.477.204.407.102.815.255 1.222.51l-.713 1.018zm6.824-.357H30.25v2.852a1.829 1.829 0 00.306.968.82.82 0 00.356.203c.153.051.255.051.408.051.254 0 .458-.05.662-.152.203-.102.458-.204.662-.306l.56 1.171c-.306.204-.56.357-.917.459-.356.152-.764.203-1.12.203-.662.051-1.274-.204-1.732-.61-.458-.561-.713-1.223-.61-1.936v-2.903H27.5V13.7h1.324v-1.986h1.426v1.986h2.546v1.324zm4.43-1.477c.46 0 .867.102 1.274.255.356.153.713.407.968.713.305.306.509.713.662 1.07.152.458.254.916.203 1.425v.51h-4.889c.051.254.102.509.255.763.102.204.255.357.458.51.153.152.357.254.612.305.203.051.458.102.662.102.356 0 .713-.05 1.018-.204.306-.102.662-.305.917-.509l.713 1.019c-.357.305-.815.56-1.273.713-.459.152-.968.203-1.426.203-.459 0-.968-.05-1.375-.203a3.035 3.035 0 01-1.07-.713 2.825 2.825 0 01-.713-1.12 4.42 4.42 0 01-.254-1.427c0-.458.05-.967.254-1.426.153-.407.357-.764.662-1.12.306-.306.611-.56 1.019-.713a5.548 5.548 0 011.324-.153zm-.05 1.274c-.255 0-.458.05-.662.101-.204.051-.357.204-.51.357a1.83 1.83 0 00-.356.51c-.102.203-.153.457-.204.661h3.412c-.05-.458-.254-.866-.56-1.222a1.677 1.677 0 00-1.12-.408zm8.148-1.274c.204 0 .407 0 .611.051.153.051.357.102.51.153l-.357 1.375c-.153-.102-.357-.153-.51-.204-.203-.05-.356-.05-.56-.05-.203 0-.407.05-.61.101-.204.051-.357.204-.51.357a1.214 1.214 0 00-.305.56c-.102.255-.102.51-.102.764v3.616h-1.477v-6.62h1.426v.763a1.75 1.75 0 01.815-.662c.305-.153.713-.204 1.07-.204zm4.94 0c.458 0 .967.102 1.375.255.407.153.764.458 1.07.764l-.917.967c-.204-.203-.459-.356-.713-.509-.255-.102-.56-.204-.866-.204-.255 0-.51.051-.764.153a1.391 1.391 0 00-.611.459c-.204.203-.306.407-.407.662a2.53 2.53 0 000 1.731c.101.255.254.458.407.662.153.204.407.357.611.407.255.102.51.153.764.153.306 0 .611-.05.866-.203.254-.153.509-.306.713-.51l.865 1.019a2.6 2.6 0 01-1.069.764c-.458.204-.917.254-1.375.254a4.42 4.42 0 01-1.426-.254c-.815-.306-1.477-1.019-1.782-1.834a4.24 4.24 0 010-2.75c.305-.814.967-1.476 1.782-1.833.51-.102.968-.204 1.477-.153zm10.134 6.774h-1.426v-.764a2.95 2.95 0 01-.866.712c-.356.204-.814.255-1.222.255a3.359 3.359 0 01-2.342-.967 3.237 3.237 0 01-.713-1.12 3.801 3.801 0 010-2.802c.152-.407.407-.764.713-1.12a3.359 3.359 0 012.342-.968c.408 0 .815.102 1.222.255.357.153.612.407.866.713v-.815h1.426v6.62zm-3.36-5.45c-.306 0-.561.051-.816.153a1.39 1.39 0 00-.61.459c-.154.203-.306.407-.408.662a2.25 2.25 0 000 1.63c.102.254.203.457.407.661.153.204.408.357.611.459a2.25 2.25 0 001.63 0 1.39 1.39 0 00.611-.459c.153-.203.306-.407.407-.662.204-.56.204-1.12 0-1.68-.101-.255-.254-.459-.407-.662-.153-.204-.407-.357-.611-.459-.255-.05-.51-.102-.815-.102zm8.81-1.324c.203 0 .407 0 .61.051.153.051.357.102.51.153l-.357 1.426c-.153-.102-.356-.153-.51-.204-.203-.05-.356-.05-.56-.05-.203 0-.407.05-.61.101-.204.051-.357.204-.51.357a1.213 1.213 0 00-.305.56c-.102.255-.102.51-.102.764v3.616h-1.426V13.7h1.426v.763c.204-.306.458-.56.815-.662.254-.204.662-.255 1.018-.255zm4.735 0c.408 0 .815.102 1.223.255.356.153.61.407.865.713v-4.125h1.426v9.93h-1.426v-.763a2.95 2.95 0 01-.865.712c-.357.204-.815.255-1.223.255a3.359 3.359 0 01-2.342-.967 3.237 3.237 0 01-.713-1.12 3.801 3.801 0 010-2.802c.153-.407.407-.764.713-1.12.61-.662 1.426-.968 2.342-.968zm5.195 6.162c.05 0 .102 0 .153.051.05 0 .101.051.152.102.051.051.051.102.102.153.051.102.051.204 0 .306 0 .05-.05.101-.102.152-.05.051-.102.051-.152.102-.051 0-.102.051-.153.051-.153 0-.306-.102-.408-.255a.325.325 0 010-.305c.051-.102.102-.204.204-.204.102-.153.153-.153.204-.153zm0 .764h.102c.05 0 .05-.05.102-.05.101-.154.101-.357 0-.459-.051-.05-.051-.05-.102-.05h-.204c-.153.1-.255.254-.153.457 0 .051.051.051.051.051.051.051.051.051.102.051 0-.05.05-.05.102 0zm0-.509c.05 0 .102 0 .102.05.05 0 .05.052.05.103 0 .05 0 .05-.05.102 0 0-.051.05-.102.05l.102.153h-.102l-.102-.152h-.051v.152-.407l.153-.051zm-.102.05v.103h.152v-.102h-.152zm-4.94-5.092c-.305 0-.56.051-.815.153a1.39 1.39 0 00-.61.458c-.154.204-.306.408-.408.663a2.25 2.25 0 000 1.63c.102.254.203.457.407.661.153.204.408.357.611.459a2.25 2.25 0 001.63 0 1.39 1.39 0 00.611-.459c.204-.204.356-.458.458-.713.204-.56.204-1.12 0-1.68-.102-.255-.254-.459-.407-.662-.153-.204-.407-.357-.611-.459-.306-.05-.56-.102-.866-.05z" /> </g> <defs> <clipPath id="clip0"> <path fill="#fff" d="M0 0h78v44H0z" /> </clipPath> </defs> </svg>
8,971
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/paypal-color.svg
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="16" fill="none" viewBox="0 13 60 16"> <g clip-path="url(#clip0)"> <path fill="#179BD7" fill-rule="evenodd" d="M41.026 18.368c-.255 1.674-1.535 1.674-2.772 1.674h-.704l.494-3.126a.388.388 0 01.384-.327h.323c.842 0 1.638 0 2.048.479.245.287.32.712.227 1.3zM40.487 14H35.82c-.32 0-.59.232-.64.547l-1.888 11.959a.389.389 0 00.384.449h2.395a.454.454 0 00.448-.383l.536-3.39a.648.648 0 01.64-.547h1.477c3.074 0 4.849-1.487 5.312-4.434.209-1.288.008-2.3-.595-3.01-.664-.779-1.84-1.191-3.402-1.191z" clip-rule="evenodd" /> <path fill="#253B80" fill-rule="evenodd" d="M7.738 18.368c-.255 1.674-1.534 1.674-2.772 1.674h-.704l.494-3.126a.388.388 0 01.384-.327h.323c.843 0 1.638 0 2.048.479.246.287.32.712.227 1.3zM7.2 14H2.533c-.32 0-.591.232-.641.547L.005 26.506a.389.389 0 00.384.449h2.229c.318 0 .59-.232.64-.547l.51-3.226a.648.648 0 01.64-.547h1.476c3.075 0 4.85-1.487 5.312-4.434.21-1.288.009-2.3-.595-3.01C9.938 14.413 8.761 14 7.2 14zM18.035 22.66c-.216 1.277-1.23 2.134-2.523 2.134-.648 0-1.167-.209-1.5-.603-.33-.391-.455-.949-.35-1.569.2-1.265 1.23-2.149 2.504-2.149.634 0 1.15.21 1.49.609.342.401.477.961.379 1.579zm3.114-4.346h-2.235a.39.39 0 00-.384.328l-.098.625-.156-.226c-.484-.702-1.563-.937-2.64-.937-2.47 0-4.578 1.87-4.989 4.492-.213 1.308.09 2.558.832 3.43.682.802 1.655 1.136 2.815 1.136 1.99 0 3.094-1.277 3.094-1.277l-.1.62a.389.389 0 00.384.45h2.013c.32 0 .59-.232.64-.547l1.209-7.645a.389.389 0 00-.385-.449z" clip-rule="evenodd" /> <path fill="#179BD7" fill-rule="evenodd" d="M51.322 22.66c-.216 1.277-1.23 2.134-2.522 2.134-.648 0-1.168-.209-1.501-.603-.331-.391-.455-.949-.35-1.569.2-1.265 1.23-2.149 2.504-2.149.635 0 1.15.21 1.49.609.342.401.477.961.38 1.579zm3.115-4.346h-2.235a.39.39 0 00-.385.328l-.098.625-.156-.226c-.484-.702-1.563-.937-2.64-.937-2.469 0-4.578 1.87-4.988 4.492-.214 1.308.09 2.558.832 3.43.682.802 1.655 1.136 2.814 1.136 1.99 0 3.094-1.277 3.094-1.277l-.1.62a.389.389 0 00.385.45h2.012c.32 0 .591-.232.64-.547l1.21-7.645a.389.389 0 00-.385-.449z" clip-rule="evenodd" /> <path fill="#253B80" fill-rule="evenodd" d="M33.052 18.314h-2.247a.647.647 0 00-.536.285l-3.098 4.56-1.313-4.382a.65.65 0 00-.622-.463h-2.208a.389.389 0 00-.368.514l2.473 7.256-2.326 3.28a.389.389 0 00.317.613h2.244a.65.65 0 00.533-.279l7.47-10.774a.389.389 0 00-.32-.61z" clip-rule="evenodd" /> <path fill="#179BD7" fill-rule="evenodd" d="M57.07 14.329l-1.914 12.177a.389.389 0 00.383.45h1.927c.319 0 .591-.233.64-.548l1.89-11.959A.389.389 0 0059.61 14h-2.156a.388.388 0 00-.384.329z" clip-rule="evenodd" /> </g> <defs> <clipPath id="clip0"> <path fill="#fff" d="M0 0h60v44H0z" /> </clipPath> </defs> </svg>
8,972
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/paypal.svg
<svg xmlns="http://www.w3.org/2000/svg" width="60" height="44" fill="none" viewBox="0 0 60 44"> <g clip-path="url(#clip0)"> <path fill="#A4A9B5" fill-opacity=".6" fill-rule="evenodd" d="M41.026 18.368c-.255 1.674-1.535 1.674-2.772 1.674h-.704l.494-3.126a.388.388 0 01.384-.327h.323c.842 0 1.638 0 2.048.479.245.287.32.712.227 1.3zM40.487 14H35.82c-.32 0-.59.232-.64.547l-1.888 11.959a.389.389 0 00.384.449h2.395a.454.454 0 00.448-.383l.536-3.39a.648.648 0 01.64-.547h1.477c3.074 0 4.849-1.487 5.312-4.434.209-1.288.008-2.3-.595-3.01-.664-.779-1.84-1.191-3.402-1.191z" clip-rule="evenodd" /> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M7.738 18.368c-.255 1.674-1.534 1.674-2.772 1.674h-.704l.494-3.126a.388.388 0 01.384-.327h.323c.843 0 1.638 0 2.048.479.246.287.32.712.227 1.3zM7.2 14H2.533c-.32 0-.591.232-.641.547L.005 26.506a.389.389 0 00.384.449h2.229c.318 0 .59-.232.64-.547l.51-3.226a.648.648 0 01.64-.547h1.476c3.075 0 4.85-1.487 5.312-4.434.21-1.288.009-2.3-.595-3.01C9.938 14.413 8.761 14 7.2 14zM18.035 22.66c-.216 1.277-1.23 2.134-2.523 2.134-.648 0-1.167-.209-1.5-.603-.33-.391-.455-.949-.35-1.569.2-1.265 1.23-2.149 2.504-2.149.634 0 1.15.21 1.49.609.342.401.477.961.379 1.579zm3.114-4.346h-2.235a.39.39 0 00-.384.328l-.098.625-.156-.226c-.484-.702-1.563-.937-2.64-.937-2.47 0-4.578 1.87-4.989 4.492-.213 1.308.09 2.558.832 3.43.682.802 1.655 1.136 2.815 1.136 1.99 0 3.094-1.277 3.094-1.277l-.1.62a.389.389 0 00.384.45h2.013c.32 0 .59-.232.64-.547l1.209-7.645a.389.389 0 00-.385-.449z" clip-rule="evenodd" /> <path fill="#A4A9B5" fill-opacity=".6" fill-rule="evenodd" d="M51.322 22.66c-.216 1.277-1.23 2.134-2.522 2.134-.648 0-1.168-.209-1.501-.603-.331-.391-.455-.949-.35-1.569.2-1.265 1.23-2.149 2.504-2.149.635 0 1.15.21 1.49.609.342.401.477.961.38 1.579zm3.115-4.346h-2.235a.39.39 0 00-.385.328l-.098.625-.156-.226c-.484-.702-1.563-.937-2.64-.937-2.469 0-4.578 1.87-4.988 4.492-.214 1.308.09 2.558.832 3.43.682.802 1.655 1.136 2.814 1.136 1.99 0 3.094-1.277 3.094-1.277l-.1.62a.389.389 0 00.385.45h2.012c.32 0 .591-.232.64-.547l1.21-7.645a.389.389 0 00-.385-.449z" clip-rule="evenodd" /> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M33.052 18.314h-2.247a.647.647 0 00-.536.285l-3.098 4.56-1.313-4.382a.65.65 0 00-.622-.463h-2.208a.389.389 0 00-.368.514l2.473 7.256-2.326 3.28a.389.389 0 00.317.613h2.244a.65.65 0 00.533-.279l7.47-10.774a.389.389 0 00-.32-.61z" clip-rule="evenodd" /> <path fill="#A4A9B5" fill-opacity=".6" fill-rule="evenodd" d="M57.07 14.329l-1.914 12.177a.389.389 0 00.383.45h1.927c.319 0 .591-.233.64-.548l1.89-11.959A.389.389 0 0059.61 14h-2.156a.388.388 0 00-.384.329z" clip-rule="evenodd" /> </g> <defs> <clipPath id="clip0"> <path fill="#fff" d="M0 0h60v44H0z" /> </clipPath> </defs> </svg>
8,973
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/visa-secure-colored.svg
<svg width="44" height="44" fill="none" xmlns="http://www.w3.org/2000/svg"> <g clip-path="url(#clip0)"> <path d="M44.07.03H.07v43.997H44.07V.03z" fill="#fff" /> <path d="M43.1 22.03H1.042v21.028H43.1V22.03zM17.465 6.18l-4.131 9.88h-2.711L8.585 8.176c-.125-.485-.222-.667-.607-.87a10.713 10.713 0 00-2.522-.84l.06-.286h4.349a1.191 1.191 0 011.18 1.007l1.075 5.718 2.667-6.725h2.678zm10.587 6.667c0-2.61-3.605-2.753-3.58-3.918 0-.353.344-.731 1.084-.827a4.806 4.806 0 012.52.445l.444-2.096a6.89 6.89 0 00-2.388-.444c-2.53 0-4.305 1.333-4.32 3.264-.016 1.422 1.27 2.222 2.237 2.691.967.47 1.334.794 1.334 1.227 0 .667-.794.956-1.527.967a5.334 5.334 0 01-2.633-.631l-.465 2.166c.906.353 1.87.533 2.843.531 2.686 0 4.444-1.333 4.444-3.38l.007.005zm6.66 3.22h2.362L35.023 6.18h-2.18a1.162 1.162 0 00-1.09.725l-3.835 9.155h2.685l.533-1.475h3.278l.298 1.482zm-2.84-3.507l1.344-3.71.785 3.71h-2.13zm-10.76-6.38l-2.107 9.88h-2.56l2.113-9.88h2.554z" fill="#1A1F71" /> <path d="M10.32 34.222c.37.206.784.315 1.207.318.577 0 .904-.273.904-.682 0-.409-.253-.598-.889-.829-.829-.289-1.353-.731-1.353-1.442 0-.822.68-1.436 1.778-1.436.41-.01.817.074 1.19.245l-.222.74a2.142 2.142 0 00-.993-.247c-.578 0-.822.304-.822.6 0 .384.289.562.956.813.864.334 1.28.771 1.28 1.48 0 .807-.607 1.496-1.887 1.496a2.954 2.954 0 01-1.356-.311l.207-.745zM16.889 32.992h-1.876v1.466h2.098v.747h-3.007v-4.982h2.89v.746h-2v1.29h1.895v.733zM21.417 35.055a3.29 3.29 0 01-1.295.223c-1.585 0-2.547-.992-2.547-2.51 0-1.642 1.15-2.626 2.667-2.626.413-.013.825.063 1.206.222l-.193.727a2.446 2.446 0 00-.978-.193c-1.013 0-1.746.637-1.746 1.835 0 1.096.638 1.791 1.74 1.791.338.003.674-.058.99-.178l.156.71zM23.025 30.223v2.909c0 .977.406 1.428 1.022 1.428.666 0 1.05-.444 1.05-1.428v-2.91H26v2.85c0 1.54-.793 2.222-2 2.222-1.155 0-1.904-.645-1.904-2.222v-2.85h.929zM26.977 30.29a7.834 7.834 0 011.378-.112c.718 0 1.198.12 1.54.4a1.267 1.267 0 01.43 1.007 1.313 1.313 0 01-.912 1.244v.022c.362.134.578.48.696.962.104.471.235.936.393 1.392h-.933a6.448 6.448 0 01-.334-1.178c-.146-.651-.377-.858-.889-.873h-.457v2.05h-.912V30.29zm.905 2.2h.54c.613 0 .991-.328.991-.823 0-.54-.378-.8-.969-.8a2.604 2.604 0 00-.562.044v1.578zM33.907 32.992h-1.88v1.466h2.102v.747h-3.018v-4.982h2.9v.746h-2v1.29h1.88l.016.733z" fill="#fff" /> </g> <defs> <clipPath id="clip0"> <path fill="#fff" d="M0 0h44v44H0z" /> </clipPath> </defs> </svg>
8,974
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/bank-icons/visa-secure.svg
<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" fill="none" viewBox="0 0 44 44"> <g clip-path="url(#clip0)"> <path fill="#696F7D" fill-opacity=".6" d="M17.465 6.18l-4.131 9.88h-2.712L8.585 8.176c-.125-.485-.223-.667-.607-.87a10.713 10.713 0 00-2.522-.84l.06-.286h4.349a1.191 1.191 0 011.18 1.007l1.075 5.718 2.667-6.725h2.678zm10.586 6.667c0-2.61-3.604-2.753-3.58-3.918 0-.353.345-.731 1.085-.827a4.807 4.807 0 012.52.445l.444-2.096a6.888 6.888 0 00-2.389-.444c-2.529 0-4.304 1.333-4.32 3.264-.015 1.422 1.271 2.222 2.238 2.691.967.47 1.333.794 1.333 1.227 0 .667-.793.956-1.526.967a5.333 5.333 0 01-2.634-.631l-.464 2.166c.906.353 1.87.533 2.842.531 2.687 0 4.445-1.333 4.445-3.38l.006.005zm6.66 3.22h2.363L35.022 6.18h-2.18a1.162 1.162 0 00-1.088.725l-3.836 9.155h2.684l.534-1.475h3.277l.298 1.482zm-2.84-3.507l1.345-3.71.784 3.71h-2.129zm-10.76-6.38l-2.106 9.88h-2.56l2.113-9.88h2.553z" /> <path fill="#696F7D" fill-opacity=".6" fill-rule="evenodd" d="M1.042 22.029H43.1v21.029H1.042v-21.03zm19.08 13.249c.443.014.883-.062 1.296-.222l-.156-.71c-.316.12-.652.18-.99.179-1.103 0-1.74-.696-1.74-1.792 0-1.197.733-1.835 1.746-1.835.336-.004.669.062.978.193l.193-.727a2.89 2.89 0 00-1.207-.222c-1.517 0-2.666.985-2.666 2.627 0 1.518.962 2.509 2.546 2.509zm-9.802-1.056c.37.206.784.315 1.207.318.578 0 .904-.273.904-.682 0-.409-.253-.598-.889-.829-.829-.289-1.353-.731-1.353-1.442 0-.822.68-1.436 1.778-1.436.41-.01.818.074 1.191.245l-.222.74a2.142 2.142 0 00-.994-.247c-.577 0-.822.304-.822.6 0 .384.29.562.956.813.864.334 1.28.771 1.28 1.48 0 .807-.607 1.496-1.887 1.496a2.954 2.954 0 01-1.355-.311l.206-.745zm6.569-1.23h-1.876v1.466h2.098v.746h-3.007v-4.982h2.89v.747h-2v1.289h1.895v.733zm6.135-2.77v2.91c0 .977.407 1.428 1.023 1.428.666 0 1.05-.445 1.05-1.429v-2.909H26v2.85c0 1.54-.793 2.221-2 2.221-1.156 0-1.904-.644-1.904-2.222v-2.849h.928zm5.332-.044a7.843 7.843 0 00-1.378.11v4.917h.911v-2.052h.458c.51.016.742.223.889.874.073.402.185.796.333 1.178h.933c-.157-.456-.289-.92-.393-1.392-.118-.482-.333-.829-.696-.962v-.022a1.313 1.313 0 00.912-1.245 1.267 1.267 0 00-.43-1.006c-.342-.28-.822-.4-1.54-.4zm.066 2.31h-.54v-1.577a2.61 2.61 0 01.563-.044c.59 0 .968.26.968.8 0 .495-.377.822-.99.822zm5.485.503h-1.88v1.467h2.102v.746H31.11v-4.982h2.9v.747h-2v1.289h1.88l.016.733z" clip-rule="evenodd" /> </g> <defs> <clipPath id="clip0"> <path fill="#fff" d="M0 0h44v44H0z" /> </clipPath> </defs> </svg>
8,975
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/airbnb.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#FF385C" d="M5 17c0-6.627 5.373-12 12-12h14c6.627 0 12 5.373 12 12v14c0 6.627-5.373 12-12 12H17c-6.627 0-12-5.373-12-12V17Z" /> <path fill="#fff" d="M34.635 30.148c-.008-.679-.167-1.35-.414-1.98-.192-.489-.415-.963-.631-1.44a271.043 271.043 0 0 0-5.43-11.158c-.267-.515-.527-1.031-.81-1.538-.276-.494-.598-.968-1.015-1.355a3.966 3.966 0 0 0-2.472-1.069h-.422a3.947 3.947 0 0 0-2.539 1.102c-.402.38-.712.844-.98 1.323-.279.498-.536 1.008-.797 1.513a274.449 274.449 0 0 0-3.701 7.459c-.713 1.498-1.42 3-2.1 4.514-.282.631-.536 1.283-.633 1.97a5.029 5.029 0 0 0 2.973 5.351 5.137 5.137 0 0 0 2.325.412c1.062-.057 2.087-.44 2.987-.997 1.004-.615 1.862-1.434 2.662-2.292.742.8 1.537 1.566 2.456 2.164.886.584 1.897 1.005 2.96 1.106a5.105 5.105 0 0 0 3.322-.808 5.066 5.066 0 0 0 1.903-2.338 5.01 5.01 0 0 0 .356-1.939ZM23.643 29.7c-.29-.341-.546-.71-.803-1.077a13.223 13.223 0 0 1-1.14-1.995c-.258-.58-.466-1.19-.547-1.821-.059-.502-.045-1.025.139-1.502.169-.45.478-.832.883-1.09.956-.617 2.32-.55 3.186.198.44.374.7.926.767 1.494.087.755-.085 1.513-.349 2.217-.497 1.307-1.285 2.478-2.136 3.576Zm9.383 1.601a3.557 3.557 0 0 1-1.673 2.098 3.654 3.654 0 0 1-2.367.4c-1.022-.159-1.94-.702-2.735-1.343-.585-.47-1.111-1.006-1.615-1.56.796-1.006 1.546-2.06 2.118-3.21.501-1.01.881-2.102.916-3.235.02-.72-.115-1.453-.45-2.093-.441-.856-1.23-1.514-2.132-1.831a4.367 4.367 0 0 0-2.644-.084 3.926 3.926 0 0 0-2.062 1.395 3.924 3.924 0 0 0-.763 2.05c-.09 1.06.176 2.117.577 3.09.597 1.423 1.473 2.712 2.441 3.907-.436.503-.91.974-1.416 1.407-.786.665-1.686 1.244-2.704 1.464a3.699 3.699 0 0 1-2.466-.289 3.546 3.546 0 0 1-1.82-2.225 3.66 3.66 0 0 1 .08-2.145c.194-.568.457-1.109.703-1.655a270.692 270.692 0 0 1 5.369-11.04c.28-.542.554-1.086.85-1.62.241-.428.522-.85.918-1.151.429-.334.96-.51 1.503-.5a2.373 2.373 0 0 1 1.541.558c.422.35.707.83.963 1.307a176.756 176.756 0 0 1 1.69 3.285 266.913 266.913 0 0 1 4.573 9.513c.221.497.457.991.606 1.515a3.628 3.628 0 0 1 0 1.992Z" /> </svg>
8,976
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/amazon.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#F90" d="M39.086 36.933c-17.013 8.098-27.573 1.323-34.332-2.792-.419-.26-1.13.061-.512.77 2.25 2.73 9.631 9.31 19.263 9.31 9.64 0 15.374-5.258 16.091-6.177.713-.91.21-1.41-.51-1.11Zm4.779-2.638c-.458-.595-2.778-.706-4.24-.526-1.463.173-3.659 1.069-3.468 1.605.098.201.298.111 1.302.02 1.008-.1 3.833-.456 4.42.313.592.774-.9 4.462-1.172 5.058-.263.595.1.749.595.352.488-.396 1.37-1.422 1.963-2.874.587-1.458.946-3.495.599-3.948Z" /> <path fill="#000" fill-rule="evenodd" d="M27.646 20.411c0 2.124.053 3.897-1.02 5.784-.867 1.534-2.24 2.477-3.774 2.477-2.095 0-3.313-1.596-3.313-3.95 0-4.648 4.165-5.492 8.107-5.492v1.181Zm5.5 13.292c-.36.322-.883.346-1.29.132-1.81-1.504-2.131-2.202-3.129-3.637-2.992 3.053-5.108 3.966-8.99 3.966-4.586 0-8.16-2.83-8.16-8.5 0-4.424 2.4-7.439 5.813-8.911 2.962-1.305 7.096-1.534 10.255-1.895v-.705c0-1.297.1-2.83-.659-3.95-.667-1.005-1.94-1.42-3.06-1.42-2.078 0-3.935 1.066-4.387 3.275-.092.492-.453.975-.944.998l-5.292-.568c-.446-.1-.936-.46-.814-1.143C13.71 4.933 19.5 3 24.685 3c2.654 0 6.121.705 8.215 2.716 2.653 2.476 2.4 5.783 2.4 9.38v8.499c0 2.554 1.059 3.673 2.057 5.053.352.492.428 1.083-.016 1.451a230.186 230.186 0 0 0-4.18 3.62l-.015-.016Z" clip-rule="evenodd" /> <path fill="#F90" d="M39.086 36.933c-17.013 8.098-27.573 1.323-34.332-2.792-.419-.26-1.13.061-.512.77 2.25 2.73 9.631 9.31 19.263 9.31 9.64 0 15.374-5.258 16.091-6.177.713-.91.21-1.41-.51-1.11Zm4.779-2.638c-.458-.595-2.778-.706-4.24-.526-1.463.173-3.659 1.069-3.468 1.605.098.201.298.111 1.302.02 1.008-.1 3.833-.456 4.42.313.592.774-.9 4.462-1.172 5.058-.263.595.1.749.595.352.488-.396 1.37-1.422 1.963-2.874.587-1.458.946-3.495.599-3.948Z" /> <path fill="#000" fill-rule="evenodd" d="M27.646 20.411c0 2.124.053 3.897-1.02 5.784-.867 1.534-2.24 2.477-3.774 2.477-2.095 0-3.313-1.596-3.313-3.95 0-4.648 4.165-5.492 8.107-5.492v1.181Zm5.5 13.292c-.36.322-.883.346-1.29.132-1.81-1.504-2.131-2.202-3.129-3.637-2.992 3.053-5.108 3.966-8.99 3.966-4.586 0-8.16-2.83-8.16-8.5 0-4.424 2.4-7.439 5.813-8.911 2.962-1.305 7.096-1.534 10.255-1.895v-.705c0-1.297.1-2.83-.659-3.95-.667-1.005-1.94-1.42-3.06-1.42-2.078 0-3.935 1.066-4.387 3.275-.092.492-.453.975-.944.998l-5.292-.568c-.446-.1-.936-.46-.814-1.143C13.71 4.933 19.5 3 24.685 3c2.654 0 6.121.705 8.215 2.716 2.653 2.476 2.4 5.783 2.4 9.38v8.499c0 2.554 1.059 3.673 2.057 5.053.352.492.428 1.083-.016 1.451a230.186 230.186 0 0 0-4.18 3.62l-.015-.016Z" clip-rule="evenodd" /> </svg>
8,977
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/american-express.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#fff" d="M5 5v38h38V5H5Z" /> <path fill="#006FCF" d="m36.223 14.323 1.216-3.306H43V5H5v38h38v-6.004h-5.244l-1.938-2.267-2.014 2.267H18.908V24.925h-4.915l6.144-13.908h5.978l1.444 3.154v-3.154h7.423l1.241 3.306Zm-4.192 2.191-.013-1.33.507 1.33 2.47 6.6h2.457l2.483-6.6.481-1.317v7.916H43V12.98h-4.294l-1.95 5.143-.52 1.393-.532-1.393-1.963-5.143h-4.294v10.133h2.584v-6.599Zm-5.561 6.6h2.977L24.988 12.98H21.53l-4.484 10.133h2.939l.785-1.95h4.915l.785 1.95Zm-3.75-6.701.507-1.267.507 1.267 1.051 2.558H21.67l1.052-2.558Zm-1.735 8.524v10.096h8.462V32.84h-5.878v-1.76h5.764v-2.179h-5.764v-1.773h5.878v-2.192h-8.462Zm17.873 10.096h3.357l-4.738-5.067 4.738-5.029h-3.306l-3.053 3.281-3.04-3.28h-3.37l4.725 5.066-4.724 5.029h3.268l3.078-3.294 3.065 3.294Zm1.28-5.08L43 32.867v-5.789l-2.863 2.875Z" /> </svg>
8,978
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/apple.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#000" d="M36.1 23.497c-.02-3.488 1.567-6.12 4.782-8.06-1.798-2.557-4.515-3.963-8.102-4.238-3.395-.267-7.106 1.967-8.465 1.967-1.434 0-4.724-1.873-7.307-1.873C11.672 11.38 6 15.523 6 23.953c0 2.49.458 5.063 1.377 7.719C8.6 35.159 13.02 43.713 17.629 43.57c2.411-.056 4.114-1.7 7.251-1.7 3.041 0 4.62 1.7 7.307 1.7 4.648-.065 8.646-7.84 9.813-11.337-6.235-2.92-5.9-8.554-5.9-8.736ZM30.686 7.89c2.61-3.08 2.371-5.883 2.295-6.891-2.304.133-4.974 1.558-6.494 3.317-1.674 1.882-2.659 4.211-2.449 6.833 2.496.19 4.773-1.082 6.648-3.259Z" /> </svg>
8,979
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/att.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="url(#a)" d="M11.736 39.792a19.975 19.975 0 0 0 12.265 4.203c5.052 0 9.659-1.876 13.175-4.957.042-.037.021-.063-.021-.037-1.578 1.054-6.074 3.355-13.154 3.355-6.155 0-10.043-1.375-12.24-2.6-.04-.021-.057.01-.025.036Zm13.622 1.022c4.921 0 10.33-1.342 13.564-3.998.886-.724 1.728-1.687 2.484-2.982.434-.745.86-1.63 1.206-2.5.015-.043-.01-.063-.042-.015-3.008 4.428-11.72 7.19-20.713 7.19-6.357 0-13.198-2.035-15.876-5.916-.026-.037-.053-.021-.037.02 2.494 5.304 10.063 8.201 19.414 8.201Zm-5.377-8.799c-10.237 0-15.063-4.768-15.94-8.022-.01-.048-.041-.037-.041.005 0 1.096.11 2.51.298 3.448.09.456.462 1.173 1.007 1.744 2.478 2.585 8.658 6.207 19.36 6.207 14.582 0 17.916-4.859 18.597-6.457.486-1.143.738-3.208.738-4.943 0-.361-.008-.723-.026-1.084 0-.053-.031-.057-.042-.006-.729 3.91-13.186 9.108-23.951 9.108ZM5.928 15.419c-.587 1.164-1.236 3.128-1.43 4.145-.084.436-.05.645.104.97 1.228 2.604 7.433 6.77 21.909 6.77 8.83 0 15.691-2.17 16.803-6.13.204-.73.215-1.499-.048-2.536-.293-1.16-.844-2.511-1.309-3.46-.016-.031-.043-.026-.037.01.172 5.195-14.308 8.543-21.616 8.543-7.914 0-14.516-3.155-14.516-7.138 0-.382.08-.765.178-1.163.01-.037-.022-.043-.038-.011Zm31.28-6.377a.806.806 0 0 1 .126.461c0 2.222-6.798 6.153-17.62 6.153-7.952 0-9.441-2.951-9.441-4.827 0-.671.257-1.357.824-2.055.031-.04.004-.057-.031-.026a19.996 19.996 0 0 0-2.816 2.925c-.397.503-.644.948-.644 1.215 0 3.888 9.748 6.708 18.863 6.708 9.712 0 14.046-3.171 14.046-5.958 0-.996-.387-1.577-1.38-2.705a23.585 23.585 0 0 0-1.896-1.918c-.031-.026-.052-.005-.031.027ZM34.23 6.82A19.774 19.774 0 0 0 24.001 4c-3.78 0-7.365 1.058-10.374 2.903-.901.555-1.409 1-1.409 1.573 0 1.687 3.94 3.5 10.932 3.5 6.92 0 12.287-1.986 12.287-3.899 0-.455-.4-.775-1.206-1.257" /> <defs> <radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="matrix(0 24.0592 -28.9577 0 17.014 24.273)" gradientUnits="userSpaceOnUse" > <stop stop-color="#00A8E0" /> <stop offset="1" stop-color="#1696D4" /> </radialGradient> </defs> </svg>
8,980
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/bank-of-america.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#E31837" d="M23.93 36.476C31.195 30.252 41.398 24.2 47 22.021c-.865-.553-2.213-1.349-3.736-2.213-7.228 2.386-15.667 7.677-23.207 13.66 1.28.968 2.629 1.971 3.874 3.008Z" /> <path fill="#012169" d="M20.61 19.565c-1.072-.518-2.248-1.003-3.147-1.418-2.732 1.349-6.295 3.39-10.791 6.605.969.52 2.006 1.142 3.112 1.764 3.46-2.559 6.953-4.98 10.826-6.95Z" /> <path fill="#E31837" d="M27.078 16.591c-1.314-.726-5.88-2.42-9.027-3.147-.934.346-2.248.865-3.147 1.245 1.141.311 5.395 1.452 9.027 3.285.934-.449 2.248-1.003 3.147-1.383Z" /> <path fill="#012169" d="M11.618 16.141C7.571 18.01 3.317 20.568 1 22.056c.83.38 1.66.691 2.801 1.244 5.12-3.458 9.131-5.568 10.722-6.26-1.142-.415-2.213-.69-2.905-.899Z" /> <path fill="#E31837" d="M30.122 15.519c.933-.311 2.006-.588 2.94-.864-2.698-1.142-6.088-2.352-9.131-3.113-.485.139-1.937.519-2.94.83 1.038.311 4.461 1.107 9.13 3.147ZM13.07 28.522c1.106.657 2.282 1.557 3.424 2.317C24.07 24.96 31.54 20.43 39.737 17.871c-1.142-.588-2.145-1.107-3.424-1.73-4.912 1.246-13.316 4.6-23.242 12.381Z" /> </svg>
8,981
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/best-buy.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#1C252C" d="M2 11.319V22.43h5.813c2.288 0 4.402-.804 4.402-3.164 0-1.596-1.149-2.325-2.412-2.707.77-.308 1.643-.958 1.643-2.319 0-1.741-1.727-2.922-4.052-2.922H2Zm3.56 2.588h1.31c.534 0 .94.418.94.841 0 .394-.423.817-.94.817H5.56v-1.658Zm0 3.963h1.73c.603 0 1.11.459 1.11.983 0 .556-.474 1.018-1.214 1.018H5.56v-2Zm-.68 5.772v11.111h5.814c2.287 0 4.402-.803 4.402-3.164 0-1.596-1.15-2.325-2.413-2.706.77-.308 1.643-.959 1.643-2.32 0-1.74-1.727-2.921-4.052-2.921H4.88Zm3.561 2.588h1.31c.533 0 .94.418.94.841 0 .394-.424.816-.94.816H8.44V26.23Zm0 3.963h1.728c.604 0 1.11.459 1.11.983 0 .556-.473 1.019-1.214 1.019H8.44v-2.002Zm4.053-7.765v-11.11h8.955V14h-5.404v1.457h4.389v2.516h-4.389v1.781h5.404v2.674h-8.955Zm13.806.318c2.521 0 4.537-1.438 4.537-3.77 0-3.764-4.891-3.185-4.891-4.356 0-.452.475-.693.963-.693.84 0 1.448.554 1.448.554l2.104-2.005C29.621 11.674 28.291 11 26.5 11c-2.69 0-4.45 1.598-4.45 3.525 0 3.81 4.822 3.258 4.822 4.454 0 .42-.404.84-1.134.84-.83 0-1.488-.5-2-.926l-2.116 2.02c.852.831 2.221 1.833 4.678 1.833Zm7.278-.317V13.99h-2.932v-2.672h9.426v2.672H37.14v8.438h-3.561Zm-18.36 1.205h3.55v6.656c0 .677.672 1.299 1.373 1.299.662 0 1.33-.562 1.33-1.334v-6.621h3.54v6.575c0 2.61-2.165 4.691-4.963 4.691-2.815 0-4.83-2.265-4.83-4.833v-6.433Zm14.17 11.111v-3.97l-4.172-7.141h3.592l2.361 3.826 2.37-3.826h3.6l-4.189 7.182v3.93h-3.56Z" /> <path fill="#FFED31" d="m37.14 29.715-2.095 2.097v2.83l2.094 2.096H46v-7.023h-8.86Z" /> <path fill="#1C252C" d="M36.795 33.225a.472.472 0 1 1-.944.002.472.472 0 0 1 .944-.002Z" /> </svg>
8,982
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/binance.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#F3BA2F" d="M15.455 20.489 24 11.944l8.548 8.55 4.973-4.973L24 2 10.482 15.517l4.973 4.972Zm-8.484-1.462 4.973 4.971-4.973 4.973L2 23.998l4.971-4.97Zm8.484 8.483L24 36.055l8.548-8.549 4.975 4.97-.002.003L24 45.999 10.475 32.477l4.98-4.966ZM46 24l-4.973 4.973-4.971-4.972 4.972-4.972L46 24Z" /> <path fill="#F3BA2F" d="M29.043 23.997h.002L24 18.952l-3.73 3.728h-.001l-.428.428-.884.885-.007.007L24 29.048l5.046-5.045.001-.003-.003-.003Z" /> </svg>
8,983
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/booking.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#0C3B7C" fill-rule="evenodd" d="M44 11.51A7.516 7.516 0 0 0 36.488 4H11.512A7.516 7.516 0 0 0 4 11.51v23.98A7.516 7.516 0 0 0 11.513 43h24.975A7.516 7.516 0 0 0 44 35.49V11.51Z" clip-rule="evenodd" /> <path fill="#0C3B7C" fill-rule="evenodd" d="M4 27h20v16H4V27Z" clip-rule="evenodd" /> <path fill="#fff" d="m23.18 29.817-3.223-.003V25.96c0-.823.32-1.251 1.024-1.349h2.198c1.568 0 2.582.988 2.582 2.588 0 1.643-.989 2.615-2.582 2.617Zm-3.223-10.39v-1.015c0-.887.376-1.309 1.199-1.363h1.65c1.413 0 2.26.845 2.26 2.262 0 1.078-.58 2.338-2.21 2.338h-2.899v-2.223Zm7.336 3.844-.582-.328.508-.434c.592-.51 1.584-1.653 1.584-3.627 0-3.022-2.344-4.972-5.972-4.972h-4.14v-.001h-.471a2.02 2.02 0 0 0-1.948 1.996v17.151h6.64c4.033 0 6.635-2.195 6.635-5.594 0-1.831-.84-3.395-2.254-4.191Z" /> <path fill="#00BAFC" d="M31.277 30.687c0-1.31 1.056-2.37 2.358-2.37a2.37 2.37 0 0 1 0 4.74 2.365 2.365 0 0 1-2.358-2.37Z" /> </svg>
8,984
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/capital-one.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#CC2427" d="M6.897 4.504c5.793-.382 11.604-.607 17.414-.457 4.142.14 8.297.41 12.365 1.251 2.294.507 4.612 1.157 6.618 2.42 1.199.778 2.375 1.867 2.629 3.342.316 1.71-.388 3.394-1.248 4.835-1.604 2.591-3.79 4.756-6.033 6.793-2.828 2.515-5.84 4.816-8.93 6.997-3.032 2.109-6.072 4.205-9.162 6.228a201.86 201.86 0 0 1-12.07 7.179H2.91c2.848-1.98 5.524-4.195 8.147-6.464 3.231-2.799 6.365-5.71 9.438-8.682.6-.577 1.244-1.121 1.698-1.828 1.464-2.053 2.812-4.417 2.743-7.018-.04-1.779-1.009-3.413-2.324-4.556-2.164-1.858-4.926-2.81-7.641-3.527-2.744-.7-5.554-1.085-8.364-1.387C5.07 9.544 3.54 9.33 2 9.32V4.893c1.626-.197 3.264-.266 4.897-.39v.001Z" /> </svg>
8,985
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/chase.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#117ACA" d="M18.343 5C17.6 5 17 5.6 17 6.341v9.406h24.84L30.529 5.001 18.343 5ZM42.75 18.594c0-.742-.596-1.34-1.342-1.34h-9.4V42.1l10.738-11.32.004-12.186ZM29.159 43c.74 0 1.34-.601 1.34-1.344v-9.402H5.658l11.314 10.744L29.159 43ZM4.75 29.409c0 .741.6 1.346 1.343 1.346h9.4V5.904L4.752 17.223 4.75 29.41Z" /> </svg>
8,986
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/coinbase.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#fff" d="M24 2c12.148 0 22 9.852 22 22s-9.852 22-22 22S2 36.148 2 24 11.852 2 24 2Z" /> <path fill="#0052FF" d="M24.007 31.736A7.733 7.733 0 0 1 16.273 24a7.731 7.731 0 0 1 7.734-7.733c3.828 0 7.006 2.79 7.619 6.445h7.792c-.658-7.941-7.302-14.18-15.411-14.18C15.468 8.531 8.538 15.46 8.538 24s6.93 15.469 15.469 15.469c8.109 0 14.754-6.24 15.41-14.181H31.62c-.612 3.656-3.784 6.448-7.612 6.448Z" /> </svg>
8,987
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/credit-karma.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#008600" d="M5 5h38v38H5z" /> <path fill="#fff" d="M13.805 26.617c0-3.497 1.684-5.293 4.396-5.293 2.02 0 3.271.786 3.723 1.01.337-.336.558-.898.558-1.459 0-1.01-1.12-2.02-4.392-2.02-3.833 0-7.09 2.694-7.09 7.762s2.934 7.763 6.754 7.763c2.357 0 4.17-.786 4.728-1.01v-2.807c-.558.449-2.468 1.347-4.28 1.347-2.469 0-4.397-1.797-4.397-5.293Zm18.688-.112c1.684-2.021 3.27-4.395 4.392-7.426l-2.468-.898c-1.574 4.282-3.945 7.201-6.754 9.575V13h-2.694v21.059h2.694v-3.16c1.01-.786 1.91-1.571 2.934-2.47l2.473 4.283c.562 1.01 1.457 1.571 2.694 1.571.673 0 1.12-.224 1.236-.336l-4.507-7.426v-.016Z" /> </svg>
8,988
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/discord.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#5865F2" d="M39.305 9.833c4.97 7.309 7.423 15.553 6.505 25.043a.14.14 0 0 1-.057.101c-3.763 2.764-7.409 4.442-11.004 5.554a.14.14 0 0 1-.155-.053 29.329 29.329 0 0 1-2.246-3.654.141.141 0 0 1 .075-.196 22.448 22.448 0 0 0 3.434-1.633.141.141 0 0 0 .013-.234 18.91 18.91 0 0 1-.685-.536.133.133 0 0 0-.143-.018c-7.116 3.288-14.912 3.288-22.113 0a.138.138 0 0 0-.142.02c-.223.183-.45.361-.682.534a.141.141 0 0 0-.035.186.14.14 0 0 0 .049.048 23.972 23.972 0 0 0 3.432 1.635.139.139 0 0 1 .076.194 26.133 26.133 0 0 1-2.247 3.657.143.143 0 0 1-.154.05c-3.578-1.112-7.224-2.79-10.988-5.554a.15.15 0 0 1-.056-.103c-.767-8.21.796-16.521 6.5-25.043a.138.138 0 0 1 .059-.05 36.21 36.21 0 0 1 8.955-2.779.144.144 0 0 1 .145.069c.388.687.832 1.569 1.132 2.29a33.51 33.51 0 0 1 10.06 0c.3-.705.727-1.603 1.115-2.29a.138.138 0 0 1 .144-.069 36.343 36.343 0 0 1 8.956 2.778.12.12 0 0 1 .057.053ZM20.657 25.44c.035-2.427-1.734-4.434-3.954-4.434-2.203 0-3.954 1.99-3.954 4.434s1.786 4.435 3.954 4.435c2.203 0 3.954-1.991 3.954-4.435Zm14.62 0c.035-2.427-1.734-4.434-3.953-4.434-2.204 0-3.955 1.99-3.955 4.434s1.786 4.435 3.955 4.435c2.22 0 3.953-1.991 3.953-4.435Z" /> </svg>
8,989
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/discover.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#F27923" d="M24.9 27.819c2.08 0 3.766-1.663 3.766-3.716 0-2.052-1.686-3.715-3.766-3.715s-3.766 1.663-3.766 3.715c0 2.052 1.686 3.716 3.766 3.716Z" /> <path fill="#1A1918" fill-rule="evenodd" d="M3.875 20.541H1.882v6.87h1.983c1.054 0 1.815-.246 2.484-.793a3.43 3.43 0 0 0 1.264-2.637c0-2.028-1.535-3.44-3.738-3.44Zm1.587 5.16c-.427.38-.981.547-1.859.547H3.24v-4.543h.364c.878 0 1.41.155 1.859.556.47.412.752 1.052.752 1.71 0 .66-.283 1.318-.752 1.73Zm2.776-5.16h1.358v6.87H8.238v-6.87Zm4.679 2.636c-.815-.297-1.054-.494-1.054-.865 0-.433.426-.761 1.011-.761.407 0 .742.165 1.095.556l.711-.918a3.07 3.07 0 0 0-2.046-.761c-1.232 0-2.172.843-2.172 1.968 0 .946.438 1.43 1.713 1.884.532.185.803.308.94.391.27.175.406.422.406.71 0 .557-.448.97-1.054.97-.648 0-1.17-.32-1.482-.916l-.878.833c.626.906 1.378 1.308 2.411 1.308 1.411 0 2.401-.926 2.401-2.256 0-1.091-.457-1.585-2.002-2.143Zm2.431.803c0 2.02 1.607 3.585 3.675 3.585.585 0 1.085-.113 1.703-.4v-1.577c-.543.536-1.024.752-1.64.752-1.368 0-2.338-.978-2.338-2.37 0-1.318 1.001-2.358 2.275-2.358.648 0 1.138.227 1.703.772v-1.576c-.596-.299-1.087-.422-1.67-.422-2.059 0-3.708 1.597-3.708 3.595Zm16.146 1.175-1.857-4.614h-1.483l2.955 7.046h.73l3.008-7.046h-1.472l-1.88 4.614Zm3.967 2.255h3.852v-1.162h-2.495v-1.855h2.403V23.23h-2.403v-1.525h2.495v-1.164h-3.852v6.87Zm9.229-4.84c0-1.287-.898-2.029-2.464-2.029h-2.014v6.87h1.357v-2.76h.177l1.88 2.76h1.67l-2.192-2.895c1.023-.205 1.586-.895 1.586-1.947Zm-2.724 1.134h-.397v-2.08h.418c.846 0 1.306.349 1.306 1.017 0 .691-.46 1.063-1.327 1.063Zm3.591-2.904c0-.12-.084-.187-.232-.187h-.196v.604h.146v-.234l.171.234h.179l-.202-.25c.087-.022.134-.084.134-.168Zm-.257.082h-.025v-.158h.026c.073 0 .11.026.11.078 0 .053-.038.08-.111.08Z" clip-rule="evenodd" /> <path fill="#1A1918" fill-rule="evenodd" d="M45.355 20.387a.527.527 0 1 0 0 1.053c.29 0 .527-.237.527-.526a.529.529 0 0 0-.527-.527Zm-.002.96a.428.428 0 0 1-.425-.433c0-.24.189-.432.425-.432a.43.43 0 0 1 .422.433c0 .237-.19.431-.422.431Z" clip-rule="evenodd" /> </svg>
8,990
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/disney-plus.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#01147C" d="M33.097 27.508c-.609.14-2.211.221-2.211.221l-.204.637s.8-.069 1.383-.01c0 0 .19-.02.212.217.009.221-.017.458-.017.458s-.012.145-.216.18c-.22.037-1.725.093-1.725.093l-.246.827s-.088.19.115.136c.19-.052 1.768-.348 1.975-.305.22.054.465.347.393.619-.084.331-1.658 1.341-2.618 1.268 0 0-.503.035-.93-.648-.397-.65.152-1.885.152-1.885s-.25-.577-.067-.768c0 0 .11-.098.422-.123l.385-.802s-.44.029-.702-.293c-.245-.31-.262-.45-.076-.535.2-.097 2.03-.433 3.29-.39 0 0 .44-.043.816.721-.004 0 .182.31-.13.382Zm-4.74 3.081c-.161.382-.588.79-1.117.535-.524-.254-1.357-1.965-1.357-1.965s-.317-.637-.377-.624c0 0-.068-.123-.11.573-.042.696.009 2.05-.266 2.262-.262.212-.58.128-.745-.123-.148-.246-.211-.832-.13-1.858.097-1.028.334-2.122.638-2.466.305-.34.55-.094.643-.005 0 0 .406.37 1.078 1.456l.119.2s.609 1.027.672 1.022c0 0 .051.047.093.013.064-.017.038-.348.038-.348s-.127-1.116-.68-3.009c0 0-.085-.238-.026-.459.055-.224.28-.118.28-.118s.862.432 1.276 1.842c.41 1.422.132 2.69-.03 3.072Zm-4.238-3.62c-.072.145-.114.352-.478.408 0 0-3.48.237-3.645.483 0 0-.123.145.068.187.19.038.976.145 1.357.165.406.005 1.777.017 2.267.633 0 0 .292.293.279.955-.013.679-.131.917-.393 1.163-.276.229-2.635 1.29-4.158-.34 0 0-.701-.785.241-1.38 0 0 .682-.41 2.412.073 0 0 .523.191.498.382-.03.203-.431.42-1.015.408-.567-.018-.98-.29-.9-.247.076.03-.61-.33-.821-.085-.212.226-.16.366.047.505.528.302 2.571.196 3.18-.483 0 0 .24-.276-.127-.501-.368-.212-1.42-.34-1.831-.36-.393-.022-1.857.004-2.068-.387 0 0-.212-.263.02-1.01.246-.78 1.95-1.082 2.687-1.15 0 0 2.025-.072 2.397.343-.004 0 .047.098-.017.238Zm-5.751 4.58c-.245.182-.765.102-.913-.103-.149-.182-.2-.908-.17-2.045.03-1.15.055-2.576.3-2.801.263-.23.424-.03.525.127.11.153.241.323.27.683.026.361.11 2.254.11 2.254s.11 1.706-.122 1.885Zm.528-6.103c-.714.237-1.205.156-1.62-.021-.181.318-.287.415-.426.436-.203.022-.386-.305-.419-.412-.034-.08-.131-.216-.013-.538-.406-.365-.436-.858-.368-1.189.102-.382.787-1.833 2.872-2.003 0 0 1.02-.076 1.193.471h.029s.99.004.968.887c-.012.888-1.1 1.991-2.216 2.369Zm-1.945-1.966c-.211.34-.22.544-.123.684.242-.37.682-.95 1.329-1.392-.5.042-.918.259-1.206.708Zm2.88-.568c-.655.098-1.67.98-2.152 1.702.74.136 2.047.085 2.626-1.1-.004 0 .274-.734-.474-.602Zm17.796 6.837c-.394.687-1.497 2.122-2.969 1.787-.486 1.184-.892 2.376-1.124 4.167 0 0-.052.349-.34.225-.283-.101-.756-.577-.849-1.235-.102-.865.283-2.33 1.066-4.006-.229-.373-.385-.908-.25-1.668 0 0 .2-1.41 1.607-2.682 0 0 .17-.148.266-.102.11.047.06.505-.029.726-.09.22-.72 1.315-.72 1.315s-.392.739-.282 1.32c.74-1.141 2.422-3.446 3.467-2.72.352.25.512.797.512 1.388-.005.522-.127 1.073-.355 1.485Zm-.304-1.808s-.06-.454-.5.047c-.38.42-1.066 1.213-1.62 2.288.58-.064 1.138-.383 1.307-.544.276-.246.914-.908.813-1.79Zm-20.533.577c-.08 1.027-.473 2.755-3.26 3.607-1.84.557-3.577.29-4.525.047-.021.378-.064.54-.123.603-.08.08-.68.428-1.01-.063-.149-.234-.225-.658-.267-1.036-2.131-.985-3.112-2.402-3.15-2.466-.047-.047-.533-.556-.047-1.18.456-.565 1.95-1.129 3.294-1.358.047-1.155.183-2.025.343-2.424.195-.462.44-.046.651.268.178.234.283 1.24.292 2.041.88-.042 1.4.022 2.381.2 1.277.233 2.131.887 2.055 1.63-.055.73-.723 1.03-.977 1.052-.266.021-.68-.17-.68-.17-.284-.135-.022-.254.32-.403.373-.182.288-.369.288-.369-.14-.407-1.797-.692-3.446-.692-.01.912.038 2.428.059 3.31 1.155.222 2.018.18 2.018.18s4.21-.12 4.338-2.819c.131-2.704-4.2-5.297-7.401-6.12-3.196-.84-5.007-.255-5.163-.174-.17.085-.013.11-.013.11s.174.025.474.128c.317.101.071.267.071.267-.545.174-1.158.064-1.277-.187-.118-.25.08-.475.31-.798.228-.34.477-.327.477-.327 3.954-1.375 8.771 1.112 8.771 1.112 4.512 2.297 5.282 4.987 5.197 6.031Zm-11.934-.14c-.448.221-.14.54-.14.54.842.908 1.878 1.476 2.863 1.828.115-1.566.098-2.118.11-2.907-1.539.107-2.426.353-2.833.539ZM46 28.055v.56a.22.22 0 0 1-.22.222h-2.66c0 .14.004.263.004.377 0 .828-.034 1.503-.114 2.262a.22.22 0 0 1-.215.2h-.575a.204.204 0 0 1-.196-.143.206.206 0 0 1-.008-.087c.08-.755.119-1.422.119-2.232 0-.119 0-.242-.005-.377H39.5a.218.218 0 0 1-.22-.221v-.56c0-.124.097-.221.22-.221h2.592a19.567 19.567 0 0 0-.342-2.682.198.198 0 0 1 .038-.153.18.18 0 0 1 .14-.068h.622c.096 0 .177.068.198.165.171.905.284 1.82.338 2.738h2.694c.119 0 .22.102.22.22Z" /> <path fill="url(#a)" d="M40.55 23.612a18.616 18.616 0 0 0-6.715-8.36A18.41 18.41 0 0 0 23.354 12a18.498 18.498 0 0 0-15.448 8.302.216.216 0 0 0-.026.19.206.206 0 0 0 .136.136l.482.166a.279.279 0 0 0 .309-.106 17.725 17.725 0 0 1 6.19-5.615 17.576 17.576 0 0 1 8.353-2.118 17.46 17.46 0 0 1 9.828 3.014 17.648 17.648 0 0 1 6.373 7.762.255.255 0 0 0 .233.157h.575a.194.194 0 0 0 .165-.09.186.186 0 0 0 .025-.186Zm-.883.2c.012.008.025.017.038.021-.013-.009-.026-.013-.038-.021Z" /> <defs> <radialGradient id="a" cx="0" cy="0" r="1" gradientTransform="matrix(32.145 0 0 32.2602 40.01 23.867)" gradientUnits="userSpaceOnUse" > <stop offset=".007" stop-color="#021192" /> <stop offset=".03" stop-color="#021096" /> <stop offset=".057" stop-color="#010CB4" /> <stop offset=".084" stop-color="#0008CE" /> <stop offset=".111" stop-color="#0006D7" /> <stop offset=".138" stop-color="#0004E1" /> <stop offset=".165" stop-color="#0001FA" /> <stop offset=".191" stop-color="#0000FE" /> <stop offset=".216" stop-color="#0F1EFF" /> <stop offset="1" stop-color="#0FF" stop-opacity="0" /> </radialGradient> </defs> </svg>
8,991
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/dominos-pizza.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#fff" d="m16.155 16.161 13.4-13.342c1-.996 2.135-1.184 3.35 0l12.456 12.4c.892.888.811 2.233 0 3.04L18.262 45.212c-.973.968-2.243 1.13-3.377 0L2.7 33.08c-.974-.968-.892-2.502 0-3.39l13.455-13.53Z" /> <path fill="#006491" d="m16.371 17.532 14.022 13.96L17.64 44.19c-.784.78-1.595.807-2.404 0L3.565 32.57c-.73-.727-.676-1.534 0-2.207L16.37 17.532Z" /> <path fill="#E31837" d="M31.285 30.66 17.262 16.698 30.015 4.003c.783-.782 1.593-.808 2.404 0l11.672 11.62c.73.725.676 1.534 0 2.206L31.285 30.66Z" /> <path fill="#fff" d="M34.661 16.726a3.45 3.45 0 0 1-3.457 3.442 3.45 3.45 0 0 1-3.459-3.443 3.451 3.451 0 0 1 3.459-3.443 3.45 3.45 0 0 1 3.457 3.444Zm-9.699 14.767a3.45 3.45 0 0 1-3.458 3.444 3.451 3.451 0 0 1-3.458-3.444 3.451 3.451 0 0 1 3.458-3.443 3.45 3.45 0 0 1 3.458 3.443Zm-10.104 0a3.452 3.452 0 0 1-3.459 3.444 3.451 3.451 0 0 1-3.458-3.444A3.451 3.451 0 0 1 11.4 28.05a3.452 3.452 0 0 1 3.459 3.443Z" /> </svg>
8,992
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/doordash.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#FF3008" d="M33.57 35.883h-6.89c-.21 0-.42-.02-.626-.06a3.065 3.065 0 0 1-.603-.183 2.985 2.985 0 0 1-.558-.295 3.055 3.055 0 0 1-.49-.4l-6.828-6.787a1.075 1.075 0 0 1-.295-.544 1.062 1.062 0 0 1 .064-.616 1.06 1.06 0 0 1 .68-.612c.1-.031.205-.047.31-.047h15.23c1.573-.017 2.835-1.289 2.817-2.844-.014-1.556-1.302-2.805-2.875-2.787h-22.09a3.226 3.226 0 0 1-2.278-.936l-6.825-6.786a1.074 1.074 0 0 1-.188-.249 1.066 1.066 0 0 1 .352-1.388c.087-.057.182-.104.283-.136.1-.029.205-.044.31-.045h31.334c4.14-.015 7.948 2.235 9.894 5.848 5.006 9.399-1.77 18.867-10.728 18.867Z" /> </svg>
8,993
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/ebay.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#E53238" d="M7.69 18.847c-3.104 0-5.69 1.317-5.69 5.29 0 3.145 1.739 5.128 5.77 5.128 4.744 0 5.048-3.125 5.048-3.125H10.52s-.494 1.682-2.891 1.682c-1.953 0-3.356-1.318-3.356-3.167h8.786v-1.16c0-1.828-1.161-4.648-5.37-4.648Zm-.081 1.482c1.858 0 3.126 1.14 3.126 2.846h-6.41c0-1.812 1.652-2.846 3.284-2.846Z" /> <path fill="#0064D2" d="M13.056 15v12.27c0 .696-.05 1.674-.05 1.674H15.2s.08-.703.08-1.345c0 0 1.083 1.696 4.028 1.696 3.102 0 5.209-2.153 5.209-5.24 0-2.869-1.935-5.178-5.204-5.178-3.06 0-4.012 1.653-4.012 1.653V15h-2.244Zm5.691 5.395c2.106 0 3.446 1.564 3.446 3.66 0 2.25-1.547 3.721-3.43 3.721-2.249 0-3.462-1.754-3.462-3.7 0-1.813 1.088-3.68 3.446-3.68Z" /> <path fill="#F5AF02" d="M29.965 18.847c-4.67 0-4.969 2.557-4.969 2.965h2.325s.122-1.492 2.484-1.492c1.535 0 2.724.703 2.724 2.053v.481h-2.724c-3.618 0-5.53 1.058-5.53 3.205 0 2.114 1.767 3.263 4.155 3.263 3.255 0 4.302-1.797 4.302-1.797 0 .715.055 1.42.055 1.42h2.066s-.08-.874-.08-1.433v-4.831c0-3.168-2.554-3.834-4.808-3.834Zm2.564 5.45v.641c0 .835-.516 2.914-3.553 2.914-1.663 0-2.377-.83-2.377-1.793 0-1.75 2.401-1.763 5.93-1.763Z" /> <path fill="#86B817" d="M33.522 19.249h2.614l3.752 7.517 3.743-7.517H46L39.181 32.63h-2.484l1.967-3.73-5.142-9.652Z" /> </svg>
8,994
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/expedia.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#202843" fill-rule="evenodd" d="M42.923 30.459C46.49 20.008 40.909 8.644 30.458 5.077 20.008 1.51 8.644 7.091 5.078 17.541 1.51 27.992 7.09 39.356 17.541 42.923c10.45 3.566 21.814-2.014 25.38-12.464Z" clip-rule="evenodd" /> <path fill="#FFC94C" fill-rule="evenodd" d="M7.07 34.639c3.112-1.485 13.702-6.683 15.79-7.907 1.714-.999 4.267-2.472 4.267-2.472l1.082 2.207 1.654 10.876 1.263-.73.84-15.19c2.552-1.595 4.8-3.148 7.153-4.772.863-.595 1.74-1.2 2.65-1.821-.288-.557-.602-1.1-.94-1.627-.993.478-1.956.934-2.902 1.384-2.584 1.226-5.052 2.396-7.71 3.808l-13.575-6.867-1.263.729 8.592 6.87 1.368 2.037.002.004s-2.552 1.474-4.275 2.46c-2.102 1.195-11.902 7.769-14.742 9.72.233.44.482.87.746 1.29Z" clip-rule="evenodd" /> </svg>
8,995
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/facebook.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <g clip-path="url(#a)"> <path fill="#1977F3" d="M24 44.002c11.046 0 20-8.955 20-20 0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20Z" /> <path fill="#fff" d="m31.785 29.785.886-5.783h-5.546V20.25c0-1.58.773-3.125 3.26-3.125h2.522v-4.921s-2.29-.391-4.477-.391c-4.568 0-7.555 2.767-7.555 7.782v4.407h-5.08v5.783h5.08V43.76a20.08 20.08 0 0 0 3.125.242c1.063 0 2.107-.084 3.125-.242V29.785h4.66Z" /> </g> <defs> <clipPath id="a"> <path fill="#fff" d="M0 0h40v40H0z" transform="translate(4 4)" /> </clipPath> </defs> </svg>
8,996
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/github.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#161614" d="M23.75 4c-11.045 0-20 9.18-20 20.507 0 9.06 5.73 16.747 13.678 19.459.998.19 1.366-.445 1.366-.987 0-.489-.019-2.104-.028-3.818-5.564 1.24-6.737-2.419-6.737-2.419-.91-2.371-2.221-3-2.221-3-1.814-1.273.136-1.247.136-1.247 2.01.144 3.067 2.113 3.067 2.113 1.784 3.135 4.678 2.228 5.82 1.705.178-1.327.697-2.231 1.27-2.743-4.443-.518-9.113-2.277-9.113-10.134 0-2.24.782-4.07 2.061-5.504-.207-.517-.892-2.602.194-5.427 0 0 1.679-.552 5.5 2.101a18.752 18.752 0 0 1 5.007-.69c1.7.008 3.413.236 5.011.69 3.817-2.652 5.494-2.101 5.494-2.101 1.088 2.824.404 4.91.196 5.427 1.283 1.435 2.058 3.265 2.058 5.504 0 7.875-4.678 9.61-9.132 10.118.717.636 1.357 1.884 1.357 3.798 0 2.743-.023 4.951-.023 5.627 0 .546.36 1.185 1.373.983 7.942-2.713 13.666-10.398 13.666-19.455C43.75 13.18 34.796 4 23.75 4Z" /> <path fill="#161614" d="M11.241 33.212c-.044.101-.201.132-.343.062-.146-.066-.227-.205-.18-.308.044-.105.2-.133.344-.063.147.067.23.207.179.309Zm.984.9c-.096.091-.282.048-.41-.095-.13-.143-.154-.333-.057-.426.098-.09.28-.048.41.095.132.144.157.335.056.427m.675 1.151c-.122.087-.323.005-.446-.177s-.123-.401.002-.49c.125-.087.322-.008.448.173.122.186.122.405-.004.494Zm1.141 1.333c-.108.124-.342.091-.513-.078-.175-.166-.224-.4-.114-.524.111-.124.346-.09.518.078.174.165.227.402.11.525m1.475.45c-.048.16-.273.233-.5.165-.226-.07-.373-.259-.328-.421.047-.162.273-.237.5-.164.227.07.375.257.328.42Zm1.68.19c.004.17-.188.31-.425.313-.24.005-.433-.132-.435-.298 0-.17.188-.31.426-.313.238-.005.433.13.433.298Zm1.648-.065c.03.165-.136.335-.373.38-.231.043-.447-.058-.477-.222-.029-.169.14-.338.371-.383.237-.041.45.058.48.225Z" /> </svg>
8,997
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/home-depot.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#fff" d="M5.002 5.002h37.996v37.994H5.002V5.002Z" /> <path fill="#F96302" d="M5.002 5.002h23.84c1.919 0 3.838-.004 5.753.003-.53.539-1.073 1.074-1.608 1.612.212.224.435.431.647.65.487-.334 1.037-.602 1.636-.646.538-.056 1.081.084 1.576.3.187.08.363.207.574.227.208-.012.363-.195.435-.38.06-.127.004-.278-.096-.37-.462-.467-.93-.926-1.388-1.393 2.21-.011 4.42 0 6.627-.003 0 2.154.004 4.312 0 6.47-.454-.446-.898-.9-1.348-1.348-.12-.123-.316-.187-.48-.111a.513.513 0 0 0-.259.251c-.06.232.044.459.136.666.28.59.403 1.257.32 1.907a3.102 3.102 0 0 1-.456 1.257 4.181 4.181 0 0 0-.18.284c.232.199.428.438.663.634.527-.543 1.07-1.073 1.604-1.612 0 3.603.004 7.205 0 10.808-.104.036-.22.108-.327.056-.144-.092-.251-.227-.371-.343-1.293-1.285-2.574-2.581-3.87-3.862-.515.515-1.022 1.033-1.545 1.536.276.311.583.586.87.886 1.038 1.037 2.075 2.074 3.117 3.112.087.091.191.171.239.291.016.132-.076.243-.112.363-.052.14.06.307.208.311.131.024.243-.064.327-.151.487-.491.977-.978 1.464-1.465v18.054H24.94c.462-.463.925-.922 1.388-1.385a2658.882 2658.882 0 0 1-4.72-4.72c-.515.495-1.01 1.01-1.52 1.509-.108.111-.228.22-.28.37-.023.148.112.288.256.296.128-.016.235-.1.363-.128.112-.007.2.08.28.152.933.941 1.87 1.875 2.808 2.813.236.247.491.47.71.726.1.112.032.255-.024.367h-10.8l2.55-2.55c.159-.151.322-.326.346-.558.036-.267-.235-.535-.502-.479-.224.044-.407.22-.639.22-.147-.012-.26-.12-.359-.216-2.03-2.027-4.058-4.057-6.085-6.084-.135-.136-.299-.267-.347-.463-.008-.231.156-.419.216-.63.076-.268-.176-.56-.447-.539-.188.012-.355.12-.483.251-.878.89-1.771 1.768-2.65 2.658-.003-9.867 0-19.738 0-29.604Z" /> <path fill="#fff" d="M32.409 7.192c.036-.04.1-.076.136-.016 2.781 2.777 5.56 5.557 8.339 8.338-.976.976-1.951 1.952-2.925 2.929-.128.12-.284.22-.459.231-.243.02-.487-.2-.467-.447.008-.243.216-.43.22-.678.008-.155-.112-.271-.212-.379-2.063-2.059-4.121-4.121-6.184-6.184-.116-.112-.244-.251-.42-.24-.259.005-.454.244-.717.216-.152.004-.276-.116-.351-.24-.104-.215-.009-.474.147-.633.966-.966 1.931-1.932 2.893-2.897Zm4.006.81c.08-.148.231-.283.41-.26.2.017.344.18.475.312.797.8 1.596 1.6 2.395 2.397.151.148.33.292.367.511.02.228-.188.431-.407.455-.184.004-.352-.096-.51-.184-.34-.199-.723-.359-1.126-.339-.208-.004-.407.08-.595.164-.22-.236-.47-.447-.678-.69.064-.18.148-.351.16-.543.028-.435-.148-.85-.368-1.213-.111-.18-.2-.403-.123-.61ZM18.83 10.116c.431-.454.886-.881 1.317-1.332.41.399.81.802 1.213 1.205.131.127.012.343-.136.395-.124.016-.232-.068-.343-.108-.431-.211-.966-.235-1.397-.004-.111.048-.203.144-.323.163-.12-.095-.22-.215-.331-.319Zm-.271.256c.586.566 1.153 1.153 1.731 1.723.906.902 1.808 1.812 2.718 2.713a177.51 177.51 0 0 1-1.565 1.564c-.107.12-.323.172-.427.024-.127-.136.012-.303.052-.443.048-.103-.035-.195-.103-.267a1025.29 1025.29 0 0 1-3.129-3.128c-.095-.088-.175-.195-.29-.255-.16-.036-.284.107-.44.116-.12-.013-.231-.132-.215-.256a.409.409 0 0 1 .132-.247c.51-.515 1.03-1.022 1.536-1.544Zm2.082.638a.236.236 0 0 1 .18-.311c.104-.016.188.064.26.132.43.43.861.865 1.296 1.292.076.084.184.16.192.284.016.123-.104.243-.232.23-.167 0-.295-.13-.447-.187a.803.803 0 0 0-.714.008c-.116-.115-.231-.235-.351-.343.052-.175.1-.363.056-.546-.032-.208-.176-.367-.24-.559Zm7.641.311a.694.694 0 0 1 .395-.207c.267-.04.547.22.495.49-.036.24-.235.431-.22.683.04.175.184.295.3.419 2.039 2.035 4.078 4.065 6.108 6.104.112.1.224.232.383.232.24 0 .423-.18.65-.22.264-.044.523.215.491.479-.015.18-.123.335-.247.459-1.025 1.02-2.047 2.05-3.072 3.072-.132.131-.3.251-.495.251a.454.454 0 0 1-.45-.383c-.029-.28.23-.487.223-.766-.012-.132-.104-.24-.192-.335-1.791-1.788-3.579-3.579-5.37-5.366 1.48 2.748 2.972 5.49 4.453 8.239.023.04.043.083.063.131-.107.1-.211.207-.315.315-2.964-1.46-5.925-2.936-8.886-4.4-.466-.232-.93-.503-1.456-.567-.175-.024-.295.12-.423.212-.131.103-.307.167-.47.115-.196-.087-.332-.319-.272-.53.04-.144.14-.264.244-.368.957-.953 1.91-1.91 2.868-2.86 1.492.73 2.989 1.444 4.485 2.175.048.035.1.071.144.119.024-.028.044-.056.068-.084l-.056.008c-.786-1.496-1.612-2.972-2.398-4.468.99-.982 1.967-1.967 2.952-2.949Zm-5.239.675c.072-.132.276-.148.372-.036.402.406.814.813 1.22 1.22-.454.46-.912.916-1.372 1.369-.104-.12-.244-.215-.323-.355.131-.224.271-.451.307-.714a1.804 1.804 0 0 0-.148-1.081c-.044-.128-.14-.276-.056-.403Zm-6.699.598c.08-.084.168-.172.284-.2.115-.023.259.048.275.176.028.14-.076.255-.104.391-.016.108.072.184.136.255 1.065 1.066 2.126 2.13 3.192 3.192.072.068.147.152.251.176.128-.012.235-.096.36-.124.15-.016.29.148.243.291-.02.108-.104.188-.176.264-.519.518-1.037 1.037-1.556 1.552-.092.091-.211.187-.347.155a.302.302 0 0 1-.168-.167c-.04-.176.148-.32.104-.495-.04-.068-.096-.12-.148-.176-.486-.482-.97-.973-1.46-1.456a32.11 32.11 0 0 1-.519.519 7.395 7.395 0 0 1-.35-.355c.175-.172.346-.347.522-.519-.431-.423-.858-.854-1.285-1.28-.092-.088-.171-.184-.28-.248-.195-.064-.382.212-.57.06-.152-.108-.103-.324.02-.435.523-.53 1.053-1.05 1.576-1.576Z" /> <path fill="#fff" d="M14.302 14.665c.12-.076.3-.028.356.107.055.164-.092.304-.096.463-.004.084.064.144.115.2 1.106 1.105 2.207 2.21 3.312 3.311.2.216.455-.155.67.004.14.112.092.331-.027.435-.52.523-1.042 1.037-1.557 1.56-.083.08-.167.176-.283.211-.128.036-.283-.043-.299-.179-.024-.16.12-.283.112-.439a.458.458 0 0 0-.112-.175c-1.046-1.042-2.09-2.086-3.132-3.132-.1-.092-.184-.208-.315-.256-.144-.008-.264.1-.403.116-.12.004-.224-.104-.228-.22-.012-.123.076-.223.16-.307a649.65 649.65 0 0 0 1.552-1.556c.056-.051.108-.103.175-.143Zm-2.884 2.852c.24-.231.47-.47.71-.706.419.407.83.83 1.249 1.241.072.08.16.152.2.255.047.196-.176.411-.372.324-.195-.088-.35-.244-.539-.348-.315-.195-.682-.319-1.057-.275-.107-.111-.227-.215-.323-.335.032-.064.084-.108.132-.155Zm-1.74 1.74c.447-.439.886-.882 1.329-1.325.838.843 1.679 1.683 2.521 2.522.463.459.914.926 1.38 1.376.133.148.308.024.452-.028.143-.064.311.064.307.216 0 .103-.06.191-.128.263-.542.539-1.077 1.077-1.615 1.616-.076.076-.172.152-.284.144-.124.012-.243-.108-.232-.228.009-.127.108-.231.108-.359.008-.108-.084-.175-.147-.247-1.273-1.265-2.534-2.542-3.81-3.803.04-.051.075-.1.119-.147Zm29.945-.391c.494.487.985.977 1.472 1.472.156.148.044.443-.164.475-.191.028-.339-.124-.486-.223-.395-.272-.862-.527-1.357-.443a3.022 3.022 0 0 1-.367-.383c.307-.296.603-.599.902-.898Zm-30.352.81c.148.056.24.223.36.327-.065.463.155.898.414 1.26.076.117.168.224.215.356.053.175-.12.359-.295.339-.1 0-.167-.084-.231-.144-.435-.439-.874-.87-1.309-1.308.287-.272.555-.563.846-.83Zm8.878 2.25a4.905 4.905 0 0 1 2.473-.116c1.389.296 2.618 1.11 3.6 2.119.961.973 1.727 2.194 1.986 3.555a4.811 4.811 0 0 1-.103 2.258 5.474 5.474 0 0 1-1.078 1.963c-.207-.22-.434-.423-.634-.646 0-.108.068-.2.088-.304a.998.998 0 0 0-.268-1.001c-1.97-1.975-3.95-3.95-5.92-5.925-.18-.183-.407-.33-.667-.35-.211-.029-.419.047-.618.119-.08.044-.132-.056-.184-.096-.16-.171-.335-.327-.495-.503l-.004-.048a5.317 5.317 0 0 1 1.824-1.025Zm5.378-.22c.184.06.351.152.523.24.642.311 1.28.634 1.927.95a.732.732 0 0 1 .156.115c.542.55 1.089 1.093 1.636 1.64a2.84 2.84 0 0 0 1.069.71c.283.108.602.108.886.008.143-.048.299-.104.45-.056a.447.447 0 0 1 .276.375c-.012.22-.152.403-.3.555-.488.495-.98.986-1.476 1.472-.131.12-.283.244-.467.264-.263.04-.522-.24-.442-.495.075-.26.18-.523.135-.794-.064-.455-.323-.858-.61-1.205-1.081-1.085-2.167-2.167-3.252-3.256-.168-.175-.351-.335-.51-.522Zm12.17 1.086c.299-.3.602-.599.901-.902.132.108.248.236.371.355-.052.4.084.794.292 1.13.107.19.263.354.359.554.052.096.016.203-.02.299.503.34.942.767 1.297 1.26.403.571.686 1.25.67 1.96.004.674-.288 1.32-.714 1.831-.116-.12-.252-.227-.352-.363.02-.148.092-.291.056-.439-.04-.191-.187-.327-.319-.459a2339.5 2339.5 0 0 1-3.152-3.148c-.104-.103-.227-.199-.375-.21a.94.94 0 0 0-.407.067c-.124-.116-.247-.24-.367-.36.53-.454 1.22-.745 1.927-.71.272-.007.535.056.798.116-.319-.33-.658-.642-.966-.981Zm-20.88 2.342c.22-.61.567-1.17.978-1.668.203.208.419.407.618.618.04.128-.064.248-.084.375-.103.344.032.719.284.966 1.939 1.943 3.882 3.882 5.825 5.825.188.204.415.395.702.439.255.04.507-.048.742-.136l.647.643a5.45 5.45 0 0 1-1.6.961 4.864 4.864 0 0 1-2.781.192c-1.4-.308-2.634-1.15-3.62-2.175-.909-.953-1.643-2.122-1.902-3.427a4.782 4.782 0 0 1 .191-2.613Zm18.134 1.153a2.861 2.861 0 0 1 .715-1.64c.115.12.24.24.359.36-.044.143-.112.294-.072.446.024.136.116.244.211.34 1.054 1.048 2.099 2.102 3.153 3.151.123.12.243.263.418.311.16.044.324-.012.48-.06.119.12.243.24.358.367-.502.415-1.129.707-1.791.707-.642.028-1.273-.2-1.807-.535a4.63 4.63 0 0 1-1.038-.894c.14.467.108.99-.112 1.429-.215.43-.55.782-.882 1.12-.12-.119-.243-.243-.367-.362.104-.168.172-.367.108-.563-.076-.2-.24-.343-.383-.495-.297-.3-.595-.6-.894-.897-.175-.164-.363-.351-.614-.367-.148-.016-.28.06-.403.131-.124-.12-.243-.243-.367-.363.479-.482 1.025-.981 1.727-1.069.575-.096 1.154.152 1.56.547-.255-.511-.414-1.086-.359-1.664Zm-21.03 1.392a.729.729 0 0 1 .442-.215c.276-.016.527.271.451.539-.06.203-.207.382-.215.602.016.191.175.327.303.455l6.144 6.144c.096.092.204.183.34.195.23 0 .41-.171.63-.223.263-.052.527.188.515.45-.008.18-.108.344-.232.471l-3.092 3.093c-.136.131-.303.247-.499.247a.446.446 0 0 1-.443-.463c.024-.239.224-.43.228-.678-.008-.148-.124-.26-.216-.363-.917-.922-1.839-1.836-2.753-2.753-.035-.028-.083-.108-.135-.052-.32.307-.627.63-.946.938-.215-.216-.43-.431-.646-.65.31-.324.626-.64.95-.95l.003-.068c-.866-.85-1.715-1.712-2.577-2.57-.132-.123-.256-.279-.44-.322-.25-.017-.446.179-.681.223-.304.052-.579-.291-.475-.575.052-.2.211-.343.35-.478.998-1.002 2-1.995 2.993-2.997Zm17.814 1.078c.48.446.93.925 1.401 1.384.894.898 1.792 1.795 2.69 2.693.063.052.123.124.207.14.171.016.307-.152.479-.12.103.036.199.136.187.251 0 .156-.132.264-.227.367-.563.555-1.118 1.117-1.68 1.672-.124.136-.355.068-.431-.084-.112-.187.192-.387.032-.558a1382.27 1382.27 0 0 1-3.467-3.467c-.084-.076-.156-.172-.256-.224-.171-.048-.307.096-.467.116-.123-.012-.243-.12-.235-.247-.012-.14.092-.248.18-.34a579.32 579.32 0 0 0 1.587-1.583Zm-3.558 3.555c.474-.467.937-.95 1.42-1.409.427.43.858.858 1.285 1.289.143.14-.008.35-.156.415-.104.011-.2-.052-.291-.092-.367-.18-.79-.267-1.193-.164-.256.052-.479.196-.703.327-.12-.123-.239-.247-.362-.366Zm-1.94 1.942c.551-.558 1.11-1.105 1.66-1.66.894.882 1.776 1.78 2.674 2.662.686.682 1.364 1.372 2.054 2.05-.534.551-1.085 1.086-1.62 1.632a.802.802 0 0 1-.283.176c-.1-.036-.223-.072-.255-.183-.06-.188.135-.336.112-.52-.08-.155-.22-.267-.34-.39l-2.908-2.909c-.172-.16-.316-.35-.519-.47-.204-.04-.387.219-.582.08-.168-.108-.12-.348.007-.468Zm3.87-.989c-.063-.164.088-.355.26-.327.08.02.14.072.195.127.42.424.842.838 1.257 1.261.136.14.312.26.367.459-.051.088-.107.208-.227.22-.196.02-.34-.136-.515-.2a.856.856 0 0 0-.77.004c-.127-.128-.251-.255-.379-.379.088-.188.128-.403.064-.603-.048-.203-.184-.37-.251-.562Zm2.566 1.041c.084-.127.287-.147.387-.028.431.435.87.866 1.297 1.305-.49.479-.962.981-1.464 1.448-.116-.123-.24-.243-.36-.367.427-.526.487-1.288.2-1.895-.052-.144-.164-.32-.06-.463Z" /> <path fill="#F96302" d="M5.002 35.894c.16-.063.311-.163.487-.16.211.04.343.228.49.368 2.007 1.999 4.006 4.001 6.01 6 .11.124.255.248.274.423-.008.172-.1.323-.17.475-2.367-.004-4.729-.004-7.091-.004 0-2.366-.004-4.736 0-7.102Z" /> <path fill="#fff" d="M23.575 35.786c.71-.06 1.417.196 2.003.583.459.307.886.662 1.213 1.105.391.523.63 1.161.634 1.82a2.842 2.842 0 0 1-.817 2.038c-.124-.119-.245-.24-.364-.363.072-.135.156-.279.132-.439-.04-.24-.204-.435-.367-.598l-2.693-2.693c-.184-.18-.391-.375-.663-.395-.147-.016-.279.06-.402.131-.116-.127-.276-.223-.348-.383.44-.45 1.038-.766 1.672-.806Z" /> </svg>
8,998
0
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img
petrpan-code/ProtonMail/WebClients/packages/styles/assets/img/brand/hotels.svg
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" fill="none" viewBox="0 0 48 48"> <path fill="#E73648" d="M35.19 43H12.81C8.505 43 5 39.497 5 35.175V12.806C5 8.503 8.505 5 12.81 5h22.38C39.514 5 43 8.481 43 12.784v22.37c.019 4.32-3.486 7.846-7.81 7.846Z" /> <path fill="#191F3A" d="M18.543 21.835a.507.507 0 0 0-.533-.532h-3.703a.507.507 0 0 0-.533.532v3.688c0 .318.218.533.533.533h3.688a.507.507 0 0 0 .532-.533v-3.688h.016Zm8.161 8.176a.515.515 0 0 0-.533-.532h-3.688a.507.507 0 0 0-.532.532V33.7c0 .318.218.533.532.533h3.688a.507.507 0 0 0 .533-.533v-3.688Z" /> <path fill="#FDDB33" d="M26.704 21.835a.507.507 0 0 0-.533-.532h-3.688a.507.507 0 0 0-.532.532v3.688c0 .318.218.533.532.533h3.688a.507.507 0 0 0 .533-.533v-3.688Z" /> <path fill="#191F3A" d="M36.163 14.276a2.427 2.427 0 0 0-2.436-2.436H15.556c-.368 0-.586.134-.8.368l-3.654 3.638c-.268.268-.084.685.317.685h20.06v20.06c0 .401.401.585.685.317l3.653-3.638c.234-.234.352-.452.352-.82V14.277h-.006Z" /> </svg>
8,999