(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{635:function(t,e,r){"use strict";var n=r(1),o=(r(7),r(8),r(81),r(30),r(12),r(13),r(9),r(3),r(210),r(55),r(10),r(56),r(4)),c=r(100),l=r(119);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){Object(n.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}e.a=Object(o.a)(c.a,Object(l.b)("form")).extend({name:"v-form",provide:function(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:function(){return{inputs:[],watchers:[],errorBag:{}}},watch:{errorBag:{handler:function(t){var e=Object.values(t).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput:function(input){var t=this,e=function(input){return input.$watch("hasError",(function(e){t.$set(t.errorBag,input._uid,e)}),{immediate:!0})},r={_uid:input._uid,valid:function(){},shouldValidate:function(){}};return this.lazyValidation?r.shouldValidate=input.$watch("shouldValidate",(function(n){n&&(t.errorBag.hasOwnProperty(input._uid)||(r.valid=e(input)))})):r.valid=e(input),r},validate:function(){return 0===this.inputs.filter((function(input){return!input.validate(!0)})).length},reset:function(){this.inputs.forEach((function(input){return input.reset()})),this.resetErrorBag()},resetErrorBag:function(){var t=this;this.lazyValidation&&setTimeout((function(){t.errorBag={}}),0)},resetValidation:function(){this.inputs.forEach((function(input){return input.resetValidation()})),this.resetErrorBag()},register:function(input){this.inputs.push(input),this.watchers.push(this.watchInput(input))},unregister:function(input){var t=this.inputs.find((function(i){return i._uid===input._uid}));if(t){var e=this.watchers.find((function(i){return i._uid===t._uid}));e&&(e.valid(),e.shouldValidate()),this.watchers=this.watchers.filter((function(i){return i._uid!==t._uid})),this.inputs=this.inputs.filter((function(i){return i._uid!==t._uid})),this.$delete(this.errorBag,t._uid)}}},render:function(t){var e=this;return t("form",{staticClass:"v-form",attrs:h({novalidate:!0},this.attrs$),on:{submit:function(t){return e.$emit("submit",t)}}},this.$slots.default)}})},945:function(t,e,r){"use strict";r.r(e);var n=r(262),o=r(263),c=r(54),l=r(635),d=r(585),h=r(11),f=(r(48),r(29)),m={name:"Authorize",layout:"modal",middleware:["auth"],asyncData:function(t){return Object(h.a)(regeneratorRuntime.mark((function e(){var r,n,o,c,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.$axios,r=t.query,t.error,t.req,n=r.transactionID,o=r.client,c=r.scope,l=r.redirect_uri,e.abrupt("return",{transactionID:n,client:o,redirect_uri:l,scope:c});case 3:case"end":return e.stop()}}),e)})))()},computed:Object(f.d)(["settings"]),head:function(){return{title:"".concat(this.settings.title," - Authorize")}}},_=r(26),component=Object(_.a)(m,(function(){var t=this,e=t._self._c;return e(l.a,{staticClass:"d-flex justify-space-around",attrs:{method:"post",action:"/oauth/authorize"}},[e(o.a,{staticClass:"mt-5",attrs:{"max-width":"600px"}},[e(c.d,[t._v(t._s(t.settings.title)+" - "+t._s(t.$t("common.authorize")))]),e(c.c,[e("h2",[t._v(t._s(t.$auth.user.email))]),e("input",{attrs:{name:"transaction_id",type:"hidden"},domProps:{value:t.transactionID}}),e("u",[t._v(t._s(t.$auth.user.email))]),e("div",[e("p",{domProps:{innerHTML:t._s(t.$t("oauth.authorization_request",{app:t.client,instance_name:t.settings.title}))}}),e("ul",{staticClass:"mb-2"},[e("li",[t._v(t._s(t.$t("oauth.scopes.".concat(t.scope))))])]),e("span",{domProps:{innerHTML:t._s(t.$t("oauth.redirected_to",{url:t.redirect_uri}))}})])]),e(c.a,[e(d.a),e(n.a,{attrs:{color:"error",to:"/",outlined:""}},[t._v(t._s(t.$t("common.cancel")))]),e(n.a,{attrs:{type:"submit",color:"success",outlined:""}},[t._v(t._s(t.$t("common.authorize")))])],1)],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);