(window.webpackJsonp=window.webpackJsonp||[]).push([[27],{549:function(e,t,o){"use strict";o.r(t);var n=o(8),c=o(38);function r(object,e){var t=Object.keys(object);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(object);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(object,e).enumerable}))),t.push.apply(t,o)}return t}function l(e){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?r(Object(source),!0).forEach((function(t){Object(n.a)(e,t,source[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(source)):r(Object(source)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(source,t))}))}return e}var d={i18n:{messages:{zh:{title:"输入激活码",get:"领取",key:"激活码",please:"请输入激活码"},en:{title:"Enter the CD-Key",get:"Get it",key:"CD-Key",please:"Please enter the CD-Key"}}},data:function(){return{showCodePop:!1,activationCode:""}},methods:l(l({},Object(c.b)({cdkeyActive:"user/cdkeyActive"})),{},{onActive:function(){var e=this;this.$dialog.confirm({title:"提示",message:"领取该激活码? \n ".concat(this.activationCode)}).then((function(){e.$toast.loading(),e.cdkeyActive({keys:e.activationCode}).then((function(t){var o=t.msg;e.$toast(o)})).catch((function(t){var o=t.msg;e.$toast(o)}))}))}})},f=o(43),component=Object(f.a)(d,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("van-dialog",{attrs:{title:e.$t("title"),"confirm-button-text":e.$t("get"),"show-cancel-button":""},on:{confirm:e.onActive},model:{value:e.showCodePop,callback:function(t){e.showCodePop=t},expression:"showCodePop"}},[o("van-cell-group",[o("van-field",{attrs:{label:e.$t("key"),"label-width":"4em",placeholder:e.$t("please")},model:{value:e.activationCode,callback:function(t){e.activationCode=t},expression:"activationCode"}})],1)],1)}),[],!1,null,null,null);t.default=component.exports}}]);