nixamp 0.28.7 → 0.28.9

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.
Files changed (80) hide show
  1. package/backtoschool/dist/assets/{ar-qWtdkIOw.js → ar-CmpEhms8.js} +1 -1
  2. package/backtoschool/dist/assets/{cs-O-6iUq7L.js → cs-BiiJOLTm.js} +1 -1
  3. package/{web/dist/assets/da-MlHOzqGo.js → backtoschool/dist/assets/da-DueRd5zz.js} +1 -1
  4. package/{web/dist/assets/de-Byc7wg7T.js → backtoschool/dist/assets/de-DIG6WxUZ.js} +1 -1
  5. package/backtoschool/dist/assets/{es-SiEP0g18.js → es-BwQQh_C8.js} +1 -1
  6. package/backtoschool/dist/assets/{fi-DFexxTi-.js → fi-DKPYMsbo.js} +1 -1
  7. package/backtoschool/dist/assets/{fr-BHMNLR57.js → fr-DNekMW0h.js} +1 -1
  8. package/{web/dist/assets/hi-D-0JPj2r.js → backtoschool/dist/assets/hi-CGlN72JQ.js} +1 -1
  9. package/backtoschool/dist/assets/{hu-WxKh5kIZ.js → hu-gcw9ouWH.js} +1 -1
  10. package/backtoschool/dist/assets/{id-BMS_sYt_.js → id-Bz51zxz6.js} +1 -1
  11. package/backtoschool/dist/assets/{index-CAxBxaVm.css → index-CP4oTs6H.css} +1 -1
  12. package/backtoschool/dist/assets/index-DDGO_FOw.js +113 -0
  13. package/backtoschool/dist/assets/{it-D5A6m68v.js → it-jO8u4ie7.js} +1 -1
  14. package/{web/dist/assets/nl-B_yl9TWr.js → backtoschool/dist/assets/nl-CnYXq0K4.js} +1 -1
  15. package/{web/dist/assets/ru-B8vxDDQh.js → backtoschool/dist/assets/ru-BatrUfYu.js} +1 -1
  16. package/backtoschool/dist/assets/{sv-DwuCaxjv.js → sv-CV2-POKP.js} +1 -1
  17. package/{web/dist/assets/uk-CB-i8MiC.js → backtoschool/dist/assets/uk-vLtqKpHm.js} +1 -1
  18. package/backtoschool/dist/assets/{vi-CEACVAuf.js → vi-BDZew-O9.js} +1 -1
  19. package/{web/dist/assets/zh-DvoeAN6z.js → backtoschool/dist/assets/zh-C9hBmQKA.js} +1 -1
  20. package/backtoschool/dist/index.html +2 -2
  21. package/backtoschool/dist/sw.js +23 -0
  22. package/dist/channels.js +8 -3
  23. package/dist/live-api.d.ts +1 -0
  24. package/dist/live-api.js +2 -0
  25. package/dist/locales/ar.d.ts +5 -0
  26. package/dist/locales/cs.d.ts +5 -0
  27. package/dist/locales/da.d.ts +5 -0
  28. package/dist/locales/de.d.ts +5 -0
  29. package/dist/locales/en.d.ts +5 -0
  30. package/dist/locales/es.d.ts +5 -0
  31. package/dist/locales/fi.d.ts +5 -0
  32. package/dist/locales/fr.d.ts +5 -0
  33. package/dist/locales/hi.d.ts +5 -0
  34. package/dist/locales/hu.d.ts +5 -0
  35. package/dist/locales/id.d.ts +5 -0
  36. package/dist/locales/it.d.ts +5 -0
  37. package/dist/locales/nl.d.ts +5 -0
  38. package/dist/locales/platforms.d.ts +5 -0
  39. package/dist/locales/platforms.js +5 -0
  40. package/dist/locales/ru.d.ts +5 -0
  41. package/dist/locales/sv.d.ts +5 -0
  42. package/dist/locales/uk.d.ts +5 -0
  43. package/dist/locales/vi.d.ts +5 -0
  44. package/dist/locales/zh.d.ts +5 -0
  45. package/dist/playlist.d.ts +2 -0
  46. package/dist/playlist.js +5 -3
  47. package/dist/server.d.ts +2 -1
  48. package/dist/server.js +47 -0
  49. package/package.json +3 -2
  50. package/src/channels.ts +7 -3
  51. package/src/live-api.ts +3 -0
  52. package/src/locales/platforms.ts +5 -0
  53. package/src/playlist.ts +6 -3
  54. package/src/server.ts +45 -0
  55. package/web/dist/assets/{ar-x6HrgYUm.js → ar-DUccFmQD.js} +1 -1
  56. package/web/dist/assets/{cs-CXZVcVnN.js → cs-BQEfu2Fc.js} +1 -1
  57. package/{backtoschool/dist/assets/da-CtdhUqOq.js → web/dist/assets/da-CGGLbyFk.js} +1 -1
  58. package/{backtoschool/dist/assets/de-DpIL8Ees.js → web/dist/assets/de-DGAqLgme.js} +1 -1
  59. package/web/dist/assets/{es-CU_hEZIn.js → es-CxV2y0ap.js} +1 -1
  60. package/web/dist/assets/{fi-DpLRNly_.js → fi-CYVOybkb.js} +1 -1
  61. package/web/dist/assets/{fr-CMTL_KOU.js → fr-Cw1jxRs3.js} +1 -1
  62. package/{backtoschool/dist/assets/hi-Bbvbrvch.js → web/dist/assets/hi-YfhgSAtT.js} +1 -1
  63. package/web/dist/assets/{hls-3VKVEQE3-Dlp5CG0J.js → hls-3VKVEQE3-p3XDqXrK.js} +1 -1
  64. package/web/dist/assets/{hu-CgtKY4ws.js → hu-D_Ick2R2.js} +1 -1
  65. package/web/dist/assets/{id-DyOnlGBJ.js → id-C1v276xP.js} +1 -1
  66. package/web/dist/assets/{index-BYQ3s2w2.css → index-CRvqNCjB.css} +1 -1
  67. package/web/dist/assets/index-eX-ZuPCD.js +3 -0
  68. package/web/dist/assets/{it-BMnlmtUl.js → it-CUhD_B0B.js} +1 -1
  69. package/web/dist/assets/{mpegts-B2qiRgm5.js → mpegts-Dvjt-GBC.js} +1 -1
  70. package/web/dist/assets/{mpegts-LO6RVLD6-BUK8jB_-.js → mpegts-LO6RVLD6-Bm2lroPK.js} +1 -1
  71. package/{backtoschool/dist/assets/nl-6C2ukGHx.js → web/dist/assets/nl-O73OuDxh.js} +1 -1
  72. package/{backtoschool/dist/assets/ru-DBAi8Upl.js → web/dist/assets/ru-DqcmvJGf.js} +1 -1
  73. package/web/dist/assets/{sv-DPT1ERzP.js → sv-COb1I4y-.js} +1 -1
  74. package/{backtoschool/dist/assets/uk-DKZMfSc9.js → web/dist/assets/uk-5wB1mzGf.js} +1 -1
  75. package/web/dist/assets/{vi-s2D7ZJTc.js → vi-BuK8LY7a.js} +1 -1
  76. package/{backtoschool/dist/assets/zh-yfl-mwgz.js → web/dist/assets/zh-BlmV0-AM.js} +1 -1
  77. package/web/dist/index.html +2 -2
  78. package/web/dist/sw.js +23 -23
  79. package/backtoschool/dist/assets/index-BTxRE5f2.js +0 -113
  80. package/web/dist/assets/index-CY9U4Kk_.js +0 -3
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  readonly "The web app is installed. You can keep learning here.": string;
15
15
  readonly "Continue learning": string;
