text: self.scriptsLoaded = self.scriptsLoaded || {}; self.scriptProcessStart = self.scriptProcessStart || {}; self.scriptProcessStart['owa.6.js'] = (new Date()).getTime();(window.$wj=window.$wj||[]).push([[6],{3191:function(e,t,i){"use strict";i.d(t,"a",function(){return o});var o={auto:0,top:1,bottom:2,center:3}},4009:function(e,t,i){"use strict";i.d(t,"a",function(){return b});var o=i(0),s=i(1),r=i(476),n=i(332),a=i(222),h=i(725),l=i(196),d=i(358),c=i(192),p=i(286),g=i(3191),u=16,_=100,m=500,f=200,v=500,y={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},P=function(e){return e.getBoundingClientRect()},R=P,w=P,b=function(e){function t(t){var i=e.call(this,t)||this;return i._root=s.createRef(),i._surface=s.createRef(),i._onRenderPage=function(e,t){for(var r=i.props,n=r.onRenderCell,a=r.role,h=e.page,l=h.items,d=void 0===l?[]:l,c=h.startIndex,p=o.__rest(e,["page"]),g=void 0===a?"listitem":"presentation",u=[],_=0;_<d.length;_++){var m=c+_,f=d[_],v=i.props.getKey?i.props.getKey(f,m):f&&f.key;null==v&&(v=m),u.push(s.createElement("div",{role:g,className:"ms-List-cell",key:v,"data-list-index":m,"data-automationid":"ListCell"},n&&n(f,m,i.state.isScrolling)))}return s.createElement("div",o.__assign({},p),u)},Object(r.a)(i),i.state={pages:[],isScrolling:!1},i._async=new n.a(i),i._events=new a.a(i),i._estimatedPageHeight=0,i._totalEstimates=0,i._requiredWindowsAhead=0,i._requiredWindowsBehind=0,i._measureVersion=0,i._onAsyncScroll=i._async.debounce(i._onAsyncScroll,_,{leading:!1,maxWait:m}),i._onAsyncIdle=i._async.debounce(i._onAsyncIdle,f,{leading:!1}),i._onAsyncResize=i._async.debounce(i._onAsyncResize,u,{leading:!1}),i._onScrollingDone=i._async.debounce(i._onScrollingDone,v,{leading:!1}),i._cachedPageHeights={},i._estimatedPageHeight=0,i._focusedIndex=-1,i._pageCache={},i}return o.__extends(t,e),t.prototype.scrollToIndex=function(e,t,i){void 0===i&&(i=g.a.auto);for(var o=this.props.startIndex,s=o+this._getRenderCount(),r=this._allowedRect,n=0,a=1,h=o;h<s;h+=a){var l=this._getPageSpecification(h,r),d=l.height;if(a=l.itemCount,h<=e&&h+a>e){if(t&&this._scrollElement){for(var c=w(this._scrollElement),p={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+c.height},u=e-h,_=0;_<u;++_)n+=t(h+_);var m=n+t(e);switch(i){case g.a.top:return void(this._scrollElement.scrollTop=n);case g.a.bottom:return void(this._scrollElement.scrollTop=m-c.height);case g.a.center:return void(this._scrollElement.scrollTop=(n+m-c.height)/2);case g.a.auto:}if(n>=p.top&&m<=p.bottom)return;n<p.top||m>p.bottom&&(n=m-c.height)}return void(this._scrollElement.scrollTop=n)}n+=d}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,i=this.state.pages||[];t<i.length;t++){var o=i[t];if(!o.isSpacer&&(this._scrollTop||0)>=o.top&&(this._scrollTop||0)<=o.top+o.height){if(!e){var s=Math.floor(o.height/o.itemCount);return o.startIndex+Math.floor((this._scrollTop-o.top)/s)}for(var r=0,n=o.startIndex;n<o.startIndex+o.itemCount;n++){s=e(n);if(o.top+r<=this._scrollTop&&this._scrollTop<o.top+r+s)return n;r+=s}}}return 0},t.prototype.componentDidMount=function(){this._updatePages(),this._measureVersion++,this._scrollElement=Object(h.e)(this._root.current),this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentWillReceiveProps=function(e){e.items===this.props.items&&e.renderCount===this.props.renderCount&&e.startIndex===this.props.startIndex||(this._resetRequiredWindows(),this._requiredRect=null,this._measureVersion++,this._invalidatePageCache(),this._updatePages(e))},t.prototype.shouldComponentUpdate=function(e,t){var i=this.state.pages,o=t.pages,s=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.items===this.props.items&&i.length===o.length)for(var r=0;r<i.length;r++){var n=i[r],a=o[r];if(n.key!==a.key||n.itemCount!==a.itemCount){s=!0;break}}else s=!0;return s},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,!0),this._updatePages(),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,i=e.role,r=void 0===i?"list":i,n=this.state.pages,a=void 0===n?[]:n,h=[],c=Object(l.j)(this.props,l.h),p=0,g=a;p<g.length;p++){var u=g[p];h.push(this._renderPage(u))}return s.createElement("div",o.__assign({ref:this._root},c,{role:h.length>0?r:void 0,className:Object(d.a)("ms-List",t)}),s.createElement("div",{ref:this._surface,className:"ms-List-surface",role:"presentation"},h))},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,i=this.props.usePageCache;if(i&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),s=this.props.onRenderPage,r=(void 0===s?this._onRenderPage:s)({page:e,className:"ms-List-page",key:e.key,ref:e.key,style:o,role:"presentation"},this._onRenderPage);return i&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:r}),r},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return o.__assign({},t?t(e):{},e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var i=t.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}t=Object(c.a)(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this._updatePages()},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,i=e.renderedWindowsBehind,o=this._requiredWindowsAhead,s=this._requiredWindowsBehind,r=Math.min(t,o+1),n=Math.min(i,s+1);r===o&&n===s||(this._requiredWindowsAhead=r,this._requiredWindowsBehind=n,this._updateRenderRects(),this._updatePages()),(t>r||i>n)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e){var t=this;void 0===e&&(e=this.props),this._requiredRect||this._updateRenderRects(e);var i=this._buildPages(e),o=this.state.pages;this._notifyPageChanges(o,i.pages),this.setState(i,function(){e.getPageHeight?t._onAsyncIdle():t._updatePageMeasurements(i.pages)?(t._materializedRect=null,t._hasCompletedFirstRender?t._onAsyncScroll():(t._hasCompletedFirstRender=!0,t._updatePages(e))):t._onAsyncIdle();e.onPagesUpdated&&e.onPagesUpdated(t.state.pages)})},t.prototype._notifyPageChanges=function(e,t,i){void 0===i&&(i=this.props);var o=i.onPageAdded,s=i.onPageRemoved;if(o||s){for(var r={},n=0,a=e;n<a.length;n++){(d=a[n]).items&&(r[d.startIndex]=d)}for(var h=0,l=t;h<l.length;h++){var d;(d=l[h]).items&&(r[d.startIndex]?delete r[d.startIndex]:this._onPageAdded(d))}for(var c in r)r.hasOwnProperty(c)&&this._onPageRemoved(r[c])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var i=0;i<e.length;i++){var o=e[i];o.items&&(t=this._measurePage(o)||t)}return t},t.prototype._measurePage=function(e){var t=!1,i=this.refs[e.key],o=this._cachedPageHeights[e.startIndex];if(i&&this._shouldVirtualize()&&(!o||o.measureVersion!==this._measureVersion)){var s={width:i.clientWidth,height:i.clientHeight};(s.height||s.width)&&(t=e.height!==s.height,e.height=s.height,this._cachedPageHeights[e.startIndex]={height:s.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+s.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e){var t=e.renderCount,i=e.items,s=e.startIndex,r=e.getPageHeight;t=this._getRenderCount(e);for(var n=o.__assign({},y),a=[],h=1,l=0,d=null,c=this._focusedIndex,g=s+t,u=this._shouldVirtualize(e),_=0===this._estimatedPageHeight&&!r,m=this._allowedRect,f=function(e){var t=v._getPageSpecification(e,m),o=t.height,r=t.data,f=t.key;h=t.itemCount;var y,P,R=l+o-1,w=Object(p.e)(v.state.pages,function(t){return!!t.items&&t.startIndex===e})>-1,b=!m||R>=m.top&&l<=m.bottom,C=!v._requiredRect||R>=v._requiredRect.top&&l<=v._requiredRect.bottom;if(!_&&(C||b&&w)||!u||c>=e&&c<e+h||e===s){d&&(a.push(d),d=null);var I=Math.min(h,g-e),S=v._createPage(f,i.slice(e,e+I),e,void 0,void 0,r);S.top=l,S.height=o,v._visibleRect&&v._visibleRect.bottom&&(S.isVisible=R>=v._visibleRect.top&&l<=v._visibleRect.bottom),a.push(S),C&&v._allowedRect&&(y=n,P={top:l,bottom:R,height:o,left:m.left,right:m.right,width:m.width},y.top=P.top<y.top||-1===y.top?P.top:y.top,y.left=P.left<y.left||-1===y.left?P.left:y.left,y.bottom=P.bottom>y.bottom||-1===y.bottom?P.bottom:y.bottom,y.right=P.right>y.right||-1===y.right?P.right:y.right,y.width=y.right-y.left+1,y.height=y.bottom-y.top+1)}else d||(d=v._createPage("spacer-"+e,void 0,e,0,void 0,r,!0)),d.height=(d.height||0)+(R-l)+1,d.itemCount+=h;if(l+=R-l+1,_&&u)return"break"},v=this,P=s;P<g;P+=h){if("break"===f(P))break}return d&&(d.key="spacer-end",a.push(d)),this._materializedRect=n,{pages:a,measureVersion:this._measureVersion}},t.prototype._getPageSpecification=function(e,t){var i=this.props.getPageSpecification;if(i){var o=i(e,t),s=o.itemCount,r=void 0===s?this._getItemCountForPage(e,t):s,n=o.height;return{itemCount:r,height:void 0===n?this._getPageHeight(e,t,r):n,data:o.data,key:o.key}}return{itemCount:r=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,r)}},t.prototype._getPageHeight=function(e,t,i){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,i);var o=this._cachedPageHeights[e];return o?o.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var i=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return i||10},t.prototype._createPage=function(e,t,i,o,s,r,n){void 0===i&&(i=-1),void 0===o&&(o=t?t.length:0),void 0===s&&(s={}),e=e||"page-"+i;var a=this._pageCache[e];return a&&a.page?a.page:{key:e,startIndex:i,itemCount:o,items:t,style:s,top:0,height:0,data:r,isSpacer:n||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,i=t.items,o=t.startIndex,s=t.renderCount;return void 0===s?i?i.length-o:0:s},t.prototype._updateRenderRects=function(e,t){var i=(e=e||this.props).renderedWindowsAhead,s=e.renderedWindowsBehind,r=this.state.pages;if(this._shouldVirtualize(e)){var n=this._surfaceRect||o.__assign({},y),a=this._scrollElement&&this._scrollElement.scrollHeight,h=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(t||!r||!this._surfaceRect||!a||a!==this._scrollHeight||Math.abs(this._scrollTop-h)>this._estimatedPageHeight/3)&&(n=this._surfaceRect=R(this._surface.current),this._scrollTop=h),!t&&a&&a===this._scrollHeight||this._measureVersion++,this._scrollHeight=a;var l=Math.max(0,-n.top),d={top:l,left:n.left,bottom:l+window.innerHeight,right:n.right,width:n.width,height:window.innerHeight};this._requiredRect=C(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=C(d,s,i),this._visibleRect=d}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,i){return s.createElement(s.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function C(e,t,i){var o=e.top-t*e.height,s=e.height+(t+i)*e.height;return{top:o,bottom:o+s,height:s,left:e.left,right:e.right,width:e.width}}}}]);
  //# sourceMappingURL=owa.6.js.map
  self.scriptsLoaded['owa.6.js'] = 1; self.scriptProcessEnd = self.scriptProcessEnd || {}; self.scriptProcessEnd['owa.6.js'] = (new Date()).getTime();