(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4378102f"],{"088b":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("b-img",{attrs:{src:n("595e"),height:"80"}})],1)},o=[],a=n("4918"),i={components:{BImg:a["a"]}},c=i,s=n("2877"),u=Object(s["a"])(c,r,o,!1,null,null,null);t["a"]=u.exports},4918:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return j}));var r=n("2b0e"),o=n("b42e"),a=n("c637"),i=n("a723"),c=n("2326"),s=n("6c06"),u=n("7b1e"),l=n("3a58"),f=n("cf75"),g=n("fa73");function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b='',d=function(e,t,n){var r=encodeURIComponent(b.replace("%{w}",Object(g["g"])(e)).replace("%{h}",Object(g["g"])(t)).replace("%{f}",n));return"data:image/svg+xml;charset=UTF-8,".concat(r)},p=Object(f["d"])({alt:Object(f["c"])(i["u"]),blank:Object(f["c"])(i["g"],!1),blankColor:Object(f["c"])(i["u"],"transparent"),block:Object(f["c"])(i["g"],!1),center:Object(f["c"])(i["g"],!1),fluid:Object(f["c"])(i["g"],!1),fluidGrow:Object(f["c"])(i["g"],!1),height:Object(f["c"])(i["p"]),left:Object(f["c"])(i["g"],!1),right:Object(f["c"])(i["g"],!1),rounded:Object(f["c"])(i["j"],!1),sizes:Object(f["c"])(i["f"]),src:Object(f["c"])(i["u"]),srcset:Object(f["c"])(i["f"]),thumbnail:Object(f["c"])(i["g"],!1),width:Object(f["c"])(i["p"])},a["U"]),j=r["default"].extend({name:a["U"],functional:!0,props:p,render:function(e,t){var n,r=t.props,a=t.data,i=r.alt,f=r.src,b=r.block,p=r.fluidGrow,j=r.rounded,m=Object(l["b"])(r.width)||null,k=Object(l["b"])(r.height)||null,w=null,v=Object(c["b"])(r.srcset).filter(s["a"]).join(","),O=Object(c["b"])(r.sizes).filter(s["a"]).join(",");return r.blank&&(!k&&m?k=m:!m&&k&&(m=k),m||k||(m=1,k=1),f=d(m,k,r.blankColor||"transparent"),v=null,O=null),r.left?w="float-left":r.right?w="float-right":r.center&&(w="mx-auto",b=!0),e("img",Object(o["a"])(a,{attrs:{src:f,alt:i,width:m?Object(g["g"])(m):null,height:k?Object(g["g"])(k):null,srcset:v||null,sizes:O||null},class:(n={"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||p,"w-100":p,rounded:""===j||!0===j},h(n,"rounded-".concat(j),Object(u["n"])(j)&&""!==j),h(n,w,w),h(n,"d-block",b),n)}))}})},"651f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"misc-wrapper"},[n("b-link",{staticClass:"brand-logo"},[n("vuexy-logo")],1),n("div",{staticClass:"misc-inner p-2 p-sm-3"},[n("div",{staticClass:"w-100 text-center"},[n("h2",{staticClass:"mb-1"},[e._v(" You are not authorized! 🔐 ")]),n("p",{staticClass:"mb-2"},[e._v(" You don’t have permission to access this page. Go Home!! ")]),n("b-button",{staticClass:"mb-1 btn-sm-block",attrs:{variant:"primary",to:e.loginRoute()}},[e._v("Back to Home")]),n("b-img",{attrs:{fluid:"",src:e.imgUrl,alt:"Not authorized page"}})],1)])],1)},o=[],a=n("aa59"),i=n("4918"),c=n("1947"),s=n("088b"),u=n("4360"),l=(n("7100"),function(e){return"admin"===e?"/":"client"===e?{name:"access-control"}:{name:"auth-login"}}),f={components:{BLink:a["a"],BImg:i["a"],BButton:c["a"],VuexyLogo:s["a"]},data:function(){return{downImg:n("e767")}},computed:{imgUrl:function(){return"dark"===u["a"].state.appConfig.layout.skin?(this.downImg=n("a357"),this.downImg):this.downImg}},methods:{loginRoute:function(){var e=JSON.parse(localStorage.getItem("userData"));return l(e?e.role:null)}}},g=f,h=(n("c3e3"),n("2877")),b=Object(h["a"])(g,r,o,!1,null,null,null);t["default"]=b.exports},7100:function(e,t,n){"use strict";var r=n("5530"),o=n("d4ec"),a=n("bee2"),i=n("ade3"),c=(n("99af"),n("d3b7"),n("4de4"),{loginEndpoint:"/jwt/login",registerEndpoint:"/jwt/register",refreshEndpoint:"/jwt/refresh-token",logoutEndpoint:"/jwt/logout",tokenType:"Bearer",storageTokenKeyName:"accessToken",storageRefreshTokenKeyName:"refreshToken"}),s=function(){function e(t,n){var a=this;Object(o["a"])(this,e),Object(i["a"])(this,"axiosIns",null),Object(i["a"])(this,"jwtConfig",Object(r["a"])({},c)),Object(i["a"])(this,"isAlreadyFetchingAccessToken",!1),Object(i["a"])(this,"subscribers",[]),this.axiosIns=t,this.jwtConfig=Object(r["a"])(Object(r["a"])({},this.jwtConfig),n),this.axiosIns.interceptors.request.use((function(e){var t=a.getToken();return t&&(e.headers.Authorization="".concat(a.jwtConfig.tokenType," ").concat(t)),e}),(function(e){return Promise.reject(e)})),this.axiosIns.interceptors.response.use((function(e){return e}),(function(e){var t=e.config,n=e.response,r=t;if(n&&401===n.status){a.isAlreadyFetchingAccessToken||(a.isAlreadyFetchingAccessToken=!0,a.refreshToken().then((function(e){a.isAlreadyFetchingAccessToken=!1,a.setToken(e.data.accessToken),a.setRefreshToken(e.data.refreshToken),a.onAccessTokenFetched(e.data.accessToken)})));var o=new Promise((function(e){a.addSubscriber((function(t){r.headers.Authorization="".concat(a.jwtConfig.tokenType," ").concat(t),e(a.axiosIns(r))}))}));return o}return Promise.reject(e)}))}return Object(a["a"])(e,[{key:"onAccessTokenFetched",value:function(e){this.subscribers=this.subscribers.filter((function(t){return t(e)}))}},{key:"addSubscriber",value:function(e){this.subscribers.push(e)}},{key:"getToken",value:function(){return localStorage.getItem(this.jwtConfig.storageTokenKeyName)}},{key:"getRefreshToken",value:function(){return localStorage.getItem(this.jwtConfig.storageRefreshTokenKeyName)}},{key:"setToken",value:function(e){localStorage.setItem(this.jwtConfig.storageTokenKeyName,e)}},{key:"setRefreshToken",value:function(e){localStorage.setItem(this.jwtConfig.storageRefreshTokenKeyName,e)}},{key:"login",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r=51||!o((function(){var e=[];return e[b]=!1,e.concat()[0]!==e})),m=f("concat"),k=function(e){if(!i(e))return!1;var t=e[b];return void 0!==t?!!t:a(e)},w=!j||!m;r({target:"Array",proto:!0,forced:w},{concat:function(e){var t,n,r,o,a,i=c(this),f=l(i,0),g=0;for(t=-1,r=arguments.length;td)throw TypeError(p);for(n=0;n=d)throw TypeError(p);u(f,g++,a)}return f.length=g,f}})},"9aca":function(e,t,n){},a357:function(e,t,n){e.exports=n.p+"img/not-authorized-dark.3d406fda.svg"},bee2:function(e,t,n){"use strict";function r(e,t){for(var n=0;n