Files
ai/charting_library/bundles/37.cd26e2e2872c1f76b5d9.js
2021-09-10 14:56:00 +00:00

3 lines
8.4 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"02pg":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI"),a=n("TSYQ"),i=n("XiJV");function o(e){return r.createElement("div",{className:a(i.separator,e.className)})}},"1LIl":function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("q1tI"),a=n.n(r),i=n("TSYQ"),o=n("H9Gg"),s=n("PSOE");function l(e){const{queryString:t,rules:n,text:l,className:c}=e,u=Object(r.useMemo)(()=>Object(o.b)(t,l,n),[t,n,l]);return a.a.createElement(r.Fragment,null,u.length?l.split("").map((e,t)=>a.a.createElement(r.Fragment,{key:t},u[t]?a.a.createElement("span",{className:i(s.highlighted,c)},e):a.a.createElement("span",null,e))):l)}},H9Gg:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n("ogJP");function a(e){const{data:t,rules:n,queryString:a,isPreventedFromFiltering:i,primaryKey:o,secondaryKey:s=o,optionalPrimaryKey:l}=e;return t.map(e=>{const t=l&&e[l]?e[l]:e[o],i=e[s];let c,u=0;return n.forEach(e=>{var n,o,s,l;const{re:d,fullMatch:h}=e;return d.lastIndex=0,t&&t.toLowerCase()===a.toLowerCase()?(u=3,void(c=null===(n=t.match(h))||void 0===n?void 0:n.index)):Object(r.isString)(t)&&h.test(t)?(u=2,void(c=null===(o=t.match(h))||void 0===o?void 0:o.index)):Object(r.isString)(i)&&h.test(i)?(u=1,void(c=null===(s=i.match(h))||void 0===s?void 0:s.index)):void(Object(r.isString)(i)&&d.test(i)&&(u=1,c=null===(l=i.match(d))||void 0===l?void 0:l.index))}),{matchPriority:u,matchIndex:c,item:e}}).filter(e=>i||e.matchPriority).sort((e,t)=>{if(e.matchPriority<t.matchPriority)return 1;if(e.matchPriority>t.matchPriority)return-1;if(e.matchPriority===t.matchPriority){if(void 0===e.matchIndex||void 0===t.matchIndex)return 0;if(e.matchIndex>t.matchIndex)return 1;if(e.matchIndex<t.matchIndex)return-1}return 0}).map(({item:e})=>e)}function i(e,t){const n=[],r=e.toLowerCase(),a=e.split("").map((e,t)=>`(${0!==t?"[/\\s-]"+s(e):s(e)})`).join("(.*?)")+"(.*)";return n.push({fullMatch:new RegExp(`(${s(e)})`,"i"),re:new RegExp("^"+a,"i"),reserveRe:new RegExp(a,"i"),fuzzyHighlight:!0}),t&&t.hasOwnProperty(r)&&n.push({fullMatch:t[r],re:t[r],fuzzyHighlight:!1}),n}function o(e,t,n){const r=[];return e&&n?(n.forEach(e=>{const{fullMatch:n,re:a,reserveRe:i}=e;n.lastIndex=0,a.lastIndex=0;const o=n.exec(t),s=o||a.exec(t)||i&&i.exec(t);if(e.fuzzyHighlight=!o,s)if(e.fuzzyHighlight){let e=s.index;for(let t=1;t<s.length;t++){const n=s[t],a=s[t].length;if(t%2){const t=n.startsWith(" ")||n.startsWith("/")||n.startsWith("-");r[t?e+1:e]=!0}e+=a}}else for(let t=0;t<s[0].length;t++)r[s.index+t]=!0}),r):r}function s(e){return e.replace(/[!-/[-^{-}]/g,"\\$&")}},ItnF:function(e,t,n){e.exports={dialog:"dialog-2cMrvu9r",wrapper:"wrapper-2cMrvu9r",separator:"separator-2cMrvu9r"}},MyWJ:function(e,t,n){e.exports={container:"container-3n5_2-hI",inputContainer:"inputContainer-3n5_2-hI",withCancel:"withCancel-3n5_2-hI",input:"input-3n5_2-hI",icon:"icon-3n5_2-hI",cancel:"cancel-3n5_2-hI"}},PSOE:function(e,t,n){
e.exports={highlighted:"highlighted-1Qud56dI"}},QHWU:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n("mrSG"),a=n("q1tI"),i=n.n(a),o=n("TSYQ"),s=n.n(o),l=n("YFKU"),c=n("Iivm"),u=n("hYdZ"),d=n("MyWJ");function h(e){const{children:t,renderInput:n,onCancel:a}=e,o=Object(r.a)(e,["children","renderInput","onCancel"]);return i.a.createElement("div",{className:d.container},i.a.createElement("div",{className:s()(d.inputContainer,a&&d.withCancel)},n||i.a.createElement(m,Object.assign({},o))),t,i.a.createElement(c.a,{className:d.icon,icon:u}),a&&i.a.createElement("div",{className:d.cancel,onClick:a},Object(l.t)("Cancel")))}function m(e){const{className:t,reference:n,value:a,onChange:o,onFocus:l,onBlur:c,onKeyDown:u,onSelect:h,placeholder:m}=e,p=Object(r.a)(e,["className","reference","value","onChange","onFocus","onBlur","onKeyDown","onSelect","placeholder"]);return i.a.createElement("input",Object.assign({},p,{ref:n,type:"text",className:s()(t,d.input),autoComplete:"off","data-role":"search",placeholder:m,value:a,onChange:o,onFocus:l,onBlur:c,onSelect:h,onKeyDown:u}))}},XiJV:function(e,t,n){e.exports={separator:"separator-3No0pWrk"}},g89m:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),i=n("Eyy1"),o=n("TSYQ"),s=n.n(o),l=n("/3z9"),c=n("d700"),u=n("WXjp"),d=n("02pg"),h=n("uhCe"),m=n("/KDZ"),p=n("pafz"),f=n("ZjKI"),g=n("FQhm"),v=n("Iivm");const C=a.a.createContext({setHideClose:()=>{}});var w=n("zztK"),b=n("px1m");function y(e){const{title:t,subtitle:n,showCloseIcon:i=!0,onClose:o,renderBefore:l,renderAfter:c,draggable:u,className:d}=e,[h,m]=Object(r.useState)(!1);return a.a.createElement(C.Provider,{value:{setHideClose:m}},a.a.createElement("div",{className:s()(b.container,d,n&&b.unsetAlign)},l,a.a.createElement("div",{"data-dragg-area":u,className:b.title},a.a.createElement("div",{className:b.ellipsis},t),n&&a.a.createElement("div",{className:s()(b.ellipsis,b.subtitle)},n)),c,i&&!h&&a.a.createElement(v.a,{className:b.close,icon:w,onClick:o,"data-name":"close","data-role":"button"})))}var E=n("ItnF");n.d(t,"a",(function(){return I}));const _={vertical:20},x={vertical:0};class I extends a.a.PureComponent{constructor(){super(...arguments),this._controller=null,this._reference=null,this._renderChildren=(e,t)=>(this._controller=e,this.props.render({requestResize:this._requestResize,centerAndFit:this._centerAndFit,isSmallWidth:t})),this._handleReference=e=>this._reference=e,this._handleClose=()=>{this.props.onClose()},this._handleKeyDown=e=>{var t;if(!e.defaultPrevented)switch(this.props.onKeyDown&&this.props.onKeyDown(e),Object(l.hashFromEvent)(e)){case 27:if(e.defaultPrevented)return;if(this.props.forceCloseOnEsc&&this.props.forceCloseOnEsc())return void this._handleClose();const{activeElement:n}=document,r=Object(i.ensureNotNull)(this._reference);if(null!==n){if(e.preventDefault(),"true"===(t=n).getAttribute("data-haspopup")&&"true"!==t.getAttribute("data-expanded"))return void this._handleClose();if(Object(c.b)(n))return void r.focus();if(r.contains(n))return void this._handleClose()}}},
this._requestResize=()=>{null!==this._controller&&this._controller.recalculateBounds()},this._centerAndFit=()=>{null!==this._controller&&this._controller.centerAndFit()}}componentDidMount(){g.subscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}componentWillUnmount(){g.unsubscribe(f.CLOSE_POPUPS_AND_DIALOGS_COMMAND,this._handleClose,null)}focus(){Object(i.ensureNotNull)(this._reference).focus()}getElement(){return this._reference}contains(e){var t,n;return null!==(n=null===(t=this._reference)||void 0===t?void 0:t.contains(e))&&void 0!==n&&n}render(){const{className:e,headerClassName:t,isOpened:n,title:r,dataName:i,onClickOutside:o,additionalElementPos:l,additionalHeaderElement:c,backdrop:f,shouldForceFocus:g=!0,showSeparator:v,subtitle:C,draggable:w=!0,fullScreen:b=!1,showCloseIcon:I=!0,rounded:N=!0,isAnimationEnabled:P,growPoint:O,dialogTooltip:S}=this.props,F="after"!==l?c:void 0,A="after"===l?c:void 0;return a.a.createElement(m.a,{rule:h.a.SmallHeight},l=>a.a.createElement(m.a,{rule:h.a.TabletSmall},c=>a.a.createElement(u.a,{rounded:!(c||b)&&N,className:s()(E.dialog,e),isOpened:n,reference:this._handleReference,onKeyDown:this._handleKeyDown,onClickOutside:o,onClickBackdrop:o,fullscreen:c||b,guard:l?x:_,boundByScreen:c||b,shouldForceFocus:g,backdrop:f,draggable:w,isAnimationEnabled:P,growPoint:O,name:this.props.dataName,dialogTooltip:S},a.a.createElement("div",{className:E.wrapper,"data-name":i,"data-dialog-name":"string"==typeof r?r:""},void 0!==r&&a.a.createElement(y,{draggable:w&&!(c||b),onClose:this._handleClose,renderAfter:A,renderBefore:F,subtitle:C,title:r,showCloseIcon:I,className:t}),v&&a.a.createElement(d.a,{className:E.separator}),a.a.createElement(p.a.Consumer,null,e=>this._renderChildren(e,c||b))))))}}},hYdZ:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path stroke="currentColor" d="M12.4 12.5a7 7 0 1 0-4.9 2 7 7 0 0 0 4.9-2zm0 0l5.101 5"/></svg>'},px1m:function(e,t,n){e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",container:"container-2sL5JydP",unsetAlign:"unsetAlign-2sL5JydP",title:"title-2sL5JydP",subtitle:"subtitle-2sL5JydP",ellipsis:"ellipsis-2sL5JydP",close:"close-2sL5JydP"}},zztK:function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" stroke-width="1.2" d="M1 1l15 15m0-15L1 16"/></svg>'}}]);