{"version":3,"sources":["components/SupplierIntegration/FormView.jsx","containers/SupplierIntegration/FormView.js"],"names":["FormView","React","constructor","props","_this","super","this","state","getItemId","_this$state$item","_this$props$linkTarge","item","id","linkTargetRecord","supplierIntegrationId","find","Boolean","fetchItem","async","itemId","arguments","length","undefined","_this$props$linkTarge2","_image$value","_image$value2","responses","Promise","all","getItem","concat","isFromMaster","catch","error","_this$props$onCancel","_this$props","onCancel","call","resourceNotFound","newItem","getSettings","type","settingsType","cloneDeep","value","data","image","getDocumentContents","request","domainObjectId","domainObjectType","documentType","documentName","logoFile","name","resolve","setState","fieldSettings","imageOriginal","showError","saveItem","Error","saved","updateItem","createItem","saveImage","setItemValue","produce","draft","set","form","setFieldsValue","handleFileUpload","fileList","contents","fileContents","fileType","fileUploadDrawerVisible","handleSubmit","createHandleSubmit","createSaveImage","componentDidMount","render","_jsx","_Spin","createLabel","createLabelFactory","createFieldDecorator","createFieldFactory","readOnly","isReadOnly","_jsxs","_Fragment","children","_Form","layout","colon","onSubmit","stopEvent","className","ValidationError","errors","validationErrors","Row","Col","Item","label","_Input","autoFocus","Select","onChange","allowClear","Object","entries","getSupplierIntegrationFormOptions","customer","generalSettings","enableExternalItemStatusRequest","map","_ref","key","Option","t","md","xs","Password","TextArea","rows","supplierIntegrationType","InputImage","onUpload","onDelete","_Tooltip","title","_Button","onClick","FormButtons","saveButtonLoading","saveAndCloseButtonLoading","Drawer","size","visible","onClose","FileUpload","accept","create","connect","mapStateToProps","createAuthStateToProps","mapDispatchToProps","dispatch","params","actions","createDocumentsDispatchToProps","documentActions","Component"],"mappings":"gZAsBA,MAAMA,UAAiBC,YAGrBC,YAAYC,GAAQ,IAADC,EACjBC,MAAMF,GAAMC,EAAAE,KAAA,KAHdC,MAAQ,CAAC,EAAC,KAaVC,UAAY,SAAAC,EAAAC,EAAA,MAAM,CAAgB,QAAhBD,EAACH,KAAKC,MAAMI,YAAI,IAAAF,OAAA,EAAfA,EAAiBG,GAA+B,QAA7BF,EAAEJ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wBN,SACpCJ,EACCN,cAAAiD,IAAA,CAASC,MAAOX,YAAE,0BAA0B7B,SAC1CV,cAAAmD,IAAA,CAAQC,QAASjI,KAAKH,MAAMiC,SAASyD,SAAE6B,YAAE,aAG3CvC,cAACqD,IAAW,CACV/C,SAAUA,EACVrD,SAAU9B,KAAKH,MAAMiC,SACrB6D,SAAU3F,KAAKwE,aACf2D,kBAAmBnI,KAAKC,MAAMkI,kBAC9BC,0BAA2BpI,KAAKC,MAAMmI,iCAK9CvD,cAACwD,IAAM,CACLN,MAAOX,YAAE,cACTkB,KAAK,KACLC,QAASvI,KAAKC,MAAMsE,wBACpBiE,QAASA,IAAMxI,KAAKkD,SAAS,CAAEqB,yBAAyB,IAASgB,SAEjEV,cAAC4D,IAAU,CACTC,OAAO,sDACPd,SAAU5H,KAAKkE,iBACfpC,SAAUA,IAAM9B,KAAKkD,SAAS,CAAEqB,yBAAyB,UAKnE,EAGaiB,UAAKmD,QAALnD,CAAc9F,GCtOdkJ,uBAXSC,CAAC5I,EAAOJ,KAAK,IAAWiJ,YAAuB7I,EAAOJ,OAEnDkJ,CAACC,EAAUnJ,KAAK,CACzCoC,QAAUgH,GAAWD,EAASE,IAAQjH,QAAQgH,IAC9C1H,QAAUV,GAAWmI,EAASE,IAAQ3H,QAAQV,IAC9C6C,WAAauF,GAAWD,EAASE,IAAQxF,WAAWuF,IACpDxF,WAAawF,GAAWD,EAASE,IAAQzF,WAAWwF,IACpD/G,YAAc+G,GAAWD,EAASE,IAAQhH,YAAY+G,OACnDE,YAA+BH,EAAUI,QAG/BR,CAA6CS,E","file":"static/js/58.b3064ea9.chunk.js","sourcesContent":["import * as React from 'react'\r\nimport produce from 'immer'\r\nimport { Form, Input, Spin, Button, Tooltip } from 'antd'\r\nimport { cloneDeep, set } from 'lodash'\r\nimport { showError, resourceNotFound, ValidationError } from 'helpers/errors'\r\nimport {\r\n  createLabelFactory,\r\n  createFieldFactory,\r\n  createHandleSubmit,\r\n  createSaveImage,\r\n  isReadOnly,\r\n} from 'helpers/formViews'\r\nimport { getSupplierIntegrationFormOptions } from 'helpers/supplierIntegration'\r\nimport { t } from 'helpers/i18n'\r\nimport { stopEvent } from 'helpers/events'\r\nimport FormButtons from 'elements/FormButtons'\r\nimport Select, { Option } from 'elements/Select'\r\nimport InputImage from 'elements/InputImage'\r\nimport Drawer from 'elements/Drawer'\r\nimport FileUpload from 'elements/FileUpload'\r\nimport { Row, Col } from 'elements/Grid'\r\n\r\nclass FormView extends React.Component {\r\n  state = {}\r\n\r\n  constructor(props) {\r\n    super(props)\r\n\r\n    this.handleSubmit = createHandleSubmit(this)\r\n    this.saveImage = createSaveImage(this, 'Supplier', 'ObjectImage')\r\n  }\r\n\r\n  componentDidMount() {\r\n    this.fetchItem()\r\n  }\r\n\r\n  getItemId = () => [this.state.item?.id, this.props.linkTargetRecord?.supplierIntegrationId].find(Boolean)\r\n\r\n  fetchItem = async ({ itemId = this.getItemId() } = {}) => {\r\n    try {\r\n      const responses = await Promise.all([\r\n        itemId\r\n          ? this.props\r\n              .getItem(`${itemId}?isFromMaster=${this.props.linkTargetRecord?.isFromMaster}`)\r\n              .catch((error) => {\r\n                this.props.onCancel?.()\r\n                throw error\r\n              })\r\n          : !this.props.linkTargetRecord\r\n            ? this.props.newItem({})\r\n            : resourceNotFound(this),\r\n        this.props.getSettings({ type: this.props.settingsType }),\r\n      ])\r\n\r\n      const item = cloneDeep(responses[0].value.data)\r\n\r\n      const [image] = await Promise.all([\r\n        item.id\r\n          ? this.props\r\n              .getDocumentContents({\r\n                request: {\r\n                  domainObjectId: item.id,\r\n                  domainObjectType: 'Supplier',\r\n                  documentType: item.isFromMaster ? 'CompanyLogo' : 'ObjectImage',\r\n                  documentName: item.isFromMaster ? item.logoFile : item.name,\r\n                },\r\n              })\r\n              .catch(() => {})\r\n          : Promise.resolve(null),\r\n      ])\r\n\r\n      this.setState({\r\n        item: responses[0].value.data,\r\n        fieldSettings: responses[1].value.data.fieldSettings,\r\n        image: image?.value?.data,\r\n        imageOriginal: image?.value?.data,\r\n      })\r\n    } catch (error) {\r\n      showError({ error })\r\n    }\r\n  }\r\n\r\n  saveItem = async (item) => {\r\n    if (!item) {\r\n      throw new Error('item is undefined')\r\n    }\r\n\r\n    const saved = item.id ? await this.props.updateItem(item) : await this.props.createItem(item)\r\n\r\n    await this.saveImage(saved.value.data.id, item.name)\r\n\r\n    return saved\r\n  }\r\n\r\n  setItemValue = (name, value) =>\r\n    this.setState(\r\n      produce((draft) => {\r\n        set(draft.item, name, value)\r\n\r\n        this.props.form.setFieldsValue({ [name]: value })\r\n      })\r\n    )\r\n\r\n  handleFileUpload = (fileList = []) => {\r\n    if (fileList[0]) {\r\n      this.setState({\r\n        image: {\r\n          contents: fileList[0].fileContents,\r\n          fileType: fileList[0].fileType,\r\n        },\r\n        fileUploadDrawerVisible: false,\r\n      })\r\n    } else {\r\n      this.setState({ fileUploadDrawerVisible: false })\r\n    }\r\n  }\r\n\r\n  render() {\r\n    const { item, fieldSettings } = this.state\r\n\r\n    if (!item || !fieldSettings) {\r\n      return <Spin />\r\n    }\r\n\r\n    const createLabel = createLabelFactory(fieldSettings)\r\n    const createFieldDecorator = createFieldFactory(this.props.form, item, fieldSettings)\r\n\r\n    const readOnly = isReadOnly(this) || item.isFromMaster\r\n\r\n    return (\r\n      <>\r\n        <Form layout=\"vertical\" colon={false} onSubmit={readOnly ? stopEvent : this.handleSubmit}>\r\n          <div className=\"form-items-container\">\r\n            <ValidationError errors={this.state.validationErrors} />\r\n            <Row>\r\n              <Col>\r\n                <Form.Item label={createLabel('name')}>\r\n                  {createFieldDecorator('name')(<Input readOnly={readOnly} autoFocus />)}\r\n                </Form.Item>\r\n                <Form.Item label={createLabel('supplierIntegrationType')}>\r\n                  {createFieldDecorator('supplierIntegrationType')(\r\n                    <Select\r\n                      onChange={(value) => this.setItemValue('supplierIntegrationType', value)}\r\n                      allowClear={false}\r\n                      readOnly={readOnly}\r\n                    >\r\n                      {Object.entries(\r\n                        getSupplierIntegrationFormOptions(\r\n                          this.props.customer.generalSettings.enableExternalItemStatusRequest\r\n                        )\r\n                      ).map(([key, value]) => (\r\n                        <Option key={key} value={key}>\r\n                          {t(value)}\r\n                        </Option>\r\n                      ))}\r\n                    </Select>\r\n                  )}\r\n                </Form.Item>\r\n                <Form.Item label={createLabel('url')}>\r\n                  {createFieldDecorator('url')(<Input type=\"url\" readOnly={readOnly} />)}\r\n                </Form.Item>\r\n              </Col>\r\n            </Row>\r\n            <Row>\r\n              <Col md={12} xs={24}>\r\n                <Form.Item label={createLabel('fromDomain')}>\r\n                  {createFieldDecorator('fromDomain')(<Input readOnly={readOnly} />)}\r\n                </Form.Item>\r\n                <Form.Item label={createLabel('domain')}>\r\n                  {createFieldDecorator('domain')(<Input readOnly={readOnly} />)}\r\n                </Form.Item>\r\n                <Form.Item label={createLabel('senderDomain')}>\r\n                  {createFieldDecorator('senderDomain')(<Input readOnly={readOnly} />)}\r\n                </Form.Item>\r\n              </Col>\r\n              <Col md={12} xs={24}>\r\n                <Form.Item label={createLabel('fromIdentity')}>\r\n                  {createFieldDecorator('fromIdentity')(<Input readOnly={readOnly} />)}\r\n                </Form.Item>\r\n                <Form.Item label={createLabel('identity')}>\r\n                  {createFieldDecorator('identity')(<Input readOnly={readOnly} />)}\r\n                </Form.Item>\r\n                <Form.Item label={createLabel('senderIdentity')}>\r\n                  {createFieldDecorator('senderIdentity')(<Input readOnly={readOnly} />)}\r\n                </Form.Item>\r\n              </Col>\r\n            </Row>\r\n            <Row>\r\n              <Col md={12} xs={24}>\r\n                <Form.Item label={createLabel('sharedSecret')}>\r\n                  {createFieldDecorator('sharedSecret')(<Input.Password readOnly={readOnly} />)}\r\n                </Form.Item>\r\n              </Col>\r\n            </Row>\r\n            <Row>\r\n              <Col>\r\n                <Form.Item label={createLabel('description')}>\r\n                  {createFieldDecorator('description')(<Input.TextArea rows={3} readOnly={readOnly} />)}\r\n                </Form.Item>\r\n              </Col>\r\n            </Row>\r\n            {item.supplierIntegrationType === 'PunchoutRecipient' && (\r\n              <Row>\r\n                <Col md={12} xs={24}>\r\n                  <InputImage\r\n                    label={t('logo')}\r\n                    onUpload={() => this.setState({ fileUploadDrawerVisible: true })}\r\n                    onDelete={() => this.setState({ image: null })}\r\n                    value={this.state.image}\r\n                    readOnly={readOnly}\r\n                  />\r\n                </Col>\r\n              </Row>\r\n            )}\r\n          </div>\r\n          <div className=\"form-buttons-container\">\r\n            {readOnly ? (\r\n              <Tooltip title={t('cannotEditLegacyRecord')}>\r\n                <Button onClick={this.props.onCancel}>{t('close')}</Button>\r\n              </Tooltip>\r\n            ) : (\r\n              <FormButtons\r\n                readOnly={readOnly}\r\n                onCancel={this.props.onCancel}\r\n                onSubmit={this.handleSubmit}\r\n                saveButtonLoading={this.state.saveButtonLoading}\r\n                saveAndCloseButtonLoading={this.state.saveAndCloseButtonLoading}\r\n              />\r\n            )}\r\n          </div>\r\n        </Form>\r\n        <Drawer\r\n          title={t('selectFile')}\r\n          size=\"xs\"\r\n          visible={this.state.fileUploadDrawerVisible}\r\n          onClose={() => this.setState({ fileUploadDrawerVisible: false })}\r\n        >\r\n          <FileUpload\r\n            accept=\".jpg,.jpeg,.png,.gif,image/jpeg,image/png,image/gif\"\r\n            onUpload={this.handleFileUpload}\r\n            onCancel={() => this.setState({ fileUploadDrawerVisible: false })}\r\n          />\r\n        </Drawer>\r\n      </>\r\n    )\r\n  }\r\n}\r\n\r\nexport default Form.create()(FormView)\r\n","import { connect } from 'react-redux'\r\nimport { createAuthStateToProps } from 'helpers/auth'\r\nimport actions from 'actions/supplierIntegration'\r\nimport documentActions from 'actions/documents'\r\nimport { createDocumentsDispatchToProps } from 'helpers/formViews'\r\nimport Component from 'components/SupplierIntegration/FormView'\r\n\r\nconst mapStateToProps = (state, props) => ({ ...createAuthStateToProps(state, props) })\r\n\r\nconst mapDispatchToProps = (dispatch, props) => ({\r\n  newItem: (params) => dispatch(actions.newItem(params)),\r\n  getItem: (itemId) => dispatch(actions.getItem(itemId)),\r\n  createItem: (params) => dispatch(actions.createItem(params)),\r\n  updateItem: (params) => dispatch(actions.updateItem(params)),\r\n  getSettings: (params) => dispatch(actions.getSettings(params)),\r\n  ...createDocumentsDispatchToProps(dispatch, documentActions),\r\n})\r\n\r\nexport default connect(mapStateToProps, mapDispatchToProps)(Component)\r\n"],"sourceRoot":""}