PageSourceSearch

https://studio.d-id.com/v0.1262.0/assets/AgenticVideoPreviewPage-DMiQra9f.js

js d-id.com collected 2026-09-24 07:59:43 UTC 2,858 bytes, 1 lines download raw bytes

1import{u as v,a as A,b as w,c as C,d as B,r as E,A as S,j as t,e as n,E as V,M as d,f as a,C as z,F as M,g as I,h as P,i,B as _,k as j,l as L}from"./index-dK-KQR3u.js";import{L as D}from"./LabsPageHeader-DAYBpV8l.js";import{S as F}from"./ShareBlack-2udh4WmY.js";const H=i("div",{target:"e1nhtdi54"})("background-color:",({theme:e})=>e.colors.secondary,";margin:-32px;height:calc(100% + 64px);width:calc(100% + 64px);box-sizing:border-box;display:flex;flex-direction:column;"),O=i("div",{target:"e1nhtdi53"})("padding:16px 32px;border-bottom:1px solid ",({theme:e})=>e.colors.black[300],";"),l=i(_,{target:"e1nhtdi52"})("height:40px;min-width:88px;border-radius:8px;font-size:14px;font-weight:600;font-family:'Manrope',sans-serif;text-transform:none;padding:0 12px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;&.MuiButton-outlined{background:",({theme:e})=>e.colors.chill.panelBg,";border-color:",({theme:e})=>e.colors.black[300],";color:",({theme:e})=>e.colors.secondary.main,";}&.MuiButton-contained{background:",({theme:e})=>e.colors.secondary.main,";color:",({theme:e})=>e.colors.white,";box-shadow:none;&:hover{background:",({theme:e})=>e.colors.secondary[800],";box-shadow:none;}}"),W=i("div",{target:"e1nhtdi51"})({name:"azf0d4",styles:"flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:24px 32px 32px;box-sizing:border-box"}),$=i("button",{target:"e1nhtdi50"})("background:none;border:none;cursor:pointer;color:",({theme:e})=>e.colors.secondary.main,";font-family:'Manrope',sans-serif;font-size:14px;font-weight:600;text-decoration:underline;margin-top:8px;"),T=()=>{const e=v(),{id:u=""}=A(),{isAnonymous:h,isAuthenticated:x}=w(),{data:s,isLoading:b,isError:m}=C(u,!!x),o=s==null?void 0:s.video,{data:c}=B({isAnonymous:h}),r=(c==null?void 0:c.client_key)??"",[f,p]=E.useState(!1);function y(){!o||!r||j(L({itemId:o.video_id,type:"agentic-video",clientKey:r,from:"share"}))}const g=(o==null?void 0:o.status)===S.Done&&!!r,k=o?t(M,{children:[o.agent_id&&t(l,{variant:"outlined",color:"secondary",onClick:()=>e(`${a.AgentEditor}/${o.agent_id}`,{state:{videoId:o.video_id,from:a.AgenticVideos}}),children:[n(d,{src:V,size:"16px",color:"currentColor"}),"Edit agent"]}),t(l,{variant:"outlined",color:"secondary",onClick:y,disabled:!g,children:[n(d,{src:F,size:"16px",color:"currentColor"}),"Share"]}),t(l,{variant:"contained",color:"secondary",onClick:()=>p(!0),disabled:!g,children:[n(d,{src:z,size:"16px",color:"currentColor"}),"Embed"]})]}):void 0;return t(H,{children:[n(O,{children:n(D,{title:(o==null?void 0:o.name)??"Agentic videos",onBack:()=>e(a.AgenticVideos),rightSlot:k})}),n(W,{children:n(I,{record:o,clientKey:r,isLoading:b,isError:m,errorAction:n($,{onClick:()=>e(a.AgenticVideos),children:"Back to library"})})}),o&&n(P,{open:f,record:o,onClose:()=>p(!1)})]})};export{T 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.