You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
5.2 KiB
2 lines
5.2 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+EG+":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return r}));var i=n("q1tI");class o extends i.Component{shouldComponentUpdate(){return!1}render(){return i.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})}}const r=i.createContext(null)},"0YpW":function(t,e,n){"use strict";const i=(()=>{let t;return()=>{var e;if(void 0===t){const n=document.createElement("div"),i=n.style;i.visibility="hidden",i.width="100px",i.msOverflowStyle="scrollbar",document.body.appendChild(n);const o=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const s=r.offsetWidth;null===(e=n.parentNode)||void 0===e||e.removeChild(n),t=o-s}return t}})();function o(t,e,n){null!==t&&t.style.setProperty(e,n)}function r(t,e){return getComputedStyle(t,null).getPropertyValue(e)}function s(t,e){return parseInt(r(t,e))}n.d(e,"a",(function(){return u}));let c=0,d=!1;function u(t){const{body:e}=document,n=e.querySelector(".widgetbar-wrap");if(t&&1==++c){const t=r(e,"overflow"),c=s(e,"padding-right");"hidden"!==t.toLowerCase()&&e.scrollHeight>e.offsetHeight&&(o(n,"right",i()+"px"),e.style.paddingRight=c+i()+"px",d=!0),e.classList.add("i-no-scroll")}else if(!t&&c>0&&0==--c&&(e.classList.remove("i-no-scroll"),d)){o(n,"right","0px");let t=0;0,e.scrollHeight<=e.clientHeight&&(t-=i()),e.style.paddingRight=(t<0?0:t)+"px",d=!1}}},"8Rai":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("q1tI"),o=n("R5JZ");function r(t){const{click:e,mouseDown:n,touchEnd:r,touchStart:s,handler:c,reference:d,ownerDocument:u=document}=t,l=Object(i.useRef)(null),a=Object(i.useRef)(new CustomEvent("timestamp").timeStamp);return Object(i.useLayoutEffect)(()=>{const t={click:e,mouseDown:n,touchEnd:r,touchStart:s},i=d?d.current:l.current;return Object(o.a)(a.current,i,c,u,t)},[e,n,r,s,c]),d||l}},AiMB:function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return u}));var i=n("q1tI"),o=n("i8i4"),r=n("e3/o"),s=n("jAh7"),c=n("+EG+");class d extends i.PureComponent{constructor(){super(...arguments),this._uuid=Object(r.guid)()}componentWillUnmount(){this._manager().removeWindow(this._uuid)}render(){const t=this._manager().ensureWindow(this._uuid,this.props.layerOptions);return t.style.top=this.props.top||"",t.style.bottom=this.props.bottom||"",t.style.left=this.props.left||"",t.style.right=this.props.right||"",t.style.pointerEvents=this.props.pointerEvents||"",o.createPortal(i.createElement(u.Provider,{value:this},this.props.children),t)}moveToTop(){this._manager().moveToTop(this._uuid)}_manager(){return null===this.context?Object(s.b)():this.context}}d.contextType=c.b;const u=i.createContext(null)},Iivm:function(t,e,n){"use strict";var i=n("q1tI");const o=i.forwardRef((t,e)=>{const{icon:n="",...o}=t;return i.createElement("span",{...o,ref:e,dangerouslySetInnerHTML:{__html:n}})});n.d(e,"a",(function(){return o}))},jAh7:function(t,e,n){
|
|
"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var i=n("Eyy1");class o{constructor(){this._storage=[]}add(t){this._storage.push(t)}remove(t){this._storage=this._storage.filter(e=>t!==e)}has(t){return this._storage.includes(t)}getItems(){return this._storage}}class r{constructor(t=document){this._storage=new o,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}setContainer(t){const e=this._container,n=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach(t=>{t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)})}(e,n),this._container=n}registerWindow(t){this._storage.has(t)||this._storage.add(t)}ensureWindow(t,e={position:"fixed",direction:"normal"}){const n=this._windows.get(t);if(void 0!==n)return n;this.registerWindow(t);const i=this._document.createElement("div");if(i.style.position=e.position,i.style.zIndex=this._index.toString(),i.dataset.id=t,void 0!==e.index){const t=this._container.childNodes.length;if(e.index>=t)this._container.appendChild(i);else if(e.index<=0)this._container.insertBefore(i,this._container.firstChild);else{const t=this._container.childNodes[e.index];this._container.insertBefore(i,t)}}else"reverse"===e.direction?this._container.insertBefore(i,this._container.firstChild):this._container.appendChild(i);return this._windows.set(t,i),++this._index,i}unregisterWindow(t){this._storage.remove(t);const e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))}getZindex(t){const e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")}moveToTop(t){if(this.getZindex(t)!==this._index){this.ensureWindow(t).style.zIndex=(++this._index).toString()}}removeWindow(t){this.unregisterWindow(t)}}const s=new WeakMap;function c(t=document){const e=t.getElementById("overlap-manager-root");if(null!==e)return Object(i.ensureDefined)(s.get(e));{const e=new r(t),n=function(t){const e=t.createElement("div");return e.style.position="absolute",e.style.zIndex=150..toString(),e.style.top="0px",e.style.left="0px",e.id="overlap-manager-root",e}(t);return s.set(n,e),e.setContainer(n),t.body.appendChild(n),e}}}}]);
|