{"version":3,"sources":["../node_modules/@aws-amplify/ui-components/dist/esm-es5 lazy /^/.//.*/.entry/.js$/ include: //.entry/.js$/ exclude: //.system/.entry/.js$/ groupOptions: {} namespace object","aws-exports.js","App.js","reportWebVitals.js","index.js"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports","awsmobile","Amplify","configure","awsExports","getAllStateTN","sample","body","name","withAuthenticator","fetchF3","f3Data","allState","API","graphql","graphqlOperation","treeName","console","log","JSON","parse","data","Storage","get","download","res","Body","text","item","children","length","traverse","setF3","setF4","useState","ff3","ff4","useEffect","node","type","textProps","fill","stroke","newColor","i","getColor","lagCount","getNode","nodeKey","result","forEach","child","childResult","event","stringify","value","createJobResult","className","height","width","animated","nodeOffset","duration","svgProps","gProps","onClick","src","shouldCollapse","field","quotesOnKeys","displayDataTypes","enableClipboard","theme","onSelect","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","document","getElementById"],"mappings":"yIAAA,IAAIA,EAAM,CACT,qCAAsC,CACrC,IACA,IAED,oCAAqC,CACpC,IACA,IAED,mCAAoC,CACnC,IACA,IAED,mCAAoC,CACnC,IACA,GAED,8BAA+B,CAC9B,IACA,IAED,6BAA8B,CAC7B,IACA,GAED,8BAA+B,CAC9B,IACA,IAED,uCAAwC,CACvC,IACA,GAED,+BAAgC,CAC/B,IACA,IAED,yCAA0C,CACzC,IACA,IAED,uCAAwC,CACvC,IACA,IAED,kCAAmC,CAClC,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,iCAAkC,CACjC,IACA,IAED,0BAA2B,CAC1B,IACA,GAED,0BAA2B,CAC1B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,kCAAmC,CAClC,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,oCAAqC,CACpC,IACA,GAED,8BAA+B,CAC9B,IACA,GAED,qCAAsC,CACrC,IACA,IAED,8BAA+B,CAC9B,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EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOF,GACPG,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAQN,EACT,GAEJ,ECJDO,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,SAM1BZ,G","file":"static/js/main.82776263.chunk.js","sourcesContent":["var map = {\n\t\"./amplify-amazon-button_5.entry.js\": [\n\t\t241,\n\t\t16\n\t],\n\t\"./amplify-auth-container.entry.js\": [\n\t\t242,\n\t\t17\n\t],\n\t\"./amplify-auth-fields_9.entry.js\": [\n\t\t243,\n\t\t18\n\t],\n\t\"./amplify-authenticator.entry.js\": [\n\t\t244,\n\t\t5\n\t],\n\t\"./amplify-button_3.entry.js\": [\n\t\t245,\n\t\t19\n\t],\n\t\"./amplify-chatbot.entry.js\": [\n\t\t246,\n\t\t4\n\t],\n\t\"./amplify-checkbox.entry.js\": [\n\t\t247,\n\t\t20\n\t],\n\t\"./amplify-confirm-sign-in_7.entry.js\": [\n\t\t248,\n\t\t6\n\t],\n\t\"./amplify-container.entry.js\": [\n\t\t249,\n\t\t21\n\t],\n\t\"./amplify-federated-buttons_2.entry.js\": [\n\t\t250,\n\t\t22\n\t],\n\t\"./amplify-federated-sign-in.entry.js\": [\n\t\t251,\n\t\t23\n\t],\n\t\"./amplify-form-field_4.entry.js\": [\n\t\t252,\n\t\t24\n\t],\n\t\"./amplify-greetings.entry.js\": [\n\t\t253,\n\t\t25\n\t],\n\t\"./amplify-icon-button.entry.js\": [\n\t\t254,\n\t\t26\n\t],\n\t\"./amplify-icon.entry.js\": [\n\t\t255,\n\t\t7\n\t],\n\t\"./amplify-link.entry.js\": [\n\t\t256,\n\t\t27\n\t],\n\t\"./amplify-nav_2.entry.js\": [\n\t\t257,\n\t\t28\n\t],\n\t\"./amplify-photo-picker.entry.js\": [\n\t\t258,\n\t\t29\n\t],\n\t\"./amplify-picker.entry.js\": [\n\t\t259,\n\t\t30\n\t],\n\t\"./amplify-radio-button_3.entry.js\": [\n\t\t260,\n\t\t8\n\t],\n\t\"./amplify-s3-album.entry.js\": [\n\t\t261,\n\t\t9\n\t],\n\t\"./amplify-s3-image-picker.entry.js\": [\n\t\t262,\n\t\t10\n\t],\n\t\"./amplify-s3-image.entry.js\": [\n\t\t263,\n\t\t11\n\t],\n\t\"./amplify-s3-text-picker.entry.js\": [\n\t\t264,\n\t\t12\n\t],\n\t\"./amplify-s3-text.entry.js\": [\n\t\t265,\n\t\t13\n\t],\n\t\"./amplify-select-mfa-type.entry.js\": [\n\t\t266,\n\t\t31\n\t],\n\t\"./amplify-sign-in-button.entry.js\": [\n\t\t267,\n\t\t14\n\t],\n\t\"./amplify-tooltip.entry.js\": [\n\t\t268,\n\t\t32\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 233;\nmodule.exports = webpackAsyncContext;","/* eslint-disable */\n// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.\n\nconst awsmobile = {\n \"aws_project_region\": \"us-west-2\",\n \"aws_appsync_graphqlEndpoint\": \"https://lbrrflzojrg55fh7xrg7saq5fq.appsync-api.us-west-2.amazonaws.com/graphql\",\n \"aws_appsync_region\": \"us-west-2\",\n \"aws_appsync_authenticationType\": \"AMAZON_COGNITO_USER_POOLS\",\n \"aws_cognito_identity_pool_id\": \"us-west-2:a6be5b87-3525-4715-bb44-e1e6ed0210e4\",\n \"aws_cognito_region\": \"us-west-2\",\n \"aws_user_pools_id\": \"us-west-2_Pw7Ji0OT6\",\n \"aws_user_pools_web_client_id\": \"3mv5n8joc0f76ruc0v6s0ko8dr\",\n \"oauth\": {},\n \"aws_cognito_username_attributes\": [],\n \"aws_cognito_social_providers\": [],\n \"aws_cognito_signup_attributes\": [\n \"EMAIL\"\n ],\n \"aws_cognito_mfa_configuration\": \"OFF\",\n \"aws_cognito_mfa_types\": [\n \"SMS\"\n ],\n \"aws_cognito_password_protection_settings\": {\n \"passwordPolicyMinLength\": 8,\n \"passwordPolicyCharacters\": []\n },\n \"aws_cognito_verification_mechanisms\": [\n \"EMAIL\"\n ],\n \"aws_user_files_s3_bucket\": \"stor145153-gilda\",\n \"aws_user_files_s3_bucket_region\": \"us-west-2\"\n};\n\n\nexport default awsmobile;\n","/* src/App.js */\nimport React, { useEffect, useState } from 'react'\nimport Amplify, { API, graphqlOperation, Storage } from 'aws-amplify'\n//import { createTodo } from './graphql/mutations'\n//import { listTodos } from './graphql/queries'\nimport { withAuthenticator, AmplifySignOut } from '@aws-amplify/ui-react'\n\nimport awsExports from \"./aws-exports\";\n\n\nimport ReactJson from 'react-json-view';\n\n\n\n\n//import { Tree, TreeNode } from 'react-organizational-chart';\n\n\n\nimport Tree from 'react-tree-graph';\n\n\n\nAmplify.configure(awsExports);\n\nconst initialState = { name: '', description: '' }\n\n\n\n//const query = \"mutation { getAllState }\"\nconst getAllStateTN = /* GraphQL */ `mutation GetAllStateTN($treeName: String!) {\n getAllStateTN(treeName: $treeName)\n}\n` \n\n\nconst getPipeTree = /* GraphQL */ `\n query GetPipeTree($id: ID!) {\n getPipeTree(id: $id) {\n id\n title\n description\n status\n tree\n states {\n nextToken\n startedAt\n __typename\n }\n createdAt\n updatedAt\n _version\n _deleted\n _lastChangedAt\n __typename\n }\n }\n`;\n\nlet sample = {\n body: { \n name: 'No Data Yet...'\n }\n};\n\n\nconst App = () => {\n \n\n\n async function fetchF3() {\n\n try {\n\n let resolver = true;\n let f3Data = null;\n let allState = null;\n\n if(resolver) {\n\n //const f3Data = await API.graphql(graphqlOperation(query))\n const f3Data = await API.graphql(graphqlOperation(\n getAllStateTN,\n {treeName: \"nlse\"}\n ));\n console.log(\"f3Data\", f3Data)\n allState = JSON.parse(f3Data.data.getAllStateTN)[0]\n //allState = JSON.parse(f3Data.data.getPipeTree)\n\n \n\n } else {\n\n\n try {\n //let res = await Storage.put(\"led242.json\", \"{}\", {contentType: \"application/json\"});\n let res = await Storage.get(\"led242.json\", {download: true});\n console.log(\"storage\", res);\n\n let body = await res.Body.text();\n\n console.log(\"body\", body);\n\n\n f3Data = body;\n\n allState = JSON.parse(f3Data);\n\n } catch (err) {\n console.log(\"err\", err);\n }\n }\n\n\n\n \n\n\n console.log(\"allstate\", allState)\n //let item = JSON.parse(items[0].data).body\n \n //let item = allState[0]; // only handling one for now\n let item = allState;\n\n console.log(\"item.children.length\", item.children.length);\n\n\n item = traverse(item)\n\n \n\n setF3(item)\n setF4(item)\n\n } catch (err) { \n console.log('error fetching f3', err) \n setF3({name: \"Error fetching data. Sorry.\"})\n setF4({name: \"Error fetching data. Sorry.\"})\n }\n\n\n // try {\n // const apiName = 'restisnotgood';\n // const path = '/items';\n // const myInit = {\n // headers: {} // OPTIONAL\n // };\n \n // let result = await API.get(apiName, path, myInit);\n // console.log(\"API result\", result);\n\n // } catch (err) {\n // console.log(\"API error api get\", err);\n // }\n\n\n\n }\n\n\n\n const [ff3, setF3] = useState({name: \"Loading data...\"})\n const [ff4, setF4] = useState(sample)\n\n useEffect(() => {\n fetchF3()\n }, [])\n\n const colorMap = {\n 0: \"green\",\n 1: \"green\",\n 2: \"yellow\",\n 3: \"yellow\",\n 4: \"yellow\",\n 5: \"green\",\n 6: \"red\",\n 242: \"blue\"\n }\n\n\n function getColor(i) {\n if(i < 4)\n return \"green\"\n if(i < 12)\n return \"yellow\"\n if(i < 20)\n return \"orange\"\n return \"red\"\n }\n\n function traverse(node) {\n \n\n if(node.type === \"repo\") {\n\n node.textProps = {\n fill: \"white\",\n stroke: \"white\"\n }\n \n } else {\n\n //if(node.deploymentStatus) {\n\n let newColor = getColor(node.lagCount)\n node.textProps = {\n fill: newColor,\n stroke: newColor\n \n }\n // } else {\n // console.log(\"no deployment status apparently\", node)\n // }\n }\n\n if(node.children) {\n for (let i=0; i {\n let childResult = getNode(child, nodeKey);\n if(childResult) {\n console.log(\"received positive result\", node.name, childResult)\n result = childResult\n }\n })\n }\n return result\n }\n\n function onClick(event, nodeKey) {\n console.log(\"nodeKey\", nodeKey)\n let node = getNode(ff3, nodeKey)\n if(node) {\n setF4(node)\n }\n }\n\n async function onClick2(event) {\n try {\n console.log(JSON.stringify(event, 0, 1));\n if(event.name === \"clickHere\") {\n // execute\n\n const createJobResult = await API.graphql(graphqlOperation(event.value))\n\n console.log(createJobResult);\n\n await fetchF3();\n\n }\n } catch (err) {\n console.log(\"not clickHere event\")\n console.log(err);\n }\n \n // let node = getNode(ff3, nodeKey)\n // if(node) {\n // setF4(node)\n // }\n\n // execute\n\n\n // refresh\n\n }\n\n\n\n return (\n
\n \n \n \n \n \n
\n )\n\n}\n\nconst styles = {\n container: { margin: '0 auto', display: 'flex', flexDirection: 'column', justifyContent: 'center', padding: 20 },\n todo: { marginBottom: 15 },\n input: { border: 'none', backgroundColor: '#ddd', marginBottom: 10, padding: 8, fontSize: 18 },\n todoName: { fontSize: 20, fontWeight: 'bold' },\n todoDescription: { marginBottom: 0 },\n button: { backgroundColor: 'black', color: 'white', outline: 'none', fontSize: 18, padding: '12px 0px' }\n}\n\n//export default App\nexport default withAuthenticator(App)","const reportWebVitals = onPerfEntry => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\n);\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}