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AA,OAAQ,IAAAD,GAAQA,EAAAE,EAAAzB,EAChB0B,SAAAA,OAAQ,IAAAD,GAAQA,EAChBE,EAAI3B,EAAJ2B,KACAC,EAAK5B,EAAL4B,MACAC,EAAQ7B,EAAR6B,SACAC,EAAQ9B,EAAR8B,SAAQC,EAAA/B,EACRR,QAAAA,OAAO,IAAAuC,EAAG,GAAEA,EAEZ,OACErB,IAAAA,cAACsB,IAAAA,KAAS,CACRnB,UAAU,iCACV,qBAAoBO,EACpBlB,MAAOA,EACPkB,KAAMA,EACNa,KAAe,MAATL,EAAgBA,EAASxB,IAASE,EAAUF,OAAOc,EACzDQ,SAAUA,EACVpB,QAASA,GAAWF,EACpB8B,YAAsB,MAATN,EACbO,eAAgBP,EAAQ,aAASV,GAEjCR,IAAAA,cAAC0B,EAAAA,GAAkB,CACjBC,gBAAiB1B,EAAAA,QACjBS,KAAMA,EACNU,SAAUA,EACVT,MAAOA,EACPQ,SAAUA,EACVrC,QAASA,EACTgC,SAAUA,EACVG,KAAMA,IAId,GACA,CAAC,QAAS,QACV,CACEnC,QAAS8C,EAAAA,MAGbC,EAAAA,EAAAA,GAAM,kCAEN,W,uDCtDIC,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,khBAAmhB,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,6CAA6C,MAAQ,GAAG,SAAW,0JAA0J,eAAiB,CAAC,wfAAwf,WAAa,MAE30C,K","sources":["webpack:///./react-antd/button/button.scss?8c5a","webpack:///./react-antd/button/index.js","webpack:///./react-antd/buttons-toggle-group/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","import React from 'react';\nimport Form from 'antd/lib/form';\n\nimport { I18N } from '../../components';\nimport { i18nOptions } from '../../helpers';\n\nimport Button from '../button';\nimport { ButtonsToggleGroup } from '../../common';\nimport { lfLog } from '../../helpers/lf-log';\n\nconst AntdButtonsToggleGroup = I18N(\n  ({\n    name,\n    label,\n    hint,\n    value,\n    tooltip = false,\n    disabled = false,\n    required = false,\n    size,\n    error,\n    onChange,\n    multiple,\n    options = []\n  }) => {\n    return (\n      <Form.Item\n        className=\"lf-control-button-toggle-group\"\n        data-lf-field-name={name}\n        label={label}\n        name={name}\n        help={error != null ? error : (hint && !tooltip ? hint : undefined)}\n        required={required}\n        tooltip={tooltip && hint}\n        hasFeedback={error != null}\n        validateStatus={error ? 'error': undefined}\n        >\n        <ButtonsToggleGroup\n          ButtonComponent={Button}\n          name={name}\n          multiple={multiple}\n          value={value}\n          onChange={onChange}\n          options={options}\n          disabled={disabled}\n          size={size}\n        />\n      </Form.Item>      \n    );\n  },\n  ['label', 'hint'],\n  {\n    options: i18nOptions\n  }\n);\nlfLog('Loaded AntD.ButtonsToggleGroup');\n\nexport default AntdButtonsToggleGroup;\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","AntdButtonsToggleGroup","name","value","_ref$tooltip","_ref$disabled","disabled","_ref$required","required","size","error","onChange","multiple","_ref$options","Form","help","hasFeedback","validateStatus","ButtonsToggleGroup","ButtonComponent","i18nOptions","lfLog","___CSS_LOADER_EXPORT___","push","module","id"],"sourceRoot":""}