Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/wh-sql-config/main.446be182674454aa.js

"use strict";(self.webpackChunkwh_sql_config=self.webpackChunkwh_sql_config||[]).push([[792],{1404:(M,E,l)=>{var S=l(345),t=l(3953),X=l(728),d=l(177),g=l(9490),O=l(8580),F=l(779),G=l(534);const I=window?.PAGE?.base??"",H=(window,window,window,window?.PAGE?.initial_settings??{}),w=window?.PAGE?.default_settings??{},$=window?.PAGE?.db_version??{},q=window?.PAGE?.is_mariadb??!1,U=window?.PAGE?.is_database_running??!1,K=window?.PAGE?.is_remote??!1;var x=l(4104),f=l(6381),J=l(6802),P=l(949),p=l(4341),u=function(i){return i[i.undo=0]="undo",i[i.optimize=1]="optimize",i[i.reset=2]="reset",i}(u||{}),_=function(i){return i[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",i}(_||{});class Z extends p.hs{constructor(a,e,n,o,s,r,c){super(),this.showHelp=!1,this.options=[],this.section="mysqld",this.validationMessages={},this.propertyType=a,this.propertyName=e,this.friendlyName=o??"",this.description=s??"",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(a,e){this.validationMessages[a]=e}getErrorKeys(){return Object.keys(this.validationMessages)}getActiveErrorKeys(){return this.errors?Object.keys(this.errors):[]}toggleShowHelp(){this.showHelp=!this.showHelp}setValue(a,e={}){super.setValue(a,e),this.updateControlConfigs(),this.isOptimized=a===this.optimization?.value}updateControlConfigs(){const a=[],e={type:u.undo,isDisabled:!this.hasOwnProperty("initialValue")||this.value?.toString()===this.initialValue?.toString()};a.push(e);const n={type:u.reset,isDisabled:this.value?.toString()===this.defaultValue?.toString(),applyValue:{value:this.defaultValue,dataType:this.propertyType}};a.push(n);const o={type:u.optimize,isDisabled:!this.optimization||this.value?.toString()===this.optimization.value.toString(),applyValue:{value:this.optimization?.value,dataType:this.propertyType},description:this.optimization?.reason};a.push(o),this.controlConfigs=a}hasValueChanged(){return this.value?.toString()!==this.initialValue?.toString()}}var W=l(1594);let j=(()=>{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)}static#t=this.\u0275fac=function(n){return new(n||i)(t.KVO(f.h))};static#e=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();class m{static#t=this.pattern=new RegExp("^(([1-9][0-9]*)|0)[KMGTPE]?$","i");constructor(){}static isSafeNumber(a){return a>=Number.MIN_SAFE_INTEGER&&a<=Number.MAX_SAFE_INTEGER}static getBytes(a){if(!this.pattern.test(a))throw new Error(`Invalid bytes argument: ${a}. The argument must be valid against ${m.pattern}`);a=a.toString();const e=a.match(/^[0-9]*/)?.[0],n=BigInt(e),s=a.match(/[KMGTPE]/i)?.[0].toUpperCase();let r;switch(s){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}static#e=this.\u0275fac=function(e){return new(e||m)};static#n=this.\u0275prov=t.jDH({token:m,factory:m.\u0275fac,providedIn:"root"})}const tt=i=>a=>{const e=a.value;if(null==e||""===e||!m.pattern.test(e))return null;if("number"==typeof i&&!m.isSafeNumber(i))throw new Error(`${i} is not a safe 'number'. Use 'bigint' or 'string'.`);const n=BigInt(m.getBytes(a.value)),o=BigInt(i);return n<=o?null:{maxBytes:{value:o}}},et=i=>a=>{const e=a.value;if(null==e||""===e||!m.pattern.test(e))return null;if("number"==typeof i&&!m.isSafeNumber(i))throw new Error(`${i} is not a safe 'number'. Use 'bigint' or 'string'.`);const n=m.getBytes(a.value),o=BigInt(i);return n>=o?null:{minBytes:{value:o}}};var C=l(6354),N=l(253),T=l(5260);let D=(()=>{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.T)(e=>e?.length>0))}getOptimizationForSetting(e){return this.optimizations$||this.getOptimizationsFromApi(),this.optimizations$.pipe((0,C.T)(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.m(P.R.JsonApi,{method:"get_database_optimizations"});this.optimizations$=this.apiClient.post(o).pipe((0,C.T)(s=>{if(s.success)return Object.values(s.data.payload);n.test(s.meta.properties.reason)?this.alertService.error(e):this.alertService.error(s.meta.properties.reason)}),(0,N.t)(1))}static#t=this.\u0275fac=function(n){return new(n||i)(t.KVO(T.gB),t.KVO(g.uE),t.KVO(f.h))};static#e=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),it=(()=>{class i{constructor(e,n,o,s){this.apiClient=e,this.locale=n,this.errorMsgs=o,this.optimizationService=s,this.initialValues={},this.defaultValues={},this.controls=[],this.defaultKeys=[],this.initialKeys=[],this.dbName=q?"MariaDB":"MySQL",this.dbVersion=$.full}setupValuesAndKeys(){this.initialValues=H.mysqld,this.defaultValues=w,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 Z(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,s=[];if("number"===n.propertyType&&n.hasOwnProperty("min"))if("bytes"===n.validation.type){s.push(et(n.min));const c=m.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 s.push(p.k0.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){s.push(tt(n.max));const c=m.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 s.push(p.k0.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);s.push(p.k0.pattern(c));const h=c.toString();n.addValidationMessage("pattern",this.errorMsgs.getPatternMessage(h)),"/^[^\\0]+$/"===h&&(s.push(e=>{const n=e.value;if(null==n||""===n)return null;const o=new Blob([n]).size;let s=!0,r=!0;n.includes("/")?(s=o<=4096,r=n.split("/").every(h=>new Blob([h]).size<=255)):r=o<=255;const c={};return s||(c.maxFilePathByteSize=4096),r||(c.maxFileNameByteSize=255),s&&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?(s.push(p.k0.required),n.addValidationMessage("required",this.locale.maketext("This is a required field and must be an integer."))):(s.push(p.k0.required),n.addValidationMessage("required",this.locale.maketext("This field is required.")))),s.length>0&&n.setValidators(s),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.$)()).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 s={};s.name=o.propertyName,s.value=o.value,s.section=o.section,n.push(s)}return n}save(e){const n=[];n.push(new J.e("data",this.filterControlsForSaving(e)));const o=new P.m(P.R.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 _.toggle;if("select"===n)return _.select;if("long_text"===n)return _.textArea;if("number"===n)switch(e.validation?.type){case"bytes":return _.bytes;case"decimal":return _.decimal;case"int":return _.integer;default:return _.text}return _.text}static#t=this.\u0275fac=function(n){return new(n||i)(t.KVO(T.gB),t.KVO(f.h),t.KVO(j),t.KVO(D))};static#e=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),z=(()=>{class i{constructor(e){this.locale=e,this.defaultSettings=w}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 s=n,c=o.category,h=o.subcategory;let v=e.find(y=>y.name===c);if(v||(v={name:c,label:this.categoryLabelMap[c],subcategories:[{name:"uncategorized",label:null,settingNames:[]}]},e.push(v)),h){let y=v.subcategories.find(fe=>fe.name===h);y||(y={name:h,label:this.subcategoryLabelMap[c][h],settingNames:[]},v.subcategories.push(y)),y.settingNames.push(s)}else v.subcategories[0].settingNames.push(s)}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,s)=>o.label&&s.label?o.label.localeCompare(s.label):0)}),this.categorizedSettings.forEach(n=>{n.subcategories.forEach(o=>{o.settingNames.sort((s,r)=>s.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")}}}static#t=this.\u0275fac=function(n){return new(n||i)(t.KVO(f.h))};static#e=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ot=l(9172);let st=(()=>{class i{constructor(e){this.locale=e,this.property="",this.disabled=!1,this.labelPosition=g.Jr.right,this.changed=n=>{},this.touched=()=>{}}updateToggleState(){this.toggleState=g.pv.toggleUpdating,this.toggleState=this.value?g.pv.toggleOn:g.pv.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}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(f.h))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["cp-sql-config-boolean-editor"]],hostVars:2,hostBindings:function(n,o){2&n&&t.AVh("disabled",o.disabled)},inputs:{property:"property"},features:[t.Jv_([{provide:p.kq,useExisting:(0,t.Rfq)(()=>i),multi:!0}])],decls:2,vars:8,consts:[[1,"toggle-container",3,"click","keyup.enter","id"],[3,"id","onText","offText","toggleState","labelPosition","isDisabled"]],template:function(n,o){1&n&&(t.j41(0,"div",0),t.bIt("click",function(){return o.handleToggleClick()})("keyup.enter",function(){return o.handleToggleClick()}),t.nrm(1,"cp-toggle-switch",1),t.k0s()),2&n&&(t.Mz_("id","",o.property,"_container"),t.R7$(),t.FS9("onText",o.locale.maketext("Enabled")),t.FS9("offText",o.locale.maketext("Disabled")),t.Y8G("id",o.property)("toggleState",o.toggleState)("labelPosition",o.labelPosition)("isDisabled",o.disabled))},dependencies:[g.CK],styles:["[_nghost-%COMP%]{cursor:pointer}.disabled[_nghost-%COMP%]{cursor:not-allowed}.toggle-container[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}"]})}return i})();var b=l(3726),V=l(7786),at=l(1985),rt=l(1584),lt=l(7673),k=l(5964),ct=l(5558);let pt=(()=>{class i{constructor(e){this.elementRef=e,this.longPress=new t.bkB,this.threshold=500,this.observerConfig={attributes:!0,attributeFilter:["disabled"],attributeOldValue:!0},this.mousedown$=(0,b.R)(this.elementRef.nativeElement,"mousedown").pipe((0,k.p)(n=>0===n.button)),this.mouseup$=(0,b.R)(this.elementRef.nativeElement,"mouseup").pipe((0,k.p)(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,V.h)(this.mousedown$,this.touchstart$).pipe((0,C.T)(()=>!0)),this.observeOnDisable=(n,o)=>new at.c(s=>{const r=new MutationObserver(h=>{s.next(h)});return r.observe(n,o),()=>{r.disconnect()}})}ngOnInit(){this.isDisabled$=this.observeOnDisable(this.elementRef.nativeElement,this.observerConfig).pipe((0,k.p)(e=>null===e[0].oldValue)),this.stopEvents$=(0,V.h)(this.mouseup$,this.touchend$,this.pointerLeave$,this.isDisabled$).pipe((0,C.T)(()=>!1)),this.controlEmitter=(0,V.h)(this.startEvents$,this.stopEvents$).pipe((0,ct.n)(e=>e&&!this.elementRef.nativeElement.disabled?(0,rt.O)(this.threshold,100):(0,lt.of)(null)),(0,k.p)(e=>e&&!this.elementRef.nativeElement.disabled)).subscribe(()=>this.longPress.emit())}ngOnDestroy(){this.controlEmitter&&this.controlEmitter.unsubscribe()}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(t.aKT))};static#e=this.\u0275dir=t.FsC({type:i,selectors:[["","cpSqlConfigLongPress",""]],outputs:{longPress:"longPress"}})}return i})();const L=()=>{};let dt=(()=>{class i{constructor(e){this.locale=e,this.idSuffix="",this.onChangeCallback=L,this.onTouchedCallback=L,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}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(f.h))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["cp-sql-config-integer-control"]],inputs:{idSuffix:"idSuffix",maxValue:"maxValue",minValue:"minValue"},features:[t.Jv_([{provide:p.kq,multi:!0,useExisting:i}])],decls:13,vars:14,consts:[["numberInput",""],[1,"integer-editor"],[1,"field-container"],["type","number","data-test","input",1,"form-control","integer-field",3,"ngModelChange","id","disabled","ngModel","min","max"],[1,"increment-container"],["type","button","data-test","increment","cpSqlConfigLongPress","","oncontextmenu","return false",1,"btn","btn-outline-secondary","btn-xs","custom-increment",3,"click","longPress","id","disabled"],["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,"click","longPress","id","disabled"],["aria-hidden","true",1,"fas","fa-minus"]],template:function(n,o){if(1&n){const s=t.RV6();t.j41(0,"div",1)(1,"div",2)(2,"input",3,0),t.bIt("ngModelChange",function(c){return t.eBV(s),t.Njj(o.onValueChange(c))}),t.k0s()(),t.j41(4,"div",4)(5,"button",5),t.bIt("click",function(){return t.eBV(s),t.Njj(o.onIncrement())})("longPress",function(){return t.eBV(s),t.Njj(o.onIncrement())}),t.nrm(6,"i",6),t.j41(7,"span",7),t.EFF(8),t.k0s()(),t.j41(9,"button",8),t.bIt("click",function(){return t.eBV(s),t.Njj(o.onDecrement())})("longPress",function(){return t.eBV(s),t.Njj(o.onDecrement())}),t.nrm(10,"i",9),t.j41(11,"span",7),t.EFF(12),t.k0s()()()()}2&n&&(t.R7$(2),t.Mz_("id","integer-input-",o.idSuffix,""),t.Y8G("disabled",o.disabled)("ngModel",o.value)("min",o.minValue)("max",o.maxValue),t.R7$(3),t.Mz_("id","increment-",o.idSuffix,""),t.Y8G("disabled",o.disabled||o.isIncrementDisabled),t.R7$(3),t.JRh(o.locale.maketext("Increase")),t.R7$(),t.Mz_("id","decrement-",o.idSuffix,""),t.Y8G("disabled",o.disabled||o.isDecrementDisabled),t.R7$(3),t.JRh(o.locale.maketext("Decrease")))},dependencies:[p.me,p.Q0,p.BC,p.VZ,p.zX,p.vS,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}"]})}return i})();const mt=["template"],ut=[[["","modalHeader",""]],[["","modalBody",""]],[["","modalFooter",""]]],ht=["[modalHeader]","[modalBody]","[modalFooter]"];function gt(i,a){if(1&i){const e=t.RV6();t.j41(0,"div",1)(1,"button",2),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.closeModal())}),t.j41(2,"span",3),t.EFF(3,"\xd7"),t.k0s()(),t.SdG(4),t.k0s(),t.j41(5,"div",4),t.SdG(6,1),t.k0s(),t.j41(7,"div",5),t.SdG(8,2),t.k0s()}if(2&i){const e=t.XpG();t.R7$(),t.BMQ("aria-label",e.locale.maketext("Close"))}}let ft=(()=>{class i{constructor(e,n){this.locale=e,this.modalService=n,this.dismissModal=new t.bkB}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()}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(f.h),t.rXU(F.I8))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["cp-sql-config-modal"]],viewQuery:function(n,o){if(1&n&&t.GBs(mt,7),2&n){let s;t.mGM(s=t.lsd())&&(o.modalTemplate=s.first)}},inputs:{show:"show"},outputs:{dismissModal:"dismissModal"},ngContentSelectors:ht,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(n,o){1&n&&(t.NAR(ut),t.DNE(0,gt,9,1,"ng-template",null,0,t.C5r))},styles:[".modal-backdrop[_ngcontent-%COMP%]{background:#08193ebf}.modal-body[_ngcontent-%COMP%], .modal-header[_ngcontent-%COMP%]{background:#fafafa;border:none;border-radius:inherit}.modal-footer[_ngcontent-%COMP%]{margin-top:0}"],changeDetection:0})}return i})();var _t=l(4412),bt=l(1413),A=l(3798),B=l(6977);let R=(()=>{class i{constructor(e){this.doc=e,this.scrollItems={},this.currentScrollItem=null,this.$currentScrollItem=new _t.t(null),this.onStopListening=new bt.B,this.resizeEvents=(0,b.R)(window,"resize").pipe((0,A.Z)(300),(0,B.Q)(this.onStopListening)),this.scrollEvents=(0,b.R)(window,"scroll").pipe((0,A.Z)(10),(0,B.Q)(this.onStopListening)),this.scrollWindow={elementRef:new t.aKT(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(s=>{s.nativeElement.offsetTop<=n+this.scrollWindow.offset&&(o=s)}),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}}static#t=this.\u0275fac=function(n){return new(n||i)(t.KVO(d.qQ))};static#e=this.\u0275prov=t.jDH({token:i,factory:i.\u0275fac,providedIn:"root"})}return 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)}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(t.aKT),t.rXU(R))};static#e=this.\u0275dir=t.FsC({type:i,selectors:[["","cpSqlConfigScrollSpy",""]],hostVars:2,hostBindings:function(n,o){2&n&&t.AVh("active",o.hasClassActive)},inputs:{itemId:[0,"cpSqlConfigScrollSpy","itemId"]}})}return i})(),vt=(()=>{class i{constructor(){}static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275cmp=t.VBU({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(n,o){1&n&&(t.qSk(),t.j41(0,"svg",0)(1,"g",1)(2,"g",2),t.nrm(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.k0s(),t.j41(25,"g",25),t.nrm(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.k0s()()())},styles:["svg[_ngcontent-%COMP%]{width:inherit;height:inherit;fill:inherit;background:inherit;background-color:inherit}img[_ngcontent-%COMP%]{width:inherit;height:inherit}"]})}return i})(),Y=(()=>{class i{constructor(e){this.locale=e}transform(e,n){return"boolean"===n?this.locale.maketext(e?"Enabled ([_1])":"Disabled ([_1])",e):e}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(f.h,16))};static#e=this.\u0275pipe=t.EJ8({name:"configValue",type:i,pure:!0})}return i})();const yt=i=>({"optimize-menu":i});function Mt(i,a){if(1&i&&(t.j41(0,"p",11),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",e.title," ")}}function St(i,a){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.nI1(2,"configValue"),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.SpI(" ",t.i5U(2,1,e.applyValue.value,e.applyValue.dataType)," ")}}function Ot(i,a){if(1&i&&(t.j41(0,"p"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2).$implicit;t.R7$(),t.JRh(e.description)}}function xt(i,a){if(1&i){const e=t.RV6();t.j41(0,"ul",6)(1,"li",7),t.DNE(2,Mt,2,1,"p",8)(3,St,3,4,"p",9)(4,Ot,2,1,"p",9),t.j41(5,"button",10),t.bIt("click",function(){t.eBV(e);const o=t.XpG().index,s=t.XpG();return t.Njj(s.handleApplyClick(o))}),t.EFF(6),t.k0s()()()}if(2&i){const e=t.XpG(),n=e.$implicit,o=e.index,s=t.XpG();t.Y8G("id",s.idPrefix+"-menu-"+o)("ngClass",t.eq3(7,yt,n.type===s.settingControlType.Optimize)),t.BMQ("aria-labelledby",s.idPrefix+"-btn-"+o),t.R7$(2),t.Y8G("ngIf",n.title),t.R7$(),t.Y8G("ngIf",n.applyValue),t.R7$(),t.Y8G("ngIf",n.description),t.R7$(2),t.SpI(" ",n.applyText," ")}}function Pt(i,a){if(1&i&&(t.j41(0,"div",2)(1,"button",3),t.nrm(2,"i",4),t.k0s(),t.DNE(3,xt,7,9,"ul",5),t.k0s()),2&i){const e=a.$implicit,n=a.index,o=t.XpG();t.Y8G("isDisabled",e.isDisabled),t.R7$(),t.Y8G("id",o.idPrefix+"-btn-"+n),t.BMQ("title",e.label)("aria-label",e.label)("aria-controls",o.idPrefix+"-menu-"+n),t.R7$(),t.ZvI("ri-lg ",e.iconClass,"")}}let kt=(()=>{class i{constructor(e){this.locale=e,this.applyAction=new t.bkB,this.settingControlType=u}ngOnInit(){this.initSettingControls()}ngOnChanges(e){!1===e.configOptions?.firstChange&&this.updateConfigSettings()}initSettingControls(){const e=this.getConfig(u.optimize),n={isDisabled:e.isDisabled,description:e.description,applyValue:e.applyValue,type:u.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(u.reset),s={isDisabled:o.isDisabled,description:o.description,applyValue:o.applyValue,type:u.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(u.undo),c={isDisabled:r.isDisabled,description:r.description,applyValue:r.applyValue,type:u.undo,iconClass:"ri-arrow-go-back-line",label:this.locale.maketext("Undo Changes"),applyText:this.locale.maketext("Undo Changes")};this.settingControls=[c,s,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)})}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(f.h))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["cp-sql-config-setting-control-menu"]],inputs:{idPrefix:"idPrefix",configOptions:"configOptions"},outputs:{applyAction:"applyAction"},features:[t.OA$],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(n,o){1&n&&(t.j41(0,"div",0),t.DNE(1,Pt,4,8,"div",1),t.k0s()),2&n&&(t.R7$(),t.Y8G("ngForOf",o.settingControls))},dependencies:[d.YU,d.Sq,d.bT,O.hs,O.UL,O.Kk,Y],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})}return i})();function wt(i,a){if(1&i){const e=t.RV6();t.j41(0,"cp-callout",20),t.nrm(1,"p",21)(2,"p",22)(3,"p",22),t.j41(4,"p")(5,"button",23),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.restartSQLServer())}),t.k0s()()()}if(2&i){const e=t.XpG();t.R7$(),t.Y8G("innerHTML",e.locale.maketext("Database is Not Running"),t.npT),t.R7$(),t.Y8G("innerHTML",e.locale.maketext("This tool is unable to edit the [_1] configuration while the database is not running.",e.dbName),t.npT),t.R7$(),t.Y8G("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.npT),t.R7$(2),t.Y8G("innerHTML",e.restartSQLServerButtonLabel,t.npT)}}function Tt(i,a){if(1&i&&(t.j41(0,"cp-callout",24),t.nrm(1,"p",21)(2,"p",22)(3,"p",22),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.Y8G("innerHTML",e.locale.maketext("Database is Remote"),t.npT),t.R7$(),t.Y8G("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.npT),t.R7$(),t.Y8G("innerHTML",e.locale.maketext("If you wish to edit your database configuration, you need to do so on the remote database server."),t.npT)}}function Vt(i,a){if(1&i){const e=t.RV6();t.j41(0,"div",41)(1,"div",42)(2,"div",43)(3,"h4",44),t.EFF(4),t.k0s(),t.j41(5,"p"),t.EFF(6),t.k0s(),t.j41(7,"button",45),t.bIt("click",function(){t.eBV(e);const o=t.XpG(2);return t.Njj(o.applyOptimizations())}),t.nrm(8,"i",46),t.EFF(9),t.k0s()(),t.j41(10,"div",47),t.nrm(11,"cp-sql-config-optimize-database-graphic",48),t.k0s()()()}if(2&i){const e=t.XpG(2);t.R7$(4),t.SpI(" ",e.locale.maketext("Optimize Database")," "),t.R7$(2),t.SpI(" ",e.locale.maketext("Want to improve your database\u2019s performance? Click the optimize icon next to a setting to see a custom recommendation.")," "),t.R7$(3),t.SpI(" ",e.locale.maketext("Review Suggestions")," ")}}function Rt(i,a){if(1&i){const e=t.RV6();t.j41(0,"a",66),t.bIt("click",function(){t.eBV(e);const o=t.XpG().$implicit,s=t.XpG(4);return t.Njj(s.toggleHelpFor(o))}),t.nrm(1,"span",67),t.k0s()}}function Et(i,a){if(1&i&&t.nrm(0,"div",68),2&i){const e=t.XpG().$implicit,n=t.XpG(4);t.Mz_("id","help_",e,""),t.Y8G("innerHTML",n.formControls[e].description,t.npT)}}function Ft(i,a){if(1&i){const e=t.RV6();t.j41(0,"input",69),t.bIt("keypress",function(o){t.eBV(e);const s=t.XpG(5);return t.Njj(s.keyPressNumbersOrDecimal(o))}),t.k0s()}if(2&i){const e=t.XpG().$implicit;t.FS9("formControlName",e),t.BMQ("data-property",e)}}function Gt(i,a){if(1&i&&t.nrm(0,"cp-sql-config-integer-control",70),2&i){const e=t.XpG().$implicit,n=t.XpG(4);t.FS9("formControlName",e),t.Y8G("idSuffix",e)("minValue",n.formControls[e].min)("maxValue",n.formControls[e].max),t.BMQ("data-property",e)}}function It(i,a){if(1&i&&(t.j41(0,"option",73),t.EFF(1),t.k0s()),2&i){const e=a.$implicit;t.Y8G("ngValue",e),t.R7$(),t.SpI(" ",e," ")}}function $t(i,a){if(1&i&&(t.j41(0,"select",71),t.DNE(1,It,2,2,"option",72),t.k0s()),2&i){const e=t.XpG().$implicit,n=t.XpG(4);t.FS9("formControlName",e),t.BMQ("data-property",e),t.R7$(),t.Y8G("ngForOf",n.formControls[e].options)}}function jt(i,a){if(1&i&&t.nrm(0,"cp-sql-config-boolean-editor",74),2&i){const e=t.XpG().$implicit;t.FS9("formControlName",e),t.Y8G("property",e)}}function Nt(i,a){if(1&i&&t.nrm(0,"textarea",75),2&i){const e=t.XpG().$implicit;t.FS9("formControlName",e),t.BMQ("data-property",e)}}function Dt(i,a){if(1&i&&t.nrm(0,"input",76),2&i){const e=t.XpG().$implicit;t.FS9("formControlName",e),t.BMQ("data-property",e)}}function zt(i,a){if(1&i&&(t.j41(0,"li",79),t.nrm(1,"i",80)(2,"span",81),t.k0s()),2&i){const e=a.$implicit,n=t.XpG(2).$implicit,o=t.XpG(4);t.R7$(2),t.Y8G("innerHTML",o.formControls[n].validationMessages[e],t.npT)}}function Lt(i,a){if(1&i&&(t.j41(0,"ul",77),t.DNE(1,zt,3,1,"li",78),t.k0s()),2&i){const e=t.XpG().$implicit,n=t.XpG(4);t.R7$(),t.Y8G("ngForOf",n.formControls[e].getActiveErrorKeys())}}function At(i,a){if(1&i){const e=t.RV6();t.j41(0,"div")(1,"div",50)(2,"div",51)(3,"div")(4,"label",52),t.EFF(5),t.j41(6,"span",53),t.EFF(7),t.k0s()(),t.EFF(8," \xa0 "),t.DNE(9,Rt,2,0,"a",54),t.nrm(10,"span",55),t.k0s(),t.j41(11,"cp-sql-config-setting-control-menu",56),t.bIt("applyAction",function(o){const s=t.eBV(e).$implicit,r=t.XpG(4);return t.Njj(r.handleSettingMenuAction(s,o))}),t.k0s()(),t.DNE(12,Et,1,3,"div",57),t.qex(13,58),t.DNE(14,Ft,1,2,"input",59)(15,Gt,1,5,"cp-sql-config-integer-control",60)(16,$t,2,3,"select",61)(17,jt,1,2,"cp-sql-config-boolean-editor",62)(18,Nt,1,2,"textarea",63)(19,Dt,1,2,"input",64),t.bVm(),t.DNE(20,Lt,2,1,"ul",65),t.k0s()()}if(2&i){const e=a.$implicit,n=t.XpG(4);t.R7$(4),t.Mz_("for","prop_",e,""),t.R7$(),t.SpI("",n.formControls[e].fullName," "),t.R7$(2),t.SpI("(",n.formControls[e].propertyName,")"),t.R7$(2),t.Y8G("ngIf",!n.showAllHelp),t.R7$(),t.Y8G("innerHTML",n.locale.maketext("Expand"),t.npT),t.R7$(),t.Y8G("idPrefix",e)("configOptions",n.formControls[e].controlConfigs),t.R7$(),t.Y8G("ngIf",n.showAllHelp||n.formControls[e].showHelp),t.R7$(),t.Y8G("ngSwitch",n.formControls[e].inputType),t.R7$(),t.Y8G("ngSwitchCase",n.inputType.decimal),t.R7$(),t.Y8G("ngSwitchCase",n.inputType.integer),t.R7$(),t.Y8G("ngSwitchCase",n.inputType.select),t.R7$(),t.Y8G("ngSwitchCase",n.inputType.toggle),t.R7$(),t.Y8G("ngSwitchCase",n.inputType.textArea),t.R7$(2),t.Y8G("ngIf",!n.formControls[e].valid)}}function Bt(i,a){if(1&i&&(t.j41(0,"div"),t.nrm(1,"a",49),t.DNE(2,At,21,16,"div",36),t.k0s()),2&i){const e=a.$implicit,n=t.XpG().$implicit;t.R7$(),t.FCK("id","section-",n.name,"-",e.name,""),t.FCK("cpSqlConfigScrollSpy","section-",n.name,"-",e.name,""),t.R7$(),t.Y8G("ngForOf",e.settingNames)}}function Yt(i,a){if(1&i&&(t.j41(0,"div")(1,"div",41)(2,"h4",6),t.EFF(3),t.k0s(),t.nrm(4,"a",49),t.k0s(),t.DNE(5,Bt,3,7,"div",36),t.k0s()),2&i){const e=a.$implicit;t.R7$(3),t.JRh(e.label),t.R7$(),t.Mz_("id","section-",e.name,""),t.Mz_("cpSqlConfigScrollSpy","section-",e.name,""),t.R7$(),t.Y8G("ngForOf",e.subcategories)}}function Qt(i,a){1&i&&(t.j41(0,"span"),t.nrm(1,"i",82),t.k0s())}function Xt(i,a){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG(2);t.R7$(),t.SpI("",e.locale.maketext("Submit")," ")}}function Ht(i,a){if(1&i){const e=t.RV6();t.j41(0,"form",25,0)(2,"div",26)(3,"div",27)(4,"div",28),t.EFF(5),t.k0s(),t.j41(6,"div",29)(7,"button",30),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.toggleShowAllHelp())}),t.EFF(8),t.nrm(9,"i",31),t.k0s()(),t.nrm(10,"div",32),t.k0s(),t.j41(11,"div",33),t.DNE(12,Vt,12,3,"div",34),t.nI1(13,"async"),t.j41(14,"div",35),t.DNE(15,Yt,6,6,"div",36),t.k0s()(),t.j41(16,"div",37)(17,"div")(18,"button",38),t.nI1(19,"async"),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.submitForm())}),t.DNE(20,Qt,2,0,"span",19)(21,Xt,2,1,"span",19),t.k0s(),t.j41(22,"button",39),t.nI1(23,"async"),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.revert())}),t.EFF(24),t.k0s(),t.j41(25,"button",40),t.bIt("click",function(){t.eBV(e);const o=t.XpG();return t.Njj(o.restoreDefaults())}),t.EFF(26),t.k0s()()()()()}if(2&i){const e=t.XpG();t.Y8G("formGroup",e.propertyEditors),t.R7$(5),t.SpI(" ",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.R7$(3),t.SpI(" ",e.toggleHelpLabel," "),t.R7$(4),t.Y8G("ngIf",t.bMT(13,13,e.optimizationsAvailable$)),t.R7$(3),t.Y8G("ngForOf",e.categorizedSettings),t.R7$(3),t.FS9("title",e.locale.maketext("Click here to update your [asis,SQL] configuration.")),t.Y8G("disabled",e.confirmingSubmit||e.propertyEditors.invalid||t.bMT(19,15,e.disableIfUnaltered$)),t.R7$(2),t.Y8G("ngIf",e.confirmingSubmit),t.R7$(),t.Y8G("ngIf",!e.confirmingSubmit),t.R7$(),t.Y8G("disabled",t.bMT(23,17,e.disableIfUnaltered$)||e.savingConfig),t.R7$(2),t.SpI(" ",e.locale.maketext("Undo Changes")," "),t.R7$(),t.Y8G("disabled",e.savingConfig),t.R7$(),t.SpI(" ",e.locale.maketext("Restore System Defaults")," ")}}function qt(i,a){if(1&i&&t.nrm(0,"i",91),2&i){const e=t.XpG(2);t.FS9("title",e.locale.maketext("Optimize"))}}function Ut(i,a){if(1&i&&(t.j41(0,"span",92)(1,"span",11),t.EFF(2),t.k0s(),t.EFF(3),t.nI1(4,"configValue"),t.k0s()),2&i){const e=t.XpG().$implicit,n=t.XpG();t.R7$(2),t.JRh(n.locale.maketext("Previous Value")),t.R7$(),t.SpI(" ",t.i5U(4,2,n.cachedOriginalSettings[e.propertyName],e.propertyType)," ")}}function Kt(i,a){1&i&&t.nrm(0,"i",93)}function Jt(i,a){if(1&i&&(t.j41(0,"div",94)(1,"span",92),t.EFF(2),t.k0s()()),2&i){const e=t.XpG().$implicit;t.R7$(2),t.JRh(e.optimization.reason)}}function Zt(i,a){if(1&i&&(t.j41(0,"li",83)(1,"span",84),t.DNE(2,qt,1,1,"i",85),t.EFF(3),t.j41(4,"span",53),t.EFF(5),t.k0s()(),t.j41(6,"div",86),t.DNE(7,Ut,5,5,"span",87)(8,Kt,1,0,"i",88),t.j41(9,"span",89)(10,"span",11),t.EFF(11),t.k0s(),t.EFF(12),t.nI1(13,"configValue"),t.k0s()(),t.DNE(14,Jt,3,1,"div",90),t.k0s()),2&i){const e=a.$implicit,n=t.XpG();t.Y8G("ngClass",n.showingConfirmDetails?"flex-col":"flex-row"),t.R7$(2),t.Y8G("ngIf",e.isOptimized),t.R7$(),t.SpI(" ",e.fullName," "),t.R7$(2),t.SpI("(",e.propertyName,")"),t.R7$(2),t.Y8G("ngIf",n.showingConfirmDetails),t.R7$(),t.Y8G("ngIf",n.showingConfirmDetails),t.R7$(3),t.JRh(n.locale.maketext("New Value")),t.R7$(),t.SpI(" ",t.i5U(13,9,e.value,e.propertyType)," "),t.R7$(2),t.Y8G("ngIf",n.showingConfirmDetails&&e.isOptimized)}}function Wt(i,a){if(1&i&&(t.j41(0,"cp-callout",95),t.EFF(1),t.k0s()),2&i){const e=a.$implicit;t.R7$(),t.JRh(e)}}function te(i,a){1&i&&t.nrm(0,"i",96)}function ee(i,a){if(1&i&&(t.j41(0,"span"),t.EFF(1),t.k0s()),2&i){const e=t.XpG();t.R7$(),t.JRh(e.locale.maketext("Save Changes"))}}const ne=[{path:"globals",component:(()=>{class i{constructor(e,n,o,s,r,c,h){this.fb=e,this.alertService=n,this.errorMsgSvc=o,this.settingCategoryService=s,this.optimizationService=r,this.locale=c,this.settingsService=h,this.inputType=_,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=$.long,this.showAllHelp=!1,this.showAllHelpLabel="",this.hideAllHelpLabel="",this.restartSQLServerButtonLabel="",this.cachedOriginalSettings={},this.dBIsRunning=U,this.dBIsRemote=K,this.confirmationNotes=new Set,this.setLabels(),this.initializeControls(),this.settingNames=Object.keys(w),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 s=o.validation,r="/"+s.pattern+"/"+s.flags;s.message&&this.errorMsgSvc.addPatternMessage(r,s.message),o.addValidationMessage("pattern",this.errorMsgSvc.getPatternMessage(r))}}this.disableIfUnaltered$=this.propertyEditors.valueChanges.pipe((0,ot.Z)(!0),(0,C.T)(e=>{for(const n of Object.keys(e)){const o=this.getExtendedControl(n);if(!o.pristine&&o.hasValueChanged())return!1}return!0}),(0,N.t)({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===_.bytes){const n=m.getBytes(e.value.toString()),o=m.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),s=this.cachedOriginalSettings[n];o.value!==s&&(o.setValue(s,{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 s=e.controls[o],r=e.value[o].toString(),c=s.defaultValue.toString();r!==c&&(n=!0,s.setValue(c),s.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 u.undo:o.setValue(this.getInitialValue(e)),o.markAsPristine();break;case u.reset:o.setValue(o.defaultValue),o.markAsDirty();break;case u.optimize:o.setValue(o.optimization.value),o.markAsDirty()}o.updateValueAndValidity()}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(p.ze),t.rXU(g.uE),t.rXU(j),t.rXU(z),t.rXU(D),t.rXU(f.h),t.rXU(it))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["cp-sql-config-sql-globals"]],decls:24,vars:15,consts:[["globalsForm","ngForm"],["id","dbnotrunningcallout","calloutType","danger","role","alert",4,"ngIf"],["id","dbremotecallout","calloutType","danger","role","alert",4,"ngIf"],[3,"formGroup",4,"ngIf"],[3,"dismissModal","show"],["modalHeader","",1,"confirm-modal-header"],[1,"widget-title"],["modalBody","",1,"confirm-modal-body"],[1,"flex-row"],["type","button",1,"btn","icon-btn",3,"click","tooltip"],["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,"click","disabled"],["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,"click","innerHTML"],["id","dbremotecallout","calloutType","danger","role","alert"],[3,"formGroup"],[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,"click","disabled","title"],["id","btnRevertEdits","type","button",1,"btn","btn-link",3,"click","disabled"],["id","btnRevertToDefaults","type","button",1,"btn","btn-default","flip",3,"click","disabled"],[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,"applyAction","idPrefix","configOptions"],["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,"keypress","formControlName"],[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(n,o){1&n&&(t.DNE(0,wt,6,4,"cp-callout",1)(1,Tt,4,3,"cp-callout",2)(2,Ht,27,19,"form",3),t.j41(3,"cp-sql-config-modal",4),t.bIt("dismissModal",function(){return o.cancelSubmit()}),t.j41(4,"div",5)(5,"h1",6),t.EFF(6),t.k0s()(),t.j41(7,"div",7)(8,"div",8)(9,"span"),t.EFF(10),t.k0s(),t.j41(11,"button",9),t.bIt("click",function(){return o.showingConfirmDetails=!o.showingConfirmDetails}),t.nrm(12,"i",10),t.j41(13,"span",11),t.EFF(14),t.k0s()()(),t.j41(15,"ul",12),t.DNE(16,Zt,15,12,"li",13),t.k0s(),t.DNE(17,Wt,2,1,"cp-callout",14),t.k0s(),t.j41(18,"div",15)(19,"button",16),t.bIt("click",function(){return o.cancelSubmit()}),t.EFF(20),t.k0s(),t.j41(21,"button",17),t.bIt("click",function(){return o.updateConfig()}),t.DNE(22,te,1,0,"i",18)(23,ee,2,1,"span",19),t.k0s()()()),2&n&&(t.Y8G("ngIf",!o.dBIsRunning&&!o.dBIsRemote),t.R7$(),t.Y8G("ngIf",o.dBIsRemote),t.R7$(),t.Y8G("ngIf",o.dBIsRunning&&!o.dBIsRemote),t.R7$(),t.Y8G("show",o.confirmingSubmit),t.R7$(3),t.JRh(o.locale.maketext("Confirm Changes")),t.R7$(4),t.JRh(o.locale.maketext("Confirm the following changes:")),t.R7$(),t.Y8G("tooltip",o.locale.maketext("View Details")),t.R7$(),t.Y8G("ngClass",o.showingConfirmDetails?"ri-eye-line":"ri-eye-off-line"),t.R7$(2),t.JRh(o.locale.maketext("View Details")),t.R7$(2),t.Y8G("ngForOf",o.updatedControls),t.R7$(),t.Y8G("ngForOf",o.confirmationNotes),t.R7$(3),t.SpI(" ",o.locale.maketext("Continue Editing")," "),t.R7$(),t.Y8G("disabled",o.savingConfig),t.R7$(),t.Y8G("ngIf",o.savingConfig),t.R7$(),t.Y8G("ngIf",!o.savingConfig))},dependencies:[d.YU,d.Sq,d.bT,d.ux,d.e1,d.fG,g.GV,p.qT,p.xH,p.y7,p.me,p.wz,p.BC,p.cb,p.j4,p.JD,G.dg,st,dt,ft,Ct,vt,kt,d.Jj,Y],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}"]})}return i})(),data:{showResourcePanel:!0},runGuardsAndResolvers:"always"},{path:"**",redirectTo:"globals",pathMatch:"full"}];let ie=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.$C({type:i});static#n=this.\u0275inj=t.G2t({imports:[x.iI.forRoot(ne,{anchorScrolling:"enabled",onSameUrlNavigation:"reload",scrollPositionRestoration:"enabled"}),x.iI]})}return i})();var oe=l(2806),se=l(7410);let ae=(()=>{class i{constructor(e){this.scrollSpyService=e,this.hasClassActive=!1,this.activeEvent=new t.bkB}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})}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(R))};static#e=this.\u0275dir=t.FsC({type:i,selectors:[["","cpSqlConfigScrollItem",""]],hostVars:2,hostBindings:function(n,o){2&n&&t.AVh("active",o.hasClassActive)},inputs:{itemId:[0,"cpSqlConfigScrollItem","itemId"]},outputs:{activeEvent:"activeEvent"}})}return i})();const Q=()=>["/"];function re(i,a){if(1&i&&(t.j41(0,"div",4)(1,"div",5),t.nrm(2,"p",12),t.k0s()()),2&i){const e=t.XpG();t.R7$(2),t.Y8G("innerHTML",e.description,t.npT)}}function le(i,a){1&i&&t.eu8(0)}function ce(i,a){1&i&&t.eu8(0)}function pe(i,a){if(1&i&&(t.j41(0,"li",31)(1,"a",32),t.EFF(2),t.k0s()()),2&i){const e=a.$implicit,n=t.XpG().$implicit;t.R7$(),t.FCK("cpSqlConfigScrollItem","section-",n.name,"-",e.name,""),t.FCK("fragment","section-",n.name,"-",e.name,""),t.Y8G("routerLink",t.lJ4(8,Q)),t.R7$(),t.SpI(" ",e.label," ")}}function de(i,a){if(1&i&&(t.j41(0,"li",31)(1,"a",32),t.EFF(2),t.k0s(),t.j41(3,"ul",15),t.DNE(4,pe,3,9,"li",16),t.k0s()()),2&i){const e=a.$implicit;t.R7$(),t.Mz_("cpSqlConfigScrollItem","section-",e.name,""),t.Mz_("fragment","section-",e.name,""),t.Y8G("routerLink",t.lJ4(7,Q)),t.R7$(),t.SpI(" ",e.label," "),t.R7$(2),t.Y8G("ngForOf",e.subcategories)}}function me(i,a){if(1&i&&(t.j41(0,"section",13)(1,"h3",14),t.EFF(2,"Form Sections"),t.k0s(),t.j41(3,"nav")(4,"ul",15),t.DNE(5,de,5,8,"li",16),t.k0s()()(),t.j41(6,"section",17)(7,"h3",14),t.EFF(8),t.k0s(),t.j41(9,"ul",18)(10,"li")(11,"a",19),t.nrm(12,"i",20),t.j41(13,"span"),t.EFF(14),t.k0s()()(),t.j41(15,"li")(16,"a",21),t.nrm(17,"i",22),t.j41(18,"span"),t.EFF(19),t.k0s()()(),t.j41(20,"li")(21,"a",23),t.nrm(22,"i",24),t.j41(23,"span"),t.EFF(24),t.k0s()()()()(),t.j41(25,"section",25)(26,"h3",14),t.EFF(27),t.k0s(),t.j41(28,"ul",18)(29,"li")(30,"a",26),t.nrm(31,"i",27),t.j41(32,"span"),t.EFF(33),t.k0s()()(),t.j41(34,"li")(35,"a",28),t.nrm(36,"i",29),t.j41(37,"span"),t.EFF(38),t.k0s()()(),t.j41(39,"li")(40,"a",30),t.nrm(41,"i",29),t.j41(42,"span"),t.EFF(43),t.k0s()()()()()),2&i){const e=t.XpG();t.R7$(5),t.Y8G("ngForOf",e.formSections),t.R7$(3),t.JRh(e.locale.maketext("I want to \u2026")),t.R7$(6),t.JRh(e.locale.maketext("Upgrade my database[comment,link title and label]")),t.R7$(5),t.JRh(e.locale.maketext("Use [asis,PHPMyAdmin]")),t.R7$(5),t.JRh(e.locale.maketext("Improve this interface")),t.R7$(3),t.JRh(e.locale.maketext("Need Help?")),t.R7$(3),t.FS9("title",e.locale.maketext("Need help? Click here to read more about this interface.")),t.R7$(3),t.JRh(e.locale.maketext("About this interface")),t.R7$(2),t.FS9("title",e.locale.maketext("Need help with [asis,MySQL]? Click here to consult the [asis,MySQL] system variables reference.")),t.R7$(3),t.JRh(e.locale.maketext("[asis,MySQL] system variables reference[comment,link title and label]")),t.R7$(2),t.FS9("title",e.locale.maketext("Need help with [asis,MariaDB]? Click here to consult the [asis,MariaDB] system variables reference.")),t.R7$(3),t.JRh(e.locale.maketext("[asis,MariaDB] system variables reference[comment,link title and label]"))}}let ue=(()=>{class i{constructor(e,n,o){this.locale=e,this.scrollSpyService=n,this.settingCategoryService=o,this.title="",this.description="",(0,oe.Yl)("bs4"),se.uv.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}`}static#t=this.\u0275fac=function(n){return new(n||i)(t.rXU(f.h),t.rXU(R),t.rXU(z))};static#e=this.\u0275cmp=t.VBU({type:i,selectors:[["cp-sql-config-root"]],decls:16,vars:3,consts:[["resourceTemplate",""],["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"],[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(n,o){if(1&n&&(t.nrm(0,"cp-alert-list",1),t.j41(1,"div",2)(2,"div"),t.DNE(3,re,3,1,"div",3),t.j41(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7),t.DNE(8,le,1,0,"ng-container",8),t.k0s()(),t.j41(9,"div",9),t.nrm(10,"router-outlet",10),t.k0s(),t.j41(11,"div",11)(12,"div",7),t.DNE(13,ce,1,0,"ng-container",8),t.k0s()()()()()(),t.DNE(14,me,44,12,"ng-template",null,0,t.C5r)),2&n){const s=t.sdS(15);t.R7$(3),t.Y8G("ngIf",o.description),t.R7$(5),t.Y8G("ngTemplateOutlet",s),t.R7$(5),t.Y8G("ngTemplateOutlet",s)}},dependencies:[d.Sq,d.bT,d.T3,x.n3,x.Wk,g.Ab,ae],encapsulation:2})}return i})();var he=l(8658);let ge=(()=>{class i{static#t=this.\u0275fac=function(n){return new(n||i)};static#e=this.\u0275mod=t.$C({type:i,bootstrap:[ue]});static#n=this.\u0275inj=t.G2t({providers:[{provide:d.kB,useValue:I},{provide:Window,useValue:window}],imports:[S.Bb,X.wb,ie,he.B,d.MD,g.jM,T.fg,p.YN,p.X1,g.ho,g.sb,O.zE.forRoot(),F.Q_.forRoot(),G.Ss.forRoot()]})}return i})();(0,t.SmG)(),S.sG().bootstrapModule(ge).catch(i=>console.error(i))}},M=>{M.O(0,[502],()=>M(M.s=1404)),M.O()}]);
Back to Directory File Manager