{"version":3,"sources":["config.jsx","components/Registration.v2.jsx","dataProvider.jsx","authProvider.jsx","history.js","MyMenu.jsx","components/CustomExport.jsx","components/UserListComponents.jsx","components/UserList.jsx","components/UserEdit.jsx","components/RoleList.jsx","components/PreResetPassword.jsx","components/ResetPassword.jsx","components/HEXSelectorUserCreate.jsx","components/RenderTree.jsx","components/HEXSelectorUserEdit.jsx","components/HEXSelectorUserReportingList.jsx","components/HEXSelectorClientTelemetrics.jsx","components/HEXSelectorPending.jsx","components/HEXSelectorPlateLists.jsx","components/PhecalcUserEdit.jsx","components/HEXSelectorSegmentList.jsx","components/RegionalSettings.jsx","components/ChartsUserActivity.js","components/AuthenticatedLink.jsx","components/UserActivity.jsx","components/LocalLicenseManagers.jsx","components/AHRIList.jsx","components/PlatePandoraList.jsx","App.jsx","serviceWorker.js","index.js","Base64Encoder.jsx"],"names":["API_BASE_URL","centerPaperOnPageStyle","width","margin","padding","inputWidth","errorStyle","color","backgroundColor","segmentDescriptions","RegistrationForm","props","state","isBusy","errorMessage","hasReadPrivacyPolicy","hasReadTermsAndConditions","hasAcceptedPP","hasAcceptedTOS","codeSent","hasVerifiedEmail","requestClicked","currentStep","verificationInfo","email","confirmationCode","userInfo","password","verifyPassword","firstName","surName","company","companyType","title","city","country","phoneNumber","useHexSelector","hexSelector","interestDomain","contactPerson","segmentHoverText","availableCountries","availableSegments","this","canMoveForward","setState","msg","ui","push","validateAccountInfo","fetch","method","headers","Headers","then","r","status","catch","err","message","busy","event","vInfo","target","value","preventDefault","t","n","name","console","log","checked","label","type","TextField","style","onChange","evt","handleUserInfoChange","a","accountInfo","gatherAccountInfo","body","stringify","response","json","acc","valid","Email","Password","ConfirmPassword","length","Surname","GivenName","Company","Country","indexOf","HEXSelectorInterestedDomain","EmailConfirmationCode","CompanyType","Title","City","PhoneNumber","HEXSelectorContactPerson","step","Paper","Grid","spacing","container","direction","justifyContent","alignItems","item","xs","href","rel","onClick","FormControlLabel","control","Checkbox","handleEmailChange","required","Button","disabled","variant","onClickSendCode","CircularProgress","size","handleCodeChange","cs","onClickVerifyCode","error","helperText","FormControl","fullWidth","InputLabel","Select","MenuItem","FormHelperText","map","createTextField","handleUserInfoHexSelectorChange","seg","id","onSubmitClicked","Stepper","activeStep","Step","StepLabel","paddingLeft","paddingRight","getStepContent","handleForwardClick","severity","Component","dp","apiUrl","httpClient","fetchUtils","fetchJson","convertDataRequestToHTTP","resource","params","url","options","GET_LIST","pagination","page","perPage","sort","field","order","query","base64","to_b64","JSON","range","filter","GET_ONE","GET_MANY","ids","GET_MANY_REFERENCE","UPDATE","data","CREATE","DELETE","Error","convertHTTPResponse","has","total","parseInt","get","split","pop","UPDATE_MANY","Promise","all","responses","DELETE_MANY","ROLE_ADMIN","isInRole","role","permissions","isAdmin","isLLM","isUser","isApiUser","isUaUser","ap","AUTH_LOGIN","grant_type","username","request","Request","access_token","roles","localStorage","setItem","removeItem","secureLocalStorage","AUTH_LOGOUT","resolve","AUTH_ERROR","reject","AUTH_CHECK","getItem","AUTH_GET_PERMISSIONS","p","admin","llm","user","api","uac","undefined","Permissions","createBrowserHistory","withRouter","connect","resources","getResources","onMenuClick","logout","usePermissions","isUA","history","location","hash","replace","pathname","search","isActive","MenuItemLink","to","primaryText","leftIcon","List","component","subheader","ListSubheader","Responsive","small","medium","CustomExport","endPoint","expanded","fetching","filename","token","convertedCsv","convertToCSV","quotes","quoteChar","escapeChar","delimiter","header","newline","skipEmptyLines","downloadCSV","enabled","handleExportClick","ResetPasswordButton","refresh","useRefresh","record","useRecordContext","notify","useNotify","mustChangePassword","toolText","Tooltip","onButtonClick","UserFilter","Filter","SearchInput","source","alwaysOn","ReferenceInput","reference","SelectInput","optionText","BooleanInput","context","filterValues","HEXSelectorButton","userId","licenseStatus","Link","linkToRecord","HEXSelectorField","ReferenceField","sortable","link","allowEmpty","PhecalcButton","UserLockoutField","locked","lockoutEndDateUtc","hasSent","icon","CreateHSProfileButton","BasicButton","UserList","exporter","filters","Pagination","rowsPerPageOptions","Datagrid","DateField","showTime","hour12","UserEdit","SimpleForm","TextInput","validate","ReferenceArrayInput","SelectArrayInput","RoleListTable","basePath","Table","marginLeft","marginRight","TableHead","TableRow","TableCell","TableBody","row","RoleList","PreResetPassword","submit","values","hasSubmitted","justify","ResetPassword","newPassword","confirmPassword","modelState","alert","data2","key","newKey","substr","toLowerCase","queryString","require","qs","window","parsed","parse","qEmail","qToken","HEXSelectorUserCreate","Create","redirect","alt","src","maxWidth","RenderTree","resourceId","useGetOne","isLoading","treeData","flattenTree","nodeRenderer","element","getNodeProps","level","handleSelect","wItems","wContainer","HEXSelectorUserEdit","ChipField","FormDataConsumer","formData","segmentsId","plateListId","rest","enablePandoraEditor","enableGHEXCost","Accordion","AccordionSummary","expandIcon","AccordionDetails","CrashReportFilters","CrashReportActions","BulkDeleteButton","HEXSelectorUserReportingList","bulkActionButtons","rowClick","ShowButton","DeleteButton","StackTraceField","stackTraceDetails","azureSearchLink","frame","defaultProps","addLabel","HEXSelectorCrashReportDetail","Show","SimpleShowLayout","ListButton","EmailField","ArrayField","SingleFieldList","HEXSelectorClientTelemetricsList","NumberField","NotifyLLMButton","NotifyLLM","ok","statusText","failed","NotifyLLMField","PendingFilter","HEXSelectorPendingRequestsList","ReferenceArrayField","HEXSelectorPlateList","EditButton","HEXSelectorPlateEdit","HEXSelectorPlateCreate","HEXSelectorPlateListsList","HEXSelectorPlateListsCreate","HEXSelectorPlateListsEdit","HEXSelectorPlateListsShow","HEXSelectorPlateTypeListsList","HEXSelectorPlateTypeListsShow","HEXSelectorPlateTypeListsEdit","ofType","typeId","CheckboxGroupInput","HEXSelectorPlateTypeListsCreate","PhecalcUserEdit","optionValue","width100","ofPointsInput","halfWithMargin","fullWithMargin","HEXSelectorSegmentCollectionList","HEXSelectorSegmentCollectionEdit","HEXSelectorSegmentCollectionCreate","HEXSelectorSegmentList","Label","HEXSelectorSegmentEdit","HEXSelectorSegmentCreate","HEXSelectorApplicationList","HEXSelectorApplicationEdit","NumberInput","HEXSelectorApplicationCreate","HEXSelectorProductList","BooleanField","HEXSelectorProductEdit","HEXSelectorProductCreate","HEXSelectorPandoraConfigList","HEXSelectorPandoraConfigCreate","Divider","HEXSelectorPandoraConfigEdit","RegionalSettingsList","RegionalSettingsCreate","fileAsBase64String","e","reader","FileReader","onload","onFileRead","result","readAsDataURL","f","FileInput","accept","onFileChange","FileField","PieChart","chartType","is3D","height","PieChartProduct","dataprod","Linechart","chart","subtitle","Barchart","data3","BarCountires","datacountries","AuthenticatedLink","children","createRef","handleAction","current","Authorization","blob","URL","createObjectURL","download","click","ref","UserActivityReportDownloader","reportName","paddingStyle","UAGen","onGenerateClick","start","end","res","dt","reload","Date","toLocaleDateString","month","date","year","startYear","toString","startMonth","padStart","labelPlacement","DrawCharts","dataPie","dataPieProduct","dataBar","dataCountry","createCharts","useState","items","setItems","useEffect","dtr","resultr","fetchrData","calcount","setCalcount","fetchData","Object","keys","ExternalCalc","activity","isExternal","InternalCalc","GHEXProd","productType","BHEXProd","SWProd","SegTotal","segment","SegHVAC","SegIndustry","SegMarine","SegIRF","SegHVACandR","counts","reduce","val","TopCountries","entries","b","slice","PerMonthCount","dataLine","reverse","UserActivityList","bulkactions","VIPCustomerList","VIPCustomerEdit","VIPCustomerCreate","w100","llmListFilter","defaultValue","LlmActions","TopToolbar","FilterButton","CreateButton","LLMList","actions","LLMEdit","LLMCreate","AHRIList","AHRIEdit","AHRICreate","PlatePandoraList","PlatePandoraEdit","DateInput","theme","createTheme","palette","secondary","main","Accept","set","MyLayout","Layout","menu","MyMenu","App","Admin","layout","customRoutes","exact","path","render","noLayout","dataProvider","authProvider","requireAuth","Resource","list","edit","ListGuesser","create","show","Boolean","hostname","match","ReactDOM","document","getElementById","navigator","serviceWorker","ready","registration","unregister","Buffer","from"],"mappings":"mWACaA,EAAsF,c,oMC2B7FC,EAAyB,CAC9BC,MAAO,MACPC,OAAQ,SACRC,QAAS,QAEJC,EAAa,CAClBH,MAAO,OAEFI,EAAa,CAClBC,MAA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A0E,GACL9D,QAAQ8D,MAAMA,EAAMxE,a,kCEzI5B,8CAAO,IAAMmH,EAAS,SAAC9G,GACnB,OAAO8jB,EAAOC,KAAK/jB,GAAOkd,SAAS,a","file":"static/js/main.bd724533.chunk.js","sourcesContent":["\nexport const API_BASE_URL = process.env.NODE_ENV === 'development' ? 'http://localhost:5234/api' : '/HeAuth/api';\nexport const TOKEN_BASE_URL = process.env.NODE_ENV === 'development' ? 'http://localhost:5234/Token' : '/HeAuth/Token';\nexport const MIN_PASSWORD_LENGTH = 14;","import React, { Component, Fragment } from \"react\";\r\nimport { API_BASE_URL } from '../config';\r\nimport {\r\n\tGrid,\r\n\tTextField,\r\n\tPaper,\r\n\tStepper,\r\n\tStep,\r\n\tStepLabel,\r\n\tButton,\r\n\tCircularProgress,\r\n\tCheckbox,\r\n\tFormControlLabel,\r\n\tFormHelperText,\r\n\t// FormControl,\r\n\tSelect,\r\n\tMenuItem,\r\n\tFormControl,\r\n\tInputLabel,\r\n} from '@material-ui/core';\r\nimport ArrowBackIcon from '@material-ui/icons/ArrowBack';\r\nimport ArrowForwardIcon from '@material-ui/icons/ArrowForward';\r\nimport {MIN_PASSWORD_LENGTH} from '../config';\r\nimport { stringify } from 'query-string';\r\n\r\nconst danfossPrivacyPolicyUrl = 'https://www.danfoss.com/en/terms/privacy/';\r\nconst hexSelectorTOSUrl = 'https://hexacthost.danfoss.com/hexselector-terms-240313.html';\r\n\r\nconst centerPaperOnPageStyle = {\r\n\twidth: '50%',\r\n\tmargin: '0 auto',\r\n\tpadding: '10px'\r\n};\r\nconst inputWidth = {\r\n\twidth: '90%'\r\n}\r\nconst errorStyle = {\r\n\tcolor: 'white',\r\n\tbackgroundColor: '#f00',\r\n\twidth: '100%'\r\n};\r\n\r\nconst segmentDescriptions = {\r\n\t\"Commercial Cooling\" : \"Mainly refrigerant/brine for Chillers, Heat Pumps applications and similar. Product is 2-phase brazed heat exchangers.\",\r\n\t\"Food & Beverage\" : \"Gasket plate heat exchangers including sanitary frames and connections.\",\r\n\t\"HVAC\" : \"Liquid/liquid and steam/liquid duties. Product types are gasketed and single-phase brazed plate heat exchangers.\",\r\n\t\"Industrial Refrigeration\" : \"Larger chillers where refrigerant mainly is NH3 and product types semi-welded heat exchangers.\",\r\n\t\"Industry\" : \"Liquid/liquid and steam/liquid duties for a variety of industrial applications. Product types are gasketed, semi-welded and single-phase plate heat exchangers.\",\r\n\t\"Marine\" : \"Liquid/liquid and steam/liquid duties for marine applications. Product type is gasketed plate heat exchangers.\",\r\n\t\"HVAC Air Cooled\": \"MCHE is ideal for use in many different applications, such as chillers, residential AC, commercial split/roof tops, condensing unit and bus AC etc.\",\r\n};\r\n\r\n/**\r\n * Implements the 3 required steps to sign up for a HEXSelector account\r\n */\r\nclass RegistrationForm extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {\r\n\t\t\tisBusy: false,\r\n\t\t\terrorMessage: '',\r\n\t\t\thasReadPrivacyPolicy: false,\r\n\t\t\thasReadTermsAndConditions: false,\r\n\t\t\thasAcceptedPP: false,\r\n\t\t\thasAcceptedTOS: false,\r\n\t\t\t//hasAccepted: false,\r\n\t\t\tcodeSent: false,\r\n\t\t\thasVerifiedEmail: false,\r\n\t\t\trequestClicked: false,\r\n\t\t\tcurrentStep: 0,\r\n\t\t\tverificationInfo: {\r\n\t\t\t\temail: '',\r\n\t\t\t\tconfirmationCode: '',\r\n\t\t\t},\r\n\t\t\tuserInfo: {\r\n\t\t\t\temail: '',\r\n\t\t\t\tpassword: '',\r\n\t\t\t\tverifyPassword: '',\r\n\t\t\t\tfirstName: '',\r\n\t\t\t\tsurName: '',\r\n\t\t\t\tcompany: '',\r\n\t\t\t\tcompanyType: '',//'Danfoss',\r\n\t\t\t\ttitle: '',\r\n\t\t\t\tcity: '',\r\n\t\t\t\tcountry: '',//getUserCountry(),\r\n\t\t\t\tphoneNumber: '',\r\n\t\t\t\tuseHexSelector: true,\r\n\t\t\t\thexSelector: {\r\n\t\t\t\t\tinterestDomain: '',\r\n\t\t\t\t\tcontactPerson: '',\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tsegmentHoverText: \"\",\r\n\t\t\tavailableCountries:\r\n\t\t\t[\r\n\t\t\t\t\"Afghanistan\", \"Albania\", \"Algeria\", \"American Samoa\", \"Andorra\", \"Angola\", \"Argentina\",\r\n\t\t\t\t\"Armenia\", \"Australia\", \"Austria\", \"Azerbaijan\",\r\n\t\t\t\t\"Bahamas\", \"Bahrain\", \"Bangladesh\", \"Barbados\", \"Belarus\", \"Belgium\", \"Bolivia\",\r\n\t\t\t\t\"Bosnia and Herzegovina\", \"Brazil\", \"Bulgaria\",\r\n\t\t\t\t\"Cambodia\", \"Canada\", \"Central African Republic\", \"Chile\", \"China\", \"Colombia\",\r\n\t\t\t\t\"Costa Rica\", \"Croatia\", \"Cuba\", \"Cyprus\", \"Czech Republic\",\r\n\t\t\t\t\"Denmark\", \"Dominican Republic\", \"Dubai U.A.E\",\r\n\t\t\t\t\"Ecuador\", \"Egypt\", \"El Salvador\", \"Estonia\",\r\n\t\t\t\t\"Faroe Islands\", \"Finland\", \"France\",\r\n\t\t\t\t\"Gambia\", \"Georgia\", \"Germany\", \"Ghana\", \"Greece\", \"Guatemala\",\r\n\t\t\t\t\"Honduras\", \"Hong Kong\", \"Hungary\",\r\n\t\t\t\t\"Iceland\", \"India\", \"Indonesia\", \"Iran\", \"Iraq\", \"Ireland\", \"Israel\", \"Italy\",\r\n\t\t\t\t\"Jamaica\", \"Japan\", \"Jordan\",\r\n\t\t\t\t\"Kazakhstan\", \"Kenya\", \"Kosovo\", \"Kuwait\", \"Kyrgyzstan\",\r\n\t\t\t\t\"Latvia\", \"Lebanon\", \"Liberia\", \"Libya\", \"Liechtenstein\", \"Lithuania\", \"Luxembourg\",\r\n\t\t\t\t\"Macau\", \"Macedonia\", \"Malaysia\", \"Malta\", \"Mauritius\", \"Mexico\", \"Moldova\", \"Monaco\",\r\n\t\t\t\t\"Mongolia\", \"Montenegro\", \"Morocco\", \"Mozambique\",\r\n\t\t\t\t\"Namibia\", \"Nepal\", \"Netherlands\", \"New Zealand\", \"Nicaragua\", \"Nigeria\", \"North Korea\", \"Norway\",\r\n\t\t\t\t\"Oman\",\r\n\t\t\t\t\"Pakistan\", \"Panama\", \"Paraguay\", \"Peru\", \"Philippines\", \"Poland\", \"Portugal\", \"Puerto Rico\",\r\n\t\t\t\t\"Qatar\", \"Romania\", \"Russia\", \"San Marino\", \"Saudi Arabia\", \"Serbia\", \"Singapore\", \"Slovakia\",\r\n\t\t\t\t\"Slovenia\", \"South Africa\", \"South Korea\",\r\n\t\t\t\t\"Spain\", \"Sri Lanka\", \"Sweden\", \"Switzerland\", \"Syria\", \"Taiwan\", \"Tajikistan\", \"Tanzania\",\r\n\t\t\t\t\"Thailand\", \"Tunisia\", \"Turkey\", \"Turkmenistan\", \"Uganda\",\r\n\t\t\t\t\"Ukraine\", \"United Arab Emirates\", \"United Kingdom\", \"Uruguay\", \"USA\", \"Uzbekistan\",\r\n\t\t\t\t\"Venezuela\", \"Viet Nam\", \"Yemen\", \"Zambia\", \"Zimbabwe\"\r\n\t\t\t],\r\n\t\t\tavailableSegments: \r\n\t\t\t[\r\n\t\t\t\t\"Commercial Cooling\",\r\n\t\t\t\t\"Food & Beverage\",\r\n\t\t\t\t\"HVAC\",\r\n\t\t\t\t\"Industrial Refrigeration\",\r\n\t\t\t\t\"Industry\",\r\n\t\t\t\t\"Marine\",\r\n\t\t\t\t\"HVAC Air Cooled\",\r\n\t\t\t\t// disabled as PPM team is not ready\r\n\t\t\t\t//\"HVAC Air Cooling\",\r\n\t\t\t]\r\n\t\t}\r\n\t}\r\n\r\n\thandleForwardClick() {\r\n\t\tif (!this.canMoveForward()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.setState({ currentStep: this.state.currentStep + 1 });\r\n\t}\r\n\r\n\tvalidateUserAccountInformation() {\r\n\t\tlet msg = [];\r\n\t\tlet ui = this.state.userInfo;\r\n\t\tif (!ui.email) {\r\n\t\t\tmsg.push('Email cannot be empty');\r\n\t\t}\r\n\t\tif (this.state.verificationInfo.email !== ui.email) {\r\n\t\t\tmsg.push(`Email ${ui.userInfo.email} does not match the verified email ${ui.verificationInfo.email}`);\r\n\t\t}\r\n\t\tif (ui.password !== ui.verifyPassword) {\r\n\t\t\tmsg.push('Password must match the password verify input');\r\n\t\t}\r\n\r\n\t\treturn msg;\r\n\t}\r\n\r\n\r\n\r\n\tcanMoveForward() {\r\n\t\tlet currentStep = this.state.currentStep;\r\n\t\tlet canMove = false;\r\n\t\tswitch (currentStep) {\r\n\t\t\tcase 0: return this.state.hasAcceptedPP && this.state.hasAcceptedTOS && this.state.hasReadPrivacyPolicy && this.state.hasReadTermsAndConditions;\r\n\t\t\tcase 1: return this.state.codeSent && this.state.hasVerifiedEmail;\r\n\t\t\tcase 2: return this.validateAccountInfo() && this.state.requestClicked;\r\n\t\t\t// case 3: return this.state.requestClicked;\r\n\t\t\tdefault: return canMove;\r\n\t\t}\r\n\t}\r\n\r\n\tonClickSendCode() {\r\n\t\tthis.setState({\r\n\t\t\tisBusy: true\r\n\t\t});\r\n\t\tfetch(`${API_BASE_URL}/account/preRegister?email=${this.state.verificationInfo.email}`, {\r\n\t\t\tmethod: 'GET',\r\n\t\t\theaders: new Headers({\r\n\t\t\t\t'Content-Type': 'application/json'\r\n\t\t\t})\r\n\t\t})\r\n\t\t.then(r => {\r\n\t\t\tif (r.status === 200) {\r\n\t\t\t\tthis.setState({ isBusy: false, codeSent: true });\r\n\t\t\t} else if (r.status === 400) {\r\n\t\t\t\tthis.setState({ isBusy: false, errorMessage: `Account already exists`});\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ isBusy: false, errorMessage: `Failed to send confirmation code` });\r\n\t\t\t}\r\n\t\t})\r\n\t\t.catch(err => {\r\n\t\t\tthis.setState({ isBusy: false, errorMessage: err.message });\r\n\t\t});\r\n\t}\r\n\r\n\tonClickVerifyCode() {\r\n\t\tthis.setState({ isBusy: true });\r\n\t\tfetch(`${API_BASE_URL}/account/VerifyEmail?email=${this.state.verificationInfo.email}&verificationCode=${this.state.verificationInfo.confirmationCode}`, {\r\n\t\t\tmethod: 'GET',\r\n\t\t\theaders: new Headers({\r\n\t\t\t\t'Content-Type': 'application/json'\r\n\t\t\t})\r\n\t\t})\r\n\t\t.then(r => {\r\n\t\t\tif (r.status === 200) {\r\n\t\t\t\tlet ui = this.state.userInfo;\r\n\t\t\t\tui.email = this.state.verificationInfo.email;\r\n\t\t\t\tthis.setState({\r\n\t\t\t\t\thasVerifiedEmail: true,\r\n\t\t\t\t\tuserInfo: ui,\r\n\t\t\t\t\tcurrentStep: this.state.currentStep + 1,\r\n\t\t\t\t\tbusy: false,\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.setState({ isBusy: false, errorMessage: `${r.status}: Could not verify code. It may be too old. Please retry the previous step` });\r\n\t\t\t}\r\n\t\t}).catch(err => {\r\n\t\t\tthis.setState({ isBusy: false, errorMessage: err.message });\r\n\t\t})\r\n\t}\r\n\r\n\thandleEmailChange(event) {\r\n\t\tlet vInfo = this.state.verificationInfo;\r\n\t\tvInfo.email = event.target.value;\r\n\t\tthis.setState({ verificationInfo: vInfo });\r\n\t};\r\n\t\r\n\thandleCodeChange(event) {\r\n\t\tlet vInfo = this.state.verificationInfo;\r\n\t\tvInfo.confirmationCode = event.target.value;\r\n\t\tthis.setState({ verificationInfo: vInfo });\r\n\t}\r\n\r\n\thandelSubmit(event) {\r\n\t\t// console.log(event);\r\n\t\tevent.preventDefault();\r\n\t}\r\n\r\n\thandleUserInfoChange(event) {\r\n\t\tlet t = event.target;\r\n\t\tlet n = event.target.name;\r\n\t\tlet ui = this.state.userInfo;\r\n\t\tui[n] = t.value;\r\n\t\tthis.setState({ userInfo : ui });\r\n\t\t// console.log(this.state);\r\n\t}\r\n\r\n\thandleUserInfoHexSelectorChange(event) {\r\n\t\tlet t = event.target;\r\n\t\tlet n = event.target.name;\r\n\t\tlet ui = this.state.userInfo;\r\n\t\tconsole.log(t.value);\r\n\t\tui.hexSelector[n] = t.value;\r\n\t\tthis.setState({ userInfo : ui });\r\n\t\t// console.log(this.state);\r\n\t}\r\n\r\n\thandlesUserInfoUseHexSelector(event) {\r\n\t\tlet t = event.target;\r\n\t\tlet checked = t.checked;\r\n\t\tlet ui = this.state.userInfo;\r\n\t\tui.useHexSelector = checked;\r\n\t\tthis.setState({ userInfo: ui });\r\n\t}\r\n\r\n\tshowSegmentTooltip(event) {\r\n\t\tlet t = event.target;\r\n\t\tlet n = event.target.name;\r\n\t\tconsole.log(t);\r\n\t\tconsole.log(n);\r\n\t}\r\n\r\n\tcreateTextField(label, name, type='text') {\r\n\t\treturn (\r\n\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t/>\r\n\t\t);\r\n\t}\r\n\r\n\tasync onSubmitClicked() {\r\n\t\tlet accountInfo = this.gatherAccountInfo();\r\n\t\tthis.setState({ busy: true });\r\n\t\tlet response = await fetch(`${API_BASE_URL}/account/register`, {\r\n\t\t\tmethod: 'POST',\r\n\t\t\theaders: new Headers({\r\n\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded'\r\n\t\t\t}),\r\n\t\t\tbody: stringify(accountInfo),\r\n\t\t});\r\n\t\tif (response.status !== 200) {\r\n\t\t\tlet body = await response.json();\r\n\t\t\tthis.setState({ isBusy: false, errorMessage: body.message });\r\n\t\t} else {\r\n\t\t\tthis.setState({ busy: false, currentStep: this.state.currentStep + 1, requestClicked: true });\r\n\t\t}\r\n\t}\r\n\r\n\tonSubmitClick() {\r\n\t\tlet accountInfo = this.gatherAccountInfo();\r\n\t\tthis.setState({busy: true});\r\n\t\tfetch(`${API_BASE_URL}/account/register`, {\r\n\t\t\tmethod: 'POST',\r\n\t\t\theaders: new Headers({\r\n\t\t\t\t'Content-Type': 'application/x-www-form-urlencoded'\r\n\t\t\t}),\r\n\t\t\tbody: stringify(accountInfo),\r\n\t\t})\r\n\t\t.then(r => {\r\n\t\t\tconsole.log(r);\r\n\t\t\tif (r.status !== 200) {\r\n\t\t\t\tlet msg = r.body();\r\n\t\t\t\tconsole.log(msg);\r\n\t\t\t\tthis.setState({ isBusy: false, errorMessage: msg });\r\n\t\t\t} else {\r\n\t\t\t\tthis.setState({ busy: false, currentStep: this.state.currentStep + 1, requestClicked: true });\r\n\t\t\t}\r\n\t\t}).catch(err => {\r\n\t\t\tconsole.log(err);\r\n\t\t\t// this.setState({ isBusy: false, errorMessage: 'err' });\r\n\t\t});\r\n\t\t// console.log(this.state.userInfo);\r\n\t}\r\n\r\n\tvalidateAccountInfo() {\r\n\t\tlet acc = this.gatherAccountInfo();\r\n\t\tlet valid = true;\r\n\t\tif (!acc.Email) { \r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\tif (!acc.Password || !acc.ConfirmPassword || acc.Password !== acc.ConfirmPassword || acc.Password.length < 8) {\r\n\t\t\tvalid = false;\r\n\t\t} \r\n\t\tif (!acc.Surname) {\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\tif (!acc.GivenName) {\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\tif (!acc.Company) {\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\tif (!acc.Country || this.state.availableCountries.indexOf(acc.Country) === -1) {\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\tif (!acc.HEXSelectorInterestedDomain) {\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\tconsole.log(`validateAccountInfo() = ${valid}`);\r\n\t\treturn valid;\r\n\t}\r\n\r\n\tgatherAccountInfo() {\r\n\t\tlet ui = this.state.userInfo;\r\n\t\tlet accountInfo = {\r\n\t\t\tEmail: ui.email,\r\n\t\t\tPassword: ui.password,\r\n\t\t\tConfirmPassword: ui.verifyPassword,\r\n\t\t\tEmailConfirmationCode: this.state.verificationInfo.confirmationCode,\r\n\t\t\tSurname: ui.surName,\r\n\t\t\tGivenName: ui.firstName,\r\n\t\t\tCompany: ui.company,\r\n\t\t\tCompanyType: ui.companyType,\r\n\t\t\tTitle: ui.title,\r\n\t\t\tCountry: ui.country,\r\n\t\t\tCity: ui.city,\r\n\t\t\tPhoneNumber: ui.phoneNumber,\r\n\t\t\tHEXSelectorInterestedDomain: ui.hexSelector.interestDomain,\r\n\t\t\tHEXSelectorContactPerson: ui.hexSelector.contactPerson,\r\n\t\t}\r\n\t\treturn accountInfo;\r\n\t}\r\n\r\n\tgetStepContent(step) {\r\n\t\tswitch(step){\r\n\t\t\tcase 0: return (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\tAs a user of HEXSelector you will need to read and accept the Danfoss Privacy Policy as well as the HEXSelector Terms of Service\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\tClick both links and read them through. If you agree check both the boxes at the bottom to advance to the next step\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t
    \r\n\t\t\t\t\t
  • \r\n\t\t\t\t\t\t this.setState({hasReadPrivacyPolicy: true })}>\r\n\t\t\t\t\t\t\tDanfoss Privacy Policy\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
  • \r\n\t\t\t\t \t
  • \r\n\t\t\t\t\t\t this.setState({hasReadTermsAndConditions: true })}>\r\n\t\t\t\t\t\t\tHEXSelector Terms and Conditions\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
  • \r\n\t\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.setState({ hasAcceptedPP: !this.state.hasAcceptedPP })}\r\n\t\t\t\t\t\t\t/>}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ hasAcceptedTOS: !this.state.hasAcceptedTOS })}\r\n\t\t\t\t\t\t\t\t/>}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t);\r\n\t\t\tcase 1: return (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Verify Email

\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tBefore we can continue with the registration process we need to verify your email.\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tEnter you email below and press the Send Code button\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tA verification code (6 digits) should be sent to your email. Enter the code in the Code field below and press the Verify button to advance to the next step\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.handleEmailChange(evt)} style={inputWidth} label='Email' type='email' required>\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t this.onClickSendCode()}>\r\n\t\t\t\t\t\t\t\t{this.state.codeSent ? 'Resend' : 'Send'} {this.state.isBusy ? : null}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{this.state.codeSent ?\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tA verification code has been sent to your email. Enter the code into the textbox below and press the Verify\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleCodeChange(evt)}\r\n\t\t\t\t\t\t\ttype='number'\r\n\t\t\t\t\t\t\trequired\r\n\t\t\t\t\t\t\tstyle={inputWidth} \r\n\t\t\t\t\t\t\tlabel='Confirmation Code'>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.onClickVerifyCode()}>\r\n\t\t\t\t\t\t\t\t\tVerify {this.state.isBusy ? : null}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t: null }\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t);\r\n\t\t\tcase 2: return (\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t

User Account Information

({this.state.userInfo.email})\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\tvalue={this.state.userInfo.verifyPassword}\r\n\t\t\t\t\t\t\thelperText='Passwords must match'\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\tvalue={this.state.userInfo.firstName}\r\n\t\t\t\t\t\t\thelperText='First name is required'\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* {this.createTextField('First Name', 'firstName')} */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\tvalue={this.state.userInfo.surName}\r\n\t\t\t\t\t\t\thelperText='Surname is required'\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* {this.createTextField('Surname', 'surName')} */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\tvalue={this.state.userInfo.company}\r\n\t\t\t\t\t\t\thelperText='Company is required'\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* {this.createTextField('Company', 'company')} */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\tvalue={this.state.userInfo.city}\r\n\t\t\t\t\t\t\thelperText='City is required'\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/* {this.createTextField('City', 'city')} */}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCompany Type\r\n\t\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tDanfoss\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tOEM\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tWholesaler\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tContractor\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tConsulting Engineer\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tStudent\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tUtility\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tOther\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tPlease select a Company Type from the list\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tCountry\r\n\t\t\t\t\t\t\t\t this.handleUserInfoChange(evt)}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t{this.state.availableCountries.map(country => {\r\n\t\t\t\t\t\t\t\t\t\treturn {country}\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tPlease select a Country from the list\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.createTextField('Title', 'title')}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{this.createTextField('Phone', 'phoneNumber')}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSegment\r\n\t\t\t\t\t\t\t\t this.handleUserInfoHexSelectorChange(evt)}\r\n\t\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\t\t{this.state.availableSegments.map(seg => {\r\n\t\t\t\t\t\t\t\t\t\treturn
{seg}

{segmentDescriptions[seg]}

\r\n\t\t\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSegment is required. Please read the description carefully\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{/*

{segmentDescriptions[this.state.userInfo.hexSelector.interestDomain]}

*/}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleUserInfoHexSelectorChange(evt)}\r\n\t\t\t\t\t\t\t\tvalue={this.state.userInfo.hexSelector.contactPerson}\r\n\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t await this.onSubmitClicked()}\r\n\t\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\tRequest\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t);\r\n\t\t\tcase 3: return (\r\n\t\t\t\r\n\t\t\t\t{this.state.requestClicked ?
Registration complete
:
Request not sent! Please use the arrow back and click the Request button
}\r\n\t\t\t
);\r\n\t\t\tdefault: return
;\r\n\t\t};\r\n\t}\r\n\r\n\trender() {\r\n\t\tconst steps = ['Terms and privacy', 'Verify Email', 'User Account Information', 'Finish'];\r\n\t\treturn (\r\n\t\t\t
\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{steps.map(label => {\r\n\t\t\t\t\t\t\t\treturn (\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t{label}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t\t})}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t{this.getStepContent(this.state.currentStep)}\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.setState({ currentStep: this.state.currentStep - 1})}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t this.handleForwardClick()}>\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t{this.state.errorMessage === '' ? null : \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t

{this.state.errorMessage}

\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t}\r\n\t\t\t\t\t{process.env.NODE_ENV === 'development' ? \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t

Debug Steppers

\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t:null }\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default RegistrationForm;","import { stringify } from 'query-string';\r\nimport {\r\n fetchUtils,\r\n GET_LIST,\r\n GET_ONE,\r\n GET_MANY,\r\n GET_MANY_REFERENCE,\r\n CREATE,\r\n UPDATE,\r\n UPDATE_MANY,\r\n DELETE,\r\n DELETE_MANY,\r\n} from 'react-admin';\r\nimport { to_b64 } from './Base64Encoder';\r\n\r\n/**\r\n * Maps react-admin queries to a simple REST API\r\n *\r\n * The REST dialect is similar to the one of FakeRest\r\n * @see https://github.com/marmelab/FakeRest\r\n * @example\r\n * GET_LIST => GET http://my.api.url/posts?sort=['title','ASC']&range=[0, 24]\r\n * GET_ONE => GET http://my.api.url/posts/123\r\n * GET_MANY => GET http://my.api.url/posts?filter={ids:[123,456,789]}\r\n * UPDATE => PUT http://my.api.url/posts/123\r\n * CREATE => POST http://my.api.url/posts/123\r\n * DELETE => DELETE http://my.api.url/posts/123\r\n */\r\nvar dp = (apiUrl, httpClient = fetchUtils.fetchJson) => {\r\n /**\r\n * @param {String} type One of the constants appearing at the top if this file, e.g. 'UPDATE'\r\n * @param {String} resource Name of the resource to fetch, e.g. 'posts'\r\n * @param {Object} params The data request params, depending on the type\r\n * @returns {Object} { url, options } The HTTP request parameters\r\n */\r\n const convertDataRequestToHTTP = (type, resource, params) => {\r\n /*\r\n * For the 3 GET request types we encode the query arguments to Base 64.\r\n * This is to avoid triggering the automated log analysis\r\n * \r\n * characters such as [ and ] make the query look like an SQL injection attempt.\r\n */\r\n\r\n\r\n let url = '';\r\n const options = {};\r\n switch (type) {\r\n case GET_LIST: {\r\n const { page, perPage } = params.pagination;\r\n const { field, order } = params.sort;\r\n const query = {\r\n base64: true,\r\n sort: to_b64(JSON.stringify([field, order])),\r\n range: to_b64(JSON.stringify([(page - 1) * perPage, page * perPage - 1,])),\r\n filter: to_b64(JSON.stringify(params.filter)),\r\n };\r\n url = `${apiUrl}/${resource}?${stringify(query)}`;\r\n break;\r\n }\r\n case GET_ONE:\r\n url = `${apiUrl}/${resource}/${params.id}`;\r\n break;\r\n case GET_MANY: {\r\n const query = {\r\n base64: true,\r\n filter: to_b64(JSON.stringify({ ids: params.ids })),\r\n };\r\n url = `${apiUrl}/${resource}?${stringify(query)}`;\r\n break;\r\n }\r\n case GET_MANY_REFERENCE: {\r\n const { page, perPage } = params.pagination;\r\n const { field, order } = params.sort;\r\n const query = {\r\n base64: true,\r\n sort: to_b64(JSON.stringify([field, order])),\r\n range: to_b64(JSON.stringify([(page - 1) * perPage, page * perPage - 1,])),\r\n filter: to_b64(JSON.stringify({...params.filter, [params.target]: params.ids,})),\r\n };\r\n url = `${apiUrl}/${resource}?${stringify(query)}`;\r\n break;\r\n }\r\n case UPDATE:\r\n url = `${apiUrl}/${resource}/${params.id}`;\r\n options.method = 'PUT';\r\n options.body = JSON.stringify(params.data);\r\n break;\r\n case CREATE:\r\n url = `${apiUrl}/${resource}`;\r\n options.method = 'POST';\r\n options.body = JSON.stringify(params.data);\r\n break;\r\n case DELETE:\r\n url = `${apiUrl}/${resource}/${params.id}`;\r\n options.method = 'DELETE';\r\n break;\r\n default:\r\n throw new Error(`Unsupported fetch action type ${type}`);\r\n }\r\n return { url, options };\r\n };\r\n\r\n /**\r\n * @param {Object} response HTTP response from fetch()\r\n * @param {String} type One of the constants appearing at the top if this file, e.g. 'UPDATE'\r\n * @param {String} resource Name of the resource to fetch, e.g. 'posts'\r\n * @param {Object} params The data request params, depending on the type\r\n * @returns {Object} Data response\r\n */\r\n const convertHTTPResponse = (response, type, resource, params) => {\r\n const { headers, json } = response;\r\n switch (type) {\r\n case GET_LIST:\r\n case GET_MANY_REFERENCE:\r\n if (!headers.has('x-total-count')) {\r\n throw new Error(\r\n 'The X-Total-Count header is missing in the HTTP Response.'\r\n );\r\n }\r\n return {\r\n data: json,\r\n total: parseInt(\r\n headers\r\n .get('x-total-count')\r\n .split('/')\r\n .pop(),\r\n 10\r\n ),\r\n };\r\n case CREATE:\r\n return { data: { ...params.data, id: json.id } };\r\n default:\r\n return { data: json };\r\n }\r\n };\r\n\r\n /**\r\n * @param {string} type Request type, e.g GET_LIST\r\n * @param {string} resource Resource name, e.g. \"posts\"\r\n * @param {Object} payload Request parameters. Depends on the request type\r\n * @returns {Promise} the Promise for a data response\r\n */\r\n return (type, resource, params) => {\r\n // simple-rest doesn't handle filters on UPDATE route, so we fallback to calling UPDATE n times instead\r\n if (type === UPDATE_MANY) {\r\n return Promise.all(\r\n params.ids.map(id =>\r\n httpClient(`${apiUrl}/${resource}/${id}`, {\r\n method: 'PUT',\r\n body: JSON.stringify(params.data),\r\n })\r\n )\r\n ).then(responses => ({\r\n data: responses.map(response => response.json),\r\n }));\r\n }\r\n // simple-rest doesn't handle filters on DELETE route, so we fallback to calling DELETE n times instead\r\n if (type === DELETE_MANY) {\r\n return Promise.all(\r\n params.ids.map(id =>\r\n httpClient(`${apiUrl}/${resource}/${id}`, {\r\n method: 'DELETE',\r\n })\r\n )\r\n ).then(responses => ({\r\n data: responses.map(response => response.json),\r\n }));\r\n }\r\n\r\n const { url, options } = convertDataRequestToHTTP(\r\n type,\r\n resource,\r\n params\r\n );\r\n return httpClient(url, options).then(response =>\r\n convertHTTPResponse(response, type, resource, params)\r\n );\r\n };\r\n};\r\nexport default dp;","import { AUTH_LOGIN, AUTH_LOGOUT, AUTH_ERROR, AUTH_CHECK, AUTH_GET_PERMISSIONS } from 'react-admin';\r\nimport { TOKEN_BASE_URL } from './config';\r\nimport secureLocalStorage from \"react-secure-storage\";\r\nimport { stringify } from 'query-string';\r\n\r\n// dummy values to make it prettier and easier to query logged in user access\r\n// just add more when the need arises and update the isInRole method and Permissions object to handle the new role\r\nexport const ROLE_ADMIN = \"1\";\r\nexport const ROLE_LLM = \"2\";\r\nexport const ROLE_USER = \"3\";\r\nexport const ROLE_API = \"4\";\r\nexport const ROLE_UACTIVITY = \"5\";\r\n\r\nexport const isInRole = (role, permissions) => {\r\n if (!permissions || !role) {\r\n return false;\r\n }\r\n switch (role) {\r\n case ROLE_ADMIN: return permissions.isAdmin;\r\n case ROLE_LLM: return permissions.isLLM;\r\n case ROLE_USER: return permissions.isUser;\r\n case ROLE_API: return permissions.isApiUser;\r\n case ROLE_UACTIVITY: return permissions.isUaUser;\r\n default: return false;\r\n }\r\n}\r\n\r\n\r\n/* we don't export these methods below since we don't want whatever component needs the info to have to deal with roles and all that stuff raw\r\n * we just return a completed Permissions object once the AuthProvider resolves the AUTH_GET_PERMISSIONS call.\r\n * that way we can offer a simple flow for permissions check:\r\n * \r\n * import { ROLE_ADMIN, ROLE_LLM, isInRole } from './authProvider';\r\n * \r\n * const { permissions } = usePermissions();\r\n * const isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n * const isLLM = isInRole(ROLE_LLM, permissions);\r\n * \r\n * That's it. permissions will be null until ap resolves but isInRole accounts for that and will just return false until the async usePermissions() call completes.\r\n * Once the call resolves the component re-mounts and everything should work as expected\r\n*/\r\nconst isLLM = (roles) => {\r\n return roles.indexOf('hexselector_llm') >= 0;\r\n}\r\n\r\nconst isAdmin = (roles) => {\r\n return roles.indexOf(\"admin\") >= 0 || roles.indexOf(\"admin_phecalc\") >= 0 || roles.indexOf(\"admin_hexselector\") >=0;\r\n}\r\n\r\nconst isUser = (roles) => {\r\n return roles.indexOf('app_hexselector') >= 0;\r\n}\r\n\r\nconst isApiUser = (roles) => {\r\n return roles.indexOf('hexselector_api') >= 0;\r\n}\r\nconst isUaUser = (roles) => {\r\n return roles.indexOf('hexselector_uactivity') >= 0;\r\n}\r\n\r\nconst Permissions = (roles) => {\r\n let admin = false;\r\n let llm = false;\r\n let user = false;\r\n let api = false;\r\n let uac = false;\r\n try {\r\n if (roles !== undefined && roles !== null) {\r\n admin = isAdmin(roles);\r\n llm = isLLM(roles);\r\n user = isUser(roles);\r\n api = isApiUser(roles);\r\n uac = isUaUser(roles);\r\n }\r\n } catch ({ name, message }) {\r\n console.log(name); \r\n console.log(message);\r\n }\r\n return {\r\n isLLM: llm,\r\n isAdmin: admin,\r\n isUser: user,\r\n isApiUser: api,\r\n isUaUser: uac,\r\n };\r\n}\r\n\r\nconst ap = (type, params) => {\r\n if (type === AUTH_LOGIN) {\r\n const { username, password } = params;\r\n\r\n const body = {\r\n grant_type: 'password',\r\n username: username,\r\n password: password\r\n };\r\n\r\n const request = new Request(TOKEN_BASE_URL, {\r\n method: 'POST',\r\n body: stringify(body),\r\n headers: new Headers({ 'Content-Type': 'application/x-www-form-urlencoded' }),\r\n })\r\n return fetch(request)\r\n .then(response => {\r\n if (response.status < 200 || response.status >= 300) {\r\n throw new Error(\"Login failed. Error code: \" + response.status);\r\n }\r\n return response.json();\r\n })\r\n .then(({ access_token, roles }) => {\r\n localStorage.setItem('token', access_token);\r\n localStorage.removeItem('roles');\r\n secureLocalStorage.setItem('roles', roles);\r\n });\r\n }\r\n if (type === AUTH_LOGOUT) {\r\n localStorage.removeItem('token');\r\n secureLocalStorage.removeItem('roles');\r\n return Promise.resolve();\r\n }\r\n if (type === AUTH_ERROR) {\r\n const status = params.status;\r\n if (status === 401 || status === 403) {\r\n localStorage.removeItem('token');\r\n secureLocalStorage.removeItem('roles');\r\n return Promise.reject();\r\n }\r\n return Promise.resolve();\r\n }\r\n if (type === AUTH_CHECK) {\r\n return localStorage.getItem('token') ? Promise.resolve() : Promise.reject();\r\n }\r\n if (type === AUTH_GET_PERMISSIONS) {\r\n const roles = secureLocalStorage.getItem('roles');\r\n let p = Permissions(roles);\r\n return p ? Promise.resolve(p) : Promise.reject();\r\n } \r\n return Promise.resolve();\r\n}\r\nexport default ap;","import { createBrowserHistory } from 'history';\n\nexport default createBrowserHistory();","import React from 'react';\r\nimport { connect } from 'react-redux';\r\nimport { MenuItemLink, getResources, Responsive } from 'react-admin';\r\nimport { withRouter } from 'react-router-dom';\r\n\r\nimport List from '@material-ui/core/List';\r\nimport ListSubheader from '@material-ui/core/ListSubheader';\r\n\r\nimport PeopleIcon from '@material-ui/icons/People';\r\nimport GroupAddIcon from '@material-ui/icons/GroupAdd';\r\nimport EmailIcon from '@material-ui/icons/Email';\r\nimport RepeatIcon from '@material-ui/icons/Repeat';\r\nimport HourglassEmptyIcon from '@material-ui/icons/HourglassEmpty';\r\nimport DashboardIcon from '@material-ui/icons/Dashboard';\r\nimport ListAltIcon from '@material-ui/icons/ListAlt';\r\nimport TrendingUpIcon from '@material-ui/icons/TrendingUp';\r\nimport LockOpenIcon from '@material-ui/icons/LockOpen';\r\nimport AccountTreeIcon from '@material-ui/icons/AccountTree';\r\nimport OpacityIcon from '@material-ui/icons/Opacity';\r\nimport ExtensionIcon from '@material-ui/icons/Extension';\r\nimport StarBorderIcon from '@material-ui/icons/StarBorder';\r\nimport HistoryIcon from '@material-ui/icons/History';\r\nimport GolfCourseIcon from '@material-ui/icons/GolfCourse';\r\nimport AssessmentIcon from '@material-ui/icons/Assessment';\r\nimport AdjustIcon from '@material-ui/icons/Adjust';\r\nimport { usePermissions } from 'react-admin';\r\nimport { ROLE_ADMIN, ROLE_LLM, ROLE_UACTIVITY,isInRole } from './authProvider';\r\nimport history from './history';\r\n\r\nconst MyMenu = ({ resources, onMenuClick, logout }) => {\r\n\t\tconst { permissions } = usePermissions();\r\n\t\tconst isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n\t\tconst isLLM = isInRole(ROLE_LLM, permissions);\r\n\t\tlet isUA = isInRole(ROLE_UACTIVITY, permissions);\r\n\r\n\t\tif(isAdmin){\r\n\t\t\tisUA = false;\r\n\t\t}\r\n\t\tif(isUA){\r\n\t\t\tif(history.location.hash !== \"#ScheduledTask/UserActivities\"){\r\n\t\t\thistory.replace({ pathname: '/he-auth-admin/', search: '', hash: '#ScheduledTask/UserActivities', state:{isActive: true}});\r\n\t\t}}\r\n\r\n\t\treturn (
\r\n\t\t\t{(isUA) ?}\r\n\t\t\t\tonClick={onMenuClick}\r\n\t\t\t>\r\n\t\t\t:}\r\n\t\t\t\tonClick={onMenuClick}\r\n\t\t\t>\r\n\t\t\t}\r\n\t\t\t{(isLLM || isAdmin) ?\r\n\t\t\tCommon}>\r\n\t\t\t\t{(isLLM || isAdmin) ? } onClick={onMenuClick} /> : null }\r\n\t\t\t\t{isAdmin ? } onClick={onMenuClick} /> : null }\r\n\t\t\t\r\n\t\t\t: null}\r\n\t\t\t{(isLLM || isAdmin) ?\r\n\t\t\tHEXSelector}>\r\n\t\t\t\t{(isLLM || isAdmin) ? } onClick={onMenuClick} /> : null}\r\n\t\t\t\t{isAdmin ? } onClick={onMenuClick} /> : null}\r\n\t\t\t\t{isAdmin ? } onClick={onMenuClick} /> : null}\r\n\t\t\t\t{isAdmin ? } onClick={onMenuClick} /> : null}\r\n\t\t\t\r\n\t\t\t: null}\r\n\t\t\t{(isUA || isAdmin) ?\r\n\t\t\tHEXSelector Statistics}>\r\n\t\t\t\t{(isUA || isAdmin) ?} onClick={onMenuClick} /> : null}\r\n\t\t\t\t{isAdmin ? } onClick={onMenuClick} />: null}\r\n\t\t\t\r\n\t\t\t: null}\r\n\t\t\t{isAdmin ?\r\n\t\t\tHEXSelector Licenses}>\r\n\t\t\t\t} onClick={onMenuClick} />\r\n\t\t\t\t} onClick={onMenuClick} >\r\n\t\t\t\t} onClick={onMenuClick} >\r\n\t\t\t\t} onClick={onMenuClick} >\r\n\t\t\t\t} onClick={onMenuClick} >\r\n\t\t\t\t} onClick={onMenuClick} >\r\n\t\t\t\r\n\t\t\t: null }\r\n\t\t\t{isAdmin ? \r\n\t\t\tHEXSelector AHRI}>\r\n\t\t\t\t} onClick={onMenuClick} />\r\n\t\t\t\r\n\t\t\t: null}\r\n\t\t\t{isAdmin ?\r\n\t\t\tHEXSelector User Groups}>\r\n\t\t\t\t} onClick={onMenuClick} />\r\n\t\t\t\t} onClick={onMenuClick} />\r\n\t\t\t\t} onClick={onMenuClick} />\r\n\t\t\t\r\n\t\t\t: null}\r\n\t\t\t\r\n\t\t
)\r\n};\r\n\r\nconst mapStateToProps = state => ({\r\n\t\tresources: getResources(state),\r\n});\r\n\r\nexport default withRouter(connect(mapStateToProps)(MyMenu));","import React, { Component } from 'react';\r\nimport { \r\n Button,\r\n CircularProgress,\r\n} from '@material-ui/core';\r\nimport { downloadCSV } from 'react-admin';\r\nimport { API_BASE_URL } from '../config';\r\nimport { unparse as convertToCSV } from 'papaparse/papaparse';\r\n\r\nclass CustomExport extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n endPoint: props.endPoint,\r\n expanded: false,\r\n options: 'all',\r\n fetching: false,\r\n filter: props.filter,\r\n filename: props.filename\r\n };\r\n }\r\n\r\n handleExportClick() {\r\n this.setState({ fetching: true });\r\n let token = localStorage.getItem('token');\r\n if (token) {\r\n fetch(`${API_BASE_URL}/${this.state.endPoint}?options=${this.state.options}&filter=${JSON.stringify(this.state.filter)}`, {\r\n method: 'GET',\r\n headers: new Headers({\r\n 'Content-Type': 'application/json',\r\n 'Authorization' : `Bearer ${token}`\r\n })\r\n }).then(response => {\r\n this.setState({ fetching: false });\r\n return response.json();\r\n }).then(data => {\r\n let csvConfig = \r\n {\r\n quotes: false, //or array of booleans\r\n quoteChar: '\"',\r\n escapeChar: '\"',\r\n delimiter: \";\",\r\n header: false,\r\n newline: \"\\r\\n\",\r\n skipEmptyLines: false, //other option is 'greedy', meaning skip delimiters, quotes, and whitespace.\r\n };\r\n //const header = \"Id;Email;Email Domain;Is External;First Name;Last Name;Country;City;Company;Created;Last Activity;User Number;License;User Group;Status;Pandora;General Pandora;Prices;Fluid Editor;Adv. Datasheet;New Sale Pricelist;Branch;Level;Regions;LPL;\\r\\n\";\r\n let convertedCsv = /*header +*/ convertToCSV(data, csvConfig);\r\n downloadCSV(convertedCsv, this.state.filename);\r\n }).catch(err => {\r\n console.log(err);\r\n this.setState({ fetching: false });\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n )\r\n }\r\n}\r\nexport {CustomExport};\r\n","import React, { Component, Fragment } from 'react';\r\nimport {\r\n Filter,\r\n SearchInput,\r\n ReferenceField,\r\n ReferenceInput,\r\n SelectInput,\r\n BooleanInput,\r\n useRefresh,\r\n useRecordContext,\r\n useNotify,\r\n} from 'react-admin';\r\nimport { CircularProgress } from '@material-ui/core';\r\nimport { Tooltip } from '@material-ui/core';\r\nimport Button from '@material-ui/core/Button';\r\nimport EditIcon from '@material-ui/icons/Edit';\r\nimport EmailIcon from '@material-ui/icons/Email';\r\nimport DraftsIcon from '@material-ui/icons/Drafts';\r\nimport { Link } from 'react-router-dom';\r\nimport { linkToRecord } from 'ra-core';\r\nimport { API_BASE_URL } from '../config.jsx';\r\nimport { CustomExport } from './CustomExport';\r\nimport LockOpenIcon from '@material-ui/icons/LockOpen';\r\nimport LockIcon from '@material-ui/icons/Lock';\r\nimport { usePermissions } from 'react-admin';\r\nimport { ROLE_ADMIN, isInRole } from '../authProvider';\r\nimport VpnKeyIcon from '@material-ui/icons/VpnKey';\r\n\r\nconst ResetPasswordButton = () => {\r\n const refresh = useRefresh();\r\n const record = useRecordContext();\r\n const notify = useNotify();\r\n const color = record.mustChangePassword ? { color: 'red' } : { color: 'green' };\r\n const onButtonClick = () => {\r\n const token = localStorage.getItem('token');\r\n fetch(`${API_BASE_URL}/users/ForcePasswordChange?id=${record.id}&value=true`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n }).then(r => {\r\n notify(`User will be forced to reset password on next HEXSelector login`, { type: 'success' });\r\n refresh();\r\n });\r\n }\r\n const toolText = record.mustChangePassword ? 'User already has a pending password reset claim' : 'Add a password reset claim - this forces the user to change their password on next HEXSelector login';\r\n return \r\n}\r\n\r\nconst UserFilter = (props) => {\r\n const { permissions } = usePermissions();\r\n const isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n { props.context === \"button\" && isAdmin ? : null }\r\n \r\n );\r\n};\r\n\r\nconst HEXSelectorButton = ({ record, source, userId='123' }) => {\r\n const stylePending = { color: 'orange' };\r\n const styleApproved = { color: 'green' };\r\n const styleRejected = { color: 'red' };\r\n let disabled = true;\r\n let style = {};\r\n if (record) {\r\n disabled = false;\r\n if (record.licenseStatus === 0) { style = stylePending; }\r\n if (record.licenseStatus === 1) { style = styleApproved; }\r\n if (record.licenseStatus === 2) { style = styleRejected; }\r\n }\r\n return \r\n Edit\r\n ;\r\n};\r\n\r\nclass HEXSelectorField extends Component {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nconst PhecalcButton = ({ record, source }) => {\r\n if (!record) return null;\r\n const stylePending = { color: 'orange' };\r\n const styleApproved = { color: 'green' };\r\n const styleRejected = { color: 'red' };\r\n let disabled = true;\r\n let style = {};\r\n if (record) {\r\n disabled = false;\r\n if (record.licenseStatus === 0) { style = stylePending; }\r\n if (record.licenseStatus === 1) { style = styleApproved; }\r\n if (record.licenseStatus === 2) { style = styleRejected; }\r\n }\r\n return \r\n Edit\r\n ;\r\n};\r\n\r\nclass PhecalcField extends Component {\r\n render() {\r\n return \r\n \r\n ;\r\n }\r\n}\r\n\r\nclass StatusEmailField extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n userId: props.record.id,\r\n fetching: false,\r\n hasSent: false,\r\n };\r\n }\r\n\r\n onButtonClick() {\r\n this.setState({fetching: true});\r\n const token = localStorage.getItem('token');\r\n // options.headers.set('Authorization', `Bearer ${token}`);\r\n fetch(`${API_BASE_URL}/HEXSelector/AccountStatusEmail/${this.state.userId}`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n }).then(r => {\r\n this.setState({fetching: false, hasSent: true});\r\n });\r\n }\r\n\r\n render() {\r\n let icon = this.state.hasSent ? : ;\r\n return \r\n {this.state.fetching ? : }\r\n ;\r\n \r\n }\r\n}\r\n\r\n\r\nclass UserLockoutField extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n userId: props.record.userId,\r\n locked: props.record.lockoutEndDateUtc ? true : false,\r\n fetching: false,\r\n }\r\n }\r\n\r\n onButtonClick() {\r\n this.setState({fetching: true});\r\n const token = localStorage.getItem('token');\r\n // options.headers.set('Authorization', `Bearer ${token}`);\r\n fetch(`${API_BASE_URL}/HEXSelector/AccountStatusEmail/${this.state.userId}`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n }).then(r => {\r\n this.setState({fetching: false, hasSent: true});\r\n });\r\n }\r\n\r\n render() {\r\n let icon = this.state.locked ? : ;\r\n return this.state.fetching ? : \r\n }\r\n}\r\n\r\nclass CreateHSProfileButton extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n userId: props.record.id,\r\n fetching: false,\r\n }\r\n }\r\n\r\n onButtonClick() {\r\n this.setState({ fetching: true });\r\n const token = localStorage.getItem('token');\r\n // options.headers.set('Authorization', `Bearer ${token}`);\r\n fetch(`${API_BASE_URL}/HEXSelector/Users/HSCreate/${this.state.userId}`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n }).then(r => {\r\n this.setState({ fetching: false });\r\n }).catch(err => {\r\n this.setState({ fetching: false });\r\n });\r\n }\r\n render() {\r\n return (\r\n this.state.fetching ? : \r\n )\r\n }\r\n}\r\n\r\nconst BasicButton = ({ record, source }) => {\r\n if (!record) return null;\r\n return \r\n Edit\r\n ;\r\n};\r\n\r\nexport { BasicButton, PhecalcField, HEXSelectorField, UserFilter, StatusEmailField, UserLockoutField, CreateHSProfileButton, ResetPasswordButton};\r\n","import React from 'react';\r\nimport {\r\n List,\r\n TextField,\r\n DateField,\r\n Pagination,\r\n Datagrid,\r\n} from 'react-admin';\r\nimport { UserFilter, BasicButton, HEXSelectorField, UserLockoutField, CreateHSProfileButton, ResetPasswordButton} from './UserListComponents.jsx';\r\nimport { usePermissions } from 'react-admin';\r\nimport { ROLE_ADMIN, isInRole } from '../authProvider';\r\n\r\nconst UserList = (props) => {\r\n const { permissions } = usePermissions();\r\n const isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n return (\r\n } pagination={}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isAdmin ? : null}\r\n {isAdmin ? : null}\r\n {isAdmin ? : null}\r\n \r\n \r\n );\r\n}\r\n\r\nexport default UserList;","import React from 'react';\r\nimport {\r\n TextInput,\r\n Edit,\r\n SimpleForm,\r\n SelectInput,\r\n ReferenceInput,\r\n ReferenceArrayInput,\r\n SelectArrayInput\r\n} from 'react-admin';\r\nimport { usePermissions } from 'react-admin';\r\nimport { ROLE_ADMIN, isInRole } from '../authProvider';\r\n\r\nconst required = (message = 'Required') =>\r\n value => value ? undefined : message;\r\n\r\nconst UserEdit = (props) => {\r\n const { permissions } = usePermissions();\r\n const isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isAdmin ?\r\n \r\n \r\n \r\n : null}\r\n \r\n \r\n );\r\n }\r\n\r\n\r\nexport default UserEdit;","import React, { Component } from 'react';\r\nimport {\r\n List,\r\n Pagination,\r\n} from 'react-admin';\r\nimport Table from '@material-ui/core/Table';\r\nimport TableBody from '@material-ui/core/TableBody';\r\nimport TableCell from '@material-ui/core/TableCell';\r\nimport TableHead from '@material-ui/core/TableHead';\r\nimport TableRow from '@material-ui/core/TableRow';\r\n\r\nconst RoleListTable = ({ ids, data, basePath }) => (\r\n \r\n \r\n \r\n ID\r\n Name\r\n \r\n \r\n \r\n {ids.map(id => {\r\n const row = data[id];\r\n return (\r\n \r\n {row['id']}\r\n {row['name']}\r\n \r\n );\r\n })}\r\n \r\n
\r\n);\r\n\r\nclass RoleList extends Component {\r\n render() {\r\n return (\r\n }>\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default RoleList;","import React, { Component } from \"react\";\r\nimport { API_BASE_URL } from '../config';\r\nimport {\r\n\tGrid,\r\n\tTextField,\r\n\tPaper,\r\n\tButton,\r\n\tCircularProgress,\r\n} from '@material-ui/core';\r\n\r\nconst centerPaperOnPageStyle = {\r\n\twidth: '50%',\r\n\tmargin: '0 auto',\r\n\tpadding: '10px'\r\n};\r\nconst inputWidth = {\r\n\twidth: '90%'\r\n}\r\n\r\n\r\nclass PreResetPassword extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n // Don't call this.setState() here!\r\n this.state = {\r\n isBusy: false,\r\n hasSubmitted: false,\r\n message: '',\r\n email: '',\r\n currentStep: 0,\r\n };\r\n }\r\n\r\n submit = () => {\r\n let values = this.state;\r\n if (!values.email) {\r\n this.setState({\r\n ...this.state,\r\n message: 'Please type in your email.'\r\n });\r\n return;\r\n }\r\n this.setState({\r\n ...this.state,\r\n isBusy: true,\r\n });\r\n fetch(`${API_BASE_URL}/account/preResetPassword`, {\r\n method: 'POST',\r\n headers: new Headers({\r\n 'Content-Type': 'application/json'\r\n }),\r\n body: JSON.stringify(values),\r\n })\r\n .then((response) => {\r\n if (response.status === 200) {\r\n this.setState({\r\n ...this.state,\r\n isBusy: false,\r\n hasSubmitted: true,\r\n });\r\n }\r\n else {\r\n this.setState({\r\n ...this.state,\r\n isBusy: false,\r\n hasSubmitted: false,\r\n message: response,\r\n });\r\n }\r\n });\r\n };\r\n\r\n render() {\r\n return (\r\n this.state.hasSubmitted ?\r\n
\r\n \r\n

\r\n Password reset email has sent to you\r\n

\r\n

\r\n Please check out your mailbox to finish password reset\r\n

\r\n
\r\n
\r\n :\r\n
\r\n \r\n \r\n \r\n

\r\n Enter your email and press Next. An email with a link will be sent to your email address. Click the link to complete your password reset process\r\n

\r\n
\r\n \r\n this.setState({email: evt.target.value })}\r\n />\r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default PreResetPassword;","import React, { Component } from \"react\";\r\nimport { API_BASE_URL } from '../config';\r\nimport {\r\n\tGrid,\r\n\tTextField,\r\n\tPaper,\r\n\tButton,\r\n\tCircularProgress,\r\n} from '@material-ui/core';\r\nimport { MIN_PASSWORD_LENGTH } from \"../config\";\r\nimport { stringify } from 'query-string';\r\n\r\nconst centerPaperOnPageStyle = {\r\n\twidth: '50%',\r\n\tmargin: '0 auto',\r\n\tpadding: '10px'\r\n};\r\nconst inputWidth = {\r\n\twidth: '90%'\r\n}\r\n\r\nclass ResetPassword extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n const queryString = require('query-string');\r\n let qs = window.location.hash.replace(\"/resetpassword?\", \"\"); // because reasons... or.. the people working on React are idiots? maybe.\r\n let parsed = queryString.parse(qs);\r\n\r\n let qEmail = parsed.email;\r\n let qToken = parsed.token;\r\n // Don't call this.setState() here!\r\n this.state = {\r\n isBusy: false,\r\n hasSubmitted: false,\r\n message: '',\r\n token: qToken,\r\n email: qEmail,\r\n password: '',\r\n confirmPassword: '',\r\n };\r\n\r\n }\r\n\r\n submit = () => {\r\n this.setState({\r\n ...this.state,\r\n isBusy: true,\r\n });\r\n // const params = queryString.parse(this.props.location.search);\r\n // values.email = params.email;\r\n // values.token = params.token;\r\n let values = {\r\n email: this.state.email,\r\n token: this.state.token,\r\n newPassword: this.state.password,\r\n confirmPassword: this.state.confirmPassword,\r\n }\r\n return fetch(`${API_BASE_URL}/account/resetPassword`, {\r\n method: 'POST',\r\n headers: new Headers({\r\n 'Content-Type': 'application/x-www-form-urlencoded'\r\n }),\r\n body: stringify(values),\r\n })\r\n .then((response) => {\r\n if (response.status === 200) {\r\n this.setState({\r\n ...this.state,\r\n isBusy: false,\r\n hasSubmitted: true,\r\n });\r\n }\r\n else if (response.status === 400) {\r\n this.setState({\r\n ...this.state,\r\n isBusy: false,\r\n hasSubmitted: false,\r\n });\r\n return response.json()\r\n .then((data) => {\r\n if (!!data.modelState['']) { // Invalid token\r\n alert('This page is no longer valid. You can try to restart your password reset process.');\r\n return;\r\n }\r\n let data2 = {};\r\n for (let key in data.modelState) {\r\n // model.Email -> email\r\n let newKey = key.substr(6);\r\n newKey = newKey[0].toLowerCase() + newKey.substr(1);\r\n data2[newKey] = data.modelState[key][0];\r\n }\r\n // throw new SubmissionError({\r\n // ...data2,\r\n // });\r\n });\r\n }\r\n else {\r\n this.setState({\r\n ...this.state,\r\n isBusy: false,\r\n hasSubmitted: false,\r\n });\r\n console.log(this.state);\r\n }\r\n });\r\n };\r\n\r\n render() {\r\n // it should not be possible to land on this page unless following a link from and email generated with /preResetPassword\r\n // if (!(params && params.email && params.token)) {\r\n // return \r\n // }\r\n\r\n return (\r\n this.state.hasSubmitted ?\r\n
\r\n \r\n

\r\n Successfully reset password. Your new password is effective immediately.\r\n

\r\n
\r\n
\r\n :\r\n
\r\n \r\n \r\n \r\n

\r\n\r\n

\r\n
\r\n \r\n this.setState({ password: evt.target.value })}\r\n />\r\n \r\n \r\n this.setState({ confirmPassword: evt.target.value })}\r\n />\r\n \r\n \r\n\r\n \r\n
\r\n
\r\n );\r\n }\r\n}\r\n\r\nexport default ResetPassword;","import React, { Component } from 'react';\nimport {\n TextInput,\n Create,\n SimpleForm,\n SelectInput,\n ReferenceInput,\n // LongTextInput,\n BooleanInput,\n // DisabledInput,\n} from 'react-admin';\n\n// const required = (message = 'Required') =>\n// value => value ? undefined : message;\n\nclass HEXSelectorUserCreate extends Component {\n render() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default HEXSelectorUserCreate;","import TreeView, { flattenTree } from \"react-accessible-treeview\";\r\nimport { useGetOne } from 'react-admin';\r\nimport { CircularProgress, Paper } from '@material-ui/core';\r\n\r\nconst RenderTree = (resource, resourceId) => {\r\n const { data, isLoading, error } = useGetOne(resource, resourceId);\r\n if (isLoading) {\r\n return ()\r\n }\r\n if (error) {\r\n console.log(error);\r\n return (Error loading data)\r\n }\r\n if (!data) {\r\n console.log(data);\r\n return (No data)\r\n }\r\n const treeData = flattenTree(data);\r\n return (\r\n
\r\n {data.name}\r\n (\r\n \r\n {element.name}\r\n \r\n )}\r\n />\r\n
\r\n )\r\n}\r\nexport default RenderTree;","import React from 'react';\r\nimport {\r\n Edit,\r\n SimpleForm,\r\n TextInput,\r\n SelectInput,\r\n ReferenceInput,\r\n ReferenceArrayInput,\r\n SelectArrayInput,\r\n ChipField,\r\n BooleanInput,\r\n FormDataConsumer,\r\n} from 'react-admin';\r\nimport { Grid, Paper, Accordion, AccordionSummary, AccordionDetails } from '@material-ui/core';\r\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\r\nimport { usePermissions } from 'react-admin';\r\nimport RenderTree from './RenderTree';\r\nimport { ROLE_ADMIN, isInRole } from '../authProvider';\r\n\r\nconst wItems = {\r\n\twidth: '75%',\r\n padding: '1em'\r\n}\r\nconst wContainer = {\r\n\twidth: '100%'\r\n}\r\n\r\n\r\nconst HEXSelectorUserEdit = (props) => {\r\n const { permissions } = usePermissions();\r\n const isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n return (\r\n \r\n \r\n \r\n \r\n

Basic Settings

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isAdmin ?\r\n \r\n \r\n \r\n : null}\r\n {isAdmin ? \r\n \r\n \r\n \r\n : null}\r\n {isAdmin ?\r\n \r\n \r\n \r\n : null }\r\n \r\n \r\n \r\n

Regional Settings

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isAdmin ? \r\n \r\n \r\n \r\n \r\n \r\n : null }\r\n
\r\n \r\n \r\n

