-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.html
More file actions
421 lines (392 loc) · 23.5 KB
/
Copy pathpopup.html
File metadata and controls
421 lines (392 loc) · 23.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=380" />
<title>OnePass Auth</title>
<link rel="stylesheet" href="popup.css" />
</head>
<body>
<!-- ───────── Header ───────── -->
<header class="header">
<div class="header__brand">
<svg class="header__icon" viewBox="0 0 24 24" fill="none" style="width:28px; height:28px;">
<!-- Left: Green -->
<line x1="12" y1="12" x2="5.5" y2="12" stroke="#34a853" stroke-width="3.2" stroke-linecap="round" />
<!-- Top-Left: Yellow -->
<line x1="12" y1="12" x2="8.75" y2="6.37" stroke="#fbbc05" stroke-width="3.2" stroke-linecap="round" />
<!-- Bottom-Left: Red -->
<line x1="12" y1="12" x2="8.75" y2="17.63" stroke="#ea4335" stroke-width="3.2" stroke-linecap="round" />
<!-- Bottom-Right: Red -->
<line x1="12" y1="12" x2="15.25" y2="17.63" stroke="#ea4335" stroke-width="3.2" stroke-linecap="round" />
<!-- Right: Blue -->
<line x1="12" y1="12" x2="18.5" y2="12" stroke="#1a73e8" stroke-width="3.2" stroke-linecap="round" />
<!-- Top-Right: Blue -->
<line x1="12" y1="12" x2="15.25" y2="6.37" stroke="#1a73e8" stroke-width="3.2" stroke-linecap="round" />
<!-- Central overlap in Blue -->
<circle cx="12" cy="12" r="1.6" fill="#1a73e8" />
</svg>
<h1 class="header__title" data-i18n="extension_name">OnePass Auth</h1>
</div>
<div class="header__actions">
<button id="btn-toggle-qr" class="header__btn" data-i18n-title="panel_title_qr_title" title="Import from QR">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<rect x="7" y="7" width="3" height="3"/>
<rect x="14" y="7" width="3" height="3"/>
<rect x="7" y="14" width="3" height="3"/>
<line x1="14" y1="14" x2="14" y2="14.01"/>
<line x1="17" y1="14" x2="17" y2="14.01"/>
<line x1="14" y1="17" x2="17" y2="17"/>
</svg>
</button>
<button id="btn-toggle-form" class="header__btn" data-i18n-title="panel_title_manual_title" title="Add account manually">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round">
<line x1="12" y1="5" x2="12" y2="19"/>
<line x1="5" y1="12" x2="19" y2="12"/>
</svg>
</button>
<button id="btn-toggle-settings" class="header__btn" data-i18n-title="panel_title_settings_title" title="Settings">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"/>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>
</svg>
</button>
</div>
</header>
<!-- ───────── Add-account form (Manual) ───────── -->
<section id="add-form" class="add-form add-form--hidden">
<div id="add-form-title" class="form-title" data-i18n="panel_title_manual">Manual Import</div>
<input id="input-service" type="text" class="add-form__input" data-i18n="input_placeholder_service" placeholder="Service name (e.g. Google)" autocomplete="off" />
<input id="input-login" type="text" class="add-form__input" data-i18n="input_placeholder_login" placeholder="Login / email" autocomplete="off" />
<input id="input-secret" type="text" class="add-form__input" data-i18n="input_placeholder_secret" placeholder="Secret key (Base32)" autocomplete="off" spellcheck="false" />
<select id="select-category" class="add-form__select">
<!-- Populated dynamically -->
</select>
<div id="add-form-new-cat-container" style="display: none; align-items: center; gap: 8px; margin-top: -6px; margin-bottom: 2px;">
<input id="input-new-cat-inline" type="text" class="add-form__input" data-i18n="placeholder_new_category" placeholder="New category name..." maxlength="15" autocomplete="off" style="flex: 1; height: 38px; padding: 0 16px; font-size: 13px;" />
<button id="btn-save-new-cat-inline" class="add-form__save" style="flex: 0 0 70px; height: 38px; margin-top: 0; padding: 0;" data-i18n="btn_qr_confirm">Save</button>
<button id="btn-cancel-new-cat-inline" class="add-form__save" style="flex: 0 0 70px; height: 38px; margin-top: 0; background: transparent; color: var(--text-secondary); border: 1px solid var(--border); padding: 0;" data-i18n="btn_qr_cancel">Cancel</button>
</div>
<button id="btn-save" class="add-form__save" data-i18n="btn_add_account">Add account</button>
</section>
<!-- ───────── QR import panel ───────── -->
<section id="qr-panel" class="qr-panel qr-panel--hidden">
<div class="form-title" data-i18n="panel_title_qr">Import QR-code</div>
<div class="qr-panel__quick-actions">
<button id="btn-qr-screen" class="qr-panel__btn-action qr-panel__btn-action--primary" data-i18n-title="btn_scan_screen_title" title="Scan QR directly from current page/tab screen">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<rect x="7" y="7" width="3" height="3"/>
<rect x="14" y="7" width="3" height="3"/>
<rect x="7" y="14" width="3" height="3"/>
<line x1="14" y1="14" x2="14" y2="14.01"/>
<line x1="17" y1="14" x2="17" y2="14.01"/>
<line x1="14" y1="17" x2="17" y2="17"/>
</svg>
<span data-i18n="btn_scan_screen">Scan Screen</span>
</button>
<button id="btn-qr-paste" class="qr-panel__btn-action qr-panel__btn-action--secondary" data-i18n-title="btn_paste_image_title" title="Paste QR image from clipboard">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>
<rect x="8" y="2" width="8" height="4" rx="1" ry="1"/>
</svg>
<span data-i18n="btn_paste_image">Paste Image</span>
</button>
</div>
<div class="qr-panel__dropzone" id="qr-dropzone">
<svg class="qr-panel__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="17 8 12 3 7 8"/>
<line x1="12" y1="3" x2="12" y2="15"/>
</svg>
<p class="qr-panel__text" data-i18n="dropzone_text">Or choose QR image file</p>
<p class="qr-panel__subtext" data-i18n="dropzone_subtext">(PNG, JPG, WebP)</p>
<input type="file" id="input-qr-file" accept="image/*" class="qr-panel__file-input" />
</div>
<!-- Confirm QR content view inside panel -->
<div id="qr-preview" class="qr-preview qr-preview--hidden">
<div class="qr-preview__label" id="qr-preview-title" data-i18n="qr_preview_title">Recognized Account Info:</div>
<div id="qr-preview-list" class="qr-preview__list" style="max-height: 140px; overflow-y: auto; margin-top: 6px; display: flex; flex-direction: column; gap: 6px; padding-right: 4px;">
<!-- preview items generated dynamically -->
</div>
<div class="qr-preview__actions">
<button id="btn-qr-confirm" class="qr-preview__btn qr-preview__btn--confirm" data-i18n="btn_qr_confirm">Confirm & Save</button>
<button id="btn-qr-cancel" class="qr-preview__btn qr-preview__btn--cancel" data-i18n="btn_qr_cancel">Cancel</button>
</div>
</div>
</section>
<!-- ───────── Settings panel ───────── -->
<section id="settings-panel" class="settings-panel settings-panel--hidden">
<div class="settings-header">
<h2 class="settings-title" data-i18n="panel_title_settings">Settings</h2>
<button id="btn-settings-back" class="settings-back-btn" title="Back" data-i18n-title="btn_back">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
<line x1="19" y1="12" x2="5" y2="12"></line>
<polyline points="12 19 5 12 12 5"></polyline>
</svg>
</button>
</div>
<!-- Theme Settings -->
<div class="settings-group">
<label class="settings-label" data-i18n="settings_theme_accent">Theme Accent Color</label>
<div class="color-picker">
<button class="color-dot color-dot--white color-dot--active" data-color="white" title="White"></button>
<button class="color-dot color-dot--green" data-color="green" title="Green"></button>
<button class="color-dot color-dot--blue" data-color="blue" title="Blue"></button>
<button class="color-dot color-dot--purple" data-color="purple" title="Purple"></button>
<button class="color-dot color-dot--orange" data-color="orange" title="Orange"></button>
</div>
</div>
<!-- Theme Mode Setting -->
<div class="settings-group">
<div class="settings-option-wrapper">
<label class="settings-option">
<span class="settings-option__text" data-i18n="settings_theme_mode">App Theme</span>
<select id="setting-theme-mode" class="settings-select">
<option value="dark" data-i18n="theme_dark">Dark Mode</option>
<option value="light" data-i18n="theme_light">Light Mode</option>
</select>
</label>
</div>
</div>
<!-- Language Setting -->
<div class="settings-group">
<div class="settings-option-wrapper">
<label class="settings-option">
<span class="settings-option__text" data-i18n="settings_language">App Language</span>
<select id="setting-language" class="settings-select">
<option value="auto" data-i18n="lang_auto">System Default</option>
<option value="en" data-i18n="lang_en">English</option>
<option value="ru" data-i18n="lang_ru">Русский</option>
</select>
</label>
</div>
</div>
<!-- Security/Privacy Settings -->
<div class="settings-group">
<div class="settings-option-wrapper">
<label class="settings-option">
<span class="settings-option__text" data-i18n="settings_privacy_mode">Privacy Mode (Hide codes)</span>
<input type="checkbox" id="setting-privacy" class="settings-checkbox" />
</label>
</div>
<div class="settings-option-wrapper">
<label class="settings-option">
<span class="settings-option__text" data-i18n="settings_pin_lock">PIN Lock Protection</span>
<input type="checkbox" id="setting-pin-lock" class="settings-checkbox" />
</label>
</div>
<div class="settings-option-wrapper">
<label class="settings-option">
<span class="settings-option__text" data-i18n="settings_clear_clipboard">Auto-Clear Clipboard</span>
<select id="setting-clear-clipboard" class="settings-select">
<option value="0" data-i18n="clipboard_never">Never</option>
<option value="10" data-i18n="clipboard_10s">After 10 seconds</option>
<option value="30" data-i18n="clipboard_30s" selected>After 30 seconds</option>
<option value="60" data-i18n="clipboard_60s">After 60 seconds</option>
</select>
</label>
</div>
</div>
<!-- Backup / Import settings -->
<div class="settings-group">
<label class="settings-label" data-i18n="settings_backup">Data Backup</label>
<div class="settings-actions">
<button id="btn-backup-export" class="settings-btn settings-btn--primary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="width:14px; height:14px;">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="17 8 12 3 7 8"/>
<line x1="12" y1="3" x2="12" y2="15"/>
</svg>
<span data-i18n="btn_backup_export">Export</span>
</button>
<button id="btn-backup-import-trigger" class="settings-btn settings-btn--secondary">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="width:14px; height:14px;">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
<polyline points="7 10 12 15 17 10"/>
<line x1="12" y1="15" x2="12" y2="3"/>
</svg>
<span data-i18n="btn_backup_import">Import</span>
</button>
<input type="file" id="input-backup-file" accept=".json" style="display: none;" />
</div>
</div>
</section>
<!-- ───────── Search Bar ───────── -->
<section class="search-bar">
<div class="search-bar__wrapper">
<svg class="search-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="11" cy="11" r="8"/>
<line x1="21" y1="21" x2="16.65" y2="16.65"/>
</svg>
<input type="text" id="input-search" class="search-bar__input" data-i18n="search_placeholder" placeholder="Поиск аккаунтов..." autocomplete="off" />
<button id="btn-search-clear" class="search-bar__clear search-bar__clear--hidden" title="Clear">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
</section>
<!-- ───────── Categories Horizontal Chips ───────── -->
<section class="categories-bar">
<div class="categories-bar__wrapper" id="categories-wrapper">
<button class="category-chip category-chip--active" data-category="all" data-i18n="category_all">All</button>
</div>
</section>
<!-- ───────── Toast ───────── -->
<div id="toast" class="toast"></div>
<!-- ───────── Custom Context Menu ───────── -->
<div id="context-menu" class="context-menu context-menu--hidden">
<button class="context-menu__item" id="ctx-copy">
<svg class="context-menu__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="9" y="9" width="13" height="13" rx="2"/>
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>
</svg>
<span data-i18n="ctx_copy">Копировать код</span>
</button>
<button class="context-menu__item" id="ctx-edit">
<svg class="context-menu__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"/>
<path d="M18.5 2.5a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4 9.5-9.5z"/>
</svg>
<span data-i18n="ctx_edit">Редактировать</span>
</button>
<button class="context-menu__item" id="ctx-move">
<svg class="context-menu__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="4 9 12 1 20 9"/>
<polyline points="20 15 12 23 4 15"/>
<line x1="12" y1="1" x2="12" y2="23"/>
</svg>
<span data-i18n="ctx_move">Переместить</span>
</button>
<button class="context-menu__item" id="ctx-qr">
<svg class="context-menu__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"/>
<rect x="7" y="7" width="3" height="3"/>
<rect x="14" y="7" width="3" height="3"/>
<rect x="7" y="14" width="3" height="3"/>
<line x1="14" y1="14" x2="14" y2="14.01"/>
<line x1="17" y1="14" x2="17" y2="14.01"/>
<line x1="14" y1="17" x2="17" y2="17"/>
</svg>
<span data-i18n="ctx_show_qr">Показать QR-код</span>
</button>
<button class="context-menu__item context-menu__item--danger" id="ctx-delete">
<svg class="context-menu__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="3 6 5 6 21 6"/>
<path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/>
<path d="M10 11v6"/>
<path d="M14 11v6"/>
<path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"/>
</svg>
<span data-i18n="ctx_delete">Удалить аккаунт</span>
</button>
</div>
<!-- ───────── Account list ───────── -->
<section id="accounts" class="accounts">
<!-- cards rendered by popup.js -->
</section>
<!-- ───────── Empty state ───────── -->
<section id="empty-state" class="empty-state">
<svg class="empty-state__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>
</svg>
<p class="empty-state__text" data-i18n="empty_state_text">No accounts yet</p>
<p class="empty-state__hint" data-i18n="empty_state_hint">Add manually or import via QR-code above</p>
</section>
<!-- ───────── PIN Lock Screen Overlay ───────── -->
<div id="lock-screen" class="lock-screen lock-screen--hidden">
<div class="lock-screen__logo">
<svg class="header__icon" viewBox="0 0 24 24" fill="none" style="width:48px; height:48px; margin-bottom: 8px;">
<line x1="12" y1="12" x2="5.5" y2="12" stroke="#34a853" stroke-width="3.2" stroke-linecap="round" />
<line x1="12" y1="12" x2="8.75" y2="6.37" stroke="#fbbc05" stroke-width="3.2" stroke-linecap="round" />
<line x1="12" y1="12" x2="8.75" y2="17.63" stroke="#ea4335" stroke-width="3.2" stroke-linecap="round" />
<line x1="12" y1="12" x2="15.25" y2="17.63" stroke="#ea4335" stroke-width="3.2" stroke-linecap="round" />
<line x1="12" y1="12" x2="18.5" y2="12" stroke="#1a73e8" stroke-width="3.2" stroke-linecap="round" />
<line x1="12" y1="12" x2="15.25" y2="6.37" stroke="#1a73e8" stroke-width="3.2" stroke-linecap="round" />
<circle cx="12" cy="12" r="1.6" fill="#1a73e8" />
</svg>
</div>
<h2 class="lock-screen__title" data-i18n="lock_title">OnePass Auth Locked</h2>
<div class="lock-screen__dots" id="lock-dots">
<span class="lock-screen__dot"></span>
<span class="lock-screen__dot"></span>
<span class="lock-screen__dot"></span>
<span class="lock-screen__dot"></span>
</div>
<div class="lock-screen__numpad" id="lock-numpad">
<button class="numpad-btn" data-val="1">1</button>
<button class="numpad-btn" data-val="2">2</button>
<button class="numpad-btn" data-val="3">3</button>
<button class="numpad-btn" data-val="4">4</button>
<button class="numpad-btn" data-val="5">5</button>
<button class="numpad-btn" data-val="6">6</button>
<button class="numpad-btn" data-val="7">7</button>
<button class="numpad-btn" data-val="8">8</button>
<button class="numpad-btn" data-val="9">9</button>
<button class="numpad-btn numpad-btn--clear" data-val="clear">C</button>
<button class="numpad-btn" data-val="0">0</button>
<button class="numpad-btn numpad-btn--delete" data-val="delete">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="width:16px; height:16px; display:block; margin:auto;">
<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"/>
<line x1="18" y1="9" x2="12" y2="15"/>
<line x1="12" y1="9" x2="18" y2="15"/>
</svg>
</button>
</div>
</div>
<!-- ───────── PIN Setup / Verify Dialog ───────── -->
<div id="pin-setup-overlay" class="lock-screen lock-screen--hidden">
<h2 class="lock-screen__title" id="pin-setup-title" data-i18n="pin_setup_title">Set New PIN</h2>
<div class="lock-screen__dots" id="setup-dots">
<span class="lock-screen__dot"></span>
<span class="lock-screen__dot"></span>
<span class="lock-screen__dot"></span>
<span class="lock-screen__dot"></span>
</div>
<div class="lock-screen__numpad" id="setup-numpad">
<button class="numpad-btn" data-val="1">1</button>
<button class="numpad-btn" data-val="2">2</button>
<button class="numpad-btn" data-val="3">3</button>
<button class="numpad-btn" data-val="4">4</button>
<button class="numpad-btn" data-val="5">5</button>
<button class="numpad-btn" data-val="6">6</button>
<button class="numpad-btn" data-val="7">7</button>
<button class="numpad-btn" data-val="8">8</button>
<button class="numpad-btn" data-val="9">9</button>
<button class="numpad-btn numpad-btn--cancel" id="btn-pin-setup-cancel" data-val="cancel" data-i18n="btn_qr_cancel">Cancel</button>
<button class="numpad-btn" data-val="0">0</button>
<button class="numpad-btn numpad-btn--delete" data-val="delete">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="width:16px; height:16px; display:block; margin:auto;">
<path d="M21 4H8l-7 8 7 8h13a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"/>
<line x1="18" y1="9" x2="12" y2="15"/>
<line x1="12" y1="9" x2="18" y2="15"/>
</svg>
</button>
</div>
</div>
<!-- ───────── Single Account QR Modal ───────── -->
<div id="qr-modal" class="qr-modal qr-modal--hidden">
<div class="qr-modal__card">
<div class="qr-modal__header">
<h3 class="qr-modal__title" id="qr-modal-title">Service Name</h3>
<button id="btn-qr-modal-close" class="qr-modal__close" title="Close">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round">
<line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/>
</svg>
</button>
</div>
<div id="qr-modal-code" class="qr-modal__code-container"></div>
<div class="qr-modal__hint" data-i18n="qr_modal_hint">Scan with your phone's camera to import into an authenticator app</div>
</div>
</div>
<!-- Third party libraries (loaded globally before type="module" scripts) -->
<script src="jsQR.js"></script>
<script src="qrcode.min.js"></script>
<!-- Main application script loaded as ES Module -->
<script type="module" src="popup.js"></script>
</body>
</html>