1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2799],{20232:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(78340).A)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]])},34152:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(78340).A)("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]])},35762:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(78340).A)("Music2",[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]])},82799:(e,a,t)=>{t.r(a),t.d(a,{ListingVideoBgmLibraryPanel:()=>u});var s=t(95155),r=t(12115),i=t(98817),l=t(6296),n=t(35762),d=t(34152),c=t(20232),o=t(40980);function u({tracks:e,loading:a,selectedPath:t,onSelectPath:m,musicEnabled:h,onMusicEnabledChange:x,disabled:p}){let b=(0,r.useRef)(null),[y,f]=(0,r.useState)(!1),g=e.find(e=>e.path===t)??e[0];return(0,r.useEffect)(()=>{if(!h)return;let e=b.current;if(e){f(!1);try{e.pause(),e.currentTime=0}catch{}}},[h,t]),(0,s.jsxs)("div",{className:"space-y-4",children:[(0,s.jsxs)("label",{className:"flex cursor-pointer items-center gap-2 text-sm",children:[(0,s.jsx)("input",{type:"checkbox",className:"h-4 w-4 rounded border-border",checked:h,disabled:p||a,onChange:e=>x(e.target.checked)}
1),(0,s.jsx)("span",{className:"font-medium",children:"Background music"})]}),h?a?(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(l.A,{className:"h-4 w-4 animate-spin","aria-hidden":!0}),"Loading music libraryâ¦"]}):0===e.length?(0,s.jsx)("p",{className:"text-sm text-amber-800 dark:text-amber-200",children:"Music library is not available yet. You can export without music."}):(0,s.jsxs)("div",{className:"rounded-lg border border-border bg-background/80 p-4",children:[(0,s.jsx)("ul",{className:"max-h-52 space-y-1 overflow-y-auto",children:e.map(e=>{let a=e.path===t;return(0,s.jsx)("li",{children:(0,s.jsxs)("button",{type:"button",disabled:p,onClick:()=>m(e.path),className:(0,o.cn)("flex w-full items-center gap-2 rounded-md px-2 py-2 text-left text-sm transition-colors",a?"bg-primary/10 font-medium text-foreground":"text-muted-foreground hover:bg-muted"),children:[(0,s.jsx)(n.A,{className:"h-4 w-4 shrink-0 opacity-70","aria-hidden":!0}),(0,s.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.label})]})},e.id)})}),(0,s.jsxs)("div",{className:"mt-4 flex flex-wrap items-center gap-3 border-t border-border pt-4",children:[(0,s.jsxs)("button",{type:"button",disabled:p||!g?.path,onClick:()=>{let e=b.current;e&&(e.paused?e.play().then(()=>f(!0)).catch(()=>f(!1)):(e.pause(),f(!1)))},className:"inline-flex h-9 shrink-0 items-center gap-1.5 rounded-md border border-input bg-background px-3 text-sm font-medium disabled:opacity-50",children:[y?(0,s.jsx)(d.A,{className:"h-3.5 w-3.5","aria-hidden":!0}):(0,s.jsx)(c.A,{className:"h-3.5 w-3.5","aria-hidden":!0}),y?"Pause":"Play"]}),(0,s.jsx)("audio",{ref:b,src:g?.path||void 0,preload:"metadata",className:"h-9 min-h-9 w-full min-w-0 flex-1",controls:!0,onPlay:()=>f(!0),onPause:()=>f(!1),onEnded:()=>f(!1)})]})]}):(0,s.jsxs)("p",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[(0,s.jsx)(i.A,{className:"h-4 w-4 shrink-0","aria-hidden":!0}),"Export without music."]})]})}},98817:(e,a,t)=>{t.d(a,{A:()=>s});let s=(0,t(78340).A)("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]])}}]);
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.