{"version":3,"sources":["webpack:///./src/apps/open/views/devCenter/myApp/CertificateCallback.vue?d8d7","webpack:///./src/apps/open/views/devCenter/myApp/CertificateCallback.vue","webpack:///./src/apps/open/views/devCenter/myApp/CertificateCallback.vue?c69c","webpack:///./src/apps/open/views/devCenter/myApp/CertificateCallback.vue?f738","webpack:///./node_modules/core-js/modules/es6.regexp.constructor.js","webpack:///./src/apps/open/layout/ContentLayout.vue?d1e8","webpack:///./src/apps/open/layout/ContentLayout.vue","webpack:///./src/apps/open/layout/ContentLayout.vue?1dc7","webpack:///./src/apps/open/layout/ContentLayout.vue?b521","webpack:///./src/apps/open/layout/ContentLayout.vue?195b","webpack:///./src/apps/open/views/devCenter/myApp/CertificateCallback.vue?065e"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","staticClass","directives","name","rawName","value","expression","ref","form","rules","nativeOn","$event","preventDefault","_v","model","callback","$$v","$set","on","testCallback","saveCallbackConfig","staticRenderFns","callback_url","loading","getCallbackInfo","params","callback_addr","appId","res","data","result","isValid","object","is_valid","$message","success","error","$refs","validate","valid","info","$store","getters","urlReg","RegExp","urlRule","isPrivate","pattern","message","trigger","type","required","min","max","$route","id","components","ContentLayout","Button","component","global","inheritIfRequired","dP","f","gOPN","isRegExp","$flags","$RegExp","Base","proto","prototype","re1","re2","CORRECT_NEW","p","tiRE","piRE","fiU","undefined","constructor","source","call","proxy","key","configurable","get","set","it","keys","i","length","_s","title","_t"],"mappings":"mJAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,gBAAgB,CAACE,MAAM,CAAC,MAAQ,SAAS,CAACF,EAAG,MAAM,CAACG,YAAY,QAAQ,CAACH,EAAG,UAAU,CAACI,WAAW,CAAC,CAACC,KAAK,UAAUC,QAAQ,YAAYC,MAAOX,EAAW,QAAEY,WAAW,YAAYC,IAAI,OAAOP,MAAM,CAAC,MAAQN,E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AY,qBAAqB,CAACP,EAAImG,GAAG,YAAY,MACpVxE,EAAkB,G,wECeD,EAArB,kJAA2C,QAEzC,QADC,kB,4BADkB,EAAa,QADjC,QACoB,WChBuZ,I,wBCQxasC,EAAY,eACd,EACAlE,EACA4B,GACA,EACA,KACA,WACA,MAIa,OAAAsC,E,6CCnBf,yBAAmlB,EAAG,G,kCCAtlB,yBAAmoB,EAAG,G","file":"js/chunk-5ba21def.b4785f7f.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ContentLayout',{attrs:{\"title\":\"证书回调\"}},[_c('div',{staticClass:\"root\"},[_c('el-form',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"form\",attrs:{\"model\":_vm.form,\"rules\":_vm.rules},nativeOn:{\"submit\":function($event){$event.preventDefault();}}},[_c('h3',[_vm._v(\"回调配置\")]),_c('el-form-item',{attrs:{\"label\":\"回调域名\",\"prop\":\"callback_url\"}},[_c('div',{staticClass:\"action-wrapper\"},[_c('el-input',{staticClass:\"input-item\",attrs:{\"type\":\"text\",\"placeholder\":\"请输入http或https开头的回调地址\"},model:{value:(_vm.form.callback_url),callback:function ($$v) {_vm.$set(_vm.form, \"callback_url\", $$v)},expression:\"form.callback_url\"}}),_c('el-button',{attrs:{\"size\":\"small\"},on:{\"click\":_vm.testCallback}},[_vm._v(\"测试\")])],1)]),_c('span',{staticClass:\"desc\"},[_vm._v(\"* 点击测试按钮,系统会主动发送一次证书到期推送,方便开发者测试\")])],1)],1),_c('Button',{staticClass:\"submit-btn\",attrs:{\"type\":\"primary\"},nativeOn:{\"click\":function($event){return _vm.saveCallbackConfig($event)}}},[_vm._v(\"保存\")])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\r\nimport { Component, Vue } from 'vue-property-decorator'\r\nimport ContentLayout from '@/apps/open/layout/ContentLayout.vue'\r\nimport { priUrlReg } from '@/apps/open/constants'\r\nimport Button from '@components/Button'\r\nimport { ElForm } from 'element-ui/types/form'\r\nimport { testCertificateCallback, saveCertificateCallback, getCertificateCallback } from '@/apps/open/services/app'\r\n\r\n@Component({\r\n components: {\r\n ContentLayout,\r\n Button\r\n }\r\n})\r\nexport default class Callback extends Vue {\r\n form = {\r\n callback_url: ''\r\n }\r\n\r\n loading: boolean = false\r\n\r\n $refs!: {\r\n form: ElForm\r\n }\r\n\r\n get isPrivate () {\r\n return this.$store.getters['isPrivate']\r\n }\r\n\r\n get rules () {\r\n const urlReg = new RegExp(priUrlReg, 'i')\r\n const urlRule = this.isPrivate ? { pattern: urlReg, message: '请输入正确的回调域名', trigger: ['blur', 'change'] } : { type: 'url', message: '请输入正确的回调域名', trigger: ['blur', 'change'] }\r\n return {\r\n callback_url: [\r\n { required: true, message: '请填写回调域名', trigger: ['blur', 'change'] },\r\n { min: 1, max: 255, message: '长度不超过255个字符', trigger: ['blur', 'change'] },\r\n urlRule\r\n ]\r\n }\r\n }\r\n\r\n get appId () {\r\n return this.$route.params.id\r\n }\r\n\r\n mounted () {\r\n this.getCallbackInfo()\r\n }\r\n\r\n async testCallback () {\r\n const params = {\r\n callback_addr: this.form.callback_url\r\n }\r\n const res = await testCertificateCallback(this.appId, params)\r\n if (res.data.result === 'ok') {\r\n let isValid = res.data.object.is_valid\r\n if (isValid) {\r\n this.$message.success(`通知成功`)\r\n } else {\r\n this.$message.error(`通知失败`)\r\n }\r\n }\r\n }\r\n\r\n saveCallbackConfig () {\r\n this.$refs.form.validate(async (valid: boolean) => {\r\n if (valid) {\r\n const params = {\r\n callback_addr: this.form.callback_url\r\n }\r\n const res = await saveCertificateCallback(this.appId, params)\r\n if (res.data.result === 'ok') {\r\n this.$message.success('保存成功')\r\n }\r\n }\r\n })\r\n }\r\n\r\n async getCallbackInfo () {\r\n const res = await getCertificateCallback(this.appId)\r\n if (res.data.result === 'ok') {\r\n const info = res.data.object\r\n this.form = {\r\n callback_url: info.callback_addr\r\n }\r\n }\r\n }\r\n}\r\n","import mod from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CertificateCallback.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js!../../../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CertificateCallback.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CertificateCallback.vue?vue&type=template&id=dcf18074&scoped=true&\"\nimport script from \"./CertificateCallback.vue?vue&type=script&lang=ts&\"\nexport * from \"./CertificateCallback.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CertificateCallback.vue?vue&type=style&index=0&id=dcf18074&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dcf18074\",\n null\n \n)\n\nexport default component.exports","var global = require('./_global');\nvar inheritIfRequired = require('./_inherit-if-required');\nvar dP = require('./_object-dp').f;\nvar gOPN = require('./_object-gopn').f;\nvar isRegExp = require('./_is-regexp');\nvar $flags = require('./_flags');\nvar $RegExp = global.RegExp;\nvar Base = $RegExp;\nvar proto = $RegExp.prototype;\nvar re1 = /a/g;\nvar re2 = /a/g;\n// \"new\" creates a new object, old webkit buggy here\nvar CORRECT_NEW = new $RegExp(re1) !== re1;\n\nif (require('./_descriptors') && (!CORRECT_NEW || require('./_fails')(function () {\n re2[require('./_wks')('match')] = false;\n // RegExp constructor can alter flags and IsRegExp works correct with @@match\n return $RegExp(re1) != re1 || $RegExp(re2) == re2 || $RegExp(re1, 'i') != '/a/i';\n}))) {\n $RegExp = function RegExp(p, f) {\n var tiRE = this instanceof $RegExp;\n var piRE = isRegExp(p);\n var fiU = f === undefined;\n return !tiRE && piRE && p.constructor === $RegExp && fiU ? p\n : inheritIfRequired(CORRECT_NEW\n ? new Base(piRE && !fiU ? p.source : p, f)\n : Base((piRE = p instanceof $RegExp) ? p.source : p, piRE && fiU ? $flags.call(p) : f)\n , tiRE ? this : proto, $RegExp);\n };\n var proxy = function (key) {\n key in $RegExp || dP($RegExp, key, {\n configurable: true,\n get: function () { return Base[key]; },\n set: function (it) { Base[key] = it; }\n });\n };\n for (var keys = gOPN(Base), i = 0; keys.length > i;) proxy(keys[i++]);\n proto.constructor = $RegExp;\n $RegExp.prototype = proto;\n require('./_redefine')(global, 'RegExp', $RegExp);\n}\n\nrequire('./_set-species')('RegExp');\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"open-content\"},[_c('div',{staticClass:\"open-content-header\"},[_c('span',{staticClass:\"open-content-title\"},[_vm._v(_vm._s(_vm.title))]),_vm._t(\"after-title\")],2),_c('div',{staticClass:\"open-content-body\"},[_vm._t(\"default\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue, Prop } from 'vue-property-decorator'\n\n@Component\nexport default class ContentLayout extends Vue {\n @Prop()\n title?: string\n}\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--14-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ContentLayout.vue?vue&type=template&id=155ecb03&scoped=true&\"\nimport script from \"./ContentLayout.vue?vue&type=script&lang=ts&\"\nexport * from \"./ContentLayout.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ContentLayout.vue?vue&type=style&index=0&id=155ecb03&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"155ecb03\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=style&index=0&id=155ecb03&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ContentLayout.vue?vue&type=style&index=0&id=155ecb03&lang=scss&scoped=true&\"","import mod from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CertificateCallback.vue?vue&type=style&index=0&id=dcf18074&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CertificateCallback.vue?vue&type=style&index=0&id=dcf18074&lang=scss&scoped=true&\""],"sourceRoot":""}