Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 18.118.0.93
Current Path : /var/www/qptran/static/js/ |
| Current File : /var/www/qptran/static/js/9.8776f9f8.chunk.js.map |
{"version":3,"sources":["app/api/loader/index.js","../node_modules/semantic-ui-react/dist/es/collections/Table/TableBody.js","../node_modules/semantic-ui-react/dist/es/collections/Table/TableCell.js","../node_modules/semantic-ui-react/dist/es/collections/Table/TableHeader.js","../node_modules/semantic-ui-react/dist/es/collections/Table/TableFooter.js","../node_modules/semantic-ui-react/dist/es/collections/Table/TableHeaderCell.js","../node_modules/semantic-ui-react/dist/es/collections/Table/TableRow.js","../node_modules/semantic-ui-react/dist/es/collections/Table/Table.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/iterableToArray.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","app/sessionmaster/index.js"],"names":["Loader","style","position","margin","top","right","bottom","left","width","height","radisu","color","ariaLabel","wrapperStyle","wrapperClass","visible","TableBody","props","children","className","classes","rest","getUnhandledProps","ElementType","getElementType","createElement","handledProps","defaultProps","as","propTypes","TableCell","active","collapsing","content","disabled","error","icon","negative","positive","selectable","singleLine","textAlign","verticalAlign","warning","isNil","Icon","create","TableHeader","fullWidth","TableFooter","TableHeaderCell","sorted","TableRow","cellAs","cells","cell","Table","attached","basic","celled","columns","compact","definition","fixed","footerRow","headerRow","headerRows","inverted","padded","renderBodyRow","size","sortable","stackable","striped","structured","tableData","unstackable","headerShorthandOptions","headerElement","data","index","Body","Cell","Footer","Header","HeaderCell","Row","_toConsumableArray","arr","Array","isArray","arrayLikeToArray","iter","Symbol","iterator","Object","from","unsupportedIterableToArray","TypeError","SessionMaster","useState","sessiontab","setsessiontab","table","loading","setLoading","useEffect","API","get","res","console","log","loadsessionmastab","handleChangeCell","name","x","val","newdtt","map","el","i","handleSave","post","error_code","Swal","fire","msg","display","onClick","type","class","to","key","fsession","fdescpn","value","ffrmtime","id","onChange","e","target","ftotime"],"mappings":"8GAAA,oCAkCeA,IA9BA,WACb,OACE,6BACE,yBACEC,MAAO,CACLC,SAAU,WACVC,OAAQ,OACRC,IAAK,EACLC,MAAO,EACPC,OAAQ,EACRC,KAAM,EACNC,MAAO,QACPC,OAAQ,UAGV,kBAAC,IAAD,CACEA,OAAO,KACPD,MAAM,KACNE,OAAQ,EACRC,MAAM,iBACNC,UAAU,eACVC,aAAc,GACdC,aAAa,GACbC,SAAS,Q,4GCrBnB,SAASC,EAAUC,GACjB,IAAIC,EAAWD,EAAMC,SACjBC,EAAYF,EAAME,UAClBC,EAAU,YAAGD,GACbE,EAAO,OAAAC,EAAA,GAAkBN,EAAWC,GACpCM,EAAc,OAAAC,EAAA,GAAeR,EAAWC,GAC5C,OAAoB,IAAMQ,cAAcF,EAAa,YAAS,GAAIF,EAAM,CACtEF,UAAWC,IACTF,GAGNF,EAAUU,aAAe,CAAC,KAAM,WAAY,aAC5CV,EAAUW,aAAe,CACvBC,GAAI,SAENZ,EAAUa,UASN,GACW,Q,iBCpBf,SAASC,EAAUb,GACjB,IAAIc,EAASd,EAAMc,OACfb,EAAWD,EAAMC,SACjBC,EAAYF,EAAME,UAClBa,EAAaf,EAAMe,WACnBC,EAAUhB,EAAMgB,QAChBC,EAAWjB,EAAMiB,SACjBC,EAAQlB,EAAMkB,MACdC,EAAOnB,EAAMmB,KACbC,EAAWpB,EAAMoB,SACjBC,EAAWrB,EAAMqB,SACjBC,EAAatB,EAAMsB,WACnBC,EAAavB,EAAMuB,WACnBC,EAAYxB,EAAMwB,UAClBC,EAAgBzB,EAAMyB,cACtBC,EAAU1B,EAAM0B,QAChBnC,EAAQS,EAAMT,MACdY,EAAU,YAAG,YAAWW,EAAQ,UAAW,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zC,UAAU,UACnB+E,EAAI,GAEP,kBAAC,IAAMtC,KAAP,CAAYzC,UAAU,UACnB8E,EAAGc,UAEN,kBAAC,IAAMnD,KAAP,CAAYjF,MAAO,CAAEwC,UAAW,WAC7B8E,EAAGe,SAEN,kBAAC,IAAMpD,KAAP,KACE,2BACE/D,UAAU,QACV8G,KAAK,OACLhI,MAAO,CAAEwC,UAAW,UACpByE,KAAK,WACLqB,MAAOhB,EAAGiB,SACVC,GAAIjB,EACJkB,SAAU,SAACC,EAAG5D,GACZkC,EACE,WACAO,EACAmB,EAAEC,OAAOL,WAKjB,kBAAC,IAAMrD,KAAP,KACE,2BACE/D,UAAU,QACV8G,KAAK,OACLhI,MAAO,CAAEwC,UAAW,UACpByE,KAAK,UACLqB,MAAOhB,EAAGsB,QACVJ,GAAIjB,EACJkB,SAAU,SAACC,EAAG5D,GACZkC,EACE,UACAO,EACAmB,EAAEC,OAAOL,kBAW3B","file":"static/js/9.8776f9f8.chunk.js","sourcesContent":["import React from \"react\";\nimport { Puff } from \"react-loader-spinner\";\nimport \"react-loader-spinner/dist/loader/css/react-spinner-loader.css\";\n\nconst Loader = () => {\n return (\n <div>\n <div\n style={{\n position: \"absolute\",\n margin: \"auto\",\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n width: \"200px\",\n height: \"200px\",\n }}\n >\n <Puff\n height=\"80\"\n width=\"80\"\n radisu={1}\n color=\"rgb(0 123 255)\"\n ariaLabel=\"puff-loading\"\n wrapperStyle={{}}\n wrapperClass=\"\"\n visible={true}\n />\n </div>\n </div>\n );\n};\n\nexport default Loader;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { getElementType, getUnhandledProps } from '../../lib';\n\nfunction TableBody(props) {\n var children = props.children,\n className = props.className;\n var classes = cx(className);\n var rest = getUnhandledProps(TableBody, props);\n var ElementType = getElementType(TableBody, props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), children);\n}\n\nTableBody.handledProps = [\"as\", \"children\", \"className\"];\nTableBody.defaultProps = {\n as: 'tbody'\n};\nTableBody.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string\n} : {};\nexport default TableBody;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _without from \"lodash-es/without\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useTextAlignProp, useVerticalAlignProp, useWidthProp } from '../../lib';\nimport Icon from '../../elements/Icon';\n/**\n * A table row can have cells.\n */\n\nfunction TableCell(props) {\n var active = props.active,\n children = props.children,\n className = props.className,\n collapsing = props.collapsing,\n content = props.content,\n disabled = props.disabled,\n error = props.error,\n icon = props.icon,\n negative = props.negative,\n positive = props.positive,\n selectable = props.selectable,\n singleLine = props.singleLine,\n textAlign = props.textAlign,\n verticalAlign = props.verticalAlign,\n warning = props.warning,\n width = props.width;\n var classes = cx(useKeyOnly(active, 'active'), useKeyOnly(collapsing, 'collapsing'), useKeyOnly(disabled, 'disabled'), useKeyOnly(error, 'error'), useKeyOnly(negative, 'negative'), useKeyOnly(positive, 'positive'), useKeyOnly(selectable, 'selectable'), useKeyOnly(singleLine, 'single line'), useKeyOnly(warning, 'warning'), useTextAlignProp(textAlign), useVerticalAlignProp(verticalAlign), useWidthProp(width, 'wide'), className);\n var rest = getUnhandledProps(TableCell, props);\n var ElementType = getElementType(TableCell, props);\n\n if (!childrenUtils.isNil(children)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), children);\n }\n\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), Icon.create(icon), content);\n}\n\nTableCell.handledProps = [\"active\", \"as\", \"children\", \"className\", \"collapsing\", \"content\", \"disabled\", \"error\", \"icon\", \"negative\", \"positive\", \"selectable\", \"singleLine\", \"textAlign\", \"verticalAlign\", \"warning\", \"width\"];\nTableCell.defaultProps = {\n as: 'td'\n};\nTableCell.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n\n /** A cell can be active or selected by a user. */\n active: PropTypes.bool,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** A cell can be collapsing so that it only uses as much space as required. */\n collapsing: PropTypes.bool,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** A cell can be disabled. */\n disabled: PropTypes.bool,\n\n /** A cell may call attention to an error or a negative value. */\n error: PropTypes.bool,\n\n /** Add an Icon by name, props object, or pass an <Icon /> */\n icon: customPropTypes.itemShorthand,\n\n /** A cell may let a user know whether a value is bad. */\n negative: PropTypes.bool,\n\n /** A cell may let a user know whether a value is good. */\n positive: PropTypes.bool,\n\n /** A cell can be selectable. */\n selectable: PropTypes.bool,\n\n /** A cell can specify that its contents should remain on a single line and not wrap. */\n singleLine: PropTypes.bool,\n\n /** A table cell can adjust its text alignment. */\n textAlign: PropTypes.oneOf(_without(SUI.TEXT_ALIGNMENTS, 'justified')),\n\n /** A table cell can adjust its text alignment. */\n verticalAlign: PropTypes.oneOf(SUI.VERTICAL_ALIGNMENTS),\n\n /** A cell may warn a user. */\n warning: PropTypes.bool,\n\n /** A table can specify the width of individual columns independently. */\n width: PropTypes.oneOf(SUI.WIDTHS)\n} : {};\nTableCell.create = createShorthandFactory(TableCell, function (content) {\n return {\n content: content\n };\n});\nexport default TableCell;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A table can have a header.\n */\n\nfunction TableHeader(props) {\n var children = props.children,\n className = props.className,\n content = props.content,\n fullWidth = props.fullWidth;\n var classes = cx(useKeyOnly(fullWidth, 'full-width'), className);\n var rest = getUnhandledProps(TableHeader, props);\n var ElementType = getElementType(TableHeader, props);\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), childrenUtils.isNil(children) ? content : children);\n}\n\nTableHeader.handledProps = [\"as\", \"children\", \"className\", \"content\", \"fullWidth\"];\nTableHeader.defaultProps = {\n as: 'thead'\n};\nTableHeader.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** Shorthand for primary content. */\n content: customPropTypes.contentShorthand,\n\n /** A definition table can have a full width header or footer, filling in the gap left by the first column. */\n fullWidth: PropTypes.bool\n} : {};\nexport default TableHeader;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { getUnhandledProps } from '../../lib';\nimport TableHeader from './TableHeader';\n/**\n * A table can have a footer.\n */\n\nfunction TableFooter(props) {\n var as = props.as;\n var rest = getUnhandledProps(TableFooter, props);\n return /*#__PURE__*/React.createElement(TableHeader, _extends({}, rest, {\n as: as\n }));\n}\n\nTableFooter.handledProps = [\"as\"];\nTableFooter.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType\n} : {};\nTableFooter.defaultProps = {\n as: 'tfoot'\n};\nexport default TableFooter;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { getUnhandledProps, useValueAndKey } from '../../lib';\nimport TableCell from './TableCell';\n/**\n * A table can have a header cell.\n */\n\nfunction TableHeaderCell(props) {\n var as = props.as,\n className = props.className,\n sorted = props.sorted;\n var classes = cx(useValueAndKey(sorted, 'sorted'), className);\n var rest = getUnhandledProps(TableHeaderCell, props);\n return /*#__PURE__*/React.createElement(TableCell, _extends({}, rest, {\n as: as,\n className: classes\n }));\n}\n\nTableHeaderCell.handledProps = [\"as\", \"className\", \"sorted\"];\nTableHeaderCell.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** A header cell can be sorted in ascending or descending order. */\n sorted: PropTypes.oneOf(['ascending', 'descending'])\n} : {};\nTableHeaderCell.defaultProps = {\n as: 'th'\n};\nexport default TableHeaderCell;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _without from \"lodash-es/without\";\nimport _map from \"lodash-es/map\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useTextAlignProp, useVerticalAlignProp } from '../../lib';\nimport TableCell from './TableCell';\n/**\n * A table can have rows.\n */\n\nfunction TableRow(props) {\n var active = props.active,\n cellAs = props.cellAs,\n cells = props.cells,\n children = props.children,\n className = props.className,\n disabled = props.disabled,\n error = props.error,\n negative = props.negative,\n positive = props.positive,\n textAlign = props.textAlign,\n verticalAlign = props.verticalAlign,\n warning = props.warning;\n var classes = cx(useKeyOnly(active, 'active'), useKeyOnly(disabled, 'disabled'), useKeyOnly(error, 'error'), useKeyOnly(negative, 'negative'), useKeyOnly(positive, 'positive'), useKeyOnly(warning, 'warning'), useTextAlignProp(textAlign), useVerticalAlignProp(verticalAlign), className);\n var rest = getUnhandledProps(TableRow, props);\n var ElementType = getElementType(TableRow, props);\n\n if (!childrenUtils.isNil(children)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), children);\n }\n\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), _map(cells, function (cell) {\n return TableCell.create(cell, {\n defaultProps: {\n as: cellAs\n }\n });\n }));\n}\n\nTableRow.handledProps = [\"active\", \"as\", \"cellAs\", \"cells\", \"children\", \"className\", \"disabled\", \"error\", \"negative\", \"positive\", \"textAlign\", \"verticalAlign\", \"warning\"];\nTableRow.defaultProps = {\n as: 'tr',\n cellAs: 'td'\n};\nTableRow.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n\n /** A row can be active or selected by a user. */\n active: PropTypes.bool,\n\n /** An element type to render as (string or function). */\n cellAs: PropTypes.elementType,\n\n /** Shorthand array of props for TableCell. */\n cells: customPropTypes.collectionShorthand,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** A row can be disabled. */\n disabled: PropTypes.bool,\n\n /** A row may call attention to an error or a negative value. */\n error: PropTypes.bool,\n\n /** A row may let a user know whether a value is bad. */\n negative: PropTypes.bool,\n\n /** A row may let a user know whether a value is good. */\n positive: PropTypes.bool,\n\n /** A table row can adjust its text alignment. */\n textAlign: PropTypes.oneOf(_without(SUI.TEXT_ALIGNMENTS, 'justified')),\n\n /** A table row can adjust its vertical alignment. */\n verticalAlign: PropTypes.oneOf(SUI.VERTICAL_ALIGNMENTS),\n\n /** A row may warn a user. */\n warning: PropTypes.bool\n} : {};\nTableRow.create = createShorthandFactory(TableRow, function (cells) {\n return {\n cells: cells\n };\n});\nexport default TableRow;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _without from \"lodash-es/without\";\nimport _map from \"lodash-es/map\";\nimport cx from 'clsx';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useKeyOrValueAndKey, useTextAlignProp, useVerticalAlignProp, useWidthProp } from '../../lib';\nimport TableBody from './TableBody';\nimport TableCell from './TableCell';\nimport TableFooter from './TableFooter';\nimport TableHeader from './TableHeader';\nimport TableHeaderCell from './TableHeaderCell';\nimport TableRow from './TableRow';\n/**\n * A table displays a collections of data grouped into rows.\n */\n\nfunction Table(props) {\n var attached = props.attached,\n basic = props.basic,\n celled = props.celled,\n children = props.children,\n className = props.className,\n collapsing = props.collapsing,\n color = props.color,\n columns = props.columns,\n compact = props.compact,\n definition = props.definition,\n fixed = props.fixed,\n footerRow = props.footerRow,\n headerRow = props.headerRow,\n headerRows = props.headerRows,\n inverted = props.inverted,\n padded = props.padded,\n renderBodyRow = props.renderBodyRow,\n selectable = props.selectable,\n singleLine = props.singleLine,\n size = props.size,\n sortable = props.sortable,\n stackable = props.stackable,\n striped = props.striped,\n structured = props.structured,\n tableData = props.tableData,\n textAlign = props.textAlign,\n unstackable = props.unstackable,\n verticalAlign = props.verticalAlign;\n var classes = cx('ui', color, size, useKeyOnly(celled, 'celled'), useKeyOnly(collapsing, 'collapsing'), useKeyOnly(definition, 'definition'), useKeyOnly(fixed, 'fixed'), useKeyOnly(inverted, 'inverted'), useKeyOnly(selectable, 'selectable'), useKeyOnly(singleLine, 'single line'), useKeyOnly(sortable, 'sortable'), useKeyOnly(stackable, 'stackable'), useKeyOnly(striped, 'striped'), useKeyOnly(structured, 'structured'), useKeyOnly(unstackable, 'unstackable'), useKeyOrValueAndKey(attached, 'attached'), useKeyOrValueAndKey(basic, 'basic'), useKeyOrValueAndKey(compact, 'compact'), useKeyOrValueAndKey(padded, 'padded'), useTextAlignProp(textAlign), useVerticalAlignProp(verticalAlign), useWidthProp(columns, 'column'), 'table', className);\n var rest = getUnhandledProps(Table, props);\n var ElementType = getElementType(Table, props);\n\n if (!childrenUtils.isNil(children)) {\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), children);\n }\n\n var hasHeaderRows = headerRow || headerRows;\n var headerShorthandOptions = {\n defaultProps: {\n cellAs: 'th'\n }\n };\n var headerElement = hasHeaderRows && /*#__PURE__*/React.createElement(TableHeader, null, TableRow.create(headerRow, headerShorthandOptions), _map(headerRows, function (data) {\n return TableRow.create(data, headerShorthandOptions);\n }));\n return /*#__PURE__*/React.createElement(ElementType, _extends({}, rest, {\n className: classes\n }), headerElement, /*#__PURE__*/React.createElement(TableBody, null, renderBodyRow && _map(tableData, function (data, index) {\n return TableRow.create(renderBodyRow(data, index));\n })), footerRow && /*#__PURE__*/React.createElement(TableFooter, null, TableRow.create(footerRow)));\n}\n\nTable.handledProps = [\"as\", \"attached\", \"basic\", \"celled\", \"children\", \"className\", \"collapsing\", \"color\", \"columns\", \"compact\", \"definition\", \"fixed\", \"footerRow\", \"headerRow\", \"headerRows\", \"inverted\", \"padded\", \"renderBodyRow\", \"selectable\", \"singleLine\", \"size\", \"sortable\", \"stackable\", \"striped\", \"structured\", \"tableData\", \"textAlign\", \"unstackable\", \"verticalAlign\"];\nTable.defaultProps = {\n as: 'table'\n};\nTable.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /** An element type to render as (string or function). */\n as: PropTypes.elementType,\n\n /** Attach table to other content */\n attached: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['top', 'bottom'])]),\n\n /** A table can reduce its complexity to increase readability. */\n basic: PropTypes.oneOfType([PropTypes.oneOf(['very']), PropTypes.bool]),\n\n /** A table may be divided into individual cells. */\n celled: PropTypes.bool,\n\n /** Primary content. */\n children: PropTypes.node,\n\n /** Additional classes. */\n className: PropTypes.string,\n\n /** A table can be collapsing, taking up only as much space as its rows. */\n collapsing: PropTypes.bool,\n\n /** A table can be given a color to distinguish it from other tables. */\n color: PropTypes.oneOf(SUI.COLORS),\n\n /** A table can specify its column count to divide its content evenly. */\n columns: PropTypes.oneOf(SUI.WIDTHS),\n\n /** A table may sometimes need to be more compact to make more rows visible at a time. */\n compact: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['very'])]),\n\n /** A table may be formatted to emphasize a first column that defines a rows content. */\n definition: PropTypes.bool,\n\n /**\n * A table can use fixed a special faster form of table rendering that does not resize table cells based on content\n */\n fixed: PropTypes.bool,\n\n /** Shorthand for a TableRow to be placed within Table.Footer. */\n footerRow: customPropTypes.itemShorthand,\n\n /** Shorthand for a TableRow to be placed within Table.Header. */\n headerRow: customPropTypes.every([customPropTypes.disallow(['headerRows']), customPropTypes.itemShorthand]),\n\n /** Shorthand for multiple TableRows to be placed within Table.Header. */\n headerRows: customPropTypes.every([customPropTypes.disallow(['headerRow']), customPropTypes.collectionShorthand]),\n\n /** A table's colors can be inverted. */\n inverted: PropTypes.bool,\n\n /** A table may sometimes need to be more padded for legibility. */\n padded: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['very'])]),\n\n /**\n * Mapped over `tableData` and should return shorthand for each Table.Row to be placed within Table.Body.\n *\n * @param {*} data - An element in the `tableData` array.\n * @param {number} index - The index of the current element in `tableData`.\n * @returns {*} Shorthand for a Table.Row.\n */\n renderBodyRow: customPropTypes.every([customPropTypes.disallow(['children']), customPropTypes.demand(['tableData']), PropTypes.func]),\n\n /** A table can have its rows appear selectable. */\n selectable: PropTypes.bool,\n\n /** A table can specify that its cell contents should remain on a single line and not wrap. */\n singleLine: PropTypes.bool,\n\n /** A table can also be small or large. */\n size: PropTypes.oneOf(_without(SUI.SIZES, 'mini', 'tiny', 'medium', 'big', 'huge', 'massive')),\n\n /** A table may allow a user to sort contents by clicking on a table header. */\n sortable: PropTypes.bool,\n\n /** A table can specify how it stacks table content responsively. */\n stackable: PropTypes.bool,\n\n /** A table can stripe alternate rows of content with a darker color to increase contrast. */\n striped: PropTypes.bool,\n\n /** A table can be formatted to display complex structured data. */\n structured: PropTypes.bool,\n\n /** Data to be passed to the renderBodyRow function. */\n tableData: customPropTypes.every([customPropTypes.disallow(['children']), customPropTypes.demand(['renderBodyRow']), PropTypes.array]),\n\n /** A table can adjust its text alignment. */\n textAlign: PropTypes.oneOf(_without(SUI.TEXT_ALIGNMENTS, 'justified')),\n\n /** A table can specify how it stacks table content responsively. */\n unstackable: PropTypes.bool,\n\n /** A table can adjust its text alignment. */\n verticalAlign: PropTypes.oneOf(SUI.VERTICAL_ALIGNMENTS)\n} : {};\nTable.Body = TableBody;\nTable.Cell = TableCell;\nTable.Footer = TableFooter;\nTable.Header = TableHeader;\nTable.HeaderCell = TableHeaderCell;\nTable.Row = TableRow;\nexport default Table;","import arrayWithoutHoles from \"./arrayWithoutHoles\";\nimport iterableToArray from \"./iterableToArray\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray\";\nimport nonIterableSpread from \"./nonIterableSpread\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import arrayLikeToArray from \"./arrayLikeToArray\";\nexport default function _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) return arrayLikeToArray(arr);\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && Symbol.iterator in Object(iter)) return Array.from(iter);\n}","export default function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import React, { useEffect, useState, useContext, Component } from \"react\";\nimport \"semantic-ui-css/semantic.min.css\";\nimport {\n Card,\n Button,\n Form,\n Table,\n Dropdown,\n Divider,\n} from \"semantic-ui-react\";\nimport { Link } from \"react-router-dom\";\nimport \"../../Navbar/Navbar.css\";\nimport API from \"../api/apilink\";\nimport Swal from \"sweetalert2\";\nimport Loader from \"../api/loader\";\n\nfunction SessionMaster() {\n const [sessiontab, setsessiontab] = useState([]);\n const [table, settable] = useState(true);\n const [loading, setLoading] = useState(false);\n\n useEffect(() => {\n const loadsessionmastab = async function () {\n setLoading(true);\n try {\n const res = await API.get(`app.php?a=getsessionmaster&univcode=098`);\n setsessiontab(res.data.data);\n console.log(res.data.data, \"hhhhhhhhh\");\n } catch (err) {\n console.log(err);\n }\n setLoading(false);\n };\n\n loadsessionmastab();\n }, []);\n\n const handleChangeCell = async (name, x, val) => {\n const dtt = sessiontab;\n const newdtt = dtt.map((el, i) => {\n if (i === x) {\n el[name] = val;\n return el;\n }\n return el;\n });\n setsessiontab([...newdtt]);\n };\n\n const handleSave = async () => {\n setLoading(true);\n try {\n let res = await API.post(`app.php?a=saveQPSessionMaster&univcode=098`, {\n data: { sessiontab },\n });\n if (res.data.error_code == 0) {\n Swal.fire(\"Success\", res.data.data.msg, \"success\");\n } else {\n Swal.fire(\"Failed\", res.data.data.msg, \"failed\");\n setLoading(false);\n return;\n }\n } catch (err) {\n console.log(err);\n }\n setLoading(false);\n };\n\n return (\n <div className=\"page\">\n {loading ? (\n <Loader />\n ) : (\n <div className=\"row\">\n <div className=\"col-md-12 grid-margin stretch-card\">\n <div className=\"card\">\n <div className=\"card-body\" style={{ display: \"flex\" }}>\n <h4>Session Master</h4>\n <div className=\"ml-auto\">\n <button\n onClick={() => handleSave()}\n type=\"button\"\n className=\"btn btn-info btn-fw\"\n >\n <span class=\"mdi mdi-content-save-all-outline\"></span>\n Save\n </button>\n <Link to=\"/dashboard\">\n <button type=\"button\" className=\"btn btn-danger btn-fw\">\n <span class=\"mdi mdi-exit-to-app\"></span>\n Exit\n </button>\n </Link>\n </div>\n </div>\n <Divider />\n <div className=\"col-md-12\">\n {table == true ? (\n <div className=\"ui mini form\">\n <Table celled>\n <Table.Header class=\"positive\">\n <Table.Row>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n singleLine\n textAlign=\"center\"\n >\n Sl. No.\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"5%\" }}\n textAlign=\"center\"\n >\n Session Code\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"30%\" }}\n textAlign=\"center\"\n >\n Session Name\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"30%\" }}\n textAlign=\"center\"\n >\n From Time\n </Table.HeaderCell>\n <Table.HeaderCell\n style={{ width: \"30%\" }}\n textAlign=\"center\"\n >\n To Time\n </Table.HeaderCell>\n </Table.Row>\n </Table.Header>\n\n <Table.Body>\n {sessiontab.map((el, i) => {\n return (\n <Table.Row key={i}>\n <Table.Cell textAlign=\"center\">\n {i + 1}\n </Table.Cell>\n <Table.Cell textAlign=\"center\">\n {el.fsession}\n </Table.Cell>\n <Table.Cell style={{ textAlign: \"center\" }}>\n {el.fdescpn}\n </Table.Cell>\n <Table.Cell>\n <input\n className=\"field\"\n type=\"text\"\n style={{ textAlign: \"center\" }}\n name=\"ffrmtime\"\n value={el.ffrmtime}\n id={i}\n onChange={(e, data) => {\n handleChangeCell(\n \"ffrmtime\",\n i,\n e.target.value\n );\n }}\n />\n </Table.Cell>\n <Table.Cell>\n <input\n className=\"field\"\n type=\"text\"\n style={{ textAlign: \"center\" }}\n name=\"ftotime\"\n value={el.ftotime}\n id={i}\n onChange={(e, data) => {\n handleChangeCell(\n \"ftotime\",\n i,\n e.target.value\n );\n }}\n />\n </Table.Cell>\n </Table.Row>\n );\n })}\n </Table.Body>\n </Table>\n </div>\n ) : null}\n </div>\n </div>\n </div>\n </div>\n )}\n </div>\n );\n}\n\nexport default SessionMaster;\n"],"sourceRoot":""}
|