(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{268:function(e,t,n){e.exports=n(459)},269:function(e,t,n){if("http:"===window.location.protocol){var a="https://".concat(window.location.hostname).concat(window.location.pathname).concat(window.location.search);console.log("Redirecting insecure URL:",window.location.href,"--\x3e",a),window.location=a}},274:function(e,t,n){},430:function(e){e.exports={pushes:[{title:"September 28, 2022",changes:[{title:"Specify MCU Addresses",description:"Clariti Edge servers need to know addresses of MCUs so that they can identify that traffic as internal."},{title:"Remove Single NIC Option for Edge",description:"Clariti Edge servers should not be configured to use a single interface."}]},{title:"March 14, 2022",changes:[{title:"Added Support for CCE 10.2",description:"Clariti Core and Edge 10.2 is now supported by the wizard."}]},{title:"June 7, 2021",changes:[{title:"Cloud Deployment Configuration",description:"The configuration for Cloud AWS and Cloud Azure are now identical. All cloud deployments can have up to 4 network interfaces with identical service assignments."},{title:"Clariti Solution Renaming",description:"Clariti Core and Clariti Edge are the new product names for core-configured or edge-configured RealPresence DMA. Resource Manager is now known as Clariti Manager."},{title:"Clariti Core Call Count Defaults",description:"The wizard no longer asks for the number of simultaneous calls when configuring core."},{title:"RealPresence Web Suite Configuration Removed",description:"For Clariti Core/Edge 10.1 the new SVC solution with Clariti Relay and Clariti App and Roster are preferred over RPWS."}]},{title:"May 24, 2021",changes:[{title:"General Enhancements",description:"For edge configurations, ask if SSH should be enabled. For edge public addresses, display the NAT address if one is configured."}]},{title:"May 12, 2021",changes:[{title:"Clariti Goes Live",description:"Deployment wizard is now hosted at config.clariti.poly.com."}]},{title:"December 16, 2020",changes:[{title:"Wizard Renaming",description:"The name of the wizard is now Clariti 4K Deployment Wizard to reflect the increasing scope of configurable products."}]},{title:"December 8, 2020",changes:[{title:"DMA Core Configuration and Enhanced Signaling Configuration",description:"The DMA Deployment Wizard now supports DMA Core configurations for single nic standalone and servers integrated with edge. Signaling for SIP, H.323 and Poly EVO (DMA 10.1 only) may be completely configured for the edge or core server. Specifying parameters for dialing to external cloud services is improved. "}]},{title:"April 22, 2020",changes:[{title:"Whitespace Data Entry",description:"Ensure that white space is removed from all fields."}]},{title:"February 10, 2020",changes:[{title:"Configurable Domains",description:"A page has been added to allow the configuration of domain restrictions."}]},{title:"November 1, 2019",changes:[{title:"MCU IP Address and Site Topology",description:"On an combination DMA server MCUs must be specified by IP address instead of FQDN. Each MCU will be added to the site topology default site so that the edge server considers traffic to and from it to be internal/LAN."}]},{title:"October 4, 2019",changes:[{title:"Improved Welcome Step Messaging",description:"The text on the welcome page is more clear, with additional link to privacy guide."},{title:"Cloud Information on Summary",description:"Choice of Teams or Other is now properly reported on the Summary step."}]},{title:"September 24, 2019",changes:[{title:"High Availability",description:"Support Active-Active or Active-Passive configurations. New choices on the Topology step will lead to multiple backup files being generated, one for each server."},{title:"Miscellaneous Improvements",description:"Feedback from test and beta resulted in improvements in verbiage, tabbing, TURN on separate NIC, default values and more."}]},{title:"September 10, 2019",changes:[{title:"Cloud Deployment Multi NIC",description:'Support 1, 2, or 4 NIC configuration when When "In Azure or AWS Cloud" is selected.'}]},{title:"August 29, 2019",changes:[{title:"Help Links",description:"The help button in the upper right corner of the application is now a menu from which the user can choose to view different types of supporting material."},{title:"Explain Interface Choices",description:"The Topology step now includes additional explanation for different NIC utilization."}]},{title:"August 19, 2019",changes:[{title:"Static Single Nic",description:"For configurations with a single network interface, allow the user to specify whether the interface will use DHCP or static addressing. "}]},{title:"August 8, 2019",changes:[{title:"Display a Changelog",description:"Added a link at the bottom right to show a modal dialog listing changes made to the. The link will be flagged with a popup until the user visits it for the first time."}]},{title:"August 1, 2019",changes:[{title:"Cloud Deployment Support",description:'System Usage step asks for deployment location. When "In Azure or AWS Cloud" is selected, the configuration will be a single interface running DHCP.,'},{title:"Standalone Edge Support",description:'System Usage step has an additional option for the edge server configuration question: "As a standalone DMA edge server". When chosen the wizard will not gather any information for MCUs or DMA core server configuration.'},{title:"Localization File Caching Fix",description:"Avoid browser caching of localization file so that translation keys are not visible in the application."}]},{title:"July 11, 2019",changes:[{title:"Adjust Help Link",description:"Help link in upper right goes to the searchable documentation library for UC Infrastructure."},{title:"RPWS Help Link",description:"On the RPWS page, display a link to the support site for Web Suite."},{title:"TURN Help",description:"Added more documentation on the TURN page."},{title:"Report Column Sorting",description:"Add sorting to table headers on the HTML version of the report."}]},{title:"June 17, 2019",changes:[{title:"Initial Release",description:"DMA Deployment Wizard pushed to production site with support for on-premise combo and on-premise core integrated configurations."}]}]}},454:function(e,t,n){},459:function(e,t,n){"use strict";n.r(t);n(269);var a=n(0),r=n.n(a),s=n(79),o=n.n(s);n(274),Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var i=n(19),l=n(18),c=n(4),u=n.n(c),d=n(16),p=n(43),m=n(44),E=n(46),g=n(45),b=n(47),f=n(70),h=n(488),S=n(489),O=n(471),C=n(483),v=n(485),A=n(492);var N=Object(d.b)()(Object(i.b)(function(e){return{sections:e.sections,activeSection:e.steps[e.stepIndex].section}})(function(e){var t=e.sections,n=e.activeSection,a=e.t;return r.a.createElement("div",{className:"ui blue pointing secondary menu"},function(e,t,n){for(var a=[],s=0,o=0;ot?"100%":n+"/"+t;return r.a.createElement("div",{style:{width:"4em"}},r.a.createElement(j.a,{percentage:n?Math.round(n/t*100):0,text:a,strokeWidth:15,className:"abc",styles:k}))}var L=n(9),U=["localDev","dev","production"];if(!U.includes("production"))throw new Error('Release State "'.concat("production",'" was unexpected, should be one of\n ').concat(U.join(", ")));var M=Object(L.a)({ANSWER_PROCESSOR_PATH:"submit",GET_RESULTS_PATH:"files",VERSION_CHECK_PATH:"versionCheck",dev:{DEV_EOD_API_BASE_URL:"https://10.47.18.77",EOD_API_BASE_URL:"https://dma-eod-dev.eastus.cloudapp.azure.com",SURVEY:"https://www.surveymonkey.com/r/9FN8J9M"},production:{EOD_API_BASE_URL:"https://dma-eod-prod.eastus.cloudapp.azure.com",SURVEY:"https://www.surveymonkey.com/r/93SFY53"}},{localDev:{NOTAANSWER_PROCESSOR:"http://no.one.is.home:8080/submit4",LOCAL_ANSWER_PROCESSOR:"http://10.47.19.156:8080/submit4",ANSWER_PROCESSOR:"https://dma-backend-docker-vm.westus2.cloudapp.azure.com/submit",NOTBANSWER_PROCESSOR:"http://localhost:7080/submitappj",NOTGET_RESULTS:"http://localhost:7080/getIt/",NOTBGET_RESULTS:"http://localhost:7080/getItBad/",GET_RESULTS:"http://10.47.19.156:5100/files/",SURVEY:"https://www.surveymonkey.com/r/9FN8J9M"}}),G=function(e){var t=M.production.EOD_API_BASE_URL,n=M.production[e];if(n||(n=M[e]),!n||!t)throw Error("Unable to determine api URL for stage ".concat("production"," and path ").concat(e));return"".concat(t,"/").concat(n)},x={INSIGHT_KEY:"0c18ddfb-a84d-48a8-ab8d-5f34b9e4bb5e",CI_COMMIT_SHA:"946454e74bea4c6dd8d4eb39c1e0488fddf5e72e"},V={ANSWER_PROCESSOR_URL:G("ANSWER_PROCESSOR_PATH"),GET_RESULTS_URL:G("GET_RESULTS_PATH"),VERSION_CHECK_URL:"".concat(G("VERSION_CHECK_PATH"),"?clientVersion=").concat("0.1"),SUPPORT_HOME:"https://support.polycom.com",DMA_SUPPORT_HOME:"https://support.polycom.com/content/support/north-america/usa/en/support/network/realpresence-clariti.html",RP_UC_DOCS:"https://support.polycom.com/content/support/north-america/usa/en/support/network.html",DMA_OPS_GUIDE_10:"https://documents.polycom.com/bundle/dma-ops-10-0/page/dma-ops-help/vol_intro/vol_intro.htm",RPWS_ADMIN_GUIDE_2_2:"https://documents.polycom.com/bundle/rpws-ag-2-2/page/c_rpws_ag_getting_started.html",RPWS_SUPPORT_HOME:"https://support.polycom.com/content/support/north-america/usa/en/support/network/realpresence-web-suite/realpresence-web-suite.html",FIREWALL_WHITEPAPER_URL:"https://support.polycom.com/content/dam/polycom-support/products/uc-infrastructure-support/management-scheduling/dma/other-documents/en/dma-firewall-traversal-wp.pdf",SECURITY_PRIVACY_GUIDE_URL:"https://documents.polycom.com/bundle/dma-security-privacy/",SURVEY_URL:M.production.SURVEY},F={FILELIST_LOCATION:"wizardAppFilelistLocation",FILELIST_ALIAS:"wizardAppFilelistAlias",STEPS:"wizardAppSteps",STEP_INDEX:"wizardAppStepIndex",REPORT_LOCATION:"wizardAppReportLocation",CHANGELOG_HASH:"wizardAppChangelogHash"},W={EDGE_COMBO:"EDGE_COMBO",EDGE_CORE:"EDGE_CORE",EDGE_ALONE:"EDGE_ALONE",CORE_ALONE:"CORE_ALONE"},H={ON_PREMISE:"ON_PREMISE",CLOUD:"CLOUD"},B={HA_NONE:"HA_NONE",HA_ACTIVE_ACTIVE:"HA_ACTIVE_ACTIVE",HA_ACTIVE_PASSIVE:"HA_ACTIVE_PASSIVE"},q={TEN_DOT_OH:"10.0.x",TEN_DOT_ONE:"10.1.x",TEN_DOT_TWO:"10.2.x"},X=window.history&&window.history.pushState;X&&window.addEventListener("load",function(){var e=window.history;("PRESENT"!==e.state||3>e.length)&&(e.pushState("PAST",null),e.pushState("PRESENT",null),e.pushState("FUTURE",null),e.back())},!1);var z=function(e){function t(e){var n;return Object(p.a)(this,t),(n=Object(E.a)(this,Object(g.a)(t).call(this,e))).doTimeTravel=n.doTimeTravel.bind(Object(f.a)(Object(f.a)(n))),X&&(window.onpopstate=n.doTimeTravel),n.state={resetModalVisible:!1,feedbackModalVisible:!1,changelogViewed:J()},n}return Object(b.a)(t,e),Object(m.a)(t,[{key:"doTimeTravel",value:function(){var e=window.history;"PAST"===e.state?(e.pushState("PRESENT",null),e.pushState("FUTURE",null),e.back(),this.props.onPreviousClick&&this.props.onPreviousClick()):"FUTURE"===e.state?(e.back(),this.props.onNextClick&&this.props.valid&&this.props.onNextClick()):"PRESENT"===e.state||(e.pushState("PAST",null),e.pushState("PRESENT",null),e.pushState("FUTURE",null),e.back())}},{key:"render",value:function(){var e=this,t=this.props,n=t.t,a=t.onPreviousClick,s=t.onNextClick,o=t.onResetYes,i=t.stepCount,l=t.stepIndex,c=t.nextButtonLabel,u=t.hidePrevious,d=t.stepname,p=Y(this.props.children);return r.a.createElement(h.a,{stackable:!0,centered:!0,className:"computer-grid-height noMargin"},r.a.createElement(h.a.Row,null,r.a.createElement(h.a.Column,null,r.a.createElement(N,null))),r.a.createElement(h.a.Row,{verticalAlign:"top"},r.a.createElement(h.a.Column,{mobile:16,tablet:10,computer:10,largeScreen:10},r.a.createElement("table",{width:"90%"},r.a.createElement("tbody",null,r.a.createElement("tr",null,r.a.createElement("td",{valign:"top"},r.a.createElement(S.a,{id:"stepTitle",as:"h1"},this.props.title)),r.a.createElement("td",{valign:"top",align:"right"},r.a.createElement(D,{stepCount:i,stepIndex:l}))))))),r.a.createElement(h.a.Row,{style:{height:"80%",overflowX:"auto"}},r.a.createElement(h.a.Column,{mobile:14,tablet:10,computer:10,largeScreen:10},this.props.children)),r.a.createElement(h.a.Row,null,r.a.createElement(h.a.Column,{mobile:14,tablet:10,computer:10,largeScreen:10},r.a.createElement(O.a,{fitted:!0}))),r.a.createElement(h.a.Row,null,r.a.createElement(h.a.Column,{mobile:1,tablet:2,computer:2,largeScreen:2},r.a.createElement(C.a,{id:"previousButton",secondary:!0,style:{display:a&&!u?"block":"none"},onClick:function(){return a()},tabIndex:p+1},n("navigation.previous"))),r.a.createElement(h.a.Column,{mobile:1,tablet:2,computer:2,largeScreen:2},r.a.createElement(C.a,{id:"nextButton",primary:!0,disabled:!this.props.valid,style:{display:s?"block":"none"},onClick:function(){return s()},tabIndex:p},c||n("navigation.next"))),r.a.createElement(h.a.Column,{mobile:1,tablet:4,computer:4,largeScreen:4},r.a.createElement(C.a,{id:"resetButton",secondary:!0,onClick:function(){e.setState({resetModalVisible:!0})},tabIndex:p+2},n("reset.triggerLabel")),r.a.createElement(T,{title:n("reset.title"),question:n("reset.question"),yes:n("reset.yes"),no:n("reset.no"),isOpen:this.state.resetModalVisible,onYes:function(){e.setState({resetModalVisible:!1}),o()},onNo:function(){e.setState({resetModalVisible:!1})}})),r.a.createElement(h.a.Column,{mobile:2,tablet:2,computer:2,largeScreen:2},V.SURVEY_URL&&r.a.createElement("div",{style:{cursor:"pointer"},className:"umc-blue-link",onClick:function(){e.setState({feedbackModalVisible:!0})},tabIndex:p+3},n("feedback.triggerLabel")),r.a.createElement(_,{t:n,isOpen:this.state.feedbackModalVisible,onClose:function(){e.setState({feedbackModalVisible:!1})},surveyUrl:V.SURVEY_URL}),r.a.createElement(v.a,{trigger:r.a.createElement("div",{style:{cursor:"pointer"},className:"umc-blue-link",onClick:function(){localStorage.setItem(F.CHANGELOG_HASH,x.CI_COMMIT_SHA),e.setState({changelogModalVisible:!0,changelogViewed:!0})},tabIndex:p+4,id:"changelogDiv"},n("changelog.triggerLabel")),open:!this.state.changelogViewed,position:"left center"},r.a.createElement("span",null,r.a.createElement("p",null,r.a.createElement("i",{className:"umc-orange keyboard asterisk polycom icon"}),n("changelog.popupText")))),r.a.createElement(R,{t:n,isOpen:this.state.changelogModalVisible,onClose:function(){e.setState({changelogModalVisible:!1})}}))),r.a.createElement("div",{id:d+"Div"}))}}]),t}(r.a.Component),Y=function(e){var t=[];if(K(e,t),0").concat(t("steps.welcome.whitepaperLinkText"),""),privacyGuideLink:"").concat(t("steps.welcome.securityPrivacyGuideLinkText"),"")};return r.a.createElement(Z,{onNextClick:function(){return e.onNextClick()},valid:!0,title:t("steps.welcome.title"),stepname:e.stepname},r.a.createElement("p",null,t("steps.welcome.description")),r.a.createElement(Q.a,{className:"simple-warn-message"},r.a.createElement("table",null,r.a.createElement("tbody",null,r.a.createElement("tr",{style:{verticalAlign:"top"}},r.a.createElement("td",{rowSpan:4},r.a.createElement("i",{className:"umc-orange large polycom warning icon "})),r.a.createElement("td",null,r.a.createElement("p",null,r.a.createElement("strong",null,r.a.createElement("u",null,t("steps.welcome.warningOneTitle")))," ",t("steps.welcome.warningOneDescription")))),r.a.createElement("tr",{style:{verticalAlign:"top"}},r.a.createElement("td",null,r.a.createElement("p",null,r.a.createElement("strong",null,r.a.createElement("u",null,t("steps.welcome.warningTwoTitle")))," ",t("steps.welcome.warningTwoDescription")))),r.a.createElement("tr",{style:{verticalAlign:"top"}},r.a.createElement("td",null,r.a.createElement("p",null,r.a.createElement("strong",null,r.a.createElement("u",null,t("steps.welcome.warningFourTitle")))," ",t("steps.welcome.warningFourDescription")))),r.a.createElement("tr",{style:{verticalAlign:"top"}},r.a.createElement("td",null,r.a.createElement("p",null,r.a.createElement("strong",null,r.a.createElement("u",null,t("steps.welcome.warningThreeTitle")))," ",t("steps.welcome.warningThreeDescription"))))))),r.a.createElement("div",{dangerouslySetInnerHTML:{__html:t("steps.welcome.forMoreInformation",n)}}))}var ee=Object(l.b)(Object(d.b)(),Object(i.b)(function(e){return{}},function(e){return{onNextClick:function(){e({type:y.WELCOME_NEXT})}}}))($),te=n(5),ne=n(476);function ae(e){var t=e.t,n=e.deploymentLocation,s=e.useWebRtc,o=H.ON_PREMISE!==n,i=Object(a.useState)(u.a.isUndefined(e.nicCount)?s?3:2:e.nicCount),l=Object(te.a)(i,2),c=l[0],d=l[1],p=Object(a.useState)(e.haMode||B.HA_NONE),m=Object(te.a)(p,2),E=m[0],g=m[1],b="";B.HA_ACTIVE_ACTIVE===E?b="HaActiveActive":B.HA_ACTIVE_PASSIVE===E&&(b="HaActivePassive");var f="singleNic";2===c?f="twoNic"+b:3===c?f="threeNic"+b:4===c&&(f="fourNic"+b);var h=4===c,O=H.CLOUD===n&&1e},Ee=function(e){return!u.a.isEmpty(e)&&!me(e)},ge=function(e){return 1024<=e&&65535>=e},be=function(e){return e=""+e,!u.a.isEmpty(e)&&!ge(e)},fe=function(e){return e=e?e.trim():"",!(u.a.isEmpty(e)||63255)return!1;for(var t=e.split("."),n=t.length,a=!0,r=0;r=t.length?e:t.join(", ")},Te=function(e){if(e=e&&"string"===typeof e?e.trim():e,u.a.isEmpty(e))return!1;for(var t="string"===typeof e?e.split(ue):e,n=0;n=t)return!1;var a=n.toByteArray().slice(0,4);return a[3]++,ie.a.fromByteArray(a).toNormalizedString()}catch(r){return console.log("Suggesting gw for ".concat(e,"/").concat(t," caught ").concat(r)),!1}},je=function(e){try{var t=ie.a.parse(e);if(126>=t.octets[0])return 8;if(191>=t.octets[0])return 16}catch(n){return console.log("Suggesting netmask for ".concat(e," caught ").concat(n)),""}return console.log("c"),24};function ke(e){var t=e.t,n=e.instruction,a=e.ipAddressLabel,s=e.ipAddressInstruction,o=e.netMaskInstruction,i=e.ipAddress,l=e.netMask,c=e.onIpAddressChange,u=e.onNetmaskChange,d=e.onIpAddressBlur,p=e.onNetmaskBlur,m=e.ipAddressError,E=e.netMaskError,g=e.required,b=e.disabled,f=e.tabIndex,h=e.autoFocus,S=e.id?e.id:"";return r.a.createElement(ne.a.Group,{unstackable:!0,widths:2},r.a.createElement(ne.a.Field,{width:10,style:{paddingRight:0},required:g,disabled:b,error:m()},r.a.createElement("label",null,a||t("common.ipAddressMaskLabel")),r.a.createElement("div",{className:"ui right labeled input"},r.a.createElement("input",{type:"text",value:i,onChange:c,onBlur:d,id:"ipAddress".concat(S,"Input"),tabIndex:b?"-1":f,autoFocus:h}),r.a.createElement("div",{className:"ui label label",style:{borderTopRightRadius:0,borderBottomRightRadius:0}},"/")),!1!==n&&r.a.createElement("label",{className:"instruction"},s||t("common.ipv4AddressInstruction"))),r.a.createElement(ne.a.Field,{width:6,style:{paddingLeft:0},disabled:b,error:E()},r.a.createElement("label",null,"\xa0"),r.a.createElement("div",{className:"ui input"},r.a.createElement("input",{required:g,style:{borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeftColor:"transparent"},type:"number",value:l,onChange:u,onBlur:p,id:"netMask".concat(S,"Input"),tabIndex:b?"-1":f+1})),!1!==n&&r.a.createElement("label",{className:"instruction"},o||t("common.netMaskInstruction"))))}var De=function(e,t,n,a){var s=a?"positive":"",o=r.a.createElement("div",null);return u.a.isEmpty(t.ipAddress)||u.a.isEmpty(t.netMask)||(o=u.a.isEmpty(t.natAddress)?r.a.createElement("div",null," ",e("steps.interface.table.addressDisplay",t)," "):r.a.createElement("div",null,e("steps.interface.table.addressDisplay",t),r.a.createElement("br",null),e("steps.interface.table.natAddressDisplay",t))),r.a.createElement(se.a.Row,{key:t.name+"row"},r.a.createElement(se.a.Cell,{key:t.name+"nameCell",className:s},t.name),r.a.createElement(se.a.Cell,{key:t.name+"descCell",className:s},e(n)),r.a.createElement(se.a.Cell,{key:t.name+"addrCell",className:s},o))},Le=function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2?arguments[2]:void 0;if(0===e)return"0 Bytes";if(!e)return"";var a=t<0?0:t,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(1024)),o=parseFloat((e/Math.pow(1024,s)).toFixed(a));return n?n("common.".concat(r[s]),{size:o}):o+" "+r[s]},qe=function(e,t,n){if(e.message&&!e.message.includes(t))throw Error("".concat(e.message,": ").concat(n," ").concat(t));if(e.status&&e.statusText&&e.url)throw Error('Error "'.concat(e.status,"/").concat(e.statusText,'" from fetch: ').concat(n," ").concat(e.url));throw e},Xe=function(e){return u.a.isArray(e)&&0!==e.length?1===e.length?[e[0],""]:[e[0],e[1]]:["",""]},ze=function(e){return!u.a.every(e,function(e){return!u.a.isEmpty(e)})},Ye=function(e){if(u.a.isEmpty(e)||!u.a.isArray(e))return!1;for(var t=0;tp.length;)p.push(Object(L.a)({},Mt));for(var g=[{key:Pt,text:t("steps.mcu.mcuTypeLegacy"),value:Pt,id:kt},{key:jt,text:t("steps.mcu.mcuTypeSvc"),value:jt,id:Dt}],b=[],f=0;fe.length)return t;for(var n=0;nd.length;)d.push(Object(L.a)({},l));for(var m=[],E=0;E<3;++E)m.push({addressError:Oe(d[E].address)});var g=Object(a.useState)(m),b=Object(te.a)(g,2),f=b[0],h=b[1],S=[{key:Yt,text:t("steps.cloud.cloudServiceTypeRealConnectTeams"),value:Yt,id:"domainType".concat(Yt)},{key:Kt,text:t("steps.cloud.cloudServiceTypeOther"),value:Kt,id:"domainType".concat(Kt)}];i||S.push({key:zt,text:t("steps.cloud.cloudServiceTypeNone"),value:zt,id:"domainType".concat(zt)});return r.a.createElement(Z,{onNextClick:function(){return e.onNextClick(Jt(d))},onPreviousClick:function(){return e.onPreviousClick(Jt(d))},valid:function(){for(var e=0;e=this.state.secondsUntilExpiration,m=kn.a.duration(this.state.secondsUntilExpiration,"seconds"),E="";3600<=this.state.secondsUntilExpiration&&(E=n("steps.downloadResults.filesExpirationTime",{duration:m.humanize()}));var g=s,b=o?"steps.downloadResults.reportFileDescriptionCore":"steps.downloadResults.reportFileDescription",f=o?"steps.downloadResults.reportHtmlDescriptionCore":"steps.downloadResults.reportHtmlDescription",h=n("common.productName.".concat(o?"core":"edge"));return r.a.createElement(Z,{onPreviousClick:function(){return e.props.onPreviousClick()},hidePrevious:!0,valid:!0,title:n("steps.downloadResults.title"),stepname:this.props.stepname},r.a.createElement("div",null,g&&r.a.createElement("div",null,r.a.createElement(Q.a,{className:"simple-warn-message"},r.a.createElement("strong",null,n("steps.downloadResults.warning.awsDhcpKnownIssueTitle")),n("steps.downloadResults.warning.awsDhcpKnownIssueDescription")),r.a.createElement("br",null)),0!==d.length&&r.a.createElement(Q.a,{negative:!0},r.a.createElement(Q.a.Header,null,n("steps.downloadResults.errorTitle")),d),3600>this.state.secondsUntilExpiration&&r.a.createElement(Q.a,{negative:!0},r.a.createElement(Q.a.Header,null,n("steps.downloadResults.filesExpirationImminentMessageTitle")),n("steps.downloadResults.filesExpirationImminentMessage",{minutes:m.minutes()})),0===d.length&&r.a.createElement("div",null,r.a.createElement(Tn.a.Dimmable,{blurring:!0,dimmed:!c},r.a.createElement(Tn.a,{active:!c,inverted:!0},r.a.createElement(_n.a,null,n("steps.downloadResults.loading"))),r.a.createElement("p",null,n("steps.downloadResults.description")," ",E," ",n("steps.downloadResults.useThisBrowser")),r.a.createElement(se.a,{basic:"very"},r.a.createElement(se.a.Body,null,r.a.createElement(se.a.Row,null,r.a.createElement(se.a.Cell,null,r.a.createElement(S.a,{as:"h2"},n("steps.downloadResults.backupFileTitle")),r.a.createElement("p",null,n("steps.downloadResults.backupFileDescription",{productName:h}))),r.a.createElement(se.a.Cell,null,r.a.createElement("i",{color:"blue",className:"massive blue polycom file text icon "})),r.a.createElement(se.a.Cell,{width:4},r.a.createElement(Rn.a.Group,null,this.buildDownloadLabels(i,n)))),r.a.createElement(se.a.Row,null,r.a.createElement(se.a.Cell,null,r.a.createElement(S.a,{as:"h2"},n("steps.downloadResults.reportFileTitle")),r.a.createElement("p",null,n(b,h)),r.a.createElement("p",null,n(f,h))),r.a.createElement(se.a.Cell,null,r.a.createElement("i",{color:"blue",className:"massive blue polycom resource files icon "})),r.a.createElement(se.a.Cell,{width:4},r.a.createElement(Rn.a.Group,null,r.a.createElement(Rn.a,{horizontal:!0,as:this.state.downloadCsvDisabled?"":"a",style:{opacity:this.state.downloadCsvDisabled?"0.45":1,marginBottom:".5em"},color:"blue",basic:!0,fluid:"true",onClick:function(){e.state.downloadCsvDisabled||e.downloadResult(l.location,l.name,"downloadCsvDisabled")}},n("steps.downloadResults.reportFileDownload"),r.a.createElement(Rn.a.Detail,null,Be(l?l.size:0,2,n))),r.a.createElement("a",{className:"ui blue basic horizontal label",href:"".concat(window.location.href,"report"),target:"_blank",id:"viewHtmlReportLink"},n("steps.downloadResults.reportHtmlView")))))))),r.a.createElement(Pn,{t:n,isOpen:p,onYes:function(){a()}}))))}},{key:"buildDownloadLabels",value:function(e,t){var n=this,a=[];if(!e)return a;for(var s=function(s){var o=e[s],i="downloadBackupDisabled".concat(s);a.push(r.a.createElement(Rn.a,{horizontal:!0,as:n.state[i]?"":"a",style:{opacity:n.state[i]?"0.45":1,marginBottom:".5em"},color:"blue",basic:!0,fluid:"true",onClick:function(){n.state[i]||n.downloadResult(o.location,o.name,i)},id:n.state[i]?"":"downloadResultsButton".concat(o.name.replace(".bak","")),key:o.name},t("steps.downloadResults.backupFileDownload",{name:o.name}),r.a.createElement(Rn.a.Detail,null,Be(o?o.size:0,2,t))))},o=0;o0&&void 0!==arguments[0]?arguments[0]:ya,t=arguments.length>1?arguments[1]:void 0,n=_a(e,t);switch(console.log("wizardApp state:",e),console.log("wizardApp action:",t),console.log("wizardApp answerSummary:",n),t.type){case y.WELCOME_NEXT:return qa(e,t,n,"InitDeploymentStep",En.CALL_SERVICES);case y.INITIAL_DEPLOYMENT_PREVIOUS:return Xa(e,t);case y.INITIAL_DEPLOYMENT_NEXT:return n.isCoreConfig?qa(e,t,n,"CfgCoreUsageStep",En.CALL_SERVICES):qa(e,t,n,"UsageStep",En.CALL_SERVICES);case y.USAGE_PREVIOUS:return Xa(e,t);case y.USAGE_NEXT:return qa(e,t,n,"UsageExtendedStep",En.CALL_SERVICES,{dmaVersion:n.dmaVersion});case y.USAGE_EXTENDED_PREVIOUS:return Xa(e,t);case y.USAGE_EXTENDED_NEXT:return qa(e,t,n,"RprmStep",En.CALL_SERVICES);case y.RPRM_PREVIOUS:return Xa(e,t);case y.RPRM_NEXT:return n.dmaVersion===q.TEN_DOT_OH?qa(e,t,n,"RpwsStep",En.CALL_SERVICES):n.useWebRtc?qa(e,t,n,"TurnStep",En.CALL_SERVICES):Ba(e,t,n,Ca("TopologyStep",En.TOPOLOGY,{deploymentLocation:n.deploymentLocation,useWebRtc:n.useWebRtc}));case y.RPWS_PREVIOUS:return Xa(e,t);case y.RPWS_NEXT:return n.useWebRtc?qa(e,t,n,"TurnStep",En.CALL_SERVICES):Ba(e,t,n,Ca("TopologyStep",En.TOPOLOGY,{deploymentLocation:n.deploymentLocation,useWebRtc:n.useWebRtc}));case y.TURN_PREVIOUS:return Xa(e,t);case y.TURN_NEXT:return Ba(e,t,n,Ca("TopologyStep",En.NETWORK_SERVICES,{deploymentLocation:n.deploymentLocation,useWebRtc:n.useWebRtc}));case y.TOPO_PREVIOUS:return Xa(e,t);case y.TOPO_NEXT:case y.CFGCORE_TOPO_NEXT:return n.answerChanged||Ha(e)?B.HA_ACTIVE_PASSIVE===n.haMode||B.HA_ACTIVE_ACTIVE===n.haMode?Ba(e,t,n,Ca("DnsHaStep",En.NETWORK_SERVICES,{isCoreConfig:n.isCoreConfig})):Ba(e,t,n,La(0,0,n)):Ba(e,t,n);case y.INTERFACES_PREVIOUS:return Xa(e,t);case y.INTERFACES_NEXT:return Ha(e)||n.isSingleNic&&n.answerChanged?n.isSingleNic&&n.isDhcp||B.HA_ACTIVE_PASSIVE===n.haMode||B.HA_ACTIVE_ACTIVE===n.haMode?qa(e,t,n,"DomainsStep",En.NETWORK_SERVICES,{haMode:n.haMode}):Ba(e,t,n,Ca("DnsStep",En.NETWORK_SERVICES,{isCoreConfig:n.isCoreConfig})):Ba(e,t,n);case y.DNS_PREVIOUS:return Xa(e,t);case y.DNS_NEXT:return B.HA_ACTIVE_PASSIVE===n.haMode||B.HA_ACTIVE_ACTIVE===n.haMode?n.answerChanged||Ha(e)||!function(e,t){return!Ha(e)&&e.steps[e.stepIndex+1].componentName===t}(e,"InterfaceStep")?Ba(e,t,n,La(0,0,n)):Ba(e,t,n):qa(e,t,n,"DomainsStep",En.NETWORK_SERVICES,{haMode:n.haMode});case y.DOMAINS_PREVIOUS:return Xa(e,t);case y.DOMAINS_NEXT:return qa(e,t,n,"TimeStep",En.NETWORK_SERVICES,{isCoreConfig:n.isCoreConfig});case y.TIME_PREVIOUS:return Xa(e,t);case y.TIME_NEXT:return qa(e,t,n,n.hostVmrs?"McuStep":W.CORE_ALONE===n.deploymentConfiguration?"CfgCoreToEdgeSignalingStep":W.EDGE_COMBO===n.deploymentConfiguration?"EdgeToCoreSignalingStep":W.EDGE_ALONE===n.deploymentConfiguration||W.EDGE_CORE===n.deploymentConfiguration?"McuAddressesStep":"CoreInterfacesStep",En.INTEGRATIONS,{dmaVersion:n.dmaVersion,deploymentConfiguration:n.deploymentConfiguration,lanSignalingAddress:n.lanSignalingAddress,wanSignalingAddress:n.wanSignalingAddress});case y.MCU_PREVIOUS:return Xa(e,t);case y.MCU_NEXT:return qa(e,t,n,W.CORE_ALONE===n.deploymentConfiguration?"CfgCoreToEdgeSignalingStep":W.EDGE_COMBO===n.deploymentConfiguration||W.EDGE_ALONE===n.deploymentConfiguration?"EdgeToCoreSignalingStep":"CoreInterfacesStep",En.INTEGRATIONS,{dmaVersion:n.dmaVersion,deploymentConfiguration:n.deploymentConfiguration,coreSignalingAddress:n.coreSignalingAddress,lanSignalingAddress:n.lanSignalingAddress,wanSignalingAddress:n.wanSignalingAddress});case y.MCU_ADDRESSES_PREVIOUS:return Xa(e,t);case y.MCU_ADDRESSES_NEXT:return qa(e,t,n,W.EDGE_CORE===n.deploymentConfiguration?"CoreInterfacesStep":"EdgeToCoreSignalingStep",En.INTEGRATIONS,{dmaVersion:n.dmaVersion,deploymentConfiguration:n.deploymentConfiguration,coreSignalingAddress:n.coreSignalingAddress,lanSignalingAddress:n.lanSignalingAddress,wanSignalingAddress:n.wanSignalingAddress});case y.EDGE_TO_CORE_SIGNALING_PREVIOUS:return Xa(e,t);case y.EDGE_TO_CORE_SIGNALING_NEXT:return qa(e,t,n,"CloudStep",En.INTEGRATIONS,{hostVmrs:n.hostVmrs,deploymentConfiguration:n.deploymentConfiguration,h323Support:n.h323Support,isCoreConfig:n.isCoreConfig});case y.CLOUD_PREVIOUS:return Xa(e,t);case y.CLOUD_NEXT:return W.CORE_ALONE===n.deploymentConfiguration?Ba(e,t,n,function(e,t){return xa(e,t,"CfgCoreSubmitAnswersStep")}(e,t)):Ba(e,t,n,Ga(e,t));case y.CORE_INTERFACES_PREVIOUS:return Xa(e,t);case y.CORE_INTERFACES_NEXT:return qa(e,t,n,"EdgeToCoreSignalingStep",En.INTEGRATIONS,{dmaVersion:n.dmaVersion,deploymentConfiguration:n.deploymentConfiguration,coreSignalingAddress:n.coreSignalingAddress,lanSignalingAddress:n.lanSignalingAddress,wanSignalingAddress:n.wanSignalingAddress});case y.CORE_SIGNALING_PREVIOUS:return Xa(e,t);case y.CORE_SIGNALING_NEXT:return Ba(e,t,n,Ga(e,t));case y.SUBMIT_ANSWERS_PREVIOUS:case y.CFGCORE_SUBMIT_ANSWERS_PREVIOUS:return Xa(e,t);case y.SUBMIT_ANSWERS_NEXT:case y.CFGCORE_SUBMIT_ANSWERS_NEXT:var a=Object(L.a)({},t,{isDhcp:n.isDhcp,isCoreConfig:n.isCoreConfig});return delete a.type,Ba(e,t,n,Ca("DownloadResultsStep",En.DOWNLOAD_RESULTS,a));case y.DOWNLOAD_RESULTS_PREVIOUS:return Xa(e,t);case y.RESET_WIZARD:for(var r in F)localStorage.removeItem(r);return Object(L.a)({},ya);case y.CFGCORE_USAGE_PREVIOUS:return Xa(e,t);case y.CFGCORE_USAGE_NEXT:return qa(e,t,n,"CfgCoreRprmStep",En.CALL_SERVICES);case y.CFGCORE_RPRM_PREVIOUS:return Xa(e,t);case y.CFGCORE_RPRM_NEXT:return Ba(e,t,n,Ca("CfgCoreTopologyStep",En.NETWORK_SERVICES,{deploymentLocation:n.deploymentLocation}));case y.CFGCORE_TOPO_PREVIOUS:case y.CFGCORE_CORE_TO_EDGE_SIGNALING_PREVIOUS:return Xa(e,t);case y.CFGCORE_CORE_TO_EDGE_SIGNALING_NEXT:return qa(e,t,n,"CloudStep",En.INTEGRATIONS,{hostVmrs:n.hostVmrs,deploymentConfiguration:n.deploymentConfiguration,h323Support:n.h323Support,isCoreConfig:n.isCoreConfig});default:return e}},function(){var e=localStorage.getItem(F.STEPS),t=localStorage.getItem(F.STEP_INDEX);if(e&&t)try{var n=JSON.parse(e),a=JSON.parse(t);if(0<=a&&a