PageSourceSearch

https://hideaway.chat/assets/video-ai-demo-CJ_o1rE5.js

js hideaway.chat collected 2026-10-09 17:50:40 UTC 15,032 bytes, 2 lines download raw bytes

1import{i as a,j as e}from"./vendor-react-B5Pseaix.js";import{dT as O,e5 as W,fX as K,fV as Q,b6 as M,eI as w,Z as p,aB as X,bg as Y,bt as H,dc as Z,eB as y,fE as V,af as P,aU as _,bf as J,fO as F}from"./HideawayBrand-B6JCvqDo.js";import{m as ee}from"./media-analysis-BSSOvr92.js";import{B as c}from"./Button-CrUKVqFn.js";import{s as se}from"./content-sharing-BrHo6xlk.js";import"./whisper-transcriber-DDlRsTNW.js";import"./runtime-CXNh-kxh.js";import"./zk-file-attachments-CZSe1Z2M.js";import"./index-B8iGKxjQ.js";import"./boot-splash-AtJZf0AM.js";import"./privacy-mode-policy-BVsxtZzg.js";import"./core-media-telemetry-BpVhhgaJ.js";import"./local-speech-intelligence-CN97YQ5q.js";import"./secure-structured-storage-BtF90tnE.js";import"./messaging-loader-CVL7yOMQ.js";import"./hideaway-stewardship-4Af-iDpA.js";import"./public-links-CbjS7WkX.js";import"./full-app-18EMxhwu.js";import"./zk-private-playback-resource-event-goq3u1hy.js";import"./recovery-code-input-B70lrfPT.js";import"./personal-preview-cache-B39e4-gA.js";import"./privacy-baseline-BcFSn41l.js";import"./burn-timer-_MRqHuou.js";import"./hideaways-api-x3SE4Eo1.js";import"./Toast-CcSXSCl4.js";import"./crypto-store-key-B4FvvkIe.js";import"./beta-access-DXDtLBoG.js";import"./network-path-policy-dVxdVi9s.js";import"./GhostSignal-C1cOgE16.js";function te({file:n,onAnalysisComplete:k}){const[m,u]=a.useState(!1),[s,b]=a.useState(null),[x,d]=a.useState(!1),[h,f]=a.useState(!0),[g,S]=a.useState(0),[N,z]=a.useState(0),[o,C]=a.useState(""),[i,j]=a.useState(!1),[r,U]=a.useState(null);a.useEffect(()=>{n&&R()},[n]);const R=async()=>{u(!0);try{const t=await ee.analyzeVideo(n,{extractKeyframes:!0,enableTranscription:!0,enableSceneDetection:!0,maxKeyframes:5});b(t),k?.(t),console.log("Video analysis completed:",t)}catch(t){console.error("Video analysis failed:",t)}finally{u(!1)}},D=()=>{r&&(x?r.pause():r.play(),d(!x))},E=()=>{r&&(r.muted=!h,f(!h))},B=()=>{r&&S(r.currentTime)},$=()=>{r&&z(r.duration)},T=t=>{const l=Math.floor(t/60),v=Math.floor(t%60);return`${l}:${v.toString().padStart(2,"0")}`},I=(t,l)=>{if(!l)return t;const v=new RegExp(`(${l})`,"gi");return t.split(v).map((A,G)=>v.test(A)?e.jsx("mark",{className:"bg-hide-green/30 text-hide-green px-1 rounded",children:A},G):A)},q=t=>{r&&(r.currentTime=t,x||(r.play(),d(!0)))},L=s?.transcript?s.transcript.split(`
2`).filter(t=>t.toLowerCase().includes(o.toLowerCase())).slice(0,10):[];return e.jsxs("div",{className:"bg-graphite rounded-xl border border-white/[0.06] overflow-hidden",children:[e.jsxs("div",{className:"relative aspect-video bg-tungsten",children:[e.jsxs("video",{ref:U,className:"w-full h-full object-contain",onTimeUpdate:B,onLoadedMetadata:$,onPlay:()=>d(!0),onPause:()=>d(!1),children:[e.jsx("source",{src:URL.createObjectURL(n),type:n.type}),"Your browser does not support the video tag."]}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(c,{size:"sm",pill:!0,onClick:D,className:"bg-white/20 backdrop-blur-sm hover:bg-white/30",children:x?e.jsx(O,{size:16}):e.jsx(W,{size:16})}),e.jsx(c,{size:"sm",pill:!0,onClick:E,className:"bg-white/20 backdrop-blur-sm hover:bg-white/30",children:h?e.jsx(K,{size:16}):e.jsx(Q,{size:16})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"bg-white/20 rounded-full h-1",children:e.jsx("div",{className:"bg-hide-green h-full rounded-full transition-all",style:{width:`${g/N*100||0}%`}})}),e.jsxs("div",{className:"text-xs text-white/80 mt-1",children:[T(g)," / ",T(N)]})]}),e.jsx(c,{size:"sm",pill:!0,className:"bg-white/20 backdrop-blur-sm hover:bg-white/30",children:e.jsx(M,{size:16})}),e.jsx(c,{size:"sm",pill:!0,className:"bg-white/20 backdrop-blur-sm hover:bg-white/30",children:e.jsx(w,{size:16})})]})}),m&&e.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx(p,{className:"w-12 h-12 text-hide-green mx-auto mb-4 animate-pulse"}),e.jsx("p",{className:"text-white font-medium",children:"AI is analyzing your video..."}),e.jsx("p",{className:"text-white/60 text-sm mt-2",children:"Extracting keyframes, transcribing audio, generating summary"})]})})]}),s&&!m&&e.jsxs("div",{className:"p-6 space-y-6",children:[s.summary&&e.jsxs("div",{className:"bg-hide-green/[0.05] border border-hide-green/20 rounded-lg p-4",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(p,{size:16,className:"text-hide-green"}),e.jsx("h3",{className:"font-semibold text-snow",children:"AI Summary"})]}),e.jsx("p",{className:"text-sm text-silver leading-relaxed",children:s.summary})]}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"bg-tungsten rounded-lg p-3 text-center",children:[e.jsx(X,{size:16,className:"text-smoke mx-auto mb-1"}),e.jsx("p",{className:"text-xs text-smoke",children:"Duration"}),e.jsx("p",{className:"text-sm font-semibold text-snow",children:T(s.metadata?.duration||0)})]}),e.jsxs("div",{className:"bg-tungsten rounded-lg p-3 text-center",children:[e.jsx(Y,{size:16,className:"text-smoke mx-auto mb-1"}),e.jsx("p",{className:"text-xs text-smoke",children:"Resolution"}),e.jsxs("p",{className:"text-sm font-semibold text-snow",children:[s.metadata?.width,"×",s.metadata?.height]})]}),e.jsxs("div",{className:"bg-tungsten rounded-lg p-3 text-center",children:[e.jsx(H,{size:16,className:"text-smoke mx-auto mb-1"}),e.jsx("p",{className:"text-xs text-smoke",children:"Transcript"}),e.jsxs("p",{className:"text-sm font-semibold text-snow",children:[s.transcript?.length||0," chars"]})]}),e.jsxs("div",{className:"bg-tungsten rounded-lg p-3 text-center",children:[e.jsx(p,{size:16,className:"text-smoke mx-auto mb-1"}),e.jsx("p",{className:"text-xs text-smoke",children:"Processing"}),e.jsxs("p",{className:"text-sm font-semibold text-snow",children:[s.processingTime,"ms"]})]})]}),s.tags.length>0&&e.jsxs("div",{children:[e.jsxs("h3",{className:"font-semibold text-snow mb-2 flex items-center gap-2",children:[e.jsx(Z,{size:16}),"Detected Topics"]}),e.jsx("div",{className:"flex flex-wrap gap-2",children:s.tags.map((t,l)=>e.jsx("span",{className:"px-3 py-1 bg-white/[0.04] border border-white/[0.08] rounded-lg text-xs text-silver",children:t},l))})]}),s.transcript&&e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("h3",{className:"font-semibold text-snow flex items-center gap-2",children:[e.jsx(y,{size:16}),"Transcript Search"]}),e.jsxs(c,{size:"sm",variant:"ghost",onClick:()=>j(!i),children:[i?"Hide":"Show"," Full Transcript"]})]}),e.jsxs("div",{className:"relative mb-4",children:[e.jsx(y,{size:14,className:"absolute left-3 top-1/2 -translate-y-1/2 text-smoke"}),e.jsx("input",{type:"text",placeholder:"Search transcript...",value:o,onChange:t=>C(t.target.value),className:"w-full bg-tungsten rounded-lg pl-9 pr-4 py-2 text-sm text-snow placeholder:text-smoke focus:outline-none transition-colors"})]}),o&&e.jsx("div",{className:"space-y-2 max-h-40 overflow-y-auto",children:L.map((t,l)=>e.jsx("div",{className:"p-2 bg-tungsten rounded text-sm text-silver cursor-pointer hover:bg-white/[0.04] transition-colors",onClick:()=>q(l/L.length*(s.metadata?.duration||0)),children:I(t,o)},l))}),i&&e.jsx("div",{className:"mt-4 p-4 bg-tungsten rounded-lg max-h-60 overflow-y-auto",children:e.jsx("div",{className:"text-sm text-silver whitespace-pre-wrap",children:o?I(s.transcript,o):s.transcript})})]})]})]})}function Pe(){const[n,k]=a.useState(null),[m,u]=a.useState(null),[s,b]=a.useState(null),[x,d]=a.use
2State(!1),[h,f]=a.useState(!1),g=a.useRef(null),S=i=>{const j=i.target.files?.[0];j&&j.type.startsWith("video/")?(k(j),b(null),u(null)):alert("Please select a video file")},N=i=>{u(i),console.log("Analysis completed:",i)},z=async()=>{if(!(!n||!m)){f(!0);try{const i=await se(n,m,[]);i.shareLink&&(b(i.shareLink.shareUrl),console.log("Content shared:",i.shareLink.shareUrl))}catch(i){console.error("Sharing failed:",i),alert("Failed to share content")}finally{f(!1)}}},o=async()=>{if(s)try{await navigator.clipboard.writeText(s),d(!0),setTimeout(()=>d(!1),2e3)}catch(i){console.error("Failed to copy link:",i)}},C=()=>{s&&window.open(s,"_blank")};return e.jsx("div",{className:"min-h-screen bg-void p-6",children:e.jsxs("div",{className:"max-w-6xl mx-auto space-y-8",children:[e.jsxs("div",{className:"text-center space-y-4",children:[e.jsxs("h1",{className:"text-4xl font-display font-bold text-snow flex items-center justify-center gap-3",children:[e.jsx(p,{className:"text-hide-green"}),"AI-Powered Video Collaboration"]}),e.jsx("p",{className:"text-lg text-silver max-w-2xl mx-auto",children:"Upload a video to see AI transcription, intelligent summaries, and frictionless sharing. No signup required for viewers 
2- instant access to your content."})]}),!n&&e.jsx("div",{className:"bg-graphite rounded-xl border border-white/[0.06] p-12",children:e.jsxs("div",{className:"text-center space-y-6",children:[e.jsx("div",{className:"w-24 h-24 mx-auto bg-hide-green/[0.1] rounded-full flex items-center justify-center",children:e.jsx(V,{size:32,className:"text-hide-green"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-semibold text-snow mb-2",children:"Upload Your Video"}),e.jsx("p",{className:"text-silver",children:"Drag and drop or click to select a video file. We'll process it with AI to extract transcripts, generate summaries, and make it instantly shareable."})]}),e.jsx("input",{ref:g,type:"file",accept:"video/*",onChange:S,className:"hidden"}),e.jsxs(c,{size:"lg",onClick:()=>g.current?.click(),className:"bg-hide-green text-black hover:bg-hide-green/90",children:[e.jsx(V,{size:20,className:"mr-2"}),"Select Video File"]}),e.jsx("div",{className:"text-xs text-smoke/60",children:"Supported formats: MP4, WebM, MOV, AVI • Max file size: 100MB"})]})}),n&&e.jsxs("div",{className:"space-y-6",children:[e.jsx(te,{file:n,onAnalysisComplete:N}),m&&e.jsxs("div",{className:"bg-graphite rounded-xl border border-white/[0.06] p-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-6",children:[e.jsxs("div",{children:[e.jsxs("h3",{className:"text-xl font-semibold text-snow flex items-center gap-2",children:[e.jsx(w,{size:20}),"Instant Sharing"]}),e.jsx("p",{className:"text-silver text-sm mt-1",children:"Share this video with anyone - they can view it instantly without signing up"})]}),e.jsx(c,{onClick:z,disabled:h||!!s,className:"bg-hide-green text-black hover:bg-hide-green/90",children:h?e.jsxs(e.Fragment,{children:[e.jsx(p,{className:"animate-pulse mr-2",size:16}),"Creating Share Link..."]}):e.jsxs(e.Fragment,{children:[e.jsx(w,{size:16,className:"mr-2"}),"Generate Share Link"]})})]}),s&&e.jsxs("div",{className:"bg-hide-green/[0.05] border border-hide-green/20 rounded-lg p-4",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(P,{className:"text-hide-green",size:16}),e.jsx("span",{className:"text-sm font-medium text-snow",children:"Share Link Created"})]}),e.jsx("div",{className:"bg-tungsten rounded px-3 py-2 font-mono text-xs text-snow break-all",children:s})]}),e.jsxs("div",{className:"flex items-center gap-2 ml-4",children:[e.jsx(c,{size:"sm",variant:"ghost",onClick:o,className:"text-snow hover:text-hide-green",children:x?e.jsx(P,{size:14}):e.jsx(_,{size:14})}),e.jsx(c,{size:"sm",variant:"ghost",onClick:C,className:"text-snow hover:text-hide-green",children:e.jsx(J,{size:14})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-silver",children:[e.jsx(F,{size:14,className:"text-hide-blue"}),e.jsx("span",{children:"Unlimited viewers"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-silver",children:[e.jsx(y,{size:14,className:"text-hide-blue"}),e.jsx("span",{children:"Searchable transcript"})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-silver",children:[e.jsx(M,{size:14,className:"text-hide-blue"}),e.jsx("span",{children:"Download enabled"})]})]})]}),!s&&e.jsxs("div",{className:"text-center py-8",children:[e.jsx("div",{className:"w-16 h-16 mx-auto bg-white/[0.04] rounded-full flex items-center justify-center mb-4",children:e.jsx(w,{size:24,className:"text-smoke"})}),e.jsx("p",{className:"text-silver",children:'Click "Generate Share Link" to create an instant-access link'})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"bg-graphite rounded-xl border border-white/[0.06] p-6",children:[e.jsx("div",{className:"w-12 h-12 bg-hide-blue/[0.1] rounded-lg flex items-center justify-center mb-4",children:e.jsx(p,{size:20,className:"text-hide-blue"})}),e.jsx("h3",{className:"font-semibold text-snow mb-2",children:"AI Analysis"}),e.jsx("p",{className:"text-sm text-silver",children:"Automatic transcription, intelligent summaries, and topic extraction"})]}),e.jsxs("div",{className:"bg-graphite rounded-xl border border-white/[0.06] p-6",children:[e.jsx("div",{className:"w-12 h-12 bg-hide-green/[0.1] rounded-lg flex items-center justify-center mb-4",children:e.jsx(y,{size:20,className:"text-hide-green"})}),e.jsx("h3",{className:"font-semibold text-snow mb-2",children:"Searchable Content"}),e.jsx("p",{className:"text-sm text-silver",children:"Search through transcripts, jump to specific timestamps, find key moments"})]}),e.jsxs("div",{className:"bg-graphite rounded-xl border border-white/[0.06] p-6",children:[e.jsx("div",{className:"w-12 h-12 bg-hide-purple/[0.1] rounded-lg flex items-center justify-center mb-4",children:e.jsx(F,{size:20,className:"text-hide-purple"})}),e.jsx("h3",{className:"font-semibold text-snow mb-2",children:"Frictionless Sharing"}),e.jsx("p",{className:"text-sm text-silver",children:"Share with anyone - no signup required, instant access to content"})]})]})]}),e.jsxs("div",{className:"bg-tungsten rounded-xl border border-white/[0.06] p-6",children:[e.jsx("h3",{className:"font-semibold text-snow mb-3",children:"Demo Features"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 text-sm text-silver",children:[e.jsxs("div",{children:[e.jsx("strong",{className:"text-snow",children:"Real Video Processing:"})," Extract keyframes, transcribe audio, generate summaries"]}),e.jsxs("div",{children:[e.jsx("strong",{className:"text-snow",children:"Searchable Transcripts:"})," Find any moment, jump to timestamp, highlight results"]}),e.jsxs("div",{children:[e.jsx("strong",{className:"text-snow",children:"Instant Sharing:"})," Generate links, no signup required, view-only access"]}),e.jsxs("div",{children:[e.jsx("strong",{className:"text-snow",children:"AI-Powered:"})," Intelligent summaries, topic extraction, content analysis"]})]})]})]})})}export{Pe as default};

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.