0xV3NOMx
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 : 3.138.178.162


Current Path : /var/www/egov/build/static/js/
Upload File :
Current File : /var/www/egov/build/static/js/90.be2aae3a.chunk.js.map

{"version":3,"sources":["pages/utils/qpupload/index.js","actions/utils/uploads.js","../node_modules/semantic-ui-react/dist/es/elements/Divider/Divider.js","../node_modules/semantic-ui-react/dist/es/elements/Segment/SegmentGroup.js","../node_modules/semantic-ui-react/dist/es/elements/Segment/SegmentInline.js","../node_modules/semantic-ui-react/dist/es/elements/Segment/Segment.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticGroup.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticLabel.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticValue.js","../node_modules/semantic-ui-react/dist/es/views/Statistic/Statistic.js"],"names":["QPUpload","state","file","size","filenm","fileinfo","table","key","value","text","ftable","fileInputRef","React","createRef","handleCancel","_this","setState","current","fileChange","e","undefined","target","files","file_size","file_extn","name","split","pop","toLowerCase","props","showError","header","content","qpFileUpload","formatBytes","handleChange","data","Object","defineProperty","upload","_callee","error","_error2","regenerator_default","a","wrap","_context","prev","next","abrupt","qpStatUpload","mastabuUpload","stop","_this2","this","wheight","wHeight","react_default","createElement","className","Card","fluid","Content","Header","style","display","Button","basic","color","icon","onClick","Link","to","Divider","Description","height","concat","overflowY","Form","Field","width","Dropdown","search","selection","onChange","placeholder","options","Segment","Icon","onSubmit","onFormSubmit","ref","type","hidden","primary","click","Statistic","label","Component","connect","feeheads","_ref","asyncToGenerator","mark","dispatch","getState","formData","response","FormData","set","univadmin","post","headers","Content-type","sent","payload","_x","_x2","apply","arguments","_ref2","_callee2","_error","_context2","get","params","gfilename","fqpfilenm","univcode","univ","funivcode","error_code","msg","_x3","_x4","_ref3","_callee3","_error3","_error4","_context3","_x5","_x6","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default","n","classnames__WEBPACK_IMPORTED_MODULE_1__","classnames__WEBPACK_IMPORTED_MODULE_1___default","react__WEBPACK_IMPORTED_MODULE_2__","react__WEBPACK_IMPORTED_MODULE_2___default","_lib__WEBPACK_IMPORTED_MODULE_3__","_lib__WEBPACK_IMPORTED_MODULE_4__","_lib__WEBPACK_IMPORTED_MODULE_5__","_lib__WEBPACK_IMPORTED_MODULE_6__","children","clearing","fitted","horizontal","inverted","section","vertical","classes","rest","ElementType","isNil","handledProps","propTypes","__webpack_exports__","SegmentGroup","compact","piled","raised","stacked","classnames_default","classNameBuilders","getUnhandledProps","getElementType","extends_default","lib","Segment_SegmentGroup","SegmentInline","Segment_SegmentInline","attached","circular","disabled","floated","loading","padded","secondary","tertiary","textAlign","Group","Inline","StatisticGroup","items","widths","map_default","item","Statistic_Statistic","create","Statistic_StatisticGroup","StatisticLabel","factories","Statistic_StatisticLabel","StatisticValue","Statistic_StatisticValue","defaultProps","autoGenerateKey","Label","Value"],"mappings":"sUAuBMA,6MACJC,MAAQ,CACNC,KAAM,KACNC,KAAM,KACNC,OAAQ,KACRC,UAAU,EACVC,MAAO,CACL,CAAEC,IAAK,QAASC,MAAO,QAASC,KAAM,UACtC,CAAEF,IAAK,UAAWC,MAAO,UAAWC,KAAM,YAE5CC,OAAQ,MAGVC,aAAeC,IAAMC,cAErBC,aAAe,WACbC,EAAKC,SAAS,CACZd,KAAM,KACNC,KAAM,KACNC,OAAQ,KACRC,UAAU,EACVC,MAAO,CACL,CAAEC,IAAK,QAASC,MAAO,QAASC,KAAM,UACtC,CAAEF,IAAK,UAAWC,MAAO,UAAWC,KAAM,YAE5CC,OAAQ,KAEVK,EAAKJ,aAAaM,QAAQT,MAAQ,MAIpCU,WAAa,SAAAC,GACX,QAA0BC,IAAtBD,EAAEE,OAAOC,MAAM,GAAnB,CAEA,IAAIC,EAAYJ,EAAEE,OAAOC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G,EAAAjE,EAAoBkC,OAAAyI,EAAA,EAAAzI,CAAcoJ,EAAA,WAAsBpJ,OAAAyI,EAAA,EAAAzI,CAAUwH,EAAA,cAA4BxH,OAAAyI,EAAA,EAAAzI,CAAUyH,EAAA,wBAAAnG,GAC1HuG,EAAa7H,OAAA0I,EAAA,EAAA1I,CAAiB2D,EAAAnE,GAC9BsI,EAAoB9H,OAAA2I,EAAA,EAAA3I,CAAc2D,EAAAnE,GAElC,OAAOqJ,EAAA,EAAad,MAAAV,GAMbwB,EAAA,EAAad,MAAApI,GAMXyB,EAAAb,EAAKc,cAAAyG,EAA4Bc,IAAQ,GAAGf,EAAA,CACrDvG,UAAAsG,IACM4C,EAAcN,OAAA/L,EAAA,CACpBsM,aAAA,CACArM,QAEAsM,iBAAA,IACMJ,EAAcJ,OAAAtG,EAAA,CACpB8G,iBAAA,KAbWtJ,EAAAb,EAAKc,cAAAyG,EAA4Bc,IAAQ,GAAGf,EAAA,CACvDvG,UAAAsG,IACKjI,GARMyB,EAAAb,EAAKc,cAAAyG,EAA4Bc,IAAQ,GAAGf,EAAA,CACvDvG,UAAAsG,IACKP,GAqBL1D,EAAAqE,aAAA,gHACArE,EAAAsE,UAoCC,GACDtE,EAAA+F,MAAkBS,EAClBxG,EAAAgH,MAAkBL,EAClB3G,EAAAiH,MAAkBJ,EAClB7G,EAAAuG,OAAmBlK,OAAAqK,EAAA,EAAArK,CAAsB2D,EAAA,SAAAhE,GACzC,OACAA,aAGe,IAAAsK,EAAA/B,EAAA","file":"static/js/90.be2aae3a.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport {\n  Card,\n  Divider,\n  Segment,\n  Button,\n  Icon,\n  Header,\n  Form,\n  Statistic,\n  Dropdown\n} from \"semantic-ui-react\";\nimport { connect } from \"react-redux\";\nimport {\n  qpFileUpload,\n  qpStatUpload,\n  mastabuUpload\n} from \"../../../actions/utils/uploads\";\nimport { showError } from \"../../../actions\";\n//\nimport { wHeight, formatBytes } from \"../../parms\";\n\nclass QPUpload extends Component {\n  state = {\n    file: null,\n    size: null,\n    filenm: null,\n    fileinfo: false,\n    table: [\n      { key: \"masqp\", value: \"masqp\", text: \"QPSTAT\" },\n      { key: \"mastabu\", value: \"mastabu\", text: \"MASTABU\" }\n    ],\n    ftable: \"\"\n  };\n\n  fileInputRef = React.createRef();\n\n  handleCancel = () => {\n    this.setState({\n      file: null,\n      size: null,\n      filenm: null,\n      fileinfo: false,\n      table: [\n        { key: \"masqp\", value: \"masqp\", text: \"QPSTAT\" },\n        { key: \"mastabu\", value: \"mastabu\", text: \"MASTABU\" }\n      ],\n      ftable: \"\"\n    });\n    this.fileInputRef.current.value = \"\";\n    // console.log(this.fileInputRef);\n  };\n\n  fileChange = e => {\n    if (e.target.files[0] === undefined) return;\n\n    var file_size = e.target.files[0].size;\n    var file_extn = e.target.files[0].name.split(\".\").pop();\n    file_extn = file_extn.toLowerCase();\n\n    if (file_extn !== \"xlsx\") {\n      const error = { header: \"Error\", content: \"XLSX files are allowed!\" };\n      this.props.showError(error);\n      return;\n    }\n\n    if (file_size >= 2000000) {\n      const error = {\n        header: \"Error\",\n        content: \"Upload files with size less then 2MB!\"\n      };\n      this.props.showError(error);\n      return;\n    }\n    this.props.qpFileUpload(e.target.files[0]);\n    this.setState({\n      file: e.target.files[0],\n      size: formatBytes(e.target.files[0].size),\n      filenm: e.target.files[0].name\n    });\n  };\n\n  handleChange = (e, data) => {\n    this.setState({ [data.name]: data.value });\n  };\n\n  upload = async () => {\n    if (this.state.ftable === \"\") {\n      const error = { header: \"Error\", content: \"Select table to upload\" };\n      this.props.showError(error);\n      return;\n    }\n    if (this.state.file === null) {\n      const error = { header: \"Error\", content: \"Add File to upload\" };\n      this.props.showError(error);\n      return;\n    }\n    if (this.state.ftable === \"masqp\") {\n      await this.props.qpStatUpload();\n    } else if (this.state.ftable === \"mastabu\") {\n      await this.props.mastabuUpload();\n    }\n    this.handleCancel();\n  };\n\n  render() {\n    const wheight = wHeight();\n    return (\n      <div className=\"animated fadeIn\">\n        <Card fluid>\n          <Card.Content>\n            <Card.Header style={{ display: \"flex\" }}>\n              <h4>Upload Valuation Statistics</h4>\n              <div className=\"ml-auto\">\n                <Button\n                  basic\n                  color=\"blue\"\n                  content=\"Upload\"\n                  icon=\"cloud upload\"\n                  onClick={this.upload}\n                />\n                <Button\n                  basic\n                  color=\"black\"\n                  content=\"Cancel\"\n                  icon=\"ban\"\n                  onClick={this.handleCancel}\n                />\n                <Link to=\"/dashboard\">\n                  <Button basic color=\"red\" content=\"Exit\" icon=\"home\" />\n                </Link>\n              </div>\n            </Card.Header>\n            <Divider />\n            <Card.Description\n              style={{ height: `${wheight}px`, overflowY: \"auto\" }}\n            >\n              <Form>\n                <Form.Field width=\"8\">\n                  <label>Table</label>\n                  <Dropdown\n                    fluid\n                    search\n                    selection\n                    name=\"ftable\"\n                    value={this.state.ftable}\n                    onChange={this.handleChange}\n                    placeholder=\"Select Table\"\n                    options={this.state.table}\n                  />\n                </Form.Field>\n              </Form>\n              <Segment\n                placeholder\n                style={{ height: `${wheight * 0.8}px`, overflowY: \"auto\" }}\n              >\n                <Header icon>\n                  <Icon name=\"file excel outline\" />\n                  Upload the Excel file here.\n                  <br />\n                  Note: File should be in xlsx format and less than 2 MB\n                </Header>\n                <Form onSubmit={this.onFormSubmit}>\n                  <input\n                    ref={this.fileInputRef}\n                    type=\"file\"\n                    hidden\n                    onChange={this.fileChange}\n                  />\n                  <Button\n                    primary\n                    onClick={() => this.fileInputRef.current.click()}\n                  >\n                    Add Document\n                  </Button>\n                </Form>\n                <Statistic label={this.state.filenm} value={this.state.size} />\n              </Segment>\n            </Card.Description>\n          </Card.Content>\n        </Card>\n      </div>\n    );\n  }\n}\n\nconst mapStateToProps = state => {\n  return {\n    feeheads: state.feeheads\n  };\n};\n\nexport default connect(\n  mapStateToProps,\n  {\n    showError,\n    qpFileUpload,\n    qpStatUpload,\n    mastabuUpload\n  }\n)(QPUpload);\n","import univadmin from \"../../apis/univadmin\";\nimport { showError } from \"../index\";\nexport const qpFileUpload = file => {\n  return async function(dispatch, getState) {\n    const state = getState();\n\n    dispatch({\n      type: \"SET_LOADER\"\n    });\n\n    const formData = new FormData();\n    formData.set(\"file\", file, file.name);\n    const response = await univadmin.post(\"upload_file.php\", formData, {\n      headers: {\n        \"Content-type\": \"multipart/form-data\"\n      }\n    });\n\n    dispatch({\n      type: \"UNSET_LOADER\"\n    });\n    dispatch({\n      type: \"SET_QPNAME\",\n      payload: response.data\n    });\n  };\n};\n\nexport const qpStatUpload = () => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\"\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"uploadScriptStats\",\n        gfilename: state.upload.fqpfilenm,\n        univcode: state.univ.funivcode\n      }\n    });\n    dispatch({\n      type: \"UNSET_LOADER\"\n    });\n    // console.log(\"response\",response);\n    if (typeof response.data !== \"object\") {\n      const error = {\n        header: \"Error\",\n        content: \"Something went wrong\"\n      };\n      dispatch(showError(error));\n    } else if (response.data.error_code === 0) {\n      const error = { header: \"Success\", content: response.data.data.msg };\n      dispatch(showError(error));\n    } else {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n    }\n  };\n};\n\nexport const mastabuUpload = () => {\n  return async (dispatch, getState) => {\n    const state = getState();\n    dispatch({\n      type: \"SET_LOADER\"\n    });\n\n    const response = await univadmin.get(\"/app.php\", {\n      params: {\n        a: \"mastabuUpload\",\n        gfilename: state.upload.fqpfilenm,\n        univcode: state.univ.funivcode\n      }\n    });\n    dispatch({\n      type: \"UNSET_LOADER\"\n    });\n    // console.log(\"response\",response);\n    if (typeof response.data !== \"object\") {\n      const error = {\n        header: \"Error\",\n        content: \"Something went wrong\"\n      };\n      dispatch(showError(error));\n    } else if (response.data.error_code === 0) {\n      const error = { header: \"Success\", content: response.data.data.msg };\n      dispatch(showError(error));\n    } else {\n      const error = { header: \"Error\", content: response.data.data.msg };\n      dispatch(showError(error));\n    }\n  };\n};\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A divider visually segments content into groups.\n */\n\nfunction Divider(props) {\n  var children = props.children,\n      className = props.className,\n      clearing = props.clearing,\n      content = props.content,\n      fitted = props.fitted,\n      hidden = props.hidden,\n      horizontal = props.horizontal,\n      inverted = props.inverted,\n      section = props.section,\n      vertical = props.vertical;\n  var classes = cx('ui', useKeyOnly(clearing, 'clearing'), useKeyOnly(fitted, 'fitted'), useKeyOnly(hidden, 'hidden'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useKeyOnly(section, 'section'), useKeyOnly(vertical, 'vertical'), 'divider', className);\n  var rest = getUnhandledProps(Divider, props);\n  var ElementType = getElementType(Divider, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nDivider.handledProps = [\"as\", \"children\", \"className\", \"clearing\", \"content\", \"fitted\", \"hidden\", \"horizontal\", \"inverted\", \"section\", \"vertical\"];\nDivider.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\n\n  /** Primary content. */\n  children: PropTypes.node,\n\n  /** Additional classes. */\n  className: PropTypes.string,\n\n  /** Divider can clear the content above it. */\n  clearing: PropTypes.bool,\n\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n\n  /** Divider can be fitted without any space above or below it. */\n  fitted: PropTypes.bool,\n\n  /** Divider can divide content without creating a dividing line. */\n  hidden: PropTypes.bool,\n\n  /** Divider can segment content horizontally. */\n  horizontal: PropTypes.bool,\n\n  /** Divider can have its colours inverted. */\n  inverted: PropTypes.bool,\n\n  /** Divider can provide greater margins to divide sections of content. */\n  section: PropTypes.bool,\n\n  /** Divider can segment content vertically. */\n  vertical: PropTypes.bool\n} : {};\nexport default Divider;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _without from \"lodash/without\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly } from '../../lib';\n/**\n * A group of segments can be formatted to appear together.\n */\n\nfunction SegmentGroup(props) {\n  var children = props.children,\n      className = props.className,\n      compact = props.compact,\n      content = props.content,\n      horizontal = props.horizontal,\n      piled = props.piled,\n      raised = props.raised,\n      size = props.size,\n      stacked = props.stacked;\n  var classes = cx('ui', size, useKeyOnly(compact, 'compact'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(piled, 'piled'), useKeyOnly(raised, 'raised'), useKeyOnly(stacked, 'stacked'), 'segments', className);\n  var rest = getUnhandledProps(SegmentGroup, props);\n  var ElementType = getElementType(SegmentGroup, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nSegmentGroup.handledProps = [\"as\", \"children\", \"className\", \"compact\", \"content\", \"horizontal\", \"piled\", \"raised\", \"size\", \"stacked\"];\nSegmentGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\n\n  /** Primary content. */\n  children: PropTypes.node,\n\n  /** Additional classes. */\n  className: PropTypes.string,\n\n  /** A segment may take up only as much space as is necessary. */\n  compact: PropTypes.bool,\n\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n\n  /** Formats content to be aligned horizontally. */\n  horizontal: PropTypes.bool,\n\n  /** Formatted to look like a pile of pages. */\n  piled: PropTypes.bool,\n\n  /** A segment group may be formatted to raise above the page. */\n  raised: PropTypes.bool,\n\n  /** A segment group can have different sizes. */\n  size: PropTypes.oneOf(_without(SUI.SIZES, 'medium')),\n\n  /** Formatted to show it contains multiple pages. */\n  stacked: PropTypes.bool\n} : {};\nexport default SegmentGroup;","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\n/**\n * A placeholder segment can be inline.\n */\n\nfunction SegmentInline(props) {\n  var children = props.children,\n      className = props.className,\n      content = props.content;\n  var classes = cx('inline', className);\n  var rest = getUnhandledProps(SegmentInline, props);\n  var ElementType = getElementType(SegmentInline, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nSegmentInline.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nSegmentInline.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\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} : {};\nexport default SegmentInline;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _without from \"lodash/without\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useKeyOrValueAndKey, useTextAlignProp, useValueAndKey } from '../../lib';\nimport SegmentGroup from './SegmentGroup';\nimport SegmentInline from './SegmentInline';\n/**\n * A segment is used to create a grouping of related content.\n */\n\nfunction Segment(props) {\n  var attached = props.attached,\n      basic = props.basic,\n      children = props.children,\n      circular = props.circular,\n      className = props.className,\n      clearing = props.clearing,\n      color = props.color,\n      compact = props.compact,\n      content = props.content,\n      disabled = props.disabled,\n      floated = props.floated,\n      inverted = props.inverted,\n      loading = props.loading,\n      placeholder = props.placeholder,\n      padded = props.padded,\n      piled = props.piled,\n      raised = props.raised,\n      secondary = props.secondary,\n      size = props.size,\n      stacked = props.stacked,\n      tertiary = props.tertiary,\n      textAlign = props.textAlign,\n      vertical = props.vertical;\n  var classes = cx('ui', color, size, useKeyOnly(basic, 'basic'), useKeyOnly(circular, 'circular'), useKeyOnly(clearing, 'clearing'), useKeyOnly(compact, 'compact'), useKeyOnly(disabled, 'disabled'), useKeyOnly(inverted, 'inverted'), useKeyOnly(loading, 'loading'), useKeyOnly(placeholder, 'placeholder'), useKeyOnly(piled, 'piled'), useKeyOnly(raised, 'raised'), useKeyOnly(secondary, 'secondary'), useKeyOnly(stacked, 'stacked'), useKeyOnly(tertiary, 'tertiary'), useKeyOnly(vertical, 'vertical'), useKeyOrValueAndKey(attached, 'attached'), useKeyOrValueAndKey(padded, 'padded'), useTextAlignProp(textAlign), useValueAndKey(floated, 'floated'), 'segment', className);\n  var rest = getUnhandledProps(Segment, props);\n  var ElementType = getElementType(Segment, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nSegment.handledProps = [\"as\", \"attached\", \"basic\", \"children\", \"circular\", \"className\", \"clearing\", \"color\", \"compact\", \"content\", \"disabled\", \"floated\", \"inverted\", \"loading\", \"padded\", \"piled\", \"placeholder\", \"raised\", \"secondary\", \"size\", \"stacked\", \"tertiary\", \"textAlign\", \"vertical\"];\nSegment.Group = SegmentGroup;\nSegment.Inline = SegmentInline;\nSegment.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\n\n  /** Attach segment to other content, like a header. */\n  attached: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['top', 'bottom'])]),\n\n  /** A basic segment has no special formatting. */\n  basic: PropTypes.bool,\n\n  /** Primary content. */\n  children: PropTypes.node,\n\n  /** A segment can be circular. */\n  circular: PropTypes.bool,\n\n  /** Additional classes. */\n  className: PropTypes.string,\n\n  /** A segment can clear floated content. */\n  clearing: PropTypes.bool,\n\n  /** Segment can be colored. */\n  color: PropTypes.oneOf(SUI.COLORS),\n\n  /** A segment may take up only as much space as is necessary. */\n  compact: PropTypes.bool,\n\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n\n  /** A segment may show its content is disabled. */\n  disabled: PropTypes.bool,\n\n  /** Segment content can be floated to the left or right. */\n  floated: PropTypes.oneOf(SUI.FLOATS),\n\n  /** A segment can have its colors inverted for contrast. */\n  inverted: PropTypes.bool,\n\n  /** A segment may show its content is being loaded. */\n  loading: PropTypes.bool,\n\n  /** A segment can increase its padding. */\n  padded: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['very'])]),\n\n  /** A segment can be used to reserve space for conditionally displayed content. */\n  placeholder: PropTypes.bool,\n\n  /** Formatted to look like a pile of pages. */\n  piled: PropTypes.bool,\n\n  /** A segment may be formatted to raise above the page. */\n  raised: PropTypes.bool,\n\n  /** A segment can be formatted to appear less noticeable. */\n  secondary: PropTypes.bool,\n\n  /** A segment can have different sizes. */\n  size: PropTypes.oneOf(_without(SUI.SIZES, 'medium')),\n\n  /** Formatted to show it contains multiple pages. */\n  stacked: PropTypes.bool,\n\n  /** A segment can be formatted to appear even less noticeable. */\n  tertiary: PropTypes.bool,\n\n  /** Formats content to be aligned as part of a vertical group. */\n  textAlign: PropTypes.oneOf(_without(SUI.TEXT_ALIGNMENTS, 'justified')),\n\n  /** Formats content to be aligned vertically. */\n  vertical: PropTypes.bool\n} : {};\nexport default Segment;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _without from \"lodash/without\";\nimport _map from \"lodash/map\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useWidthProp } from '../../lib';\nimport Statistic from './Statistic';\n/**\n * A group of statistics.\n */\n\nfunction StatisticGroup(props) {\n  var children = props.children,\n      className = props.className,\n      color = props.color,\n      content = props.content,\n      horizontal = props.horizontal,\n      inverted = props.inverted,\n      items = props.items,\n      size = props.size,\n      widths = props.widths;\n  var classes = cx('ui', color, size, useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), useWidthProp(widths), 'statistics', className);\n  var rest = getUnhandledProps(StatisticGroup, props);\n  var ElementType = getElementType(StatisticGroup, props);\n\n  if (!childrenUtils.isNil(children)) {\n    return React.createElement(ElementType, _extends({}, rest, {\n      className: classes\n    }), children);\n  }\n\n  if (!childrenUtils.isNil(content)) {\n    return React.createElement(ElementType, _extends({}, rest, {\n      className: classes\n    }), content);\n  }\n\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), _map(items, function (item) {\n    return Statistic.create(item);\n  }));\n}\n\nStatisticGroup.handledProps = [\"as\", \"children\", \"className\", \"color\", \"content\", \"horizontal\", \"inverted\", \"items\", \"size\", \"widths\"];\nStatisticGroup.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\n\n  /** Primary content. */\n  children: PropTypes.node,\n\n  /** Additional classes. */\n  className: PropTypes.string,\n\n  /** A statistic group can be formatted to be different colors. */\n  color: PropTypes.oneOf(SUI.COLORS),\n\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n\n  /** A statistic group can present its measurement horizontally. */\n  horizontal: PropTypes.bool,\n\n  /** A statistic group can be formatted to fit on a dark background. */\n  inverted: PropTypes.bool,\n\n  /** Array of props for Statistic. */\n  items: customPropTypes.collectionShorthand,\n\n  /** A statistic group can vary in size. */\n  size: PropTypes.oneOf(_without(SUI.SIZES, 'big', 'massive', 'medium')),\n\n  /** A statistic group can have its items divided evenly. */\n  widths: PropTypes.oneOf(SUI.WIDTHS)\n} : {};\nexport default StatisticGroup;","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps } from '../../lib';\n/**\n * A statistic can contain a label to help provide context for the presented value.\n */\n\nfunction StatisticLabel(props) {\n  var children = props.children,\n      className = props.className,\n      content = props.content;\n  var classes = cx('label', className);\n  var rest = getUnhandledProps(StatisticLabel, props);\n  var ElementType = getElementType(StatisticLabel, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nStatisticLabel.handledProps = [\"as\", \"children\", \"className\", \"content\"];\nStatisticLabel.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\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} : {};\nStatisticLabel.create = createShorthandFactory(StatisticLabel, function (content) {\n  return {\n    content: content\n  };\n});\nexport default StatisticLabel;","import _extends from \"@babel/runtime/helpers/extends\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, useKeyOnly } from '../../lib';\n/**\n * A statistic can contain a numeric, icon, image, or text value.\n */\n\nfunction StatisticValue(props) {\n  var children = props.children,\n      className = props.className,\n      content = props.content,\n      text = props.text;\n  var classes = cx(useKeyOnly(text, 'text'), 'value', className);\n  var rest = getUnhandledProps(StatisticValue, props);\n  var ElementType = getElementType(StatisticValue, props);\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), childrenUtils.isNil(children) ? content : children);\n}\n\nStatisticValue.handledProps = [\"as\", \"children\", \"className\", \"content\", \"text\"];\nStatisticValue.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\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  /** Format the value with smaller font size to fit nicely beside number values. */\n  text: PropTypes.bool\n} : {};\nStatisticValue.create = createShorthandFactory(StatisticValue, function (content) {\n  return {\n    content: content\n  };\n});\nexport default StatisticValue;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _without from \"lodash/without\";\nimport cx from 'classnames';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, SUI, useKeyOnly, useValueAndKey } from '../../lib';\nimport StatisticGroup from './StatisticGroup';\nimport StatisticLabel from './StatisticLabel';\nimport StatisticValue from './StatisticValue';\n/**\n * A statistic emphasizes the current value of an attribute.\n */\n\nfunction Statistic(props) {\n  var children = props.children,\n      className = props.className,\n      color = props.color,\n      content = props.content,\n      floated = props.floated,\n      horizontal = props.horizontal,\n      inverted = props.inverted,\n      label = props.label,\n      size = props.size,\n      text = props.text,\n      value = props.value;\n  var classes = cx('ui', color, size, useValueAndKey(floated, 'floated'), useKeyOnly(horizontal, 'horizontal'), useKeyOnly(inverted, 'inverted'), 'statistic', className);\n  var rest = getUnhandledProps(Statistic, props);\n  var ElementType = getElementType(Statistic, props);\n\n  if (!childrenUtils.isNil(children)) {\n    return React.createElement(ElementType, _extends({}, rest, {\n      className: classes\n    }), children);\n  }\n\n  if (!childrenUtils.isNil(content)) {\n    return React.createElement(ElementType, _extends({}, rest, {\n      className: classes\n    }), content);\n  }\n\n  return React.createElement(ElementType, _extends({}, rest, {\n    className: classes\n  }), StatisticValue.create(value, {\n    defaultProps: {\n      text: text\n    },\n    autoGenerateKey: false\n  }), StatisticLabel.create(label, {\n    autoGenerateKey: false\n  }));\n}\n\nStatistic.handledProps = [\"as\", \"children\", \"className\", \"color\", \"content\", \"floated\", \"horizontal\", \"inverted\", \"label\", \"size\", \"text\", \"value\"];\nStatistic.propTypes = process.env.NODE_ENV !== \"production\" ? {\n  /** An element type to render as (string or function). */\n  as: customPropTypes.as,\n\n  /** Primary content. */\n  children: PropTypes.node,\n\n  /** Additional classes. */\n  className: PropTypes.string,\n\n  /** A statistic can be formatted to be different colors. */\n  color: PropTypes.oneOf(SUI.COLORS),\n\n  /** Shorthand for primary content. */\n  content: customPropTypes.contentShorthand,\n\n  /** A statistic can sit to the left or right of other content. */\n  floated: PropTypes.oneOf(SUI.FLOATS),\n\n  /** A statistic can present its measurement horizontally. */\n  horizontal: PropTypes.bool,\n\n  /** A statistic can be formatted to fit on a dark background. */\n  inverted: PropTypes.bool,\n\n  /** Label content of the Statistic. */\n  label: customPropTypes.contentShorthand,\n\n  /** A statistic can vary in size. */\n  size: PropTypes.oneOf(_without(SUI.SIZES, 'big', 'massive', 'medium')),\n\n  /** Format the StatisticValue with smaller font size to fit nicely beside number values. */\n  text: PropTypes.bool,\n\n  /** Value content of the Statistic. */\n  value: customPropTypes.contentShorthand\n} : {};\nStatistic.Group = StatisticGroup;\nStatistic.Label = StatisticLabel;\nStatistic.Value = StatisticValue;\nStatistic.create = createShorthandFactory(Statistic, function (content) {\n  return {\n    content: content\n  };\n});\nexport default Statistic;"],"sourceRoot":""}