16
16
  readonly "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ readonly "Follow host": string;
18
+ readonly Following: string;
19
+ readonly "You\u2019ll get email and web notifications for this host.": string;
20
+ readonly "Notifications turned off for this host.": string;
21
+ readonly "Could not update notifications.": string;
17
22
  readonly "No parties live right now.": "No parties live right now.";
18
23
  readonly "Could not refresh parties.": "Could not refresh parties.";
19
24
  readonly "Pick a server in the directory, or paste its link here.": "Pick a server in the directory, or paste its link here.";
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,5 +14,10 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You’ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  };
18
23
  export default _default;
@@ -15,4 +15,9 @@ export default {
15
15
  "The web app is installed. You can keep learning here.": "The web app is installed. You can keep learning here.",
16
16
  "Continue learning": "Continue learning",
17
17
  "The install prompt could not open. Select Web app again for installation instructions.": "The install prompt could not open. Select Web app again for installation instructions.",
18
+ "Follow host": "Follow host",
19
+ "Following": "Following",
20
+ "You’ll get email and web notifications for this host.": "You’ll get email and web notifications for this host.",
21
+ "Notifications turned off for this host.": "Notifications turned off for this host.",
22
+ "Could not update notifications.": "Could not update notifications.",
18
23
  };
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -14,6 +14,11 @@ declare const _default: {
14
14
  "The web app is installed. You can keep learning here.": string;
15
15
  "Continue learning": string;
16
16
  "The install prompt could not open. Select Web app again for installation instructions.": string;
17
+ "Follow host": string;
18
+ Following: string;
19
+ "You\u2019ll get email and web notifications for this host.": string;
20
+ "Notifications turned off for this host.": string;
21
+ "Could not update notifications.": string;
17
22
  "No parties live right now.": string;
18
23
  "Could not refresh parties.": string;
19
24
  "Pick a server in the directory, or paste its link here.": string;
@@ -88,3 +88,5 @@ known?: string[]): Promise<Track[]>;
88
88
  */
89
89
  export declare function findAudioAsync(root: string, every?: number): Promise<string[]>;
90
90
  export declare function displayName(track: Track): string;
