!function e(t,s,o){function n(a,r){if(!s[a]){if(!t[a]){var l="function"==typeof require&&require;if(!r&&l)return l(a,!0);if(i)return i(a,!0);var p=new Error("Cannot find module '"+a+"'");throw p.code="MODULE_NOT_FOUND",p}var u=s[a]={exports:{}};t[a][0].call(u.exports,function(e){var s=t[a][1][e];return n(s?s:e)},u,u.exports,e,t,s,o)}return s[a].exports}for(var i="function"==typeof require&&require,a=0;an.bottom||o.top-1)return!1;if(this.props.filterOption)return this.props.filterOption.call(this,e,s);var t=String(e[this.props.valueKey]),n=String(e[this.props.labelKey]);return this.props.ignoreCase&&(t=t.toLowerCase(),n=n.toLowerCase(),s=s.toLowerCase()),s&&"start"!==this.props.matchPos?"label"!==this.props.matchProp&&t.indexOf(s)>=0||"value"!==this.props.matchProp&&n.indexOf(s)>=0:"label"!==this.props.matchProp&&t.substr(0,s.length)===s||"value"!==this.props.matchProp&&n.substr(0,s.length)===s};return(e||[]).filter(n,this)},selectFocusedOption:function(){return this.props.allowCreate&&!this.state.focusedOption?this.selectValue(this.state.inputValue):this.state.focusedOption?this.selectValue(this.state.focusedOption):void 0},focusOption:function(e){this.setState({focusedOption:e})},focusNextOption:function(){this.focusAdjacentOption("next")},focusPreviousOption:function(){this.focusAdjacentOption("previous")},focusAdjacentOption:function(e){this._focusedOptionReveal=!0;var t=this.state.filteredOptions.filter(function(e){return!e.disabled});if(!this.state.isOpen)return void this.setState({isOpen:!0,inputValue:"",focusedOption:this.state.focusedOption||t["next"===e?0:t.length-1]},this._bindCloseMenuIfClickedOutside);if(t.length){for(var s=-1,o=0;o-1&&s0?t[s-1]:t[t.length-1]),this.setState({focusedOption:n})}},unfocusOption:function(e){this.state.focusedOption===e&&this.setState({focusedOption:null})},buildMenu:function(){var e=this,t=this.state.focusedOption?this.state.focusedOption[this.props.valueKey]:null,s=this.props.optionRenderer;s||(s=function(t){return t[e.props.labelKey]}),this.state.filteredOptions.length>0&&(t=null==t?this.state.filteredOptions[0]:t);var o=this.state.filteredOptions;if(this.props.allowCreate&&this.state.inputValue.trim()){var i=this.state.inputValue;o=o.slice();var a=this.props.newOptionCreator?this.props.newOptionCreator(i):{value:i,label:i,create:!0};o.unshift(a)}var l=Object.keys(o).map(function(e){var i=o[e],a=this.state.value===i[this.props.valueKey],l=t===i[this.props.valueKey],p=r({"Select-option":!0,"is-selected":a,"is-focused":l,"is-disabled":i.disabled}),u=l?"focused":null,c=this.focusOption.bind(this,i),d=this.unfocusOption.bind(this,i),h=this.selectValue.bind(this,i),f=n.createElement(this.props.optionComponent,{key:"option-"+i[this.props.valueKey],className:p,renderFunc:s,mouseEnter:c,mouseLeave:d,mouseDown:h,click:h,addLabelText:this.props.addLabelText,option:i,ref:u});return f},this);if(l.length)return l;var p,u;return this.isLoading()?(u="Select-searching",p=this.props.searchingText):this.state.inputValue||!this.props.asyncOptions?(u="Select-noresults",p=this.props.noResultsText):(u="Select-search-prompt",p=this.props.searchPromptText),n.createElement("div",{className:u},p)},handleOptionLabelClick:function(e,t){this.props.onOptionLabelClick&&this.props.onOptionLabelClick(e,t)},isLoading:function(){return this.props.isLoading||this.state.isLoading},render:function(){var e=r("Select",this.props.className,{"Select--multi":this.props.multi,"is-searchable":this.props.searchable,"is-open":this.state.isOpen,"is-focused":this.state.isFocused,"is-loading":this.isLoading(),"is-disabled":this.props.disabled,"has-value":this.state.value}),t=[];if(this.props.multi&&this.state.values.forEach(function(e){var s=this.handleOptionLabelClick.bind(this,e),o=this.removeValue.bind(this,e),i=n.createElement(this.props.valueComponent,{key:e.value,option:e,renderer:this.props.valueRenderer,optionLabelClick:!!this.props.onOptionLabelClick,onOptionLabelClick:s,onRemove:o,disabled:this.props.disabled});t.push(i)},this),!(this.state.inputValue||this.props.multi&&t.length)){var s=this.state.values[0]||null;if(this.props.valueRenderer&&this.state.values.length)t.push(n.createElement(l,{key:0,option:s,renderer:this.props.valueRenderer,disabled:this.props.disabled}));else{var i=n.createElement(this.props.singleValueComponent,{key:"placeholder",value:s,placeholder:this.state.placeholder});t.push(i)}}var p,u,c=this.isLoading()?n.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},n.createElement("span",{className:"Select-loading"})):null,d=this.props.clearable&&this.state.value&&!this.props.disabled&&!this.isLoading()?n.createElement("span",{className:"Select-clear-zone",title:this.props.multi?this.props.clearAllText:this.props.clearValueText,"aria-label":this.props.multi?this.props.clearAllText:this.props.clearValueText,onMouseDown:this.clearValue,onTouchEnd:this.clearValue,onClick:this.clearValue},n.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"×"}})):null,h=n.createElement("span",{className:"Select-arrow-zone",onMouseDown:this.handleMouseDownOnArrow},n.createElement("span",{className:"Select-arrow",onMouseDown:this.handleMouseDownOnArrow}));this.state.isOpen&&(u={ref:"menu",className:"Select-menu",onMouseDown:this.handleMouseDownOnMenu},p=n.createElement("div",{ref:"selectMenuContainer",className:"Select-menu-outer"},n.createElement("div",u,this.buildMenu())));var f,m={ref:"input",className:"Select-input "+(this.props.inputProps.className||""),tabIndex:this.props.tabIndex||0,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};for(var g in this.props.inputProps)this.props.inputProps.hasOwnProperty(g)&&"className"!==g&&(m[g]=this.props.inputProps[g]);return this.props.disabled?this.props.multi&&this.state.values.length||(f=n.createElement("div",{className:"Select-input"}," ")):f=this.props.searchable?n.createElement(a,o({value:this.state.inputValue,onChange:this.handleInputChange,minWidth:"5"},m)):n.createElement("div",m," "),n.createElement("div",{ref:"wrapper",className:e},n.createElement("input",{type:"hidden",ref:"value",name:this.props.name,value:this.state.value,disabled:this.props.disabled}),n.createElement("div",{className:"Select-control",ref:"control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},t,f,c,d,h),p)}});t.exports=d},{"./Option":1,"./SingleValue":3,"./Value":4,classnames:"classnames",react:"react","react-dom":"react-dom","react-input-autosize":5}],3:[function(e,t,s){var o=e("react"),n=e("classnames"),i=o.createClass({displayName:"SingleValue",propTypes:{placeholder:o.PropTypes.string,value:o.PropTypes.object},render:function(){var e=n("Select-placeholder",this.props.value&&this.props.value.className);return o.createElement("div",{className:e,style:this.props.value&&this.props.value.style,title:this.props.value&&this.props.value.title},this.props.placeholder)}});t.exports=i},{classnames:"classnames",react:"react"}],4:[function(e,t,s){var o=e("react"),n=e("classnames"),i=o.createClass({displayName:"Value",propTypes:{disabled:o.PropTypes.bool,onOptionLabelClick:o.PropTypes.func,onRemove:o.PropTypes.func,option:o.PropTypes.object.isRequired,optionLabelClick:o.PropTypes.bool,renderer:o.PropTypes.func},blockEvent:function(e){e.stopPropagation()},handleOnRemove:function(e){this.props.disabled||this.props.onRemove(e)},render:function(){var e=this.props.option.label;return this.props.renderer&&(e=this.props.renderer(this.props.option)),this.props.onRemove||this.props.optionLabelClick?(this.props.optionLabelClick&&(e=o.createElement("a",{className:n("Select-item-label__a",this.props.option.className),onMouseDown:this.blockEvent,onTouchEnd:this.props.onOptionLabelClick,onClick:this.props.onOptionLabelClick,style:this.props.option.style,title:this.props.option.title},e)),o.createElement("div",{className:n("Select-item",this.props.option.className),style:this.props.option.style,title:this.props.option.title},o.createElement("span",{className:"Select-item-icon",onMouseDown:this.blockEvent,onClick:this.handleOnRemove,onTouchEnd:this.handleOnRemove},"×"),o.createElement("span",{className:"Select-item-label"},e))):o.createElement("div",{className:n("Select-value",this.props.option.className),style:this.props.option.style,title:this.props.option.title},e)}});t.exports=i},{classnames:"classnames",react:"react"}],5:[function(e,t,s){var o=Object.assign||function(e){for(var t=1;t/g,">"),t=this.props.style||{};t.display||(t.display="inline-block");var s=o({},this.props.inputStyle);s.width=this.state.inputWidth,s.boxSizing="content-box";var a=this.props.placeholder?n.createElement("div",{ref:"placeholderSizer",style:i},this.props.placeholder):null;return n.createElement("div",{className:this.props.className,style:t},n.createElement("input",o({},this.props,{ref:"input",className:this.props.inputClassName,style:s})),n.createElement("div",{ref:"sizer",style:i,dangerouslySetInnerHTML:{__html:e}}),a)}});t.exports=a},{react:"react"}],6:[function(e,t,s){function o(e){return e&&e.__esModule?e:{"default":e}}function n(){this.props.dbg&&console.log("Msg: Component mounted.")}function i(e){e.preventDefault(),this.props.dbg&&console.log("Msg: onClick. msg._read:",this.props.msg._read," msg._readByUser:",this.props.msg._readByUser),this.props.msg._readByUser||this.props.markAsRead(this.props.msg)}function a(e){e.preventDefault(),this.props.onClickReply(e,this.props.msg)}function r(){var e=this,t=this.props.msg,s=0,o="",n=null,i=null,a=null,r=[],l={borderTop:"1px solid #ddd",paddingTop:"10px"},p=(0,f["default"])({row:!0,message:!0,"message-read":!1});if(this.props.dbg&&console.log("Msg: render. msg:",t),"user"===t.toType?(o=" do ",n=u["default"].createElement("strong",null,t.to)):"group"===t.toType?(o=" do grupy ",n=u["default"].createElement("strong",null,t.to)):"everyone"===t.toType&&(o=" do ",n=u["default"].createElement("strong",null,"Wszystkich")),t._readByUser){var c=t.message.split("\n").map(function(e){return u["default"].createElement("div",{key:s++},e)});i=u["default"].createElement("div",{style:{marginBottom:"10px"}},c),a=u["default"].createElement("button",{className:"btn btn-xs btn-default",onClick:function(t){return e.handleClickReply(t)}},"odpisz")}else l.backgroundColor="#eee",i=u["default"].createElement("div",{style:{marginBottom:"10px",color:"#aaa",fontStyle:"italic",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},t.message),a=u["default"].createElement("button",{className:"btn btn-xs btn-default disabled",onClick:function(t){return e.handleClickReply(t)}},"odpisz");return t._readByUser?t._readDate?(r.push(u["default"].createElement("em",{key:"read_cofirmed",style:{display:"block"}},"przeczytana ",t._readDate)),t._readBy&&r.push(u["default"].createElement("em",{key:"read_by",style:{display:"block"}},"przez ",t._readBy))):t._read?r.push(u["default"].createElement("em",{key:"read_uncofirmed",style:{display:"block"}},"przeczytana")):r.push(u["default"].createElement("em",{key:"sent",style:{display:"block"}},"nieprzeczytana")):r.push(u["default"].createElement("em",{key:"unread",style:{display:"block"}},"nieprzeczytana")),u["default"].createElement("div",{className:p,"data-messageid":t.id,style:l,onClick:function(t){return e.handleClick(t)}},u["default"].createElement("div",{className:"col-md-1",style:{width:"60px"}},u["default"].createElement("a",{className:"user_avatar",href:"#",title:t.author},t.author.toUpperCase().substr(0,2))),u["default"].createElement("div",{className:"col-md-8"},u["default"].createElement("div",{style:{marginBottom:"10px"}},u["default"].createElement("strong",null,t.author),u["default"].createElement("span",{style:{margin:"0 4px"}},o),n,u["default"].createElement("span",{className:"pull-right"},u["default"].createElement("span",{style:{margin:"0 4px"}},t.created),a)),i),u["default"].createElement("div",{className:"col-md-3",style:{borderLeft:"1px dashed #ddd",textAlign:"right",color:"#ccc"}},r))}function l(e,t){return(0,d["default"])({},u["default"].Component.prototype,{props:e,context:t,state:m,componentDidMount:n,handleClick:i,handleClickReply:a,render:r})}Object.defineProperty(s,"__esModule",{value:!0});var p=e("react"),u=o(p),c=e("object-assign"),d=o(c),h=e("classnames"),f=o(h),m={someState:"Default state value."};s["default"]=l,t.exports=s["default"]},{classnames:"classnames","object-assign":"object-assign",react:"react"}],7:[function(e,t,s){function o(e){return e&&e.__esModule?e:{"default":e}}function n(){if(this.props.dbg&&console.log("MsgReply: Component mounted."),this.props.replyToMsg){var e=this.props.replyToMsg.id,t=document.getElementById("msgReplyTo"+e),s=t?t.offsetTop:0;s>0&&window.scroll(window.scrollX,s)}}function i(e,t){var s=this.state,o=this.props,n=!0;return s.to!=t.to&&(n=!1,this.props.dbg&&console.log("MsgReply: nextState",t,"state",this.state),Object.keys(s).forEach(function(e){"to"!=e&&s[e]!=t[e]&&(n=!0)}),Object.keys(o).forEach(function(t){o[t]!=e[t]&&(n=!0)})),n}function a(e){var t=this,s={isLoadingSaveResult:!1},o=this.props.dbg,n={message:this.state.message,to:this.state.to,toType:this.state.toType,idReplyTo:this.props.replyToMsg.id};e.preventDefault();var i=[];if(this.state.to||i.push("Proszę wybrać adresata wiadomości"),this.state.message?this.state.message.length<3&&i.push("Wiadomość jest za krótka"):i.push("Proszę wprowadzić treść wiadomości"),i.length>0)return void this.setState({errorMsgs:i});var a=function(e,n){if(e)throw e;var i={},a=t.state.errorMsgs;"success"===n.type?(i.successMsg=n.msg||"Wysłano wiadomość",n.record&&t.props.addMessage(n.record)):(a.push(n.msg||"Wystąpiły błędy"),i.errorMsgs=a);for(var r in s)s.hasOwnProperty(r)&&(i[r]=s[r]);o&&console.log("MsgReply: saveReplyResponseHandler setState",i),t.setState(i)};this.setState({isLoadingSaveResult:!0,errorMsgs:[]}),this.props.onSendReply(n,a)}function r(e){e.preventDefault(),this.props.onCancel(e)}function l(e){this.props.dbg&&console.log("MsgReply: TODO: handleChangeMsg",e.target.value),this.setState({message:e.target.value,errorMsgs:[]})}function p(e){this.props.dbg&&console.log("MsgReply: TODO: handleChangeToType",e.target.value),this.setState({toType:e.target.value,to:"",errorMsgs:[]})}function u(e){this.props.dbg&&console.log("MsgReply: TODO: handleChangeTo",e.target.value),this.setState({to:e.target.value,errorMsgs:[]})}function c(){var e=this,t=this.props.replyToMsg,s=this.props.dbg,o=this.props.usrLogin,n=this.state.toType,i=null,a=null,r=null,l=function(e,t){s&&console.log("MsgReply: this_handleChangeTo: val("+e+") objects("+t.length+"):",t),this.setState({to:e})}.bind(this),p=null,u=null;if(s&&console.log("MsgReply: render:1 ... {toType:"+n+"}"),this.state.errorMsgs.length>0){var c=0;p=this.state.errorMsgs.map(function(e){return f["default"].createElement("div",{key:"errorMsg"+c++,className:"alert alert-danger"},e)})}if(this.state.successMsg)return f["default"].createElement("div",{className:"row",style:{marginTop:"15px",paddingTop:"10px",borderTop:"1px solid #ddd"}},f["default"].createElement("div",{className:"col-md-8",style:{marginLeft:"60px"}},f["default"].createElement("div",{className:"alert alert-success"},this.state.successMsg)));if(u=this.state.isLoadingSaveResult?f["default"].createElement("button",{className:"btn btn-md btn-primary",onClick:function(t){return e.handleClickSend(t)}},"Wyślij ..."):f["default"].createElement("button",{className:"btn btn-md btn-primary",onClick:function(t){return e.handleClickSend(t)}},"Wyślij"),"everyone"==n)i=f["default"].createElement("input",{type:"text",className:"form-control",disabled:"disabled"});else if("user"==n){var d=function(e,t){var o=this.state._userTimerId;s&&console.log("MsgReply: getOptions("+e+"):1 (_userTimerId:"+o+") ..."),o&&(s&&console.log("MsgReply: getOptions("+e+"):2 (_userTimerId:"+o+") clear _userTimerId"),clearTimeout(o),this.state._userTimerId=!0);var n=this.props.fetchOptionsForUser;o=setTimeout(function(){n(e,t),o=null},400),this.state._userTimerId=o}.bind(this);s&&console.log("MsgReply: render:2 (_userTimerId) ..."),a=f["default"].createElement(v["default"],{name:"replyToUser",value:this.state.to,placeholder:"Użytkownik...",onChange:l,allowCreate:!1,multi:!1,autoload:!0,asyncOptions:d,cacheAsyncResults:!1})}else if("group"==n){var h=function(e,t){var o=this.state._groupTimerId;s&&console.log("MsgReply: getOptions("+e+"):1 (_groupTimerId:"+o+") ..."),o&&(s&&console.log("MsgReply: getOptions("+e+"):2 (_groupTimerId:"+o+") clear _groupTimerId"),clearTimeout(o),this.state._groupTimerId=null);var n=this.props.fetchOptionsForGroup;o=setTimeout(function(){n(e,t),o=null},400),this.state._groupTimerId=o}.bind(this);s&&console.log("MsgReply: render:2 (_groupTimerId) ..."),r=f["default"].createElement(v["default"],{name:"replyToGroup",value:this.state.to,placeholder:"Grupa...",onChange:l,allowCreate:!1,multi:!1,autoload:!0,asyncOptions:h,cacheAsyncResults:!1})}return f["default"].createElement("div",{className:"row",style:{overflow:"visible",borderTop:"1px solid #ddd",paddingTop:"10px"},id:"msgReplyTo"+t.id},f["default"].createElement("div",{className:"col-md-1"},f["default"].createElement("a",{className:"user_avatar",href:"#",title:o},o.toUpperCase().substr(0,2))),f["default"].createElement("div",{className:"col-md-8",style:{overflow:"visible"}},f["default"].createElement("div",{style:{minHeight:"40px"}},f["default"].createElement("div",{className:"row"},f["default"].createElement("label",{className:"col-sm-1 control-label",style:{lineHeight:"32px"}},"Do:"),f["default"].createElement("div",{className:"col-sm-3"},f["default"].createElement("select",{name:"to_type",className:"form-control",onChange:function(t){return e.handleChangeToType(t)},value:this.state.toType},f["default"].createElement("option",{value:"everyone"},"Wszyscy"),f["default"].createElement("option",{value:"user"},"Użytkownik"),f["default"].createElement("option",{value:"group"},"Grupa"))),f["default"].createElement("div",{className:"col-sm-8",style:{display:"everyone"==n?"block":"none"}},i),f["default"].createElement("div",{className:"col-sm-8",style:{display:"user"==n?"block":"none"}},a),f["default"].createElement("div",{className:"col-sm-8",style:{display:"group"==n?"block":"none"}},r))),f["default"].createElement("div",{className:"row"},f["default"].createElement("div",{className:"col-sm-12", style:{marginBottom:"5px"}},f["default"].createElement("textarea",{className:"form-control",onChange:function(t){return e.handleChangeMsg(t)},value:this.state.message}))),f["default"].createElement("div",{className:"row"},f["default"].createElement("div",{className:"col-sm-12",style:{marginBottom:"5px"}},p)),u,f["default"].createElement("button",{className:"pull-right btn btn-md btn-default",onClick:function(t){return e.handleClickCancel(t)}},"Anuluj")))}function d(e,t){var s=e.replyToMsg;return s&&s.author&&(b.toType="user",b.to=s.author),(0,g["default"])({},f["default"].Component.prototype,{props:e,context:t,state:b,componentDidMount:n,shouldComponentUpdate:i,handleClickSend:a,handleClickCancel:r,handleChangeMsg:l,handleChangeToType:p,handleChangeTo:u,render:c})}Object.defineProperty(s,"__esModule",{value:!0});var h=e("react"),f=o(h),m=e("object-assign"),g=o(m),y=e("react-select"),v=o(y),b={_groupTimerId:null,_userTimerId:null,message:"",to:"",toType:"user",errorMsgs:[],successMsg:"",isLoadingSaveResult:!1};s["default"]=d,t.exports=s["default"]},{"object-assign":"object-assign",react:"react","react-select":2}],8:[function(e,t,s){function o(e){return e&&e.__esModule?e:{"default":e}}function n(){var e=this.props.dbg||this.state.dbg;this.setState({msgs:this.props.msgs,dbg:e}),e&&console.log("MsgThread: Component Will Mount. this.props.msgs",this.props.msgs)}function i(){this.state.dbg&&console.log("MsgThread: Component Did Mount."),this.fetchMoreMsgs()}function a(){var e=this,t={isLoadingMsgs:!1},s={idLastMsg:0},o=this.state.msgs;o.length>0&&(s.idLastMsg=o[o.length-1].id);var n=function(s,o){if(s)throw s;var n={};o.msgs&&o.msgs.length>0&&(n.msgs=e.state.msgs,o.msgs.forEach(function(e){n.msgs.push(e)}));for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);e.state.dbg&&console.log("MsgThread: fetchMsgsResponseHandler setState",n),e.setState(n)};this.setState({isLoadingMsgs:!0}),this.props.fetchMessages(s,n)}function r(e,t){e.preventDefault(),this.state.dbg&&console.log("MsgThread: Clicked reply msg:",t),t&&this.setState({replyToMsg:t})}function l(e){e.preventDefault(),this.setState({replyToMsg:null})}function p(e){var t=this,s=e.id,o=this.state.msgs;this.state.dbg&&console.log("MsgThread: markAsRead message...",e),o.forEach(function(e,t){s==e.id&&(o[t]._read=!0,o[t]._readByUser=!0)});var n=function(e,s){var o=t.state.msgs,n={msgs:o},i=s&&s.type&&"success"===s.type&&s.record;if(t.state.dbg&&console.log("MsgThread: markAsReadResponseHandler. data",s),e)throw e;i?(o.forEach(function(e,t){s.record.id==e.id&&(o[t]._read=!0,s.record._readDate&&(o[t]._readDate=s.record._readDate),s.record._readBy&&(o[t]._readBy=s.record._readBy),s.record._readByUser&&(o[t]._readByUser=s.record._readByUser))}),t.state.dbg&&console.log("MsgThread: markAsReadResponseHandler. setState newState:",n),t.setState(n)):t.state.dbg&&console.log("MsgThread: markAsReadResponseHandler. nothing to change - error?")};this.setState({msgs:o}),this.props.markAsRead(s,n)}function u(e){var t=this.state.msgs;t.push(e),this.setState({msgs:t})}function c(){var e=this,t=this.props.usrLogin,s=this.state.msgs,o=this.state.dbg;this.state.dbg&&console.log("MsgThread::render:1 ... state:",this.state);var n=function(e,t){this.handleClickReply(e,t)}.bind(this),i=function(e){this.markAsRead(e)}.bind(this),a=s.map(function(e){return f["default"].createElement(b["default"],{msg:e,key:e.id,dbg:o,markAsRead:i,onClickReply:n})}),r=null;if(this.state.replyToMsg){var l=this.state.replyToMsg,p=this.props.fetchOptionsForGroup,u=this.props.fetchOptionsForUser;this.state.dbg&&console.log("MsgThread::render: state.replyToMsg:",l),r=f["default"].createElement(O["default"],{usrLogin:t,replyToMsg:l,dbg:o,key:"replyTo"+l.id,fetchOptionsForGroup:p,fetchOptionsForUser:u,onCancel:function(t){return e.handleCancelReply(t)},addMessage:function(t){return e.addMessage(t)},onSendReply:this.props.saveReply})}return f["default"].createElement("div",{className:"container-fluid"},a,r)}function d(e,t){return(0,g["default"])({},f["default"].Component.prototype,{props:e,context:t,state:C,componentWillMount:n,componentDidMount:i,handleClickReply:r,handleCancelReply:l,addMessage:u,fetchMoreMsgs:a,markAsRead:p,render:c})}Object.defineProperty(s,"__esModule",{value:!0});var h=e("react"),f=o(h),m=e("object-assign"),g=o(m),y=e("classnames"),v=(o(y),e("./Msg.jsx")),b=o(v),T=e("./MsgReply.jsx"),O=o(T),C={replyToMsg:null,msgs:[],isLoadingMsgs:!1,dbg:!1};s["default"]=d,t.exports=s["default"]},{"./Msg.jsx":6,"./MsgReply.jsx":7,classnames:"classnames","object-assign":"object-assign",react:"react"}],9:[function(e,t,s){function o(e){return e&&e.__esModule?e:{"default":e}}var n=e("react"),i=o(n),a=e("react-dom"),r=o(a),l=e("./MsgThread"),p=o(l);!function(e){function t(){var t={},s={},o={},n={usrLogin:void 0,idThread:void 0,msgs:[],fetchMessages:void 0,fetchOptionsForGroup:void 0,fetchOptionsForUser:void 0,saveReply:void 0,markAsRead:void 0,dbg:!1};return s.options={},s.init=function(){o.reactNode=r["default"].render(i["default"].createElement(p["default"],{usrLogin:s.options.usrLogin,idThread:s.options.idThread,msgs:s.options.msgs,fetchMessages:s.options.fetchMessages,fetchOptionsForGroup:s.options.fetchOptionsForGroup,fetchOptionsForUser:s.options.fetchOptionsForUser,saveReply:s.options.saveReply,markAsRead:s.options.markAsRead,dbg:s.options.dbg}),s.options.rootNode),s.options.dbg&&console.log("MsgThread::priv.init _state:",o)},s.onChange=function(e,t){s.options.dbg&&console.log("MsgThread_priv_onChange: val:",e,"objects("+t.length+"):",t),jQuery(s.options.rootNode).trigger("change",{value:e,objects:t})},s.testMethod=function(e){var e=e||{};s.options.dbg&&console.log("MsgThread_priv_testMethod: args:",e)},t.run=function(e,t){if(s.options.dbg&&console.log('MsgThread_publ_run: typeof options === "'+typeof e+'"; options:',e),"string"==typeof e){var o=e;if(!s[o]||"function"!=typeof s[o])throw"Error method '"+o+"' not set!";s[o](t)}},t.init=function(o){return s.options.dbg&&console.log("MsgThread initialization...",o),e.extend(s.options,n,o),s.init(),t},t}if(!e||!e.fn)throw"Error: no jQuery!";e.fn.MsgThread=function(s,o){return s=s||{},o=o||{},this.each(function(){var n=e(this).data("MsgThread");n?n.run(s,o):(s.rootNode=this,e(this).data("MsgThread",(new t).init(s)))})}}(window.jQuery)},{"./MsgThread":8,react:"react","react-dom":"react-dom"}]},{},[9]); //# sourceMappingURL=bundle.se_route_user_msgs.js.map