Details

\r\n \r\n {({ formData, ...rest }) => RenderTree('HEXSelector/SegmentCollectionsTree', formData.segmentsId) }\r\n \r\n {isAdmin ?\r\n \r\n {({ formData, ...rest }) => RenderTree('HEXSelector/PlateListsTree', formData.plateListId)}\r\n \r\n : null }\r\n
\r\n
\r\n \r\n

Program Settings

\r\n {isAdmin ? \r\n
\r\n \r\n
\r\n : null}\r\n {isAdmin ? \r\n
\r\n \r\n \r\n {({ formData, ...rest }) => !formData.enablePandoraEditor &&\r\n \r\n }\r\n \r\n \r\n
\r\n : null }\r\n \r\n \r\n {isAdmin ? : null}\r\n {isAdmin ? : null}\r\n {isAdmin ? : null}\r\n {isAdmin ?\r\n
\r\n

Temporary until HEXSelector is fixed

\r\n \r\n \r\n
\r\n : null }\r\n

GHEX

\r\n \r\n \r\n {isAdmin ?\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {({ formData, ...rest }) => formData.enableGHEXCost &&\r\n \r\n }\r\n \r\n
\r\n : null }\r\n
\r\n \r\n

BHEX

\r\n \r\n \r\n {isAdmin ? : null}\r\n

