1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7549],{2159:(e,a,l)=>{l.d(a,{A:()=>o});var n=l(5155),i=l(2115),t=l(4027),s=l(4512),r=l(9956),c=l(4443);function d(){var e,a;let l=document;return null!=(a=null!=(e=l.fullscreenElement)?e:l.webkitFullscreenElement)?a:null}function o(e){let{artifact:a,onClose:l,actions:o=[],details:u=[],note:v,ask:m}=e,x=(0,i.useRef)(null),h=(0,i.useRef)(null),[f,p]=(0,i.useState)(!1),[b,k]=(0,i.useState)(!1),[j,w]=(0,i.useState)(!1),[N,g]=(0,i.useState)("");(0,i.useEffect)(()=>{var e;null==(e=h.current)||e.focus({preventScroll:!0})},[]),(0,i.useEffect)(()=>{let e=()=>k(d()===x.current&&null!==x.current),a=e=>{if("Escape"===e.key&&!e.defaultPrevented&&!d()){if(j)return void w(!1);l()}};return document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),window.addEventListener("keydown",a),()=>{document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e),window.removeEventListener("keydown",a)}},[l,j]);let y="image"===a.kind&&!f,I=u.length>0||!!v;return(0,n.jsxs)("div",{className:"avx avx--".concat(a.kind),role:"dialog","aria-modal":"true","aria-label":a.title,children:[(0,n.jsxs)("div",{className:"avx-bar",children:[(0,n.jsxs)("div",{className:"avx-id",children:[(0,n.jsx)("span",{className:"avx-kind",children:"image"===a.kind?"Image":"clip"===a.kind?"Clip":"video"===a.kind?"Video":a.typeLabel}),(0,n.jsx)("span",{className:"avx-name",children:a.title})]}),(0,n.jsxs)("div",{className:"avx-tools",children:[o.map(e=>e.href?(0,n.jsx)("a",{className:"avx-action",href:e.href,children:e.label},e.label):(0,n.jsx)("button",{type:"button",className:"avx-action",onClick:e.onSelect,children:e.label},e.label)),(0,n.jsx)("a",{className:"avx-icon",href:a.downloadHref,download:!0,"aria-label":"Download",title:"Download",children:(0,n.jsx)(r.I,{name:"download",size:17,"aria-hidden":!0})}),y?(0,n.jsx)("button",{type:"button",className:"avx-icon","aria-label":b?"Exit full screen":"Full screen",title:b?"Exit full screen":"Full screen",onClick:function(){var e,a;let l=x.current;if(l)if(d()){let a=document;a.exitFullscreen?a.exitFullscreen().catch(()=>{}):null==(e=a.webkitExitFullscreen)||e.call(a)}else l.requestFullscreen?l.requestFullscreen().catch(()=>{}):null==(a=l.webkitRequestFullscreen)||a.call(l)},children:(0,n.jsx)(r.I,{name:b?"minimize":"maximize",size:17,"aria-hidden":!0})}):null,I?(0,n.jsx)("button",{type:"button",className:"avx-action avx-details-toggle".concat(j?" avx-on":""),"aria-expanded":j,"aria-controls":"avx-details",onClick:()=>w(e=>!e),children:"Details"}):null,(0,n.jsx)("button",{ref:h,type:"button",className:"avx-icon avx-close","aria-label":"Close",title:"Close",onClick:l,children:(0,n.jsx)(r.I,{name:"close",size:18,"aria-hidden":!0})})]})]}),(0,n.jsxs)("div",{ref:x,className:"avx-stage",children:["image"!==a.kind||f?"clip"===a.kind?(0,n.jsx)(t.A,{clip:a.clip,className:"avx-clip"}):"video"===a.kind?(0,n.jsx)("video",{className:"avx-video",src:a.src,controls:!0,playsInline:!0,preload:"metadata","aria-label":a.title}):(0,n.jsxs)("div",{className:"avx-file",children:[(0,n.jsx)("span",{className:"avx-file-glyph","aria-hidden":!0,children:(0,n.jsx)(r.I,{name:"image"===a.kind?"image":"document",size:30})}),(0,n.jsx)("span",{className:"avx-file-name",children:a.title}),(0,n.jsx)("span",{className:"avx-file-sub",children:"image"===a.kind?"This image couldnât be shown here.":"".concat(a.typeLabel," \xb7 No preview available")}),(0,n.jsxs)("span",{className:"avx-file-actions",children:[(0,n.jsx)("a",{className:"avx-action avx-action-strong",href:"file"===a.kind?a.openHref:a.src,children:"Open"}),(0,n.jsx)("a",{className:"avx-action",href:a.downloadHref,download:!0,children:"Download"})]})]}):(0,n.jsx)("img",{className:"avx-img",src:a.src,alt:a.title,onError:()=>p(!0)}),j&&I?(0,n.jsxs)("aside",{id:"avx-details",className:"avx-details","aria-label":"Details",children:[v?(0,n.jsx)("p",{className:"avx-note",children:v}):null,(0,n.jsx)("dl",{className:"avx-dl",children:u.map(e=>(0,n.jsxs)("div",{className:"avx-row",children:[(0,n.jsx)("dt",{children:e.label}),(0,n.jsx)("dd",{children:e.href?(0,n.jsx)("a",{href:e.href,children:e.value}):e.value})]},e.label))})]}):null]}),m?(0,n.jsx)("div",{className:"avx-ask",children:(0,n.jsx)(s.A,{variant:"active",placeholder:"clip"===a.kind?"Ask Tessen about this clipâ¦"
1:"video"===a.kind?"Ask Tessen about this videoâ¦":"Ask Tessen about this fileâ¦",value:N,onChange:g,onSubmit:function(){let e=N.trim();e&&m&&("attach"in m?((0,c.Xv)(e,{attach:m.attach}),window.location.assign("/")):((0,c.Xv)(e,{context:m.context}),window.location.assign((0,c.IO)(m.conversationId))))},sendLabel:"clip"===a.kind?"Ask about this clip":"Ask about this file"})}):null]})}},4847:(e,a,l)=>{l.d(a,{s:()=>s});var n=l(4443),i=l(6634),t=l(4896);function s(e){var a;if("clip"===e.kind&&e.clip){let a=e.clip,l=e.title||e.name,i=(0,n.lp)(a.sourceId,e.id);return{artifact:{kind:"clip",id:e.id,title:l,clip:{id:e.id,format:a.format,durationMs:a.durationMs,hook:l,title:l},downloadHref:a.downloadUrl},actions:[{label:"Open in Clips",href:a.openInClipsHref}],details:[{label:"Type",value:"Clip"},...e.overlay?[{label:"Duration",value:e.overlay}]:[],...a.sourceTitle?[{label:"Source",value:a.sourceTitle}]:[],{label:"Format",value:a.format},...e.createdLabel&&"â"!==e.createdLabel?[{label:"Created",value:e.createdLabel}]:[],{label:"Clip ID",value:e.id},{label:"Source ID",value:a.sourceId}],note:null,ask:i?{context:i,conversationId:a.conversationId}:null}}let l=(0,t.I)(e),s="/api/files/".concat(e.id);return{artifact:"images"===l?{kind:"image",id:e.id,title:e.name,src:s,downloadHref:s}:"videos"===l?{kind:"video",id:e.id,title:e.name,src:s,downloadHref:s}:{kind:"file",id:e.id,title:e.name,typeLabel:function(e){switch(e){case"videos":return"Video";
1case"documents":return"Document";case"sheets":return"Spreadsheet";case"presentations":return"Presentation";case"images":return"Image";default:return"File"}}(l),openHref:s,downloadHref:s},actions:[],details:[{label:"Name",value:e.name},{label:"Size",value:(0,i.v7)(e.sizeBytes)},...e.createdLabel?[{label:"Added",value:e.createdLabel}]:[],...e.projectId&&e.projectName?[{label:"Project",value:e.projectName,href:"/projects/".concat(e.projectId)}]:[]],note:"indexed"!==e.indexState?null!=(a=e.indexNote)?a:"Tessen could not read this file, so it is not searchable.":null,ask:{attach:{id:e.id,name:e.name,contentType:e.contentType,sizeBytes:e.sizeBytes,indexed:"indexed"===e.indexState}}}}},4896:(e,a,l)=>{l.d(a,{FX:()=>s,I:()=>t,RZ:()=>r,SC:()=>i});var n=l(5621);let i=[{id:"all",label:"All"},{id:"images",label:"Images"},{id:"videos",label:"Videos"},{id:"documents",label:"Documents"},{id:"sheets",label:"Sheets"},{id:"presentations",label:"Presentations"}];function t(e){if("clip"===e.kind)return"videos";if(e.contentType.toLowerCase().startsWith("audio/"))return"other";switch((0,n.nm)(e.name,e.contentType)){case"video":return"videos";case"image":return"images";case"spreadsheet":return"sheets";case"presentation":return"presentations";case"pdf":case"word":case"document":return"documents";default:return"other"}}function s(e){let a=new Set(e.map(t)),l=i.filter(e=>"all"!==e.id&&a.has(e.id));return a.size<=1?[]:[i[0],...l]}function r(e){var a;return"clip"===e.kind?(null==(a=e.title)?void 0:a.trim())||null:"images"===t(e)?null:e.name}}}]);
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.