1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93988],{3214:(e,a,t)=>{t.d(a,{mN:()=>r});let s=[{code:"en",name:"English",nativeName:"English",tier:"best"},{code:"es",name:"Spanish",nativeName:"Espa\xf1ol",tier:"best"},{code:"fr",name:"French",nativeName:"Fran\xe7ais",tier:"best"},{code:"de",name:"German",nativeName:"Deutsch",tier:"best"},{code:"it",name:"Italian",nativeName:"Italiano",tier:"best"},{code:"pt",name:"Portuguese",nativeName:"Portugu\xeas",tier:"best"},{code:"nl",name:"Dutch",nativeName:"Nederlands",tier:"best"},{code:"hi",name:"Hindi",nativeName:"हिनà¥à¤¦à¥",tier:"best"},{code:"ja",name:"Japanese",nativeName:"æ¥æ¬èª",tier:"best"},{code:"zh",name:"Chinese",nativeName:"䏿",tier:"best"},{code:"fi",name:"Finnish",nativeName:"Suomi",tier:"best"},{code:"ko",name:"Korean",nativeName:"íêµì´",tier:"best"},{code:"pl",name:"Polish",nativeName:"Polski",tier:"best"},{code:"ru",name:"Russian",nativeName:"Ð ÑÑÑкий",tier:"best"},{code:"tr",name:"Turkish",nativeName:"T\xfcrk\xe7e",tier:"best"},{code:"uk",name:"Ukrainian",nativeName:"УкÑаÑнÑÑка",tier:"best"},{code:"vi",name:"Vietnamese",nativeName:"Tiếng Viá»t",tier:"best"},{code:"ar",name:"Arabic",nativeName:"Ø§ÙØ¹Ø±Ø¨ÙØ©",tier:"standard"},{code:"ca",name:"Catalan",nativeName:"Catal\xe0",tier:"standard"},{code:"cs",name:"Czech",nativeName:"ÄeÅ¡tina",tier:"standard"},{code:"da",name:"Danish",nativeName:"Dansk",tier:"standard"},{code:"el",name:"Greek",nativeName:"Îλληνικά",tier:"standard"},{code:"he",name:"Hebrew",nativeName:"×¢×ר×ת",tier:"standard"},{code:"id",name:"Indonesian",nativeName:"Bahasa Indonesia",tier:"standard"},{code:"ms",name:"Malay",nativeName:"Bahasa Melayu",tier:"standard"},{code:"no",name:"Norwegian",nativeName:"Norsk",tier:"standard"},{code:"ro",name:"Romanian",nativeName:"Rom\xe2nÄ",tier:"standard"},{code:"sv",name:"Swedish",nativeName:"Svenska",tier:"standard"},{code:"th",name:"Thai",nativeName:"à¹à¸à¸¢",tier:"standard"}];s.reduce((e,a)=>({...e,[a.code]:a.name}),{});let r=[{value:"auto",label:"Auto-detect language"},...s.map(e=>({value:e.code,label:"".concat(e.name," (").concat(e.nativeName,")"),tier:e.tier}))]},9239:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(23878).A)("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]])},22505:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(23878).A)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]])},27350:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(23878).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},93988:(e,a,t)=>{t.r(a),t.d(a,{default:()=>U});var s=t(65720),r=t(12212),n=t(64797),l=t(85587),i=t(65781),o=t(71749),c=t(78561),d=t(20337),m=t(45160),u=t(22505),h=t(9239),x=t(3214),p=t(59990),g=t(16252),j=t(72391),v=t(28886),N=t(89953),f=t(81055),b=t(79417);function y(e){let{onUploadComplete:a,onUploadError:t,preSelectedFile:n,selectedLanguage:l}=e,[i,o]=(0,r.useState)(0),[c,m]=(0,r.useState)("idle"),[u,h]=(0,r.useState)(null),[x,p]=(0,r.useState)(null),g=(0,r.useRef)(null);(0,r.useEffect)(()=>{n&&g.current&&g.current.dispatchEvent(new CustomEvent("file-ready",{composed:!0,bubbles:!0,detail:n}))},[n]);let y=async()=>{if(m("processing"),!x){console.error("[DirectUploadTab] No upload ID found"),h("Failed to process upload. Please try again."),m("error");return}try{let e=await fetch("/api/mux/create-asset",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({uploadId:x,id:x,languageCode:l})});if(!e.ok)throw Error("Failed to create video asset");let{assetId:t,playbackId:s}=await e.json();m("complete"),a(t,s,l)}catch(e){console.error("[DirectUploadTab] Error creating asset:",e),h("Failed to process video. Please try again."),m("error"),t&&t(e)}},w=()=>{switch(c){case"uploading":return"";case"processing":return"Processing video...";case"complete":return"Upload complete!";case"error":return"Upload failed";default:return"Drag and drop your video here or click to browse"}};return(0,s.jsxs)("div",{children:[(0,s.jsx)(j.Ay,{ref:g,endpoint:async()=>{let e=await fetch("/api/mux/upload",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include"});if(!e.ok)throw Error((await e.json().catch(()=>({error:"Unknown error"}))).error||"Failed to get upload URL");let a=await e.json();return a.id&&p(a.id),a.url},onUploadStart:()=>{m("uploading"),o(0),h(null)},onProgress:e=>{o(Math.round(e.detail.bytes/e.detail.totalBytes*100))},onSuccess:y,onError:e=>{if(console.error("[DirectUploadTab] Upload error:",e.detail),h("Upload failed. Please try again."),m("error"),t){var a;t(Error((null==(a=e.detail)?void 0:a.message)||"Upload failed"))}},className:"w-full"}),(0,s.jsxs)("div",{className:"mt-6 text-center",children:["uploading"!==c&&(0,s.jsx)("div",{className:"flex justify-center mb-4",children:(()=>{switch(c){case"uploading":return(0,s.jsx)(d.A,{className:"h-12 w-12 text-blue-500 animate-pulse"});case"processing":return(0,s.jsx)(v.A,{className:"h-12 w-12 text-blue-500 animate-spin"});case"complete":return(0,s.jsx)(N.A,{className:"h-12 w-12 text-green-500"});case"error":return(0,s.jsx)(f.A,{className:"h-12 w-12 text-red-500"});default:return(0,s.jsx)(d.A,{className:"h-12 w-12 text-gray-400"})}})()}),w()&&(0,s.jsx)("p",{className:"text-lg font-medium text-gray-900 dark:text-white mb-2",children:w()}),"idle"===c&&(0,s.jsx)("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Supported formats: MP4, MOV, AVI, WebM ⢠Max size: 5GB"}),u&&(0,s.jsxs)(b.Fc,{variant:"destructive",className:"mt-4",children:[(0,s.jsx)(f.A,{className:"h-4 w-4"}),(0,s.jsx)(b.TN,{children:u})]})]})]})}var w=t(22185),k=t(19823),A=t(27350);function C(e){let{onImportComplete:a,onImportError:t,languageCode:n}=e,[l,o]=(0,r.useState)(""),[c,d]=(0,r.useState)(""),[u,h]=(0,r.useState)("idle"),[x,p]=(0,r.useState)(null),[g,j]=(0,r.useState)(null),y=async e=>{if(!e)return void j(null);try{new URL(e)}catch(e){j({valid:!1});return}h("validating"),p(null);try{let a=await fetch("/api/video-sources/url?url=".concat(encodeURIComponent(e))),t=await a.json();j({valid:t.valid,contentType:t.contentType}),!t.valid&&t.error&&p(t.error)}catch(e){j({valid:!1}),p("Failed to validate URL")}finally{h("idle")}},C=async()=>
1{if(!l)return void p("Please enter a URL");try{new URL(l)}catch(e){p("Please enter a valid URL");return}h("importing"),p(null);try{let e=await fetch("/api/video-sources/url",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({url:l,title:c||void 0,languageCode:n})}),t=await e.json();if(!e.ok)throw Error(t.error||"Failed to import video");h("complete"),a(t.postId,t.assetId,t.playbackId)}catch(e){console.error("[UrlImportTab] Import error:",e),h("error"),p(e instanceof Error?e.message:"Failed to import video"),t&&t(e instanceof Error?e:Error("Import failed"))}},T=(null==g?void 0:g.valid)===!0,F=l.length>10&&null!==g;return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"text-center mb-6",children:[(0,s.jsx)("div",{className:"flex justify-center mb-4",children:(0,s.jsx)("div",{className:"p-4 bg-blue-50 dark:bg-blue-950 rounded-full",children:(0,s.jsx)(m.A,{className:"h-8 w-8 text-blue-500"})})}),(0,s.jsx)("h3",{className:"text-lg font-medium",children:"Import from URL"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Paste a direct link to any publicly accessible video file"})]}),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(i.Label,{htmlFor:"video-url",children:"Video URL"}),(0,s.jsxs)("div",{className:"relative mt-1",children:[(0,s.jsx)(k.p,{id:"video-url",type:"url",placeholder:"https://example.com/video.mp4",value:l,onChange:e=>{let a=e.target.value;if(o(a),p(null),j(null),a.length>10){let e=setTimeout(()=>y(a),500);return()=>clearTimeout(e)}},onBlur:()=>l&&y(l),disabled:"importing"===u,className:F?T?"pr-10 border-green-500 focus:border-green-500":"pr-10 border-red-500 focus:border-red-500":""}),F&&(0,s.jsx)("div",{className:"absolute right-3 top-1/2 -translate-y-1/2",children:"validating"===u?(0,s.jsx)(v.A,{className:"h-4 w-4 text-gray-400 animate-spin"}):T?(0,s.jsx)(N.A,{className:"h-4 w-4 text-green-500"}):(0,s.jsx)(f.A,{className:"h-4 w-4 text-red-500"})})]}),T&&g.contentType&&(0,s.jsxs)("p",{className:"text-xs text-green-600 mt-1",children:["Video detected: ",g.contentType]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(i.Label,{htmlFor:"video-title",children:"Title (optional)"}),(0,s.jsx)(k.p,{id:"video-title",type:"text",placeholder:"Enter a title for the video",value:c,onChange:e=>d(e.target.value),disabled:"importing"===u,className:"mt-1"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"If not provided, we'll try to extract the title from the URL"})]}),x&&(0,s.jsxs)(b.Fc,{variant:"destructive",children:[(0,s.jsx)(f.A,{className:"h-4 w-4"}),(0,s.jsx)(b.TN,{children:x})]}),"complete"===u&&(0,s.jsxs)(b.Fc,{className:"border-green-500 bg-green-50 dark:bg-green-950",children:[(0,s.jsx)(N.A,{className:"h-4 w-4 text-green-500"}),(0,s.jsx)(b.TN,{className:"text-green-700 dark:text-green-300",children:"Video import started! Processing will continue in the background."})]}),(0,s.jsx)(w.$,{onClick:C,disabled:!l||"importing"===u||"validating"===u,className:"w-full",size:"lg",children:"importing"===u?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Importing..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Import Video"]})})]}),(0,s.jsx)("div",{className:"border-t pt-4",children:(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[(0,s.jsx)("strong",{children:"Supported formats:"})," MP4, MOV, AVI, WebM, MKV, and most video formats",(0,s.jsx)("br",{}),(0,s.jsx)("strong",{children:"Note:"})," The URL must be publicly accessible. Private or authenticated URLs may not work."]})})]})}let T=(0,t(23878).A)("link-2-off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);function F(e){let{onImportComplete:a,onImportError:t,languageCode:n}=e,[l,i]=(0,r.useState)([]),[o,c]=(0,r.useState)(!0),[d,m]=(0,r.useState)(null);(0,r.useEffect)(()=>{h()},[]);let h=async()=>{try{let e=await fetch("/api/integrations/status");if(e.ok){let a=await e.json();i(a.integrations||[])}}catch(e){console.error("Failed to fetch integrations:",e)}finally{c(!1)}},x=async e=>{m(e);try{window.location.href="/api/integrations/".concat(e,"/connect")}catch(e){console.error("Failed to start OAuth flow:",e),m(null)}},p=async e=>{try{(await fetch("/api/integrations/".concat(e,"/disconnect"),{method:"POST"})).ok&&await h()}catch(e){console.error("Failed to disconnect:",e)}},g=e=>l.find(a=>a.provider===e&&a.is_active),j=g("google_drive"),y=g("onedrive"),k=[{id:"google_drive",name:"Google Drive",icon:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"currentColor",children:(0,s.jsx)("path",{d:"M4.433 22l3.566-6.178H22l-3.566 6.178H4.433zm7.712-15.932L5.212 18.24l-3.566-6.178L8.579 0l3.566 6.068zM10.711 7.932h6.933l6.922 12H10.644l.067-12z"})}),color:"bg-blue-500 hover:bg-blue-600",integration:j},{id:"onedrive",name:"OneDrive",icon:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"currentColor",children:(0,s.jsx)("path",{d:"M10.084 10.44l4.511-1.336 4.299 2.596-4.511 1.336-4.299-2.596zm6.816 3.192l-4.511 1.336-4.299-2.596 4.511-1.336 4.299 2.596zM9.4 7.056l4.511-1.336 4.299 2.596-4.511 1.336L9.4 7.056zm-4.51 1.336l4.51-1.336 4.299 2.596-4.51 1.336L4.89 8.392zm4.51 4.644L4.89 11.7l4.51-1.336 4.299 2.596-4.299 2.076zm9.61.84l-4.51 1.336-4.299-2.596 4.51-1.336 4.299 2.596z"})}),color:"bg-sky-500 hover:bg-sky-600",integration:y}];if(o)return(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsx)(v.A,{className:"h-8 w-8 animate-spin text-muted-foreground"})});let C=j||y;return(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"text-center mb-6",children:[(0,s.jsx)("div",{className:"flex justify-center mb-4",children:(0,s.jsx)("div",{className:"p-4 bg-purple-50 dark:bg-purple-950 rounded-full",children:(0,s.jsx)(u.A,{className:"h-8 w-8 text-purple-500"})})}),(0,s.jsx)("h3",{className:"text-lg font-medium",children:"Import from Cloud Storage"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Connect your cloud storage to import videos directly"})]}),(0,s.jsx)("div",{className:"grid gap-4 sm:grid-cols-2",children:k.map(e=>(0,s.jsxs)("div",{className:"border rounded-lg p-4 flex flex-col items-center space-y-3",children:[(0,s.jsx)("div",{className:"p-3 rounded-full text-white ".concat(e.color),children:e.icon}),(0,s.jsx)("h4",{className:"font-medium",children:e.name}),e.integration?(0,s.jsxs)("div",{className:"text-center space-y-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-sm text-green-600",children:[(0,s.jsx)(N.A,{className:"h-4 w-4"}),"Connected"]}),e.integration.account_email&&(0,s.jsx)("p",{className:"text-xs text-muted-foreground truncate max-w-[150px]",children:e.integration.account_email}),(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(w.$,{size:"sm",variant:"outline",disabled:!0,children:"Browse Files"}),(0,s.jsx)(w.$,{size:"sm",variant:"ghost",onClick:()=>p(e.id),children:(0,s.jsx)(T,{className:"h-4 w-4"})})]})]}):(0,s.jsx)(w.$,{onClick:()=>x(e.id),disabled:d===e.id,variant:"outline",size:"sm",children:d===e.id?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Connecting..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Connect"]})})]},e.id))}),C&&(0,s.jsxs)(b.Fc,{children:[(0,s.jsx)(f.A,{className:"h-4 w-4"}),(0,s.jsx)(b.TN,{children:'File picker coming soon! For now, you can download the video from your cloud storage and use the "Upload File" or "From URL" option.'})]}),!C&&(0,s.jsxs)("div",{className:"text-center py-4 text-sm text-muted-foreground",children:[(0,s.jsx)("p",{children:"Connect a cloud storage provider to import videos directly."}),(0,s.jsx)("p",{className:"mt-1",children:"Your files remain private - we only access what you select."})]})]})}function S(e){let{onImportComplete:a,onImportError:t,languageCode:n}=e,[l,i]=(0,r.useState)(null),[o,c]=(0,r.useState)(!0),[d,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{u()},[]);let u=async()=>{try{let a=await fetch("/api/integrations/status");if(a.ok){var e;let t=null==(e=(await a.json()).integrations)?void 0:e.find(e=>"zoom"===e.provider&&e.is_active);i(t||null)}}catch(e){console.error("Failed to fetch Zoom integration:",e)}finally{c(!1)}},x=async()=>{m(!0);try{window.location.href="/api/integrations/zoom/connect"}catch(e){console.error("Failed to start Zoom OAuth flow:",e),m(!1)}},p=async()=>{try{(await fetch("/api/integrations/zoom/disconnect",{method:"POST"})).ok&&i(null)}catch(e){console.error("Failed to disconnect Zoom:",e)}};return o?(0,s.jsx)("div",{className:"flex items-center justify-center py-12",children:(0,s.jsx)(v.A,{className:"h-8 w-8 animate-spin text-muted-foreground"})}):(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"text-center mb-6",children:[(0,s.jsx)("div",{className:"flex justify-center mb-4",children:(0,s.jsx)("div",{className:"p-4 bg-blue-50 dark:bg-blue-950 rounded-full",children:(0,s.jsx)(h.A,{className:"h-8 w-8 text-blue-600"})})}),(0,s.jsx)("h3",{className:"text-lg font-medium",children:"Import from Zoom"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Import your Zoom cloud recordings directly"})]}),(0,s.jsx)("div",{className:"border rounded-lg p-6",children:(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-4",children:[(0,s.jsx)("div",{className:"p-3 bg-blue-600 rounded-full text-white",children:(0,s.jsx)("svg",{viewBox:"0 0 24 24",className:"h-6 w-6",fill:"currentColor",children:(0,s.jsx)("path",{d:"M4.585 4.585A9.89 9.89 0 0112 2c2.762 0 5.264 1.12 7.071 2.929L12 12 4.929 4.929c-.12.12-.234.245-.344.371-.11-.125-.11-.126 0-.715zm14.83 0A9.89 9.89 0 0122 12c0 2.762-1.12 5.264-2.929 7.071L12 12l7.071-7.071c.12-.12.245-.234.371-.344-.125-.11-.126-.11-.027 0zM4.585 19.415A9.89 9.89 0 012 12c0-2.762 1.12-5.264 2.929-7.071L12 12l-7.071 7.071c-.12.12-.234.245-.344.371.125.11.126.11.027 0-.11.125-.11.126 0 .715-.11.125-.126.11 0-.71
15.11-.125.126-.11-.027 0-.125.11-.126.11 0-.027.11-.125.11-.126 0-.715.11-.125.126-.11-.027 0z"})})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"font-medium",children:"Zoom Account"}),l?(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:l.account_email||l.account_name||"Connected"}):(0,s.jsx)("p",{className:"text-sm text-muted-foreground",children:"Not connected"})]})]}),l?(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1 text-sm text-green-600 mr-2",children:[(0,s.jsx)(N.A,{className:"h-4 w-4"}),"Connected"]}),(0,s.jsx)(w.$,{size:"sm",variant:"ghost",onClick:p,children:(0,s.jsx)(T,{className:"h-4 w-4"})})]}):(0,s.jsx)(w.$,{onClick:x,disabled:d,variant:"outline",children:d?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v.A,{className:"mr-2 h-4 w-4 animate-spin"}),"Connecting..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(A.A,{className:"mr-2 h-4 w-4"}),"Connect Zoom"]})})]})}),l?(0,s.jsxs)(b.Fc,{children:[(0,s.jsx)(f.A,{className:"h-4 w-4"}),(0,s.jsxs)(b.TN,{children:["Recording picker coming soon! For now, you can download recordings from"," ",(0,s.jsx)("a",{href:"https://zoom.us/recording",target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:underline",children:"Zoom's website"})," ",'and use the "Upload File" or "From URL" option.']})]}):(0,s.jsxs)("div",{className:"text-center py-4 text-sm text-muted-foreground space-y-2",children:[(0,s.jsx)("p",{children:"Connect your Zoom account to import cloud recordings."}),(0,s.jsxs)("p",{className:"text-xs",children:[(0,s.jsx)("strong",{children:"Requirements:"})," Zoom Pro, Business, or Enterprise account with cloud recording enabled."]})]}),(0,s.jsx)("div",{className:"border-t pt-4",children:(0,s.jsxs)("p",{className:"text-xs text-muted-foreground",children:[(0,s.jsx)("strong",{children:"Note:"}),' Only cloud recordings are supported. Local recordings stored on your computer can be imported using the "Upload File" tab.']})})]})}function U(e){var a;let{onUploadComplete:t,onUploadError:j,onImportStarted:v,className:N,preSelectedFile:f,defaultTab:b="upload"}=e,[w,k]=(0,r.useState)("auto"),[A,T]=(0,r.useState)(b),U=(0,g.KH)("video_upload_cloud_sources"),L=(0,g.KH)("video_upload_zoom"),I=(0,r.useMemo)(()=>{let e=2;return U&&e++,L&&e++,e},[U,L]),z=(e,a,s)=>{a&&s&&t(a,s,w),v&&v(e)};return(0,s.jsx)(l.Zp,{className:(0,p.cn)("relative overflow-hidden",N),children:(0,s.jsxs)("div",{className:"p-6",children:[(0,s.jsxs)("div",{className:"mb-6",children:[(0,s.jsxs)(i.Label,{htmlFor:"language-select",className:"flex items-center gap-2 mb-2",children:[(0,s.jsx)(c.A,{className:"h-4 w-4"}),"Transcript Language"]}),(0,s.jsxs)(o.l6,{value:w,onValueChange:k,children:[(0,s.jsx)(o.bq,{id:"language-select",className:"w-full",children:(0,s.jsx)(o.yv,{placeholder:"Select language"})}),(0,s.jsx)(o.gC,{children:x.mN.map(e=>(0,s.jsxs)(o.eb,{value:e.value,children:[e.label,"tier"in e&&"best"===e.tier&&(0,s.jsx)("span",{className:"ml-2 text-xs text-blue-500",children:"⢠Best"})]},e.value))})]}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"auto"===w?"The system will automatically detect the language of your video":"Transcript will be generated in ".concat((null==(a=x.mN.find(e=>e.value===w))?void 0:a.label)||w)})]}),(0,s.jsxs)(n.Tabs,{value:A,onValueChange:e=>T(e),children:[(0,s.jsxs)(n.TabsList,{className:(0,p.cn)("grid w-full mb-6",2===I&&"grid-cols-2",3===I&&"grid-cols-3",4===I&&"grid-cols-4"),children:[(0,s.jsxs)(n.TabsTrigger,{value:"upload",className:"flex items-center gap-2",children:[(0,s.jsx)(d.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Upload File"}),(0,s.jsx)("span",{className:"sm:hidden",children:"Upload"})]}),(0,s.jsxs)(n.TabsTrigger,{value:"url",className:"flex items-center gap-2",children:[(0,s.jsx)(m.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"From URL"}),(0,s.jsx)("span",{className:"sm:hidden",children:"URL"})]}),U&&(0,s.jsxs)(n.TabsTrigger,{value:"cloud",className:"flex items-center gap-2",children:[(0,s.jsx)(u.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Cloud Storage"}),(0,s.jsx)("span",{className:"sm:hidden",children:"Cloud"})]}),L&&(0,s.jsxs)(n.TabsTrigger,{value:"zoom",className:"flex items-center gap-2",children:[(0,s.jsx)(h.A,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"hidden sm:inline",children:"Zoom"}),(0,s.jsx)("span",{className:"sm:hidden",children:"Zoom"})]})]}),(0,s.jsx)(n.TabsContent,{value:"upload",className:"mt-0",children:(0,s.jsx)(y,{onUploadComplete:t,onUploadError:j,preSelectedFile:f,selectedLanguage:w})}),(0,s.jsx)(n.TabsContent,{value:"url",className:"mt-0",children:(0,s.jsx)(C,{onImportComplete:z,onImportError:j,languageCode:w})}),U&&(0,s.jsx)(n.TabsContent,{value:"cloud",className:"mt-0",children:(0,s.jsx)(F,{onImportComplete:z,onImportError:j,languageCode:w})}),L&&(0,s.jsx)(n.TabsContent,{value:"zoom",className:"mt-0",children:(0,s.jsx)(S,{onImportComplete:z,onImportError:j,languageCode:w})})]})]})})}}}]); 2//# sourceMappingURL=93988.e777be6f2d2a874d.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.