91
+ /** Human filename order: numeric runs compare as numbers (01, 02, 10). */
92
+ export declare const compareNames: (a: string, b: string) => number;
package/dist/playlist.js CHANGED
@@ -51,7 +51,7 @@ export function findAudio(root) {
51
51
  const walk = (dir) => {
52
52
  let entries;
53
53
  try {
54
- entries = readdirSync(dir).sort();
54
+ entries = readdirSync(dir).sort(compareNames);
55
55
  }
56
56
  catch {
57
57
  return;
@@ -161,7 +161,7 @@ export async function readRemoteIndex(source, send = fetch) {
161
161
  }
162
162
  // Server order is by whatever column the index sorted on; by name is what
163
163
  // somebody handing over an album meant.
164
- found.sort((a, b) => a.title.localeCompare(b.title, undefined, { numeric: true }));
164
+ found.sort((a, b) => compareNames(a.title, b.title));
165
165
  return found;
166
166
  }
167
167
  /**
@@ -291,7 +291,7 @@ export async function findAudioAsync(root, every = 200) {
291
291
  const walk = async (dir) => {
292
292
  let entries;
293
293
  try {
294
- entries = readdirSync(dir).sort();
294
+ entries = readdirSync(dir).sort(compareNames);
295
295
  }
296
296
  catch {
297
297
  return;
@@ -320,3 +320,5 @@ export async function findAudioAsync(root, every = 200) {
320
320
  export function displayName(track) {
321
321
  return track.artist ? `${track.artist} — ${track.title}` : track.title;
322
322
  }
323
+ /** Human filename order: numeric runs compare as numbers (01, 02, 10). */
324
+ export const compareNames = (a, b) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" });
package/dist/server.d.ts CHANGED
@@ -30,7 +30,7 @@ import { Certs } from "./certs.ts";
30
30
  import { type Throttle } from "@profullstack/throttle";
31
31
  import { type Notification } from "./notify.ts";
32
32
  import { EventWriter } from "./event-writer.ts";
33
- import { LiveEvents } from "./live-events.ts";
33
+ import { LiveEvents, type LiveEvent } from "./live-events.ts";
34
34
  import { Tickets } from "./tickets.ts";
35
35
  import { Layouts } from "./layouts.ts";
36
36
  import { Rooms } from "./rooms.ts";
@@ -705,6 +705,7 @@ export interface HandlerOptions {
705
705
  /** Scheduled and live sessions, kept by NixAmp and shared by branded clients. */
706
706
  events?: LiveEvents;
707
707
  eventWriter?: EventWriter;
708
+ onEventUpdated?: (event: LiveEvent, previous: LiveEvent) => void;
708
709
  /** Versioned panel layouts, including event and user overrides. */
709
710
  layouts?: Layouts;
710
711
  /** Persistent participation state that must not be coupled to live audio. */
package/dist/server.js CHANGED
@@ -1458,6 +1458,7 @@ export function createHandler(engine, options) {
1458
1458
  ...(options.tickets ? { tickets: options.tickets } : {}),
1459
1459
  ...(eventSite ? { site: eventSite } : {}),
1460
1460
  ...(options.invites?.email ? { email: options.invites.email } : {}),
1461
+ ...(options.onEventUpdated ? { onEventUpdated: options.onEventUpdated } : {}),
1461
1462
  }))
1462
1463
  return;
1463
1464
  // The page explaining the reminder texts. Public for the same reason the
@@ -5905,6 +5906,48 @@ export async function serve(argv, version = "0.1.0") {
5905
5906
  }))
5906
5907
  .catch(() => { });
5907
5908
  };
5909
+ // Scheduled event reminders are sent once, three minutes before start.
5910
+ // Followers already have email/web preferences, so the same audience and
5911
+ // delivery paths serve live, update, and reminder notifications.
5912
+ const notifiedEvents = new Set();
5913
+ const eventMail = schoolMail ?? (process.env["RESEND_API_KEY"] ? {
5914
+ apiKey: process.env["RESEND_API_KEY"],
5915
+ from: process.env["NIXAMP_MAIL_FROM"] ?? "nixamp <notifications@nixamp.com>",
5916
+ } : undefined);
5917
+ const notifyEventFollowers = (event, kind) => {
5918
+ if (!follows || !event.ownerId)
5919
+ return;
5920
+ const key = `${event.id}:${kind}:${kind === "updated" ? event.version : event.startsAt ?? ""}`;
5921
+ if (notifiedEvents.has(key))
5922
+ return;
5923
+ notifiedEvents.add(key);
5924
+ const note = {
5925
+ title: kind === "starting-soon" ? `${event.title} starts in 3 minutes` : `${event.title} was updated`,
5926
+ body: kind === "starting-soon" ? "Your followed host is about to start. Join now." : "A followed host changed the schedule or details.",
5927
+ url: `${nixampSite}/live/${encodeURIComponent(event.slug)}`,
5928
+ };
5929
+ void follows.audience(event.ownerId).then((audience) => notifyAll(audience, note, {
5930
+ ...(eventMail ? { email: resendEmail({ ...eventMail, onEvent: (message) => console.log(message) }) } : {}),
5931
+ ...(vapidPublicKey && vapidPrivateKey ? { push: webPush({ publicKey: vapidPublicKey, privateKey: vapidPrivateKey, subject: nixampSite, onEvent: (message) => console.log(message) }) } : {}),
5932
+ onGone: (endpoint) => follows.removePush(endpoint),
5933
+ onEvent: (message) => console.log(message),
5934
+ })).catch(() => undefined);
5935
+ };
5936
+ if (events && follows) {
5937
+ const checkScheduledEvents = async () => {
5938
+ const now = Date.now();
5939
+ const upcoming = await events.list({ status: "scheduled", from: new Date(now - 4 * 60 * 1000).toISOString(), limit: 100 }).catch(() => []);
5940
+ for (const event of upcoming) {
5941
+ if (!event.startsAt)
5942
+ continue;
5943
+ const until = new Date(event.startsAt).getTime() - now;
5944
+ if (until <= 3 * 60 * 1000 && until > -60 * 1000)
5945
+ notifyEventFollowers(event, "starting-soon");
5946
+ }
5947
+ };
5948
+ void checkScheduledEvents();
5949
+ setInterval(() => void checkScheduledEvents(), 30_000).unref();
5950
+ }
5908
5951
  // Hoisted rather than built inline, because the party line needs the same
5909
5952
  // instance: a second Directory would be a second set of stream codes, and
5910
5953
  // the one the phone looked in would never be the one the publishers reach.
@@ -6214,6 +6257,10 @@ export async function serve(argv, version = "0.1.0") {
6214
6257
  openaiKey: process.env["OPENAI_API_KEY"], anthropicKey: process.env["ANTHROPIC_API_KEY"],
6215
6258
  openaiModel: process.env["NIXAMP_WRITER_OPENAI_MODEL"], claudeModel: process.env["NIXAMP_WRITER_CLAUDE_MODEL"],
6216
6259
  }) } : {}),
