(self["webpackJsonp@lyrio/ui"]=self["webpackJsonp@lyrio/ui"]||[]).push([[1],{1725:function(e,t,n){"use strict";var a=n(2),r=n(11),c=n(47),i=n(38),o=n(8),s=n(58),l=n(12),u=n(54),p=n(5),b=(n(7),n(0)),d=n.n(b),f=n(117),O=n(85),j=n(30),h=n(116),v=n(6),y=n(174),g=n(618),m=n(99),P=n(155),C=function(e){function t(){for(var n,r=arguments.length,c=new Array(r),i=0;i<r;i++)c[i]=arguments[i];return(n=e.call.apply(e,[this].concat(c))||this).inputRef=Object(b.createRef)(),n.computeIcon=function(){var e=n.props,t=e.loading,a=e.icon;return Object(l.a)(a)?t?"spinner":void 0:a},n.computeTabIndex=function(){var e=n.props,t=e.disabled,a=e.tabIndex;return Object(l.a)(a)?t?-1:void 0:a},n.focus=function(){return n.inputRef.current.focus()},n.select=function(){return n.inputRef.current.select()},n.handleChange=function(e){var t=Object(s.a)(e,"target.value");Object(o.a)(n.props,"onChange",e,Object(a.a)({},n.props,{value:t}))},n.handleChildOverrides=function(e,t){return Object(a.a)({},t,e.props,{ref:function(t){Object(u.a)(e.ref,t),n.inputRef.current=t}})},n.partitionProps=function(){var e=n.props,r=e.disabled,c=e.type,i=n.computeTabIndex(),o=Object(f.a)(t,n.props),s=Object(O.c)(o),l=s[0],u=s[1];return[Object(a.a)({},l,{disabled:r,type:c,tabIndex:i,onChange:n.handleChange,ref:n.inputRef}),u]},n}return Object(r.a)(t,e),t.prototype.render=function(){var e=this,n=this.props,r=n.action,o=n.actionPosition,s=n.children,l=n.className,u=n.disabled,f=n.error,O=n.fluid,C=n.focus,I=n.icon,x=n.iconPosition,N=n.input,R=n.inverted,G=n.label,K=n.labelPosition,w=n.loading,E=n.size,T=n.transparent,k=n.type,z=Object(p.a)("ui",E,Object(j.a)(u,"disabled"),Object(j.a)(f,"error"),Object(j.a)(O,"fluid"),Object(j.a)(C,"focus"),Object(j.a)(R,"inverted"),Object(j.a)(w,"loading"),Object(j.a)(T,"transparent"),Object(j.e)(o,"action")||Object(j.a)(r,"action"),Object(j.e)(x,"icon")||Object(j.a)(I||w,"icon"),Object(j.e)(K,"labeled")||Object(j.a)(G,"labeled"),"input",l),A=Object(h.a)(t,this.props),J=this.partitionProps(),q=J[0],B=J[1];if(!v.a.isNil(s)){var D=Object(i.a)(b.Children.toArray(s),(function(t){return"input"!==t.type?t:Object(b.cloneElement)(t,e.handleChildOverrides(t,q))}));return d.a.createElement(A,Object(a.a)({},B,{className:z}),D)}var F=g.a.create(r,{autoGenerateKey:!1}),H=P.a.create(G,{defaultProps:{className:Object(p.a)("label",Object(c.a)(K,"corner")&&K)},autoGenerateKey:!1});return d.a.createElement(A,Object(a.a)({},B,{className:z}),"left"===o&&F,"right"!==K&&H,Object(y.c)(N||k,{defaultProps:q,autoGenerateKey:!1}),m.a.create(this.computeIcon(),{autoGenerateKey:!1}),"left"!==o&&F,"right"===K&&H)},t}(b.Component);C.handledProps=["action","actionPosition","as","children","className","disabled","error","fluid","focus","icon","iconPosition","input","inverted","label","labelPosition","loading","onChange","size","tabIndex","transparent","type"],C.propTypes={},C.defaultProps={type:"text"},C.create=Object(y.g)(C,(function(e){return{type:e}})),t.a=C}}]);
//# sourceMappingURL=1.bd2585c5.chunk.js.map