@dimples/apa 0.1.0-dev.11 → 0.1.0-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/public/assets/index-BvEvqeRM.css +1 -0
- package/dist/public/assets/index-t_D5osH9.js +56 -0
- package/dist/public/assets/project-studio-Dl7BkPQN.js +1 -0
- package/dist/public/index.html +2 -2
- package/package.json +1 -1
- package/dist/public/assets/index-DEmxICKX.js +0 -56
- package/dist/public/assets/index-DQw4u_Cs.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,A as t,B as n,C as r,D as i,E as a,F as o,G as s,H as c,I as l,J as u,K as d,L as f,M as p,N as m,O as h,P as g,Q as _,R as v,S as y,T as ee,U as b,V as x,W as S,X as C,Y as w,Z as te,_ as T,a as E,b as ne,c as D,d as re,et as O,f as ie,g as ae,h as oe,i as se,j as k,k as A,l as j,m as M,n as N,o as P,p as F,q as ce,r as le,s as ue,t as I,tt as de,u as fe,v as pe,w as me,x as he,y as ge,z as L}from"./index-t_D5osH9.js";var _e=_(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),ve=_(`camera`,[[`path`,{d:`M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z`,key:`18u6gg`}],[`circle`,{cx:`12`,cy:`13`,r:`3`,key:`1vg3eu`}]]),R=_(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),z=_(`key-square`,[[`path`,{d:`M12.4 2.7a2.5 2.5 0 0 1 3.4 0l5.5 5.5a2.5 2.5 0 0 1 0 3.4l-3.7 3.7a2.5 2.5 0 0 1-3.4 0L8.7 9.8a2.5 2.5 0 0 1 0-3.4z`,key:`165ttr`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`m9.4 10.6-6.814 6.814A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814`,key:`1ubxi2`}]]),ye=_(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),be=_(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),xe=_(`wand-sparkles`,[[`path`,{d:`m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72`,key:`ul74o6`}],[`path`,{d:`m14 7 3 3`,key:`1r5n42`}],[`path`,{d:`M5 6v4`,key:`ilb8ba`}],[`path`,{d:`M19 14v4`,key:`blhpug`}],[`path`,{d:`M10 2v2`,key:`7u0qdc`}],[`path`,{d:`M7 8H3`,key:`zfb6yr`}],[`path`,{d:`M21 16h-4`,key:`1cnmox`}],[`path`,{d:`M11 3H9`,key:`1obp7u`}]]),B=de(e(),1),Se=Object.defineProperty,Ce=(e,t)=>Se(e,`name`,{value:t,configurable:!0}),we=!1;function Te(){let[e,t]=B.useState(we);return B.useEffect(()=>{we||(we=!0,t(!0))},[]),e}Ce(Te,`useIsHydrated`);var Ee=B.useSyncExternalStore;function De(){return()=>{}}Ce(De,`subscribe`);function Oe(){return Ee(De,()=>!0,()=>!1)}Ce(Oe,`useIsHydratedModern`);var ke=typeof Ee==`function`?Oe:Te,V=O(),Ae=Object.defineProperty,H=(e,t)=>Ae(e,`name`,{value:t,configurable:!0}),je=`rovingFocusGroup.onEntryFocus`,Me={bubbles:!1,cancelable:!0},U=`RovingFocusGroup`,[Ne,Pe,Fe]=m(U),[Ie,Le]=o(U,[Fe]),Re={Vertical:`vertical`,Horizontal:`horizontal`},ze={LTR:`ltr`,RTL:`rtl`},[Be,Ve]=Ie(U),He=B.forwardRef(H(function(e,t){return(0,V.jsx)(Ne.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,V.jsx)(Ne.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,V.jsx)(Ue,{...e,ref:t})})})},`RovingFocusGroup`)),Ue=B.forwardRef(H(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...m}=e,g=B.useRef(null),_=L(t,g),v=h(o),[y,ee]=k({prop:s,defaultProp:c??null,onChange:u,caller:U}),[b,x]=B.useState(!1),S=i(d),C=Pe(n),w=B.useRef(!1),[te,T]=B.useState(0);return B.useEffect(()=>{let e=g.current;if(e)return e.addEventListener(je,S),()=>e.removeEventListener(je,S)},[S]),(0,V.jsx)(Be,{scope:n,orientation:r,dir:v,loop:a,currentTabStopId:y,onItemFocus:B.useCallback(e=>ee(e),[ee]),onItemShiftTab:B.useCallback(()=>x(!0),[]),onFocusableItemAdd:B.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:B.useCallback(()=>T(e=>e-1),[]),children:(0,V.jsx)(l.div,{tabIndex:b||te===0?-1:0,"data-orientation":r,...m,ref:_,style:{outline:`none`,...e.style},onMouseDown:p(e.onMouseDown,()=>{w.current=!0}),onFocus:p(e.onFocus,e=>{let t=!w.current;if(e.target===e.currentTarget&&t&&!b){let t=new CustomEvent(je,Me);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=C().filter(e=>e.focusable);Ye([e.find(e=>e.active),e.find(e=>e.id===y),...e].filter(Boolean).map(e=>e.ref.current),f)}}w.current=!1}),onBlur:p(e.onBlur,()=>x(!1))})})},`RovingFocusGroupImpl`)),We=`RovingFocusGroupItem`,Ge=B.forwardRef(H(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=A(),u=a||c,d=Ve(We,n),f=d.currentTabStopId===u,m=Pe(n),{onFocusableItemAdd:h,onFocusableItemRemove:_,currentTabStopId:v}=d,y=ke();return g(()=>{if(y&&r)return h(),()=>_()},[y,r,h,_]),B.useEffect(()=>{if(!y&&r)return h(),()=>_()},[y,r,h,_]),(0,V.jsx)(Ne.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,V.jsx)(l.span,{tabIndex:f?0:-1,"data-orientation":d.orientation,...s,ref:t,onMouseDown:p(e.onMouseDown,e=>{r?d.onItemFocus(u):e.preventDefault()}),onFocus:p(e.onFocus,()=>d.onItemFocus(u)),onKeyDown:p(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=Je(e,d.orientation,d.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=m().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=d.loop?Xe(n,r+1):n.slice(r+1)}setTimeout(()=>Ye(n))}}),children:typeof o==`function`?o({isCurrentTabStop:f,hasTabStop:v!=null}):o})})},`RovingFocusGroupItem`)),Ke={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function qe(e,t){return t===ze.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}H(qe,`getDirectionAwareKey`);function Je(e,t,n){let r=qe(e.key,n);if(!(t===Re.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===Re.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return Ke[r]}H(Je,`getFocusIntent`);function Ye(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}H(Ye,`focusFirst`);function Xe(e,t){return e.map((n,r)=>e[(t+r)%e.length])}H(Xe,`wrapArray`);var Ze=Object.defineProperty,W=(e,t)=>Ze(e,`name`,{value:t,configurable:!0}),Qe=[`Enter`,` `],$e=[`ArrowDown`,`PageUp`,`Home`],et=[`ArrowUp`,`PageDown`,`End`],tt=[...$e,...et];[...Qe],[...Qe];var G=`Menu`,[K,nt,rt]=m(G),[q,it]=o(G,[rt,T,Le]),at=T(),ot=Le(),[st,J]=q(G),[ct,lt]=q(G),ut=W(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:a,onOpenChange:o,modal:s=!0}=e,c=at(t),[l,u]=B.useState(null),d=B.useRef(!1),f=i(o),p=h(a);return B.useEffect(()=>{let e=W(()=>{d.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=W(()=>d.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),B.useEffect(()=>{if(!n)return;let e=W(()=>f(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,f]),(0,V.jsx)(M,{...c,children:(0,V.jsx)(st,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:u,children:(0,V.jsx)(ct,{scope:t,onClose:B.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:d,dir:p,modal:s,children:r})})})},`Menu`),dt=B.forwardRef(W(function(e,t){let{__scopeMenu:n,...r}=e,i=at(n);return(0,V.jsx)(oe,{...i,...r,ref:t})},`MenuAnchor`)),ft=`MenuPortal`,[pt,mt]=q(ft,{forceMount:void 0}),ht=W(e=>{let{__scopeMenu:n,forceMount:r,children:i,container:a}=e,o=J(ft,n);return(0,V.jsx)(pt,{scope:n,forceMount:r,children:(0,V.jsx)(t,{present:r||o.open,children:(0,V.jsx)(he,{asChild:!0,container:a,children:i})})})},`MenuPortal`),Y=`MenuContent`,[gt,_t]=q(Y),vt=B.forwardRef(W(function(e,n){let r=mt(Y,e.__scopeMenu),{forceMount:i=r.forceMount,...a}=e,o=J(Y,e.__scopeMenu),s=lt(Y,e.__scopeMenu);return(0,V.jsx)(K.Provider,{scope:e.__scopeMenu,children:(0,V.jsx)(t,{present:i||o.open,children:(0,V.jsx)(K.Slot,{scope:e.__scopeMenu,children:s.modal?(0,V.jsx)(yt,{...a,ref:n}):(0,V.jsx)(bt,{...a,ref:n})})})})},`MenuContent`)),yt=B.forwardRef(W(function(e,t){let n=J(Y,e.__scopeMenu),r=B.useRef(null),i=L(t,r);return B.useEffect(()=>{let e=r.current;if(e)return pe(e)},[]),(0,V.jsx)(St,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:p(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),bt=B.forwardRef(W(function(e,t){let n=J(Y,e.__scopeMenu);return(0,V.jsx)(St,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),xt=v(`MenuContent.ScrollLock`),St=B.forwardRef(W(function(e,t){let{__scopeMenu:n,loop:i=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:g,disableOutsideScroll:_,...v}=e,b=J(Y,n),x=lt(Y,n),S=at(n),C=ot(n),w=nt(n),[te,T]=B.useState(null),E=B.useRef(null),[D,re]=B.useState(null);me(D);let{nodes:O,registry:ie}=ee(),oe=!!(o||_),se=L(t,E,b.onContentChange,re),k=B.useRef(0),A=B.useRef(``),j=B.useRef(0),M=B.useRef(null),N=B.useRef(`right`),P=B.useRef(0),F=B.useMemo(()=>_?[E,...O.map(e=>({current:e}))]:[],[E,O,_]),ce=_?ge:B.Fragment,le=_?{as:xt,allowPinchZoom:!0,shards:F}:void 0,ue=W(e=>{let t=A.current+e,n=w().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=Bt(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;function s(e){A.current=e,window.clearTimeout(k.current),e!==``&&(k.current=window.setTimeout(()=>s(``),1e3))}W(s,`updateSearch`),s(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);B.useEffect(()=>()=>window.clearTimeout(k.current),[]),ne();let I=B.useCallback(e=>N.current===M.current?.side&&Ht(e,M.current?.area),[]);return(0,V.jsx)(gt,{scope:n,searchRef:A,onItemEnter:B.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:B.useCallback(e=>{I(e)||(E.current?.focus(),T(null))},[I]),onTriggerLeave:B.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:j,onPointerGraceIntentChange:B.useCallback(e=>{M.current=e},[]),children:(0,V.jsx)(r,{registry:oe?ie:null,children:(0,V.jsx)(ce,{...le,children:(0,V.jsx)(y,{asChild:!0,trapped:o,branches:O,onMountAutoFocus:p(s,e=>{e.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:(0,V.jsx)(a,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,onDismiss:g,children:(0,V.jsx)(He,{asChild:!0,...C,dir:x.dir,orientation:`vertical`,loop:i,currentTabStopId:te,onCurrentTabStopIdChange:T,onEntryFocus:p(u,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,V.jsx)(ae,{role:`menu`,"aria-orientation":`vertical`,"data-state":Ft(b.open),"data-radix-menu-content":``,dir:x.dir,...S,...v,ref:se,style:{outline:`none`,...v.style},onKeyDown:p(v.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ue(e.key));let i=E.current;if(e.target!==i||!tt.includes(e.key))return;e.preventDefault();let a=w().filter(e=>!e.disabled).map(e=>e.ref.current);et.includes(e.key)&&a.reverse(),Rt(a)}),onBlur:p(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(k.current),A.current=``)}),onPointerMove:p(e.onPointerMove,X(e=>{let t=e.target,n=P.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>P.current?`right`:`left`;N.current=t,P.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),Ct=B.forwardRef(W(function(e,t){let{__scopeMenu:n,...r}=e;return(0,V.jsx)(l.div,{...r,ref:t})},`MenuLabel`)),wt=`MenuItem`,Tt=`menu.itemSelect`,Et=B.forwardRef(W(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=B.useRef(null),o=lt(wt,e.__scopeMenu),s=_t(wt,e.__scopeMenu),c=L(t,a),l=B.useRef(!1),u=W(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Tt,{bubbles:!0,cancelable:!0});e.addEventListener(Tt,e=>r?.(e),{once:!0}),f(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,V.jsx)(Dt,{...i,ref:c,disabled:n,onClick:p(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:p(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:p(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&Qe.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Dt=B.forwardRef(W(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=_t(wt,n),s=ot(n),c=B.useRef(null),u=L(t,c),[d,f]=B.useState(!1),[m,h]=B.useState(``);return B.useEffect(()=>{let e=c.current;e&&h((e.textContent??``).trim())},[a.children]),(0,V.jsx)(K.ItemSlot,{scope:n,disabled:r,textValue:i??m,children:(0,V.jsx)(Ge,{asChild:!0,...s,focusable:!r,children:(0,V.jsx)(l.div,{role:`menuitem`,"data-highlighted":d?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:u,onPointerMove:p(e.onPointerMove,X(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:p(e.onPointerLeave,X(e=>o.onItemLeave(e))),onFocus:p(e.onFocus,()=>f(!0)),onBlur:p(e.onBlur,()=>f(!1))})})})},`MenuItemImpl`)),[Ot,kt]=q(`MenuRadioGroup`,{value:void 0,onValueChange:W(()=>{},`onValueChange`)}),[At,jt]=q(`MenuItemIndicator`,{checked:!1}),Mt=B.forwardRef(W(function(e,t){let{__scopeMenu:n,...r}=e;return(0,V.jsx)(l.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[Nt,Pt]=q(`MenuSub`);function Ft(e){return e?`open`:`closed`}W(Ft,`getOpenState`);function It(e){return e===`indeterminate`}W(It,`isIndeterminate`);function Lt(e){return It(e)?`indeterminate`:e?`checked`:`unchecked`}W(Lt,`getCheckedState`);function Rt(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}W(Rt,`focusFirst`);function zt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}W(zt,`wrapArray`);function Bt(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=zt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}W(Bt,`getNextMatch`);function Vt(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}W(Vt,`isPointInPolygon`);function Ht(e,t){return t?Vt({x:e.clientX,y:e.clientY},t):!1}W(Ht,`isPointerInGraceArea`);function X(e){return t=>t.pointerType===`mouse`?e(t):void 0}W(X,`whenMouse`);var Ut=Object.defineProperty,Z=(e,t)=>Ut(e,`name`,{value:t,configurable:!0}),Q=`DropdownMenu`,[Wt,Gt]=o(Q,[it]),$=it(),[Kt,qt]=Wt(Q),Jt=Z(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=$(t),l=B.useRef(null),[u,d]=k({prop:i,defaultProp:a??!1,onChange:o,caller:Q});return(0,V.jsx)(Kt,{scope:t,triggerId:A(),triggerRef:l,contentId:A(),open:u,onOpenChange:d,onOpenToggle:B.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,V.jsx)(ut,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),Yt=`DropdownMenuTrigger`,Xt=B.forwardRef(Z(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=qt(Yt,n),o=$(n),s=L(t,a.triggerRef);return(0,V.jsx)(dt,{asChild:!0,...o,children:(0,V.jsx)(l.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:p(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:p(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Zt=Z(e=>{let{__scopeDropdownMenu:t,...n}=e,r=$(t);return(0,V.jsx)(ht,{...r,...n})},`DropdownMenuPortal`),Qt=`DropdownMenuContent`,$t=B.forwardRef(Z(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=qt(Qt,n),a=$(n),o=B.useRef(!1);return(0,V.jsx)(vt,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:p(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:p(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),en=B.forwardRef(Z(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,V.jsx)(Ct,{...i,...r,ref:t})},`DropdownMenuLabel`)),tn=B.forwardRef(Z(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,V.jsx)(Et,{...i,...r,ref:t})},`DropdownMenuItem`)),nn=B.forwardRef(Z(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=$(n);return(0,V.jsx)(Mt,{...i,...r,ref:t})},`DropdownMenuSeparator`));function rn({...e}){return(0,V.jsx)(Jt,{"data-slot":`dropdown-menu`,...e})}function an({...e}){return(0,V.jsx)(Xt,{"data-slot":`dropdown-menu-trigger`,...e})}function on({className:e,sideOffset:t=4,...r}){return(0,V.jsx)(Zt,{children:(0,V.jsx)($t,{"data-slot":`dropdown-menu-content`,sideOffset:t,className:n(`z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95`,e),...r})})}function sn({className:e,inset:t,variant:r=`default`,...i}){return(0,V.jsx)(tn,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":r,className:n(`relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!`,e),...i})}function cn({className:e,inset:t,...r}){return(0,V.jsx)(en,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:n(`px-2 py-1.5 text-sm font-medium data-[inset]:pl-8`,e),...r})}function ln({className:e,...t}){return(0,V.jsx)(nn,{"data-slot":`dropdown-menu-separator`,className:n(`-mx-1 my-1 h-px bg-border`,e),...t})}var un={draft:`text-muted-foreground`,keyframe:`text-amber-400`,generating:`text-[#0070f3]`,ready:`text-emerald-400`,failed:`text-red-400`};function dn({shots:e,activeShotId:t,onSelect:n}){return(0,V.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto`,children:(0,V.jsxs)(`div`,{className:`flex flex-col gap-1 p-2`,children:[e.map((e,r)=>(0,V.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),className:j(`group flex w-full items-start gap-2.5 rounded-md border p-2.5 text-left transition-colors`,e.id===t?`border-foreground/25 bg-foreground/[0.06]`:`border-transparent hover:border-foreground/15 hover:bg-foreground/[0.04]`),children:[(0,V.jsx)(`div`,{className:j(`flex h-10 w-16 shrink-0 items-center justify-center overflow-hidden rounded border`,e.status===`ready`?`bg-emerald-500/10 text-emerald-400`:e.status===`generating`?`bg-[#0070f3]/10 text-[#0070f3]`:e.status===`keyframe`?`bg-amber-500/10 text-amber-400`:e.status===`failed`?`bg-destructive/15 text-red-400`:`bg-muted text-muted-foreground`),children:e.status===`generating`?(0,V.jsx)(w,{className:`size-4 animate-spin`}):e.status===`ready`?(0,V.jsx)(xe,{className:`size-4`}):e.status===`keyframe`?(0,V.jsx)(z,{className:`size-4`}):(0,V.jsx)(R,{className:`size-4`})}),(0,V.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,V.jsx)(`span`,{className:`text-[12px] font-medium tabular-nums`,children:e.code}),(0,V.jsxs)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:[e.duration,`s`]}),(0,V.jsx)(`span`,{className:j(`ml-auto text-[10px]`,un[e.status]),children:c[e.status]})]}),(0,V.jsx)(`p`,{className:`mt-0.5 line-clamp-2 text-[11.5px] leading-4 text-muted-foreground`,children:e.description||`(待补充画面描述)`})]}),(0,V.jsx)(`span`,{className:`mt-0.5 hidden text-[10px] tabular-nums text-muted-foreground/60 group-hover:inline`,children:String(r+1).padStart(2,`0`)})]},e.id)),e.length===0?(0,V.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-10 text-muted-foreground`,children:[(0,V.jsx)(R,{className:`size-5`}),(0,V.jsx)(`p`,{className:`text-[12px]`,children:`本集还没有镜头`})]}):null]})})}var fn={draft:`border-zinc-500/40 text-zinc-400`,keyframe:`border-amber-500/40 text-amber-400`,generating:`border-[#0070f3]/40 text-[#0070f3]`,ready:`border-emerald-500/40 text-emerald-400`,failed:`border-destructive/50 bg-destructive/10 text-red-400`};function pn({shot:e,episodeMeta:t,onGenerate:n}){return(0,V.jsxs)(`div`,{className:`relative flex min-h-0 flex-1 flex-col`,children:[(0,V.jsx)(`div`,{className:`relative flex min-h-0 flex-1 items-center justify-center overflow-hidden bg-zinc-950`,children:e?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{className:`absolute inset-0`,style:{backgroundColor:`oklch(0.13 0.02 250)`,backgroundImage:`radial-gradient(60% 55% at 30% 35%, oklch(0.28 0.05 250), transparent 70%), radial-gradient(45% 40% at 75% 70%, oklch(0.2 0.03 230), transparent 75%)`}}),(0,V.jsx)(`div`,{className:`pointer-events-none absolute inset-0 opacity-[0.15] mix-blend-overlay`,style:{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E")`,backgroundSize:`120px 120px`}}),(0,V.jsx)(`span`,{className:`pointer-events-none absolute right-6 top-4 text-[120px] leading-none font-bold tracking-tighter select-none`,style:{color:`oklch(1 0 0 / 5%)`},children:e.code.split(`-`)[1]}),(0,V.jsxs)(`div`,{className:`absolute inset-x-0 top-0 flex items-center justify-between gap-3 bg-gradient-to-b from-black/70 to-transparent px-4 py-3`,children:[(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,V.jsxs)(I,{variant:`outline`,className:mn(fn[e.status]),children:[e.status===`generating`?(0,V.jsx)(`span`,{className:`mr-1 inline-block size-1.5 animate-pulse rounded-full bg-current`}):null,c[e.status]]}),(0,V.jsx)(`span`,{className:`text-[12px] font-medium tabular-nums text-white/80`,children:e.code}),(0,V.jsxs)(`span`,{className:`text-[11px] text-white/40`,children:[`EP`,String(t.number).padStart(2,`0`),` · 镜头`,` `,String(t.index).padStart(2,`0`),`/`,t.total]})]}),(0,V.jsxs)(`span`,{className:`text-[12px] tabular-nums text-white/60`,children:[e.duration,`s`]})]}),(0,V.jsxs)(`div`,{className:`absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/80 to-transparent px-4 pt-10 pb-4`,children:[(0,V.jsx)(`p`,{className:`max-w-2xl text-[13px] leading-5 text-white/85`,children:e.description||`(待补充画面描述——在右侧属性面板填写导演意图)`}),e.line?(0,V.jsxs)(`p`,{className:`mt-1.5 text-[12px] text-white/50`,children:[`「`,e.line,`」`]}):null]})]}):(0,V.jsxs)(`div`,{className:`flex flex-col items-center gap-3 text-muted-foreground`,children:[(0,V.jsx)(C,{className:`size-8`}),(0,V.jsx)(`p`,{className:`text-[13px]`,children:`本集暂无镜头,从左栏或顶部按钮添加`})]})}),(0,V.jsxs)(`div`,{className:`flex h-12 shrink-0 items-center gap-2 border-t px-4`,children:[(0,V.jsx)(`span`,{className:`text-[12px] text-muted-foreground`,children:`关键帧驱动 · AI 依首帧补全本镜头画面`}),(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,V.jsxs)(F,{variant:`outline`,size:`sm`,className:`gap-1.5`,children:[(0,V.jsx)(xe,{className:`size-3.5`}),`编辑关键帧`]}),(0,V.jsxs)(F,{size:`sm`,className:`gap-1.5`,onClick:n,disabled:!e,children:[(0,V.jsx)(ye,{className:`size-3.5`}),e?.status===`generating`?`生成中…`:`AI 生成本镜头`]})]})]})]})}function mn(e){return`bg-background/60 backdrop-blur-sm ${e}`}function hn({shot:e,onChange:t}){return(0,V.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-y-auto`,children:[(0,V.jsxs)(`div`,{className:`flex h-10 shrink-0 items-center gap-2 border-b px-3`,children:[(0,V.jsx)(C,{className:`size-3.5 text-muted-foreground`}),(0,V.jsx)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:`镜头属性`}),(0,V.jsx)(`span`,{className:`ml-auto text-[11px] tabular-nums text-muted-foreground`,children:e.code})]}),(0,V.jsxs)(`div`,{className:`flex flex-col gap-5 p-4`,children:[(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsxs)(D,{className:`flex items-center gap-1.5 text-[12px] text-muted-foreground`,children:[(0,V.jsx)(z,{className:`size-3.5`}),`首帧关键帧`]}),(0,V.jsx)(N,{value:e.keyframe.description,onChange:n=>t({keyframe:{...e.keyframe,description:n.target.value}}),placeholder:`描述关键帧画面——AI 依此补全本镜头动态`,rows:3,className:`resize-none text-[13px]`}),(0,V.jsx)(`p`,{className:`text-[11px] leading-4 text-muted-foreground/70`,children:`关键帧是本镜头的视觉锚点。AI 将依此帧生成整段镜头画面。`})]}),(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsxs)(D,{className:`flex items-center gap-1.5 text-[12px] text-muted-foreground`,children:[(0,V.jsx)(be,{className:`size-3.5`}),`画面描述`]}),(0,V.jsx)(N,{value:e.description,onChange:e=>t({description:e.target.value}),placeholder:`导演意图:发生了什么、情绪基调…`,rows:3,className:`resize-none text-[13px]`})]}),(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsxs)(D,{className:`flex items-center gap-1.5 text-[12px] text-muted-foreground`,children:[(0,V.jsx)(ve,{className:`size-3.5`}),`运镜方式`]}),(0,V.jsxs)(le,{value:e.camera,onValueChange:e=>t({camera:e}),children:[(0,V.jsx)(P,{className:`h-9 w-full`,children:(0,V.jsx)(ue,{})}),(0,V.jsx)(se,{children:x.map(e=>(0,V.jsx)(E,{value:e,children:e},e))})]})]}),(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsx)(D,{className:`text-[12px] text-muted-foreground`,children:`台词 / 旁白`}),(0,V.jsx)(N,{value:e.line??``,onChange:e=>t({line:e.target.value}),placeholder:`本镜头的对白或旁白…`,rows:2,className:`resize-none text-[13px]`})]}),(0,V.jsxs)(`div`,{className:`grid gap-2`,children:[(0,V.jsx)(D,{className:`text-[12px] text-muted-foreground`,children:`时长(秒)`}),(0,V.jsx)(ie,{type:`number`,min:1,max:30,value:e.duration,onChange:e=>{let n=Number.parseInt(e.target.value,10);!Number.isNaN(n)&&n>=1&&n<=30&&t({duration:n})},className:`h-9 w-24 text-[13px] tabular-nums`})]}),(0,V.jsx)(`div`,{className:`rounded-md border bg-muted/40 px-3 py-2`,children:(0,V.jsxs)(`p`,{className:`text-[11px] leading-4 text-muted-foreground`,children:[`状态:`,c[e.status],`。`,e.status===`ready`?`本镜头画面已生成,可在时间线预览。`:e.status===`generating`?`AI 正在补全本镜头画面…`:e.status===`keyframe`?`关键帧已定,可在预览区发起 AI 补全。`:`先定关键帧,再由 AI 补全镜头画面。`]})})]})]})}var gn={draft:`border-zinc-700 bg-zinc-900 text-zinc-500`,keyframe:`border-amber-500/40 bg-amber-500/10 text-amber-300`,generating:`border-[#0070f3]/50 bg-[#0070f3]/15 text-[#6cb8ff] animate-pulse`,ready:`border-emerald-500/40 bg-emerald-500/10 text-emerald-300`,failed:`border-destructive/60 bg-destructive/10 text-red-300 [background-image:repeating-linear-gradient(45deg,transparent_0px,transparent_4px,rgba(239,68,68,0.12)_4px,rgba(239,68,68,0.12)_8px)]`};function _n({shots:e,activeShotId:t,onSelect:n,total:r}){return(0,V.jsxs)(`div`,{className:`shrink-0 border-t`,children:[(0,V.jsxs)(`div`,{className:`flex h-6 items-center justify-between border-b px-4 text-[10px] tabular-nums text-muted-foreground/60`,children:[(0,V.jsx)(`span`,{children:`时间线 · 关键帧驱动`}),(0,V.jsxs)(`span`,{children:[`总时长 `,S(r)]})]}),(0,V.jsxs)(`div`,{className:`flex h-24 items-stretch gap-px overflow-x-auto bg-zinc-950/60 p-2`,children:[e.length===0?(0,V.jsx)(`div`,{className:`flex w-full items-center justify-center text-[11px] text-muted-foreground/60`,children:`镜头块将按时长比例排列在此轨道`}):e.map((e,r)=>(0,V.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),style:{flexGrow:e.duration,flexBasis:`${e.duration*14}px`},className:j(`group relative flex min-w-14 flex-col justify-between overflow-hidden rounded border p-1.5 text-left transition-colors`,gn[e.status],e.id===t&&`ring-2 ring-foreground/60 ring-offset-1 ring-offset-background`),title:`${e.code} · ${e.duration}s · ${e.description}`,children:[(0,V.jsxs)(`div`,{className:`flex items-center justify-between gap-1`,children:[(0,V.jsx)(`span`,{className:`text-[10px] font-medium tabular-nums opacity-80`,children:e.code}),e.keyframe.description?(0,V.jsx)(z,{className:`size-2.5 opacity-70`}):null]}),(0,V.jsx)(`span`,{className:`truncate text-[10px] opacity-60`,children:e.camera}),(0,V.jsxs)(`span`,{className:`text-[10px] tabular-nums opacity-90`,children:[e.duration,`s`]}),e.status===`keyframe`?(0,V.jsx)(`span`,{className:`absolute top-1/2 left-1/2 size-1.5 -translate-x-1/2 -translate-y-1/2 rotate-45 bg-current opacity-60`,title:`关键帧已定`}):null,(0,V.jsx)(`span`,{className:`sr-only`,children:`镜头 ${r+1}`})]},e.id)),e.length>0?(0,V.jsx)(`div`,{className:`flex min-w-16 flex-col items-center justify-center rounded border border-dashed border-muted-foreground/25 text-muted-foreground/40`,children:(0,V.jsx)(`span`,{className:`text-[10px]`,children:`+`})}):null]})]})}function vn(){let{id:e}=ce(),t=(0,B.useMemo)(()=>({id:e??`p-002`,name:`星际摆渡人`,logline:`末日地球最后一位星际摆渡人,驾驶旧飞船护送三千沉睡者前往新家园。`,cover:`/covers/p-002.jpg`,genre:`科幻`,status:`post`,progress:84,members:[`白鹿`,`程一苇`],updatedAt:`2026-10-11T14:30:00.000Z`}),[e]),[n,r]=(0,B.useState)(()=>structuredClone(s)),[i,a]=(0,B.useState)(0),o=n[i],[c,l]=(0,B.useState)(o.shots[0]?.id??``),f=o.shots.find(e=>e.id===c)??o.shots[0],p=b(o),m=o.shots.filter(e=>e.status===`ready`).length;function h(e,t){r(n=>n.map((n,r)=>r===i?{...n,shots:n.shots.map(n=>n.id===e?{...n,...t}:n)}:n))}function g(){let e=`S${String(o.number).padStart(2,`0`)}-${String(o.shots.length+1).padStart(2,`0`)}`,t={id:`sh-new-${Date.now()}`,code:e,duration:5,description:``,camera:`固定`,keyframe:{description:``},status:`draft`};r(e=>e.map((e,n)=>n===i?{...e,shots:[...e.shots,t]}:e)),l(t.id)}function _(){let e=n.length+1,t={id:`ep-new-${Date.now()}`,number:e,title:`第 ${e} 集`,logline:``,synopsis:``,scriptScenes:[],shots:[]};r(e=>[...e,t]),a(n.length),l(``)}return(0,V.jsx)(fe,{delayDuration:200,children:(0,V.jsxs)(`div`,{className:`flex h-svh flex-col bg-background`,children:[(0,V.jsxs)(`header`,{className:`flex h-12 shrink-0 items-center gap-2 border-b px-3`,children:[(0,V.jsx)(F,{variant:`ghost`,size:`icon`,className:`size-8`,asChild:!0,children:(0,V.jsx)(d,{to:`/projects`,"aria-label":`返回项目列表`,children:(0,V.jsx)(_e,{className:`size-4`})})}),(0,V.jsx)(re,{orientation:`vertical`,className:`h-5`}),(0,V.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,V.jsx)(C,{className:`size-4 shrink-0 text-muted-foreground`}),(0,V.jsx)(`span`,{className:`truncate text-[13px] font-medium`,children:t.name})]}),(0,V.jsx)(yn,{episodes:n,activeIndex:i,onSelect:a,onAdd:_}),(0,V.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,V.jsxs)(F,{variant:`outline`,size:`sm`,className:`gap-1.5`,onClick:g,children:[(0,V.jsx)(u,{className:`size-3.5`}),`镜头`]}),(0,V.jsxs)(F,{size:`sm`,className:`gap-1.5`,children:[(0,V.jsx)(ye,{className:`size-3.5`}),`AI 补全全集`]})]})]}),(0,V.jsxs)(`div`,{className:`flex min-h-0 flex-1`,children:[(0,V.jsxs)(`aside`,{className:`hidden w-72 shrink-0 flex-col border-r lg:flex`,children:[(0,V.jsxs)(`div`,{className:`flex h-10 shrink-0 items-center justify-between border-b px-3`,children:[(0,V.jsxs)(`span`,{className:`text-[12px] font-medium text-muted-foreground`,children:[`镜头 `,o.shots.length,` · 成片 `,m]}),(0,V.jsx)(`span`,{className:`text-[12px] tabular-nums text-muted-foreground`,children:S(p)})]}),(0,V.jsx)(dn,{shots:o.shots,activeShotId:c,onSelect:l})]}),(0,V.jsxs)(`main`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,V.jsxs)(`div`,{className:`flex gap-1.5 overflow-x-auto border-b p-2 [scrollbar-width:none] lg:hidden [&::-webkit-scrollbar]:hidden`,children:[o.shots.map(e=>(0,V.jsxs)(`button`,{type:`button`,onClick:()=>l(e.id),className:j(`flex h-9 shrink-0 items-center gap-1.5 rounded-md border px-2.5 text-[12px] tabular-nums`,e.id===c?`border-foreground/45 bg-foreground/[0.08] font-medium text-foreground`:`text-muted-foreground hover:border-foreground/30`),children:[e.code,(0,V.jsxs)(`span`,{className:`text-muted-foreground/60`,children:[e.duration,`s`]})]},e.id)),(0,V.jsx)(`button`,{type:`button`,onClick:g,className:`flex h-9 shrink-0 items-center rounded-md border border-dashed px-2.5 text-[12px] text-muted-foreground`,children:(0,V.jsx)(u,{className:`size-3`})})]}),(0,V.jsx)(pn,{shot:f,episodeMeta:{number:o.number,title:o.title,total:o.shots.length,index:o.shots.findIndex(e=>e.id===f?.id)+1},onGenerate:()=>f&&h(f.id,{status:f.status===`ready`?`keyframe`:`ready`})}),(0,V.jsx)(_n,{shots:o.shots,activeShotId:c,onSelect:l,total:p})]}),(0,V.jsx)(`aside`,{className:`hidden w-80 shrink-0 flex-col border-l lg:flex`,children:f?(0,V.jsx)(hn,{shot:f,onChange:e=>h(f.id,e)}):null})]})]})})}function yn({episodes:e,activeIndex:t,onSelect:n,onAdd:r}){let i=e[t];return(0,V.jsxs)(rn,{children:[(0,V.jsx)(an,{asChild:!0,children:(0,V.jsxs)(F,{variant:`ghost`,size:`sm`,className:`gap-1.5 px-2.5`,children:[(0,V.jsx)(R,{className:`size-3.5 text-muted-foreground`}),(0,V.jsxs)(`span`,{className:`text-[13px]`,children:[`第 `,i.number,` 集 · `,i.title]}),(0,V.jsx)(te,{className:`size-3.5 text-muted-foreground`})]})}),(0,V.jsxs)(on,{align:`start`,className:`w-64`,children:[(0,V.jsx)(cn,{children:`剧集`}),e.map((e,t)=>(0,V.jsxs)(sn,{onClick:()=>n(t),className:`gap-2`,children:[(0,V.jsxs)(`span`,{className:`tabular-nums text-muted-foreground`,children:[`EP`,String(e.number).padStart(2,`0`)]}),(0,V.jsx)(`span`,{className:`flex-1 truncate`,children:e.title}),(0,V.jsx)(`span`,{className:`text-[11px] tabular-nums text-muted-foreground`,children:S(b(e))})]},e.id)),(0,V.jsx)(ln,{}),(0,V.jsxs)(sn,{onClick:r,className:`gap-2 text-muted-foreground`,children:[(0,V.jsx)(u,{className:`size-3.5`}),`新增一集`]})]})]})}export{vn as default};
|
package/dist/public/index.html
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<meta name="color-scheme" content="dark light" />
|
|
8
8
|
<title>APA — AI Pipeline for Auteur</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-t_D5osH9.js"></script>
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BvEvqeRM.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|