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,kBAAmB,CAAC,WAAY,YAAa,OAAQ,QAAS,SAAU,OAAQ,SAAU,QAAS,MAAO,cAIrG,CACT,CAwBA,OA7DA,UAAU,EAAe,GAuCzB,EAAc,UAAU,cAAgB,WACtC,IAAI,EAAe,CAAC,EASpB,OARK,KAAK,MAAM,cACd,EAAe,CACb,QAAS,OACT,WAAY,SACZ,eAAgB,SAChB,OAAQ,SAGL,QAAQ,QAAQ,cACrB,MACA,CAAE,UAAW,iBAAkB,MAAO,IACrC,KAAK,MAAM,aAAe,QAAQ,QAAQ,cACzC,OACA,KACA,uBAEF,KAAK,iBAET,EAEO,CACT,CA/DoB,CA+DlB,mBAAmB,SAErB,QAAQ,QAAU,cAClB,OAAO,QAAU,QAAiB","file":"/npm/flow-app-component-form@1.0.17/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/flow-app-component-form@1.0.17/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nexports.__esModule = true;\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _flowAppComponent = require('flow-app-component');\n\nvar _flowAppComponent2 = _interopRequireDefault(_flowAppComponent);\n\nrequire('./css/theme/default.css');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nvar FormComponent = function (_AppComponent) {\n  _inherits(FormComponent, _AppComponent);\n\n  function FormComponent() {\n    _classCallCheck(this, FormComponent);\n\n    var _this = _possibleConstructorReturn(this, _AppComponent.call(this));\n\n    var newState = {\n      properties: [{\n        categoryName: 'General',\n        categoryDescription: 'Basic settings for the form',\n        properties: []\n      }, {\n        categoryName: 'Events',\n        categoryDescription: 'Events for the form',\n        properties: [{\n          id: 'event',\n          name: 'Events',\n          type: 'graph',\n          options: {},\n          data: null\n        }]\n      }],\n      iconUrl: '/assets/images/form-component.png',\n      name: 'Form',\n      type: 'ui-component',\n      componentType: 'form',\n      category: 'Inputs',\n      parent: null,\n      showOnComponentsPanel: true,\n      isValuable: true,\n      allowsChildren: true,\n      allowedChildTypes: ['checkbox', 'container', 'link', 'input', 'search', 'text', 'loader', 'radio', 'map', 'dropdown']\n    };\n\n    _this.state = Object.assign(_this.state, newState); // merge two states together, and dont lose any parent state properties.\n    return _this;\n  }\n\n  FormComponent.prototype.renderContent = function renderContent() {\n    var customStyles = {};\n    if (!this.props.hasChildren) {\n      customStyles = {\n        display: 'flex',\n        alignItems: 'center',\n        justifyContent: 'center',\n        height: '70px'\n      };\n    }\n    return _react2.default.createElement(\n      'div',\n      { className: 'form-container', style: customStyles },\n      !this.props.hasChildren && _react2.default.createElement(\n        'span',\n        null,\n        'Drag fields in here'\n      ),\n      this.renderChildren()\n    );\n  };\n\n  return FormComponent;\n}(_flowAppComponent2.default);\n\nexports.default = FormComponent;\nmodule.exports = exports['default'];"]}