1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./D5eoxLhK.js","./Cxqh-PWA.js","./entry.9J3M0fpX.css","./BvSSo9NR.js","./g9NZHJ7k.js","./BdqZZJxz.js","./5mermyY2.js","./kRIii9yh.js","./BhogqAep.js","./BVgAWPWg.js","./D7nPVifZ.js","./CAshsj6I.js","./qN8fIM_H.js","./BqUEtWAg.js","./CG9aQzjT.js","./DVbOgCFg.js","./CrgNeYVL.js","./B91tR8XP.js","./bQ8P1u18.js","./Cf2nzAt-.js","./PGOxvfIX.js","./HyaOvY6t.js","./CU0b6zmA.js","./DpaswN6X.js","./Dob3nYDb.js","./CxkLrIQZ.js","./DnAz_d_j.js","./D0M3XRzL.js","./C9V_kBLj.js","./kxritDmU.js","./BxCBhxoO.js","./BE172V9o.js","./DP5uNP0K.js","./Dp-OYx76.js","./D-pctMGk.js","./B3HgCoGl.js","./CPCyKSn5.js","./Dif2IEN9.js","./DbRNvS7c.js","./DbDM22bQ.js","./D538PQUM.js","./BMSQkwth.js","./Dm733qOZ.js","./CfPTVnd4.js","./xgPlayerLoadingIcon.DjYYf-gT.css","./oEY5oh1p.js","./jFYhBC76.js","./Dz0YIuFq.js","./BqHiTxs3.js","./D2xa8E8c.js","./BJefe4c2.js","./DtnYYSmI.js","./PwBLLD-c.js","./CFI862Mv.js","./D70lFzG9.js","./index.COyQ5Xtf.css","./EditorInner.CW0Ysg_3.css","./CFT6JH6w.js","./DQQauIiA.js","./DaU5Z7zx.js","./CPMbm2hr.js","./Location.Y6edlf8T.css","./index.CBGQ3QUF.css"])))=>i.map(i=>d[i]); 2import{S as xe,ck as ye,p as H,K as be,cl as he,a as W,cm as ve,u as ke,ag as we,cn as Se,bY as Ee,a0 as J,co as Te,cp as Ie,o as Le,E as Ae,bQ as Y,d as i,e as x,w as u,f as s,aV as Ce,m as e,aW as O,n as r,F as Ve,t as c,l as v,r as y,x as A,M as q,am as K,bh as Re,az as $e,cq as Oe,y as Pe,A as l,G as Me,cr as Q,cs as De,ct as P,cu as Ne,ax as Ue}from"./Cxqh-PWA.js";import{_ as je,a as Be,b as ze,c as Fe,d as Ge,e as He}from"./Cf2nzAt-.js";import{_ as We}from"./kxritDmU.js";import{L as Je,_ as Ye,a as qe,b as Ke}from"./C8ot-uD9.js";import{_ as Qe}from"./D9cEa_MO.js";import{_ as Xe}from"./DP5uNP0K.js";import{P as p}from"./C9V_kBLj.js";import"./bQ8P1u18.js";import"./PGOxvfIX.js";import"./HyaOvY6t.js";import"./CU0b6zmA.js";import"./DpaswN6X.js";import"./Dob3nYDb.js";import"./CxkLrIQZ.js";import"./DnAz_d_j.js";import"./D0M3XRzL.js";import"./DVbOgCFg.js";import"./D7nPVifZ.js";import"./g9NZHJ7k.js";import"./CrgNeYVL.js";import"./B91tR8XP.js";import"./CPCyKSn5.js";import"./Dif2IEN9.js";import"./DbRNvS7c.js";import"./DbDM22bQ.js";import"./D538PQUM.js";import"./D-pctMGk.js";import"./BMSQkwth.js";import"./Dm733qOZ.js";import"./CfPTVnd4.js";import"./oEY5oh1p.js";import"./jFYhBC76.js";import"./5mermyY2.js";import"./Dz0YIuFq.js";import"./BqUEtWAg.js";import"./BqHiTxs3.js";import"./BE172V9o.js";import"./D2xa8E8c.js";import"./BVgAWPWg.js";import"./B3HgCoGl.js";import"./BxCBhxoO.js";import"./BvSSo9NR.js";import"./BdqZZJxz.js";import"./kRIii9yh.js";import"./BhogqAep.js";import"./CAshsj6I.js";import"./qN8fIM_H.js";import"./BJefe4c2.js";import"./DtnYYSmI.js";import"./PwBLLD-c.js";/* empty css */import"./CFI862Mv.js";import"./D70lFzG9.js";import"./-Y7BIZZ9.js";import"./Dp-OYx76.js";const Ze=Ne(()=>Ue(()=>import("./D5eoxLhK.js").then(b=>b.aY),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62]),import.meta.url).then(b=>b.default||b)),et={class:"flex-1 flex-grow overflow-hidden"},tt={class:"flex flex-col flex-nowrap justify-stretch h-full items-stretch"},ot={class:"flex pb-2.5 flex-wrap gap-1.5"},at={class:"ms-auto flex items-center"},st={class:"flex items-center"},nt={class:"flex min-h-0 flex-1 flex-col flex-nowrap justify-stretch overflow-hidden"},lt={key:0,class:"text-primary-gray text-sm flex items-center justify-between"},it={class:"flex items-center"},rt={class:"ms-1"},pt={class:"bg-main-gray p-2.5 md:p-5 rounded-[10px] mt-2.5 me-1"},mt=["lang"],ut={class:"text-main-black text-xl font-bold mb-2.5"},ct={key:0,class:"flex justify-between items-center"},dt={class:"ms-1"},_t={class:"mx-2"},ft={class:"m-5 max-h-[450px] overflow-auto rounded-md relative"},gt={class:"flex flex-col items-center justify-center gap-3 min-h-[200px] text-primary-gray"},xt={class:"text-sm"},ho=xe({__name:"transcription-[hash].client",setup(b){const X=ye(),d=l(!1),k=l(97);H("isShareMode",!0);const C=be().params.hash,n=he();H("pageViewMode",p.ARTICLE),n.pageViewMode=p.ARTICLE;const g=W(C,{[p.ARTICLE]:{...P},globalSpeakerOpen:!1},{writeDefaults:!0,mergeDefaults:!0}),M=l([]),_=ve();_.value=g.value[p.ARTICLE],n.globalSpeakerOpen=g.value.globalSpeakerOpen;const{$i18n:V}=ke(),D=l(null),N=l(),f=l(!1),U=we(),j=Se();Ee(),J(d,o=>{X.value=o},{immediate:!0});const w=l(!1),S=l(null),R=l(null),B=l(),z=l(null),E=l(null),T=l(!1),m=Te();Ie(N,()=>{E.value&&(E.value=null)});const $=Me(()=>!!n.force_article),h=W("timecodeVisible",!1),Z=async()=>{try{d.value=!0;const{data:o}=await Q({share_uuid:C,view_status:p.ARTICLE});n.setData(o.result),m.setSubtitles(o.result.json_data),M.value=o.result.translate_data,_.value.task_id&&m.setTranslations(await F({task_id:_.value.task_id}))}catch(o){o.status===404&&De({statusCode:404,message:V.t("app.share.invali
2dLink")})}finally{d.value=!1}},ee=async o=>{_.value=g.value[p.ARTICLE]=o,m.setTranslations(await F({task_id:Number(o.task_id)}))};async function F({task_id:o}){return new Promise(async t=>{f.value=!0,await Q({share_uuid:C,task_id:o,view_status:p.ARTICLE}).then(({data:I})=>{t(I?.result?.json_data||[])}).catch(I=>{t([]),_.value={...P},g.value[p.ARTICLE]={...P}}).finally(()=>{f.value=!1})})}async function te(o){!n.speaker&&o?n.globalSpeakerOpen=!0:(n.globalSpeakerOpen=o,g.value.globalSpeakerOpen=o)}function oe(o){const t=document.getElementById(`transcription_item_${o}`);t&&(z.value.findNReplaceVisible=!1,E.value=o,t.scrollIntoView({behavior:"smooth"}))}return Le(async()=>{await Z(),n.pageViewMode=p.ARTICLE,n.globalSpeakerOpen=g.value.globalSpeakerOpen,Ae({title:()=>n.file_name?`${n.file_name} | ${V.t("bulkupload.transcript")} | ${Y}`:`${V.t("bulkupload.transcript")} | ${Y}`})}),J(d,()=>{console.log("loading status",d.value)},{immediate:!0}),(o,t)=>{const I=je,ae=Be,se=ze,ne=We,le=Fe,ie=qe,re=Qe,pe=Ge,me=Re,ue=Ve,G=$e,ce=Ze,de=Xe,_e=Ke,fe=Pe;return i(),x(fe,{name:"share-layout"},{default:u(()=>[s("div",{class:O(["transcription-player-layout flex flex-col art-layout items-stretch bg-main-gray relative",{"transcription-player-layout--mobile":e(j)}]),style:Ce({"--mobile-player-dock-height":`${e(k)}px`})},[s("div",et,[r(ue,{class:"h-full px-2 py-2 md:py-2.5",ui:{base:e(_).task_id&&!e($)?"max-w-[1440px]":"max-w-[940px]"}},{default:u(()=>[r(re,{class:"lg:flex-1 shrink-0 justify-self-auto h-full"},{default:u(()=>[s("div",tt,[s("div",ot,[r(I,{disabled:!1,"translated-list":e(M),"onUpdate:selectedTranslation":ee},null,8,["translated-list"]),r(ae,{disabled:e(f),"page-view-mode":("PAGE_VIEW_MODE"in o?o.PAGE_VIEW_MODE:e(p)).ARTICLE,onSetBlockLoading:t[0]||(t[0]=a=>f.value=a),onToggleSpeakerView:te},null,8,["disabled","page-view-mode"]),r(se,{disabled:e(f),ref_key:"findToolRef",ref:z,onJumpContext:oe},null,8,["disabled"]),s("div",at,[s("div",st,[s("p",{class:O(["text-sm me-2",[e(h)?"text-black":"text-primary-gray"]])},c(o.$t("transcription.timecode")),3),r(ne,{modelValue:e(h),"onUpdate:modelValue":t[1]||(t[1]=a=>v(h)?h.value=a:null)},null,8,["modelValue"])]),r(le,{"page-view-mode":("PAGE_VIEW_MODE"in o?o.PAGE_VIEW_MODE:e(p)).ARTICLE,onFullscreenToggle:t[2]||(t[2]=a=>T.value=!0)},null,8,["page-view-mode"])])]),s("div",nt,[e(f)||e(d)?(i(),x(Je,{key:0,"global-speaker-open":e(n).globalSpeakerOpen,"timecode-visible":e(h),"two-column":!!e(_).task_id&&!e($)},null,8,["global-speaker-open","timecode-visible","two-column"])):(i(),y("div",{key:1,class:"min-h-0 flex-1 overflow-y-auto overscroll-contain",ref_key:"transcriptionListRef",ref:N},[!e(n).globalSpeakerOpen&&!e(n).force_article?(i(),y("div",lt,[s("div",it,[t[10]||(t[10]=s("img",{class:"w-4 h-4",src:Ye},null,-1)),s("span",rt,c(o.$t("speaker.articleViewDesc")),1)]),s("span",null,c(e(m).list[0]?.start_time_min||"/:/:/")+" - "+c(e(m).list[e(m).list.length-1]?.end_time_min||"/:/:/"),1)])):A("",!0),s("div",pt,[(i(!0),y(q,null,K(e(m).list,(a,L)=>(i(),x(ie,{"highlight-index":e(E),id:`transcription_item_${L}`,index:L,key:a.uuid,"play-index":e(S),setPlayTime:e(D)?.setPlayerTime,"show-single-subtitle":e($),source:a,"speaker-edit-visible-index":e(B),onSpeakerEditIndexChange:t[3]||(t[3]=ge=>B.value=ge)},null,8,["highlight-index","id","index","play-index","setPlayTime","show-single-subtitle","source","speaker-edit-visible-index"]))),128))])],512))])])]),_:1}),r(me,{open:e(T),"onUpdate:open":t[4]||(t[4]=a=>v(T)?T.value=a:null),size:"2xl","body-flush":"",ui:{content:"sm:!max-w-[800px]",body:"bg-gray-50 px-5 py-8 overflow-y-auto",overlay:"bg-gray-200/90"}},{body:u(()=>[s("div",{class:"space-y-3.5 text-lg leading-7",lang:e(n).language},[s("h1",ut,c(e(n).file_name),1),(i(!0),y(q,null,K(e(m).list,(a,L)=>(i(),y("div",null,[e(n).globalSpeakerOpen&&e(m).checkSpeakerStart(a.speaker,a.uuid)?(i(),y("div",ct,[r(pe,{class:"force-bg",index:L,source:a},null,8,["index","source"])])):A("",!0),s("p",dt,c(a.text),1)]))),256))],8,mt)]),_:1},8,["open"])]),_:1},8,["ui"]),e(j)?A("",!0):(i(),x(de,{key:0,open:e(w),content:{side:"top",align:"start"},ui:{content:"w-[600px] z-40"}},{content:u(()=>[s("div",ft,[(i(),x(Oe,null,{fallback:u(()=>[s("div",gt,[r(G,{name:"i-heroicons-arrow-path",class:"animate-spin text-3xl"}),s("span",xt,c(o.$t("app.loading")),1)])]),default:u(()=>[r(ce)]),_:1}))])]),default:u(()=>[s("div",{class:"absolute start-5 bottom-10 rounded-[10px] bg-white px-3.5 py-4 flex items-center cursor-pointer border border-gray-200",onClick:t[5]||(t[5]=a=>w.value=!e(w))},[t[11]||(t[11]=s("img",{class:"w-4 h-4 inline-block mb-0.5",src:He},null,-1)),s("span",_t,c(o.$t("summaryTool.title")),1),r(G,{class:O(["text-lg transition-all duration-300 mb-0.5",{"-rotate-90 mb-1.5":e(w)}]),name:"i-heroicons-chevron-right"},null,8,["class"])])]),_:1},8,["open"]))]),!e(d)||!e(f)?(i(),x(_e,{key:0,"mobile-dock-height":e(k),"onUpdate:mobileDockHeight":t[6]||(t[6]=a=>v(k)?k.value=a:null),"next-play-index":e(R),"onUpdate:nextPlayIndex":t[7]||(t[7]=a=>v(R)?R.value=a:null),"play-index":e(S),"onUpdate:playIndex":t[8]||(t[8]=a=>v(S)?S.value=a:null),src:e(U).file_bloburl,"onUpdate:src":t[9]||(t[9]=a=>e(U).file_bloburl=a),ref_key:"playerRef",ref:D},null,8,["mobile-dock-height","next-play-index","play-index","src"])):A("",!0)],6)]),_:1})}}});
2export{ho 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.