{"version":3,"sources":["components/Navigation.js","components/SearchBar.js","components/DelayRender.js","components/Services.js","components/SLAestimationCategory.js","components/SLAestimationTier.js","components/SLAestimation.js","components/ServiceAlert.js","components/OutsideClickHandle.js","components/TiersDropDownMenu.js","components/MainPanel.js","components/Home.js","App.js","registerServiceWorker.js","index.js"],"names":["Navigation","props","this","visible","contents","renderCategoriesTable","dataSource","selectedCategory","onSelectCategory","serviceCategories","selectCategory","className","aria-labelledby","map","serviceCategory","key","categoryName","onClick","Component","SearchBar","id","placeholder","onKeyUp","ev","onTextSearchEnter","currentTarget","value","type","onClearSearch","DelayRender","state","hidden","setTimeout","setState","waitBeforeShow","src","children","Services","length","renderServicesTable","onSelectService","services","selectService","service","name","title","sla","imageFile","notes","href","slaAgreementUrl","target","SLAestimationCategory","catServices","renderSLACategoryTable","tierName","onDeleteEstimationCategory","onDeleteEstimationService","onExpandCollapseEstimationCategory","deleteEstimationCategory","deleteEstimationService","expandCollapseEstimationCategory","svc","SLAestimationTier","tier","tiers","find","t","pairedRegion","tierServices","catContents","i","tierSla","calculateTierTotal","downTime","calculateDownTime","downTimeYear","calculateDownTimeYear","categories","filter","o","catContent","renderSLATierTable","push","onExpandCollapseEstimationTier","getSelectedRegionOption","onChange","onSelectRegion","onDeleteEstimationTier","Math","floor","round","SLAestimation","slaEstimationData","tierContents","tierContent","renderSlaEstimationTier","calculateTierSla","onSelectTierRegion","onExpandAll","onCollapseAll","onDeleteAll","slaTotal","slaTotalMultiRegion","downTimeMultiRegion","downTimeMultiRegionYear","deleteEstimationTier","expandCollapseEstimationTier","selectRegion","ServiceAlert","OutsideClickHandle","setWrapperRef","bind","handleClickOutside","document","addEventListener","removeEventListener","node","wrapperRef","event","contains","onClickOutside","ref","TiersDropDownMenu","evt","content","parentElement","onChangeTier","onDeleteTier","onAddTier","objRef","outsideClicked","displayHideContent","currentTier","class","changeTier","tooltip","deleteTier","maxLength","addTier","MainPanel","slaEstimation","JSON","parse","localStorage","getItem","getResetTiers","calculateSla","calculateSlaMultiRegion","selectedServices","addServiceClass","loading","searchTextEnter","clearSearch","deleteAll","expandAll","collapseAll","setTier","selectTierRegion","displayServices","allservices","textValue","toLowerCase","includes","e","total","x","regionOption","undefined","Number","EPSILON","eventInfo","selectedService","setItem","stringify","updownimage","divPanel","category","filteredEstimation","innerHTML","trim","concat","window","confirm","filteredTiers","options","selectedIndex","index","findIndex","totalsPanel","populateServiceCategoryData","renderMainPanel","a","fetch","response","json","data","reduce","y","Home","displayName","App","exact","path","component","isLocalhost","Boolean","location","hostname","match","registerValidSW","swUrl","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","controller","console","log","catch","error","baseUrl","getElementsByTagName","getAttribute","rootElement","getElementById","ReactDOM","render","basename","URL","process","origin","status","headers","get","indexOf","ready","unregister","reload","checkValidServiceWorker","registerServiceWorker"],"mappings":"kUAGaA,G,MAAb,kDAEI,WAAYC,GAAQ,uCACVA,GAHd,0CAqBI,WACI,GAAIC,KAAKD,MAAME,QAAS,CACpB,IAAIC,EAAWJ,EAAWK,sBAAsBH,KAAKD,MAAMK,WAAYJ,KAAKD,MAAMM,iBAAkBL,KAAKD,MAAMO,kBAC/G,OACI,6BACKJ,GAKT,OAAQ,iCA/BpB,oCAMI,SAA6BK,EAAmBF,EAAkBG,GAC9D,OACI,2BAAOC,UAAU,sBAAsBC,kBAAgB,cACnD,+BACKH,EAAkBI,KAAI,SAAAC,GAAe,OAClC,wBAAIC,IAAKD,EAAgBE,cACrB,wBAAIL,UAAWJ,IAAqBO,EAAgBE,aAAe,4BAA8B,oBAC7FC,QAAS,kBAAMP,EAAeI,KAAmBA,EAAgBE,wBAbjG,GAAgCE,cCAnBC,EAAb,kDAEI,WAAYlB,GAAQ,uCACVA,GAHd,0CAMI,WAAU,IAAD,OACL,OACI,yBAAKU,UAAU,4BACX,2BAAOS,GAAG,YAAYT,UAAU,qBAAqBU,YAAY,kBAAkBC,QAAS,SAAAC,GAAE,OAAI,EAAKtB,MAAMuB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BxB,OAAOyB,SAASC,UAEa,UAA7B1B,OAAOyB,SAASC,UAEhB1B,OAAOyB,SAASC,SAASC,MACvB,2DA6BJ,SAASC,EAAiBC,GACxBC,UAAUC,cACPC,SAASH,GACTI,MAAK,SAAAC,GACJA,EAAaC,cAAgB,WAC3B,IAAMC,EAAmBF,EAAaG,WACtCD,EAAiBE,cAAgB,WACA,cAA3BF,EAAiB5L,QACfsL,UAAUC,cAAcQ,WAK1BC,QAAQC,IAAI,6CAKZD,QAAQC,IAAI,4CAMrBC,OAAM,SAAAC,GACLH,QAAQG,MAAM,4CAA6CA,MC/DjE,IAAMC,EAAUhH,SAASiH,qBAAqB,QAAQ,GAAGC,aAAa,QAChEC,EAAcnH,SAASoH,eAAe,QAE5CC,IAASC,OACP,kBAAC,IAAD,CAAeC,SAAUP,GACvB,kBAAC,EAAD,OAEFG,GDMa,WACb,GAA6C,kBAAmBjB,UAAW,CAGzE,GADkB,IAAIsB,IAAIC,GAAwBrD,OAAOyB,UAC3C6B,SAAWtD,OAAOyB,SAAS6B,OAIvC,OAGFtD,OAAOnE,iBAAiB,QAAQ,WAC9B,IAAMgG,EAAK,UAAMwB,GAAN,sBAEP9B,EAwCV,SAAkCM,GAEhClB,MAAMkB,GACHI,MAAK,SAAArB,GAGkB,MAApBA,EAAS2C,SACuD,IAAhE3C,EAAS4C,QAAQC,IAAI,gBAAgBC,QAAQ,cAG7C5B,UAAUC,cAAc4B,MAAM1B,MAAK,SAAAC,GACjCA,EAAa0B,aAAa3B,MAAK,WAC7BjC,OAAOyB,SAASoC,eAKpBjC,EAAgBC,MAGnBa,OAAM,WACLF,QAAQC,IACN,oEA5DAqB,CAAwBjC,GAGxBD,EAAgBC,OCvBxBkC,K","file":"static/js/main.c1f897b9.chunk.js","sourcesContent":["import React, { Component } from 'react';\nimport './Styles.css';\n\nexport class Navigation extends Component {\n\n constructor(props) {\n super(props);\n }\n\n static renderCategoriesTable(serviceCategories, selectedCategory, selectCategory) {\n return (\n \n \n {serviceCategories.map(serviceCategory =>\n \n \n \n )}\n \n
selectCategory(serviceCategory)}>{serviceCategory.categoryName}
\n );\n }\n\n render() {\n if (this.props.visible) {\n let contents = Navigation.renderCategoriesTable(this.props.dataSource, this.props.selectedCategory, this.props.onSelectCategory);\n return (\n
\n {contents}\n
\n );\n }\n else {\n return (
)\n }\n }\n}\n","import React, { Component } from 'react';\nimport './Styles.css';\n\nexport class SearchBar extends Component {\n\n constructor(props) {\n super(props);\n }\n\n render() {\n return (\n
\n this.props.onTextSearchEnter(ev.currentTarget.value)}>\n \n
\n );\n }\n}\n","import React, { Component } from 'react';\nimport './Styles.css';\nimport PropTypes from 'prop-types';\n\nexport class DelayRender extends Component {\n\n constructor(props) {\n super(props);\n this.state = { hidden: true };\n }\n\n componentDidMount() {\n setTimeout(() => {\n this.setState({ hidden: false });\n }, this.props.waitBeforeShow);\n }\n\n render() {\n return this.state.hidden ?

: this.props.children;\n }\n}\n\nDelayRender.propTypes = { waitBeforeShow: PropTypes.number.isRequired };\n\nexport default DelayRender;","import React, { Component } from 'react';\nimport { DelayRender } from './DelayRender';\nimport './Styles.css';\n\nexport class Services extends Component {\n\n static renderServicesTable(services, selectService) {\n return (\n
\n {services.map(service =>\n
selectService(ev, service.name)} title={\"SLA: \" + service.sla + \" %\"}>\n
\n

{service.name}

\n
{service.notes}
\n
SLA, legal info
\n
\n )}\n
\n );\n }\n\n render() {\n if (this.props.dataSource.length > 0) {\n let contents = Services.renderServicesTable(this.props.dataSource, this.props.onSelectService);\n\n return (\n \n
\n {contents}\n
\n
\n );\n }\n else {\n return (

Sorry, there are no products that match your search

);\n }\n }\n}\n","import React, { Component } from 'react';\nimport './Styles.css';\n\nexport class SLAestimationCategory extends Component {\n\n static renderSLACategoryTable(tierName, categoryName, catServices, deleteEstimationCategory, deleteEstimationService, expandCollapseEstimationCategory)\n {\n return (\n
\n
\n
\n
{categoryName} Category
\n
deleteEstimationCategory(ev)}>
\n
\n
\n
\n {catServices.map(svc =>\n
\n
\n
\n
\n
\n
\n
deleteEstimationService(ev)}>
\n
\n
\n
\n
\n

{svc.name}

\n

SLA: {svc.sla} %

\n
\n
\n
\n )}\n
\n
\n );\n }\n\n render() {\n if (this.props.catServices.length > 0) {\n let contents = SLAestimationCategory.renderSLACategoryTable(this.props.tierName, this.props.categoryName, this.props.catServices,\n this.props.onDeleteEstimationCategory, this.props.onDeleteEstimationService , this.props.onExpandCollapseEstimationCategory);\n\n return (\n
\n
\n {contents}\n
\n );\n }\n\n return (
);\n }\n}\n","import React, { Component } from 'react';\nimport { SLAestimationCategory } from './SLAestimationCategory';\nimport './Styles.css';\n\nexport class SLAestimationTier extends Component {\n\n static renderSLATierTable(tierName, categoryName, catServices, deleteEstimationCategory, deleteEstimationService,\n expandCollapseEstimationCategory) {\n\n return (\n
\n
\n \n
\n
\n );\n }\n\n getSelectedRegionOption(tier) {\n return this.props.tiers.find(t => t.name === tier).pairedRegion;\n }\n\n\n render() {\n if (this.props.tierServices.length > 0) {\n\n const tierSla = this.props.calculateTierTotal(this.props.tierName);\n const downTime = this.props.calculateDownTime(tierSla);\n const downTimeYear = this.props.calculateDownTimeYear(tierSla);\n\n const categories = this.props.categories;\n var catContents = [];\n\n for (var i = 0; i < categories.length; i++) {\n var catServices = this.props.tierServices\n .filter(o => o.service.categoryName === categories[i])\n .map(svc => svc.service);\n\n if (catServices.length > 0) {\n let catContent = SLAestimationTier.renderSLATierTable(this.props.tierName, categories[i], catServices,\n this.props.onDeleteEstimationCategory, this.props.onDeleteEstimationService, this.props.onExpandCollapseEstimationCategory);\n\n catContents.push(catContent);\n }\n }\n\n return (\n
\n
\n
\n
{this.props.tierName} Tier
\n
\n
Deploy to Paired Azure Regions:
\n
\n \n
\n
\n
this.props.onDeleteEstimationTier(ev)}>
\n
\n
\n {catContents}\n
\n
\n
\n
\n

{this.props.tierName} Tier Composite SLA: {tierSla} %

\n

Maximum acceptable downtime /Month: {Math.floor(downTime)}m {Math.round((downTime - Math.floor(downTime)) * 60)}s

\n

Maximum acceptable downtime /Year: {Math.floor(downTimeYear)}m {Math.round((downTimeYear - Math.floor(downTimeYear)) * 60)}s

\n
\n
\n
\n );\n }\n\n return (
);\n }\n}\n","import React, { Component } from 'react';\nimport { SLAestimationTier } from './SLAestimationTier';\nimport './Styles.css';\n\nexport class SLAestimation extends Component {\n\n static renderSlaEstimationTier(tier, services, tiers, categories, deleteEstimationTier, expandCollapseEstimationTier,\n deleteEstimationCategory, deleteEstimationService, expandCollapseEstimationCategory, calculateTierSla, calculateDownTime, calculateDownTimeYear,selectRegion) {\n return (\n
\n \n
\n );\n }\n\n render() {\n if (this.props.slaEstimationData.length > 0) {\n const tiers = this.props.tiers.map(t => t.name);\n var tierContents = [];\n\n for (var i = 0; i < tiers.length; i++) {\n var tierServices = this.props.slaEstimationData\n .filter(o => o.tier === tiers[i])\n .map(svc => svc.key);\n\n if (tierServices.length > 0) {\n var tierContent = SLAestimation.renderSlaEstimationTier(tiers[i], tierServices,\n this.props.tiers,\n this.props.categories,\n this.props.onDeleteEstimationTier,\n this.props.onExpandCollapseEstimationTier,\n this.props.onDeleteEstimationCategory,\n this.props.onDeleteEstimationService,\n this.props.onExpandCollapseEstimationCategory,\n this.props.calculateTierSla,\n this.props.calculateDownTime,\n this.props.calculateDownTimeYear,\n this.props.onSelectTierRegion);\n\n tierContents.push(tierContent);\n }\n }\n\n return (\n
\n
\n
this.props.onExpandAll(ev)}>
\n
this.props.onCollapseAll(ev)}>
\n
\n
\n
\n
\n {tierContents}\n
\n
\n
\n
\n
\n
Single Region Deployment
\n

Composite SLA: {this.props.slaTotal} %

\n

Maximum acceptable downtime /Month: {Math.floor(this.props.downTime)}m {Math.round((this.props.downTime - Math.floor(this.props.downTime))*60)}s

\n

Maximum acceptable downtime /Year: {Math.floor(this.props.downTimeYear)}m {Math.round((this.props.downTimeYear - Math.floor(this.props.downTimeYear)) * 60)}s

\n
\n
Multi region Deployment
\n

Composite SLA: {this.props.slaTotalMultiRegion} %

\n

Maximum acceptable downtime /Month: {Math.floor(this.props.downTimeMultiRegion)}m {Math.round((this.props.downTimeMultiRegion - Math.floor(this.props.downTimeMultiRegion)) * 60)}s

\n

Maximum acceptable downtime /Year: {Math.floor(this.props.downTimeMultiRegionYear)}m {Math.round((this.props.downTimeMultiRegionYear - Math.floor(this.props.downTimeMultiRegionYear)) * 60)}s

\n
\n
Some services have special considerations when designing applications for availability and service level guarantees. Review the Microsoft Azure Service Level Agreements documentation for details.
\n
\n
\n
\n );\n }\n\n return (
);\n }\n}\n","import React, { Component } from 'react';\n\nexport class ServiceAlert extends Component {\n\n constructor(props) {\n super(props);\n this.state = {};\n }\n\n render() {\n\n return (\n
\n Adding Service...\n
\n );\n }\n}\n","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\n\nexport class OutsideClickHandle extends Component {\n constructor(props) {\n super(props);\n\n this.setWrapperRef = this.setWrapperRef.bind(this);\n this.handleClickOutside = this.handleClickOutside.bind(this);\n }\n\n componentDidMount() {\n document.addEventListener('mousedown', this.handleClickOutside);\n }\n\n componentWillUnmount() {\n document.removeEventListener('mousedown', this.handleClickOutside);\n }\n\n setWrapperRef(node) {\n this.wrapperRef = node;\n }\n\n handleClickOutside(event) {\n if (this.wrapperRef && !this.wrapperRef.contains(event.target)) {\n this.props.onClickOutside(this.wrapperRef);\n }\n }\n\n render() {\n return
{this.props.children}
;\n }\n}\n\nOutsideClickHandle.propTypes = {\n children: PropTypes.element.isRequired,\n};\n","import React, { Component } from 'react';\nimport { OutsideClickHandle } from './OutsideClickHandle';\nimport './Styles.css';\n\nexport class TiersDropDownMenu extends Component {\n\n constructor(props) {\n super(props);\n }\n\n displayHideContent(evt) {\n const content = evt.currentTarget.parentElement.children[1];\n\n content.className = content.className === \"dropdown-content\" ? \"dropdown-content-show\" : \"dropdown-content\";\n }\n\n changeTier(ev) {\n ev.currentTarget.parentElement.parentElement.className = \"dropdown-content\";\n this.props.onChangeTier(ev);\n }\n\n deleteTier(ev) {\n this.props.onDeleteTier(ev);\n }\n\n addTier(ev) {\n this.props.onAddTier(ev);\n }\n\n outsideClicked(objRef) {\n const content = objRef.children[0].children[1].children[1];\n\n content.className = \"dropdown-content\";\n }\n\n render() {\n return (\n this.outsideClicked(ref)}>\n
\n
\n Tier\n
\n
\n
this.displayHideContent(ev)}>\n
{this.props.currentTier}
\n
\n
\n
\n {this.props.tiers.map(tier =>\n
\n
this.changeTier(ev)}>{tier.name}
\n
this.deleteTier(ev)}>
\n
\n )}\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n );\n }\n}\n","import React, { Component } from 'react';\nimport { Navigation } from './Navigation';\nimport { SearchBar } from './SearchBar';\nimport { Services } from './Services';\nimport { SLAestimation } from './SLAestimation';\nimport { ServiceAlert } from './ServiceAlert';\nimport { TiersDropDownMenu } from './TiersDropDownMenu';\n\nexport class MainPanel extends Component {\n\n constructor(props) {\n super(props);\n\n const slaEstimation = JSON.parse(localStorage.getItem('slaEstimation')) || [];\n const categories = [];\n\n const tiers = JSON.parse(localStorage.getItem('tiers')) || this.getResetTiers();\n const slaTotal = this.calculateSla(slaEstimation);\n const slaTotalMultiRegion = this.calculateSlaMultiRegion(slaEstimation, tiers)\n const downTime = this.calculateDownTime(slaTotal)\n const downTimeYear = this.calculateDownTimeYear(slaTotal)\n const downTimeMultiRegion = this.calculateDownTime(slaTotalMultiRegion)\n const downTimeMultiRegionYear = this.calculateDownTimeYear(slaTotalMultiRegion)\n\n this.state = {\n serviceCategories: [], selectedServices: [], selectedCategory: \"\",\n categories: categories,\n tiers: tiers,\n slaEstimation: slaEstimation,\n slaTotal: slaTotal,\n slaTotalMultiRegion: slaTotalMultiRegion,\n downTime: downTime,\n downTimeYear: downTimeYear,\n downTimeMultiRegion: downTimeMultiRegion,\n downTimeMultiRegionYear: downTimeMultiRegionYear,\n addServiceClass: \"addservice-alert-hide\",\n currentTier: tiers[0].name,\n filter: false, loading: true\n };\n this.selectCategory = this.selectCategory.bind(this);\n this.selectService = this.selectService.bind(this);\n this.searchTextEnter = this.searchTextEnter.bind(this);\n this.clearSearch = this.clearSearch.bind(this);\n this.deleteEstimationCategory = this.deleteEstimationCategory.bind(this);\n this.deleteEstimationService = this.deleteEstimationService.bind(this);\n this.expandCollapseEstimationCategory = this.expandCollapseEstimationCategory.bind(this);\n this.deleteEstimationTier = this.deleteEstimationTier.bind(this);\n this.expandCollapseEstimationTier = this.expandCollapseEstimationTier.bind(this);\n this.deleteAll = this.deleteAll.bind(this);\n this.expandAll = this.expandAll.bind(this);\n this.collapseAll = this.collapseAll.bind(this);\n this.setTier = this.setTier.bind(this);\n this.addTier = this.addTier.bind(this);\n this.deleteTier = this.deleteTier.bind(this);\n this.selectTierRegion = this.selectTierRegion.bind(this);\n this.calculateTierSla = this.calculateTierSla.bind(this);\n }\n\n getResetTiers() {\n return [\n { name: 'Global', pairedRegion: 'no' },\n { name: 'Web', pairedRegion: 'no' },\n { name: 'Api', pairedRegion: 'no' },\n { name: 'Data', pairedRegion: 'no' },\n { name: 'Security', pairedRegion: 'no' },\n { name: 'Network', pairedRegion: 'no' },\n\n ]\n }\n\n selectCategory(selectedCategory) {\n this.setState({\n selectedServices: selectedCategory.services,\n selectedCategory: selectedCategory.categoryName\n });\n }\n\n clearSearch(evt) {\n evt.currentTarget.parentElement.children[0].value = \"\";\n\n let displayServices = this.state.allservices.filter(o => o.categoryName === this.state.selectedCategory);\n\n this.setState({\n selectedServices: displayServices,\n filter: false\n });\n }\n\n searchTextEnter(textValue) {\n let displayServices = [];\n let filter = false;\n\n if (textValue.length > 0) {\n displayServices = this.state.allservices.filter(o => o.name.toLowerCase().includes(textValue.toLowerCase()));\n filter = true;\n }\n else {\n displayServices = this.state.allservices.filter(o => o.categoryName === this.state.selectedCategory);\n }\n\n this.setState({\n selectedServices: displayServices,\n filter: filter\n });\n }\n\n calculateTierSla(tier) {\n const slaEstimation = [...this.state.slaEstimation];\n\n return this.calculateSla(slaEstimation.filter(e => e.tier === tier));\n }\n\n calculateSlaMultiRegion(slaEstimation, tiers) {\n if (slaEstimation.length == 0)\n return 0;\n\n let total = 1;\n let services = slaEstimation.map(x => x.key);\n\n for (var i = 0; i < services.length; i++) {\n const tierName = services[i].tier;\n const tier = tiers.find(t => t.name == tierName)\n var regionOption = 'no';\n\n if(tier != undefined)\n regionOption = tier.pairedRegion;\n\n const sla = services[i].service.sla/100;\n const value = regionOption === 'yes' ? 1-((1-sla) * (1-sla)) : sla;\n\n total = total * value;\n }\n\n return Math.round(((total * 100) + Number.EPSILON) * 1000000) / 1000000;\n }\n\n calculateSla(slaEstimation) {\n\n if (slaEstimation.length == 0)\n return 0;\n\n if (slaEstimation.length == 1)\n return slaEstimation[0].key.service.sla;\n\n let total = 1;\n let services = slaEstimation.map(x => x.key);\n\n for (var i = 0; i < services.length; i++) {\n total = total * services[i].service.sla / 100;\n }\n\n return Math.round(((total * 100) + Number.EPSILON) * 1000000) / 1000000;\n }\n\n calculateDownTime(sla) {\n if (sla == 0)\n return 0;\n // 365/12 = 30.41666666666667 days per month\n // 0.41666666666667 * 24 = 10 hours\n // 30*24*60 + 10*60 = 43200 + 600 = 43800 minutes per month\n return Math.round((43800 * (1 - (sla / 100)) + Number.EPSILON) * 100000) / 100000;\n }\n\n calculateDownTimeYear(sla) {\n if (sla == 0)\n return 0;\n\n //365*4 + 1 = 1461 days in 4 years\n //1461/4 = 365.25 days in average\n //365*24*60 + 0.25*24*60 = 525600 + 360 = 525960\n return Math.round((525960 * (1 - (sla / 100)) + Number.EPSILON) * 100000) / 100000;\n }\n\n \n selectService(eventInfo, selectedService) {\n const sourceId = eventInfo.target.id;\n if (sourceId === \"service-hl\")\n return;\n\n const service = this.state.selectedServices.find(o => o.name === selectedService);\n const slaEstimation = [...this.state.slaEstimation];\n\n const key = { id: this.state.slaEstimation.length, service: service, tier: this.state.currentTier}\n\n slaEstimation.push({ id: this.state.slaEstimation.length, key: key, tier: this.state.currentTier });\n\n const slaTotal = this.calculateSla(slaEstimation);\n const downTime = this.calculateDownTime(slaTotal) \n const downTimeYear = this.calculateDownTimeYear(slaTotal)\n\n const slaTotalMultiRegion = this.calculateSlaMultiRegion(slaEstimation, this.state.tiers);\n const downTimeMultiRegion = this.calculateDownTime(slaTotalMultiRegion)\n const downTimeMultiRegionYear = this.calculateDownTimeYear(slaTotalMultiRegion)\n\n this.setState({ addServiceClass: \"addservice-alert-visible\" });\n\n setTimeout(() => {\n this.setState({ addServiceClass: \"addservice-alert-hide\" });\n }, 1000);\n\n this.setState({\n selectedService: selectedService,\n slaEstimation: slaEstimation,\n slaTotal: slaTotal,\n downTime: downTime,\n downTimeYear: downTimeYear,\n slaTotalMultiRegion: slaTotalMultiRegion,\n downTimeMultiRegion: downTimeMultiRegion,\n downTimeMultiRegionYear: downTimeMultiRegionYear,\n });\n\n localStorage.setItem('slaEstimation', JSON.stringify(slaEstimation));\n }\n\n expandCollapseEstimationCategory(evt) {\n var updownimage = evt.currentTarget;\n var divPanel = evt.currentTarget.parentElement.parentElement.parentElement.children[2];\n divPanel.className = divPanel.className === \"div-hide\" ? \"div-show\" : \"div-hide\";\n updownimage.className = updownimage.className === \"up-arrow\" ? \"down-arrow\" : \"up-arrow\";\n }\n\n deleteEstimationCategory(evt) {\n const category = evt.currentTarget.parentElement.id;\n const tier = evt.currentTarget.parentElement.parentElement.id\n const slaEstimation = [...this.state.slaEstimation];\n\n const filteredEstimation = slaEstimation.filter(e => e.key.service.categoryName != category || e.tier != tier);\n\n const slaTotal = this.calculateSla(filteredEstimation);\n const downTime = this.calculateDownTime(slaTotal)\n const downTimeYear = this.calculateDownTimeYear(slaTotal)\n\n this.setState({\n slaEstimation: filteredEstimation,\n slaTotal: slaTotal,\n downTime: downTime,\n downTimeYear: downTimeYear\n });\n\n localStorage.setItem('slaEstimation', JSON.stringify(filteredEstimation));\n }\n\n deleteEstimationService(evt) {\n const service = evt.currentTarget.parentElement.id;\n const tier = evt.currentTarget.parentElement.parentElement.parentElement.parentElement.id;\n const slaEstimation = [...this.state.slaEstimation];\n const category = evt.currentTarget.parentElement.parentElement.parentElement.parentElement.children[0].id;\n\n var filteredEstimation = slaEstimation.filter(e => e.key.service.categoryName != category\n || e.tier != tier\n || e.key.service.name != service );\n\n\n const slaTotal = this.calculateSla(filteredEstimation);\n const downTime = this.calculateDownTime(slaTotal)\n const downTimeYear = this.calculateDownTimeYear(slaTotal)\n\n this.setState({\n slaEstimation: filteredEstimation,\n slaTotal: slaTotal,\n downTime: downTime,\n downTimeYear: downTimeYear\n });\n\n localStorage.setItem('slaEstimation', JSON.stringify(filteredEstimation));\n }\n\n setTier(evt) {\n this.setState({\n currentTier: evt.target.innerHTML\n });\n }\n\n addTier(evt) {\n const tierName = evt.currentTarget.parentElement.parentElement.children[2].children[0].value;\n\n if (tierName.trim().length === 0)\n return;\n\n var tiers = [...this.state.tiers];\n const tierFound = tiers.find(t => t.name == tierName)\n if (tierFound === undefined) {\n tiers = tiers.concat({ name: tierName, pairedRegion: 'no' });\n }\n\n this.setState({ tiers: tiers });\n localStorage.setItem('tiers', JSON.stringify(tiers));\n evt.currentTarget.parentElement.parentElement.children[2].children[0].value = \"\";\n }\n\n deleteTier(evt) {\n\n if (window.confirm('If you delete this Tier, all the estimations that use it will be deleted as well, Are you sure you want to delete the Tier ? ', 'Delete Tier')) {\n\n const tierName = evt.target.id;\n const tiers = [...this.state.tiers];\n const filteredTiers = tiers.filter(t => t.name != tierName);\n\n this.setState({\n tiers: filteredTiers\n });\n\n const slaEstimation = [...this.state.slaEstimation];\n\n const filteredEstimation = slaEstimation.filter(e => e.tier != tierName);\n\n const slaTotal = this.calculateSla(filteredEstimation);\n const downTime = this.calculateDownTime(slaTotal)\n const downTimeYear = this.calculateDownTimeYear(slaTotal)\n\n this.setState({\n tiers: filteredTiers,\n slaEstimation: filteredEstimation,\n slaTotal: slaTotal,\n downTime: downTime,\n downTimeYear: downTimeYear\n });\n\n localStorage.setItem('slaEstimation', JSON.stringify(filteredEstimation));\n localStorage.setItem('tiers', JSON.stringify(filteredTiers));\n }\n }\n\n selectTierRegion(evt) {\n const regionOption = evt.target.options[evt.target.selectedIndex].value;\n const tier = evt.target.id;\n\n const tiers = [...this.state.tiers];\n var index = tiers.findIndex(t => t.name === tier);\n tiers[index].pairedRegion = regionOption;\n\n this.setState({\n tiers: tiers\n });\n\n const slaTotalMultiRegion = this.calculateSlaMultiRegion(this.state.slaEstimation, tiers)\n const downTimeMultiRegion = this.calculateDownTime(slaTotalMultiRegion)\n const downTimeMultiRegionYear = this.calculateDownTimeYear(slaTotalMultiRegion)\n\n this.setState({\n slaTotalMultiRegion: slaTotalMultiRegion,\n downTimeMultiRegion: downTimeMultiRegion,\n downTimeMultiRegionYear: downTimeMultiRegionYear,\n });\n\n localStorage.setItem('tiers', JSON.stringify(tiers));\n }\n\n expandCollapseEstimationTier(evt) {\n var updownimage = evt.currentTarget;\n var divPanel = evt.currentTarget.parentElement\n .parentElement.parentElement.children[1];\n\n var totalsPanel = evt.currentTarget.parentElement\n .parentElement.parentElement.children[2];\n\n divPanel.className = divPanel.className === \"tier-hide\" ? \"tier-show\" : \"tier-hide\";\n totalsPanel.className = totalsPanel.className === \"tier-hide\" ? \"tier-show\" : \"tier-hide\";\n updownimage.className = updownimage.className === \"up-arrow\" ? \"down-arrow\" : \"up-arrow\";\n\n }\n\n deleteEstimationTier(evt) {\n const tierName = evt.target.parentElement.id;\n const slaEstimation = [...this.state.slaEstimation];\n\n const filteredEstimation = slaEstimation.filter(e => e.tier != tierName);\n\n const slaTotal = this.calculateSla(filteredEstimation);\n const downTime = this.calculateDownTime(slaTotal)\n const downTimeYear = this.calculateDownTimeYear(slaTotal)\n\n const tiers = [...this.state.tiers];\n var index = tiers.findIndex(t => t.name === tierName);\n tiers[index].pairedRegion = 'no';\n\n this.setState({\n tiers: tiers,\n slaEstimation: filteredEstimation,\n slaTotal: slaTotal,\n downTime: downTime,\n downTimeYear: downTimeYear\n });\n\n localStorage.setItem('slaEstimation', JSON.stringify(filteredEstimation));\n }\n\n deleteAll() {\n\n const tiers = this.getResetTiers();\n\n this.setState({\n slaEstimation: [],\n slaTotal: 0,\n downTime: 0,\n downTimeYear:0,\n slaTotalMultiRegion: 0,\n downTimeMultiRegion: 0,\n downTimeMultiRegionYear: 0,\n tiers: tiers\n });\n\n localStorage.setItem('slaEstimation', JSON.stringify([]));\n }\n\n expandAll(evt) {\n var divPanel = evt.currentTarget.parentElement.parentElement.children[2];\n divPanel.className = \"tiers-panel-show\";\n }\n\n collapseAll(evt) {\n var divPanel = evt.currentTarget.parentElement.parentElement.children[2];\n divPanel.className = \"tiers-panel-hide\";\n }\n\n componentDidMount() {\n this.populateServiceCategoryData();\n }\n\n renderMainPanel() {\n return (\n
\n
\n
\n

Azure Composite SLA Estimator

\n

Estimate the overall service level agreement of your services

\n
\n
\n Click here the to see the full SLA description hosted on the Legal site.\n
\n \n
\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n
\n
\n \n
\n
\n );\n }\n\n render() {\n let contents = this.renderMainPanel();\n\n return (\n
\n {contents}\n
\n );\n }\n\n async populateServiceCategoryData() {\n const response = await fetch('servicecategory');\n const data = await response.json();\n\n const allservices = data.map(x => x.services).reduce(\n (x, y) => x.concat(y));\n\n this.setState({ serviceCategories: data, allservices, selectedServices: data[0].services, categories: data.map(x => x.categoryName),selectedCategory: data[0].categoryName, loading: false });\n }\n}\n","import React, { Component } from 'react';\n\nexport class Home extends Component {\n static displayName = Home.name;\n\n render () {\n return (\n
\n
\n );\n }\n}\n","import React, { Component } from 'react';\nimport { Route } from 'react-router';\nimport { MainPanel } from './components/MainPanel';\nimport { Home } from './components/Home';\nimport { Navigation } from './components/Navigation';\nimport { Services } from './components/Services';\n\n\nimport './custom.css'\n\nexport default class App extends Component {\n static displayName = App.name;\n\n render () {\n return (\n \n \n \n \n \n );\n }\n}\n","// In production, we register a service worker to serve assets from local cache.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport default function register () {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebookincubator/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Lets check if a service worker still exists or not.\n checkValidServiceWorker(swUrl);\n } else {\n // Is not local host. Just register service worker\n registerValidSW(swUrl);\n }\n });\n }\n}\n\nfunction registerValidSW (swUrl) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.');\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker (swUrl) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl);\n }\n })\n .catch(() => {\n console.log(\n 'No internet connection found. App is running in offline mode.'\n );\n });\n}\n\nexport function unregister () {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister();\n });\n }\n}\n","import 'bootstrap/dist/css/bootstrap.css';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { BrowserRouter } from 'react-router-dom';\nimport App from './App';\nimport registerServiceWorker from './registerServiceWorker';\n\nconst baseUrl = document.getElementsByTagName('base')[0].getAttribute('href');\nconst rootElement = document.getElementById('root');\n\nReactDOM.render(\n \n \n ,\n rootElement);\n\nregisterServiceWorker();\n\n"],"sourceRoot":""}