webpackJsonp([29],{1039:function(e,t,a){"use strict";var n=a(0),i=a.n(n),o=a(785),r=a(870),s=a(731),l={download_auto_limits:s.a.Bool,download_slots:s.a.Positive,download_max_start_speed:s.a.Positive,download_highest_prio_slots:s.a.Positive},m=i.a.createClass({displayName:"DownloadLimitPage",mixins:[a.i(o.a)("auto-form")],render:function(){return i.a.createElement("div",null,i.a.createElement(r.a,{ref:"auto-form",formItems:l,type:"download"}))}});t["default"]=m},1040:function(e,t,a){"use strict";var n=a(0),i=a.n(n),o=a(788),r=a(785),s=a(731),l={upload_limit_main:s.a.Positive,download_limit_main:s.a.Positive},m=i.a.createClass({displayName:"LimiterPage",mixins:[a.i(r.a)("form")],render:function(){return i.a.createElement("div",null,i.a.createElement(o.a,{ref:"form",formItems:l}))}});t["default"]=m},1041:function(e,t,a){"use strict";var n=a(0),i=a.n(n),o=a(831),r=a(818),s=a(788),l=a(785),m=a(731),u=m.a.refinement(m.a.Str,function(e){return null!==e.match(/^\d+(\.)?(\d+)?$/)});u.getValidationErrorMessage=function(e,t,a){return"Please enter numeric speed"};var d={download_speed:u,upload_speed:u},c=i.a.createClass({displayName:"SpeedPage",mixins:[a.i(l.a)("form")],render:function(){return i.a.createElement("div",null,i.a.createElement("div",{className:"ui message"},"Please be as accurate as possible and set the ACTUAL speed of your connection. You may use an online tester, such as ",i.a.createElement(o.a,{url:r.a.SPEEDTEST_URL},"Speedtest.net"),", to test your speed."),i.a.createElement(s.a,{ref:"form",formItems:d}))}});t["default"]=c},1042:function(e,t,a){"use strict";var n=a(0),i=a.n(n),o=a(788),r=a(785),s=a(870),l=a(731),m={upload_auto_limits:l.a.Bool,upload_slots:l.a.Range(1),upload_auto_grant_speed:l.a.Positive,upload_max_granted:l.a.Positive},u={upload_minislot_size:l.a.maybe(l.a.Num),upload_minislot_ext:l.a.maybe(l.a.Str)},d=i.a.createClass({displayName:"UploadLimitPage",mixins:[a.i(r.a)("auto-form","manual-form")],render:function(){return i.a.createElement("div",null,i.a.createElement(s.a,{ref:"auto-form",formItems:m,type:"upload"}),i.a.createElement(o.a,{title:"Manually set",ref:"manual-form",formItems:u}))}});t["default"]=d},1043:function(e,t,a){"use strict";var n=a(0),i=a.n(n),o=a(785),r=a(870),s=a(731),l={mcn_auto_limits:s.a.Bool,mcn_down:s.a.Positive,mcn_up:s.a.Positive},m=i.a.createClass({displayName:"UserLimitPage",mixins:[a.i(o.a)("auto-form")],render:function(){return i.a.createElement("div",null,i.a.createElement(r.a,{ref:"auto-form",formItems:l,type:"mcn"}))}});t["default"]=m},870:function(e,t,a){"use strict";var n=a(0),i=a.n(n),o=a(788),r=a(785),s=a(10),l=a(305),m=i.a.createClass({displayName:"AutoValuePanel",mixins:[a.i(r.b)("form")],propTypes:{formItems:i.a.PropTypes.object.isRequired,type:i.a.PropTypes.string.isRequired},getAutoKey:function(){return this.props.type+"_auto_limits"},onFieldChanged:function(e,t,a){var n=this.getAutoKey();return e===n&&t[n]?s.a.post(l.a.ITEMS_INFO_URL,{keys:Object.keys(this.props.formItems).filter(function(e){return e!==n}),force_auto_values:!0}):null},onFieldSetting:function(e,t,a){a[this.getAutoKey()]&&e!==this.getAutoKey()&&(t.disabled=!0)},render:function(){return i.a.createElement("div",{className:"ui segment"},i.a.createElement(o.a,{ref:"form",formItems:this.props.formItems,onFieldChanged:this.onFieldChanged,onFieldSetting:this.onFieldSetting}))}});t.a=m}});
//# sourceMappingURL=settings-speed-limits-children.chunk.js.map