(window.webpackJsonp=window.webpackJsonp||[]).push([[56],{1285:function(t,n,e){"use strict";e.r(n);var o=e(2981),a=e(1611);for(var r in a)"default"!==r&&function(t){e.d(n,t,(function(){return a[t]}))}(r);e(2491);var i=e(0),s=e(2493),l=e.n(s),u=Object(i.a)(a.default,o.a,o.b,!1,null,"230143e6",null);"function"==typeof l.a&&l()(u),n.default=u.exports},1456:function(t,n,e){"use strict";e.r(n);var o=e(1457),a=e.n(o);for(var r in o)"default"!==r&&function(t){e.d(n,t,(function(){return o[t]}))}(r);n.default=a.a},1457:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{search:"",hideEmpty:!0}},props:{tokens:{type:Array,required:!0,default:function(){return[]}}},computed:{filtered:function(){var t=this,n=function(t,n){return t.toLowerCase().includes(n.toLowerCase())};return this.tokens.filter((function(n){return!t.hideEmpty||n.value})).filter((function(e){var o=e.value,a=e.token;return!t.search||(n(a,t.search)||n(o,t.search))}))}}};n.default=o},1464:function(t,n,e){"use strict";var o=e(1);Object.defineProperty(n,"__esModule",{value:!0}),n.getDiff=n.savePhpFpmTokens=n.getPhpFpmTokens=n.getPhpFpmConfiguration=n.saveDomainCustomization=n.getDomainCustomization=n.getDomainConfig=n.rewriteConfs=n.getDomains=void 0;var a=o(e(2)),r=o(e(17)),i=o(e(30)),s=e(14);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,o)}return e}var u=s.fp.flow(s.fp.convert.toAppString,s.fp.convert.toLines),f=s.fp.flow((function(t){return t||""}),s.fp.convert.toAppString,s.fp.convert.toAppText),p="/CMD_CUSTOM_HTTPD",c=i.default.get({id:"CUSTOM_HTTPD_DOMAINS",url:p,pagination:!0,after:function(){return s.fp.flow(s.fp.mapProp("domains",s.fp.toTable()),s.fp.mapProp("file",s.fp.feedWith(1,(function(t){return["nginx","nginx_proxy","openlitespeed","httpd"].find((function(n){return"1"===t["have_".concat(n)]}))||"httpd"}))))}});n.getDomains=c;var d=i.default.post({url:p,params:{action:"all",rewrite_confs:!0}});n.rewriteConfs=d;var m=i.default.get({url:p,id:"CH_DOMAIN_CONFIG",schema:{domain:i.default.REQUIRED_STRING,proxy:i.default.OPTIONAL_BOOL},after:function(){return s.fp.flow((function(t){return{tokens:t.AVAILABLE_TOKENS,error:t.CONFIG_ERROR,test:t.CONFIG_TEST,data:t.HTTPD,templates:t}}),s.fp.mapProps({error:s.fp.isEqual("1"),nginx:s.fp.isEqual("1"),data:u,test:f,templates:s.fp.flow(s.fp.filter((function(t,n){return n.includes("VH")})),s.fp.filter(s.fp.getProp("data")),s.fp.toArray,s.fp.mapArrayProps({data:u,custom:s.fp.isEqual("1")})),tokens:s.fp.flow(s.fp.mapValues((function(t,n){return{token:n,value:t}})),s.fp.toArray)}))}});n.getDomainConfig=m;var A=i.default.get({url:p,id:"CH_DOMAIN_CUSTOMIZATION_VALUES",schema:{domain:i.default.REQUIRED_STRING,proxy:i.default.OPTIONAL_BOOL},after:function(){return s.fp.flow(s.fp.project({config:"CONFIG",custom1:"CUSTOM1",custom2:"CUSTOM2",custom3:"CUSTOM3",custom4:"CUSTOM4",custom5:"CUSTOM5",custom6:"CUSTOM6",custom7:"CUSTOM7",tokens:"AVAILABLE_TOKENS",appendix:"VH1.custom_global_pre_post",tokensCount:"NUM_CUSTOM_TOKENS"}),s.fp.mapProps({config:f,custom1:f,custom2:f,custom3:f,custom4:f,custom5:f,custom6:f,custom7:f,nginx:s.fp.convert.toAppBoolean,tokensCount:s.fp.convert.toAppNumber,tokens:s.fp.flow(s.fp.mapValues((function(t,n){return{token:n,value:t}})),s.fp.toArray),appendix:s.fp.flow(s.fp.setDefault({}),s.fp.filter((function(t,n){return n.includes("CUSTOM")})),s.fp.mapValues(f),s.fp.transformObject((function(t,n){var e=n.match(/^.*(CUSTOM.*)$/),o=(0,r.default)(e,2)[1];return(0,a.default)({},o,{data:t,name:n})})))}))}});n.getDomainCustomization=A;var _=i.default.post({url:p,schema:{proxy:i.default.OPTIONAL_STRING,domain:i.default.REQUIRED_STRING,config:i.default.OPTIONAL_STRING,custom1:i.default.OPTIONAL_STRING,custom2:i.default.OPTIONAL_STRING,custom3:i.default.OPTIONAL_STRING,custom4:i.default.OPTIONAL_STRING,custom5:i.default.OPTIONAL_STRING,custom6:i.default.OPTIONAL_STRING,custom7:i.default.OPTIONAL_STRING}});n.saveDomainCustomization=_;var g=i.default.get({url:p,id:"CH_PHP_FPM_CONFIGURATION",schema:{user:i.default.REQUIRED_STRING,"php-fpm":i.default.REQUIRED_STRING},after:function(){return s.fp.flow(s.fp.project({error:"CONFIG_ERROR",test:"CONFIG_TEST",custom1:"CUSTOM1",custom2:"CUSTOM2",global_custom1:"GLOBAL_CUSTOM1",global_custom2:"GLOBAL_CUSTOM2","config.data":"FPM_CONFIG","config.file":"FPM_CONFIG_FILE","config.version":"FPM_VER","template.custom":"PHP_FPM_IS_CUSTOM_TEMPLATE","template.data":"PHP_FPM_TEMPLATE","template.name":"PHP_FPM_TEMPLATE_NAME","template.short":"PHP_FPM_TEMPLATE_NAME_SHORT"}),s.fp.mapProps({error:s.fp.isEqual("1"),test:f,custom1:f,custom2:f,config:s.fp.mapProp("data",u),template:s.fp.mapProps({custom:s.fp.isEqual("1"),data:u})}))}});n.getPhpFpmConfiguration=g;var v=i.default.get({id:"CH_PHP_FPM_TOKENS",url:p,schema:{user:i.default.REQUIRED_STRING,"php-fpm":i.default.REQUIRED_STRING},after:function(){return s.fp.flow(s.fp.getProp("AVAILABLE_TOKENS"),s.fp.mapValues((function(t,n){return{token:n,value:t}})),s.fp.toArray)}});n.getPhpFpmTokens=v;var C=i.default.post({url:p,schema:{user:i.default.REQUIRED_STRING,"php-fpm":i.default.REQUIRED_STRING,custom1:i.default.OPTIONAL_STRING,custom2:i.default.OPTIONAL_STRING,all_php_versions:i.default.OPTIONAL_BOOL}});n.savePhpFpmTokens=C;var h=i.default.get({id:"CH_DIFF",url:"/CMD_TEMPLATE_DIFF",schema:{name:i.default.REQUIRED_STRING},after:function(){return s.fp.flow(s.fp.deleteProp("lines"),s.fp.mapValues((function(t,n){return function(t){for(var n=1;n