Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/wh-sql-config/main.442baf7d6aab9503.min.js

"use strict";(self.webpackChunkwh_sql_config=self.webpackChunkwh_sql_config||[]).push([[179],{9778:(y,V,l)=>{var M=l(1481),t=l(4650),Y=l(8746),m=l(6895),h=l(8517),O=l(9245),N=l(388),L=l(3194);const I=window?.PAGE?.base??"",H=(window,window,window,window?.PAGE?.initial_settings??{}),T=window?.PAGE?.default_settings??{},z=window?.PAGE?.db_version??{},R=window?.PAGE?.is_mariadb??!1,$=window?.PAGE?.is_database_running??!1,j=window?.PAGE?.is_remote??!1;var S=l(9409),_=l(269),K=l(7709),P=l(4642),p=l(433),g=(()=>{return(i=g||(g={}))[i.undo=0]="undo",i[i.optimize=1]="optimize",i[i.reset=2]="reset",g;var i})(),u=(()=>{return(i=u||(u={}))[i.bytes=0]="bytes",i[i.decimal=1]="decimal",i[i.integer=2]="integer",i[i.select=3]="select",i[i.text=4]="text",i[i.textArea=5]="textArea",i[i.toggle=6]="toggle",u;var i})();class X extends p.p4{constructor(s,e,n,o,a,r,c){super(),this.showHelp=!1,this.options=[],this.section="mysqld",this.validationMessages={},this.propertyType=s,this.propertyName=e,this.friendlyName=o??"",this.description=a??"",this.defaultValue=n,this.validation=c??{},this.validationMsgId=this.propertyName+"_validation",this.fullName=this.getFullName(),r?.length>0&&(this.options=[...r]),this.setValue(this.value)}getFullName(){return this.friendlyName?this.friendlyName:this.propertyName}addValidationMessage(s,e){this.validationMessages[s]=e}getErrorKeys(){return Object.keys(this.validationMessages)}getActiveErrorKeys(){return this.errors?Object.keys(this.errors):[]}toggleShowHelp(){this.showHelp=!this.showHelp}setValue(s,e={}){super.setValue(s,e),this.updateControlConfigs(),this.isOptimized=s===this.optimization?.value}updateControlConfigs(){const s=[],e={type:g.undo,isDisabled:!this.hasOwnProperty("initialValue")||this.value?.toString()===this.initialValue?.toString()};s.push(e);const n={type:g.reset,isDisabled:this.value?.toString()===this.defaultValue?.toString(),applyValue:{value:this.defaultValue,dataType:this.propertyType}};s.push(n);const o={type:g.optimize,isDisabled:!this.optimization||this.value?.toString()===this.optimization.value.toString(),applyValue:{value:this.optimization?.value,dataType:this.propertyType},description:this.optimization?.reason};s.push(o),this.controlConfigs=s}hasValueChanged(){return this.value?.toString()!==this.initialValue?.toString()}}var W=l(590);let q=(()=>{class i{constructor(e){this.locale=e,this.errorMessagesByPattern=new Map}addPatternMessage(e,n){this.errorMessagesByPattern.set(e,n)}getPatternMessage(e){return this.errorMessagesByPattern.has(e)?this.errorMessagesByPattern.get(e):this.locale.maketext("This value must match the pattern: [_1]",e)}}return i.ɵfac=function(e){return new(e||i)(t.LFG(_.g))},i.ɵprov=t.Yz7({token:i,factory:i.ɵfac,providedIn:"root"}),i})();class d{constructor(){}static isSafeNumber(s){return s>=Number.MIN_SAFE_INTEGER&&s<=Number.MAX_SAFE_INTEGER}static getBytes(s){if(!this.pattern.test(s))throw new Error(`Invalid bytes argument: ${s}. The argument must be valid against ${d.pattern}`);const e=(s=s.toString()).match(/^[0-9]*/)?.[0],n=BigInt(e),a=s.match(/[KMGTPE]/i)?.[0].toUpperCase();let r;switch(a){case"K":r=10;break;case"M":r=20;break;case"G":r=30;break;case"T":r=40;break;case"P":r=50;break;case"E":r=60;break;default:r=0}const c=n*BigInt(Math.pow(2,r));return this.isSafeNumber(c)?Number(c):c}}d.pattern=new RegExp("^(([1-9][0-9]*)|0)[KMGTPE]?$","i"),d.ɵfac=function(s){return new(s||d)},d.ɵprov=t.Yz7({token:d,factory:d.ɵfac,providedIn:"root"});const tt=i=>s=>{const e=s.value;if(null==e||""===e||!d.pattern.test(e))return null;if("number"==typeof i&&!d.isSafeNumber(i))throw new Error(`${i} is not a safe 'number'. Use 'bigint' or 'string'.`);const n=d.getBytes(s.value),o=Number.isSafeInteger(i)?i:BigInt(i);return n<=o?null:{maxBytes:{value:o}}},et=i=>s=>{const e=s.value;if(null==e||""===e||!d.pattern.test(e))return null;if("number"==typeof i&&!d.isSafeNumber(i))throw new Error(`${i} is not a safe 'number'. Use 'bigint' or 'string'.`);const n=d.getBytes(s.value),o=Number.isSafeInteger(i)?i:BigInt(i);return n>=o?null:{minBytes:{value:o}}};var C=l(4004),Q=l(3151),k=l(802);let E=(()=>{class i{constructor(e,n,o){this.apiClient=e,this.alertService=n,this.locale=o}checkOptimizationsExist(){return this.optimizations$||this.getOptimizationsFromApi(),this.optimizations$.pipe((0,C.U)((e=>e?.length>0)))}getOptimizationForSetting(e){return this.optimizations$||this.getOptimizationsFromApi(),this.optimizations$.pipe((0,C.U)((n=>n.find((o=>o.name===e)))))}getOptimizations(){return this.optimizations$||this.getOptimizationsFromApi(),this.optimizations$}getOptimizationsFromApi(){const e=this.locale.maketext("An unknown error occurred while fetching database optimizations. Please try again later."),n=/^(API failure\: Died)/,o=new P.r(P.N.JsonApi,{method:"get_database_optimizations"});this.optimizations$=this.apiClient.post(o).pipe((0,C.U)((a=>{if(a.success)return Object.values(a.data.payload);n.test(a.meta.properties.reason)?this.alertService.error(e):this.alertService.error(a.meta.properties.reason)})),(0,Q.d)(1))}}return i.ɵfac=function(e){return new(e||i)(t.LFG(k.A4),t.LFG(h.c9),t.LFG(_.g))},i.ɵprov=t.Yz7({token:i,factory:i.ɵfac,providedIn:"root"}),i})(),it=(()=>{class i{constructor(e,n,o,a){this.apiClient=e,this.locale=n,this.errorMsgs=o,this.optimizationService=a,this.initialValues={},this.defaultValues={},this.controls=[],this.defaultKeys=[],this.initialKeys=[],this.dbName=R?"MariaDB":"MySQL",this.dbVersion=z.full}setupValuesAndKeys(){this.initialValues=H.mysqld,this.defaultValues=T,this.initialValues&&(this.initialKeys=Object.keys(this.initialValues)),this.defaultValues&&(this.defaultKeys=Object.keys(this.defaultValues)),this.convertNumericValues()}convertNumericValues(){this.defaultKeys&&this.defaultKeys.forEach((e=>{const n=this.defaultValues[e];if(n.required&&(n.required=Number(n.required)),"boolean"===n.type||"number"===n.type){if("bytes"===n.validation?.type)return;n.default=Number(n.default),this.initialValues?.[e]&&(this.initialValues[e]=Number(this.initialValues[e]))}}))}getControls(){this.setupValuesAndKeys();for(const e of this.defaultKeys){const n=new X(this.defaultValues[e].type,e,this.defaultValues[e].default,this.defaultValues[e].friendlyname,this.defaultValues[e].description,this.defaultValues[e].values,this.defaultValues[e].validation);this.defaultValues[e].hasOwnProperty("min")&&(n.min=this.defaultValues[e].min),this.defaultValues[e].hasOwnProperty("max")&&(n.max=this.defaultValues[e].max);const o=this.defaultValues[e].validation,a=[];if("number"===n.propertyType&&n.hasOwnProperty("min"))if("bytes"===n.validation.type){a.push(et(n.min));const c=d.isSafeNumber(n.min)?this.locale.maketext("This value must be greater than or equal to [quant,_1,byte,bytes].",n.min):this.locale.maketext("This value must be greater than or equal to [_1] bytes.",n.min);n.addValidationMessage("minBytes",c)}else a.push(p.kI.min(n.min)),n.addValidationMessage("min",this.locale.maketext("This value must be greater than or equal to [_1].",n.min));if("number"===n.propertyType&&n.hasOwnProperty("max"))if("bytes"===n.validation.type){a.push(tt(n.max));const c=d.isSafeNumber(n.max)?this.locale.maketext("This value must be less than or equal to [quant,_1,byte,bytes].",n.max):this.locale.maketext("This value must be less than or equal to [_1] bytes.",n.max);n.addValidationMessage("maxBytes",c)}else a.push(p.kI.max(n.max)),n.addValidationMessage("max",this.locale.maketext("This value must be less than or equal to [_1].",n.max));if(o&&o.hasOwnProperty("pattern")){const c=new RegExp(o.pattern,o.flags);a.push(p.kI.pattern(c));const f=c.toString();n.addValidationMessage("pattern",this.errorMsgs.getPatternMessage(f)),f===/^[^\0]+$/.toString()&&(a.push((e=>{const n=e.value;if(null==n||""===n)return null;const o=new Blob([n]).size;let a=!0,r=!0;n.includes("/")?(a=o<=4096,r=n.split("/").every((f=>new Blob([f]).size<=255))):r=o<=255;const c={};return a||(c.maxFilePathByteSize=4096),r||(c.maxFileNameByteSize=255),a&&r?null:c})),n.addValidationMessage("maxFilePathByteSize",this.locale.maketext("Your full file path must be less than or equal to 4096 bytes.")),n.addValidationMessage("maxFileNameByteSize",this.locale.maketext("Your file name and any directory names must be less than or equal to 255 bytes.")))}this.defaultValues[e].required&&(this.defaultValues[e].validation&&"int"===this.defaultValues[e].validation.type?(a.push(p.kI.required),n.addValidationMessage("required",this.locale.maketext("This is a required field and must be an integer."))):(a.push(p.kI.required),n.addValidationMessage("required",this.locale.maketext("This field is required.")))),a.length>0&&n.setValidators(a),n.inputType=this.getInputType(n);let r=this.initialValues[e];null==r&&(r=this.defaultValues[e].default),n.setValue(r),n.propertyValue=r,n.initialValue=this.getInitialValueForSetting(n.propertyName)??n.defaultValue,this.optimizationService.getOptimizationForSetting(n.propertyName).pipe((0,W.P)()).subscribe((c=>{n.optimization=c,n.updateControlConfigs()})),n.updateValueAndValidity(),this.controls.push(n)}return this.controls}getInitialValues(){return this.initialValues}getInitialValueForSetting(e){return this.initialValues[e]}filterControlsForSaving(e){const n=[];for(const o of e)if(o.dirty){const a={};a.name=o.propertyName,a.value=o.value,a.section=o.section,n.push(a)}return n}save(e){const n=[];n.push(new K.h("data",this.filterControlsForSaving(e)));const o=new P.r(P.N.JsonApi,{method:"update_sql_config",arguments:n,config:{json:!0}});return this.apiClient.post(o)}getInputType(e){const n=e.propertyType;if("boolean"===n)return u.toggle;if("select"===n)return u.select;if("long_text"===n)return u.textArea;if("number"===n)switch(e.validation?.type){case"bytes":return u.bytes;case"decimal":return u.decimal;case"int":return u.integer;default:return u.text}return u.text}}return i.ɵfac=function(e){return new(e||i)(t.LFG(k.A4),t.LFG(_.g),t.LFG(q),t.LFG(E))},i.ɵprov=t.Yz7({token:i,factory:i.ɵfac,providedIn:"root"}),i})(),D=(()=>{class i{constructor(e){this.locale=e,this.defaultSettings=T}getCategorizedSettingList(){if(this.categorizedSettings)return this.categorizedSettings;(!this.categoryLabelMap||!this.subcategoryLabelMap)&&this.generateLabelMaps();const e=[];for(const[n,o]of Object.entries(this.defaultSettings)){const a=n,c=o.category,f=o.subcategory;let v=e.find((x=>x.name===c));if(v||(v={name:c,label:this.categoryLabelMap[c],subcategories:[{name:"uncategorized",label:null,settingNames:[]}]},e.push(v)),f){let x=v.subcategories.find((he=>he.name===f));x||(x={name:f,label:this.subcategoryLabelMap[c][f],settingNames:[]},v.subcategories.push(x)),x.settingNames.push(a)}else v.subcategories[0].settingNames.push(a)}return this.categorizedSettings=e.sort(((n,o)=>n.name>o.name?1:-1)),this.categorizedSettings.forEach((n=>{n.subcategories.length>0&&n.subcategories.sort(((o,a)=>o.label&&a.label?o.label.localeCompare(a.label):0))})),this.categorizedSettings.forEach((n=>{n.subcategories.forEach((o=>{o.settingNames.sort(((a,r)=>a.localeCompare(r)))}))})),this.categorizedSettings}generateLabelMaps(){this.categoryLabelMap={"00-general":this.locale.maketext("General"),"01-logs":this.locale.maketext("Logs"),innodb:this.locale.maketext("[asis,InnoDB]"),buffers:this.locale.maketext("Buffers"),query_cache:this.locale.maketext("Query Cache"),memory_tables:this.locale.maketext("Memory Tables")},this.subcategoryLabelMap={"00-general":{timeouts:this.locale.maketext("Timeouts")},"01-logs":{"00-general":this.locale.maketext("General Logs"),"01-errors":this.locale.maketext("Error Logs"),slow_queries:this.locale.maketext("Slow Query Logs")},innodb:{buffer_pool:this.locale.maketext("Buffer Pool")}}}}return i.ɵfac=function(e){return new(e||i)(t.LFG(_.g))},i.ɵprov=t.Yz7({token:i,factory:i.ɵfac,providedIn:"root"}),i})();var ot=l(8675);let st=(()=>{class i{constructor(e){this.locale=e,this.property="",this.disabled=!1,this.labelPosition=h.Gy.right,this.changed=n=>{},this.touched=()=>{}}updateToggleState(){this.toggleState=h.Yg.toggleUpdating,this.toggleState=this.value?h.Yg.toggleOn:h.Yg.toggleOff,this.changed(this.value)}handleToggleClick(){this.disabled||(this.value=this.value?0:1,this.updateToggleState())}writeValue(e){this.touched(),this.value=e,this.updateToggleState()}registerOnChange(e){this.changed=e}registerOnTouched(e){this.touched=e}setDisabledState(e){this.disabled=e}}return i.ɵfac=function(e){return new(e||i)(t.Y36(_.g))},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-boolean-editor"]],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("disabled",n.disabled)},inputs:{property:"property"},features:[t._Bn([{provide:p.JU,useExisting:(0,t.Gpc)((()=>i)),multi:!0}])],decls:2,vars:7,consts:[[1,"toggle-container",3,"id","click","keyup.enter"],[3,"id","onText","offText","toggleState","labelPosition","isDisabled"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.NdJ("click",(function(){return n.handleToggleClick()}))("keyup.enter",(function(){return n.handleToggleClick()})),t._UZ(1,"cp-toggle-switch",1),t.qZA()),2&e&&(t.MGl("id","",n.property,"_container"),t.xp6(1),t.s9C("onText",n.locale.maketext("Enabled")),t.s9C("offText",n.locale.maketext("Disabled")),t.Q6J("id",n.property)("toggleState",n.toggleState)("labelPosition",n.labelPosition)("isDisabled",n.disabled))},dependencies:[h.MF],styles:["[_nghost-%COMP%]{cursor:pointer}.disabled[_nghost-%COMP%]{cursor:not-allowed}.toggle-container[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}"]}),i})();var b=l(4968),A=l(6451),at=l(9751),rt=l(5963),lt=l(9646),w=l(9300),ct=l(3900);let pt=(()=>{class i{constructor(e){this.elementRef=e,this.longPress=new t.vpe,this.threshold=500,this.observerConfig={attributes:!0,attributeFilter:["disabled"],attributeOldValue:!0},this.mousedown$=(0,b.R)(this.elementRef.nativeElement,"mousedown").pipe((0,w.h)((n=>0===n.button))),this.mouseup$=(0,b.R)(this.elementRef.nativeElement,"mouseup").pipe((0,w.h)((n=>0===n.button))),this.touchstart$=(0,b.R)(this.elementRef.nativeElement,"touchstart"),this.touchend$=(0,b.R)(this.elementRef.nativeElement,"touchend"),this.pointerLeave$=(0,b.R)(this.elementRef.nativeElement,"pointerleave"),this.startEvents$=(0,A.T)(this.mousedown$,this.touchstart$).pipe((0,C.U)((()=>!0))),this.observeOnDisable=(n,o)=>new at.y((a=>{const r=new MutationObserver((f=>{a.next(f)}));return r.observe(n,o),()=>{r.disconnect()}}))}ngOnInit(){this.isDisabled$=this.observeOnDisable(this.elementRef.nativeElement,this.observerConfig).pipe((0,w.h)((e=>null===e[0].oldValue))),this.stopEvents$=(0,A.T)(this.mouseup$,this.touchend$,this.pointerLeave$,this.isDisabled$).pipe((0,C.U)((()=>!1))),this.controlEmitter=(0,A.T)(this.startEvents$,this.stopEvents$).pipe((0,ct.w)((e=>e&&!this.elementRef.nativeElement.disabled?(0,rt.H)(this.threshold,100):(0,lt.of)(null))),(0,w.h)((e=>e&&!this.elementRef.nativeElement.disabled))).subscribe((()=>this.longPress.emit()))}ngOnDestroy(){this.controlEmitter&&this.controlEmitter.unsubscribe()}}return i.ɵfac=function(e){return new(e||i)(t.Y36(t.SBq))},i.ɵdir=t.lG2({type:i,selectors:[["","cpSqlConfigLongPress",""]],outputs:{longPress:"longPress"}}),i})();const F=()=>{};let dt=(()=>{class i{constructor(e){this.locale=e,this.idSuffix="",this.onChangeCallback=F,this.onTouchedCallback=F,this.value=0,this.touched=!1,this.disabled=!1,this.isIncrementDisabled=!1,this.isDecrementDisabled=!1}onValueChange(e){this.value=e,this.markAsTouched(),this.checkValueBounds(),this.onChangeCallback(this.value)}skipIncDec(){return!(!isNaN(this.value+1)&&null!==this.value)}onIncrement(){if(!this.skipIncDec()&&this.value!==this.maxValue){if(this.value<this.minValue)return void this.onValueChange(this.minValue);if(!Number.isInteger(this.value))return void this.onValueChange(Math.ceil(this.value));this.onValueChange(this.value+1)}}onDecrement(){if(!this.skipIncDec()&&this.value!==this.minValue){if(this.value>this.maxValue)return void this.onValueChange(this.maxValue);if(!Number.isInteger(this.value))return void this.onValueChange(Math.floor(this.value));this.onValueChange(this.value-1)}}checkValueBounds(){"number"==typeof this.maxValue&&(this.isIncrementDisabled=this.value>=this.maxValue),"number"==typeof this.minValue&&(this.isDecrementDisabled=this.value<=this.minValue)}markAsTouched(){this.touched||(this.onTouchedCallback(),this.touched=!0)}writeValue(e){this.onValueChange(e)}registerOnChange(e){this.onChangeCallback=e}registerOnTouched(e){this.onTouchedCallback=e}setDisabledState(e){this.disabled=e}}return i.ɵfac=function(e){return new(e||i)(t.Y36(_.g))},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-integer-control"]],inputs:{idSuffix:"idSuffix",maxValue:"maxValue",minValue:"minValue"},features:[t._Bn([{provide:p.JU,multi:!0,useExisting:i}])],decls:13,vars:11,consts:[[1,"integer-editor"],[1,"field-container"],["type","number","data-test","input",1,"form-control","integer-field",3,"id","disabled","ngModel","min","max","ngModelChange"],["numberInput",""],[1,"increment-container"],["type","button","data-test","increment","cpSqlConfigLongPress","","oncontextmenu","return false",1,"btn","btn-outline-secondary","btn-xs","custom-increment",3,"id","disabled","click","longPress"],["aria-hidden","true",1,"fas","fa-plus"],[1,"sr-only"],["type","button","data-test","decrement","cpSqlConfigLongPress","","oncontextmenu","return false",1,"btn","btn-outline-secondary","btn-xs","custom-decrement",3,"id","disabled","click","longPress"],["aria-hidden","true",1,"fas","fa-minus"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"input",2,3),t.NdJ("ngModelChange",(function(a){return n.onValueChange(a)})),t.qZA()(),t.TgZ(4,"div",4)(5,"button",5),t.NdJ("click",(function(){return n.onIncrement()}))("longPress",(function(){return n.onIncrement()})),t._UZ(6,"i",6),t.TgZ(7,"span",7),t._uU(8),t.qZA()(),t.TgZ(9,"button",8),t.NdJ("click",(function(){return n.onDecrement()}))("longPress",(function(){return n.onDecrement()})),t._UZ(10,"i",9),t.TgZ(11,"span",7),t._uU(12),t.qZA()()()()),2&e&&(t.xp6(2),t.MGl("id","integer-input-",n.idSuffix,""),t.Q6J("disabled",n.disabled)("ngModel",n.value)("min",n.minValue)("max",n.maxValue),t.xp6(3),t.MGl("id","increment-",n.idSuffix,""),t.Q6J("disabled",n.disabled||n.isIncrementDisabled),t.xp6(3),t.Oqu(n.locale.maketext("Increase")),t.xp6(1),t.MGl("id","decrement-",n.idSuffix,""),t.Q6J("disabled",n.disabled||n.isDecrementDisabled),t.xp6(3),t.Oqu(n.locale.maketext("Decrease")))},dependencies:[p.Fj,p.wV,p.JJ,p.qQ,p.Fd,p.On,pt],styles:[".integer-editor[_ngcontent-%COMP%]{position:relative;width:100%}.custom-increment[_ngcontent-%COMP%], .custom-decrement[_ngcontent-%COMP%]{margin:1px;border:1px solid #212529}.custom-increment[_ngcontent-%COMP%]:disabled, .custom-decrement[_ngcontent-%COMP%]:disabled{opacity:1;background:#e6e9ef;border-color:#b3bccf;color:#b3bccf}.custom-increment[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .custom-decrement[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{line-height:1.5}.increment-container[_ngcontent-%COMP%]{position:absolute;display:inline-block;top:5px;z-index:1}html[dir=ltr][_ngcontent-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%]{right:0;margin-right:3px}html[dir=rtl][_ngcontent-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .increment-container[_ngcontent-%COMP%]{left:0;margin-left:3px}"]}),i})();const mt=["template"];function gt(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div",1)(1,"button",2),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw();return t.KtG(o.closeModal())})),t.TgZ(2,"span",3),t._uU(3,"×"),t.qZA()(),t.Hsn(4),t.qZA(),t.TgZ(5,"div",4),t.Hsn(6,1),t.qZA(),t.TgZ(7,"div",5),t.Hsn(8,2),t.qZA()}if(2&i){const e=t.oxw();t.xp6(1),t.uIk("aria-label",e.locale.maketext("Close"))}}const ut=[[["","modalHeader",""]],[["","modalBody",""]],[["","modalFooter",""]]],ft=["[modalHeader]","[modalBody]","[modalFooter]"];let ht=(()=>{class i{constructor(e,n){this.locale=e,this.modalService=n,this.dismissModal=new t.vpe}set show(e){this._show=e,this._show?this.openModal():this.closeModal()}ngOnInit(){this.modalService.onHide.subscribe((e=>{this.dismissModal.emit()}))}openModal(){this.bsModalRef=this.modalService.show(this.modalTemplate)}closeModal(){this.bsModalRef&&this.bsModalRef.hide()}}return i.ɵfac=function(e){return new(e||i)(t.Y36(_.g),t.Y36(N.tT))},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-modal"]],viewQuery:function(e,n){if(1&e&&t.Gf(mt,7),2&e){let o;t.iGM(o=t.CRH())&&(n.modalTemplate=o.first)}},inputs:{show:"show"},outputs:{dismissModal:"dismissModal"},ngContentSelectors:ft,decls:2,vars:0,consts:[["template",""],[1,"modal-header"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"modal-footer"]],template:function(e,n){1&e&&(t.F$t(ut),t.YNc(0,gt,9,1,"ng-template",null,0,t.W1O))},styles:[".modal-backdrop[_ngcontent-%COMP%]{background:rgba(8,25,62,.75)}.modal-body[_ngcontent-%COMP%], .modal-header[_ngcontent-%COMP%]{background:#fafafa;border:none;border-radius:inherit}.modal-footer[_ngcontent-%COMP%]{margin-top:0}"],changeDetection:0}),i})();var _t=l(1135),bt=l(7579),G=l(3601),J=l(2722);let Z=(()=>{class i{constructor(e){this.doc=e,this.scrollItems={},this.currentScrollItem=null,this.$currentScrollItem=new _t.X(null),this.onStopListening=new bt.x,this.resizeEvents=(0,b.R)(window,"resize").pipe((0,G.e)(300),(0,J.R)(this.onStopListening)),this.scrollEvents=(0,b.R)(window,"scroll").pipe((0,G.e)(10),(0,J.R)(this.onStopListening)),this.scrollWindow={elementRef:new t.SBq(this.doc.documentElement||this.doc.body),offset:0},this.resizeEvents.subscribe((()=>this.checkForScrollItemChange())),this.scrollEvents.subscribe((()=>this.checkForScrollItemChange())),this.checkForScrollItemChange()}observe(){return this.$currentScrollItem.asObservable()}setItem(e,n){this.checkItemIsUnique(e),this.scrollItems[e]=this.generateScrollObject(e,n)}deleteItem(e){null!=this.scrollItems[e]&&delete this.scrollItems[e]}setOffset(e){this.scrollWindow.offset=e,this.checkForScrollItemChange()}checkForScrollItemChange(){const e=this.getActiveItem();this.currentScrollItem?.id!==e?.id&&this.setCurrentScrollItem(e)}setCurrentScrollItem(e){this.currentScrollItem=e,setTimeout((()=>this.$currentScrollItem.next(e)))}getActiveItem(){const e=Object.values(this.scrollItems),n=window.pageYOffset??0;let o=null;return e.forEach((a=>{a.nativeElement.offsetTop<=n+this.scrollWindow.offset&&(o=a)})),o}checkItemIsUnique(e){if(null!=this.scrollItems[e])throw new Error(`ScrollSpyService: The scroll item with the id [${e}] exists.`)}generateScrollObject(e,n){return{id:e,elementRef:n,nativeElement:n.nativeElement}}}return i.ɵfac=function(e){return new(e||i)(t.LFG(m.K0))},i.ɵprov=t.Yz7({token:i,factory:i.ɵfac,providedIn:"root"}),i})(),Ct=(()=>{class i{constructor(e,n){this.el=e,this.scrollSpyService=n,this.hasClassActive=!1}ngOnDestroy(){this.subscriber&&this.subscriber.unsubscribe(),this.scrollSpyService.deleteItem(this.itemId)}ngAfterViewInit(){this.subscriber=this.scrollSpyService.observe().subscribe((e=>{let n=!1;null!=e&&(n=e.id===this.itemId),this.hasClassActive=n})),this.scrollSpyService.setItem(this.itemId,this.el)}}return i.ɵfac=function(e){return new(e||i)(t.Y36(t.SBq),t.Y36(Z))},i.ɵdir=t.lG2({type:i,selectors:[["","cpSqlConfigScrollSpy",""]],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("active",n.hasClassActive)},inputs:{itemId:["cpSqlConfigScrollSpy","itemId"]}}),i})(),vt=(()=>{class i{constructor(){}}return i.ɵfac=function(e){return new(e||i)},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-optimize-database-graphic"]],decls:57,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","width","1137.617","height","932.766","viewBox","0 0 1137.617 932.766"],["transform","translate(-329.692 -1241.347)"],["transform","translate(329.692 1238.104)"],["d","M752.911,962.124c-196.565,0-365.759-131.908-404.107-315.055s64.83-366.524,246.433-437.985,391.055-11.1,500.261,144.163,87.753,362.192-51.24,494.234c-77.1,73.645-182.012,114.927-291.347,114.643Zm0-779.827c-225.444,0-408.857,174.24-408.857,388.409S527.467,959.114,752.911,959.114s408.858-174.238,408.858-388.408S978.356,182.3,752.911,182.3Z","transform","translate(-163.641 -81.096)","fill","#ccc"],["width","335.648","height","249.814","transform","translate(693.716 488.222) rotate(90)","fill","#2f2e41"],["width","335.648","height","133.234","transform","translate(400.984 477.973)","fill","#f2f2f2","stroke","#707070","stroke-width","1"],["width","335.648","height","133.234","transform","translate(400.984 626.581)","fill","#f2f2f2","stroke","#707070","stroke-width","1"],["width","335.648","height","133.234","transform","translate(400.984 775.188)","fill","#f2f2f2","stroke","#707070","stroke-width","1"],["width","335.648","height","20.498","transform","translate(400.984 534.465)","fill","var(--cp-graphic-color)"],["width","335.648","height","20.498","transform","translate(400.984 683.072)","fill","var(--cp-graphic-color)"],["width","335.648","height","20.498","transform","translate(400.984 831.68)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(663.61 489.503)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(690.513 489.503)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(717.416 489.503)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(663.61 635.548)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(690.513 635.548)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(717.416 635.548)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(663.61 781.594)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(690.513 781.594)","fill","var(--cp-graphic-color)"],["cx","7.687","cy","7.687","r","7.687","transform","translate(717.416 781.594)","fill","var(--cp-graphic-color)"],["width","1137.617","height","2.562","transform","translate(0 907.141)","fill","#3f3d56"],["d","M315,157.475h0Z","transform","translate(411.375 43.533)","fill","#e6e6e6"],["cx","2.686","cy","2.686","r","2.686","transform","translate(418.499 3.244)","fill","#fff"],["cx","2.686","cy","2.686","r","2.686","transform","translate(427.913 3.244)","fill","#fff"],["cx","2.686","cy","2.686","r","2.686","transform","translate(437.328 3.244)","fill","#fff"],["transform","translate(430 1346)"],["d","M978.52,751.182l.127-.123Z","transform","translate(-41.642 -11.679)","fill","var(--cp-graphic-color)"],["d","M743.708,785.571l-6.76-5.022s-4.474,24.993.518,28.738,23.716,9.986,23.716,17.475S803.622,844.237,804.87,833s-3.745-17.475-3.745-17.475-19.972-19.972-22.468-23.716-8.737-11.234-8.737-11.234Z","transform","translate(-56.051 -9.934)","fill","#2f2e41"],["d","M843.63,492.621s-.187,1.1-.512,3.108c-.3,1.785-.712,4.306-1.211,7.414-5.243,31.992-20.533,126.17-19.5,129.278,1.248,3.745,9.986,17.475,0,21.22-.961.362-2,1.535-3.108,3.383a72.546,72.546,0,0,0-5.28,12.457c-5.954,17.275-12.32,44.923-16,64.071-1.61,8.413-2.709,15.178-3.033,18.723a10.178,10.178,0,0,0-.038,2.471c1.248,4.993-7.489,22.468-11.234,27.461s-9.986,9.986-8.738,14.979-31.205,18.723-34.95,9.986-3.745-13.73-4.993-16.227-2.5-19.971,3.745-22.468,2.5-46.184,8.737-54.922c2.084-2.908,5.267-12.757,8.6-24.6,1.311-4.643,2.634-9.586,3.932-14.542,5.267-20.309,9.936-40.742,9.936-40.742l-1.248-146.042,68.652-8.738,1.76,3.882,3.508,7.7Z","transform","translate(-56.115 -27.79)","fill","#2f2e41"],["d","M841.806,718.366s9.986-9.986,14.979,0,9.986,48.681,18.723,57.418S895.48,828.209,883,830.706s-26.213-3.745-27.461-11.234-27.461-46.184-27.461-49.929,17.475-17.475,17.475-17.475Z","transform","translate(-50.547 -13.877)","fill","#2f2e41"],["d","M696.088,427.23S712.315,573.271,716.06,587s23.716,66.156,29.957,74.893,46.184,79.886,51.177,83.631,14.979,13.73,14.979,13.73,18.723,18.723,21.22,22.468,23.716-7.489,24.964-14.979-1.248-19.972-2.5-24.964,2.5-12.482-1.248-16.227-22.468-22.468-22.468-31.206S799.69,634.434,787.208,623.2s-9.986-29.957-9.986-29.957V517.1l68.652-21.22s-3.745-59.914-12.482-59.914S709.819,416,696.088,427.23Z","transform","translate(-58.36 -31.051)","fill","#2f2e41"],["cx","41.191","cy","41.191","r","41.191","transform","translate(697.643 105.344)","fill","#9f616a"],["d","M779.27,223.174s-4.993,18.723-11.234,23.716S784.263,273.1,784.263,273.1l42.439,2.5,7.489-23.716s-13.73-27.461-9.986-44.936S779.27,223.174,779.27,223.174Z","transform","translate(-54.166 -44.185)","fill","#9f616a"],["d","M765.791,242.02s11.234,1.248,13.73,4.993,19.971,14.979,33.7,12.482,22.468-6.241,24.964-4.993,7.489,27.461,7.489,27.461l-13.73,39.943,2.5,109.843,3.745,29.957s7.489-9.986-22.468-3.745-68.652-4.993-81.134-6.241-33.7-4.993-34.95-12.482,3.745-34.95,3.745-34.95l19.971-83.631,12.482-44.936Z","transform","translate(-58.162 -41.811)","fill","#3f3d56"],["d","M778.979,236.85s-10.559-5.6-14.3-.607S713.5,248.725,713.5,252.47s-9.986,104.85-7.489,113.588-4.993,18.723-4.993,18.723l-8.738,37.447s-23.716,71.148-13.73,73.645,18.723,0,22.468,0,2.5-47.432,12.482-59.915,23.716-43.688,26.213-49.929,33.7-92.368,32.454-102.354S778.979,236.85,778.979,236.85Z","transform","translate(-59.544 -42.276)","fill","#d0cde1"],["d","M823.676,242.02s9.986,0,11.234,2.5,13.73,18.723,18.723,22.468S876.1,286.955,876.1,290.7s-36.2,31.205-36.2,31.205-14.979,73.645-7.489,98.609,18.723,84.879,13.73,88.624-16.227,4.993-16.227,0-7.489-58.666-13.73-69.9-24.964-82.382-17.475-102.354S823.676,242.02,823.676,242.02Z","transform","translate(-52.388 -41.811)","fill","#d0cde1"],["d","M666.628,358.687s-1.248,38.695,12.482,58.666,22.468,42.439,22.468,42.439,22.468-6.241,26.213-13.73,27.461-1.248,27.461-3.745-28.709-14.979-31.205-17.475-11.234-2.5-16.227-7.489-6.241-16.227-6.241-16.227l-4.993-32.454Z","transform","translate(-60.106 -34.905)","fill","#9f616a"],["d","M765.606,169.52c-3.169-.288-6.437-.6-9.238-2.115-6.275-3.384-7.939-13.022-3.162-18.314a23.666,23.666,0,0,1,4.388-3.529l9.488-6.458c4.2-2.856,8.492-5.759,13.386-7.106,4.427-1.218,9.1-1.093,13.685-.808,8.9.553,17.847,1.7,26.214,4.766s16.172,8.21,21.24,15.542c8.034,11.624,8.144,27.3,3.719,40.72s-12.829,25.1-21.111,36.553l-4.3-20.967c-.383-1.867-.878-3.914-2.431-5.019-3.86-2.747-8.582,2.893-13.32,2.857-3.044-.023-5.6-2.527-6.754-5.345s-1.23-5.937-1.5-8.97c-.565-6.423-2.81-15.36-8.893-18.9C781.355,169.124,771.977,170.1,765.606,169.52Z","transform","translate(-55.142 -48.383)","fill","#2f2e41"],["d","M766.94,492.826s4.216,121.942,6.712,125.687,0-126.07,0-126.07Z","transform","translate(-54.166 -26.988)","opacity","0.1"],["d","M724.572,251.447h-9.986s-42.439,57.418-37.447,61.163,0,13.73,0,13.73l-9.986,18.723s-12.482,11.234-8.737,13.73,8.737,12.482,8.737,12.482,24.964-3.745,32.454,11.234L715.8,362.072Z","transform","translate(-60.631 -41.253)","fill","#d0cde1"],["d","M836.725,356.611s-27.461,1.248-58.666-18.723l-31.205-13.73s-27.461-42.439-29.957-34.95,3.745,22.468,3.745,22.468S682.981,329.1,682,331.408s21.163-3.506,21.163-3.506-3.745,23.716,17.475,24.964,27.461-3.745,27.461-3.745,89.872,74.893,104.85,51.177S836.725,356.611,836.725,356.611Z","transform","translate(-59.196 -39.07)","fill","#9f616a"],["d","M860.887,283.266l13.73,4.993v37.447l4.993,7.489s-1.248,14.979-4.993,18.723-11.234,2.5-8.737,11.234a47.311,47.311,0,0,1,1.248,17.475s-22.468,28.709-23.716,24.964-18.723-49.929-21.22-49.929,24.964-72.4,24.964-72.4Z","transform","translate(-50.905 -39.37)","fill","#d0cde1"],["d","M704.21,463.016s-12.906-12.482-6.453-13.106,28.921-13.106,32.666-6.865S704.21,463.016,704.21,463.016Z","transform","translate(-58.368 -30.015)","fill","#2f2e41"],["d","M542.8,828.422A240.354,240.354,0,0,0,576.992,704.5c0-133.375-108.122-241.5-241.5-241.5S94,571.121,94,704.5a240.355,240.355,0,0,0,34.194,123.926Z","transform","translate(-94 -28.73)","fill","#3f3d56"],["cx","23.5","cy","23","rx","23.5","ry","23","transform","translate(218 637)","fill","var(--cp-graphic-color)"],["cx","12","cy","12","r","12","transform","translate(44 686)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(51.323 585.444)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(109.157 502.466)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(201.467 461.126)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(301.884 473.235)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(381.723 535.332)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(418.174 629.68)","fill","var(--cp-graphic-color)"],["cx","11.651","cy","11.651","r","11.651","transform","translate(400.827 729.326)","fill","var(--cp-graphic-color)"],["y1","91","x2","120","transform","translate(241 569)","fill","none","stroke","var(--cp-graphic-color)","stroke-miterlimit","10","stroke-width","4"],["cx","15.629","cy","15.629","r","15.629","transform","translate(336.598 194.464)","fill","none","stroke","#3f3d56","stroke-miterlimit","10","stroke-width","2"],["cx","15.629","cy","15.629","r","15.629","transform","translate(276.224 304.157)","fill","#3f3d56"],["cx","45.309","cy","45.309","r","45.309","transform","translate(132.871 305.459)","fill","#d0cde1"]],template:function(e,n){1&e&&(t.O4$(),t.TgZ(0,"svg",0)(1,"g",1)(2,"g",2),t._UZ(3,"path",3)(4,"rect",4)(5,"rect",5)(6,"rect",6)(7,"rect",7)(8,"rect",8)(9,"rect",9)(10,"rect",10)(11,"circle",11)(12,"circle",12)(13,"circle",13)(14,"circle",14)(15,"circle",15)(16,"circle",16)(17,"circle",17)(18,"circle",18)(19,"circle",19)(20,"rect",20)(21,"path",21)(22,"circle",22)(23,"circle",23)(24,"circle",24),t.qZA(),t.TgZ(25,"g",25),t._UZ(26,"path",26)(27,"path",27)(28,"path",28)(29,"path",29)(30,"path",30)(31,"circle",31)(32,"path",32)(33,"path",33)(34,"path",34)(35,"path",35)(36,"path",36)(37,"path",37)(38,"path",38)(39,"path",39)(40,"path",40)(41,"path",41)(42,"path",42)(43,"path",43)(44,"ellipse",44)(45,"circle",45)(46,"circle",46)(47,"circle",47)(48,"circle",48)(49,"circle",49)(50,"circle",50)(51,"circle",51)(52,"circle",52)(53,"line",53)(54,"circle",54)(55,"circle",55)(56,"circle",56),t.qZA()()())},styles:["svg[_ngcontent-%COMP%]{width:inherit;height:inherit;fill:inherit;background:inherit;background-color:inherit}img[_ngcontent-%COMP%]{width:inherit;height:inherit}"]}),i})(),U=(()=>{class i{constructor(e){this.locale=e}transform(e,n){return"boolean"===n?this.locale.maketext(e?"Enabled ([_1])":"Disabled ([_1])",e):e}}return i.ɵfac=function(e){return new(e||i)(t.Y36(_.g,16))},i.ɵpipe=t.Yjl({name:"configValue",type:i,pure:!0}),i})();function xt(i,s){if(1&i&&(t.TgZ(0,"p",11),t._uU(1),t.qZA()),2&i){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",e.title," ")}}function yt(i,s){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"configValue"),t.qZA()),2&i){const e=t.oxw(2).$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.applyValue.value,e.applyValue.dataType)," ")}}function Mt(i,s){if(1&i&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2).$implicit;t.xp6(1),t.Oqu(e.description)}}const Ot=function(i){return{"optimize-menu":i}};function St(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"ul",6)(1,"li",7),t.YNc(2,xt,2,1,"p",8),t.YNc(3,yt,3,4,"p",9),t.YNc(4,Mt,2,1,"p",9),t.TgZ(5,"button",10),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw().index,a=t.oxw();return t.KtG(a.handleApplyClick(o))})),t._uU(6),t.qZA()()()}if(2&i){const e=t.oxw(),n=e.index,o=e.$implicit,a=t.oxw();t.Q6J("id",a.idPrefix+"-menu-"+n)("ngClass",t.VKq(7,Ot,o.type===a.settingControlType.Optimize)),t.uIk("aria-labelledby",a.idPrefix+"-btn-"+n),t.xp6(2),t.Q6J("ngIf",o.title),t.xp6(1),t.Q6J("ngIf",o.applyValue),t.xp6(1),t.Q6J("ngIf",o.description),t.xp6(2),t.hij(" ",o.applyText," ")}}function Pt(i,s){if(1&i&&(t.TgZ(0,"div",2)(1,"button",3),t._UZ(2,"i",4),t.qZA(),t.YNc(3,St,7,9,"ul",5),t.qZA()),2&i){const e=s.$implicit,n=s.index,o=t.oxw();t.Q6J("isDisabled",e.isDisabled),t.xp6(1),t.Q6J("id",o.idPrefix+"-btn-"+n),t.uIk("title",e.label)("aria-label",e.label)("aria-controls",o.idPrefix+"-menu-"+n),t.xp6(1),t.Gre("ri-lg ",e.iconClass,"")}}let wt=(()=>{class i{constructor(e){this.locale=e,this.applyAction=new t.vpe,this.settingControlType=g}ngOnInit(){this.initSettingControls()}ngOnChanges(e){!1===e.configOptions?.firstChange&&this.updateConfigSettings()}initSettingControls(){const e=this.getConfig(g.optimize),n={isDisabled:e.isDisabled,description:e.description,applyValue:e.applyValue,type:g.optimize,iconClass:"ri-dashboard-3-line",label:this.locale.maketext("Optimize"),title:this.locale.maketext("Optimization Available"),applyText:this.locale.maketext("Apply Optimization")},o=this.getConfig(g.reset),a={isDisabled:o.isDisabled,description:o.description,applyValue:o.applyValue,type:g.reset,iconClass:"ri-file-settings-line",label:this.locale.maketext("Reset to Default Value"),title:this.locale.maketext("Default Value"),applyText:this.locale.maketext("Apply Default Value")},r=this.getConfig(g.undo),c={isDisabled:r.isDisabled,description:r.description,applyValue:r.applyValue,type:g.undo,iconClass:"ri-arrow-go-back-line",label:this.locale.maketext("Undo Changes"),applyText:this.locale.maketext("Undo Changes")};this.settingControls=[c,a,n]}handleApplyClick(e){this.applyAction.emit(this.settingControls[e].type)}getConfig(e){return this.configOptions?.find((n=>n.type===e))||{type:e}}updateConfigSettings(){this.settingControls.forEach((e=>{const n=this.getConfig(e.type);Object.assign(e,n)}))}}return i.ɵfac=function(e){return new(e||i)(t.Y36(_.g))},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-setting-control-menu"]],inputs:{idPrefix:"idPrefix",configOptions:"configOptions"},outputs:{applyAction:"applyAction"},features:[t.TTD],decls:2,vars:1,consts:[[1,"setting-menu"],["dropdown","","class","btn-group",3,"isDisabled",4,"ngFor","ngForOf"],["dropdown","",1,"btn-group",3,"isDisabled"],["dropdownToggle","","type","button",1,"btn","btn-link","setting-control-icon",3,"id"],["aria-hidden","true"],["class","dropdown-menu dropdown-menu-right","role","menu",3,"id","ngClass",4,"dropdownMenu"],["role","menu",1,"dropdown-menu","dropdown-menu-right",3,"id","ngClass"],["role","menuitem",1,"menu-item"],["class","menu-item-title",4,"ngIf"],[4,"ngIf"],[1,"btn","btn-link","menu-item-action",3,"click"],[1,"menu-item-title"]],template:function(e,n){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Pt,4,8,"div",1),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngForOf",n.settingControls))},dependencies:[m.mk,m.sg,m.O5,O.Hz,O.Mq,O.TO,U],styles:[".setting-menu[_ngcontent-%COMP%]{display:flex}.setting-menu[_ngcontent-%COMP%]   .dropdown-menu[_ngcontent-%COMP%]{max-width:300px}.setting-menu[_ngcontent-%COMP%]   .dropdown-menu.optimize-menu[_ngcontent-%COMP%]{min-width:285px}.setting-menu[_ngcontent-%COMP%]   .menu-item[_ngcontent-%COMP%]{padding:var(--cp-spacer-3) var(--cp-spacer-4)}.setting-menu[_ngcontent-%COMP%]   .menu-item[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{word-wrap:break-word}.setting-menu[_ngcontent-%COMP%]   .menu-item-title[_ngcontent-%COMP%]{font-weight:700}.setting-menu[_ngcontent-%COMP%]   .menu-item-action[_ngcontent-%COMP%]{padding:0}.setting-menu[_ngcontent-%COMP%]   .btn[disabled][_ngcontent-%COMP%]{opacity:.4}.setting-control-icon[_ngcontent-%COMP%]{padding:0;display:flex}.setting-control-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{line-height:0}"],changeDetection:0}),i})();function Tt(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"cp-callout",19),t._UZ(1,"p",20)(2,"p",21)(3,"p",21),t.TgZ(4,"p")(5,"button",22),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw();return t.KtG(o.restartSQLServer())})),t.qZA()()()}if(2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",e.locale.maketext("Database is Not Running"),t.oJD),t.xp6(1),t.Q6J("innerHTML",e.locale.maketext("This tool is unable to edit the [_1] configuration while the database is not running.",e.dbName),t.oJD),t.xp6(1),t.Q6J("innerHTML",e.locale.maketext("Click [_1][comment,button label] below to attempt to manually restart the service. Contact your system administrator if the service does not recover.",e.restartSQLServerButtonLabel),t.oJD),t.xp6(2),t.Q6J("innerHTML",e.restartSQLServerButtonLabel,t.oJD)}}function kt(i,s){if(1&i&&(t.TgZ(0,"cp-callout",23),t._UZ(1,"p",20)(2,"p",21)(3,"p",21),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Q6J("innerHTML",e.locale.maketext("Database is Remote"),t.oJD),t.xp6(1),t.Q6J("innerHTML",e.locale.maketext("This tool is unable to edit the [_1] configuration because the database is hosted on a remote server.",e.dbName),t.oJD),t.xp6(1),t.Q6J("innerHTML",e.locale.maketext("If you wish to edit your database configuration, you need to do so on the remote database server."),t.oJD)}}function At(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div",41)(1,"div",42)(2,"div",43)(3,"h4",44),t._uU(4),t.qZA(),t.TgZ(5,"p"),t._uU(6),t.qZA(),t.TgZ(7,"button",45),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.applyOptimizations())})),t._UZ(8,"i",46),t._uU(9),t.qZA()(),t.TgZ(10,"div",47),t._UZ(11,"cp-sql-config-optimize-database-graphic",48),t.qZA()()()}if(2&i){const e=t.oxw(2);t.xp6(4),t.hij(" ",e.locale.maketext("Optimize Database")," "),t.xp6(2),t.hij(" ",e.locale.maketext("Want to improve your database’s performance? Click the optimize icon next to a setting to see a custom recommendation.")," "),t.xp6(3),t.hij(" ",e.locale.maketext("Review Suggestions")," ")}}function Zt(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"a",66),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw().$implicit,a=t.oxw(4);return t.KtG(a.toggleHelpFor(o))})),t._UZ(1,"span",67),t.qZA()}}function Vt(i,s){if(1&i&&t._UZ(0,"div",68),2&i){const e=t.oxw().$implicit,n=t.oxw(4);t.MGl("id","help_",e,""),t.Q6J("innerHTML",n.formControls[e].description,t.oJD)}}function Nt(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"input",69),t.NdJ("keypress",(function(o){t.CHM(e);const a=t.oxw(5);return t.KtG(a.keyPressNumbersOrDecimal(o))})),t.qZA()}if(2&i){const e=t.oxw().$implicit;t.s9C("formControlName",e),t.uIk("data-property",e)}}function Lt(i,s){if(1&i&&t._UZ(0,"cp-sql-config-integer-control",70),2&i){const e=t.oxw().$implicit,n=t.oxw(4);t.s9C("formControlName",e),t.Q6J("idSuffix",e)("minValue",n.formControls[e].min)("maxValue",n.formControls[e].max),t.uIk("data-property",e)}}function It(i,s){if(1&i&&(t.TgZ(0,"option",73),t._uU(1),t.qZA()),2&i){const e=s.$implicit;t.Q6J("ngValue",e),t.xp6(1),t.hij(" ",e," ")}}function zt(i,s){if(1&i&&(t.TgZ(0,"select",71),t.YNc(1,It,2,2,"option",72),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw(4);t.s9C("formControlName",e),t.uIk("data-property",e),t.xp6(1),t.Q6J("ngForOf",n.formControls[e].options)}}function qt(i,s){if(1&i&&t._UZ(0,"cp-sql-config-boolean-editor",74),2&i){const e=t.oxw().$implicit;t.s9C("formControlName",e),t.Q6J("property",e)}}function Qt(i,s){if(1&i&&t._UZ(0,"textarea",75),2&i){const e=t.oxw().$implicit;t.s9C("formControlName",e),t.uIk("data-property",e)}}function Et(i,s){if(1&i&&t._UZ(0,"input",76),2&i){const e=t.oxw().$implicit;t.s9C("formControlName",e),t.uIk("data-property",e)}}function Dt(i,s){if(1&i&&(t.TgZ(0,"li",79),t._UZ(1,"i",80)(2,"span",81),t.qZA()),2&i){const e=s.$implicit,n=t.oxw(2).$implicit,o=t.oxw(4);t.xp6(2),t.Q6J("innerHTML",o.formControls[n].validationMessages[e],t.oJD)}}function Ft(i,s){if(1&i&&(t.TgZ(0,"ul",77),t.YNc(1,Dt,3,1,"li",78),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw(4);t.xp6(1),t.Q6J("ngForOf",n.formControls[e].getActiveErrorKeys())}}function Gt(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"div")(1,"div",50)(2,"div",51)(3,"div")(4,"label",52),t._uU(5),t.TgZ(6,"span",53),t._uU(7),t.qZA()(),t._uU(8,"   "),t.YNc(9,Zt,2,0,"a",54),t._UZ(10,"span",55),t.qZA(),t.TgZ(11,"cp-sql-config-setting-control-menu",56),t.NdJ("applyAction",(function(o){const r=t.CHM(e).$implicit,c=t.oxw(4);return t.KtG(c.handleSettingMenuAction(r,o))})),t.qZA()(),t.YNc(12,Vt,1,2,"div",57),t.ynx(13,58),t.YNc(14,Nt,1,2,"input",59),t.YNc(15,Lt,1,5,"cp-sql-config-integer-control",60),t.YNc(16,zt,2,3,"select",61),t.YNc(17,qt,1,2,"cp-sql-config-boolean-editor",62),t.YNc(18,Qt,1,2,"textarea",63),t.YNc(19,Et,1,2,"input",64),t.BQk(),t.YNc(20,Ft,2,1,"ul",65),t.qZA()()}if(2&i){const e=s.$implicit,n=t.oxw(4);t.xp6(4),t.MGl("for","prop_",e,""),t.xp6(1),t.hij("",n.formControls[e].fullName," "),t.xp6(2),t.hij("(",n.formControls[e].propertyName,")"),t.xp6(2),t.Q6J("ngIf",!n.showAllHelp),t.xp6(1),t.Q6J("innerHTML",n.locale.maketext("Expand"),t.oJD),t.xp6(1),t.Q6J("idPrefix",e)("configOptions",n.formControls[e].controlConfigs),t.xp6(1),t.Q6J("ngIf",n.showAllHelp||n.formControls[e].showHelp),t.xp6(1),t.Q6J("ngSwitch",n.formControls[e].inputType),t.xp6(1),t.Q6J("ngSwitchCase",n.inputType.decimal),t.xp6(1),t.Q6J("ngSwitchCase",n.inputType.integer),t.xp6(1),t.Q6J("ngSwitchCase",n.inputType.select),t.xp6(1),t.Q6J("ngSwitchCase",n.inputType.toggle),t.xp6(1),t.Q6J("ngSwitchCase",n.inputType.textArea),t.xp6(2),t.Q6J("ngIf",!n.formControls[e].valid)}}function Jt(i,s){if(1&i&&(t.TgZ(0,"div"),t._UZ(1,"a",49),t.YNc(2,Gt,21,15,"div",36),t.qZA()),2&i){const e=s.$implicit,n=t.oxw().$implicit;t.xp6(1),t.hYB("id","section-",n.name,"-",e.name,"")("cpSqlConfigScrollSpy","section-",n.name,"-",e.name,""),t.xp6(1),t.Q6J("ngForOf",e.settingNames)}}function Ut(i,s){if(1&i&&(t.TgZ(0,"div")(1,"div",41)(2,"h4",5),t._uU(3),t.qZA(),t._UZ(4,"a",49),t.qZA(),t.YNc(5,Jt,3,5,"div",36),t.qZA()),2&i){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(1),t.MGl("id","section-",e.name,"")("cpSqlConfigScrollSpy","section-",e.name,""),t.xp6(1),t.Q6J("ngForOf",e.subcategories)}}function Bt(i,s){1&i&&(t.TgZ(0,"span"),t._UZ(1,"i",82),t.qZA())}function Yt(i,s){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw(2);t.xp6(1),t.hij("",e.locale.maketext("Submit")," ")}}function Ht(i,s){if(1&i){const e=t.EpF();t.TgZ(0,"form",24,25)(2,"div",26)(3,"div",27)(4,"div",28),t._uU(5),t.qZA(),t.TgZ(6,"div",29)(7,"button",30),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw();return t.KtG(o.toggleShowAllHelp())})),t._uU(8),t._UZ(9,"i",31),t.qZA()(),t._UZ(10,"div",32),t.qZA(),t.TgZ(11,"div",33),t.YNc(12,At,12,3,"div",34),t.ALo(13,"async"),t.TgZ(14,"div",35),t.YNc(15,Ut,6,4,"div",36),t.qZA()(),t.TgZ(16,"div",37)(17,"div")(18,"button",38),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw();return t.KtG(o.submitForm())})),t.ALo(19,"async"),t.YNc(20,Bt,2,0,"span",18),t.YNc(21,Yt,2,1,"span",18),t.qZA(),t.TgZ(22,"button",39),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw();return t.KtG(o.revert())})),t.ALo(23,"async"),t._uU(24),t.qZA(),t.TgZ(25,"button",40),t.NdJ("click",(function(){t.CHM(e);const o=t.oxw();return t.KtG(o.restoreDefaults())})),t._uU(26),t.qZA()()()()()}if(2&i){const e=t.oxw();t.Q6J("formGroup",e.propertyEditors),t.xp6(5),t.hij(" ",e.locale.maketext("Configuration Settings for [_1][comment, The name of a database] [_2][comment, The version number of the database]",e.dbName,e.dbVersion)," "),t.xp6(3),t.hij(" ",e.toggleHelpLabel," "),t.xp6(4),t.Q6J("ngIf",t.lcZ(13,13,e.optimizationsAvailable$)),t.xp6(3),t.Q6J("ngForOf",e.categorizedSettings),t.xp6(3),t.s9C("title",e.locale.maketext("Click here to update your [asis,SQL] configuration.")),t.Q6J("disabled",e.confirmingSubmit||e.propertyEditors.invalid||t.lcZ(19,15,e.disableIfUnaltered$)),t.xp6(2),t.Q6J("ngIf",e.confirmingSubmit),t.xp6(1),t.Q6J("ngIf",!e.confirmingSubmit),t.xp6(1),t.Q6J("disabled",t.lcZ(23,17,e.disableIfUnaltered$)||e.savingConfig),t.xp6(2),t.hij(" ",e.locale.maketext("Undo Changes")," "),t.xp6(1),t.Q6J("disabled",e.savingConfig),t.xp6(1),t.hij(" ",e.locale.maketext("Restore System Defaults")," ")}}function Rt(i,s){if(1&i&&t._UZ(0,"i",91),2&i){const e=t.oxw(2);t.s9C("title",e.locale.maketext("Optimize"))}}function $t(i,s){if(1&i&&(t.TgZ(0,"span",92)(1,"span",10),t._uU(2),t.qZA(),t._uU(3),t.ALo(4,"configValue"),t.qZA()),2&i){const e=t.oxw().$implicit,n=t.oxw();t.xp6(2),t.Oqu(n.locale.maketext("Previous Value")),t.xp6(1),t.hij(" ",t.xi3(4,2,n.cachedOriginalSettings[e.propertyName],e.propertyType)," ")}}function jt(i,s){1&i&&t._UZ(0,"i",93)}function Kt(i,s){if(1&i&&(t.TgZ(0,"div",94)(1,"span",92),t._uU(2),t.qZA()()),2&i){const e=t.oxw().$implicit;t.xp6(2),t.Oqu(e.optimization.reason)}}function Xt(i,s){if(1&i&&(t.TgZ(0,"li",83)(1,"span",84),t.YNc(2,Rt,1,1,"i",85),t._uU(3),t.TgZ(4,"span",53),t._uU(5),t.qZA()(),t.TgZ(6,"div",86),t.YNc(7,$t,5,5,"span",87),t.YNc(8,jt,1,0,"i",88),t.TgZ(9,"span",89)(10,"span",10),t._uU(11),t.qZA(),t._uU(12),t.ALo(13,"configValue"),t.qZA()(),t.YNc(14,Kt,3,1,"div",90),t.qZA()),2&i){const e=s.$implicit,n=t.oxw();t.Q6J("ngClass",n.showingConfirmDetails?"flex-col":"flex-row"),t.xp6(2),t.Q6J("ngIf",e.isOptimized),t.xp6(1),t.hij(" ",e.fullName," "),t.xp6(2),t.hij("(",e.propertyName,")"),t.xp6(2),t.Q6J("ngIf",n.showingConfirmDetails),t.xp6(1),t.Q6J("ngIf",n.showingConfirmDetails),t.xp6(3),t.Oqu(n.locale.maketext("New Value")),t.xp6(1),t.hij(" ",t.xi3(13,9,e.value,e.propertyType)," "),t.xp6(2),t.Q6J("ngIf",n.showingConfirmDetails&&e.isOptimized)}}function Wt(i,s){if(1&i&&(t.TgZ(0,"cp-callout",95),t._uU(1),t.qZA()),2&i){const e=s.$implicit;t.xp6(1),t.Oqu(e)}}function te(i,s){1&i&&t._UZ(0,"i",96)}function ee(i,s){if(1&i&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&i){const e=t.oxw();t.xp6(1),t.Oqu(e.locale.maketext("Save Changes"))}}const ne=[{path:"globals",component:(()=>{class i{constructor(e,n,o,a,r,c,f){this.fb=e,this.alertService=n,this.errorMsgSvc=o,this.settingCategoryService=a,this.optimizationService=r,this.locale=c,this.settingsService=f,this.inputType=u,this.decimalKeys=["0","1","2","3","4","5","6","7","8","9","."],this.confirmingSubmit=!1,this.savingConfig=!1,this.showingConfirmDetails=!0,this.applyingOptimizations=!1,this.settingNames=[],this.dbVersion=z.long,this.showAllHelp=!1,this.showAllHelpLabel="",this.hideAllHelpLabel="",this.restartSQLServerButtonLabel="",this.cachedOriginalSettings={},this.dBIsRunning=$,this.dBIsRemote=j,this.confirmationNotes=new Set,this.setLabels(),this.initializeControls(),this.settingNames=Object.keys(T),this.categorizedSettings=this.settingCategoryService.getCategorizedSettingList(),this.dbName=this.settingsService.dbName,this.optimizationsAvailable$=this.optimizationService.checkOptimizationsExist()}setLabels(){this.showAllHelpLabel=this.locale.maketext("Show Help Text"),this.hideAllHelpLabel=this.locale.maketext("Hide Help Text"),this.toggleHelpLabel=this.showAllHelpLabel,this.restartSQLServerButtonLabel=this.locale.maketext("Restart [asis,SQL] Server")}initializeControls(){if(this.propertyEditors=this.fb.group({}),this.formControls=this.propertyEditors.controls,this.dBIsRunning&&!this.dBIsRemote){const e=this.settingsService.getControls();for(const n of e){const o=n;this.propertyEditors.addControl(o.propertyName,o),this.cachedOriginalSettings[o.propertyName]=o.value,o.updateValueAndValidity();const a=o.validation,r="/"+a.pattern+"/"+a.flags;a.message&&this.errorMsgSvc.addPatternMessage(r,a.message),o.addValidationMessage("pattern",this.errorMsgSvc.getPatternMessage(r))}}this.disableIfUnaltered$=this.propertyEditors.valueChanges.pipe((0,ot.O)(!0),(0,C.U)((e=>{for(const n of Object.keys(e)){const o=this.getExtendedControl(n);if(!o.pristine&&o.hasValueChanged())return!1}return!0})),(0,Q.d)({bufferSize:1,refCount:!0}))}ngOnDestroy(){this.saveSubscription&&this.saveSubscription.unsubscribe()}getInitialValue(e){return this.cachedOriginalSettings[e]}toggleShowAllHelp(){if(this.showAllHelp=!this.showAllHelp,!this.showAllHelp){const e=Object.keys(this.propertyEditors.controls);for(const n of e)this.propertyEditors.controls[n].showHelp=!1}this.toggleHelpLabel=this.showAllHelp?this.hideAllHelpLabel:this.showAllHelpLabel}toggleHelpFor(e){const n=this.getExtendedControl(e);n.showHelp=!n.showHelp}getExtendedControl(e){return this.propertyEditors.controls[e]}addConfirmationNotesForControl(e){if(e.isOptimized&&this.confirmationNotes.add(this.locale.maketext("Optimizations are general suggestions and may not result in increased database performance for all use cases.")),e.inputType===u.bytes){const n=d.getBytes(e.value.toString()),o=d.getBytes(e.initialValue.toString());n===o&&this.confirmationNotes.add(this.locale.maketext("[_1] and [_2] are both equivalent to [quant,_3,byte,bytes].",e.value,e.initialValue,o))}}submitForm(){this.updatedControls=[];for(const e of Object.keys(this.propertyEditors.controls)){const n=this.getExtendedControl(e);n.dirty&&n.hasValueChanged()&&(this.updatedControls.push(n),this.addConfirmationNotesForControl(n))}this.confirmingSubmit=!0}cancelSubmit(){this.applyingOptimizations&&(this.revert({hideAlert:!0}),this.applyingOptimizations=!1),this.confirmationNotes.clear(),this.confirmingSubmit=!1}updateConfig(){this.savingConfig=!0,this.saveSubscription=this.settingsService.save(this.updatedControls).subscribe((e=>{e.status?(this.alertService.success(this.locale.maketext("Your configuration changes have been successfully saved.")),this.refreshSQLConfigData()):this.alertService.error(e.meta.properties.reason)}),(e=>{this.alertService.error(e),this.confirmingSubmit=!1,this.savingConfig=!1}),(()=>{this.propertyEditors.markAsPristine(),this.propertyEditors.updateValueAndValidity(),this.confirmingSubmit=!1,this.savingConfig=!1}))}refreshSQLConfigData(){window.location.reload()}revert(e={}){for(const n of this.settingNames){const o=this.getExtendedControl(n),a=this.cachedOriginalSettings[n];o.value!==a&&(o.setValue(a,{emitEvent:!0}),o.markAsPristine(),o.updateValueAndValidity())}e.hideAlert||this.alertService.success(this.locale.maketext("The form has been reset to the last saved value for each property."))}restoreDefaults(){this.revert({hideAlert:!0});const e=this.propertyEditors;let n=!1;for(const o of this.settingNames){const a=e.controls[o],r=e.value[o].toString(),c=a.defaultValue.toString();r!==c&&(n=!0,a.setValue(c),a.markAsDirty())}n?(this.propertyEditors.updateValueAndValidity(),this.submitForm()):this.alertService.info(this.locale.maketext("All settings are already at their default values."))}applyOptimizations(){this.applyingOptimizations=!0,this.revert({hideAlert:!0});for(const e of this.settingNames){const n=this.getExtendedControl(e);n.optimization&&(n.setValue(n.optimization.value,{emitEvent:!0}),n.markAsDirty(),n.updateValueAndValidity())}this.submitForm()}keyPressNumbersOrDecimal(e){return this.decimalKeys.indexOf(e.key)>=0||(e.preventDefault(),!1)}reloadPage(){window.location.reload()}restartSQLServer(){const e=I.split("/");window.location.assign("/"+e[1]+"/scripts/resmysql")}handleSettingMenuAction(e,n){const o=this.formControls[e];switch(n){case g.undo:o.setValue(this.getInitialValue(e)),o.markAsPristine();break;case g.reset:o.setValue(o.defaultValue),o.markAsDirty();break;case g.optimize:o.setValue(o.optimization.value),o.markAsDirty()}o.updateValueAndValidity()}}return i.ɵfac=function(e){return new(e||i)(t.Y36(p.QS),t.Y36(h.c9),t.Y36(q),t.Y36(D),t.Y36(E),t.Y36(_.g),t.Y36(it))},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-sql-globals"]],decls:24,vars:15,consts:[["id","dbnotrunningcallout","calloutType","danger","role","alert",4,"ngIf"],["id","dbremotecallout","calloutType","danger","role","alert",4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"show","dismissModal"],["modalHeader","",1,"confirm-modal-header"],[1,"widget-title"],["modalBody","",1,"confirm-modal-body"],[1,"flex-row"],["type","button",1,"btn","icon-btn",3,"tooltip","click"],["aria-hidden","true",1,"ri-lg",3,"ngClass"],[1,"sr-only"],[1,"list-group"],["class","list-group-item",3,"ngClass",4,"ngFor","ngForOf"],["id","confirmation-note","calloutType","info",4,"ngFor","ngForOf"],["modalFooter","",1,"pull-right","flip"],["type","button",1,"btn","btn-link",3,"click"],["type","button",1,"btn","btn-primary",3,"disabled","click"],["aria-hidden","true","class","fas fa-sync fa-spin",4,"ngIf"],[4,"ngIf"],["id","dbnotrunningcallout","calloutType","danger","role","alert"],[1,"callout-heading",3,"innerHTML"],[3,"innerHTML"],["type","button",1,"btn","btn-primary",3,"innerHTML","click"],["id","dbremotecallout","calloutType","danger","role","alert"],[3,"formGroup"],["globalsForm","ngForm"],[1,"panel","panel-default"],[1,"panel-heading"],[1,"widget-title","pull-left","flip"],[1,"pull-right","flip"],["type","button","id","sqlConfigShowHideHelp","tabindex","1","autofocus","",1,"btn","btn-default","btn-xs",3,"click"],["aria-hidden","true",1,"far","fa-question-circle","form-info-sign"],[1,"clearfix"],[1,"panel-body"],["class","row",4,"ngIf"],[1,"col-xs-12","editor-group"],[4,"ngFor","ngForOf"],[1,"panel-footer"],["id","btnSaveConfig","type","button",1,"btn","btn-primary",3,"disabled","title","click"],["id","btnRevertEdits","type","button",1,"btn","btn-link",3,"disabled","click"],["id","btnRevertToDefaults","type","button",1,"btn","btn-default","flip",3,"disabled","click"],[1,"row"],["id","optimize-section",1,"optimize-db"],[1,"col-md-8","col-xl-9"],[1,"widget-title","no-top"],["type","button","id","review-suggestions",1,"btn","btn-primary","optimize-button",3,"click"],[1,"ri-lg","ri-dashboard-3-line"],[1,"col-md-4","col-xl-3","graphic-wrapper","hidden-xs","hidden-sm"],[1,"optimize-graphic"],["aria-hidden","true",1,"scroll-anchor",3,"id","cpSqlConfigScrollSpy"],[1,"row","big-bottom"],[1,"toggle-info-label-container"],[1,"form-label",3,"for"],[1,"sub-label"],["href","javascript:void(0)","tabindex","-1","class","text-primary form-info-sign",3,"click",4,"ngIf"],[1,"sr-only",3,"innerHTML"],[3,"idPrefix","configOptions","applyAction"],["class","helpText",3,"id","innerHTML",4,"ngIf"],[3,"ngSwitch"],["class","form-control decimal-editor","type","text",3,"formControlName","keypress",4,"ngSwitchCase"],[3,"formControlName","idSuffix","minValue","maxValue",4,"ngSwitchCase"],["class","form-control options-field",3,"formControlName",4,"ngSwitchCase"],[3,"property","formControlName",4,"ngSwitchCase"],["class","form-control",3,"formControlName",4,"ngSwitchCase"],["type","text","class","form-control",3,"formControlName",4,"ngSwitchDefault"],["class","validation-container",4,"ngIf"],["href","javascript:void(0)","tabindex","-1",1,"text-primary","form-info-sign",3,"click"],["aria-hidden","true",1,"far","fa-question-circle","text-primary"],[1,"helpText",3,"id","innerHTML"],["type","text",1,"form-control","decimal-editor",3,"formControlName","keypress"],[3,"formControlName","idSuffix","minValue","maxValue"],[1,"form-control","options-field",3,"formControlName"],[3,"ngValue",4,"ngFor","ngForOf"],[3,"ngValue"],[3,"property","formControlName"],[1,"form-control",3,"formControlName"],["type","text",1,"form-control",3,"formControlName"],[1,"validation-container"],["class","validation validation-error",4,"ngFor","ngForOf"],[1,"validation","validation-error"],["aria-hidden","true",1,"fas","fa-exclamation-circle"],[1,"validation-message",3,"innerHTML"],[1,"fas","fa-sync","fa-spin"],[1,"list-group-item",3,"ngClass"],[1,"confirm-list-label"],["class","ri-dashboard-3-line",3,"title",4,"ngIf"],[1,"confirm-list-values"],["class","detail-text",4,"ngIf"],["class","ri-arrow-right-line ri-lg arrow-icon","aria-hidden","true",4,"ngIf"],[1,"confirm-value-new"],["class","confirm-list-reason",4,"ngIf"],[1,"ri-dashboard-3-line",3,"title"],[1,"detail-text"],["aria-hidden","true",1,"ri-arrow-right-line","ri-lg","arrow-icon"],[1,"confirm-list-reason"],["id","confirmation-note","calloutType","info"],["aria-hidden","true",1,"fas","fa-sync","fa-spin"]],template:function(e,n){1&e&&(t.YNc(0,Tt,6,4,"cp-callout",0),t.YNc(1,kt,4,3,"cp-callout",1),t.YNc(2,Ht,27,19,"form",2),t.TgZ(3,"cp-sql-config-modal",3),t.NdJ("dismissModal",(function(){return n.cancelSubmit()})),t.TgZ(4,"div",4)(5,"h1",5),t._uU(6),t.qZA()(),t.TgZ(7,"div",6)(8,"div",7)(9,"span"),t._uU(10),t.qZA(),t.TgZ(11,"button",8),t.NdJ("click",(function(){return n.showingConfirmDetails=!n.showingConfirmDetails})),t._UZ(12,"i",9),t.TgZ(13,"span",10),t._uU(14),t.qZA()()(),t.TgZ(15,"ul",11),t.YNc(16,Xt,15,12,"li",12),t.qZA(),t.YNc(17,Wt,2,1,"cp-callout",13),t.qZA(),t.TgZ(18,"div",14)(19,"button",15),t.NdJ("click",(function(){return n.cancelSubmit()})),t._uU(20),t.qZA(),t.TgZ(21,"button",16),t.NdJ("click",(function(){return n.updateConfig()})),t.YNc(22,te,1,0,"i",17),t.YNc(23,ee,2,1,"span",18),t.qZA()()()),2&e&&(t.Q6J("ngIf",!n.dBIsRunning&&!n.dBIsRemote),t.xp6(1),t.Q6J("ngIf",n.dBIsRemote),t.xp6(1),t.Q6J("ngIf",n.dBIsRunning&&!n.dBIsRemote),t.xp6(1),t.Q6J("show",n.confirmingSubmit),t.xp6(3),t.Oqu(n.locale.maketext("Confirm Changes")),t.xp6(4),t.Oqu(n.locale.maketext("Confirm the following changes:")),t.xp6(1),t.Q6J("tooltip",n.locale.maketext("View Details")),t.xp6(1),t.Q6J("ngClass",n.showingConfirmDetails?"ri-eye-line":"ri-eye-off-line"),t.xp6(2),t.Oqu(n.locale.maketext("View Details")),t.xp6(2),t.Q6J("ngForOf",n.updatedControls),t.xp6(1),t.Q6J("ngForOf",n.confirmationNotes),t.xp6(3),t.hij(" ",n.locale.maketext("Continue Editing")," "),t.xp6(1),t.Q6J("disabled",n.savingConfig),t.xp6(1),t.Q6J("ngIf",n.savingConfig),t.xp6(1),t.Q6J("ngIf",!n.savingConfig))},dependencies:[m.mk,m.sg,m.O5,m.RF,m.n9,m.ED,h.Oc,p._Y,p.YN,p.Kr,p.Fj,p.EJ,p.JJ,p.JL,p.sg,p.u,L.i9,st,dt,ht,Ct,vt,wt,m.Ov,U],styles:["@media screen and (max-width: 462px){#btnRevertToDefaults[_ngcontent-%COMP%]{margin-top:var(--cp-spacer-2)}}@media screen and (min-width: 462px){html[dir=ltr][_ngcontent-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%]{float:right}html[dir=rtl][_ngcontent-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   #btnRevertToDefaults[_ngcontent-%COMP%]{float:left}}.sub-label[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic}.big-bottom[_ngcontent-%COMP%]{padding-bottom:var(--cp-spacer-4)}.no-top[_ngcontent-%COMP%]{padding-top:0;margin-top:0}.panel-body[_ngcontent-%COMP%], .editor-group[_ngcontent-%COMP%]{padding-left:var(--cp-spacer-3);padding-right:var(--cp-spacer-3)}.helpText[_ngcontent-%COMP%]{padding-bottom:var(--cp-spacer-2)}.optimize-db[_ngcontent-%COMP%]{display:flex;align-items:center}.optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}html[dir=ltr][_ngcontent-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:var(--cp-spacer-1)}html[dir=rtl][_ngcontent-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .optimize-db[_ngcontent-%COMP%]   .optimize-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-left:var(--cp-spacer-1)}.optimize-db[_ngcontent-%COMP%]   .optimize-graphic[_ngcontent-%COMP%]{width:100%}.toggle-container[_ngcontent-%COMP%]{padding-left:var(--cp-spacer-1);padding-right:var(--cp-spacer-1)}.validation-container[_ngcontent-%COMP%]{background-color:#f8c9c4;border:1px solid #a94442;padding:var(--cp-spacer-1);border-radius:2px;list-style:none;margin-bottom:0;margin-top:var(--cp-spacer-1)}.validation-error[_ngcontent-%COMP%]{position:relative;line-height:20px}.validation-error[_ngcontent-%COMP%] > .fas[_ngcontent-%COMP%]{color:#a94442;display:inline-block;position:absolute;top:4px}.validation-message[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle}html[dir=ltr][_ngcontent-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=ltr][_ngcontent-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], html[dir=ltr][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], html[dir=ltr]   [_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=ltr][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=ltr]   [_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%]{margin-left:20px}html[dir=rtl][_ngcontent-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=rtl][_ngcontent-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], html[dir=rtl][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], html[dir=rtl]   [_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=rtl][_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .validation-message[_ngcontent-%COMP%]{margin-right:20px}.row[_ngcontent-%COMP%] > .toggle-info-label-container[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] > .integer-editor[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] > cp-sql-config-boolean-editor[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] > cp-sql-config-integer-control[_ngcontent-%COMP%], .row[_ngcontent-%COMP%] > .helpText[_ngcontent-%COMP%]{padding-right:0;padding-left:0}.toggle-info-label-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}html[dir=ltr][_ngcontent-%COMP%]   .toggle-info-label-container[_ngcontent-%COMP%]{flex-direction:row}html[dir=rtl][_ngcontent-%COMP%]   .toggle-info-label-container[_ngcontent-%COMP%]{flex-direction:row-reverse}select.form-control[_ngcontent-%COMP%]{appearance:revert}.confirm-modal-header[_ngcontent-%COMP%]{display:flex;justify-content:center}.confirm-modal-body[_ngcontent-%COMP%]{width:800px;max-width:100%;margin:auto}.confirm-modal-body[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.confirm-modal-body[_ngcontent-%COMP%]   .flex-row[_ngcontent-%COMP%]   .confirm-list-values[_ngcontent-%COMP%]{max-width:50%;word-wrap:break-word}.confirm-modal-body[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.confirm-modal-body[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   .confirm-list-values[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;margin-top:var(--cp-spacer-1)}.confirm-modal-body[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   .confirm-list-values[_ngcontent-%COMP%]   .arrow-icon[_ngcontent-%COMP%]{margin:0 var(--cp-spacer-3)}.confirm-modal-body[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   .confirm-list-values[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{word-wrap:break-word;max-width:40%}.confirm-modal-body[_ngcontent-%COMP%]   .flex-col[_ngcontent-%COMP%]   .confirm-list-reason[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;margin-top:var(--cp-spacer-1);max-width:70%}.confirm-modal-body[_ngcontent-%COMP%]   .icon-btn[_ngcontent-%COMP%]{background-color:#f7f8fa}.confirm-modal-body[_ngcontent-%COMP%]   .list-group[_ngcontent-%COMP%]{max-height:40vh;overflow-y:scroll}.confirm-modal-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]{padding:var(--cp-spacer-3)}.confirm-modal-body[_ngcontent-%COMP%]   .list-group-item[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid #e6e9ef}.confirm-modal-body[_ngcontent-%COMP%]   .confirm-list-label[_ngcontent-%COMP%]{font-weight:700}.confirm-modal-body[_ngcontent-%COMP%]   .confirm-list-label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{vertical-align:bottom}.confirm-modal-body[_ngcontent-%COMP%]   .detail-text[_ngcontent-%COMP%]{font-weight:lighter;font-style:italic}"]}),i})(),data:{showResourcePanel:!0},runGuardsAndResolvers:"always"},{path:"**",redirectTo:"globals",pathMatch:"full"}];let ie=(()=>{class i{}return i.ɵfac=function(e){return new(e||i)},i.ɵmod=t.oAB({type:i}),i.ɵinj=t.cJS({imports:[S.Bz.forRoot(ne,{anchorScrolling:"enabled",onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"}),S.Bz]}),i})();var oe=l(1607),se=l(2502);let ae=(()=>{class i{constructor(e){this.scrollSpyService=e,this.hasClassActive=!1,this.activeEvent=new t.vpe}ngOnDestroy(){this.subscriber&&this.subscriber.unsubscribe()}ngAfterViewInit(){this.subscriber=this.scrollSpyService.observe().subscribe((e=>{let n=!1;null!=e&&(n=e.id===this.itemId,this.activeEvent.emit(n)),this.hasClassActive=n}))}}return i.ɵfac=function(e){return new(e||i)(t.Y36(Z))},i.ɵdir=t.lG2({type:i,selectors:[["","cpSqlConfigScrollItem",""]],hostVars:2,hostBindings:function(e,n){2&e&&t.ekj("active",n.hasClassActive)},inputs:{itemId:["cpSqlConfigScrollItem","itemId"]},outputs:{activeEvent:"activeEvent"}}),i})();function re(i,s){if(1&i&&(t.TgZ(0,"div",3)(1,"div",4),t._UZ(2,"p",12),t.qZA()()),2&i){const e=t.oxw();t.xp6(2),t.Q6J("innerHTML",e.description,t.oJD)}}function le(i,s){1&i&&t.GkF(0)}function ce(i,s){1&i&&t.GkF(0)}const B=function(){return["/"]};function pe(i,s){if(1&i&&(t.TgZ(0,"li",31)(1,"a",32),t._uU(2),t.qZA()()),2&i){const e=s.$implicit,n=t.oxw().$implicit;t.xp6(1),t.hYB("cpSqlConfigScrollItem","section-",n.name,"-",e.name,"")("fragment","section-",n.name,"-",e.name,""),t.Q6J("routerLink",t.DdM(6,B)),t.xp6(1),t.hij(" ",e.label," ")}}function de(i,s){if(1&i&&(t.TgZ(0,"li",31)(1,"a",32),t._uU(2),t.qZA(),t.TgZ(3,"ul",15),t.YNc(4,pe,3,7,"li",16),t.qZA()()),2&i){const e=s.$implicit;t.xp6(1),t.MGl("cpSqlConfigScrollItem","section-",e.name,"")("fragment","section-",e.name,""),t.Q6J("routerLink",t.DdM(5,B)),t.xp6(1),t.hij(" ",e.label," "),t.xp6(2),t.Q6J("ngForOf",e.subcategories)}}function me(i,s){if(1&i&&(t.TgZ(0,"section",13)(1,"h3",14),t._uU(2,"Form Sections"),t.qZA(),t.TgZ(3,"nav")(4,"ul",15),t.YNc(5,de,5,6,"li",16),t.qZA()()(),t.TgZ(6,"section",17)(7,"h3",14),t._uU(8),t.qZA(),t.TgZ(9,"ul",18)(10,"li")(11,"a",19),t._UZ(12,"i",20),t.TgZ(13,"span"),t._uU(14),t.qZA()()(),t.TgZ(15,"li")(16,"a",21),t._UZ(17,"i",22),t.TgZ(18,"span"),t._uU(19),t.qZA()()(),t.TgZ(20,"li")(21,"a",23),t._UZ(22,"i",24),t.TgZ(23,"span"),t._uU(24),t.qZA()()()()(),t.TgZ(25,"section",25)(26,"h3",14),t._uU(27),t.qZA(),t.TgZ(28,"ul",18)(29,"li")(30,"a",26),t._UZ(31,"i",27),t.TgZ(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"li")(35,"a",28),t._UZ(36,"i",29),t.TgZ(37,"span"),t._uU(38),t.qZA()()(),t.TgZ(39,"li")(40,"a",30),t._UZ(41,"i",29),t.TgZ(42,"span"),t._uU(43),t.qZA()()()()()),2&i){const e=t.oxw();t.xp6(5),t.Q6J("ngForOf",e.formSections),t.xp6(3),t.Oqu(e.locale.maketext("I want to …")),t.xp6(6),t.Oqu(e.locale.maketext("Upgrade my database[comment,link title and label]")),t.xp6(5),t.Oqu(e.locale.maketext("Use [asis,PHPMyAdmin]")),t.xp6(5),t.Oqu(e.locale.maketext("Improve this interface")),t.xp6(3),t.Oqu(e.locale.maketext("Need Help?")),t.xp6(3),t.s9C("title",e.locale.maketext("Need help? Click here to read more about this interface.")),t.xp6(3),t.Oqu(e.locale.maketext("About this interface")),t.xp6(2),t.s9C("title",e.locale.maketext("Need help with [asis,MySQL]? Click here to consult the [asis,MySQL] system variables reference.")),t.xp6(3),t.Oqu(e.locale.maketext("[asis,MySQL] system variables reference[comment,link title and label]")),t.xp6(2),t.s9C("title",e.locale.maketext("Need help with [asis,MariaDB]? Click here to consult the [asis,MariaDB] system variables reference.")),t.xp6(3),t.Oqu(e.locale.maketext("[asis,MariaDB] system variables reference[comment,link title and label]"))}}let ge=(()=>{class i{constructor(e,n,o){this.locale=e,this.scrollSpyService=n,this.settingCategoryService=o,this.title="",this.description="",(0,oe.Dc)("bs3"),se.uZ.locale=this.locale,this.assignLocaleStrings()}ngOnInit(){this.getFormSections(),this.scrollSpyService.setOffset(-250)}getFormSections(){this.formSections=this.settingCategoryService.getCategorizedSettingList()}assignLocaleStrings(){const e=this.locale.maketext("This tool allows you to make changes to your [asis,MariaDB] or [asis,MySQL] configuration. Modifications made here will prompt a [asis,MariaDB] or [asis,MySQL] service restart."),n=this.locale.maketext("Does this interface meet your needs? Share feedback by completing a [output,url,_1,brief survey,class,externalLink,target,_2].","https://go.cpanel.net/SQLConfigFeedback","sql_survey");this.title=this.locale.maketext("Edit [asis,SQL] Configuration"),this.description=`${e} ${n}`}}return i.ɵfac=function(e){return new(e||i)(t.Y36(_.g),t.Y36(Z),t.Y36(D))},i.ɵcmp=t.Xpm({type:i,selectors:[["cp-sql-config-root"]],decls:16,vars:3,consts:[["position","top-right"],["id","content"],["class","row",4,"ngIf"],[1,"row"],[1,"col-xs-12","col-lg-10"],[1,"col-md-4","hidden-xs","hidden-sm","pull-right","sticky-resource-panel"],[1,"section"],[4,"ngTemplateOutlet"],[1,"col-xs-12","col-sm-12","col-md-8","pull-left"],["id","viewContent",1,"ng-cloak","section","animate-view"],[1,"col-xs-12","hidden-lg","hidden-md"],["resourceTemplate",""],[1,"description",3,"innerHTML"],[1,"widget","hidden-xs","hidden-sm"],[1,"widget-title"],[1,"scroll-spy-list"],["class","scroll-spy-list-item",4,"ngFor","ngForOf"],["id","resourcePanel",1,"widget"],[1,"resource-link-list"],["id","upgradedb","href","../../scripts/mysqlupgrade"],["aria-hidden","true",1,"fas","fa-database"],["id","usePhpMyAdmin","href","../../3rdparty/phpMyAdmin/index.php","target","_blank"],["aria-hidden","true",1,"fab","fa-php"],["id","givefeedback","href","https://go.cpanel.net/SQLConfigFeedback","target","sql_survey"],["aria-hidden","true",1,"fas","fa-comment"],[1,"widget"],["href","https://go.cpanel.net/whmdocsEditDBConfig","id","linkAboutTheInterface","target","whm_documentation",3,"title"],["aria-hidden","true",1,"fas","fa-fw","fa-external-link-alt"],["href","https://dev.mysql.com/doc/refman/5.7/en/server-system-variable-reference.html","id","linkMySQLDocs","target","_blank",3,"title"],["aria-hidden","true",1,"fas","fa-book"],["href","https://mariadb.com/kb/en/server-system-variables/","id","linkMariaDBDocs","target","_blank",3,"title"],[1,"scroll-spy-list-item"],[3,"cpSqlConfigScrollItem","routerLink","fragment"]],template:function(e,n){if(1&e&&(t._UZ(0,"cp-alert-list",0),t.TgZ(1,"div",1)(2,"div"),t.YNc(3,re,3,1,"div",2),t.TgZ(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),t.YNc(8,le,1,0,"ng-container",7),t.qZA()(),t.TgZ(9,"div",8),t._UZ(10,"router-outlet",9),t.qZA(),t.TgZ(11,"div",10)(12,"div",6),t.YNc(13,ce,1,0,"ng-container",7),t.qZA()()()()()(),t.YNc(14,me,44,12,"ng-template",null,11,t.W1O)),2&e){const o=t.MAs(15);t.xp6(3),t.Q6J("ngIf",n.description),t.xp6(5),t.Q6J("ngTemplateOutlet",o),t.xp6(5),t.Q6J("ngTemplateOutlet",o)}},dependencies:[m.sg,m.O5,m.tP,S.lC,S.yS,h.hF,ae],encapsulation:2}),i})();var ue=l(348);let fe=(()=>{class i{}return i.ɵfac=function(e){return new(e||i)},i.ɵmod=t.oAB({type:i,bootstrap:[ge]}),i.ɵinj=t.cJS({providers:[{provide:m.mr,useValue:I},{provide:Window,useValue:window}],imports:[M.b2,Y.PW,ie,ue.m,m.ez,h.df,k.au,p.u5,p.UX,h.Op,h.CQ,O.mr.forRoot(),N.zk.forRoot(),L.z8.forRoot()]}),i})();(0,t.G48)(),M.q6().bootstrapModule(fe).catch((i=>console.error(i)))}},y=>{y.O(0,[736],(()=>y(y.s=9778))),y.O()}]);
Back to Directory File Manager