(window.webpackJsonp=window.webpackJsonp||[]).push([[163],{1855:function(e,t,n){"use strict";n.r(t);var r=n(3963),a=n(2732);for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);var o=n(0),i=n(3727),l=n.n(i),s=Object(o.a)(a.default,r.a,r.b,!1,null,null,null);"function"==typeof l.a&&l()(s),t.default=s.exports},2732:function(e,t,n){"use strict";n.r(t);var r=n(2733),a=n.n(r);for(var u in r)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(u);t.default=a.a},2733:function(e,t,n){"use strict";n(16),n(14),n(23),n(25),n(18),n(6);var r=n(1),a=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=r(n(36)),o=r(n(37)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=u?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(3726));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var s,f={preload:i.getStatus,api:i.getStatus,computed:{enabled:{get:function(){return this.$api.enabled},set:(s=(0,o.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.toggleRedisState({action:t?"enable":"disable"});case 2:i.getStatus();case 3:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},path:function(){var e=this.$state.app.tokens.HOME_DIR;return"".concat(e,"/.redis/redis.sock")}}};t.default=f},3726:function(e,t,n){"use strict";n(16),n(14),n(23),n(25),n(18),n(6);var r=n(1),a=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.toggleRedisState=t.getStatus=void 0;var u=r(n(78)),o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var l=u?Object.getOwnPropertyDescriptor(e,o):null;l&&(l.get||l.set)?Object.defineProperty(r,o,l):r[o]=e[o]}r.default=e,n&&n.set(e,r);return r}(n(9));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}var l=u.default.get({id:"CMD_REDIS_STATUS",url:"/CMD_REDIS",mapResponse:o.map(o.equals("1"))});t.getStatus=l;var s=u.default.post({url:"/CMD_REDIS",schema:{action:u.default.REQUIRED_STRING}});t.toggleRedisState=s},3727:function(e,t){},3963:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("app-page",[n("app-page-section",[n("ui-form-element",{attrs:{underline:e.enabled}},[n("translate",{attrs:{slot:"title"},slot:"title"},[e._v("\n                Redis\n            ")]),e._v(" "),n("ui-toggle",{attrs:{slot:"content",label:e.enabled?e.$gettext("Enabled"):e.$gettext("Disabled"),inver:""},slot:"content",model:{value:e.enabled,callback:function(t){e.enabled=t},expression:"enabled"}})],1),e._v(" "),e.enabled?[n("ui-form-element",{attrs:{underline:!1}},[n("translate",{attrs:{slot:"title"},slot:"title"},[e._v("\n                    Path to redis socket file\n                ")]),e._v(" "),n("input-text",{attrs:{slot:"content",value:e.path,disabled:""},slot:"content"})],1),e._v(" "),n("translate",[e._v("Please make sure you specify different database IDs for your applications, so that there would be no key conflicts.")])]:e._e()],2)],1)},a=[]}}]);