@ngxsplayer/ngx-smart-player-ui-audio 0.0.0-stage → 0.2.0
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.
|
@@ -0,0 +1,2938 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, NgModule, Output, ViewChild, inject } from "@angular/core";
|
|
3
|
+
import { CommonModule, DOCUMENT } from "@angular/common";
|
|
4
|
+
import { SmartPlayerComponent, SmartPlayerIconComponent, SmartSettingsComponent } from "@ngxsplayer/ngx-smart-player";
|
|
5
|
+
import { NgxspTimeSlider, NgxspVolumeControl } from "@ngxsplayer/ngx-smart-player-ui-core";
|
|
6
|
+
const COLLECTION_VIEW_IDS = [
|
|
7
|
+
"favorites",
|
|
8
|
+
"recents",
|
|
9
|
+
"playlists"
|
|
10
|
+
];
|
|
11
|
+
const APP_VIEW_IDS = ["settings"];
|
|
12
|
+
const VIEW_ICONS = {
|
|
13
|
+
home: "home",
|
|
14
|
+
tracks: "music",
|
|
15
|
+
albums: "disc",
|
|
16
|
+
artists: "user",
|
|
17
|
+
genres: "tag",
|
|
18
|
+
favorites: "heart",
|
|
19
|
+
recents: "clock",
|
|
20
|
+
playlists: "list",
|
|
21
|
+
servers: "server",
|
|
22
|
+
webradios: "radio",
|
|
23
|
+
settings: "settings"
|
|
24
|
+
};
|
|
25
|
+
const WAVEFORM_BARS = [
|
|
26
|
+
32,
|
|
27
|
+
48,
|
|
28
|
+
40,
|
|
29
|
+
62,
|
|
30
|
+
54,
|
|
31
|
+
72,
|
|
32
|
+
46,
|
|
33
|
+
38,
|
|
34
|
+
58,
|
|
35
|
+
80,
|
|
36
|
+
66,
|
|
37
|
+
50,
|
|
38
|
+
42,
|
|
39
|
+
60,
|
|
40
|
+
76,
|
|
41
|
+
88,
|
|
42
|
+
70,
|
|
43
|
+
56,
|
|
44
|
+
44,
|
|
45
|
+
64,
|
|
46
|
+
82,
|
|
47
|
+
94,
|
|
48
|
+
74,
|
|
49
|
+
60,
|
|
50
|
+
48,
|
|
51
|
+
68,
|
|
52
|
+
86,
|
|
53
|
+
78,
|
|
54
|
+
62,
|
|
55
|
+
50,
|
|
56
|
+
40,
|
|
57
|
+
58,
|
|
58
|
+
72,
|
|
59
|
+
90,
|
|
60
|
+
76,
|
|
61
|
+
64,
|
|
62
|
+
52,
|
|
63
|
+
44,
|
|
64
|
+
60,
|
|
65
|
+
74,
|
|
66
|
+
66,
|
|
67
|
+
54,
|
|
68
|
+
42,
|
|
69
|
+
50,
|
|
70
|
+
62,
|
|
71
|
+
48,
|
|
72
|
+
38,
|
|
73
|
+
30
|
|
74
|
+
];
|
|
75
|
+
var NgxSmartPlayerAudioUiComponent = class NgxSmartPlayerAudioUiComponent {
|
|
76
|
+
visualizerBars = WAVEFORM_BARS;
|
|
77
|
+
cdr = inject(ChangeDetectorRef);
|
|
78
|
+
host = inject(ElementRef);
|
|
79
|
+
failedArtworkUrls = /* @__PURE__ */ new Set();
|
|
80
|
+
config = null;
|
|
81
|
+
plugins = [];
|
|
82
|
+
ports;
|
|
83
|
+
engines;
|
|
84
|
+
debug = false;
|
|
85
|
+
startTimeSec = null;
|
|
86
|
+
autoplayOnInit = false;
|
|
87
|
+
playRequest = 0;
|
|
88
|
+
canPrev = false;
|
|
89
|
+
canNext = false;
|
|
90
|
+
shuffleActive = false;
|
|
91
|
+
shuffleLabel = "Shuffle: off";
|
|
92
|
+
repeatMode = "off";
|
|
93
|
+
repeatLabel = "Repeat: off";
|
|
94
|
+
hasPlaylistControls = false;
|
|
95
|
+
castEnabled = false;
|
|
96
|
+
libraryViewsLabel = "Audio library views";
|
|
97
|
+
transportLabel = "Audio transport";
|
|
98
|
+
seekLabel = "Playback position";
|
|
99
|
+
libraryTitle = "Local library";
|
|
100
|
+
libraryContentTitle = "";
|
|
101
|
+
backLabel = null;
|
|
102
|
+
libraryMeta = "";
|
|
103
|
+
libraryEyebrow = "Music library";
|
|
104
|
+
searchPlaceholder = "Search";
|
|
105
|
+
searchLabel = "Search audio library";
|
|
106
|
+
searchTerm = "";
|
|
107
|
+
libraryViews = [];
|
|
108
|
+
activeLibraryView = "tracks";
|
|
109
|
+
librarySections = [];
|
|
110
|
+
queueTitle = "Up next";
|
|
111
|
+
queueEyebrow = "Playlist";
|
|
112
|
+
tracksLabel = "Tracks";
|
|
113
|
+
titleColumnLabel = "Title";
|
|
114
|
+
artistColumnLabel = "Artist";
|
|
115
|
+
albumColumnLabel = "Album";
|
|
116
|
+
timeColumnLabel = "Time";
|
|
117
|
+
nowPlayingLabel = "Now playing";
|
|
118
|
+
nowListeningLabel = "Now listening";
|
|
119
|
+
noTrackTitle = "No track selected";
|
|
120
|
+
miniPlayerLabel = "Audio mini-player";
|
|
121
|
+
readyLabel = "Ready for local playback";
|
|
122
|
+
selectTrackTitle = "Select a track";
|
|
123
|
+
selectTrackBody = "Open local files or choose a queue item.";
|
|
124
|
+
emptyLibraryLabel = "No tracks indexed yet.";
|
|
125
|
+
playlistsLabel = "Playlists";
|
|
126
|
+
hidePlaylistsLabel = "Hide playlists";
|
|
127
|
+
devicesLabel = "Devices";
|
|
128
|
+
compactMode = "full";
|
|
129
|
+
compactModes = false;
|
|
130
|
+
compactMiniLabel = "Mini player";
|
|
131
|
+
compactBarLabel = "Bottom bar";
|
|
132
|
+
compactRestoreLabel = "Full window";
|
|
133
|
+
compactModeChange = new EventEmitter();
|
|
134
|
+
compactLyrics = false;
|
|
135
|
+
compactLyricsLabel = "Lyrics";
|
|
136
|
+
compactLyricsToggle = new EventEmitter();
|
|
137
|
+
brandLogoSrc = "";
|
|
138
|
+
hideDevicesLabel = "Hide devices";
|
|
139
|
+
previousLabel = "Previous";
|
|
140
|
+
nextLabel = "Next";
|
|
141
|
+
playLabel = "Play";
|
|
142
|
+
pauseLabel = "Pause";
|
|
143
|
+
stopLabel = "Stop";
|
|
144
|
+
addLabel = "Add";
|
|
145
|
+
queueNextLabel = "Play next";
|
|
146
|
+
queueAddLabel = "Add to queue";
|
|
147
|
+
createLabel = "Create";
|
|
148
|
+
renameLabel = "Rename";
|
|
149
|
+
deleteLabel = "Delete";
|
|
150
|
+
saveLabel = "Save";
|
|
151
|
+
cancelLabel = "Cancel";
|
|
152
|
+
refreshLabel = "Refresh";
|
|
153
|
+
tracksCountLabel = "track(s)";
|
|
154
|
+
newPlaylistPlaceholder = "New playlist name";
|
|
155
|
+
renamePlaylistPlaceholder = "Rename playlist";
|
|
156
|
+
remotePlaybackLabel = "Remote playback";
|
|
157
|
+
emptyQueueLabel = "Queue is empty.";
|
|
158
|
+
emptyPlaylistTargetsLabel = "Create a playlist to save the current track.";
|
|
159
|
+
selectTrackForPlaylistLabel = "Select a track to add it to a playlist.";
|
|
160
|
+
addToPlaylistLabel = "Add to a list";
|
|
161
|
+
playlistTargetLabel = "Add to a list: ";
|
|
162
|
+
removeItemLabel = "Remove";
|
|
163
|
+
emptyDevicesLabel = "No playback device available.";
|
|
164
|
+
currentDuration = "";
|
|
165
|
+
currentTrackId = "";
|
|
166
|
+
currentTitle = "";
|
|
167
|
+
currentSubtitle = "";
|
|
168
|
+
currentMeta = "";
|
|
169
|
+
currentArtworkUrl = "";
|
|
170
|
+
favoriteActive = false;
|
|
171
|
+
favoriteLabel = "Add to favorites";
|
|
172
|
+
lockAvailable = false;
|
|
173
|
+
ringtoneAvailable = false;
|
|
174
|
+
ringtoneLabel = "Make a ringtone";
|
|
175
|
+
lockLabel = "Lock";
|
|
176
|
+
unlockLabel = "Take out of the vault";
|
|
177
|
+
favoriteActiveLabel = "Remove from favorites";
|
|
178
|
+
favoritesLabel = "Favorites";
|
|
179
|
+
queueItems = [];
|
|
180
|
+
currentTrackAvailable = false;
|
|
181
|
+
playlistOptions = [];
|
|
182
|
+
set playlistTargetTrack(track) {
|
|
183
|
+
this.playlistTarget = track;
|
|
184
|
+
if (track) {
|
|
185
|
+
this.playlistToolsOpen = true;
|
|
186
|
+
this.revealPanel();
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
get playlistTargetTrack() {
|
|
190
|
+
return this.playlistTarget;
|
|
191
|
+
}
|
|
192
|
+
playlistTarget = null;
|
|
193
|
+
removableItemIds = [];
|
|
194
|
+
stationForm = null;
|
|
195
|
+
settingsSections = [];
|
|
196
|
+
serverForm = null;
|
|
197
|
+
devicesOpen = false;
|
|
198
|
+
lyricsPanel = null;
|
|
199
|
+
showDeviceButton = true;
|
|
200
|
+
deviceItems = [];
|
|
201
|
+
closeLabel = "Close";
|
|
202
|
+
sourceChangeLabel = "Open file";
|
|
203
|
+
sourceChangeTitle = "";
|
|
204
|
+
sourceDropTitle = "";
|
|
205
|
+
sourceDropHint = "";
|
|
206
|
+
sourceChangeAccept = "audio/*";
|
|
207
|
+
folderImportLabel = "";
|
|
208
|
+
libraryStatus = "";
|
|
209
|
+
libraryBusy = false;
|
|
210
|
+
languageLabel = "Language";
|
|
211
|
+
activeLanguage = "";
|
|
212
|
+
languageOptions = [];
|
|
213
|
+
statusMessage = "";
|
|
214
|
+
statusKind = "info";
|
|
215
|
+
showResumeProgress = false;
|
|
216
|
+
outputVolume = 100;
|
|
217
|
+
outputVolumeLabel = "Output volume";
|
|
218
|
+
outputMuteLabel = "Mute output";
|
|
219
|
+
outputUnmuteLabel = "Restore sound";
|
|
220
|
+
ended = new EventEmitter();
|
|
221
|
+
videoSize = new EventEmitter();
|
|
222
|
+
progress = new EventEmitter();
|
|
223
|
+
prev = new EventEmitter();
|
|
224
|
+
next = new EventEmitter();
|
|
225
|
+
toggleShuffle = new EventEmitter();
|
|
226
|
+
cycleRepeat = new EventEmitter();
|
|
227
|
+
cast = new EventEmitter();
|
|
228
|
+
subtitles = new EventEmitter();
|
|
229
|
+
selectLibraryView = new EventEmitter();
|
|
230
|
+
back = new EventEmitter();
|
|
231
|
+
settingChange = new EventEmitter();
|
|
232
|
+
settingAction = new EventEmitter();
|
|
233
|
+
selectLibraryItem = new EventEmitter();
|
|
234
|
+
playLibraryItem = new EventEmitter();
|
|
235
|
+
addLibraryItemNext = new EventEmitter();
|
|
236
|
+
addLibraryItemToQueue = new EventEmitter();
|
|
237
|
+
selectQueueItem = new EventEmitter();
|
|
238
|
+
createPlaylist = new EventEmitter();
|
|
239
|
+
addCurrentToPlaylist = new EventEmitter();
|
|
240
|
+
addTrackToPlaylist = new EventEmitter();
|
|
241
|
+
requestPlaylistTarget = new EventEmitter();
|
|
242
|
+
cancelPlaylistTarget = new EventEmitter();
|
|
243
|
+
removeLibraryItem = new EventEmitter();
|
|
244
|
+
addStation = new EventEmitter();
|
|
245
|
+
connectServer = new EventEmitter();
|
|
246
|
+
discoverServers = new EventEmitter();
|
|
247
|
+
connectDiscoveredServer = new EventEmitter();
|
|
248
|
+
renamePlaylist = new EventEmitter();
|
|
249
|
+
deletePlaylist = new EventEmitter();
|
|
250
|
+
toggleDevices = new EventEmitter();
|
|
251
|
+
refreshDevices = new EventEmitter();
|
|
252
|
+
openLyrics = new EventEmitter();
|
|
253
|
+
refreshLyrics = new EventEmitter();
|
|
254
|
+
seekLyrics = new EventEmitter();
|
|
255
|
+
playOnDevice = new EventEmitter();
|
|
256
|
+
stopOnDevice = new EventEmitter();
|
|
257
|
+
primaryPlay = new EventEmitter();
|
|
258
|
+
primaryPlaybackToggle = new EventEmitter();
|
|
259
|
+
playerStateChange = new EventEmitter();
|
|
260
|
+
toggleFavorite = new EventEmitter();
|
|
261
|
+
toggleLock = new EventEmitter();
|
|
262
|
+
makeRingtone = new EventEmitter();
|
|
263
|
+
revealFileLabel = "";
|
|
264
|
+
revealFile = new EventEmitter();
|
|
265
|
+
sourceFileChange = new EventEmitter();
|
|
266
|
+
addFolder = new EventEmitter();
|
|
267
|
+
languageChange = new EventEmitter();
|
|
268
|
+
searchTermChange = new EventEmitter();
|
|
269
|
+
outputVolumeChange = new EventEmitter();
|
|
270
|
+
outputMuteToggle = new EventEmitter();
|
|
271
|
+
smartPlayer;
|
|
272
|
+
audioFileInput;
|
|
273
|
+
document = inject(DOCUMENT);
|
|
274
|
+
libraryScroll;
|
|
275
|
+
lyricsLinesEl;
|
|
276
|
+
queueListEl;
|
|
277
|
+
compactLyricsEl;
|
|
278
|
+
compactLyricsFollowed = "";
|
|
279
|
+
panelEl;
|
|
280
|
+
sheetButtonEl;
|
|
281
|
+
lyricsFollowed = "";
|
|
282
|
+
queueFollowed = "";
|
|
283
|
+
fileDragActive = false;
|
|
284
|
+
panelSheetOpen = false;
|
|
285
|
+
playlistToolsOpen = false;
|
|
286
|
+
lyricsOpen = false;
|
|
287
|
+
queuePanelOpen = true;
|
|
288
|
+
queueOpen = true;
|
|
289
|
+
panelOrder = [
|
|
290
|
+
"queue",
|
|
291
|
+
"lyrics",
|
|
292
|
+
"devices",
|
|
293
|
+
"playlists"
|
|
294
|
+
];
|
|
295
|
+
collapsedPanels = /* @__PURE__ */ new Set();
|
|
296
|
+
playlistDraftName = "";
|
|
297
|
+
stationNameDraft = "";
|
|
298
|
+
stationUrlDraft = "";
|
|
299
|
+
serverKindDraft = "";
|
|
300
|
+
serverAddressDraft = "";
|
|
301
|
+
serverUsernameDraft = "";
|
|
302
|
+
serverPasswordDraft = "";
|
|
303
|
+
editingPlaylistId = null;
|
|
304
|
+
renameDraftName = "";
|
|
305
|
+
playerState = null;
|
|
306
|
+
progressPercent = 0;
|
|
307
|
+
currentTimeSec = 0;
|
|
308
|
+
durationSec = 0;
|
|
309
|
+
elapsedLabel = "0:00";
|
|
310
|
+
detectedDurationLabel = "";
|
|
311
|
+
fileDragDepth = 0;
|
|
312
|
+
get isPlaying() {
|
|
313
|
+
return this.playerState?.kind === "playing";
|
|
314
|
+
}
|
|
315
|
+
get isHomeView() {
|
|
316
|
+
return this.activeLibraryView === "home";
|
|
317
|
+
}
|
|
318
|
+
get primaryViews() {
|
|
319
|
+
return this.libraryViews.filter((view) => !COLLECTION_VIEW_IDS.includes(view.id) && !APP_VIEW_IDS.includes(view.id));
|
|
320
|
+
}
|
|
321
|
+
get appViews() {
|
|
322
|
+
return this.libraryViews.filter((view) => APP_VIEW_IDS.includes(view.id));
|
|
323
|
+
}
|
|
324
|
+
get collectionViews() {
|
|
325
|
+
return this.libraryViews.filter((view) => COLLECTION_VIEW_IDS.includes(view.id));
|
|
326
|
+
}
|
|
327
|
+
get panelTab() {
|
|
328
|
+
return this.panelOrder.find((panel) => this.isPanelOpen(panel)) ?? "queue";
|
|
329
|
+
}
|
|
330
|
+
get lyricsTitle() {
|
|
331
|
+
return this.lyricsPanel?.title ?? "";
|
|
332
|
+
}
|
|
333
|
+
isPanelOpen(panel) {
|
|
334
|
+
if (panel === "queue") return this.queueOpen;
|
|
335
|
+
if (panel === "lyrics") return this.lyricsOpen;
|
|
336
|
+
if (panel === "devices") return this.devicesOpen;
|
|
337
|
+
return this.playlistToolsOpen;
|
|
338
|
+
}
|
|
339
|
+
isPanelCollapsed(panel) {
|
|
340
|
+
return this.collapsedPanels.has(panel);
|
|
341
|
+
}
|
|
342
|
+
togglePanelCollapsed(panel) {
|
|
343
|
+
if (!this.collapsedPanels.delete(panel)) this.collapsedPanels.add(panel);
|
|
344
|
+
}
|
|
345
|
+
togglePanel(panel) {
|
|
346
|
+
const wasOpen = this.isPanelOpen(panel);
|
|
347
|
+
if (!wasOpen) {
|
|
348
|
+
this.revealPanel();
|
|
349
|
+
this.collapsedPanels.delete(panel);
|
|
350
|
+
}
|
|
351
|
+
if (panel === "devices") {
|
|
352
|
+
this.toggleDevices.emit();
|
|
353
|
+
return;
|
|
354
|
+
}
|
|
355
|
+
if (panel === "lyrics") {
|
|
356
|
+
this.lyricsOpen = !wasOpen;
|
|
357
|
+
if (!wasOpen) {
|
|
358
|
+
this.lyricsFollowed = "";
|
|
359
|
+
this.openLyrics.emit();
|
|
360
|
+
}
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
363
|
+
if (panel === "playlists") {
|
|
364
|
+
this.playlistToolsOpen = !wasOpen;
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
this.queueOpen = !wasOpen;
|
|
368
|
+
}
|
|
369
|
+
get displayDurationLabel() {
|
|
370
|
+
return this.detectedDurationLabel || this.currentDuration || this.durationFromMeta() || "0:00";
|
|
371
|
+
}
|
|
372
|
+
viewIcon(id) {
|
|
373
|
+
return VIEW_ICONS[id] ?? "layers";
|
|
374
|
+
}
|
|
375
|
+
playItem(id) {
|
|
376
|
+
if (this.playLibraryItem.observed) this.playLibraryItem.emit(id);
|
|
377
|
+
else this.selectLibraryItem.emit(id);
|
|
378
|
+
}
|
|
379
|
+
artworkSrc(url) {
|
|
380
|
+
return url && !this.failedArtworkUrls.has(url) ? url : "";
|
|
381
|
+
}
|
|
382
|
+
markArtworkFailed(url) {
|
|
383
|
+
if (this.failedArtworkUrls.has(url)) return;
|
|
384
|
+
this.failedArtworkUrls.add(url);
|
|
385
|
+
this.cdr.markForCheck();
|
|
386
|
+
}
|
|
387
|
+
artTone(seed) {
|
|
388
|
+
let hash = 0;
|
|
389
|
+
for (let i = 0; i < seed.length; i += 1) hash = hash * 31 + seed.charCodeAt(i) >>> 0;
|
|
390
|
+
return hash % 8;
|
|
391
|
+
}
|
|
392
|
+
isBarPlayed(index) {
|
|
393
|
+
return (index + .5) / this.visualizerBars.length * 100 <= this.progressPercent;
|
|
394
|
+
}
|
|
395
|
+
artistOf(item) {
|
|
396
|
+
return item.artist || this.splitSubtitle(item.subtitle)[0] || "-";
|
|
397
|
+
}
|
|
398
|
+
albumOf(item) {
|
|
399
|
+
return item.album || this.splitSubtitle(item.subtitle)[1] || item.meta || "-";
|
|
400
|
+
}
|
|
401
|
+
durationOf(item) {
|
|
402
|
+
return item.duration || item.meta || "";
|
|
403
|
+
}
|
|
404
|
+
togglePrimaryPlayback() {
|
|
405
|
+
if (this.config && this.smartPlayer) {
|
|
406
|
+
const intent = this.isPlaying ? "pause" : "play";
|
|
407
|
+
this.smartPlayer.togglePlay();
|
|
408
|
+
this.primaryPlaybackToggle.emit(intent);
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
this.primaryPlay.emit();
|
|
412
|
+
}
|
|
413
|
+
openSourcePicker() {
|
|
414
|
+
this.audioFileInput?.nativeElement.click();
|
|
415
|
+
}
|
|
416
|
+
seekTo(timeSec) {
|
|
417
|
+
this.smartPlayer?.seekTo(timeSec);
|
|
418
|
+
}
|
|
419
|
+
contentScrollTop() {
|
|
420
|
+
const panel = this.libraryScroll?.nativeElement;
|
|
421
|
+
if (panel && panel.scrollTop > 0) return panel.scrollTop;
|
|
422
|
+
return this.document.defaultView?.scrollY ?? 0;
|
|
423
|
+
}
|
|
424
|
+
setContentScrollTop(value) {
|
|
425
|
+
const top = Number.isFinite(value) && value > 0 ? value : 0;
|
|
426
|
+
const panel = this.libraryScroll?.nativeElement;
|
|
427
|
+
requestAnimationFrame(() => {
|
|
428
|
+
if (panel) panel.scrollTop = top;
|
|
429
|
+
this.document.defaultView?.scrollTo({
|
|
430
|
+
top,
|
|
431
|
+
behavior: "auto"
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
setOutputVolumePercent(value) {
|
|
436
|
+
this.smartPlayer?.onVolume(this.normalizeOutputVolume(value) / 100);
|
|
437
|
+
}
|
|
438
|
+
onOutputVolumeRatioChange(value) {
|
|
439
|
+
const nextVolume = this.normalizeOutputVolume(value * 100);
|
|
440
|
+
this.setOutputVolumePercent(nextVolume);
|
|
441
|
+
this.outputVolumeChange.emit(nextVolume);
|
|
442
|
+
}
|
|
443
|
+
onSourceFileInput(event) {
|
|
444
|
+
const input = event.target;
|
|
445
|
+
const file = input?.files?.[0];
|
|
446
|
+
if (file) this.sourceFileChange.emit(file);
|
|
447
|
+
if (input) {
|
|
448
|
+
input.value = "";
|
|
449
|
+
input.blur();
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
onSearchInput(event) {
|
|
453
|
+
this.searchTermChange.emit(event.target?.value ?? "");
|
|
454
|
+
}
|
|
455
|
+
onFileDragEnter(event) {
|
|
456
|
+
if (!this.dragHasFiles(event)) return;
|
|
457
|
+
event.preventDefault();
|
|
458
|
+
this.fileDragDepth += 1;
|
|
459
|
+
this.fileDragActive = true;
|
|
460
|
+
this.cdr.markForCheck();
|
|
461
|
+
}
|
|
462
|
+
onFileDragOver(event) {
|
|
463
|
+
if (!this.dragHasFiles(event)) return;
|
|
464
|
+
event.preventDefault();
|
|
465
|
+
if (event.dataTransfer) event.dataTransfer.dropEffect = "copy";
|
|
466
|
+
}
|
|
467
|
+
onFileDragLeave(event) {
|
|
468
|
+
if (!this.dragHasFiles(event)) return;
|
|
469
|
+
event.preventDefault();
|
|
470
|
+
this.fileDragDepth = Math.max(0, this.fileDragDepth - 1);
|
|
471
|
+
if (this.fileDragDepth === 0) this.fileDragActive = false;
|
|
472
|
+
this.cdr.markForCheck();
|
|
473
|
+
}
|
|
474
|
+
onFileDrop(event) {
|
|
475
|
+
if (!this.dragHasFiles(event)) return;
|
|
476
|
+
event.preventDefault();
|
|
477
|
+
this.fileDragDepth = 0;
|
|
478
|
+
this.fileDragActive = false;
|
|
479
|
+
const file = event.dataTransfer?.files?.[0];
|
|
480
|
+
if (file) this.sourceFileChange.emit(file);
|
|
481
|
+
this.cdr.markForCheck();
|
|
482
|
+
}
|
|
483
|
+
onPlayerStateChange(state) {
|
|
484
|
+
this.playerState = state;
|
|
485
|
+
this.playerStateChange.emit(state);
|
|
486
|
+
this.cdr.markForCheck();
|
|
487
|
+
}
|
|
488
|
+
onPlayerProgress(event) {
|
|
489
|
+
this.progress.emit(event);
|
|
490
|
+
const duration = Number.isFinite(event.duration) ? event.duration : 0;
|
|
491
|
+
this.currentTimeSec = Number.isFinite(event.currentTime) ? Math.max(0, event.currentTime) : 0;
|
|
492
|
+
this.durationSec = Math.max(0, duration);
|
|
493
|
+
this.progressPercent = duration > 0 ? Math.max(0, Math.min(100, event.currentTime / duration * 100)) : 0;
|
|
494
|
+
this.elapsedLabel = this.formatTime(event.currentTime);
|
|
495
|
+
this.detectedDurationLabel = duration > 0 ? this.formatTime(duration) : "";
|
|
496
|
+
this.cdr.markForCheck();
|
|
497
|
+
}
|
|
498
|
+
toggleQueuePanel() {
|
|
499
|
+
if (this.isSheetLayout()) {
|
|
500
|
+
if (this.panelSheetOpen) this.closePanelSheet();
|
|
501
|
+
else this.openPanelSheet();
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
this.queuePanelOpen = !this.queuePanelOpen;
|
|
505
|
+
}
|
|
506
|
+
get panelSwitches() {
|
|
507
|
+
const switches = [{
|
|
508
|
+
id: "queue",
|
|
509
|
+
icon: "list",
|
|
510
|
+
label: this.queueTitle
|
|
511
|
+
}];
|
|
512
|
+
if (this.lyricsPanel) switches.push({
|
|
513
|
+
id: "lyrics",
|
|
514
|
+
icon: "lyrics",
|
|
515
|
+
label: this.lyricsTitle
|
|
516
|
+
});
|
|
517
|
+
if (this.showDeviceButton) switches.push({
|
|
518
|
+
id: "devices",
|
|
519
|
+
icon: this.devicesOpen ? "devices-active" : "devices",
|
|
520
|
+
label: this.devicesOpen ? this.hideDevicesLabel : this.devicesLabel
|
|
521
|
+
});
|
|
522
|
+
switches.push({
|
|
523
|
+
id: "playlists",
|
|
524
|
+
icon: "layers",
|
|
525
|
+
label: this.playlistsLabel
|
|
526
|
+
});
|
|
527
|
+
return switches;
|
|
528
|
+
}
|
|
529
|
+
isPanelShowing(panel) {
|
|
530
|
+
return this.queuePanelOpen && this.isPanelOpen(panel);
|
|
531
|
+
}
|
|
532
|
+
togglePanelFromBar(panel) {
|
|
533
|
+
if (!this.isPanelShowing(panel)) {
|
|
534
|
+
this.selectPanelTab(panel);
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
const othersOpen = this.panelOrder.some((one) => one !== panel && this.isPanelOpen(one));
|
|
538
|
+
this.togglePanel(panel);
|
|
539
|
+
if (othersOpen) return;
|
|
540
|
+
if (this.isSheetLayout()) this.closePanelSheet();
|
|
541
|
+
else this.queuePanelOpen = false;
|
|
542
|
+
}
|
|
543
|
+
selectPanelTab(tab) {
|
|
544
|
+
if (!this.isPanelOpen(tab)) this.togglePanel(tab);
|
|
545
|
+
else this.revealPanel();
|
|
546
|
+
}
|
|
547
|
+
isSheetLayout() {
|
|
548
|
+
return typeof matchMedia === "function" && matchMedia("(max-width: 720px)").matches;
|
|
549
|
+
}
|
|
550
|
+
revealPanel() {
|
|
551
|
+
this.queuePanelOpen = true;
|
|
552
|
+
if (this.isSheetLayout() && !this.panelSheetOpen) this.openPanelSheet();
|
|
553
|
+
}
|
|
554
|
+
openPanelSheet() {
|
|
555
|
+
this.panelSheetOpen = true;
|
|
556
|
+
this.queuePanelOpen = true;
|
|
557
|
+
setTimeout(() => this.panelEl?.nativeElement.querySelector(".ngxsp-wmp-sheetHeader button")?.focus());
|
|
558
|
+
}
|
|
559
|
+
closePanelSheet() {
|
|
560
|
+
if (!this.panelSheetOpen) return;
|
|
561
|
+
this.panelSheetOpen = false;
|
|
562
|
+
setTimeout(() => this.sheetButtonEl?.nativeElement.focus());
|
|
563
|
+
}
|
|
564
|
+
get hasCompactLyrics() {
|
|
565
|
+
return (this.lyricsPanel?.lines.length ?? 0) > 0;
|
|
566
|
+
}
|
|
567
|
+
get showCompactLyrics() {
|
|
568
|
+
return this.compactLyrics && this.hasCompactLyrics;
|
|
569
|
+
}
|
|
570
|
+
get activeLyricsIndex() {
|
|
571
|
+
const lines = this.lyricsPanel?.lines ?? [];
|
|
572
|
+
let found = -1;
|
|
573
|
+
for (let index = 0; index < lines.length; index++) {
|
|
574
|
+
const time = lines[index].timeSec;
|
|
575
|
+
if (time === void 0 || time > this.currentTimeSec + .001) break;
|
|
576
|
+
found = index;
|
|
577
|
+
}
|
|
578
|
+
return found;
|
|
579
|
+
}
|
|
580
|
+
playFromLyrics(timeSec) {
|
|
581
|
+
this.smartPlayer?.seekTo(timeSec);
|
|
582
|
+
this.seekLyrics.emit(timeSec);
|
|
583
|
+
}
|
|
584
|
+
ngAfterViewChecked() {
|
|
585
|
+
const reduced = typeof matchMedia === "function" && matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
586
|
+
const queue = this.queueListEl?.nativeElement;
|
|
587
|
+
const playing = queue?.querySelector(".ngxsp-wmp-queueItem.active");
|
|
588
|
+
const queueKey = playing && queue ? `${Array.prototype.indexOf.call(queue.children, playing)}:${queue.clientHeight}` : "";
|
|
589
|
+
if (queue && playing && queueKey !== this.queueFollowed) {
|
|
590
|
+
this.queueFollowed = queueKey;
|
|
591
|
+
const box = queue.getBoundingClientRect();
|
|
592
|
+
const row = playing.getBoundingClientRect();
|
|
593
|
+
queue.scrollTo({
|
|
594
|
+
top: queue.scrollTop + (row.top - box.top) - (box.height - row.height) / 2,
|
|
595
|
+
behavior: reduced ? "auto" : "smooth"
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
const compact = this.compactLyricsEl?.nativeElement;
|
|
599
|
+
const compactActive = compact?.querySelector(".ngxsp-wmp-compactLyricsLine.active");
|
|
600
|
+
const compactKey = compactActive && compact ? `${this.currentTrackId}:${this.activeLyricsIndex}:${compact.clientHeight}` : "";
|
|
601
|
+
if (compact && compactActive && compactKey !== this.compactLyricsFollowed) {
|
|
602
|
+
this.compactLyricsFollowed = compactKey;
|
|
603
|
+
compact.scrollTo({
|
|
604
|
+
top: compactActive.offsetTop - compact.clientHeight / 2 + compactActive.offsetHeight / 2,
|
|
605
|
+
behavior: "smooth"
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
if (this.panelTab !== "lyrics") return;
|
|
609
|
+
const container = this.lyricsLinesEl?.nativeElement;
|
|
610
|
+
const active = container?.querySelector(".ngxsp-wmp-lyricsLine.active");
|
|
611
|
+
const key = active && container ? `${Array.prototype.indexOf.call(container.children, active)}:${active.textContent}` : "";
|
|
612
|
+
if (!active || key === this.lyricsFollowed) return;
|
|
613
|
+
this.lyricsFollowed = key;
|
|
614
|
+
active.scrollIntoView({
|
|
615
|
+
block: "center",
|
|
616
|
+
behavior: reduced ? "auto" : "smooth"
|
|
617
|
+
});
|
|
618
|
+
}
|
|
619
|
+
togglePlaylistTools() {
|
|
620
|
+
this.playlistToolsOpen = !this.playlistToolsOpen;
|
|
621
|
+
}
|
|
622
|
+
get hasPlaylists() {
|
|
623
|
+
return this.playlistOptions.length > 0;
|
|
624
|
+
}
|
|
625
|
+
isRemovable(itemId) {
|
|
626
|
+
return this.removableItemIds.includes(itemId);
|
|
627
|
+
}
|
|
628
|
+
rowActionsWidth(items) {
|
|
629
|
+
const buttons = 3 + (this.hasPlaylists ? 1 : 0) + (items.some((item) => this.isRemovable(item.id)) ? 1 : 0);
|
|
630
|
+
return `${buttons * 32 + (buttons - 1) * 2 + 8}px`;
|
|
631
|
+
}
|
|
632
|
+
addToPlaylist(playlistId) {
|
|
633
|
+
const target = this.playlistTargetTrack;
|
|
634
|
+
if (target) this.addTrackToPlaylist.emit({
|
|
635
|
+
trackId: target.id,
|
|
636
|
+
playlistId
|
|
637
|
+
});
|
|
638
|
+
else this.addCurrentToPlaylist.emit(playlistId);
|
|
639
|
+
}
|
|
640
|
+
onServerKindChange(event) {
|
|
641
|
+
this.serverKindDraft = event.target?.value ?? "";
|
|
642
|
+
}
|
|
643
|
+
onServerAddressInput(event) {
|
|
644
|
+
this.serverAddressDraft = event.target?.value ?? "";
|
|
645
|
+
}
|
|
646
|
+
onServerUsernameInput(event) {
|
|
647
|
+
this.serverUsernameDraft = event.target?.value ?? "";
|
|
648
|
+
}
|
|
649
|
+
onServerPasswordInput(event) {
|
|
650
|
+
this.serverPasswordDraft = event.target?.value ?? "";
|
|
651
|
+
}
|
|
652
|
+
selectedServerKind(form) {
|
|
653
|
+
const id = this.serverKindDraft || form.kinds?.[0]?.id;
|
|
654
|
+
return form.kinds?.find((kind) => kind.id === id);
|
|
655
|
+
}
|
|
656
|
+
submitServer(event) {
|
|
657
|
+
event.preventDefault();
|
|
658
|
+
const address = this.serverAddressDraft.trim();
|
|
659
|
+
if (!address) return;
|
|
660
|
+
const kind = this.serverForm ? this.selectedServerKind(this.serverForm) : void 0;
|
|
661
|
+
const credentials = kind?.credentials !== false;
|
|
662
|
+
this.connectServer.emit({
|
|
663
|
+
...kind ? { kind: kind.id } : {},
|
|
664
|
+
address,
|
|
665
|
+
username: credentials ? this.serverUsernameDraft.trim() : "",
|
|
666
|
+
password: credentials ? this.serverPasswordDraft : ""
|
|
667
|
+
});
|
|
668
|
+
this.serverPasswordDraft = "";
|
|
669
|
+
}
|
|
670
|
+
onStationNameInput(event) {
|
|
671
|
+
this.stationNameDraft = event.target?.value ?? "";
|
|
672
|
+
}
|
|
673
|
+
onStationUrlInput(event) {
|
|
674
|
+
this.stationUrlDraft = event.target?.value ?? "";
|
|
675
|
+
}
|
|
676
|
+
submitStation(event) {
|
|
677
|
+
event.preventDefault();
|
|
678
|
+
const url = this.stationUrlDraft.trim();
|
|
679
|
+
if (!url) return;
|
|
680
|
+
this.addStation.emit({
|
|
681
|
+
name: this.stationNameDraft.trim(),
|
|
682
|
+
url
|
|
683
|
+
});
|
|
684
|
+
this.stationNameDraft = "";
|
|
685
|
+
this.stationUrlDraft = "";
|
|
686
|
+
}
|
|
687
|
+
onPlaylistDraftInput(event) {
|
|
688
|
+
this.playlistDraftName = event.target?.value ?? "";
|
|
689
|
+
}
|
|
690
|
+
submitCreatePlaylist() {
|
|
691
|
+
const name = this.playlistDraftName.trim();
|
|
692
|
+
if (!name) return;
|
|
693
|
+
this.createPlaylist.emit(name);
|
|
694
|
+
this.playlistDraftName = "";
|
|
695
|
+
this.playlistToolsOpen = true;
|
|
696
|
+
}
|
|
697
|
+
startRenamePlaylist(id, name) {
|
|
698
|
+
this.editingPlaylistId = id;
|
|
699
|
+
this.renameDraftName = name;
|
|
700
|
+
this.playlistToolsOpen = true;
|
|
701
|
+
}
|
|
702
|
+
onRenameDraftInput(event) {
|
|
703
|
+
this.renameDraftName = event.target?.value ?? "";
|
|
704
|
+
}
|
|
705
|
+
cancelRenamePlaylist() {
|
|
706
|
+
this.editingPlaylistId = null;
|
|
707
|
+
this.renameDraftName = "";
|
|
708
|
+
}
|
|
709
|
+
submitRenamePlaylist() {
|
|
710
|
+
if (!this.editingPlaylistId || !this.renameDraftName.trim()) return;
|
|
711
|
+
this.renamePlaylist.emit({
|
|
712
|
+
id: this.editingPlaylistId,
|
|
713
|
+
name: this.renameDraftName.trim()
|
|
714
|
+
});
|
|
715
|
+
this.cancelRenamePlaylist();
|
|
716
|
+
}
|
|
717
|
+
splitSubtitle(subtitle) {
|
|
718
|
+
const [artist = "", ...albumParts] = (subtitle ?? "").split(" - ");
|
|
719
|
+
return [artist.trim(), albumParts.join(" - ").trim()];
|
|
720
|
+
}
|
|
721
|
+
durationFromMeta() {
|
|
722
|
+
return this.currentMeta.match(/(?:^|[-\s])(\d{1,2}:\d{2})(?:\s|$)/)?.[1] ?? "";
|
|
723
|
+
}
|
|
724
|
+
formatTime(value) {
|
|
725
|
+
if (!Number.isFinite(value) || value < 0) return "0:00";
|
|
726
|
+
const totalSeconds = Math.floor(value);
|
|
727
|
+
return `${Math.floor(totalSeconds / 60)}:${(totalSeconds % 60).toString().padStart(2, "0")}`;
|
|
728
|
+
}
|
|
729
|
+
normalizeOutputVolume(value) {
|
|
730
|
+
return Math.max(0, Math.min(100, Math.round(Number.isFinite(value) ? value : this.outputVolume)));
|
|
731
|
+
}
|
|
732
|
+
dragHasFiles(event) {
|
|
733
|
+
return Array.from(event.dataTransfer?.types ?? []).includes("Files");
|
|
734
|
+
}
|
|
735
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
736
|
+
minVersion: "12.0.0",
|
|
737
|
+
version: "22.2.1",
|
|
738
|
+
ngImport: i0,
|
|
739
|
+
type: NgxSmartPlayerAudioUiComponent,
|
|
740
|
+
deps: [],
|
|
741
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
742
|
+
});
|
|
743
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
744
|
+
minVersion: "17.0.0",
|
|
745
|
+
version: "22.2.1",
|
|
746
|
+
type: NgxSmartPlayerAudioUiComponent,
|
|
747
|
+
isStandalone: true,
|
|
748
|
+
selector: "ngxsp-audio-player-ui",
|
|
749
|
+
inputs: {
|
|
750
|
+
config: "config",
|
|
751
|
+
plugins: "plugins",
|
|
752
|
+
ports: "ports",
|
|
753
|
+
engines: "engines",
|
|
754
|
+
debug: "debug",
|
|
755
|
+
startTimeSec: "startTimeSec",
|
|
756
|
+
autoplayOnInit: "autoplayOnInit",
|
|
757
|
+
playRequest: "playRequest",
|
|
758
|
+
canPrev: "canPrev",
|
|
759
|
+
canNext: "canNext",
|
|
760
|
+
shuffleActive: "shuffleActive",
|
|
761
|
+
shuffleLabel: "shuffleLabel",
|
|
762
|
+
repeatMode: "repeatMode",
|
|
763
|
+
repeatLabel: "repeatLabel",
|
|
764
|
+
hasPlaylistControls: "hasPlaylistControls",
|
|
765
|
+
castEnabled: "castEnabled",
|
|
766
|
+
libraryViewsLabel: "libraryViewsLabel",
|
|
767
|
+
transportLabel: "transportLabel",
|
|
768
|
+
seekLabel: "seekLabel",
|
|
769
|
+
libraryTitle: "libraryTitle",
|
|
770
|
+
libraryContentTitle: "libraryContentTitle",
|
|
771
|
+
backLabel: "backLabel",
|
|
772
|
+
libraryMeta: "libraryMeta",
|
|
773
|
+
libraryEyebrow: "libraryEyebrow",
|
|
774
|
+
searchPlaceholder: "searchPlaceholder",
|
|
775
|
+
searchLabel: "searchLabel",
|
|
776
|
+
searchTerm: "searchTerm",
|
|
777
|
+
libraryViews: "libraryViews",
|
|
778
|
+
activeLibraryView: "activeLibraryView",
|
|
779
|
+
librarySections: "librarySections",
|
|
780
|
+
queueTitle: "queueTitle",
|
|
781
|
+
queueEyebrow: "queueEyebrow",
|
|
782
|
+
tracksLabel: "tracksLabel",
|
|
783
|
+
titleColumnLabel: "titleColumnLabel",
|
|
784
|
+
artistColumnLabel: "artistColumnLabel",
|
|
785
|
+
albumColumnLabel: "albumColumnLabel",
|
|
786
|
+
timeColumnLabel: "timeColumnLabel",
|
|
787
|
+
nowPlayingLabel: "nowPlayingLabel",
|
|
788
|
+
nowListeningLabel: "nowListeningLabel",
|
|
789
|
+
noTrackTitle: "noTrackTitle",
|
|
790
|
+
miniPlayerLabel: "miniPlayerLabel",
|
|
791
|
+
readyLabel: "readyLabel",
|
|
792
|
+
selectTrackTitle: "selectTrackTitle",
|
|
793
|
+
selectTrackBody: "selectTrackBody",
|
|
794
|
+
emptyLibraryLabel: "emptyLibraryLabel",
|
|
795
|
+
playlistsLabel: "playlistsLabel",
|
|
796
|
+
hidePlaylistsLabel: "hidePlaylistsLabel",
|
|
797
|
+
devicesLabel: "devicesLabel",
|
|
798
|
+
compactMode: "compactMode",
|
|
799
|
+
compactModes: "compactModes",
|
|
800
|
+
compactMiniLabel: "compactMiniLabel",
|
|
801
|
+
compactBarLabel: "compactBarLabel",
|
|
802
|
+
compactRestoreLabel: "compactRestoreLabel",
|
|
803
|
+
compactLyrics: "compactLyrics",
|
|
804
|
+
compactLyricsLabel: "compactLyricsLabel",
|
|
805
|
+
brandLogoSrc: "brandLogoSrc",
|
|
806
|
+
hideDevicesLabel: "hideDevicesLabel",
|
|
807
|
+
previousLabel: "previousLabel",
|
|
808
|
+
nextLabel: "nextLabel",
|
|
809
|
+
playLabel: "playLabel",
|
|
810
|
+
pauseLabel: "pauseLabel",
|
|
811
|
+
stopLabel: "stopLabel",
|
|
812
|
+
addLabel: "addLabel",
|
|
813
|
+
queueNextLabel: "queueNextLabel",
|
|
814
|
+
queueAddLabel: "queueAddLabel",
|
|
815
|
+
createLabel: "createLabel",
|
|
816
|
+
renameLabel: "renameLabel",
|
|
817
|
+
deleteLabel: "deleteLabel",
|
|
818
|
+
saveLabel: "saveLabel",
|
|
819
|
+
cancelLabel: "cancelLabel",
|
|
820
|
+
refreshLabel: "refreshLabel",
|
|
821
|
+
tracksCountLabel: "tracksCountLabel",
|
|
822
|
+
newPlaylistPlaceholder: "newPlaylistPlaceholder",
|
|
823
|
+
renamePlaylistPlaceholder: "renamePlaylistPlaceholder",
|
|
824
|
+
remotePlaybackLabel: "remotePlaybackLabel",
|
|
825
|
+
emptyQueueLabel: "emptyQueueLabel",
|
|
826
|
+
emptyPlaylistTargetsLabel: "emptyPlaylistTargetsLabel",
|
|
827
|
+
selectTrackForPlaylistLabel: "selectTrackForPlaylistLabel",
|
|
828
|
+
addToPlaylistLabel: "addToPlaylistLabel",
|
|
829
|
+
playlistTargetLabel: "playlistTargetLabel",
|
|
830
|
+
removeItemLabel: "removeItemLabel",
|
|
831
|
+
emptyDevicesLabel: "emptyDevicesLabel",
|
|
832
|
+
currentDuration: "currentDuration",
|
|
833
|
+
currentTrackId: "currentTrackId",
|
|
834
|
+
currentTitle: "currentTitle",
|
|
835
|
+
currentSubtitle: "currentSubtitle",
|
|
836
|
+
currentMeta: "currentMeta",
|
|
837
|
+
currentArtworkUrl: "currentArtworkUrl",
|
|
838
|
+
favoriteActive: "favoriteActive",
|
|
839
|
+
favoriteLabel: "favoriteLabel",
|
|
840
|
+
lockAvailable: "lockAvailable",
|
|
841
|
+
ringtoneAvailable: "ringtoneAvailable",
|
|
842
|
+
ringtoneLabel: "ringtoneLabel",
|
|
843
|
+
lockLabel: "lockLabel",
|
|
844
|
+
unlockLabel: "unlockLabel",
|
|
845
|
+
favoriteActiveLabel: "favoriteActiveLabel",
|
|
846
|
+
favoritesLabel: "favoritesLabel",
|
|
847
|
+
queueItems: "queueItems",
|
|
848
|
+
currentTrackAvailable: "currentTrackAvailable",
|
|
849
|
+
playlistOptions: "playlistOptions",
|
|
850
|
+
playlistTargetTrack: "playlistTargetTrack",
|
|
851
|
+
removableItemIds: "removableItemIds",
|
|
852
|
+
stationForm: "stationForm",
|
|
853
|
+
settingsSections: "settingsSections",
|
|
854
|
+
serverForm: "serverForm",
|
|
855
|
+
devicesOpen: "devicesOpen",
|
|
856
|
+
lyricsPanel: "lyricsPanel",
|
|
857
|
+
showDeviceButton: "showDeviceButton",
|
|
858
|
+
deviceItems: "deviceItems",
|
|
859
|
+
closeLabel: "closeLabel",
|
|
860
|
+
sourceChangeLabel: "sourceChangeLabel",
|
|
861
|
+
sourceChangeTitle: "sourceChangeTitle",
|
|
862
|
+
sourceDropTitle: "sourceDropTitle",
|
|
863
|
+
sourceDropHint: "sourceDropHint",
|
|
864
|
+
sourceChangeAccept: "sourceChangeAccept",
|
|
865
|
+
folderImportLabel: "folderImportLabel",
|
|
866
|
+
libraryStatus: "libraryStatus",
|
|
867
|
+
libraryBusy: "libraryBusy",
|
|
868
|
+
languageLabel: "languageLabel",
|
|
869
|
+
activeLanguage: "activeLanguage",
|
|
870
|
+
languageOptions: "languageOptions",
|
|
871
|
+
statusMessage: "statusMessage",
|
|
872
|
+
statusKind: "statusKind",
|
|
873
|
+
showResumeProgress: "showResumeProgress",
|
|
874
|
+
outputVolume: "outputVolume",
|
|
875
|
+
outputVolumeLabel: "outputVolumeLabel",
|
|
876
|
+
outputMuteLabel: "outputMuteLabel",
|
|
877
|
+
outputUnmuteLabel: "outputUnmuteLabel",
|
|
878
|
+
revealFileLabel: "revealFileLabel"
|
|
879
|
+
},
|
|
880
|
+
outputs: {
|
|
881
|
+
compactModeChange: "compactModeChange",
|
|
882
|
+
compactLyricsToggle: "compactLyricsToggle",
|
|
883
|
+
ended: "ended",
|
|
884
|
+
videoSize: "videoSize",
|
|
885
|
+
progress: "progress",
|
|
886
|
+
prev: "prev",
|
|
887
|
+
next: "next",
|
|
888
|
+
toggleShuffle: "toggleShuffle",
|
|
889
|
+
cycleRepeat: "cycleRepeat",
|
|
890
|
+
cast: "cast",
|
|
891
|
+
subtitles: "subtitles",
|
|
892
|
+
selectLibraryView: "selectLibraryView",
|
|
893
|
+
back: "back",
|
|
894
|
+
settingChange: "settingChange",
|
|
895
|
+
settingAction: "settingAction",
|
|
896
|
+
selectLibraryItem: "selectLibraryItem",
|
|
897
|
+
playLibraryItem: "playLibraryItem",
|
|
898
|
+
addLibraryItemNext: "addLibraryItemNext",
|
|
899
|
+
addLibraryItemToQueue: "addLibraryItemToQueue",
|
|
900
|
+
selectQueueItem: "selectQueueItem",
|
|
901
|
+
createPlaylist: "createPlaylist",
|
|
902
|
+
addCurrentToPlaylist: "addCurrentToPlaylist",
|
|
903
|
+
addTrackToPlaylist: "addTrackToPlaylist",
|
|
904
|
+
requestPlaylistTarget: "requestPlaylistTarget",
|
|
905
|
+
cancelPlaylistTarget: "cancelPlaylistTarget",
|
|
906
|
+
removeLibraryItem: "removeLibraryItem",
|
|
907
|
+
addStation: "addStation",
|
|
908
|
+
connectServer: "connectServer",
|
|
909
|
+
discoverServers: "discoverServers",
|
|
910
|
+
connectDiscoveredServer: "connectDiscoveredServer",
|
|
911
|
+
renamePlaylist: "renamePlaylist",
|
|
912
|
+
deletePlaylist: "deletePlaylist",
|
|
913
|
+
toggleDevices: "toggleDevices",
|
|
914
|
+
refreshDevices: "refreshDevices",
|
|
915
|
+
openLyrics: "openLyrics",
|
|
916
|
+
refreshLyrics: "refreshLyrics",
|
|
917
|
+
seekLyrics: "seekLyrics",
|
|
918
|
+
playOnDevice: "playOnDevice",
|
|
919
|
+
stopOnDevice: "stopOnDevice",
|
|
920
|
+
primaryPlay: "primaryPlay",
|
|
921
|
+
primaryPlaybackToggle: "primaryPlaybackToggle",
|
|
922
|
+
playerStateChange: "playerStateChange",
|
|
923
|
+
toggleFavorite: "toggleFavorite",
|
|
924
|
+
toggleLock: "toggleLock",
|
|
925
|
+
makeRingtone: "makeRingtone",
|
|
926
|
+
revealFile: "revealFile",
|
|
927
|
+
sourceFileChange: "sourceFileChange",
|
|
928
|
+
addFolder: "addFolder",
|
|
929
|
+
languageChange: "languageChange",
|
|
930
|
+
searchTermChange: "searchTermChange",
|
|
931
|
+
outputVolumeChange: "outputVolumeChange",
|
|
932
|
+
outputMuteToggle: "outputMuteToggle"
|
|
933
|
+
},
|
|
934
|
+
viewQueries: [
|
|
935
|
+
{
|
|
936
|
+
propertyName: "smartPlayer",
|
|
937
|
+
first: true,
|
|
938
|
+
predicate: SmartPlayerComponent,
|
|
939
|
+
descendants: true
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
propertyName: "audioFileInput",
|
|
943
|
+
first: true,
|
|
944
|
+
predicate: ["audioFileInput"],
|
|
945
|
+
descendants: true
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
propertyName: "libraryScroll",
|
|
949
|
+
first: true,
|
|
950
|
+
predicate: ["libraryScroll"],
|
|
951
|
+
descendants: true
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
propertyName: "lyricsLinesEl",
|
|
955
|
+
first: true,
|
|
956
|
+
predicate: ["lyricsLines"],
|
|
957
|
+
descendants: true
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
propertyName: "queueListEl",
|
|
961
|
+
first: true,
|
|
962
|
+
predicate: ["queueList"],
|
|
963
|
+
descendants: true
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
propertyName: "compactLyricsEl",
|
|
967
|
+
first: true,
|
|
968
|
+
predicate: ["compactLyricsLines"],
|
|
969
|
+
descendants: true
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
propertyName: "panelEl",
|
|
973
|
+
first: true,
|
|
974
|
+
predicate: ["panel"],
|
|
975
|
+
descendants: true
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
propertyName: "sheetButtonEl",
|
|
979
|
+
first: true,
|
|
980
|
+
predicate: ["sheetButton"],
|
|
981
|
+
descendants: true
|
|
982
|
+
}
|
|
983
|
+
],
|
|
984
|
+
ngImport: i0,
|
|
985
|
+
template: `
|
|
986
|
+
<section
|
|
987
|
+
class="ngxsp-wmp-shell"
|
|
988
|
+
[class.ngxsp-wmp-dragActive]="fileDragActive"
|
|
989
|
+
[class.ngxsp-wmp-browseMode]="!isHomeView"
|
|
990
|
+
[class.ngxsp-wmp-playing]="isPlaying"
|
|
991
|
+
[class.ngxsp-wmp-panelHidden]="!queuePanelOpen"
|
|
992
|
+
[class.ngxsp-wmp-compact]="compactMode !== 'full'"
|
|
993
|
+
[class.ngxsp-wmp-compactMini]="compactMode === 'mini'"
|
|
994
|
+
[class.ngxsp-wmp-compactBar]="compactMode === 'bar'"
|
|
995
|
+
[class.ngxsp-wmp-compactMiniLyrics]="compactMode === 'mini' && showCompactLyrics"
|
|
996
|
+
[class.ngxsp-wmp-compactBarLyrics]="compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0"
|
|
997
|
+
(dragenter)="onFileDragEnter($event)"
|
|
998
|
+
(dragover)="onFileDragOver($event)"
|
|
999
|
+
(dragleave)="onFileDragLeave($event)"
|
|
1000
|
+
(drop)="onFileDrop($event)"
|
|
1001
|
+
>
|
|
1002
|
+
@if (fileDragActive) {
|
|
1003
|
+
<div class="ngxsp-wmp-dropOverlay" aria-hidden="true">
|
|
1004
|
+
<span class="ngxsp-wmp-dropIcon"><ngxsp-smart-icon name="folder" /></span>
|
|
1005
|
+
<strong>{{ sourceDropTitle || sourceChangeTitle || sourceChangeLabel }}</strong>
|
|
1006
|
+
@if (sourceDropHint) {
|
|
1007
|
+
<span>{{ sourceDropHint }}</span>
|
|
1008
|
+
}
|
|
1009
|
+
</div>
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
@if (config) {
|
|
1013
|
+
<div class="ngxsp-wmp-engineMount" aria-hidden="true" inert>
|
|
1014
|
+
<ngx-smart-player
|
|
1015
|
+
[config]="config"
|
|
1016
|
+
[plugins]="plugins"
|
|
1017
|
+
[ports]="ports"
|
|
1018
|
+
[engines]="engines"
|
|
1019
|
+
[debug]="debug"
|
|
1020
|
+
[startTimeSec]="startTimeSec"
|
|
1021
|
+
[autoplayOnInit]="autoplayOnInit"
|
|
1022
|
+
[playRequest]="playRequest"
|
|
1023
|
+
[canPrev]="canPrev"
|
|
1024
|
+
[canNext]="canNext"
|
|
1025
|
+
[shuffleActive]="shuffleActive"
|
|
1026
|
+
[shuffleLabel]="shuffleLabel"
|
|
1027
|
+
[repeatMode]="repeatMode"
|
|
1028
|
+
[repeatLabel]="repeatLabel"
|
|
1029
|
+
[hasPlaylistControls]="hasPlaylistControls"
|
|
1030
|
+
[mediaMode]="'audio'"
|
|
1031
|
+
[castEnabled]="castEnabled"
|
|
1032
|
+
(ended)="ended.emit()"
|
|
1033
|
+
(videoSize)="videoSize.emit($event)"
|
|
1034
|
+
(prev)="prev.emit()"
|
|
1035
|
+
(next)="next.emit()"
|
|
1036
|
+
(toggleShuffle)="toggleShuffle.emit()"
|
|
1037
|
+
(cycleRepeat)="cycleRepeat.emit()"
|
|
1038
|
+
(cast)="cast.emit()"
|
|
1039
|
+
(subtitles)="subtitles.emit()"
|
|
1040
|
+
(progress)="onPlayerProgress($event)"
|
|
1041
|
+
(stateChange)="onPlayerStateChange($event)"
|
|
1042
|
+
/>
|
|
1043
|
+
</div>
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
<header class="ngxsp-wmp-titlebar" data-tauri-drag-region>
|
|
1047
|
+
<div class="ngxsp-wmp-brand">
|
|
1048
|
+
@if (brandLogoSrc) {
|
|
1049
|
+
<img class="ngxsp-wmp-brandLogo" [src]="brandLogoSrc" alt="" width="26" height="26" />
|
|
1050
|
+
} @else {
|
|
1051
|
+
<span class="ngxsp-wmp-brandIcon" aria-hidden="true"><ngxsp-smart-icon name="music" /></span>
|
|
1052
|
+
}
|
|
1053
|
+
<span class="ngxsp-wmp-brandName">NGXSP Audio</span>
|
|
1054
|
+
</div>
|
|
1055
|
+
|
|
1056
|
+
<label class="ngxsp-wmp-search">
|
|
1057
|
+
<ngxsp-smart-icon name="search" />
|
|
1058
|
+
<input type="search" [placeholder]="searchPlaceholder" [value]="searchTerm" (input)="onSearchInput($event)" [attr.aria-label]="searchLabel" />
|
|
1059
|
+
</label>
|
|
1060
|
+
|
|
1061
|
+
<div class="ngxsp-wmp-titleActions">
|
|
1062
|
+
@if (statusMessage) {
|
|
1063
|
+
<div class="ngxsp-wmp-status" [class.success]="statusKind === 'success'" [class.error]="statusKind === 'error'" [attr.role]="statusKind === 'error' ? 'alert' : 'status'" [attr.aria-live]="statusKind === 'error' ? 'assertive' : 'polite'" aria-atomic="true" [title]="statusMessage">
|
|
1064
|
+
{{ statusMessage }}
|
|
1065
|
+
</div>
|
|
1066
|
+
}
|
|
1067
|
+
<!-- The import action lives in the top bar, as in the video player. A folder is what
|
|
1068
|
+
builds the library, so it is the action wherever one can be loaded. -->
|
|
1069
|
+
@if (folderImportLabel) {
|
|
1070
|
+
<button class="ngxsp-wmp-sourceButton" type="button" [disabled]="libraryBusy" [title]="folderImportLabel" [attr.aria-label]="folderImportLabel" (click)="addFolder.emit()">
|
|
1071
|
+
<ngxsp-smart-icon name="folder" />
|
|
1072
|
+
<span>{{ folderImportLabel }}</span>
|
|
1073
|
+
</button>
|
|
1074
|
+
} @else {
|
|
1075
|
+
<button class="ngxsp-wmp-sourceButton" type="button" [title]="sourceChangeTitle || sourceChangeLabel" [attr.aria-label]="sourceChangeTitle || sourceChangeLabel" (click)="audioFileInput.click()">
|
|
1076
|
+
<ngxsp-smart-icon name="folder" />
|
|
1077
|
+
<span>{{ sourceChangeLabel }}</span>
|
|
1078
|
+
</button>
|
|
1079
|
+
}
|
|
1080
|
+
<input #audioFileInput class="ngxsp-wmp-fileInput" type="file" [accept]="sourceChangeAccept" aria-hidden="true" tabindex="-1" (change)="onSourceFileInput($event)" />
|
|
1081
|
+
@if (languageOptions.length) {
|
|
1082
|
+
<div class="ngxsp-wmp-segmented ngxsp-wmp-languageSwitch" role="group" [attr.aria-label]="languageLabel">
|
|
1083
|
+
@for (language of languageOptions; track language.id) {
|
|
1084
|
+
<button type="button" [class.active]="language.id === activeLanguage" [attr.aria-pressed]="language.id === activeLanguage" (click)="languageChange.emit(language.id)">
|
|
1085
|
+
{{ language.label }}
|
|
1086
|
+
</button>
|
|
1087
|
+
}
|
|
1088
|
+
</div>
|
|
1089
|
+
}
|
|
1090
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="queuePanelOpen" [attr.aria-pressed]="queuePanelOpen" [title]="queueTitle" [attr.aria-label]="queueTitle" (click)="toggleQueuePanel()">
|
|
1091
|
+
<ngxsp-smart-icon name="panel-right" />
|
|
1092
|
+
</button>
|
|
1093
|
+
</div>
|
|
1094
|
+
</header>
|
|
1095
|
+
|
|
1096
|
+
<aside class="ngxsp-wmp-rail" [attr.aria-label]="libraryTitle">
|
|
1097
|
+
@if (libraryViews.length) {
|
|
1098
|
+
<nav class="ngxsp-wmp-nav" [attr.aria-label]="libraryViewsLabel">
|
|
1099
|
+
@for (view of primaryViews; track view.id) {
|
|
1100
|
+
<button class="ngxsp-wmp-navItem" [class.active]="view.active" type="button" [attr.aria-current]="view.active ? 'page' : null" [attr.aria-label]="view.count !== undefined ? view.label + ' ' + view.count : view.label" (click)="selectLibraryView.emit(view.id)">
|
|
1101
|
+
<ngxsp-smart-icon [name]="viewIcon(view.id)" />
|
|
1102
|
+
<span>{{ view.label }}</span>
|
|
1103
|
+
@if (view.count !== undefined) {
|
|
1104
|
+
<small>{{ view.count }}</small>
|
|
1105
|
+
}
|
|
1106
|
+
</button>
|
|
1107
|
+
}
|
|
1108
|
+
@if (collectionViews.length) {
|
|
1109
|
+
<span class="ngxsp-wmp-navDivider" aria-hidden="true"></span>
|
|
1110
|
+
@for (view of collectionViews; track view.id) {
|
|
1111
|
+
<button class="ngxsp-wmp-navItem" [class.active]="view.active" type="button" [attr.aria-current]="view.active ? 'page' : null" [attr.aria-label]="view.count !== undefined ? view.label + ' ' + view.count : view.label" (click)="selectLibraryView.emit(view.id)">
|
|
1112
|
+
<ngxsp-smart-icon [name]="viewIcon(view.id)" />
|
|
1113
|
+
<span>{{ view.label }}</span>
|
|
1114
|
+
@if (view.count !== undefined) {
|
|
1115
|
+
<small>{{ view.count }}</small>
|
|
1116
|
+
}
|
|
1117
|
+
</button>
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
@if (appViews.length) {
|
|
1121
|
+
<span class="ngxsp-wmp-navDivider" aria-hidden="true"></span>
|
|
1122
|
+
@for (view of appViews; track view.id) {
|
|
1123
|
+
<button class="ngxsp-wmp-navItem" [class.active]="view.active" type="button" [attr.aria-current]="view.active ? 'page' : null" [attr.aria-label]="view.label" (click)="selectLibraryView.emit(view.id)">
|
|
1124
|
+
<ngxsp-smart-icon [name]="viewIcon(view.id)" />
|
|
1125
|
+
<span>{{ view.label }}</span>
|
|
1126
|
+
</button>
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
</nav>
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
<div class="ngxsp-wmp-railTools">
|
|
1133
|
+
<div class="ngxsp-wmp-libraryInfo">
|
|
1134
|
+
<strong>{{ libraryTitle }}</strong>
|
|
1135
|
+
@if (libraryMeta) {
|
|
1136
|
+
<small>{{ libraryMeta }}</small>
|
|
1137
|
+
}
|
|
1138
|
+
@if (libraryStatus) {
|
|
1139
|
+
<small class="ngxsp-wmp-libraryStatus" [class.busy]="libraryBusy" role="status" aria-live="polite">{{ libraryStatus }}</small>
|
|
1140
|
+
}
|
|
1141
|
+
</div>
|
|
1142
|
+
</div>
|
|
1143
|
+
</aside>
|
|
1144
|
+
|
|
1145
|
+
<section #libraryScroll class="ngxsp-wmp-main" [attr.aria-label]="libraryContentTitle || libraryTitle">
|
|
1146
|
+
@if (isHomeView) {
|
|
1147
|
+
<section class="ngxsp-wmp-nowPanel" [attr.aria-label]="nowListeningLabel">
|
|
1148
|
+
<div class="ngxsp-wmp-art ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(currentArtworkUrl)" [attr.data-tone]="artTone(currentTrackId || currentTitle)">
|
|
1149
|
+
@if (artworkSrc(currentArtworkUrl); as artworkUrl) {
|
|
1150
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
1151
|
+
} @else {
|
|
1152
|
+
<span class="ngxsp-wmp-artNote" aria-hidden="true"><ngxsp-smart-icon name="music" /></span>
|
|
1153
|
+
}
|
|
1154
|
+
</div>
|
|
1155
|
+
|
|
1156
|
+
<div class="ngxsp-wmp-playerSurface">
|
|
1157
|
+
@if (config) {
|
|
1158
|
+
<div class="ngxsp-wmp-nowCopy">
|
|
1159
|
+
<span class="ngxsp-wmp-eyebrow">
|
|
1160
|
+
@if (isPlaying) { <i class="ngxsp-wmp-liveDot" aria-hidden="true"></i> }
|
|
1161
|
+
{{ nowListeningLabel }}
|
|
1162
|
+
</span>
|
|
1163
|
+
<h1>{{ currentTitle || noTrackTitle }}</h1>
|
|
1164
|
+
<p>{{ currentSubtitle || readyLabel }}</p>
|
|
1165
|
+
@if (currentMeta) { <small>{{ currentMeta }}</small> }
|
|
1166
|
+
</div>
|
|
1167
|
+
<div class="ngxsp-wmp-nowActions">
|
|
1168
|
+
<button class="ngxsp-wmp-primaryButton" type="button" [attr.aria-label]="isPlaying ? pauseLabel : playLabel" (click)="togglePrimaryPlayback()">
|
|
1169
|
+
@if (isPlaying) { <ngxsp-smart-icon name="pause" /> } @else { <ngxsp-smart-icon name="play" /> }
|
|
1170
|
+
<span>{{ isPlaying ? pauseLabel : playLabel }}</span>
|
|
1171
|
+
</button>
|
|
1172
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [class.active]="favoriteActive" [attr.aria-pressed]="favoriteActive" [title]="favoriteActive ? favoriteActiveLabel : favoriteLabel" [attr.aria-label]="favoriteActive ? favoriteActiveLabel : favoriteLabel" (click)="toggleFavorite.emit(currentTrackId)">
|
|
1173
|
+
<ngxsp-smart-icon name="heart" />
|
|
1174
|
+
</button>
|
|
1175
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [class.active]="shuffleActive" [attr.aria-pressed]="shuffleActive" [title]="shuffleLabel" [attr.aria-label]="shuffleLabel" (click)="toggleShuffle.emit()">
|
|
1176
|
+
<ngxsp-smart-icon name="shuffle" />
|
|
1177
|
+
</button>
|
|
1178
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [class.active]="repeatMode !== 'off'" [attr.aria-pressed]="repeatMode !== 'off'" [title]="repeatLabel" [attr.aria-label]="repeatLabel" (click)="cycleRepeat.emit()">
|
|
1179
|
+
<ngxsp-smart-icon [name]="repeatMode === 'one' ? 'repeat-one' : 'repeat'" />
|
|
1180
|
+
</button>
|
|
1181
|
+
@if (revealFileLabel) {
|
|
1182
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [title]="revealFileLabel" [attr.aria-label]="revealFileLabel" (click)="revealFile.emit(currentTrackId)">
|
|
1183
|
+
<ngxsp-smart-icon name="folder" />
|
|
1184
|
+
</button>
|
|
1185
|
+
}
|
|
1186
|
+
</div>
|
|
1187
|
+
<div class="ngxsp-wmp-nowOscillogram" aria-hidden="true">
|
|
1188
|
+
<div class="ngxsp-wmp-nowWaveform">
|
|
1189
|
+
@for (bar of visualizerBars; track $index) {
|
|
1190
|
+
<span [class.played]="isBarPlayed($index)" [style.height.%]="bar"></span>
|
|
1191
|
+
}
|
|
1192
|
+
</div>
|
|
1193
|
+
<div class="ngxsp-wmp-nowProgressLine">
|
|
1194
|
+
<i [style.width.%]="progressPercent"></i>
|
|
1195
|
+
</div>
|
|
1196
|
+
<span class="ngxsp-wmp-nowTime">
|
|
1197
|
+
<small>{{ elapsedLabel }}</small>
|
|
1198
|
+
<small>{{ displayDurationLabel }}</small>
|
|
1199
|
+
</span>
|
|
1200
|
+
</div>
|
|
1201
|
+
} @else {
|
|
1202
|
+
<div class="ngxsp-wmp-emptyPlayer">
|
|
1203
|
+
<h1>{{ selectTrackTitle }}</h1>
|
|
1204
|
+
<p>{{ selectTrackBody }}</p>
|
|
1205
|
+
<button class="ngxsp-wmp-primaryButton" type="button" (click)="audioFileInput.click()">
|
|
1206
|
+
<ngxsp-smart-icon name="folder" />
|
|
1207
|
+
<span>{{ sourceChangeLabel }}</span>
|
|
1208
|
+
</button>
|
|
1209
|
+
</div>
|
|
1210
|
+
}
|
|
1211
|
+
</div>
|
|
1212
|
+
</section>
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
<section class="ngxsp-wmp-librarySurface">
|
|
1216
|
+
<header class="ngxsp-wmp-sectionHeader">
|
|
1217
|
+
@if (backLabel) {
|
|
1218
|
+
<button class="ngxsp-wmp-backButton" type="button" [attr.aria-label]="backLabel" [title]="backLabel" (click)="back.emit()">
|
|
1219
|
+
<ngxsp-smart-icon name="chevron-left" />
|
|
1220
|
+
<span>{{ backLabel }}</span>
|
|
1221
|
+
</button>
|
|
1222
|
+
}
|
|
1223
|
+
<span>{{ libraryEyebrow }}</span>
|
|
1224
|
+
@if (isHomeView) {
|
|
1225
|
+
<h2>{{ libraryContentTitle || libraryTitle }}</h2>
|
|
1226
|
+
} @else {
|
|
1227
|
+
<h1>{{ libraryContentTitle || libraryTitle }}</h1>
|
|
1228
|
+
}
|
|
1229
|
+
</header>
|
|
1230
|
+
<div class="ngxsp-wmp-sectionScroll">
|
|
1231
|
+
@if (serverForm; as form) {
|
|
1232
|
+
<form class="ngxsp-wmp-stationForm" (submit)="submitServer($event)">
|
|
1233
|
+
<span class="ngxsp-wmp-stationTitle">{{ form.title }}</span>
|
|
1234
|
+
@if (form.kinds && form.kinds.length > 1) {
|
|
1235
|
+
<select class="ngxsp-wmp-serverKind" [value]="serverKindDraft || form.kinds[0].id" (change)="onServerKindChange($event)" [attr.aria-label]="form.kindLabel || form.title">
|
|
1236
|
+
@for (kind of form.kinds; track kind.id) {
|
|
1237
|
+
<option [value]="kind.id">{{ kind.label }}</option>
|
|
1238
|
+
}
|
|
1239
|
+
</select>
|
|
1240
|
+
}
|
|
1241
|
+
@let serverKind = selectedServerKind(form);
|
|
1242
|
+
<input type="text" inputmode="url" [value]="serverAddressDraft" (input)="onServerAddressInput($event)" [placeholder]="serverKind?.addressPlaceholder || form.addressPlaceholder" [attr.aria-label]="serverKind?.addressPlaceholder || form.addressPlaceholder" />
|
|
1243
|
+
@if (serverKind?.credentials !== false) {
|
|
1244
|
+
<input type="text" autocomplete="username" [value]="serverUsernameDraft" (input)="onServerUsernameInput($event)" [placeholder]="form.usernamePlaceholder" [attr.aria-label]="form.usernamePlaceholder" />
|
|
1245
|
+
<input type="password" autocomplete="current-password" [value]="serverPasswordDraft" (input)="onServerPasswordInput($event)" [placeholder]="form.passwordPlaceholder" [attr.aria-label]="form.passwordPlaceholder" />
|
|
1246
|
+
}
|
|
1247
|
+
<button class="ngxsp-wmp-smallButton primary" type="submit" [disabled]="form.busy || !serverAddressDraft.trim()">{{ form.submitLabel }}</button>
|
|
1248
|
+
@if (form.discovery && serverKind?.discoverable) {
|
|
1249
|
+
<button class="ngxsp-wmp-smallButton" type="button" [disabled]="form.discovery.busy" (click)="discoverServers.emit(serverKind!.id)">{{ form.discovery.busy ? form.discovery.searchingLabel : form.discovery.searchLabel }}</button>
|
|
1250
|
+
}
|
|
1251
|
+
@if (form.hint) { <small class="ngxsp-wmp-stationHint">{{ form.hint }}</small> }
|
|
1252
|
+
@if (form.discovery && serverKind?.discoverable && (form.discovery.servers.length || form.discovery.emptyLabel)) {
|
|
1253
|
+
<ul class="ngxsp-wmp-discovered" [attr.aria-label]="form.discovery.searchLabel">
|
|
1254
|
+
@for (server of form.discovery.servers; track server.id) {
|
|
1255
|
+
<li>
|
|
1256
|
+
<span><strong>{{ server.name }}</strong>@if (server.subtitle) { <small>{{ server.subtitle }}</small> }</span>
|
|
1257
|
+
<button class="ngxsp-wmp-smallButton" type="button" [disabled]="form.busy" [attr.aria-label]="form.discovery.connectLabel + ' - ' + server.name" (click)="connectDiscoveredServer.emit(server.id)">{{ form.discovery.connectLabel }}</button>
|
|
1258
|
+
</li>
|
|
1259
|
+
} @empty {
|
|
1260
|
+
<li class="empty">{{ form.discovery.emptyLabel }}</li>
|
|
1261
|
+
}
|
|
1262
|
+
</ul>
|
|
1263
|
+
}
|
|
1264
|
+
</form>
|
|
1265
|
+
}
|
|
1266
|
+
@if (stationForm; as form) {
|
|
1267
|
+
<form class="ngxsp-wmp-stationForm" (submit)="submitStation($event)">
|
|
1268
|
+
<span class="ngxsp-wmp-stationTitle">{{ form.title }}</span>
|
|
1269
|
+
<input type="text" [value]="stationNameDraft" (input)="onStationNameInput($event)" [placeholder]="form.namePlaceholder" [attr.aria-label]="form.namePlaceholder" />
|
|
1270
|
+
<input type="url" inputmode="url" [value]="stationUrlDraft" (input)="onStationUrlInput($event)" [placeholder]="form.urlPlaceholder" [attr.aria-label]="form.urlPlaceholder" />
|
|
1271
|
+
<button class="ngxsp-wmp-smallButton primary" type="submit" [disabled]="!stationUrlDraft.trim()">{{ form.submitLabel }}</button>
|
|
1272
|
+
@if (form.hint) { <small class="ngxsp-wmp-stationHint">{{ form.hint }}</small> }
|
|
1273
|
+
</form>
|
|
1274
|
+
}
|
|
1275
|
+
@if (settingsSections.length) {
|
|
1276
|
+
<ngxsp-settings [sections]="settingsSections" (settingChange)="settingChange.emit($event)" (settingAction)="settingAction.emit($event)" />
|
|
1277
|
+
}
|
|
1278
|
+
@for (section of librarySections; track section.id) {
|
|
1279
|
+
<section class="ngxsp-wmp-section">
|
|
1280
|
+
@if (section.title !== (libraryContentTitle || libraryTitle)) {
|
|
1281
|
+
@if (isHomeView) { <h3>{{ section.title }}</h3> } @else { <h2>{{ section.title }}</h2> }
|
|
1282
|
+
}
|
|
1283
|
+
@if (section.layout === 'cards') {
|
|
1284
|
+
<div class="ngxsp-wmp-cardGrid">
|
|
1285
|
+
@for (item of section.items; track item.id) {
|
|
1286
|
+
<div class="ngxsp-wmp-card" [class.active]="item.active">
|
|
1287
|
+
<button class="ngxsp-wmp-cardSelect" type="button" [attr.aria-current]="item.active ? 'true' : null" (click)="selectLibraryItem.emit(item.id)">
|
|
1288
|
+
<span class="ngxsp-wmp-thumb ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(item.artworkUrl)" [attr.data-tone]="artTone(item.id)">
|
|
1289
|
+
@if (artworkSrc(item.artworkUrl); as artworkUrl) {
|
|
1290
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
1291
|
+
} @else {
|
|
1292
|
+
<ngxsp-smart-icon name="music" />
|
|
1293
|
+
}
|
|
1294
|
+
@if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {
|
|
1295
|
+
<span class="ngxsp-wmp-rowProgress" aria-hidden="true"><i [style.width.%]="item.progressPercent"></i></span>
|
|
1296
|
+
}
|
|
1297
|
+
</span>
|
|
1298
|
+
<span class="ngxsp-wmp-cardCopy">
|
|
1299
|
+
<strong>{{ item.title }}</strong>
|
|
1300
|
+
@if (item.subtitle) { <small>{{ item.subtitle }}</small> }
|
|
1301
|
+
@if (item.meta) { <em>{{ item.meta }}</em> }
|
|
1302
|
+
</span>
|
|
1303
|
+
</button>
|
|
1304
|
+
<span class="ngxsp-wmp-cardPlaySlot">
|
|
1305
|
+
<button class="ngxsp-wmp-cardPlay" type="button" [title]="playLabel" [attr.aria-label]="playLabel + ' ' + item.title" (click)="playItem(item.id)">
|
|
1306
|
+
@if (item.active && isPlaying) { <ngxsp-smart-icon name="waveform" /> } @else { <ngxsp-smart-icon name="play" /> }
|
|
1307
|
+
</button>
|
|
1308
|
+
</span>
|
|
1309
|
+
<span class="ngxsp-wmp-cardActions">
|
|
1310
|
+
<button class="ngxsp-wmp-cardAction" type="button" [title]="queueNextLabel" [attr.aria-label]="queueNextLabel + ' ' + item.title" (click)="addLibraryItemNext.emit(item.id)">
|
|
1311
|
+
<ngxsp-smart-icon name="next" />
|
|
1312
|
+
</button>
|
|
1313
|
+
<button class="ngxsp-wmp-cardAction" type="button" [title]="queueAddLabel" [attr.aria-label]="queueAddLabel + ' ' + item.title" (click)="addLibraryItemToQueue.emit(item.id)">
|
|
1314
|
+
<ngxsp-smart-icon name="playlist-plus" />
|
|
1315
|
+
</button>
|
|
1316
|
+
@if (ringtoneAvailable) {
|
|
1317
|
+
<button class="ngxsp-wmp-cardAction" type="button" [title]="ringtoneLabel" [attr.aria-label]="ringtoneLabel + ' - ' + item.title" (click)="makeRingtone.emit(item.id)">
|
|
1318
|
+
<ngxsp-smart-icon name="bell" />
|
|
1319
|
+
</button>
|
|
1320
|
+
}
|
|
1321
|
+
@if (lockAvailable) {
|
|
1322
|
+
<button
|
|
1323
|
+
class="ngxsp-wmp-cardAction"
|
|
1324
|
+
type="button"
|
|
1325
|
+
[class.active]="item.locked"
|
|
1326
|
+
[attr.aria-pressed]="!!item.locked"
|
|
1327
|
+
[title]="item.locked ? unlockLabel : lockLabel"
|
|
1328
|
+
[attr.aria-label]="(item.locked ? unlockLabel : lockLabel) + ' - ' + item.title"
|
|
1329
|
+
(click)="toggleLock.emit(item.id)"
|
|
1330
|
+
>
|
|
1331
|
+
<ngxsp-smart-icon [name]="item.locked ? 'check' : 'tag'" />
|
|
1332
|
+
</button>
|
|
1333
|
+
}
|
|
1334
|
+
@if (isRemovable(item.id)) {
|
|
1335
|
+
<button class="ngxsp-wmp-cardAction danger" type="button" [title]="removeItemLabel" [attr.aria-label]="removeItemLabel + ' - ' + item.title" (click)="removeLibraryItem.emit(item.id)">
|
|
1336
|
+
<ngxsp-smart-icon name="close" />
|
|
1337
|
+
</button>
|
|
1338
|
+
}
|
|
1339
|
+
</span>
|
|
1340
|
+
</div>
|
|
1341
|
+
}
|
|
1342
|
+
</div>
|
|
1343
|
+
} @else {
|
|
1344
|
+
<div class="ngxsp-wmp-table" role="table" [attr.aria-label]="tracksLabel" [style.--wmp-actions-w]="rowActionsWidth(section.items)">
|
|
1345
|
+
<div class="ngxsp-wmp-tableHead" role="row">
|
|
1346
|
+
<span role="columnheader">#</span>
|
|
1347
|
+
<span role="columnheader">{{ titleColumnLabel }}</span>
|
|
1348
|
+
<span role="columnheader">{{ artistColumnLabel }}</span>
|
|
1349
|
+
<span role="columnheader">{{ albumColumnLabel }}</span>
|
|
1350
|
+
<span role="columnheader" class="ngxsp-wmp-timeHead" [attr.aria-label]="timeColumnLabel" [title]="timeColumnLabel"><ngxsp-smart-icon name="clock" /></span>
|
|
1351
|
+
</div>
|
|
1352
|
+
@for (item of section.items; track item.id; let index = $index) {
|
|
1353
|
+
<div class="ngxsp-wmp-trackRow" [class.active]="item.active" role="row">
|
|
1354
|
+
<button class="ngxsp-wmp-trackSelect" type="button" [attr.aria-current]="item.active ? 'true' : null" (click)="selectLibraryItem.emit(item.id)">
|
|
1355
|
+
<span class="ngxsp-wmp-trackIndex">
|
|
1356
|
+
@if (item.active) { <ngxsp-smart-icon name="waveform" /> } @else { <span class="ngxsp-wmp-indexNumber">{{ index + 1 }}</span><ngxsp-smart-icon class="ngxsp-wmp-indexPlay" name="play" /> }
|
|
1357
|
+
</span>
|
|
1358
|
+
<span class="ngxsp-wmp-trackTitle">
|
|
1359
|
+
<span class="ngxsp-wmp-rowIcon ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(item.artworkUrl)" [attr.data-tone]="artTone(item.id)">
|
|
1360
|
+
@if (artworkSrc(item.artworkUrl); as artworkUrl) {
|
|
1361
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
1362
|
+
} @else {
|
|
1363
|
+
<ngxsp-smart-icon name="music" />
|
|
1364
|
+
}
|
|
1365
|
+
</span>
|
|
1366
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
1367
|
+
<strong>{{ item.title }}</strong>
|
|
1368
|
+
@if (item.genre) { <small>{{ item.genre }}</small> }
|
|
1369
|
+
</span>
|
|
1370
|
+
</span>
|
|
1371
|
+
<span class="ngxsp-wmp-trackCell">{{ artistOf(item) }}</span>
|
|
1372
|
+
<span class="ngxsp-wmp-trackCell ngxsp-wmp-albumCell">{{ albumOf(item) }}</span>
|
|
1373
|
+
<span class="ngxsp-wmp-trackTime">{{ durationOf(item) }}</span>
|
|
1374
|
+
</button>
|
|
1375
|
+
<span class="ngxsp-wmp-rowActions">
|
|
1376
|
+
<button class="ngxsp-wmp-rowFavorite" [class.active]="item.favorite" type="button" [attr.aria-pressed]="!!item.favorite" [title]="item.favorite ? favoriteActiveLabel : favoriteLabel" [attr.aria-label]="item.favorite ? favoriteActiveLabel : favoriteLabel" (click)="toggleFavorite.emit(item.id)">
|
|
1377
|
+
<ngxsp-smart-icon name="heart" />
|
|
1378
|
+
</button>
|
|
1379
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [title]="queueNextLabel" [attr.aria-label]="queueNextLabel + ' ' + item.title" (click)="addLibraryItemNext.emit(item.id)">
|
|
1380
|
+
<ngxsp-smart-icon name="next" />
|
|
1381
|
+
</button>
|
|
1382
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [title]="queueAddLabel" [attr.aria-label]="queueAddLabel + ' ' + item.title" (click)="addLibraryItemToQueue.emit(item.id)">
|
|
1383
|
+
<ngxsp-smart-icon name="playlist-plus" />
|
|
1384
|
+
</button>
|
|
1385
|
+
@if (hasPlaylists) {
|
|
1386
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [class.active]="playlistTargetTrack?.id === item.id" [title]="addToPlaylistLabel" [attr.aria-label]="addToPlaylistLabel + ' - ' + item.title" (click)="requestPlaylistTarget.emit(item.id)">
|
|
1387
|
+
<ngxsp-smart-icon name="list" />
|
|
1388
|
+
</button>
|
|
1389
|
+
}
|
|
1390
|
+
@if (ringtoneAvailable) {
|
|
1391
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [title]="ringtoneLabel" [attr.aria-label]="ringtoneLabel + ' - ' + item.title" (click)="makeRingtone.emit(item.id)">
|
|
1392
|
+
<ngxsp-smart-icon name="bell" />
|
|
1393
|
+
</button>
|
|
1394
|
+
}
|
|
1395
|
+
@if (lockAvailable) {
|
|
1396
|
+
<button
|
|
1397
|
+
class="ngxsp-wmp-rowQueueAction"
|
|
1398
|
+
type="button"
|
|
1399
|
+
[class.active]="item.locked"
|
|
1400
|
+
[attr.aria-pressed]="!!item.locked"
|
|
1401
|
+
[title]="item.locked ? unlockLabel : lockLabel"
|
|
1402
|
+
[attr.aria-label]="(item.locked ? unlockLabel : lockLabel) + ' - ' + item.title"
|
|
1403
|
+
(click)="toggleLock.emit(item.id)"
|
|
1404
|
+
>
|
|
1405
|
+
<ngxsp-smart-icon [name]="item.locked ? 'check' : 'tag'" />
|
|
1406
|
+
</button>
|
|
1407
|
+
}
|
|
1408
|
+
@if (isRemovable(item.id)) {
|
|
1409
|
+
<button class="ngxsp-wmp-rowQueueAction danger" type="button" [title]="removeItemLabel" [attr.aria-label]="removeItemLabel + ' - ' + item.title" (click)="removeLibraryItem.emit(item.id)">
|
|
1410
|
+
<ngxsp-smart-icon name="close" />
|
|
1411
|
+
</button>
|
|
1412
|
+
}
|
|
1413
|
+
</span>
|
|
1414
|
+
@if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {
|
|
1415
|
+
<span class="ngxsp-wmp-rowProgress" aria-hidden="true"><i [style.width.%]="item.progressPercent"></i></span>
|
|
1416
|
+
}
|
|
1417
|
+
</div>
|
|
1418
|
+
}
|
|
1419
|
+
</div>
|
|
1420
|
+
}
|
|
1421
|
+
</section>
|
|
1422
|
+
} @empty {
|
|
1423
|
+
@if (!settingsSections.length) {
|
|
1424
|
+
<div class="ngxsp-wmp-emptyLibrary">
|
|
1425
|
+
<ngxsp-smart-icon name="music" />
|
|
1426
|
+
<span>{{ emptyLibraryLabel }}</span>
|
|
1427
|
+
</div>
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
</div>
|
|
1431
|
+
</section>
|
|
1432
|
+
</section>
|
|
1433
|
+
|
|
1434
|
+
<aside
|
|
1435
|
+
class="ngxsp-wmp-playlist"
|
|
1436
|
+
#panel
|
|
1437
|
+
tabindex="-1"
|
|
1438
|
+
[class.sheet]="panelSheetOpen"
|
|
1439
|
+
[attr.role]="panelSheetOpen ? 'dialog' : null"
|
|
1440
|
+
[attr.aria-modal]="panelSheetOpen ? 'true' : null"
|
|
1441
|
+
[attr.aria-label]="queueTitle"
|
|
1442
|
+
(keydown.escape)="closePanelSheet()"
|
|
1443
|
+
>
|
|
1444
|
+
@if (panelSheetOpen) {
|
|
1445
|
+
<div class="ngxsp-wmp-sheetHeader">
|
|
1446
|
+
<strong>{{ currentTitle || noTrackTitle }}</strong>
|
|
1447
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="closePanelSheet()">{{ closeLabel }}</button>
|
|
1448
|
+
</div>
|
|
1449
|
+
<div class="ngxsp-wmp-sheetToggles" role="group" [attr.aria-label]="queueTitle">
|
|
1450
|
+
@for (panel of panelSwitches; track panel.id) {
|
|
1451
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="isPanelOpen(panel.id)" [attr.aria-pressed]="isPanelOpen(panel.id)" [title]="panel.label" [attr.aria-label]="panel.label" (click)="togglePanel(panel.id)">
|
|
1452
|
+
<ngxsp-smart-icon [name]="panel.icon" />
|
|
1453
|
+
</button>
|
|
1454
|
+
}
|
|
1455
|
+
</div>
|
|
1456
|
+
}
|
|
1457
|
+
<div class="ngxsp-wmp-panelStack">
|
|
1458
|
+
@if (isPanelOpen('queue')) {
|
|
1459
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('queue')">
|
|
1460
|
+
<header class="ngxsp-wmp-stackHead">
|
|
1461
|
+
<strong>{{ queueTitle }}</strong>
|
|
1462
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('queue')" [attr.aria-label]="queueTitle" (click)="togglePanelCollapsed('queue')">
|
|
1463
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('queue') ? 'chevron-down' : 'chevron-up'" />
|
|
1464
|
+
</button>
|
|
1465
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('queue')">
|
|
1466
|
+
<ngxsp-smart-icon name="close" />
|
|
1467
|
+
</button>
|
|
1468
|
+
</header>
|
|
1469
|
+
@if (!isPanelCollapsed('queue')) {
|
|
1470
|
+
<div class="ngxsp-wmp-sectionHeader slim">
|
|
1471
|
+
<span>{{ queueEyebrow }}</span>
|
|
1472
|
+
<strong>{{ queueItems.length }} {{ tracksCountLabel }}</strong>
|
|
1473
|
+
</div>
|
|
1474
|
+
<div class="ngxsp-wmp-queueList" #queueList>
|
|
1475
|
+
@for (item of queueItems; track item.id) {
|
|
1476
|
+
<button class="ngxsp-wmp-queueItem" [class.active]="item.active" type="button" [attr.aria-current]="item.active ? 'true' : null" (click)="selectQueueItem.emit(item.id)">
|
|
1477
|
+
<span class="ngxsp-wmp-queueCover ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(item.artworkUrl)" [attr.data-tone]="artTone(item.id)">
|
|
1478
|
+
@if (artworkSrc(item.artworkUrl); as artworkUrl) {
|
|
1479
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
1480
|
+
} @else {
|
|
1481
|
+
<ngxsp-smart-icon name="music" />
|
|
1482
|
+
}
|
|
1483
|
+
@if (item.active) {
|
|
1484
|
+
<span class="ngxsp-wmp-queueNow" aria-hidden="true"><ngxsp-smart-icon [name]="isPlaying ? 'waveform' : 'pause'" /></span>
|
|
1485
|
+
}
|
|
1486
|
+
</span>
|
|
1487
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
1488
|
+
<strong>{{ item.title }}</strong>
|
|
1489
|
+
@if (item.subtitle) { <small>{{ item.subtitle }}</small> }
|
|
1490
|
+
@if (item.favorite || item.lastPlayedLabel) {
|
|
1491
|
+
<span class="ngxsp-wmp-rowBadges">
|
|
1492
|
+
@if (item.favorite) {
|
|
1493
|
+
<em class="favorite"><ngxsp-smart-icon name="heart" /> {{ favoritesLabel }}</em>
|
|
1494
|
+
}
|
|
1495
|
+
@if (item.lastPlayedLabel) {
|
|
1496
|
+
<em>{{ item.lastPlayedLabel }}</em>
|
|
1497
|
+
}
|
|
1498
|
+
</span>
|
|
1499
|
+
}
|
|
1500
|
+
</span>
|
|
1501
|
+
@if (item.meta) { <span class="ngxsp-wmp-rowMeta">{{ item.meta }}</span> }
|
|
1502
|
+
</button>
|
|
1503
|
+
} @empty {
|
|
1504
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ emptyQueueLabel }}</div>
|
|
1505
|
+
}
|
|
1506
|
+
</div>
|
|
1507
|
+
}
|
|
1508
|
+
</section>
|
|
1509
|
+
}
|
|
1510
|
+
@if (isPanelOpen('lyrics') && !!lyricsPanel) {
|
|
1511
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('lyrics')">
|
|
1512
|
+
<header class="ngxsp-wmp-stackHead">
|
|
1513
|
+
<strong>{{ lyricsTitle }}</strong>
|
|
1514
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('lyrics')" [attr.aria-label]="lyricsTitle" (click)="togglePanelCollapsed('lyrics')">
|
|
1515
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('lyrics') ? 'chevron-down' : 'chevron-up'" />
|
|
1516
|
+
</button>
|
|
1517
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('lyrics')">
|
|
1518
|
+
<ngxsp-smart-icon name="close" />
|
|
1519
|
+
</button>
|
|
1520
|
+
</header>
|
|
1521
|
+
@if (!isPanelCollapsed('lyrics')) {
|
|
1522
|
+
@if (lyricsPanel; as lyrics) {
|
|
1523
|
+
<section class="ngxsp-wmp-lyrics" [attr.aria-label]="lyrics.title" [attr.aria-busy]="lyrics.busy ? 'true' : null">
|
|
1524
|
+
<div class="ngxsp-wmp-sectionHeader slim">
|
|
1525
|
+
<strong>{{ currentTitle }}</strong>
|
|
1526
|
+
@if (lyrics.searchLabel) {
|
|
1527
|
+
<button class="ngxsp-wmp-smallButton" type="button" [disabled]="lyrics.busy" (click)="refreshLyrics.emit()">{{ lyrics.searchLabel }}</button>
|
|
1528
|
+
}
|
|
1529
|
+
</div>
|
|
1530
|
+
@if (lyrics.status) { <p class="ngxsp-wmp-lyricsStatus">{{ lyrics.status }}</p> }
|
|
1531
|
+
<div class="ngxsp-wmp-lyricsLines" #lyricsLines>
|
|
1532
|
+
@for (line of lyrics.lines; track $index) {
|
|
1533
|
+
@if (line.timeSec !== undefined) {
|
|
1534
|
+
<button type="button" class="ngxsp-wmp-lyricsLine" [class.active]="$index === activeLyricsIndex" [attr.aria-current]="$index === activeLyricsIndex ? 'true' : null" [attr.aria-label]="(lyrics.seekLabel ? lyrics.seekLabel + ' - ' : '') + line.text" (click)="playFromLyrics(line.timeSec)">{{ line.text || '♪' }}</button>
|
|
1535
|
+
} @else {
|
|
1536
|
+
<p class="ngxsp-wmp-lyricsLine plain">{{ line.text }}</p>
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
</div>
|
|
1540
|
+
</section>
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
</section>
|
|
1544
|
+
}
|
|
1545
|
+
@if (isPanelOpen('devices') && showDeviceButton) {
|
|
1546
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('devices')">
|
|
1547
|
+
<header class="ngxsp-wmp-stackHead">
|
|
1548
|
+
<strong>{{ devicesLabel }}</strong>
|
|
1549
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('devices')" [attr.aria-label]="devicesLabel" (click)="togglePanelCollapsed('devices')">
|
|
1550
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('devices') ? 'chevron-down' : 'chevron-up'" />
|
|
1551
|
+
</button>
|
|
1552
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('devices')">
|
|
1553
|
+
<ngxsp-smart-icon name="close" />
|
|
1554
|
+
</button>
|
|
1555
|
+
</header>
|
|
1556
|
+
@if (!isPanelCollapsed('devices')) {
|
|
1557
|
+
<section class="ngxsp-wmp-devices">
|
|
1558
|
+
<div class="ngxsp-wmp-sectionHeader slim">
|
|
1559
|
+
<strong>{{ remotePlaybackLabel }}</strong>
|
|
1560
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="refreshDevices.emit()">{{ refreshLabel }}</button>
|
|
1561
|
+
</div>
|
|
1562
|
+
@for (device of deviceItems; track device.id) {
|
|
1563
|
+
<div class="ngxsp-wmp-device" [class.active]="device.active">
|
|
1564
|
+
<span class="ngxsp-wmp-targetIcon" aria-hidden="true"><ngxsp-smart-icon [name]="device.active ? 'devices-active' : 'devices'" /></span>
|
|
1565
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
1566
|
+
<strong>{{ device.name }}</strong>
|
|
1567
|
+
@if (device.subtitle) { <small>{{ device.subtitle }}</small> }
|
|
1568
|
+
</span>
|
|
1569
|
+
<span class="ngxsp-wmp-deviceActions">
|
|
1570
|
+
<button class="ngxsp-wmp-smallButton" type="button" [attr.aria-label]="(device.actionLabel ?? playLabel) + ' - ' + device.name" (click)="playOnDevice.emit(device.id)">{{ device.actionLabel ?? playLabel }}</button>
|
|
1571
|
+
@if (device.stoppable !== false) {
|
|
1572
|
+
<button class="ngxsp-wmp-smallButton" type="button" [attr.aria-label]="stopLabel + ' - ' + device.name" (click)="stopOnDevice.emit(device.id)">{{ stopLabel }}</button>
|
|
1573
|
+
}
|
|
1574
|
+
</span>
|
|
1575
|
+
</div>
|
|
1576
|
+
} @empty {
|
|
1577
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ emptyDevicesLabel }}</div>
|
|
1578
|
+
}
|
|
1579
|
+
</section>
|
|
1580
|
+
}
|
|
1581
|
+
</section>
|
|
1582
|
+
}
|
|
1583
|
+
@if (isPanelOpen('playlists')) {
|
|
1584
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('playlists')">
|
|
1585
|
+
<header class="ngxsp-wmp-stackHead">
|
|
1586
|
+
<strong>{{ playlistsLabel }}</strong>
|
|
1587
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('playlists')" [attr.aria-label]="playlistsLabel" (click)="togglePanelCollapsed('playlists')">
|
|
1588
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('playlists') ? 'chevron-down' : 'chevron-up'" />
|
|
1589
|
+
</button>
|
|
1590
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('playlists')">
|
|
1591
|
+
<ngxsp-smart-icon name="close" />
|
|
1592
|
+
</button>
|
|
1593
|
+
</header>
|
|
1594
|
+
@if (!isPanelCollapsed('playlists')) {
|
|
1595
|
+
<section class="ngxsp-wmp-management">
|
|
1596
|
+
<div class="ngxsp-wmp-inlineForm">
|
|
1597
|
+
<input [value]="playlistDraftName" (input)="onPlaylistDraftInput($event)" (keydown.enter)="submitCreatePlaylist()" type="text" [placeholder]="newPlaylistPlaceholder" [attr.aria-label]="newPlaylistPlaceholder" />
|
|
1598
|
+
<button class="ngxsp-wmp-smallButton primary" type="button" (click)="submitCreatePlaylist()" [disabled]="!playlistDraftName.trim()">{{ createLabel }}</button>
|
|
1599
|
+
</div>
|
|
1600
|
+
@if (playlistTargetTrack; as target) {
|
|
1601
|
+
<div class="ngxsp-wmp-targetBanner">
|
|
1602
|
+
<span>{{ playlistTargetLabel }}<strong>{{ target.title }}</strong></span>
|
|
1603
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="cancelPlaylistTarget.emit()">{{ cancelLabel }}</button>
|
|
1604
|
+
</div>
|
|
1605
|
+
}
|
|
1606
|
+
<div class="ngxsp-wmp-targets">
|
|
1607
|
+
@for (playlist of playlistOptions; track playlist.id) {
|
|
1608
|
+
<div class="ngxsp-wmp-target">
|
|
1609
|
+
<div class="ngxsp-wmp-targetMain">
|
|
1610
|
+
<span class="ngxsp-wmp-targetIcon" aria-hidden="true"><ngxsp-smart-icon name="list" /></span>
|
|
1611
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
1612
|
+
<strong>{{ playlist.name }}</strong>
|
|
1613
|
+
@if (playlist.trackCount !== undefined) { <small>{{ playlist.trackCount }} {{ tracksCountLabel }}</small> }
|
|
1614
|
+
</span>
|
|
1615
|
+
@if (playlistTargetTrack || currentTrackAvailable) {
|
|
1616
|
+
<button class="ngxsp-wmp-smallButton" type="button" [attr.aria-label]="addLabel + ' - ' + playlist.name" (click)="addToPlaylist(playlist.id)">
|
|
1617
|
+
<ngxsp-smart-icon name="plus" />
|
|
1618
|
+
<span>{{ addLabel }}</span>
|
|
1619
|
+
</button>
|
|
1620
|
+
}
|
|
1621
|
+
</div>
|
|
1622
|
+
@if (editingPlaylistId === playlist.id) {
|
|
1623
|
+
<div class="ngxsp-wmp-inlineForm">
|
|
1624
|
+
<input [value]="renameDraftName" (input)="onRenameDraftInput($event)" (keydown.enter)="submitRenamePlaylist()" type="text" [placeholder]="renamePlaylistPlaceholder" [attr.aria-label]="renamePlaylistPlaceholder" />
|
|
1625
|
+
<button class="ngxsp-wmp-smallButton primary" type="button" (click)="submitRenamePlaylist()" [disabled]="!renameDraftName.trim()">{{ saveLabel }}</button>
|
|
1626
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="cancelRenamePlaylist()">{{ cancelLabel }}</button>
|
|
1627
|
+
</div>
|
|
1628
|
+
} @else {
|
|
1629
|
+
<div class="ngxsp-wmp-targetActions">
|
|
1630
|
+
<button type="button" (click)="startRenamePlaylist(playlist.id, playlist.name)">{{ renameLabel }}</button>
|
|
1631
|
+
<button type="button" class="danger" (click)="deletePlaylist.emit(playlist.id)">{{ deleteLabel }}</button>
|
|
1632
|
+
</div>
|
|
1633
|
+
}
|
|
1634
|
+
</div>
|
|
1635
|
+
} @empty {
|
|
1636
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ emptyPlaylistTargetsLabel }}</div>
|
|
1637
|
+
}
|
|
1638
|
+
</div>
|
|
1639
|
+
@if (!playlistTargetTrack && !currentTrackAvailable && playlistOptions.length) {
|
|
1640
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ selectTrackForPlaylistLabel }}</div>
|
|
1641
|
+
}
|
|
1642
|
+
</section>
|
|
1643
|
+
}
|
|
1644
|
+
</section>
|
|
1645
|
+
}
|
|
1646
|
+
</div>
|
|
1647
|
+
</aside>
|
|
1648
|
+
|
|
1649
|
+
<footer class="ngxsp-wmp-transport" [attr.aria-label]="transportLabel">
|
|
1650
|
+
<div class="ngxsp-wmp-miniNow">
|
|
1651
|
+
<span class="ngxsp-wmp-miniArt ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(currentArtworkUrl)" [attr.data-tone]="artTone(currentTrackId || currentTitle)" aria-hidden="true">
|
|
1652
|
+
@if (artworkSrc(currentArtworkUrl); as artworkUrl) {
|
|
1653
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
1654
|
+
} @else {
|
|
1655
|
+
<ngxsp-smart-icon name="music" />
|
|
1656
|
+
}
|
|
1657
|
+
</span>
|
|
1658
|
+
<span class="ngxsp-wmp-miniCopy">
|
|
1659
|
+
<strong>{{ currentTitle || noTrackTitle }}</strong>
|
|
1660
|
+
<small>{{ currentSubtitle || currentMeta || readyLabel }}</small>
|
|
1661
|
+
</span>
|
|
1662
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="favoriteActive" [attr.aria-pressed]="favoriteActive" [title]="favoriteActive ? favoriteActiveLabel : favoriteLabel" [attr.aria-label]="favoriteActive ? favoriteActiveLabel : favoriteLabel" (click)="toggleFavorite.emit(currentTrackId)">
|
|
1663
|
+
<ngxsp-smart-icon name="heart" />
|
|
1664
|
+
</button>
|
|
1665
|
+
<!-- Phones only: the panel is a sheet opened from here instead of a block stacked under the page. -->
|
|
1666
|
+
<button class="ngxsp-wmp-iconButton ngxsp-wmp-sheetButton" #sheetButton type="button" [attr.aria-expanded]="panelSheetOpen" [title]="queueTitle" [attr.aria-label]="queueTitle" (click)="openPanelSheet()">
|
|
1667
|
+
<ngxsp-smart-icon name="list" />
|
|
1668
|
+
</button>
|
|
1669
|
+
</div>
|
|
1670
|
+
@if (compactMode === 'mini' && showCompactLyrics) {
|
|
1671
|
+
<!-- The mini window's lyrics: the whole text, the line being sung in sight. -->
|
|
1672
|
+
<div class="ngxsp-wmp-compactLyrics" #compactLyricsLines [attr.aria-label]="compactLyricsLabel">
|
|
1673
|
+
@for (line of lyricsPanel!.lines; track $index) {
|
|
1674
|
+
@if (line.timeSec !== undefined) {
|
|
1675
|
+
<button type="button" class="ngxsp-wmp-compactLyricsLine" [class.active]="$index === activeLyricsIndex" [attr.aria-current]="$index === activeLyricsIndex ? 'true' : null" (click)="playFromLyrics(line.timeSec)">{{ line.text || '♪' }}</button>
|
|
1676
|
+
} @else {
|
|
1677
|
+
<p class="ngxsp-wmp-compactLyricsLine plain">{{ line.text }}</p>
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
</div>
|
|
1681
|
+
}
|
|
1682
|
+
@if (compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0) {
|
|
1683
|
+
<!-- The bottom strip's lyrics: the line being sung, and the next one. -->
|
|
1684
|
+
<div class="ngxsp-wmp-barLyrics" [attr.aria-label]="compactLyricsLabel">
|
|
1685
|
+
<strong>{{ lyricsPanel!.lines[activeLyricsIndex].text || '♪' }}</strong>
|
|
1686
|
+
@if (lyricsPanel!.lines[activeLyricsIndex + 1]; as next) { <span>{{ next.text }}</span> }
|
|
1687
|
+
</div>
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
<div class="ngxsp-wmp-transportCenter">
|
|
1691
|
+
<div class="ngxsp-wmp-transportButtons">
|
|
1692
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="shuffleActive" [attr.aria-pressed]="shuffleActive" [title]="shuffleLabel" [attr.aria-label]="shuffleLabel" (click)="toggleShuffle.emit()">
|
|
1693
|
+
<ngxsp-smart-icon name="shuffle" />
|
|
1694
|
+
</button>
|
|
1695
|
+
<button class="ngxsp-wmp-iconButton" type="button" [disabled]="!canPrev" [title]="previousLabel" [attr.aria-label]="previousLabel" (click)="prev.emit()">
|
|
1696
|
+
<ngxsp-smart-icon name="prev" />
|
|
1697
|
+
</button>
|
|
1698
|
+
<button class="ngxsp-wmp-playButton" type="button" [attr.aria-label]="isPlaying ? pauseLabel : playLabel" [title]="isPlaying ? pauseLabel : playLabel" (click)="togglePrimaryPlayback()">
|
|
1699
|
+
@if (isPlaying) { <ngxsp-smart-icon name="pause" /> } @else { <ngxsp-smart-icon name="play" /> }
|
|
1700
|
+
</button>
|
|
1701
|
+
<button class="ngxsp-wmp-iconButton" type="button" [disabled]="!canNext" [title]="nextLabel" [attr.aria-label]="nextLabel" (click)="next.emit()">
|
|
1702
|
+
<ngxsp-smart-icon name="next" />
|
|
1703
|
+
</button>
|
|
1704
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="repeatMode !== 'off'" [attr.aria-pressed]="repeatMode !== 'off'" [title]="repeatLabel" [attr.aria-label]="repeatLabel" (click)="cycleRepeat.emit()">
|
|
1705
|
+
<ngxsp-smart-icon [name]="repeatMode === 'one' ? 'repeat-one' : 'repeat'" />
|
|
1706
|
+
</button>
|
|
1707
|
+
</div>
|
|
1708
|
+
<div class="ngxsp-wmp-seekRow">
|
|
1709
|
+
<small>{{ elapsedLabel }}</small>
|
|
1710
|
+
<ngxsp-time-slider
|
|
1711
|
+
class="ngxsp-wmp-seek"
|
|
1712
|
+
[currentTime]="currentTimeSec"
|
|
1713
|
+
[duration]="durationSec"
|
|
1714
|
+
[profile]="'audio'"
|
|
1715
|
+
[disabled]="!config || durationSec <= 0"
|
|
1716
|
+
[ariaLabel]="seekLabel"
|
|
1717
|
+
(seek)="seekTo($event)"
|
|
1718
|
+
/>
|
|
1719
|
+
<small>{{ displayDurationLabel }}</small>
|
|
1720
|
+
</div>
|
|
1721
|
+
</div>
|
|
1722
|
+
|
|
1723
|
+
<div class="ngxsp-wmp-transportModes">
|
|
1724
|
+
@for (panel of panelSwitches; track panel.id) {
|
|
1725
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.ngxsp-wmp-devicesButton]="panel.id === 'devices'" [class.active]="isPanelShowing(panel.id)" [attr.aria-pressed]="isPanelShowing(panel.id)" [title]="panel.label" [attr.aria-label]="panel.label" (click)="togglePanelFromBar(panel.id)">
|
|
1726
|
+
<ngxsp-smart-icon [name]="panel.icon" />
|
|
1727
|
+
</button>
|
|
1728
|
+
}
|
|
1729
|
+
@if (compactModes && compactMode === 'full') {
|
|
1730
|
+
<button class="ngxsp-wmp-iconButton ngxsp-wmp-windowButton" type="button" [title]="compactMiniLabel" [attr.aria-label]="compactMiniLabel" (click)="compactModeChange.emit('mini')">
|
|
1731
|
+
<ngxsp-smart-icon name="window-mini" />
|
|
1732
|
+
</button>
|
|
1733
|
+
}
|
|
1734
|
+
<ngxsp-volume-control
|
|
1735
|
+
class="ngxsp-wmp-volumeControl ngxsp-wmp-footerVolume"
|
|
1736
|
+
[volume]="outputVolume / 100"
|
|
1737
|
+
[step]="0.05"
|
|
1738
|
+
[volumeLabel]="outputVolumeLabel"
|
|
1739
|
+
[muteLabel]="outputMuteLabel"
|
|
1740
|
+
[unmuteLabel]="outputUnmuteLabel"
|
|
1741
|
+
(muteToggle)="outputMuteToggle.emit()"
|
|
1742
|
+
(volumeChange)="onOutputVolumeRatioChange($event)"
|
|
1743
|
+
/>
|
|
1744
|
+
@if (compactMode !== 'full') {
|
|
1745
|
+
<span class="ngxsp-wmp-compactActions">
|
|
1746
|
+
@if (hasCompactLyrics) {
|
|
1747
|
+
<button type="button" [class.active]="compactLyrics" [attr.aria-pressed]="compactLyrics" [title]="compactLyricsLabel" [attr.aria-label]="compactLyricsLabel" (click)="compactLyricsToggle.emit()"><ngxsp-smart-icon name="lyrics" /></button>
|
|
1748
|
+
}
|
|
1749
|
+
@if (compactMode === 'mini') {
|
|
1750
|
+
<button type="button" [title]="compactBarLabel" [attr.aria-label]="compactBarLabel" (click)="compactModeChange.emit('bar')"><ngxsp-smart-icon name="window-bar" /></button>
|
|
1751
|
+
} @else {
|
|
1752
|
+
<button type="button" [title]="compactMiniLabel" [attr.aria-label]="compactMiniLabel" (click)="compactModeChange.emit('mini')"><ngxsp-smart-icon name="window-mini" /></button>
|
|
1753
|
+
}
|
|
1754
|
+
<button type="button" [title]="compactRestoreLabel" [attr.aria-label]="compactRestoreLabel" (click)="compactModeChange.emit('full')"><ngxsp-smart-icon name="window-restore" /></button>
|
|
1755
|
+
</span>
|
|
1756
|
+
}
|
|
1757
|
+
</div>
|
|
1758
|
+
</footer>
|
|
1759
|
+
</section>
|
|
1760
|
+
`,
|
|
1761
|
+
isInline: true,
|
|
1762
|
+
styles: [":host{display:block;height:100%;min-height:0;color:var(--nsp-text, #ededf0);font-family:var(--nsp-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, sans-serif);font-size:13px;line-height:1.4}.ngxsp-wmp-shell{--wmp-bg:var(--nsp-bg, #0d0e11);--wmp-s0:var(--nsp-surface-0, #121317);--wmp-s1:var(--nsp-surface-1, #17181d);--wmp-s2:var(--nsp-surface-2, #1e1f25);--wmp-s3:var(--nsp-surface-3, #26272e);--wmp-line:var(--nsp-line, rgb(255 255 255 / .07));--wmp-line-strong:var(--nsp-line-strong, rgb(255 255 255 / .13));--wmp-text:var(--nsp-text, #ededf0);--wmp-text-2:var(--nsp-text-2, #a3a5ae);--wmp-text-3:var(--nsp-text-3, #80828c);--wmp-accent:var(--nsp-accent, #8b90ff);--wmp-accent-strong:var(--nsp-accent-strong, #5d63ee);--wmp-accent-soft:var(--nsp-accent-soft, rgb(139 144 255 / .14));--wmp-on-accent:var(--nsp-on-accent, #fff);--wmp-success:var(--nsp-success, #3ecf8e);--wmp-danger:var(--nsp-danger, #f25f5c);--wmp-danger-text:var(--nsp-danger-text, #ffb4b2);--wmp-r-sm:var(--nsp-radius-sm, 6px);--wmp-r-md:var(--nsp-radius-md, 10px);--wmp-ease:var(--nsp-ease, cubic-bezier(.2,0,0,1));--wmp-dur:var(--nsp-dur, .14s);--wmp-title-h:var(--nsp-titlebar-height, 48px);--wmp-rail-w:232px;--wmp-panel-w:320px;--wmp-transport-h:84px;position:relative;height:100%;min-height:600px;display:grid;grid-template-columns:var(--wmp-rail-w) minmax(0,1fr) var(--wmp-panel-w);grid-template-rows:var(--wmp-title-h) minmax(0,1fr) var(--wmp-transport-h);grid-template-areas:\"title title title\" \"rail main panel\" \"transport transport transport\";overflow:hidden;background:var(--wmp-bg);color:var(--wmp-text);box-sizing:border-box}.ngxsp-wmp-shell.ngxsp-wmp-panelHidden{grid-template-columns:var(--wmp-rail-w) minmax(0,1fr);grid-template-areas:\"title title\" \"rail main\" \"transport transport\"}.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}.ngxsp-wmp-shell *{box-sizing:border-box;letter-spacing:0}.ngxsp-wmp-shell *::-webkit-scrollbar{width:10px;height:10px}.ngxsp-wmp-shell *::-webkit-scrollbar-track{background:transparent}.ngxsp-wmp-shell *::-webkit-scrollbar-thumb{background:var(--wmp-s3);border-radius:999px;border:3px solid transparent;background-clip:padding-box}.ngxsp-wmp-shell *::-webkit-scrollbar-thumb:hover{background-color:var(--wmp-line-strong)}button,input{font:inherit;color:inherit}button{cursor:pointer}img{display:block;width:100%;height:100%;object-fit:cover}h1,h2,h3,p{margin:0}ngxsp-smart-icon{width:18px;height:18px}.ngxsp-wmp-fileInput{display:none}.ngxsp-wmp-shell button:focus-visible,.ngxsp-wmp-shell input:focus-visible{outline:2px solid var(--wmp-accent);outline-offset:2px}.ngxsp-wmp-engineMount{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.ngxsp-wmp-engineMount ngx-smart-player{display:block;width:1px;height:1px;min-height:0;border:0}.ngxsp-wmp-iconButton{width:32px;height:32px;flex:0 0 auto;display:inline-grid;place-items:center;padding:0;border:1px solid transparent;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);transition:background-color var(--wmp-dur) var(--wmp-ease),color var(--wmp-dur) var(--wmp-ease),border-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-iconButton:hover:not(:disabled){background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-iconButton.active,.ngxsp-wmp-iconButton.active:hover:not(:disabled){color:var(--wmp-accent)}.ngxsp-wmp-iconButton.outlined{width:40px;height:40px;border-color:var(--wmp-line-strong);border-radius:999px}.ngxsp-wmp-iconButton:disabled{opacity:.35;cursor:default}.ngxsp-wmp-iconButton.active ngxsp-smart-icon[name=heart] ::ng-deep path{fill:currentColor}.ngxsp-wmp-playButton{width:36px;height:36px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:999px;background:var(--wmp-text);color:var(--wmp-bg);transition:transform var(--wmp-dur) var(--wmp-ease),background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-playButton:hover{transform:scale(1.05)}.ngxsp-wmp-primaryButton{height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--wmp-accent-strong);color:var(--wmp-on-accent);font-weight:600;transition:filter var(--wmp-dur) var(--wmp-ease),transform var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-primaryButton:hover{filter:brightness(1.1)}.ngxsp-wmp-primaryButton:active{transform:scale(.98)}.ngxsp-wmp-smallButton{height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text);font-size:12px;font-weight:500;white-space:nowrap}.ngxsp-wmp-smallButton ngxsp-smart-icon{width:14px;height:14px}.ngxsp-wmp-smallButton:hover:not(:disabled){background:var(--wmp-s2)}.ngxsp-wmp-smallButton.primary{border-color:transparent;background:var(--wmp-accent-strong);color:var(--wmp-on-accent)}.ngxsp-wmp-smallButton.primary:hover:not(:disabled){background:var(--wmp-accent-strong);filter:brightness(1.1)}.ngxsp-wmp-smallButton:disabled{opacity:.45;cursor:default}.ngxsp-wmp-segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:8px;background:var(--wmp-s2)}.ngxsp-wmp-segmented button{height:32px;min-width:0;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--wmp-text-2);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngxsp-wmp-segmented button:hover{color:var(--wmp-text)}.ngxsp-wmp-segmented button.active{background:var(--wmp-s3);color:var(--wmp-text);box-shadow:0 1px 2px #0000004d}.ngxsp-wmp-titlebar{grid-area:title;min-width:0;display:grid;grid-template-columns:calc(var(--wmp-rail-w) - 16px) minmax(0,1fr) minmax(0,max-content);align-items:center;gap:16px;padding:0 calc(12px + var(--nsp-titlebar-inset-end, 0px)) 0 calc(16px + var(--nsp-titlebar-inset-start, 0px));border-bottom:1px solid var(--wmp-line);background:var(--wmp-s0);-webkit-app-region:drag;-webkit-user-select:none;user-select:none}.ngxsp-wmp-titlebar button,.ngxsp-wmp-titlebar input,.ngxsp-wmp-titlebar label,.ngxsp-wmp-titlebar .ngxsp-wmp-status{-webkit-app-region:no-drag}.ngxsp-wmp-brand{min-width:0;display:flex;align-items:center;gap:10px}.ngxsp-wmp-brandIcon{width:26px;height:26px;flex:0 0 auto;display:grid;place-items:center;border-radius:7px;color:#fff;background:linear-gradient(145deg,#8b90ff,#5d63ee 55%,#4146c9);box-shadow:inset 0 1px #ffffff38}.ngxsp-wmp-brandIcon ngxsp-smart-icon{width:15px;height:15px}.ngxsp-wmp-brandLogo{width:26px;height:26px;flex:0 0 auto;display:block}.ngxsp-wmp-brandName{font-size:13px;font-weight:600;white-space:nowrap}.ngxsp-wmp-search{position:relative;justify-self:center;width:100%;max-width:440px;height:34px;display:block;color:var(--wmp-text-3)}.ngxsp-wmp-search ngxsp-smart-icon{position:absolute;left:11px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none}.ngxsp-wmp-search input{width:100%;height:100%;padding:0 10px 0 35px;border:1px solid transparent;border-radius:8px;outline:0;background:var(--wmp-s2);color:var(--wmp-text);font-size:13px;transition:border-color var(--wmp-dur) var(--wmp-ease),background-color var(--wmp-dur) var(--wmp-ease),box-shadow var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-search input:hover{border-color:var(--wmp-line-strong)}.ngxsp-wmp-shell .ngxsp-wmp-search input:focus,.ngxsp-wmp-shell .ngxsp-wmp-search input:focus-visible{outline:0;border-color:var(--wmp-accent);background:var(--wmp-s1);box-shadow:0 0 0 3px var(--wmp-accent-soft)}.ngxsp-wmp-search input::placeholder{color:var(--wmp-text-3)}.ngxsp-wmp-titleActions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}.ngxsp-wmp-status{min-width:0;max-width:300px;height:26px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border-radius:999px;background:var(--wmp-s2);color:var(--wmp-text-2);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngxsp-wmp-status:before{content:\"\";width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-accent)}.ngxsp-wmp-status.success:before{background:var(--wmp-success)}.ngxsp-wmp-status.error{color:var(--wmp-danger-text);background:#f25f5c29}.ngxsp-wmp-status.error:before{background:var(--wmp-danger)}.ngxsp-wmp-rail{grid-area:rail;min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--wmp-line);background:var(--wmp-s0)}.ngxsp-wmp-nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:1px;padding:12px 8px;overflow:auto}.ngxsp-wmp-navItem{width:100%;height:34px;flex:0 0 auto;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 10px;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);text-align:left;transition:background-color var(--wmp-dur) var(--wmp-ease),color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-navItem span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ngxsp-wmp-navItem small{color:var(--wmp-text-3);font-size:11px;font-variant-numeric:tabular-nums}.ngxsp-wmp-navItem:hover{background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-navItem.active{background:var(--wmp-s3);color:var(--wmp-text)}.ngxsp-wmp-navItem.active ngxsp-smart-icon{color:var(--wmp-accent)}.ngxsp-wmp-navItem.active small{color:var(--wmp-text-2)}.ngxsp-wmp-navDivider{display:block;flex:0 0 auto;height:1px;margin:10px;background:var(--wmp-line)}ngxsp-settings{--ngxsp-settings-surface:var(--wmp-s1);--ngxsp-settings-text:var(--wmp-text);--ngxsp-settings-muted:var(--wmp-text-2);--ngxsp-settings-line:var(--wmp-line);--ngxsp-settings-control:var(--wmp-s3);--ngxsp-settings-accent:var(--wmp-accent);--ngxsp-settings-radius:var(--wmp-r-md, 10px)}.ngxsp-wmp-railTools{display:grid;gap:12px;padding:12px;border-top:1px solid var(--wmp-line)}.ngxsp-wmp-sourceButton{flex:0 0 auto;height:32px;display:inline-flex;align-items:center;gap:7px;padding:0 12px 0 10px;border:0;border-radius:var(--wmp-r-sm);background:var(--wmp-accent-strong);color:var(--wmp-on-accent);font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}.ngxsp-wmp-sourceButton ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-sourceButton:hover{filter:brightness(1.1)}.ngxsp-wmp-sourceButton:disabled{opacity:.7;cursor:progress}.ngxsp-wmp-libraryInfo{min-width:0;display:grid;gap:2px;padding:0 4px}.ngxsp-wmp-libraryInfo strong,.ngxsp-wmp-libraryInfo small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-libraryInfo strong{font-size:12px;font-weight:600}.ngxsp-wmp-libraryInfo small{color:var(--wmp-text-3);font-size:11px}.ngxsp-wmp-libraryStatus{display:flex;align-items:center;gap:6px}.ngxsp-wmp-libraryStatus:before{content:\"\";width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-success)}.ngxsp-wmp-libraryStatus.busy:before{background:var(--wmp-accent);animation:ngxsp-wmp-pulse 1.2s ease-in-out infinite}@keyframes ngxsp-wmp-pulse{0%,to{opacity:.35}50%{opacity:1}}.ngxsp-wmp-main{grid-area:main;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto;background:var(--wmp-bg)}.ngxsp-wmp-nowPanel{position:relative;flex:0 0 auto;display:grid;grid-template-columns:184px minmax(0,1fr);align-items:end;gap:28px;padding:32px 32px 28px;background:radial-gradient(120% 140% at 0% 0%,rgb(93 99 238 / .2) 0%,transparent 60%),linear-gradient(180deg,var(--wmp-s1) 0%,var(--wmp-bg) 100%);border-bottom:1px solid var(--wmp-line)}.ngxsp-wmp-art{width:184px;height:184px;display:grid;place-items:center;overflow:hidden;border-radius:var(--wmp-r-md);background:linear-gradient(145deg,var(--wmp-s3),var(--wmp-s1));color:var(--wmp-text-3);box-shadow:var(--nsp-shadow-media, 0 18px 40px rgb(0 0 0 / .45))}.ngxsp-wmp-artNote ngxsp-smart-icon{width:56px;height:56px}.ngxsp-wmp-playerSurface{min-width:0;min-height:160px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px}.ngxsp-wmp-nowCopy{min-width:0;display:grid;gap:4px}.ngxsp-wmp-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--wmp-text-2);font-size:11px;font-weight:600}.ngxsp-wmp-liveDot{width:6px;height:6px;border-radius:50%;background:var(--wmp-success);box-shadow:0 0 0 3px #3ecf8e2e}.ngxsp-wmp-nowCopy h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:32px;line-height:1.15;font-weight:700}.ngxsp-wmp-shell .ngxsp-wmp-nowCopy h1{letter-spacing:-.015em}.ngxsp-wmp-nowCopy p{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wmp-text);font-size:14px;font-weight:500}.ngxsp-wmp-nowCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-nowActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ngxsp-wmp-nowOscillogram{min-width:0;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 2px;column-gap:14px;row-gap:6px;align-items:end}.ngxsp-wmp-nowWaveform{grid-column:1;grid-row:1;height:40px;display:flex;align-items:flex-end;gap:3px;overflow:hidden}.ngxsp-wmp-nowWaveform span{flex:1 1 0;min-width:2px;border-radius:2px 2px 0 0;background:var(--wmp-line-strong);transform-origin:bottom;transition:background-color .24s var(--wmp-ease)}.ngxsp-wmp-nowWaveform span.played{background:var(--wmp-accent)}.ngxsp-wmp-nowProgressLine{grid-column:1;grid-row:2;position:relative;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden}.ngxsp-wmp-nowProgressLine i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent);border-radius:inherit}.ngxsp-wmp-nowTime{grid-column:2;grid-row:1 / span 2;align-self:end;display:flex;gap:4px;color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}.ngxsp-wmp-nowTime small+small:before{content:\"/ \";color:var(--wmp-text-3)}.ngxsp-wmp-emptyPlayer{display:grid;justify-items:start;gap:10px}.ngxsp-wmp-emptyPlayer h1{font-size:28px;font-weight:700}.ngxsp-wmp-emptyPlayer p{color:var(--wmp-text-2);max-width:52ch}.ngxsp-wmp-shell .ngxsp-wmp-cover:not(.has-image){color:#fff9;background:radial-gradient(90% 70% at 20% 10%,rgb(255 255 255 / .16),transparent 60%),linear-gradient(140deg,var(--tone-a),var(--tone-b))}.ngxsp-wmp-cover[data-tone=\"0\"]{--tone-a:#4a4fc4;--tone-b:#1d1e45}.ngxsp-wmp-cover[data-tone=\"1\"]{--tone-a:#1f8078;--tone-b:#0e2a2c}.ngxsp-wmp-cover[data-tone=\"2\"]{--tone-a:#b3782a;--tone-b:#35230f}.ngxsp-wmp-cover[data-tone=\"3\"]{--tone-a:#a83a62;--tone-b:#2e1120}.ngxsp-wmp-cover[data-tone=\"4\"]{--tone-a:#2f6fa8;--tone-b:#0f2031}.ngxsp-wmp-cover[data-tone=\"5\"]{--tone-a:#6f7f2e;--tone-b:#1f240f}.ngxsp-wmp-cover[data-tone=\"6\"]{--tone-a:#7a48b8;--tone-b:#231436}.ngxsp-wmp-cover[data-tone=\"7\"]{--tone-a:#b0543a;--tone-b:#321710}.ngxsp-wmp-librarySurface{flex:1 0 auto;min-width:0;display:flex;flex-direction:column}.ngxsp-wmp-sectionHeader{display:grid;gap:2px;padding:24px 32px 8px}.ngxsp-wmp-sectionHeader>span{color:var(--wmp-text-2);font-size:12px;font-weight:600}.ngxsp-wmp-backButton{justify-self:start;display:inline-flex;align-items:center;gap:4px;max-width:100%;height:28px;margin:0 0 6px -8px;padding:0 10px 0 4px;border:0;border-radius:999px;background:transparent;color:var(--wmp-text-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.ngxsp-wmp-backButton ngxsp-smart-icon{flex:none;width:18px;height:18px}.ngxsp-wmp-backButton span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-backButton:hover{background:var(--wmp-s2, rgb(127 127 127 / .14));color:var(--wmp-text)}.ngxsp-wmp-sectionHeader h1,.ngxsp-wmp-sectionHeader h2{font-size:22px;line-height:1.2;font-weight:700}.ngxsp-wmp-sectionHeader.slim{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:14px 20px 8px}.ngxsp-wmp-sectionHeader.slim>span{grid-column:1}.ngxsp-wmp-sectionHeader.slim strong{grid-column:1;font-size:13px;font-weight:600}.ngxsp-wmp-sectionHeader.slim .ngxsp-wmp-smallButton{grid-column:2;grid-row:1 / span 2}.ngxsp-wmp-sectionScroll{display:grid;gap:28px;padding:8px 24px 32px}.ngxsp-wmp-section{min-width:0;display:grid;gap:10px}.ngxsp-wmp-section>h2,.ngxsp-wmp-section>h3{padding:0 8px;font-size:15px;font-weight:600}.ngxsp-wmp-cardGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:4px}.ngxsp-wmp-card{position:relative;min-width:0;container-type:inline-size;border-radius:var(--wmp-r-md);transition:background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-card:hover,.ngxsp-wmp-card:focus-within{background:var(--wmp-s1)}.ngxsp-wmp-cardSelect{width:100%;min-width:0;display:grid;gap:10px;padding:10px;border:0;border-radius:inherit;background:transparent;text-align:left}.ngxsp-wmp-thumb{position:relative;width:100%;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:linear-gradient(145deg,var(--wmp-s3),var(--wmp-s1));color:var(--wmp-text-3);box-shadow:var(--nsp-shadow-card, 0 6px 18px rgb(0 0 0 / .3))}.ngxsp-wmp-thumb>ngxsp-smart-icon{width:36px;height:36px}.ngxsp-wmp-cardPlaySlot{position:absolute;top:calc(100cqw - 58px);right:18px;display:flex;opacity:0;transform:translateY(6px);transition:opacity var(--wmp-dur) var(--wmp-ease),transform var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-card:hover .ngxsp-wmp-cardPlaySlot,.ngxsp-wmp-card:focus-within .ngxsp-wmp-cardPlaySlot,.ngxsp-wmp-card.active .ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}.ngxsp-wmp-cardPlay{width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:var(--wmp-accent-strong);color:#fff;box-shadow:0 8px 20px #0006}.ngxsp-wmp-cardPlay ngxsp-smart-icon{width:18px;height:18px}.ngxsp-wmp-cardCopy{min-width:0;display:grid;gap:2px}.ngxsp-wmp-cardCopy strong,.ngxsp-wmp-cardCopy small,.ngxsp-wmp-cardCopy em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-cardCopy strong{font-size:13px;font-weight:600}.ngxsp-wmp-card.active .ngxsp-wmp-cardCopy strong{color:var(--wmp-accent)}.ngxsp-wmp-cardCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-cardCopy em{color:var(--wmp-text-3);font-size:11px;font-style:normal}.ngxsp-wmp-cardActions{position:absolute;top:18px;right:18px;display:flex;gap:4px;opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-card:hover .ngxsp-wmp-cardActions,.ngxsp-wmp-card:focus-within .ngxsp-wmp-cardActions{opacity:1}.ngxsp-wmp-cardAction{width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:#0d0e11cc;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.ngxsp-wmp-cardAction ngxsp-smart-icon{width:14px;height:14px}.ngxsp-wmp-cardAction:hover{background:#0d0e11f2}.ngxsp-wmp-table{min-width:0;display:grid}.ngxsp-wmp-tableHead,.ngxsp-wmp-trackSelect{display:grid;grid-template-columns:36px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.3fr) 48px;align-items:center;gap:14px}.ngxsp-wmp-tableHead{position:sticky;top:0;z-index:1;height:34px;margin-bottom:4px;padding:0 calc(var(--wmp-actions-w, 112px) + 8px) 0 10px;border-bottom:1px solid var(--wmp-line);background:var(--wmp-bg);color:var(--wmp-text-2);font-size:11px;font-weight:600}.ngxsp-wmp-tableHead>span:first-child{text-align:center}.ngxsp-wmp-timeHead{display:flex;justify-content:flex-end}.ngxsp-wmp-timeHead ngxsp-smart-icon{width:15px;height:15px}.ngxsp-wmp-trackRow{position:relative;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) var(--wmp-actions-w, 112px);align-items:center;gap:8px;border-radius:var(--wmp-r-sm);transition:background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-trackRow:hover,.ngxsp-wmp-trackRow:focus-within{background:var(--wmp-s1)}.ngxsp-wmp-trackRow.active{background:var(--wmp-accent-soft)}.ngxsp-wmp-trackSelect{min-width:0;height:52px;padding:0 0 0 10px;border:0;border-radius:inherit;background:transparent;color:var(--wmp-text-2);text-align:left}.ngxsp-wmp-trackIndex{position:relative;display:grid;place-items:center;color:var(--wmp-text-2);font-variant-numeric:tabular-nums}.ngxsp-wmp-trackIndex>ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-trackRow.active .ngxsp-wmp-trackIndex{color:var(--wmp-accent)}.ngxsp-wmp-indexPlay{position:absolute;opacity:0;color:var(--wmp-text)}.ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexNumber{opacity:0}.ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexPlay{opacity:1}.ngxsp-wmp-trackTitle{min-width:0;display:flex;align-items:center;gap:12px}.ngxsp-wmp-rowIcon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border-radius:4px;background:var(--wmp-s2);color:var(--wmp-text-3)}.ngxsp-wmp-rowIcon ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-rowCopy{min-width:0;display:grid;gap:1px}.ngxsp-wmp-rowCopy strong,.ngxsp-wmp-rowCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-rowCopy strong{color:var(--wmp-text);font-size:13px;font-weight:500}.ngxsp-wmp-rowCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-trackRow.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}.ngxsp-wmp-trackCell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-trackTime{text-align:right;font-variant-numeric:tabular-nums}.ngxsp-wmp-rowActions{display:flex;align-items:center;justify-content:flex-end;gap:2px;padding-right:8px}.ngxsp-wmp-rowFavorite,.ngxsp-wmp-rowQueueAction{flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease),background-color var(--wmp-dur) var(--wmp-ease),color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-rowFavorite ngxsp-smart-icon,.ngxsp-wmp-rowQueueAction ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-rowFavorite:hover,.ngxsp-wmp-rowQueueAction:hover{background:var(--wmp-s3);color:var(--wmp-text)}.ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowFavorite,.ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowQueueAction,.ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowFavorite,.ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowQueueAction,.ngxsp-wmp-rowFavorite.active{opacity:1}.ngxsp-wmp-rowFavorite.active{color:var(--wmp-accent)}.ngxsp-wmp-rowFavorite.active ngxsp-smart-icon ::ng-deep path{fill:currentColor}.ngxsp-wmp-rowProgress{position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden;pointer-events:none}.ngxsp-wmp-thumb .ngxsp-wmp-rowProgress{left:0;right:0;bottom:0;border-radius:0}.ngxsp-wmp-rowProgress i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent)}.ngxsp-wmp-emptyLibrary{display:grid;justify-items:center;gap:8px;padding:32px 16px;border:1px dashed var(--wmp-line-strong);border-radius:var(--wmp-r-md);color:var(--wmp-text-2);text-align:center}.ngxsp-wmp-emptyLibrary ngxsp-smart-icon{width:28px;height:28px;color:var(--wmp-text-3)}.ngxsp-wmp-playlist{grid-area:panel;min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--wmp-line);background:var(--wmp-s0);overflow:hidden}.ngxsp-wmp-sheetToggles{display:flex;justify-content:center;gap:4px;padding:4px 12px 0}.ngxsp-wmp-panelStack{flex:1;display:flex;flex-direction:column;gap:10px;padding:12px;overflow:hidden;min-height:0}.ngxsp-wmp-stackItem{flex:1 1 0;border:1px solid var(--wmp-border,#d9d9d9);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.ngxsp-wmp-stackItem.collapsed{flex:0 0 auto}.ngxsp-wmp-stackHead{display:flex;align-items:center;gap:8px;padding:7px 8px 7px 11px;background:var(--wmp-surface-2,rgba(127,127,127,.08))}.ngxsp-wmp-stackHead strong{font-size:12.5px;font-weight:600}.ngxsp-wmp-stackIcon{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:.65}.ngxsp-wmp-stackIcon:hover,.ngxsp-wmp-stackIcon:focus-visible{opacity:1}.ngxsp-wmp-stackIcon+.ngxsp-wmp-stackIcon{margin-left:-2px}.ngxsp-wmp-stackHead .ngxsp-wmp-stackIcon:first-of-type{margin-left:auto}.ngxsp-wmp-stackItem svg{width:14px;height:14px}.ngxsp-wmp-queueList{flex:1;min-height:0;display:grid;align-content:start;gap:1px;padding:0 8px 12px;overflow:auto}.ngxsp-wmp-queueItem{width:100%;min-width:0;min-height:56px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px;border:0;border-radius:var(--wmp-r-sm);background:transparent;text-align:left;transition:background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-queueItem:hover{background:var(--wmp-s2)}.ngxsp-wmp-queueItem.active{background:var(--wmp-accent-soft)}.ngxsp-wmp-queueItem.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}.ngxsp-wmp-queueCover{position:relative;width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:4px;background:var(--wmp-s2);color:var(--wmp-text-3)}.ngxsp-wmp-queueCover>ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-queueNow{position:absolute;inset:0;display:grid;place-items:center;background:#0d0e1199;color:#fff}.ngxsp-wmp-rowBadges{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.ngxsp-wmp-rowBadges em{display:inline-flex;align-items:center;gap:3px;height:18px;padding:0 6px;border-radius:4px;background:var(--wmp-s3);color:var(--wmp-text-2);font-size:10px;font-style:normal;font-weight:500}.ngxsp-wmp-rowBadges em ngxsp-smart-icon{width:10px;height:10px}.ngxsp-wmp-rowBadges em.favorite{color:var(--wmp-accent)}.ngxsp-wmp-rowMeta{color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}.ngxsp-wmp-management,.ngxsp-wmp-devices{flex:1;min-height:0;display:grid;align-content:start;gap:10px;padding:10px 12px 16px;overflow:auto}.ngxsp-wmp-devices .ngxsp-wmp-sectionHeader.slim{padding:4px 4px 6px}.ngxsp-wmp-inlineForm{display:flex;gap:6px}.ngxsp-wmp-inlineForm input{flex:1;min-width:0;height:32px;padding:0 10px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:var(--wmp-s1);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-inlineForm input::placeholder{color:var(--wmp-text-3)}.ngxsp-wmp-shell .ngxsp-wmp-inlineForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}.ngxsp-wmp-stationForm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;padding:10px 12px;border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);background:var(--wmp-s1)}.ngxsp-wmp-stationTitle{font-size:12px;font-weight:600;color:var(--wmp-text-2)}.ngxsp-wmp-discovered{flex:1 1 100%;display:grid;gap:4px;margin:0;padding:0;list-style:none}.ngxsp-wmp-discovered li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:2px 0 2px 8px;border-top:1px solid var(--wmp-line)}.ngxsp-wmp-discovered li span{display:grid;min-width:0}.ngxsp-wmp-discovered strong{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-discovered small,.ngxsp-wmp-discovered li.empty{overflow:hidden;color:var(--wmp-text-2);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-serverKind{height:32px;padding:0 8px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:var(--wmp-s0);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-stationForm input{flex:1 1 180px;min-width:0;height:32px;padding:0 10px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:var(--wmp-s0);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-stationForm input::placeholder{color:var(--wmp-text-3)}.ngxsp-wmp-shell .ngxsp-wmp-stationForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}.ngxsp-wmp-stationHint{flex:1 0 100%;color:var(--wmp-text-3);font-size:11px}.ngxsp-wmp-targetBanner{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--wmp-accent-soft);border-radius:var(--wmp-r-sm);background:var(--wmp-accent-soft);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-targetBanner strong{margin-left:4px}.ngxsp-wmp-rowQueueAction.danger:hover,.ngxsp-wmp-cardAction.danger:hover{color:var(--wmp-danger, #e5484d)}.ngxsp-wmp-rowQueueAction.active{color:var(--wmp-accent)}.ngxsp-wmp-targets{display:grid;gap:6px}.ngxsp-wmp-target,.ngxsp-wmp-device{display:grid;gap:8px;padding:10px;border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);background:var(--wmp-s1)}.ngxsp-wmp-sheetButton,.ngxsp-wmp-sheetHeader{display:none}.ngxsp-wmp-lyrics{flex:1;display:grid;gap:8px;min-height:0;grid-template-rows:auto auto minmax(0,1fr)}.ngxsp-wmp-lyricsStatus{margin:0;color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-lyricsLines{display:grid;gap:2px;overflow-y:auto;padding-right:4px;scroll-behavior:smooth}.ngxsp-wmp-lyricsLine{margin:0;padding:6px 8px;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);font-size:13px;line-height:1.45;text-align:left;white-space:pre-wrap}button.ngxsp-wmp-lyricsLine{cursor:pointer}button.ngxsp-wmp-lyricsLine:hover{background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-lyricsLine.active{background:var(--wmp-s2);color:var(--wmp-text);font-weight:600}@media(prefers-reduced-motion:reduce){.ngxsp-wmp-lyricsLines{scroll-behavior:auto}}.ngxsp-wmp-targetMain{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px}.ngxsp-wmp-targetIcon{width:32px;height:32px;display:grid;place-items:center;border-radius:var(--wmp-r-sm);background:var(--wmp-s3);color:var(--wmp-text-2)}.ngxsp-wmp-targetIcon ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-targetActions{display:flex;gap:4px;padding-left:38px}.ngxsp-wmp-targetActions button{height:32px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-targetActions button:hover{background:var(--wmp-s3);color:var(--wmp-text)}.ngxsp-wmp-targetActions button.danger:hover{color:var(--wmp-danger-text);background:#f25f5c29}.ngxsp-wmp-device{grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:10px}.ngxsp-wmp-device.active{border-color:#8b90ff66;background:var(--wmp-accent-soft)}.ngxsp-wmp-device.active .ngxsp-wmp-targetIcon{color:var(--wmp-accent)}.ngxsp-wmp-deviceActions{grid-column:2;display:flex;gap:6px}.ngxsp-wmp-transport{grid-area:transport;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,620px) minmax(min-content,1fr);align-items:center;gap:24px;padding:0 16px;border-top:1px solid var(--wmp-line);background:var(--wmp-s0)}.ngxsp-wmp-miniNow{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px}.ngxsp-wmp-miniArt{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:var(--wmp-s2);color:var(--wmp-text-3)}.ngxsp-wmp-miniCopy{min-width:0;display:grid;gap:2px}.ngxsp-wmp-miniCopy strong,.ngxsp-wmp-miniCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-miniCopy strong{font-size:13px;font-weight:600}.ngxsp-wmp-miniCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-transportCenter{min-width:0;display:grid;justify-items:center;gap:0}.ngxsp-wmp-transportButtons{display:flex;align-items:center;gap:12px}.ngxsp-wmp-seekRow{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;color:var(--wmp-text-2);font-size:11px;font-variant-numeric:tabular-nums}.ngxsp-wmp-seekRow small:first-child{text-align:right}.ngxsp-wmp-seek{min-height:32px;--ngxsp-track-size:4px;--ngxsp-track-bg:var(--wmp-s3);--ngxsp-buffered-bg:transparent;--ngxsp-accent:var(--wmp-text);--ngxsp-thumb-size:12px;--ngxsp-thumb-bg:var(--wmp-text);--ngxsp-preview-bg:var(--wmp-s2);--ngxsp-preview-border:var(--wmp-line-strong)}.ngxsp-wmp-seek:hover{--ngxsp-accent:var(--wmp-accent)}.ngxsp-wmp-seek ::ng-deep .ngxsp-ts-thumb{opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-seek:hover ::ng-deep .ngxsp-ts-thumb,.ngxsp-wmp-seek:focus-visible ::ng-deep .ngxsp-ts-thumb{opacity:1}.ngxsp-wmp-transportModes{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px}.ngxsp-wmp-volumeControl{--ngxsp-control-size:32px;--ngxsp-volume-range-min:72px;--ngxsp-volume-range-max:112px;--ngxsp-volume-gap:4px;--ngxsp-volume-button-border:1px solid transparent;--ngxsp-volume-button-radius:6px;--ngxsp-volume-accent:var(--wmp-text);--ngxsp-volume-track-bg:var(--wmp-s3);--ngxsp-volume-thumb-bg:var(--wmp-text);--ngxsp-volume-thumb-size:12px;--ngxsp-volume-thumb-shadow:none;--ngxsp-focus-ring:0 0 0 2px var(--wmp-accent);color:var(--wmp-text-2)}.ngxsp-wmp-volumeControl:hover{--ngxsp-volume-accent:var(--wmp-accent);color:var(--wmp-text)}.ngxsp-wmp-dropOverlay{position:absolute;inset:12px;z-index:40;display:grid;place-content:center;justify-items:center;gap:10px;border:2px dashed var(--wmp-accent);border-radius:14px;background:var(--nsp-scrim, rgb(13 14 17 / .88));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--wmp-text);text-align:center;pointer-events:none}.ngxsp-wmp-dropIcon{width:56px;height:56px;display:grid;place-items:center;border-radius:14px;background:var(--wmp-accent-soft);color:var(--wmp-accent)}.ngxsp-wmp-dropIcon ngxsp-smart-icon{width:28px;height:28px}.ngxsp-wmp-dropOverlay strong{font-size:16px;font-weight:600}.ngxsp-wmp-dropOverlay span:last-child{color:var(--wmp-text-2)}@media(hover:none),(pointer:coarse){.ngxsp-wmp-rowFavorite,.ngxsp-wmp-rowQueueAction,.ngxsp-wmp-cardActions{opacity:1}.ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}}@media(max-width:1180px){.ngxsp-wmp-shell{--wmp-rail-w:208px;--wmp-panel-w:284px}.ngxsp-wmp-sourceButton span{display:none}.ngxsp-wmp-sourceButton{width:32px;padding:0;justify-content:center}.ngxsp-wmp-tableHead,.ngxsp-wmp-trackSelect{grid-template-columns:32px minmax(0,2fr) minmax(0,1fr) 48px}.ngxsp-wmp-tableHead>span:nth-child(4),.ngxsp-wmp-albumCell{display:none}.ngxsp-wmp-nowPanel{grid-template-columns:148px minmax(0,1fr);gap:22px;padding:24px}.ngxsp-wmp-art{width:148px;height:148px}.ngxsp-wmp-nowCopy h1{font-size:26px}.ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(240px,1.4fr) minmax(min-content,1fr);gap:16px}.ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}.ngxsp-wmp-miniArt{width:44px;height:44px}.ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:84px}}@media(max-width:960px)and (min-width:721px){.ngxsp-wmp-shell{--wmp-rail-w:188px;--wmp-panel-w:260px}.ngxsp-wmp-titleActions .ngxsp-wmp-status{display:none}.ngxsp-wmp-miniNow>.ngxsp-wmp-iconButton{display:none}}@media(max-height:760px)and (min-width:721px){.ngxsp-wmp-nowPanel{padding-top:20px;padding-bottom:20px}}@media(max-width:720px){.ngxsp-wmp-shell,.ngxsp-wmp-shell.ngxsp-wmp-panelHidden{height:auto;min-height:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:\"title\" \"rail\" \"main\" \"panel\";--wmp-transport-h:100px;padding-bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom,0px));overflow:visible}.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:flex}.ngxsp-wmp-titlebar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px auto;row-gap:0;padding:0 12px 10px}.ngxsp-wmp-search{grid-column:1 / -1;grid-row:2;justify-self:stretch;width:100%}.ngxsp-wmp-titleActions .ngxsp-wmp-status{display:none}.ngxsp-wmp-titleActions>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-rail{border-right:0;border-bottom:1px solid var(--wmp-line)}.ngxsp-wmp-nav{flex-direction:row;gap:4px;padding:8px 12px;overflow-x:auto}.ngxsp-wmp-navItem{width:auto;flex:0 0 auto;grid-template-columns:16px auto auto;height:32px;gap:6px}.ngxsp-wmp-navDivider{width:1px;height:20px;margin:6px 4px}.ngxsp-wmp-railTools{display:none}.ngxsp-wmp-lyricsLines{min-height:50vh}.ngxsp-wmp-main{overflow:visible}.ngxsp-wmp-nowPanel{grid-template-columns:96px minmax(0,1fr);align-items:center;gap:16px;padding:16px}.ngxsp-wmp-art{width:96px;height:96px;align-self:start}.ngxsp-wmp-playerSurface{min-height:120px;gap:10px}.ngxsp-wmp-nowCopy h1{font-size:20px}.ngxsp-wmp-nowOscillogram{grid-template-columns:minmax(0,1fr)}.ngxsp-wmp-nowTime{display:none}.ngxsp-wmp-nowActions{gap:8px}.ngxsp-wmp-nowActions .ngxsp-wmp-iconButton.outlined{width:36px;height:36px}.ngxsp-wmp-primaryButton{height:36px}.ngxsp-wmp-sectionHeader{padding:16px 16px 4px}.ngxsp-wmp-sectionScroll{padding:4px 8px 16px;gap:18px}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(132px,42%);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.ngxsp-wmp-card{scroll-snap-align:start}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid .ngxsp-wmp-card:nth-child(n+5){display:none}.ngxsp-wmp-browseMode .ngxsp-wmp-cardGrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-sectionScroll>.ngxsp-wmp-section:nth-child(n+2){display:none}.ngxsp-wmp-cardActions{top:14px;right:14px}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-table .ngxsp-wmp-trackRow:nth-of-type(n+6){display:none}.ngxsp-wmp-tableHead{display:none}.ngxsp-wmp-trackRow{grid-template-columns:minmax(0,1fr) auto}.ngxsp-wmp-trackSelect{grid-template-columns:28px minmax(0,1fr) 44px;gap:10px}.ngxsp-wmp-trackSelect>.ngxsp-wmp-trackCell{display:none}.ngxsp-wmp-rowQueueAction{display:none}.ngxsp-wmp-rowActions{padding-right:4px}.ngxsp-wmp-playlist,.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}.ngxsp-wmp-playlist.sheet,.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist.sheet{display:flex;position:fixed;left:0;right:0;top:0;bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom,0px));z-index:40;border:0;border-bottom:1px solid var(--wmp-line);overflow-y:auto;background:var(--wmp-s0);padding-top:env(safe-area-inset-top,0px)}.ngxsp-wmp-playlist.sheet .ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-child(n+5){display:grid}.ngxsp-wmp-sheetHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--wmp-line)}.ngxsp-wmp-sheetHeader strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.ngxsp-wmp-queueList{overflow:visible}.ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-child(n+5){display:none}.ngxsp-wmp-transport{position:fixed;left:0;right:0;bottom:0;z-index:30;height:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom,0px));grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;gap:0 8px;padding:10px 12px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 32px #00000059}.ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}.ngxsp-wmp-miniNow>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-miniNow>.ngxsp-wmp-sheetButton{display:grid}.ngxsp-wmp-miniArt{width:44px;height:44px}.ngxsp-wmp-transportCenter{display:contents}.ngxsp-wmp-transportButtons{grid-column:2;grid-row:1;gap:4px}.ngxsp-wmp-transportButtons>.ngxsp-wmp-iconButton:first-child,.ngxsp-wmp-transportButtons>.ngxsp-wmp-iconButton:last-child{display:none}.ngxsp-wmp-seekRow{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr)}.ngxsp-wmp-seekRow small{display:none}.ngxsp-wmp-transportModes{grid-column:2;grid-row:2;gap:0}.ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:72px}}@media(max-width:480px){.ngxsp-wmp-transportModes>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-transportModes>.ngxsp-wmp-devicesButton,.ngxsp-wmp-transportModes>.ngxsp-wmp-windowButton{display:grid}}.ngxsp-wmp-shell.ngxsp-wmp-compact{height:100vh;min-height:0;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);padding:env(titlebar-area-height,0px) 0 0}.ngxsp-wmp-shell.ngxsp-wmp-compact>:not(.ngxsp-wmp-transport){display:none!important}.ngxsp-wmp-shell.ngxsp-wmp-compact .ngxsp-wmp-transport{grid-area:1 / 1;position:static;height:auto;min-height:0;border-top:0;box-shadow:none;-webkit-user-select:none;user-select:none;-webkit-app-region:drag}.ngxsp-wmp-compact .ngxsp-wmp-transport :is(button,ngxsp-time-slider,ngxsp-volume-control){-webkit-app-region:no-drag}.ngxsp-wmp-compact .ngxsp-wmp-sheetButton,.ngxsp-wmp-compact .ngxsp-wmp-transportModes>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-compact .ngxsp-wmp-transportModes>.ngxsp-wmp-devicesButton{display:grid}.ngxsp-wmp-compactMini .ngxsp-wmp-transport{align-content:center;padding:10px 12px 8px}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transport{grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch;row-gap:4px}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-compactLyrics{grid-column:1 / -1;grid-row:1;align-self:stretch}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-miniNow,.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportButtons{grid-row:2}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-seekRow,.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportModes{grid-row:3}.ngxsp-wmp-compactLyrics{position:relative;min-height:0;display:grid;align-content:start;gap:2px;overflow-y:auto;padding:6px 4px 10px;border-bottom:1px solid var(--wmp-line);-webkit-app-region:no-drag;-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}.ngxsp-wmp-compactLyrics::-webkit-scrollbar{display:none}.ngxsp-wmp-compactLyricsLine{margin:0;padding:3px 6px;border:0;border-radius:var(--wmp-r-sm);background:none;color:var(--wmp-text-3);font:inherit;font-size:13px;line-height:1.35;text-align:left;cursor:pointer;transition:color var(--wmp-dur) var(--wmp-ease),font-size var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-compactLyricsLine.plain{cursor:default;color:var(--wmp-text-2)}.ngxsp-wmp-compactLyricsLine.active{color:var(--wmp-text);font-size:15px;font-weight:650}.ngxsp-wmp-compactLyricsLine:not(.plain):hover{color:var(--wmp-text-2)}.ngxsp-wmp-shell.ngxsp-wmp-compactBarLyrics .ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(280px,560px) minmax(0,1fr)}.ngxsp-wmp-barLyrics{min-width:0;display:grid;gap:2px;text-align:center}.ngxsp-wmp-barLyrics strong,.ngxsp-wmp-barLyrics span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-barLyrics strong{color:var(--wmp-text);font-size:15px;font-weight:650}.ngxsp-wmp-barLyrics span{color:var(--wmp-text-3);font-size:12px}.ngxsp-wmp-compactActions{display:inline-flex;align-items:center;gap:2px}.ngxsp-wmp-compactActions button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);cursor:pointer}.ngxsp-wmp-compactActions button:hover{background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-compactActions button:focus-visible{outline:2px solid var(--wmp-accent);outline-offset:1px}.ngxsp-wmp-compactActions ngxsp-smart-icon{width:16px;height:16px}@media(prefers-reduced-motion:reduce){.ngxsp-wmp-shell *,.ngxsp-wmp-shell *:before,.ngxsp-wmp-shell *:after{animation:none!important;transition:none!important}}\n"],
|
|
1763
|
+
dependencies: [
|
|
1764
|
+
{
|
|
1765
|
+
kind: "ngmodule",
|
|
1766
|
+
type: CommonModule
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
kind: "component",
|
|
1770
|
+
type: SmartPlayerComponent,
|
|
1771
|
+
selector: "ngx-smart-player",
|
|
1772
|
+
inputs: [
|
|
1773
|
+
"config",
|
|
1774
|
+
"plugins",
|
|
1775
|
+
"ports",
|
|
1776
|
+
"engines",
|
|
1777
|
+
"debug",
|
|
1778
|
+
"startTimeSec",
|
|
1779
|
+
"autoplayOnInit",
|
|
1780
|
+
"playRequest",
|
|
1781
|
+
"canPrev",
|
|
1782
|
+
"canNext",
|
|
1783
|
+
"previousLabel",
|
|
1784
|
+
"nextLabel",
|
|
1785
|
+
"playLabel",
|
|
1786
|
+
"pauseLabel",
|
|
1787
|
+
"shuffleActive",
|
|
1788
|
+
"shuffleLabel",
|
|
1789
|
+
"repeatMode",
|
|
1790
|
+
"repeatLabel",
|
|
1791
|
+
"hasPlaylistControls",
|
|
1792
|
+
"mediaMode",
|
|
1793
|
+
"castEnabled",
|
|
1794
|
+
"castConnected",
|
|
1795
|
+
"documentShortcuts",
|
|
1796
|
+
"nowPlayingLabel",
|
|
1797
|
+
"nowListeningLabel",
|
|
1798
|
+
"fullscreenHintLabel",
|
|
1799
|
+
"fullscreenLabel",
|
|
1800
|
+
"readyStatusLabel",
|
|
1801
|
+
"playingStatusLabel",
|
|
1802
|
+
"pausedStatusLabel",
|
|
1803
|
+
"bufferingStatusLabel",
|
|
1804
|
+
"loadingStatusLabel",
|
|
1805
|
+
"endedStatusLabel",
|
|
1806
|
+
"errorStatusLabel",
|
|
1807
|
+
"outputVolume",
|
|
1808
|
+
"outputVolumeLabel",
|
|
1809
|
+
"outputMuteLabel",
|
|
1810
|
+
"outputUnmuteLabel",
|
|
1811
|
+
"timelineDurationSec",
|
|
1812
|
+
"timelineMarkers",
|
|
1813
|
+
"menuLabels"
|
|
1814
|
+
],
|
|
1815
|
+
outputs: [
|
|
1816
|
+
"ended",
|
|
1817
|
+
"videoSize",
|
|
1818
|
+
"progress",
|
|
1819
|
+
"prev",
|
|
1820
|
+
"next",
|
|
1821
|
+
"toggleShuffle",
|
|
1822
|
+
"cycleRepeat",
|
|
1823
|
+
"subtitles",
|
|
1824
|
+
"subtitlesLoaded",
|
|
1825
|
+
"cast",
|
|
1826
|
+
"stateChange",
|
|
1827
|
+
"playbackToggle",
|
|
1828
|
+
"outputVolumeChange"
|
|
1829
|
+
]
|
|
1830
|
+
},
|
|
1831
|
+
{
|
|
1832
|
+
kind: "component",
|
|
1833
|
+
type: SmartPlayerIconComponent,
|
|
1834
|
+
selector: "ngxsp-smart-icon",
|
|
1835
|
+
inputs: ["name"]
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
kind: "component",
|
|
1839
|
+
type: SmartSettingsComponent,
|
|
1840
|
+
selector: "ngxsp-settings",
|
|
1841
|
+
inputs: ["sections"],
|
|
1842
|
+
outputs: ["settingChange", "settingAction"]
|
|
1843
|
+
},
|
|
1844
|
+
{
|
|
1845
|
+
kind: "component",
|
|
1846
|
+
type: NgxspTimeSlider,
|
|
1847
|
+
selector: "ngxsp-time-slider",
|
|
1848
|
+
inputs: [
|
|
1849
|
+
"currentTime",
|
|
1850
|
+
"duration",
|
|
1851
|
+
"buffered",
|
|
1852
|
+
"profile",
|
|
1853
|
+
"disabled",
|
|
1854
|
+
"durationHintSec",
|
|
1855
|
+
"markers",
|
|
1856
|
+
"step",
|
|
1857
|
+
"bigStep",
|
|
1858
|
+
"ariaLabel",
|
|
1859
|
+
"liveLabel"
|
|
1860
|
+
],
|
|
1861
|
+
outputs: ["seek"]
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
kind: "component",
|
|
1865
|
+
type: NgxspVolumeControl,
|
|
1866
|
+
selector: "ngxsp-volume-control",
|
|
1867
|
+
inputs: [
|
|
1868
|
+
"volume",
|
|
1869
|
+
"muted",
|
|
1870
|
+
"disabled",
|
|
1871
|
+
"compact",
|
|
1872
|
+
"showValue",
|
|
1873
|
+
"step",
|
|
1874
|
+
"volumeLabel",
|
|
1875
|
+
"muteLabel",
|
|
1876
|
+
"unmuteLabel"
|
|
1877
|
+
],
|
|
1878
|
+
outputs: ["volumeChange", "muteToggle"]
|
|
1879
|
+
}
|
|
1880
|
+
],
|
|
1881
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1882
|
+
});
|
|
1883
|
+
};
|
|
1884
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1885
|
+
minVersion: "12.0.0",
|
|
1886
|
+
version: "22.2.1",
|
|
1887
|
+
ngImport: i0,
|
|
1888
|
+
type: NgxSmartPlayerAudioUiComponent,
|
|
1889
|
+
decorators: [{
|
|
1890
|
+
type: Component,
|
|
1891
|
+
args: [{
|
|
1892
|
+
selector: "ngxsp-audio-player-ui",
|
|
1893
|
+
standalone: true,
|
|
1894
|
+
imports: [
|
|
1895
|
+
CommonModule,
|
|
1896
|
+
SmartPlayerComponent,
|
|
1897
|
+
SmartPlayerIconComponent,
|
|
1898
|
+
SmartSettingsComponent,
|
|
1899
|
+
NgxspTimeSlider,
|
|
1900
|
+
NgxspVolumeControl
|
|
1901
|
+
],
|
|
1902
|
+
template: `
|
|
1903
|
+
<section
|
|
1904
|
+
class="ngxsp-wmp-shell"
|
|
1905
|
+
[class.ngxsp-wmp-dragActive]="fileDragActive"
|
|
1906
|
+
[class.ngxsp-wmp-browseMode]="!isHomeView"
|
|
1907
|
+
[class.ngxsp-wmp-playing]="isPlaying"
|
|
1908
|
+
[class.ngxsp-wmp-panelHidden]="!queuePanelOpen"
|
|
1909
|
+
[class.ngxsp-wmp-compact]="compactMode !== 'full'"
|
|
1910
|
+
[class.ngxsp-wmp-compactMini]="compactMode === 'mini'"
|
|
1911
|
+
[class.ngxsp-wmp-compactBar]="compactMode === 'bar'"
|
|
1912
|
+
[class.ngxsp-wmp-compactMiniLyrics]="compactMode === 'mini' && showCompactLyrics"
|
|
1913
|
+
[class.ngxsp-wmp-compactBarLyrics]="compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0"
|
|
1914
|
+
(dragenter)="onFileDragEnter($event)"
|
|
1915
|
+
(dragover)="onFileDragOver($event)"
|
|
1916
|
+
(dragleave)="onFileDragLeave($event)"
|
|
1917
|
+
(drop)="onFileDrop($event)"
|
|
1918
|
+
>
|
|
1919
|
+
@if (fileDragActive) {
|
|
1920
|
+
<div class="ngxsp-wmp-dropOverlay" aria-hidden="true">
|
|
1921
|
+
<span class="ngxsp-wmp-dropIcon"><ngxsp-smart-icon name="folder" /></span>
|
|
1922
|
+
<strong>{{ sourceDropTitle || sourceChangeTitle || sourceChangeLabel }}</strong>
|
|
1923
|
+
@if (sourceDropHint) {
|
|
1924
|
+
<span>{{ sourceDropHint }}</span>
|
|
1925
|
+
}
|
|
1926
|
+
</div>
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
@if (config) {
|
|
1930
|
+
<div class="ngxsp-wmp-engineMount" aria-hidden="true" inert>
|
|
1931
|
+
<ngx-smart-player
|
|
1932
|
+
[config]="config"
|
|
1933
|
+
[plugins]="plugins"
|
|
1934
|
+
[ports]="ports"
|
|
1935
|
+
[engines]="engines"
|
|
1936
|
+
[debug]="debug"
|
|
1937
|
+
[startTimeSec]="startTimeSec"
|
|
1938
|
+
[autoplayOnInit]="autoplayOnInit"
|
|
1939
|
+
[playRequest]="playRequest"
|
|
1940
|
+
[canPrev]="canPrev"
|
|
1941
|
+
[canNext]="canNext"
|
|
1942
|
+
[shuffleActive]="shuffleActive"
|
|
1943
|
+
[shuffleLabel]="shuffleLabel"
|
|
1944
|
+
[repeatMode]="repeatMode"
|
|
1945
|
+
[repeatLabel]="repeatLabel"
|
|
1946
|
+
[hasPlaylistControls]="hasPlaylistControls"
|
|
1947
|
+
[mediaMode]="'audio'"
|
|
1948
|
+
[castEnabled]="castEnabled"
|
|
1949
|
+
(ended)="ended.emit()"
|
|
1950
|
+
(videoSize)="videoSize.emit($event)"
|
|
1951
|
+
(prev)="prev.emit()"
|
|
1952
|
+
(next)="next.emit()"
|
|
1953
|
+
(toggleShuffle)="toggleShuffle.emit()"
|
|
1954
|
+
(cycleRepeat)="cycleRepeat.emit()"
|
|
1955
|
+
(cast)="cast.emit()"
|
|
1956
|
+
(subtitles)="subtitles.emit()"
|
|
1957
|
+
(progress)="onPlayerProgress($event)"
|
|
1958
|
+
(stateChange)="onPlayerStateChange($event)"
|
|
1959
|
+
/>
|
|
1960
|
+
</div>
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
<header class="ngxsp-wmp-titlebar" data-tauri-drag-region>
|
|
1964
|
+
<div class="ngxsp-wmp-brand">
|
|
1965
|
+
@if (brandLogoSrc) {
|
|
1966
|
+
<img class="ngxsp-wmp-brandLogo" [src]="brandLogoSrc" alt="" width="26" height="26" />
|
|
1967
|
+
} @else {
|
|
1968
|
+
<span class="ngxsp-wmp-brandIcon" aria-hidden="true"><ngxsp-smart-icon name="music" /></span>
|
|
1969
|
+
}
|
|
1970
|
+
<span class="ngxsp-wmp-brandName">NGXSP Audio</span>
|
|
1971
|
+
</div>
|
|
1972
|
+
|
|
1973
|
+
<label class="ngxsp-wmp-search">
|
|
1974
|
+
<ngxsp-smart-icon name="search" />
|
|
1975
|
+
<input type="search" [placeholder]="searchPlaceholder" [value]="searchTerm" (input)="onSearchInput($event)" [attr.aria-label]="searchLabel" />
|
|
1976
|
+
</label>
|
|
1977
|
+
|
|
1978
|
+
<div class="ngxsp-wmp-titleActions">
|
|
1979
|
+
@if (statusMessage) {
|
|
1980
|
+
<div class="ngxsp-wmp-status" [class.success]="statusKind === 'success'" [class.error]="statusKind === 'error'" [attr.role]="statusKind === 'error' ? 'alert' : 'status'" [attr.aria-live]="statusKind === 'error' ? 'assertive' : 'polite'" aria-atomic="true" [title]="statusMessage">
|
|
1981
|
+
{{ statusMessage }}
|
|
1982
|
+
</div>
|
|
1983
|
+
}
|
|
1984
|
+
<!-- The import action lives in the top bar, as in the video player. A folder is what
|
|
1985
|
+
builds the library, so it is the action wherever one can be loaded. -->
|
|
1986
|
+
@if (folderImportLabel) {
|
|
1987
|
+
<button class="ngxsp-wmp-sourceButton" type="button" [disabled]="libraryBusy" [title]="folderImportLabel" [attr.aria-label]="folderImportLabel" (click)="addFolder.emit()">
|
|
1988
|
+
<ngxsp-smart-icon name="folder" />
|
|
1989
|
+
<span>{{ folderImportLabel }}</span>
|
|
1990
|
+
</button>
|
|
1991
|
+
} @else {
|
|
1992
|
+
<button class="ngxsp-wmp-sourceButton" type="button" [title]="sourceChangeTitle || sourceChangeLabel" [attr.aria-label]="sourceChangeTitle || sourceChangeLabel" (click)="audioFileInput.click()">
|
|
1993
|
+
<ngxsp-smart-icon name="folder" />
|
|
1994
|
+
<span>{{ sourceChangeLabel }}</span>
|
|
1995
|
+
</button>
|
|
1996
|
+
}
|
|
1997
|
+
<input #audioFileInput class="ngxsp-wmp-fileInput" type="file" [accept]="sourceChangeAccept" aria-hidden="true" tabindex="-1" (change)="onSourceFileInput($event)" />
|
|
1998
|
+
@if (languageOptions.length) {
|
|
1999
|
+
<div class="ngxsp-wmp-segmented ngxsp-wmp-languageSwitch" role="group" [attr.aria-label]="languageLabel">
|
|
2000
|
+
@for (language of languageOptions; track language.id) {
|
|
2001
|
+
<button type="button" [class.active]="language.id === activeLanguage" [attr.aria-pressed]="language.id === activeLanguage" (click)="languageChange.emit(language.id)">
|
|
2002
|
+
{{ language.label }}
|
|
2003
|
+
</button>
|
|
2004
|
+
}
|
|
2005
|
+
</div>
|
|
2006
|
+
}
|
|
2007
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="queuePanelOpen" [attr.aria-pressed]="queuePanelOpen" [title]="queueTitle" [attr.aria-label]="queueTitle" (click)="toggleQueuePanel()">
|
|
2008
|
+
<ngxsp-smart-icon name="panel-right" />
|
|
2009
|
+
</button>
|
|
2010
|
+
</div>
|
|
2011
|
+
</header>
|
|
2012
|
+
|
|
2013
|
+
<aside class="ngxsp-wmp-rail" [attr.aria-label]="libraryTitle">
|
|
2014
|
+
@if (libraryViews.length) {
|
|
2015
|
+
<nav class="ngxsp-wmp-nav" [attr.aria-label]="libraryViewsLabel">
|
|
2016
|
+
@for (view of primaryViews; track view.id) {
|
|
2017
|
+
<button class="ngxsp-wmp-navItem" [class.active]="view.active" type="button" [attr.aria-current]="view.active ? 'page' : null" [attr.aria-label]="view.count !== undefined ? view.label + ' ' + view.count : view.label" (click)="selectLibraryView.emit(view.id)">
|
|
2018
|
+
<ngxsp-smart-icon [name]="viewIcon(view.id)" />
|
|
2019
|
+
<span>{{ view.label }}</span>
|
|
2020
|
+
@if (view.count !== undefined) {
|
|
2021
|
+
<small>{{ view.count }}</small>
|
|
2022
|
+
}
|
|
2023
|
+
</button>
|
|
2024
|
+
}
|
|
2025
|
+
@if (collectionViews.length) {
|
|
2026
|
+
<span class="ngxsp-wmp-navDivider" aria-hidden="true"></span>
|
|
2027
|
+
@for (view of collectionViews; track view.id) {
|
|
2028
|
+
<button class="ngxsp-wmp-navItem" [class.active]="view.active" type="button" [attr.aria-current]="view.active ? 'page' : null" [attr.aria-label]="view.count !== undefined ? view.label + ' ' + view.count : view.label" (click)="selectLibraryView.emit(view.id)">
|
|
2029
|
+
<ngxsp-smart-icon [name]="viewIcon(view.id)" />
|
|
2030
|
+
<span>{{ view.label }}</span>
|
|
2031
|
+
@if (view.count !== undefined) {
|
|
2032
|
+
<small>{{ view.count }}</small>
|
|
2033
|
+
}
|
|
2034
|
+
</button>
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
@if (appViews.length) {
|
|
2038
|
+
<span class="ngxsp-wmp-navDivider" aria-hidden="true"></span>
|
|
2039
|
+
@for (view of appViews; track view.id) {
|
|
2040
|
+
<button class="ngxsp-wmp-navItem" [class.active]="view.active" type="button" [attr.aria-current]="view.active ? 'page' : null" [attr.aria-label]="view.label" (click)="selectLibraryView.emit(view.id)">
|
|
2041
|
+
<ngxsp-smart-icon [name]="viewIcon(view.id)" />
|
|
2042
|
+
<span>{{ view.label }}</span>
|
|
2043
|
+
</button>
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
</nav>
|
|
2047
|
+
}
|
|
2048
|
+
|
|
2049
|
+
<div class="ngxsp-wmp-railTools">
|
|
2050
|
+
<div class="ngxsp-wmp-libraryInfo">
|
|
2051
|
+
<strong>{{ libraryTitle }}</strong>
|
|
2052
|
+
@if (libraryMeta) {
|
|
2053
|
+
<small>{{ libraryMeta }}</small>
|
|
2054
|
+
}
|
|
2055
|
+
@if (libraryStatus) {
|
|
2056
|
+
<small class="ngxsp-wmp-libraryStatus" [class.busy]="libraryBusy" role="status" aria-live="polite">{{ libraryStatus }}</small>
|
|
2057
|
+
}
|
|
2058
|
+
</div>
|
|
2059
|
+
</div>
|
|
2060
|
+
</aside>
|
|
2061
|
+
|
|
2062
|
+
<section #libraryScroll class="ngxsp-wmp-main" [attr.aria-label]="libraryContentTitle || libraryTitle">
|
|
2063
|
+
@if (isHomeView) {
|
|
2064
|
+
<section class="ngxsp-wmp-nowPanel" [attr.aria-label]="nowListeningLabel">
|
|
2065
|
+
<div class="ngxsp-wmp-art ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(currentArtworkUrl)" [attr.data-tone]="artTone(currentTrackId || currentTitle)">
|
|
2066
|
+
@if (artworkSrc(currentArtworkUrl); as artworkUrl) {
|
|
2067
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
2068
|
+
} @else {
|
|
2069
|
+
<span class="ngxsp-wmp-artNote" aria-hidden="true"><ngxsp-smart-icon name="music" /></span>
|
|
2070
|
+
}
|
|
2071
|
+
</div>
|
|
2072
|
+
|
|
2073
|
+
<div class="ngxsp-wmp-playerSurface">
|
|
2074
|
+
@if (config) {
|
|
2075
|
+
<div class="ngxsp-wmp-nowCopy">
|
|
2076
|
+
<span class="ngxsp-wmp-eyebrow">
|
|
2077
|
+
@if (isPlaying) { <i class="ngxsp-wmp-liveDot" aria-hidden="true"></i> }
|
|
2078
|
+
{{ nowListeningLabel }}
|
|
2079
|
+
</span>
|
|
2080
|
+
<h1>{{ currentTitle || noTrackTitle }}</h1>
|
|
2081
|
+
<p>{{ currentSubtitle || readyLabel }}</p>
|
|
2082
|
+
@if (currentMeta) { <small>{{ currentMeta }}</small> }
|
|
2083
|
+
</div>
|
|
2084
|
+
<div class="ngxsp-wmp-nowActions">
|
|
2085
|
+
<button class="ngxsp-wmp-primaryButton" type="button" [attr.aria-label]="isPlaying ? pauseLabel : playLabel" (click)="togglePrimaryPlayback()">
|
|
2086
|
+
@if (isPlaying) { <ngxsp-smart-icon name="pause" /> } @else { <ngxsp-smart-icon name="play" /> }
|
|
2087
|
+
<span>{{ isPlaying ? pauseLabel : playLabel }}</span>
|
|
2088
|
+
</button>
|
|
2089
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [class.active]="favoriteActive" [attr.aria-pressed]="favoriteActive" [title]="favoriteActive ? favoriteActiveLabel : favoriteLabel" [attr.aria-label]="favoriteActive ? favoriteActiveLabel : favoriteLabel" (click)="toggleFavorite.emit(currentTrackId)">
|
|
2090
|
+
<ngxsp-smart-icon name="heart" />
|
|
2091
|
+
</button>
|
|
2092
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [class.active]="shuffleActive" [attr.aria-pressed]="shuffleActive" [title]="shuffleLabel" [attr.aria-label]="shuffleLabel" (click)="toggleShuffle.emit()">
|
|
2093
|
+
<ngxsp-smart-icon name="shuffle" />
|
|
2094
|
+
</button>
|
|
2095
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [class.active]="repeatMode !== 'off'" [attr.aria-pressed]="repeatMode !== 'off'" [title]="repeatLabel" [attr.aria-label]="repeatLabel" (click)="cycleRepeat.emit()">
|
|
2096
|
+
<ngxsp-smart-icon [name]="repeatMode === 'one' ? 'repeat-one' : 'repeat'" />
|
|
2097
|
+
</button>
|
|
2098
|
+
@if (revealFileLabel) {
|
|
2099
|
+
<button class="ngxsp-wmp-iconButton outlined" type="button" [title]="revealFileLabel" [attr.aria-label]="revealFileLabel" (click)="revealFile.emit(currentTrackId)">
|
|
2100
|
+
<ngxsp-smart-icon name="folder" />
|
|
2101
|
+
</button>
|
|
2102
|
+
}
|
|
2103
|
+
</div>
|
|
2104
|
+
<div class="ngxsp-wmp-nowOscillogram" aria-hidden="true">
|
|
2105
|
+
<div class="ngxsp-wmp-nowWaveform">
|
|
2106
|
+
@for (bar of visualizerBars; track $index) {
|
|
2107
|
+
<span [class.played]="isBarPlayed($index)" [style.height.%]="bar"></span>
|
|
2108
|
+
}
|
|
2109
|
+
</div>
|
|
2110
|
+
<div class="ngxsp-wmp-nowProgressLine">
|
|
2111
|
+
<i [style.width.%]="progressPercent"></i>
|
|
2112
|
+
</div>
|
|
2113
|
+
<span class="ngxsp-wmp-nowTime">
|
|
2114
|
+
<small>{{ elapsedLabel }}</small>
|
|
2115
|
+
<small>{{ displayDurationLabel }}</small>
|
|
2116
|
+
</span>
|
|
2117
|
+
</div>
|
|
2118
|
+
} @else {
|
|
2119
|
+
<div class="ngxsp-wmp-emptyPlayer">
|
|
2120
|
+
<h1>{{ selectTrackTitle }}</h1>
|
|
2121
|
+
<p>{{ selectTrackBody }}</p>
|
|
2122
|
+
<button class="ngxsp-wmp-primaryButton" type="button" (click)="audioFileInput.click()">
|
|
2123
|
+
<ngxsp-smart-icon name="folder" />
|
|
2124
|
+
<span>{{ sourceChangeLabel }}</span>
|
|
2125
|
+
</button>
|
|
2126
|
+
</div>
|
|
2127
|
+
}
|
|
2128
|
+
</div>
|
|
2129
|
+
</section>
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
<section class="ngxsp-wmp-librarySurface">
|
|
2133
|
+
<header class="ngxsp-wmp-sectionHeader">
|
|
2134
|
+
@if (backLabel) {
|
|
2135
|
+
<button class="ngxsp-wmp-backButton" type="button" [attr.aria-label]="backLabel" [title]="backLabel" (click)="back.emit()">
|
|
2136
|
+
<ngxsp-smart-icon name="chevron-left" />
|
|
2137
|
+
<span>{{ backLabel }}</span>
|
|
2138
|
+
</button>
|
|
2139
|
+
}
|
|
2140
|
+
<span>{{ libraryEyebrow }}</span>
|
|
2141
|
+
@if (isHomeView) {
|
|
2142
|
+
<h2>{{ libraryContentTitle || libraryTitle }}</h2>
|
|
2143
|
+
} @else {
|
|
2144
|
+
<h1>{{ libraryContentTitle || libraryTitle }}</h1>
|
|
2145
|
+
}
|
|
2146
|
+
</header>
|
|
2147
|
+
<div class="ngxsp-wmp-sectionScroll">
|
|
2148
|
+
@if (serverForm; as form) {
|
|
2149
|
+
<form class="ngxsp-wmp-stationForm" (submit)="submitServer($event)">
|
|
2150
|
+
<span class="ngxsp-wmp-stationTitle">{{ form.title }}</span>
|
|
2151
|
+
@if (form.kinds && form.kinds.length > 1) {
|
|
2152
|
+
<select class="ngxsp-wmp-serverKind" [value]="serverKindDraft || form.kinds[0].id" (change)="onServerKindChange($event)" [attr.aria-label]="form.kindLabel || form.title">
|
|
2153
|
+
@for (kind of form.kinds; track kind.id) {
|
|
2154
|
+
<option [value]="kind.id">{{ kind.label }}</option>
|
|
2155
|
+
}
|
|
2156
|
+
</select>
|
|
2157
|
+
}
|
|
2158
|
+
@let serverKind = selectedServerKind(form);
|
|
2159
|
+
<input type="text" inputmode="url" [value]="serverAddressDraft" (input)="onServerAddressInput($event)" [placeholder]="serverKind?.addressPlaceholder || form.addressPlaceholder" [attr.aria-label]="serverKind?.addressPlaceholder || form.addressPlaceholder" />
|
|
2160
|
+
@if (serverKind?.credentials !== false) {
|
|
2161
|
+
<input type="text" autocomplete="username" [value]="serverUsernameDraft" (input)="onServerUsernameInput($event)" [placeholder]="form.usernamePlaceholder" [attr.aria-label]="form.usernamePlaceholder" />
|
|
2162
|
+
<input type="password" autocomplete="current-password" [value]="serverPasswordDraft" (input)="onServerPasswordInput($event)" [placeholder]="form.passwordPlaceholder" [attr.aria-label]="form.passwordPlaceholder" />
|
|
2163
|
+
}
|
|
2164
|
+
<button class="ngxsp-wmp-smallButton primary" type="submit" [disabled]="form.busy || !serverAddressDraft.trim()">{{ form.submitLabel }}</button>
|
|
2165
|
+
@if (form.discovery && serverKind?.discoverable) {
|
|
2166
|
+
<button class="ngxsp-wmp-smallButton" type="button" [disabled]="form.discovery.busy" (click)="discoverServers.emit(serverKind!.id)">{{ form.discovery.busy ? form.discovery.searchingLabel : form.discovery.searchLabel }}</button>
|
|
2167
|
+
}
|
|
2168
|
+
@if (form.hint) { <small class="ngxsp-wmp-stationHint">{{ form.hint }}</small> }
|
|
2169
|
+
@if (form.discovery && serverKind?.discoverable && (form.discovery.servers.length || form.discovery.emptyLabel)) {
|
|
2170
|
+
<ul class="ngxsp-wmp-discovered" [attr.aria-label]="form.discovery.searchLabel">
|
|
2171
|
+
@for (server of form.discovery.servers; track server.id) {
|
|
2172
|
+
<li>
|
|
2173
|
+
<span><strong>{{ server.name }}</strong>@if (server.subtitle) { <small>{{ server.subtitle }}</small> }</span>
|
|
2174
|
+
<button class="ngxsp-wmp-smallButton" type="button" [disabled]="form.busy" [attr.aria-label]="form.discovery.connectLabel + ' - ' + server.name" (click)="connectDiscoveredServer.emit(server.id)">{{ form.discovery.connectLabel }}</button>
|
|
2175
|
+
</li>
|
|
2176
|
+
} @empty {
|
|
2177
|
+
<li class="empty">{{ form.discovery.emptyLabel }}</li>
|
|
2178
|
+
}
|
|
2179
|
+
</ul>
|
|
2180
|
+
}
|
|
2181
|
+
</form>
|
|
2182
|
+
}
|
|
2183
|
+
@if (stationForm; as form) {
|
|
2184
|
+
<form class="ngxsp-wmp-stationForm" (submit)="submitStation($event)">
|
|
2185
|
+
<span class="ngxsp-wmp-stationTitle">{{ form.title }}</span>
|
|
2186
|
+
<input type="text" [value]="stationNameDraft" (input)="onStationNameInput($event)" [placeholder]="form.namePlaceholder" [attr.aria-label]="form.namePlaceholder" />
|
|
2187
|
+
<input type="url" inputmode="url" [value]="stationUrlDraft" (input)="onStationUrlInput($event)" [placeholder]="form.urlPlaceholder" [attr.aria-label]="form.urlPlaceholder" />
|
|
2188
|
+
<button class="ngxsp-wmp-smallButton primary" type="submit" [disabled]="!stationUrlDraft.trim()">{{ form.submitLabel }}</button>
|
|
2189
|
+
@if (form.hint) { <small class="ngxsp-wmp-stationHint">{{ form.hint }}</small> }
|
|
2190
|
+
</form>
|
|
2191
|
+
}
|
|
2192
|
+
@if (settingsSections.length) {
|
|
2193
|
+
<ngxsp-settings [sections]="settingsSections" (settingChange)="settingChange.emit($event)" (settingAction)="settingAction.emit($event)" />
|
|
2194
|
+
}
|
|
2195
|
+
@for (section of librarySections; track section.id) {
|
|
2196
|
+
<section class="ngxsp-wmp-section">
|
|
2197
|
+
@if (section.title !== (libraryContentTitle || libraryTitle)) {
|
|
2198
|
+
@if (isHomeView) { <h3>{{ section.title }}</h3> } @else { <h2>{{ section.title }}</h2> }
|
|
2199
|
+
}
|
|
2200
|
+
@if (section.layout === 'cards') {
|
|
2201
|
+
<div class="ngxsp-wmp-cardGrid">
|
|
2202
|
+
@for (item of section.items; track item.id) {
|
|
2203
|
+
<div class="ngxsp-wmp-card" [class.active]="item.active">
|
|
2204
|
+
<button class="ngxsp-wmp-cardSelect" type="button" [attr.aria-current]="item.active ? 'true' : null" (click)="selectLibraryItem.emit(item.id)">
|
|
2205
|
+
<span class="ngxsp-wmp-thumb ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(item.artworkUrl)" [attr.data-tone]="artTone(item.id)">
|
|
2206
|
+
@if (artworkSrc(item.artworkUrl); as artworkUrl) {
|
|
2207
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
2208
|
+
} @else {
|
|
2209
|
+
<ngxsp-smart-icon name="music" />
|
|
2210
|
+
}
|
|
2211
|
+
@if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {
|
|
2212
|
+
<span class="ngxsp-wmp-rowProgress" aria-hidden="true"><i [style.width.%]="item.progressPercent"></i></span>
|
|
2213
|
+
}
|
|
2214
|
+
</span>
|
|
2215
|
+
<span class="ngxsp-wmp-cardCopy">
|
|
2216
|
+
<strong>{{ item.title }}</strong>
|
|
2217
|
+
@if (item.subtitle) { <small>{{ item.subtitle }}</small> }
|
|
2218
|
+
@if (item.meta) { <em>{{ item.meta }}</em> }
|
|
2219
|
+
</span>
|
|
2220
|
+
</button>
|
|
2221
|
+
<span class="ngxsp-wmp-cardPlaySlot">
|
|
2222
|
+
<button class="ngxsp-wmp-cardPlay" type="button" [title]="playLabel" [attr.aria-label]="playLabel + ' ' + item.title" (click)="playItem(item.id)">
|
|
2223
|
+
@if (item.active && isPlaying) { <ngxsp-smart-icon name="waveform" /> } @else { <ngxsp-smart-icon name="play" /> }
|
|
2224
|
+
</button>
|
|
2225
|
+
</span>
|
|
2226
|
+
<span class="ngxsp-wmp-cardActions">
|
|
2227
|
+
<button class="ngxsp-wmp-cardAction" type="button" [title]="queueNextLabel" [attr.aria-label]="queueNextLabel + ' ' + item.title" (click)="addLibraryItemNext.emit(item.id)">
|
|
2228
|
+
<ngxsp-smart-icon name="next" />
|
|
2229
|
+
</button>
|
|
2230
|
+
<button class="ngxsp-wmp-cardAction" type="button" [title]="queueAddLabel" [attr.aria-label]="queueAddLabel + ' ' + item.title" (click)="addLibraryItemToQueue.emit(item.id)">
|
|
2231
|
+
<ngxsp-smart-icon name="playlist-plus" />
|
|
2232
|
+
</button>
|
|
2233
|
+
@if (ringtoneAvailable) {
|
|
2234
|
+
<button class="ngxsp-wmp-cardAction" type="button" [title]="ringtoneLabel" [attr.aria-label]="ringtoneLabel + ' - ' + item.title" (click)="makeRingtone.emit(item.id)">
|
|
2235
|
+
<ngxsp-smart-icon name="bell" />
|
|
2236
|
+
</button>
|
|
2237
|
+
}
|
|
2238
|
+
@if (lockAvailable) {
|
|
2239
|
+
<button
|
|
2240
|
+
class="ngxsp-wmp-cardAction"
|
|
2241
|
+
type="button"
|
|
2242
|
+
[class.active]="item.locked"
|
|
2243
|
+
[attr.aria-pressed]="!!item.locked"
|
|
2244
|
+
[title]="item.locked ? unlockLabel : lockLabel"
|
|
2245
|
+
[attr.aria-label]="(item.locked ? unlockLabel : lockLabel) + ' - ' + item.title"
|
|
2246
|
+
(click)="toggleLock.emit(item.id)"
|
|
2247
|
+
>
|
|
2248
|
+
<ngxsp-smart-icon [name]="item.locked ? 'check' : 'tag'" />
|
|
2249
|
+
</button>
|
|
2250
|
+
}
|
|
2251
|
+
@if (isRemovable(item.id)) {
|
|
2252
|
+
<button class="ngxsp-wmp-cardAction danger" type="button" [title]="removeItemLabel" [attr.aria-label]="removeItemLabel + ' - ' + item.title" (click)="removeLibraryItem.emit(item.id)">
|
|
2253
|
+
<ngxsp-smart-icon name="close" />
|
|
2254
|
+
</button>
|
|
2255
|
+
}
|
|
2256
|
+
</span>
|
|
2257
|
+
</div>
|
|
2258
|
+
}
|
|
2259
|
+
</div>
|
|
2260
|
+
} @else {
|
|
2261
|
+
<div class="ngxsp-wmp-table" role="table" [attr.aria-label]="tracksLabel" [style.--wmp-actions-w]="rowActionsWidth(section.items)">
|
|
2262
|
+
<div class="ngxsp-wmp-tableHead" role="row">
|
|
2263
|
+
<span role="columnheader">#</span>
|
|
2264
|
+
<span role="columnheader">{{ titleColumnLabel }}</span>
|
|
2265
|
+
<span role="columnheader">{{ artistColumnLabel }}</span>
|
|
2266
|
+
<span role="columnheader">{{ albumColumnLabel }}</span>
|
|
2267
|
+
<span role="columnheader" class="ngxsp-wmp-timeHead" [attr.aria-label]="timeColumnLabel" [title]="timeColumnLabel"><ngxsp-smart-icon name="clock" /></span>
|
|
2268
|
+
</div>
|
|
2269
|
+
@for (item of section.items; track item.id; let index = $index) {
|
|
2270
|
+
<div class="ngxsp-wmp-trackRow" [class.active]="item.active" role="row">
|
|
2271
|
+
<button class="ngxsp-wmp-trackSelect" type="button" [attr.aria-current]="item.active ? 'true' : null" (click)="selectLibraryItem.emit(item.id)">
|
|
2272
|
+
<span class="ngxsp-wmp-trackIndex">
|
|
2273
|
+
@if (item.active) { <ngxsp-smart-icon name="waveform" /> } @else { <span class="ngxsp-wmp-indexNumber">{{ index + 1 }}</span><ngxsp-smart-icon class="ngxsp-wmp-indexPlay" name="play" /> }
|
|
2274
|
+
</span>
|
|
2275
|
+
<span class="ngxsp-wmp-trackTitle">
|
|
2276
|
+
<span class="ngxsp-wmp-rowIcon ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(item.artworkUrl)" [attr.data-tone]="artTone(item.id)">
|
|
2277
|
+
@if (artworkSrc(item.artworkUrl); as artworkUrl) {
|
|
2278
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
2279
|
+
} @else {
|
|
2280
|
+
<ngxsp-smart-icon name="music" />
|
|
2281
|
+
}
|
|
2282
|
+
</span>
|
|
2283
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
2284
|
+
<strong>{{ item.title }}</strong>
|
|
2285
|
+
@if (item.genre) { <small>{{ item.genre }}</small> }
|
|
2286
|
+
</span>
|
|
2287
|
+
</span>
|
|
2288
|
+
<span class="ngxsp-wmp-trackCell">{{ artistOf(item) }}</span>
|
|
2289
|
+
<span class="ngxsp-wmp-trackCell ngxsp-wmp-albumCell">{{ albumOf(item) }}</span>
|
|
2290
|
+
<span class="ngxsp-wmp-trackTime">{{ durationOf(item) }}</span>
|
|
2291
|
+
</button>
|
|
2292
|
+
<span class="ngxsp-wmp-rowActions">
|
|
2293
|
+
<button class="ngxsp-wmp-rowFavorite" [class.active]="item.favorite" type="button" [attr.aria-pressed]="!!item.favorite" [title]="item.favorite ? favoriteActiveLabel : favoriteLabel" [attr.aria-label]="item.favorite ? favoriteActiveLabel : favoriteLabel" (click)="toggleFavorite.emit(item.id)">
|
|
2294
|
+
<ngxsp-smart-icon name="heart" />
|
|
2295
|
+
</button>
|
|
2296
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [title]="queueNextLabel" [attr.aria-label]="queueNextLabel + ' ' + item.title" (click)="addLibraryItemNext.emit(item.id)">
|
|
2297
|
+
<ngxsp-smart-icon name="next" />
|
|
2298
|
+
</button>
|
|
2299
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [title]="queueAddLabel" [attr.aria-label]="queueAddLabel + ' ' + item.title" (click)="addLibraryItemToQueue.emit(item.id)">
|
|
2300
|
+
<ngxsp-smart-icon name="playlist-plus" />
|
|
2301
|
+
</button>
|
|
2302
|
+
@if (hasPlaylists) {
|
|
2303
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [class.active]="playlistTargetTrack?.id === item.id" [title]="addToPlaylistLabel" [attr.aria-label]="addToPlaylistLabel + ' - ' + item.title" (click)="requestPlaylistTarget.emit(item.id)">
|
|
2304
|
+
<ngxsp-smart-icon name="list" />
|
|
2305
|
+
</button>
|
|
2306
|
+
}
|
|
2307
|
+
@if (ringtoneAvailable) {
|
|
2308
|
+
<button class="ngxsp-wmp-rowQueueAction" type="button" [title]="ringtoneLabel" [attr.aria-label]="ringtoneLabel + ' - ' + item.title" (click)="makeRingtone.emit(item.id)">
|
|
2309
|
+
<ngxsp-smart-icon name="bell" />
|
|
2310
|
+
</button>
|
|
2311
|
+
}
|
|
2312
|
+
@if (lockAvailable) {
|
|
2313
|
+
<button
|
|
2314
|
+
class="ngxsp-wmp-rowQueueAction"
|
|
2315
|
+
type="button"
|
|
2316
|
+
[class.active]="item.locked"
|
|
2317
|
+
[attr.aria-pressed]="!!item.locked"
|
|
2318
|
+
[title]="item.locked ? unlockLabel : lockLabel"
|
|
2319
|
+
[attr.aria-label]="(item.locked ? unlockLabel : lockLabel) + ' - ' + item.title"
|
|
2320
|
+
(click)="toggleLock.emit(item.id)"
|
|
2321
|
+
>
|
|
2322
|
+
<ngxsp-smart-icon [name]="item.locked ? 'check' : 'tag'" />
|
|
2323
|
+
</button>
|
|
2324
|
+
}
|
|
2325
|
+
@if (isRemovable(item.id)) {
|
|
2326
|
+
<button class="ngxsp-wmp-rowQueueAction danger" type="button" [title]="removeItemLabel" [attr.aria-label]="removeItemLabel + ' - ' + item.title" (click)="removeLibraryItem.emit(item.id)">
|
|
2327
|
+
<ngxsp-smart-icon name="close" />
|
|
2328
|
+
</button>
|
|
2329
|
+
}
|
|
2330
|
+
</span>
|
|
2331
|
+
@if (showResumeProgress && item.progressPercent && item.progressPercent > 0) {
|
|
2332
|
+
<span class="ngxsp-wmp-rowProgress" aria-hidden="true"><i [style.width.%]="item.progressPercent"></i></span>
|
|
2333
|
+
}
|
|
2334
|
+
</div>
|
|
2335
|
+
}
|
|
2336
|
+
</div>
|
|
2337
|
+
}
|
|
2338
|
+
</section>
|
|
2339
|
+
} @empty {
|
|
2340
|
+
@if (!settingsSections.length) {
|
|
2341
|
+
<div class="ngxsp-wmp-emptyLibrary">
|
|
2342
|
+
<ngxsp-smart-icon name="music" />
|
|
2343
|
+
<span>{{ emptyLibraryLabel }}</span>
|
|
2344
|
+
</div>
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
</div>
|
|
2348
|
+
</section>
|
|
2349
|
+
</section>
|
|
2350
|
+
|
|
2351
|
+
<aside
|
|
2352
|
+
class="ngxsp-wmp-playlist"
|
|
2353
|
+
#panel
|
|
2354
|
+
tabindex="-1"
|
|
2355
|
+
[class.sheet]="panelSheetOpen"
|
|
2356
|
+
[attr.role]="panelSheetOpen ? 'dialog' : null"
|
|
2357
|
+
[attr.aria-modal]="panelSheetOpen ? 'true' : null"
|
|
2358
|
+
[attr.aria-label]="queueTitle"
|
|
2359
|
+
(keydown.escape)="closePanelSheet()"
|
|
2360
|
+
>
|
|
2361
|
+
@if (panelSheetOpen) {
|
|
2362
|
+
<div class="ngxsp-wmp-sheetHeader">
|
|
2363
|
+
<strong>{{ currentTitle || noTrackTitle }}</strong>
|
|
2364
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="closePanelSheet()">{{ closeLabel }}</button>
|
|
2365
|
+
</div>
|
|
2366
|
+
<div class="ngxsp-wmp-sheetToggles" role="group" [attr.aria-label]="queueTitle">
|
|
2367
|
+
@for (panel of panelSwitches; track panel.id) {
|
|
2368
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="isPanelOpen(panel.id)" [attr.aria-pressed]="isPanelOpen(panel.id)" [title]="panel.label" [attr.aria-label]="panel.label" (click)="togglePanel(panel.id)">
|
|
2369
|
+
<ngxsp-smart-icon [name]="panel.icon" />
|
|
2370
|
+
</button>
|
|
2371
|
+
}
|
|
2372
|
+
</div>
|
|
2373
|
+
}
|
|
2374
|
+
<div class="ngxsp-wmp-panelStack">
|
|
2375
|
+
@if (isPanelOpen('queue')) {
|
|
2376
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('queue')">
|
|
2377
|
+
<header class="ngxsp-wmp-stackHead">
|
|
2378
|
+
<strong>{{ queueTitle }}</strong>
|
|
2379
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('queue')" [attr.aria-label]="queueTitle" (click)="togglePanelCollapsed('queue')">
|
|
2380
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('queue') ? 'chevron-down' : 'chevron-up'" />
|
|
2381
|
+
</button>
|
|
2382
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('queue')">
|
|
2383
|
+
<ngxsp-smart-icon name="close" />
|
|
2384
|
+
</button>
|
|
2385
|
+
</header>
|
|
2386
|
+
@if (!isPanelCollapsed('queue')) {
|
|
2387
|
+
<div class="ngxsp-wmp-sectionHeader slim">
|
|
2388
|
+
<span>{{ queueEyebrow }}</span>
|
|
2389
|
+
<strong>{{ queueItems.length }} {{ tracksCountLabel }}</strong>
|
|
2390
|
+
</div>
|
|
2391
|
+
<div class="ngxsp-wmp-queueList" #queueList>
|
|
2392
|
+
@for (item of queueItems; track item.id) {
|
|
2393
|
+
<button class="ngxsp-wmp-queueItem" [class.active]="item.active" type="button" [attr.aria-current]="item.active ? 'true' : null" (click)="selectQueueItem.emit(item.id)">
|
|
2394
|
+
<span class="ngxsp-wmp-queueCover ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(item.artworkUrl)" [attr.data-tone]="artTone(item.id)">
|
|
2395
|
+
@if (artworkSrc(item.artworkUrl); as artworkUrl) {
|
|
2396
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
2397
|
+
} @else {
|
|
2398
|
+
<ngxsp-smart-icon name="music" />
|
|
2399
|
+
}
|
|
2400
|
+
@if (item.active) {
|
|
2401
|
+
<span class="ngxsp-wmp-queueNow" aria-hidden="true"><ngxsp-smart-icon [name]="isPlaying ? 'waveform' : 'pause'" /></span>
|
|
2402
|
+
}
|
|
2403
|
+
</span>
|
|
2404
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
2405
|
+
<strong>{{ item.title }}</strong>
|
|
2406
|
+
@if (item.subtitle) { <small>{{ item.subtitle }}</small> }
|
|
2407
|
+
@if (item.favorite || item.lastPlayedLabel) {
|
|
2408
|
+
<span class="ngxsp-wmp-rowBadges">
|
|
2409
|
+
@if (item.favorite) {
|
|
2410
|
+
<em class="favorite"><ngxsp-smart-icon name="heart" /> {{ favoritesLabel }}</em>
|
|
2411
|
+
}
|
|
2412
|
+
@if (item.lastPlayedLabel) {
|
|
2413
|
+
<em>{{ item.lastPlayedLabel }}</em>
|
|
2414
|
+
}
|
|
2415
|
+
</span>
|
|
2416
|
+
}
|
|
2417
|
+
</span>
|
|
2418
|
+
@if (item.meta) { <span class="ngxsp-wmp-rowMeta">{{ item.meta }}</span> }
|
|
2419
|
+
</button>
|
|
2420
|
+
} @empty {
|
|
2421
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ emptyQueueLabel }}</div>
|
|
2422
|
+
}
|
|
2423
|
+
</div>
|
|
2424
|
+
}
|
|
2425
|
+
</section>
|
|
2426
|
+
}
|
|
2427
|
+
@if (isPanelOpen('lyrics') && !!lyricsPanel) {
|
|
2428
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('lyrics')">
|
|
2429
|
+
<header class="ngxsp-wmp-stackHead">
|
|
2430
|
+
<strong>{{ lyricsTitle }}</strong>
|
|
2431
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('lyrics')" [attr.aria-label]="lyricsTitle" (click)="togglePanelCollapsed('lyrics')">
|
|
2432
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('lyrics') ? 'chevron-down' : 'chevron-up'" />
|
|
2433
|
+
</button>
|
|
2434
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('lyrics')">
|
|
2435
|
+
<ngxsp-smart-icon name="close" />
|
|
2436
|
+
</button>
|
|
2437
|
+
</header>
|
|
2438
|
+
@if (!isPanelCollapsed('lyrics')) {
|
|
2439
|
+
@if (lyricsPanel; as lyrics) {
|
|
2440
|
+
<section class="ngxsp-wmp-lyrics" [attr.aria-label]="lyrics.title" [attr.aria-busy]="lyrics.busy ? 'true' : null">
|
|
2441
|
+
<div class="ngxsp-wmp-sectionHeader slim">
|
|
2442
|
+
<strong>{{ currentTitle }}</strong>
|
|
2443
|
+
@if (lyrics.searchLabel) {
|
|
2444
|
+
<button class="ngxsp-wmp-smallButton" type="button" [disabled]="lyrics.busy" (click)="refreshLyrics.emit()">{{ lyrics.searchLabel }}</button>
|
|
2445
|
+
}
|
|
2446
|
+
</div>
|
|
2447
|
+
@if (lyrics.status) { <p class="ngxsp-wmp-lyricsStatus">{{ lyrics.status }}</p> }
|
|
2448
|
+
<div class="ngxsp-wmp-lyricsLines" #lyricsLines>
|
|
2449
|
+
@for (line of lyrics.lines; track $index) {
|
|
2450
|
+
@if (line.timeSec !== undefined) {
|
|
2451
|
+
<button type="button" class="ngxsp-wmp-lyricsLine" [class.active]="$index === activeLyricsIndex" [attr.aria-current]="$index === activeLyricsIndex ? 'true' : null" [attr.aria-label]="(lyrics.seekLabel ? lyrics.seekLabel + ' - ' : '') + line.text" (click)="playFromLyrics(line.timeSec)">{{ line.text || '♪' }}</button>
|
|
2452
|
+
} @else {
|
|
2453
|
+
<p class="ngxsp-wmp-lyricsLine plain">{{ line.text }}</p>
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
</div>
|
|
2457
|
+
</section>
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
</section>
|
|
2461
|
+
}
|
|
2462
|
+
@if (isPanelOpen('devices') && showDeviceButton) {
|
|
2463
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('devices')">
|
|
2464
|
+
<header class="ngxsp-wmp-stackHead">
|
|
2465
|
+
<strong>{{ devicesLabel }}</strong>
|
|
2466
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('devices')" [attr.aria-label]="devicesLabel" (click)="togglePanelCollapsed('devices')">
|
|
2467
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('devices') ? 'chevron-down' : 'chevron-up'" />
|
|
2468
|
+
</button>
|
|
2469
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('devices')">
|
|
2470
|
+
<ngxsp-smart-icon name="close" />
|
|
2471
|
+
</button>
|
|
2472
|
+
</header>
|
|
2473
|
+
@if (!isPanelCollapsed('devices')) {
|
|
2474
|
+
<section class="ngxsp-wmp-devices">
|
|
2475
|
+
<div class="ngxsp-wmp-sectionHeader slim">
|
|
2476
|
+
<strong>{{ remotePlaybackLabel }}</strong>
|
|
2477
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="refreshDevices.emit()">{{ refreshLabel }}</button>
|
|
2478
|
+
</div>
|
|
2479
|
+
@for (device of deviceItems; track device.id) {
|
|
2480
|
+
<div class="ngxsp-wmp-device" [class.active]="device.active">
|
|
2481
|
+
<span class="ngxsp-wmp-targetIcon" aria-hidden="true"><ngxsp-smart-icon [name]="device.active ? 'devices-active' : 'devices'" /></span>
|
|
2482
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
2483
|
+
<strong>{{ device.name }}</strong>
|
|
2484
|
+
@if (device.subtitle) { <small>{{ device.subtitle }}</small> }
|
|
2485
|
+
</span>
|
|
2486
|
+
<span class="ngxsp-wmp-deviceActions">
|
|
2487
|
+
<button class="ngxsp-wmp-smallButton" type="button" [attr.aria-label]="(device.actionLabel ?? playLabel) + ' - ' + device.name" (click)="playOnDevice.emit(device.id)">{{ device.actionLabel ?? playLabel }}</button>
|
|
2488
|
+
@if (device.stoppable !== false) {
|
|
2489
|
+
<button class="ngxsp-wmp-smallButton" type="button" [attr.aria-label]="stopLabel + ' - ' + device.name" (click)="stopOnDevice.emit(device.id)">{{ stopLabel }}</button>
|
|
2490
|
+
}
|
|
2491
|
+
</span>
|
|
2492
|
+
</div>
|
|
2493
|
+
} @empty {
|
|
2494
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ emptyDevicesLabel }}</div>
|
|
2495
|
+
}
|
|
2496
|
+
</section>
|
|
2497
|
+
}
|
|
2498
|
+
</section>
|
|
2499
|
+
}
|
|
2500
|
+
@if (isPanelOpen('playlists')) {
|
|
2501
|
+
<section class="ngxsp-wmp-stackItem" [class.collapsed]="isPanelCollapsed('playlists')">
|
|
2502
|
+
<header class="ngxsp-wmp-stackHead">
|
|
2503
|
+
<strong>{{ playlistsLabel }}</strong>
|
|
2504
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [attr.aria-expanded]="!isPanelCollapsed('playlists')" [attr.aria-label]="playlistsLabel" (click)="togglePanelCollapsed('playlists')">
|
|
2505
|
+
<ngxsp-smart-icon [name]="isPanelCollapsed('playlists') ? 'chevron-down' : 'chevron-up'" />
|
|
2506
|
+
</button>
|
|
2507
|
+
<button class="ngxsp-wmp-stackIcon" type="button" [title]="closeLabel" [attr.aria-label]="closeLabel" (click)="togglePanel('playlists')">
|
|
2508
|
+
<ngxsp-smart-icon name="close" />
|
|
2509
|
+
</button>
|
|
2510
|
+
</header>
|
|
2511
|
+
@if (!isPanelCollapsed('playlists')) {
|
|
2512
|
+
<section class="ngxsp-wmp-management">
|
|
2513
|
+
<div class="ngxsp-wmp-inlineForm">
|
|
2514
|
+
<input [value]="playlistDraftName" (input)="onPlaylistDraftInput($event)" (keydown.enter)="submitCreatePlaylist()" type="text" [placeholder]="newPlaylistPlaceholder" [attr.aria-label]="newPlaylistPlaceholder" />
|
|
2515
|
+
<button class="ngxsp-wmp-smallButton primary" type="button" (click)="submitCreatePlaylist()" [disabled]="!playlistDraftName.trim()">{{ createLabel }}</button>
|
|
2516
|
+
</div>
|
|
2517
|
+
@if (playlistTargetTrack; as target) {
|
|
2518
|
+
<div class="ngxsp-wmp-targetBanner">
|
|
2519
|
+
<span>{{ playlistTargetLabel }}<strong>{{ target.title }}</strong></span>
|
|
2520
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="cancelPlaylistTarget.emit()">{{ cancelLabel }}</button>
|
|
2521
|
+
</div>
|
|
2522
|
+
}
|
|
2523
|
+
<div class="ngxsp-wmp-targets">
|
|
2524
|
+
@for (playlist of playlistOptions; track playlist.id) {
|
|
2525
|
+
<div class="ngxsp-wmp-target">
|
|
2526
|
+
<div class="ngxsp-wmp-targetMain">
|
|
2527
|
+
<span class="ngxsp-wmp-targetIcon" aria-hidden="true"><ngxsp-smart-icon name="list" /></span>
|
|
2528
|
+
<span class="ngxsp-wmp-rowCopy">
|
|
2529
|
+
<strong>{{ playlist.name }}</strong>
|
|
2530
|
+
@if (playlist.trackCount !== undefined) { <small>{{ playlist.trackCount }} {{ tracksCountLabel }}</small> }
|
|
2531
|
+
</span>
|
|
2532
|
+
@if (playlistTargetTrack || currentTrackAvailable) {
|
|
2533
|
+
<button class="ngxsp-wmp-smallButton" type="button" [attr.aria-label]="addLabel + ' - ' + playlist.name" (click)="addToPlaylist(playlist.id)">
|
|
2534
|
+
<ngxsp-smart-icon name="plus" />
|
|
2535
|
+
<span>{{ addLabel }}</span>
|
|
2536
|
+
</button>
|
|
2537
|
+
}
|
|
2538
|
+
</div>
|
|
2539
|
+
@if (editingPlaylistId === playlist.id) {
|
|
2540
|
+
<div class="ngxsp-wmp-inlineForm">
|
|
2541
|
+
<input [value]="renameDraftName" (input)="onRenameDraftInput($event)" (keydown.enter)="submitRenamePlaylist()" type="text" [placeholder]="renamePlaylistPlaceholder" [attr.aria-label]="renamePlaylistPlaceholder" />
|
|
2542
|
+
<button class="ngxsp-wmp-smallButton primary" type="button" (click)="submitRenamePlaylist()" [disabled]="!renameDraftName.trim()">{{ saveLabel }}</button>
|
|
2543
|
+
<button class="ngxsp-wmp-smallButton" type="button" (click)="cancelRenamePlaylist()">{{ cancelLabel }}</button>
|
|
2544
|
+
</div>
|
|
2545
|
+
} @else {
|
|
2546
|
+
<div class="ngxsp-wmp-targetActions">
|
|
2547
|
+
<button type="button" (click)="startRenamePlaylist(playlist.id, playlist.name)">{{ renameLabel }}</button>
|
|
2548
|
+
<button type="button" class="danger" (click)="deletePlaylist.emit(playlist.id)">{{ deleteLabel }}</button>
|
|
2549
|
+
</div>
|
|
2550
|
+
}
|
|
2551
|
+
</div>
|
|
2552
|
+
} @empty {
|
|
2553
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ emptyPlaylistTargetsLabel }}</div>
|
|
2554
|
+
}
|
|
2555
|
+
</div>
|
|
2556
|
+
@if (!playlistTargetTrack && !currentTrackAvailable && playlistOptions.length) {
|
|
2557
|
+
<div class="ngxsp-wmp-emptyLibrary">{{ selectTrackForPlaylistLabel }}</div>
|
|
2558
|
+
}
|
|
2559
|
+
</section>
|
|
2560
|
+
}
|
|
2561
|
+
</section>
|
|
2562
|
+
}
|
|
2563
|
+
</div>
|
|
2564
|
+
</aside>
|
|
2565
|
+
|
|
2566
|
+
<footer class="ngxsp-wmp-transport" [attr.aria-label]="transportLabel">
|
|
2567
|
+
<div class="ngxsp-wmp-miniNow">
|
|
2568
|
+
<span class="ngxsp-wmp-miniArt ngxsp-wmp-cover" [class.has-image]="!!artworkSrc(currentArtworkUrl)" [attr.data-tone]="artTone(currentTrackId || currentTitle)" aria-hidden="true">
|
|
2569
|
+
@if (artworkSrc(currentArtworkUrl); as artworkUrl) {
|
|
2570
|
+
<img [src]="artworkUrl" alt="" (error)="markArtworkFailed(artworkUrl)" />
|
|
2571
|
+
} @else {
|
|
2572
|
+
<ngxsp-smart-icon name="music" />
|
|
2573
|
+
}
|
|
2574
|
+
</span>
|
|
2575
|
+
<span class="ngxsp-wmp-miniCopy">
|
|
2576
|
+
<strong>{{ currentTitle || noTrackTitle }}</strong>
|
|
2577
|
+
<small>{{ currentSubtitle || currentMeta || readyLabel }}</small>
|
|
2578
|
+
</span>
|
|
2579
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="favoriteActive" [attr.aria-pressed]="favoriteActive" [title]="favoriteActive ? favoriteActiveLabel : favoriteLabel" [attr.aria-label]="favoriteActive ? favoriteActiveLabel : favoriteLabel" (click)="toggleFavorite.emit(currentTrackId)">
|
|
2580
|
+
<ngxsp-smart-icon name="heart" />
|
|
2581
|
+
</button>
|
|
2582
|
+
<!-- Phones only: the panel is a sheet opened from here instead of a block stacked under the page. -->
|
|
2583
|
+
<button class="ngxsp-wmp-iconButton ngxsp-wmp-sheetButton" #sheetButton type="button" [attr.aria-expanded]="panelSheetOpen" [title]="queueTitle" [attr.aria-label]="queueTitle" (click)="openPanelSheet()">
|
|
2584
|
+
<ngxsp-smart-icon name="list" />
|
|
2585
|
+
</button>
|
|
2586
|
+
</div>
|
|
2587
|
+
@if (compactMode === 'mini' && showCompactLyrics) {
|
|
2588
|
+
<!-- The mini window's lyrics: the whole text, the line being sung in sight. -->
|
|
2589
|
+
<div class="ngxsp-wmp-compactLyrics" #compactLyricsLines [attr.aria-label]="compactLyricsLabel">
|
|
2590
|
+
@for (line of lyricsPanel!.lines; track $index) {
|
|
2591
|
+
@if (line.timeSec !== undefined) {
|
|
2592
|
+
<button type="button" class="ngxsp-wmp-compactLyricsLine" [class.active]="$index === activeLyricsIndex" [attr.aria-current]="$index === activeLyricsIndex ? 'true' : null" (click)="playFromLyrics(line.timeSec)">{{ line.text || '♪' }}</button>
|
|
2593
|
+
} @else {
|
|
2594
|
+
<p class="ngxsp-wmp-compactLyricsLine plain">{{ line.text }}</p>
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
</div>
|
|
2598
|
+
}
|
|
2599
|
+
@if (compactMode === 'bar' && showCompactLyrics && activeLyricsIndex >= 0) {
|
|
2600
|
+
<!-- The bottom strip's lyrics: the line being sung, and the next one. -->
|
|
2601
|
+
<div class="ngxsp-wmp-barLyrics" [attr.aria-label]="compactLyricsLabel">
|
|
2602
|
+
<strong>{{ lyricsPanel!.lines[activeLyricsIndex].text || '♪' }}</strong>
|
|
2603
|
+
@if (lyricsPanel!.lines[activeLyricsIndex + 1]; as next) { <span>{{ next.text }}</span> }
|
|
2604
|
+
</div>
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
<div class="ngxsp-wmp-transportCenter">
|
|
2608
|
+
<div class="ngxsp-wmp-transportButtons">
|
|
2609
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="shuffleActive" [attr.aria-pressed]="shuffleActive" [title]="shuffleLabel" [attr.aria-label]="shuffleLabel" (click)="toggleShuffle.emit()">
|
|
2610
|
+
<ngxsp-smart-icon name="shuffle" />
|
|
2611
|
+
</button>
|
|
2612
|
+
<button class="ngxsp-wmp-iconButton" type="button" [disabled]="!canPrev" [title]="previousLabel" [attr.aria-label]="previousLabel" (click)="prev.emit()">
|
|
2613
|
+
<ngxsp-smart-icon name="prev" />
|
|
2614
|
+
</button>
|
|
2615
|
+
<button class="ngxsp-wmp-playButton" type="button" [attr.aria-label]="isPlaying ? pauseLabel : playLabel" [title]="isPlaying ? pauseLabel : playLabel" (click)="togglePrimaryPlayback()">
|
|
2616
|
+
@if (isPlaying) { <ngxsp-smart-icon name="pause" /> } @else { <ngxsp-smart-icon name="play" /> }
|
|
2617
|
+
</button>
|
|
2618
|
+
<button class="ngxsp-wmp-iconButton" type="button" [disabled]="!canNext" [title]="nextLabel" [attr.aria-label]="nextLabel" (click)="next.emit()">
|
|
2619
|
+
<ngxsp-smart-icon name="next" />
|
|
2620
|
+
</button>
|
|
2621
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.active]="repeatMode !== 'off'" [attr.aria-pressed]="repeatMode !== 'off'" [title]="repeatLabel" [attr.aria-label]="repeatLabel" (click)="cycleRepeat.emit()">
|
|
2622
|
+
<ngxsp-smart-icon [name]="repeatMode === 'one' ? 'repeat-one' : 'repeat'" />
|
|
2623
|
+
</button>
|
|
2624
|
+
</div>
|
|
2625
|
+
<div class="ngxsp-wmp-seekRow">
|
|
2626
|
+
<small>{{ elapsedLabel }}</small>
|
|
2627
|
+
<ngxsp-time-slider
|
|
2628
|
+
class="ngxsp-wmp-seek"
|
|
2629
|
+
[currentTime]="currentTimeSec"
|
|
2630
|
+
[duration]="durationSec"
|
|
2631
|
+
[profile]="'audio'"
|
|
2632
|
+
[disabled]="!config || durationSec <= 0"
|
|
2633
|
+
[ariaLabel]="seekLabel"
|
|
2634
|
+
(seek)="seekTo($event)"
|
|
2635
|
+
/>
|
|
2636
|
+
<small>{{ displayDurationLabel }}</small>
|
|
2637
|
+
</div>
|
|
2638
|
+
</div>
|
|
2639
|
+
|
|
2640
|
+
<div class="ngxsp-wmp-transportModes">
|
|
2641
|
+
@for (panel of panelSwitches; track panel.id) {
|
|
2642
|
+
<button class="ngxsp-wmp-iconButton" type="button" [class.ngxsp-wmp-devicesButton]="panel.id === 'devices'" [class.active]="isPanelShowing(panel.id)" [attr.aria-pressed]="isPanelShowing(panel.id)" [title]="panel.label" [attr.aria-label]="panel.label" (click)="togglePanelFromBar(panel.id)">
|
|
2643
|
+
<ngxsp-smart-icon [name]="panel.icon" />
|
|
2644
|
+
</button>
|
|
2645
|
+
}
|
|
2646
|
+
@if (compactModes && compactMode === 'full') {
|
|
2647
|
+
<button class="ngxsp-wmp-iconButton ngxsp-wmp-windowButton" type="button" [title]="compactMiniLabel" [attr.aria-label]="compactMiniLabel" (click)="compactModeChange.emit('mini')">
|
|
2648
|
+
<ngxsp-smart-icon name="window-mini" />
|
|
2649
|
+
</button>
|
|
2650
|
+
}
|
|
2651
|
+
<ngxsp-volume-control
|
|
2652
|
+
class="ngxsp-wmp-volumeControl ngxsp-wmp-footerVolume"
|
|
2653
|
+
[volume]="outputVolume / 100"
|
|
2654
|
+
[step]="0.05"
|
|
2655
|
+
[volumeLabel]="outputVolumeLabel"
|
|
2656
|
+
[muteLabel]="outputMuteLabel"
|
|
2657
|
+
[unmuteLabel]="outputUnmuteLabel"
|
|
2658
|
+
(muteToggle)="outputMuteToggle.emit()"
|
|
2659
|
+
(volumeChange)="onOutputVolumeRatioChange($event)"
|
|
2660
|
+
/>
|
|
2661
|
+
@if (compactMode !== 'full') {
|
|
2662
|
+
<span class="ngxsp-wmp-compactActions">
|
|
2663
|
+
@if (hasCompactLyrics) {
|
|
2664
|
+
<button type="button" [class.active]="compactLyrics" [attr.aria-pressed]="compactLyrics" [title]="compactLyricsLabel" [attr.aria-label]="compactLyricsLabel" (click)="compactLyricsToggle.emit()"><ngxsp-smart-icon name="lyrics" /></button>
|
|
2665
|
+
}
|
|
2666
|
+
@if (compactMode === 'mini') {
|
|
2667
|
+
<button type="button" [title]="compactBarLabel" [attr.aria-label]="compactBarLabel" (click)="compactModeChange.emit('bar')"><ngxsp-smart-icon name="window-bar" /></button>
|
|
2668
|
+
} @else {
|
|
2669
|
+
<button type="button" [title]="compactMiniLabel" [attr.aria-label]="compactMiniLabel" (click)="compactModeChange.emit('mini')"><ngxsp-smart-icon name="window-mini" /></button>
|
|
2670
|
+
}
|
|
2671
|
+
<button type="button" [title]="compactRestoreLabel" [attr.aria-label]="compactRestoreLabel" (click)="compactModeChange.emit('full')"><ngxsp-smart-icon name="window-restore" /></button>
|
|
2672
|
+
</span>
|
|
2673
|
+
}
|
|
2674
|
+
</div>
|
|
2675
|
+
</footer>
|
|
2676
|
+
</section>
|
|
2677
|
+
`,
|
|
2678
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2679
|
+
styles: [":host{display:block;height:100%;min-height:0;color:var(--nsp-text, #ededf0);font-family:var(--nsp-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Ubuntu, sans-serif);font-size:13px;line-height:1.4}.ngxsp-wmp-shell{--wmp-bg:var(--nsp-bg, #0d0e11);--wmp-s0:var(--nsp-surface-0, #121317);--wmp-s1:var(--nsp-surface-1, #17181d);--wmp-s2:var(--nsp-surface-2, #1e1f25);--wmp-s3:var(--nsp-surface-3, #26272e);--wmp-line:var(--nsp-line, rgb(255 255 255 / .07));--wmp-line-strong:var(--nsp-line-strong, rgb(255 255 255 / .13));--wmp-text:var(--nsp-text, #ededf0);--wmp-text-2:var(--nsp-text-2, #a3a5ae);--wmp-text-3:var(--nsp-text-3, #80828c);--wmp-accent:var(--nsp-accent, #8b90ff);--wmp-accent-strong:var(--nsp-accent-strong, #5d63ee);--wmp-accent-soft:var(--nsp-accent-soft, rgb(139 144 255 / .14));--wmp-on-accent:var(--nsp-on-accent, #fff);--wmp-success:var(--nsp-success, #3ecf8e);--wmp-danger:var(--nsp-danger, #f25f5c);--wmp-danger-text:var(--nsp-danger-text, #ffb4b2);--wmp-r-sm:var(--nsp-radius-sm, 6px);--wmp-r-md:var(--nsp-radius-md, 10px);--wmp-ease:var(--nsp-ease, cubic-bezier(.2,0,0,1));--wmp-dur:var(--nsp-dur, .14s);--wmp-title-h:var(--nsp-titlebar-height, 48px);--wmp-rail-w:232px;--wmp-panel-w:320px;--wmp-transport-h:84px;position:relative;height:100%;min-height:600px;display:grid;grid-template-columns:var(--wmp-rail-w) minmax(0,1fr) var(--wmp-panel-w);grid-template-rows:var(--wmp-title-h) minmax(0,1fr) var(--wmp-transport-h);grid-template-areas:\"title title title\" \"rail main panel\" \"transport transport transport\";overflow:hidden;background:var(--wmp-bg);color:var(--wmp-text);box-sizing:border-box}.ngxsp-wmp-shell.ngxsp-wmp-panelHidden{grid-template-columns:var(--wmp-rail-w) minmax(0,1fr);grid-template-areas:\"title title\" \"rail main\" \"transport transport\"}.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}.ngxsp-wmp-shell *{box-sizing:border-box;letter-spacing:0}.ngxsp-wmp-shell *::-webkit-scrollbar{width:10px;height:10px}.ngxsp-wmp-shell *::-webkit-scrollbar-track{background:transparent}.ngxsp-wmp-shell *::-webkit-scrollbar-thumb{background:var(--wmp-s3);border-radius:999px;border:3px solid transparent;background-clip:padding-box}.ngxsp-wmp-shell *::-webkit-scrollbar-thumb:hover{background-color:var(--wmp-line-strong)}button,input{font:inherit;color:inherit}button{cursor:pointer}img{display:block;width:100%;height:100%;object-fit:cover}h1,h2,h3,p{margin:0}ngxsp-smart-icon{width:18px;height:18px}.ngxsp-wmp-fileInput{display:none}.ngxsp-wmp-shell button:focus-visible,.ngxsp-wmp-shell input:focus-visible{outline:2px solid var(--wmp-accent);outline-offset:2px}.ngxsp-wmp-engineMount{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}.ngxsp-wmp-engineMount ngx-smart-player{display:block;width:1px;height:1px;min-height:0;border:0}.ngxsp-wmp-iconButton{width:32px;height:32px;flex:0 0 auto;display:inline-grid;place-items:center;padding:0;border:1px solid transparent;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);transition:background-color var(--wmp-dur) var(--wmp-ease),color var(--wmp-dur) var(--wmp-ease),border-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-iconButton:hover:not(:disabled){background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-iconButton.active,.ngxsp-wmp-iconButton.active:hover:not(:disabled){color:var(--wmp-accent)}.ngxsp-wmp-iconButton.outlined{width:40px;height:40px;border-color:var(--wmp-line-strong);border-radius:999px}.ngxsp-wmp-iconButton:disabled{opacity:.35;cursor:default}.ngxsp-wmp-iconButton.active ngxsp-smart-icon[name=heart] ::ng-deep path{fill:currentColor}.ngxsp-wmp-playButton{width:36px;height:36px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:999px;background:var(--wmp-text);color:var(--wmp-bg);transition:transform var(--wmp-dur) var(--wmp-ease),background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-playButton:hover{transform:scale(1.05)}.ngxsp-wmp-primaryButton{height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 20px 0 16px;border:0;border-radius:999px;background:var(--wmp-accent-strong);color:var(--wmp-on-accent);font-weight:600;transition:filter var(--wmp-dur) var(--wmp-ease),transform var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-primaryButton:hover{filter:brightness(1.1)}.ngxsp-wmp-primaryButton:active{transform:scale(.98)}.ngxsp-wmp-smallButton{height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text);font-size:12px;font-weight:500;white-space:nowrap}.ngxsp-wmp-smallButton ngxsp-smart-icon{width:14px;height:14px}.ngxsp-wmp-smallButton:hover:not(:disabled){background:var(--wmp-s2)}.ngxsp-wmp-smallButton.primary{border-color:transparent;background:var(--wmp-accent-strong);color:var(--wmp-on-accent)}.ngxsp-wmp-smallButton.primary:hover:not(:disabled){background:var(--wmp-accent-strong);filter:brightness(1.1)}.ngxsp-wmp-smallButton:disabled{opacity:.45;cursor:default}.ngxsp-wmp-segmented{display:inline-flex;align-items:center;gap:2px;padding:2px;border-radius:8px;background:var(--wmp-s2)}.ngxsp-wmp-segmented button{height:32px;min-width:0;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--wmp-text-2);font-size:12px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngxsp-wmp-segmented button:hover{color:var(--wmp-text)}.ngxsp-wmp-segmented button.active{background:var(--wmp-s3);color:var(--wmp-text);box-shadow:0 1px 2px #0000004d}.ngxsp-wmp-titlebar{grid-area:title;min-width:0;display:grid;grid-template-columns:calc(var(--wmp-rail-w) - 16px) minmax(0,1fr) minmax(0,max-content);align-items:center;gap:16px;padding:0 calc(12px + var(--nsp-titlebar-inset-end, 0px)) 0 calc(16px + var(--nsp-titlebar-inset-start, 0px));border-bottom:1px solid var(--wmp-line);background:var(--wmp-s0);-webkit-app-region:drag;-webkit-user-select:none;user-select:none}.ngxsp-wmp-titlebar button,.ngxsp-wmp-titlebar input,.ngxsp-wmp-titlebar label,.ngxsp-wmp-titlebar .ngxsp-wmp-status{-webkit-app-region:no-drag}.ngxsp-wmp-brand{min-width:0;display:flex;align-items:center;gap:10px}.ngxsp-wmp-brandIcon{width:26px;height:26px;flex:0 0 auto;display:grid;place-items:center;border-radius:7px;color:#fff;background:linear-gradient(145deg,#8b90ff,#5d63ee 55%,#4146c9);box-shadow:inset 0 1px #ffffff38}.ngxsp-wmp-brandIcon ngxsp-smart-icon{width:15px;height:15px}.ngxsp-wmp-brandLogo{width:26px;height:26px;flex:0 0 auto;display:block}.ngxsp-wmp-brandName{font-size:13px;font-weight:600;white-space:nowrap}.ngxsp-wmp-search{position:relative;justify-self:center;width:100%;max-width:440px;height:34px;display:block;color:var(--wmp-text-3)}.ngxsp-wmp-search ngxsp-smart-icon{position:absolute;left:11px;top:50%;width:16px;height:16px;transform:translateY(-50%);pointer-events:none}.ngxsp-wmp-search input{width:100%;height:100%;padding:0 10px 0 35px;border:1px solid transparent;border-radius:8px;outline:0;background:var(--wmp-s2);color:var(--wmp-text);font-size:13px;transition:border-color var(--wmp-dur) var(--wmp-ease),background-color var(--wmp-dur) var(--wmp-ease),box-shadow var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-search input:hover{border-color:var(--wmp-line-strong)}.ngxsp-wmp-shell .ngxsp-wmp-search input:focus,.ngxsp-wmp-shell .ngxsp-wmp-search input:focus-visible{outline:0;border-color:var(--wmp-accent);background:var(--wmp-s1);box-shadow:0 0 0 3px var(--wmp-accent-soft)}.ngxsp-wmp-search input::placeholder{color:var(--wmp-text-3)}.ngxsp-wmp-titleActions{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:8px}.ngxsp-wmp-status{min-width:0;max-width:300px;height:26px;display:inline-flex;align-items:center;gap:7px;padding:0 10px;border-radius:999px;background:var(--wmp-s2);color:var(--wmp-text-2);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ngxsp-wmp-status:before{content:\"\";width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-accent)}.ngxsp-wmp-status.success:before{background:var(--wmp-success)}.ngxsp-wmp-status.error{color:var(--wmp-danger-text);background:#f25f5c29}.ngxsp-wmp-status.error:before{background:var(--wmp-danger)}.ngxsp-wmp-rail{grid-area:rail;min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--wmp-line);background:var(--wmp-s0)}.ngxsp-wmp-nav{flex:1;min-height:0;display:flex;flex-direction:column;gap:1px;padding:12px 8px;overflow:auto}.ngxsp-wmp-navItem{width:100%;height:34px;flex:0 0 auto;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0 10px;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);text-align:left;transition:background-color var(--wmp-dur) var(--wmp-ease),color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-navItem span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.ngxsp-wmp-navItem small{color:var(--wmp-text-3);font-size:11px;font-variant-numeric:tabular-nums}.ngxsp-wmp-navItem:hover{background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-navItem.active{background:var(--wmp-s3);color:var(--wmp-text)}.ngxsp-wmp-navItem.active ngxsp-smart-icon{color:var(--wmp-accent)}.ngxsp-wmp-navItem.active small{color:var(--wmp-text-2)}.ngxsp-wmp-navDivider{display:block;flex:0 0 auto;height:1px;margin:10px;background:var(--wmp-line)}ngxsp-settings{--ngxsp-settings-surface:var(--wmp-s1);--ngxsp-settings-text:var(--wmp-text);--ngxsp-settings-muted:var(--wmp-text-2);--ngxsp-settings-line:var(--wmp-line);--ngxsp-settings-control:var(--wmp-s3);--ngxsp-settings-accent:var(--wmp-accent);--ngxsp-settings-radius:var(--wmp-r-md, 10px)}.ngxsp-wmp-railTools{display:grid;gap:12px;padding:12px;border-top:1px solid var(--wmp-line)}.ngxsp-wmp-sourceButton{flex:0 0 auto;height:32px;display:inline-flex;align-items:center;gap:7px;padding:0 12px 0 10px;border:0;border-radius:var(--wmp-r-sm);background:var(--wmp-accent-strong);color:var(--wmp-on-accent);font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer}.ngxsp-wmp-sourceButton ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-sourceButton:hover{filter:brightness(1.1)}.ngxsp-wmp-sourceButton:disabled{opacity:.7;cursor:progress}.ngxsp-wmp-libraryInfo{min-width:0;display:grid;gap:2px;padding:0 4px}.ngxsp-wmp-libraryInfo strong,.ngxsp-wmp-libraryInfo small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-libraryInfo strong{font-size:12px;font-weight:600}.ngxsp-wmp-libraryInfo small{color:var(--wmp-text-3);font-size:11px}.ngxsp-wmp-libraryStatus{display:flex;align-items:center;gap:6px}.ngxsp-wmp-libraryStatus:before{content:\"\";width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:var(--wmp-success)}.ngxsp-wmp-libraryStatus.busy:before{background:var(--wmp-accent);animation:ngxsp-wmp-pulse 1.2s ease-in-out infinite}@keyframes ngxsp-wmp-pulse{0%,to{opacity:.35}50%{opacity:1}}.ngxsp-wmp-main{grid-area:main;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:auto;background:var(--wmp-bg)}.ngxsp-wmp-nowPanel{position:relative;flex:0 0 auto;display:grid;grid-template-columns:184px minmax(0,1fr);align-items:end;gap:28px;padding:32px 32px 28px;background:radial-gradient(120% 140% at 0% 0%,rgb(93 99 238 / .2) 0%,transparent 60%),linear-gradient(180deg,var(--wmp-s1) 0%,var(--wmp-bg) 100%);border-bottom:1px solid var(--wmp-line)}.ngxsp-wmp-art{width:184px;height:184px;display:grid;place-items:center;overflow:hidden;border-radius:var(--wmp-r-md);background:linear-gradient(145deg,var(--wmp-s3),var(--wmp-s1));color:var(--wmp-text-3);box-shadow:var(--nsp-shadow-media, 0 18px 40px rgb(0 0 0 / .45))}.ngxsp-wmp-artNote ngxsp-smart-icon{width:56px;height:56px}.ngxsp-wmp-playerSurface{min-width:0;min-height:160px;display:flex;flex-direction:column;justify-content:flex-end;gap:16px}.ngxsp-wmp-nowCopy{min-width:0;display:grid;gap:4px}.ngxsp-wmp-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--wmp-text-2);font-size:11px;font-weight:600}.ngxsp-wmp-liveDot{width:6px;height:6px;border-radius:50%;background:var(--wmp-success);box-shadow:0 0 0 3px #3ecf8e2e}.ngxsp-wmp-nowCopy h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:32px;line-height:1.15;font-weight:700}.ngxsp-wmp-shell .ngxsp-wmp-nowCopy h1{letter-spacing:-.015em}.ngxsp-wmp-nowCopy p{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wmp-text);font-size:14px;font-weight:500}.ngxsp-wmp-nowCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-nowActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ngxsp-wmp-nowOscillogram{min-width:0;min-height:48px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 2px;column-gap:14px;row-gap:6px;align-items:end}.ngxsp-wmp-nowWaveform{grid-column:1;grid-row:1;height:40px;display:flex;align-items:flex-end;gap:3px;overflow:hidden}.ngxsp-wmp-nowWaveform span{flex:1 1 0;min-width:2px;border-radius:2px 2px 0 0;background:var(--wmp-line-strong);transform-origin:bottom;transition:background-color .24s var(--wmp-ease)}.ngxsp-wmp-nowWaveform span.played{background:var(--wmp-accent)}.ngxsp-wmp-nowProgressLine{grid-column:1;grid-row:2;position:relative;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden}.ngxsp-wmp-nowProgressLine i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent);border-radius:inherit}.ngxsp-wmp-nowTime{grid-column:2;grid-row:1 / span 2;align-self:end;display:flex;gap:4px;color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}.ngxsp-wmp-nowTime small+small:before{content:\"/ \";color:var(--wmp-text-3)}.ngxsp-wmp-emptyPlayer{display:grid;justify-items:start;gap:10px}.ngxsp-wmp-emptyPlayer h1{font-size:28px;font-weight:700}.ngxsp-wmp-emptyPlayer p{color:var(--wmp-text-2);max-width:52ch}.ngxsp-wmp-shell .ngxsp-wmp-cover:not(.has-image){color:#fff9;background:radial-gradient(90% 70% at 20% 10%,rgb(255 255 255 / .16),transparent 60%),linear-gradient(140deg,var(--tone-a),var(--tone-b))}.ngxsp-wmp-cover[data-tone=\"0\"]{--tone-a:#4a4fc4;--tone-b:#1d1e45}.ngxsp-wmp-cover[data-tone=\"1\"]{--tone-a:#1f8078;--tone-b:#0e2a2c}.ngxsp-wmp-cover[data-tone=\"2\"]{--tone-a:#b3782a;--tone-b:#35230f}.ngxsp-wmp-cover[data-tone=\"3\"]{--tone-a:#a83a62;--tone-b:#2e1120}.ngxsp-wmp-cover[data-tone=\"4\"]{--tone-a:#2f6fa8;--tone-b:#0f2031}.ngxsp-wmp-cover[data-tone=\"5\"]{--tone-a:#6f7f2e;--tone-b:#1f240f}.ngxsp-wmp-cover[data-tone=\"6\"]{--tone-a:#7a48b8;--tone-b:#231436}.ngxsp-wmp-cover[data-tone=\"7\"]{--tone-a:#b0543a;--tone-b:#321710}.ngxsp-wmp-librarySurface{flex:1 0 auto;min-width:0;display:flex;flex-direction:column}.ngxsp-wmp-sectionHeader{display:grid;gap:2px;padding:24px 32px 8px}.ngxsp-wmp-sectionHeader>span{color:var(--wmp-text-2);font-size:12px;font-weight:600}.ngxsp-wmp-backButton{justify-self:start;display:inline-flex;align-items:center;gap:4px;max-width:100%;height:28px;margin:0 0 6px -8px;padding:0 10px 0 4px;border:0;border-radius:999px;background:transparent;color:var(--wmp-text-2);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.ngxsp-wmp-backButton ngxsp-smart-icon{flex:none;width:18px;height:18px}.ngxsp-wmp-backButton span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-backButton:hover{background:var(--wmp-s2, rgb(127 127 127 / .14));color:var(--wmp-text)}.ngxsp-wmp-sectionHeader h1,.ngxsp-wmp-sectionHeader h2{font-size:22px;line-height:1.2;font-weight:700}.ngxsp-wmp-sectionHeader.slim{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px;padding:14px 20px 8px}.ngxsp-wmp-sectionHeader.slim>span{grid-column:1}.ngxsp-wmp-sectionHeader.slim strong{grid-column:1;font-size:13px;font-weight:600}.ngxsp-wmp-sectionHeader.slim .ngxsp-wmp-smallButton{grid-column:2;grid-row:1 / span 2}.ngxsp-wmp-sectionScroll{display:grid;gap:28px;padding:8px 24px 32px}.ngxsp-wmp-section{min-width:0;display:grid;gap:10px}.ngxsp-wmp-section>h2,.ngxsp-wmp-section>h3{padding:0 8px;font-size:15px;font-weight:600}.ngxsp-wmp-cardGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:4px}.ngxsp-wmp-card{position:relative;min-width:0;container-type:inline-size;border-radius:var(--wmp-r-md);transition:background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-card:hover,.ngxsp-wmp-card:focus-within{background:var(--wmp-s1)}.ngxsp-wmp-cardSelect{width:100%;min-width:0;display:grid;gap:10px;padding:10px;border:0;border-radius:inherit;background:transparent;text-align:left}.ngxsp-wmp-thumb{position:relative;width:100%;aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:linear-gradient(145deg,var(--wmp-s3),var(--wmp-s1));color:var(--wmp-text-3);box-shadow:var(--nsp-shadow-card, 0 6px 18px rgb(0 0 0 / .3))}.ngxsp-wmp-thumb>ngxsp-smart-icon{width:36px;height:36px}.ngxsp-wmp-cardPlaySlot{position:absolute;top:calc(100cqw - 58px);right:18px;display:flex;opacity:0;transform:translateY(6px);transition:opacity var(--wmp-dur) var(--wmp-ease),transform var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-card:hover .ngxsp-wmp-cardPlaySlot,.ngxsp-wmp-card:focus-within .ngxsp-wmp-cardPlaySlot,.ngxsp-wmp-card.active .ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}.ngxsp-wmp-cardPlay{width:40px;height:40px;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:var(--wmp-accent-strong);color:#fff;box-shadow:0 8px 20px #0006}.ngxsp-wmp-cardPlay ngxsp-smart-icon{width:18px;height:18px}.ngxsp-wmp-cardCopy{min-width:0;display:grid;gap:2px}.ngxsp-wmp-cardCopy strong,.ngxsp-wmp-cardCopy small,.ngxsp-wmp-cardCopy em{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-cardCopy strong{font-size:13px;font-weight:600}.ngxsp-wmp-card.active .ngxsp-wmp-cardCopy strong{color:var(--wmp-accent)}.ngxsp-wmp-cardCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-cardCopy em{color:var(--wmp-text-3);font-size:11px;font-style:normal}.ngxsp-wmp-cardActions{position:absolute;top:18px;right:18px;display:flex;gap:4px;opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-card:hover .ngxsp-wmp-cardActions,.ngxsp-wmp-card:focus-within .ngxsp-wmp-cardActions{opacity:1}.ngxsp-wmp-cardAction{width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:999px;background:#0d0e11cc;color:#fff;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.ngxsp-wmp-cardAction ngxsp-smart-icon{width:14px;height:14px}.ngxsp-wmp-cardAction:hover{background:#0d0e11f2}.ngxsp-wmp-table{min-width:0;display:grid}.ngxsp-wmp-tableHead,.ngxsp-wmp-trackSelect{display:grid;grid-template-columns:36px minmax(0,2.4fr) minmax(0,1.3fr) minmax(0,1.3fr) 48px;align-items:center;gap:14px}.ngxsp-wmp-tableHead{position:sticky;top:0;z-index:1;height:34px;margin-bottom:4px;padding:0 calc(var(--wmp-actions-w, 112px) + 8px) 0 10px;border-bottom:1px solid var(--wmp-line);background:var(--wmp-bg);color:var(--wmp-text-2);font-size:11px;font-weight:600}.ngxsp-wmp-tableHead>span:first-child{text-align:center}.ngxsp-wmp-timeHead{display:flex;justify-content:flex-end}.ngxsp-wmp-timeHead ngxsp-smart-icon{width:15px;height:15px}.ngxsp-wmp-trackRow{position:relative;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) var(--wmp-actions-w, 112px);align-items:center;gap:8px;border-radius:var(--wmp-r-sm);transition:background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-trackRow:hover,.ngxsp-wmp-trackRow:focus-within{background:var(--wmp-s1)}.ngxsp-wmp-trackRow.active{background:var(--wmp-accent-soft)}.ngxsp-wmp-trackSelect{min-width:0;height:52px;padding:0 0 0 10px;border:0;border-radius:inherit;background:transparent;color:var(--wmp-text-2);text-align:left}.ngxsp-wmp-trackIndex{position:relative;display:grid;place-items:center;color:var(--wmp-text-2);font-variant-numeric:tabular-nums}.ngxsp-wmp-trackIndex>ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-trackRow.active .ngxsp-wmp-trackIndex{color:var(--wmp-accent)}.ngxsp-wmp-indexPlay{position:absolute;opacity:0;color:var(--wmp-text)}.ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexNumber{opacity:0}.ngxsp-wmp-trackRow:hover .ngxsp-wmp-indexPlay{opacity:1}.ngxsp-wmp-trackTitle{min-width:0;display:flex;align-items:center;gap:12px}.ngxsp-wmp-rowIcon{width:36px;height:36px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border-radius:4px;background:var(--wmp-s2);color:var(--wmp-text-3)}.ngxsp-wmp-rowIcon ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-rowCopy{min-width:0;display:grid;gap:1px}.ngxsp-wmp-rowCopy strong,.ngxsp-wmp-rowCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-rowCopy strong{color:var(--wmp-text);font-size:13px;font-weight:500}.ngxsp-wmp-rowCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-trackRow.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}.ngxsp-wmp-trackCell{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-trackTime{text-align:right;font-variant-numeric:tabular-nums}.ngxsp-wmp-rowActions{display:flex;align-items:center;justify-content:flex-end;gap:2px;padding-right:8px}.ngxsp-wmp-rowFavorite,.ngxsp-wmp-rowQueueAction{flex:0 0 32px;width:32px;height:32px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease),background-color var(--wmp-dur) var(--wmp-ease),color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-rowFavorite ngxsp-smart-icon,.ngxsp-wmp-rowQueueAction ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-rowFavorite:hover,.ngxsp-wmp-rowQueueAction:hover{background:var(--wmp-s3);color:var(--wmp-text)}.ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowFavorite,.ngxsp-wmp-trackRow:hover .ngxsp-wmp-rowQueueAction,.ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowFavorite,.ngxsp-wmp-trackRow:focus-within .ngxsp-wmp-rowQueueAction,.ngxsp-wmp-rowFavorite.active{opacity:1}.ngxsp-wmp-rowFavorite.active{color:var(--wmp-accent)}.ngxsp-wmp-rowFavorite.active ngxsp-smart-icon ::ng-deep path{fill:currentColor}.ngxsp-wmp-rowProgress{position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:999px;background:var(--wmp-line);overflow:hidden;pointer-events:none}.ngxsp-wmp-thumb .ngxsp-wmp-rowProgress{left:0;right:0;bottom:0;border-radius:0}.ngxsp-wmp-rowProgress i{position:absolute;inset:0 auto 0 0;background:var(--wmp-accent)}.ngxsp-wmp-emptyLibrary{display:grid;justify-items:center;gap:8px;padding:32px 16px;border:1px dashed var(--wmp-line-strong);border-radius:var(--wmp-r-md);color:var(--wmp-text-2);text-align:center}.ngxsp-wmp-emptyLibrary ngxsp-smart-icon{width:28px;height:28px;color:var(--wmp-text-3)}.ngxsp-wmp-playlist{grid-area:panel;min-width:0;min-height:0;display:flex;flex-direction:column;border-left:1px solid var(--wmp-line);background:var(--wmp-s0);overflow:hidden}.ngxsp-wmp-sheetToggles{display:flex;justify-content:center;gap:4px;padding:4px 12px 0}.ngxsp-wmp-panelStack{flex:1;display:flex;flex-direction:column;gap:10px;padding:12px;overflow:hidden;min-height:0}.ngxsp-wmp-stackItem{flex:1 1 0;border:1px solid var(--wmp-border,#d9d9d9);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-height:0}.ngxsp-wmp-stackItem.collapsed{flex:0 0 auto}.ngxsp-wmp-stackHead{display:flex;align-items:center;gap:8px;padding:7px 8px 7px 11px;background:var(--wmp-surface-2,rgba(127,127,127,.08))}.ngxsp-wmp-stackHead strong{font-size:12.5px;font-weight:600}.ngxsp-wmp-stackIcon{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:inherit;cursor:pointer;opacity:.65}.ngxsp-wmp-stackIcon:hover,.ngxsp-wmp-stackIcon:focus-visible{opacity:1}.ngxsp-wmp-stackIcon+.ngxsp-wmp-stackIcon{margin-left:-2px}.ngxsp-wmp-stackHead .ngxsp-wmp-stackIcon:first-of-type{margin-left:auto}.ngxsp-wmp-stackItem svg{width:14px;height:14px}.ngxsp-wmp-queueList{flex:1;min-height:0;display:grid;align-content:start;gap:1px;padding:0 8px 12px;overflow:auto}.ngxsp-wmp-queueItem{width:100%;min-width:0;min-height:56px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:8px;border:0;border-radius:var(--wmp-r-sm);background:transparent;text-align:left;transition:background-color var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-queueItem:hover{background:var(--wmp-s2)}.ngxsp-wmp-queueItem.active{background:var(--wmp-accent-soft)}.ngxsp-wmp-queueItem.active .ngxsp-wmp-rowCopy strong{color:var(--wmp-accent)}.ngxsp-wmp-queueCover{position:relative;width:40px;height:40px;display:grid;place-items:center;overflow:hidden;border-radius:4px;background:var(--wmp-s2);color:var(--wmp-text-3)}.ngxsp-wmp-queueCover>ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-queueNow{position:absolute;inset:0;display:grid;place-items:center;background:#0d0e1199;color:#fff}.ngxsp-wmp-rowBadges{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}.ngxsp-wmp-rowBadges em{display:inline-flex;align-items:center;gap:3px;height:18px;padding:0 6px;border-radius:4px;background:var(--wmp-s3);color:var(--wmp-text-2);font-size:10px;font-style:normal;font-weight:500}.ngxsp-wmp-rowBadges em ngxsp-smart-icon{width:10px;height:10px}.ngxsp-wmp-rowBadges em.favorite{color:var(--wmp-accent)}.ngxsp-wmp-rowMeta{color:var(--wmp-text-2);font-size:12px;font-variant-numeric:tabular-nums}.ngxsp-wmp-management,.ngxsp-wmp-devices{flex:1;min-height:0;display:grid;align-content:start;gap:10px;padding:10px 12px 16px;overflow:auto}.ngxsp-wmp-devices .ngxsp-wmp-sectionHeader.slim{padding:4px 4px 6px}.ngxsp-wmp-inlineForm{display:flex;gap:6px}.ngxsp-wmp-inlineForm input{flex:1;min-width:0;height:32px;padding:0 10px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:var(--wmp-s1);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-inlineForm input::placeholder{color:var(--wmp-text-3)}.ngxsp-wmp-shell .ngxsp-wmp-inlineForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}.ngxsp-wmp-stationForm{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px;padding:10px 12px;border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);background:var(--wmp-s1)}.ngxsp-wmp-stationTitle{font-size:12px;font-weight:600;color:var(--wmp-text-2)}.ngxsp-wmp-discovered{flex:1 1 100%;display:grid;gap:4px;margin:0;padding:0;list-style:none}.ngxsp-wmp-discovered li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;padding:2px 0 2px 8px;border-top:1px solid var(--wmp-line)}.ngxsp-wmp-discovered li span{display:grid;min-width:0}.ngxsp-wmp-discovered strong{overflow:hidden;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-discovered small,.ngxsp-wmp-discovered li.empty{overflow:hidden;color:var(--wmp-text-2);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-serverKind{height:32px;padding:0 8px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:var(--wmp-s0);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-stationForm input{flex:1 1 180px;min-width:0;height:32px;padding:0 10px;border:1px solid var(--wmp-line-strong);border-radius:var(--wmp-r-sm);background:var(--wmp-s0);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-stationForm input::placeholder{color:var(--wmp-text-3)}.ngxsp-wmp-shell .ngxsp-wmp-stationForm input:focus-visible{outline:0;border-color:var(--wmp-accent);box-shadow:0 0 0 2px var(--wmp-accent-soft)}.ngxsp-wmp-stationHint{flex:1 0 100%;color:var(--wmp-text-3);font-size:11px}.ngxsp-wmp-targetBanner{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid var(--wmp-accent-soft);border-radius:var(--wmp-r-sm);background:var(--wmp-accent-soft);color:var(--wmp-text);font-size:12px}.ngxsp-wmp-targetBanner strong{margin-left:4px}.ngxsp-wmp-rowQueueAction.danger:hover,.ngxsp-wmp-cardAction.danger:hover{color:var(--wmp-danger, #e5484d)}.ngxsp-wmp-rowQueueAction.active{color:var(--wmp-accent)}.ngxsp-wmp-targets{display:grid;gap:6px}.ngxsp-wmp-target,.ngxsp-wmp-device{display:grid;gap:8px;padding:10px;border:1px solid var(--wmp-line);border-radius:var(--wmp-r-md);background:var(--wmp-s1)}.ngxsp-wmp-sheetButton,.ngxsp-wmp-sheetHeader{display:none}.ngxsp-wmp-lyrics{flex:1;display:grid;gap:8px;min-height:0;grid-template-rows:auto auto minmax(0,1fr)}.ngxsp-wmp-lyricsStatus{margin:0;color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-lyricsLines{display:grid;gap:2px;overflow-y:auto;padding-right:4px;scroll-behavior:smooth}.ngxsp-wmp-lyricsLine{margin:0;padding:6px 8px;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);font-size:13px;line-height:1.45;text-align:left;white-space:pre-wrap}button.ngxsp-wmp-lyricsLine{cursor:pointer}button.ngxsp-wmp-lyricsLine:hover{background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-lyricsLine.active{background:var(--wmp-s2);color:var(--wmp-text);font-weight:600}@media(prefers-reduced-motion:reduce){.ngxsp-wmp-lyricsLines{scroll-behavior:auto}}.ngxsp-wmp-targetMain{min-width:0;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px}.ngxsp-wmp-targetIcon{width:32px;height:32px;display:grid;place-items:center;border-radius:var(--wmp-r-sm);background:var(--wmp-s3);color:var(--wmp-text-2)}.ngxsp-wmp-targetIcon ngxsp-smart-icon{width:16px;height:16px}.ngxsp-wmp-targetActions{display:flex;gap:4px;padding-left:38px}.ngxsp-wmp-targetActions button{height:32px;padding:0 8px;border:0;border-radius:4px;background:transparent;color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-targetActions button:hover{background:var(--wmp-s3);color:var(--wmp-text)}.ngxsp-wmp-targetActions button.danger:hover{color:var(--wmp-danger-text);background:#f25f5c29}.ngxsp-wmp-device{grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:10px}.ngxsp-wmp-device.active{border-color:#8b90ff66;background:var(--wmp-accent-soft)}.ngxsp-wmp-device.active .ngxsp-wmp-targetIcon{color:var(--wmp-accent)}.ngxsp-wmp-deviceActions{grid-column:2;display:flex;gap:6px}.ngxsp-wmp-transport{grid-area:transport;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,620px) minmax(min-content,1fr);align-items:center;gap:24px;padding:0 16px;border-top:1px solid var(--wmp-line);background:var(--wmp-s0)}.ngxsp-wmp-miniNow{min-width:0;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px}.ngxsp-wmp-miniArt{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:6px;background:var(--wmp-s2);color:var(--wmp-text-3)}.ngxsp-wmp-miniCopy{min-width:0;display:grid;gap:2px}.ngxsp-wmp-miniCopy strong,.ngxsp-wmp-miniCopy small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-miniCopy strong{font-size:13px;font-weight:600}.ngxsp-wmp-miniCopy small{color:var(--wmp-text-2);font-size:12px}.ngxsp-wmp-transportCenter{min-width:0;display:grid;justify-items:center;gap:0}.ngxsp-wmp-transportButtons{display:flex;align-items:center;gap:12px}.ngxsp-wmp-seekRow{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:10px;color:var(--wmp-text-2);font-size:11px;font-variant-numeric:tabular-nums}.ngxsp-wmp-seekRow small:first-child{text-align:right}.ngxsp-wmp-seek{min-height:32px;--ngxsp-track-size:4px;--ngxsp-track-bg:var(--wmp-s3);--ngxsp-buffered-bg:transparent;--ngxsp-accent:var(--wmp-text);--ngxsp-thumb-size:12px;--ngxsp-thumb-bg:var(--wmp-text);--ngxsp-preview-bg:var(--wmp-s2);--ngxsp-preview-border:var(--wmp-line-strong)}.ngxsp-wmp-seek:hover{--ngxsp-accent:var(--wmp-accent)}.ngxsp-wmp-seek ::ng-deep .ngxsp-ts-thumb{opacity:0;transition:opacity var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-seek:hover ::ng-deep .ngxsp-ts-thumb,.ngxsp-wmp-seek:focus-visible ::ng-deep .ngxsp-ts-thumb{opacity:1}.ngxsp-wmp-transportModes{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:6px}.ngxsp-wmp-volumeControl{--ngxsp-control-size:32px;--ngxsp-volume-range-min:72px;--ngxsp-volume-range-max:112px;--ngxsp-volume-gap:4px;--ngxsp-volume-button-border:1px solid transparent;--ngxsp-volume-button-radius:6px;--ngxsp-volume-accent:var(--wmp-text);--ngxsp-volume-track-bg:var(--wmp-s3);--ngxsp-volume-thumb-bg:var(--wmp-text);--ngxsp-volume-thumb-size:12px;--ngxsp-volume-thumb-shadow:none;--ngxsp-focus-ring:0 0 0 2px var(--wmp-accent);color:var(--wmp-text-2)}.ngxsp-wmp-volumeControl:hover{--ngxsp-volume-accent:var(--wmp-accent);color:var(--wmp-text)}.ngxsp-wmp-dropOverlay{position:absolute;inset:12px;z-index:40;display:grid;place-content:center;justify-items:center;gap:10px;border:2px dashed var(--wmp-accent);border-radius:14px;background:var(--nsp-scrim, rgb(13 14 17 / .88));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--wmp-text);text-align:center;pointer-events:none}.ngxsp-wmp-dropIcon{width:56px;height:56px;display:grid;place-items:center;border-radius:14px;background:var(--wmp-accent-soft);color:var(--wmp-accent)}.ngxsp-wmp-dropIcon ngxsp-smart-icon{width:28px;height:28px}.ngxsp-wmp-dropOverlay strong{font-size:16px;font-weight:600}.ngxsp-wmp-dropOverlay span:last-child{color:var(--wmp-text-2)}@media(hover:none),(pointer:coarse){.ngxsp-wmp-rowFavorite,.ngxsp-wmp-rowQueueAction,.ngxsp-wmp-cardActions{opacity:1}.ngxsp-wmp-cardPlaySlot{opacity:1;transform:none}}@media(max-width:1180px){.ngxsp-wmp-shell{--wmp-rail-w:208px;--wmp-panel-w:284px}.ngxsp-wmp-sourceButton span{display:none}.ngxsp-wmp-sourceButton{width:32px;padding:0;justify-content:center}.ngxsp-wmp-tableHead,.ngxsp-wmp-trackSelect{grid-template-columns:32px minmax(0,2fr) minmax(0,1fr) 48px}.ngxsp-wmp-tableHead>span:nth-child(4),.ngxsp-wmp-albumCell{display:none}.ngxsp-wmp-nowPanel{grid-template-columns:148px minmax(0,1fr);gap:22px;padding:24px}.ngxsp-wmp-art{width:148px;height:148px}.ngxsp-wmp-nowCopy h1{font-size:26px}.ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(240px,1.4fr) minmax(min-content,1fr);gap:16px}.ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}.ngxsp-wmp-miniArt{width:44px;height:44px}.ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:84px}}@media(max-width:960px)and (min-width:721px){.ngxsp-wmp-shell{--wmp-rail-w:188px;--wmp-panel-w:260px}.ngxsp-wmp-titleActions .ngxsp-wmp-status{display:none}.ngxsp-wmp-miniNow>.ngxsp-wmp-iconButton{display:none}}@media(max-height:760px)and (min-width:721px){.ngxsp-wmp-nowPanel{padding-top:20px;padding-bottom:20px}}@media(max-width:720px){.ngxsp-wmp-shell,.ngxsp-wmp-shell.ngxsp-wmp-panelHidden{height:auto;min-height:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;grid-template-areas:\"title\" \"rail\" \"main\" \"panel\";--wmp-transport-h:100px;padding-bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom,0px));overflow:visible}.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:flex}.ngxsp-wmp-titlebar{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px auto;row-gap:0;padding:0 12px 10px}.ngxsp-wmp-search{grid-column:1 / -1;grid-row:2;justify-self:stretch;width:100%}.ngxsp-wmp-titleActions .ngxsp-wmp-status{display:none}.ngxsp-wmp-titleActions>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-rail{border-right:0;border-bottom:1px solid var(--wmp-line)}.ngxsp-wmp-nav{flex-direction:row;gap:4px;padding:8px 12px;overflow-x:auto}.ngxsp-wmp-navItem{width:auto;flex:0 0 auto;grid-template-columns:16px auto auto;height:32px;gap:6px}.ngxsp-wmp-navDivider{width:1px;height:20px;margin:6px 4px}.ngxsp-wmp-railTools{display:none}.ngxsp-wmp-lyricsLines{min-height:50vh}.ngxsp-wmp-main{overflow:visible}.ngxsp-wmp-nowPanel{grid-template-columns:96px minmax(0,1fr);align-items:center;gap:16px;padding:16px}.ngxsp-wmp-art{width:96px;height:96px;align-self:start}.ngxsp-wmp-playerSurface{min-height:120px;gap:10px}.ngxsp-wmp-nowCopy h1{font-size:20px}.ngxsp-wmp-nowOscillogram{grid-template-columns:minmax(0,1fr)}.ngxsp-wmp-nowTime{display:none}.ngxsp-wmp-nowActions{gap:8px}.ngxsp-wmp-nowActions .ngxsp-wmp-iconButton.outlined{width:36px;height:36px}.ngxsp-wmp-primaryButton{height:36px}.ngxsp-wmp-sectionHeader{padding:16px 16px 4px}.ngxsp-wmp-sectionScroll{padding:4px 8px 16px;gap:18px}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(132px,42%);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}.ngxsp-wmp-card{scroll-snap-align:start}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-cardGrid .ngxsp-wmp-card:nth-child(n+5){display:none}.ngxsp-wmp-browseMode .ngxsp-wmp-cardGrid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-sectionScroll>.ngxsp-wmp-section:nth-child(n+2){display:none}.ngxsp-wmp-cardActions{top:14px;right:14px}.ngxsp-wmp-shell:not(.ngxsp-wmp-browseMode) .ngxsp-wmp-table .ngxsp-wmp-trackRow:nth-of-type(n+6){display:none}.ngxsp-wmp-tableHead{display:none}.ngxsp-wmp-trackRow{grid-template-columns:minmax(0,1fr) auto}.ngxsp-wmp-trackSelect{grid-template-columns:28px minmax(0,1fr) 44px;gap:10px}.ngxsp-wmp-trackSelect>.ngxsp-wmp-trackCell{display:none}.ngxsp-wmp-rowQueueAction{display:none}.ngxsp-wmp-rowActions{padding-right:4px}.ngxsp-wmp-playlist,.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist{display:none}.ngxsp-wmp-playlist.sheet,.ngxsp-wmp-shell.ngxsp-wmp-panelHidden .ngxsp-wmp-playlist.sheet{display:flex;position:fixed;left:0;right:0;top:0;bottom:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom,0px));z-index:40;border:0;border-bottom:1px solid var(--wmp-line);overflow-y:auto;background:var(--wmp-s0);padding-top:env(safe-area-inset-top,0px)}.ngxsp-wmp-playlist.sheet .ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-child(n+5){display:grid}.ngxsp-wmp-sheetHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--wmp-line)}.ngxsp-wmp-sheetHeader strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.ngxsp-wmp-queueList{overflow:visible}.ngxsp-wmp-queueList .ngxsp-wmp-queueItem:nth-child(n+5){display:none}.ngxsp-wmp-transport{position:fixed;left:0;right:0;bottom:0;z-index:30;height:calc(var(--wmp-transport-h) + env(safe-area-inset-bottom,0px));grid-template-columns:minmax(0,1fr) auto;grid-template-rows:minmax(0,1fr) auto;gap:0 8px;padding:10px 12px calc(6px + env(safe-area-inset-bottom,0px));box-shadow:0 -12px 32px #00000059}.ngxsp-wmp-miniNow{grid-template-columns:44px minmax(0,1fr) auto}.ngxsp-wmp-miniNow>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-miniNow>.ngxsp-wmp-sheetButton{display:grid}.ngxsp-wmp-miniArt{width:44px;height:44px}.ngxsp-wmp-transportCenter{display:contents}.ngxsp-wmp-transportButtons{grid-column:2;grid-row:1;gap:4px}.ngxsp-wmp-transportButtons>.ngxsp-wmp-iconButton:first-child,.ngxsp-wmp-transportButtons>.ngxsp-wmp-iconButton:last-child{display:none}.ngxsp-wmp-seekRow{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr)}.ngxsp-wmp-seekRow small{display:none}.ngxsp-wmp-transportModes{grid-column:2;grid-row:2;gap:0}.ngxsp-wmp-volumeControl{--ngxsp-volume-range-min:56px;--ngxsp-volume-range-max:72px}}@media(max-width:480px){.ngxsp-wmp-transportModes>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-transportModes>.ngxsp-wmp-devicesButton,.ngxsp-wmp-transportModes>.ngxsp-wmp-windowButton{display:grid}}.ngxsp-wmp-shell.ngxsp-wmp-compact{height:100vh;min-height:0;display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);padding:env(titlebar-area-height,0px) 0 0}.ngxsp-wmp-shell.ngxsp-wmp-compact>:not(.ngxsp-wmp-transport){display:none!important}.ngxsp-wmp-shell.ngxsp-wmp-compact .ngxsp-wmp-transport{grid-area:1 / 1;position:static;height:auto;min-height:0;border-top:0;box-shadow:none;-webkit-user-select:none;user-select:none;-webkit-app-region:drag}.ngxsp-wmp-compact .ngxsp-wmp-transport :is(button,ngxsp-time-slider,ngxsp-volume-control){-webkit-app-region:no-drag}.ngxsp-wmp-compact .ngxsp-wmp-sheetButton,.ngxsp-wmp-compact .ngxsp-wmp-transportModes>.ngxsp-wmp-iconButton{display:none}.ngxsp-wmp-compact .ngxsp-wmp-transportModes>.ngxsp-wmp-devicesButton{display:grid}.ngxsp-wmp-compactMini .ngxsp-wmp-transport{align-content:center;padding:10px 12px 8px}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transport{grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch;row-gap:4px}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-compactLyrics{grid-column:1 / -1;grid-row:1;align-self:stretch}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-miniNow,.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportButtons{grid-row:2}.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-seekRow,.ngxsp-wmp-compactMiniLyrics .ngxsp-wmp-transportModes{grid-row:3}.ngxsp-wmp-compactLyrics{position:relative;min-height:0;display:grid;align-content:start;gap:2px;overflow-y:auto;padding:6px 4px 10px;border-bottom:1px solid var(--wmp-line);-webkit-app-region:no-drag;-webkit-mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent);mask-image:linear-gradient(transparent,#000 18%,#000 82%,transparent)}.ngxsp-wmp-compactLyrics::-webkit-scrollbar{display:none}.ngxsp-wmp-compactLyricsLine{margin:0;padding:3px 6px;border:0;border-radius:var(--wmp-r-sm);background:none;color:var(--wmp-text-3);font:inherit;font-size:13px;line-height:1.35;text-align:left;cursor:pointer;transition:color var(--wmp-dur) var(--wmp-ease),font-size var(--wmp-dur) var(--wmp-ease)}.ngxsp-wmp-compactLyricsLine.plain{cursor:default;color:var(--wmp-text-2)}.ngxsp-wmp-compactLyricsLine.active{color:var(--wmp-text);font-size:15px;font-weight:650}.ngxsp-wmp-compactLyricsLine:not(.plain):hover{color:var(--wmp-text-2)}.ngxsp-wmp-shell.ngxsp-wmp-compactBarLyrics .ngxsp-wmp-transport{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(280px,560px) minmax(0,1fr)}.ngxsp-wmp-barLyrics{min-width:0;display:grid;gap:2px;text-align:center}.ngxsp-wmp-barLyrics strong,.ngxsp-wmp-barLyrics span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngxsp-wmp-barLyrics strong{color:var(--wmp-text);font-size:15px;font-weight:650}.ngxsp-wmp-barLyrics span{color:var(--wmp-text-3);font-size:12px}.ngxsp-wmp-compactActions{display:inline-flex;align-items:center;gap:2px}.ngxsp-wmp-compactActions button{width:28px;height:28px;display:grid;place-items:center;padding:0;border:0;border-radius:var(--wmp-r-sm);background:transparent;color:var(--wmp-text-2);cursor:pointer}.ngxsp-wmp-compactActions button:hover{background:var(--wmp-s2);color:var(--wmp-text)}.ngxsp-wmp-compactActions button:focus-visible{outline:2px solid var(--wmp-accent);outline-offset:1px}.ngxsp-wmp-compactActions ngxsp-smart-icon{width:16px;height:16px}@media(prefers-reduced-motion:reduce){.ngxsp-wmp-shell *,.ngxsp-wmp-shell *:before,.ngxsp-wmp-shell *:after{animation:none!important;transition:none!important}}\n"]
|
|
2680
|
+
}]
|
|
2681
|
+
}],
|
|
2682
|
+
propDecorators: {
|
|
2683
|
+
config: [{ type: Input }],
|
|
2684
|
+
plugins: [{ type: Input }],
|
|
2685
|
+
ports: [{ type: Input }],
|
|
2686
|
+
engines: [{ type: Input }],
|
|
2687
|
+
debug: [{ type: Input }],
|
|
2688
|
+
startTimeSec: [{ type: Input }],
|
|
2689
|
+
autoplayOnInit: [{ type: Input }],
|
|
2690
|
+
playRequest: [{ type: Input }],
|
|
2691
|
+
canPrev: [{ type: Input }],
|
|
2692
|
+
canNext: [{ type: Input }],
|
|
2693
|
+
shuffleActive: [{ type: Input }],
|
|
2694
|
+
shuffleLabel: [{ type: Input }],
|
|
2695
|
+
repeatMode: [{ type: Input }],
|
|
2696
|
+
repeatLabel: [{ type: Input }],
|
|
2697
|
+
hasPlaylistControls: [{ type: Input }],
|
|
2698
|
+
castEnabled: [{ type: Input }],
|
|
2699
|
+
libraryViewsLabel: [{ type: Input }],
|
|
2700
|
+
transportLabel: [{ type: Input }],
|
|
2701
|
+
seekLabel: [{ type: Input }],
|
|
2702
|
+
libraryTitle: [{ type: Input }],
|
|
2703
|
+
libraryContentTitle: [{ type: Input }],
|
|
2704
|
+
backLabel: [{ type: Input }],
|
|
2705
|
+
libraryMeta: [{ type: Input }],
|
|
2706
|
+
libraryEyebrow: [{ type: Input }],
|
|
2707
|
+
searchPlaceholder: [{ type: Input }],
|
|
2708
|
+
searchLabel: [{ type: Input }],
|
|
2709
|
+
searchTerm: [{ type: Input }],
|
|
2710
|
+
libraryViews: [{ type: Input }],
|
|
2711
|
+
activeLibraryView: [{ type: Input }],
|
|
2712
|
+
librarySections: [{ type: Input }],
|
|
2713
|
+
queueTitle: [{ type: Input }],
|
|
2714
|
+
queueEyebrow: [{ type: Input }],
|
|
2715
|
+
tracksLabel: [{ type: Input }],
|
|
2716
|
+
titleColumnLabel: [{ type: Input }],
|
|
2717
|
+
artistColumnLabel: [{ type: Input }],
|
|
2718
|
+
albumColumnLabel: [{ type: Input }],
|
|
2719
|
+
timeColumnLabel: [{ type: Input }],
|
|
2720
|
+
nowPlayingLabel: [{ type: Input }],
|
|
2721
|
+
nowListeningLabel: [{ type: Input }],
|
|
2722
|
+
noTrackTitle: [{ type: Input }],
|
|
2723
|
+
miniPlayerLabel: [{ type: Input }],
|
|
2724
|
+
readyLabel: [{ type: Input }],
|
|
2725
|
+
selectTrackTitle: [{ type: Input }],
|
|
2726
|
+
selectTrackBody: [{ type: Input }],
|
|
2727
|
+
emptyLibraryLabel: [{ type: Input }],
|
|
2728
|
+
playlistsLabel: [{ type: Input }],
|
|
2729
|
+
hidePlaylistsLabel: [{ type: Input }],
|
|
2730
|
+
devicesLabel: [{ type: Input }],
|
|
2731
|
+
compactMode: [{ type: Input }],
|
|
2732
|
+
compactModes: [{ type: Input }],
|
|
2733
|
+
compactMiniLabel: [{ type: Input }],
|
|
2734
|
+
compactBarLabel: [{ type: Input }],
|
|
2735
|
+
compactRestoreLabel: [{ type: Input }],
|
|
2736
|
+
compactModeChange: [{ type: Output }],
|
|
2737
|
+
compactLyrics: [{ type: Input }],
|
|
2738
|
+
compactLyricsLabel: [{ type: Input }],
|
|
2739
|
+
compactLyricsToggle: [{ type: Output }],
|
|
2740
|
+
brandLogoSrc: [{ type: Input }],
|
|
2741
|
+
hideDevicesLabel: [{ type: Input }],
|
|
2742
|
+
previousLabel: [{ type: Input }],
|
|
2743
|
+
nextLabel: [{ type: Input }],
|
|
2744
|
+
playLabel: [{ type: Input }],
|
|
2745
|
+
pauseLabel: [{ type: Input }],
|
|
2746
|
+
stopLabel: [{ type: Input }],
|
|
2747
|
+
addLabel: [{ type: Input }],
|
|
2748
|
+
queueNextLabel: [{ type: Input }],
|
|
2749
|
+
queueAddLabel: [{ type: Input }],
|
|
2750
|
+
createLabel: [{ type: Input }],
|
|
2751
|
+
renameLabel: [{ type: Input }],
|
|
2752
|
+
deleteLabel: [{ type: Input }],
|
|
2753
|
+
saveLabel: [{ type: Input }],
|
|
2754
|
+
cancelLabel: [{ type: Input }],
|
|
2755
|
+
refreshLabel: [{ type: Input }],
|
|
2756
|
+
tracksCountLabel: [{ type: Input }],
|
|
2757
|
+
newPlaylistPlaceholder: [{ type: Input }],
|
|
2758
|
+
renamePlaylistPlaceholder: [{ type: Input }],
|
|
2759
|
+
remotePlaybackLabel: [{ type: Input }],
|
|
2760
|
+
emptyQueueLabel: [{ type: Input }],
|
|
2761
|
+
emptyPlaylistTargetsLabel: [{ type: Input }],
|
|
2762
|
+
selectTrackForPlaylistLabel: [{ type: Input }],
|
|
2763
|
+
addToPlaylistLabel: [{ type: Input }],
|
|
2764
|
+
playlistTargetLabel: [{ type: Input }],
|
|
2765
|
+
removeItemLabel: [{ type: Input }],
|
|
2766
|
+
emptyDevicesLabel: [{ type: Input }],
|
|
2767
|
+
currentDuration: [{ type: Input }],
|
|
2768
|
+
currentTrackId: [{ type: Input }],
|
|
2769
|
+
currentTitle: [{ type: Input }],
|
|
2770
|
+
currentSubtitle: [{ type: Input }],
|
|
2771
|
+
currentMeta: [{ type: Input }],
|
|
2772
|
+
currentArtworkUrl: [{ type: Input }],
|
|
2773
|
+
favoriteActive: [{ type: Input }],
|
|
2774
|
+
favoriteLabel: [{ type: Input }],
|
|
2775
|
+
lockAvailable: [{ type: Input }],
|
|
2776
|
+
ringtoneAvailable: [{ type: Input }],
|
|
2777
|
+
ringtoneLabel: [{ type: Input }],
|
|
2778
|
+
lockLabel: [{ type: Input }],
|
|
2779
|
+
unlockLabel: [{ type: Input }],
|
|
2780
|
+
favoriteActiveLabel: [{ type: Input }],
|
|
2781
|
+
favoritesLabel: [{ type: Input }],
|
|
2782
|
+
queueItems: [{ type: Input }],
|
|
2783
|
+
currentTrackAvailable: [{ type: Input }],
|
|
2784
|
+
playlistOptions: [{ type: Input }],
|
|
2785
|
+
playlistTargetTrack: [{ type: Input }],
|
|
2786
|
+
removableItemIds: [{ type: Input }],
|
|
2787
|
+
stationForm: [{ type: Input }],
|
|
2788
|
+
settingsSections: [{ type: Input }],
|
|
2789
|
+
serverForm: [{ type: Input }],
|
|
2790
|
+
devicesOpen: [{ type: Input }],
|
|
2791
|
+
lyricsPanel: [{ type: Input }],
|
|
2792
|
+
showDeviceButton: [{ type: Input }],
|
|
2793
|
+
deviceItems: [{ type: Input }],
|
|
2794
|
+
closeLabel: [{ type: Input }],
|
|
2795
|
+
sourceChangeLabel: [{ type: Input }],
|
|
2796
|
+
sourceChangeTitle: [{ type: Input }],
|
|
2797
|
+
sourceDropTitle: [{ type: Input }],
|
|
2798
|
+
sourceDropHint: [{ type: Input }],
|
|
2799
|
+
sourceChangeAccept: [{ type: Input }],
|
|
2800
|
+
folderImportLabel: [{ type: Input }],
|
|
2801
|
+
libraryStatus: [{ type: Input }],
|
|
2802
|
+
libraryBusy: [{ type: Input }],
|
|
2803
|
+
languageLabel: [{ type: Input }],
|
|
2804
|
+
activeLanguage: [{ type: Input }],
|
|
2805
|
+
languageOptions: [{ type: Input }],
|
|
2806
|
+
statusMessage: [{ type: Input }],
|
|
2807
|
+
statusKind: [{ type: Input }],
|
|
2808
|
+
showResumeProgress: [{ type: Input }],
|
|
2809
|
+
outputVolume: [{ type: Input }],
|
|
2810
|
+
outputVolumeLabel: [{ type: Input }],
|
|
2811
|
+
outputMuteLabel: [{ type: Input }],
|
|
2812
|
+
outputUnmuteLabel: [{ type: Input }],
|
|
2813
|
+
ended: [{ type: Output }],
|
|
2814
|
+
videoSize: [{ type: Output }],
|
|
2815
|
+
progress: [{ type: Output }],
|
|
2816
|
+
prev: [{ type: Output }],
|
|
2817
|
+
next: [{ type: Output }],
|
|
2818
|
+
toggleShuffle: [{ type: Output }],
|
|
2819
|
+
cycleRepeat: [{ type: Output }],
|
|
2820
|
+
cast: [{ type: Output }],
|
|
2821
|
+
subtitles: [{ type: Output }],
|
|
2822
|
+
selectLibraryView: [{ type: Output }],
|
|
2823
|
+
back: [{ type: Output }],
|
|
2824
|
+
settingChange: [{ type: Output }],
|
|
2825
|
+
settingAction: [{ type: Output }],
|
|
2826
|
+
selectLibraryItem: [{ type: Output }],
|
|
2827
|
+
playLibraryItem: [{ type: Output }],
|
|
2828
|
+
addLibraryItemNext: [{ type: Output }],
|
|
2829
|
+
addLibraryItemToQueue: [{ type: Output }],
|
|
2830
|
+
selectQueueItem: [{ type: Output }],
|
|
2831
|
+
createPlaylist: [{ type: Output }],
|
|
2832
|
+
addCurrentToPlaylist: [{ type: Output }],
|
|
2833
|
+
addTrackToPlaylist: [{ type: Output }],
|
|
2834
|
+
requestPlaylistTarget: [{ type: Output }],
|
|
2835
|
+
cancelPlaylistTarget: [{ type: Output }],
|
|
2836
|
+
removeLibraryItem: [{ type: Output }],
|
|
2837
|
+
addStation: [{ type: Output }],
|
|
2838
|
+
connectServer: [{ type: Output }],
|
|
2839
|
+
discoverServers: [{ type: Output }],
|
|
2840
|
+
connectDiscoveredServer: [{ type: Output }],
|
|
2841
|
+
renamePlaylist: [{ type: Output }],
|
|
2842
|
+
deletePlaylist: [{ type: Output }],
|
|
2843
|
+
toggleDevices: [{ type: Output }],
|
|
2844
|
+
refreshDevices: [{ type: Output }],
|
|
2845
|
+
openLyrics: [{ type: Output }],
|
|
2846
|
+
refreshLyrics: [{ type: Output }],
|
|
2847
|
+
seekLyrics: [{ type: Output }],
|
|
2848
|
+
playOnDevice: [{ type: Output }],
|
|
2849
|
+
stopOnDevice: [{ type: Output }],
|
|
2850
|
+
primaryPlay: [{ type: Output }],
|
|
2851
|
+
primaryPlaybackToggle: [{ type: Output }],
|
|
2852
|
+
playerStateChange: [{ type: Output }],
|
|
2853
|
+
toggleFavorite: [{ type: Output }],
|
|
2854
|
+
toggleLock: [{ type: Output }],
|
|
2855
|
+
makeRingtone: [{ type: Output }],
|
|
2856
|
+
revealFileLabel: [{ type: Input }],
|
|
2857
|
+
revealFile: [{ type: Output }],
|
|
2858
|
+
sourceFileChange: [{ type: Output }],
|
|
2859
|
+
addFolder: [{ type: Output }],
|
|
2860
|
+
languageChange: [{ type: Output }],
|
|
2861
|
+
searchTermChange: [{ type: Output }],
|
|
2862
|
+
outputVolumeChange: [{ type: Output }],
|
|
2863
|
+
outputMuteToggle: [{ type: Output }],
|
|
2864
|
+
smartPlayer: [{
|
|
2865
|
+
type: ViewChild,
|
|
2866
|
+
args: [SmartPlayerComponent]
|
|
2867
|
+
}],
|
|
2868
|
+
audioFileInput: [{
|
|
2869
|
+
type: ViewChild,
|
|
2870
|
+
args: ["audioFileInput"]
|
|
2871
|
+
}],
|
|
2872
|
+
libraryScroll: [{
|
|
2873
|
+
type: ViewChild,
|
|
2874
|
+
args: ["libraryScroll"]
|
|
2875
|
+
}],
|
|
2876
|
+
lyricsLinesEl: [{
|
|
2877
|
+
type: ViewChild,
|
|
2878
|
+
args: ["lyricsLines"]
|
|
2879
|
+
}],
|
|
2880
|
+
queueListEl: [{
|
|
2881
|
+
type: ViewChild,
|
|
2882
|
+
args: ["queueList"]
|
|
2883
|
+
}],
|
|
2884
|
+
compactLyricsEl: [{
|
|
2885
|
+
type: ViewChild,
|
|
2886
|
+
args: ["compactLyricsLines"]
|
|
2887
|
+
}],
|
|
2888
|
+
panelEl: [{
|
|
2889
|
+
type: ViewChild,
|
|
2890
|
+
args: ["panel"]
|
|
2891
|
+
}],
|
|
2892
|
+
sheetButtonEl: [{
|
|
2893
|
+
type: ViewChild,
|
|
2894
|
+
args: ["sheetButton"]
|
|
2895
|
+
}]
|
|
2896
|
+
}
|
|
2897
|
+
});
|
|
2898
|
+
var NgxSmartPlayerAudioUiModule = class NgxSmartPlayerAudioUiModule {
|
|
2899
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2900
|
+
minVersion: "12.0.0",
|
|
2901
|
+
version: "22.2.1",
|
|
2902
|
+
ngImport: i0,
|
|
2903
|
+
type: NgxSmartPlayerAudioUiModule,
|
|
2904
|
+
deps: [],
|
|
2905
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
2906
|
+
});
|
|
2907
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
2908
|
+
minVersion: "14.0.0",
|
|
2909
|
+
version: "22.2.1",
|
|
2910
|
+
ngImport: i0,
|
|
2911
|
+
type: NgxSmartPlayerAudioUiModule,
|
|
2912
|
+
imports: [NgxSmartPlayerAudioUiComponent],
|
|
2913
|
+
exports: [NgxSmartPlayerAudioUiComponent]
|
|
2914
|
+
});
|
|
2915
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
2916
|
+
minVersion: "12.0.0",
|
|
2917
|
+
version: "22.2.1",
|
|
2918
|
+
ngImport: i0,
|
|
2919
|
+
type: NgxSmartPlayerAudioUiModule,
|
|
2920
|
+
imports: [NgxSmartPlayerAudioUiComponent]
|
|
2921
|
+
});
|
|
2922
|
+
};
|
|
2923
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
2924
|
+
minVersion: "12.0.0",
|
|
2925
|
+
version: "22.2.1",
|
|
2926
|
+
ngImport: i0,
|
|
2927
|
+
type: NgxSmartPlayerAudioUiModule,
|
|
2928
|
+
decorators: [{
|
|
2929
|
+
type: NgModule,
|
|
2930
|
+
args: [{
|
|
2931
|
+
imports: [NgxSmartPlayerAudioUiComponent],
|
|
2932
|
+
exports: [NgxSmartPlayerAudioUiComponent]
|
|
2933
|
+
}]
|
|
2934
|
+
}]
|
|
2935
|
+
});
|
|
2936
|
+
export { NgxSmartPlayerAudioUiComponent, NgxSmartPlayerAudioUiModule };
|
|
2937
|
+
|
|
2938
|
+
//# sourceMappingURL=ngxsplayer-ngx-smart-player-ui-audio.mjs.map
|