SW

\r\n \r\n \r\n \r\n {isAdmin ? : null}\r\n {isAdmin ?\r\n
\r\n

CC

\r\n \r\n
\r\n : null }\r\n\r\n
\r\n
\r\n {isAdmin ? \r\n \r\n }>\r\n Account Change History\r\n \r\n \r\n
\r\n \r\n {({ formData, ...rest }) => RenderTree('HEXSelector/Users/History', formData.id)}\r\n \r\n
\r\n
\r\n
\r\n : null }\r\n
\r\n
\r\n );\r\n}\r\n\r\nexport default HEXSelectorUserEdit;","import React, { Component, Fragment } from 'react';\r\nimport {\r\n List,\r\n TextField,\r\n EmailField,\r\n // ReferenceField,\r\n // DateField,\r\n Filter,\r\n Pagination,\r\n SearchInput,\r\n Datagrid,\r\n ReferenceInput,\r\n SelectInput,\r\n DeleteButton,\r\n BulkDeleteButton,\r\n ShowButton,\r\n Show,\r\n SimpleShowLayout,\r\n ArrayField,\r\n SingleFieldList,\r\n ChipField,\r\n ListButton,\r\n} from 'react-admin';\r\n\r\nconst CrashReportFilters = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n)\r\n\r\nconst CrashReportActions = (props) => (\r\n \r\n \r\n \r\n)\r\n\r\nexport class HEXSelectorUserReportingList extends Component {\r\n render() {\r\n return (\r\n } filters={} bulkActionButtons={}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\nconst StackTraceField = ({ record }) => (\r\n
    \r\n {record.stackTraceDetails ? record.stackTraceDetails.map(item => (\r\n
  1. \r\n {item.azureSearchLink ? {item.frame} : item.frame}\r\n
  2. \r\n )) : ''}\r\n
\r\n);\r\nStackTraceField.defaultProps = { addLabel: true };\r\n\r\nexport class HEXSelectorCrashReportDetail extends Component {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n )\r\n }\r\n}\r\n","import React, { Component } from 'react';\nimport {\n List,\n TextField,\n EmailField,\n NumberField,\n Pagination,\n Datagrid,\n ArrayField,\n SingleFieldList,\n ChipField,\n DateField,\n} from 'react-admin';\n\nexport class HEXSelectorClientTelemetricsList extends Component {\n render() {\n return (\n }>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}","import React, { Component } from 'react';\r\nimport {\r\n List,\r\n EmailField,\r\n TextField,\r\n DateField,\r\n Pagination,\r\n Datagrid,\r\n ReferenceField,\r\n ReferenceArrayField,\r\n SingleFieldList,\r\n ChipField,\r\n Filter,\r\n SearchInput,\r\n} from 'react-admin';\r\nimport {HEXSelectorField, BasicButton} from './UserListComponents';\r\nimport { Button } from '@material-ui/core';\r\nimport EmailIcon from '@material-ui/icons/Email';\r\nimport CheckIcon from '@material-ui/icons/Check';\r\nimport CloseIcon from '@material-ui/icons/Close';\r\nimport { API_BASE_URL } from '../config.jsx';\r\n// import { Link } from 'react-router-dom';\r\n// import { linkToRecord } from 'ra-core';\r\nimport { usePermissions } from 'react-admin';\r\nimport { ROLE_ADMIN, isInRole } from '../authProvider';\r\n\r\n\r\nclass NotifyLLMButton extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {\r\n userId: props.record.id,\r\n fetching: false,\r\n hasSent: false,\r\n failed: false,\r\n };\r\n }\r\n NotifyLLM = (id) => {\r\n console.log(id);\r\n const token = localStorage.getItem('token');\r\n this.setState({ fetching: true, hasSent: false });\r\n fetch(`${API_BASE_URL}/HEXSelector/Account/NotifyLLM?userId=${id}`, {\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n }).then(r => {\r\n if (!r.ok) {\r\n throw Error(r.statusText);\r\n }\r\n this.setState({ fetching: false, hasSent: true });\r\n }).catch(err => {\r\n console.log(err);\r\n this.setState({ fetching: false, hasSent: false, failed: true })\r\n });\r\n\r\n }\r\n render() {\r\n return (\r\n this.NotifyLLM(this.state.userId)}\r\n >\r\n {this.state.hasSent ? : ''}{this.state.failed ? : ''}\r\n \r\n )\r\n }\r\n}\r\n\r\nclass NotifyLLMField extends Component {\r\n render() {\r\n return (\r\n \r\n \r\n )\r\n }\r\n}\r\n\r\nconst PendingFilter = (props) => {\r\n return (\r\n \r\n \r\n\r\n \r\n );\r\n}\r\n\r\nexport const HEXSelectorPendingRequestsList = (props) => {\r\n const {permissions} = usePermissions();\r\n const isAdmin = isInRole(ROLE_ADMIN, permissions);\r\n return (\r\n } filters={}>\r\n \r\n \r\n \r\n {/* */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {isAdmin ?\r\n \r\n \r\n \r\n \r\n \r\n : null}\r\n \r\n \r\n {isAdmin ? : null }\r\n \r\n );\r\n}\r\n","import React from 'react';\nimport {\n List,\n SingleFieldList,\n ChipField,\n CheckboxGroupInput ,\n Pagination,\n Datagrid,\n TextField,\n // ArrayField,\n Show,\n SimpleShowLayout,\n ReferenceField,\n ReferenceArrayField,\n Edit,\n EditButton,\n SimpleForm,\n TextInput,\n SelectArrayInput,\n ReferenceInput,\n ReferenceArrayInput,\n SelectInput,\n Create,\n FormDataConsumer,\n} from 'react-admin';\n\nexport const HEXSelectorPlateList = (props) => (\n }>\n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateEdit = (props) => (\n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateCreate = (props) => (\n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateListsList = (props) => (\n }>\n \n \n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateListsCreate = (props) => (\n \n \n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateListsEdit = (props) => (\n \n \n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateListsShow = (props) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateTypeListsList = (props) => (\n }>\n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateTypeListsShow = (props) => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport const HEXSelectorPlateTypeListsEdit = (props) => (\n \n \n \n \n \n \n {/* */}\n \n {({ formData, ...rest }) => \n \n \n \n \n \n } \n \n \n \n);\n\nexport const HEXSelectorPlateTypeListsCreate = (props) => (\n \n \n \n \n \n \n {/* */}\n \n {({ formData, ...rest }) => \n \n \n \n \n \n } \n \n \n \n);","import React, { Component } from 'react';\nimport {\n Edit,\n SimpleForm,\n BooleanInput,\n SelectInput,\n ReferenceInput,\n} from 'react-admin';\n\n// const required = (message = 'Required') =>\n// value => value ? undefined : message;\n\nclass PhecalcUserEdit extends Component {\n render() {\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n }\n}\n\nexport default PhecalcUserEdit;","import React from 'react';\r\nimport {\r\n Edit,\r\n Create,\r\n List,\r\n Datagrid,\r\n SimpleForm,\r\n EditButton,\r\n TextField,\r\n NumberField,\r\n ArrayField,\r\n ReferenceField,\r\n // ReferenceManyField,\r\n ReferenceArrayField,\r\n SingleFieldList,\r\n ChipField,\r\n BooleanInput,\r\n TextInput,\r\n NumberInput,\r\n // ArrayInput,\r\n SelectInput,\r\n SelectArrayInput,\r\n // CheckboxGroupInput,\r\n ReferenceInput,\r\n ReferenceArrayInput,\r\n Pagination,\r\n BooleanField\r\n} from 'react-admin';\r\nimport Paper from '@material-ui/core/Paper';\r\nimport Divider from '@material-ui/core/Divider';\r\n\r\nconst width100 = {\r\n width: \"100%\"\r\n}\r\nconst ofPointsInput = {\r\n margin: \"1em\"\r\n}\r\nconst halfWithMargin = {\r\n margin: \"1em\",\r\n width: \"45%\"\r\n}\r\nconst fullWithMargin = {\r\n margin: \"1em\",\r\n width: \"95%\"\r\n}\r\n\r\nexport const HEXSelectorSegmentCollectionList = (props) => (\r\n } {...props}>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorSegmentCollectionEdit = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorSegmentCollectionCreate = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorSegmentList = (props) => (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorSegmentEdit = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorSegmentCreate = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n \r\nexport const HEXSelectorApplicationList = (props) => (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorApplicationEdit = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\nexport const HEXSelectorApplicationCreate = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorProductList = (props) => (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {/* \r\n \r\n \r\n \r\n */}\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorProductEdit = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\nexport const HEXSelectorProductCreate = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\n\r\nexport const HEXSelectorPandoraConfigList = (props) => (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const HEXSelectorPandoraConfigCreate = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

Delta Pressure OF (values in %)

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n

Load OF based on NTU (values in %)

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n);\r\n\r\nexport const HEXSelectorPandoraConfigEdit = (props) => (\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n

Delta Pressure OF (values in %)

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n

Load OF based on NTU (values in %)

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
\r\n);","import React, { Component } from 'react';\nimport { \n List,\n ArrayField,\n DateField,\n Datagrid,\n SimpleForm,\n FileInput,\n FileField,\n TextInput,\n Create,\n} from 'react-admin';\n\nclass RegionalSettingsList extends Component {\n render() {\n return (\n \n \n \n \n \n \n \n \n\n \n \n );\n }\n}\n \nclass RegionalSettingsCreate extends Component {\n constructor(props) {\n super(props);\n this.state = {\n fileAsBase64String: null\n };\n }\n\n onFileChange(e) {\n console.log(e);\n const reader = new FileReader();\n reader.onload = () => this.onFileRead(reader.result);\n reader.readAsDataURL(e);\n }\n\n onFileRead(f) {\n this.setState({ fileAsBase64String: f});\n }\n\n render() {\n return (\n \n \n this.onFileChange(evt)}>\n \n \n \n \n \n );\n }\n}\n\nclass RegionalSettingsView extends Component {\n render() {\n return (\n \n \n \n \n \n );\n }\n}\n\nexport { RegionalSettingsView, RegionalSettingsList, RegionalSettingsCreate };","import React from \"react\";\r\nimport { Chart } from \"react-google-charts\";\r\n\r\nfunction PieChart({data}) {\r\n var options = {\r\n title: \"Calculalations by user type\",\r\n is3D: true,\r\n\r\n };\r\n \r\n return (\r\n \r\n );\r\n }\r\n function PieChartProduct({dataprod}) {\r\n var options = {\r\n title: 'Calculations per product type',\r\n };\r\n \r\n return (\r\n \r\n );\r\n }\r\n \r\n function Linechart({data2}) {\r\n var options = {\r\n chart: {\r\n title: \"Calculations Count Per Month\",\r\n subtitle: \"Last 12 Months Caclculation Chart\",\r\n },\r\n };\r\n return (\r\n \r\n );\r\n}\r\n\r\nfunction Barchart({data3}) {\r\n var options = {\r\n chart: {\r\n title: \"Calculations per segment in %\",\r\n },\r\n };\r\n return (\r\n \r\n );\r\n}\r\nfunction BarCountires({datacountries}) {\r\n var options = {\r\n chart: {\r\n title: \"Calculations top 10 Countires\",\r\n },\r\n };\r\nreturn (\r\n \r\n);\r\n}\r\n\r\n\r\n\r\n\r\nexport {PieChart, PieChartProduct, Linechart, Barchart, BarCountires};","/* eslint-disable jsx-a11y/anchor-is-valid */\r\nimport React, { createRef, Fragment } from 'react'\r\n\r\nexport function AuthenticatedLink ({ url, filename, children }) {\r\n const link = createRef()\r\n const token = localStorage.getItem('token');\r\n const handleAction = async () => {\r\n if (link.current.href) { return }\r\n \r\n const result = await fetch(url, {\t\r\n headers: new Headers({ Authorization: `Bearer ${token}` })\r\n })\r\n \r\n const blob = await result.blob()\r\n const href = window.URL.createObjectURL(blob)\r\n \r\n link.current.download = filename\r\n link.current.href = href\r\n \r\n link.current.click()\r\n }\r\n\r\n return (\r\n \r\n {children}\r\n \r\n )\r\n}","import React, {Component, Fragment} from 'react';\r\nimport { useState, useEffect } from \"react\";\r\nimport {PieChart, PieChartProduct, Linechart, Barchart, BarCountires} from './ChartsUserActivity';\r\nimport { API_BASE_URL } from '../config';\r\nimport {\r\n List,\r\n Datagrid,\r\n TextField,\r\n DateField,\r\n SingleFieldList,\r\n ChipField,\r\n ArrayField,\r\n Pagination,\r\n Edit,\r\n Create,\r\n TextInput,\r\n EditButton,\r\n SimpleForm,\r\n // ReferenceInput,\r\n} from 'react-admin';\r\nimport {AuthenticatedLink} from './AuthenticatedLink';\r\nimport {\r\n\tGrid,\r\n\tPaper,\r\n\tButton,\r\n\tCircularProgress,\r\n FormControlLabel,\r\n\t// FormControl,\r\n} from '@material-ui/core';\r\n\r\n// import {\r\n// MuiPickersUtilsProvider,\r\n// KeyboardTimePicker,\r\n// KeyboardDatePicker,\r\n// } from '@material-ui/pickers';\r\n//import { Form } from 'redux-form';\r\n// import DateFnsUtils from \"@date-io/date-fns\";\r\n\r\nclass UserActivityReportDownloader extends Component {\r\n constructor(props) {\r\n super(props)\r\n this.state = {\r\n reportName: props.record.id\r\n };\r\n }\r\n\r\n render() {\r\n return (\r\n Download\r\n );\r\n }\r\n}\r\n\r\nconst paddingStyle = {\r\n padding: \"2em\",\r\n}\r\n\r\nclass UAGen extends Component {\r\n constructor(props) {\r\n super(props)\r\n let [month, date, year] = ( new Date() ).toLocaleDateString().split(\"/\");\r\n let startYear = month === \"1\" ? (year - 1).toString() : year;\r\n let startMonth = month === \"1\" ? \"12\" : (month - 1).toString();\r\n this.state = {\r\n start: `${startYear}-${startMonth.padStart(2, '0')}-${date.padStart(2, '0')}`,\r\n end: `${year}-${month.padStart(2, '0')}-${date.padStart(2, '0')}`,\r\n fetching: false,\r\n url: props.url,\r\n };\r\n }\r\n\r\n onGenerateClick = async () => {\r\n this.setState({ fetching: true });\r\n const token = localStorage.getItem('token');\r\n const result = await fetch(`${this.state.url}?start=${this.state.start}&end=${this.state.end}`, {\t\r\n headers: new Headers({ Authorization: `Bearer ${token}` })\r\n }).then((res) => res.json());\r\n\r\n if (result) {\r\n this.setState({ fetching: false });\r\n localStorage.removeItem('dt');\r\n var dt = `${this.state.url}?start=${this.state.start}&end=${this.state.end}`;\r\n localStorage.setItem('dt', JSON.stringify(dt));\r\n window.location.reload();\r\n }\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n \r\n {/* */}\r\n this.setState({ start: e.target.value })}>}/>\r\n {/* \r\n */}\r\n this.setState({ end: e.target.value })}>}/>\r\n {/* \r\n */}\r\n this.onGenerateClick()} >{this.state.fetching ? : Generate}\r\n {/* \r\n */}\r\n \r\n {this.state.fetching ? \"Your report is being generated. This might take several minutes. The page will refresh when the report is ready\" : null}\r\n \r\n {/* */}\r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nfunction DrawCharts() {\r\n var dataPie = [];\r\n var dataPieProduct = [];\r\n var dataBar = [];\r\n var dataCountry = [];\r\n var createCharts = true;\r\n\r\n const [items, setItems] = useState([]);\r\n \r\n useEffect(() => {\r\n async function fetchrData() {\r\n const dtr = JSON.parse(localStorage.getItem('dt'));\r\n if (dtr){\r\n const resultr = await fetch(dtr, {\t\r\n headers: new Headers({ Authorization: `Bearer ${localStorage.getItem('token')}` })\r\n }).then((res) => res.json());\r\n setItems({...resultr});\r\n }\r\n }\r\n fetchrData();\r\n }, []);\r\n\r\n const [calcount, setCalcount] = useState({});\r\n useEffect(() => {\r\n async function fetchData() {\r\n const calcount = await fetch(`${API_BASE_URL}/ScheduledTask/GenerateCalculationCount`, {\t\r\n headers: new Headers({ Authorization: `Bearer ${localStorage.getItem('token')}` })\r\n }).then((res) => res.json());\r\n setCalcount(calcount);\r\n }\r\n fetchData();\r\n }, []);\r\n\r\n if(items && Object.keys(items).length !== 0){localStorage.removeItem('dt');}\r\n if(items.length === 0 || Object.keys(items).length === 0){createCharts = false;}\r\n if(Object.keys(items).length > 0)\r\n {\r\n var ExternalCalc = Object.values(items).filter((activity) => activity.isExternal === true).length;\r\n var InternalCalc = Object.values(items).filter((activity) => activity.isExternal === false).length;\r\n var GHEXProd = Object.values(items).filter((activity) => activity.productType === \"GHEX\").length;\r\n var BHEXProd = Object.values(items).filter((activity) => activity.productType === \"BHEX\").length;\r\n var SWProd = Object.values(items).filter((activity) => activity.productType === \"SW\").length;\r\n var SegTotal = Object.values(items).filter((activity) => activity.segment).length;\r\n var SegHVAC = (Object.values(items).filter((activity) => activity.segment === \"HVAC\").length)*100/SegTotal;\r\n var SegIndustry = (Object.values(items).filter((activity) => activity.segment === \"Industry\").length)*100/SegTotal;\r\n var SegMarine = (Object.values(items).filter((activity) => activity.segment === \"Marine\").length)*100/SegTotal;\r\n var SegIRF = (Object.values(items).filter((activity) => activity.segment === \"Ind. Refrigeration\").length)*100/SegTotal;\r\n var SegHVACandR = (Object.values(items).filter((activity) => activity.segment === \"HVAC&R\").length)*100/SegTotal;\r\n var ResCountries = Object.values(items).map((activity) => activity.country)\r\n var counts = ResCountries.reduce((map, val) => {map[val] = (map[val] || 0)+1; return map}, {} );\r\n var ArrayCounts = Object.entries(counts);\r\n var SortedCount = ArrayCounts.sort(function(a, b) { return a[1] < b[1] ? 1 : -1;});\r\n var TopCountries = SortedCount.slice(0, 10);\r\n var PerMonthCount = Object.entries(calcount);\r\n \r\n dataPie = [\r\n ['User', 'Calculations'],\r\n ['External', ExternalCalc],\r\n ['Internal', InternalCalc],\r\n ];\r\n dataPieProduct = [\r\n ['ProductType', ''],\r\n ['GHEX', GHEXProd],\r\n ['SW', SWProd],\r\n ['BHEX', BHEXProd],\r\n ];\r\n dataBar = [\r\n [\"Segments\", \"\"],\r\n [\"HVAC\", SegHVAC,],\r\n [\"Ind\", SegIndustry],\r\n [\"Mrn\", SegMarine],\r\n [\"IRF\", SegIRF],\r\n [\"HVACR\", SegHVACandR],\r\n ];\r\n dataCountry = [\r\n ['Countries', ''],\r\n ...TopCountries\r\n ];\r\n var dataLine = [\r\n [\"Month\", \"\"],\r\n ...PerMonthCount.reverse()\r\n ];\r\n }\r\n\r\n if(Object.keys(items).length !== 0)\r\n {\r\n localStorage.removeItem('items');\r\n }\r\n\r\n if(createCharts){\r\n return (\r\n <>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n else{\r\n return<>\r\n }}\r\n\r\nexport const UserActivityList = (props) => (\r\n \r\n \r\n

