{"version":3,"sources":["pages/home/statistic_show.js","pages/home/index.js","App.js","serviceWorker.js","index.js","logo.jpg"],"names":["StatisticShow","state","replace_data","block_key","replaceKey","key","keyIsCheck","includes","data","this","props","keys","Object","className","onClick","window","print","scope","map","item","PureComponent","Index","loading","find_data","search_lab_kayit","updateInputValue","evt","setState","target","value","getDataHandler","LabKayitNo","el","xhr","XMLHttpRequest","open","onreadystatechange","readyState","status","JSON","parse","response","findDataKey","console","log","statusText","send","forEach","href","src","logo","alt","style","height","onSubmit","e","preventDefault","type","onChange","aria-describedby","role","App","Boolean","location","hostname","match","ReactDOM","render","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister","module","exports"],"mappings":"uPAkFeA,E,2MA9EXC,MAAQ,CACJC,aAAc,CACV,KAAQ,UACR,KAAQ,aACR,KAAQ,uBACR,KAAQ,uBACR,KAAQ,cACR,MAAS,UACT,MAAS,qBACT,MAAS,UACT,MAAS,SACT,MAAS,eACT,MAAS,iBACT,MAAS,SACT,MAAS,KACT,MAAS,oBACT,MAAS,aACT,MAAS,eACT,MAAS,YAEbC,UAAW,CACP,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAC1F,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAAS,QAC1F,QAAS,QAAS,QAAS,QAAS,QAAS,OAAQ,OAAQ,OAAQ,OAAQ,QAAS,KAAM,OAC5F,UAAW,cAAe,WAAY,aAAc,QAAS,SAAU,UAAW,YAClF,eAAgB,e,EAIxBC,WAAa,SAACC,GACV,OAAO,EAAKJ,MAAMC,aAAaG,GAAO,EAAKJ,MAAMC,aAAaG,GAAOA,G,EAGzEC,WAAa,SAACD,GACV,OAAQ,EAAKJ,MAAME,UAAUI,SAASF,I,wEAGhC,IAAD,OACEG,EAAQC,KAAKC,MAAbF,KACHG,EAAO,GAKX,OAJIH,IACAG,EAAOC,OAAOD,KAAKH,IAInB,6BACI,wBAAIK,UAAU,aAC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AAeC,I,wEAkBlB,IAAD,SACsBtB,KAAKR,MAA3BqB,EADA,EACAA,QAASC,EADT,EACSA,UAGd,OACI,kBAAC,WAAD,KACI,yBAAKV,UAAU,OACX,yBAAKA,UAAU,UACX,uBAAGmC,KAAK,6BACJ,yBAAKC,IAAKC,IAAMC,IAAI,GAAGC,MAAO,CAACC,OAAQ,cAKnD,6BAEA,yBAAKxC,UAAU,YAEX,yBAAKA,UAAU,yBACX,wBAAIA,UAAU,iBAAd,2CAEA,kBAAC,WAAD,KACI,0BACIA,UAAU,4BACVyC,SAAW,SAAAC,GAAO,EAAKb,YAAY,EAAKzC,MAAMuB,kBAAmB+B,EAAEC,mBAEnE,2BAAOC,KAAK,OAAO5C,UAAU,eACtBgB,MAAOpB,KAAKR,MAAMuB,iBAClBkC,SAAU,SAAAhC,GAAG,OAAI,EAAKD,iBAAiBC,IAEvCiC,mBAAiB,kBACxB,yBAAK9C,UAAU,sBACVS,EACG,yBAAKT,UAAU,iBAAiB+C,KAAK,UACjC,0BAAM/C,UAAU,WAAhB,qBAGJ,4BAAQA,UAAU,4BACVC,QAAS,kBAAM,EAAK4B,YAAY,EAAKzC,MAAMuB,mBAC3CiC,KAAK,UAFb,SAYZ,kBAAC,EAAD,CAAejD,KAAMe,Y,GAhH7BH,iBCOLyC,MARf,WACE,OACE,yBAAKhD,UAAU,mBACb,kBAAC,EAAD,QCMciD,QACW,cAA7B/C,OAAOgD,SAASC,UAEe,UAA7BjD,OAAOgD,SAASC,UAEhBjD,OAAOgD,SAASC,SAASC,MACvB,2DCZNC,IAASC,OAAO,kBAAC,EAAD,MAASC,SAASC,eAAe,SD2H3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GACjCA,EAAaC,iB,kBEnInBC,EAAOC,QAAU,IAA0B,mC","file":"static/js/main.8bf1c16c.chunk.js","sourcesContent":["import React, {Fragment, PureComponent} from 'react';\r\n\r\nclass StatisticShow extends PureComponent {\r\n\r\n state = {\r\n replace_data: {\r\n 'TMO1': 'rutubet',\r\n 'TMO2': 'hektolitre',\r\n 'TMO4': 'kırık tane',\r\n 'TMO6': 'cılız tane',\r\n 'TMO8': 'haşere',\r\n 'TMO11': 'süne',\r\n 'TMO24': 'yabancı madde',\r\n 'TMO31': 'protein',\r\n 'TMO32': 'Fun FN',\r\n 'TMO33': 'zeleny sedim',\r\n 'TMO49': 'gecikmeli sed.',\r\n 'TMO34': 'gluten',\r\n 'TMO45': 'FN',\r\n 'TMO46': 'İ. Öncesi',\r\n 'TMO47': 'T.Y.Gluten',\r\n 'TMO48': 'Gluten index',\r\n 'TMO40': 'yağ',\r\n },\r\n block_key: [\r\n 'TMO12', 'TMO13', 'TMO14', 'TMO15', 'TMO16', 'TMO17', 'TMO18', 'TMO19', 'TMO20', 'TMO21', 'TMO22',\r\n 'TMO23', 'TMO25', 'TMO26', 'TMO27', 'TMO28', 'TMO29', 'TMO30', 'TMO35', 'TMO36', 'TMO37', 'TMO38',\r\n 'TMO39', 'TMO41', 'TMO42', 'TMO43', 'TMO44', 'TMO3', 'TMO5', 'TMO7', 'TMO9', 'TMO10', 'il', 'ilce',\r\n 'KoyKodu', 'TmoUrunKodu', 'URUN_ADI', 'OdemeDurum', 'UYEMI', 'ILILCE', 'SicilIl', 'SicilIlce',\r\n 'DeneySorumlu', 'LabSorumlu'\r\n ]\r\n };\r\n\r\n replaceKey = (key) => {\r\n return this.state.replace_data[key] ? this.state.replace_data[key] : key\r\n };\r\n\r\n keyIsCheck = (key) => {\r\n return !this.state.block_key.includes(key);\r\n };\r\n\r\n render() {\r\n const {data} = this.props;\r\n let keys = [];\r\n if (data){\r\n keys = Object.keys(data);\r\n }\r\n\r\n return (\r\n
\r\n
\r\n {data ? (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {keys.map((item, key) => {\r\n return (\r\n this.keyIsCheck(item) &&\r\n \r\n \r\n \r\n \r\n )\r\n })}\r\n \r\n
KeyValue
{this.replaceKey(item)}{data[item]}
\r\n\r\n
\r\n ) : ('veri yok')}\r\n
\r\n );\r\n\r\n }\r\n}\r\n\r\nexport default StatisticShow;\r\n","import React, {Fragment, PureComponent} from 'react';\r\nimport StatisticShow from \"./statistic_show\";\r\nimport logo from \"../../logo.jpg\";\r\n\r\nclass Index extends PureComponent {\r\n state = {\r\n loading: false,\r\n data: null,\r\n find_data: null,\r\n search_lab_kayit: ''\r\n };\r\n\r\n updateInputValue = (evt) => {\r\n this.setState({\r\n search_lab_kayit: evt.target.value\r\n });\r\n };\r\n\r\n getDataHandler = (LabKayitNo) => {\r\n const el = this;\r\n this.setState({loading: true});\r\n\r\n let xhr = new XMLHttpRequest();\r\n xhr.open('GET', 'http://78.186.191.124:2601/DinamikRapor.ashx?SORGU=Json_Analiz');\r\n\r\n xhr.onreadystatechange = function() {\r\n\r\n // request completed?\r\n if (xhr.readyState !== 4) return;\r\n\r\n if (xhr.status === 200) {\r\n // request successful - show response\r\n el.setState({data: JSON.parse(xhr.response)});\r\n el.setState({loading: false});\r\n\r\n el.findDataKey(LabKayitNo)\r\n }\r\n else {\r\n // request error\r\n console.log('HTTP error', xhr.status, xhr.statusText);\r\n }\r\n };\r\n\r\n xhr.send();\r\n\r\n };\r\n\r\n findDataKey = (LabKayitNo) => {\r\n if(!this.state.data){\r\n this.getDataHandler(LabKayitNo);\r\n }else{\r\n const data = this.state.data['json_analiz'];\r\n const el = this;\r\n el.setState({loading: true});\r\n el.setState({find_data: null});\r\n Object.keys(data).forEach(function (key) {\r\n if (LabKayitNo === data[key]['LabKayitNo']) {\r\n el.setState({find_data: data[key]});\r\n el.setState({loading: false});\r\n }else{\r\n el.setState({loading: false});\r\n }\r\n });\r\n }\r\n\r\n };\r\n\r\n render() {\r\n let {loading, find_data} = this.state;\r\n\r\n\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

Lütfen Analiz Kayıt No Giriniz.

\r\n\r\n \r\n { this.findDataKey(this.state.search_lab_kayit); e.preventDefault(); }}\r\n >\r\n this.updateInputValue(evt)}\r\n\r\n aria-describedby=\"button-addon2\" />\r\n
\r\n {loading ? (\r\n
\r\n yükleniyor...\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 Index;\r\n","import React from 'react';\nimport Index from \"./pages/home\";\n\nfunction App() {\n return (\n
\n \n
\n );\n}\n\nexport default App;\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.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport 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 .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.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister();\n","module.exports = __webpack_public_path__ + \"static/media/logo.47330eec.jpg\";"],"sourceRoot":""}