PageSourceSearch

https://xbyvideohub.com/_next/static/chunks/01bj3dh7w782z.js

js xbyvideohub.com collected 2026-09-30 09:20:00 UTC 33,764 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8460,(e,t,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a={default:function(){return c},getImageProps:function(){return d}};for(var i in a)Object.defineProperty(s,i,{enumerable:!0,get:a[i]});let r=e.r(81258),l=e.r(87219),n=e.r(33111),o=r._(e.r(23769));function d(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let c=n.Image},45227,(e,t,s)=>{t.exports=e.r(8460)},40587,(e,t,s)=>{t.exports=e.r(46833)},85404,e=>{"use strict";let t=(0,e.i(16735).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],85404)},42438,39546,e=>{"use strict";var t=e.i(16735);let s=(0,t.default)("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["BadgeCheck",0,s],42438);let a=(0,t.default)("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);e.s(["CreditCard",0,a],39546)},57499,e=>{"use strict";var t=e.i(81994),s=e.i(89919),a=e.i(51492),i=e.i(45227),r=e.i(40587),l=e.i(16735);let n=(0,l.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);var o=e.i(67348),d=e.i(42438),c=e.i(85404);let p=(0,l.default)("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);var m=e.i(39546);let x=(0,l.default)("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]);var u=e.i(2594);let h={en:{signIn:"Sign in",signInHint:"Sign in with Google or email",account:"Account",subscription:"Subscription",pro:"Pro",free:"Free",loading:"Loading account",signOut:"Sign out"},zh:{signIn:"登录",signInHint:"使用 Google 或邮箱登录",account:"账户",subscription:"订阅状态",pro:"专业版",free:"免费版",loading:"正在加载账户",signOut:"退出登录"}};function b({lang:e,fullWidth:i=!1}){let{user:r,loading:l,subscription:n,openLogin:o,signOut:g}=(0,u.useAuth)(),[k,f]=(0,s.useState)(!1),y=(0,s.useRef)(null),v=h[e];return((0,s.useEffect)(()=>{if(!k)return;let e=e=>{y.current?.contains(e.target)||f(!1)},t=e=>{"Escape"===e.key&&f(!1)};return document.addEventListener("mousedown",e),window.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),window.removeEventListener("keydown",t)}},[k]),l)?(0,t.jsx)("span",{"aria-label":v.loading,className:i?"block h-10 w-full":"inline-block h-9 w-9"}):r?(0,t.jsxs)("div",{ref:y,className:`relative ${i?"w-full":""}`,children:[(0,t.jsxs)("button",{type:"button","aria-haspopup":"menu","aria-expanded":k,"aria-label":v.account,onClick:()=>f(e=>!e),className:i?"flex w-full items-center gap-2 rounded-lg px-3 py-2.5 text-left font-medium text-ink-700 transition hover:bg-sky-50":"btn-ghost inline-flex max-w-40 shrink-0 items-center gap-1.5 whitespace-nowrap px-2.5 text-sm",children:[(0,t.jsx)(p,{className:"h-4 w-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:r.email||v.account}),(0,t.jsx)(c.ChevronDown,{className:"h-3.5 w-3.5 shrink-0"})]}
1),k&&(0,t.jsxs)("div",{role:"menu",className:`z-[70] mt-2 rounded-lg border border-ink-100 bg-paper p-2 shadow-xl ${i?"w-full":"absolute right-0 w-64"}`,children:[(0,t.jsxs)("div",{className:"px-2 py-2",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-ink-900",children:r.email}),(0,t.jsxs)("p",{className:`mt-1 inline-flex items-center gap-1 text-xs font-medium ${"pro"===n?"text-emerald-600 dark:text-emerald-400":"text-ink-500"}`,children:[(0,t.jsx)(d.BadgeCheck,{className:"h-3.5 w-3.5"})," ","pro"===n?v.pro:v.free]})]}),(0,t.jsxs)(a.default,{role:"menuitem",href:"en"===e?"/en/account/":"/account/",onClick:()=>f(!1),className:"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-sm text-ink-700 transition hover:bg-sky-50 hover:text-ink-900",children:[(0,t.jsx)(m.CreditCard,{className:"h-4 w-4"})," ",v.subscription]}),(0,t.jsxs)("button",{role:"menuitem",type:"button",onClick:async()=>{f(!1),await g()},className:"flex w-full items-center gap-2 rounded-lg px-2 py-2 text-left text-sm text-ink-700 transition hover:bg-sky-50 hover:text-ink-900",children:[(0,t.jsx)(x,{className:"h-4 w-4"})," ",v.signOut]})]})]}):(0,t.jsxs)("button",{type:"button","aria-label":v.signInHint,title:v.signInHint,onClick:()=>o(e),className:i?"flex w-full items-center gap-2 rounded-lg px-3 py-2.5 text-left font-medium text-ink-700 transition hover:bg-sky-50 hover:text-skype-deep":"btn-ghost inline-flex shrink-0 items-center gap-2 whitespace-nowrap px-2.5 text-sm",children:[(0,t.jsx)(p,{className:"h-4 w-4"})," ",v.signIn]})}var g=e.i(78976);let k=[{href:"#features",label:"功能"},{href:"/guides/",label:"使用指南",absolute:!0},{href:"/pricing/",label:"价格",absolute:!0},{href:"/support/",label:"工单",absolute:!0}],f=[{href:"#features",label:"Features"},{href:"/en/guides/",label:"Guides",absolute:!0},{href:"/en/pricing/",label:"Pricing",absolute:!0},{href:"/en/support/",label:"Support",absolute:!0}];e.s(["default",0,function({lang:e="zh"}){let l="en"===e?f:k,[d,c]=(0,s.useState)(!1),p=(0,r.usePathname)()||"/",m=p.startsWith("/en"),x=m?p.replace(/^\/en/,"")||"/":`/en${"/"===p?"":p}`,u=m?"/en/":"/",h=m?{mainNav:"Main navigation",home:"BoxPlayer home",download:"Get BoxPlayer — jump to download section",menuOpen:"Open menu",menuClose:"Close menu"}:{mainNav:"主导航",home:"BoxPlayer 首页",download:"Get BoxPlayer — 跳转到下载区域",menuOpen:"打开菜单",menuClose:"关闭菜单"};return(0,t.jsxs)("header",{role:"banner",className:"sticky top-0 z-50 backdrop-blur-md bg-paper/80 border-b border-ink-100/60",children:[(0,t.jsxs)("nav",{"aria-label":h.mainNav,className:"mx-auto max-w-7xl px-4 sm:px-6 lg:px-10 h-14 sm:h-16 flex items-center justify-between",children:[(0,t.jsxs)(a.default,{href:m?"/en":"/","aria-label":h.home,className:"flex items-center gap-2 sm:gap-2.5",children:[(0,t.jsx)("div",{className:"w-7 h-7 sm:w-8 sm:h-8 rounded-xl bg-sky-100 grid place-items-center ring-1 ring-sky-200","aria-hidden":!0,children:(0,t.jsx)(i.default,{src:"/images/icons/blue.svg",alt:"",width:20,height:20,className:"w-4 h-4 sm:w-5 sm:h-5"})}),(0,t.jsx)("span",{className:"font-semibold text-ink-900 tracking-tight",children:"BoxPlayer"})]}),(0,t.jsx)("ul",{className:"hidden xl:flex items-center gap-0.5 text-sm list-none flex-shrink-0",children:l.map(e=>(0,t.jsx)("li",{className:"flex-shrink-0",children:(0,t.jsx)(a.default,{href:e.absolute?e.href:`${u}${e.href}`,className:"btn-ghost text-sm whitespace-nowrap px-3 py-2",children:e.label})},e.href))}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsx)("div",{className:"hidden sm:block",children:(0,t.jsx)(b,{lang:e})}),(0,t.jsx)("div",{className:"hidden sm:block",children:(0,t.jsx)(g.default,{lang:e})}),(0,t.jsx)(a.default,{href:x,hrefLang:m?"zh-CN":"en-US",className:"btn-ghost text-sm px-2.5 sm:px-3 whitespace-nowrap","aria-label":m?"Switch to Chinese":"切换到英文",children:m?"中文":"EN"}),(0,t.jsx)(a.default,{href:m?"/en/#download":"/#download",className:"btn-primary text-xs sm:text-sm px-3 sm:px-6 py-2 sm:py-3 whitespace-nowrap","aria-label":h.download,children:m?"Get BoxPlayer":"免费下载"}),(0,t.jsx)("button",{type:"button","aria-label":d?h.menuClose:h.menuOpen,"aria-expanded":d,"aria-controls":"mobile-nav",onClick:()=>c(e=>!e),className:"xl:hidden inline-flex items-center justify-center w-9 h-9 rounded-lg text-ink-700 hover:bg-sky-50 transition",children:d?(0,t.jsx)(o.X,{className:"w-5 h-5","aria-hidden":!0}):(0,t.jsx)(n,{className:"w-5 h-5","aria-hidden":!0})})]})]}),d&&(0,t.jsx)("div",{id:"mobile-nav",className:"xl:hidden border-t border-ink-100/60 bg-paper/95 backdrop-blur-md",children:(0,t.jsxs)("ul",{className:"mx-auto max-w-7xl px-4 sm:px-6 py-3 flex flex-col gap-1 list-none",children:[l.map(e=>(0,t.jsx)("li",{children:(0,t.jsx)(a.default,{href:e.absolute?e.href:`${u}${e.href}`,onClick:()=>c(!1),className:"block px-3 py-2.5 rounded-lg text-ink-700 font-medium hover:bg-sky-50 hover:text-skype-deep transition",children:e.label})},e.href)),(0,t.jsx)("li",{className:"mt-1 pt-2 border-t border-ink-100",children:(0,t.jsx)(b,{lang:e,fullWidth:!0})}),(0,t.jsx)("li",{children:(0,t.jsx)(g.default,{lang:e,fullWidth:!0})}),(0,t.jsx)("li",{children:(0,t.jsx)(a.default,{href:x,hrefLang:m?"zh-CN":"en-US",onClick:()=>c(!1),className:"block px-3 py-2.5 rounded-lg text-ink-700 font-medium hover:bg-sky-50 hover:text-skype-deep transition",children:m?"中文":"English"})})]})})]})}],57499)},22450,e=>{"use strict";let t=(0,e.i(16735).default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);e.s(["RefreshCw",0,t],22450)},55676,e=>{"use strict";var t=e.i(81994),s=e.i(89919),a=e.i(16735);let i=(0,a.default)("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}
1],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),r=(0,a.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),l=(0,a.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),n=(0,a.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),o=(0,a.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var d=e.i(44871);let c=(0,a.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);var p=e.i(22450);let m=(0,a.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),x=(0,a.default)("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]),u=(0,a.default)("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]);var h=e.i(2594);let b=[["","未涉及网盘","Not drive-specific"],["aliyun","阿里云盘","Aliyun Drive"],["cloud123","123网盘","123 Cloud Drive"],["115","115网盘","115 Drive"],["139","139云盘","139 Cloud Drive"],["189","天翼云盘","Cloud189"],["guangya","光鸭云盘","Guangya Drive"],["baidu","百度网盘","Baidu Netdisk"],["pikpak","PikPak","PikPak"],["quark","夸克网盘","Quark Drive"],["dropbox","Dropbox","Dropbox"],["onedrive","OneDrive","OneDrive"],["box","Box","Box"],["google","Google Drive","Google Drive"],["webdav","WebDAV","WebDAV"],["alist","AList","AList"]],g=["Android TV","Android","Apple iOS","Apple macOS","Apple tvOS","Windows","Linux"],k={open:"border-sky-200 bg-sky-50 text-skype-deep",triaged:"border-amber-200 bg-amber-50 text-amber-800 dark:border-amber-500/30 dark:bg-amber-500/12 dark:text-amber-300",in_progress:"border-blue-200 bg-blue-50 text-blue-800 dark:border-blue-500/30 dark:bg-blue-500/12 dark:text-blue-300",resolved:"border-emerald-200 bg-emerald-50 text-emerald-800 dark:border-emerald-500/30 dark:bg-emerald-500/12 dark:text-emerald-300",closed:"border-ink-200 bg-sky-50 text-ink-500"},f={open:"待处理",triaged:"已评估",in_progress:"处理中",resolved:"已解决",closed:"已关闭"},y={zh:{eyebrow:"产品工单",title:"提交 Bug 或功能需求",subtitle:"这里接收和 BoxPlayer 软件相关的问题、复现路径、兼容性反馈和新功能建议。无需登录即可提交;登录后会自动关联你的账号。",bug:"Bug",feature:"Feature",titleLabel:"标题",titlePlaceholder:"例如:EPUB 阅读器切换双页后无法滚动",descriptionLabel:"描述",descriptionPlaceholder:"请说明你遇到的问题、使用场景,或希望新增的功能。",emailLabel:"联系邮箱",emailPlaceholder:"可选,用于我们需要进一步确认时联系你",versionLabel:"软件版本",versionPlaceholder:"例如:4.0.53",platformLabel:"系统平台(必填)",platformPlaceholder:"请选择平台",driveLabel:"网盘",stepsLabel:"复现步骤",stepsPlaceholder:"1. 打开...\n2. 点击...\n3. 出现...",expectedLabel:"期望行为",expectedPlaceholder:"你原本期望软件如何工作?",submit:"提交工单",submitting:"提交中",signedIn:"已登录,工单会关联当前账号。",anonymous:"未登录也可以提交;填写邮箱有助于后续跟进。",successTitle:"工单已提交",successPrefix:"工单编号",successDetail:"我们会按严重程度和影响范围处理。需要补充信息时会通过邮箱联系你。",errorFallback:"提交失败,请稍后重试。",listTitle:"公开工单",commentPlaceholder:"补充信息或参与讨论",commentSubmit:"评论",locked:"已锁定回复",requiredHint:"请选择系统平台;标题至少 4 个字符,描述至少 10 个字符。",scopeTitle:"适合提交的内容",scopeItems:["播放、阅读器、云盘、AI 搜索等软件 Bug","平台兼容性问题和可复现的崩溃","能改善日常使用效率的功能建议"],privacyTitle:"提交会记录",privacyItems:["你填写的内容和可选邮箱","登录用户的账号 ID 和邮箱","浏览器 User-Agent,用于定位平台问题"]},en:{eyebrow:"Product tickets",title:"Submit a bug or feature request",subtitle:"Send BoxPlayer software issues, reproduction details, compatibility reports, and feature ideas. Sign-in is optional; signed-in tickets are linked to your account automatically.",bug:"Bug",feature:"Feature",titleLabel:"Title",titlePlaceholder:"Example: EPUB reader cannot scroll after switching to two-page mode",descriptionLabel:"Description",descriptionPlaceholder:"Describe the issue, workflow, or feature you want added.",emailLabel:"Contact email",emailPlaceholder:"Optional, used if we need follow-up details",versionLabel:"Ap
1p version",versionPlaceholder:"Example: 4.0.53",platformLabel:"Platform (required)",platformPlaceholder:"Select a platform",driveLabel:"Cloud drive",stepsLabel:"Steps to reproduce",stepsPlaceholder:"1. Open...\n2. Click...\n3. See...",expectedLabel:"Expected behavior",expectedPlaceholder:"What did you expect BoxPlayer to do?",submit:"Submit ticket",submitting:"Submitting",signedIn:"Signed in. This ticket will be linked to your account.",anonymous:"You can submit without signing in. Adding an email helps us follow up.",successTitle:"Ticket submitted",successPrefix:"Ticket number",successDetail:"We triage tickets by severity and impact. We will use your email if more details are needed.",errorFallback:"Submission failed. Please try again later.",listTitle:"Public tickets",commentPlaceholder:"Add details or join the discussion",commentSubmit:"Comment",locked:"Replies locked",requiredHint:"Select a platform. Title must be at least 4 characters. Description must be at least 10 characters.",scopeTitle:"Good ticket topics",scopeItems:["Playback, reader, cloud drive, and AI search bugs","Platform compatibility issues and reproducible crashes","Feature requests that improve daily workflows"],privacyTitle:"What is stored",privacyItems:["Your submitted content and optional email","Account ID and email for signed-in users","Browser User-Agent for platform diagnostics"]}};function v(){return{type:"bug",title:"",description:"",contactEmail:"",appVersion:"",platform:"",driveProvider:"",reproductionSteps:"",expectedBehavior:""}}e.s(["default",0,function({lang:e}){let{session:a,user:j}=(0,h.useAuth)(),[N,w]=(0,s.useState)(v),[P,L]=(0,s.useState)(!1),[C,S]=(0,s.useState)(""),[M,z]=(0,s.useState)(null),A=y[e],B=a?.access_token||"",D=j?.email==="[email protected]",[E,T]=(0,s.useState)([]),[O,I]=(0,s.use
1State)(!1),[$,_]=(0,s.useState)(""),[H,q]=(0,s.useState)({}),[V,F]=(0,s.useState)(""),G=(0,s.useCallback)(async()=>{I(!0);try{let e={};B&&(e.authorization=`Bearer ${B}`);let t=await fetch("/api/support/tickets",{headers:e}),s=await t.json().catch(()=>({}));Array.isArray(s.tickets)&&T(s.tickets)}catch{}finally{I(!1)}},[B]);(0,s.useEffect)(()=>{Promise.resolve().then(G)},[G]);let W=$?E.filter(e=>e.status===$):E,U=(0,s.useMemo)(()=>N.title.trim().length>=4&&N.description.trim().length>=10&&g.includes(N.platform),[N.description,N.platform,N.title]),R=(e,t)=>{w(s=>({...s,[e]:t}))},J=async t=>{if(t.preventDefault(),!U)return void S(A.requiredHint);L(!0),S(""),z(null);try{let t={"content-type":"application/json"};a?.access_token&&(t.authorization=`Bearer ${a.access_token}`);let s=await fetch("/api/support/tickets",{method:"POST",headers:t,body:JSON.stringify({...N,locale:e,source:"web"})}),i=await s.json().catch(()=>({}));if(!s.ok||!i.ticket)throw Error(i.error||A.errorFallback);z(i.ticket),w(v()),G()}catch(e){S(e instanceof Error?e.message:A.errorFallback)}finally{L(!1)}},K=async e=>{let t=(H[e]||"").trim();if(!(t.length<2)){F(e);try{let s={"content-type":"application/json"};if(a?.access_token&&(s.authorization=`Bearer ${a.access_token}`),!(await fetch(`/api/support/tickets/${e}/comments`,{method:"POST",headers:s,body:JSON.stringify({body:t})})).ok)throw Error(A.errorFallback);q(t=>({...t,[e]:""})),await G()}catch(e){S(e instanceof Error?e.message:A.errorFallback)}finally{F("")}}},Y=async(e,t)=>{!a?.access_token||(await fetch(`/api/support/tickets/${e}`,{method:"PATCH",headers:{"content-type":"application/json",authorization:`Bearer ${a.access_token}`},body:JSON.stringify(t)})).ok&&await G()},Q=async e=>{a?.access_token&&window.confirm("确认删除这个工单?")&&(await fetch(`/api/support/tickets/${e}`,{method:"DELETE",headers:{authorization:`Bearer ${a.access_token}`}})).ok&&await G()};return(0,t.jsxs)("section",{className:"mx-auto grid max-w-7xl gap-8 px-4 py-12 sm:px-6 lg:grid-cols-[minmax(0,1fr)_360px] lg:px-10 lg:py-16",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsxs)("div",{className:"mb-8",children:[(0,t.jsx)("span",{className:"eyebrow",children:A.eyebrow}),(0,t.jsx)("h1",{className:"mt-4 font-display text-3xl text-ink-900 sm:text-4xl",children:A.title}),(0,t.jsx)("p",{className:"mt-4 max-w-3xl text-base leading-7 text-ink-500",children:A.subtitle})]}),M&&(0,t.jsx)("div",{className:"mb-6 rounded-lg border border-leaf/30 bg-leaf/10 px-4 py-4 text-ink-700",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r,{className:"mt-0.5 h-5 w-5 shrink-0 text-leaf","aria-hidden":!0}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"font-semibold text-ink-900",children:A.successTitle}),(0,t.jsxs)("p",{className:"mt-1 text-sm",children:[A.successPrefix,": ",(0,t.jsx)("span",{className:"font-mono font-semibold text-skype-deep",children:M.number||M.id})]}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-6 text-ink-500",children:A.successDetail})]})]})}),(0,t.jsxs)("form",{onSubmit:J,className:"rounded-lg border border-ink-100 bg-cloud p-4 shadow-sm sm:p-6",children:[(0,t.jsxs)("div",{className:"mb-5 grid grid-cols-2 gap-3",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>R("type","bug"),className:`flex items-center justify-center gap-2 rounded-lg border px-4 py-3 text-sm font-semibold transition ${"bug"===N.type?"border-coral bg-coral/10 text-ink-900":"border-ink-100 text-ink-500 hover:border-coral/50 hover:text-ink-900"}`,children:[(0,t.jsx)(i,{className:"h-4 w-4","aria-hidden":!0})," ",A.bug]}),(0,t.jsxs)("button",{type:"button",onClick:()=>R("type","feature"),className:`flex items-center justify-center gap-2 rounded-lg border px-4 py-3 text-sm font-semibold transition ${"feature"===N.type?"border-gold bg-gold/15 text-ink-900":"border-ink-100 text-ink-500 hover:border-gold/60 hover:text-ink-900"}`,children:[(0,t.jsx)(o,{className:"h-4 w-4","aria-hidden":!0})," ",A.feature]})]}),(0,t.jsxs)("div",{className:"grid gap-4",children:[(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.titleLabel}),(0,t.jsx)("input",{required:!0,minLength:4,maxLength:160,value:N.title,onChange:e=>R("title",e.target.value),placeholder:A.titlePlaceholder,className:"rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"})]}),(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.descriptionLabel}),(0,t.jsx)("textarea",{required:!0,minLength:10,maxLength:5e3,rows:6,value:N.description,onChange:e=>R("description",e.target.value),placeholder:A.descriptionPlaceholder,className:"resize-y rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm leading-6 text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"})]}),(0,t.jsxs)("div",{id:"ticket-details",className:"grid gap-4 border-t border-ink-100 pt-4",children:[(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.emailLabel}),(0,t.jsx)("input",{type:"email",maxLength:254,value:N.contactEmail,onChange:e=>R("contactEmail",e.target.value),placeholder:A.emailPlaceholder,className:"rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"})]}),(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.versionLabel}),(0,t.jsx)("input",{maxLength:80,value:N.appVersion,onChange:e=>R("appVersion",e.target.value),placeholder:A.versionPlaceholder,className:"rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"})]})]}),(0,t.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.platformLabel}),(0,t.jsxs)("select",{required:!0,value:N.platform,onChange:e=>R("platform",e.target.value),className:"rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm text-ink-900 outline-none transition focus:border-skype focus:ring-2 focus:ring-sky-100",children:[(0,t.jsx)("option",{value:"",disabled:!0,children:A.platformPlaceholder}),g.map(e=>(0,t.jsx)("option",{value:e,children:e},e))]})]}),(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.driveLabel}
1),(0,t.jsx)("select",{value:N.driveProvider,onChange:e=>R("driveProvider",e.target.value),className:"rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm text-ink-900 outline-none transition focus:border-skype focus:ring-2 focus:ring-sky-100",children:b.map(([s,a,i])=>(0,t.jsx)("option",{value:s,children:"zh"===e?a:i},s||"none"))})]})]}),(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.stepsLabel}),(0,t.jsx)("textarea",{maxLength:3e3,rows:4,value:N.reproductionSteps,onChange:e=>R("reproductionSteps",e.target.value),placeholder:A.stepsPlaceholder,className:"resize-y rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm leading-6 text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"})]}),(0,t.jsxs)("label",{className:"grid gap-2",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-ink-700",children:A.expectedLabel}),(0,t.jsx)("textarea",{maxLength:2e3,rows:3,value:N.expectedBehavior,onChange:e=>R("expectedBehavior",e.target.value),placeholder:A.expectedPlaceholder,className:"resize-y rounded-lg border border-ink-100 bg-paper px-3 py-3 text-sm leading-6 text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"})]})]})]}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[(0,t.jsx)("p",{className:"text-sm leading-6 text-ink-500",children:j?A.signedIn:A.anonymous}),(0,t.jsxs)("button",{type:"submit",disabled:P,className:"btn-primary justify-center disabled:cursor-not-allowed disabled:bg-ink-300 disabled:shadow-none disabled:hover:translate-y-0",children:[P?(0,t.jsx)(d.Loader2,{className:"h-4 w-4 animate-spin","aria-hidden":!0}):(0,t.jsx)(m,{className:"h-4 w-4","aria-hidden":!0}),P?A.submitting:A.submit]})]}),C&&(0,t.jsx)("p",{className:"mt-4 rounded-lg border border-coral/30 bg-coral/10 px-3 py-2 text-sm text-ink-700",children:C})]})]}),(0,t.jsxs)("aside",{className:"space-y-4 lg:pt-28",children:[(0,t.jsxs)("div",{className:"rounded-lg border border-ink-100 bg-cloud p-5",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-ink-900",children:A.scopeTitle}),(0,t.jsx)("ul",{className:"mt-4 space-y-3 text-sm leading-6 text-ink-500",children:A.scopeItems.map(e=>(0,t.jsxs)("li",{className:"flex gap-2",children:[(0,t.jsx)("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-skype"}),(0,t.jsx)("span",{children:e})]},e))})]}),(0,t.jsxs)("div",{className:"rounded-lg border border-ink-100 bg-cloud p-5",children:[(0,t.jsx)("h2",{className:"text-base font-semibold text-ink-900",children:A.privacyTitle}),(0,t.jsx)("ul",{className:"mt-4 space-y-3 text-sm leading-6 text-ink-500",children:A.privacyItems.map(e=>(0,t.jsxs)("li",{className:"flex gap-2",children:[(0,t.jsx)("span",{className:"mt-2 h-1.5 w-1.5 shrink-0 rounded-full bg-leaf"}),(0,t.jsx)("span",{children:e})]},e))})]})]}),(0,t.jsxs)("div",{className:"col-span-full mt-8 border-t border-ink-100 pt-8",children:[(0,t.jsxs)("div",{className:"mb-4 flex items-center justify-between gap-3",children:[(0,t.jsxs)("h2",{className:"font-display text-xl font-semibold text-ink-900",children:[A.listTitle," (",E.length,")"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("select",{value:$,onChange:e=>_(e.target.value),className:"rounded-lg border border-ink-100 bg-paper px-3 py-2 text-sm text-ink-700 outline-none",children:[(0,t.jsx)("option",{value:"",children:"全部状态"}),(0,t.jsx)("option",{value:"open",children:"待处理"}),(0,t.jsx)("option",{value:"triaged",children:"已评估"}),(0,t.jsx)("option",{value:"in_progress",children:"处理中"}),(0,t.jsx)("option",{value:"resolved",children:"已解决"}),(0,t.jsx)("option",{value:"closed",children:"已关闭"})]}),(0,t.jsxs)("button",{onClick:G,disabled:O,className:"flex items-center gap-2 rounded-lg border border-ink-100 bg-paper px-3 py-2 text-sm text-ink-600 hover:bg-cloud transition",children:[(0,t.jsx)(p.RefreshCw,{className:`h-4 w-4 ${O?"animate-spin":""}`}),"刷新"]})]})]}),0===W.length?(0,t.jsx)("p",{className:"text-sm text-ink-400 py-8 text-center",children:"暂无工单"}):(0,t.jsx)("div",{className:"space-y-3",children:W.map(s=>(0,t.jsxs)("div",{className:"rounded-lg border border-ink-100 bg-paper p-4 hover:shadow-sm transition",children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 mb-1",children:[(0,t.jsx)("span",{className:"font-mono text-xs text-ink-400",children:s.number}),(0,t.jsx)("span",{className:`inline-flex items-center rounded-full border px-2 py-0.5 text-xs font-semibold ${k[s.status]||k.open}`,children:f[s.status]||s.status}),s.isHidden&&(0,t.jsx)("span",{className:"text-xs text-coral",children:"隐藏"}),s.isLocked&&(0,t.jsx)("span",{className:"text-xs text-ink-400",children:A.locked}),(0,t.jsx)("span",{className:"text-xs text-ink-400",children:"bug"===s.type?"Bug":"Feature"})]}),(0,t.jsx)("h3",{className:"font-semibold text-ink-900 text-sm",children:s.title}),(0,t.jsx)("p",{className:"mt-2 whitespace-pre-wrap break-words text-sm leading-6 text-ink-600",children:s.description}),s.reproductionSteps&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-ink-700",children:A.stepsLabel}),(0,t.jsx)("p",{className:"mt-1 whitespace-pre-wrap break-words text-sm leading-6 text-ink-600",children:s.reproductionSteps})]}),s.expectedBehavior&&(0,t.jsxs)("div",{className:"mt-3",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-ink-700",children:A.expectedLabel}),(0,t.jsx)("p",{className:"mt-1 whitespace-pre-wrap break-words text-sm leading-6 text-ink-600",children:s.expectedBehavior})]}),(0,t.jsxs)("div",{className:"mt-2 flex flex-wrap gap-x-4 gap-y-1 text-xs text-ink-400",children:[s.accountEmail&&(0,t.jsx)("span",{children:s.accountEmail}),s.appVersion&&(0,t.jsxs)("span",{children:["v",s.appVersion]}),s.platform&&(0,t.jsx)("span",{children:s.platform}),s.driveProvider&&(0,t.jsx)("span",{children:b.find(([e])=>e===s.driveProvider)?.["zh"===e?1:2]||s.driveProvider}),s.createdAt&&(0,t.jsx)("span",{children:new Date(s.createdAt).toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})})]})]}),D&&(0,t.jsxs)("div",{className:"flex shrink-0 flex-wrap justify-end gap-2",children:[(0,t.jsxs)("select",{value:s.status,onChange:e=>Y(s.id,{status:e.target.value}),className:"rounded-md border border-ink-100 bg-cloud px-2 py-1 text-xs text-ink-700 outline-none",children:[(0,t.jsx)("option",{value:"open",children:"待处理"}),(0,t.jsx)("option",{value:"triaged",children:"已评估"}),(0,t.jsx)("option",{value:"in_progress",children:"处理中"}),(0,t.jsx)("option",{value:"resolved",children:"已解决"}),(0,t.jsx)("option",{value:"closed",children:"已关闭"})]}),(0,t.jsx)("button",{type:"button",onClick:()=>Y(s.id,{isHidden:!s.isHidden}),className:"rounded-md border border-ink-100 bg-cloud p-2 text-ink-500 hover:text-ink-900",children:s.isHidden?(0,t.jsx)(l,{className:"h-4 w-4"}):(0,t.jsx)(n,{className:"h-4 w-4"})}),(0,t.jsx)("button",{type:"button",onClick:()=>Y(s.id,{isLocked:!s.isLocked}),className:"rounded-md border border-ink-100 bg-cloud p-2 text-ink-500 hover:text-ink-900",children:s.isLocked?(0,t.jsx)(u,{className:"h-4 w-4"}):(0,t.jsx)(c,{className:"h-4 w-4"})}),(0,t.jsx)("button",{type:"button",onClick:()=>Q(s.id),className:"rounded-md border border-coral/30 bg-coral/10 p-2 text-coral hover:bg-coral/15",children:(0,t.jsx)(x,{className:"h-4 w-4"})})]})]}),s.comments.length>0&&(0,t.jsx)("div",{className:"mt-4 space-y-2 border-t border-ink-100 pt-3",children:s.comments.map(s=>(0,t.jsxs)("div",{className:"rounded-md bg-cloud px-3 py-2 text-sm text-ink-600",children:[(0,t.jsx)("p",{className:"whitespace-pre-wrap leading-6",children:s.body}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-ink-400",children:[s.authorName||"Anonymous",s.isAdmin&&(0,t.jsx)("span",{className:"ml-2 roun
1ded-full border border-skype/30 bg-sky-50 px-2 py-0.5 text-[10px] font-semibold text-skype-deep",children:"zh"===e?"管理员":"Admin"}),s.createdAt?` \xb7 ${new Date(s.createdAt).toLocaleDateString("zh"===e?"zh-CN":"en-US",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}`:""]})]},s.id))}),s.isLocked?(0,t.jsx)("p",{className:"mt-3 text-sm text-ink-400",children:A.locked}):(0,t.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,t.jsx)("input",{value:H[s.id]||"",onChange:e=>q(t=>({...t,[s.id]:e.target.value})),placeholder:A.commentPlaceholder,className:"min-w-0 flex-1 rounded-lg border border-ink-100 bg-cloud px-3 py-2 text-sm text-ink-900 outline-none transition placeholder:text-ink-500 focus:border-skype focus:ring-2 focus:ring-sky-100"}),(0,t.jsx)("button",{type:"button",onClick:()=>K(s.id),disabled:V===s.id,className:"rounded-lg bg-accent-solid px-3 py-2 text-sm font-semibold text-white disabled:bg-ink-300",children:V===s.id?(0,t.jsx)(d.Loader2,{className:"h-4 w-4 animate-spin"}):A.commentSubmit})]})]},s.id))})]})]})}],55676)}]);

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.