webpackJsonp([22],{752:function(e,t,r){"use strict";function o(e,t){var r={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r}var a=r(0),n=r.n(a),i=r(118),s=r(732),c=r(14),p=r(119),f=r(731),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},d=f.a.form.Form,g=n.a.createClass({displayName:"WidgetDialog",mixins:[p.b],propTypes:{settings:n.a.PropTypes.object,widgetInfo:n.a.PropTypes.object,onSave:n.a.PropTypes.func},save:function(){var e=this.refs.form.getValue();return e?(this.props.onSave(e),Promise.resolve()):Promise.reject()},render:function(){var e=this.props,t=e.widgetInfo,r=e.location,a=e.settings,p=o(e,["widgetInfo","location","settings"]),g=t.formSettings,m=t.name,u=t.icon,v=t.fieldOptions,w={name:f.a.Str};return g&&l(w,{widget:f.a.struct(g)}),n.a.createElement(s.a,l({className:"home-widget",title:m,onApprove:this.save,icon:u,location:r},p),n.a.createElement(d,{ref:"form",type:f.a.struct(w),value:a,options:{fields:{widget:{fields:v}}}}),n.a.createElement(i.a,{description:"Widgets and their positions are browser-specific",icon:c.a.INFO}))}});t["default"]=g}});
//# sourceMappingURL=home-children.chunk.js.map