const debounce=(callback,wait)=>{let timeoutId=null;return(...args)=>{window.clearTimeout(timeoutId);timeoutId=window.setTimeout((()=>{callback(...args)}),wait)}};const eventsGlobal=function(){function selectLanguage(event){const{target:target}=event;const{languageType:languageType}=target.dataset;const request={endpoint:"/translate_serv.php",options:{method:"POST",headers:{"Content-Type":"text/html"},body:languageType}};fetch(request.endpoint,request.options).then((response=>{utilGlobal.handleError(response,"Languages not found, please contact the development department.");return response.json()})).then((data=>{})).catch((error=>console.error(error)))}function toggleDropdown(event){const{target:target}=event;const dropdownMenu=document.querySelector(`[data-dropdown-menu="${target.id}"]`);const dropdownEnabled=target.dataset.dropdownEnabled;let displayStyle;let enabled;resetClickOutside();if(dropdownEnabled==="false"){enabled="true";displayStyle="block";target.parentElement.style.zIndex="2"}else{displayStyle="none";enabled="false";target.parentElement.style.zIndex=""}dropdownMenu.style.display=displayStyle;target.setAttribute("data-dropdown-enabled",enabled);event.stopPropagation()}function resetClickOutside(){const dropdownButtons=document.querySelectorAll(".custom-dropdown-button");if(dropdownButtons&&dropdownButtons.length){dropdownButtons.forEach((item=>{item.parentElement.style.zIndex="";item.setAttribute("data-dropdown-enabled","false");item.nextElementSibling.style.display="none"}))}}function displayInfoContainer(event){const{target:target}=event;const bodyType=target.dataset.bodyType;if(bodyType&&!target.classList.contains("current")){const body=document.querySelector(`.included-with-server-box[data-body-type="${bodyType}"]`);document.querySelectorAll(".included-with-server-box").forEach((item=>{if(item){item.classList.remove("d-flex");item.classList.remove("animation-triggered");item.classList.add("d-none")}}));if(body){body.classList.remove("d-none");body.classList.add("d-flex");body.classList.add("animation-triggered")}document.querySelectorAll(".header-button").forEach((item=>{if(item){item.classList.remove("current")}}));target.classList.add("current")}}const selectFilteredObject={};const getFilteredArray=event=>{const{target:target}=event;const{dataset:dataset}=target;const{componentType:componentType}=dataset;let value=target.value;let data;const instantServerConfigurations=dataModelGlobal.getInstantServerConfigurations();const numberValues=["ram"];if(numberValues.includes(componentType)){value=parseFloat(value)}if(componentType==="price"){value=value!=="none"?JSON.parse(value):value}if(componentType==="discount"){value=value!=="none"?JSON.parse(value):value}const parentElement=uiGlobal.findParent(target,"TABLE","tagName");const{instantsType:instantsType}=parentElement.dataset;switch(instantsType){case"without-gpu":data=instantServerConfigurations.instantsWithoutGPU;break;case"with-gpu":data=instantServerConfigurations.instantsWithGPU;break;case"5-bare-metal":data=instantServerConfigurations.fiveBareMetal;break;case"entry-level":data=instantServerConfigurations.entryLevel;break;case"entry-level-gpu":data=instantServerConfigurations.entryLevelGPU;break;case"nvme":data=instantServerConfigurations.nvme;break;case"nvmeGPU":data=instantServerConfigurations.nvmeGPU;break;case"dual-cpu":data=instantServerConfigurations.dualCPU;break;case"quad-cpu":data=instantServerConfigurations.quadCPU;break;case"custom-gpu":data=instantServerConfigurations.customGPU;break;case"discounted-all":data=instantServerConfigurations.discountedAll;break;case"discounted-entry-level":data=instantServerConfigurations.discountedEntryLevel;break;case"discounted-nvme":data=instantServerConfigurations.discountedNVME;break;case"discounted-dual-cpu":data=instantServerConfigurations.discountedDualCPU;break;case"discounted-quad-cpu":data=instantServerConfigurations.discountedQuadCPU;break;case"discounted-custom-gpu":data=instantServerConfigurations.discountedCustomGPU;break}selectFilteredObject[instantsType]={...selectFilteredObject[instantsType],[componentType]:value};if(!selectFilteredObject[instantsType]||!selectFilteredObject[instantsType][componentType]||selectFilteredObject[instantsType][componentType]==="none"){delete selectFilteredObject[instantsType][componentType]}let filteredArray;const entries=Object.entries(selectFilteredObject[instantsType]);if(componentType==="discount"){filteredArray=data.filter((item=>entries.every((([key,val])=>{const discount=item.discount.percent;let min=val[0];let max=val[1];if(discount>=parseFloat(min)&&discount<=parseFloat(max)&&min&&max){return item}else if(discount<=parseFloat(min)&&!max){return item}else if(!min&&discount>=parseFloat(max)){return item}else if(item[key]===val){return item}}))))}else{filteredArray=data.filter((item=>entries.every((([key,val])=>{let min=val[0];let max=val[1];if(item.price>=parseFloat(min)&&item.price<=parseFloat(max)&&min&&max){return item}else if(item.price<=parseFloat(min)&&!max){return item}else if(!min&&item.price>=parseFloat(max)){return item}else if(item[key]===val){return item}}))))}return filteredArray};function handleTableFilterChange(event){const filteredArray=getFilteredArray(event);const parentElement=uiGlobal.findParent(event.target,"TABLE","tagName");const{instantsType:instantsType}=parentElement.dataset;const tbody=document.querySelector(`[data-instants-type="${instantsType}"] tbody.table-configuration-body`);const hasGPU=instantsType==="with-gpu"||instantsType==="custom-gpu"||instantsType==="entry-level-gpu"||instantsType==="nvmeGPU";const discountedCustomGPU=instantsType==="discounted-custom-gpu";uiGlobal.renderInstantsTable(filteredArray,tbody,hasGPU,discountedCustomGPU);initShowMoreConfigsBtns();let serverType=instantsType;let pathName=window.location.pathname;const allServersContainer=document.getElementById("all-servers-container");if(instantsType==="without-gpu"||instantsType==="with-gpu")serverType="all-servers";if(instantsType==="custom-gpu")serverType="gpu";if(instantsType.includes(sessionStorage.getItem("server-type")))serverType=sessionStorage.getItem("server-type");if(serverType===sessionStorage.getItem("server-type")||!allServersContainer){let localFilters=sessionStorage.getItem("filters");let filters={};if(localFilters){filters=JSON.parse(localFilters)}if(!allServersContainer){filters[pathName]=selectFilteredObject[instantsType];sessionStorage.setItem("filters",JSON.stringify(filters))}else{filters[instantsType]=selectFilteredObject[instantsType];sessionStorage.setItem("filters",JSON.stringify(filters))}}}const initShowMoreConfigsBtns=()=>{const showMoreConfigsBtn=document.querySelectorAll(".show-more-configs-btn");if(showMoreConfigsBtn&&showMoreConfigsBtn.length){showMoreConfigsBtn.forEach((item=>item.addEventListener("click",initShowMoreConfigsCustomFilters)))}};const initShowMoreConfigsCustomFilters=event=>{let filteredArray=getFilteredArray(event);showMoreConfigsCustomFilters(event,filteredArray)};const addDuplicatesToTableCustomFilter=(currentRow,serverName,serverType,currentServers)=>{const isDealsPage=window.location.pathname.includes("/deals/");let sortedServers=currentServers.toSorted(((a,b)=>a.price-b.price));if(isDealsPage){sortedServers=sortedServers.toSorted(((a,b)=>b.discount.percent-a.discount.percent))}const selectedServer=sortedServers.find((item=>item.name===serverName&&item.type===serverType));const matchingServers=sortedServers.filter((item=>{if(item.name!==selectedServer.name&&item.cpu===selectedServer.cpu&&item.ram===selectedServer.ram&&item.hdd===selectedServer.hdd&&item.os===selectedServer.os&&item.traffic===selectedServer.traffic&&item.location===selectedServer.location){return item}}));matchingServers.toSorted(((a,b)=>a.price-b.price)).forEach((item=>{const{cpu:cpu,gpu:gpu,ram:ram,hdd:hdd,os:os,traffic:traffic,location:location,type:type,name:name}=item;const discount=item&&item.discount&&item.discount.percent;const initialPrice=item.price;let discountPrice=initialPrice/100*discount;let calculatedPrice=discount?initialPrice-discountPrice:initialPrice;calculatedPrice=calculatedPrice.toFixed(2);const currency=item.location.includes("US")?"$":"€";const initialPriceHTML=initialPrice.toFixed(2);const monthlyHtml=`\n ${discount?`\n ${currency}${initialPriceHTML}\n `:""}\n \n ${currency}${calculatedPrice}\n\n ${discount?`(-${discount}%)`:""}\n `}))};const addDuplicatesToTable=(currRow,currTableContainer)=>{const currRowID=currRow.dataset.rowId;const parentTableID=currTableContainer.dataset.instantsType;const servers=dataModelGlobal.getInstantServerConfigurations();let currServers=parentTableID==="without-gpu"?servers.instantsWithoutGPU:parentTableID==="with-gpu"?servers.instantsWithGPU:parentTableID==="5-bare-metal"?servers.fiveBareMetal:parentTableID==="entry-level"?servers.entryLevel:parentTableID==="nvme"?servers.nvme:parentTableID==="ssd"?servers.ssd:parentTableID==="hdd"?servers.hdd:parentTableID==="dual-cpu"?servers.dualCPU:parentTableID==="quad-cpu"?servers.quadCPU:parentTableID==="custom-gpu"?servers.customGPU:parentTableID==="discounted-entry-level"?servers.discountedEntryLevel:parentTableID==="discounted-nvme"?servers.discountedNVME:parentTableID==="discounted-dual-cpu"?servers.discountedDualCPU:parentTableID==="discounted-quad-cpu"?servers.discountedQuadCPU:parentTableID==="discounted-custom-gpu"?servers.discountedCustomGPU:()=>{};const newServersObj=dataModelGlobal.groupDuplicates(currServers);const sortedNewServersObj=Object.entries(newServersObj).sort(((a,b)=>a[1][0].price-b[1][0].price));let firstItems=[];Object.values(sortedNewServersObj).forEach((item=>{firstItems.push(item[0])}));const currItem=firstItems[currRowID];const currArray=newServersObj[currItem];currArray.shift();currArray.sort(((a,b)=>a.price-b.price)).forEach((item=>{const{cpu:cpu,gpu:gpu,ram:ram,hdd:hdd,os:os,traffic:traffic,location:location,type:type,name:name}=item;const discount=item&&JSON.parse(item.discount)&&JSON.parse(item.discount).percent;const initialPrice=item.price;let discountPrice=initialPrice/100*discount;let calculatedPrice=discount?initialPrice-discountPrice:initialPrice;calculatedPrice=calculatedPrice.toFixed(2);const currency=item.location.includes("US")?"$":"€";const initialPriceHTML=initialPrice.toFixed(2);const monthlyHtml=`\n ${discount?`\n ${currency}${initialPriceHTML}\n `:""}\n \n ${currency}${calculatedPrice}\n\n ${discount?`(-${discount}%)`:""}\n `}))};const removeDuplicatesToTableCustomFilter=currRow=>{const allAddedEls=$(currRow).nextAll(".new-table-cell");allAddedEls.remove()};const removeDuplicatesToTable=currRow=>{const allAddedEls=$(currRow).nextAll(".new-table-cell");allAddedEls.remove()};const showMoreConfigsCustomFilters=(event,filteredArray)=>{const target=$(event.target);const actionAttribute="data-action-btn-display";const serverNameAttribute="data-server-name";const serverTypeAttribute="data-server-type";if(!event.target.hasAttribute(actionAttribute)||!event.target.hasAttribute(serverNameAttribute)||!event.target.hasAttribute(serverTypeAttribute)){return}const action=event.target.getAttribute(actionAttribute);const serverName=event.target.getAttribute(serverNameAttribute);const serverType=event.target.getAttribute(serverTypeAttribute);const parents=target.parents();const currRow=parents[1];if(action==="increment"){addDuplicatesToTableCustomFilter(currRow,serverName,serverType,filteredArray);target.text("-").attr(actionAttribute,"decrement")}else if(action==="decrement"){removeDuplicatesToTableCustomFilter(currRow);target.text("+").attr(actionAttribute,"increment")}};const showMoreConfigs=event=>{const target=$(event.target);const attributeName="data-action-btn-display";if(!event.target.hasAttribute(attributeName)){return}const action=event.target.getAttribute(attributeName);const parents=target.parents();const currRow=parents[1];const currTableContainer=parents[3];if(action==="increment"){addDuplicatesToTable(currRow,currTableContainer);target.text("-").attr(attributeName,"decrement")}else if(action==="decrement"){removeDuplicatesToTable(currRow);target.text("+").attr(attributeName,"increment")}};function initFilterSelect(){const selectFilters=document.querySelectorAll("select.form-select");if(selectFilters&&selectFilters.length){selectFilters.forEach((item=>item.addEventListener("change",handleTableFilterChange)))}let serverType=sessionStorage.getItem("server-type");let sliderElement;if(serverType===null){sliderElement=document.querySelector(`.slider-element.current`);if(sliderElement){sessionStorage.setItem("server-type",sliderElement.dataset.serversType)}}else{sliderElement=document.querySelector(`.slider-element[data-servers-type='${serverType}']`)}if(sliderElement){sliderElement.click()}selectFilters.forEach((item=>{item.addEventListener("click",handleTableFilterChange);item.click();item.removeEventListener("click",handleTableFilterChange)}))}const formatServerData=async()=>{const initialServerFilters=dataModelGlobal.getServersFilters();const{deployment:deployment,type:type,pricing:pricing,location:location,hardware:hardware}=initialServerFilters;const url=window.location.pathname;const{allInstants:allInstants,customGPU:customGPU,discountedAll:discountedAll,discountedCustomGPU:discountedCustomGPU,discountedEntryLevel:discountedEntryLevel,discountedNVME:discountedNVME,discountedQuadCPU:discountedQuadCPU,dualCPU:dualCPU,entryLevel:entryLevel,fiveBareMetal:fiveBareMetal,entryLevelGPU:entryLevelGPU,hdd:hdd,instantsWithGPU:instantsWithGPU,instantsWithoutGPU:instantsWithoutGPU,nvme:nvme,nvmeGPU:nvmeGPU,quadCPU:quadCPU,ssd:ssd}=dataModelGlobal.getInstantServerConfigurations();const{dedicatedPlans:dedicatedPlans,fiveBareMetalCustom:fiveBareMetalCustom,entryLevelCustom:entryLevelCustom,nvmeCustom:nvmeCustom,dualCPUCustom:dualCPUCustom,quadCPUCustom:quadCPUCustom,customGPUCustom:customGPUCustom}=await dataModelGlobal.getAllPlansFetch();if(deployment==="instant"){let instantData=[];let discountedInstantData=[];if(type==="5-bare-metal"){instantData=fiveBareMetal}else if(type==="entry-level"){instantData=entryLevel.concat(entryLevelGPU);discountedInstantData=allInstants.filter((item=>item.type.startsWith("M")&&!item.gpu&&item.discount&&item.discount.percent))}else if(type==="nvme"){instantData=nvme.concat(nvmeGPU);discountedInstantData=allInstants.filter((item=>["M710x","M510"].includes(item.type)&&!item.gpu&&item.discount&&item.discount.percent))}else if(type==="dual-cpu"){instantData=dualCPU;discountedInstantData=allInstants.filter((item=>["D103","D104","D105","D106"].includes(item.type)&&!item.gpu&&item.discount&&item.discount.percent))}else if(type==="quad-cpu"){instantData=quadCPU;discountedInstantData=allInstants.filter((item=>["D156","D157","D158"].includes(item.type)&&!item.gpu&&item.discount&&item.discount.percent))}else if(type==="gpu"){instantData=instantsWithGPU;discountedInstantData=allInstants.filter((item=>["D103","D104","D105","D106"].includes(item.type)&&item.hasOwnProperty("gpu")&&item.discount&&item.discount.percent))}else{instantData=allInstants;discountedInstantData=allInstants.filter((item=>!item.gpu&&item.discount&&item.discount.percent))}if(url==="/transcoding/"){instantData=instantsWithGPU.filter((item=>item.gpu.toLowerCase().includes("quadro")&&!item.gpu.toLowerCase().includes("k3100m")))}else if(url==="/rtx30/"){instantData=instantsWithGPU.filter((item=>item.type==="D103"||item.type==="D104"||item.type==="D105"))}else if(url==="/nvme/"){instantData=instantData.filter((item=>item.hdd.includes("NVMe")&&!item.gpu||item.hdd.includes("SATA")&&!item.gpu||item.hdd.includes("SAS")&&!item.gpu))}else if(url==="/artificial-intelligence/"||url==="/machine-learning/"){instantData=instantsWithGPU.filter((item=>item.type.startsWith("D")))}else if(url==="/llm/"||url==="/l40s/"||url==="/h100/"){instantData=instantsWithGPU.filter((item=>item.type==="D104"||item.type==="D105"))}else if(url==="/instinct/"||url==="/dedicated/gpu/pricing/"){instantData=instantsWithGPU}else if(url==="/deals/"){instantData=discountedInstantData}else if(url==="/dedicated/nvme/"){instantData=instantData.filter((item=>item.hdd.includes("NVMe")))}else if(url==="/dedicated/entry/pricing/"){instantData=instantsWithoutGPU.filter((item=>item.type.startsWith("M")))}return instantData}if(deployment==="custom"){let customData=[];if(type==="5-bare-metal"){customData=fiveBareMetalCustom}else if(type==="entry-level"){customData=entryLevelCustom}else if(type==="nvme"){customData=nvmeCustom}else if(type==="dual-cpu"){customData=dualCPUCustom}else if(type==="quad-cpu"){customData=quadCPUCustom}else if(type==="gpu"){customData=customGPUCustom}else{customData=dedicatedPlans}if(url==="/vmware/"){customData=customData.filter((item=>item.type.startsWith("D")))}else if(url==="/transcoding/"){customData=customData.filter((item=>item.type.includes("D")&&item.data.hasOwnProperty("GPU")))}else if(url==="/rtx30/"){customData=customData.filter((item=>item.data.GPU&&(item.type==="D104"||item.type==="D105")))}else if(url==="/nvme/"){customData=customData.filter((item=>item.data.HDD[0].SubItem.includes("NVMe")||item.data.HDD[0].SubItem.includes("SATA")||item.data.HDD[0].SubItem.includes("SAS")))}else if(url==="/artificial-intelligence/"||url==="/machine-learning/"){let customPlan1=dedicatedPlans.find((item=>item.type==="D104"));let customPlan2=dedicatedPlans.find((item=>item.type==="D105"));customData=[customPlan1,customPlan1,customPlan2]}else if(url==="/llm/"){let customPlan=dedicatedPlans.find((item=>item.data.GPU&&item.type==="D105"));customData=[customPlan,customPlan,customPlan]}else if(url==="/l40s/"||url==="/instinct/"||url==="/h100/"){customData=customData.filter((item=>item.data.GPU&&item.type==="D105"))}else if(url==="/dedicated/xtream/"){customData=customData.filter((customDataItem=>{if(customDataItem.data&&customDataItem.data.FlashMedia){const hasExtreme=customDataItem.data.FlashMedia.find((item=>item.Value==="Xtream Codes Support and Management"));if(hasExtreme){return customDataItem}}}))}else if(url==="/dedicated/red5/"){customData=customData.filter((customDataItem=>{if(customDataItem.data&&customDataItem.data.FlashMedia){const hasExtreme=customDataItem.data.FlashMedia.find((item=>item.Value==="Red5"));if(hasExtreme){return customDataItem}}}))}else if(url==="/dedicated/gpu/pricing/"){customData=customData.filter((item=>item.data.GPU));const getD104Plan=customData.find((item=>item.type==="D104"));customData=[...customData,getD104Plan]}else if(url==="/dedicated/entry/pricing/"){customData=customData.filter((item=>item.type.startsWith("M")))}const customServerData=[];customData.forEach(((item,index)=>{const customGPUdata={gpu:null,preselectGPU:false,GPUid:null};const customFlashMediaData={flashMedia:null,preselectStreaming:false,FlashMediaID:null};const customPortSpeedData={portspeed:null,preselectBandwidth:false,PortSpeedID:null};const planConfigurationData=item.data;let defaultConfig=item.data.DefaultConfig;let componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);let prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);const defaultHDD=planConfigurationData.HDD.find((hddItem=>hddItem.SubItem===defaultConfig.EmbeddedRAID[0].SubItem));const cpu=defaultConfig.CPU.Value>1?`${defaultConfig.CPU.Value} x ${defaultConfig.CPU.SubItem}`:`${defaultConfig.CPU.SubItem}`;const ram=defaultConfig.RAM;const hdd=defaultConfig.EmbeddedRAID[0].Value>1?`${defaultConfig.EmbeddedRAID[0].Value} x ${defaultHDD.SubItem}`:`${defaultHDD.SubItem}`;const type=item.type;const traffic=defaultConfig.PortSpeed>=1e3?`${defaultConfig.PortSpeed*.001} Gbps`:defaultConfig.PortSpeed>=1e4?`${defaultConfig.PortSpeed*1e-4} Tbps`:`${defaultConfig.PortSpeed} Mbps`;if(url==="/transcoding/"){if(type==="D103"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA TESLA P4 / QUADRO P5000 2560 CUDA Transcoding Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else if(type==="D104"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA Quadro RTX 5000 3072 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA RTX A6000 10752 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else{if(item.data["GPU"].length>0){customGPUdata.gpu=item.data["GPU"][0].Value;defaultConfig={...defaultConfig,GPU:[customGPUdata.gpu]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices)}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/rtx30/"){if(type==="D104"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA GeForce RTX 3070 5888 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA GeForce RTX 3080 8704 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/artificial-intelligence/"||url==="/machine-learning/"){if(type==="D104"){const matchedGPU=item.data["GPU"].find((matchedItem=>{const desiredValue=index===0?"NVIDIA Ampere A40 10752 CUDA Cores":"NVIDIA Tesla V100 32GB 5120 CUDA Cores";return matchedItem.Value===desiredValue}));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA Ampere A100 40GB 6912 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/llm/"){if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>{let desiredValue=index;if(index===0){desiredValue="NVIDIA H100 80GB 16896 CUDA Cores"}else if(index===1){desiredValue="NVIDIA L40S 18176 CUDA Cores"}else if(index===2){desiredValue="NVIDIA Ampere A100 40GB 6912 CUDA Cores"}return matchedItem.Value===desiredValue}));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/l40s/"){if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA L40S 18176 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/instinct/"){if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="AMD Instinct MI210"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/h100/"){if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="4 x NVIDIA Ampere A100 40GB 6912 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else if(url==="/dedicated/wowza/"){let matchedPortSpeed=undefined;const matchedFlashMedia=item.data["FlashMedia"].find((matchedItem=>matchedItem.Value.includes(["Wowza"])));if(item.type==="M350"){matchedPortSpeed=item.data["PortSpeed"].find((matchedItem=>matchedItem.Value===300));defaultConfig={...defaultConfig,PortSpeed:matchedPortSpeed.Value};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customPortSpeedData.portspeed=matchedPortSpeed.Value;customPortSpeedData.preselectBandwidth=true;customPortSpeedData.PortSpeedID=matchedPortSpeed.Value}if(matchedFlashMedia){defaultConfig={...defaultConfig,FlashMedia:matchedFlashMedia.Value};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customFlashMediaData.flashMedia=matchedFlashMedia.Value;customFlashMediaData.preselectStreaming=true;customFlashMediaData.FlashMediaID=matchedFlashMedia.id}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,flashmedia:customFlashMediaData.flashMedia,preselectStreaming:customFlashMediaData.preselectStreaming,FlashMediaID:customFlashMediaData.FlashMediaID,portspeed:customPortSpeedData.portspeed,preselectBandwidth:customPortSpeedData.preselectBandwidth,PortSpeedID:customPortSpeedData.PortSpeedID})}else if(url==="/dedicated/xtream/"){const matchedFlashMedia=item.data["FlashMedia"].find((matchedItem=>matchedItem.Value.includes(["Xtream"])));if(matchedFlashMedia){defaultConfig={...defaultConfig,FlashMedia:matchedFlashMedia.Value};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customFlashMediaData.flashMedia=matchedFlashMedia.Value;customFlashMediaData.preselectStreaming=true;customFlashMediaData.FlashMediaID=matchedFlashMedia.id}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,flashmedia:customFlashMediaData.flashMedia,preselectStreaming:customFlashMediaData.preselectStreaming,FlashMediaID:customFlashMediaData.FlashMediaID,portspeed:customPortSpeedData.portspeed,preselectBandwidth:customPortSpeedData.preselectBandwidth,PortSpeedID:customPortSpeedData.PortSpeedID})}else if(url==="/dedicated/gpu/pricing/"){if(type==="D103"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA GeForce GTX 1080 Ti 3584 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else if(type==="D104"){const matchedGPU=item.data["GPU"].find((matchedItem=>{const desiredValue=index===4?"NVIDIA Quadro RTX 5000 3072 CUDA Cores":"4 x NVIDIA CMP-170HX Mining GPU 164MH/s";return matchedItem.Value===desiredValue}));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else if(type==="D105"){const matchedGPU=item.data["GPU"].find((matchedItem=>matchedItem.Value==="NVIDIA Ampere A40 10752 CUDA Cores"));if(matchedGPU){defaultConfig={...defaultConfig,GPU:[matchedGPU.Value]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices);customGPUdata.gpu=matchedGPU.Value;customGPUdata.preselectGPU=true;customGPUdata.GPUid=matchedGPU.id}}else{if(item.data["GPU"].length>0){customGPUdata.gpu=item.data["GPU"][0].Value;defaultConfig={...defaultConfig,GPU:[customGPUdata.gpu]};componentPrices=dataModelGlobal.setMockupAllPrices(planConfigurationData,defaultConfig);prices=dataModelGlobal.calculateMockupTotalPrice(planConfigurationData,componentPrices)}}customServerData.push({...item.data,DefaultConfig:defaultConfig,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type,gpu:customGPUdata.gpu,preselectGPU:customGPUdata.preselectGPU,GPUid:customGPUdata.GPUid})}else{customServerData.push({...item.data,price:prices.totalWithoutSetupFee,cpu:cpu,ram:ram,hdd:hdd,traffic:traffic,type:type})}}));return customServerData}};const changeFilters=async(filterKey,filterValue,target,subName)=>{const initialServerFilters=dataModelGlobal.getServersFilters();let updatedServerFilter;if(!subName){updatedServerFilter={...initialServerFilters,[filterKey]:filterValue}}else{updatedServerFilter={...initialServerFilters,[filterKey]:{...initialServerFilters[filterKey],[subName]:filterValue}}}dataModelGlobal.setServersFilters(updatedServerFilter);if(filterKey==="pricing"){await uiGlobal.renderServers({target:target,norender:true})}else{await uiGlobal.renderServers({target:target})}};$(document).on("click",'.filter[data-type="hardware"] li',(async function(event){const target=event.currentTarget;const serversList=document.getElementById("servers-list");const type=target.dataset.target;const isDefaultvalue=target.classList.contains("default");const name=["cpu","gpu","hdd","os","traffic","ram"].includes(type)?"hardware":"location";const value=isDefaultvalue?null:target.textContent.trim();await changeFilters(name,value,serversList,type)}));$(document).on("click",'.filter[data-type="location"] li',(async function(event){const target=event.currentTarget;const serversList=document.getElementById("servers-list");const isDefaultvalue=target.classList.contains("default");const name="location";const value=isDefaultvalue?null:target.textContent.trim();await changeFilters(name,value,serversList)}));$(document).on("click",'input[type="radio"]',(async function(){const target=document.getElementById("servers-list");const name=this.name;const value=this.value;await changeFilters(name,value,target)}));$(document).on("click","#reset-servers-filters",(async function(){const target=document.getElementById("servers-list");dataModelGlobal.setServersFilters("default");uiGlobal.setFiltersToDefault();await uiGlobal.renderServers({target:target})}));$(document).on("change",'.filter.desktop[data-type="pricing"] input',(async function(){const initialServerFilters=dataModelGlobal.getServersFilters();const target=document.getElementById("servers-list");let value=null;let obj=initialServerFilters.pricing;if(this.className==="slider-1"){const rangeMin=document.querySelector(".filter-pricing-wrapper.desktop span.range1").innerHTML;value=parseInt(rangeMin);obj={...obj,minPrice:value}}else{const rangeMax=document.querySelector(".filter-pricing-wrapper.desktop span.range2").innerHTML;value=parseInt(rangeMax);obj={...obj,maxPrice:value}}const newData={...initialServerFilters,pricing:obj};dataModelGlobal.setServersFilters(newData);await uiGlobal.renderServers({target:target,norender:true})}));$(document).on("change",'.filter.mobile[data-type="pricing"] input',(async function(){const initialServerFilters=dataModelGlobal.getServersFilters();const target=document.getElementById("servers-list");let value=null;let obj=initialServerFilters.pricing;if(this.className==="slider-1"){const rangeMin=document.querySelector(".filter-pricing-wrapper.mobile span.range1").innerHTML;value=parseInt(rangeMin);obj={...obj,minPrice:value}}else{const rangeMax=document.querySelector(".filter-pricing-wrapper.mobile span.range2").innerHTML;value=parseInt(rangeMax);obj={...obj,maxPrice:value}}const newData={...initialServerFilters,pricing:obj};dataModelGlobal.setServersFilters(newData);await uiGlobal.renderServers({target:target,norender:true})}));$(document).on("click","button.show-more-duplicate",(async function(){const target=this.dataset.duplicate;const showLessButton=document.querySelector(`button.show-less-duplicate[data-duplicate="${target}"]`);showLessButton.classList.remove("d-none");this.classList.add("d-none");const allDuplicatesServerCards=document.querySelectorAll(`#servers-list .server-card.hiddeDuplicate[data-duplicate="${target}"]`);allDuplicatesServerCards.forEach((item=>{if(item.classList.contains("d-none")){item.classList.remove("d-none")}else{item.classList.add("d-none")}}))}));$(document).on("click","button.show-less-duplicate",(async function(){const target=this.dataset.duplicate;const showLessButton=document.querySelector(`button.show-more-duplicate[data-duplicate="${target}"]`);showLessButton.classList.remove("d-none");this.classList.add("d-none");const allDuplicatesServerCards=document.querySelectorAll(`#servers-list .server-card.hiddeDuplicate[data-duplicate="${target}"]`);allDuplicatesServerCards.forEach((item=>{if(item.classList.contains("d-none")){item.classList.remove("d-none")}else{item.classList.add("d-none")}}))}));const handleHeaderSpacing=debounce((()=>{const navigationHeader=document.getElementById("navigation-headerv2");const serversFilter=document.querySelector("#servers-filter-desktop");const filterButtonMobile=document.querySelector(".show-filter");if(navigationHeader){const navigationHeaderHeight=navigationHeader.getBoundingClientRect().height;document.body.style.paddingTop=`${navigationHeaderHeight}px`;if(serversFilter){serversFilter.style.top=`${navigationHeaderHeight}px`;serversFilter.style.maxHeight=`calc(100vh - ${navigationHeaderHeight}px)`}if(filterButtonMobile){filterButtonMobile.style.top=`calc(${navigationHeaderHeight}px + 2rem)`}}}),500);function initStaticEvents(){const headerContainer=document.querySelector(".included-with-server-header");if(headerContainer){headerContainer.addEventListener("click",displayInfoContainer)}handleHeaderSpacing();window.addEventListener("resize",handleHeaderSpacing);document.addEventListener("click",(event=>{resetClickOutside();handleAvatarSection(event)}))}function initDynamicallyEvents(){const languageSelectorContainer=document.getElementById("language-selector-container");if(languageSelectorContainer){languageSelectorContainer.addEventListener("click",selectLanguage)}if(!dataModelGlobal.isOrder){const dropdownButtons=document.querySelectorAll(".custom-dropdown-button");if(dropdownButtons&&dropdownButtons.length){dropdownButtons.forEach((item=>item.addEventListener("click",toggleDropdown)))}}}const handleAvatarSection=event=>{event.stopPropagation();const{target:target}=event;const popups=document.querySelectorAll(".header-profile-popup");const isAvatarProfile=target.className.includes("header-profile");const isPopup=target.nextElementSibling&&target.nextElementSibling.className.includes("header-profile-popup");const icons=document.querySelectorAll(".user-profile-avatar .header-profile .fa-solid");const outsideClick=!isAvatarProfile&&!target.matches(".header-profile-popup, .header-profile-popup *");if(outsideClick&&popups.length&&icons.length){popups.forEach((item=>item.classList.remove("active")));icons.forEach((item=>{item.classList.replace("fa-chevron-up","fa-chevron-down")}));return}if(!isAvatarProfile||!isPopup&&!icons.length){return}const avatarPopup=target.nextElementSibling;avatarPopup.classList.toggle("active");icons.forEach((item=>{if(avatarPopup.classList.contains("active")){item.classList.replace("fa-chevron-down","fa-chevron-up")}else{item.classList.replace("fa-chevron-up","fa-chevron-down")}}))};function setUserInfoLoginData(infoData){if(!infoData){console.error("info data not found");return}const{userInfo:userInfo,userAccounts:userAccounts}=infoData;if(!userInfo||!infoData.aid||!userAccounts){console.error("userInfo, aid or accounts are not found!");return}const{Email:Email,FirstName:FirstName,LastName:LastName}=userInfo;const SelectedAid=parseInt(infoData.aid);const userProfileStorageKey="userInfoLoginData";const selectedAccount=userAccounts.find((item=>item.AccountID===SelectedAid));const userInfoLoginData={Email:Email,FirstName:FirstName,LastName:LastName,SelectedAid:SelectedAid,AccountName:selectedAccount&&selectedAccount.AccountName?selectedAccount.AccountName:"Account name not set"};localStorage.setItem(userProfileStorageKey,JSON.stringify(userInfoLoginData))}$(document).on("click",".select-menu",(function(){const optionMenu=this;const allSelectMenus=document.querySelectorAll(".select-menu");optionMenu.classList.toggle("active");const options=optionMenu.children[1];const target=options.dataset.target;const allOptions=document.querySelectorAll(".options");allSelectMenus.forEach((item=>{if(item.dataset.target!==target){item.classList.remove("active")}}));options.classList.toggle("active");allOptions.forEach((item=>{if(item.dataset.target!==target){item.classList.remove("active")}}))}));$(document).on("click","li.option",(function(){if(this.children[1]!==undefined){const value=this.children[1].innerText;const optionText=this.parentElement.parentElement.children[0].children[0];optionText.innerText=value}}));$(document).on("click","body",(function(e){const traget=e.target;const allOptions=document.querySelectorAll("ul.options");const allSelectMenu=document.querySelectorAll(".select-menu");if(!traget.classList.contains("select-menu")){allOptions.forEach((item=>{item.classList.remove("active")}));allSelectMenu.forEach((item=>{item.classList.remove("active")}))}}));$(document).on("click",".show-filter",(function(){const mobileFilterContainer=document.querySelector(".mobile-filter-container");const body=document.querySelector("body");body.style.overflow="hidden";mobileFilterContainer.classList.remove("d-none")}));$(document).on("click",".mobile-filter-container",(function(event){const body=document.querySelector("body");const target=event.target;if(this.className===target.className){body.style.overflow="inherit";this.classList.add("d-none")}}));$(document).on("click",".closing-button",(function(event){const body=document.querySelector("body");const target=event.target;const mobileFilterContainer=document.querySelector(".mobile-filter-container");if(this.className===target.className){body.style.overflow="inherit";mobileFilterContainer.classList.add("d-none")}}));$(document).on("click","#show-hardware-components",(function(){const hardwareComponents=document.querySelector(".hardware-components");if(hardwareComponents&&hardwareComponents.classList.contains("d-none")){hardwareComponents.classList.remove("d-none");hardwareComponents.classList.add("d-flex")}else if(hardwareComponents&&hardwareComponents.classList.contains("d-flex")){hardwareComponents.classList.remove("d-flex");hardwareComponents.classList.add("d-none")}}));function desktopSlideOne(){let desktopSliderOne=document.querySelector(".filter-pricing-wrapper.desktop .slider-1");let desktopSliderTwo=document.querySelector(".filter-pricing-wrapper.desktop .slider-2");let desktopDisplayValOne=document.querySelector(".filter-pricing-wrapper.desktop .range1");if(!desktopSliderOne||!desktopSliderTwo||!desktopDisplayValOne){return}let desktopMinGap=0;if(parseInt(desktopSliderTwo.value)-parseInt(desktopSliderOne.value)<=desktopMinGap){desktopSliderOne.value=parseInt(desktopSliderTwo.value)-desktopMinGap}desktopDisplayValOne.textContent=desktopSliderOne.value}function desktopSlideTwo(){let desktopSliderOne=document.querySelector(".filter-pricing-wrapper.desktop .slider-1");let desktopSliderTwo=document.querySelector(".filter-pricing-wrapper.desktop .slider-2");let desktopDisplayValTwo=document.querySelector(".filter-pricing-wrapper.desktop .range2");if(!desktopSliderOne||!desktopSliderTwo||!desktopDisplayValTwo){return}let desktopMinGap=0;if(parseInt(desktopSliderTwo.value)-parseInt(desktopSliderOne.value)<=desktopMinGap){desktopSliderTwo.value=parseInt(desktopSliderOne.value)+desktopMinGap}desktopDisplayValTwo.textContent=desktopSliderTwo.value}function mobileSlideOne(){let desktopSliderOne=document.querySelector(".filter-pricing-wrapper.mobile .slider-1");let desktopSliderTwo=document.querySelector(".filter-pricing-wrapper.mobile .slider-2");let desktopDisplayValOne=document.querySelector(".filter-pricing-wrapper.mobile .range1");if(!desktopSliderOne||!desktopSliderTwo||!desktopDisplayValOne){return}let desktopMinGap=0;if(parseInt(desktopSliderTwo.value)-parseInt(desktopSliderOne.value)<=desktopMinGap){desktopSliderOne.value=parseInt(desktopSliderTwo.value)-desktopMinGap}desktopDisplayValOne.textContent=desktopSliderOne.value}function mobileSlideTwo(){let desktopSliderOne=document.querySelector(".filter-pricing-wrapper.mobile .slider-1");let desktopSliderTwo=document.querySelector(".filter-pricing-wrapper.mobile .slider-2");let desktopDisplayValTwo=document.querySelector(".filter-pricing-wrapper.mobile .range2");if(!desktopSliderOne||!desktopSliderTwo||!desktopDisplayValTwo){return}let desktopMinGap=0;if(parseInt(desktopSliderTwo.value)-parseInt(desktopSliderOne.value)<=desktopMinGap){desktopSliderTwo.value=parseInt(desktopSliderOne.value)+desktopMinGap}desktopDisplayValTwo.textContent=desktopSliderTwo.value}window.onload=function(){desktopSlideOne();desktopSlideTwo();mobileSlideOne();mobileSlideTwo()};$(document).on("input",".filter-pricing-wrapper.desktop .slider-container .slider-1",(function(){desktopSlideOne()}));$(document).on("input",".filter-pricing-wrapper.desktop .slider-container .slider-2",(function(){desktopSlideTwo()}));$(document).on("input",".filter-pricing-wrapper.mobile .slider-container .slider-1",(function(){mobileSlideOne()}));$(document).on("input",".filter-pricing-wrapper.mobile .slider-container .slider-2",(function(){mobileSlideTwo()}));return{initDynamicallyEvents:initDynamicallyEvents,initStaticEvents:initStaticEvents,resetClickOutside:resetClickOutside,toggleDropdown:toggleDropdown,initFilterSelect:initFilterSelect,showMoreConfigs:showMoreConfigs,initShowMoreConfigsBtns:initShowMoreConfigsBtns,setUserInfoLoginData:setUserInfoLoginData,formatServerData:formatServerData}}();