Files
tuend-work 4478491d73 z
2025-11-13 07:41:56 +07:00

1 line
22 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{1925:function(t,e,n){"use strict";n(7),n(10),n(5),n(6),n(8),n(11),n(16),n(14),n(23),n(25),n(18);var i=n(1),a=n(20);Object.defineProperty(e,"__esModule",{value:!0}),e.doPackageAction=e.importPackages=e.exportPackages=e.deletePackages=e.updatePackage=e.getPackage=e.getPackages=void 0;var s=i(n(2));n(27);var l=i(n(78)),o=c(n(2007)),r=c(n(9));function u(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(u=function(t){return t?n:e})(t)}function c(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var n=u(e);if(n&&n.has(t))return n.get(t);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var o=s?Object.getOwnPropertyDescriptor(t,l):null;o&&(o.get||o.set)?Object.defineProperty(i,l,o):i[l]=t[l]}return i.default=t,n&&n.set(t,i),i}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=l.default.get({id:"USER_PACKAGES",url:"/CMD_MANAGE_USER_PACKAGES",params:{bytes:!0},pagination:!0,after:function(t){return t.toTable(t.mapArrayProps({bandwidth:t.convert.toAppLimit,quota:t.convert.toAppLimit}))}});e.getPackages=f;var m=l.default.get({id:"USER_PACKAGE",url:"/CMD_SHOW_USER_PACKAGE",params:{bytes:!0},schema:{package:l.default.OPTIONAL_STRING},mapResponse:{features:o.getFeatures,limits:o.getLimits,homeOverride:o.getHomeOverride,language:o.getLanguage,skin:o.getSkin,customItems:o.getCustomItems,featureSets:o.getFeatureSets,cgroup:r.pipe(r.prop("cgroup"),r.defaultTo({saved:{},options:{}}),(function(t){return r.merge(t.options||{},t.saved||{})}),r.values),email_daily_limit:function(t){var e=t.email_daily_limit;return void 0!==e&&{disabled:"yes"===e.disabled,unlimited:"unlimited"===e.value,value:"unlimited"===e.value?"":e.value}},pluginRules:r.prop("plugins")}});e.getPackage=m;var g=l.default.post({url:"/CMD_MANAGE_USER_PACKAGES",params:{add:!0},schema:{bandwidth:l.default.OPTIONAL_STRING,ubandwidth:l.default.OPTIONAL_BOOL,quota:l.default.OPTIONAL_STRING,uquota:l.default.OPTIONAL_BOOL,inode:l.default.OPTIONAL_STRING,uinode:l.default.OPTIONAL_BOOL,vdomains:l.default.OPTIONAL_STRING,uvdomains:l.default.OPTIONAL_BOOL,nsubdomains:l.default.OPTIONAL_STRING,unsubdomains:l.default.OPTIONAL_BOOL,nemails:l.default.OPTIONAL_STRING,unemails:l.default.OPTIONAL_BOOL,nemailf:l.default.OPTIONAL_STRING,unemailf:l.default.OPTIONAL_BOOL,nemailml:l.default.OPTIONAL_STRING,unemailml:l.default.OPTIONAL_BOOL,nemailr:l.default.OPTIONAL_STRING,unemailr:l.default.OPTIONAL_BOOL,mysql:l.default.OPTIONAL_STRING,umysql:l.default.OPTIONAL_BOOL,domainptr:l.default.OPTIONAL_STRING,udomainptr:l.default.OPTIONAL_BOOL,ftp:l.default.OPTIONAL_STRING,uftp:l.default.OPTIONAL_BOOL,aftp:l.default.OPTIONAL_STRING,cgi:l.default.OPTIONAL_STRING,php:l.default.OPTIONAL_STRING,spam:l.default.OPTIONAL_STRING,catchall:l.default.OPTIONAL_STRING,ssl:l.default.OPTIONAL_STRING,ssh:l.default.OPTIONAL_STRING,cron:l.default.OPTIONAL_STRING,sysinfo:l.default.OPTIONAL_STRING,login_keys:l.default.OPTIONAL_STRING,dnscontrol:l.default.OPTIONAL_STRING,suspend_at_limit:l.default.OPTIONAL_STRING,language:l.default.OPTIONAL_STRING,skin:l.default.OPTIONAL_STRING,packagename:l.default.OPTIONAL_STRING}});e.updatePackage=g;var _=l.default.post({url:"/CMD_MANAGE_USER_PACKAGES",before:function(t){return t.select.reduce((function(t,e,n){return d(d({},t),{},(0,s.default)({},"delete".concat(n),e))}),{delete:!0})},schema:{select:l.default.ROWS}});e.deletePackages=_;var v=l.default.post({url:"/CMD_MANAGE_USER_PACKAGES",schema:{select:l.default.ROWS},params:{export:!0}});e.exportPackages=v;var h=l.default.post({url:"/CMD_MANAGE_USER_PACKAGES",schema:{import:l.default.REQUIRED_STRING},params:{action:"import"}});e.importPackages=h;var O=l.default.post({url:"/CMD_MANAGE_USER_PACKAGES",schema:{action:l.default.REQUIRED_STRING,from:l.default.REQUIRED_STRING,to:l.default.REQUIRED_STRING},before:function(t){return{from:null,to:null,old_package:t.from,new_package:t.to}}});e.doPackageAction=O},2007:function(t,e,n){"use strict";n.r(e),n.d(e,"getCustomItems",(function(){return s})),n.d(e,"getHomeOverride",(function(){return l})),n.d(e,"getFeatures",(function(){return o})),n.d(e,"toPackageLimit",(function(){return u})),n.d(e,"getLimits",(function(){return c})),n.d(e,"getSkin",(function(){return p})),n.d(e,"getLanguage",(function(){return d})),n.d(e,"getFeatureSets",(function(){return f}));var i=n(9),a=n(97),s=function(t){return i.values(t.custom_items||{}).map(a.customItems.fromObject)},l=function(t){return Object(a.toSelectData)(t.create_user_home_override||{})},o=function(t){var e,n;return{aftp:Object(a.toBoolean)(t.aftp.checked),catchall:Object(a.toBoolean)(t.catchall.checked),cgi:Object(a.toBoolean)(t.cgi.checked),cron:Object(a.toBoolean)(t.cron.checked),dnscontrol:Object(a.toBoolean)(t.dnscontrol.checked),login_keys:Object(a.toBoolean)(t.login_keys.checked),php:Object(a.toBoolean)(t.php.checked),spam:Object(a.toBoolean)(t.spam.checked),ssh:Object(a.toBoolean)(t.ssh.checked),ssl:Object(a.toBoolean)(t.ssl.checked),suspend_at_limit:Object(a.toBoolean)(t.suspend_at_limit.checked),sysinfo:Object(a.toBoolean)(t.sysinfo.checked),jail:Object(a.toBoolean)((null===(e=t.jail)||void 0===e?void 0:e.checked)||"no"),redis:Object(a.toBoolean)((null===(n=t.redis)||void 0===n?void 0:n.checked)||"no")}},r=i.pipe(Number,i.complement(Number.isFinite)),u=function(t){var e=t.value;return{unlimited:r(e),value:r(e)?"":e}},c=i.pipe(i.pick(["bandwidth","domainptr","ftp","inode","mysql","nemailf","nemailml","nemailr","nemails","nsubdomains","quota","vdomains"]),i.mapObjIndexed(u)),p=function(t){var e=t.skin;return Object(a.toSelectData)(e)},d=function(t){var e=t.language;return Object(a.toSelectData)(e)},f=function(t){var e=t.feature_sets;return{options:i.map(i.prop("name"),e),values:i.keys(i.filter(i.propEq("checked","yes"),e))}}},2017:function(t,e,n){"use strict";n.r(e);var i=n(4027),a=n(2312);for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n(3374);var l=n(0),o=Object(l.a)(a.default,i.a,i.b,!1,null,null,null);e.default=o.exports},2312:function(t,e,n){"use strict";n.r(e);var i=n(2313),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e.default=a.a},2313:function(t,e,n){"use strict";n(10),n(5),n(6),n(8),n(11),n(23),n(25);var i=n(1),a=n(20);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(n(36));n(13),n(26),n(55),n(27),n(7),n(16),n(14),n(18);var l=i(n(37)),o=i(n(2)),r=n(32),u=n(1925),c=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==a(t)&&"function"!=typeof t)return{default:t};var n=p(e);if(n&&n.has(t))return n.get(t);var i={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in t)if("default"!==l&&Object.prototype.hasOwnProperty.call(t,l)){var o=s?Object.getOwnPropertyDescriptor(t,l):null;o&&(o.get||o.set)?Object.defineProperty(i,l,o):i[l]=t[l]}i.default=t,n&&n.set(t,i);return i}(n(9));function p(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(p=function(t){return t?n:e})(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){(0,o.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m,g={api:[{command:u.getPackage,bind:{response:"package",isDone:"isDone"}}],props:{package:{type:String,required:!1,default:"newpackage"},initialData:{type:Object,required:!1,default:function(){return null}}},data:function(){return{features:{},limits:{},customItems:{},skin:"",language:"",homeOverride:{value:"",options:{}},featureSets:{policy:"none",select:["core_functions"]},plugins:{policy:"none",allow:[],deny:[]},cgroupValues:{}}},computed:{jailStatus:function(){switch(this.$state.app.tokens.HAVE_JAIL){default:return"disabled";case"1":return"enabled";case"2":return"forced"}},skinOptions:function(){return this.initialData?this.initialData.skin.options:this.$api.package.skin.options},languageOptions:function(){return this.initialData?{}:this.$api.package.language.options},showLanguage:function(){return!this.initialData},processedData:function(){var t=f(f(f(f(f(f({language:this.language,skin:this.skin,create_user_home_override:this.canOverrideHome?this.homeOverride.value:null,feature_sets:"none"===this.featureSets.policy?"":this.featureSets.select.join(":")},r._.reduce(this.limits,(function(t,e,n){var i;return f(f({},t),{},(i={},(0,o.default)(i,n,["bandwidth","quota"].includes(n)?String(e.value/Math.pow(2,20)):e.value),(0,o.default)(i,"u".concat(n),!e.value||e.unlimited||null),i))}),{})),r._.mapValues(this.features,(function(t){return t?"ON":null}))),r._.reduce(this.customItems,(function(t,e){return f(f({},t),{},(0,o.default)({},e.name,!0===e.value?"ON":e.value))}),{})),this.pluginsRuleData),this.cgroup.requestData),{},{uemail_daily_limit:this.limits.email_daily_limit&&this.limits.email_daily_limit.unlimited||null});return"disabled"===this.jailStatus&&(t.jail=null),t},canOverrideHome:function(){return this.homeOverride&&!!Object.keys(this.homeOverride.options).length},enabledFeatures:function(){var t=this;return c.pickBy((function(e,n){return e&&void 0!==t.features[n]&&t.checkFeatureEnabled(n)}),this.featureLabels)},enabledLimits:function(){var t=this;return c.pickBy((function(e,n){return e&&t.limits[n]}),this.limitLabels)},featureSetOptions:function(){var t={core_functions:this.$gettext("Core Functions"),dns_only:this.$gettext("DNS Only"),email_only:this.$gettext("E-mail Only")},e=this.initialData||this.$api.package;return Object.keys(e.featureSets.options).reduce((function(e,n){return f(f({},e),{},(0,o.default)({},n,t[n]||n))}),{})},pluginsList:function(){return(this.initialData||this.$api.package).pluginRules.all_plugins},pluginsRuleData:function(){return{plugins_allow:"allow"===this.plugins.policy?this.plugins.allow.join(":"):"[clear]",plugins_deny:"deny"===this.plugins.policy?this.plugins.deny.join(":"):"[clear]"}},cgroup:function(){var t=(this.initialData?this.initialData.cgroup:this.$api.package.cgroup)||[];return{enabled:this.$state.app.tokens.HAVE_CGROUP,options:t,requestData:c.pickBy(Boolean,this.cgroupValues)}}},watch:{processedData:function(t){this.$emit("update",t)}},created:function(){this.limitLabels={bandwidth:this.$gettext("Bandwidth (MB)"),quota:this.$gettext("Disk Space (MB)"),inode:this.$state.app.tokens.HAVE_INODE?this.$gettext("Inode"):void 0,vdomains:this.$gettext("Domains"),nsubdomains:this.$gettext("Sub-Domains"),nemails:this.$gettext("E-mail Accounts"),nemailf:this.$gettext("E-mail Forwarders"),nemailml:this.$gettext("Mailing Lists"),nemailr:this.$gettext("Autoresponders"),mysql:this.$gettext("MySQL Databases"),domainptr:this.$gettext("Domain Pointers"),ftp:this.$gettext("FTP Accounts"),email_daily_limit:this.$gettext("E-mail Daily Limit")},this.featureLabels={aftp:this.$gettext("Anonymous FTP Accounts"),cgi:this.$gettext("CGI Access"),php:this.$gettext("PHP Access"),spam:this.$gettext("SpamAssassin"),catchall:this.$gettext("Catch-All E-mail"),ssl:this.$gettext("SSL Access"),ssh:this.$gettext("SSH Access"),cron:this.$gettext("Cron Jobs"),redis:this.$gettext("Redis"),sysinfo:this.$gettext("System Info"),login_keys:this.$gettext("Login Keys"),dnscontrol:this.$gettext("DNS Control"),suspend_at_limit:this.$gettext("Suspend at Limit")},!1===this.$state.app.tokens.RESELLERREDIS&&delete this.featureLabels.redis,this.loadPackage()},methods:{checkEmptyness:function(t){t.value||(t.unlimited=!0)},setCgroupValues:function(){this.cgroup.enabled&&(this.cgroupValues=this.cgroup.options.reduce((function(t,e){return f(f({},t),{},(0,o.default)({},e.name,e.value||e.default))}),{}))},loadPackage:(m=(0,l.default)(s.default.mark((function t(){var e,n;return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u.getPackage,t.t0=this.initialData,t.t0){t.next=6;break}return t.next=5,(0,u.getPackage)({package:this.package||null});case 5:t.t0=t.sent;case 6:e=t.t0,this.limits=r._.cloneDeep(e.limits),e.email_daily_limit&&this.$set(this.limits,"email_daily_limit",f(f({},e.email_daily_limit),{},{disabled:!1})),this.features=r._.cloneDeep(e.features),this.customItems=r._.cloneDeep(e.customItems),this.skin=e.skin.value,this.showLanguage&&(this.language=e.language.value),this.homeOverride=r._.cloneDeep(e.homeOverride),null===this.package&&(this.limits.bandwidth.value*=Math.pow(2,20),this.limits.quota.value*=Math.pow(2,20)),e.featureSets.values.length&&(this.featureSets.policy="select",this.featureSets.select=e.featureSets.values),n=e.pluginRules,this.plugins.allow=n.plugins_allow||[],this.plugins.deny=n.plugins_deny||[],void 0!==n.plugins_allow?this.plugins.policy="allow":void 0!==n.plugins_deny?this.plugins.policy="deny":this.plugins.policy="none",this.setCgroupValues();case 21:case"end":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)}),checkFeatureEnabled:function(t){var e=this,n=function(t){return function(){return e.$state.app.tokens[t]}},i={ssl:n("RESELLERSSL"),catchall:n("RESELLERCATCHALL"),cgi:n("RESELLERCGI"),cron:n("RESELLERCRON"),aftp:n("RESELLERAFTP"),dnscontrol:n("RESELLERDNSCONTROL"),login_keys:n("RESELLERLOGINKEYS"),php:n("RESELLERPHP"),spam:n("RESELLERSPAM"),sysinfo:n("RESELLERSYSINFO"),ssh:n("RESELLERUSERSSH")}[t];return!i||i()}}};e.default=g},3042:function(t,e,n){var i=n(3375);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);(0,n(4).default)("6fcb14a9",i,!0,{})},3374:function(t,e,n){"use strict";n(3042)},3375:function(t,e,n){},4027:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.$api.isDone||t.initialData?n("div",{staticClass:"user-package"},[t._l(t.enabledLimits,(function(e,i){return n("ui-form-element",{key:i},[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n "+t._s(e)+"\n ")]),t._v(" "),n(["bandwidth","quota"].includes(i)?"input-size":"input-text",{directives:[{name:"flex-item",rawName:"v-flex-item",value:{grow:!0},expression:"{ grow: true }"}],tag:"component",attrs:{slot:"content",disabled:t.limits[i].unlimited||t.limits[i].disabled,number:""},on:{blur:function(e){return t.checkEmptyness(t.limits[i])}},slot:"content",model:{value:t.limits[i].value,callback:function(e){t.$set(t.limits[i],"value",e)},expression:"limits[key].value"}},[n("ui-button",{attrs:{slot:"additions:right",tabindex:"-1",disabled:t.limits[i].disabled},on:{click:function(e){t.limits[i].unlimited=!t.limits[i].unlimited}},slot:"additions:right"},[n("input-checkbox",{attrs:{label:t.$gettext("Unlimited"),disabled:t.limits[i].disabled},model:{value:t.limits[i].unlimited,callback:function(e){t.$set(t.limits[i],"unlimited",e)},expression:"limits[key].unlimited"}})],1)],1)],1)})),t._v(" "),t._l(t.enabledFeatures,(function(e,i){return n("ui-form-element",{key:i,class:{dimmed:!t.features[i]}},[t.$_Client.isPhone?t._e():n("span",{attrs:{slot:"title"},domProps:{textContent:t._s(e)},slot:"title"}),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("input-checkbox",{model:{value:t.features[i],callback:function(e){t.$set(t.features,i,e)},expression:"features[key]"}},[t.$_Client.isPhone?[t._v("\n "+t._s(e)+"\n ")]:t._e()],2)],1)])})),t._v(" "),"disabled"!==t.jailStatus?n("ui-form-element",[t.$_Client.isPhone?t._e():n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Jailed\n ")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},["forced"===t.jailStatus?n("input-checkbox",{key:"forced",attrs:{disabled:"",model:""}},[t.$_Client.isPhone?n("translate",[t._v("\n Jailed\n ")]):t._e(),t._v(" "),n("ui-badge",{attrs:{theme:"primary"}},[t._v("\n "+t._s(t.$gettext("Forced"))+"\n ")])],1):n("input-checkbox",{key:"not-forced",model:{value:t.features.jail,callback:function(e){t.$set(t.features,"jail",e)},expression:"features.jail"}},[t.$_Client.isPhone?n("translate",[t._v("\n Jailed\n ")]):t._e()],1)],1)],1):t._e(),t._v(" "),n("ui-form-element",{key:"skin"},[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Skin\n ")]),t._v(" "),n("div",{directives:[{name:"flex",rawName:"v-flex"}],attrs:{slot:"content"},slot:"content"},[n("input-select",{attrs:{options:t.skinOptions},model:{value:t.skin,callback:function(e){t.skin=e},expression:"skin"}})],1)],1),t._v(" "),t.showLanguage?n("ui-form-element",{key:"show-language"},[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Language\n ")]),t._v(" "),n("div",{directives:[{name:"flex",rawName:"v-flex"}],attrs:{slot:"content"},slot:"content"},[n("input-select",{attrs:{options:t.languageOptions},model:{value:t.language,callback:function(e){t.language=e},expression:"language"}})],1)],1):t._e(),t._v(" "),t.canOverrideHome?n("ui-form-element",{key:"home-override"},[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Home Directory\n ")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("input-select",{attrs:{options:t.homeOverride.options},model:{value:t.homeOverride.value,callback:function(e){t.$set(t.homeOverride,"value",e)},expression:"homeOverride.value"}})],1)],1):t._e(),t._v(" "),t._l(t.customItems,(function(e){return n("ui-form-element",{key:e.name},[n("span",{attrs:{slot:"title"},domProps:{textContent:t._s(e.label)},slot:"title"}),t._v(" "),"checkbox"===e.type?n("input-checkbox",{attrs:{slot:"content"},slot:"content",model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"customItem.value"}},[t._v("\n "+t._s(e.description)+"\n ")]):n("text"===e.type?"input-text":"input-select",{tag:"component",attrs:{slot:"content",options:"select"===e.type?e.options:[]},slot:"content",model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"customItem.value"}},[e.description?n("ui-button",{attrs:{slot:"additions:right"},slot:"additions:right"},[t._v("\n "+t._s(e.description)+"\n ")]):t._e()],1)],1)})),t._v(" "),t._t("default"),t._v(" "),n("app-page-section",[n("translate",{attrs:{slot:"section:title"},slot:"section:title"},[t._v("\n Feature Sets\n ")]),t._v(" "),n("ui-form-element",[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Policy\n ")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("input-radio",{attrs:{value:"none"},model:{value:t.featureSets.policy,callback:function(e){t.$set(t.featureSets,"policy",e)},expression:"featureSets.policy"}},[n("translate",[t._v("Allow All")])],1),t._v(" "),n("input-radio",{attrs:{value:"select"},model:{value:t.featureSets.policy,callback:function(e){t.$set(t.featureSets,"policy",e)},expression:"featureSets.policy"}},[n("translate",[t._v("Allow Selected")])],1)],1)],1),t._v(" "),"none"!==t.featureSets.policy?n("ui-form-element",[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Feature Set\n ")]),t._v(" "),n("input-select-multiple",{attrs:{slot:"content",options:t.featureSetOptions,"hide-header":""},slot:"content",model:{value:t.featureSets.select,callback:function(e){t.$set(t.featureSets,"select",e)},expression:"featureSets.select"}},[n("template",{slot:"option:core_functions"},[n("ui-tooltip",{attrs:{theme:"primary"}},[n("translate",{attrs:{slot:"trigger"},slot:"trigger"},[t._v("\n Core Functions\n ")]),t._v(" "),n("translate",[t._v("\n Core functions are needed for the skin to work. Disable it for API only.\n ")])],1)],1)],2)],1):t._e()],1),t._v(" "),n("app-page-section",[n("translate",{attrs:{slot:"section:title"},slot:"section:title"},[t._v("\n Plugins Allow/Deny\n ")]),t._v(" "),n("ui-form-element",[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Policy\n ")]),t._v(" "),n("div",{attrs:{slot:"content"},slot:"content"},[n("input-radio",{attrs:{value:"none"},model:{value:t.plugins.policy,callback:function(e){t.$set(t.plugins,"policy",e)},expression:"plugins.policy"}},[n("translate",[t._v("Allow All")])],1),t._v(" "),n("input-radio",{attrs:{value:"deny"},model:{value:t.plugins.policy,callback:function(e){t.$set(t.plugins,"policy",e)},expression:"plugins.policy"}},[n("translate",[t._v("Deny Selected")])],1),t._v(" "),n("input-radio",{attrs:{value:"allow"},model:{value:t.plugins.policy,callback:function(e){t.$set(t.plugins,"policy",e)},expression:"plugins.policy"}},[n("translate",[t._v("Allow Selected")])],1)],1)],1),t._v(" "),"none"!==t.plugins.policy?n("ui-form-element",[n("translate",{attrs:{slot:"title"},slot:"title"},[t._v("\n Select\n ")]),t._v(" "),n("input-select-multiple",{attrs:{slot:"content",options:t.pluginsList},slot:"content",model:{value:t.plugins[t.plugins.policy],callback:function(e){t.$set(t.plugins,t.plugins.policy,e)},expression:"plugins[plugins.policy]"}})],1):t._e()],1),t._v(" "),t.cgroup.enabled&&t.cgroup.options.length>0?n("app-page-section",[n("translate",{attrs:{slot:"section:title"},slot:"section:title"},[t._v("\n Resource Limits\n ")]),t._v(" "),t._l(t.cgroup.options,(function(e){return n("ui-form-element",{key:e.name},[n("span",{attrs:{slot:"title"},domProps:{textContent:t._s(e.string)},slot:"title"}),t._v(" "),n("span",{attrs:{slot:"tooltip"},domProps:{textContent:t._s(e.desc)},slot:"tooltip"}),t._v(" "),n("input-text",{attrs:{slot:"content",placeholder:e.placeholder},slot:"content",model:{value:t.cgroupValues[e.name],callback:function(n){t.$set(t.cgroupValues,e.name,n)},expression:"cgroupValues[item.name]"}})],1)}))],2):t._e()],2):t._e()},a=[]}}]);