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.