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ack:///./react-antd/button/index.js","webpack:///./react-antd/button/button.scss"],"sourcesContent":["\n      import API from \"!../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n      import domAPI from \"!../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n      import insertFn from \"!../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n      import setAttributes from \"!../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n      import insertStyleElement from \"!../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n      import styleTagTransformFn from \"!../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n      import content, * as namedExport from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./button.scss\";\n      \n      \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n      options.insert = insertFn.bind(null, \"head\");\n    \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../node_modules/css-loader/dist/cjs.js!../../node_modules/sass-loader/dist/cjs.js!./button.scss\";\n       export default content && content.locals ? content.locals : undefined;\n","/* eslint-disable jsx-a11y/alt-text */\nimport React from 'react';\nimport Button from 'antd/lib/button';\nimport Tooltip from 'antd/lib/tooltip';\nimport _ from 'lodash';\n\nimport { I18N } from '../../components';\nimport { MakeButton } from '../../common';\nimport { lfLog } from '../../helpers/lf-log';\n\nimport './button.scss';\n\nconst AntdButton = ({ label, icon, hint, tooltip, ...rest }) => {\n  let inner;\n  if (!_.isEmpty(label) && !_.isEmpty(icon)) {\n    inner = (\n      <Button\n        icon={<img className=\"lf-icon\" src={icon} />}\n        {...rest}\n      >{label}</Button>\n    ) \n  } else if (!_.isEmpty(label) && _.isEmpty(icon)) {\n    inner = (\n      <Button\n        {...rest}\n      >{label}</Button>\n    ) \n  } else if (_.isEmpty(label) && !_.isEmpty(icon)) {\n    inner = (\n      <Button\n        icon={<img className=\"lf-icon\" src={icon} />}\n        {...rest}\n      />\n    );\n  } else {\n    inner = <></>;\n  }\n\n  return (\n    <>\n      {!_.isEmpty(hint) && (\n        <Tooltip\n          title={hint}\n        >\n          {inner}\n        </Tooltip>\n      )}\n      {_.isEmpty(hint) && inner}    \n    </>\n  );\n};\n\nconst BiStateButton = I18N(\n  MakeButton(AntdButton, { type: 'primary' }, { type: undefined }),\n  ['labelOn', 'labelOff', 'labelLink', 'hint']\n);\n\nexport default BiStateButton;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".lf-form-react-antd .lf-control-button{min-height:20px}.lf-form-react-antd .lf-control-button .ant-btn{min-width:32px}.lf-form-react-antd .lf-control-button .lf-icon{max-width:16px;max-height:16px;margin-top:-2px}.lf-form-react-antd .lf-control-button .ant-btn-lg{min-width:40px}.lf-form-react-antd .lf-control-button .ant-btn-lg .lf-icon{max-width:20px;max-height:20px}.lf-form-react-antd .lf-control-button .ant-btn-sm{min-width:24px}.lf-form-react-antd .lf-control-button .ant-btn-sm .lf-icon{max-width:14px;max-height:14px}\", \"\",{\"version\":3,\"sources\":[\"webpack://./react-antd/button/button.scss\"],\"names\":[],\"mappings\":\"AACE,uCACE,eAAA,CAEA,gDACE,cAAA,CAGF,gDACE,cAAA,CACA,eAAA,CACA,eAAA,CAIF,mDACE,cAAA,CACA,4DACE,cAAA,CACA,eAAA,CAIJ,mDACE,cAAA,CACA,4DACE,cAAA,CACA,eAAA\",\"sourcesContent\":[\".lf-form-react-antd {\\n  .lf-control-button {\\n    min-height: 20px;\\n    \\n    .ant-btn {\\n      min-width: 32px;\\n    }\\n\\n    .lf-icon {\\n      max-width: 16px;\\n      max-height: 16px;\\n      margin-top: -2px;\\n      \\n    }\\n\\n    .ant-btn-lg {\\n      min-width: 40px;\\n      .lf-icon {\\n        max-width: 20px;\\n        max-height: 20px;\\n      }\\n    }\\n\\n    .ant-btn-sm {\\n      min-width: 24px;\\n      .lf-icon {\\n        max-width: 14px;\\n        max-height: 14px;\\n      }\\n    }\\n  }\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","I18N","MakeButton","_ref","inner","label","icon","hint","rest","tooltip","_objectWithoutProperties","_excluded","_isEmpty","React","Button","_extends","className","src","Tooltip","title","type","undefined","___CSS_LOADER_EXPORT___","push","module","id"],"sourceRoot":""}