2 lines
5.5 KiB
JavaScript
2 lines
5.5 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+EG+":function(t,e,n){"use strict";var o,r,i,s;n.d(e,"a",function(){return i}),n.d(e,"b",function(){return s}),o=n("mrSG"),r=n("q1tI"),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o.__extends)(e,t),e.prototype.shouldComponentUpdate=function(){return!1},e.prototype.render=function(){return r.createElement("div",{style:{position:"fixed",zIndex:150,left:0,top:0},ref:this.props.reference})},e}(r.Component),s=r.createContext(null)},"8Rai":function(t,e,n){"use strict";function o(t){var e=t.click,n=t.mouseDown,o=t.touchEnd,u=t.touchStart,c=t.handler,a=t.ownerDocument,d=void 0===a?document:a,p=Object(r.useRef)(null),l=Object(r.useRef)(new i.CustomEvent("timestamp").timeStamp);return Object(r.useLayoutEffect)(function(){var t={click:e,mouseDown:n,touchEnd:o,touchStart:u};return Object(s.a)(l.current,p.current,c,d,t)},[e,n,o,u,c]),p}var r,i,s;n.d(e,"a",function(){return o}),r=n("q1tI"),i=n("efOF"),s=n("R5JZ")},AiMB:function(t,e,n){"use strict";var o,r,i,s,u,c,a,d;n.d(e,"a",function(){return a}),n.d(e,"b",function(){return d}),o=n("mrSG"),r=n("q1tI"),i=n("i8i4"),s=n("0waE"),u=n("jAh7"),c=n("+EG+"),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._uuid=Object(s.guid)(),e}return Object(o.__extends)(e,t),e.prototype.componentWillUnmount=function(){this._manager().removeWindow(this._uuid)},e.prototype.render=function(){var t=this._manager().ensureWindow(this._uuid);return t.style.top=this.props.top||"",t.style.bottom=this.props.bottom||"",t.style.left=this.props.left||"",t.style.right=this.props.top||"",t.style.pointerEvents=this.props.pointerEvents||null,i.createPortal(r.createElement(d.Provider,{value:this},this.props.children),t)},e.prototype.moveToTop=function(){this._manager().moveToTop(this._uuid)},e.prototype._manager=function(){return null===this.context?Object(u.getRootOverlapManager)():this.context},e.contextType=c.b,e}(r.PureComponent),d=r.createContext(null)},QpNh:function(t,e,n){"use strict";function o(t){var e,n,o,i,s,u=Object.entries(t).filter(r),c={};for(e=0,n=u;e<n.length;e++)i=(o=n[e])[0],s=o[1],c[i]=s;return c}function r(t){var e=t[0],n=t[1];return 0===e.indexOf("data-")&&"string"==typeof n}n.d(e,"a",function(){return o})},R5JZ:function(t,e,n){"use strict";function o(t,e,n,o,r){function i(r){if(!(t>r.timeStamp)){var i=r.target;void 0!==n&&null!==e&&null!==i&&i.ownerDocument===o&&(e.contains(i)||n(r))}}return r.click&&o.addEventListener("click",i,!1),r.mouseDown&&o.addEventListener("mousedown",i,!1),r.touchEnd&&o.addEventListener("touchend",i,!1),r.touchStart&&o.addEventListener("touchstart",i,!1),function(){o.removeEventListener("click",i,!1),o.removeEventListener("mousedown",i,!1),o.removeEventListener("touchend",i,!1),o.removeEventListener("touchstart",i,!1)}}n.d(e,"a",function(){return o})},jAh7:function(t,e,n){"use strict";function o(t){var e,n,o;return void 0===t&&(t=document),null!==(e=t.getElementById("overlap-manager-root"))?Object(r.ensureDefined)(u.get(e)):(n=new s(t),
|
|
o=function(t){var 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),u.set(o,n),n.setContainer(o),t.body.appendChild(o),n)}var r,i,s,u;n.r(e),n.d(e,"OverlapManager",function(){return s}),n.d(e,"getRootOverlapManager",function(){return o}),r=n("Eyy1"),i=function(){function t(){this._storage=[]}return t.prototype.add=function(t){this._storage.push(t)},t.prototype.remove=function(t){this._storage=this._storage.filter(function(e){return t!==e})},t.prototype.has=function(t){return this._storage.includes(t)},t.prototype.getItems=function(){return this._storage},t}(),s=function(){function t(t){void 0===t&&(t=document),this._storage=new i,this._windows=new Map,this._index=0,this._document=t,this._container=t.createDocumentFragment()}return t.prototype.setContainer=function(t){var e=this._container,n=null===t?this._document.createDocumentFragment():t;!function(t,e){Array.from(t.childNodes).forEach(function(t){t.nodeType===Node.ELEMENT_NODE&&e.appendChild(t)})}(e,n),this._container=n},t.prototype.registerWindow=function(t){this._storage.has(t)||this._storage.add(t)},t.prototype.ensureWindow=function(t,e){var n,o;return void 0===e&&(e={position:"fixed"}),void 0!==(n=this._windows.get(t))?n:(this.registerWindow(t),(o=this._document.createElement("div")).style.position=e.position,o.style.zIndex=this._index.toString(),o.dataset.id=t,this._container.appendChild(o),this._windows.set(t,o),++this._index,o)},t.prototype.unregisterWindow=function(t){this._storage.remove(t);var e=this._windows.get(t);void 0!==e&&(null!==e.parentElement&&e.parentElement.removeChild(e),this._windows.delete(t))},t.prototype.getZindex=function(t){var e=this.ensureWindow(t);return parseInt(e.style.zIndex||"0")},t.prototype.moveToTop=function(t){this.getZindex(t)!==this._index&&(this.ensureWindow(t).style.zIndex=(++this._index).toString())},t.prototype.removeWindow=function(t){this.unregisterWindow(t)},t}(),u=new WeakMap},jjrI:function(t,e,n){"use strict";function o(t){var e=t.className,n=t.icon,o=void 0===n?"":n,i=t.title,u=t.onClick,c=t.onMouseDown,a=t.onMouseUp,d=t.onMouseLeave,p=t.reference,l=Object(r.__rest)(t,["className","icon","title","onClick","onMouseDown","onMouseUp","onMouseLeave","reference"]);return s.a.createElement("span",Object(r.__assign)({},l,{title:i,className:e,dangerouslySetInnerHTML:{__html:o},onClick:u,onMouseDown:c,onMouseUp:a,onMouseLeave:d,ref:p}))}var r,i,s;n.d(e,"a",function(){return o}),r=n("mrSG"),i=n("q1tI"),s=n.n(i)}}]); |