PageSourceSearch

https://doc2x.noedgeai.com/assets/preference-C5Tvj2Bg.js

js noedgeai.com collected 2026-10-03 23:12:44 UTC 7,477 bytes, 3 lines download raw bytes

1import{r as s,j as e}from"./react-vendor-BwLrHRJ9.js";import{o as z}from"./helpCenterUrl-w3go8EuM.js";import{u as R}from"./desktopStore-F8Z_uoJI.js";import{g as $}from"./desktopBridge-tYBQqoLN.js";import{bl as H,B as G,Z as g,Y as L,w as Z,i5 as P,i6 as K,i7 as x}from"./main-DQzjeS5S.js";import{T as V}from"./targetParseModelSetter-DEFOcqmn.js";import{s as Y}from"./shallow-CyEewX55.js";import{a as C}from"./filenameSeparator-CQ4aAjLN.js";import{R as f}from"./InfoCircleOutlined-DNodFoOr.js";import{S as q}from"./index-8A2_Qis8.js";import{R as o}from"./index-wc0cHENP.js";const J=()=>{const{savePath:a,setSavePath:n}=R();const c=s.useCallback(async()=>{const l=await $()?.files.pickDirectory();if(l){n(l)}},[n]);const d=s.useCallback(l=>{n(l.target.value.trim())},[n]);return e.jsxs("div",{className:"flex items-center",children:[e.jsx(H,{onChange:d,value:a}),e.jsx(G,{onClick:c,className:"ml-2",children:"选择目录"})]})};const i=({label:a,children:n})=>e.jsxs("div",{className:"pt-4",children:[e.jsx("div",{className:"text-sm font-light mb-1",children:a}),n]});const p=({label:a,checked:n,onChange:c,tooltip:d,onInfoClick:l,infoTooltip:m})=>{const h=e.jsx(q,{"aria-label":a,className:"bg-highlight-gray",checked:n,onChange:c});const u=d?e.jsx(g,{title:d,children:h}):h;return e.jsx(i,{label:a,children:l?e.jsxs("span",{className:"inline-flex items-center gap-2",children:[u,e.jsx(g,{title:m,children:e.jsx("button",{type:"button","aria-label":m??`${a}说明`,className:"inline-flex min-h-8 min-w-8 items-center justify-center rounded text-gray-500 hover:text-gray-700 focus-visible:outline focus-visible:outline-2 focus-visible:outline-primary",onClick:l,children:e.jsx(f,{})})})]}):u})};const Q=[{value:x.NONE,label:"每次询问"},{value:x.MINIMIZE,label:"最小化"},{value:x.MinimizeToTray,label:"最小化到托盘"},{value:x.CLOSE,label:"直接退出"}];const y=()=>{const{t:a}=L("personCustomerSetting");const n=s.useMemo(()=>{return window.clientIdentity==="darwin"?"Command":"Ctrl"},[]);const c=Boolean(window.desktopIdentity)&&window.clientIdentity==="win32";const{isTheWindowsPopUpClosed:d,setIsTheWindowsPopUpClosed:l,enterDetailAfterParsed:m,setEnterDetailAfterParsed:h,analyticalEnhancement:u,setAnalyticalEnhancement:S,noPopUpWindowPopsUpNextTime:N,setNoPopUpWindowPopsUpNextTime:E,networkDetectionEnabled:B,setNetworkDetectionEnabled:T,browserPluginAlertEnabled:D,setBrowserPluginAlertEnabled:U,uploadFilenameSeparator:j,setUploadFilenameSeparator:w,filenameSeparator:b,setFilenameSeparator:v,pdfBookmarkExportMode:F,setPdfBookmarkExportMode:k}=Z(t=>({isTheWindowsPopUpClosed:t.isTheWindowsPopUpClosed,setIsTheWindowsPopUpClosed:t.setIsTheWindowsPopUpClosed,enterDetailAfterParsed:t.enterDetailAfterParsed,setEnterDetailAfterParsed:t.setEnterDetailAfterParsed,analyticalEnhancement:t.analyticalEnhancement,setAnalyticalEnhancement:t.setAnalyticalEnhancement,noPopUpWindowPopsUpNextTime:t.noPopUpWindowPopsUpNextTime,setNoPopUpWindowPopsUpNextTime:t.setNoPopUpWindowPopsUpNextTime,networkDetectionEnabled:t.networkDetectionEnabled,setNetworkDetectionEnabled:t.setNetworkDetectionEnabled,browserPluginAlertEnabled:t.browserPluginAlertEnabled,setBrowserPluginAlertEnabled:t.setBrowserPluginAlertEnabled,uploadFilenameSeparator:t.uploadFilenameSeparator,setUploadFilenameSeparator:t.setUploadFilenameSeparator,filenameSeparator:t.filenameSeparator,setFilenameSeparator:t.setFilenameSeparator,pdfBookmarkExportMode:t.pdfBookmarkExportMode,setPdfBookmarkExportMode:t.setPdfBookmarkExportMode}),Y);const I=s.useCallback(t=>{const r=t.target.value;if(P(r))w(r)},[w]);const W=s.useCallback(t=>{const r=t.target.value;if(P(r))v(r)},[v]);const M=s.useCallback(t=>{k(t.target.value)},[k]);const A=s.useCallback(t=>{const r=Number(t.target.value);if(K(r))l(r)},[l]);const O=s.useMemo(()=>C(j,"My","Document")+".pdf",[j]);const _=s.useMemo(()=>C(b,"document","translated")+".pdf",[b]);return e.jsxs("div",{className:"px-6 py-7 border-borderPrimary border-1 rounded-md",children:[e.jsx("div",{className:"text-2xl font-bold mb-1",children:"个人设置"}),window.desktopIdentity&&e.jsxs(e.Fragment,{children:[e.jsx(i,{label:"文件默认下载位置",children:e.jsx(J,{})}),e.jsx(i,{label:"桌面缩放快捷键",children:e.jsxs("div",{className:"text-sm text-gray-600 space-y-1",children:[e.jsxs("div",{children:["• ",n," + + (放大)"]}
1),e.jsxs("div",{children:["• ",n," + - (缩小)"]}),window.clientIdentity!=="darwin"&&e.jsx("div",{children:"• Ctrl + 鼠标滚轮 (缩放)"})]})}),c&&e.jsxs(i,{label:"点击关闭按钮时(仅 Windows)",children:[e.jsx(o.Group,{"data-testid":"windows-close-behavior-group",value:d,onChange:A,size:"small",children:Q.map(t=>e.jsx(o.Button,{value:t.value,children:t.label},t.value))}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:"控制点击右上角关闭按钮后的默认行为;选择“每次询问”后,会恢复首次关闭时的确认弹窗。"})]})]}),e.jsx(p,{label:"任务完成后自动进入详情页(默认开)",checked:m,onChange:h,tooltip:a("autoEnterDetailTooltip")}),e.jsx(p,{label:"解析增强上下文翻译,可选指定解析翻译页码以及忽略翻译部分(默认开)",checked:u,onChange:S,tooltip:a("analyticalEnhancement"),onInfoClick:z,infoTooltip:"了解增强上下文翻译"}),e.jsx(p,{label:"每日不再自动弹出签到(默认关)",checked:N,onChange:E}),e.jsx(p,{label:"网络环境异常弹窗(默认开)",checked:B,onChange:T}),!window?.desktopIdentity&&e.jsx(p,{label:"浏览器插件冲突提示(默认开)",checked:D,onChange:U}),e.jsxs(i,{label:e.jsxs("span",{children:[a("uploadFileNameStyle"),e.jsx(g,{title:`${a("uploadFileNameStyleTip")}
2${a("uploadFileNameScope")}`,children:e.jsx(f,{className:"ml-2 text-gray-400 cursor-help"})})]}),children:[e.jsxs(o.Group,{"data-testid":"upload-filename-separator-group",value:j,onChange:I,size:"small",children:[e.jsx(o.Button,{value:"-",children:a("separatorHyphen")}),e.jsx(o.Button,{value:"_",children:a("separatorUnderscore")}),e.jsx(o.Button,{value:"camelCase",children:a("separatorCamelCase")})]}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:O})]}),e.jsxs(i,{label:e.jsxs("span",{children:[a("exportFileNameStyle"),e.jsx(g,{title:`${a("exportFileNameStyleTip")}
3${window.desktopIdentity?a("exportFileNameScopeDesktop"):a("exportFileNameScopeWeb")}`,children:e.jsx(f,{className:"ml-2 text-gray-400 cursor-help"})})]}),children:[e.jsxs(o.Group,{"data-testid":"filename-separator-group",value:b,onChange:W,size:"small",children:[e.jsx(o.Button,{value:"-",children:a("separatorHyphen")}),e.jsx(o.Button,{value:"_",children:a("separatorUnderscore")}),e.jsx(o.Button,{value:"camelCase",children:a("separatorCamelCase")})]}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:_})]}),e.jsxs(i,{label:a("pdfBookmarkHandling"),children:[e.jsxs(o.Group,{value:F,onChange:M,size:"small",children:[e.jsx(o.Button,{value:"preserveOriginal",children:a("pdfBookmarkModePreserveOriginal")}),e.jsx(o.Button,{value:"none",children:a("pdfBookmarkModeNone")})]}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:a("pdfBookmarkHandlingTip")})]}),e.jsx(i,{label:"图片解析模型",children:e.jsx(V,{bordered:true})})]})};const ce=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"}));const pe=Object.freeze(Object.defineProperty({__proto__:null,Preference:y},Symbol.toStringTag,{value:"Module"}));export{ce as D,pe as p};

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.