6260
+ ...(events && follows ? { onEventUpdated: (updated, previous) => {
6261
+ if (updated.version !== previous.version)
6262
+ notifyEventFollowers(updated, "updated");
6263
+ } } : {}),
6217
6264
  ...(layouts ? { layouts } : {}),
6218
6265
  ...(rooms ? { rooms } : {}),
6219
6266
  ...(trollbox ? { trollbox } : {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nixamp",
3
- "version": "0.28.7",
3
+ "version": "0.28.9",
4
4
  "description": "It really whips the terminal's ass. A Winamp-shaped audio player for your terminal.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,7 +20,8 @@
20
20
  "workspaces": [
21
21
  "web",
22
22
  "backtoschool",
23
- "desktop"
23
+ "desktop",
24
+ "packages/*"
24
25
  ],
25
26
  "engines": {
26
27
  "bun": ">=1.1",
package/src/channels.ts CHANGED
@@ -637,7 +637,7 @@ export class Channel {
637
637
  * gone, not when the redial happens: somebody joining in between gets the
638
638
  * new beginning as it is written, rather than a stale one first.
639
639
  */
640
- private startOver(): void {
640
+ private startOver(preserveListeners = false): void {
641
641
  if (this.info.kind === "video") this.fragments = new Fragments();
642
642
  this.recent = [];
643
643
  this.recentBytes = 0;
@@ -646,7 +646,7 @@ export class Channel {
646
646
  this.rateStart = 0;
647
647
  this.rateBytes = 0;
648
648
  this.rate = 0;
649
- this.hangUp();
649
+ if (!preserveListeners) this.hangUp();
650
650
  // The source's own bytes start over too: a new dial is a new stream
651
651
  // from its beginning, and whoever was tapping it must not be handed the
652
652
  // new beginning after the old middle.
@@ -732,7 +732,11 @@ export class Channel {
732
732
  const ended = moved && sent;
733
733
  if (ended) this.info.error = undefined;
734
734
  else this.info.redials = (this.info.redials ?? 0) + 1;
735
- this.startOver();
735
+ // Advancing a playlist is an internal source boundary, not the end of
736
+ // the channel. Keep listeners attached so a directory live remains one
737
+ // contiguous stream; a real redial still starts a new stream and hangs
738
+ // listeners up below.
739
+ this.startOver(moved);
736
740
  const dial = this.redial;
737
741
  this.timer = setTimeout(() => {
738
742
  this.timer = null;
package/src/live-api.ts CHANGED
@@ -35,6 +35,7 @@ export interface LiveApiOptions {
35
35
  tickets?: Tickets;
36
36
  site?: string;
37
37
  email?: (to: string, note: { title: string; body: string; url: string }) => Promise<boolean>;
38
+ onEventUpdated?: (event: LiveEvent, previous: LiveEvent) => void;
38
39
  }
39
40
 
40
41
  const CORS = {
@@ -433,11 +434,13 @@ export async function handleLiveApi(
433
434
  const account = await requiredAccount(request, response, options);
434
435
  if (!account) return true;
435
436
  if (request.method === "PATCH") {
437
+ const previous = event!;
436
438
  const input = await body(request);
437
439
  const updated = await options.events.update(eventRef, account.id, {
438
440
  ...input,
439
441
  version: requestedVersion(request, input),
440
442
  });
443
+ options.onEventUpdated?.(updated, previous);
441
444
  json(response, 200, view(updated, account, await ticketHeld(request, url, options, updated)));
442
445
  return true;
443
446
  }
@@ -15,4 +15,9 @@ export default {
15
15
  "The web app is installed. You can keep learning here.": "The web app is installed. You can keep learning here.",
16
16
  "Continue learning": "Continue learning",
17
17
  "The install prompt could not open. Select Web app again for installation instructions.": "The install prompt could not open. Select Web app again for installation instructions.",
18
+ "Follow host": "Follow host",
19
+ "Following": "Following",
20
+ "You’ll get email and web notifications for this host.": "You’ll get email and web notifications for this host.",
21
+ "Notifications turned off for this host.": "Notifications turned off for this host.",
22
+ "Could not update notifications.": "Could not update notifications.",
18
23
  };
package/src/playlist.ts CHANGED
@@ -63,7 +63,7 @@ export function findAudio(root: string): string[] {
63
63
  const walk = (dir: string): void => {
64
64
  let entries: string[];
65
65
  try {
66
- entries = readdirSync(dir).sort();
66
+ entries = readdirSync(dir).sort(compareNames);
67
67
  } catch {
68
68
  return;
69
69
  }
@@ -163,7 +163,7 @@ export async function readRemoteIndex(source: string, send: typeof fetch = fetch
163
163
  }
164
164
  // Server order is by whatever column the index sorted on; by name is what
165
165
  // somebody handing over an album meant.
166
- found.sort((a, b) => a.title.localeCompare(b.title, undefined, { numeric: true }));
166
+ found.sort((a, b) => compareNames(a.title, b.title));
167
167
  return found;
168
168
  }
169
169
 
@@ -304,7 +304,7 @@ export async function findAudioAsync(root: string, every = 200): Promise<string[
304
304
  const walk = async (dir: string): Promise<void> => {
305
305
  let entries: string[];
306
306
  try {
307
- entries = readdirSync(dir).sort();
307
+ entries = readdirSync(dir).sort(compareNames);
308
308
  } catch {
309
309
  return;
310
310
  }
@@ -329,3 +329,6 @@ export async function findAudioAsync(root: string, every = 200): Promise<string[
329
329
  export function displayName(track: Track): string {
330
330
  return track.artist ? `${track.artist} — ${track.title}` : track.title;
331
331
  }
332
+ /** Human filename order: numeric runs compare as numbers (01, 02, 10). */
333
+ export const compareNames = (a: string, b: string): number =>
334
+ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" });
package/src/server.ts CHANGED
@@ -1763,6 +1763,7 @@ export interface HandlerOptions {
1763
1763
  /** Scheduled and live sessions, kept by NixAmp and shared by branded clients. */
1764
1764
  events?: LiveEvents;
1765
1765
  eventWriter?: EventWriter;
1766
+ onEventUpdated?: (event: LiveEvent, previous: LiveEvent) => void;
1766
1767
  /** Versioned panel layouts, including event and user overrides. */
1767
1768
  layouts?: Layouts;
1768
1769
  /** Persistent participation state that must not be coupled to live audio. */
@@ -1955,6 +1956,7 @@ export function createHandler(engine: Engine, options: HandlerOptions) {
1955
1956
  ...(options.tickets ? { tickets: options.tickets } : {}),
1956
1957
  ...(eventSite ? { site: eventSite } : {}),
1957
1958
  ...(options.invites?.email ? { email: options.invites.email } : {}),
1959
+ ...(options.onEventUpdated ? { onEventUpdated: options.onEventUpdated } : {}),
1958
1960
  })) return;
1959
1961
 
1960
1962
  // The page explaining the reminder texts. Public for the same reason the
@@ -6427,6 +6429,46 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
6427
6429
  .catch(() => {});
6428
6430
  };
6429
6431
 
6432
+ // Scheduled event reminders are sent once, three minutes before start.
6433
+ // Followers already have email/web preferences, so the same audience and
6434
+ // delivery paths serve live, update, and reminder notifications.
6435
+ const notifiedEvents = new Set<string>();
6436
+ const eventMail = schoolMail ?? (process.env["RESEND_API_KEY"] ? {
6437
+ apiKey: process.env["RESEND_API_KEY"],
6438
+ from: process.env["NIXAMP_MAIL_FROM"] ?? "nixamp <notifications@nixamp.com>",
6439
+ } : undefined);
6440
+ const notifyEventFollowers = (event: LiveEvent, kind: "updated" | "starting-soon"): void => {
6441
+ if (!follows || !event.ownerId) return;
6442
+ const key = `${event.id}:${kind}:${kind === "updated" ? event.version : event.startsAt ?? ""}`;
6443
+ if (notifiedEvents.has(key)) return;
6444
+ notifiedEvents.add(key);
6445
+ const note: Notification = {
6446
+ title: kind === "starting-soon" ? `${event.title} starts in 3 minutes` : `${event.title} was updated`,
6447
+ body: kind === "starting-soon" ? "Your followed host is about to start. Join now." : "A followed host changed the schedule or details.",
6448
+ url: `${nixampSite}/live/${encodeURIComponent(event.slug)}`,
6449
+ };
6450
+ void follows.audience(event.ownerId).then((audience) => notifyAll(audience, note, {
6451
+ ...(eventMail ? { email: resendEmail({ ...eventMail, onEvent: (message) => console.log(message) }) } : {}),
6452
+ ...(vapidPublicKey && vapidPrivateKey ? { push: webPush({ publicKey: vapidPublicKey, privateKey: vapidPrivateKey, subject: nixampSite, onEvent: (message) => console.log(message) }) } : {}),
6453
+ onGone: (endpoint) => follows.removePush(endpoint),
6454
+ onEvent: (message) => console.log(message),
6455
+ })).catch(() => undefined);
6456
+ };
6457
+
6458
+ if (events && follows) {
6459
+ const checkScheduledEvents = async (): Promise<void> => {
6460
+ const now = Date.now();
6461
+ const upcoming = await events.list({ status: "scheduled", from: new Date(now - 4 * 60 * 1000).toISOString(), limit: 100 }).catch(() => []);
6462
+ for (const event of upcoming) {
6463
+ if (!event.startsAt) continue;
6464
+ const until = new Date(event.startsAt).getTime() - now;
6465
+ if (until <= 3 * 60 * 1000 && until > -60 * 1000) notifyEventFollowers(event, "starting-soon");
6466
+ }
6467
+ };
6468
+ void checkScheduledEvents();
6469
+ setInterval(() => void checkScheduledEvents(), 30_000).unref();
6470
+ }
6471
+
6430
6472
  // Hoisted rather than built inline, because the party line needs the same
6431
6473
  // instance: a second Directory would be a second set of stream codes, and
6432
6474
  // the one the phone looked in would never be the one the publishers reach.
@@ -6738,6 +6780,9 @@ export async function serve(argv: string[], version = "0.1.0"): Promise<void> {
6738
6780
  openaiKey: process.env["OPENAI_API_KEY"], anthropicKey: process.env["ANTHROPIC_API_KEY"],
6739
6781
  openaiModel: process.env["NIXAMP_WRITER_OPENAI_MODEL"], claudeModel: process.env["NIXAMP_WRITER_CLAUDE_MODEL"],
6740
6782
  }) } : {}),
6783
+ ...(events && follows ? { onEventUpdated: (updated: LiveEvent, previous: LiveEvent) => {
6784
+ if (updated.version !== previous.version) notifyEventFollowers(updated, "updated");
6785
+ } } : {}),
6741
6786
  ...(layouts ? { layouts } : {}),
6742
6787
  ...(rooms ? { rooms } : {}),
6743
6788
  ...(trollbox ? { trollbox } : {}),
@@ -1 +1 @@
1
- import{n as e}from"./index-CY9U4Kk_.js";var t={...e,"No parties live right now.":`لا توجد جلسات مباشرة الآن.`,"Could not refresh parties.":`تعذر تحديث الجلسات.`,"Pick a server in the directory, or paste its link here.":`اختر خادمًا من الدليل أو الصق رابطه هنا.`,"Interface language":`لغة الواجهة`,Language:`اللغة`,"Translation language":`لغة الترجمة`,"Original (auto-detect)":`الأصل (اكتشاف تلقائي)`,Play:`تشغيل`,Pause:`إيقاف مؤقت`,Stop:`إيقاف`,Next:`التالي`,Previous:`السابق`,Select:`اختيار`,"Next/Prev":`التالي/السابق`,Quit:`خروج`,"Now Playing":`قيد التشغيل`,"Spectrum Analyser":`محلل الطيف`,Playlist:`قائمة التشغيل`,Files:`الملفات`,"Open files":`فتح ملفات`,"Open folder":`فتح مجلد`,"Add to library":`إضافة إلى المكتبة`,"Replace playlist":`استبدال قائمة التشغيل`,Filter:`تصفية`,Search:`بحث`,"Nothing loaded.":`لم يُحمّل أي محتوى.`,"Empty.":`فارغ.`,"Loading…":`جارٍ التحميل…`,"Connecting…":`جارٍ الاتصال…`,Connected:`متصل`,"Not connected":`غير متصل`,"No source":`لا يوجد مصدر`,Playing:`يعمل`,Stopped:`متوقف`,Volume:`مستوى الصوت`,Seek:`موضع التشغيل`,"Full screen":`ملء الشاشة`,Download:`تنزيل`,Share:`مشاركة`,Copy:`نسخ`,"Copy link":`نسخ الرابط`,Copied:`تم النسخ`,Save:`حفظ`,Cancel:`إلغاء`,Close:`إغلاق`,Remove:`إزالة`,Delete:`حذف`,Edit:`تعديل`,Add:`إضافة`,Send:`إرسال`,Retry:`إعادة المحاولة`,Back:`رجوع`,"Next page":`الصفحة التالية`,"Previous page":`الصفحة السابقة`,"Show more":`عرض المزيد`,Panels:`اللوحات`,"Reset layout":`إعادة ضبط التخطيط`,Show:`إظهار`,Hide:`إخفاء`,Collapse:`طي`,Expand:`توسيع`,"Move up":`نقل لأعلى`,"Move down":`نقل لأسفل`,Install:`تثبيت`,"TV mode":`وضع التلفاز`,On:`مفعّل`,Off:`معطّل`,Account:`الحساب`,"Sign in":`تسجيل الدخول`,"Sign out":`تسجيل الخروج`,"Create account":`إنشاء حساب`,Email:`البريد الإلكتروني`,Password:`كلمة المرور`,"Forgot password?":`نسيت كلمة المرور؟`,"Welcome back":`مرحبًا بعودتك`,Profile:`الملف الشخصي`,Handle:`اسم المستخدم`,"Your servers":`خوادمك`,Server:`الخادم`,Connect:`اتصال`,Disconnect:`قطع الاتصال`,Directory:`الدليل`,Favourites:`المفضلة`,Follow:`متابعة`,Unfollow:`إلغاء المتابعة`,Notifications:`الإشعارات`,"Phone number":`رقم الهاتف`,"Save number":`حفظ الرقم`,Transcript:`النص المفرغ`,Captions:`الترجمة النصية`,"Translate audio":`ترجمة الصوت`,"Audio language":`لغة الصوت`,"Audio options":`خيارات الصوت`,"Keep background sound":`الاحتفاظ بأصوات الخلفية`,"Background level":`مستوى صوت الخلفية`,"Speaker voices":`أصوات المتحدثين`,"Any voice":`أي صوت`,"Male voice":`صوت رجالي`,"Female voice":`صوت نسائي`,"Original audio.":`الصوت الأصلي.`,"Buy translated audio":`شراء الصوت المترجم`,"Audio credit":`رصيد الصوت`,"Buy pass":`شراء تصريح`,Pass:`تصريح`,"Pay with":`الدفع باستخدام`,"Check payment":`التحقق من الدفع`,"Open checkout":`الانتقال للدفع`,"Free sessions":`جلسات مجانية`,"Usage rates and expiry":`الأسعار ومدة الصلاحية`,Catalogs:`الكتالوجات`,"Add catalog":`إضافة كتالوج`,"Catalog name":`اسم الكتالوج`,Link:`الرابط`,"Play link":`تشغيل الرابط`,"Go live":`بدء بث مباشر`,Publish:`نشر`,Listen:`استماع`,"Live now":`مباشر الآن`,Upcoming:`قريبًا`,Parties:`حفلات المشاهدة`,"Join party":`الانضمام للحفلة`,"Invite code":`رمز الدعوة`,Invite:`دعوة`,Chat:`الدردشة`,"Chat message":`رسالة دردشة`,People:`الأشخاص`,Speaker:`متحدث`,Speakers:`المتحدثون`,Listener:`مستمع`,Moderator:`مشرف`,"Raise hand":`رفع اليد`,"Hand raises":`الأيدي المرفوعة`,Questions:`الأسئلة`,Resources:`الموارد`,Replay:`إعادة العرض`,Schedule:`الجدول`,Event:`الفعالية`,Host:`المضيف`,About:`حول`,Stage:`المنصة`,Title:`العنوان`,Description:`الوصف`,Topic:`الموضوع`,Public:`عام`,"Anyone with the link":`أي شخص لديه الرابط`,"Invited people":`الأشخاص المدعوون`,"Who can join":`من يمكنه الانضمام`,"Date and time":`التاريخ والوقت`,"Expected length":`المدة المتوقعة`,Repeat:`تكرار`,"Does not repeat":`لا يتكرر`,"Every day":`كل يوم`,"Every week":`كل أسبوع`,Homepage:`الموقع الإلكتروني`,"Host name":`اسم المضيف`,"Profile photo URL":`رابط صورة الملف الشخصي`,"Broadcast link":`رابط البث`,"Edit event":`تعديل الفعالية`,"Save changes":`حفظ التغييرات`,"Create live":`إنشاء بث مباشر`,"Schedule class":`جدولة درس`,"Start class":`بدء الدرس`,"End event":`إنهاء الفعالية`,"End session":`إنهاء الجلسة`,"Session ended":`انتهت الجلسة`,"Event ended":`انتهت الفعالية`,Cancelled:`ملغاة`,"Replay available":`إعادة العرض متاحة`,Join:`انضمام`,"Create invite":`إنشاء دعوة`,"Invite as":`الدعوة بصفة`,"Watch now":`شاهد الآن`,"Start a room":`إنشاء غرفة`,"Recent replays":`إعادات العرض الأخيرة`,"Your account":`حسابك`,"Write with AI":`الكتابة بالذكاء الاصطناعي`,"Suggested title":`العنوان المقترح`,"Suggested description":`الوصف المقترح`,"Suggested topic":`الموضوع المقترح`,"Use these details":`استخدام هذه التفاصيل`,"Learn something live.":`تعلّم شيئًا مباشرة.`,"Screen share":`مشاركة الشاشة`,"Upload and broadcast":`رفع وبث`,Help:`مساعدة`,"Reload Player":`إعادة تحميل المشغل`,"Copy Bundled CLI Path":`نسخ مسار أداة سطر الأوامر المضمنة`,"Developer tools":`أدوات المطور`,Undo:`تراجع`,Redo:`إعادة`,Cut:`قص`,Paste:`لصق`,"Select all":`تحديد الكل`,Status:`الحالة`,"Activity log":`سجل النشاط`,Admin:`الإدارة`,"Playback controls":`عناصر التحكم بالتشغيل`,"Tracks and folders":`المقاطع والمجلدات`,"Original-language captions.":`ترجمة نصية باللغة الأصلية.`,"Skip to playback controls":`الانتقال إلى عناصر التحكم بالتشغيل`,"Skip to playlist":`الانتقال إلى قائمة التشغيل`,"Skip to transcript and translated audio":`الانتقال إلى النص المفرغ والصوت المترجم`};export{t as default};
1
+ import{n as e}from"./index-eX-ZuPCD.js";var t={...e,"No parties live right now.":`لا توجد جلسات مباشرة الآن.`,"Could not refresh parties.":`تعذر تحديث الجلسات.`,"Pick a server in the directory, or paste its link here.":`اختر خادمًا من الدليل أو الصق رابطه هنا.`,"Interface language":`لغة الواجهة`,Language:`اللغة`,"Translation language":`لغة الترجمة`,"Original (auto-detect)":`الأصل (اكتشاف تلقائي)`,Play:`تشغيل`,Pause:`إيقاف مؤقت`,Stop:`إيقاف`,Next:`التالي`,Previous:`السابق`,Select:`اختيار`,"Next/Prev":`التالي/السابق`,Quit:`خروج`,"Now Playing":`قيد التشغيل`,"Spectrum Analyser":`محلل الطيف`,Playlist:`قائمة التشغيل`,Files:`الملفات`,"Open files":`فتح ملفات`,"Open folder":`فتح مجلد`,"Add to library":`إضافة إلى المكتبة`,"Replace playlist":`استبدال قائمة التشغيل`,Filter:`تصفية`,Search:`بحث`,"Nothing loaded.":`لم يُحمّل أي محتوى.`,"Empty.":`فارغ.`,"Loading…":`جارٍ التحميل…`,"Connecting…":`جارٍ الاتصال…`,Connected:`متصل`,"Not connected":`غير متصل`,"No source":`لا يوجد مصدر`,Playing:`يعمل`,Stopped:`متوقف`,Volume:`مستوى الصوت`,Seek:`موضع التشغيل`,"Full screen":`ملء الشاشة`,Download:`تنزيل`,Share:`مشاركة`,Copy:`نسخ`,"Copy link":`نسخ الرابط`,Copied:`تم النسخ`,Save:`حفظ`,Cancel:`إلغاء`,Close:`إغلاق`,Remove:`إزالة`,Delete:`حذف`,Edit:`تعديل`,Add:`إضافة`,Send:`إرسال`,Retry:`إعادة المحاولة`,Back:`رجوع`,"Next page":`الصفحة التالية`,"Previous page":`الصفحة السابقة`,"Show more":`عرض المزيد`,Panels:`اللوحات`,"Reset layout":`إعادة ضبط التخطيط`,Show:`إظهار`,Hide:`إخفاء`,Collapse:`طي`,Expand:`توسيع`,"Move up":`نقل لأعلى`,"Move down":`نقل لأسفل`,Install:`تثبيت`,"TV mode":`وضع التلفاز`,On:`مفعّل`,Off:`معطّل`,Account:`الحساب`,"Sign in":`تسجيل الدخول`,"Sign out":`تسجيل الخروج`,"Create account":`إنشاء حساب`,Email:`البريد الإلكتروني`,Password:`كلمة المرور`,"Forgot password?":`نسيت كلمة المرور؟`,"Welcome back":`مرحبًا بعودتك`,Profile:`الملف الشخصي`,Handle:`اسم المستخدم`,"Your servers":`خوادمك`,Server:`الخادم`,Connect:`اتصال`,Disconnect:`قطع الاتصال`,Directory:`الدليل`,Favourites:`المفضلة`,Follow:`متابعة`,Unfollow:`إلغاء المتابعة`,Notifications:`الإشعارات`,"Phone number":`رقم الهاتف`,"Save number":`حفظ الرقم`,Transcript:`النص المفرغ`,Captions:`الترجمة النصية`,"Translate audio":`ترجمة الصوت`,"Audio language":`لغة الصوت`,"Audio options":`خيارات الصوت`,"Keep background sound":`الاحتفاظ بأصوات الخلفية`,"Background level":`مستوى صوت الخلفية`,"Speaker voices":`أصوات المتحدثين`,"Any voice":`أي صوت`,"Male voice":`صوت رجالي`,"Female voice":`صوت نسائي`,"Original audio.":`الصوت الأصلي.`,"Buy translated audio":`شراء الصوت المترجم`,"Audio credit":`رصيد الصوت`,"Buy pass":`شراء تصريح`,Pass:`تصريح`,"Pay with":`الدفع باستخدام`,"Check payment":`التحقق من الدفع`,"Open checkout":`الانتقال للدفع`,"Free sessions":`جلسات مجانية`,"Usage rates and expiry":`الأسعار ومدة الصلاحية`,Catalogs:`الكتالوجات`,"Add catalog":`إضافة كتالوج`,"Catalog name":`اسم الكتالوج`,Link:`الرابط`,"Play link":`تشغيل الرابط`,"Go live":`بدء بث مباشر`,Publish:`نشر`,Listen:`استماع`,"Live now":`مباشر الآن`,Upcoming:`قريبًا`,Parties:`حفلات المشاهدة`,"Join party":`الانضمام للحفلة`,"Invite code":`رمز الدعوة`,Invite:`دعوة`,Chat:`الدردشة`,"Chat message":`رسالة دردشة`,People:`الأشخاص`,Speaker:`متحدث`,Speakers:`المتحدثون`,Listener:`مستمع`,Moderator:`مشرف`,"Raise hand":`رفع اليد`,"Hand raises":`الأيدي المرفوعة`,Questions:`الأسئلة`,Resources:`الموارد`,Replay:`إعادة العرض`,Schedule:`الجدول`,Event:`الفعالية`,Host:`المضيف`,About:`حول`,Stage:`المنصة`,Title:`العنوان`,Description:`الوصف`,Topic:`الموضوع`,Public:`عام`,"Anyone with the link":`أي شخص لديه الرابط`,"Invited people":`الأشخاص المدعوون`,"Who can join":`من يمكنه الانضمام`,"Date and time":`التاريخ والوقت`,"Expected length":`المدة المتوقعة`,Repeat:`تكرار`,"Does not repeat":`لا يتكرر`,"Every day":`كل يوم`,"Every week":`كل أسبوع`,Homepage:`الموقع الإلكتروني`,"Host name":`اسم المضيف`,"Profile photo URL":`رابط صورة الملف الشخصي`,"Broadcast link":`رابط البث`,"Edit event":`تعديل الفعالية`,"Save changes":`حفظ التغييرات`,"Create live":`إنشاء بث مباشر`,"Schedule class":`جدولة درس`,"Start class":`بدء الدرس`,"End event":`إنهاء الفعالية`,"End session":`إنهاء الجلسة`,"Session ended":`انتهت الجلسة`,"Event ended":`انتهت الفعالية`,Cancelled:`ملغاة`,"Replay available":`إعادة العرض متاحة`,Join:`انضمام`,"Create invite":`إنشاء دعوة`,"Invite as":`الدعوة بصفة`,"Watch now":`شاهد الآن`,"Start a room":`إنشاء غرفة`,"Recent replays":`إعادات العرض الأخيرة`,"Your account":`حسابك`,"Write with AI":`الكتابة بالذكاء الاصطناعي`,"Suggested title":`العنوان المقترح`,"Suggested description":`الوصف المقترح`,"Suggested topic":`الموضوع المقترح`,"Use these details":`استخدام هذه التفاصيل`,"Learn something live.":`تعلّم شيئًا مباشرة.`,"Screen share":`مشاركة الشاشة`,"Upload and broadcast":`رفع وبث`,Help:`مساعدة`,"Reload Player":`إعادة تحميل المشغل`,"Copy Bundled CLI Path":`نسخ مسار أداة سطر الأوامر المضمنة`,"Developer tools":`أدوات المطور`,Undo:`تراجع`,Redo:`إعادة`,Cut:`قص`,Paste:`لصق`,"Select all":`تحديد الكل`,Status:`الحالة`,"Activity log":`سجل النشاط`,Admin:`الإدارة`,"Playback controls":`عناصر التحكم بالتشغيل`,"Tracks and folders":`المقاطع والمجلدات`,"Original-language captions.":`ترجمة نصية باللغة الأصلية.`,"Skip to playback controls":`الانتقال إلى عناصر التحكم بالتشغيل`,"Skip to playlist":`الانتقال إلى قائمة التشغيل`,"Skip to transcript and translated audio":`الانتقال إلى النص المفرغ والصوت المترجم`};export{t as default};