katoikia-app/web-ui/web-react/node_modules/.cache/babel-loader/f6d53e32b369d66a4f8ba27070d...

1 line
29 KiB
JSON
Raw Normal View History

2022-07-06 04:15:11 +00:00
{"ast":null,"code":"import _slicedToArray from \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/slicedToArray\";\n\nvar _this = this,\n _jsxFileName = \"/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/src/components/FloatLabelDemo.js\";\n\nimport React, { useState, useEffect } from 'react';\nimport { InputText } from 'primereact/inputtext';\nimport { InputTextarea } from 'primereact/inputtextarea';\nimport { InputMask } from 'primereact/inputmask';\nimport { InputNumber } from 'primereact/inputnumber';\nimport { AutoComplete } from 'primereact/autocomplete';\nimport { Calendar } from 'primereact/calendar';\nimport { Chips } from 'primereact/chips';\nimport { Dropdown } from 'primereact/dropdown';\nimport { MultiSelect } from 'primereact/multiselect';\nimport { CountryService } from '../service/CountryService';\n\nvar FloatLabelDemo = function FloatLabelDemo() {\n var _useState = useState([]),\n _useState2 = _slicedToArray(_useState, 2),\n countries = _useState2[0],\n setCountries = _useState2[1];\n\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n filteredCountries = _useState4[0],\n setFilteredCountries = _useState4[1];\n\n var _useState5 = useState(''),\n _useState6 = _slicedToArray(_useState5, 2),\n value1 = _useState6[0],\n setValue1 = _useState6[1];\n\n var _useState7 = useState(''),\n _useState8 = _slicedToArray(_useState7, 2),\n value2 = _useState8[0],\n setValue2 = _useState8[1];\n\n var _useState9 = useState(null),\n _useState10 = _slicedToArray(_useState9, 2),\n value3 = _useState10[0],\n setValue3 = _useState10[1];\n\n var _useState11 = useState(''),\n _useState12 = _slicedToArray(_useState11, 2),\n value4 = _useState12[0],\n setValue4 = _useState12[1];\n\n var _useState13 = useState(''),\n _useState14 = _slicedToArray(_useState13, 2),\n value5 = _useState14[0],\n setValue5 = _useState14[1];\n\n var _useState15 = useState(''),\n _useState16 = _slicedToArray(_useState15, 2),\n value6 = _useState16[0],\n setValue6 = _useState16[1];\n\n var _useState17 = useState(''),\n _useState18 = _slicedToArray(_useState17, 2),\n value7 = _useState18[0],\n setValue7 = _useState18[1];\n\n var _useState19 = useState(''),\n _useState20 = _slicedToArray(_useState19, 2),\n value8 = _useState20[0],\n setValue8 = _useState20[1];\n\n var _useState21 = useState([]),\n _useState22 = _slicedToArray(_useState21, 2),\n value9 = _useState22[0],\n setValue9 = _useState22[1];\n\n var _useState23 = useState(null),\n _useState24 = _slicedToArray(_useState23, 2),\n value10 = _useState24[0],\n setValue10 = _useState24[1];\n\n var cities = [{\n name: 'New York',\n code: 'NY'\n }, {\n name: 'Rome',\n code: 'RM'\n }, {\n name: 'London',\n code: 'LDN'\n }, {\n name: 'Istanbul',\n code: 'IST'\n }, {\n name: 'Paris',\n code: 'PRS'\n }];\n useEffect(function () {\n var countryService = new CountryService();\n countryService.getCountries().then(function (countries) {\n setCountries(countries);\n });\n }, []);\n\n var searchCountry = function searchCountry(event) {\n // in a real application, make a request to a remote url with the query and\n // return filtered results, for demo we filter at client side\n var filtered = [];\n var query = event.query;\n\n for (var i = 0; i < countries.length; i++) {\n var country = countries[i];\n\n if (country.name.toLowerCase().indexOf(query.toLowerCase()) === 0) {\n filtered.push(country);\n }\n }\n\n setFilteredCountries(filtered);\n };\n\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"card\",\n __self: _this,\n __source: {\n fileName: _jsxFileName,\n lineNumber: 57,\n columnNumber: 9\n }\n }, /*#__PURE__*/React.createElem