webpackJsonp([22],{873:function(e,t,n){"use strict";function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n.n(i),s=n(0),c=n.n(s),f=n(126),l=n(853),p=n(16),u=n(127),v=n(856),d=n(57),m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g=c.a.createClass({displayName:"WidgetDialog",mixins:[u.b],propTypes:{settings:o.a.object,widgetInfo:o.a.object,onSave:o.a.func},save:function(){return this.form.save()},onSave:function(e,t){var n=t.name,r=a(t,["name"]);return this.props.onSave({name:n,widget:r}),Promise.resolve()},render:function(){var e=this,t=this.props,n=t.widgetInfo,i=t.location,o=t.settings,s=a(t,["widgetInfo","location","settings"]),u=n.formSettings,g=n.name,y=n.icon,h=[{key:"name",type:d.FieldTypes.STRING,default_value:g}];return u&&h.push.apply(h,r(u)),c.a.createElement(l.a,m({className:"home-widget",title:g,onApprove:this.save,icon:y,location:i},s),c.a.createElement(v.a,{ref:function(t){return e.form=t},value:o&&m({name:o.name},o.widget),fieldDefinitions:h,onSave:this.onSave}),c.a.createElement(f.a,{description:"Widgets and their positions are browser-specific",icon:p.a.INFO}))}});t.default=g}});
//# sourceMappingURL=home-children.f5ce13d684b2cdfe10af.chunk.js.map