{"version":3,"sources":["actions/inputStringAction.js","actions/operationStringAction.js","reducers/rootReducer.js","reducers/innerWindowWidthReducer.js","actions/innerWindowWidthAction.js","reducers/innerWindowHeightReducer.js","actions/innerWindowHeightAction.js","reducers/inputStringReducer.js","reducers/operationStringReducer.js","store.js","globals.js","Seven.js","Eight.js","Nine.js","Four.js","Five.js","Six.js","One.js","Two.js","Three.js","Zero.js","Decimal.js","Clear.js","Divide.js","Multiply.js","Subtract.js","Add.js","Equals.js","DisplayInput.js","DisplayOperations.js","Display.js","Back.js","CalculatorGrid.js","Calculator.js","App.js","serviceWorker.js","index.js"],"names":["inputStringAction","inputString","type","operationStringAction","operationString","combineReducers","innerWindowWidth","state","action","window","innerWidth","windowInnerWidth","innerWindowHeight","innerHeight","windowInnerHeight","store","createStore","rootReducer","colors","operators","makeInputAndOperationsStrings","nextChar","inputStringResult","tempOperationString","includes","split","operationStringResult","length","slice","lastOperationChar","parseAndCalculate","statementArray","forEach","item","index","push","previous","pop","duplicateOperatorsFilteredArray","filter","calculate","map","parseFloat","parseInt","toString","indexOfOperator","indexOf","Seven","props","handleClick","bind","handleMouseEvent","backgroundColor","this","e","setState","width","height","style","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","borderBottom","borderRight","display","flexDirection","justifyContent","id","className","onClick","onTouchStart","onTouchEnd","onMouseDown","onMouseUp","React","Component","connect","dispatch","Eight","Nine","Four","Five","Six","One","Two","Three","Zero","borderRadius","Decimal","Clear","Divide","alignItems","icon","faDivide","Multiply","faTimes","Subtract","faMinus","Add","faPlus","Equals","fontSize","DisplayInput","textAlign","lineHeight","DisplayOperations","color","Display","textOverflow","whiteSpace","overflow","Back","faBackspace","CalculatorGrid","gridTemplateRows","gridTemplateColumns","Calculator","handleKeyPress","handleKey","key","keyCode","preventDefault","document","addEventListener","removeEventListener","topMargin","Math","round","sideMargin","marginTop","marginBottom","marginLeft","marginRight","overFlow","border","userSelect","MozUserSelect","WebkitUserSelect","zIndex","fontFamily","App","handleResize","innerWindowWidthAction","innerWindowHeightAction","gitHubLabelStyle","position","right","attachmentStyle","href","target","rel","src","alt","data-recalc-dims","Boolean","location","hostname","match","ReactDOM","render","getElementById","navigator","serviceWorker","ready","then","registration","unregister","catch","error","console","message"],"mappings":"+OAEaA,EAAoB,SAACC,GAChC,MAAO,CACLC,KAJ0B,iBAK1BD,YAAaA,ICHJE,EAAwB,SAACC,GACpC,MAAO,CACLF,KAJ8B,qBAK9BE,gBAAiBA,ICCNC,cAAgB,CAC7BC,iBCLa,SAACC,EAAOC,GAKrB,OAJKD,IACHA,EAAQE,OAAOC,YAGTF,EAAON,MACb,ICR+B,sBDS7B,OAAOM,EAAOG,iBAChB,QACE,OAAOJ,IDHXK,kBGNa,SAACL,EAAOC,GAKrB,OAJKD,IACHA,EAAQE,OAAOI,aAGTL,EAAON,MACb,ICRgC,uBDS9B,OAAOM,EAAOM,kBAChB,QACE,OAAOP,IHFXN,YKPa,SAACM,EAAOC,GAKrB,OAJKD,IACHA,EAAQ,IAGFC,EAAON,MACb,IPR0B,iBOSxB,OAAOM,EAAOP,YAChB,QACE,OAAOM,ILDXH,gBMRa,SAACG,EAAOC,GAKrB,OAJKD,IACHA,EAAQ,IAGFC,EAAON,MACb,IPR8B,qBOS5B,OAAOM,EAAOJ,gBAChB,QACE,OAAOG,MCNEQ,EAFDC,YAAYC,G,iECHbC,EACC,UADDA,EAEE,UAFFA,EAGC,UAHDA,EAIE,UAJFA,EAKC,UALDA,EAMA,UANAA,EAOM,UAGbC,EAAY,CAAC,IAAI,IAAI,IAAI,KAElBC,EAAgC,SAACnB,EAAYG,EAAgBiB,GACxE,IAAIC,EAAoBrB,EACpBsB,EAAsBnB,EAAgBoB,SAAS,KAAOpB,EAAgBqB,MAAM,KAAK,GAAKrB,EACtFsB,EAAwBH,EAExBA,EAAoBI,OAAS,GAAK,CAAC,IAAI,IAAI,IAAI,IAAI,KAAKH,SAASH,IAA+C,MAAlCE,EAAoBK,OAAO,KAC3GL,EAAsBA,E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dC,OAAM,SAAAC,GACLC,QAAQD,MAAMA,EAAME,c","file":"static/js/main.bfd616ae.chunk.js","sourcesContent":["export const SETINPUTSTRING = \"SETINPUTSTRING\";\n\nexport const inputStringAction = (inputString) => {\n return {\n type: SETINPUTSTRING,\n inputString: inputString,\n };\n};\n","export const SETOPERATIONSTRING = \"SETOPERATIONSTRING\";\n\nexport const operationStringAction = (operationString) => {\n return {\n type: SETOPERATIONSTRING,\n operationString: operationString,\n };\n};\n","import { combineReducers } from \"redux\";\nimport innerWindowWidthReducer from \"./innerWindowWidthReducer\";\nimport innerWindowHeightReducer from \"./innerWindowHeightReducer\";\nimport inputStringReducer from \"./inputStringReducer\";\nimport operationStringReducer from \"./operationStringReducer\";\n\nexport default combineReducers({\n innerWindowWidth: innerWindowWidthReducer,\n innerWindowHeight: innerWindowHeightReducer,\n inputString: inputStringReducer,\n operationString: operationStringReducer,\n});\n","import { SETWINDOWINNERWIDTH } from \"../actions/innerWindowWidthAction\";\n\nexport default (state, action) => {\n if (!state) {\n state = window.innerWidth;\n }\n\n switch (action.type) {\n case SETWINDOWINNERWIDTH:\n return action.windowInnerWidth;\n default:\n return state;\n };\n};\n","export const SETWINDOWINNERWIDTH = \"SETWINDOWINNERWIDTH\";\n\nexport const innerWindowWidthAction = (windowInnerWidth) => {\n return {\n type: SETWINDOWINNERWIDTH,\n windowInnerWidth: windowInnerWidth,\n };\n};\n","import { SETWINDOWINNERHEIGHT } from \"../actions/innerWindowHeightAction\";\n\nexport default (state, action) => {\n if (!state) {\n state = window.innerHeight;\n }\n\n switch (action.type) {\n case SETWINDOWINNERHEIGHT:\n return action.windowInnerHeight;\n default:\n return state;\n }\n};\n","export const SETWINDOWINNERHEIGHT = \"SETWINDOWINNERHEIGHT\";\n\nexport const innerWindowHeightAction = (windowInnerHeight) => {\n return {\n type: SETWINDOWINNERHEIGHT,\n windowInnerHeight: windowInnerHeight,\n };\n};\n","import { SETINPUTSTRING } from \"../actions/inputStringAction\";\n\nexport default (state, action) => {\n if (!state) {\n state = '';\n }\n\n switch (action.type) {\n case SETINPUTSTRING:\n return action.inputString;\n default:\n return state;\n };\n};\n","import { SETOPERATIONSTRING } from \"../actions/operationStringAction\";\n\nexport default (state, action) => {\n if (!state) {\n state = '';\n }\n\n switch (action.type) {\n case SETOPERATIONSTRING:\n return action.operationString;\n default:\n return state;\n };\n};\n","import { createStore } from \"redux\";\nimport rootReducer from \"./reducers/rootReducer\";\n\nconst store = createStore(rootReducer);\n\nexport default store;\n","export const colors = {\n firstColor: '#00293C',\n secondColor: '#1e656d',\n thirdColor: '#6d261e',\n fourthColor: '#656d1e',\n fifthColor: '#261e6d',\n textColor: '#f1f3ce',\n secondtextColor: '#f62a00',\n};\n\nconst operators = ['*','/','-','+'];\n\nexport const makeInputAndOperationsStrings = (inputString,operationString,nextChar) => {\n let inputStringResult = inputString;\n let tempOperationString = operationString.includes('=') ? operationString.split('=')[1] : operationString;\n let operationStringResult = tempOperationString;\n\n if (tempOperationString.length > 0 && ['*','/','+','-','='].includes(nextChar) && tempOperationString.slice(-1) === '.') {\n tempOperationString = tempOperationString.slice(0,-1);\n }\n\n const numbers = ['1','2','3','4','5','6','7','8','9'];\n\n if (numbers.includes(nextChar)) {\n if (inputString.length === 0) {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n } else if (inputString.length === 1) {\n if (inputString[0] === '0') {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString.slice(0,-1) + nextChar;\n } else if (inputString[0] === '-') {\n if (tempOperationString.length === 1) {\n inputStringResult = inputString + nextChar;\n operationStringResult = inputString + nextChar;\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (['*','/','+'].includes(inputString[0])) {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (inputString.length === 2) {\n if (inputString[0] === '-') {\n if (inputString[1] === '0') {\n inputStringResult = '-' + nextChar;\n operationStringResult = tempOperationString.slice(0,-1) + nextChar;\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (inputString.length > 2) {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (nextChar === '0') {\n if (inputString.length === 0) {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n } else if (inputString.length === 1) {\n if (inputString[0] !== '0') {\n if (['*','/','+'].includes(inputString[0])) {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n }\n } else if (inputString.length === 2) {\n if (inputString[0] !== '-') {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n } else if (inputString[1] !== '0') {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (inputString.length > 2) {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (nextChar === '-') {\n if (tempOperationString.length === 0) {\n inputStringResult = nextChar;\n operationStringResult = nextChar;\n } else if (tempOperationString.length === 1) {\n if (!operators.includes(tempOperationString[0])) {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (['*','/','+'].includes(nextChar)) {\n if (tempOperationString.length === 1) {\n if (!operators.includes(tempOperationString.slice(-1))) {\n operationStringResult = tempOperationString + nextChar;\n inputStringResult = nextChar;\n }\n } else if (tempOperationString.length > 1) {\n inputStringResult = nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (nextChar === '.' && (!inputString.includes('.'))) {\n if (inputString.length === 0) {\n inputStringResult = '0.';\n operationStringResult = tempOperationString + '0.';\n } else if (inputString.length === 1) {\n if (tempOperationString.length === 0) {\n if (inputString[0] === '-') {\n inputStringResult = '-0.';\n operationStringResult = tempOperationString + '-0.';\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else {\n if (operators.includes(inputString[0])) {\n inputStringResult = '0.';\n operationStringResult = tempOperationString + '0.';\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n }\n } else {\n inputStringResult = inputString + nextChar;\n operationStringResult = tempOperationString + nextChar;\n }\n } else if (nextChar === '=' && tempOperationString.length > 0) {\n const lastOperationChar = tempOperationString.slice(-1);\n if (operators.includes(lastOperationChar) || lastOperationChar === '.') {\n inputStringResult = parseAndCalculate(tempOperationString.slice(0,-1));\n operationStringResult = tempOperationString.slice(0,-1) + '=' + inputStringResult;\n } else {\n inputStringResult = parseAndCalculate(tempOperationString);\n operationStringResult = tempOperationString + '=' + inputStringResult;\n }\n } else if (nextChar === 'b') {\n if (tempOperationString.length === 1) {\n inputStringResult = inputString.slice(0,-1);\n operationStringResult = tempOperationString.slice(0,-1);\n } else if (tempOperationString.length > 1) {\n if (operators.includes(tempOperationString.slice(-1))) {\n if (operators.includes(tempOperationString.slice(-2,-1))) {\n inputStringResult = tempOperationString.slice(-2,-1);\n operationStringResult = tempOperationString.slice(0,-1);\n } else {\n operationStringResult = tempOperationString.slice(0,-1);\n inputStringResult = operationStringResult.split(/[-*/+]/).slice(-1)[0];\n }\n } else {\n if (operators.includes(tempOperationString.slice(-2,-1))) {\n inputStringResult = tempOperationString.slice(-2,-1);\n operationStringResult = tempOperationString.slice(0,-1);\n } else {\n inputStringResult = inputString.slice(0,-1);\n operationStringResult = tempOperationString.slice(0,-1);\n }\n }\n }\n }\n\n return [inputStringResult,operationStringResult];\n}\n\nconst parseAndCalculate = (operationString) => {\n const statementArray = [];\n operationString.split('').forEach((item,index) => {\n if (index === 0) {\n statementArray.push(item);\n } else {\n if (operators.includes(item)) {\n statementArray.push(item);\n } else {\n if (statementArray[statementArray.length - 1] === '-') {\n if (index === 1 || operators.includes(statementArray[statementArray.length - 2])) {\n const previous = statementArray[statementArray.length - 1];\n statementArray[statementArray.length - 1] = previous + item;\n } else {\n statementArray.push(item);\n }\n } else if (['*','/','+'].includes(statementArray[statementArray.length - 1])) {\n statementArray.push(item);\n } else {\n const previous = statementArray[statementArray.length - 1];\n statementArray[statementArray.length - 1] = previous + item;\n }\n }\n }\n });\n // remove trailing operators\n while (operators.includes(statementArray[statementArray.length - 1])) {\n statementArray.pop();\n }\n const duplicateOperatorsFilteredArray = statementArray.filter((item,index) => {\n return (!operators.includes(statementArray[index + 1]) || !operators.includes(item));\n });\n if (duplicateOperatorsFilteredArray.length === 1) {\n return duplicateOperatorsFilteredArray[0];\n } else {\n return calculate(duplicateOperatorsFilteredArray.map(item => {\n if (operators.includes(item)) {\n return item;\n } else {\n return item.includes('.') ? parseFloat(item) : parseInt(item);\n }\n }))[0].toString();\n }\n}\n\nconst calculate = (statementArray) => {\n if (statementArray.length === 1) {\n return statementArray;\n } else if (statementArray.includes('*')) {\n const indexOfOperator = statementArray.indexOf('*');\n return calculate([\n ...statementArray.slice(0,indexOfOperator - 1),\n statementArray[indexOfOperator - 1] * statementArray[indexOfOperator + 1],\n ...statementArray.slice((indexOfOperator + 2),)\n ]);\n } else if (statementArray.includes('/')) {\n const indexOfOperator = statementArray.indexOf('/');\n return calculate([\n ...statementArray.slice(0,indexOfOperator - 1),\n statementArray[indexOfOperator - 1] / statementArray[indexOfOperator + 1],\n ...statementArray.slice((indexOfOperator + 2),)\n ]);\n } else if (statementArray.includes('-')) {\n const indexOfOperator = statementArray.indexOf('-');\n return calculate([\n ...statementArray.slice(0,indexOfOperator - 1),\n statementArray[indexOfOperator - 1] - statementArray[indexOfOperator + 1],\n ...statementArray.slice((indexOfOperator + 2),)\n ]);\n } else if (statementArray.includes('+')) {\n const indexOfOperator = statementArray.indexOf('+');\n return calculate([\n ...statementArray.slice(0,indexOfOperator - 1),\n statementArray[indexOfOperator - 1] + statementArray[indexOfOperator + 1],\n ...statementArray.slice((indexOfOperator + 2),)\n ]);\n }\n}\n","import React from 'react';\nimport { connect } from \"react-redux\";\n\nimport { colors,makeInputAndOperationsStrings } from './globals'\nimport { inputStringAction } from \"./actions/inputStringAction\";\nimport { operationStringAction } from \"./actions/operationStringAction\";\n\nconst mapStateToProps = (state) => ({ ...state });\n\nconst mapDispatchToProps = (dispatch) => ({\n inputStringAction: (inputString) => dispatch(inputStringAction(inputString)),\n operationStringAction: (operationString) => dispatch(operationStringAction(operationString)),\n});\n\nclass Seven extends React.Component {\n constructor(props) {\n super(props);\n this.handleClick = this.handleClick.bind(this);\n this.handleMouseEvent = this.handleMouseEvent.bind(this);\n this.state = {\n backgroundColor: colors.secondColor,\n };\n };\n\n handleClick() {\n const [inputString,operationString] = makeInputAndOperationsStrings(this.props.inputString,this.props.operationString,'7');\n if (inputString !== this.props.inputString) {\n this.props.inputStringAction(inputString);\n }\n if (operationString !== this.props.operationString) {\n this.props.operationStringAction(operationString);\n }\n }\n\n handleMouseEvent(e) {\n if (e.type === 'mousedown' || e.type === 'touchstart') {\n this.setState({backgroundColor: colors.firstColor});\n } else if (e.type === 'mouseup' || e.type === 'touchend') {\n this.setState({backgroundColor: colors.secondColor});\n }\n }\n\n render() {\n const width = this.props.innerWindowWidth;\n const height = this.props.innerWindowHeight;\n const style = {\n gridColumnStart: 2,\n gridColumnEnd: 3,\n gridRowStart: 2,\n gridRowEnd: 3,\n borderBottom: '3px solid black',\n borderRight: '3px solid black',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n backgroundColor: this.state.backgroundColor,\n };\n\n if (height > width) {\n style['gridRowStart'] = 3;\n style['gridRowEnd'] = 4;\n style['gridColumnStart'] = 1;\n style['gridColumnEnd'] = 2;\n }\n\n return (\n