@ngxsplayer/ngx-smart-player 0.2.2 → 0.3.1-next.555
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngxsplayer-ngx-smart-player.mjs","names":["doc"],"sources":["../../../projects/ngx-smart-player/src/lib/smart-player-icon.component.ts","../../../projects/ngx-smart-player/src/lib/smart-settings.component.ts","../../../projects/ngx-smart-player/src/lib/smart-confirm-dialog.component.ts","../../../projects/ngx-smart-player/src/lib/player-menu.component.ts","../../../projects/ngx-smart-player/src/lib/player-overlays.component.ts","../../../projects/ngx-smart-player/src/lib/player-controls.component.ts","../../../projects/ngx-smart-player/src/lib/player-controls-vod.component.ts","../../../projects/ngx-smart-player/src/lib/player-controls-edition.component.ts","../../../projects/ngx-smart-player/src/lib/smart-player.component.ts","../../../projects/ngx-smart-player/src/lib/smart-player.providers.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\nexport type SmartPlayerIconName =\n | 'play'\n | 'pause'\n | 'prev'\n | 'next'\n | 'seek-back'\n | 'seek-forward'\n | 'volume-mute'\n | 'volume-low'\n | 'volume-high'\n | 'shuffle'\n | 'repeat'\n | 'repeat-one'\n | 'tracks'\n | 'captions'\n | 'captions-off'\n | 'speed'\n | 'pip'\n | 'pip-active'\n | 'airplay'\n | 'airplay-active'\n | 'cast'\n | 'cast-active'\n | 'devices'\n | 'devices-active'\n | 'radio'\n | 'server'\n | 'window-mini'\n | 'window-bar'\n | 'window-restore'\n | 'cinema'\n | 'cinema-active'\n | 'lyrics'\n | 'info'\n | 'bell'\n | 'thumb-up'\n | 'thumb-down'\n | 'share'\n | 'playlist-plus'\n | 'clock'\n | 'home'\n | 'layers'\n | 'video'\n | 'music'\n | 'broadcast'\n | 'heart'\n | 'download'\n | 'trash'\n | 'folder'\n | 'settings'\n | 'search'\n | 'grid'\n | 'list'\n | 'more'\n | 'waveform'\n | 'sliders'\n | 'network'\n | 'cloud'\n | 'spark'\n | 'disc'\n | 'user'\n | 'tag'\n | 'close'\n | 'plus'\n | 'check'\n | 'menu'\n | 'panel-right'\n | 'chevron-left'\n | 'chevron-right'\n | 'chevron-up'\n | 'chevron-down'\n | 'fullscreen'\n | 'fullscreen-exit';\n\n@Component({\n selector: 'ngxsp-smart-icon',\n standalone: true,\n template: `\n @switch (name) {\n @case ('play') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M8.25 6.82c0-1.3 1.43-2.1 2.54-1.43l8.12 4.93a1.96 1.96 0 0 1 0 3.36l-8.12 4.93a1.67 1.67 0 0 1-2.54-1.43V6.82Z\"/></svg>\n }\n @case ('pause') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.5 5.25A1.25 1.25 0 0 1 8.75 6.5v11A1.25 1.25 0 0 1 6.25 17.5v-11A1.25 1.25 0 0 1 7.5 5.25Zm8 0a1.25 1.25 0 0 1 1.25 1.25v11a1.25 1.25 0 1 1-2.5 0v-11A1.25 1.25 0 0 1 15.5 5.25Z\"/></svg>\n }\n @case ('prev') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M6 5.25a1 1 0 0 1 1 1v11.5a1 1 0 1 1-2 0V6.25a1 1 0 0 1 1-1Z\"/><path d=\"M19 6.55v10.9a1.25 1.25 0 0 1-1.93 1.05l-8.2-5.45a1.25 1.25 0 0 1 0-2.1l8.2-5.45A1.25 1.25 0 0 1 19 6.55Z\"/></svg>\n }\n @case ('next') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M18 5.25a1 1 0 0 1 1 1v11.5a1 1 0 1 1-2 0V6.25a1 1 0 0 1 1-1Z\"/><path d=\"M5 6.55v10.9a1.25 1.25 0 0 0 1.93 1.05l8.2-5.45a1.25 1.25 0 0 0 0-2.1l-8.2-5.45A1.25 1.25 0 0 0 5 6.55Z\"/></svg>\n }\n @case ('seek-back') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M5.5 13a6.5 6.5 0 1 0 6.5-6.5H8M10 4.5 8 6.5l2 2\"/><text x=\"12\" y=\"15.8\" font-size=\"7.5\" font-weight=\"700\" text-anchor=\"middle\" fill=\"currentColor\" stroke=\"none\" font-family=\"system-ui, sans-serif\">10</text></svg>\n }\n @case ('seek-forward') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M18.5 13a6.5 6.5 0 1 1-6.5-6.5H16M14 4.5 16 6.5l-2 2\"/><text x=\"12\" y=\"15.8\" font-size=\"7.5\" font-weight=\"700\" text-anchor=\"middle\" fill=\"currentColor\" stroke=\"none\" font-family=\"system-ui, sans-serif\">10</text></svg>\n }\n @case ('volume-mute') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M11 5 6.5 9H3.75v6h2.75L11 19V5Zm3.5 5.5 5 5m0-5-5 5\"/></svg>\n }\n @case ('volume-low') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M11 5 6.5 9H3.75v6h2.75L11 19V5Zm4.5 4.75a3.5 3.5 0 0 1 0 4.95\"/></svg>\n }\n @case ('volume-high') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M11 5 6.5 9H3.75v6h2.75L11 19V5Zm4.5 4.75a3.5 3.5 0 0 1 0 4.95m2.75-7.7a7.5 7.5 0 0 1 0 10.45\"/></svg>\n }\n @case ('shuffle') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M17 6h3v3\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m20 6-4.5 4.5\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 7h3.2c1 0 1.95.4 2.66 1.1l6.28 6.3A3.75 3.75 0 0 0 18.82 15H20\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M17 15h3v3\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m20 18-4.56-4.56\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 17h3.2c1 0 1.95-.4 2.66-1.1l1.54-1.54\"/></svg>\n }\n @case ('repeat') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M17 3.5 20 6.5 17 9.5\"/><path d=\"M4 11.5v-1a4 4 0 0 1 4-4h12\"/><path d=\"M7 20.5 4 17.5 7 14.5\"/><path d=\"M20 12.5v1a4 4 0 0 1-4 4H4\"/></svg>\n }\n @case ('repeat-one') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M17 3.5 20 6.5 17 9.5\"/><path d=\"M4 11.5v-1a4 4 0 0 1 4-4h12\"/><path d=\"M7 20.5 4 17.5 7 14.5\"/><path d=\"M20 12.5v1a4 4 0 0 1-4 4H4\"/><path d=\"M11 10.9 12.4 10v4.1\"/></svg>\n }\n @case ('tracks') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 6.75h16M4 12h16M4 17.25h16\"/></svg>\n }\n @case ('captions') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8 11.25h2.5m2 0H14m2 0h.5M8 14.75h3.5m2 0H16\"/></svg>\n }\n @case ('captions-off') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8 11.25h2.5m2 0H14m2 0h.5M8 14.75h3.5m2 0H16\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M6 6l12 12\"/></svg>\n }\n @case ('speed') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.25 5.82c0-1.3 1.43-2.1 2.54-1.43l5.71 3.47a1.96 1.96 0 0 1 0 3.36L7.79 14.7a1.67 1.67 0 0 1-2.54-1.43V5.82Zm8.5 0c0-1.3 1.43-2.1 2.54-1.43L22 7.86a1.96 1.96 0 0 1 0 3.36l-5.71 3.47a1.67 1.67 0 0 1-2.54-1.43V5.82Z\"/></svg>\n }\n @case ('pip') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><rect x=\"12\" y=\"11\" width=\"7\" height=\"6\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('pip-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\" fill=\"currentColor\" fill-opacity=\".22\"/><rect x=\"12\" y=\"11\" width=\"7\" height=\"6\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('airplay') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6 16.5H4.75A1.75 1.75 0 0 1 3 14.75v-8A1.75 1.75 0 0 1 4.75 5h14.5A1.75 1.75 0 0 1 21 6.75v8a1.75 1.75 0 0 1-1.75 1.75H18\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m12 14 4.5 6h-9L12 14Z\"/></svg>\n }\n @case ('airplay-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6 16.5H4.75A1.75 1.75 0 0 1 3 14.75v-8A1.75 1.75 0 0 1 4.75 5h14.5A1.75 1.75 0 0 1 21 6.75v8a1.75 1.75 0 0 1-1.75 1.75H18\"/><path fill=\"currentColor\" stroke=\"none\" d=\"m12 13.4 5.2 6.9H6.8L12 13.4Z\"/></svg>\n }\n @case ('cast') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 18.25a3.5 3.5 0 0 1 3.5 3.5\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 13.75A8 8 0 0 1 12.75 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 9.25A12.5 12.5 0 0 1 17.25 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M5.5 5.5h13a1.75 1.75 0 0 1 1.75 1.75v4.5\"/></svg>\n }\n @case ('cast-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 18.25a3.5 3.5 0 0 1 3.5 3.5\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 13.75A8 8 0 0 1 12.75 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 9.25A12.5 12.5 0 0 1 17.25 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M5.5 5.5h13a1.75 1.75 0 0 1 1.75 1.75v4.5\"/><circle cx=\"7\" cy=\"19\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('devices') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2.75\" y=\"4.75\" width=\"12.5\" height=\"9.5\" rx=\"1.75\"/><path d=\"M6.5 18.75h5M9 14.25v4.5\"/><rect x=\"16.25\" y=\"8.25\" width=\"5\" height=\"12\" rx=\"1.5\"/><circle cx=\"18.75\" cy=\"16.25\" r=\"1.4\"/><path d=\"M18.75 11.25h.01\"/></svg>\n }\n @case ('devices-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2.75\" y=\"4.75\" width=\"12.5\" height=\"9.5\" rx=\"1.75\"/><path d=\"M6.5 18.75h5M9 14.25v4.5\"/><rect x=\"16.25\" y=\"8.25\" width=\"5\" height=\"12\" rx=\"1.5\"/><circle cx=\"18.75\" cy=\"16.25\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M18.75 11.25h.01\"/></svg>\n }\n @case ('radio') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 8 16.5 3.75\"/><rect x=\"3\" y=\"8\" width=\"18\" height=\"12.5\" rx=\"2.5\"/><circle cx=\"15.25\" cy=\"14.25\" r=\"2.75\"/><path d=\"M6.75 12.75h3.5M6.75 15.75h3.5\"/></svg>\n }\n @case ('server') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"4\" y=\"3.25\" width=\"16\" height=\"11\" rx=\"2\"/><path d=\"M7.5 6.75h.01M7.5 10.75h.01M10.5 6.75h6M10.5 10.75h6\"/><path d=\"M12 14.25v4.5M3.5 20.5h6.75M13.75 20.5h6.75\"/><circle cx=\"12\" cy=\"20.5\" r=\"1.6\"/></svg>\n }\n @case ('window-mini') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><path d=\"M10 12.5 15 9.5M11 9.5h4v4\"/><rect x=\"5.5\" y=\"13\" width=\"6\" height=\"4.5\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('window-bar') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><rect x=\"5\" y=\"15\" width=\"14\" height=\"2.8\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('cinema') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2\" y=\"7\" width=\"20\" height=\"10\" rx=\"2\"/><path d=\"M6 12h12M6 12l2-2M6 12l2 2M18 12l-2-2M18 12l-2 2\"/></svg>\n }\n @case ('cinema-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2\" y=\"7\" width=\"20\" height=\"10\" rx=\"2\" fill=\"currentColor\" fill-opacity=\".22\"/><path d=\"M6 12h12M6 12l2-2M6 12l2 2M18 12l-2-2M18 12l-2 2\"/></svg>\n }\n @case ('info') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 11v5.5M12 7.5h.01\"/></svg>\n }\n @case ('lyrics') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 5.5h16v10H10l-4.5 4v-4H4z\"/><path d=\"M8 9.5h8M8 12.5h5\"/></svg>\n }\n @case ('window-restore') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><path d=\"M10 14.5 15 9.5M11 9.5h4v4\"/></svg>\n }\n @case ('bell') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6.75 10.4a5.25 5.25 0 0 1 10.5 0c0 4.65 1.75 5.6 1.75 5.6H5s1.75-.95 1.75-5.6Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M10 19a2.15 2.15 0 0 0 4 0\"/></svg>\n }\n @case ('thumb-up') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M7.25 10.5v9.25H4.7a1.7 1.7 0 0 1-1.7-1.7V12.2a1.7 1.7 0 0 1 1.7-1.7h2.55Zm0 0 4.85-7.05a1.75 1.75 0 0 1 3.18 1.16l-.44 3.2h3.88a2.1 2.1 0 0 1 2.05 2.55l-1.35 6.45a3.7 3.7 0 0 1-3.62 2.94H7.25\"/></svg>\n }\n @case ('thumb-down') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M7.25 13.5V4.25H4.7A1.7 1.7 0 0 0 3 5.95v5.85a1.7 1.7 0 0 0 1.7 1.7h2.55Zm0 0 4.85 7.05a1.75 1.75 0 0 0 3.18-1.16l-.44-3.2h3.88a2.1 2.1 0 0 0 2.05-2.55L19.42 7.2a3.7 3.7 0 0 0-3.62-2.94H7.25\"/></svg>\n }\n @case ('share') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M18.25 8.25 21 5.5l-2.75-2.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M20.4 5.5h-5.2A8.2 8.2 0 0 0 7 13.7v.8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 11.5v6.75A1.75 1.75 0 0 0 5.75 20h12.5A1.75 1.75 0 0 0 20 18.25V14\"/></svg>\n }\n @case ('playlist-plus') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 6.5h11M4 11.5h11M4 16.5h8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M18 13.5v6m-3-3h6\"/></svg>\n }\n @case ('clock') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.25\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 7.75v4.65l3.45 2.05\"/></svg>\n }\n @case ('home') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m4 11.5 8-6.75 8 6.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6.5 10.5v8.25h11v-8.25\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M10 18.75v-5h4v5\"/></svg>\n }\n @case ('layers') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 3.75 3.75 8 12 12.25 20.25 8 12 3.75Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m5 12 7 3.6 7-3.6M5 16l7 3.6 7-3.6\"/></svg>\n }\n @case ('video') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"2.25\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8 5v14M16 5v14M4 9h4M4 15h4M16 9h4M16 15h4\"/></svg>\n }\n @case ('music') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M9 18.25a2.75 2.75 0 1 1-1.6-2.5V6.5l10-2v11.25a2.75 2.75 0 1 1-1.6-2.5V8.2l-8.4 1.68\"/></svg>\n }\n @case ('broadcast') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"2\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8.7 8.7a4.65 4.65 0 0 0 0 6.6m6.6 0a4.65 4.65 0 0 0 0-6.6M6.1 6.1a8.35 8.35 0 0 0 0 11.8m11.8 0a8.35 8.35 0 0 0 0-11.8\"/></svg>\n }\n @case ('heart') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M20.2 6.2c-1.8-1.9-4.8-1.8-6.5.2L12 8.3l-1.7-1.9c-1.7-2-4.7-2.1-6.5-.2-1.9 2-1.7 5.1.4 6.9L12 20l7.8-6.9c2.1-1.8 2.3-4.9.4-6.9Z\"/></svg>\n }\n @case ('download') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 4v10m0 0 4-4m-4 4-4-4M5 19h14\"/></svg>\n }\n @case ('trash') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.5 6.75h15M9.75 6.75V5.25A1.5 1.5 0 0 1 11.25 3.75h1.5a1.5 1.5 0 0 1 1.5 1.5v1.5M6.75 6.75l.7 12a1.5 1.5 0 0 0 1.5 1.5h6.1a1.5 1.5 0 0 0 1.5-1.5l.7-12M10.5 10.5v6M13.5 10.5v6\"/></svg>\n }\n @case ('folder') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M3.75 7.5A2.25 2.25 0 0 1 6 5.25h4.15l2.1 2.25H18a2.25 2.25 0 0 1 2.25 2.25v6.75A2.25 2.25 0 0 1 18 18.75H6a2.25 2.25 0 0 1-2.25-2.25v-9Z\"/></svg>\n }\n @case ('settings') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 15.25A3.25 3.25 0 1 0 12 8.75a3.25 3.25 0 0 0 0 6.5Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M19.4 13.5a7.8 7.8 0 0 0 .05-3l2-1.55-2-3.45-2.42.98a8 8 0 0 0-2.58-1.5L14.1 2.4h-4.2l-.35 2.58a8 8 0 0 0-2.58 1.5L4.55 5.5l-2 3.45 2 1.55a7.8 7.8 0 0 0 .05 3l-2.05 1.55 2 3.45 2.46-.98a8 8 0 0 0 2.54 1.47l.35 2.61h4.2l.35-2.6a8 8 0 0 0 2.54-1.48l2.46.98 2-3.45-2.05-1.55Z\"/></svg>\n }\n @case ('search') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"10.75\" cy=\"10.75\" r=\"6.25\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"m15.4 15.4 4.85 4.85\"/></svg>\n }\n @case ('grid') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"4\" y=\"4\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/><rect x=\"14\" y=\"4\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/><rect x=\"4\" y=\"14\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/><rect x=\"14\" y=\"14\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/></svg>\n }\n @case ('list') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M9 6h11M9 12h11M9 18h11\"/><circle cx=\"4.8\" cy=\"6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"4.8\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"4.8\" cy=\"18\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('more') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><circle cx=\"5\" cy=\"12\" r=\"1.7\"/><circle cx=\"12\" cy=\"12\" r=\"1.7\"/><circle cx=\"19\" cy=\"12\" r=\"1.7\"/></svg>\n }\n @case ('waveform') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 13v-2m4 5V8m4 11V5m4 10V9m4 4v-2\"/></svg>\n }\n @case ('sliders') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 7h5m6 0h5M4 17h9m6 0h1\"/><circle cx=\"12\" cy=\"7\" r=\"2.25\" stroke-width=\"1.8\"/><circle cx=\"16\" cy=\"17\" r=\"2.25\" stroke-width=\"1.8\"/></svg>\n }\n @case ('network') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"5\" r=\"2.3\" stroke-width=\"1.8\"/><circle cx=\"6\" cy=\"18\" r=\"2.3\" stroke-width=\"1.8\"/><circle cx=\"18\" cy=\"18\" r=\"2.3\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M11 7.1 7.1 15.9M13 7.1l3.9 8.8M8.3 18h7.4\"/></svg>\n }\n @case ('cloud') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M7.25 18.5h10.2a4.05 4.05 0 0 0 .5-8.07 6.25 6.25 0 0 0-12-1.75A4.95 4.95 0 0 0 7.25 18.5Z\"/></svg>\n }\n @case ('spark') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 3.5 14.3 9l5.7 2.2-5.7 2.3L12 20l-2.3-6.5L4 11.2 9.7 9 12 3.5Z\"/></svg>\n }\n @case ('disc') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.25\" stroke-width=\"1.8\"/><circle cx=\"12\" cy=\"12\" r=\"2.25\" stroke-width=\"1.8\"/></svg>\n }\n @case ('user') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"8.5\" r=\"3.75\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 19.75a7.25 7.25 0 0 1 14.5 0\"/></svg>\n }\n @case ('tag') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M3.75 5.75v5.1c0 .6.24 1.17.66 1.6l7.4 7.4a2 2 0 0 0 2.83 0l5.1-5.1a2 2 0 0 0 0-2.83l-7.4-7.4a2.25 2.25 0 0 0-1.6-.66h-5a2 2 0 0 0-2 1.89Z\"/><circle cx=\"8.25\" cy=\"8.25\" r=\"1.25\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('close') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"m6.5 6.5 11 11m0-11-11 11\"/></svg>\n }\n @case ('plus') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M12 5v14M5 12h14\"/></svg>\n }\n @case ('check') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m5 12.5 4.5 4.5L19 7.5\"/></svg>\n }\n @case ('menu') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 7h16M4 12h16M4 17h16\"/></svg>\n }\n @case ('panel-right') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2.5\" stroke-width=\"1.8\"/><path stroke-width=\"1.8\" d=\"M14.5 4.5v15\"/></svg>\n }\n @case ('chevron-left') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m14.5 6-6 6 6 6\"/></svg>\n }\n @case ('chevron-right') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m9.5 6 6 6-6 6\"/></svg>\n }\n @case ('chevron-up') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m6 14.5 6-6 6 6\"/></svg>\n }\n @case ('chevron-down') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m6 9.5 6 6 6-6\"/></svg>\n }\n @case ('fullscreen') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.5 9V5.5a1 1 0 0 1 1-1H9m6 0h3.5a1 1 0 0 1 1 1V9m0 6v3.5a1 1 0 0 1-1 1H15m-6 0H5.5a1 1 0 0 1-1-1V15\"/></svg>\n }\n @case ('fullscreen-exit') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M9 4.5V8a1 1 0 0 1-1 1H4.5m15 0H16a1 1 0 0 1-1-1V4.5m0 15V16a1 1 0 0 1 1-1h3.5m-15 0H8a1 1 0 0 1 1 1v3.5\"/></svg>\n }\n }\n `,\n styles: [`\n :host{display:block;width:1em;height:1em;line-height:0;flex:0 0 auto}\n svg{display:block;width:100%;height:100%}\n `],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SmartPlayerIconComponent {\n @Input({ required: true }) name: SmartPlayerIconName = 'play';\n}\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\n\nexport interface SmartSettingOption {\n id: string;\n label: string;\n}\n\n/** A line of a list setting, such as a library folder. */\nexport interface SmartSettingEntry {\n id: string;\n label: string;\n detail?: string;\n /** An entry the listener always keeps, such as a folder the app owns: it is shown without its remove button. */\n fixed?: boolean;\n}\n\ninterface SmartSettingBase {\n id: string;\n label: string;\n description?: string;\n}\n\n/**\n * One setting. The host owns every value and hears what the listener asks for through the component's outputs:\n * - `switch`: on or off;\n * - `choice`: one of a few options, shown side by side;\n * - `list`: entries the listener can remove one by one, with an optional action for the whole list;\n * - `action`: a button that does something now (scan again, clear a cache);\n * - `secret`: something typed that must not be read over a shoulder, sent when it is submitted\n * and never held afterwards — the field empties itself, and the host is the only one that\n * ever sees what was typed.\n */\nexport type SmartSettingItem =\n | (SmartSettingBase & { kind: 'switch'; value: boolean; disabled?: boolean })\n | (SmartSettingBase & { kind: 'choice'; value: string; options: SmartSettingOption[] })\n | (SmartSettingBase & { kind: 'list'; entries: SmartSettingEntry[]; removeLabel: string; emptyLabel?: string; actionLabel?: string; busy?: boolean })\n | (SmartSettingBase & { kind: 'action'; actionLabel: string; busy?: boolean; disabled?: boolean })\n | (SmartSettingBase & {\n kind: 'secret';\n actionLabel: string;\n placeholder?: string;\n /** A second field, when what is typed has to be given twice — an old code and a new one. */\n secondPlaceholder?: string;\n /** Digits only, which is what a device's own lock screen asks for. */\n digits?: boolean;\n busy?: boolean;\n disabled?: boolean;\n });\n\nexport interface SmartSettingsSection {\n id: string;\n title: string;\n items: SmartSettingItem[];\n}\n\nexport interface SmartSettingChange {\n id: string;\n value: boolean | string;\n /** A `secret` setting's second field, when it has one: the old code beside the new one. */\n previous?: string;\n}\n\n/** An action: a list's own action (no entry), the removal of one of its entries, or an action setting. */\nexport interface SmartSettingAction {\n id: string;\n entryId?: string;\n}\n\n/**\n * The settings of a player, grouped in sections. Colours come from the host through CSS variables\n * (`--ngxsp-settings-surface`, `-text`, `-muted`, `-line`, `-control`, `-accent`, `-accent-text`, `-radius`).\n */\n@Component({\n selector: 'ngxsp-settings',\n standalone: true,\n imports: [SmartPlayerIconComponent],\n template: `\n @for (section of sections; track section.id) {\n <section class=\"ngxsp-settings-section\" [attr.aria-labelledby]=\"'ngxsp-settings-' + section.id\">\n <h2 [id]=\"'ngxsp-settings-' + section.id\">{{ section.title }}</h2>\n <ul class=\"ngxsp-settings-items\">\n @for (item of section.items; track item.id) {\n <li class=\"ngxsp-settings-item\" [class.stacked]=\"item.kind === 'list'\" [class.wraps]=\"item.kind === 'choice' || item.kind === 'action'\">\n <span class=\"ngxsp-settings-copy\">\n <strong [id]=\"'ngxsp-setting-' + item.id\">{{ item.label }}</strong>\n @if (item.description) { <small [id]=\"'ngxsp-setting-help-' + item.id\">{{ item.description }}</small> }\n </span>\n @switch (item.kind) {\n @case ('switch') {\n <button class=\"ngxsp-settings-switch\" type=\"button\" role=\"switch\" [attr.aria-checked]=\"item.value\" [disabled]=\"item.disabled\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\" [attr.aria-describedby]=\"item.description ? 'ngxsp-setting-help-' + item.id : null\" (click)=\"settingChange.emit({ id: item.id, value: !item.value })\">\n <span class=\"ngxsp-settings-knob\" aria-hidden=\"true\"></span>\n </button>\n }\n @case ('choice') {\n <span class=\"ngxsp-settings-choice\" role=\"group\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\">\n @for (option of item.options; track option.id) {\n <button type=\"button\" [class.active]=\"option.id === item.value\" [attr.aria-pressed]=\"option.id === item.value\" (click)=\"option.id !== item.value && settingChange.emit({ id: item.id, value: option.id })\">{{ option.label }}</button>\n }\n </span>\n }\n @case ('secret') {\n <form class=\"ngxsp-settings-secret\" (submit)=\"submitSecret($event, item.id)\">\n @if (item.secondPlaceholder) {\n <input\n #firstSecret\n type=\"password\"\n autocomplete=\"off\"\n [attr.inputmode]=\"item.digits ? 'numeric' : null\"\n [attr.placeholder]=\"item.secondPlaceholder\"\n [attr.aria-label]=\"item.secondPlaceholder\"\n [disabled]=\"item.disabled || item.busy\"\n />\n }\n <input\n #secondSecret\n type=\"password\"\n autocomplete=\"off\"\n [attr.inputmode]=\"item.digits ? 'numeric' : null\"\n [attr.placeholder]=\"item.placeholder ?? null\"\n [attr.aria-label]=\"item.placeholder ?? item.label\"\n [attr.aria-describedby]=\"item.description ? 'ngxsp-setting-help-' + item.id : null\"\n [disabled]=\"item.disabled || item.busy\"\n />\n <button class=\"ngxsp-settings-button\" type=\"submit\" [disabled]=\"item.disabled || item.busy\">{{ item.actionLabel }}</button>\n </form>\n }\n @case ('action') {\n <button class=\"ngxsp-settings-button\" type=\"button\" [disabled]=\"item.disabled || item.busy\" [attr.aria-describedby]=\"item.description ? 'ngxsp-setting-help-' + item.id : null\" (click)=\"settingAction.emit({ id: item.id })\">{{ item.actionLabel }}</button>\n }\n @case ('list') {\n <ul class=\"ngxsp-settings-entries\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\">\n @for (entry of item.entries; track entry.id) {\n <li>\n <span class=\"ngxsp-settings-entry\"><span>{{ entry.label }}</span>@if (entry.detail) { <small>{{ entry.detail }}</small> }</span>\n @if (!entry.fixed) {\n <button class=\"ngxsp-settings-remove\" type=\"button\" [title]=\"item.removeLabel\" [attr.aria-label]=\"item.removeLabel + ' - ' + entry.label\" [disabled]=\"item.busy\" (click)=\"settingAction.emit({ id: item.id, entryId: entry.id })\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n }\n </li>\n } @empty {\n @if (item.emptyLabel) { <li class=\"empty\">{{ item.emptyLabel }}</li> }\n }\n </ul>\n @if (item.actionLabel) {\n <button class=\"ngxsp-settings-button\" type=\"button\" [disabled]=\"item.busy\" (click)=\"settingAction.emit({ id: item.id })\">{{ item.actionLabel }}</button>\n }\n }\n }\n </li>\n }\n </ul>\n </section>\n }\n `,\n styles: [`\n :host{\n --_surface:var(--ngxsp-settings-surface, rgb(255 255 255 / .04));\n --_text:var(--ngxsp-settings-text, currentColor);\n --_muted:var(--ngxsp-settings-muted, rgb(127 127 127));\n --_line:var(--ngxsp-settings-line, rgb(127 127 127 / .3));\n --_control:var(--ngxsp-settings-control, rgb(127 127 127 / .2));\n --_accent:var(--ngxsp-settings-accent, #5b5bd6);\n --_accent-text:var(--ngxsp-settings-accent-text, #fff);\n --_radius:var(--ngxsp-settings-radius, 10px);\n display:grid;\n gap:28px;\n max-width:760px;\n color:var(--_text);\n }\n .ngxsp-settings-section{display:grid;gap:10px}\n h2{margin:0;font-size:13px;font-weight:600;letter-spacing:.02em;color:var(--_muted);text-transform:uppercase}\n .ngxsp-settings-items{margin:0;padding:0;list-style:none;display:grid;gap:2px;border-radius:var(--_radius);overflow:hidden}\n .ngxsp-settings-item{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:14px 16px;background:var(--_surface)}\n .ngxsp-settings-item.stacked{display:grid;justify-content:stretch}\n /* A choice or a button goes under its text when the text would otherwise shrink to a thin column (side panels). */\n .ngxsp-settings-item.wraps{flex-wrap:wrap}\n .ngxsp-settings-item.wraps .ngxsp-settings-copy{flex:1 1 220px}\n .ngxsp-settings-copy{min-width:0;display:grid;gap:4px}\n .ngxsp-settings-copy strong{font-size:14px;font-weight:600}\n .ngxsp-settings-copy small{font-size:12px;line-height:1.45;color:var(--_muted)}\n .ngxsp-settings-switch{position:relative;flex:0 0 auto;width:42px;height:24px;padding:0;border:1px solid var(--_line);border-radius:999px;background:var(--_control);cursor:pointer;transition:background-color .16s ease, border-color .16s ease}\n .ngxsp-settings-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / .3);transition:transform .16s ease}\n .ngxsp-settings-switch[aria-checked=\"true\"]{border-color:var(--_accent);background:var(--_accent)}\n .ngxsp-settings-switch[aria-checked=\"true\"] .ngxsp-settings-knob{transform:translateX(18px)}\n .ngxsp-settings-choice{flex:0 0 auto;display:inline-flex;padding:2px;gap:2px;border:1px solid var(--_line);border-radius:999px;background:var(--_control)}\n .ngxsp-settings-choice button{height:28px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--_text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}\n .ngxsp-settings-choice button.active{background:var(--_accent);color:var(--_accent-text)}\n .ngxsp-settings-button{justify-self:start;flex:0 0 auto;height:32px;padding:0 14px;border:1px solid var(--_line);border-radius:999px;background:var(--_control);color:var(--_text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}\n .ngxsp-settings-button:disabled,.ngxsp-settings-switch:disabled,.ngxsp-settings-remove:disabled{opacity:.5;cursor:default}\n .ngxsp-settings-secret{display:flex;align-items:center;gap:8px;min-width:0}\n .ngxsp-settings-secret input{\n flex:1 1 96px;\n min-width:0;\n height:32px;\n padding:0 10px;\n border:1px solid var(--_line);\n border-radius:8px;\n background:var(--_control);\n color:var(--_text);\n font:inherit;\n font-size:12px;\n letter-spacing:.14em;\n }\n .ngxsp-settings-secret input::placeholder{color:var(--_muted);letter-spacing:0}\n .ngxsp-settings-entries{margin:0;padding:0;list-style:none;display:grid;gap:4px}\n .ngxsp-settings-entries li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 8px 12px;border:1px solid var(--_line);border-radius:8px}\n .ngxsp-settings-entries li.empty{display:block;color:var(--_muted);font-size:12px}\n .ngxsp-settings-entry{min-width:0;display:grid;gap:2px;font-size:13px}\n .ngxsp-settings-entry small{overflow:hidden;color:var(--_muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-settings-remove{flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:var(--_muted);cursor:pointer}\n .ngxsp-settings-remove:hover{background:var(--_control);color:var(--_text)}\n .ngxsp-settings-remove ngxsp-smart-icon{width:16px;height:16px}\n button:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}\n @media (max-width:560px){\n .ngxsp-settings-secret{flex-wrap:wrap}\n .ngxsp-settings-choice{flex-wrap:wrap}\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartSettingsComponent {\n @Input() sections: SmartSettingsSection[] = [];\n @Output() settingChange = new EventEmitter<SmartSettingChange>();\n @Output() settingAction = new EventEmitter<SmartSettingAction>();\n\n /**\n * Sends what was typed and empties the fields at once. Nothing secret stays in the component:\n * the host is the only place it goes, and it does not come back through an input.\n */\n protected submitSecret(event: Event, id: string): void {\n event.preventDefault();\n const form = event.target as HTMLFormElement;\n const inputs = Array.from(form.querySelectorAll('input')) as HTMLInputElement[];\n const value = inputs.at(-1)?.value ?? '';\n const previous = inputs.length > 1 ? inputs[0].value : undefined;\n inputs.forEach((input) => { input.value = ''; });\n if (!value) return;\n this.settingChange.emit({ id, value, ...(previous === undefined ? {} : { previous }) });\n }\n}\n","import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Input, Output, ViewChild } from '@angular/core';\n\nlet nextDialogId = 0;\n\n/**\n * A question the user answers before anything happens (another device asking to send its playback here). The\n * cautious answer has the focus and Escape; the dialog stays until one of the two buttons is pressed. Colours come\n * from the host through CSS variables (`--ngxsp-dialog-surface`, `-text`, `-muted`, `-line`, `-accent`,\n * `-accent-text`, `-radius`).\n */\n@Component({\n selector: 'ngxsp-confirm-dialog',\n standalone: true,\n template: `\n <div class=\"ngxsp-dialog-backdrop\" role=\"presentation\">\n <section class=\"ngxsp-dialog\" role=\"alertdialog\" aria-modal=\"true\" [attr.aria-labelledby]=\"id + '-title'\" [attr.aria-describedby]=\"id + '-message'\">\n <h2 [id]=\"id + '-title'\">{{ title }}</h2>\n <p [id]=\"id + '-message'\">{{ message }}</p>\n <div class=\"ngxsp-dialog-actions\">\n <button #cancelButton class=\"ngxsp-dialog-button\" type=\"button\" (click)=\"cancelled.emit()\">{{ cancelLabel }}</button>\n <button class=\"ngxsp-dialog-button primary\" type=\"button\" (click)=\"confirmed.emit()\">{{ confirmLabel }}</button>\n </div>\n </section>\n </div>\n `,\n styles: [`\n :host{\n --_surface:var(--ngxsp-dialog-surface, #17181d);\n --_text:var(--ngxsp-dialog-text, #ededf0);\n --_muted:var(--ngxsp-dialog-muted, #a3a5ae);\n --_line:var(--ngxsp-dialog-line, rgb(255 255 255 / .13));\n --_accent:var(--ngxsp-dialog-accent, #5b5bd6);\n --_accent-text:var(--ngxsp-dialog-accent-text, #fff);\n --_radius:var(--ngxsp-dialog-radius, 14px);\n }\n .ngxsp-dialog-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgb(5 6 8 / .6);backdrop-filter:blur(2px)}\n .ngxsp-dialog{width:min(420px, 100%);display:grid;gap:12px;padding:20px;border:1px solid var(--_line);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:0 24px 64px rgb(0 0 0 / .45)}\n h2{margin:0;font-size:17px;font-weight:650;line-height:1.3}\n p{margin:0;color:var(--_muted);font-size:14px;line-height:1.5}\n .ngxsp-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:4px}\n .ngxsp-dialog-button{min-height:36px;padding:0 16px;border:1px solid var(--_line);border-radius:999px;background:transparent;color:var(--_text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}\n .ngxsp-dialog-button.primary{border-color:var(--_accent);background:var(--_accent);color:var(--_accent-text)}\n .ngxsp-dialog-button:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartConfirmDialogComponent implements AfterViewInit {\n @Input() title = '';\n @Input() message = '';\n @Input() confirmLabel = 'OK';\n @Input() cancelLabel = 'Cancel';\n @Output() confirmed = new EventEmitter<void>();\n @Output() cancelled = new EventEmitter<void>();\n @ViewChild('cancelButton') private cancelButton?: ElementRef<HTMLButtonElement>;\n protected readonly id = `ngxsp-dialog-${++nextDialogId}`;\n\n ngAfterViewInit(): void {\n this.cancelButton?.nativeElement.focus({ preventScroll: true });\n }\n\n @HostListener('document:keydown.escape', ['$event'])\n protected onEscape(event: Event): void {\n event.preventDefault();\n this.cancelled.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { MediaTrack } from '@ngxsp/core';\n\nexport type PlayerMenuKind = 'tracks' | 'speed' | 'captions' | null;\n\n/** The words of the player's menus; English by default. */\nexport interface PlayerMenuLabels {\n captions: string;\n off: string;\n audio: string;\n singleAudio: string;\n quality: string;\n auto: string;\n singleQuality: string;\n speed: string;\n /** Title of the subtitles menu, and of its button. */\n subtitles: string;\n /** Before the name of the subtitles shown now. */\n current: string;\n noSubtitles: string;\n loadSubtitles: string;\n tracks: string;\n media: string;\n /** Locale for the names of languages (\"fr\" becomes \"French\"); the device's by default. */\n locale?: string;\n}\n\nexport const DEFAULT_PLAYER_MENU_LABELS: PlayerMenuLabels = {\n captions: 'Captions',\n off: 'Off',\n audio: 'Audio',\n singleAudio: 'Single audio track',\n quality: 'Quality',\n auto: 'Auto',\n singleQuality: 'Single quality',\n speed: 'Playback speed',\n subtitles: 'Subtitles',\n current: 'Showing',\n noSubtitles: 'No subtitles in this video yet.',\n loadSubtitles: 'Load a file (SRT, VTT)…',\n tracks: 'Tracks',\n media: 'Media',\n};\n\n/**\n * Menu de pistes (sous-titres / audio / qualité) et de vitesse de lecture.\n * Extrait du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).\n * Sans logique de lecture : émet des événements, l'hôte applique l'action.\n */\n@Component({\n selector: 'ngxsp-player-menu',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (openMenu() === 'tracks') {\n <div class=\"ngxsp-menu\">\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().captions }}</div>\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === null\" (click)=\"selectText.emit(null)\">{{ labels().off }}</button>\n @for (track of textTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === track.id\" (click)=\"selectText.emit(track.id)\">\n {{ trackLabel(track) }}\n </button>\n }\n </div>\n\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().audio }}</div>\n @if (audioTracks().length) {\n @for (track of audioTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedAudioTrackId() === track.id\" (click)=\"selectAudio.emit(track.id)\">\n {{ trackLabel(track) }}\n </button>\n }\n } @else {\n <div class=\"ngxsp-menuHint\">{{ labels().singleAudio }}</div>\n }\n </div>\n\n @if (!isAudioMode()) {\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().quality }}</div>\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedVideoTrackId() === null\" (click)=\"selectVideo.emit(null)\">{{ labels().auto }}</button>\n @if (videoTracks().length) {\n @for (track of videoTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedVideoTrackId() === track.id\" (click)=\"selectVideo.emit(track.id)\">\n {{ qualityLabel(track) }}\n </button>\n }\n } @else {\n <div class=\"ngxsp-menuHint\">{{ labels().singleQuality }}</div>\n }\n </div>\n }\n </div>\n }\n\n @if (openMenu() === 'speed') {\n <div class=\"ngxsp-menu ngxsp-menuCompact\">\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().speed }}</div>\n @for (rate of playbackRates(); track rate) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"playbackRate() === rate\" (click)=\"selectRate.emit(rate)\">\n {{ rate }}x\n </button>\n }\n </div>\n </div>\n }\n\n @if (openMenu() === 'captions') {\n <div class=\"ngxsp-menu ngxsp-menuCompact ngxsp-menuCaptions\">\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().subtitles }}</div>\n <div class=\"ngxsp-menuCurrent\">{{ labels().current }} <strong>{{ currentTextLabel() }}</strong></div>\n <div class=\"ngxsp-menuScroll\" role=\"group\" [attr.aria-label]=\"labels().subtitles\">\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === null\" [attr.aria-pressed]=\"selectedTextTrackId() === null\" (click)=\"selectText.emit(null)\">{{ labels().off }}</button>\n @for (track of textTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === track.id\" [attr.aria-pressed]=\"selectedTextTrackId() === track.id\" (click)=\"selectText.emit(track.id)\">\n <span class=\"ngxsp-menuItemLabel\">{{ trackLabel(track) }}</span>\n @if (track.language && track.label) { <small>{{ languageName(track.language) }}</small> }\n </button>\n }\n </div>\n @if (!textTracks().length) { <div class=\"ngxsp-menuHint\">{{ labels().noSubtitles }}</div> }\n <button type=\"button\" class=\"ngxsp-menuItem ngxsp-menuAction\" (click)=\"loadSubtitles.emit()\">{{ labels().loadSubtitles }}</button>\n </div>\n </div>\n }\n `,\n styles: `\n :host { display: block; }\n .ngxsp-menu{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));gap:12px;margin:6px 0 4px;padding:12px;border-radius:10px;background:rgb(18 19 23 / .92);box-shadow:0 12px 32px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08);backdrop-filter:blur(16px)}\n .ngxsp-menuCompact{grid-template-columns:minmax(160px, 220px);justify-self:end}\n .ngxsp-menuSection{display:flex;flex-direction:column;gap:2px}\n .ngxsp-menuTitle{padding:0 8px 6px;font-size:12px;font-weight:600;color:rgb(255 255 255 / .6)}\n .ngxsp-menuItem{height:32px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:rgb(255 255 255 / .9);text-align:left;cursor:pointer;font:inherit;font-size:13px}\n .ngxsp-menuItem:hover{background:rgb(255 255 255 / .1)}\n .ngxsp-menuItem.active{background:rgb(139 144 255 / .18);color:var(--nsp-media-accent, #8b90ff);font-weight:500}\n .ngxsp-menuItem:focus-visible{outline:2px solid var(--nsp-media-accent, #8b90ff);outline-offset:-2px}\n .ngxsp-menuHint{font-size:12px;color:rgb(255 255 255 / .6);padding:6px 8px}\n .ngxsp-menuCaptions{grid-template-columns:minmax(200px, 280px)}\n .ngxsp-menuCurrent{padding:0 8px 8px;font-size:12px;color:rgb(255 255 255 / .6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-menuCurrent strong{color:rgb(255 255 255 / .92);font-weight:600}\n .ngxsp-menuScroll{display:flex;flex-direction:column;gap:2px;max-height:min(36vh, 232px);overflow:auto;overscroll-behavior:contain}\n .ngxsp-menuItem{display:flex;align-items:center;gap:8px;flex:none}\n .ngxsp-menuItemLabel{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-menuItem small{flex:none;font-size:11px;color:rgb(255 255 255 / .55)}\n .ngxsp-menuAction{margin-top:6px;border-top:1px solid rgb(255 255 255 / .1);border-radius:0 0 6px 6px;color:var(--nsp-media-accent, #8b90ff)}\n @media (max-width: 860px){ .ngxsp-menu{grid-template-columns:1fr} }\n `,\n})\nexport class PlayerMenuComponent {\n readonly openMenu = input<PlayerMenuKind>(null);\n readonly isAudioMode = input(false);\n readonly textTracks = input<MediaTrack[]>([]);\n readonly audioTracks = input<MediaTrack[]>([]);\n readonly videoTracks = input<MediaTrack[]>([]);\n readonly selectedTextTrackId = input<string | null>(null);\n readonly selectedAudioTrackId = input<string | null>(null);\n readonly selectedVideoTrackId = input<string | null>(null);\n readonly playbackRates = input<number[]>([]);\n readonly playbackRate = input(1);\n readonly labels = input<PlayerMenuLabels>(DEFAULT_PLAYER_MENU_LABELS);\n\n readonly selectText = output<string | null>();\n readonly selectAudio = output<string>();\n readonly selectVideo = output<string | null>();\n readonly selectRate = output<number>();\n /** \"Load a file\" in the subtitles menu: the host opens its file picker. */\n readonly loadSubtitles = output<void>();\n\n currentTextLabel(): string {\n const track = this.textTracks().find((entry) => entry.id === this.selectedTextTrackId());\n return track ? this.trackLabel(track) : this.labels().off;\n }\n\n /** \"French\" for \"fr\", in the labels' locale. */\n languageName(code: string): string {\n try {\n return new Intl.DisplayNames(this.labels().locale ? [this.labels().locale as string] : undefined, { type: 'language' }).of(code) ?? code;\n } catch {\n return code;\n }\n }\n\n trackLabel(track: MediaTrack): string {\n return track.label || (track.language ? this.languageName(track.language) : track.id);\n }\n\n qualityLabel(track: MediaTrack): string {\n if (track.label) return track.label;\n const parts: string[] = [];\n if (track.height) parts.push(`${track.height}p`);\n if (track.bandwidth) parts.push(`${(track.bandwidth / 1_000_000).toFixed(1)} Mbps`);\n return parts.join(' • ') || track.id;\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { PlayerError } from '@ngxsp/core';\n\n/**\n * Surcouches du lecteur : carte d'erreur de lecture et panneau de diagnostic.\n * Extrait du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).\n * Sans accès au moteur : reçoit l'erreur/diagnostic en entrée et émet les actions.\n */\n@Component({\n selector: 'ngxsp-player-overlays',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (error()) {\n <div class=\"ngxsp-overlay\" role=\"alert\">\n <div class=\"ngxsp-overlay-card\">\n <span class=\"ngxsp-overlay-icon\" aria-hidden=\"true\">!</span>\n <div class=\"ngxsp-overlay-title\">{{ title() }}</div>\n <div class=\"ngxsp-overlay-msg\">{{ hint() }}</div>\n <div class=\"ngxsp-overlay-actions\">\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"retry.emit()\">Retry</button>\n @if (autoplayBlocked()) {\n <button type=\"button\" class=\"ngxsp-btn primary\" (click)=\"requestPlay.emit()\">Play</button>\n }\n </div>\n </div>\n </div>\n }\n\n @if (debug()) {\n <details class=\"ngxsp-debug\">\n <summary>Debug</summary>\n <div class=\"ngxsp-debug-actions\">\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"copyJson.emit()\">Copy JSON</button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"downloadJson.emit()\">Download</button>\n </div>\n <pre>{{ debugJson() }}</pre>\n </details>\n }\n `,\n styles: `\n :host { display: contents; }\n .ngxsp-btn{height:32px;padding:0 14px;border:1px solid rgb(255 255 255 / .16);border-radius:6px;background:rgb(255 255 255 / .06);color:#fff;font:inherit;font-size:13px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}\n .ngxsp-btn:hover{background:rgb(255 255 255 / .12)}\n .ngxsp-btn.primary{border-color:transparent;background:var(--nsp-accent-strong, #5d63ee)}\n .ngxsp-btn:focus-visible{outline:2px solid var(--nsp-media-accent, #8b90ff);outline-offset:2px}\n .ngxsp-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:24px;background:rgb(0 0 0 / .78);text-align:center}\n .ngxsp-overlay-card{display:grid;justify-items:center;gap:8px;max-width:440px}\n .ngxsp-overlay-icon{width:40px;height:40px;display:grid;place-items:center;margin-bottom:4px;border-radius:999px;background:rgb(242 95 92 / .16);color:var(--nsp-danger, #f25f5c);font-size:18px;font-weight:700}\n .ngxsp-overlay-title{font-size:16px;font-weight:600;color:#fff}\n .ngxsp-overlay-msg{color:rgb(255 255 255 / .7);font-size:13px;line-height:1.5}\n .ngxsp-overlay-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:8px}\n .ngxsp-debug{position:absolute;top:12px;right:12px;z-index:6;margin:0;max-width:min(420px, calc(100% - 24px));opacity:0;transform:translateY(-6px);transition:opacity .18s ease, transform .18s ease;color:#fff}\n :host-context(.ngxsp-ui-visible) .ngxsp-debug,\n .ngxsp-debug[open]{opacity:1;transform:translateY(0)}\n .ngxsp-debug summary{cursor:pointer;list-style:none;width:max-content;margin-left:auto;padding:4px 10px;border-radius:999px;background:rgb(0 0 0 / .6);color:rgb(255 255 255 / .8);font-size:12px}\n .ngxsp-debug[open]{padding:12px;max-height:calc(100% - 24px);overflow:auto;border-radius:10px;background:rgb(18 19 23 / .96);box-shadow:0 12px 32px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08)}\n .ngxsp-debug-actions{display:flex;gap:8px;margin:8px 0;flex-wrap:wrap}\n .ngxsp-debug pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:var(--nsp-font-mono, ui-monospace, Menlo, monospace);font-size:11px}\n `,\n})\nexport class PlayerOverlaysComponent {\n readonly error = input<PlayerError | null>(null);\n readonly debug = input(false);\n readonly debugJson = input('{}');\n\n readonly retry = output<void>();\n readonly requestPlay = output<void>();\n readonly copyJson = output<void>();\n readonly downloadJson = output<void>();\n\n private readonly code = computed(() => this.error()?.code ?? 'UNKNOWN');\n\n readonly autoplayBlocked = computed(() => this.code() === 'AUTOPLAY_BLOCKED');\n\n readonly title = computed(() => {\n switch (this.code()) {\n case 'ENGINE_MISSING':\n return 'Playback engine missing';\n case 'AUTOPLAY_BLOCKED':\n return 'Click to start playback';\n case 'NETWORK_HTTP':\n return 'Network error';\n case 'DECODE_ERROR':\n return 'Decode error';\n case 'SRC_NOT_SUPPORTED':\n return 'Format not supported';\n default:\n return 'Playback error';\n }\n });\n\n readonly hint = computed(() => {\n switch (this.code()) {\n case 'ENGINE_MISSING':\n return 'This source requires an additional engine. Install @ngxsp/engine-shaka and pass it via [engines].';\n case 'AUTOPLAY_BLOCKED':\n return 'Your browser blocked autoplay. Press Play to start.';\n case 'NETWORK_HTTP':\n return 'Check your connection or try again.';\n default:\n return this.error()?.message ? String(this.error()!.message) : 'Unknown error';\n }\n });\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\nimport { NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl, type SourceProfile } from '@ngxsplayer/ngx-smart-player-ui-core';\n\nexport type RepeatMode = 'off' | 'one' | 'all';\nexport type PlayerMenuKind = 'tracks' | 'speed';\n\n/**\n * Barre de contrôle du skin classique, extraite du SmartPlayerComponent\n * (décomposition, cf. docs/AUDIT.md). Sans accès au moteur ni au <video> :\n * reçoit l'état + les capacités (cast/PiP) en entrée et émet les commandes ;\n * l'hôte applique l'action (et possède l'élément vidéo pour PiP/cast).\n */\n@Component({\n selector: 'ngxsp-player-controls',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmartPlayerIconComponent, NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl],\n template: `\n <div class=\"ngxsp-controls\">\n <ngxsp-play-button class=\"ngxsp-btn\" [playing]=\"playing()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pause\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"play\" />\n }\n </ngxsp-play-button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"seekRelative.emit(-10)\" aria-label=\"Seek backward 10 seconds\" title=\"Seek backward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-back\" />\n </button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"seekRelative.emit(10)\" aria-label=\"Seek forward 10 seconds\" title=\"Seek forward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-forward\" />\n </button>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"prev.emit()\" [disabled]=\"!canPrev()\" aria-label=\"Previous item\" title=\"Previous item\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"prev\" /></button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"next.emit()\" [disabled]=\"!canNext()\" aria-label=\"Next item\" title=\"Next item\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"next\" /></button>\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"shuffleActive()\" (click)=\"toggleShuffle.emit()\" [attr.title]=\"shuffleLabel()\" [attr.aria-label]=\"shuffleLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"shuffle\" />\n </button>\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"repeatMode() !== 'off'\" (click)=\"cycleRepeat.emit()\" [attr.title]=\"repeatLabel()\" [attr.aria-label]=\"repeatLabel()\">\n @if (repeatMode() === 'one') {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat-one\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat\" />\n }\n </button>\n }\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"openMenu.emit('tracks')\" [attr.title]=\"tracksLabel()\" [attr.aria-label]=\"tracksLabel()\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"tracks\" /></button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"captions.emit()\" [attr.title]=\"captionsLabel()\" [attr.aria-label]=\"captionsLabel()\">\n @if (captionsActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions-off\" />\n }\n </button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"openMenu.emit('speed')\" [attr.title]=\"speedLabel()\" [attr.aria-label]=\"speedLabel()\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"speed\" /></button>\n @if (showAirPlay()) {\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"airPlayActive()\" (click)=\"airPlay.emit()\" [attr.title]=\"airPlayLabel()\" [attr.aria-label]=\"airPlayLabel()\">\n @if (airPlayActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"airplay-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"airplay\" />\n }\n </button>\n }\n @if (showCast()) {\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"castActive()\" (click)=\"cast.emit()\" [attr.title]=\"castHint()\" [attr.aria-label]=\"castLabel()\">\n @if (castActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"cast-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"cast\" />\n }\n </button>\n }\n @if (!isAudioMode() && pipSupported()) {\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"pip.emit()\" [attr.title]=\"pipLabel()\" [attr.aria-label]=\"pipLabel()\">\n @if (pipActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip\" />\n }\n </button>\n }\n <ngxsp-volume-control\n class=\"ngxsp-volumeControl\"\n [volume]=\"volume()\"\n [volumeLabel]=\"volumeLabel()\"\n [muteLabel]=\"muteLabel()\"\n [unmuteLabel]=\"unmuteLabel()\"\n (muteToggle)=\"mute.emit()\"\n (volumeChange)=\"volumeChange.emit($event)\"\n />\n\n <ngxsp-time-slider\n style=\"flex:1 1 160px; min-width:160px\"\n [currentTime]=\"currentTime()\"\n [duration]=\"duration()\"\n [buffered]=\"buffered()\"\n [profile]=\"profile()\"\n (seek)=\"scrub.emit($event)\"\n />\n\n <div class=\"ngxsp-time\">{{ fmtTime(currentTime()) }} / {{ fmtTime(duration()) }}</div>\n\n </div>\n `,\n styles: `\n :host { display: block; }\n .ngxsp-controls{display:flex;gap:8px;align-items:center;padding:10px;flex-wrap:wrap}\n .ngxsp-btn{background:linear-gradient(180deg, rgba(19,34,54,.92), rgba(11,21,35,.92));border:1px solid var(--ngxsp-border, rgba(148,163,184,.18));color:var(--ngxsp-text, #e6eef8);border-radius:12px;padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(2,6,23,.18);transition:border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease}\n .ngxsp-btn.accent{background:linear-gradient(180deg, rgba(20,48,74,.96), rgba(13,33,53,.96));border-color:var(--ngxsp-border-strong, rgba(191,219,254,.24));color:#d8f3ff}\n .ngxsp-btn:hover{border-color:rgba(191,219,254,.34); background:linear-gradient(180deg, rgba(24,46,71,.94), rgba(12,27,44,.94))}\n .ngxsp-btn:disabled{opacity:.38; cursor:not-allowed}\n .ngxsp-btn:focus-visible{outline:none; box-shadow:var(--ngxsp-focus-ring, 0 0 0 3px rgb(108 182 255 / .5))}\n .ngxsp-icon{width:18px;height:18px;display:block;flex:0 0 auto}\n .ngxsp-time{color:var(--ngxsp-text-dim, rgba(230,238,248,.72));font-variant-numeric:tabular-nums}\n .ngxsp-volumeControl{\n --ngxsp-control-size: 38px;\n --ngxsp-volume-range-max: 140px;\n --ngxsp-volume-button-bg: linear-gradient(180deg, rgba(19,34,54,.92), rgba(11,21,35,.92));\n --ngxsp-volume-button-border: 1px solid var(--ngxsp-border, rgba(148,163,184,.18));\n --ngxsp-volume-accent: var(--nsp-accent, #7dd3fc);\n --ngxsp-volume-thumb-bg: var(--nsp-text, #f8fbff);\n color: var(--ngxsp-text, #e6eef8);\n }\n @media (max-width: 640px){\n .ngxsp-controls{padding:8px;gap:6px}\n .ngxsp-btn{padding:7px 9px;border-radius:10px}\n .ngxsp-icon{width:16px;height:16px}\n }\n `,\n})\nexport class PlayerControlsComponent {\n readonly playing = input(false);\n readonly isAudioMode = input(false);\n readonly hasPlaylistControls = input(false);\n readonly canPrev = input(false);\n readonly canNext = input(false);\n readonly shuffleActive = input(false);\n readonly shuffleLabel = input('Shuffle: off');\n readonly repeatMode = input<RepeatMode>('off');\n readonly repeatLabel = input('Repeat: off');\n readonly captionsActive = input(false);\n readonly tracksLabel = input('Tracks');\n readonly captionsLabel = input('Load subtitles');\n readonly speedLabel = input('1x');\n readonly volumeLabel = input('Volume');\n readonly muteLabel = input('Mute');\n readonly unmuteLabel = input('Restore sound');\n readonly showAirPlay = input(false);\n readonly airPlayActive = input(false);\n readonly airPlayLabel = input('AirPlay');\n readonly showCast = input(false);\n readonly castActive = input(false);\n readonly castLabel = input('Play on device');\n readonly castHint = input('');\n readonly pipSupported = input(false);\n readonly pipActive = input(false);\n readonly pipLabel = input('PiP');\n readonly volume = input(1);\n readonly currentTime = input(0);\n readonly duration = input(0);\n readonly buffered = input(0);\n readonly profile = input<SourceProfile>('vod');\n\n readonly playToggle = output<void>();\n readonly seekRelative = output<number>();\n readonly prev = output<void>();\n readonly next = output<void>();\n readonly toggleShuffle = output<void>();\n readonly cycleRepeat = output<void>();\n readonly openMenu = output<PlayerMenuKind>();\n readonly captions = output<void>();\n readonly airPlay = output<void>();\n readonly cast = output<void>();\n readonly pip = output<void>();\n readonly mute = output<void>();\n readonly scrub = output<number>();\n readonly volumeChange = output<number>();\n\n fmtTime(sec: number): string {\n const s = Math.max(0, Math.floor(sec || 0));\n const h = Math.floor(s / 3600);\n const m = Math.floor((s % 3600) / 60);\n const r = s % 60;\n if (h > 0) return `${h}:${String(m).padStart(2, '0')}:${String(r).padStart(2, '0')}`;\n return `${m}:${String(r).padStart(2, '0')}`;\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output, computed } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\nimport { NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl, type NgxspTimelineMarker, type SourceProfile } from '@ngxsplayer/ngx-smart-player-ui-core';\nimport type { RepeatMode, PlayerMenuKind } from './player-controls.component';\n\n/**\n * Barre de contrôle du skin vod (top bar + center dock + bottom bar),\n * extraite du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).\n * Le menu pistes/vitesse est projeté par l'hôte via <ng-content>.\n * PiP/cast restent au parent (propriétaire du <video>) : capacités en entrée,\n * commandes en sortie.\n */\n@Component({\n selector: 'ngxsp-player-controls-vod',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmartPlayerIconComponent, NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl],\n template: `\n <div class=\"ngxsp-vod-top\">\n <div class=\"ngxsp-vod-titleWrap\">\n <div class=\"ngxsp-vod-eyebrow\">{{ isAudioMode() ? nowListeningLabel() : nowPlayingLabel() }}</div>\n <div class=\"ngxsp-vod-title\">{{ displayTitle() }}</div>\n </div>\n <div class=\"ngxsp-vod-spacer\"></div>\n <div class=\"ngxsp-vod-status\" [attr.data-state]=\"playing() ? 'playing' : 'idle'\">{{ statusLabel() }}</div>\n @if (!isAudioMode()) {\n <div class=\"ngxsp-vod-topHint\">{{ fullscreenHintLabel() }}</div>\n }\n </div>\n\n <div class=\"ngxsp-vod-centerDock\">\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-side\" (click)=\"prev.emit()\" [disabled]=\"!canPrev()\" [attr.aria-label]=\"previousLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"prev\" />\n </button>\n }\n <button type=\"button\" class=\"ngxsp-vod-side ngxsp-vod-side-wide\" (click)=\"seekRelative.emit(-10)\" aria-label=\"Seek backward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-back\" />\n </button>\n <ngxsp-play-button class=\"ngxsp-vod-center\" [playing]=\"playing()\" [playLabel]=\"playLabel()\" [pauseLabel]=\"pauseLabel()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) {\n <ngxsp-smart-icon class=\"ngxsp-icon ngxsp-icon-lg\" name=\"pause\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon ngxsp-icon-lg\" name=\"play\" />\n }\n </ngxsp-play-button>\n <button type=\"button\" class=\"ngxsp-vod-side ngxsp-vod-side-wide\" (click)=\"seekRelative.emit(10)\" aria-label=\"Seek forward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-forward\" />\n </button>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-side\" (click)=\"next.emit()\" [disabled]=\"!canNext()\" [attr.aria-label]=\"nextLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"next\" />\n </button>\n }\n </div>\n\n <div class=\"ngxsp-controls ngxsp-vod-bottom\">\n <div class=\"ngxsp-vod-metaRow\">\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-prev\" (click)=\"prev.emit()\" [disabled]=\"!canPrev()\" [attr.title]=\"previousLabel()\" [attr.aria-label]=\"previousLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"prev\" />\n </button>\n }\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-play\" (click)=\"playToggle.emit()\" [attr.title]=\"playing() ? pauseLabel() : playLabel()\" [attr.aria-label]=\"playing() ? pauseLabel() : playLabel()\">\n @if (playing()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pause\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"play\" />\n }\n </button>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-next\" (click)=\"next.emit()\" [disabled]=\"!canNext()\" [attr.title]=\"nextLabel()\" [attr.aria-label]=\"nextLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"next\" />\n </button>\n }\n <div class=\"ngxsp-vod-time\">{{ fmtTime(currentTime()) }} / {{ fmtTime(duration()) }}</div>\n <div class=\"ngxsp-vod-volumeGroup\">\n <ngxsp-volume-control\n class=\"ngxsp-vod-volumeControl\"\n [compact]=\"true\"\n [volume]=\"volume()\"\n [volumeLabel]=\"volumeLabel()\"\n [muteLabel]=\"muteLabel()\"\n [unmuteLabel]=\"unmuteLabel()\"\n (muteToggle)=\"mute.emit()\"\n (volumeChange)=\"volumeChange.emit($event)\"\n />\n </div>\n <ng-content select=\"[ngxsp-player-inline-controls]\" />\n <div class=\"ngxsp-vod-spacer\"></div>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-playlist\" [class.accent]=\"shuffleActive()\" (click)=\"toggleShuffle.emit()\" [attr.title]=\"shuffleLabel()\" [attr.aria-label]=\"shuffleLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"shuffle\" />\n </button>\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-playlist\" [class.accent]=\"repeatMode() !== 'off'\" (click)=\"cycleRepeat.emit()\" [attr.title]=\"repeatLabel()\" [attr.aria-label]=\"repeatLabel()\">\n @if (repeatMode() === 'one') {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat-one\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat\" />\n }\n </button>\n }\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-tracks\" (click)=\"openMenu.emit('tracks')\" [attr.title]=\"tracksLabel()\" [attr.aria-label]=\"tracksLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"tracks\" />\n </button>\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-captions\" (click)=\"captions.emit()\" [attr.title]=\"captionsLabel()\" [attr.aria-label]=\"captionsLabel()\">\n @if (captionsActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions-off\" />\n }\n </button>\n <!-- The rate itself, as a pill: what it is shows at a glance. -->\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-speed\" (click)=\"openMenu.emit('speed')\" [attr.title]=\"speedLabel()\" [attr.aria-label]=\"speedLabel()\">\n <span class=\"ngxsp-vod-speedBadge\">{{ speedBadge() }}</span>\n </button>\n @if (showAirPlay()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-airplay\" [class.accent]=\"airPlayActive()\" (click)=\"airPlay.emit()\" [attr.title]=\"airPlayLabel()\" [attr.aria-label]=\"airPlayLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" [name]=\"airPlayActive() ? 'airplay-active' : 'airplay'\" />\n </button>\n }\n @if (showCast()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-cast\" [class.accent]=\"castActive()\" (click)=\"cast.emit()\" [attr.title]=\"castHint()\" [attr.aria-label]=\"castLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" [name]=\"castActive() ? 'devices-active' : 'devices'\" />\n </button>\n }\n @if (!isAudioMode() && pipSupported()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-pip\" (click)=\"pip.emit()\" [attr.title]=\"pipLabel()\" [attr.aria-label]=\"pipLabel()\">\n @if (pipActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip\" />\n }\n </button>\n }\n @if (!isAudioMode()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-fullscreen\" (click)=\"fullscreen.emit()\" [attr.title]=\"fullscreenLabel()\" [attr.aria-label]=\"fullscreenLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"fullscreen\" />\n </button>\n }\n </div>\n\n <ngxsp-time-slider\n class=\"ngxsp-vod-range\"\n [currentTime]=\"currentTime()\"\n [duration]=\"duration()\"\n [buffered]=\"buffered()\"\n [profile]=\"profile()\"\n [durationHintSec]=\"timelineDurationSec()\"\n [markers]=\"timelineMarkers()\"\n (seek)=\"scrub.emit($event)\"\n />\n\n <ng-content select=\"ngxsp-player-menu\" />\n </div>\n `,\n styles: `\n :host { display: contents; }\n .ngxsp-icon{width:20px;height:20px;display:block;flex:0 0 auto}\n .ngxsp-icon-lg{width:28px;height:28px}\n .ngxsp-vod-top{position:absolute;left:0;right:0;top:0;display:flex;align-items:flex-start;gap:12px;padding:16px 18px 40px;background:linear-gradient(to bottom, rgb(0 0 0 / .62), rgb(0 0 0 / 0));pointer-events:none;opacity:0;transition:opacity .2s ease;z-index:3}\n :host-context(.ngxsp-ui-visible) .ngxsp-vod-top{opacity:1}\n .ngxsp-vod-titleWrap{min-width:0;display:flex;flex-direction:column;gap:2px}\n .ngxsp-vod-eyebrow{font-size:12px;font-weight:600;color:rgb(255 255 255 / .72)}\n .ngxsp-vod-title{font-weight:600;font-size:16px;color:#fff;text-shadow:0 1px 2px rgb(0 0 0 / .5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n .ngxsp-vod-topHint{display:none}\n .ngxsp-vod-status{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:rgb(0 0 0 / .45);color:rgb(255 255 255 / .86);font-size:11px;font-weight:500;backdrop-filter:blur(8px)}\n .ngxsp-vod-status::before{content:'';width:6px;height:6px;border-radius:50%;background:rgb(255 255 255 / .5)}\n .ngxsp-vod-status[data-state='playing']::before{background:var(--nsp-success, #3ecf8e)}\n .ngxsp-vod-spacer{flex:1}\n .ngxsp-vod-centerDock{position:absolute;inset:0;margin:auto;width:max-content;height:max-content;display:flex;align-items:center;gap:20px;z-index:4;opacity:0;visibility:hidden;transform:scale(.96);transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;pointer-events:none}\n :host-context(.ngxsp-ui-visible) .ngxsp-vod-centerDock{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .2s ease, transform .2s ease, visibility 0s}\n :host-context(.ngxsp-root[data-kind='error']) .ngxsp-vod-centerDock,\n :host-context(.ngxsp-root[data-kind='error']) .ngxsp-vod-top{display:none}\n .ngxsp-vod-center{height:68px;width:68px;border-radius:999px;border:0;background:rgb(255 255 255 / .94);color:#0d0e11;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 40px rgb(0 0 0 / .45);transition:transform .15s ease, background-color .15s ease}\n .ngxsp-vod-center:hover{transform:scale(1.05);background:#fff}\n .ngxsp-vod-side{position:relative;height:48px;min-width:48px;width:48px;border-radius:999px;border:0;background:rgb(0 0 0 / .45);color:#fff;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;backdrop-filter:blur(10px);transition:background-color .15s ease}\n .ngxsp-vod-side-wide{min-width:48px}\n .ngxsp-vod-side-wide .ngxsp-icon{width:24px;height:24px}\n .ngxsp-vod-side:hover{background:rgb(0 0 0 / .65)}\n .ngxsp-vod-bottom{position:absolute;left:0;right:0;bottom:0;padding:40px 14px 8px;background:linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .82));display:flex;flex-direction:column;align-items:stretch;gap:0;z-index:4;opacity:0;transition:opacity .2s ease}\n :host-context(.ngxsp-ui-visible) .ngxsp-vod-bottom{opacity:1}\n .ngxsp-vod-metaRow{display:flex;align-items:center;gap:4px;width:100%;min-height:40px}\n .ngxsp-vod-speedBadge{box-sizing:border-box;min-width:30px;padding:2px 5px;border:1.5px solid currentColor;border-radius:999px;font-size:11px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}\n .ngxsp-vod-time{padding:0 8px;color:rgb(255 255 255 / .92);font-variant-numeric:tabular-nums;font-size:12px;font-weight:500;white-space:nowrap}\n .ngxsp-vod-range{\n order:-1;\n min-width:100%;\n min-height:32px;\n --ngxsp-track-size:4px;\n --ngxsp-track-bg:rgb(255 255 255 / .22);\n --ngxsp-buffered-bg:rgb(255 255 255 / .34);\n --ngxsp-accent:var(--nsp-media-accent, #8b90ff);\n --ngxsp-thumb-size:13px;\n --ngxsp-thumb-bg:#fff;\n --ngxsp-marker-width:2px;\n --ngxsp-marker-height:8px;\n --ngxsp-marker-bg:rgb(0 0 0 / .55);\n --ngxsp-marker-active-bg:#fff;\n --ngxsp-marker-active-shadow:none;\n --ngxsp-preview-bg:rgb(13 14 17 / .92);\n --ngxsp-preview-border:rgb(255 255 255 / .12);\n --ngxsp-preview-muted:rgb(255 255 255 / .64);\n }\n .ngxsp-vod-range:hover{--ngxsp-track-size:6px}\n .ngxsp-vod-volumeGroup{display:inline-flex;align-items:center}\n .ngxsp-vod-volumeControl{\n --ngxsp-control-size:36px;\n --ngxsp-volume-compact-min:72px;\n --ngxsp-volume-compact-max:104px;\n --ngxsp-volume-button-bg:transparent;\n --ngxsp-volume-button-border:0;\n --ngxsp-volume-button-radius:6px;\n --ngxsp-volume-accent:#fff;\n --ngxsp-volume-track-bg:rgb(255 255 255 / .28);\n --ngxsp-volume-thumb-bg:#fff;\n --ngxsp-volume-thumb-size:12px;\n --ngxsp-volume-thumb-shadow:none;\n --ngxsp-focus-ring:0 0 0 2px var(--nsp-media-accent, #8b90ff);\n color:#fff;\n }\n .ngxsp-vod-label{font-size:12px;color:rgb(255 255 255 / .64)}\n .ngxsp-vod-chip{position:relative;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:6px;background:transparent;color:rgb(255 255 255 / .92);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease, color .15s ease}\n .ngxsp-vod-chip:hover:not(:disabled){background:rgb(255 255 255 / .12);color:#fff}\n .ngxsp-vod-chip:disabled{opacity:.4;cursor:default}\n .ngxsp-vod-chip.accent{color:var(--nsp-media-accent, #8b90ff)}\n .ngxsp-vod-chip-quiet{background:transparent}\n .ngxsp-vod-center:disabled,\n .ngxsp-vod-side:disabled{opacity:.38;cursor:not-allowed}\n .ngxsp-vod-center:focus-visible,\n .ngxsp-vod-side:focus-visible,\n .ngxsp-vod-chip:focus-visible{outline:2px solid var(--nsp-media-accent, #8b90ff);outline-offset:1px}\n .ngxsp-buffer{height:4px;border-radius:999px;background:rgb(255 255 255 / .12);overflow:hidden}\n .ngxsp-bufferFill{height:100%;border-radius:999px;background:var(--nsp-media-accent, #8b90ff)}\n @media (max-width: 860px){\n .ngxsp-vod-top{padding:12px 14px 28px}\n .ngxsp-vod-centerDock{gap:14px}\n .ngxsp-vod-center{height:58px;width:58px}\n .ngxsp-vod-side{height:42px;width:42px;min-width:42px}\n .ngxsp-vod-bottom{padding:36px 8px 6px}\n .ngxsp-vod-chip-speed,\n .ngxsp-vod-chip-tracks{display:none}\n }\n @media (max-width: 640px){\n .ngxsp-icon{width:18px;height:18px}\n .ngxsp-icon-lg{width:24px;height:24px}\n .ngxsp-vod-title{font-size:14px}\n .ngxsp-vod-status{display:none}\n .ngxsp-vod-time{font-size:11px;padding:0 4px}\n .ngxsp-vod-center{height:52px;width:52px}\n .ngxsp-vod-side{height:38px;width:38px;min-width:38px}\n .ngxsp-vod-metaRow{min-height:34px;gap:2px}\n .ngxsp-vod-chip{width:32px;height:32px;min-width:32px;min-height:32px}\n .ngxsp-vod-bottom .ngxsp-vod-volumeControl.ngxsp-vc-compact ::ng-deep .ngxsp-vc-shell{grid-template-columns:32px 64px}\n .ngxsp-vod-bottom .ngxsp-vod-volumeControl.ngxsp-vc-compact ::ng-deep .ngxsp-vc-range{opacity:1;visibility:visible;transform:none;pointer-events:auto}\n .ngxsp-vod-chip-playlist,\n .ngxsp-vod-chip-captions,\n .ngxsp-vod-chip-pip,\n .ngxsp-vod-top,\n .ngxsp-vod-side{display:none}\n }\n @media (prefers-reduced-motion: reduce){\n .ngxsp-vod-top,.ngxsp-vod-centerDock,.ngxsp-vod-bottom,.ngxsp-vod-center,.ngxsp-vod-side,.ngxsp-vod-chip{transition:none}\n }\n `,\n})\nexport class PlayerControlsVodComponent {\n readonly playing = input(false);\n readonly isAudioMode = input(false);\n readonly displayTitle = input('Player');\n readonly nowPlayingLabel = input('Now playing');\n readonly nowListeningLabel = input('Now listening');\n readonly fullscreenHintLabel = input('Double-click for fullscreen');\n readonly statusLabel = input('Ready');\n readonly keyboardHint = input('');\n readonly hasPlaylistControls = input(false);\n readonly canPrev = input(false);\n readonly canNext = input(false);\n readonly previousLabel = input('Previous item');\n readonly nextLabel = input('Next item');\n readonly playLabel = input('Play');\n readonly pauseLabel = input('Pause');\n readonly shuffleActive = input(false);\n readonly shuffleLabel = input('Shuffle: off');\n readonly repeatMode = input<RepeatMode>('off');\n readonly repeatLabel = input('Repeat: off');\n readonly captionsActive = input(false);\n readonly tracksLabel = input('Tracks');\n readonly captionsLabel = input('Load subtitles');\n readonly speedLabel = input('1x');\n /** \"1×\", \"1.5×\": the rate on the speed pill. */\n readonly speedBadge = computed(() => this.speedLabel().replace(/x$/i, '×'));\n readonly volumeLabel = input('Volume');\n readonly muteLabel = input('Mute');\n readonly unmuteLabel = input('Restore sound');\n readonly showAirPlay = input(false);\n readonly airPlayActive = input(false);\n readonly airPlayLabel = input('AirPlay');\n readonly showCast = input(false);\n readonly castActive = input(false);\n readonly castLabel = input('Play on device');\n readonly castHint = input('');\n readonly pipSupported = input(false);\n readonly pipActive = input(false);\n readonly pipLabel = input('PiP');\n readonly fullscreenLabel = input('Fullscreen');\n readonly volume = input(1);\n readonly currentTime = input(0);\n readonly duration = input(0);\n readonly buffered = input(0);\n readonly bufferPercent = input(0);\n readonly profile = input<SourceProfile>('vod');\n readonly timelineDurationSec = input(0);\n readonly timelineMarkers = input<ReadonlyArray<NgxspTimelineMarker>>([]);\n\n readonly playToggle = output<void>();\n readonly seekRelative = output<number>();\n readonly prev = output<void>();\n readonly next = output<void>();\n readonly toggleShuffle = output<void>();\n readonly cycleRepeat = output<void>();\n readonly openMenu = output<PlayerMenuKind>();\n readonly captions = output<void>();\n readonly airPlay = output<void>();\n readonly cast = output<void>();\n readonly pip = output<void>();\n readonly fullscreen = output<void>();\n readonly mute = output<void>();\n readonly scrub = output<number>();\n readonly volumeChange = output<number>();\n\n fmtTime(sec: number): string {\n const s = Math.max(0, Math.floor(sec || 0));\n const h = Math.floor(s / 3600);\n const m = Math.floor((s % 3600) / 60);\n const r = s % 60;\n if (h > 0) return `${h}:${String(m).padStart(2, '0')}:${String(r).padStart(2, '0')}`;\n return `${m}:${String(r).padStart(2, '0')}`;\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\nimport {\n NgxspPlayButton,\n NgxspTimeSlider,\n NgxspVolumeControl,\n NgxspLabeledControl,\n NgxspLiveBadge,\n type SourceProfile,\n} from '@ngxsplayer/ngx-smart-player-ui-core';\nimport type { PlayerMenuKind } from './player-controls.component';\n\n/**\n * Skin « édition » du lecteur : registre instrument (cf. docs/UX_VISION.md).\n * Titre display, coins francs, libellés en capitales, accent champagne, et le\n * traitement direct (NgxspLiveBadge + « Au direct ») en profil `live`.\n * Compose les primitives de @ngxsp/ui-core. Le menu est projeté via <ng-content>.\n */\n@Component({\n selector: 'ngxsp-player-controls-edition',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmartPlayerIconComponent, NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl, NgxspLabeledControl, NgxspLiveBadge],\n template: `\n <div class=\"ed-top\">\n @if (profile() === 'live') {\n <ngxsp-live-badge [behindSec]=\"behindSec()\" />\n }\n <div class=\"ed-titleWrap\">\n <div class=\"ed-title\">{{ displayTitle() }}</div>\n <div class=\"ed-meta\">{{ metaLabel() }}</div>\n </div>\n <span class=\"ed-spacer\"></span>\n <div class=\"ed-status\">{{ statusLabel() }}</div>\n </div>\n\n <div class=\"ed-bottom\">\n <div class=\"ed-scrubRow\">\n <span class=\"ed-time\">{{ fmtTime(currentTime()) }}</span>\n <ngxsp-time-slider\n style=\"flex:1\"\n [currentTime]=\"currentTime()\"\n [duration]=\"duration()\"\n [buffered]=\"buffered()\"\n [profile]=\"profile()\"\n (seek)=\"scrub.emit($event)\"\n />\n <span class=\"ed-time ed-time-dim\">{{ profile() === 'live' ? liveLabel() : fmtTime(duration()) }}</span>\n </div>\n\n <div class=\"ed-controlsRow\">\n @if (profile() === 'live') {\n <button type=\"button\" class=\"ed-live\" (click)=\"goLive.emit()\">\n <ngxsp-smart-icon class=\"ed-icon\" name=\"next\" /> Au direct\n </button>\n <ngxsp-play-button class=\"ed-transport\" [playing]=\"playing()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) { <ngxsp-smart-icon class=\"ed-icon\" name=\"pause\" /> } @else { <ngxsp-smart-icon class=\"ed-icon\" name=\"play\" /> }\n </ngxsp-play-button>\n } @else {\n <button type=\"button\" class=\"ed-transport\" (click)=\"seekRelative.emit(-10)\" aria-label=\"Reculer 10 secondes\"><ngxsp-smart-icon class=\"ed-icon\" name=\"seek-back\" /></button>\n <ngxsp-play-button class=\"ed-transport ed-transport-primary\" [playing]=\"playing()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) { <ngxsp-smart-icon class=\"ed-icon\" name=\"pause\" /> } @else { <ngxsp-smart-icon class=\"ed-icon\" name=\"play\" /> }\n </ngxsp-play-button>\n <button type=\"button\" class=\"ed-transport\" (click)=\"seekRelative.emit(10)\" aria-label=\"Avancer 10 secondes\"><ngxsp-smart-icon class=\"ed-icon\" name=\"seek-forward\" /></button>\n }\n\n <span class=\"ed-spacer\"></span>\n\n <ngxsp-labeled-control label=\"Sous-titres\" [pressed]=\"captionsActive()\" (activate)=\"captions.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"captionsActive() ? 'captions' : 'captions-off'\" /></ngxsp-labeled-control>\n <ngxsp-labeled-control label=\"Pistes\" (activate)=\"openMenu.emit('tracks')\"><ngxsp-smart-icon class=\"ed-icon\" name=\"tracks\" /></ngxsp-labeled-control>\n <ngxsp-labeled-control [label]=\"speedLabel()\" (activate)=\"openMenu.emit('speed')\"><ngxsp-smart-icon class=\"ed-icon\" name=\"speed\" /></ngxsp-labeled-control>\n @if (showAirPlay()) {\n <ngxsp-labeled-control [label]=\"airPlayLabel()\" [active]=\"airPlayActive()\" (activate)=\"airPlay.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"airPlayActive() ? 'airplay-active' : 'airplay'\" /></ngxsp-labeled-control>\n }\n @if (showCast()) {\n <ngxsp-labeled-control label=\"Diffuser\" [active]=\"castActive()\" (activate)=\"cast.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"castActive() ? 'cast-active' : 'cast'\" /></ngxsp-labeled-control>\n }\n @if (pipSupported()) {\n <ngxsp-labeled-control label=\"PiP\" [active]=\"pipActive()\" (activate)=\"pip.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"pipActive() ? 'pip-active' : 'pip'\" /></ngxsp-labeled-control>\n }\n <ngxsp-volume-control\n class=\"ed-volumeControl\"\n [compact]=\"true\"\n [volume]=\"volume()\"\n [volumeLabel]=\"volumeLabel()\"\n [muteLabel]=\"muteLabel()\"\n [unmuteLabel]=\"unmuteLabel()\"\n (muteToggle)=\"mute.emit()\"\n (volumeChange)=\"volumeChange.emit($event)\"\n />\n </div>\n\n <ng-content />\n </div>\n `,\n styles: `\n :host { display: contents; }\n .ed-icon { width: 20px; height: 20px; display: block; }\n .ed-top {\n position: absolute; left: 0; right: 0; top: 0; z-index: 3;\n display: flex; align-items: center; gap: 14px;\n padding: 18px 22px 14px;\n background: color-mix(in srgb, var(--nsp-bg, #14161b) 55%, transparent);\n border-bottom: 1px solid var(--nsp-line, rgb(255 255 255 / 0.1));\n opacity: 0; transition: opacity var(--nsp-dur, .18s) var(--nsp-ease, ease);\n }\n :host-context(.ngxsp-ui-visible) .ed-top { opacity: 1; }\n .ed-titleWrap { display: flex; flex-direction: column; gap: 6px; }\n .ed-title { font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1; color: var(--nsp-text, #f4f2ec); }\n .ed-meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--nsp-text-2, #b4afa6); }\n .ed-status { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nsp-text-3, #7c776f); }\n .ed-spacer { flex: 1; }\n .ed-bottom {\n position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;\n display: flex; flex-direction: column; gap: 14px;\n padding: 16px 22px 18px;\n background: color-mix(in srgb, var(--nsp-bg, #14161b) 82%, transparent);\n border-top: 1px solid var(--nsp-line-strong, rgb(255 255 255 / 0.18));\n opacity: 0; transform: translateY(8px);\n transition: opacity var(--nsp-dur, .18s) var(--nsp-ease, ease), transform var(--nsp-dur, .18s) var(--nsp-ease, ease);\n }\n :host-context(.ngxsp-ui-visible) .ed-bottom { opacity: 1; transform: translateY(0); }\n .ed-scrubRow { display: flex; align-items: center; gap: 14px; }\n .ed-time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--nsp-text, #f4f2ec); }\n .ed-time-dim { color: var(--nsp-text-2, #b4afa6); }\n .ed-controlsRow { display: flex; align-items: center; gap: 6px; }\n .ed-transport {\n all: unset; box-sizing: border-box;\n width: 46px; height: 46px;\n display: inline-flex; align-items: center; justify-content: center;\n border: 1px solid var(--nsp-line-strong, rgb(255 255 255 / 0.18));\n border-radius: var(--nsp-radius-sharp, 3px);\n color: var(--nsp-text, #f4f2ec); cursor: pointer;\n }\n .ed-transport-primary { background: var(--nsp-accent, #e3b26a); color: var(--nsp-on-accent, #14161b); border: none; }\n .ed-transport:focus-visible { outline: none; box-shadow: var(--nsp-focus-ring, 0 0 0 3px rgb(227 178 106 / .55)); }\n .ed-live {\n all: unset; box-sizing: border-box; height: 46px; padding: 0 16px;\n display: inline-flex; align-items: center; gap: 8px;\n background: var(--nsp-live, #e5402a); color: #fff; cursor: pointer;\n border-radius: var(--nsp-radius-sharp, 3px);\n font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;\n }\n .ed-live:focus-visible { outline: none; box-shadow: var(--nsp-focus-ring, 0 0 0 3px rgb(227 178 106 / .55)); }\n .ed-volumeControl {\n --ngxsp-control-size: 46px;\n --ngxsp-volume-button-radius: var(--nsp-radius-sharp, 3px);\n --ngxsp-volume-button-bg: transparent;\n --ngxsp-volume-button-border: 1px solid var(--nsp-line-strong, rgb(255 255 255 / 0.18));\n --ngxsp-volume-accent: var(--nsp-accent, #e3b26a);\n --ngxsp-volume-compact-min: 96px;\n --ngxsp-volume-compact-max: 150px;\n --ngxsp-volume-color: var(--nsp-text, #f4f2ec);\n --ngxsp-focus-ring: var(--nsp-focus-ring, 0 0 0 3px rgb(227 178 106 / .55));\n }\n `,\n})\nexport class PlayerControlsEditionComponent {\n readonly profile = input<SourceProfile>('vod');\n readonly playing = input(false);\n readonly displayTitle = input('Player');\n readonly metaLabel = input('');\n readonly statusLabel = input('');\n readonly behindSec = input(0);\n readonly liveLabel = input('Direct');\n readonly captionsActive = input(false);\n readonly speedLabel = input('1x');\n readonly showAirPlay = input(false);\n readonly airPlayActive = input(false);\n readonly airPlayLabel = input('AirPlay');\n readonly showCast = input(false);\n readonly castActive = input(false);\n readonly pipSupported = input(false);\n readonly pipActive = input(false);\n readonly volume = input(1);\n readonly volumeLabel = input('Volume');\n readonly muteLabel = input('Mute');\n readonly unmuteLabel = input('Restore sound');\n readonly currentTime = input(0);\n readonly duration = input(0);\n readonly buffered = input(0);\n\n readonly playToggle = output<void>();\n readonly seekRelative = output<number>();\n readonly openMenu = output<PlayerMenuKind>();\n readonly captions = output<void>();\n readonly airPlay = output<void>();\n readonly cast = output<void>();\n readonly pip = output<void>();\n readonly mute = output<void>();\n readonly scrub = output<number>();\n readonly volumeChange = output<number>();\n readonly goLive = output<void>();\n\n fmtTime(sec: number): string {\n const s = Math.max(0, Math.floor(sec || 0));\n const h = Math.floor(s / 3600);\n const m = Math.floor((s % 3600) / 60);\n const r = s % 60;\n if (h > 0) return `${h}:${String(m).padStart(2, '0')}:${String(r).padStart(2, '0')}`;\n return `${m}:${String(r).padStart(2, '0')}`;\n }\n}\n","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Subscription } from 'rxjs';\n\nimport { MediaTrack, PlayerConfig, PlayerState, PlayerPorts, PlayerError, createSsaiManifestRewritePlugin, decodeSubtitleBytes, describeSubtitleFile, subtitleTextToVtt, type EngineFactory } from '@ngxsp/core';\nimport { PlayerFacade } from '@ngxsp/core';\nimport { PlayerPlugin } from '@ngxsp/core';\nimport { type NgxspTimelineMarker, type SourceProfile } from '@ngxsplayer/ngx-smart-player-ui-core';\nimport { DEFAULT_PLAYER_MENU_LABELS, PlayerMenuComponent, type PlayerMenuLabels } from './player-menu.component';\nimport { PlayerOverlaysComponent } from './player-overlays.component';\nimport { PlayerControlsComponent } from './player-controls.component';\nimport { PlayerControlsVodComponent } from './player-controls-vod.component';\nimport { PlayerControlsEditionComponent } from './player-controls-edition.component';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\n\n/** A playback position and the media it was measured on. */\nexport interface SmartPlayerProgress {\n currentTime: number;\n duration: number;\n contentId?: string;\n sourceUrl?: string;\n}\n\n@Component({\n selector: 'ngx-smart-player',\n standalone: true,\n imports: [CommonModule, PlayerMenuComponent, PlayerOverlaysComponent, PlayerControlsComponent, PlayerControlsVodComponent, PlayerControlsEditionComponent, SmartPlayerIconComponent],\n template: `\n <div class=\"ngxsp-root\" [class.ngxsp-skin-vod]=\"uiSkin==='vod'\" [class.ngxsp-ui-visible]=\"uiVisible\" [class.ngxsp-mode-audio]=\"isAudioMode\" [class.ngxsp-mode-video]=\"!isAudioMode\" [attr.data-kind]=\"state?.kind\">\n <!-- Surface de présentation : interactions pointeur non essentielles, toutes\n dupliquées au clavier par @HostListener('document:keydown') (Espace/flèches/F/M/C)\n et par les contrôles focusables. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ngxsp-video\" (dblclick)=\"onPrimarySurfaceDoubleClick()\" (mousemove)=\"onInteraction()\" (mouseenter)=\"onInteraction()\" (mouseleave)=\"onPointerLeave()\" (focusin)=\"onInteraction()\" (touchstart)=\"onInteraction(true)\" (click)=\"onRootClick($event)\">\n <video #video playsinline x-webkit-airplay=\"allow\" (timeupdate)=\"noop()\" (loadedmetadata)=\"onLoadedMetadata()\" (ended)=\"onEnded()\"></video>\n <!-- Subtitles loaded from a file, drawn here at the bottom of the picture, above the controls when they show. -->\n <div #captionsLayer class=\"ngxsp-captions\" aria-hidden=\"true\"></div>\n @if (!isAudioMode) {\n <input #subtitleFileInput class=\"ngxsp-subtitleInput\" type=\"file\" accept=\".srt,.vtt,text/vtt,application/x-subrip\" hidden (change)=\"onSubtitleFileChosen($event)\" />\n }\n@if (isAudioMode) {\n<div class=\"ngxsp-audio-stage\" aria-hidden=\"true\">\n <div class=\"ngxsp-audio-disc\"></div>\n <div class=\"ngxsp-audio-copy\">\n <div class=\"ngxsp-audio-eyebrow\">Now Listening</div>\n <div class=\"ngxsp-audio-title\">{{displayTitle}}</div>\n <div class=\"ngxsp-audio-subtitle\">{{displaySubtitle}}</div>\n </div>\n <div class=\"ngxsp-audio-bars\">\n <span></span><span></span><span></span><span></span><span></span>\n </div>\n</div>\n}\n<ngxsp-player-overlays\n [error]=\"currentError\"\n [debug]=\"debug\"\n [debugJson]=\"debugJson\"\n (retry)=\"reload()\"\n (requestPlay)=\"tryPlay()\"\n (copyJson)=\"copyDebug()\"\n (downloadJson)=\"downloadDebug()\"\n/>\n@if (surfaceGesture) {\n<div class=\"ngxsp-gesturePulse\" aria-hidden=\"true\">\n @if (surfaceGesture === 'pause') {\n <ngxsp-smart-icon name=\"pause\" />\n } @else {\n <ngxsp-smart-icon name=\"play\" />\n }\n</div>\n}\n\n @if (uiSkin==='vod') {\n <ngxsp-player-controls-vod\n [playing]=\"state?.kind==='playing'\"\n [isAudioMode]=\"isAudioMode\"\n [displayTitle]=\"displayTitle\"\n [nowPlayingLabel]=\"nowPlayingLabel\"\n [nowListeningLabel]=\"nowListeningLabel\"\n [fullscreenHintLabel]=\"fullscreenHintLabel\"\n [statusLabel]=\"statusLabel()\"\n [keyboardHint]=\"keyboardHintLabel()\"\n [hasPlaylistControls]=\"hasPlaylistControls\"\n [canPrev]=\"canPrev\"\n [canNext]=\"canNext\"\n [previousLabel]=\"previousLabel\"\n [nextLabel]=\"nextLabel\"\n [playLabel]=\"playLabel\"\n [pauseLabel]=\"pauseLabel\"\n [shuffleActive]=\"shuffleActive\"\n [shuffleLabel]=\"shuffleLabel\"\n [repeatMode]=\"repeatMode\"\n [repeatLabel]=\"repeatLabel\"\n [captionsActive]=\"selectedTextTrackId !== null\"\n [tracksLabel]=\"tracksButtonLabel()\"\n [captionsLabel]=\"captionsLabel()\"\n [speedLabel]=\"playbackRateLabel()\"\n [volumeLabel]=\"outputVolumeLabel || volumeLabel()\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n [showAirPlay]=\"showAirPlayButton()\"\n [airPlayActive]=\"isAirPlayActive()\"\n [airPlayLabel]=\"airPlayLabel()\"\n (airPlay)=\"openAirPlayPicker()\"\n [showCast]=\"showCastButton()\"\n [castActive]=\"isCastActive()\"\n [castLabel]=\"castLabel()\"\n [castHint]=\"castHintLabel()\"\n [pipSupported]=\"isPiPSupported()\"\n [pipActive]=\"isPiPActive()\"\n [pipLabel]=\"pipLabel()\"\n [fullscreenLabel]=\"fullscreenLabel\"\n [volume]=\"volume\"\n [currentTime]=\"currentTime\"\n [duration]=\"duration\"\n [buffered]=\"bufferAheadSec\"\n [bufferPercent]=\"bufferPercent()\"\n [profile]=\"sourceProfile\"\n [timelineDurationSec]=\"timelineDurationSec ?? 0\"\n [timelineMarkers]=\"timelineMarkers\"\n (playToggle)=\"requestPlaybackToggle()\"\n (seekRelative)=\"seekRel($event)\"\n (prev)=\"emitPrev()\"\n (next)=\"emitNext()\"\n (toggleShuffle)=\"toggleShuffle.emit()\"\n (cycleRepeat)=\"cycleRepeat.emit()\"\n (openMenu)=\"toggleMenu($event)\"\n (captions)=\"onCaptionsClick()\"\n (cast)=\"onCastClick()\"\n (pip)=\"togglePiP()\"\n (fullscreen)=\"toggleFullscreen()\"\n (mute)=\"toggleMute()\"\n (scrub)=\"onScrub($event)\"\n (volumeChange)=\"onVolume($event)\"\n >\n <div ngxsp-player-inline-controls class=\"ngxsp-inline-projection\">\n <ng-content select=\"[ngxsp-player-inline-controls]\" />\n </div>\n <ngxsp-player-menu\n [openMenu]=\"openMenu\"\n [isAudioMode]=\"isAudioMode\"\n [textTracks]=\"textTracks\"\n [audioTracks]=\"audioTracks\"\n [videoTracks]=\"videoTracks\"\n [selectedTextTrackId]=\"selectedTextTrackId\"\n [selectedAudioTrackId]=\"selectedAudioTrackId\"\n [selectedVideoTrackId]=\"selectedVideoTrackId\"\n [playbackRates]=\"playbackRates\"\n [playbackRate]=\"playbackRate\"\n [labels]=\"playerMenuLabels\"\n (loadSubtitles)=\"openSubtitlePicker()\"\n (selectText)=\"selectTextTrack($event)\"\n (selectAudio)=\"selectAudioTrack($event)\"\n (selectVideo)=\"selectVideoTrack($event)\"\n (selectRate)=\"setPlaybackRate($event)\"\n />\n </ngxsp-player-controls-vod>\n } @else if (uiSkin==='edition') {\n <ngxsp-player-controls-edition\n [profile]=\"sourceProfile\"\n [playing]=\"state?.kind==='playing'\"\n [displayTitle]=\"displayTitle\"\n [metaLabel]=\"editionMeta\"\n [statusLabel]=\"statusLabel()\"\n [captionsActive]=\"selectedTextTrackId !== null\"\n [speedLabel]=\"playbackRateLabel()\"\n [showAirPlay]=\"showAirPlayButton()\"\n [airPlayActive]=\"isAirPlayActive()\"\n [airPlayLabel]=\"airPlayLabel()\"\n (airPlay)=\"openAirPlayPicker()\"\n [showCast]=\"showCastButton()\"\n [castActive]=\"isCastActive()\"\n [pipSupported]=\"isPiPSupported()\"\n [pipActive]=\"isPiPActive()\"\n [volume]=\"volume\"\n [volumeLabel]=\"outputVolumeLabel || volumeLabel()\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n [currentTime]=\"currentTime\"\n [duration]=\"duration\"\n [buffered]=\"bufferAheadSec\"\n (playToggle)=\"requestPlaybackToggle()\"\n (seekRelative)=\"seekRel($event)\"\n (openMenu)=\"toggleMenu($event)\"\n (captions)=\"onCaptionsClick()\"\n (cast)=\"onCastClick()\"\n (pip)=\"togglePiP()\"\n (mute)=\"toggleMute()\"\n (scrub)=\"onScrub($event)\"\n (volumeChange)=\"onVolume($event)\"\n (goLive)=\"reload()\"\n >\n <ngxsp-player-menu\n [openMenu]=\"openMenu\"\n [isAudioMode]=\"isAudioMode\"\n [textTracks]=\"textTracks\"\n [audioTracks]=\"audioTracks\"\n [videoTracks]=\"videoTracks\"\n [selectedTextTrackId]=\"selectedTextTrackId\"\n [selectedAudioTrackId]=\"selectedAudioTrackId\"\n [selectedVideoTrackId]=\"selectedVideoTrackId\"\n [playbackRates]=\"playbackRates\"\n [playbackRate]=\"playbackRate\"\n [labels]=\"playerMenuLabels\"\n (loadSubtitles)=\"openSubtitlePicker()\"\n (selectText)=\"selectTextTrack($event)\"\n (selectAudio)=\"selectAudioTrack($event)\"\n (selectVideo)=\"selectVideoTrack($event)\"\n (selectRate)=\"setPlaybackRate($event)\"\n />\n </ngxsp-player-controls-edition>\n } @else {\n <ngxsp-player-controls\n [playing]=\"state?.kind==='playing'\"\n [isAudioMode]=\"isAudioMode\"\n [hasPlaylistControls]=\"hasPlaylistControls\"\n [canPrev]=\"canPrev\"\n [canNext]=\"canNext\"\n [shuffleActive]=\"shuffleActive\"\n [shuffleLabel]=\"shuffleLabel\"\n [repeatMode]=\"repeatMode\"\n [repeatLabel]=\"repeatLabel\"\n [captionsActive]=\"selectedTextTrackId !== null\"\n [tracksLabel]=\"tracksButtonLabel()\"\n [captionsLabel]=\"captionsLabel()\"\n [speedLabel]=\"playbackRateLabel()\"\n [volumeLabel]=\"volumeLabel()\"\n [showCast]=\"showCastButton()\"\n [castActive]=\"isCastActive()\"\n [castLabel]=\"castLabel()\"\n [castHint]=\"castHintLabel()\"\n [pipSupported]=\"isPiPSupported()\"\n [pipActive]=\"isPiPActive()\"\n [pipLabel]=\"pipLabel()\"\n [volume]=\"volume\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n [currentTime]=\"currentTime\"\n [duration]=\"duration\"\n [buffered]=\"bufferAheadSec\"\n [profile]=\"sourceProfile\"\n (playToggle)=\"requestPlaybackToggle()\"\n (seekRelative)=\"seekRel($event)\"\n (prev)=\"emitPrev()\"\n (next)=\"emitNext()\"\n (toggleShuffle)=\"toggleShuffle.emit()\"\n (cycleRepeat)=\"cycleRepeat.emit()\"\n (openMenu)=\"toggleMenu($event)\"\n (captions)=\"subtitles.emit()\"\n (cast)=\"onCastClick()\"\n (pip)=\"togglePiP()\"\n (mute)=\"toggleMute()\"\n (scrub)=\"onScrub($event)\"\n (volumeChange)=\"onVolume($event)\"\n />\n }\n\n </div>\n </div>\n `,\n styles: [`\n .ngxsp-root{\n /* Pilotable par le thème @ngxsp/ui-theme (--nsp-*) ; valeurs actuelles en fallback. */\n --ngxsp-bg:#000;\n --ngxsp-bg-elev:var(--nsp-surface-1, #17181d);\n --ngxsp-bg-soft:var(--nsp-surface-2, #1e1f25);\n --ngxsp-border:var(--nsp-line, rgb(255 255 255 / .07));\n --ngxsp-border-strong:var(--nsp-line-strong, rgb(255 255 255 / .13));\n --ngxsp-text:var(--nsp-text, #ededf0);\n --ngxsp-text-dim:var(--nsp-text-2, #a3a5ae);\n --ngxsp-accent:var(--nsp-media-accent, #8b90ff);\n --ngxsp-accent-soft:rgb(139 144 255 / .14);\n --ngxsp-focus-ring:0 0 0 2px var(--nsp-media-accent, #8b90ff);\n position:relative;\n width:100%;\n height:100%;\n background:#000;\n color:var(--ngxsp-text);\n font-family:var(--nsp-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, sans-serif);\n }\n .ngxsp-video{position:relative;width:100%;height:100%;isolation:isolate;container-type:inline-size}\n .ngxsp-captions{position:absolute;left:6%;right:6%;bottom:5%;z-index:3;display:flex;flex-direction:column;align-items:center;gap:.15em;pointer-events:none;text-align:center;font-size:clamp(13px, 2.6cqw, 34px);line-height:1.3;transition:bottom .2s ease}\n .ngxsp-captions:empty{display:none}\n .ngxsp-ui-visible .ngxsp-captions{bottom:calc(2% + var(--ngxsp-captions-lift, 96px))}\n /* The cue lines are made at run time: they carry none of this component's style attributes. */\n .ngxsp-captions ::ng-deep .ngxsp-cue{max-width:100%;padding:.08em .45em;border-radius:.2em;background:rgb(0 0 0 / .74);color:#fff;white-space:pre-line;text-shadow:0 1px 2px rgb(0 0 0 / .5)}\n .ngxsp-mode-audio .ngxsp-captions{display:none}\n .ngxsp-video video{width:100%;height:100%;display:block;background:#000;object-fit:contain;}\n .ngxsp-mode-audio .ngxsp-video video{opacity:.02;filter:blur(10px) saturate(120%);transform:scale(1.08)}\n .ngxsp-audio-stage{\n position:absolute;\n inset:0;\n z-index:0;\n display:flex;\n flex-direction:column;\n align-items:center;\n justify-content:center;\n gap:18px;\n padding:40px 24px 140px;\n background:\n radial-gradient(circle at 50% 24%, rgba(96,165,250,.22), transparent 30%),\n radial-gradient(circle at 22% 78%, rgba(45,212,191,.12), transparent 28%),\n linear-gradient(180deg, rgba(4,12,24,.92), rgba(5,10,18,.82));\n pointer-events:none;\n text-align:center;\n }\n .ngxsp-audio-disc{\n width:min(32vw, 220px);\n aspect-ratio:1;\n border-radius:50%;\n background:\n radial-gradient(circle at center, rgba(248,250,252,.9) 0 10%, rgba(15,23,42,.92) 11% 20%, rgba(100,116,139,.85) 21% 22%, rgba(15,23,42,.98) 23% 100%);\n box-shadow:0 24px 80px rgba(15,23,42,.5), inset 0 0 0 10px rgba(255,255,255,.05);\n animation:ngxspSpin 18s linear infinite;\n }\n .ngxsp-audio-copy{display:flex;flex-direction:column;gap:6px;max-width:min(76ch, 100%)}\n .ngxsp-audio-eyebrow{\n font-size:11px;\n letter-spacing:.22em;\n text-transform:uppercase;\n color:rgba(191,219,254,.8);\n font-weight:700;\n }\n .ngxsp-audio-title{\n font-size:36px;\n font-weight:800;\n letter-spacing:0;\n color:#f8fbff;\n text-shadow:0 18px 60px rgba(15,23,42,.6);\n }\n .ngxsp-audio-subtitle{\n font-size:16px;\n color:rgba(226,232,240,.78);\n }\n .ngxsp-audio-bars{display:flex;align-items:flex-end;gap:8px;height:40px}\n .ngxsp-audio-bars span{\n width:6px;\n height:16px;\n border-radius:999px;\n background:linear-gradient(180deg, rgba(147,197,253,.95), rgba(34,211,238,.55));\n animation:ngxspBars 1.15s ease-in-out infinite;\n box-shadow:0 0 18px rgba(56,189,248,.22);\n }\n .ngxsp-audio-bars span:nth-child(2){animation-delay:.12s}\n .ngxsp-audio-bars span:nth-child(3){animation-delay:.24s}\n .ngxsp-audio-bars span:nth-child(4){animation-delay:.36s}\n .ngxsp-audio-bars span:nth-child(5){animation-delay:.48s}\n /* VOD skin (video surface only — controls live in ngxsp-player-controls*) */\n .ngxsp-skin-vod .ngxsp-video{position:relative}\n .ngxsp-skin-vod .ngxsp-video::before{content:none}\n .ngxsp-skin-vod .ngxsp-video::after{content:none}\n .ngxsp-mode-audio.ngxsp-skin-vod .ngxsp-video::before{background:linear-gradient(180deg, rgba(3,8,18,.35), rgba(3,8,18,.12)); opacity:1}\n .ngxsp-inline-projection{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;width:max-content}\n .ngxsp-inline-projection:empty{display:none}\n .ngxsp-gesturePulse{position:absolute;inset:0;z-index:5;display:grid;place-items:center;pointer-events:none;color:#f8fbff;animation:ngxspGesturePulse .52s ease both}\n .ngxsp-gesturePulse ngxsp-smart-icon{width:64px;height:64px;padding:18px;box-sizing:border-box;display:grid;place-items:center;border-radius:50%;background:rgb(0 0 0 / .5);backdrop-filter:blur(10px)}\n\n @media (max-width: 640px){\n .ngxsp-audio-stage{padding:28px 16px 128px;gap:14px}\n .ngxsp-audio-disc{width:min(48vw, 168px)}\n .ngxsp-audio-title{font-size:28px}\n .ngxsp-audio-subtitle{font-size:14px}\n .ngxsp-skin-vod .ngxsp-inline-projection{display:none}\n .ngxsp-gesturePulse ngxsp-smart-icon{width:64px;height:64px}\n }\n\n @keyframes ngxspSpin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n\n @keyframes ngxspBars {\n 0%, 100% { height: 14px; opacity: .45; }\n 50% { height: 40px; opacity: 1; }\n }\n\n @keyframes ngxspGesturePulse {\n 0% { opacity: 0; transform: scale(.82); }\n 24% { opacity: 1; transform: scale(1); }\n 100% { opacity: 0; transform: scale(1.16); }\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SmartPlayerComponent implements OnChanges, OnInit, OnDestroy {\n @Input({ required: true }) config!: PlayerConfig;\n @Input() plugins: PlayerPlugin[] = [];\n @Input() ports?: Partial<PlayerPorts>;\n @Input() engines?: EngineFactory[];\n @Input() debug = false;\n /** Optional start time (seconds) used for \"resume playback\". */\n @Input() startTimeSec: number | null = null;\n /** Starts the first source as soon as it is loaded. WebViews and desktop shells do not block it like browsers do. */\n @Input() autoplayOnInit = true;\n /** Increment when the user picks something to play: a new source starts, the current one resumes. */\n @Input() playRequest = 0;\n @Input() canPrev = false;\n @Input() canNext = false;\n @Input() previousLabel = 'Previous item';\n @Input() nextLabel = 'Next item';\n @Input() playLabel = 'Play';\n @Input() pauseLabel = 'Pause';\n @Input() shuffleActive = false;\n @Input() shuffleLabel = 'Shuffle: off';\n @Input() repeatMode: 'off' | 'one' | 'all' = 'off';\n @Input() repeatLabel = 'Repeat: off';\n @Input() hasPlaylistControls = false;\n @Input() mediaMode: 'video' | 'audio' = 'video';\n @Input() castEnabled = false;\n /** The media plays on a device the app drives (castEnabled): the devices button shows it. */\n @Input() castConnected = false;\n private airPlayAvailable = false;\n private airPlayActive = false;\n @Input() documentShortcuts = true;\n @Input() nowPlayingLabel = 'Now playing';\n @Input() nowListeningLabel = 'Now listening';\n @Input() fullscreenHintLabel = 'Double-click for fullscreen';\n @Input() fullscreenLabel = 'Fullscreen';\n @Input() readyStatusLabel = 'Ready';\n @Input() playingStatusLabel = 'Playing';\n @Input() pausedStatusLabel = 'Paused';\n @Input() bufferingStatusLabel = 'Buffering';\n @Input() loadingStatusLabel = 'Loading';\n @Input() endedStatusLabel = 'Ended';\n @Input() errorStatusLabel = 'Error';\n @Input() outputVolume: number | null = null;\n @Input() outputVolumeLabel = '';\n @Input() outputMuteLabel = 'Mute';\n @Input() outputUnmuteLabel = 'Restore sound';\n @Input() timelineDurationSec: number | null = null;\n @Input() timelineMarkers: ReadonlyArray<NgxspTimelineMarker> = [];\n\n // Noms volontairement alignés sur les événements média natifs (API publique).\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() ended = new EventEmitter<void>();\n @Output() videoSize = new EventEmitter<{ width: number; height: number }>();\n /**\n * Emits playback position updates, tagged with the media they belong to: a host switching tracks can still receive\n * a position of the previous one, and must not file it under the new one.\n */\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() progress = new EventEmitter<SmartPlayerProgress>();\n @Output() prev = new EventEmitter<void>();\n @Output() next = new EventEmitter<void>();\n @Output() toggleShuffle = new EventEmitter<void>();\n @Output() cycleRepeat = new EventEmitter<void>();\n /** CC pressed; the vod and edition skins also open their subtitles menu. */\n @Output() subtitles = new EventEmitter<void>();\n /** A subtitle file was read (ok) or could not be (error). */\n @Output() subtitlesLoaded = new EventEmitter<{ label: string; ok: boolean; error?: string }>();\n /** The words of the player's menus and of its subtitles button. */\n @Input() menuLabels: Partial<PlayerMenuLabels> = {};\n @Output() cast = new EventEmitter<void>();\n @Output() stateChange = new EventEmitter<PlayerState>();\n @Output() playbackToggle = new EventEmitter<'play' | 'pause'>();\n @Output() outputVolumeChange = new EventEmitter<number>();\n\n @ViewChild('video', { static: true }) videoEl!: ElementRef<HTMLVideoElement>;\n @ViewChild('captionsLayer', { static: true }) captionsLayer!: ElementRef<HTMLElement>;\n /** Absent in audio mode, which has no subtitles. */\n @ViewChild('subtitleFileInput') subtitleFileInput?: ElementRef<HTMLInputElement>;\n\n state: PlayerState | null = null;\n\n duration = 0;\n currentTime = 0;\n volume = 1;\n private lastVolumeBeforeMute = 1;\n playbackRate = 1;\n bufferAheadSec = 0;\n tracks: MediaTrack[] = [];\n openMenu: 'tracks' | 'speed' | 'captions' | null = null;\n controlsVisible = true;\n surfaceGesture: 'play' | 'pause' | null = null;\n castState: 'disconnected' | 'connecting' | 'connected' = 'disconnected';\n\n readonly playbackRates = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];\n\n private facade = new PlayerFacade();\n private readonly cdr = inject(ChangeDetectorRef);\n private sub = new Subscription();\n private hideControlsTimer: ReturnType<typeof setTimeout> | null = null;\n private surfaceClickTimer: ReturnType<typeof setTimeout> | null = null;\n private gestureTimer: ReturnType<typeof setTimeout> | null = null;\n private remotePlaybackCleanup: (() => void) | null = null;\n private initialized = false;\n private loadedSourceSignature = '';\n private loadSequence = 0;\n private loading = false;\n private pendingPlay = false;\n /** Whether the load in progress was asked to start playback. */\n private loadingAutoplay = false;\n /** Load whose end was already reported; reset when playback starts again (repeat one). */\n private endedLoadSequence = -1;\n private pendingSeekSec: number | null = null;\n\n get uiSkin(): 'classic' | 'vod' | 'edition' {\n const skin = this.config?.ui?.skin;\n return skin === 'vod' || skin === 'edition' ? skin : 'classic';\n }\n\n /** Libellé méta du skin édition (genre · format). */\n get editionMeta(): string {\n return this.isAudioMode ? 'Audio' : 'Vidéo';\n }\n\n get uiVisible(): boolean {\n const kind = this.state?.kind;\n return this.controlsVisible || this.openMenu !== null || kind === 'paused' || kind === 'loading' || kind === 'buffering' || kind === 'error';\n }\n\n get displayTitle(): string {\n const ui = this.config?.ui;\n const src = this.config?.source;\n return ui?.title ?? ui?.displayTitle ?? src?.title ?? src?.contentId ?? 'Player';\n }\n\n get displaySubtitle(): string {\n const ui = this.config?.ui;\n const src = this.config?.source;\n return (\n ui?.subtitle ??\n ui?.description ??\n src?.subtitle ??\n src?.artist ??\n src?.album ??\n this.audioTracks.find((track) => track.active)?.label ??\n 'Audio playback'\n );\n }\n\n get isAudioMode(): boolean {\n return this.mediaMode === 'audio';\n }\n\n /** Profil de source transmis aux primitives UI (cf. @ngxsp/ui-core). */\n get sourceProfile(): SourceProfile {\n if (this.config?.source?.live) return 'live';\n return this.isAudioMode ? 'audio' : 'vod';\n }\n\n get audioTracks(): MediaTrack[] {\n return this.tracks.filter((track) => track.kind === 'audio');\n }\n\n get textTracks(): MediaTrack[] {\n return this.tracks.filter((track) => track.kind === 'text');\n }\n\n get videoTracks(): MediaTrack[] {\n return this.tracks.filter((track) => track.kind === 'video');\n }\n\n get selectedAudioTrackId(): string | null {\n return this.audioTracks.find((track) => track.active)?.id ?? null;\n }\n\n get selectedTextTrackId(): string | null {\n return this.textTracks.find((track) => track.active)?.id ?? null;\n }\n\n get selectedVideoTrackId(): string | null {\n return this.videoTracks.find((track) => track.active)?.id ?? null;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['outputVolume']) this.syncOutputVolumeInput();\n if (!this.initialized) return;\n const playRequested = !!changes['playRequest'] && !changes['playRequest'].firstChange;\n\n if (changes['engines'] && !changes['engines'].firstChange) {\n this.facade.setEngines(this.engines);\n // Playback moves to a device (or comes back): the media is loaded again from the same position. It keeps playing\n // when it moves to a device, and waits on this one when it comes back, unless the host asks for playback.\n // A different media arriving in the same change is not a move: it loads below from its own start, or it would\n // inherit the position of the one it replaces.\n if (this.sourceSignature(this.config) === this.loadedSourceSignature) {\n const kind = this.state?.kind;\n const wasPlaying = kind === 'playing' || kind === 'buffering' || (this.loading && (this.loadingAutoplay || this.pendingPlay));\n // Hosts keep their own engines (adaptive streaming) in the list: only the remote engine means a device.\n const toDevice = (this.engines ?? []).some((engine) => engine.id === 'remote');\n if (this.pendingSeekSec === null && this.currentTime > 0.5) this.pendingSeekSec = this.currentTime;\n void this.loadConfig(playRequested || (toDevice && wasPlaying));\n return;\n }\n }\n\n if (changes['config'] && this.sourceSignature(this.config) !== this.loadedSourceSignature) {\n // Keeps playing when the source is swapped while playing or stalled, right after the previous media ended (queue\n // chaining) or while a load meant to start is still in progress (a local copy replacing the network source),\n // and starts when the host asked for playback; nothing starts on its own otherwise.\n const kind = this.state?.kind;\n const autoplay = playRequested || kind === 'playing' || kind === 'buffering' || kind === 'ended'\n || (this.loading && (this.loadingAutoplay || this.pendingPlay));\n // A position still waiting for the previous media belongs to it: a session restored on a\n // paused track must not send the next file there (past its end, it would \"finish\" at once).\n // The new media starts where `startTimeSec` says.\n this.pendingSeekSec = null;\n void this.loadConfig(autoplay);\n return;\n }\n\n if (playRequested) {\n // Same source picked again (a paused track the listener clicks): play it, once any load has finished.\n if (this.loading) this.pendingPlay = true;\n else void this.facade.play().catch(() => {});\n }\n }\n\n ngOnInit(): void {\n const plugins: PlayerPlugin[] = [...(this.plugins ?? [])];\n\n // v1.11: SSAI (server-side stitched streams) – rewrite manifest URL if configured.\n if (this.config?.ads?.enabled && this.config?.ads?.mode === 'ssai') {\n plugins.push(createSsaiManifestRewritePlugin());\n }\n\n const media = this.mediaElementForMode();\n this.watchAirPlay(media);\n this.facade.attach(media, plugins, this.config, this.ports, this.engines);\n\n // markForCheck() requis : la stratégie OnPush ne détecte pas les mutations\n // poussées depuis des souscriptions RxJS (cf. docs/AUDIT.md, manquement #7).\n this.sub.add(this.facade.state$.subscribe((s: PlayerState) => {\n this.state = s;\n // Engines without a media element (remote devices) only report the end through their state.\n if (s.kind === 'ended') this.onEnded();\n else if (s.kind === 'playing') this.endedLoadSequence = -1;\n this.stateChange.emit(s);\n this.syncControlVisibility();\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.time$.subscribe((t) => {\n // While a new source loads, the time still reported is the previous media's. Passed on, a\n // host would file it under the new track and resume that track there — past its end for a\n // short file, which then \"finishes\" at once.\n if (this.loading) return;\n this.currentTime = t.currentTime;\n this.duration = t.duration;\n this.progress.emit({\n currentTime: this.currentTime,\n duration: this.duration,\n contentId: this.config?.source?.contentId,\n sourceUrl: this.config?.source?.url,\n });\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.bufferAheadSec$.subscribe((value) => {\n this.bufferAheadSec = value;\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.tracks$.subscribe((tracks) => {\n this.tracks = tracks;\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.captionCues$.subscribe((cues) => this.drawCaptions(cues)));\n this.bindRemotePlaybackState();\n\n this.applyVolume();\n this.initialized = true;\n void this.loadConfig(this.autoplayOnInit);\n }\n\n ngOnDestroy(): void {\n this.controlsObserver?.disconnect();\n this.clearHideControlsTimer();\n this.clearSurfaceClickTimer();\n this.clearGestureTimer();\n this.remotePlaybackCleanup?.();\n this.sub.unsubscribe();\n this.facade.destroy();\n }\n\n tryPlay(): void {\n void this.facade.play().catch(() => {});\n }\n\n get debugJson(): string {\n try {\n const d = this.facade.diagnostics();\n const tel = this.ports?.telemetry?.export?.();\n return JSON.stringify({ ...d, telemetry: tel }, null, 2);\n } catch {\n return '{}';\n }\n }\n\n get currentError(): PlayerError | null {\n return this.state?.kind === 'error' ? this.state.error : null;\n }\n\n async copyDebug(): Promise<void> {\n try {\n await navigator.clipboard.writeText(this.debugJson);\n } catch {\n // clipboard may be unavailable\n }\n }\n\n downloadDebug(): void {\n try {\n const blob = new Blob([this.debugJson], { type: 'application/json' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = 'ngxsp-diagnostics.json';\n a.click();\n setTimeout(() => URL.revokeObjectURL(url), 0);\n } catch {\n // ignore\n }\n }\n\n togglePlay(): void {\n if (this.state?.kind === 'playing') this.facade.pause();\n else this.facade.play();\n }\n\n requestPlaybackToggle(): void {\n const intent = this.playbackToggleIntent();\n this.togglePlay();\n this.playbackToggle.emit(intent);\n this.showSurfaceGesture(intent);\n }\n\n seekRel(deltaSec: number): void {\n this.seekTo(this.currentTime + deltaSec);\n }\n\n seekTo(timeSec: number): void {\n const value = Number(timeSec);\n if (!Number.isFinite(value)) return;\n const target = Math.max(0, value);\n this.pendingSeekSec = target;\n // A load in progress applies the pending position once the media is ready: seeking now would hit no engine.\n if (this.loading) return;\n void this.applySeek(target).then((applied) => {\n if (applied && this.pendingSeekSec === target) this.pendingSeekSec = null;\n });\n }\n\n onScrub(value: number): void {\n const v = Number(value);\n if (Number.isFinite(v)) this.seekTo(v);\n }\n\n onVolume(value: number): void {\n this.setVolume(value, true);\n }\n\n toggleMute(): void {\n if (this.volume <= 0.001) {\n this.volume = Math.max(0.5, this.lastVolumeBeforeMute || 0.5);\n } else {\n this.lastVolumeBeforeMute = this.volume;\n this.volume = 0;\n }\n this.applyVolume();\n this.outputVolumeChange.emit(this.volume);\n this.onInteraction();\n }\n\n async setPlaybackRate(rate: number): Promise<void> {\n this.playbackRate = rate;\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setRate(rate);\n }\n\n reload(): void {\n this.facade.reload().catch(() => void 0);\n }\n\n\n onLoadedMetadata(): void {\n const v = this.videoEl?.nativeElement;\n if (!v) return;\n // A position requested while the media was loading and not applied yet is applied now that it can be.\n if (this.pendingSeekSec !== null && !this.loading) {\n const target = this.pendingSeekSec;\n void this.applySeek(target).then((applied) => {\n if (applied && this.pendingSeekSec === target) this.pendingSeekSec = null;\n });\n }\n const width = v.videoWidth || 0;\n const height = v.videoHeight || 0;\n if (width > 0 && height > 0) {\n this.videoSize.emit({ width, height });\n }\n }\n\n onEnded(): void {\n // The media element's event and the engine state both announce the same end: handle it once per playback.\n if (this.endedLoadSequence === this.loadSequence) return;\n this.endedLoadSequence = this.loadSequence;\n // Repeat one replays the same media; otherwise hosts are told so they can chain their queue.\n if (this.repeatMode === 'one') {\n void this.facade.seekTo(0).then(() => this.facade.play()).catch(() => {});\n return;\n }\n this.ended.emit();\n }\n\n toggleFullscreen(): void {\n if (this.isAudioMode) return;\n const host = this.videoEl.nativeElement.parentElement;\n if (!host) return;\n\n const doc = document as Document & { fullscreenElement?: Element | null; exitFullscreen?: () => Promise<void> };\n const el = host as HTMLElement & { requestFullscreen?: () => Promise<void> };\n\n if (!doc.fullscreenElement && el.requestFullscreen) {\n el.requestFullscreen().catch(() => void 0);\n } else if (doc.exitFullscreen) {\n doc.exitFullscreen().catch(() => void 0);\n }\n }\n\n toggleMenu(menu: 'tracks' | 'speed' | 'captions'): void {\n this.openMenu = this.openMenu === menu ? null : menu;\n this.onInteraction(this.openMenu !== null);\n }\n\n get playerMenuLabels(): PlayerMenuLabels {\n return { ...DEFAULT_PLAYER_MENU_LABELS, ...this.menuLabels };\n }\n\n onCaptionsClick(): void {\n this.toggleMenu('captions');\n this.subtitles.emit();\n }\n\n openSubtitlePicker(): void {\n this.openMenu = null;\n this.onInteraction();\n this.subtitleFileInput?.nativeElement.click();\n }\n\n async onSubtitleFileChosen(event: Event): Promise<void> {\n const input = event.target as HTMLInputElement;\n const file = input.files?.[0];\n input.value = '';\n if (file) await this.loadSubtitleFile(file);\n }\n\n /** Reads a SubRip or WebVTT file and shows it over the video. */\n async loadSubtitleFile(file: File): Promise<void> {\n const { label, language } = describeSubtitleFile(file.name);\n try {\n const vtt = subtitleTextToVtt(decodeSubtitleBytes(new Uint8Array(await file.arrayBuffer())));\n if (!/-->/.test(vtt)) throw new Error('No subtitle in this file');\n await this.facade.addExternalTextTrack({ label, ...(language ? { language } : {}), vtt });\n this.subtitlesLoaded.emit({ label, ok: true });\n } catch (error) {\n this.subtitlesLoaded.emit({ label, ok: false, error: error instanceof Error ? error.message : String(error) });\n }\n }\n\n private controlsObserver?: ResizeObserver;\n\n /** While the controls show, the subtitles sit just above them, however tall they are (a menu makes them taller). */\n private followControlsHeight(): void {\n if (this.controlsObserver || typeof ResizeObserver !== 'function') return;\n const bar = this.videoEl.nativeElement.parentElement?.querySelector<HTMLElement>('.ngxsp-vod-bottom');\n const layer = this.captionsLayer?.nativeElement;\n if (!bar || !layer) return;\n // The top of the bar is a fade over the picture: the subtitles may overlap it.\n const lift = () => layer.style.setProperty('--ngxsp-captions-lift', `${Math.max(0, bar.offsetHeight - 24)}px`);\n this.controlsObserver = new ResizeObserver(lift);\n this.controlsObserver.observe(bar);\n lift();\n }\n\n /** Draws the cues of the loaded subtitles (their markup parsed by the browser: italics, bold, no script). */\n private drawCaptions(cues: TextTrackCue[]): void {\n const layer = this.captionsLayer?.nativeElement;\n if (!layer) return;\n if (cues.length) this.followControlsHeight();\n layer.replaceChildren(...cues.map((cue) => {\n const line = document.createElement('span');\n line.className = 'ngxsp-cue';\n const html = (cue as VTTCue).getCueAsHTML?.();\n if (html) line.append(html);\n else line.textContent = (cue as VTTCue).text ?? '';\n return line;\n }));\n }\n\n async selectTextTrack(trackId: string | null): Promise<void> {\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setTextTrack(trackId);\n }\n\n async selectAudioTrack(trackId: string): Promise<void> {\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setAudioTrack(trackId);\n }\n\n async selectVideoTrack(trackId: string | null): Promise<void> {\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setVideoTrack(trackId);\n }\n\n async togglePiP(): Promise<void> {\n const video = this.videoEl.nativeElement as HTMLVideoElement & {\n requestPictureInPicture?: () => Promise<unknown>;\n disablePictureInPicture?: boolean;\n };\n const doc = document as Document & {\n pictureInPictureElement?: Element | null;\n pictureInPictureEnabled?: boolean;\n exitPictureInPicture?: () => Promise<void>;\n };\n\n try {\n if (doc.pictureInPictureElement) {\n await doc.exitPictureInPicture?.();\n } else {\n await video.requestPictureInPicture?.();\n }\n } catch {\n // Ignore unsupported or blocked PiP transitions.\n }\n this.onInteraction();\n }\n\n isPiPSupported(): boolean {\n if (this.isAudioMode) return false;\n const video = this.videoEl?.nativeElement as (HTMLVideoElement & { disablePictureInPicture?: boolean }) | undefined;\n const doc = document as Document & { pictureInPictureEnabled?: boolean };\n return !!doc.pictureInPictureEnabled && !video?.disablePictureInPicture;\n }\n\n pipLabel(): string {\n const doc = document as Document & { pictureInPictureElement?: Element | null };\n return doc.pictureInPictureElement ? 'Exit PiP' : 'PiP';\n }\n\n isPiPActive(): boolean {\n const doc = document as Document & { pictureInPictureElement?: Element | null };\n return !!doc.pictureInPictureElement;\n }\n\n async requestCast(): Promise<void> {\n const video = this.videoEl?.nativeElement as HTMLVideoElement & {\n remote?: {\n state?: 'disconnected' | 'connecting' | 'connected';\n prompt?: () => Promise<void>;\n };\n webkitShowPlaybackTargetPicker?: () => void;\n };\n if (!video) return;\n\n try {\n if (video.remote?.prompt) {\n this.castState = video.remote.state ?? 'connecting';\n await video.remote.prompt();\n this.castState = video.remote.state ?? this.castState;\n } else if (typeof video.webkitShowPlaybackTargetPicker === 'function') {\n video.webkitShowPlaybackTargetPicker();\n }\n } catch {\n this.castState = video.remote?.state ?? 'disconnected';\n }\n this.onInteraction();\n }\n\n isCastSupported(): boolean {\n const video = this.videoEl?.nativeElement as HTMLVideoElement & {\n remote?: { prompt?: () => Promise<void> };\n webkitShowPlaybackTargetPicker?: () => void;\n };\n return !!video && (!!video.remote?.prompt || typeof video.webkitShowPlaybackTargetPicker === 'function');\n }\n\n isCastActive(): boolean {\n return this.castConnected || this.castState === 'connected';\n }\n\n showCastButton(): boolean {\n return this.castEnabled || this.isCastSupported();\n }\n\n /**\n * AirPlay, as WebKit offers it: the system decides what is reachable and draws the picker\n * itself. Nothing is discovered here, and nothing is sent — the route belongs to the device.\n * Everywhere else these stay false and the button never appears.\n */\n showAirPlayButton(): boolean {\n return this.airPlayAvailable;\n }\n\n isAirPlayActive(): boolean {\n return this.airPlayActive;\n }\n\n airPlayLabel(): string {\n return this.airPlayActive ? 'Stop AirPlay' : 'AirPlay';\n }\n\n openAirPlayPicker(): void {\n const media = this.videoEl?.nativeElement as HTMLVideoElement & { webkitShowPlaybackTargetPicker?: () => void };\n media?.webkitShowPlaybackTargetPicker?.();\n }\n\n /** Wired to the media element whenever one is created, for video and for audio alike. */\n private watchAirPlay(media: HTMLMediaElement): void {\n const target = media as HTMLMediaElement & { webkitCurrentPlaybackTargetIsWireless?: boolean };\n if (!('webkitShowPlaybackTargetPicker' in target)) return;\n this.airPlayActive = target.webkitCurrentPlaybackTargetIsWireless === true;\n media.addEventListener('webkitplaybacktargetavailabilitychanged', (event) => {\n this.airPlayAvailable = (event as Event & { availability?: string }).availability === 'available';\n });\n media.addEventListener('webkitcurrentplaybacktargetiswirelesschanged', () => {\n this.airPlayActive = target.webkitCurrentPlaybackTargetIsWireless === true;\n });\n }\n\n castLabel(): string {\n if (this.castEnabled) return 'Play on device';\n if (this.castState === 'connected') return 'Playing on remote device';\n if (this.castState === 'connecting') return 'Connecting to remote device';\n return 'Play on device';\n }\n\n castHintLabel(): string {\n if (this.castEnabled) return 'Choose a device on your local network.';\n if (this.castState === 'connected') return 'This media is currently playing on a nearby device.';\n if (this.castState === 'connecting') return 'Trying to connect to a nearby playback device.';\n return 'Available when your platform supports remote playback on the same network.';\n }\n\n onCastClick(): void {\n if (this.castEnabled) {\n this.cast.emit();\n this.onInteraction();\n return;\n }\n void this.requestCast();\n }\n\n captionsLabel(): string {\n const labels = this.playerMenuLabels;\n const shown = this.textTracks.find((track) => track.id === this.selectedTextTrackId);\n return shown ? `${labels.subtitles} - ${shown.label || shown.language || shown.id}` : labels.subtitles;\n }\n\n volumeLabel(): string {\n if (this.volume <= 0.001) return 'Muted';\n if (this.volume < 0.5) return 'Vol';\n return 'Volume';\n }\n\n playbackRateLabel(): string {\n return `${this.playbackRate}x`;\n }\n\n statusLabel(): string {\n const kind = this.state?.kind;\n if (kind === 'playing') return this.playbackRate === 1 ? this.playingStatusLabel : `${this.playingStatusLabel} ${this.playbackRate}x`;\n if (kind === 'paused') return this.pausedStatusLabel;\n if (kind === 'buffering') return this.bufferingStatusLabel;\n if (kind === 'loading') return this.loadingStatusLabel;\n if (kind === 'ended') return this.endedStatusLabel;\n if (kind === 'error') return this.errorStatusLabel;\n return this.readyStatusLabel;\n }\n\n keyboardHintLabel(): string {\n return this.isAudioMode ? 'Space play • Arrows seek • C device' : 'Space play • Arrows seek • F fullscreen • C device';\n }\n\n tracksButtonLabel(): string {\n return this.textTracks.length || this.audioTracks.length ? this.playerMenuLabels.tracks : this.playerMenuLabels.media;\n }\n\n onPrimarySurfaceDoubleClick(): void {\n if (this.isAudioMode) return;\n this.clearSurfaceClickTimer();\n this.toggleFullscreen();\n }\n\n bufferPercent(): number {\n if (!this.duration || !Number.isFinite(this.duration) || this.duration <= 0) return 0;\n return Math.max(0, Math.min(100, (this.bufferAheadSec / this.duration) * 100));\n }\n\n fmtTime(sec: number): string {\n const s = Math.max(0, Math.floor(sec || 0));\n const h = Math.floor(s / 3600);\n const m = Math.floor((s % 3600) / 60);\n const r = s % 60;\n if (h > 0) return `${h}:${String(m).padStart(2,'0')}:${String(r).padStart(2,'0')}`;\n return `${m}:${String(r).padStart(2,'0')}`;\n }\n\n noop(): void {}\n\n /**\n * Music plays in a real <audio> element: mobile browsers and Android WebViews pause <video> elements as soon as\n * the page is hidden, which would stop the music when the app goes to the background or the screen turns off.\n */\n private mediaElementForMode(): HTMLVideoElement {\n const video = this.videoEl.nativeElement;\n if (!this.isAudioMode || typeof document === 'undefined') return video;\n const audio = document.createElement('audio');\n audio.preload = 'metadata';\n audio.setAttribute('x-webkit-airplay', 'allow');\n audio.addEventListener('timeupdate', () => this.noop());\n audio.addEventListener('loadedmetadata', () => this.onLoadedMetadata());\n audio.addEventListener('ended', () => this.onEnded());\n video.replaceWith(audio);\n // The facade and helpers only use HTMLMediaElement members for audio (video-only APIs are feature-checked).\n this.videoEl = new ElementRef(audio as unknown as HTMLVideoElement);\n return this.videoEl.nativeElement;\n }\n onInteraction(persist = false): void {\n this.controlsVisible = true;\n this.clearHideControlsTimer();\n if (!persist && this.state?.kind === 'playing' && this.openMenu === null) {\n this.hideControlsTimer = setTimeout(() => {\n this.controlsVisible = false;\n this.cdr.markForCheck();\n }, 2200);\n }\n }\n\n onPointerLeave(): void {\n if (this.state?.kind === 'playing' && this.openMenu === null) {\n this.clearHideControlsTimer();\n this.controlsVisible = false;\n }\n }\n\n onRootClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (!target) return;\n if (target.closest('button, input, textarea, select, summary, [contenteditable=\"true\"], .ngxsp-menu, .ngxsp-controls, .ngxsp-debug, .ngxsp-overlay, .ngxsp-range')) {\n return;\n }\n if (event.detail > 1) {\n this.clearSurfaceClickTimer();\n return;\n }\n this.openMenu = null;\n this.onInteraction();\n if (this.uiSkin === 'vod' && !this.isAudioMode) {\n this.queueSurfacePlaybackToggle();\n }\n }\n\n @HostListener('document:keydown.escape')\n onEscape(): void {\n if (this.openMenu !== null) {\n this.openMenu = null;\n this.onInteraction();\n }\n }\n\n @HostListener('document:keydown', ['$event'])\n onKeydown(event: KeyboardEvent): void {\n if (!this.documentShortcuts) return;\n if (this.isInteractiveTarget(event.target)) return;\n\n if (event.code === 'Space') {\n event.preventDefault();\n this.requestPlaybackToggle();\n this.onInteraction();\n return;\n }\n if (event.code === 'ArrowLeft') {\n event.preventDefault();\n this.seekRel(-10);\n this.onInteraction();\n return;\n }\n if (event.code === 'ArrowRight') {\n event.preventDefault();\n this.seekRel(10);\n this.onInteraction();\n return;\n }\n if (event.code === 'KeyF') {\n if (this.isAudioMode) return;\n event.preventDefault();\n this.toggleFullscreen();\n this.onInteraction();\n return;\n }\n if (event.code === 'KeyM') {\n event.preventDefault();\n this.toggleMute();\n return;\n }\n if (event.code === 'KeyC') {\n if (!this.showCastButton()) return;\n event.preventDefault();\n this.onCastClick();\n }\n }\n\n private async loadConfig(autoplay: boolean): Promise<void> {\n const sequence = ++this.loadSequence;\n this.loading = true;\n this.loadingAutoplay = autoplay;\n this.loadedSourceSignature = this.sourceSignature(this.config);\n this.duration = 0;\n this.currentTime = 0;\n this.bufferAheadSec = 0;\n this.tracks = [];\n this.cdr.markForCheck();\n\n try {\n await this.facade.load(this.config);\n if (this.pendingSeekSec !== null) {\n const target = this.pendingSeekSec;\n // Cleared only when the position really reached an engine; otherwise the metadata event retries it.\n if (await this.applySeek(target) && this.pendingSeekSec === target) this.pendingSeekSec = null;\n } else {\n await this.applyStartTime();\n }\n // A newer load owns playback: only the latest request may start it.\n if (sequence === this.loadSequence && (autoplay || this.pendingPlay)) {\n this.pendingPlay = false;\n await this.facade.play().catch(() => {});\n }\n } catch {\n // The facade has already emitted a typed player error.\n } finally {\n if (sequence === this.loadSequence) {\n this.loading = false;\n // A position asked for while this load was finishing, after it looked for one, is applied now.\n const target = this.pendingSeekSec;\n if (target !== null) {\n void this.applySeek(target).then((applied) => {\n if (applied && this.pendingSeekSec === target) this.pendingSeekSec = null;\n });\n }\n }\n }\n }\n\n private async applyStartTime(): Promise<void> {\n const start = Number(this.startTimeSec ?? 0);\n if (!Number.isFinite(start) || start <= 0.2) return;\n\n await this.applySeek(start);\n }\n\n private async applySeek(timeSec: number): Promise<boolean> {\n try {\n return await this.facade.seekTo(this.safeSeekTime(timeSec));\n } catch {\n // Best effort: some engines only allow seeking after enough metadata is loaded.\n return false;\n }\n }\n\n private safeSeekTime(timeSec: number): number {\n return Math.max(0, Math.min(timeSec, (this.duration || timeSec + 1) - 0.3));\n }\n\n private sourceSignature(config: PlayerConfig | null | undefined): string {\n const source = config?.source;\n if (!source) return '';\n return [\n source.type,\n source.url,\n source.contentId,\n source.live ? 'live' : 'vod',\n source.offlineEligible ? 'offline' : 'online',\n ].join('|');\n }\n\n private bindRemotePlaybackState(): void {\n const video = this.videoEl?.nativeElement as HTMLVideoElement & {\n remote?: {\n state?: 'disconnected' | 'connecting' | 'connected';\n addEventListener?: (type: string, listener: EventListener) => void;\n removeEventListener?: (type: string, listener: EventListener) => void;\n };\n addEventListener: (type: string, listener: EventListenerOrEventListenerObject) => void;\n removeEventListener: (type: string, listener: EventListenerOrEventListenerObject) => void;\n };\n const remote = video?.remote;\n if (!video || !remote) return;\n\n const sync = () => {\n this.castState = remote.state ?? 'disconnected';\n this.cdr.markForCheck();\n };\n\n sync();\n remote.addEventListener?.('connecting', sync);\n remote.addEventListener?.('connect', sync);\n remote.addEventListener?.('disconnect', sync);\n video.addEventListener('webkitcurrentplaybacktargetiswirelesschanged', sync as EventListener);\n\n this.remotePlaybackCleanup = () => {\n remote.removeEventListener?.('connecting', sync);\n remote.removeEventListener?.('connect', sync);\n remote.removeEventListener?.('disconnect', sync);\n video.removeEventListener('webkitcurrentplaybacktargetiswirelesschanged', sync as EventListener);\n };\n }\n\n private syncControlVisibility(): void {\n if (this.state?.kind === 'playing' && this.openMenu === null) {\n this.onInteraction();\n return;\n }\n this.clearHideControlsTimer();\n this.controlsVisible = true;\n }\n\n private applyVolume(): void {\n try {\n const media = this.videoEl.nativeElement;\n media.volume = this.volume;\n // iOS ignores volume writes: without this, muting and the volume slider have no effect on iPhone and iPad.\n media.muted = this.volume <= 0.001;\n } catch {\n // Some browser environments reject direct volume writes; the engine path remains available.\n }\n this.facade.setVolume(this.volume);\n }\n\n private syncOutputVolumeInput(): void {\n this.setVolume(this.outputVolume, false);\n }\n\n setOutputVolume(value: number): void {\n this.setVolume(value, false);\n }\n\n private setVolume(value: unknown, emitChange: boolean): void {\n const nextVolume = this.normalizeVolume(value, this.volume);\n if (Math.abs(nextVolume - this.volume) < 0.001) return;\n this.volume = nextVolume;\n if (this.volume > 0) this.lastVolumeBeforeMute = this.volume;\n if (this.initialized) this.applyVolume();\n if (emitChange) this.outputVolumeChange.emit(this.volume);\n }\n\n private normalizeVolume(value: unknown, fallback: number): number {\n const numeric = Number(value);\n if (!Number.isFinite(numeric)) return fallback;\n return Math.max(0, Math.min(1, numeric));\n }\n\n private clearHideControlsTimer(): void {\n if (this.hideControlsTimer) {\n clearTimeout(this.hideControlsTimer);\n this.hideControlsTimer = null;\n }\n }\n\n private queueSurfacePlaybackToggle(): void {\n this.clearSurfaceClickTimer();\n this.surfaceClickTimer = setTimeout(() => {\n this.surfaceClickTimer = null;\n this.requestPlaybackToggle();\n this.cdr.markForCheck();\n }, 180);\n }\n\n private clearSurfaceClickTimer(): void {\n if (this.surfaceClickTimer) {\n clearTimeout(this.surfaceClickTimer);\n this.surfaceClickTimer = null;\n }\n }\n\n private playbackToggleIntent(): 'play' | 'pause' {\n return this.state?.kind === 'playing' ? 'pause' : 'play';\n }\n\n private showSurfaceGesture(intent: 'play' | 'pause'): void {\n this.surfaceGesture = intent;\n this.clearGestureTimer();\n this.gestureTimer = setTimeout(() => {\n this.surfaceGesture = null;\n this.cdr.markForCheck();\n }, 520);\n this.cdr.markForCheck();\n }\n\n private clearGestureTimer(): void {\n if (this.gestureTimer) {\n clearTimeout(this.gestureTimer);\n this.gestureTimer = null;\n }\n }\n\n private isInteractiveTarget(target: EventTarget | null): boolean {\n const el = target as HTMLElement | null;\n if (!el) return false;\n return !!el.closest('input, button, textarea, select, summary, [contenteditable=\"true\"]');\n }\n\nemitNext(): void {\n this.next.emit();\n}\n\nemitPrev(): void {\n this.prev.emit();\n}\n\n}\n","import { EnvironmentProviders, InjectionToken, makeEnvironmentProviders } from '@angular/core';\nimport { MetadataProvider, SubtitleProvider } from '@ngxsp/core';\n\n/**\n * Jetons d'injection typés pour les providers de sous-titres / métadonnées.\n * (Remplace les jetons `string` non typés — cf. docs/AUDIT.md, manquement #10.)\n * Un consommateur peut les injecter directement :\n * `inject(SMART_PLAYER_SUBTITLE_PROVIDERS)`.\n */\nexport const SMART_PLAYER_SUBTITLE_PROVIDERS = new InjectionToken<SubtitleProvider[]>(\n 'SMART_PLAYER_SUBTITLE_PROVIDERS',\n { factory: () => [] },\n);\n\nexport const SMART_PLAYER_METADATA_PROVIDERS = new InjectionToken<MetadataProvider[]>(\n 'SMART_PLAYER_METADATA_PROVIDERS',\n { factory: () => [] },\n);\n\nexport interface SmartPlayerProvidersConfig {\n subtitleProviders?: SubtitleProvider[];\n metadataProviders?: MetadataProvider[];\n}\n\n/**\n * Enregistre les implémentations de providers (sous-titres / métadonnées).\n * À appeler dans le tableau `providers` de `bootstrapApplication()`.\n */\nexport function provideSmartPlayer(cfg: SmartPlayerProvidersConfig): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: SMART_PLAYER_SUBTITLE_PROVIDERS, use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A;EACA,eAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EACA,aAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EAEA,WAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EAEA,iBAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EAEA,YAAA,CAAA,EAAA,MAAA,MAAA,CAAA;EACA,MAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EACA,aAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EACA,gBAAA,CAAA,EAAA,MAAA,OAAA,CAAA;EACA,oBAAA,CAAA,EAAA,MAAA,OAAA,CAAA;;GAEA,MAAA;GAAU,MAAA,CAAA,SAAS,EAAE,QAAQ,KAAI,CAAE;;;GACnC,MAAA;GAAU,MAAA,CAAA,iBAAiB,EAAE,QAAQ,KAAI,CAAE;;;GAE3C,MAAA;GAAU,MAAA,CAAA,mBAAmB;;;GAsrB7B,MAAA;GAAa,MAAA,CAAA,yBAAyB;;;GAQtC,MAAA;GAAa,MAAA,CAAA,oBAAoB,CAAC,QAAQ,CAAC;;;;ACjoC9C,MAAa,kCAAkC,IAAI,eACjD,mCACA,EAAE,eAAe,CAAA,EAAE,CAAE;AAGvB,MAAa,kCAAkC,IAAI,eACjD,mCACA,EAAE,eAAe,CAAA,EAAE,CAAE;AAYvB,SAAgB,mBAAmB,KAA+B;CAChE,OAAO,yBAAyB,CAC9B;EAAE,SAAS;EAAiC,UAAU,IAAI,qBAAqB,CAAA;CAAE,GACjF;EAAE,SAAS;EAAiC,UAAU,IAAI,qBAAqB,CAAA;CAAE,CAClF,CAAA;AACH"}
|
|
1
|
+
{"version":3,"file":"ngxsplayer-ngx-smart-player.mjs","names":["doc"],"sources":["../../../projects/ngx-smart-player/src/lib/smart-player-icon.component.ts","../../../projects/ngx-smart-player/src/lib/smart-empty-page.component.ts","../../../projects/ngx-smart-player/src/lib/smart-notifications.component.ts","../../../projects/ngx-smart-player/src/lib/smart-settings.component.ts","../../../projects/ngx-smart-player/src/lib/smart-confirm-dialog.component.ts","../../../projects/ngx-smart-player/src/lib/player-overlays.component.ts","../../../projects/ngx-smart-player/src/lib/player-menu.component.ts","../../../projects/ngx-smart-player/src/lib/player-controls.component.ts","../../../projects/ngx-smart-player/src/lib/player-controls-vod.component.ts","../../../projects/ngx-smart-player/src/lib/player-controls-edition.component.ts","../../../projects/ngx-smart-player/src/lib/smart-player.component.ts","../../../projects/ngx-smart-player/src/lib/smart-audio-outputs.service.ts","../../../projects/ngx-smart-player/src/lib/smart-player.providers.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\n\nexport type SmartPlayerIconName =\n | 'play'\n | 'pause'\n | 'prev'\n | 'next'\n | 'seek-back'\n | 'seek-forward'\n | 'volume-mute'\n | 'volume-low'\n | 'volume-high'\n | 'shuffle'\n | 'repeat'\n | 'repeat-one'\n | 'tracks'\n | 'captions'\n | 'captions-off'\n | 'speed'\n | 'pip'\n | 'pip-active'\n | 'airplay'\n | 'airplay-active'\n | 'cast'\n | 'cast-active'\n | 'devices'\n | 'devices-active'\n | 'radio'\n | 'server'\n | 'window-mini'\n | 'window-bar'\n | 'window-restore'\n | 'cinema'\n | 'cinema-active'\n | 'lyrics'\n | 'info'\n | 'bell'\n | 'thumb-up'\n | 'thumb-down'\n | 'share'\n | 'playlist-plus'\n | 'clock'\n | 'home'\n | 'layers'\n | 'video'\n | 'music'\n | 'broadcast'\n | 'heart'\n | 'download'\n | 'trash'\n | 'folder'\n | 'settings'\n | 'search'\n | 'grid'\n | 'list'\n | 'more'\n | 'waveform'\n | 'sliders'\n | 'network'\n | 'cloud'\n | 'spark'\n | 'disc'\n | 'user'\n | 'tag'\n | 'close'\n | 'plus'\n | 'check'\n | 'refresh'\n | 'menu'\n | 'panel-right'\n | 'queue'\n | 'chevron-left'\n | 'chevron-right'\n | 'chevron-up'\n | 'chevron-down'\n | 'fullscreen'\n | 'fullscreen-exit';\n\n@Component({\n selector: 'ngxsp-smart-icon',\n standalone: true,\n template: `\n @switch (name) {\n @case ('play') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M8.25 6.82c0-1.3 1.43-2.1 2.54-1.43l8.12 4.93a1.96 1.96 0 0 1 0 3.36l-8.12 4.93a1.67 1.67 0 0 1-2.54-1.43V6.82Z\"/></svg>\n }\n @case ('pause') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M7.5 5.25A1.25 1.25 0 0 1 8.75 6.5v11A1.25 1.25 0 0 1 6.25 17.5v-11A1.25 1.25 0 0 1 7.5 5.25Zm8 0a1.25 1.25 0 0 1 1.25 1.25v11a1.25 1.25 0 1 1-2.5 0v-11A1.25 1.25 0 0 1 15.5 5.25Z\"/></svg>\n }\n @case ('prev') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M6 5.25a1 1 0 0 1 1 1v11.5a1 1 0 1 1-2 0V6.25a1 1 0 0 1 1-1Z\"/><path d=\"M19 6.55v10.9a1.25 1.25 0 0 1-1.93 1.05l-8.2-5.45a1.25 1.25 0 0 1 0-2.1l8.2-5.45A1.25 1.25 0 0 1 19 6.55Z\"/></svg>\n }\n @case ('next') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M18 5.25a1 1 0 0 1 1 1v11.5a1 1 0 1 1-2 0V6.25a1 1 0 0 1 1-1Z\"/><path d=\"M5 6.55v10.9a1.25 1.25 0 0 0 1.93 1.05l8.2-5.45a1.25 1.25 0 0 0 0-2.1l-8.2-5.45A1.25 1.25 0 0 0 5 6.55Z\"/></svg>\n }\n @case ('seek-back') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M5.5 13a6.5 6.5 0 1 0 6.5-6.5H8M10 4.5 8 6.5l2 2\"/><text x=\"12\" y=\"15.8\" font-size=\"7.5\" font-weight=\"700\" text-anchor=\"middle\" fill=\"currentColor\" stroke=\"none\" font-family=\"system-ui, sans-serif\">10</text></svg>\n }\n @case ('seek-forward') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M18.5 13a6.5 6.5 0 1 1-6.5-6.5H16M14 4.5 16 6.5l-2 2\"/><text x=\"12\" y=\"15.8\" font-size=\"7.5\" font-weight=\"700\" text-anchor=\"middle\" fill=\"currentColor\" stroke=\"none\" font-family=\"system-ui, sans-serif\">10</text></svg>\n }\n @case ('volume-mute') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M11 5 6.5 9H3.75v6h2.75L11 19V5Zm3.5 5.5 5 5m0-5-5 5\"/></svg>\n }\n @case ('volume-low') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M11 5 6.5 9H3.75v6h2.75L11 19V5Zm4.5 4.75a3.5 3.5 0 0 1 0 4.95\"/></svg>\n }\n @case ('volume-high') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M11 5 6.5 9H3.75v6h2.75L11 19V5Zm4.5 4.75a3.5 3.5 0 0 1 0 4.95m2.75-7.7a7.5 7.5 0 0 1 0 10.45\"/></svg>\n }\n @case ('shuffle') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M17 6h3v3\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m20 6-4.5 4.5\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 7h3.2c1 0 1.95.4 2.66 1.1l6.28 6.3A3.75 3.75 0 0 0 18.82 15H20\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M17 15h3v3\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m20 18-4.56-4.56\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 17h3.2c1 0 1.95-.4 2.66-1.1l1.54-1.54\"/></svg>\n }\n @case ('repeat') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M17 3.5 20 6.5 17 9.5\"/><path d=\"M4 11.5v-1a4 4 0 0 1 4-4h12\"/><path d=\"M7 20.5 4 17.5 7 14.5\"/><path d=\"M20 12.5v1a4 4 0 0 1-4 4H4\"/></svg>\n }\n @case ('repeat-one') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M17 3.5 20 6.5 17 9.5\"/><path d=\"M4 11.5v-1a4 4 0 0 1 4-4h12\"/><path d=\"M7 20.5 4 17.5 7 14.5\"/><path d=\"M20 12.5v1a4 4 0 0 1-4 4H4\"/><path d=\"M11 10.9 12.4 10v4.1\"/></svg>\n }\n @case ('tracks') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 6.75h16M4 12h16M4 17.25h16\"/></svg>\n }\n @case ('captions') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8 11.25h2.5m2 0H14m2 0h.5M8 14.75h3.5m2 0H16\"/></svg>\n }\n @case ('captions-off') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"5.5\" width=\"17\" height=\"13\" rx=\"2.5\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8 11.25h2.5m2 0H14m2 0h.5M8 14.75h3.5m2 0H16\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M6 6l12 12\"/></svg>\n }\n @case ('speed') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><path d=\"M5.25 5.82c0-1.3 1.43-2.1 2.54-1.43l5.71 3.47a1.96 1.96 0 0 1 0 3.36L7.79 14.7a1.67 1.67 0 0 1-2.54-1.43V5.82Zm8.5 0c0-1.3 1.43-2.1 2.54-1.43L22 7.86a1.96 1.96 0 0 1 0 3.36l-5.71 3.47a1.67 1.67 0 0 1-2.54-1.43V5.82Z\"/></svg>\n }\n @case ('pip') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><rect x=\"12\" y=\"11\" width=\"7\" height=\"6\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('pip-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\" fill=\"currentColor\" fill-opacity=\".22\"/><rect x=\"12\" y=\"11\" width=\"7\" height=\"6\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('airplay') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6 16.5H4.75A1.75 1.75 0 0 1 3 14.75v-8A1.75 1.75 0 0 1 4.75 5h14.5A1.75 1.75 0 0 1 21 6.75v8a1.75 1.75 0 0 1-1.75 1.75H18\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m12 14 4.5 6h-9L12 14Z\"/></svg>\n }\n @case ('airplay-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6 16.5H4.75A1.75 1.75 0 0 1 3 14.75v-8A1.75 1.75 0 0 1 4.75 5h14.5A1.75 1.75 0 0 1 21 6.75v8a1.75 1.75 0 0 1-1.75 1.75H18\"/><path fill=\"currentColor\" stroke=\"none\" d=\"m12 13.4 5.2 6.9H6.8L12 13.4Z\"/></svg>\n }\n @case ('cast') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 18.25a3.5 3.5 0 0 1 3.5 3.5\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 13.75A8 8 0 0 1 12.75 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 9.25A12.5 12.5 0 0 1 17.25 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M5.5 5.5h13a1.75 1.75 0 0 1 1.75 1.75v4.5\"/></svg>\n }\n @case ('cast-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 18.25a3.5 3.5 0 0 1 3.5 3.5\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 13.75A8 8 0 0 1 12.75 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 9.25A12.5 12.5 0 0 1 17.25 21.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M5.5 5.5h13a1.75 1.75 0 0 1 1.75 1.75v4.5\"/><circle cx=\"7\" cy=\"19\" r=\"1.5\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('devices') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2.75\" y=\"4.75\" width=\"12.5\" height=\"9.5\" rx=\"1.75\"/><path d=\"M6.5 18.75h5M9 14.25v4.5\"/><rect x=\"16.25\" y=\"8.25\" width=\"5\" height=\"12\" rx=\"1.5\"/><circle cx=\"18.75\" cy=\"16.25\" r=\"1.4\"/><path d=\"M18.75 11.25h.01\"/></svg>\n }\n @case ('devices-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2.75\" y=\"4.75\" width=\"12.5\" height=\"9.5\" rx=\"1.75\"/><path d=\"M6.5 18.75h5M9 14.25v4.5\"/><rect x=\"16.25\" y=\"8.25\" width=\"5\" height=\"12\" rx=\"1.5\"/><circle cx=\"18.75\" cy=\"16.25\" r=\"1.6\" fill=\"currentColor\" stroke=\"none\"/><path d=\"M18.75 11.25h.01\"/></svg>\n }\n @case ('radio') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M7.5 8 16.5 3.75\"/><rect x=\"3\" y=\"8\" width=\"18\" height=\"12.5\" rx=\"2.5\"/><circle cx=\"15.25\" cy=\"14.25\" r=\"2.75\"/><path d=\"M6.75 12.75h3.5M6.75 15.75h3.5\"/></svg>\n }\n @case ('server') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"4\" y=\"3.25\" width=\"16\" height=\"11\" rx=\"2\"/><path d=\"M7.5 6.75h.01M7.5 10.75h.01M10.5 6.75h6M10.5 10.75h6\"/><path d=\"M12 14.25v4.5M3.5 20.5h6.75M13.75 20.5h6.75\"/><circle cx=\"12\" cy=\"20.5\" r=\"1.6\"/></svg>\n }\n <!--\n The miniature: a window with the small one it shrinks to, in the corner the mini window\n opens in. It drew that small window AND an arrow out of the frame — two gestures in one\n glyph, neither of them legible at 16 pixels. Miniature.dc.html draws the frame and the\n corner, and nothing else.\n -->\n @case ('window-mini') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><rect x=\"11.5\" y=\"11.5\" width=\"7\" height=\"5.5\" rx=\"1.2\"/></svg>\n }\n @case ('window-bar') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><rect x=\"5\" y=\"15\" width=\"14\" height=\"2.8\" rx=\"1\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('cinema') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2\" y=\"7\" width=\"20\" height=\"10\" rx=\"2\"/><path d=\"M6 12h12M6 12l2-2M6 12l2 2M18 12l-2-2M18 12l-2 2\"/></svg>\n }\n @case ('cinema-active') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"2\" y=\"7\" width=\"20\" height=\"10\" rx=\"2\" fill=\"currentColor\" fill-opacity=\".22\"/><path d=\"M6 12h12M6 12l2-2M6 12l2 2M18 12l-2-2M18 12l-2 2\"/></svg>\n }\n @case ('info') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"9\"/><path d=\"M12 11v5.5M12 7.5h.01\"/></svg>\n }\n @case ('lyrics') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><path d=\"M4 5.5h16v10H10l-4.5 4v-4H4z\"/><path d=\"M8 9.5h8M8 12.5h5\"/></svg>\n }\n @case ('window-restore') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\"><rect x=\"3\" y=\"4.5\" width=\"18\" height=\"15\" rx=\"2.5\"/><path d=\"M10 14.5 15 9.5M11 9.5h4v4\"/></svg>\n }\n @case ('bell') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6.75 10.4a5.25 5.25 0 0 1 10.5 0c0 4.65 1.75 5.6 1.75 5.6H5s1.75-.95 1.75-5.6Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M10 19a2.15 2.15 0 0 0 4 0\"/></svg>\n }\n @case ('thumb-up') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M7.25 10.5v9.25H4.7a1.7 1.7 0 0 1-1.7-1.7V12.2a1.7 1.7 0 0 1 1.7-1.7h2.55Zm0 0 4.85-7.05a1.75 1.75 0 0 1 3.18 1.16l-.44 3.2h3.88a2.1 2.1 0 0 1 2.05 2.55l-1.35 6.45a3.7 3.7 0 0 1-3.62 2.94H7.25\"/></svg>\n }\n @case ('thumb-down') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M7.25 13.5V4.25H4.7A1.7 1.7 0 0 0 3 5.95v5.85a1.7 1.7 0 0 0 1.7 1.7h2.55Zm0 0 4.85 7.05a1.75 1.75 0 0 0 3.18-1.16l-.44-3.2h3.88a2.1 2.1 0 0 0 2.05-2.55L19.42 7.2a3.7 3.7 0 0 0-3.62-2.94H7.25\"/></svg>\n }\n @case ('share') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M18.25 8.25 21 5.5l-2.75-2.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M20.4 5.5h-5.2A8.2 8.2 0 0 0 7 13.7v.8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4 11.5v6.75A1.75 1.75 0 0 0 5.75 20h12.5A1.75 1.75 0 0 0 20 18.25V14\"/></svg>\n }\n @case ('playlist-plus') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 6.5h11M4 11.5h11M4 16.5h8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M18 13.5v6m-3-3h6\"/></svg>\n }\n @case ('clock') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.25\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 7.75v4.65l3.45 2.05\"/></svg>\n }\n @case ('home') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m4 11.5 8-6.75 8 6.75\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M6.5 10.5v8.25h11v-8.25\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M10 18.75v-5h4v5\"/></svg>\n }\n @case ('layers') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 3.75 3.75 8 12 12.25 20.25 8 12 3.75Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m5 12 7 3.6 7-3.6M5 16l7 3.6 7-3.6\"/></svg>\n }\n @case ('video') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"4\" y=\"5\" width=\"16\" height=\"14\" rx=\"2.25\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8 5v14M16 5v14M4 9h4M4 15h4M16 9h4M16 15h4\"/></svg>\n }\n @case ('music') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M9 18.25a2.75 2.75 0 1 1-1.6-2.5V6.5l10-2v11.25a2.75 2.75 0 1 1-1.6-2.5V8.2l-8.4 1.68\"/></svg>\n }\n @case ('broadcast') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"2\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M8.7 8.7a4.65 4.65 0 0 0 0 6.6m6.6 0a4.65 4.65 0 0 0 0-6.6M6.1 6.1a8.35 8.35 0 0 0 0 11.8m11.8 0a8.35 8.35 0 0 0 0-11.8\"/></svg>\n }\n @case ('heart') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M20.2 6.2c-1.8-1.9-4.8-1.8-6.5.2L12 8.3l-1.7-1.9c-1.7-2-4.7-2.1-6.5-.2-1.9 2-1.7 5.1.4 6.9L12 20l7.8-6.9c2.1-1.8 2.3-4.9.4-6.9Z\"/></svg>\n }\n @case ('download') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 4v10m0 0 4-4m-4 4-4-4M5 19h14\"/></svg>\n }\n @case ('trash') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.5 6.75h15M9.75 6.75V5.25A1.5 1.5 0 0 1 11.25 3.75h1.5a1.5 1.5 0 0 1 1.5 1.5v1.5M6.75 6.75l.7 12a1.5 1.5 0 0 0 1.5 1.5h6.1a1.5 1.5 0 0 0 1.5-1.5l.7-12M10.5 10.5v6M13.5 10.5v6\"/></svg>\n }\n @case ('folder') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M3.75 7.5A2.25 2.25 0 0 1 6 5.25h4.15l2.1 2.25H18a2.25 2.25 0 0 1 2.25 2.25v6.75A2.25 2.25 0 0 1 18 18.75H6a2.25 2.25 0 0 1-2.25-2.25v-9Z\"/></svg>\n }\n @case ('settings') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 15.25A3.25 3.25 0 1 0 12 8.75a3.25 3.25 0 0 0 0 6.5Z\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M19.4 13.5a7.8 7.8 0 0 0 .05-3l2-1.55-2-3.45-2.42.98a8 8 0 0 0-2.58-1.5L14.1 2.4h-4.2l-.35 2.58a8 8 0 0 0-2.58 1.5L4.55 5.5l-2 3.45 2 1.55a7.8 7.8 0 0 0 .05 3l-2.05 1.55 2 3.45 2.46-.98a8 8 0 0 0 2.54 1.47l.35 2.61h4.2l.35-2.6a8 8 0 0 0 2.54-1.48l2.46.98 2-3.45-2.05-1.55Z\"/></svg>\n }\n @case ('search') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"10.75\" cy=\"10.75\" r=\"6.25\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"m15.4 15.4 4.85 4.85\"/></svg>\n }\n @case ('grid') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"4\" y=\"4\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/><rect x=\"14\" y=\"4\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/><rect x=\"4\" y=\"14\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/><rect x=\"14\" y=\"14\" width=\"6\" height=\"6\" rx=\"1.4\" stroke-width=\"1.8\"/></svg>\n }\n @case ('list') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M9 6h11M9 12h11M9 18h11\"/><circle cx=\"4.8\" cy=\"6\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"4.8\" cy=\"12\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"4.8\" cy=\"18\" r=\"1.2\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('more') {\n <svg viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\"><circle cx=\"5\" cy=\"12\" r=\"1.7\"/><circle cx=\"12\" cy=\"12\" r=\"1.7\"/><circle cx=\"19\" cy=\"12\" r=\"1.7\"/></svg>\n }\n @case ('waveform') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 13v-2m4 5V8m4 11V5m4 10V9m4 4v-2\"/></svg>\n }\n @case ('sliders') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 7h5m6 0h5M4 17h9m6 0h1\"/><circle cx=\"12\" cy=\"7\" r=\"2.25\" stroke-width=\"1.8\"/><circle cx=\"16\" cy=\"17\" r=\"2.25\" stroke-width=\"1.8\"/></svg>\n }\n @case ('network') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"5\" r=\"2.3\" stroke-width=\"1.8\"/><circle cx=\"6\" cy=\"18\" r=\"2.3\" stroke-width=\"1.8\"/><circle cx=\"18\" cy=\"18\" r=\"2.3\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M11 7.1 7.1 15.9M13 7.1l3.9 8.8M8.3 18h7.4\"/></svg>\n }\n @case ('cloud') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M7.25 18.5h10.2a4.05 4.05 0 0 0 .5-8.07 6.25 6.25 0 0 0-12-1.75A4.95 4.95 0 0 0 7.25 18.5Z\"/></svg>\n }\n @case ('spark') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M12 3.5 14.3 9l5.7 2.2-5.7 2.3L12 20l-2.3-6.5L4 11.2 9.7 9 12 3.5Z\"/></svg>\n }\n @case ('disc') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"12\" r=\"8.25\" stroke-width=\"1.8\"/><circle cx=\"12\" cy=\"12\" r=\"2.25\" stroke-width=\"1.8\"/></svg>\n }\n @case ('user') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><circle cx=\"12\" cy=\"8.5\" r=\"3.75\" stroke-width=\"1.8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.75 19.75a7.25 7.25 0 0 1 14.5 0\"/></svg>\n }\n @case ('tag') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M3.75 5.75v5.1c0 .6.24 1.17.66 1.6l7.4 7.4a2 2 0 0 0 2.83 0l5.1-5.1a2 2 0 0 0 0-2.83l-7.4-7.4a2.25 2.25 0 0 0-1.6-.66h-5a2 2 0 0 0-2 1.89Z\"/><circle cx=\"8.25\" cy=\"8.25\" r=\"1.25\" fill=\"currentColor\" stroke=\"none\"/></svg>\n }\n @case ('close') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"m6.5 6.5 11 11m0-11-11 11\"/></svg>\n }\n @case ('plus') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M12 5v14M5 12h14\"/></svg>\n }\n @case ('check') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m5 12.5 4.5 4.5L19 7.5\"/></svg>\n }\n @case ('refresh') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M20 12a8 8 0 1 0-8 8\"/><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M20 20.5v-5h-5\"/></svg>\n }\n @case ('menu') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 7h16M4 12h16M4 17h16\"/></svg>\n }\n @case ('panel-right') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><rect x=\"3.5\" y=\"4.5\" width=\"17\" height=\"15\" rx=\"2.5\" stroke-width=\"1.8\"/><path stroke-width=\"1.8\" d=\"M14.5 4.5v15\"/></svg>\n }\n <!--\n What is lined up to play: the lines of a list, the last one short to leave room, and the\n triangle that says the list plays. It is the glyph every player draws for its queue, and\n the one the boards draw beside \"File d'attente\".\n -->\n @case ('queue') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-width=\"1.8\" d=\"M4 7h13M4 12h13M4 17h7\"/><path fill=\"currentColor\" stroke=\"none\" d=\"M16.6 12.9a.9.9 0 0 1 1.37-.77l4.1 2.56a.9.9 0 0 1 0 1.53l-4.1 2.56a.9.9 0 0 1-1.37-.76v-5.12Z\"/></svg>\n }\n @case ('chevron-left') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m14.5 6-6 6 6 6\"/></svg>\n }\n @case ('chevron-right') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m9.5 6 6 6-6 6\"/></svg>\n }\n @case ('chevron-up') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m6 14.5 6-6 6 6\"/></svg>\n }\n @case ('chevron-down') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"m6 9.5 6 6 6-6\"/></svg>\n }\n @case ('fullscreen') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M4.5 9V5.5a1 1 0 0 1 1-1H9m6 0h3.5a1 1 0 0 1 1 1V9m0 6v3.5a1 1 0 0 1-1 1H15m-6 0H5.5a1 1 0 0 1-1-1V15\"/></svg>\n }\n @case ('fullscreen-exit') {\n <svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" aria-hidden=\"true\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.8\" d=\"M9 4.5V8a1 1 0 0 1-1 1H4.5m15 0H16a1 1 0 0 1-1-1V4.5m0 15V16a1 1 0 0 1 1-1h3.5m-15 0H8a1 1 0 0 1 1 1v3.5\"/></svg>\n }\n }\n `,\n styles: [`\n :host{display:block;width:1em;height:1em;line-height:0;flex:0 0 auto}\n svg{display:block;width:100%;height:100%}\n `],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SmartPlayerIconComponent {\n @Input({ required: true }) name: SmartPlayerIconName = 'play';\n}\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SmartPlayerIconComponent, type SmartPlayerIconName } from './smart-player-icon.component';\n\n/** One thing to do from an empty page: choose a folder, add a server. */\nexport interface SmartEmptyPageAction {\n id: string;\n label: string;\n icon?: SmartPlayerIconName;\n /** The one the page is for: drawn in the accent. Give it first; it is drawn where it is put. */\n primary?: boolean;\n}\n\n/**\n * The first opening: nothing has been loaded, and the page says what to do about it.\n *\n * The shared board draws one page for both players — a mark, a sentence saying what will happen\n * to the folder, the two ways in, the way that needs no folder at all, and the formats the\n * player can read. It is the one screen a newcomer is certain to see.\n */\nexport interface SmartEmptyPage {\n title: string;\n /** What choosing a folder does, and what it does not do. */\n body?: string;\n icon?: SmartPlayerIconName;\n actions?: readonly SmartEmptyPageAction[];\n /** The way in that needs no folder: dropping a file in the window. */\n hintTitle?: string;\n hintBody?: string;\n /** What the player can read, said once at the bottom. */\n footnote?: string;\n}\n\n@Component({\n selector: 'ngxsp-empty-page',\n standalone: true,\n imports: [SmartPlayerIconComponent],\n template: `\n @if (page; as data) {\n <div class=\"ngxsp-empty-inner\">\n <span class=\"ngxsp-empty-mark\" aria-hidden=\"true\"><ngxsp-smart-icon [name]=\"data.icon || 'folder'\" /></span>\n <h1>{{ data.title }}</h1>\n @if (data.body) { <p class=\"ngxsp-empty-body\">{{ data.body }}</p> }\n @if (data.actions?.length) {\n <div class=\"ngxsp-empty-actions\">\n @for (action of data.actions; track action.id) {\n <button type=\"button\" [class.primary]=\"action.primary\" (click)=\"pageAction.emit(action.id)\">\n @if (action.icon) { <ngxsp-smart-icon [name]=\"action.icon\" /> }\n <span>{{ action.label }}</span>\n </button>\n }\n </div>\n }\n @if (data.hintTitle) {\n <div class=\"ngxsp-empty-hint\">\n <strong><ngxsp-smart-icon name=\"plus\" />{{ data.hintTitle }}</strong>\n @if (data.hintBody) { <p>{{ data.hintBody }}</p> }\n </div>\n }\n @if (data.footnote) { <p class=\"ngxsp-empty-footnote\">{{ data.footnote }}</p> }\n </div>\n }\n `,\n styles: [`\n :host{\n --_surface:var(--ngxsp-settings-surface, rgb(255 255 255 / .04));\n --_text:var(--ngxsp-settings-text, currentColor);\n --_muted:var(--ngxsp-settings-muted, rgb(127 127 127));\n --_line:var(--ngxsp-settings-line, rgb(127 127 127 / .3));\n --_accent:var(--ngxsp-settings-accent, #5b5bd6);\n --_accent-text:var(--ngxsp-settings-accent-text, #fff);\n display:grid;\n place-items:center;\n min-height:100%;\n padding:24px;\n color:var(--_text);\n }\n .ngxsp-empty-inner{max-width:560px;text-align:center}\n .ngxsp-empty-mark{\n display:grid;\n place-items:center;\n width:96px;\n height:96px;\n margin:0 auto 22px;\n border:1px solid var(--_line);\n border-radius:24px;\n background:var(--_surface);\n color:var(--_muted);\n }\n .ngxsp-empty-mark ngxsp-smart-icon{width:44px;height:44px}\n h1{margin:0;font-size:22px;font-weight:600;letter-spacing:-.2px;overflow-wrap:anywhere}\n .ngxsp-empty-body{margin:10px auto 0;max-width:46ch;color:var(--_muted);font-size:13px;line-height:1.6}\n .ngxsp-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:22px}\n .ngxsp-empty-actions button{\n height:38px;\n display:inline-flex;\n align-items:center;\n gap:9px;\n padding:0 16px;\n border:1px solid var(--_line);\n border-radius:19px;\n background:transparent;\n color:var(--_text);\n font:inherit;\n font-size:13px;\n cursor:pointer;\n }\n .ngxsp-empty-actions button ngxsp-smart-icon{width:16px;height:16px}\n .ngxsp-empty-actions button.primary{border-color:transparent;background:var(--_accent);color:var(--_accent-text);padding:0 18px;font-weight:600}\n .ngxsp-empty-actions button:hover:not(.primary){background:var(--_surface)}\n .ngxsp-empty-hint{\n margin-top:34px;\n padding:16px 18px;\n border:1px dashed var(--_line);\n border-radius:12px;\n text-align:start;\n }\n .ngxsp-empty-hint strong{display:flex;align-items:center;gap:9px;color:var(--_muted);font-size:12px;font-weight:600}\n .ngxsp-empty-hint strong ngxsp-smart-icon{flex:none;width:15px;height:15px}\n .ngxsp-empty-hint p{margin:8px 0 0;color:var(--_muted);font-size:11.5px;line-height:1.55}\n .ngxsp-empty-footnote{margin:26px 0 0;color:var(--_muted);font-size:11.5px}\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartEmptyPageComponent {\n @Input() page: SmartEmptyPage | null = null;\n /** Which of its ways in was pressed. */\n @Output() pageAction = new EventEmitter<string>();\n}\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SmartPlayerIconComponent, type SmartPlayerIconName } from './smart-player-icon.component';\n\n/** What a notification is about, which is what gives its tile a colour. */\nexport type SmartNotificationKind = 'info' | 'success' | 'warning' | 'error';\n\n/** One thing the application did without being asked, kept rather than said in passing. */\nexport interface SmartNotification {\n id: string;\n title: string;\n /** What happened, in a sentence; the title alone says the kind of thing it was. */\n body?: string;\n kind?: SmartNotificationKind;\n icon?: SmartPlayerIconName;\n /** How long ago, in the host's own words: \"il y a 12 min\", \"hier\". */\n ago?: string;\n /** Not seen yet: drawn with a dot on its tile and a tint behind the row. */\n unread?: boolean;\n /** The one thing to do about it — retry, install, open what it made. */\n action?: { id: string; label: string };\n}\n\n/** Notifications of one age: today's, this week's, everything before. */\nexport interface SmartNotificationGroup {\n id: string;\n title: string;\n entries: readonly SmartNotification[];\n}\n\n/**\n * What the application has done without being asked, as a page of its own.\n *\n * The shared board draws one page for both players: a title saying how many went unseen, a way to\n * mark them all read, and the entries grouped by age — each with what it is about, what happened,\n * how long ago, and the one thing to do about it.\n */\nexport interface SmartNotificationsPage {\n title: string;\n /** How many went unseen, and what the page is for. */\n summary?: string;\n markAllLabel?: string;\n groups: readonly SmartNotificationGroup[];\n /** What the page says when nothing has happened yet. */\n emptyLabel?: string;\n}\n\nconst KIND_ICONS: Record<SmartNotificationKind, SmartPlayerIconName> = {\n info: 'info',\n success: 'check',\n warning: 'info',\n error: 'close',\n};\n\n@Component({\n selector: 'ngxsp-notifications',\n standalone: true,\n imports: [SmartPlayerIconComponent],\n template: `\n @if (page; as data) {\n <div class=\"ngxsp-notifications-head\">\n <div>\n <h1>{{ data.title }}</h1>\n @if (data.summary) { <p>{{ data.summary }}</p> }\n </div>\n @if (data.markAllLabel && hasUnread) {\n <button class=\"ngxsp-notifications-button\" type=\"button\" (click)=\"markAllRead.emit()\">{{ data.markAllLabel }}</button>\n }\n </div>\n @for (group of data.groups; track group.id) {\n <section class=\"ngxsp-notifications-group\" [attr.aria-labelledby]=\"'ngxsp-notifications-' + group.id\">\n <h2 [id]=\"'ngxsp-notifications-' + group.id\">{{ group.title }}</h2>\n <ul>\n @for (entry of group.entries; track entry.id) {\n <li class=\"ngxsp-notifications-entry\" [class.unread]=\"entry.unread\" [attr.data-kind]=\"entry.kind || 'info'\">\n <span class=\"ngxsp-notifications-tile\" aria-hidden=\"true\">\n <ngxsp-smart-icon [name]=\"entry.icon || iconFor(entry)\" />\n @if (entry.unread) { <i></i> }\n </span>\n <span class=\"ngxsp-notifications-copy\">\n <strong>{{ entry.title }}</strong>\n @if (entry.body) { <small>{{ entry.body }}</small> }\n </span>\n @if (entry.action; as action) {\n <button class=\"ngxsp-notifications-button\" type=\"button\" (click)=\"entryAction.emit({ id: entry.id, actionId: action.id })\">{{ action.label }}</button>\n }\n @if (entry.ago) { <time>{{ entry.ago }}</time> }\n </li>\n }\n </ul>\n </section>\n } @empty {\n @if (data.emptyLabel) { <p class=\"ngxsp-notifications-empty\">{{ data.emptyLabel }}</p> }\n }\n }\n `,\n styles: [`\n :host{\n --_surface:var(--ngxsp-settings-surface, rgb(255 255 255 / .04));\n --_text:var(--ngxsp-settings-text, currentColor);\n --_muted:var(--ngxsp-settings-muted, rgb(127 127 127));\n --_line:var(--ngxsp-settings-line, rgb(127 127 127 / .3));\n --_accent:var(--ngxsp-settings-accent, #5b5bd6);\n --_success:var(--ngxsp-notifications-success, #3ecf8e);\n --_warning:var(--ngxsp-notifications-warning, #f2a93b);\n --_danger:var(--ngxsp-notifications-danger, #f25f5c);\n display:grid;\n gap:22px;\n max-width:860px;\n color:var(--_text);\n }\n .ngxsp-notifications-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px}\n .ngxsp-notifications-head h1{margin:0;font-size:21px;font-weight:600;letter-spacing:-.2px}\n .ngxsp-notifications-head p{margin:5px 0 0;color:var(--_muted);font-size:12px}\n .ngxsp-notifications-group{display:grid;gap:10px}\n .ngxsp-notifications-group h2{margin:0;font-size:13px;font-weight:600;color:var(--_muted)}\n .ngxsp-notifications-group ul{margin:0;padding:0;list-style:none;display:grid;gap:8px}\n .ngxsp-notifications-entry{\n display:flex;\n flex-wrap:wrap;\n align-items:flex-start;\n gap:13px;\n padding:13px 14px;\n border:1px solid var(--_line);\n border-radius:12px;\n }\n /* Not seen yet: the row carries a tint of the accent, as the board draws it. */\n .ngxsp-notifications-entry.unread{background:color-mix(in srgb, var(--_accent) 7%, transparent)}\n .ngxsp-notifications-tile{\n position:relative;\n flex:none;\n display:grid;\n place-items:center;\n width:34px;\n height:34px;\n border-radius:9px;\n background:var(--_surface);\n color:var(--_muted);\n }\n .ngxsp-notifications-tile ngxsp-smart-icon{width:17px;height:17px}\n .ngxsp-notifications-tile i{\n position:absolute;\n left:-2px;\n top:-2px;\n width:8px;\n height:8px;\n border-radius:50%;\n background:var(--_accent);\n box-shadow:0 0 0 2px var(--ngxsp-notifications-dot-ring, rgb(0 0 0 / .4));\n }\n .ngxsp-notifications-entry[data-kind=\"success\"] .ngxsp-notifications-tile{background:color-mix(in srgb, var(--_success) 14%, transparent);color:var(--_success)}\n .ngxsp-notifications-entry[data-kind=\"warning\"] .ngxsp-notifications-tile{background:color-mix(in srgb, var(--_warning) 14%, transparent);color:var(--_warning)}\n .ngxsp-notifications-entry[data-kind=\"error\"] .ngxsp-notifications-tile{background:color-mix(in srgb, var(--_danger) 14%, transparent);color:var(--_danger)}\n .ngxsp-notifications-copy{flex:1 1 220px;min-width:0;display:grid;gap:3px}\n .ngxsp-notifications-copy strong{font-size:12.5px;font-weight:600;overflow-wrap:anywhere}\n .ngxsp-notifications-copy small{color:var(--_muted);font-size:11.5px;line-height:1.5;overflow-wrap:anywhere}\n .ngxsp-notifications-entry time{flex:none;color:var(--_muted);font-size:11px;white-space:nowrap}\n .ngxsp-notifications-button{\n flex:none;\n height:28px;\n padding:0 12px;\n border:1px solid var(--_line);\n border-radius:14px;\n background:transparent;\n color:var(--_text);\n font:inherit;\n font-size:12px;\n cursor:pointer;\n }\n .ngxsp-notifications-head .ngxsp-notifications-button{height:30px;padding:0 13px}\n .ngxsp-notifications-button:hover{background:var(--_surface)}\n .ngxsp-notifications-empty{margin:0;color:var(--_muted);font-size:12px}\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartNotificationsComponent {\n @Input() page: SmartNotificationsPage | null = null;\n /** The entry's own action was pressed. */\n @Output() entryAction = new EventEmitter<{ id: string; actionId: string }>();\n @Output() markAllRead = new EventEmitter<void>();\n\n get hasUnread(): boolean {\n return (this.page?.groups ?? []).some((group) => group.entries.some((entry) => entry.unread));\n }\n\n iconFor(entry: SmartNotification): SmartPlayerIconName {\n return KIND_ICONS[entry.kind ?? 'info'];\n }\n}\n","import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\n\n/** How a stated value reads: plainly, well, worth a look, or wrong. */\nexport type SmartSettingTone = 'neutral' | 'success' | 'warning' | 'danger';\n\nexport interface SmartSettingOption {\n id: string;\n label: string;\n}\n\n/** A line of a list setting, such as a library folder. */\nexport interface SmartSettingEntry {\n id: string;\n label: string;\n detail?: string;\n /** An entry the listener always keeps, such as a folder the app owns: it is shown without its remove button. */\n fixed?: boolean;\n}\n\ninterface SmartSettingBase {\n id: string;\n label: string;\n description?: string;\n}\n\n/**\n * One setting. The host owns every value and hears what the listener asks for through the component's outputs:\n * - `switch`: on or off;\n * - `choice`: one of a few options, shown side by side;\n * - `swatches`: one of a few colours, shown as the colours themselves — a name for a colour is\n * a worse way to pick one than the colour, and each still carries its name for the people who\n * are not picking by eye;\n * - `list`: entries the listener can remove one by one, with an optional action for the whole list;\n * - `action`: a button that does something now (scan again, clear a cache);\n * - `secret`: something typed that must not be read over a shoulder, sent when it is submitted\n * and never held afterwards — the field empties itself, and the host is the only one that\n * ever sees what was typed;\n * - `status`: something the application states rather than offers — a format it reads, a cache\n * it holds, a player that is ready. Nothing to set: the board's own words for the section it\n * belongs to are \"ce que l'application constate — rien à régler ici\".\n */\n/** One colour to pick from, drawn as itself. */\nexport interface SmartSettingSwatch {\n id: string;\n /** The colour, as CSS writes one. */\n color: string;\n /** What it is called — the only thing a reader who does not see the dot has to go on. */\n label: string;\n}\n\nexport type SmartSettingItem =\n | (SmartSettingBase & { kind: 'switch'; value: boolean; disabled?: boolean })\n | (SmartSettingBase & { kind: 'choice'; value: string; options: SmartSettingOption[] })\n | (SmartSettingBase & { kind: 'swatches'; value: string; options: SmartSettingSwatch[] })\n | (SmartSettingBase & { kind: 'list'; entries: SmartSettingEntry[]; removeLabel: string; emptyLabel?: string; actionLabel?: string; busy?: boolean })\n | (SmartSettingBase & { kind: 'action'; actionLabel: string; busy?: boolean; disabled?: boolean })\n | (SmartSettingBase & { kind: 'status'; value?: string; tone?: SmartSettingTone })\n | (SmartSettingBase & {\n kind: 'secret';\n actionLabel: string;\n placeholder?: string;\n /** A second field, when what is typed has to be given twice — an old code and a new one. */\n secondPlaceholder?: string;\n /** Digits only, which is what a device's own lock screen asks for. */\n digits?: boolean;\n busy?: boolean;\n disabled?: boolean;\n });\n\nexport interface SmartSettingsSection {\n id: string;\n title: string;\n /** What the section is about, in one line under its title, as the shared board writes it. */\n description?: string;\n items: SmartSettingItem[];\n}\n\nexport interface SmartSettingChange {\n id: string;\n value: boolean | string;\n /** A `secret` setting's second field, when it has one: the old code beside the new one. */\n previous?: string;\n}\n\n/** An action: a list's own action (no entry), the removal of one of its entries, or an action setting. */\nexport interface SmartSettingAction {\n id: string;\n entryId?: string;\n}\n\n/**\n * The settings of a player, grouped in sections. Colours come from the host through CSS variables\n * (`--ngxsp-settings-surface`, `-text`, `-muted`, `-line`, `-control`, `-accent`, `-accent-text`, `-radius`).\n */\n@Component({\n selector: 'ngxsp-settings',\n standalone: true,\n imports: [SmartPlayerIconComponent],\n template: `\n @for (section of sections; track section.id) {\n <section class=\"ngxsp-settings-section\" [attr.aria-labelledby]=\"'ngxsp-settings-' + section.id\">\n <h2 [id]=\"'ngxsp-settings-' + section.id\">{{ section.title }}</h2>\n @if (section.description) { <p class=\"ngxsp-settings-hint\">{{ section.description }}</p> }\n <ul class=\"ngxsp-settings-items\">\n @for (item of section.items; track item.id) {\n <li class=\"ngxsp-settings-item\" [class.stacked]=\"item.kind === 'list'\" [class.wraps]=\"item.kind === 'choice' || item.kind === 'action'\">\n <span class=\"ngxsp-settings-copy\">\n <strong [id]=\"'ngxsp-setting-' + item.id\">{{ item.label }}</strong>\n @if (item.description) { <small [id]=\"'ngxsp-setting-help-' + item.id\">{{ item.description }}</small> }\n </span>\n @switch (item.kind) {\n @case ('switch') {\n <button class=\"ngxsp-settings-switch\" type=\"button\" role=\"switch\" [attr.aria-checked]=\"item.value\" [disabled]=\"item.disabled\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\" [attr.aria-describedby]=\"item.description ? 'ngxsp-setting-help-' + item.id : null\" (click)=\"settingChange.emit({ id: item.id, value: !item.value })\">\n <span class=\"ngxsp-settings-knob\" aria-hidden=\"true\"></span>\n </button>\n }\n @case ('choice') {\n <span class=\"ngxsp-settings-choice\" role=\"group\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\">\n @for (option of item.options; track option.id) {\n <button type=\"button\" [class.active]=\"option.id === item.value\" [attr.aria-pressed]=\"option.id === item.value\" (click)=\"option.id !== item.value && settingChange.emit({ id: item.id, value: option.id })\">{{ option.label }}</button>\n }\n </span>\n }\n @case ('swatches') {\n <span class=\"ngxsp-settings-swatches\" role=\"group\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\">\n @for (option of item.options; track option.id) {\n <button\n class=\"ngxsp-settings-swatch\"\n type=\"button\"\n [class.active]=\"option.id === item.value\"\n [style.--ngxsp-swatch]=\"option.color\"\n [title]=\"option.label\"\n [attr.aria-label]=\"option.label\"\n [attr.aria-pressed]=\"option.id === item.value\"\n (click)=\"option.id !== item.value && settingChange.emit({ id: item.id, value: option.id })\"\n ></button>\n }\n </span>\n }\n @case ('secret') {\n <form class=\"ngxsp-settings-secret\" (submit)=\"submitSecret($event, item.id)\">\n @if (item.secondPlaceholder) {\n <input\n #firstSecret\n type=\"password\"\n autocomplete=\"off\"\n [attr.inputmode]=\"item.digits ? 'numeric' : null\"\n [attr.placeholder]=\"item.secondPlaceholder\"\n [attr.aria-label]=\"item.secondPlaceholder\"\n [disabled]=\"item.disabled || item.busy\"\n />\n }\n <input\n #secondSecret\n type=\"password\"\n autocomplete=\"off\"\n [attr.inputmode]=\"item.digits ? 'numeric' : null\"\n [attr.placeholder]=\"item.placeholder ?? null\"\n [attr.aria-label]=\"item.placeholder ?? item.label\"\n [attr.aria-describedby]=\"item.description ? 'ngxsp-setting-help-' + item.id : null\"\n [disabled]=\"item.disabled || item.busy\"\n />\n <button class=\"ngxsp-settings-button\" type=\"submit\" [disabled]=\"item.disabled || item.busy\">{{ item.actionLabel }}</button>\n </form>\n }\n @case ('status') {\n @if (item.value) { <span class=\"ngxsp-settings-tag\" [attr.data-tone]=\"item.tone || 'neutral'\">{{ item.value }}</span> }\n }\n @case ('action') {\n <button class=\"ngxsp-settings-button\" type=\"button\" [disabled]=\"item.disabled || item.busy\" [attr.aria-describedby]=\"item.description ? 'ngxsp-setting-help-' + item.id : null\" (click)=\"settingAction.emit({ id: item.id })\">{{ item.actionLabel }}</button>\n }\n @case ('list') {\n <ul class=\"ngxsp-settings-entries\" [attr.aria-labelledby]=\"'ngxsp-setting-' + item.id\">\n @for (entry of item.entries; track entry.id) {\n <li>\n <span class=\"ngxsp-settings-entry\"><span>{{ entry.label }}</span>@if (entry.detail) { <small>{{ entry.detail }}</small> }</span>\n @if (!entry.fixed) {\n <button class=\"ngxsp-settings-remove\" type=\"button\" [title]=\"item.removeLabel\" [attr.aria-label]=\"item.removeLabel + ' - ' + entry.label\" [disabled]=\"item.busy\" (click)=\"settingAction.emit({ id: item.id, entryId: entry.id })\">\n <ngxsp-smart-icon name=\"close\" />\n </button>\n }\n </li>\n } @empty {\n @if (item.emptyLabel) { <li class=\"empty\">{{ item.emptyLabel }}</li> }\n }\n </ul>\n @if (item.actionLabel) {\n <button class=\"ngxsp-settings-button\" type=\"button\" [disabled]=\"item.busy\" (click)=\"settingAction.emit({ id: item.id })\">{{ item.actionLabel }}</button>\n }\n }\n }\n </li>\n }\n </ul>\n </section>\n }\n `,\n styles: [`\n :host{\n --_surface:var(--ngxsp-settings-surface, rgb(255 255 255 / .04));\n --_text:var(--ngxsp-settings-text, currentColor);\n --_muted:var(--ngxsp-settings-muted, rgb(127 127 127));\n --_line:var(--ngxsp-settings-line, rgb(127 127 127 / .3));\n --_control:var(--ngxsp-settings-control, rgb(127 127 127 / .2));\n --_accent:var(--ngxsp-settings-accent, #5b5bd6);\n --_accent-text:var(--ngxsp-settings-accent-text, #fff);\n --_success:var(--ngxsp-settings-success, #3ecf8e);\n --_warning:var(--ngxsp-settings-warning, #f2a93b);\n --_danger:var(--ngxsp-settings-danger, #f25f5c);\n --_radius:var(--ngxsp-settings-radius, 10px);\n display:grid;\n /* Two columns where there is room for two, one where there is not. The board lays the\n sections side by side: in one column the page was a scroll long enough to lose the end\n of it, and half the width went unused. */\n grid-template-columns:repeat(auto-fill, minmax(320px, 1fr));\n /* \"Where there is room\" is the whole of it, and without this the grid decided for itself.\n A grid item is min-width:auto, so this host asked its parent for its max-content width —\n two tracks and the gap between them, 660px — and got it, whatever the window. On an iPad\n held upright the page had 376px to give: the second column was laid off-screen with no\n horizontal scroll to reach it, so the code, the folders and the offline copies could not\n be opened at all. Measured on 03/11/2026 at 834x1194: 376 held, 684 asked. App Review\n refused the video player that day under Guideline 4, a crowded interface. */\n min-width:0;\n align-items:start;\n gap:14px 20px;\n max-width:980px;\n color:var(--_text);\n }\n /* A section is a card of its own, as the board draws it: its name, what it is about, and its\n rows separated by a line rather than by a gap. */\n .ngxsp-settings-section{\n display:grid;\n gap:0;\n padding:4px 14px;\n border:1px solid var(--_line);\n border-radius:12px;\n background:var(--_surface);\n }\n h2{margin:12px 0 4px;font-size:13px;font-weight:600;color:var(--_text)}\n .ngxsp-settings-hint{margin:0 0 10px;color:var(--_muted);font-size:11.5px;line-height:1.45}\n .ngxsp-settings-items{margin:0;padding:0;list-style:none;display:grid;gap:0}\n .ngxsp-settings-item{display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:11px 0;border-top:1px solid var(--_line);background:transparent}\n .ngxsp-settings-item:first-child{border-top:0}\n .ngxsp-settings-item.stacked{display:grid;justify-content:stretch}\n /* A choice or a button goes under its text when the text would otherwise shrink to a thin column (side panels). */\n .ngxsp-settings-item.wraps{flex-wrap:wrap}\n .ngxsp-settings-item.wraps .ngxsp-settings-copy{flex:1 1 220px}\n .ngxsp-settings-copy{min-width:0;display:grid;gap:4px}\n .ngxsp-settings-copy strong{font-size:14px;font-weight:600}\n .ngxsp-settings-copy small{font-size:12px;line-height:1.45;color:var(--_muted)}\n .ngxsp-settings-switch{position:relative;flex:0 0 auto;width:42px;height:24px;padding:0;border:1px solid var(--_line);border-radius:999px;background:var(--_control);cursor:pointer;transition:background-color .16s ease, border-color .16s ease}\n .ngxsp-settings-knob{position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(0 0 0 / .3);transition:transform .16s ease}\n .ngxsp-settings-switch[aria-checked=\"true\"]{border-color:var(--_accent);background:var(--_accent)}\n .ngxsp-settings-switch[aria-checked=\"true\"] .ngxsp-settings-knob{transform:translateX(18px)}\n .ngxsp-settings-choice{flex:0 0 auto;display:inline-flex;padding:2px;gap:2px;border:1px solid var(--_line);border-radius:999px;background:var(--_control)}\n .ngxsp-settings-swatches{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px}\n .ngxsp-settings-swatch{\n width:20px;height:20px;flex:0 0 auto;padding:0;\n border:0;border-radius:50%;background:var(--ngxsp-swatch, currentColor);cursor:pointer;\n box-shadow:0 0 0 2px var(--_surface);\n }\n .ngxsp-settings-swatch:hover{box-shadow:0 0 0 2px var(--_muted)}\n /* The one in force is ringed in the page's own text colour, which reads on any swatch. */\n .ngxsp-settings-swatch.active{box-shadow:0 0 0 2px var(--_text)}\n .ngxsp-settings-swatch:focus-visible{outline:2px solid var(--_text);outline-offset:3px}\n .ngxsp-settings-choice button{height:28px;padding:0 12px;border:0;border-radius:999px;background:transparent;color:var(--_text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}\n .ngxsp-settings-choice button.active{background:var(--_accent);color:var(--_accent-text)}\n .ngxsp-settings-button{justify-self:start;flex:0 0 auto;height:32px;padding:0 14px;border:1px solid var(--_line);border-radius:999px;background:var(--_control);color:var(--_text);font:inherit;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}\n .ngxsp-settings-tag{\n flex:0 0 auto;\n padding:3px 9px;\n border-radius:11px;\n background:var(--_control);\n color:var(--_muted);\n font-size:11px;\n font-weight:600;\n white-space:nowrap;\n }\n .ngxsp-settings-tag[data-tone=\"success\"]{background:color-mix(in srgb, var(--_success) 14%, transparent);color:var(--_success)}\n .ngxsp-settings-tag[data-tone=\"warning\"]{background:color-mix(in srgb, var(--_warning) 14%, transparent);color:var(--_warning)}\n .ngxsp-settings-tag[data-tone=\"danger\"]{background:color-mix(in srgb, var(--_danger) 14%, transparent);color:var(--_danger)}\n .ngxsp-settings-button:disabled,.ngxsp-settings-switch:disabled,.ngxsp-settings-remove:disabled{opacity:.5;cursor:default}\n .ngxsp-settings-secret{display:flex;align-items:center;gap:8px;min-width:0}\n .ngxsp-settings-secret input{\n flex:1 1 96px;\n min-width:0;\n height:32px;\n padding:0 10px;\n border:1px solid var(--_line);\n border-radius:8px;\n background:var(--_control);\n color:var(--_text);\n font:inherit;\n font-size:12px;\n letter-spacing:.14em;\n }\n .ngxsp-settings-secret input::placeholder{color:var(--_muted);letter-spacing:0}\n\n /* iOS magnifies the page when a field takes focus with a font under 16px - typing a code was\n enough to zoom the whole interface. On a touch screen the fields are 16px; a pointer keeps\n the compact size, where the zoom never happens. */\n @media (hover: none) {\n .ngxsp-settings-secret input{font-size:16px}\n }\n .ngxsp-settings-entries{margin:0;padding:0;list-style:none;display:grid;gap:4px}\n .ngxsp-settings-entries li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 8px 8px 12px;border:1px solid var(--_line);border-radius:8px}\n .ngxsp-settings-entries li.empty{display:block;color:var(--_muted);font-size:12px}\n .ngxsp-settings-entry{min-width:0;display:grid;gap:2px;font-size:13px}\n .ngxsp-settings-entry small{overflow:hidden;color:var(--_muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-settings-remove{flex:0 0 auto;width:30px;height:30px;display:grid;place-items:center;padding:0;border:0;border-radius:8px;background:transparent;color:var(--_muted);cursor:pointer}\n .ngxsp-settings-remove:hover{background:var(--_control);color:var(--_text)}\n .ngxsp-settings-remove ngxsp-smart-icon{width:16px;height:16px}\n button:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}\n @media (max-width:560px){\n .ngxsp-settings-secret{flex-wrap:wrap}\n /* It has to be allowed to shrink before it can wrap: sized by its own content, the group\n never reached the width where wrapping begins, and a long pair of choices — \"Suivant,\n deux fois pour précédent\" beside \"Ne rien faire\" — ran out of the card on a phone. */\n .ngxsp-settings-choice{flex:0 1 auto;flex-wrap:wrap;max-width:100%}\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartSettingsComponent {\n @Input() sections: SmartSettingsSection[] = [];\n @Output() settingChange = new EventEmitter<SmartSettingChange>();\n @Output() settingAction = new EventEmitter<SmartSettingAction>();\n\n /**\n * Sends what was typed and empties the fields at once. Nothing secret stays in the component:\n * the host is the only place it goes, and it does not come back through an input.\n */\n protected submitSecret(event: Event, id: string): void {\n event.preventDefault();\n const form = event.target as HTMLFormElement;\n const inputs = Array.from(form.querySelectorAll('input')) as HTMLInputElement[];\n const value = inputs.at(-1)?.value ?? '';\n const previous = inputs.length > 1 ? inputs[0].value : undefined;\n inputs.forEach((input) => { input.value = ''; });\n if (!value) return;\n this.settingChange.emit({ id, value, ...(previous === undefined ? {} : { previous }) });\n }\n}\n","import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, Input, Output, ViewChild } from '@angular/core';\n\nlet nextDialogId = 0;\n\n/**\n * A question the user answers before anything happens (another device asking to send its playback here). The\n * cautious answer has the focus and Escape; the dialog stays until one of the two buttons is pressed. Colours come\n * from the host through CSS variables (`--ngxsp-dialog-surface`, `-text`, `-muted`, `-line`, `-accent`,\n * `-accent-text`, `-radius`).\n */\n@Component({\n selector: 'ngxsp-confirm-dialog',\n standalone: true,\n template: `\n <div class=\"ngxsp-dialog-backdrop\" role=\"presentation\">\n <section class=\"ngxsp-dialog\" role=\"alertdialog\" aria-modal=\"true\" [attr.aria-labelledby]=\"id + '-title'\" [attr.aria-describedby]=\"id + '-message'\">\n <h2 [id]=\"id + '-title'\">{{ title }}</h2>\n <p [id]=\"id + '-message'\">{{ message }}</p>\n <div class=\"ngxsp-dialog-actions\">\n <button #cancelButton class=\"ngxsp-dialog-button\" type=\"button\" (click)=\"cancelled.emit()\">{{ cancelLabel }}</button>\n <button class=\"ngxsp-dialog-button primary\" type=\"button\" (click)=\"confirmed.emit()\">{{ confirmLabel }}</button>\n </div>\n </section>\n </div>\n `,\n styles: [`\n :host{\n --_surface:var(--ngxsp-dialog-surface, #17181d);\n --_text:var(--ngxsp-dialog-text, #ededf0);\n --_muted:var(--ngxsp-dialog-muted, #a3a5ae);\n --_line:var(--ngxsp-dialog-line, rgb(255 255 255 / .13));\n --_accent:var(--ngxsp-dialog-accent, #5b5bd6);\n --_accent-text:var(--ngxsp-dialog-accent-text, #fff);\n --_radius:var(--ngxsp-dialog-radius, 14px);\n }\n .ngxsp-dialog-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:rgb(5 6 8 / .6);backdrop-filter:blur(2px)}\n .ngxsp-dialog{width:min(420px, 100%);display:grid;gap:12px;padding:20px;border:1px solid var(--_line);border-radius:var(--_radius);background:var(--_surface);color:var(--_text);box-shadow:0 24px 64px rgb(0 0 0 / .45)}\n h2{margin:0;font-size:17px;font-weight:650;line-height:1.3}\n p{margin:0;color:var(--_muted);font-size:14px;line-height:1.5}\n .ngxsp-dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:4px}\n .ngxsp-dialog-button{min-height:36px;padding:0 16px;border:1px solid var(--_line);border-radius:999px;background:transparent;color:var(--_text);font:inherit;font-size:13px;font-weight:600;cursor:pointer}\n .ngxsp-dialog-button.primary{border-color:var(--_accent);background:var(--_accent);color:var(--_accent-text)}\n .ngxsp-dialog-button:focus-visible{outline:2px solid var(--_accent);outline-offset:2px}\n `],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SmartConfirmDialogComponent implements AfterViewInit {\n @Input() title = '';\n @Input() message = '';\n @Input() confirmLabel = 'OK';\n @Input() cancelLabel = 'Cancel';\n @Output() confirmed = new EventEmitter<void>();\n @Output() cancelled = new EventEmitter<void>();\n @ViewChild('cancelButton') private cancelButton?: ElementRef<HTMLButtonElement>;\n protected readonly id = `ngxsp-dialog-${++nextDialogId}`;\n\n ngAfterViewInit(): void {\n this.cancelButton?.nativeElement.focus({ preventScroll: true });\n }\n\n @HostListener('document:keydown.escape', ['$event'])\n protected onEscape(event: Event): void {\n event.preventDefault();\n this.cancelled.emit();\n }\n}\n","import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';\nimport { PlayerError } from '@ngxsp/core';\n\n/**\n * What the error card says, for a host that speaks another language.\n *\n * Everything else the player shows takes its words from the host; this card did not, so a French\n * application answered a failed film with \"Playback error\" and a \"Retry\" button.\n */\nexport interface PlayerOverlayLabels {\n retry: string;\n play: string;\n engineMissing: string;\n engineMissingHint: string;\n autoplayBlocked: string;\n autoplayBlockedHint: string;\n networkError: string;\n networkErrorHint: string;\n decodeError: string;\n formatNotSupported: string;\n playbackError: string;\n unknownError: string;\n}\n\nexport const DEFAULT_PLAYER_OVERLAY_LABELS: PlayerOverlayLabels = {\n retry: 'Retry',\n play: 'Play',\n engineMissing: 'Playback engine missing',\n engineMissingHint: 'This source requires an additional engine. Install @ngxsp/engine-shaka and pass it via [engines].',\n autoplayBlocked: 'Click to start playback',\n autoplayBlockedHint: 'Your browser blocked autoplay. Press Play to start.',\n networkError: 'Network error',\n networkErrorHint: 'Check your connection or try again.',\n decodeError: 'Decode error',\n formatNotSupported: 'Format not supported',\n playbackError: 'Playback error',\n unknownError: 'Unknown error',\n};\n\n/**\n * Surcouches du lecteur : carte d'erreur de lecture et panneau de diagnostic.\n * Extrait du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).\n * Sans accès au moteur : reçoit l'erreur/diagnostic en entrée et émet les actions.\n */\n@Component({\n selector: 'ngxsp-player-overlays',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (error()) {\n <div class=\"ngxsp-overlay\" role=\"alert\">\n <div class=\"ngxsp-overlay-card\">\n <span class=\"ngxsp-overlay-icon\" aria-hidden=\"true\">!</span>\n <div class=\"ngxsp-overlay-title\">{{ title() }}</div>\n <div class=\"ngxsp-overlay-msg\">{{ hint() }}</div>\n <div class=\"ngxsp-overlay-actions\">\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"retry.emit()\">{{ words().retry }}</button>\n @if (autoplayBlocked()) {\n <button type=\"button\" class=\"ngxsp-btn primary\" (click)=\"requestPlay.emit()\">{{ words().play }}</button>\n }\n </div>\n </div>\n </div>\n }\n\n @if (debug()) {\n <details class=\"ngxsp-debug\">\n <summary>Debug</summary>\n <div class=\"ngxsp-debug-actions\">\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"copyJson.emit()\">Copy JSON</button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"downloadJson.emit()\">Download</button>\n </div>\n <pre>{{ debugJson() }}</pre>\n </details>\n }\n `,\n styles: `\n :host { display: contents; }\n .ngxsp-btn{height:32px;padding:0 14px;border:1px solid rgb(255 255 255 / .16);border-radius:6px;background:rgb(255 255 255 / .06);color:#fff;font:inherit;font-size:13px;font-weight:500;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px}\n .ngxsp-btn:hover{background:rgb(255 255 255 / .12)}\n .ngxsp-btn.primary{border-color:transparent;background:var(--nsp-accent-strong, #5d63ee)}\n .ngxsp-btn:focus-visible{outline:2px solid var(--nsp-media-accent, #8b90ff);outline-offset:2px}\n .ngxsp-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;padding:24px;background:rgb(0 0 0 / .78);text-align:center}\n .ngxsp-overlay-card{display:grid;justify-items:center;gap:8px;max-width:440px}\n .ngxsp-overlay-icon{width:40px;height:40px;display:grid;place-items:center;margin-bottom:4px;border-radius:999px;background:rgb(242 95 92 / .16);color:var(--nsp-danger, #f25f5c);font-size:18px;font-weight:700}\n .ngxsp-overlay-title{font-size:16px;font-weight:600;color:#fff}\n .ngxsp-overlay-msg{color:rgb(255 255 255 / .7);font-size:13px;line-height:1.5}\n .ngxsp-overlay-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:8px}\n .ngxsp-debug{position:absolute;top:12px;right:12px;z-index:6;margin:0;max-width:min(420px, calc(100% - 24px));opacity:0;transform:translateY(-6px);transition:opacity .18s ease, transform .18s ease;color:#fff}\n :host-context(.ngxsp-ui-visible) .ngxsp-debug,\n .ngxsp-debug[open]{opacity:1;transform:translateY(0)}\n .ngxsp-debug summary{cursor:pointer;list-style:none;width:max-content;margin-left:auto;padding:4px 10px;border-radius:999px;background:rgb(0 0 0 / .6);color:rgb(255 255 255 / .8);font-size:12px}\n .ngxsp-debug[open]{padding:12px;max-height:calc(100% - 24px);overflow:auto;border-radius:10px;background:rgb(18 19 23 / .96);box-shadow:0 12px 32px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08)}\n .ngxsp-debug-actions{display:flex;gap:8px;margin:8px 0;flex-wrap:wrap}\n .ngxsp-debug pre{margin:0;white-space:pre-wrap;word-break:break-word;font-family:var(--nsp-font-mono, ui-monospace, Menlo, monospace);font-size:11px}\n `,\n})\nexport class PlayerOverlaysComponent {\n readonly error = input<PlayerError | null>(null);\n readonly debug = input(false);\n readonly debugJson = input('{}');\n /** The host's own words for this card; anything it leaves out keeps the English default. */\n readonly labels = input<Partial<PlayerOverlayLabels>>({});\n private readonly words = computed<PlayerOverlayLabels>(() => ({ ...DEFAULT_PLAYER_OVERLAY_LABELS, ...this.labels() }));\n\n readonly retry = output<void>();\n readonly requestPlay = output<void>();\n readonly copyJson = output<void>();\n readonly downloadJson = output<void>();\n\n private readonly code = computed(() => this.error()?.code ?? 'UNKNOWN');\n\n readonly autoplayBlocked = computed(() => this.code() === 'AUTOPLAY_BLOCKED');\n\n readonly title = computed(() => {\n const words = this.words();\n switch (this.code()) {\n case 'ENGINE_MISSING':\n return words.engineMissing;\n case 'AUTOPLAY_BLOCKED':\n return words.autoplayBlocked;\n case 'NETWORK_HTTP':\n return words.networkError;\n case 'DECODE_ERROR':\n return words.decodeError;\n case 'SRC_NOT_SUPPORTED':\n return words.formatNotSupported;\n default:\n return words.playbackError;\n }\n });\n\n readonly hint = computed(() => {\n const words = this.words();\n switch (this.code()) {\n case 'ENGINE_MISSING':\n return words.engineMissingHint;\n case 'AUTOPLAY_BLOCKED':\n return words.autoplayBlockedHint;\n case 'NETWORK_HTTP':\n return words.networkErrorHint;\n default:\n // What the engine said, which is the only thing that names the file or the format.\n return this.error()?.message ? String(this.error()!.message) : words.unknownError;\n }\n });\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { MediaTrack } from '@ngxsp/core';\n\nexport type PlayerMenuKind = 'tracks' | 'speed' | 'captions' | null;\n\n/** The words of the player's menus; English by default. */\nexport interface PlayerMenuLabels {\n captions: string;\n off: string;\n audio: string;\n singleAudio: string;\n quality: string;\n auto: string;\n singleQuality: string;\n speed: string;\n /** Title of the subtitles menu, and of its button. */\n subtitles: string;\n /** Before the name of the subtitles shown now. */\n current: string;\n noSubtitles: string;\n loadSubtitles: string;\n tracks: string;\n media: string;\n /** Locale for the names of languages (\"fr\" becomes \"French\"); the device's by default. */\n locale?: string;\n}\n\nexport const DEFAULT_PLAYER_MENU_LABELS: PlayerMenuLabels = {\n captions: 'Captions',\n off: 'Off',\n audio: 'Audio',\n singleAudio: 'Single audio track',\n quality: 'Quality',\n auto: 'Auto',\n singleQuality: 'Single quality',\n speed: 'Playback speed',\n subtitles: 'Subtitles',\n current: 'Showing',\n noSubtitles: 'No subtitles in this video yet.',\n loadSubtitles: 'Load a file (SRT, VTT)…',\n tracks: 'Tracks',\n media: 'Media',\n};\n\n/**\n * Menu de pistes (sous-titres / audio / qualité) et de vitesse de lecture.\n * Extrait du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).\n * Sans logique de lecture : émet des événements, l'hôte applique l'action.\n */\n@Component({\n selector: 'ngxsp-player-menu',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n @if (openMenu() === 'tracks') {\n <div class=\"ngxsp-menu\">\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().captions }}</div>\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === null\" (click)=\"selectText.emit(null)\">{{ labels().off }}</button>\n @for (track of textTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === track.id\" (click)=\"selectText.emit(track.id)\">\n {{ trackLabel(track) }}\n </button>\n }\n </div>\n\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().audio }}</div>\n @if (audioTracks().length) {\n @for (track of audioTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedAudioTrackId() === track.id\" (click)=\"selectAudio.emit(track.id)\">\n {{ trackLabel(track) }}\n </button>\n }\n } @else {\n <div class=\"ngxsp-menuHint\">{{ labels().singleAudio }}</div>\n }\n </div>\n\n @if (!isAudioMode()) {\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().quality }}</div>\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedVideoTrackId() === null\" (click)=\"selectVideo.emit(null)\">{{ labels().auto }}</button>\n @if (videoTracks().length) {\n @for (track of videoTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedVideoTrackId() === track.id\" (click)=\"selectVideo.emit(track.id)\">\n {{ qualityLabel(track) }}\n </button>\n }\n } @else {\n <div class=\"ngxsp-menuHint\">{{ labels().singleQuality }}</div>\n }\n </div>\n }\n </div>\n }\n\n @if (openMenu() === 'speed') {\n <div class=\"ngxsp-menu ngxsp-menuCompact\">\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().speed }}</div>\n @for (rate of playbackRates(); track rate) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"playbackRate() === rate\" (click)=\"selectRate.emit(rate)\">\n {{ rate }}x\n </button>\n }\n </div>\n </div>\n }\n\n @if (openMenu() === 'captions') {\n <div class=\"ngxsp-menu ngxsp-menuCompact ngxsp-menuCaptions\">\n <div class=\"ngxsp-menuSection\">\n <div class=\"ngxsp-menuTitle\">{{ labels().subtitles }}</div>\n <div class=\"ngxsp-menuCurrent\">{{ labels().current }} <strong>{{ currentTextLabel() }}</strong></div>\n <div class=\"ngxsp-menuScroll\" role=\"group\" [attr.aria-label]=\"labels().subtitles\">\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === null\" [attr.aria-pressed]=\"selectedTextTrackId() === null\" (click)=\"selectText.emit(null)\">{{ labels().off }}</button>\n @for (track of textTracks(); track track.id) {\n <button type=\"button\" class=\"ngxsp-menuItem\" [class.active]=\"selectedTextTrackId() === track.id\" [attr.aria-pressed]=\"selectedTextTrackId() === track.id\" (click)=\"selectText.emit(track.id)\">\n <span class=\"ngxsp-menuItemLabel\">{{ trackLabel(track) }}</span>\n @if (track.language && track.label) { <small>{{ languageName(track.language) }}</small> }\n </button>\n }\n </div>\n @if (!textTracks().length) { <div class=\"ngxsp-menuHint\">{{ labels().noSubtitles }}</div> }\n <button type=\"button\" class=\"ngxsp-menuItem ngxsp-menuAction\" (click)=\"loadSubtitles.emit()\">{{ labels().loadSubtitles }}</button>\n </div>\n </div>\n }\n `,\n styles: `\n :host { display: block; }\n .ngxsp-menu{display:grid;grid-template-columns:repeat(auto-fit, minmax(160px, 1fr));gap:12px;margin:6px 0 4px;padding:12px;border-radius:10px;background:rgb(18 19 23 / .92);box-shadow:0 12px 32px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08);backdrop-filter:blur(16px)}\n .ngxsp-menuCompact{grid-template-columns:minmax(160px, 220px);justify-self:end}\n .ngxsp-menuSection{display:flex;flex-direction:column;gap:2px}\n .ngxsp-menuTitle{padding:0 8px 6px;font-size:12px;font-weight:600;color:rgb(255 255 255 / .6)}\n .ngxsp-menuItem{height:32px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:rgb(255 255 255 / .9);text-align:left;cursor:pointer;font:inherit;font-size:13px}\n .ngxsp-menuItem:hover{background:rgb(255 255 255 / .1)}\n .ngxsp-menuItem.active{background:rgb(139 144 255 / .18);color:var(--nsp-media-accent, #8b90ff);font-weight:500}\n .ngxsp-menuItem:focus-visible{outline:2px solid var(--nsp-media-accent, #8b90ff);outline-offset:-2px}\n .ngxsp-menuHint{font-size:12px;color:rgb(255 255 255 / .6);padding:6px 8px}\n .ngxsp-menuCaptions{grid-template-columns:minmax(200px, 280px)}\n .ngxsp-menuCurrent{padding:0 8px 8px;font-size:12px;color:rgb(255 255 255 / .6);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-menuCurrent strong{color:rgb(255 255 255 / .92);font-weight:600}\n .ngxsp-menuScroll{display:flex;flex-direction:column;gap:2px;max-height:min(36vh, 232px);overflow:auto;overscroll-behavior:contain}\n .ngxsp-menuItem{display:flex;align-items:center;gap:8px;flex:none}\n .ngxsp-menuItemLabel{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n .ngxsp-menuItem small{flex:none;font-size:11px;color:rgb(255 255 255 / .55)}\n .ngxsp-menuAction{margin-top:6px;border-top:1px solid rgb(255 255 255 / .1);border-radius:0 0 6px 6px;color:var(--nsp-media-accent, #8b90ff)}\n @media (max-width: 860px){ .ngxsp-menu{grid-template-columns:1fr} }\n `,\n})\nexport class PlayerMenuComponent {\n readonly openMenu = input<PlayerMenuKind>(null);\n readonly isAudioMode = input(false);\n readonly textTracks = input<MediaTrack[]>([]);\n readonly audioTracks = input<MediaTrack[]>([]);\n readonly videoTracks = input<MediaTrack[]>([]);\n readonly selectedTextTrackId = input<string | null>(null);\n readonly selectedAudioTrackId = input<string | null>(null);\n readonly selectedVideoTrackId = input<string | null>(null);\n readonly playbackRates = input<number[]>([]);\n readonly playbackRate = input(1);\n readonly labels = input<PlayerMenuLabels>(DEFAULT_PLAYER_MENU_LABELS);\n\n readonly selectText = output<string | null>();\n readonly selectAudio = output<string>();\n readonly selectVideo = output<string | null>();\n readonly selectRate = output<number>();\n /** \"Load a file\" in the subtitles menu: the host opens its file picker. */\n readonly loadSubtitles = output<void>();\n\n currentTextLabel(): string {\n const track = this.textTracks().find((entry) => entry.id === this.selectedTextTrackId());\n return track ? this.trackLabel(track) : this.labels().off;\n }\n\n /** \"French\" for \"fr\", in the labels' locale. */\n languageName(code: string): string {\n try {\n return new Intl.DisplayNames(this.labels().locale ? [this.labels().locale as string] : undefined, { type: 'language' }).of(code) ?? code;\n } catch {\n return code;\n }\n }\n\n trackLabel(track: MediaTrack): string {\n return track.label || (track.language ? this.languageName(track.language) : track.id);\n }\n\n qualityLabel(track: MediaTrack): string {\n if (track.label) return track.label;\n const parts: string[] = [];\n if (track.height) parts.push(`${track.height}p`);\n if (track.bandwidth) parts.push(`${(track.bandwidth / 1_000_000).toFixed(1)} Mbps`);\n return parts.join(' • ') || track.id;\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\nimport { NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl, formatTime, type SourceProfile } from '@ngxsplayer/ngx-smart-player-ui-core';\n\nexport type RepeatMode = 'off' | 'one' | 'all';\nexport type PlayerMenuKind = 'tracks' | 'speed';\n\n/**\n * Barre de contrôle du skin classique, extraite du SmartPlayerComponent\n * (décomposition, cf. docs/AUDIT.md). Sans accès au moteur ni au <video> :\n * reçoit l'état + les capacités (cast/PiP) en entrée et émet les commandes ;\n * l'hôte applique l'action (et possède l'élément vidéo pour PiP/cast).\n */\n@Component({\n selector: 'ngxsp-player-controls',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmartPlayerIconComponent, NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl],\n template: `\n <div class=\"ngxsp-controls\">\n <ngxsp-play-button class=\"ngxsp-btn\" [playing]=\"playing()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pause\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"play\" />\n }\n </ngxsp-play-button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"seekRelative.emit(-10)\" aria-label=\"Seek backward 10 seconds\" title=\"Seek backward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-back\" />\n </button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"seekRelative.emit(10)\" aria-label=\"Seek forward 10 seconds\" title=\"Seek forward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-forward\" />\n </button>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"prev.emit()\" [disabled]=\"!canPrev()\" aria-label=\"Previous item\" title=\"Previous item\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"prev\" /></button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"next.emit()\" [disabled]=\"!canNext()\" aria-label=\"Next item\" title=\"Next item\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"next\" /></button>\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"shuffleActive()\" (click)=\"toggleShuffle.emit()\" [attr.title]=\"shuffleLabel()\" [attr.aria-label]=\"shuffleLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"shuffle\" />\n </button>\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"repeatMode() !== 'off'\" (click)=\"cycleRepeat.emit()\" [attr.title]=\"repeatLabel()\" [attr.aria-label]=\"repeatLabel()\">\n @if (repeatMode() === 'one') {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat-one\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat\" />\n }\n </button>\n }\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"openMenu.emit('tracks')\" [attr.title]=\"tracksLabel()\" [attr.aria-label]=\"tracksLabel()\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"tracks\" /></button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"captions.emit()\" [attr.title]=\"captionsLabel()\" [attr.aria-label]=\"captionsLabel()\">\n @if (captionsActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions-off\" />\n }\n </button>\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"openMenu.emit('speed')\" [attr.title]=\"speedLabel()\" [attr.aria-label]=\"speedLabel()\"><ngxsp-smart-icon class=\"ngxsp-icon\" name=\"speed\" /></button>\n @if (showAirPlay()) {\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"airPlayActive()\" (click)=\"airPlay.emit()\" [attr.title]=\"airPlayLabel()\" [attr.aria-label]=\"airPlayLabel()\">\n @if (airPlayActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"airplay-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"airplay\" />\n }\n </button>\n }\n @if (showCast()) {\n <button type=\"button\" class=\"ngxsp-btn\" [class.accent]=\"castActive()\" (click)=\"cast.emit()\" [attr.title]=\"castHint()\" [attr.aria-label]=\"castLabel()\">\n @if (castActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"cast-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"cast\" />\n }\n </button>\n }\n @if (!isAudioMode() && pipSupported()) {\n <button type=\"button\" class=\"ngxsp-btn\" (click)=\"pip.emit()\" [attr.title]=\"pipLabel()\" [attr.aria-label]=\"pipLabel()\">\n @if (pipActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip\" />\n }\n </button>\n }\n <ngxsp-volume-control\n class=\"ngxsp-volumeControl\"\n [volume]=\"volume()\"\n [volumeLabel]=\"volumeLabel()\"\n [muteLabel]=\"muteLabel()\"\n [unmuteLabel]=\"unmuteLabel()\"\n (muteToggle)=\"mute.emit()\"\n (volumeChange)=\"volumeChange.emit($event)\"\n />\n\n <ngxsp-time-slider\n style=\"flex:1 1 160px; min-width:160px\"\n [currentTime]=\"currentTime()\"\n [duration]=\"duration()\"\n [buffered]=\"buffered()\"\n [profile]=\"profile()\"\n (seek)=\"scrub.emit($event)\"\n />\n\n <div class=\"ngxsp-time\">{{ fmtTime(currentTime()) }} / {{ fmtTime(duration()) }}</div>\n\n </div>\n `,\n styles: `\n :host { display: block; }\n .ngxsp-controls{display:flex;gap:8px;align-items:center;padding:10px;flex-wrap:wrap}\n .ngxsp-btn{background:linear-gradient(180deg, rgba(19,34,54,.92), rgba(11,21,35,.92));border:1px solid var(--ngxsp-border, rgba(148,163,184,.18));color:var(--ngxsp-text, #e6eef8);border-radius:12px;padding:8px 10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(2,6,23,.18);transition:border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease}\n .ngxsp-btn.accent{background:linear-gradient(180deg, rgba(20,48,74,.96), rgba(13,33,53,.96));border-color:var(--ngxsp-border-strong, rgba(191,219,254,.24));color:#d8f3ff}\n .ngxsp-btn:hover{border-color:rgba(191,219,254,.34); background:linear-gradient(180deg, rgba(24,46,71,.94), rgba(12,27,44,.94))}\n .ngxsp-btn:disabled{opacity:.38; cursor:not-allowed}\n .ngxsp-btn:focus-visible{outline:none; box-shadow:var(--ngxsp-focus-ring, 0 0 0 3px rgb(108 182 255 / .5))}\n .ngxsp-icon{width:18px;height:18px;display:block;flex:0 0 auto}\n .ngxsp-time{color:var(--ngxsp-text-dim, rgba(230,238,248,.72));font-variant-numeric:tabular-nums}\n .ngxsp-volumeControl{\n --ngxsp-control-size: 38px;\n --ngxsp-volume-range-max: 140px;\n --ngxsp-volume-button-bg: linear-gradient(180deg, rgba(19,34,54,.92), rgba(11,21,35,.92));\n --ngxsp-volume-button-border: 1px solid var(--ngxsp-border, rgba(148,163,184,.18));\n --ngxsp-volume-accent: var(--nsp-accent, #7dd3fc);\n --ngxsp-volume-thumb-bg: var(--nsp-text, #f8fbff);\n color: var(--ngxsp-text, #e6eef8);\n }\n @media (max-width: 640px){\n .ngxsp-controls{padding:8px;gap:6px}\n .ngxsp-btn{padding:7px 9px;border-radius:10px}\n .ngxsp-icon{width:16px;height:16px}\n }\n `,\n})\nexport class PlayerControlsComponent {\n readonly playing = input(false);\n readonly isAudioMode = input(false);\n readonly hasPlaylistControls = input(false);\n readonly canPrev = input(false);\n readonly canNext = input(false);\n readonly shuffleActive = input(false);\n readonly shuffleLabel = input('Shuffle: off');\n readonly repeatMode = input<RepeatMode>('off');\n readonly repeatLabel = input('Repeat: off');\n readonly captionsActive = input(false);\n readonly tracksLabel = input('Tracks');\n readonly captionsLabel = input('Load subtitles');\n readonly speedLabel = input('1x');\n readonly volumeLabel = input('Volume');\n readonly muteLabel = input('Mute');\n readonly unmuteLabel = input('Restore sound');\n readonly showAirPlay = input(false);\n readonly airPlayActive = input(false);\n readonly airPlayLabel = input('AirPlay');\n readonly showCast = input(false);\n readonly castActive = input(false);\n readonly castLabel = input('Play on device');\n readonly castHint = input('');\n readonly pipSupported = input(false);\n readonly pipActive = input(false);\n readonly pipLabel = input('PiP');\n readonly volume = input(1);\n readonly currentTime = input(0);\n readonly duration = input(0);\n readonly buffered = input(0);\n readonly profile = input<SourceProfile>('vod');\n\n readonly playToggle = output<void>();\n readonly seekRelative = output<number>();\n readonly prev = output<void>();\n readonly next = output<void>();\n readonly toggleShuffle = output<void>();\n readonly cycleRepeat = output<void>();\n readonly openMenu = output<PlayerMenuKind>();\n readonly captions = output<void>();\n readonly airPlay = output<void>();\n readonly cast = output<void>();\n readonly pip = output<void>();\n readonly mute = output<void>();\n readonly scrub = output<number>();\n readonly volumeChange = output<number>();\n\n /** One implementation, in `formatTime`: five copies of this is how the one on the video\n * chrome came to print `Infinity:NaN:NaN` while the others did not. */\n fmtTime(sec: number): string {\n return formatTime(sec);\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output, computed } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\nimport { NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl, formatTime, type NgxspTimelineMarker, type SourceProfile } from '@ngxsplayer/ngx-smart-player-ui-core';\nimport type { RepeatMode, PlayerMenuKind } from './player-controls.component';\n\n/**\n * Barre de contrôle du skin vod (top bar + center dock + bottom bar),\n * extraite du SmartPlayerComponent (décomposition, cf. docs/AUDIT.md).\n * Le menu pistes/vitesse est projeté par l'hôte via <ng-content>.\n * PiP/cast restent au parent (propriétaire du <video>) : capacités en entrée,\n * commandes en sortie.\n */\n/** What the cast chip says in each of its states, for a host that speaks another language. */\nexport interface CastLabels {\n play: string;\n playing: string;\n connecting: string;\n playHint: string;\n playingHint: string;\n connectingHint: string;\n unavailableHint: string;\n}\n\nexport const DEFAULT_CAST_LABELS: CastLabels = {\n play: 'Play on device',\n playing: 'Playing on remote device',\n connecting: 'Connecting to remote device',\n playHint: 'Choose a device on your local network.',\n playingHint: 'This media is currently playing on a nearby device.',\n connectingHint: 'Trying to connect to a nearby playback device.',\n unavailableHint: 'Available when your platform supports remote playback on the same network.',\n};\n\n@Component({\n selector: 'ngxsp-player-controls-vod',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmartPlayerIconComponent, NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl],\n template: `\n <div class=\"ngxsp-vod-top\">\n <div class=\"ngxsp-vod-titleWrap\">\n <div class=\"ngxsp-vod-eyebrow\">{{ isAudioMode() ? nowListeningLabel() : nowPlayingLabel() }}</div>\n <div class=\"ngxsp-vod-title\">{{ displayTitle() }}</div>\n </div>\n <div class=\"ngxsp-vod-spacer\"></div>\n <div class=\"ngxsp-vod-status\" [attr.data-state]=\"playing() ? 'playing' : 'idle'\">{{ statusLabel() }}</div>\n @if (!isAudioMode()) {\n <div class=\"ngxsp-vod-topHint\">{{ fullscreenHintLabel() }}</div>\n }\n </div>\n\n <div class=\"ngxsp-vod-centerDock\">\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-side\" (click)=\"prev.emit()\" [disabled]=\"!canPrev()\" [attr.aria-label]=\"previousLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"prev\" />\n </button>\n }\n <button type=\"button\" class=\"ngxsp-vod-side ngxsp-vod-side-wide\" (click)=\"seekRelative.emit(-10)\" aria-label=\"Seek backward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-back\" />\n </button>\n <ngxsp-play-button class=\"ngxsp-vod-center\" [playing]=\"playing()\" [playLabel]=\"playLabel()\" [pauseLabel]=\"pauseLabel()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) {\n <ngxsp-smart-icon class=\"ngxsp-icon ngxsp-icon-lg\" name=\"pause\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon ngxsp-icon-lg\" name=\"play\" />\n }\n </ngxsp-play-button>\n <button type=\"button\" class=\"ngxsp-vod-side ngxsp-vod-side-wide\" (click)=\"seekRelative.emit(10)\" aria-label=\"Seek forward 10 seconds\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"seek-forward\" />\n </button>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-side\" (click)=\"next.emit()\" [disabled]=\"!canNext()\" [attr.aria-label]=\"nextLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"next\" />\n </button>\n }\n </div>\n\n <div class=\"ngxsp-controls ngxsp-vod-bottom\">\n <div class=\"ngxsp-vod-metaRow\">\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-prev\" (click)=\"prev.emit()\" [disabled]=\"!canPrev()\" [attr.title]=\"previousLabel()\" [attr.aria-label]=\"previousLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"prev\" />\n </button>\n }\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-play\" (click)=\"playToggle.emit()\" [attr.title]=\"playing() ? pauseLabel() : playLabel()\" [attr.aria-label]=\"playing() ? pauseLabel() : playLabel()\">\n @if (playing()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pause\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"play\" />\n }\n </button>\n @if (hasPlaylistControls()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-next\" (click)=\"next.emit()\" [disabled]=\"!canNext()\" [attr.title]=\"nextLabel()\" [attr.aria-label]=\"nextLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"next\" />\n </button>\n }\n <!-- Where it is, and how long it runs. A window too narrow for both says the one a\n viewer asks for at that size — how much is left — which is what the mini window's\n board draws in its place. -->\n <div class=\"ngxsp-vod-time\">{{ fmtTime(currentTime()) }} / {{ fmtTime(duration()) }}</div>\n <div class=\"ngxsp-vod-remaining\">{{ fmtRemaining(currentTime(), duration()) }}</div>\n <div class=\"ngxsp-vod-volumeGroup\">\n <ngxsp-volume-control\n class=\"ngxsp-vod-volumeControl\"\n [compact]=\"true\"\n [volume]=\"volume()\"\n [volumeLabel]=\"volumeLabel()\"\n [muteLabel]=\"muteLabel()\"\n [unmuteLabel]=\"unmuteLabel()\"\n (muteToggle)=\"mute.emit()\"\n (volumeChange)=\"volumeChange.emit($event)\"\n />\n </div>\n <ng-content select=\"[ngxsp-player-inline-controls]\" />\n <div class=\"ngxsp-vod-spacer\"></div>\n @if (hasPlaylistControls() && showPlaylistModes()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-playlist\" [class.accent]=\"shuffleActive()\" (click)=\"toggleShuffle.emit()\" [attr.title]=\"shuffleLabel()\" [attr.aria-label]=\"shuffleLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"shuffle\" />\n </button>\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-playlist\" [class.accent]=\"repeatMode() !== 'off'\" (click)=\"cycleRepeat.emit()\" [attr.title]=\"repeatLabel()\" [attr.aria-label]=\"repeatLabel()\">\n @if (repeatMode() === 'one') {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat-one\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"repeat\" />\n }\n </button>\n }\n @if (showTracks()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-tracks\" (click)=\"openMenu.emit('tracks')\" [attr.title]=\"tracksLabel()\" [attr.aria-label]=\"tracksLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"tracks\" />\n </button>\n }\n @if (showCaptions()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-captions\" (click)=\"captions.emit()\" [attr.title]=\"captionsLabel()\" [attr.aria-label]=\"captionsLabel()\">\n @if (captionsActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"captions-off\" />\n }\n </button>\n }\n <!--\n The rate itself, as a pill: what it is shows at a glance. Its name says what pressing it\n does as well — read out, \"1x, button\" told nobody that this is where the speed is chosen,\n while every other chip on this bar names its own job.\n -->\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-speed\" (click)=\"openMenu.emit('speed')\" [attr.title]=\"speedTitle()\" [attr.aria-label]=\"speedTitle()\">\n <span class=\"ngxsp-vod-speedBadge\">{{ speedBadge() }}</span>\n </button>\n <!--\n The host's own buttons that belong on this side rather than beside the picture controls:\n where the picture goes, and what follows it. Its others arrive before the spacer, above.\n -->\n <ng-content select=\"[ngxsp-player-inline-trailing]\" />\n @if (showAirPlay()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-airplay\" [class.accent]=\"airPlayActive()\" (click)=\"airPlay.emit()\" [attr.title]=\"airPlayLabel()\" [attr.aria-label]=\"airPlayLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" [name]=\"airPlayActive() ? 'airplay-active' : 'airplay'\" />\n </button>\n }\n @if (showCast()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-cast\" [class.accent]=\"castActive()\" (click)=\"cast.emit()\" [attr.title]=\"castHint() || castLabel()\" [attr.aria-label]=\"castLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" [name]=\"castActive() ? 'devices-active' : 'devices'\" />\n </button>\n }\n @if (!isAudioMode()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-fullscreen\" (click)=\"fullscreen.emit()\" [attr.title]=\"fullscreenLabel()\" [attr.aria-label]=\"fullscreenLabel()\">\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"fullscreen\" />\n </button>\n }\n @if (!isAudioMode() && pipSupported()) {\n <button type=\"button\" class=\"ngxsp-vod-chip ngxsp-vod-chip-pip\" (click)=\"pip.emit()\" [attr.title]=\"pipLabel()\" [attr.aria-label]=\"pipLabel()\">\n @if (pipActive()) {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip-active\" />\n } @else {\n <ngxsp-smart-icon class=\"ngxsp-icon\" name=\"pip\" />\n }\n </button>\n }\n </div>\n\n <ngxsp-time-slider\n class=\"ngxsp-vod-range\"\n [currentTime]=\"currentTime()\"\n [duration]=\"duration()\"\n [buffered]=\"buffered()\"\n [profile]=\"profile()\"\n [durationHintSec]=\"timelineDurationSec()\"\n [markers]=\"timelineMarkers()\"\n (seek)=\"scrub.emit($event)\"\n />\n\n <ng-content select=\"ngxsp-player-menu\" />\n </div>\n `,\n styles: `\n :host { display: contents; }\n .ngxsp-icon{width:20px;height:20px;display:block;flex:0 0 auto}\n .ngxsp-icon-lg{width:28px;height:28px}\n .ngxsp-vod-top{position:absolute;left:0;right:0;top:0;display:flex;align-items:flex-start;gap:12px;padding:16px 18px 40px;background:linear-gradient(to bottom, rgb(0 0 0 / .62), rgb(0 0 0 / 0));pointer-events:none;opacity:0;transition:opacity .2s ease;z-index:3}\n :host-context(.ngxsp-ui-visible) .ngxsp-vod-top{opacity:1}\n .ngxsp-vod-titleWrap{min-width:0;display:flex;flex-direction:column;gap:2px}\n .ngxsp-vod-eyebrow{font-size:12px;font-weight:600;color:rgb(255 255 255 / .72)}\n .ngxsp-vod-title{font-weight:600;font-size:16px;color:#fff;text-shadow:0 1px 2px rgb(0 0 0 / .5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n .ngxsp-vod-topHint{display:none}\n .ngxsp-vod-status{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;background:rgb(0 0 0 / .45);color:rgb(255 255 255 / .86);font-size:11px;font-weight:500;backdrop-filter:blur(8px)}\n .ngxsp-vod-status::before{content:'';width:6px;height:6px;border-radius:50%;background:rgb(255 255 255 / .5)}\n .ngxsp-vod-status[data-state='playing']::before{background:var(--nsp-success, #3ecf8e)}\n .ngxsp-vod-spacer{flex:1}\n .ngxsp-vod-centerDock{position:absolute;inset:0;margin:auto;width:max-content;height:max-content;display:flex;align-items:center;gap:20px;z-index:4;opacity:0;visibility:hidden;transform:scale(.96);transition:opacity .2s ease, transform .2s ease, visibility 0s linear .2s;pointer-events:none}\n :host-context(.ngxsp-ui-visible) .ngxsp-vod-centerDock{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition:opacity .2s ease, transform .2s ease, visibility 0s}\n :host-context(.ngxsp-root[data-kind='error']) .ngxsp-vod-centerDock,\n :host-context(.ngxsp-root[data-kind='error']) .ngxsp-vod-top{display:none}\n .ngxsp-vod-center{height:68px;width:68px;border-radius:999px;border:0;background:rgb(255 255 255 / .94);color:#0d0e11;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 40px rgb(0 0 0 / .45);transition:transform .15s ease, background-color .15s ease}\n .ngxsp-vod-center:hover{transform:scale(1.05);background:#fff}\n .ngxsp-vod-side{position:relative;height:48px;min-width:48px;width:48px;border-radius:999px;border:0;background:rgb(0 0 0 / .45);color:#fff;padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;backdrop-filter:blur(10px);transition:background-color .15s ease}\n .ngxsp-vod-side-wide{min-width:48px}\n .ngxsp-vod-side-wide .ngxsp-icon{width:24px;height:24px}\n .ngxsp-vod-side:hover{background:rgb(0 0 0 / .65)}\n .ngxsp-vod-bottom{position:absolute;left:0;right:0;bottom:0;padding:40px 14px 8px;background:linear-gradient(180deg, rgb(0 0 0 / 0), rgb(0 0 0 / .55) 45%, rgb(0 0 0 / .82));display:flex;flex-direction:column;align-items:stretch;gap:0;z-index:4;opacity:0;transition:opacity .2s ease}\n :host-context(.ngxsp-ui-visible) .ngxsp-vod-bottom{opacity:1}\n .ngxsp-vod-metaRow{display:flex;align-items:center;gap:4px;width:100%;min-height:40px}\n .ngxsp-vod-speedBadge{box-sizing:border-box;min-width:30px;padding:2px 5px;border:1.5px solid currentColor;border-radius:999px;font-size:11px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}\n .ngxsp-vod-time{padding:0 8px;color:rgb(255 255 255 / .92);font-variant-numeric:tabular-nums;font-size:12px;font-weight:500;white-space:nowrap}\n .ngxsp-vod-remaining{display:none;padding:0 6px;color:rgb(255 255 255 / .78);font-variant-numeric:tabular-nums;font-size:11px;font-weight:500;white-space:nowrap}\n .ngxsp-vod-range{\n order:-1;\n min-width:100%;\n min-height:32px;\n --ngxsp-track-size:4px;\n --ngxsp-track-bg:rgb(255 255 255 / .22);\n --ngxsp-buffered-bg:rgb(255 255 255 / .34);\n --ngxsp-accent:var(--nsp-media-accent, #8b90ff);\n --ngxsp-thumb-size:13px;\n --ngxsp-thumb-bg:#fff;\n --ngxsp-marker-width:2px;\n --ngxsp-marker-height:8px;\n --ngxsp-marker-bg:rgb(0 0 0 / .55);\n --ngxsp-marker-active-bg:#fff;\n --ngxsp-marker-active-shadow:none;\n --ngxsp-preview-bg:rgb(13 14 17 / .92);\n --ngxsp-preview-border:rgb(255 255 255 / .12);\n --ngxsp-preview-muted:rgb(255 255 255 / .64);\n }\n .ngxsp-vod-range:hover{--ngxsp-track-size:6px}\n .ngxsp-vod-volumeGroup{display:inline-flex;align-items:center}\n .ngxsp-vod-volumeControl{\n --ngxsp-control-size:36px;\n --ngxsp-volume-compact-min:72px;\n --ngxsp-volume-compact-max:104px;\n --ngxsp-volume-button-bg:transparent;\n --ngxsp-volume-button-border:0;\n --ngxsp-volume-button-radius:6px;\n --ngxsp-volume-accent:#fff;\n --ngxsp-volume-track-bg:rgb(255 255 255 / .28);\n --ngxsp-volume-thumb-bg:#fff;\n --ngxsp-volume-thumb-size:12px;\n --ngxsp-volume-thumb-shadow:none;\n --ngxsp-focus-ring:0 0 0 2px var(--nsp-media-accent, #8b90ff);\n color:#fff;\n }\n .ngxsp-vod-label{font-size:12px;color:rgb(255 255 255 / .64)}\n .ngxsp-vod-chip{position:relative;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;border:0;border-radius:6px;background:transparent;color:rgb(255 255 255 / .92);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .15s ease, color .15s ease}\n .ngxsp-vod-chip:hover:not(:disabled){background:rgb(255 255 255 / .12);color:#fff}\n .ngxsp-vod-chip:disabled{opacity:.4;cursor:default}\n .ngxsp-vod-chip.accent{color:var(--nsp-media-accent, #8b90ff)}\n .ngxsp-vod-chip-quiet{background:transparent}\n .ngxsp-vod-center:disabled,\n .ngxsp-vod-side:disabled{opacity:.38;cursor:not-allowed}\n .ngxsp-vod-center:focus-visible,\n .ngxsp-vod-side:focus-visible,\n .ngxsp-vod-chip:focus-visible{outline:2px solid var(--nsp-media-accent, #8b90ff);outline-offset:1px}\n .ngxsp-buffer{height:4px;border-radius:999px;background:rgb(255 255 255 / .12);overflow:hidden}\n .ngxsp-bufferFill{height:100%;border-radius:999px;background:var(--nsp-media-accent, #8b90ff)}\n @media (max-width: 860px){\n .ngxsp-vod-top{padding:12px 14px 28px}\n .ngxsp-vod-centerDock{gap:14px}\n .ngxsp-vod-center{height:58px;width:58px}\n .ngxsp-vod-side{height:42px;width:42px;min-width:42px}\n .ngxsp-vod-bottom{padding:36px 8px 6px}\n .ngxsp-vod-chip-speed,\n .ngxsp-vod-chip-tracks{display:none}\n }\n /* A mini window, told from a phone by its height: both are narrow, but a phone is tall and\n its own board keeps the two figures. Short and narrow is the window the board draws at\n 400 x 225, and there one of the two is all there is room for. */\n @media (max-width: 640px) and (max-height: 320px){\n .ngxsp-vod-time{display:none}\n .ngxsp-vod-remaining{display:block}\n }\n @media (max-width: 640px){\n .ngxsp-icon{width:18px;height:18px}\n .ngxsp-icon-lg{width:24px;height:24px}\n .ngxsp-vod-title{font-size:14px}\n .ngxsp-vod-status{display:none}\n .ngxsp-vod-time{font-size:11px;padding:0 4px}\n .ngxsp-vod-center{height:52px;width:52px}\n .ngxsp-vod-side{height:38px;width:38px;min-width:38px}\n /*\n The host's own buttons used to be hidden whole on a phone, which left a viewer watching a\n film with no way to turn on subtitles, to send the picture to a television, or to see what\n was queued: seven buttons, and none of them those. They stay, and the row takes a second\n line rather than dropping what it cannot fit on one.\n */\n .ngxsp-vod-metaRow{min-height:34px;gap:2px;flex-wrap:wrap;row-gap:4px}\n .ngxsp-vod-chip{width:32px;height:32px;min-width:32px;min-height:32px}\n .ngxsp-vod-bottom .ngxsp-vod-volumeControl.ngxsp-vc-compact ::ng-deep .ngxsp-vc-shell{grid-template-columns:32px 64px}\n .ngxsp-vod-bottom .ngxsp-vod-volumeControl.ngxsp-vc-compact ::ng-deep .ngxsp-vc-range{opacity:1;visibility:visible;transform:none;pointer-events:auto}\n .ngxsp-vod-chip-playlist,\n .ngxsp-vod-chip-captions,\n .ngxsp-vod-chip-pip,\n .ngxsp-vod-top,\n .ngxsp-vod-side{display:none}\n }\n @media (prefers-reduced-motion: reduce){\n .ngxsp-vod-top,.ngxsp-vod-centerDock,.ngxsp-vod-bottom,.ngxsp-vod-center,.ngxsp-vod-side,.ngxsp-vod-chip{transition:none}\n }\n `,\n})\nexport class PlayerControlsVodComponent {\n readonly playing = input(false);\n readonly isAudioMode = input(false);\n readonly displayTitle = input('Player');\n readonly nowPlayingLabel = input('Now playing');\n readonly nowListeningLabel = input('Now listening');\n readonly fullscreenHintLabel = input('Double-click for fullscreen');\n readonly statusLabel = input('Ready');\n readonly keyboardHint = input('');\n readonly hasPlaylistControls = input(false);\n /**\n * Off when shuffle and repeat are offered elsewhere by the host — in the menu it hangs off its\n * own button, say. The bar keeps the playlist's prev and next either way: they move the picture,\n * which is what a bar over a picture is for.\n */\n readonly showPlaylistModes = input(true);\n readonly canPrev = input(false);\n readonly canNext = input(false);\n readonly previousLabel = input('Previous item');\n readonly nextLabel = input('Next item');\n readonly playLabel = input('Play');\n readonly pauseLabel = input('Pause');\n readonly shuffleActive = input(false);\n readonly shuffleLabel = input('Shuffle: off');\n readonly repeatMode = input<RepeatMode>('off');\n readonly repeatLabel = input('Repeat: off');\n readonly captionsActive = input(false);\n readonly tracksLabel = input('Tracks');\n readonly captionsLabel = input('Load subtitles');\n readonly speedLabel = input('1x');\n /** What pressing the pill is for, which its value alone does not say. */\n readonly speedActionLabel = input('Playback speed');\n /** \"1×\", \"1.5×\": the rate on the speed pill. */\n readonly speedBadge = computed(() => this.speedLabel().replace(/x$/i, '×'));\n /** \"Playback speed 1x\": what the button is, then where it stands. */\n readonly speedTitle = computed(() => `${this.speedActionLabel()} ${this.speedLabel()}`);\n readonly volumeLabel = input('Volume');\n readonly muteLabel = input('Mute');\n readonly unmuteLabel = input('Restore sound');\n /** Off when the host carries the subtitles and the tracks itself, so they are not offered twice. */\n readonly showTracks = input(true);\n readonly showCaptions = input(true);\n readonly showAirPlay = input(false);\n readonly airPlayActive = input(false);\n readonly airPlayLabel = input('AirPlay');\n readonly showCast = input(false);\n readonly castActive = input(false);\n readonly castLabel = input('Play on device');\n readonly castHint = input('');\n readonly pipSupported = input(false);\n readonly pipActive = input(false);\n readonly pipLabel = input('PiP');\n readonly fullscreenLabel = input('Fullscreen');\n readonly volume = input(1);\n readonly currentTime = input(0);\n readonly duration = input(0);\n readonly buffered = input(0);\n readonly bufferPercent = input(0);\n readonly profile = input<SourceProfile>('vod');\n readonly timelineDurationSec = input(0);\n readonly timelineMarkers = input<ReadonlyArray<NgxspTimelineMarker>>([]);\n\n readonly playToggle = output<void>();\n readonly seekRelative = output<number>();\n readonly prev = output<void>();\n readonly next = output<void>();\n readonly toggleShuffle = output<void>();\n readonly cycleRepeat = output<void>();\n readonly openMenu = output<PlayerMenuKind>();\n readonly captions = output<void>();\n readonly airPlay = output<void>();\n readonly cast = output<void>();\n readonly pip = output<void>();\n readonly fullscreen = output<void>();\n readonly mute = output<void>();\n readonly scrub = output<number>();\n readonly volumeChange = output<number>();\n\n /** How much is left, which is what one reads at a glance: \"-18:02\". Empty while nothing is known. */\n fmtRemaining(current: number, total: number): string {\n if (!(total > 0)) return '';\n return `-${this.fmtTime(Math.max(0, total - (current || 0)))}`;\n }\n\n /** One implementation, in `formatTime`: five copies of this is how the one on the video\n * chrome came to print `Infinity:NaN:NaN` while the others did not. */\n fmtTime(sec: number): string {\n return formatTime(sec);\n }\n}\n","import { ChangeDetectionStrategy, Component, input, output } from '@angular/core';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\nimport {\n NgxspPlayButton,\n NgxspTimeSlider,\n NgxspVolumeControl,\n NgxspLabeledControl,\n NgxspLiveBadge,\n formatTime,\n type SourceProfile,\n} from '@ngxsplayer/ngx-smart-player-ui-core';\nimport type { PlayerMenuKind } from './player-controls.component';\n\n/**\n * Skin « édition » du lecteur : registre instrument (cf. docs/UX_VISION.md).\n * Titre display, coins francs, libellés en capitales, accent champagne, et le\n * traitement direct (NgxspLiveBadge + « Au direct ») en profil `live`.\n * Compose les primitives de @ngxsp/ui-core. Le menu est projeté via <ng-content>.\n */\n@Component({\n selector: 'ngxsp-player-controls-edition',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SmartPlayerIconComponent, NgxspPlayButton, NgxspTimeSlider, NgxspVolumeControl, NgxspLabeledControl, NgxspLiveBadge],\n template: `\n <div class=\"ed-top\">\n @if (profile() === 'live') {\n <ngxsp-live-badge [behindSec]=\"behindSec()\" />\n }\n <div class=\"ed-titleWrap\">\n <div class=\"ed-title\">{{ displayTitle() }}</div>\n <div class=\"ed-meta\">{{ metaLabel() }}</div>\n </div>\n <span class=\"ed-spacer\"></span>\n <div class=\"ed-status\">{{ statusLabel() }}</div>\n </div>\n\n <div class=\"ed-bottom\">\n <div class=\"ed-scrubRow\">\n <span class=\"ed-time\">{{ fmtTime(currentTime()) }}</span>\n <ngxsp-time-slider\n style=\"flex:1\"\n [currentTime]=\"currentTime()\"\n [duration]=\"duration()\"\n [buffered]=\"buffered()\"\n [profile]=\"profile()\"\n (seek)=\"scrub.emit($event)\"\n />\n <span class=\"ed-time ed-time-dim\">{{ profile() === 'live' ? liveLabel() : fmtTime(duration()) }}</span>\n </div>\n\n <div class=\"ed-controlsRow\">\n @if (profile() === 'live') {\n <button type=\"button\" class=\"ed-live\" (click)=\"goLive.emit()\">\n <ngxsp-smart-icon class=\"ed-icon\" name=\"next\" /> Au direct\n </button>\n <ngxsp-play-button class=\"ed-transport\" [playing]=\"playing()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) { <ngxsp-smart-icon class=\"ed-icon\" name=\"pause\" /> } @else { <ngxsp-smart-icon class=\"ed-icon\" name=\"play\" /> }\n </ngxsp-play-button>\n } @else {\n <button type=\"button\" class=\"ed-transport\" (click)=\"seekRelative.emit(-10)\" aria-label=\"Reculer 10 secondes\"><ngxsp-smart-icon class=\"ed-icon\" name=\"seek-back\" /></button>\n <ngxsp-play-button class=\"ed-transport ed-transport-primary\" [playing]=\"playing()\" (playToggle)=\"playToggle.emit()\">\n @if (playing()) { <ngxsp-smart-icon class=\"ed-icon\" name=\"pause\" /> } @else { <ngxsp-smart-icon class=\"ed-icon\" name=\"play\" /> }\n </ngxsp-play-button>\n <button type=\"button\" class=\"ed-transport\" (click)=\"seekRelative.emit(10)\" aria-label=\"Avancer 10 secondes\"><ngxsp-smart-icon class=\"ed-icon\" name=\"seek-forward\" /></button>\n }\n\n <span class=\"ed-spacer\"></span>\n\n @if (showCaptions()) {\n <ngxsp-labeled-control label=\"Sous-titres\" [pressed]=\"captionsActive()\" (activate)=\"captions.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"captionsActive() ? 'captions' : 'captions-off'\" /></ngxsp-labeled-control>\n }\n @if (showTracks()) {\n <ngxsp-labeled-control label=\"Pistes\" (activate)=\"openMenu.emit('tracks')\"><ngxsp-smart-icon class=\"ed-icon\" name=\"tracks\" /></ngxsp-labeled-control>\n }\n <ngxsp-labeled-control [label]=\"speedLabel()\" (activate)=\"openMenu.emit('speed')\"><ngxsp-smart-icon class=\"ed-icon\" name=\"speed\" /></ngxsp-labeled-control>\n @if (showAirPlay()) {\n <ngxsp-labeled-control [label]=\"airPlayLabel()\" [active]=\"airPlayActive()\" (activate)=\"airPlay.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"airPlayActive() ? 'airplay-active' : 'airplay'\" /></ngxsp-labeled-control>\n }\n @if (showCast()) {\n <ngxsp-labeled-control label=\"Diffuser\" [active]=\"castActive()\" (activate)=\"cast.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"castActive() ? 'cast-active' : 'cast'\" /></ngxsp-labeled-control>\n }\n @if (pipSupported()) {\n <ngxsp-labeled-control label=\"PiP\" [active]=\"pipActive()\" (activate)=\"pip.emit()\"><ngxsp-smart-icon class=\"ed-icon\" [name]=\"pipActive() ? 'pip-active' : 'pip'\" /></ngxsp-labeled-control>\n }\n <ngxsp-volume-control\n class=\"ed-volumeControl\"\n [compact]=\"true\"\n [volume]=\"volume()\"\n [volumeLabel]=\"volumeLabel()\"\n [muteLabel]=\"muteLabel()\"\n [unmuteLabel]=\"unmuteLabel()\"\n (muteToggle)=\"mute.emit()\"\n (volumeChange)=\"volumeChange.emit($event)\"\n />\n </div>\n\n <ng-content />\n </div>\n `,\n styles: `\n :host { display: contents; }\n .ed-icon { width: 20px; height: 20px; display: block; }\n .ed-top {\n position: absolute; left: 0; right: 0; top: 0; z-index: 3;\n display: flex; align-items: center; gap: 14px;\n padding: 18px 22px 14px;\n background: color-mix(in srgb, var(--nsp-bg, #14161b) 55%, transparent);\n border-bottom: 1px solid var(--nsp-line, rgb(255 255 255 / 0.1));\n opacity: 0; transition: opacity var(--nsp-dur, .18s) var(--nsp-ease, ease);\n }\n :host-context(.ngxsp-ui-visible) .ed-top { opacity: 1; }\n .ed-titleWrap { display: flex; flex-direction: column; gap: 6px; }\n .ed-title { font-size: 24px; font-weight: 500; letter-spacing: -.025em; line-height: 1; color: var(--nsp-text, #f4f2ec); }\n .ed-meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--nsp-text-2, #b4afa6); }\n .ed-status { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nsp-text-3, #7c776f); }\n .ed-spacer { flex: 1; }\n .ed-bottom {\n position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;\n display: flex; flex-direction: column; gap: 14px;\n padding: 16px 22px 18px;\n background: color-mix(in srgb, var(--nsp-bg, #14161b) 82%, transparent);\n border-top: 1px solid var(--nsp-line-strong, rgb(255 255 255 / 0.18));\n opacity: 0; transform: translateY(8px);\n transition: opacity var(--nsp-dur, .18s) var(--nsp-ease, ease), transform var(--nsp-dur, .18s) var(--nsp-ease, ease);\n }\n :host-context(.ngxsp-ui-visible) .ed-bottom { opacity: 1; transform: translateY(0); }\n .ed-scrubRow { display: flex; align-items: center; gap: 14px; }\n .ed-time { font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--nsp-text, #f4f2ec); }\n .ed-time-dim { color: var(--nsp-text-2, #b4afa6); }\n .ed-controlsRow { display: flex; align-items: center; gap: 6px; }\n .ed-transport {\n all: unset; box-sizing: border-box;\n width: 46px; height: 46px;\n display: inline-flex; align-items: center; justify-content: center;\n border: 1px solid var(--nsp-line-strong, rgb(255 255 255 / 0.18));\n border-radius: var(--nsp-radius-sharp, 3px);\n color: var(--nsp-text, #f4f2ec); cursor: pointer;\n }\n .ed-transport-primary { background: var(--nsp-accent, #e3b26a); color: var(--nsp-on-accent, #14161b); border: none; }\n .ed-transport:focus-visible { outline: none; box-shadow: var(--nsp-focus-ring, 0 0 0 3px rgb(227 178 106 / .55)); }\n .ed-live {\n all: unset; box-sizing: border-box; height: 46px; padding: 0 16px;\n display: inline-flex; align-items: center; gap: 8px;\n background: var(--nsp-live, #e5402a); color: #fff; cursor: pointer;\n border-radius: var(--nsp-radius-sharp, 3px);\n font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;\n }\n .ed-live:focus-visible { outline: none; box-shadow: var(--nsp-focus-ring, 0 0 0 3px rgb(227 178 106 / .55)); }\n .ed-volumeControl {\n --ngxsp-control-size: 46px;\n --ngxsp-volume-button-radius: var(--nsp-radius-sharp, 3px);\n --ngxsp-volume-button-bg: transparent;\n --ngxsp-volume-button-border: 1px solid var(--nsp-line-strong, rgb(255 255 255 / 0.18));\n --ngxsp-volume-accent: var(--nsp-accent, #e3b26a);\n --ngxsp-volume-compact-min: 96px;\n --ngxsp-volume-compact-max: 150px;\n --ngxsp-volume-color: var(--nsp-text, #f4f2ec);\n --ngxsp-focus-ring: var(--nsp-focus-ring, 0 0 0 3px rgb(227 178 106 / .55));\n }\n `,\n})\nexport class PlayerControlsEditionComponent {\n readonly profile = input<SourceProfile>('vod');\n readonly playing = input(false);\n readonly displayTitle = input('Player');\n readonly metaLabel = input('');\n readonly statusLabel = input('');\n readonly behindSec = input(0);\n readonly liveLabel = input('Direct');\n readonly captionsActive = input(false);\n /** Off when the host carries the subtitles and the tracks itself, so they are not offered twice. */\n readonly showTracks = input(true);\n readonly showCaptions = input(true);\n readonly speedLabel = input('1x');\n readonly showAirPlay = input(false);\n readonly airPlayActive = input(false);\n readonly airPlayLabel = input('AirPlay');\n readonly showCast = input(false);\n readonly castActive = input(false);\n readonly pipSupported = input(false);\n readonly pipActive = input(false);\n readonly volume = input(1);\n readonly volumeLabel = input('Volume');\n readonly muteLabel = input('Mute');\n readonly unmuteLabel = input('Restore sound');\n readonly currentTime = input(0);\n readonly duration = input(0);\n readonly buffered = input(0);\n\n readonly playToggle = output<void>();\n readonly seekRelative = output<number>();\n readonly openMenu = output<PlayerMenuKind>();\n readonly captions = output<void>();\n readonly airPlay = output<void>();\n readonly cast = output<void>();\n readonly pip = output<void>();\n readonly mute = output<void>();\n readonly scrub = output<number>();\n readonly volumeChange = output<number>();\n readonly goLive = output<void>();\n\n /** One implementation, in `formatTime`: five copies of this is how the one on the video\n * chrome came to print `Infinity:NaN:NaN` while the others did not. */\n fmtTime(sec: number): string {\n return formatTime(sec);\n }\n}\n","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewChild, inject } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { Subscription } from 'rxjs';\n\nimport { MediaTrack, PlayerConfig, PlayerState, PlayerPorts, PlayerError, createSsaiManifestRewritePlugin, decodeSubtitleBytes, describeSubtitleFile, playableDurationSec, subtitleTextToVtt, type EngineFactory } from '@ngxsp/core';\nimport { PlayerFacade } from '@ngxsp/core';\nimport { PlayerPlugin } from '@ngxsp/core';\nimport { formatTime, type NgxspTimelineMarker, type SourceProfile } from '@ngxsplayer/ngx-smart-player-ui-core';\nimport { DEFAULT_PLAYER_MENU_LABELS, PlayerMenuComponent, type PlayerMenuLabels } from './player-menu.component';\nimport { PlayerOverlaysComponent, type PlayerOverlayLabels } from './player-overlays.component';\nimport { PlayerControlsComponent } from './player-controls.component';\nimport { PlayerControlsVodComponent, DEFAULT_CAST_LABELS, type CastLabels } from './player-controls-vod.component';\nimport { PlayerControlsEditionComponent } from './player-controls-edition.component';\nimport { SmartPlayerIconComponent } from './smart-player-icon.component';\n\n/** A playback position and the media it was measured on. */\nexport interface SmartPlayerProgress {\n currentTime: number;\n duration: number;\n contentId?: string;\n sourceUrl?: string;\n}\n\n@Component({\n selector: 'ngx-smart-player',\n standalone: true,\n imports: [CommonModule, PlayerMenuComponent, PlayerOverlaysComponent, PlayerControlsComponent, PlayerControlsVodComponent, PlayerControlsEditionComponent, SmartPlayerIconComponent],\n template: `\n <div class=\"ngxsp-root\" [class.ngxsp-skin-vod]=\"uiSkin==='vod'\" [class.ngxsp-ui-visible]=\"uiVisible\" [class.ngxsp-mode-audio]=\"isAudioMode\" [class.ngxsp-mode-video]=\"!isAudioMode\" [attr.data-kind]=\"state?.kind\">\n <!-- Surface de présentation : interactions pointeur non essentielles, toutes\n dupliquées au clavier par @HostListener('document:keydown') (Espace/flèches/F/M/C)\n et par les contrôles focusables. -->\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -->\n <div class=\"ngxsp-video\" (dblclick)=\"onPrimarySurfaceDoubleClick()\" (mousemove)=\"onInteraction()\" (mouseenter)=\"onInteraction()\" (mouseleave)=\"onPointerLeave()\" (focusin)=\"onInteraction()\" (touchstart)=\"onInteraction(true)\" (click)=\"onRootClick($event)\">\n <video #video playsinline x-webkit-airplay=\"allow\" (timeupdate)=\"noop()\" (loadedmetadata)=\"onLoadedMetadata()\" (ended)=\"onEnded()\"></video>\n <!-- Subtitles loaded from a file, drawn here at the bottom of the picture, above the controls when they show. -->\n <div #captionsLayer class=\"ngxsp-captions\" [style.--ngxsp-caption-scale]=\"captionScale\" aria-hidden=\"true\"></div>\n @if (!isAudioMode) {\n <input #subtitleFileInput class=\"ngxsp-subtitleInput\" type=\"file\" accept=\".srt,.vtt,text/vtt,application/x-subrip\" hidden (change)=\"onSubtitleFileChosen($event)\" />\n }\n@if (isAudioMode && showAudioVisual) {\n<div class=\"ngxsp-audio-stage\" aria-hidden=\"true\">\n <div class=\"ngxsp-audio-disc\"></div>\n <div class=\"ngxsp-audio-copy\">\n <div class=\"ngxsp-audio-eyebrow\">Now Listening</div>\n <div class=\"ngxsp-audio-title\">{{displayTitle}}</div>\n <div class=\"ngxsp-audio-subtitle\">{{displaySubtitle}}</div>\n </div>\n <div class=\"ngxsp-audio-bars\">\n <span></span><span></span><span></span><span></span><span></span>\n </div>\n</div>\n}\n<ngxsp-player-overlays\n [error]=\"currentError\"\n [labels]=\"overlayLabels\"\n [debug]=\"debug\"\n [debugJson]=\"debugJson\"\n (retry)=\"reload()\"\n (requestPlay)=\"tryPlay()\"\n (copyJson)=\"copyDebug()\"\n (downloadJson)=\"downloadDebug()\"\n/>\n@if (surfaceGesture) {\n<div class=\"ngxsp-gesturePulse\" aria-hidden=\"true\">\n @if (surfaceGesture === 'pause') {\n <ngxsp-smart-icon name=\"pause\" />\n } @else {\n <ngxsp-smart-icon name=\"play\" />\n }\n</div>\n}\n\n @if (uiSkin==='vod') {\n <ngxsp-player-controls-vod\n [speedActionLabel]=\"playerMenuLabels.speed\"\n [showTracks]=\"showTrackControls\"\n [showCaptions]=\"showTrackControls\"\n [showPlaylistModes]=\"showPlaylistModes\"\n [playing]=\"state?.kind==='playing'\"\n [isAudioMode]=\"isAudioMode\"\n [displayTitle]=\"displayTitle\"\n [nowPlayingLabel]=\"nowPlayingLabel\"\n [nowListeningLabel]=\"nowListeningLabel\"\n [fullscreenHintLabel]=\"fullscreenHintLabel\"\n [statusLabel]=\"statusLabel()\"\n [keyboardHint]=\"keyboardHintLabel()\"\n [hasPlaylistControls]=\"hasPlaylistControls\"\n [canPrev]=\"canPrev\"\n [canNext]=\"canNext\"\n [previousLabel]=\"previousLabel\"\n [nextLabel]=\"nextLabel\"\n [playLabel]=\"playLabel\"\n [pauseLabel]=\"pauseLabel\"\n [shuffleActive]=\"shuffleActive\"\n [shuffleLabel]=\"shuffleLabel\"\n [repeatMode]=\"repeatMode\"\n [repeatLabel]=\"repeatLabel\"\n [captionsActive]=\"selectedTextTrackId !== null\"\n [tracksLabel]=\"tracksButtonLabel()\"\n [captionsLabel]=\"captionsLabel()\"\n [speedLabel]=\"playbackRateLabel()\"\n [volumeLabel]=\"outputVolumeLabel || volumeLabel()\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n [showAirPlay]=\"showAirPlayButton()\"\n [airPlayActive]=\"isAirPlayActive()\"\n [airPlayLabel]=\"airPlayLabel()\"\n (airPlay)=\"openAirPlayPicker()\"\n [showCast]=\"showCastButton() && showCastControl\"\n [castActive]=\"isCastActive()\"\n [castLabel]=\"castLabel()\"\n [castHint]=\"castHintLabel()\"\n [pipSupported]=\"isPiPSupported() && showPictureInPicture\"\n [pipActive]=\"isPiPActive()\"\n [pipLabel]=\"pipLabel()\"\n [fullscreenLabel]=\"fullscreenLabel\"\n [volume]=\"volume\"\n [currentTime]=\"currentTime\"\n [duration]=\"duration\"\n [buffered]=\"bufferAheadSec\"\n [bufferPercent]=\"bufferPercent()\"\n [profile]=\"sourceProfile\"\n [timelineDurationSec]=\"timelineDurationSec ?? 0\"\n [timelineMarkers]=\"timelineMarkers\"\n (playToggle)=\"requestPlaybackToggle()\"\n (seekRelative)=\"seekRel($event)\"\n (prev)=\"emitPrev()\"\n (next)=\"emitNext()\"\n (toggleShuffle)=\"toggleShuffle.emit()\"\n (cycleRepeat)=\"cycleRepeat.emit()\"\n (openMenu)=\"toggleMenu($event)\"\n (captions)=\"onCaptionsClick()\"\n (cast)=\"onCastClick()\"\n (pip)=\"togglePiP()\"\n (fullscreen)=\"toggleFullscreen()\"\n (mute)=\"toggleMute()\"\n (scrub)=\"onScrub($event)\"\n (volumeChange)=\"onVolume($event)\"\n >\n <div ngxsp-player-inline-controls class=\"ngxsp-inline-projection\">\n <ng-content select=\"[ngxsp-player-inline-controls]\" />\n </div>\n <div ngxsp-player-inline-trailing class=\"ngxsp-inline-projection\">\n <ng-content select=\"[ngxsp-player-inline-trailing]\" />\n </div>\n <ngxsp-player-menu\n [openMenu]=\"openMenu\"\n [isAudioMode]=\"isAudioMode\"\n [textTracks]=\"textTracks\"\n [audioTracks]=\"audioTracks\"\n [videoTracks]=\"videoTracks\"\n [selectedTextTrackId]=\"selectedTextTrackId\"\n [selectedAudioTrackId]=\"selectedAudioTrackId\"\n [selectedVideoTrackId]=\"selectedVideoTrackId\"\n [playbackRates]=\"playbackRates\"\n [playbackRate]=\"playbackRate\"\n [labels]=\"playerMenuLabels\"\n (loadSubtitles)=\"openSubtitlePicker()\"\n (selectText)=\"selectTextTrack($event)\"\n (selectAudio)=\"selectAudioTrack($event)\"\n (selectVideo)=\"selectVideoTrack($event)\"\n (selectRate)=\"setPlaybackRate($event)\"\n />\n </ngxsp-player-controls-vod>\n } @else if (uiSkin==='edition') {\n <ngxsp-player-controls-edition\n [showTracks]=\"showTrackControls\"\n [showCaptions]=\"showTrackControls\"\n [profile]=\"sourceProfile\"\n [playing]=\"state?.kind==='playing'\"\n [displayTitle]=\"displayTitle\"\n [metaLabel]=\"editionMeta\"\n [statusLabel]=\"statusLabel()\"\n [captionsActive]=\"selectedTextTrackId !== null\"\n [speedLabel]=\"playbackRateLabel()\"\n [showAirPlay]=\"showAirPlayButton()\"\n [airPlayActive]=\"isAirPlayActive()\"\n [airPlayLabel]=\"airPlayLabel()\"\n (airPlay)=\"openAirPlayPicker()\"\n [showCast]=\"showCastButton() && showCastControl\"\n [castActive]=\"isCastActive()\"\n [pipSupported]=\"isPiPSupported() && showPictureInPicture\"\n [pipActive]=\"isPiPActive()\"\n [volume]=\"volume\"\n [volumeLabel]=\"outputVolumeLabel || volumeLabel()\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n [currentTime]=\"currentTime\"\n [duration]=\"duration\"\n [buffered]=\"bufferAheadSec\"\n (playToggle)=\"requestPlaybackToggle()\"\n (seekRelative)=\"seekRel($event)\"\n (openMenu)=\"toggleMenu($event)\"\n (captions)=\"onCaptionsClick()\"\n (cast)=\"onCastClick()\"\n (pip)=\"togglePiP()\"\n (mute)=\"toggleMute()\"\n (scrub)=\"onScrub($event)\"\n (volumeChange)=\"onVolume($event)\"\n (goLive)=\"reload()\"\n >\n <ngxsp-player-menu\n [openMenu]=\"openMenu\"\n [isAudioMode]=\"isAudioMode\"\n [textTracks]=\"textTracks\"\n [audioTracks]=\"audioTracks\"\n [videoTracks]=\"videoTracks\"\n [selectedTextTrackId]=\"selectedTextTrackId\"\n [selectedAudioTrackId]=\"selectedAudioTrackId\"\n [selectedVideoTrackId]=\"selectedVideoTrackId\"\n [playbackRates]=\"playbackRates\"\n [playbackRate]=\"playbackRate\"\n [labels]=\"playerMenuLabels\"\n (loadSubtitles)=\"openSubtitlePicker()\"\n (selectText)=\"selectTextTrack($event)\"\n (selectAudio)=\"selectAudioTrack($event)\"\n (selectVideo)=\"selectVideoTrack($event)\"\n (selectRate)=\"setPlaybackRate($event)\"\n />\n </ngxsp-player-controls-edition>\n } @else {\n <ngxsp-player-controls\n [playing]=\"state?.kind==='playing'\"\n [isAudioMode]=\"isAudioMode\"\n [hasPlaylistControls]=\"hasPlaylistControls\"\n [canPrev]=\"canPrev\"\n [canNext]=\"canNext\"\n [shuffleActive]=\"shuffleActive\"\n [shuffleLabel]=\"shuffleLabel\"\n [repeatMode]=\"repeatMode\"\n [repeatLabel]=\"repeatLabel\"\n [captionsActive]=\"selectedTextTrackId !== null\"\n [tracksLabel]=\"tracksButtonLabel()\"\n [captionsLabel]=\"captionsLabel()\"\n [speedLabel]=\"playbackRateLabel()\"\n [volumeLabel]=\"volumeLabel()\"\n [showCast]=\"showCastButton() && showCastControl\"\n [castActive]=\"isCastActive()\"\n [castLabel]=\"castLabel()\"\n [castHint]=\"castHintLabel()\"\n [pipSupported]=\"isPiPSupported() && showPictureInPicture\"\n [pipActive]=\"isPiPActive()\"\n [pipLabel]=\"pipLabel()\"\n [volume]=\"volume\"\n [muteLabel]=\"outputMuteLabel\"\n [unmuteLabel]=\"outputUnmuteLabel\"\n [currentTime]=\"currentTime\"\n [duration]=\"duration\"\n [buffered]=\"bufferAheadSec\"\n [profile]=\"sourceProfile\"\n (playToggle)=\"requestPlaybackToggle()\"\n (seekRelative)=\"seekRel($event)\"\n (prev)=\"emitPrev()\"\n (next)=\"emitNext()\"\n (toggleShuffle)=\"toggleShuffle.emit()\"\n (cycleRepeat)=\"cycleRepeat.emit()\"\n (openMenu)=\"toggleMenu($event)\"\n (captions)=\"subtitles.emit()\"\n (cast)=\"onCastClick()\"\n (pip)=\"togglePiP()\"\n (mute)=\"toggleMute()\"\n (scrub)=\"onScrub($event)\"\n (volumeChange)=\"onVolume($event)\"\n />\n }\n\n </div>\n </div>\n `,\n styles: [`\n .ngxsp-root{\n /* Pilotable par le thème @ngxsp/ui-theme (--nsp-*) ; valeurs actuelles en fallback. */\n --ngxsp-bg:#000;\n --ngxsp-bg-elev:var(--nsp-surface-1, #17181d);\n --ngxsp-bg-soft:var(--nsp-surface-2, #1e1f25);\n --ngxsp-border:var(--nsp-line, rgb(255 255 255 / .07));\n --ngxsp-border-strong:var(--nsp-line-strong, rgb(255 255 255 / .13));\n --ngxsp-text:var(--nsp-text, #ededf0);\n --ngxsp-text-dim:var(--nsp-text-2, #a3a5ae);\n --ngxsp-accent:var(--nsp-media-accent, #8b90ff);\n --ngxsp-accent-soft:rgb(139 144 255 / .14);\n --ngxsp-focus-ring:0 0 0 2px var(--nsp-media-accent, #8b90ff);\n position:relative;\n width:100%;\n height:100%;\n background:#000;\n color:var(--ngxsp-text);\n font-family:var(--nsp-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, sans-serif);\n }\n .ngxsp-video{position:relative;width:100%;height:100%;isolation:isolate;container-type:inline-size}\n .ngxsp-captions{position:absolute;left:6%;right:6%;bottom:5%;z-index:3;display:flex;flex-direction:column;align-items:center;gap:.15em;pointer-events:none;text-align:center;font-size:calc(clamp(13px, 2.6cqw, 34px) * var(--ngxsp-caption-scale, 1));line-height:1.3;transition:bottom .2s ease}\n .ngxsp-captions:empty{display:none}\n .ngxsp-ui-visible .ngxsp-captions{bottom:calc(2% + var(--ngxsp-captions-lift, 96px))}\n /* The cue lines are made at run time: they carry none of this component's style attributes. */\n .ngxsp-captions ::ng-deep .ngxsp-cue{max-width:100%;padding:.08em .45em;border-radius:.2em;background:rgb(0 0 0 / .74);color:#fff;white-space:pre-line;text-shadow:0 1px 2px rgb(0 0 0 / .5)}\n .ngxsp-mode-audio .ngxsp-captions{display:none}\n .ngxsp-video video{width:100%;height:100%;display:block;background:#000;object-fit:contain;}\n .ngxsp-mode-audio .ngxsp-video video{opacity:.02;filter:blur(10px) saturate(120%);transform:scale(1.08)}\n .ngxsp-audio-stage{\n position:absolute;\n inset:0;\n z-index:0;\n display:flex;\n flex-direction:column;\n align-items:center;\n justify-content:center;\n gap:18px;\n padding:40px 24px 140px;\n background:\n radial-gradient(circle at 50% 24%, rgba(96,165,250,.22), transparent 30%),\n radial-gradient(circle at 22% 78%, rgba(45,212,191,.12), transparent 28%),\n linear-gradient(180deg, rgba(4,12,24,.92), rgba(5,10,18,.82));\n pointer-events:none;\n text-align:center;\n }\n .ngxsp-audio-disc{\n width:min(32vw, 220px);\n aspect-ratio:1;\n border-radius:50%;\n background:\n radial-gradient(circle at center, rgba(248,250,252,.9) 0 10%, rgba(15,23,42,.92) 11% 20%, rgba(100,116,139,.85) 21% 22%, rgba(15,23,42,.98) 23% 100%);\n box-shadow:0 24px 80px rgba(15,23,42,.5), inset 0 0 0 10px rgba(255,255,255,.05);\n animation:ngxspSpin 18s linear infinite;\n }\n .ngxsp-audio-copy{display:flex;flex-direction:column;gap:6px;max-width:min(76ch, 100%)}\n .ngxsp-audio-eyebrow{\n font-size:11px;\n letter-spacing:.22em;\n text-transform:uppercase;\n color:rgba(191,219,254,.8);\n font-weight:700;\n }\n .ngxsp-audio-title{\n font-size:36px;\n font-weight:800;\n letter-spacing:0;\n color:#f8fbff;\n text-shadow:0 18px 60px rgba(15,23,42,.6);\n }\n .ngxsp-audio-subtitle{\n font-size:16px;\n color:rgba(226,232,240,.78);\n }\n .ngxsp-audio-bars{display:flex;align-items:flex-end;gap:8px;height:40px}\n .ngxsp-audio-bars span{\n width:6px;\n height:16px;\n border-radius:999px;\n background:linear-gradient(180deg, rgba(147,197,253,.95), rgba(34,211,238,.55));\n animation:ngxspBars 1.15s ease-in-out infinite;\n box-shadow:0 0 18px rgba(56,189,248,.22);\n }\n .ngxsp-audio-bars span:nth-child(2){animation-delay:.12s}\n .ngxsp-audio-bars span:nth-child(3){animation-delay:.24s}\n .ngxsp-audio-bars span:nth-child(4){animation-delay:.36s}\n .ngxsp-audio-bars span:nth-child(5){animation-delay:.48s}\n /* VOD skin (video surface only — controls live in ngxsp-player-controls*) */\n .ngxsp-skin-vod .ngxsp-video{position:relative}\n .ngxsp-skin-vod .ngxsp-video::before{content:none}\n .ngxsp-skin-vod .ngxsp-video::after{content:none}\n .ngxsp-mode-audio.ngxsp-skin-vod .ngxsp-video::before{background:linear-gradient(180deg, rgba(3,8,18,.35), rgba(3,8,18,.12)); opacity:1}\n .ngxsp-inline-projection{display:inline-flex;flex:0 0 auto;align-items:center;gap:8px;width:max-content}\n .ngxsp-inline-projection:empty{display:none}\n .ngxsp-gesturePulse{position:absolute;inset:0;z-index:5;display:grid;place-items:center;pointer-events:none;color:#f8fbff;animation:ngxspGesturePulse .52s ease both}\n .ngxsp-gesturePulse ngxsp-smart-icon{width:64px;height:64px;padding:18px;box-sizing:border-box;display:grid;place-items:center;border-radius:50%;background:rgb(0 0 0 / .5);backdrop-filter:blur(10px)}\n\n @media (max-width: 640px){\n .ngxsp-audio-stage{padding:28px 16px 128px;gap:14px}\n .ngxsp-audio-disc{width:min(48vw, 168px)}\n .ngxsp-audio-title{font-size:28px}\n .ngxsp-audio-subtitle{font-size:14px}\n .ngxsp-gesturePulse ngxsp-smart-icon{width:64px;height:64px}\n }\n\n @keyframes ngxspSpin {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n\n @keyframes ngxspBars {\n 0%, 100% { height: 14px; opacity: .45; }\n 50% { height: 40px; opacity: 1; }\n }\n\n @keyframes ngxspGesturePulse {\n 0% { opacity: 0; transform: scale(.82); }\n 24% { opacity: 1; transform: scale(1); }\n 100% { opacity: 0; transform: scale(1.16); }\n }\n `],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class SmartPlayerComponent implements OnChanges, OnInit, OnDestroy {\n @Input({ required: true }) config!: PlayerConfig;\n @Input() plugins: PlayerPlugin[] = [];\n @Input() ports?: Partial<PlayerPorts>;\n @Input() engines?: EngineFactory[];\n @Input() debug = false;\n /**\n * The host is already dealing with the failure that just happened, so the card that announces\n * one stays away. A film a peer is converting fails first and plays a moment later: told\n * nothing, the player put \"Format not supported — Retry\" over the very film being rescued.\n */\n @Input() handlingFailure = false;\n /** Optional start time (seconds) used for \"resume playback\". */\n @Input() startTimeSec: number | null = null;\n /** Starts the first source as soon as it is loaded. WebViews and desktop shells do not block it like browsers do. */\n @Input() autoplayOnInit = true;\n /** Increment when the user picks something to play: a new source starts, the current one resumes. */\n @Input() playRequest = 0;\n @Input() canPrev = false;\n @Input() canNext = false;\n @Input() previousLabel = 'Previous item';\n @Input() nextLabel = 'Next item';\n @Input() playLabel = 'Play';\n @Input() pauseLabel = 'Pause';\n @Input() shuffleActive = false;\n @Input() shuffleLabel = 'Shuffle: off';\n @Input() repeatMode: 'off' | 'one' | 'all' = 'off';\n @Input() repeatLabel = 'Repeat: off';\n @Input() hasPlaylistControls = false;\n /**\n * The three below let a host that already offers something take it off the bar, rather than\n * having the viewer meet the same command twice. Each stays on by default: a player used on\n * its own carries everything.\n *\n * Where to send the picture, when the host asks for it from a button of its own.\n */\n @Input() showCastControl = true;\n /** The system's own small window, when the host has a smaller window of its own to offer. */\n @Input() showPictureInPicture = true;\n /** Shuffle and repeat, when the host keeps them with the queue they act on. */\n @Input() showPlaylistModes = true;\n @Input() mediaMode: 'video' | 'audio' = 'video';\n @Input() castEnabled = false;\n /** The media plays on a device the app drives (castEnabled): the devices button shows it. */\n @Input() castConnected = false;\n private airPlayAvailable = false;\n private airPlayActive = false;\n /** What the error card says. Left alone it speaks English, like the rest of this library's defaults. */\n @Input() overlayLabels: Partial<PlayerOverlayLabels> = {};\n @Input() documentShortcuts = true;\n @Input() nowPlayingLabel = 'Now playing';\n @Input() nowListeningLabel = 'Now listening';\n @Input() fullscreenHintLabel = 'Double-click for fullscreen';\n @Input() fullscreenLabel = 'Fullscreen';\n @Input() readyStatusLabel = 'Ready';\n @Input() playingStatusLabel = 'Playing';\n @Input() pausedStatusLabel = 'Paused';\n @Input() bufferingStatusLabel = 'Buffering';\n @Input() loadingStatusLabel = 'Loading';\n @Input() endedStatusLabel = 'Ended';\n @Input() errorStatusLabel = 'Error';\n @Input() outputVolume: number | null = null;\n @Input() outputVolumeLabel = '';\n @Input() outputMuteLabel = 'Mute';\n @Input() outputUnmuteLabel = 'Restore sound';\n @Input() timelineDurationSec: number | null = null;\n @Input() timelineMarkers: ReadonlyArray<NgxspTimelineMarker> = [];\n\n // Noms volontairement alignés sur les événements média natifs (API publique).\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() ended = new EventEmitter<void>();\n @Output() videoSize = new EventEmitter<{ width: number; height: number }>();\n /**\n * Whether the player draws its own picture for a sound: a turning disc, the title, and five\n * bars that pulse while it plays.\n *\n * A host that draws its own — a cover of its own and a waveform of its own — mounts this player\n * for its engine alone, in a box of a pixel. The stage then goes on turning and pulsing inside\n * it: six animations and a sixth of the page's nodes, clipped away, on every frame and on\n * whatever battery is running them.\n */\n @Input() showAudioVisual = true;\n /**\n * Emits playback position updates, tagged with the media they belong to: a host switching tracks can still receive\n * a position of the previous one, and must not file it under the new one.\n */\n // eslint-disable-next-line @angular-eslint/no-output-native\n @Output() progress = new EventEmitter<SmartPlayerProgress>();\n @Output() prev = new EventEmitter<void>();\n @Output() next = new EventEmitter<void>();\n @Output() toggleShuffle = new EventEmitter<void>();\n @Output() cycleRepeat = new EventEmitter<void>();\n /** CC pressed; the vod and edition skins also open their subtitles menu. */\n /**\n * The two chips about what is playing — the tracks and the subtitles. Off when the host carries\n * them itself, so a viewer is not offered the same thing twice in the same bar. `openSubtitlePicker`\n * stays public for the host that takes them over: loading a sidecar file is part of what it took.\n */\n @Input() showTrackControls = true;\n @Output() subtitles = new EventEmitter<void>();\n /** A subtitle file was read (ok) or could not be (error). */\n @Output() subtitlesLoaded = new EventEmitter<{ label: string; ok: boolean; error?: string }>();\n /** The words of the player's menus and of its subtitles button. */\n @Input() menuLabels: Partial<PlayerMenuLabels> = {};\n /** What the cast chip says, state by state. A host that speaks another language replaces the ones it has words for. */\n @Input() castLabels: Partial<CastLabels> = {};\n @Output() cast = new EventEmitter<void>();\n @Output() stateChange = new EventEmitter<PlayerState>();\n @Output() playbackToggle = new EventEmitter<'play' | 'pause'>();\n @Output() outputVolumeChange = new EventEmitter<number>();\n\n @ViewChild('video', { static: true }) videoEl!: ElementRef<HTMLVideoElement>;\n @ViewChild('captionsLayer', { static: true }) captionsLayer!: ElementRef<HTMLElement>;\n /** Absent in audio mode, which has no subtitles. */\n @ViewChild('subtitleFileInput') subtitleFileInput?: ElementRef<HTMLInputElement>;\n\n state: PlayerState | null = null;\n\n duration = 0;\n currentTime = 0;\n volume = 1;\n private lastVolumeBeforeMute = 1;\n playbackRate = 1;\n bufferAheadSec = 0;\n tracks: MediaTrack[] = [];\n openMenu: 'tracks' | 'speed' | 'captions' | null = null;\n controlsVisible = true;\n surfaceGesture: 'play' | 'pause' | null = null;\n castState: 'disconnected' | 'connecting' | 'connected' = 'disconnected';\n\n readonly playbackRates = [0.5, 0.75, 1, 1.25, 1.5, 1.75, 2];\n\n private facade = new PlayerFacade();\n private readonly cdr = inject(ChangeDetectorRef);\n private sub = new Subscription();\n private hideControlsTimer: ReturnType<typeof setTimeout> | null = null;\n private surfaceClickTimer: ReturnType<typeof setTimeout> | null = null;\n private gestureTimer: ReturnType<typeof setTimeout> | null = null;\n private remotePlaybackCleanup: (() => void) | null = null;\n private initialized = false;\n private loadedSourceSignature = '';\n private loadSequence = 0;\n private loading = false;\n private pendingPlay = false;\n /** Whether the load in progress was asked to start playback. */\n private loadingAutoplay = false;\n /** Load whose end was already reported; reset when playback starts again (repeat one). */\n private endedLoadSequence = -1;\n private pendingSeekSec: number | null = null;\n\n get uiSkin(): 'classic' | 'vod' | 'edition' {\n const skin = this.config?.ui?.skin;\n return skin === 'vod' || skin === 'edition' ? skin : 'classic';\n }\n\n /** Libellé méta du skin édition (genre · format). */\n get editionMeta(): string {\n return this.isAudioMode ? 'Audio' : 'Vidéo';\n }\n\n /**\n * Keeps the controls up while the host has something of its own open over them — a dialog\n * anchored to one of its buttons goes away with the bar it hangs from, mid-sentence.\n */\n @Input() holdControls = false;\n\n /**\n * The subtitle language chosen once, in the settings, rather than per video: when a media's\n * tracks arrive, the one that speaks it is shown without being asked for. `null` leaves the\n * choice to whoever is watching, '' means none at all.\n */\n @Input() preferredTextLanguage: string | null = null;\n\n /**\n * How large the subtitles read, as a multiplier of the size the picture's width gives them.\n * The board offers three: small, medium, large.\n */\n @Input() captionScale = 1;\n\n /**\n * Whether the subtitle files sitting next to the media — the `.srt` a download came with — are\n * loaded with it. They reach the player as `source.sidecar.subtitles`; off, they are ignored\n * and only what the media itself carries is offered.\n */\n @Input() loadSidecarSubtitles = false;\n\n get uiVisible(): boolean {\n const kind = this.state?.kind;\n return this.controlsVisible || this.holdControls || this.openMenu !== null || kind === 'paused' || kind === 'loading' || kind === 'buffering' || kind === 'error';\n }\n\n get displayTitle(): string {\n const ui = this.config?.ui;\n const src = this.config?.source;\n return ui?.title ?? ui?.displayTitle ?? src?.title ?? src?.contentId ?? 'Player';\n }\n\n get displaySubtitle(): string {\n const ui = this.config?.ui;\n const src = this.config?.source;\n return (\n ui?.subtitle ??\n ui?.description ??\n src?.subtitle ??\n src?.artist ??\n src?.album ??\n this.audioTracks.find((track) => track.active)?.label ??\n 'Audio playback'\n );\n }\n\n get isAudioMode(): boolean {\n return this.mediaMode === 'audio';\n }\n\n /** Profil de source transmis aux primitives UI (cf. @ngxsp/ui-core). */\n get sourceProfile(): SourceProfile {\n if (this.config?.source?.live) return 'live';\n return this.isAudioMode ? 'audio' : 'vod';\n }\n\n get audioTracks(): MediaTrack[] {\n return this.tracks.filter((track) => track.kind === 'audio');\n }\n\n get textTracks(): MediaTrack[] {\n return this.tracks.filter((track) => track.kind === 'text');\n }\n\n get videoTracks(): MediaTrack[] {\n return this.tracks.filter((track) => track.kind === 'video');\n }\n\n get selectedAudioTrackId(): string | null {\n return this.audioTracks.find((track) => track.active)?.id ?? null;\n }\n\n get selectedTextTrackId(): string | null {\n return this.textTracks.find((track) => track.active)?.id ?? null;\n }\n\n get selectedVideoTrackId(): string | null {\n return this.videoTracks.find((track) => track.active)?.id ?? null;\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['outputVolume']) this.syncOutputVolumeInput();\n if (!this.initialized) return;\n const playRequested = !!changes['playRequest'] && !changes['playRequest'].firstChange;\n\n if (changes['engines'] && !changes['engines'].firstChange) {\n this.facade.setEngines(this.engines);\n // Playback moves to a device (or comes back): the media is loaded again from the same position. It keeps playing\n // when it moves to a device, and waits on this one when it comes back, unless the host asks for playback.\n // A different media arriving in the same change is not a move: it loads below from its own start, or it would\n // inherit the position of the one it replaces.\n if (this.sourceSignature(this.config) === this.loadedSourceSignature) {\n const kind = this.state?.kind;\n const wasPlaying = kind === 'playing' || kind === 'buffering' || (this.loading && (this.loadingAutoplay || this.pendingPlay));\n // Hosts keep their own engines (adaptive streaming) in the list: only the remote engine means a device.\n const toDevice = (this.engines ?? []).some((engine) => engine.id === 'remote');\n if (this.pendingSeekSec === null && this.currentTime > 0.5) this.pendingSeekSec = this.currentTime;\n void this.loadConfig(playRequested || (toDevice && wasPlaying));\n return;\n }\n }\n\n if (changes['config'] && this.sourceSignature(this.config) !== this.loadedSourceSignature) {\n // Keeps playing when the source is swapped while playing or stalled, right after the previous media ended (queue\n // chaining) or while a load meant to start is still in progress (a local copy replacing the network source),\n // and starts when the host asked for playback; nothing starts on its own otherwise.\n const kind = this.state?.kind;\n const autoplay = playRequested || kind === 'playing' || kind === 'buffering' || kind === 'ended'\n || (this.loading && (this.loadingAutoplay || this.pendingPlay));\n // A position still waiting for the previous media belongs to it: a session restored on a\n // paused track must not send the next file there (past its end, it would \"finish\" at once).\n // The new media starts where `startTimeSec` says.\n this.pendingSeekSec = null;\n void this.loadConfig(autoplay);\n return;\n }\n\n if (playRequested) {\n // Same source picked again (a paused track the listener clicks): play it, once any load has finished.\n if (this.loading) this.pendingPlay = true;\n // A media in error has nothing to play: the engine refuses again, so the request went\n // nowhere and the error card stayed on screen — `inset: 0`, with its own Retry button as the\n // only way out. Asking again for the same source means loading it again, which is both the\n // only way the request can be honoured and the only way the card goes away.\n //\n // Not the Retry button's path: that one is `reload()` -> `facade.reload()`, which reloads at\n // the position the facade holds and leaves playback where it was. A host asking for playback\n // asked for it to start, which is what `loadConfig(true)` does — and it also clears the\n // component's own state and loads the sidecars again, which a bare reload does not.\n else if (this.state?.kind === 'error') {\n // `loadConfig` clears `currentTime`, and nothing else on this path keeps the position: a\n // media that failed mid-playback would restart from `startTimeSec`, or from the beginning.\n // Same guard as the engines-change branch above, which reloads the same media for a device.\n if (this.pendingSeekSec === null && this.currentTime > 0.5) this.pendingSeekSec = this.currentTime;\n void this.loadConfig(true);\n }\n else void this.facade.play().catch(() => {});\n }\n }\n\n ngOnInit(): void {\n const plugins: PlayerPlugin[] = [...(this.plugins ?? [])];\n\n // v1.11: SSAI (server-side stitched streams) – rewrite manifest URL if configured.\n if (this.config?.ads?.enabled && this.config?.ads?.mode === 'ssai') {\n plugins.push(createSsaiManifestRewritePlugin());\n }\n\n const media = this.mediaElementForMode();\n this.watchAirPlay(media);\n this.facade.attach(media, plugins, this.config, this.ports, this.engines);\n\n // markForCheck() requis : la stratégie OnPush ne détecte pas les mutations\n // poussées depuis des souscriptions RxJS (cf. docs/AUDIT.md, manquement #7).\n this.sub.add(this.facade.state$.subscribe((s: PlayerState) => {\n this.state = s;\n // Engines without a media element (remote devices) only report the end through their state.\n if (s.kind === 'ended') this.onEnded();\n else if (s.kind === 'playing') this.endedLoadSequence = -1;\n this.stateChange.emit(s);\n this.syncControlVisibility();\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.time$.subscribe((t) => {\n // While a new source loads, the time still reported is the previous media's. Passed on, a\n // host would file it under the new track and resume that track there — past its end for a\n // short file, which then \"finishes\" at once.\n if (this.loading) return;\n this.currentTime = t.currentTime;\n this.duration = this.usableDuration(t.duration);\n this.progress.emit({\n currentTime: this.currentTime,\n duration: this.duration,\n contentId: this.config?.source?.contentId,\n sourceUrl: this.config?.source?.url,\n });\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.bufferAheadSec$.subscribe((value) => {\n this.bufferAheadSec = value;\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.tracks$.subscribe((tracks) => {\n const arrived = this.tracks !== tracks;\n this.tracks = tracks;\n if (arrived) void this.applyPreferredTextTrack();\n this.cdr.markForCheck();\n }));\n this.sub.add(this.facade.captionCues$.subscribe((cues) => this.drawCaptions(cues)));\n this.bindRemotePlaybackState();\n\n this.applyVolume();\n this.initialized = true;\n void this.loadConfig(this.autoplayOnInit);\n }\n\n ngOnDestroy(): void {\n this.controlsObserver?.disconnect();\n this.clearHideControlsTimer();\n this.clearSurfaceClickTimer();\n this.clearGestureTimer();\n this.remotePlaybackCleanup?.();\n this.sub.unsubscribe();\n this.facade.destroy();\n }\n\n tryPlay(): void {\n void this.facade.play().catch(() => {});\n }\n\n get debugJson(): string {\n try {\n const d = this.facade.diagnostics();\n const tel = this.ports?.telemetry?.export?.();\n return JSON.stringify({ ...d, telemetry: tel }, null, 2);\n } catch {\n return '{}';\n }\n }\n\n get currentError(): PlayerError | null {\n // A failure the host is answering is not one to announce: it says its own thing, and the\n // card would contradict it for as long as the answer takes.\n if (this.handlingFailure) return null;\n return this.state?.kind === 'error' ? this.state.error : null;\n }\n\n async copyDebug(): Promise<void> {\n try {\n await navigator.clipboard.writeText(this.debugJson);\n } catch {\n // clipboard may be unavailable\n }\n }\n\n downloadDebug(): void {\n try {\n const blob = new Blob([this.debugJson], { type: 'application/json' });\n const url = URL.createObjectURL(blob);\n const a = document.createElement('a');\n a.href = url;\n a.download = 'ngxsp-diagnostics.json';\n a.click();\n setTimeout(() => URL.revokeObjectURL(url), 0);\n } catch {\n // ignore\n }\n }\n\n togglePlay(): void {\n if (this.state?.kind === 'playing') this.facade.pause();\n else this.facade.play();\n }\n\n requestPlaybackToggle(): void {\n const intent = this.playbackToggleIntent();\n this.togglePlay();\n this.playbackToggle.emit(intent);\n this.showSurfaceGesture(intent);\n }\n\n seekRel(deltaSec: number): void {\n this.seekTo(this.currentTime + deltaSec);\n }\n\n seekTo(timeSec: number): void {\n const value = Number(timeSec);\n if (!Number.isFinite(value)) return;\n const target = Math.max(0, value);\n this.pendingSeekSec = target;\n // A load in progress applies the pending position once the media is ready: seeking now would hit no engine.\n if (this.loading) return;\n void this.applySeek(target).then((applied) => {\n if (applied && this.pendingSeekSec === target) this.pendingSeekSec = null;\n });\n }\n\n onScrub(value: number): void {\n const v = Number(value);\n if (Number.isFinite(v)) this.seekTo(v);\n }\n\n onVolume(value: number): void {\n this.setVolume(value, true);\n }\n\n toggleMute(): void {\n if (this.volume <= 0.001) {\n this.volume = Math.max(0.5, this.lastVolumeBeforeMute || 0.5);\n } else {\n this.lastVolumeBeforeMute = this.volume;\n this.volume = 0;\n }\n this.applyVolume();\n this.outputVolumeChange.emit(this.volume);\n this.onInteraction();\n }\n\n async setPlaybackRate(rate: number): Promise<void> {\n this.playbackRate = rate;\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setRate(rate);\n }\n\n reload(): void {\n this.facade.reload().catch(() => void 0);\n }\n\n\n onLoadedMetadata(): void {\n const v = this.videoEl?.nativeElement;\n if (!v) return;\n // A position requested while the media was loading and not applied yet is applied now that it can be.\n if (this.pendingSeekSec !== null && !this.loading) {\n const target = this.pendingSeekSec;\n void this.applySeek(target).then((applied) => {\n if (applied && this.pendingSeekSec === target) this.pendingSeekSec = null;\n });\n }\n const width = v.videoWidth || 0;\n const height = v.videoHeight || 0;\n if (width > 0 && height > 0) {\n this.videoSize.emit({ width, height });\n }\n }\n\n onEnded(): void {\n // The media element's event and the engine state both announce the same end: handle it once per playback.\n if (this.endedLoadSequence === this.loadSequence) return;\n this.endedLoadSequence = this.loadSequence;\n // Repeat one replays the same media; otherwise hosts are told so they can chain their queue.\n if (this.repeatMode === 'one') {\n void this.facade.seekTo(0).then(() => this.facade.play()).catch(() => {});\n return;\n }\n this.ended.emit();\n }\n\n toggleFullscreen(): void {\n if (this.isAudioMode) return;\n const host = this.videoEl.nativeElement.parentElement;\n if (!host) return;\n\n const doc = document as Document & { fullscreenElement?: Element | null; exitFullscreen?: () => Promise<void> };\n const el = host as HTMLElement & { requestFullscreen?: () => Promise<void> };\n\n if (!doc.fullscreenElement && el.requestFullscreen) {\n el.requestFullscreen().catch(() => void 0);\n } else if (doc.exitFullscreen) {\n doc.exitFullscreen().catch(() => void 0);\n }\n }\n\n toggleMenu(menu: 'tracks' | 'speed' | 'captions'): void {\n this.openMenu = this.openMenu === menu ? null : menu;\n this.onInteraction(this.openMenu !== null);\n }\n\n get playerMenuLabels(): PlayerMenuLabels {\n return { ...DEFAULT_PLAYER_MENU_LABELS, ...this.menuLabels };\n }\n\n onCaptionsClick(): void {\n this.toggleMenu('captions');\n this.subtitles.emit();\n }\n\n openSubtitlePicker(): void {\n this.openMenu = null;\n this.onInteraction();\n this.subtitleFileInput?.nativeElement.click();\n }\n\n async onSubtitleFileChosen(event: Event): Promise<void> {\n const input = event.target as HTMLInputElement;\n const file = input.files?.[0];\n input.value = '';\n if (file) await this.loadSubtitleFile(file);\n }\n\n /** Reads a SubRip or WebVTT file and shows it over the video. */\n async loadSubtitleFile(file: File): Promise<void> {\n const { label, language } = describeSubtitleFile(file.name);\n try {\n const vtt = subtitleTextToVtt(decodeSubtitleBytes(new Uint8Array(await file.arrayBuffer())));\n if (!/-->/.test(vtt)) throw new Error('No subtitle in this file');\n await this.facade.addExternalTextTrack({ label, ...(language ? { language } : {}), vtt });\n this.subtitlesLoaded.emit({ label, ok: true });\n } catch (error) {\n this.subtitlesLoaded.emit({ label, ok: false, error: error instanceof Error ? error.message : String(error) });\n }\n }\n\n private controlsObserver?: ResizeObserver;\n\n /** While the controls show, the subtitles sit just above them, however tall they are (a menu makes them taller). */\n private followControlsHeight(): void {\n if (this.controlsObserver || typeof ResizeObserver !== 'function') return;\n const bar = this.videoEl.nativeElement.parentElement?.querySelector<HTMLElement>('.ngxsp-vod-bottom');\n const layer = this.captionsLayer?.nativeElement;\n if (!bar || !layer) return;\n // The top of the bar is a fade over the picture: the subtitles may overlap it.\n const lift = () => layer.style.setProperty('--ngxsp-captions-lift', `${Math.max(0, bar.offsetHeight - 24)}px`);\n this.controlsObserver = new ResizeObserver(lift);\n this.controlsObserver.observe(bar);\n lift();\n }\n\n /** Draws the cues of the loaded subtitles (their markup parsed by the browser: italics, bold, no script). */\n /**\n * Loads the subtitle files that came with the media. They are added as tracks and none is\n * shown: what is shown is the preference's business, or the viewer's.\n */\n private async loadSidecars(): Promise<void> {\n const files = this.loadSidecarSubtitles ? this.config?.source?.sidecar?.subtitles ?? [] : [];\n if (!files.length) return;\n const chosen = this.selectedTextTrackId;\n for (const file of files) {\n if (!file?.url) continue;\n try {\n const bytes = new Uint8Array(await (await fetch(file.url)).arrayBuffer());\n const vtt = subtitleTextToVtt(decodeSubtitleBytes(bytes));\n if (!/-->/.test(vtt)) continue;\n const { label, language } = describeSubtitleFile(file.url.split('/').pop() ?? '');\n await this.facade.addExternalTextTrack({\n label: label || file.lang,\n ...(file.lang || language ? { language: file.lang || language } : {}),\n vtt,\n });\n } catch {\n // A file that cannot be read is one track fewer, not a media that fails to play.\n }\n }\n // Adding a track shows it; a media opens on what it opened on before these arrived.\n await this.facade.setTextTrack(chosen);\n }\n\n /**\n * Shows the track that speaks the preferred language, once per media. It only ever acts on a\n * media nobody has chosen a track for: a choice made while watching outlives the preference,\n * which is a default and not an order.\n */\n private async applyPreferredTextTrack(): Promise<void> {\n const wanted = this.preferredTextLanguage;\n if (wanted === null || !this.textTracks.length) return;\n const key = this.config?.source?.url ?? this.config?.source?.contentId ?? '';\n if (this.preferenceAppliedTo === key) return;\n this.preferenceAppliedTo = key;\n if (wanted === '') {\n if (this.selectedTextTrackId) await this.facade.setTextTrack(null);\n return;\n }\n const spoken = this.textTracks.find((track) => (track.language ?? '').toLowerCase().startsWith(wanted.toLowerCase()));\n if (spoken && spoken.id !== this.selectedTextTrackId) await this.facade.setTextTrack(spoken.id);\n }\n\n /** The media the preference was already applied to, so a choice made since is not overridden. */\n private preferenceAppliedTo: string | null = null;\n\n private drawCaptions(cues: TextTrackCue[]): void {\n const layer = this.captionsLayer?.nativeElement;\n if (!layer) return;\n if (cues.length) this.followControlsHeight();\n layer.replaceChildren(...cues.map((cue) => {\n const line = document.createElement('span');\n line.className = 'ngxsp-cue';\n const html = (cue as VTTCue).getCueAsHTML?.();\n if (html) line.append(html);\n else line.textContent = (cue as VTTCue).text ?? '';\n return line;\n }));\n }\n\n async selectTextTrack(trackId: string | null): Promise<void> {\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setTextTrack(trackId);\n }\n\n async selectAudioTrack(trackId: string): Promise<void> {\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setAudioTrack(trackId);\n }\n\n async selectVideoTrack(trackId: string | null): Promise<void> {\n this.openMenu = null;\n this.onInteraction();\n await this.facade.setVideoTrack(trackId);\n }\n\n async togglePiP(): Promise<void> {\n const video = this.videoEl.nativeElement as HTMLVideoElement & {\n requestPictureInPicture?: () => Promise<unknown>;\n disablePictureInPicture?: boolean;\n };\n const doc = document as Document & {\n pictureInPictureElement?: Element | null;\n pictureInPictureEnabled?: boolean;\n exitPictureInPicture?: () => Promise<void>;\n };\n\n try {\n if (doc.pictureInPictureElement) {\n await doc.exitPictureInPicture?.();\n } else {\n await video.requestPictureInPicture?.();\n }\n } catch {\n // Ignore unsupported or blocked PiP transitions.\n }\n this.onInteraction();\n }\n\n isPiPSupported(): boolean {\n if (this.isAudioMode) return false;\n const video = this.videoEl?.nativeElement as (HTMLVideoElement & { disablePictureInPicture?: boolean }) | undefined;\n const doc = document as Document & { pictureInPictureEnabled?: boolean };\n return !!doc.pictureInPictureEnabled && !video?.disablePictureInPicture;\n }\n\n pipLabel(): string {\n const doc = document as Document & { pictureInPictureElement?: Element | null };\n return doc.pictureInPictureElement ? 'Exit PiP' : 'PiP';\n }\n\n isPiPActive(): boolean {\n const doc = document as Document & { pictureInPictureElement?: Element | null };\n return !!doc.pictureInPictureElement;\n }\n\n async requestCast(): Promise<void> {\n const video = this.videoEl?.nativeElement as HTMLVideoElement & {\n remote?: {\n state?: 'disconnected' | 'connecting' | 'connected';\n prompt?: () => Promise<void>;\n };\n webkitShowPlaybackTargetPicker?: () => void;\n };\n if (!video) return;\n\n try {\n if (video.remote?.prompt) {\n this.castState = video.remote.state ?? 'connecting';\n await video.remote.prompt();\n this.castState = video.remote.state ?? this.castState;\n } else if (typeof video.webkitShowPlaybackTargetPicker === 'function') {\n video.webkitShowPlaybackTargetPicker();\n }\n } catch {\n this.castState = video.remote?.state ?? 'disconnected';\n }\n this.onInteraction();\n }\n\n isCastSupported(): boolean {\n const video = this.videoEl?.nativeElement as HTMLVideoElement & {\n remote?: { prompt?: () => Promise<void> };\n webkitShowPlaybackTargetPicker?: () => void;\n };\n return !!video && (!!video.remote?.prompt || typeof video.webkitShowPlaybackTargetPicker === 'function');\n }\n\n isCastActive(): boolean {\n return this.castConnected || this.castState === 'connected';\n }\n\n showCastButton(): boolean {\n return this.castEnabled || this.isCastSupported();\n }\n\n /**\n * AirPlay, as WebKit offers it: the system decides what is reachable and draws the picker\n * itself. Nothing is discovered here, and nothing is sent — the route belongs to the device.\n * Everywhere else these stay false and the button never appears.\n */\n showAirPlayButton(): boolean {\n return this.airPlayAvailable;\n }\n\n isAirPlayActive(): boolean {\n return this.airPlayActive;\n }\n\n airPlayLabel(): string {\n return this.airPlayActive ? 'Stop AirPlay' : 'AirPlay';\n }\n\n openAirPlayPicker(): void {\n const media = this.videoEl?.nativeElement as HTMLVideoElement & { webkitShowPlaybackTargetPicker?: () => void };\n media?.webkitShowPlaybackTargetPicker?.();\n }\n\n /** Wired to the media element whenever one is created, for video and for audio alike. */\n private watchAirPlay(media: HTMLMediaElement): void {\n const target = media as HTMLMediaElement & { webkitCurrentPlaybackTargetIsWireless?: boolean };\n if (!('webkitShowPlaybackTargetPicker' in target)) return;\n this.airPlayActive = target.webkitCurrentPlaybackTargetIsWireless === true;\n media.addEventListener('webkitplaybacktargetavailabilitychanged', (event) => {\n this.airPlayAvailable = (event as Event & { availability?: string }).availability === 'available';\n });\n media.addEventListener('webkitcurrentplaybacktargetiswirelesschanged', () => {\n this.airPlayActive = target.webkitCurrentPlaybackTargetIsWireless === true;\n });\n }\n\n private get castChipLabels(): CastLabels {\n return { ...DEFAULT_CAST_LABELS, ...this.castLabels };\n }\n\n castLabel(): string {\n const labels = this.castChipLabels;\n if (this.castEnabled) return labels.play;\n if (this.castState === 'connected') return labels.playing;\n if (this.castState === 'connecting') return labels.connecting;\n return labels.play;\n }\n\n castHintLabel(): string {\n const labels = this.castChipLabels;\n if (this.castEnabled) return labels.playHint;\n if (this.castState === 'connected') return labels.playingHint;\n if (this.castState === 'connecting') return labels.connectingHint;\n return labels.unavailableHint;\n }\n\n onCastClick(): void {\n if (this.castEnabled) {\n this.cast.emit();\n this.onInteraction();\n return;\n }\n void this.requestCast();\n }\n\n captionsLabel(): string {\n const labels = this.playerMenuLabels;\n const shown = this.textTracks.find((track) => track.id === this.selectedTextTrackId);\n return shown ? `${labels.subtitles} - ${shown.label || shown.language || shown.id}` : labels.subtitles;\n }\n\n volumeLabel(): string {\n if (this.volume <= 0.001) return 'Muted';\n if (this.volume < 0.5) return 'Vol';\n return 'Volume';\n }\n\n playbackRateLabel(): string {\n return `${this.playbackRate}x`;\n }\n\n statusLabel(): string {\n const kind = this.state?.kind;\n if (kind === 'playing') return this.playbackRate === 1 ? this.playingStatusLabel : `${this.playingStatusLabel} ${this.playbackRate}x`;\n if (kind === 'paused') return this.pausedStatusLabel;\n if (kind === 'buffering') return this.bufferingStatusLabel;\n if (kind === 'loading') return this.loadingStatusLabel;\n if (kind === 'ended') return this.endedStatusLabel;\n if (kind === 'error') return this.errorStatusLabel;\n return this.readyStatusLabel;\n }\n\n keyboardHintLabel(): string {\n return this.isAudioMode ? 'Space play • Arrows seek • C device' : 'Space play • Arrows seek • F fullscreen • C device';\n }\n\n tracksButtonLabel(): string {\n return this.textTracks.length || this.audioTracks.length ? this.playerMenuLabels.tracks : this.playerMenuLabels.media;\n }\n\n onPrimarySurfaceDoubleClick(): void {\n if (this.isAudioMode) return;\n this.clearSurfaceClickTimer();\n this.toggleFullscreen();\n }\n\n bufferPercent(): number {\n if (!this.duration || !Number.isFinite(this.duration) || this.duration <= 0) return 0;\n return Math.max(0, Math.min(100, (this.bufferAheadSec / this.duration) * 100));\n }\n\n /** One implementation, in `formatTime`: five copies of this is how the one on the video\n * chrome came to print `Infinity:NaN:NaN` while the others did not. */\n /** The length to show; `playableDurationSec` holds the rule, and is tested where it lives. */\n private usableDuration(reported: number): number {\n return playableDurationSec(reported, this.config?.source?.durationSec);\n }\n\n fmtTime(sec: number): string {\n return formatTime(sec);\n }\n\n noop(): void {}\n\n /**\n * Music plays in a real <audio> element: mobile browsers and Android WebViews pause <video> elements as soon as\n * the page is hidden, which would stop the music when the app goes to the background or the screen turns off.\n */\n private mediaElementForMode(): HTMLVideoElement {\n const video = this.videoEl.nativeElement;\n if (!this.isAudioMode || typeof document === 'undefined') return video;\n const audio = document.createElement('audio');\n audio.preload = 'metadata';\n audio.setAttribute('x-webkit-airplay', 'allow');\n audio.addEventListener('timeupdate', () => this.noop());\n audio.addEventListener('loadedmetadata', () => this.onLoadedMetadata());\n audio.addEventListener('ended', () => this.onEnded());\n video.replaceWith(audio);\n // The facade and helpers only use HTMLMediaElement members for audio (video-only APIs are feature-checked).\n this.videoEl = new ElementRef(audio as unknown as HTMLVideoElement);\n return this.videoEl.nativeElement;\n }\n onInteraction(persist = false): void {\n this.controlsVisible = true;\n this.clearHideControlsTimer();\n if (!persist && !this.holdControls && this.state?.kind === 'playing' && this.openMenu === null) {\n this.hideControlsTimer = setTimeout(() => {\n this.controlsVisible = false;\n this.cdr.markForCheck();\n }, 2200);\n }\n }\n\n onPointerLeave(): void {\n if (this.holdControls) return;\n if (this.state?.kind === 'playing' && this.openMenu === null) {\n this.clearHideControlsTimer();\n this.controlsVisible = false;\n }\n }\n\n onRootClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (!target) return;\n if (target.closest('button, input, textarea, select, summary, [contenteditable=\"true\"], .ngxsp-menu, .ngxsp-controls, .ngxsp-debug, .ngxsp-overlay, .ngxsp-range')) {\n return;\n }\n if (event.detail > 1) {\n this.clearSurfaceClickTimer();\n return;\n }\n this.openMenu = null;\n this.onInteraction();\n if (this.uiSkin === 'vod' && !this.isAudioMode) {\n this.queueSurfacePlaybackToggle();\n }\n }\n\n @HostListener('document:keydown.escape')\n onEscape(): void {\n if (this.openMenu !== null) {\n this.openMenu = null;\n this.onInteraction();\n }\n }\n\n @HostListener('document:keydown', ['$event'])\n onKeydown(event: KeyboardEvent): void {\n if (!this.documentShortcuts) return;\n if (this.isInteractiveTarget(event.target)) return;\n\n if (event.code === 'Space') {\n event.preventDefault();\n this.requestPlaybackToggle();\n this.onInteraction();\n return;\n }\n if (event.code === 'ArrowLeft') {\n event.preventDefault();\n this.seekRel(-10);\n this.onInteraction();\n return;\n }\n if (event.code === 'ArrowRight') {\n event.preventDefault();\n this.seekRel(10);\n this.onInteraction();\n return;\n }\n if (event.code === 'KeyF') {\n if (this.isAudioMode) return;\n event.preventDefault();\n this.toggleFullscreen();\n this.onInteraction();\n return;\n }\n if (event.code === 'KeyM') {\n event.preventDefault();\n this.toggleMute();\n return;\n }\n if (event.code === 'KeyC') {\n if (!this.showCastButton()) return;\n event.preventDefault();\n this.onCastClick();\n }\n }\n\n private async loadConfig(autoplay: boolean): Promise<void> {\n const sequence = ++this.loadSequence;\n this.loading = true;\n this.loadingAutoplay = autoplay;\n this.loadedSourceSignature = this.sourceSignature(this.config);\n // The announced length, if there is one, rather than zero: a stream that will not declare\n // its own would otherwise read `0:00` for the whole of the playback.\n this.duration = this.usableDuration(0);\n this.currentTime = 0;\n this.bufferAheadSec = 0;\n this.tracks = [];\n this.cdr.markForCheck();\n\n try {\n await this.facade.load(this.config);\n await this.loadSidecars();\n if (this.pendingSeekSec !== null) {\n const target = this.pendingSeekSec;\n // Cleared only when the position really reached an engine; otherwise the metadata event retries it.\n if (await this.applySeek(target) && this.pendingSeekSec === target) this.pendingSeekSec = null;\n } else {\n await this.applyStartTime();\n }\n // A newer load owns playback: only the latest request may start it.\n if (sequence === this.loadSequence && (autoplay || this.pendingPlay)) {\n this.pendingPlay = false;\n await this.facade.play().catch(() => {});\n }\n } catch {\n // The facade has already emitted a typed player error.\n } finally {\n if (sequence === this.loadSequence) {\n this.loading = false;\n // A position asked for while this load was finishing, after it looked for one, is applied now.\n const target = this.pendingSeekSec;\n if (target !== null) {\n void this.applySeek(target).then((applied) => {\n if (applied && this.pendingSeekSec === target) this.pendingSeekSec = null;\n });\n }\n }\n }\n }\n\n private async applyStartTime(): Promise<void> {\n const start = Number(this.startTimeSec ?? 0);\n if (!Number.isFinite(start) || start <= 0.2) return;\n\n await this.applySeek(start);\n }\n\n private async applySeek(timeSec: number): Promise<boolean> {\n try {\n return await this.facade.seekTo(this.safeSeekTime(timeSec));\n } catch {\n // Best effort: some engines only allow seeking after enough metadata is loaded.\n return false;\n }\n }\n\n private safeSeekTime(timeSec: number): number {\n return Math.max(0, Math.min(timeSec, (this.duration || timeSec + 1) - 0.3));\n }\n\n private sourceSignature(config: PlayerConfig | null | undefined): string {\n const source = config?.source;\n if (!source) return '';\n return [\n source.type,\n source.url,\n source.contentId,\n source.live ? 'live' : 'vod',\n source.offlineEligible ? 'offline' : 'online',\n ].join('|');\n }\n\n private bindRemotePlaybackState(): void {\n const video = this.videoEl?.nativeElement as HTMLVideoElement & {\n remote?: {\n state?: 'disconnected' | 'connecting' | 'connected';\n addEventListener?: (type: string, listener: EventListener) => void;\n removeEventListener?: (type: string, listener: EventListener) => void;\n };\n addEventListener: (type: string, listener: EventListenerOrEventListenerObject) => void;\n removeEventListener: (type: string, listener: EventListenerOrEventListenerObject) => void;\n };\n const remote = video?.remote;\n if (!video || !remote) return;\n\n const sync = () => {\n this.castState = remote.state ?? 'disconnected';\n this.cdr.markForCheck();\n };\n\n sync();\n remote.addEventListener?.('connecting', sync);\n remote.addEventListener?.('connect', sync);\n remote.addEventListener?.('disconnect', sync);\n video.addEventListener('webkitcurrentplaybacktargetiswirelesschanged', sync as EventListener);\n\n this.remotePlaybackCleanup = () => {\n remote.removeEventListener?.('connecting', sync);\n remote.removeEventListener?.('connect', sync);\n remote.removeEventListener?.('disconnect', sync);\n video.removeEventListener('webkitcurrentplaybacktargetiswirelesschanged', sync as EventListener);\n };\n }\n\n private syncControlVisibility(): void {\n if (this.state?.kind === 'playing' && this.openMenu === null) {\n this.onInteraction();\n return;\n }\n this.clearHideControlsTimer();\n this.controlsVisible = true;\n }\n\n private applyVolume(): void {\n try {\n const media = this.videoEl.nativeElement;\n media.volume = this.volume;\n // iOS ignores volume writes: without this, muting and the volume slider have no effect on iPhone and iPad.\n media.muted = this.volume <= 0.001;\n } catch {\n // Some browser environments reject direct volume writes; the engine path remains available.\n }\n this.facade.setVolume(this.volume);\n }\n\n private syncOutputVolumeInput(): void {\n this.setVolume(this.outputVolume, false);\n }\n\n setOutputVolume(value: number): void {\n this.setVolume(value, false);\n }\n\n /**\n * Sends the sound to one of the machine's outputs, by the id the browser gave it.\n *\n * Only Chromium browsers have `setSinkId`, which is also what the desktop shell runs; elsewhere\n * the request is refused here rather than failing somewhere further down, and the host is told so\n * it can say the sound stays where the system puts it. An empty id means exactly that: the\n * default output, which is what the element starts on.\n */\n async setAudioOutput(sinkId: string): Promise<boolean> {\n const video = this.videoEl?.nativeElement as (HTMLVideoElement & { setSinkId?: (id: string) => Promise<void> }) | undefined;\n if (!video?.setSinkId) return false;\n try {\n await video.setSinkId(sinkId);\n return true;\n } catch {\n // An output that has gone, or one the page may not use: the sound stays where it was.\n return false;\n }\n }\n\n /** Whether this browser lets a page choose where the sound comes out at all. */\n get audioOutputSelectable(): boolean {\n const video = this.videoEl?.nativeElement as (HTMLVideoElement & { setSinkId?: unknown }) | undefined;\n return typeof video?.setSinkId === 'function';\n }\n\n private setVolume(value: unknown, emitChange: boolean): void {\n const nextVolume = this.normalizeVolume(value, this.volume);\n if (Math.abs(nextVolume - this.volume) < 0.001) return;\n this.volume = nextVolume;\n if (this.volume > 0) this.lastVolumeBeforeMute = this.volume;\n if (this.initialized) this.applyVolume();\n if (emitChange) this.outputVolumeChange.emit(this.volume);\n }\n\n private normalizeVolume(value: unknown, fallback: number): number {\n const numeric = Number(value);\n if (!Number.isFinite(numeric)) return fallback;\n return Math.max(0, Math.min(1, numeric));\n }\n\n private clearHideControlsTimer(): void {\n if (this.hideControlsTimer) {\n clearTimeout(this.hideControlsTimer);\n this.hideControlsTimer = null;\n }\n }\n\n private queueSurfacePlaybackToggle(): void {\n this.clearSurfaceClickTimer();\n this.surfaceClickTimer = setTimeout(() => {\n this.surfaceClickTimer = null;\n this.requestPlaybackToggle();\n this.cdr.markForCheck();\n }, 180);\n }\n\n private clearSurfaceClickTimer(): void {\n if (this.surfaceClickTimer) {\n clearTimeout(this.surfaceClickTimer);\n this.surfaceClickTimer = null;\n }\n }\n\n private playbackToggleIntent(): 'play' | 'pause' {\n return this.state?.kind === 'playing' ? 'pause' : 'play';\n }\n\n private showSurfaceGesture(intent: 'play' | 'pause'): void {\n this.surfaceGesture = intent;\n this.clearGestureTimer();\n this.gestureTimer = setTimeout(() => {\n this.surfaceGesture = null;\n this.cdr.markForCheck();\n }, 520);\n this.cdr.markForCheck();\n }\n\n private clearGestureTimer(): void {\n if (this.gestureTimer) {\n clearTimeout(this.gestureTimer);\n this.gestureTimer = null;\n }\n }\n\n private isInteractiveTarget(target: EventTarget | null): boolean {\n const el = target as HTMLElement | null;\n if (!el) return false;\n return !!el.closest('input, button, textarea, select, summary, [contenteditable=\"true\"]');\n }\n\nemitNext(): void {\n this.next.emit();\n}\n\nemitPrev(): void {\n this.prev.emit();\n}\n\n}\n","import { Injectable, signal } from '@angular/core';\n\n/** A way out for the sound: the system's own name for it, when the page is allowed to read it. */\nexport interface SmartAudioOutput {\n id: string;\n /** What the system calls it, or nothing at all when the page may not read the names. */\n label: string;\n /** The one the system would use on its own, which is where the sound goes until one is chosen. */\n isDefault: boolean;\n}\n\n/**\n * The sound outputs this machine offers, as the page can see them.\n *\n * A browser hides their names until the viewer has allowed a microphone — that is the privacy rule,\n * not an oversight — so a label here is often empty, and naming an unnamed one is the caller's\n * business, in the caller's language. The list is read again whenever the system's own changes:\n * plugging in a headset is the usual reason.\n */\n@Injectable({ providedIn: 'root' })\nexport class SmartAudioOutputsService {\n readonly outputs = signal<readonly SmartAudioOutput[]>([]);\n readonly available = typeof navigator !== 'undefined' && !!navigator.mediaDevices?.enumerateDevices;\n\n constructor() {\n if (!this.available) return;\n void this.refresh();\n navigator.mediaDevices.addEventListener('devicechange', () => void this.refresh());\n }\n\n async refresh(): Promise<void> {\n if (!this.available) return;\n try {\n const devices = await navigator.mediaDevices.enumerateDevices();\n const outputs = devices.filter((device) => device.kind === 'audiooutput');\n this.outputs.set(outputs.map((device, index) => ({\n id: device.deviceId,\n label: device.label.trim(),\n isDefault: device.deviceId === 'default' || (index === 0 && !outputs.some((entry) => entry.deviceId === 'default')),\n })));\n } catch {\n // A page that may not ask gets nothing to show, which is what an empty list says.\n this.outputs.set([]);\n }\n }\n}\n","import { EnvironmentProviders, InjectionToken, makeEnvironmentProviders } from '@angular/core';\nimport { MetadataProvider, SubtitleProvider } from '@ngxsp/core';\n\n/**\n * Jetons d'injection typés pour les providers de sous-titres / métadonnées.\n * (Remplace les jetons `string` non typés — cf. docs/AUDIT.md, manquement #10.)\n * Un consommateur peut les injecter directement :\n * `inject(SMART_PLAYER_SUBTITLE_PROVIDERS)`.\n */\nexport const SMART_PLAYER_SUBTITLE_PROVIDERS = new InjectionToken<SubtitleProvider[]>(\n 'SMART_PLAYER_SUBTITLE_PROVIDERS',\n { factory: () => [] },\n);\n\nexport const SMART_PLAYER_METADATA_PROVIDERS = new InjectionToken<MetadataProvider[]>(\n 'SMART_PLAYER_METADATA_PROVIDERS',\n { factory: () => [] },\n);\n\nexport interface SmartPlayerProvidersConfig {\n subtitleProviders?: SubtitleProvider[];\n metadataProviders?: MetadataProvider[];\n}\n\n/**\n * Enregistre les implémentations de providers (sous-titres / métadonnées).\n * À appeler dans le tableau `providers` de `bootstrapApplication()`.\n */\nexport function provideSmartPlayer(cfg: SmartPlayerProvidersConfig): EnvironmentProviders {\n return makeEnvironmentProviders([\n { provide: SMART_PLAYER_SUBTITLE_PROVIDERS, useValue: cfg.subtitleProviders ?? [] },\n { provide: SMART_PLAYER_METADATA_PROVIDERS, useValue: cfg.metadataProviders ?? [] },\n ]);\n}\n"],"mappings":";;;;;;;AAoUA,IAAa,2BAAb,MAAa,yBAAwB;CACR,OAA4B;CAD5C,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAwB,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAxB,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAwB,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,MAAA,OAAA;EAAA,UAAA;EAAA,UAnPzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4OT,UAAA;EAAA,QAAA,CAAA,kHAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAOU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAwB,YAAA,CAAA;EAtPpC,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAkB,YAChB;GAAI,UACN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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