text: (window.webpackJsonp=window.webpackJsonp||[]).push([[42],{1284:function(t,e,s){var o=s(1445);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);(0,s(2).default)("45e528f2",o,!0,{sourceMap:!1})},1444:function(t,e,s){"use strict";s(1284)},1445:function(t,e,s){var o=s(1)(!1);o.push([t.i,".settings-container{padding:2rem .5rem .5rem;position:relative}.settings-container .el-form-item__label{color:#f4f7fc}.settings-container h1,.settings-container h2,.settings-container h3,.settings-container h4,.settings-container h5,.settings-container p{color:#bdc3c7}.settings-container .el-card{margin-bottom:.6rem;margin-top:.6rem;background:#34495e;border:none}.settings-container .el-card .subtitle{color:#f4f7fc;font-weight:500}.settings-container .el-card.set-item .el-icon-arrow-down{transform:rotate(0deg);transition:transform .15s linear}.settings-container .el-card.set-item .el-icon-arrow-down.open{transform:rotate(-180deg);transition:transform .15s linear}.settings-container .el-card.set-item a i{padding-top:.3rem}.settings-container .el-card.set-item a h2{color:#bdc3c7;margin-bottom:.1rem}.settings-container .el-card.set-item .el-radio:not(.is-checked) .el-radio__label{color:#bdc3c7}.settings-container .el-card__body{padding:1rem}.settings-container .back-button{margin-bottom:1rem;margin-top:1rem}",""]),t.exports=o},1480:function(t,e,s){"use strict";s.r(e);var o=s(19),i={components:{},middleware:["load-rt-data","authenticated"],data:function(){return{loading_user_data:!1,set_show:""}},computed:{label_width:function(){return"zh"===this.$i18n.locale?"80px":"130px"},set_show_dyn:{get:function(){return this.set_show},set:function(t){this.set_show===t?this.set_show="":this.set_show=t}},port:{get:function(){return this.runTimeState.port},set:function(t){this.$store.commit("runTimeState",{port:t})}},force_ssl_check:{get:function(){return this.runTimeState.force_ssl_check},set:function(t){this.$store.commit("runTimeState",{force_ssl_check:t})}},smart_route:{get:function(){return this.runTimeState.smart_route},set:function(t){this.$store.commit("runTimeState",{smart_route:t})}},show_access_mode:{get:function(){return this.runTimeState.show_access_mode},set:function(t){t||this.$store.commit("runTimeState",{servermode:"auto"}),this.$store.commit("runTimeState",{show_access_mode:t})}},show_smart_route:{get:function(){return this.runTimeState.show_smart_route},set:function(t){this.$store.commit("runTimeState",{show_smart_route:t})}},no_flag:{get:function(){return this.runTimeState.no_flag},set:function(t){this.$store.commit("runTimeState",{no_flag:t})}},workmode:{get:function(){return this.runTimeState.workmode},set:function(t){this.$store.commit("runTimeState",{workmode:t})}},set_proxy:{get:function(){return this.runTimeState.set_proxy},set:function(t){this.$store.commit("runTimeState",{set_proxy:t})}},strategy:{get:function(){return this.runTimeState.strategy},set:function(t){this.$store.commit("runTimeState",{strategy:t})}},checkwebsite:{get:function(){return this.runTimeState.checkwebsite},set:function(t){this.$store.commit("runTimeState",{checkwebsite:t})}},checkduration:{get:function(){return this.runTimeState.checkduration},set:function(t){this.$store.commit("runTimeState",{checkduration:t})}}},created:function(){this.init()},mounted:function(){document.addEventListener("keydown",this.escHandler,!1)},beforeDestroy:function(){document.removeEventListener("keydown",this.escHandler)},methods:{init:function(){},switchService:function(t){this.$store.dispatch("runTimeState",{current_service_cate:t}),this.selectServiceDialogFormVisible=!1},saveSettings:function(){},goToPage:function(t){this.$router.push(t)},goBack:function(){this.goToPage("/dashboard/menu/")},setVisible:function(t){this.set_show[t]=!this.set_show[t],console.log(this.set_show)},signOut:function(){this.$confirm(this.$t("settings_page.logout.msg")).then((function(t){o.ipcRenderer.send("reset")})).catch((function(t){}))},showProxyWarning:function(){this.$alert("<center><h3>请您了解</h3></center><h5>若选择「手动设置」，软件在连接线路之后将不会自动修改您系统的代理选项，您需要自己手动配置系统代理才可正常使用服务。<br><br>此功能仅提供给有经验的、有特殊功能需求的用户使用，若您不了解此功能，请勿变动</h5>","⚠️ 风险警告",{dangerouslyUseHTMLString:!0}).catch((function(t){}))},showWarning:function(){this.$alert('<center><h3>请谨慎使用此模式</h3></center><ul><li><span class="small">可能会增加首次使用的延迟，且存在自动选择的线路不一定真正最优的情况</span></li><li><span class="small">若短时间内线路变化较大，例如在香港、日本之间频繁切换，部分网站会认为存在安全风险，可能导致您在该网站的账号被锁定等情况</span></li><li><span class="small">检测线路将会消耗额外的流量</span></li></ui>',"⚠️ 风险警告",{dangerouslyUseHTMLString:!0}).catch((function(t){}))}}},n=(s(1444),s(51)),r=Object(n.a)(i,(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"settings-container"},[s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){return t.goToPage("/dashboard/proxy-rules/")}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.proxy_list.name"))),s("i",{staticClass:"el-icon-link right"})])])])]),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="port"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.port.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"port"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"port"==t.set_show_dyn,expression:"set_show_dyn == 'port'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.port.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-input",{attrs:{type:"number",max:"65535",min:"1025"},model:{value:t.port,callback:function(e){t.port=e},expression:"port"}})],1)],1)])])],1),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="work_mode"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.work_mode.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"work_mode"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"work_mode"==t.set_show_dyn,expression:"set_show_dyn == 'work_mode'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.work_mode.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-radio-group",{attrs:{size:"medium"},model:{value:t.smart_route,callback:function(e){t.smart_route=e},expression:"smart_route"}},[s("el-radio",{attrs:{border:"",label:!0}},[t._v(t._s(t.$tc("settings_page.work_mode.options",1)))]),s("el-radio",{attrs:{border:"",label:!1}},[t._v(t._s(t.$tc("settings_page.work_mode.options",2)))])],1),s("br"),s("br"),s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.show_smart_route.desc"))}}),s("br"),s("el-radio-group",{attrs:{size:"medium"},model:{value:t.show_smart_route,callback:function(e){t.show_smart_route=e},expression:"show_smart_route"}},[s("el-radio",{attrs:{border:"",label:!0}},[t._v(t._s(t.$tc("settings_page.show_smart_route.options",1)))]),s("el-radio",{attrs:{border:"",label:!1}},[t._v(t._s(t.$tc("settings_page.show_smart_route.options",2)))])],1)],1)],1)])])],1),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="connect_protocol"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.connect_protocol.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"connect_protocol"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"connect_protocol"==t.set_show_dyn,expression:"set_show_dyn == 'connect_protocol'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.connect_protocol.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-radio-group",{attrs:{size:"medium"},model:{value:t.show_access_mode,callback:function(e){t.show_access_mode=e},expression:"show_access_mode"}},[s("el-radio",{attrs:{border:"",label:!1}},[t._v(t._s(t.$tc("settings_page.connect_protocol.options",1)))]),s("el-radio",{attrs:{border:"",label:!0}},[t._v(t._s(t.$tc("settings_page.connect_protocol.options",2)))])],1)],1)],1)])])],1),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="set_proxy"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.set_proxy.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"set_proxy"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"set_proxy"==t.set_show_dyn,expression:"set_show_dyn == 'set_proxy'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.set_proxy.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-radio-group",{attrs:{size:"medium"},model:{value:t.set_proxy,callback:function(e){t.set_proxy=e},expression:"set_proxy"}},[s("el-radio",{attrs:{border:"",label:"auto"}},[t._v(t._s(t.$tc("settings_page.set_proxy.options",1)))]),s("el-radio",{attrs:{border:"",label:"manual"},nativeOn:{click:function(e){return t.showProxyWarning.apply(null,arguments)}}},[t._v(t._s(t.$tc("settings_page.set_proxy.options",2)))])],1)],1)],1)])])],1),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="no_flag"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.no_flag.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"no_flag"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"no_flag"==t.set_show_dyn,expression:"set_show_dyn == 'no_flag'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.no_flag.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-radio-group",{attrs:{size:"medium"},model:{value:t.no_flag,callback:function(e){t.no_flag=e},expression:"no_flag"}},[s("el-radio",{attrs:{border:"",label:!1}},[t._v(t._s(t.$tc("settings_page.no_flag.options",1)))]),s("el-radio",{attrs:{border:"",label:!0}},[t._v(t._s(t.$tc("settings_page.no_flag.options",2)))])],1)],1)],1)])])],1),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="force_ssl_check"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.force_ssl_check.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"force_ssl_check"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"force_ssl_check"==t.set_show_dyn,expression:"set_show_dyn == 'force_ssl_check'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.force_ssl_check.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-radio-group",{attrs:{size:"medium"},model:{value:t.force_ssl_check,callback:function(e){t.force_ssl_check=e},expression:"force_ssl_check"}},[s("el-radio",{attrs:{border:"",label:!1}},[t._v(t._s(t.$tc("settings_page.force_ssl_check.options",1)))]),s("el-radio",{attrs:{border:"",label:!0}},[t._v(t._s(t.$tc("settings_page.force_ssl_check.options",2)))])],1)],1)],1)])])],1),s("el-card",{staticClass:"set-item",attrs:{shadow:"always"}},[s("div",{on:{click:function(e){t.set_show_dyn="line_mode"}}},[s("a",[s("h2",[t._v(t._s(t.$tc("settings_page.line_mode.title"))),s("i",{staticClass:"el-icon-arrow-down right",class:{open:"line_mode"==t.set_show_dyn}})])])]),s("el-collapse-transition",[s("div",{directives:[{name:"show",rawName:"v-show",value:"line_mode"==t.set_show_dyn,expression:"set_show_dyn == 'line_mode'"}]},[s("div",{staticClass:"transition-box"},[s("h5",{staticClass:"subtitle",domProps:{innerHTML:t._s(t.$tc("settings_page.line_mode.desc"))}}),s("br"),s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-form",{ref:"form",attrs:{"label-width":t.label_width,size:"mini"}},[s("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"focus",content:"每隔一段时间将通过访问该域名来检测各线路的可用性、延迟数据来决定使用的线路"}},[s("el-form-item",{attrs:{slot:"reference",label:t.$t("settings_page.line_mode.checkwebsite")},slot:"reference"},[s("el-input",{attrs:{type:"text"},model:{value:t.checkwebsite,callback:function(e){t.checkwebsite=e},expression:"checkwebsite"}})],1)],1),s("el-popover",{attrs:{placement:"top-start",width:"200",trigger:"focus",content:"每隔一段时间将检测各线路的可用性、延迟数据来决定使用的线路。单位：秒"}},[s("el-form-item",{attrs:{slot:"reference",label:t.$t("settings_page.line_mode.checkduration")},slot:"reference"},[s("el-input",{attrs:{type:"number"},model:{value:t.checkduration,callback:function(e){t.checkduration=e},expression:"checkduration"}},[s("template",{slot:"append"},[t._v(t._s(t.$t("seconds")))])],2)],1)],1)],1)],1)],1)])])],1),s("center",[s("b",{staticClass:"subheader"},[t._v(t._s(t.$t("settings_page.hint")))])]),s("el-button",{staticClass:"full-width back-button",attrs:{type:"primary"},on:{click:t.goBack}},[t._v(t._s(t.$t("back")))]),s("br"),s("el-button",{staticClass:"full-width sign-out-button",attrs:{type:"warning"},on:{click:t.signOut}},[t._v(t._s(t.$t("logout_reset")))])],1)}),[],!1,null,null,null);e.default=r.exports}}]);