(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d225131"],{e39f:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-12"},[a("div",{staticClass:"card"},[a("div",{staticClass:"card-header"},[a("b-button",{attrs:{to:{name:"system.setting"},size:"sm",variant:"light"}},[e._v(" Kembali ")])],1),"undefined"!=typeof e.airlock.name?a("div",{staticClass:"card-body"},[a("b-form-checkbox",{attrs:{switch:"",value:!0},model:{value:e.airlock.value.isactive,callback:function(t){e.$set(e.airlock.value,"isactive",t)},expression:"airlock.value.isactive"}},[e._v(" Activate airlock for login ")]),e._v(" Create a new client and set the redirecto URI to: "),a("code",[e._v("http://current-url/auth")]),a("div",{staticClass:"row"},[a("div",{staticClass:"col-md-6"},[a("form",{on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[a("div",{staticClass:"form-group"},[a("label",[e._v("Client ID")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.airlock.value.client_id,expression:"airlock.value.client_id"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.airlock.value.client_id},on:{input:function(t){t.target.composing||e.$set(e.airlock.value,"client_id",t.target.value)}}})]),a("div",{staticClass:"form-group"},[a("label",[e._v("Client Secret")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.airlock.value.client_secret,expression:"airlock.value.client_secret"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.airlock.value.client_secret},on:{input:function(t){t.target.composing||e.$set(e.airlock.value,"client_secret",t.target.value)}}})]),a("div",{staticClass:"form-group"},[a("label",[e._v("OAuth Server URL")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.airlock.value.server_url,expression:"airlock.value.server_url"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.airlock.value.server_url},on:{input:function(t){t.target.composing||e.$set(e.airlock.value,"server_url",t.target.value)}}})]),a("div",{staticClass:"form-group"},[a("label",[e._v("Server Token Endpoint")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.airlock.value.token_url,expression:"airlock.value.token_url"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.airlock.value.token_url},on:{input:function(t){t.target.composing||e.$set(e.airlock.value,"token_url",t.target.value)}}})]),a("div",{staticClass:"form-group"},[a("label",[e._v("User Information Endpoint")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.airlock.value.user_url,expression:"airlock.value.user_url"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.airlock.value.user_url},on:{input:function(t){t.target.composing||e.$set(e.airlock.value,"user_url",t.target.value)}}})]),a("div",{staticClass:"form-group"},[a("label",[e._v("Consumer URL")]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.airlock.value.consumer_url,expression:"airlock.value.consumer_url"}],staticClass:"form-control",attrs:{type:"text",required:""},domProps:{value:e.airlock.value.consumer_url},on:{input:function(t){t.target.composing||e.$set(e.airlock.value,"consumer_url",t.target.value)}}})]),a("div",{staticClass:"form-group"},[a("b-button",{attrs:{variant:"primary",type:"submit",disabled:e.isLoading}},[e._v(" "+e._s(e.isLoading?"Processing...":"Save configuration")+" ")])],1)])])])],1):e._e()])])])},i=[],o=(a("96cf"),a("1da1")),s=a("5530"),l=a("2f62"),n=a("cecb"),c={name:"Airlock",data:function(){return{}},computed:Object(s["a"])(Object(s["a"])({},Object(l["c"])(["isLoading","baseURL"])),Object(l["e"])("setting",{airlock:function(e){return e.set_airlock}})),methods:Object(s["a"])(Object(s["a"])({},Object(l["b"])("setting",["getSettingAirlock","setSettingAirlock"])),{},{submit:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.setSettingAirlock();case 3:e.getSettingAirlock(),e.$bvToast.toast("Authentication airlock setting berhasil disimpan",Object(n["c"])()),t.next=10;break;case 7:t.prev=7,t.t0=t["catch"](0),e.$bvToast.toast(t.t0.message,Object(n["b"])());case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))()}}),created:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.getSettingAirlock();case 3:t.next=8;break;case 5:t.prev=5,t.t0=t["catch"](0),e.$bvToast.toast(t.t0.message,Object(n["b"])());case 8:case"end":return t.stop()}}),t,null,[[0,5]])})))()}},u=c,v=a("2877"),m=Object(v["a"])(u,r,i,!1,null,null,null);t["default"]=m.exports}}]);
//# sourceMappingURL=chunk-2d225131.fcec581f.js.map