Generate Report

\r\n \r\n

Previous Reports

\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
\r\n);\r\n\r\nexport const VIPCustomerList = (props) => (\r\n \r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n);\r\n\r\nexport const VIPCustomerEdit = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n)\r\n\r\nexport const VIPCustomerCreate = (props) => (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n)","import React from 'react';\nimport {\n List,\n SingleFieldList,\n ChipField,\n Pagination,\n Datagrid,\n TextField,\n ReferenceArrayField,\n Edit,\n EditButton,\n DeleteButton,\n SimpleForm,\n TextInput,\n SelectArrayInput,\n ReferenceArrayInput,\n Create,\n BooleanField,\n BooleanInput,\n TopToolbar,\n FilterButton,\n CreateButton,\n} from 'react-admin';\nimport { CustomExport } from './CustomExport';\n\nconst w100 = {\n width: \"100%\"\n};\n\nconst llmListFilter = [\n ,\n ,\n ,\n];\n\n\nconst LlmActions = (props) => (\n \n \n \n \n \n);\n\nexport const LLMList = (props) => {\n return (\n } actions={} sort={{ field: 'name', order: 'ASC' }}>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport const LLMEdit = (props) => (\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 \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport const LLMCreate = (props) => (\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 \n \n \n \n \n \n \n \n \n \n \n \n);","import React, { Component } from 'react';\r\nimport {\r\n List,\r\n EditButton,\r\n DeleteButton,\r\n Pagination,\r\n Datagrid,\r\n TextField,\r\n BooleanField,\r\n Edit,\r\n Create,\r\n SimpleForm,\r\n TextInput,\r\n BooleanInput\r\n} from 'react-admin';\r\n\r\nclass AHRIList extends Component {\r\n render() {\r\n return (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nclass AHRIEdit extends Component {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n}\r\n\r\nclass AHRICreate extends Component {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n}\r\n\r\nexport { AHRIList, AHRICreate, AHRIEdit }","import React, { Component } from 'react';\r\nimport {\r\n List,\r\n EditButton,\r\n Pagination,\r\n Datagrid,\r\n TextField,\r\n BooleanField,\r\n Edit,\r\n Create,\r\n SimpleForm,\r\n TextInput,\r\n BooleanInput,\r\n DateField,\r\n DateInput\r\n} from 'react-admin';\r\n\r\nclass PlatePandoraList extends Component {\r\n render() {\r\n return (\r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nclass PlatePandoraEdit extends Component {\r\n render() {\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n )\r\n }\r\n}\r\n\r\nexport { PlatePandoraList, PlatePandoraEdit }\r\n","import React from 'react';\r\n// import JssProvider from 'react-jss/lib/JssProvider';\r\nimport { createTheme } from '@material-ui/core/styles'\r\nimport { fetchUtils, Admin, Layout, Resource } from 'react-admin';\r\nimport { \r\n ListGuesser,\r\n // EditGuesser\r\n } from 'react-admin';\r\nimport { Route } from 'react-router-dom';\r\n\r\nimport RegistrationForm from './components/Registration.v2.jsx';\r\n\r\nimport dataProvider from './dataProvider.jsx';\r\nimport authProvider from './authProvider.jsx';\r\nimport { API_BASE_URL } from './config.jsx';\r\n\r\nimport MyMenu from './MyMenu.jsx';\r\nimport UserList from './components/UserList.jsx';\r\nimport UserEdit from './components/UserEdit.jsx';\r\nimport RoleList from './components/RoleList.jsx';\r\n\r\nimport PreResetPassword from './components/PreResetPassword.jsx';\r\nimport ResetPassword from './components/ResetPassword.jsx';\r\n\r\nimport HEXSelectorUserCreate from './components/HEXSelectorUserCreate.jsx';\r\nimport HEXSelectorUserEdit from './components/HEXSelectorUserEdit.jsx';\r\n\r\nimport { HEXSelectorUserReportingList, HEXSelectorCrashReportDetail } from './components/HEXSelectorUserReportingList.jsx';\r\nimport { HEXSelectorClientTelemetricsList } from './components/HEXSelectorClientTelemetrics.jsx';\r\nimport { HEXSelectorPendingRequestsList } from './components/HEXSelectorPending.jsx';\r\nimport {\r\n HEXSelectorPlateCreate,\r\n HEXSelectorPlateEdit,\r\n HEXSelectorPlateList,\r\n HEXSelectorPlateListsList,\r\n HEXSelectorPlateListsCreate,\r\n HEXSelectorPlateListsEdit,\r\n HEXSelectorPlateListsShow,\r\n HEXSelectorPlateTypeListsList,\r\n HEXSelectorPlateTypeListsEdit,\r\n HEXSelectorPlateTypeListsShow,\r\n HEXSelectorPlateTypeListsCreate,\r\n} from './components/HEXSelectorPlateLists.jsx'\r\n\r\nimport PhecalcUserEdit from './components/PhecalcUserEdit.jsx';\r\nimport { \r\n HEXSelectorSegmentCollectionList,\r\n HEXSelectorSegmentCollectionEdit,\r\n HEXSelectorSegmentCollectionCreate,\r\n HEXSelectorPandoraConfigList,\r\n HEXSelectorPandoraConfigEdit,\r\n HEXSelectorPandoraConfigCreate,\r\n HEXSelectorProductList,\r\n HEXSelectorProductEdit,\r\n HEXSelectorProductCreate,\r\n HEXSelectorApplicationList,\r\n HEXSelectorApplicationEdit,\r\n HEXSelectorApplicationCreate,\r\n HEXSelectorSegmentList,\r\n HEXSelectorSegmentEdit,\r\n HEXSelectorSegmentCreate,\r\n} from './components/HEXSelectorSegmentList.jsx';\r\nimport { RegionalSettingsList, RegionalSettingsCreate } from './components/RegionalSettings.jsx';\r\nimport { UserActivityList, VIPCustomerList,VIPCustomerEdit,VIPCustomerCreate } from './components/UserActivity.jsx';\r\nimport { LLMCreate, LLMEdit, LLMList } from './components/LocalLicenseManagers.jsx';\r\nimport { AHRIList, AHRIEdit, AHRICreate} from './components/AHRIList';\r\nimport { PlatePandoraList, PlatePandoraEdit} from './components/PlatePandoraList';\r\n// import Color from '@material-ui/core/colors'\r\n\r\n\r\nexport const DanfossRed = { main: '#EE1B22'};\r\nexport const DanfossRedHex = '#EE1B22';\r\n\r\nconst theme = createTheme({\r\n palette: {\r\n type: 'light',\r\n secondary: DanfossRed\r\n },\r\n });\r\n\r\nconst httpClient = (url, options = {}) => {\r\n if (!options.headers) {\r\n options.headers = new Headers({ Accept: 'application/json'});\r\n }\r\n const token = localStorage.getItem('token');\r\n options.headers.set('Authorization', `Bearer ${token}`);\r\n return fetchUtils.fetchJson(url, options);\r\n}\r\n\r\nexport {httpClient};\r\n\r\nconst MyLayout = (props) => ;\r\n\r\nconst escapeRegex = /([[\\].#*$><+~=|^:(),\"'`\\s])/g;\r\nlet classCounter = 0;\r\n\r\n// Heavily inspired of Material UI:\r\n// @see https://github.com/mui-org/material-ui/blob/9cf73828e523451de456ba3dbf2ab15f87cf8504/src/styles/createGenerateClassName.js\r\n// The issue with the MUI function is that is create a new index for each\r\n// new `withStyles`, so we handle have to write our own counter\r\nexport const generateClassName = (rule, styleSheet) => {\r\n classCounter += 1;\r\n\r\n if (process.env.NODE_ENV === 'production') {\r\n return `c${classCounter}`;\r\n }\r\n\r\n if (styleSheet && styleSheet.options.classNamePrefix) {\r\n let prefix = styleSheet.options.classNamePrefix;\r\n // Sanitize the string as will be used to prefix the generated class name.\r\n prefix = prefix.replace(escapeRegex, '-');\r\n\r\n if (prefix.match(/^Mui/)) {\r\n return `${prefix}-${rule.key}`;\r\n }\r\n\r\n return `${prefix}-${rule.key}-${classCounter}`;\r\n }\r\n\r\n return `${rule.key}-${classCounter}`;\r\n};\r\n\r\nconst App = () => (\r\n // \r\n } noLayout />,\r\n } noLayout />,\r\n } noLayout />,\r\n ]}\r\n dataProvider={dataProvider(API_BASE_URL, httpClient)}\r\n authProvider={authProvider}\r\n requireAuth\r\n >\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n\r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n // \r\n);\r\nexport default App;\r\n","// This optional code is used to register a service worker.\n// register() is not called by default.\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 subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\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.0/8 are 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 function register(config) {\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.href);\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/facebook/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. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\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 // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch(error => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' }\n })\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.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, config);\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\n .then(registration => {\n registration.unregister();\n })\n .catch(error => {\n console.error(error.message);\n });\n }\n}\n","import 'react-app-polyfill/ie9';\r\nimport 'react-app-polyfill/ie11';\r\nimport 'react-app-polyfill/stable';\r\n\r\n\r\n// import 'core-js';\r\n// BROWSER POLYFILLS\r\n\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport './index.css';\r\nimport App from './App.jsx';\r\nimport * as serviceWorker from './serviceWorker';\r\n\r\nReactDOM.render(, document.getElementById('root'));\r\n\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n","export const to_b64 = (value) => {\r\n return Buffer.from(value).toString(\"base64\");\r\n}\r\n\r\nexport const from_b64 = (value) => {\r\n return Buffer.from(value, \"base64\").toString();\r\n}"],"sourceRoot":""}