77 lines
2.4 KiB
JavaScript
77 lines
2.4 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 5090ef85429ba5da.685e3e4591.js
|
|
* Module id: 133614
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e) => {
|
|
"use strict";
|
|
var t;
|
|
e.i(316119), e.i(169823), e.i(739986), e.i(361769);
|
|
let n =
|
|
(((t = {}).SERVICE_NOT_CONFIGURED = "service_not_configured"),
|
|
(t.INVALID_AUDIO_FORMAT = "invalid_audio_format"),
|
|
(t.AUDIO_TOO_LONG = "audio_too_long"),
|
|
(t.AUDIO_TOO_SHORT = "audio_too_short"),
|
|
(t.RATE_LIMITED = "rate_limited"),
|
|
(t.AUTH_FAILED = "auth_failed"),
|
|
(t.PROVIDER_ERROR = "provider_error"),
|
|
(t.NETWORK_ERROR = "network_error"),
|
|
(t.INVALID_REQUEST = "invalid_request"),
|
|
t),
|
|
r = {
|
|
serviceNotConfigured: () => ({
|
|
error: n.SERVICE_NOT_CONFIGURED,
|
|
message: "Transcription service is not configured",
|
|
retryable: !1,
|
|
}),
|
|
invalidAudioFormat: (e, t) => ({
|
|
error: n.INVALID_AUDIO_FORMAT,
|
|
message: `Unsupported audio format: ${e}. Supported: ${t.join(", ")}`,
|
|
retryable: !1,
|
|
}),
|
|
invalidRequest: (e) => ({
|
|
error: n.INVALID_REQUEST,
|
|
message: e,
|
|
retryable: !1,
|
|
}),
|
|
rateLimited: () => ({
|
|
error: n.RATE_LIMITED,
|
|
message: "Rate limited. Please try again later.",
|
|
retryable: !0,
|
|
}),
|
|
authFailed: () => ({
|
|
error: n.AUTH_FAILED,
|
|
message: "Authentication failed with transcription provider",
|
|
retryable: !1,
|
|
}),
|
|
providerError: (e) => ({
|
|
error: n.PROVIDER_ERROR,
|
|
message: e,
|
|
retryable: !0,
|
|
}),
|
|
networkError: (e = "Network error during transcription") => ({
|
|
error: n.NETWORK_ERROR,
|
|
message: e,
|
|
retryable: !0,
|
|
}),
|
|
audioTooLong: () => ({
|
|
error: n.AUDIO_TOO_LONG,
|
|
message: "Audio file is too long",
|
|
retryable: !1,
|
|
}),
|
|
audioTooShort: () => ({
|
|
error: n.AUDIO_TOO_SHORT,
|
|
message: "Audio is too short to transcribe",
|
|
retryable: !1,
|
|
}),
|
|
};
|
|
e.s(
|
|
["TranscriptionErrorCode", () => n, "TranscriptionErrors", () => r],
|
|
133614,
|
|
),
|
|
e.s([], 890478);
|
|
};
|
|
|
|
export default moduleFactory;
|