(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{540:function(t,e,r){"use strict";var o=r(2),n=(r(17),r(28),r(3)),c=r(67),l=r(86);function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}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(o.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(n.a)(c.a,Object(l.b)("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(t){var e=Object.values(t).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput(input){var t=input=>input.$watch("hasError",(t=>{this.$set(this.errorBag,input._uid,t)}),{immediate:!0}),e={_uid:input._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?e.shouldValidate=input.$watch("shouldValidate",(r=>{r&&(this.errorBag.hasOwnProperty(input._uid)||(e.valid=t(input)))})):e.valid=t(input),e},validate(){return 0===this.inputs.filter((input=>!input.validate(!0))).length},reset(){this.inputs.forEach((input=>input.reset())),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout((()=>{this.errorBag={}}),0)},resetValidation(){this.inputs.forEach((input=>input.resetValidation())),this.resetErrorBag()},register(input){this.inputs.push(input),this.watchers.push(this.watchInput(input))},unregister(input){var t=this.inputs.find((i=>i._uid===input._uid));if(t){var e=this.watchers.find((i=>i._uid===t._uid));e&&(e.valid(),e.shouldValidate()),this.watchers=this.watchers.filter((i=>i._uid!==t._uid)),this.inputs=this.inputs.filter((i=>i._uid!==t._uid)),this.$delete(this.errorBag,t._uid)}}},render(t){return t("form",{staticClass:"v-form",attrs:h({novalidate:!0},this.attrs$),on:{submit:t=>this.$emit("submit",t)}},this.$slots.default)}})},847:function(t,e,r){"use strict";r.r(e);var o=r(193),n=r(194),c=r(27),l=r(540),d=r(490),h=r(5),m=r(16),_={name:"Authorize",layout:"modal",middleware:["auth"],asyncData:t=>Object(h.a)((function*(){var{$axios:e,query:r,error:o,req:n}=t,{transactionID:c,client:l,scope:d,redirect_uri:h}=r;return{transactionID:c,client:l,redirect_uri:h,scope:d}}))(),computed:Object(m.d)(["settings"]),head(){return{title:"".concat(this.settings.title," - Authorize")}}},f=r(13),component=Object(f.a)(_,(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(n.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(o.a,{attrs:{color:"error",to:"/",outlined:""}},[t._v(t._s(t.$t("common.cancel")))]),e(o.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}}]);