import{_ as e}from"../assets/_plugin-vue_export-helper-Dhj2TMYm.js";import{d as a,r as l,q as s,c as o,o as t,a as u,f as d,g as n,u as i,x as c,y as r,z as p,A as m,j as f,t as v,k as g,B as _,p as h}from"../assets/vendor-BWybYV19.js";const b={class:"options-app"},y={class:"content"},V={class:"about-content"},M={class:"footer"};h(e(a({__name:"OptionsApp",setup(e){const a=l({autoMode:!1,notifications:!0,debugMode:!1}),h=async()=>{try{await chrome.storage.sync.set({sufengSettings:a.value}),_.success("设置已保存")}catch(e){_.error("保存设置失败")}},k=()=>{a.value={autoMode:!1,notifications:!0,debugMode:!1},_.info("已重置为默认设置")};return s(()=>{(async()=>{try{const e=await chrome.storage.sync.get(["sufengSettings"]);e.sufengSettings&&(a.value={...a.value,...e.sufengSettings})}catch(e){}})()}),(e,l)=>(t(),o("div",b,[l[12]||(l[12]=u("div",{class:"header"},[u("h1",null,"设置页面"),u("p",null,"配置您的TikTok店铺管理工具")],-1)),u("div",y,[d(i(m),null,{header:n(()=>[...l[3]||(l[3]=[u("div",{class:"card-header"},[u("span",null,"基本设置")],-1)])]),default:n(()=>[d(i(c),{model:a.value,"label-width":"120px"},{default:n(()=>[d(i(r),{label:"自动模式"},{default:n(()=>[d(i(p),{modelValue:a.value.autoMode,"onUpdate:modelValue":l[0]||(l[0]=e=>a.value.autoMode=e)},null,8,["modelValue"]),l[4]||(l[4]=u("div",{class:"form-item-desc"}," 启用后将自动执行部分操作 ",-1))]),_:1}),d(i(r),{label:"通知设置"},{default:n(()=>[d(i(p),{modelValue:a.value.notifications,"onUpdate:modelValue":l[1]||(l[1]=e=>a.value.notifications=e)},null,8,["modelValue"]),l[5]||(l[5]=u("div",{class:"form-item-desc"}," 允许显示操作结果通知 ",-1))]),_:1}),d(i(r),{label:"调试模式"},{default:n(()=>[d(i(p),{modelValue:a.value.debugMode,"onUpdate:modelValue":l[2]||(l[2]=e=>a.value.debugMode=e)},null,8,["modelValue"]),l[6]||(l[6]=u("div",{class:"form-item-desc"}," 开启后将显示详细的调试信息 ",-1))]),_:1})]),_:1},8,["model"])]),_:1}),d(i(m),{class:"mt-4"},{header:n(()=>[...l[7]||(l[7]=[u("div",{class:"card-header"},[u("span",null,"关于")],-1)])]),default:n(()=>[u("div",V,[u("p",null,[l[8]||(l[8]=u("strong",null,"扩展版本:",-1)),f(" "+v("2.2.3"),1)]),l[9]||(l[9]=u("p",null,[u("strong",null,"支持平台:"),f(" TikTok Shop (美国)")],-1))])]),_:1})]),u("div",M,[d(i(g),{type:"primary",onClick:h},{default:n(()=>[...l[10]||(l[10]=[f(" 保存设置 ",-1)])]),_:1}),d(i(g),{onClick:k},{default:n(()=>[...l[11]||(l[11]=[f(" 重置默认 ",-1)])]),_:1})])]))}}),[["__scopeId","data-v-6778f118"]])).mount("#app");
