(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,84567,e=>{"use strict";var s=e.i(15217),t=e.i(56749),r=e.i(62030),a=e.i(49945),c=e.i(62614),d=e.i(20108);function l({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card",className:(0,d.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function i({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-header",className:(0,d.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function n({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-title",className:(0,d.cn)("leading-none font-semibold",e),...t})}function o({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-description",className:(0,d.cn)("text-muted-foreground text-sm",e),...t})}function u({className:e,...t}){return(0,s.jsx)("div",{"data-slot":"card-content",className:(0,d.cn)("px-6",e),...t})}var x=e.i(24658),h=e.i(47535),m=e.i(31876),p=e.i(18850),j=e.i(39721);e.s(["default",0,function(){let{config:e,loading:d,loadConfig:f,updateConfig:g}=(0,x.useConfig)(),[N,v]=(0,t.useState)(""),[b,D]=(0,t.useState)("");(0,t.useEffect)(()=>{f()},[f]),(0,t.useEffect)(()=>{e&&(v(e.customOutputDir||""),D(e.customScheduledExportDir||""))},[e]);let E=async()=>{await g({customOutputDir:N.trim()||null,customScheduledExportDir:b.trim()||null})};return(0,s.jsx)("div",{className:"min-h-screen bg-background p-6",children:(0,s.jsxs)("div",{className:"max-w-4xl mx-auto space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)(h.Settings,{className:"w-8 h-8"}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-3xl font-bold",children:"设置"}),(0,s.jsx)("p",{className:"text-muted-foreground",children:"配置导出路径和其他选项"})]})]}),(0,s.jsxs)(l,{children:[(0,s.jsxs)(i,{children:[(0,s.jsxs)(n,{className:"flex items-center gap-2",children:[(0,s.jsx)(m.FolderOpen,{className:"w-5 h-5"}),"导出路径设置"]}),(0,s.jsx)(o,{children:"自定义导出文件的保存位置。留空则使用默认路径。"})]}),(0,s.jsxs)(u,{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(c.Label,{htmlFor:"outputDir",children:"默认导出路径"}),(0,s.jsx)(a.Input,{id:"outputDir",placeholder:"留空使用默认路径",value:N,onChange:e=>v(e.target.value),disabled:d}),e&&(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["当前使用: ",e.currentExportsDir]})]}),(0,s.jsxs)("div",{className:"space-y-2",children:[(0,s.jsx)(c.Label,{htmlFor:"scheduledExportDir",children:"定时导出路径"}),(0,s.jsx)(a.Input,{id:"scheduledExportDir",placeholder:"留空使用默认路径",value:b,onChange:e=>D(e.target.value),disabled:d}),e&&(0,s.jsxs)("p",{className:"text-sm text-muted-foreground",children:["当前使用: ",e.currentScheduledExportsDir]})]}),(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsxs)(r.Button,{onClick:E,disabled:d,children:[(0,s.jsx)(p.Save,{className:"w-4 h-4 mr-2"}),"保存设置"]}),(0,s.jsxs)(r.Button,{variant:"outline",onClick:()=>{e&&(v(e.customOutputDir||""),D(e.customScheduledExportDir||""))},disabled:d,children:[(0,s.jsx)(j.RotateCcw,{className:"w-4 h-4 mr-2"}),"重置"]})]})]})]}),(0,s.jsxs)(l,{children:[(0,s.jsx)(i,{children:(0,s.jsx)(n,{children:"使用说明"})}),(0,s.jsxs)(u,{className:"space-y-2 text-sm text-muted-foreground",children:[(0,s.jsx)("p",{children:"• 路径可以是绝对路径（如 D:\\QQ-Exports）或相对路径"}),(0,s.jsx)("p",{children:"• Windows 系统使用反斜杠（\\）或正斜杠（/）均可"}),(0,s.jsx)("p",{children:"• 修改路径后，新的导出文件将保存到新路径"}),(0,s.jsx)("p",{children:"• 已导出的文件不会自动移动，需要手动迁移"}),(0,s.jsx)("p",{children:"• 留空则使用默认路径：%USERPROFILE%\\.qq-chat-exporter\\exports"})]})]})]})})}],84567)}]);