@deephaven/code-studio 0.64.0 → 0.64.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{AppRoot-9de5140a.js → AppRoot-f366693a.js} +3 -3
- package/build/assets/{AppRoot-9de5140a.js.map → AppRoot-f366693a.js.map} +1 -1
- package/build/assets/{ControlType-1b90d1e3.js → ControlType-6337dc6d.js} +3 -3
- package/build/assets/{ControlType-1b90d1e3.js.map → ControlType-6337dc6d.js.map} +1 -1
- package/build/assets/{FontBootstrap-9b5ce71e.js → FontBootstrap-f7fb13f9.js} +2 -2
- package/build/assets/{FontBootstrap-9b5ce71e.js.map → FontBootstrap-f7fb13f9.js.map} +1 -1
- package/build/assets/{IrisGrid-ada0bc58.js → IrisGrid-a9bad2d6.js} +2 -2
- package/build/assets/{IrisGrid-ada0bc58.js.map → IrisGrid-a9bad2d6.js.map} +1 -1
- package/build/assets/{MarkdownEditor-d2357767.js → MarkdownEditor-12329c62.js} +2 -2
- package/build/assets/{MarkdownEditor-d2357767.js.map → MarkdownEditor-12329c62.js.map} +1 -1
- package/build/assets/{MarkdownNotebook-28cb59a5.js → MarkdownNotebook-35f296c6.js} +2 -2
- package/build/assets/{MarkdownNotebook-28cb59a5.js.map → MarkdownNotebook-35f296c6.js.map} +1 -1
- package/build/assets/{StyleGuideRoot-81ed15ba.js → StyleGuideRoot-cb903232.js} +2 -2
- package/build/assets/{StyleGuideRoot-81ed15ba.js.map → StyleGuideRoot-cb903232.js.map} +1 -1
- package/build/assets/{index-02750775.js → index-2431385f.js} +2 -2
- package/build/assets/{index-02750775.js.map → index-2431385f.js.map} +1 -1
- package/build/assets/index-aded50a2.js +2 -0
- package/build/assets/index-aded50a2.js.map +1 -0
- package/build/assets/{index-0596c38c.js → index-bb3718e5.js} +3 -3
- package/build/assets/{index-0596c38c.js.map → index-bb3718e5.js.map} +1 -1
- package/build/assets/{useUser-e2a90215.js → useUser-0ea4bd27.js} +2 -2
- package/build/assets/{useUser-e2a90215.js.map → useUser-0ea4bd27.js.map} +1 -1
- package/build/index.html +1 -1
- package/package.json +31 -31
- package/build/assets/index-6a91d8a9.js +0 -2
- package/build/assets/index-6a91d8a9.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as c,M as ye,L as Z,H as P,C as s,F as w,N as y,G as X,S as Ee}from"./vendor-beec23d9.js";import{al as pe,d as z,J as Ce,C as ae,B as re,b1 as ke,bu as we}from"./ControlType-
|
|
1
|
+
import{r as c,M as ye,L as Z,H as P,C as s,F as w,N as y,G as X,S as Ee}from"./vendor-beec23d9.js";import{al as pe,d as z,J as Ce,C as ae,B as re,b1 as ke,bu as we}from"./ControlType-6337dc6d.js";import{L as fe,aG as Se,a9 as Me,e as Pe}from"./index-2431385f.js";import{M as me,D as De,al as _e,m as je,n as Ae}from"./IrisGrid-a9bad2d6.js";function ie(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function Re(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ie(Object(t),!0).forEach(function(n){F(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function F(a,e,t){return e=Fe(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Fe(a){var e=Ve(a,"string");return typeof e=="symbol"?e:String(e)}function Ve(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var Le=100,Y;(function(a){a.UP="UP",a.DOWN="DOWN"})(Y||(Y={}));class R extends c.Component{constructor(e){super(e),F(this,"popper",void 0),F(this,"cbContainer",void 0),F(this,"menuContainer",void 0),F(this,"input",void 0),F(this,"getCachedFilteredOptions",ye((n,r)=>n.filter(i=>i.title.toLowerCase().indexOf(r.toLowerCase())>=0)));var{popperOptions:t}=this.props;t=Re({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},t),this.state={title:"",filteredOptions:[],keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,invalid:!1,popperOptions:t},this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.handleMenuBlur=this.handleMenuBlur.bind(this),this.handleInputChange=this.handleInputChange.bind(this),this.handleInputKeyDown=this.handleInputKeyDown.bind(this),this.handleInputBlur=this.handleInputBlur.bind(this),this.handelInputFocus=this.handelInputFocus.bind(this),this.handleInputClick=this.handleInputClick.bind(this),this.updateInputValue=Z(this.updateInputValue,Le),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.popper=P.createRef(),this.cbContainer=P.createRef(),this.menuContainer=P.createRef(),this.input=P.createRef()}setInputWidth(){this.cbContainer.current&&this.setState({inputWidth:this.cbContainer.current.getBoundingClientRect().width})}getValueAndValidate(e){if(!e)return this.setState({invalid:!1}),{value:e,isValid:!1};var{options:t}=this.props,n=t.filter(r=>r.title.toLowerCase()===e.toLowerCase());return n.length<1?(this.setState({invalid:!0}),{value:e,isValid:!1}):(this.setState({invalid:!1}),{value:n[0].value,isValid:!0})}updateInputValue(e){var{menuIsOpen:t}=this.state,{value:n,isValid:r}=this.getValueAndValidate(e);t&&this.processFilterChange(e),this.fireOnChange(n,r)}fireOnChange(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,{onChange:n}=this.props;n(e,t)}processFilterChange(e){var t,{options:n}=this.props,{menuIsOpen:r}=this.state,i=e?this.getCachedFilteredOptions(n,e):n,l=i.length===1&&i[0].title===e;if(this.setState({filteredOptions:i,keyboardOptionIndex:0}),l&&r){this.closeMenu();return}(t=this.popper.current)===null||t===void 0||t.scheduleUpdate()}resetValue(){this.setState({title:""}),this.fireOnChange("")}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var t,{filteredOptions:n,keyboardOptionIndex:r}=this.state,i=n[r];switch(e.key){case"Enter":case"ArrowRight":e.stopPropagation(),e.preventDefault(),i!=null&&(this.setState({title:i.title,invalid:!1}),this.fireOnChange(i.value)),this.closeMenu(),(t=this.input.current)===null||t===void 0||t.focus();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.UP);break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Tab":if(e.stopPropagation(),e.preventDefault(),e.shiftKey){this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.UP);break}this.navigateMenu(R.MENU_NAVIGATION_DIRECTION.DOWN);break;case"Escape":e.preventDefault(),e.stopPropagation(),this.closeMenu();break}}navigateMenu(e){var{filteredOptions:t,keyboardOptionIndex:n}=this.state,r=n;e===R.MENU_NAVIGATION_DIRECTION.UP?n>0?(r=(r-1)%t.length,this.setState({keyboardOptionIndex:r})):n===0&&(r=t.length-1,this.setState({keyboardOptionIndex:r})):e===R.MENU_NAVIGATION_DIRECTION.DOWN&&n<t.length&&(r=(r+1)%t.length,this.setState({keyboardOptionIndex:r})),this.scrollOptionIntoView(r)}handleInputKeyDown(e){var{onEnter:t}=this.props,{menuIsOpen:n}=this.state;n?this.handleMenuKeyDown(e):e.key==="Enter"?t():e.key==="Escape"?(this.resetValue(),e.preventDefault(),e.stopPropagation()):e.key==="ArrowRight"||e.key==="ArrowLeft"||e.key==="Tab"||e.key==="Shift"||this.openMenu()}handleInputChange(e){this.setState({title:e.target.value}),this.updateInputValue(e.target.value)}handleOptionClick(e){var t;this.setState({title:e.title,invalid:!1}),this.fireOnChange(e.value),this.closeMenu(),(t=this.input.current)===null||t===void 0||t.focus()}handelInputFocus(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputClick(){var{menuIsOpen:e}=this.state;e||this.openMenu()}handleInputBlur(e){var{menuIsOpen:t}=this.state;t&&e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuBlur(e){e.relatedTarget===this.input.current||e.relatedTarget instanceof Element&&this.popper.current!==null&&this.popper.current.element.contains(e.relatedTarget)||this.closeMenu(!1)}handleMenuOpened(){var e;(e=this.input.current)===null||e===void 0||e.focus()}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}openMenu(){var{title:e}=this.state;this.processFilterChange(e),this.setInputWidth(),this.setState({menuIsOpen:!0}),window.requestAnimationFrame(()=>{var t;(t=this.popper.current)===null||t===void 0||t.show()})}closeMenu(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1,keyboardOptionIndex:0}),t){var n;(n=this.input.current)===null||n===void 0||n.focus()}(e=this.popper.current)===null||e===void 0||e.hide()}scrollOptionIntoView(e){if(this.menuContainer.current){var t;(t=this.menuContainer.current.children.item(e))===null||t===void 0||t.scrollIntoView({behavior:"smooth",block:"nearest"})}}renderMenuElement(){var{inputWidth:e}=this.state;return s.jsx("div",{className:w("aci-options"),ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,style:{width:e},onBlur:this.handleMenuBlur,children:this.renderOptions()})}renderOptions(){var{noMatchText:e}=this.props,{title:t,filteredOptions:n}=this.state;return t&&n.length===0?s.jsx("div",{className:"no-match",children:e}):n.map((r,i)=>this.renderOption(r,i))}renderOption(e,t){var{keyboardOptionIndex:n}=this.state,r="option-".concat(t,"-").concat(e.value);return s.jsx("button",{type:"button",className:w("aci-option-btn",{"keyboard-active":n===t}),onClick:()=>this.handleOptionClick(e),onFocus:()=>this.setState({keyboardOptionIndex:t}),children:e.title},r)}render(){var{options:e,inputPlaceholder:t,disabled:n,className:r,defaultTitle:i,spellCheck:l,"data-testid":o}=this.props,{title:p,menuIsOpen:u,popperOptions:d,invalid:h}=this.state;return s.jsxs("div",{className:"aci-container",ref:this.cbContainer,children:[s.jsx("input",{value:p||i,className:w("form-control",r,"aci-input",{"is-invalid":h&&!u}),ref:this.input,onChange:this.handleInputChange,placeholder:t||e[0].title,disabled:n,onFocus:this.handelInputFocus,onClick:this.handleInputClick,onBlur:this.handleInputBlur,onKeyDown:this.handleInputKeyDown,spellCheck:l,"data-testid":o}),s.jsx(pe,{ref:this.popper,options:d,className:w("aci-options-popper interactive"),onEntered:this.handleMenuOpened,onExited:this.handleMenuExited,children:this.renderMenuElement()})]})}}F(R,"propTypes",{options:y.arrayOf(y.shape({title:y.string.isRequired,value:y.string.isRequired})).isRequired,popperOptions:y.shape({}),onChange:y.func,inputPlaceholder:y.string,disabled:y.bool,className:y.string,defaultTitle:y.string,spellCheck:y.bool,onEnter:y.func,noMatchText:y.string,"data-testid":y.string});F(R,"defaultProps",{onChange(){},inputPlaceholder:"",disabled:!1,className:"",defaultTitle:"",popperOptions:null,spellCheck:!0,onEnter(){},noMatchText:"No matching items found","data-testid":void 0});F(R,"MENU_NAVIGATION_DIRECTION",Y);const Tt=R;function ve(a){var{className:e="",value:t,onChange:n,spellCheck:r=!1,placeholder:i="",disabled:l=!1,delimiter:o="",id:p="","data-testid":u}=a,[d,h]=c.useState(t),[m,f]=c.useState(!1),b=c.useRef(null);c.useEffect(function(){h(t)},[t]);function I(T){return T.trim().split(o).filter(C=>C).join(`
|
|
2
2
|
`.concat(o.trim()))}function E(T){return T.split(`
|
|
3
3
|
`).map(C=>C.trim()).join(" ")}function S(){if(b.current){b.current.style.height="0";var T=b.current.scrollHeight+(b.current.offsetHeight-b.current.clientHeight);T>0&&(b.current.style.height="".concat(T,"px"))}}function M(T){var C=T.target.value;m&&(o&&(C=I(C)),f(!1)),h(C),n(C)}function U(){b.current&&(o&&(h(I(d)),S()),b.current.scrollLeft=0)}function $(){b.current&&document.activeElement!==b.current&&b.current.focus()}function g(){o&&(h(E(d)),n(E(d)))}function k(){f(!0)}return c.useEffect(function(){S()},[d]),s.jsx("textarea",{ref:b,id:p,className:w(e,"auto-resize-textarea form-control"),placeholder:i,value:d,rows:1,onChange:M,onFocus:U,onMouseDown:$,onBlur:g,onPaste:k,spellCheck:r,disabled:l,"data-testid":u})}ve.propTypes={value:y.string.isRequired,onChange:y.func.isRequired,className:y.string,placeholder:y.string,spellCheck:y.bool,disabled:y.bool,delimiter:y.string,id:y.string,"data-testid":y.string};ve.defaultProps={className:"",id:"",placeholder:"",disabled:!1,spellCheck:!1,delimiter:"","data-testid":void 0};var Ue=fe.module("TimeInput"),$e="([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]",We=["00:00:00","12:34:56","23:59:59"];function se(a){return a!=null?"".concat(a.substring(0,8).replace(/\u2007/g,"0")).concat("00:00:00".substring(a.length)):a}var ge=P.forwardRef((a,e)=>{var{allowValueWrapping:t=!0,className:n="",onChange:r=()=>!1,value:i=0,onFocus:l=()=>!1,onBlur:o=()=>!1,onSelect:p=()=>!1,"data-testid":u}=a,[d,h]=c.useState(z.formatTime(i)),m=c.useRef(i),[f,b]=c.useState(),I=c.useRef(null);c.useImperativeHandle(e,()=>({focus:()=>{var g;(g=I.current)===null||g===void 0||g.focus()},setSelection:g=>{var k;(k=I.current)===null||k===void 0||k.focus(),b(g)}}),[]),c.useEffect(function(){m.current!==i&&(h(z.formatTime(i)),m.current=i)},[m,i]);function E(g,k,T){var C=g.selectionStart===0?24:60,D=parseInt(T,10)-k;return Number.isNaN(D)?D=0:t?D=(D%C+C)%C:D=Math.min(Math.max(0,D),C-1),"".concat(D).padStart(2,"0")}function S(g,k,T,C,D){return C===0&&D===2&&k===1&&parseInt(T,10)>1?"0".concat(T).concat(g.substring(2)):De(g,k,T)}var M=c.useCallback(g=>{Ue.debug("handleChange",g),h(g),m.current=z.parseTime(se(g)),r(m.current)},[r]),U=c.useCallback(()=>{var g=se(d);g!==d&&h(g),o()},[d,o]),$=c.useCallback(g=>{b(g),p(g)},[p]);return s.jsx(me,{ref:I,className:n,example:We,getNextSegmentValue:E,getPreferredReplacementString:S,onChange:M,onSelect:$,pattern:$e,selection:f,value:d,onFocus:l,onBlur:U,"data-testid":u})});ge.defaultProps={allowValueWrapping:!0,className:"",onChange:()=>!1,onSelect:()=>!1,value:0,onFocus:()=>!1,onBlur:()=>!1,"data-testid":void 0};const J=ge;function le(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function Be(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?le(Object(t),!0).forEach(function(n){L(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):le(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function L(a,e,t){return e=Ke(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ke(a){var e=He(a,"string");return typeof e=="symbol"?e:String(e)}function He(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}var oe=-1,Q;(function(a){a.UP="UP",a.DOWN="DOWN"})(Q||(Q={}));class _ extends c.Component{constructor(e){super(e),L(this,"csContainer",void 0),L(this,"menuContainer",void 0),L(this,"button",void 0),L(this,"input",void 0);var{value:t,valueToTime:n}=e;this.toggleMenu=this.toggleMenu.bind(this),this.handleMenuKeyDown=this.handleMenuKeyDown.bind(this),this.closeMenu=this.closeMenu.bind(this),this.handleOptionClick=this.handleOptionClick.bind(this),this.handleOptionFocus=this.handleOptionFocus.bind(this),this.handleMenuOpened=this.handleMenuOpened.bind(this),this.handleMenuExited=this.handleMenuExited.bind(this),this.handleCustomInput=this.handleCustomInput.bind(this),this.csContainer=P.createRef(),this.menuContainer=P.createRef(),this.button=P.createRef(),this.input=P.createRef(),this.state={keyboardOptionIndex:0,menuIsOpen:!1,inputWidth:100,customTime:n(t),inputFocused:!1}}getSelectedText(){var{options:e,value:t,placeholder:n}=this.props,{customTime:r}=this.state;if(t===null)return n;for(var i=0;i<e.length;i+=1){var l=e[i];if(l.value===t)return l.title}return z.formatTime(r)}setInputWidth(){this.csContainer.current&&this.setState({inputWidth:this.csContainer.current.getBoundingClientRect().width})}focus(){var e;(e=this.button.current)===null||e===void 0||e.focus()}updateInputValue(e){var{onChange:t}=this.props;t(e)}handleResize(){this.setInputWidth()}handleMenuKeyDown(e){var t,{keyboardOptionIndex:n,inputFocused:r}=this.state,{options:i}=this.props;switch(e.key){case"Enter":case" ":r?this.updateFromCustom():this.updateInputValue(i[n].value),this.closeMenu(),(t=this.button.current)===null||t===void 0||t.focus(),e.stopPropagation(),e.preventDefault();break;case"Tab":e.shiftKey?this.handleMenuNavigation(_.MENU_NAVIGATION_DIRECTION.UP):this.handleMenuNavigation(_.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"ArrowUp":this.handleMenuNavigation(_.MENU_NAVIGATION_DIRECTION.UP),e.stopPropagation(),e.preventDefault();break;case"ArrowDown":this.handleMenuNavigation(_.MENU_NAVIGATION_DIRECTION.DOWN),e.stopPropagation(),e.preventDefault();break;case"Escape":this.closeMenu();break}}handleMenuNavigation(e){var{keyboardOptionIndex:t,inputFocused:n}=this.state,{options:r}=this.props,i=r.length,l=t;switch(e){case _.MENU_NAVIGATION_DIRECTION.UP:if(!n&&t===0){this.focusInput();break}else n&&this.focusOption(t);t>0&&!n?(l=(l-1)%i,this.setState({keyboardOptionIndex:l})):t===0&&(l=i-1,this.setState({keyboardOptionIndex:l})),this.scrollOptionIntoView(l);break;case _.MENU_NAVIGATION_DIRECTION.DOWN:if(!n&&t===i-1){this.focusInput();break}else n&&this.focusOption(t);t<i&&!(n&&t===0)&&(l=(l+1)%i,this.setState({keyboardOptionIndex:l})),this.scrollOptionIntoView(l);break}}handleOptionClick(e){var t=Number(e.currentTarget.value),{options:n,timeToValue:r}=this.props,{customTime:i}=this.state;if(t===oe){var l=r(i);this.updateAndClose(l)}else this.updateAndClose(n[t].value)}updateAndClose(e){var t;this.updateInputValue(e),this.closeMenu(),(t=this.button.current)===null||t===void 0||t.focus()}handleOptionFocus(e){this.setState({keyboardOptionIndex:Number(e.target.value)})}handleMenuOpened(){var e,{options:t,value:n}=this.props,{keyboardOptionIndex:r}=this.state;this.scrollOptionIntoView(r);var i=(e=this.menuContainer.current)===null||e===void 0?void 0:e.querySelector(".cs-option-btn.keyboard-active");if(i instanceof HTMLElement&&i.focus(),n!==null){var l=t.map(o=>o.value).indexOf(n);l<0&&this.focusInput()}}focusInput(){var e;(e=this.input.current)===null||e===void 0||e.focus()}focusOption(e){var t,n=(t=this.menuContainer.current)===null||t===void 0?void 0:t.querySelector(".cs-options");if(n&&n.children!=null){var r=n.children.item(e);r instanceof HTMLElement&&r.focus()}}handleMenuExited(){var{menuIsOpen:e}=this.state;e&&this.setState({menuIsOpen:!1,keyboardOptionIndex:0})}handleCustomInput(e){var{timeToValue:t}=this.props,n=t(e);this.updateInputValue(n),this.setState({customTime:e})}updateFromCustom(){var{timeToValue:e}=this.props,{customTime:t}=this.state,n=e(t);this.updateInputValue(n)}toggleMenu(e){var{menuIsOpen:t}=this.state;t?this.closeMenu():this.openMenu(),e.stopPropagation()}openMenu(){this.updateKeyboardIndex(),this.setInputWidth(),this.setState({menuIsOpen:!0})}closeMenu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(this.setState({menuIsOpen:!1}),e){var t;(t=this.button.current)===null||t===void 0||t.focus()}}updateKeyboardIndex(){var{options:e,value:t}=this.props;if(t!==null){var n=e.map(r=>r.value).indexOf(t);n>0&&this.setState({keyboardOptionIndex:n})}}scrollOptionIntoView(e){var t,n=(t=this.menuContainer.current)===null||t===void 0?void 0:t.querySelector(".cs-options");if(n&&n.children!=null){var r=n.children.item(e);r instanceof HTMLElement&&r.offsetTop>_.DROP_DOWN_MENU_HEIGHT?n.scrollTop=r.offsetTop-_.DROP_DOWN_MENU_HEIGHT:(r instanceof HTMLElement&&r.offsetTop<0||e===0)&&(n.scrollTop=0)}}renderMenuElement(){var{inputWidth:e}=this.state;return s.jsx("div",{className:"cs-menu-container",ref:this.menuContainer,role:"presentation",onKeyDown:this.handleMenuKeyDown,onClick:t=>{t.stopPropagation()},style:{width:e},children:s.jsx("div",{className:"cs-options-container",children:s.jsx("div",{className:"cs-options",children:this.renderOptions()})})})}renderOptions(){for(var{options:e,value:t,icon:n,customText:r}=this.props,{keyboardOptionIndex:i,customTime:l,inputFocused:o}=this.state,p=!1,u=[],d=0;d<e.length;d+=1){var h=e[d],m="option-".concat(d,"-").concat(h.value);p=p||h.value===t,u.push(s.jsxs("button",{type:"button",value:d,className:w("cs-option-btn",{"keyboard-active":i===d&&!o}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[h.value===t&&s.jsx(X,{icon:n,className:"mr-2"}),h.value!==t&&s.jsx("span",{className:"mr-4"}),h.title]},m))}return u.push(s.jsx("hr",{className:"cs-divider"},"option-divider")),u.push(s.jsxs("button",{type:"button",value:oe,className:w("cs-option-btn",{"keyboard-active":o}),onClick:this.handleOptionClick,onFocus:this.handleOptionFocus,children:[!p&&t!==null?s.jsx(X,{icon:n,className:"mr-2"}):s.jsx("span",{className:"mr-4"}),r]},"option-custom-label")),u.push(s.jsxs("div",{className:"cs-custom-container",children:[s.jsx("span",{className:"mr-2"}),s.jsx(J,{ref:this.input,onChange:this.handleCustomInput,value:l,onFocus:()=>this.setState({inputFocused:!0}),onBlur:()=>this.setState({inputFocused:!1})},"option-input"),s.jsx("span",{className:"ml-2"})]},"cs-custom-container")),u.push(s.jsx("hr",{className:"mb-2"},"option-end")),u}render(){var{disabled:e,invalid:t,value:n,"data-testid":r}=this.props,{menuIsOpen:i}=this.state,{popperOptions:l}=this.props;return l=Be({placement:"bottom-end",modifiers:{preventOverflow:{enabled:!1}}},l),s.jsx("div",{className:"input-group cs-container context-menu",ref:this.csContainer,"data-testid":r,children:s.jsx("div",{className:w("input-group-append cs-dropdown",{"cs-dropdown-invalid":t}),children:s.jsxs("button",{type:"button",className:w("btn cs-btn form-control",{"cs-btn-invalid":t}),ref:this.button,onClick:this.toggleMenu,disabled:e,children:[s.jsx("span",{className:w({"text-muted":n===null}),children:this.getSelectedText()}),s.jsx("span",{className:"cs-caret"}),s.jsx(Ce,{isShown:i,actions:{menuElement:this.renderMenuElement()},popperOptions:l,popperClassName:"CustomTimeSelect",onMenuOpened:this.handleMenuOpened,onMenuClosed:this.handleMenuExited,menuStyle:{maxWidth:"100rem"}})]})})})}}L(_,"MENU_NAVIGATION_DIRECTION",Q);L(_,"DROP_DOWN_MENU_HEIGHT",125);L(_,"defaultProps",{onChange(){},value:null,disabled:!1,popperOptions:{},icon:Se,customText:"Custom",placeholder:"Select a time",valueToTime:a=>a===null?0:Math.round(a/1e3),timeToValue:a=>a*1e3,invalid:!1,"data-testid":void 0});const Nt=_;var Ge=fe.module("DateInput"),ze="[12][0-9]{3}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])",qe=["2000-01-01","2022-12-31"],Ze="YYYY-MM-DD",be=P.forwardRef((a,e)=>{var{className:t="",onChange:n=()=>{},defaultValue:r="",onFocus:i=()=>{},onBlur:l=()=>{},"data-testid":o}=a,[p,u]=c.useState(r),[d,h]=c.useState(),m=c.useCallback(f=>{Ge.debug("handleChange",f),u(f),n(f)},[n]);return s.jsx("div",{className:"d-flex flex-row align-items-center",children:s.jsx(me,{ref:e,className:w(t),example:qe,getNextSegmentValue:_e,onChange:m,onSelect:h,pattern:ze,placeholder:Ze,selection:d,value:p,onFocus:i,onBlur:l,"data-testid":o})})});be.displayName="DateInput";const xt=be;function Xe(a,e,t){return e=Ye(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function Ye(a){var e=Je(a,"string");return typeof e=="symbol"?e:String(e)}function Je(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}class B extends c.Component{static isParentSelected(e,t){var n=t.get(e);if(n===void 0)return!1;if(typeof n=="boolean")return n;var r=Array.from(n.values()).includes(!0),i=Array.from(n.values()).includes(!1);return r&&i?null:r}constructor(e){super(e),this.toggleMenu=this.toggleMenu.bind(this),this.toggleValueFor=this.toggleValueFor.bind(this),this.selectAll=this.selectAll.bind(this),this.clear=this.clear.bind(this),this.state={menuIsOpen:!1}}toggleMenu(e){e.stopPropagation(),e.preventDefault(),this.setState(t=>{var{menuIsOpen:n}=t;return{menuIsOpen:!n}})}toggleValueFor(e,t){var{valueMap:n,onUpdateValueMap:r}=this.props,i=new Map(n),l=i.get(e);if(l instanceof Map){var o=new Map(l);if(t!=null)o.set(t,l.get(t)===void 0);else{var p=B.isParentSelected(e,i),u=p==null||!p;l.forEach((m,f)=>o.set(f,u))}i.set(e,o)}else i.set(e,l==null||!l);var d=i.get(e);if(t===void 0&&d!==void 0&&typeof d!="boolean"){var h=B.isParentSelected(e,n);h!=null&&h?d.forEach((m,f)=>d.set(f,!1)):d.forEach((m,f)=>d.set(f,!0))}r(i)}setAllValues(e){var{valueMap:t,onUpdateValueMap:n}=this.props,r=new Map;t.forEach((i,l)=>{if(typeof i=="boolean")r.set(l,e);else{var o=new Map;i.forEach((p,u)=>o.set(u,e)),r.set(l,o)}}),n(r)}selectAll(){this.setAllValues(!0)}clear(){this.setAllValues(!1)}renderMenuElement(){var{valueMap:e,"data-testid":t}=this.props;return s.jsxs("div",{className:"hcm-menu-container",children:[Array.from(e.entries()).map(n=>{var[r,i]=n;return s.jsxs("div",{children:[s.jsx(ae,{className:"hcm-parent",checked:B.isParentSelected(r,e),onChange:()=>this.toggleValueFor(r),children:r}),i!==void 0&&typeof i!="boolean"&&Array.from(i.entries()).map(l=>{var[o,p]=l;return s.jsx(ae,{className:"hcm-child",checked:p,onChange:()=>this.toggleValueFor(r,o),children:o},o)})]},r)}),s.jsx(re,{kind:"ghost",onClick:this.selectAll,"data-testid":t!==void 0?"".concat(t,"-btn-select-all"):void 0,children:"Select All"}),s.jsx(re,{kind:"ghost",onClick:this.clear,"data-testid":t!==void 0?"".concat(t,"-btn-clear"):void 0,children:"Clear"})]})}render(){var{menuText:e,className:t,icon:n,id:r,"data-testid":i}=this.props,{menuIsOpen:l}=this.state;return s.jsxs("button",{type:"button",className:w("btn hcm-btn",t),onClick:this.toggleMenu,id:r,"data-testid":i,children:[s.jsxs("span",{children:[n&&s.jsx(X,{icon:n,className:"hcm-icon mr-1"}),e]}),s.jsx("span",{className:"cs-caret"}),s.jsx(pe,{options:{placement:"bottom"},isShown:l,onExited:()=>{this.setState({menuIsOpen:!1})},closeOnBlur:!0,interactive:!0,children:this.renderMenuElement()})]})}}Xe(B,"defaultProps",{className:"",icon:null,id:"","data-testid":void 0});const yt=B;var Qe=.025,et=.9,tt=.1,nt=.618,ue=80,W={SIZE:8,DOT_SIZE:2},V=18,at=250,rt=60*1e3,it={background:"var(--dh-color-random-area-plot-animation-bg)",foregroundFill:"var(--dh-color-random-area-plot-animation-fg-fill)",foregroundStroke:"var(--dh-color-random-area-plot-animation-fg-stroke)",gridColor:"var(--dh-color-random-area-plot-animation-grid)"};function st(){return Me(it)}var lt=P.memo(()=>{var{activeThemes:a}=ke(),e=c.useMemo(st,[a]),t=c.useRef(null),n=c.useRef(null),[r,i]=c.useState(!1),l=window.devicePixelRatio,o,p,u,d,h,m=null,f=[];function b(){var v;n.current!=null&&(u=n.current.offsetWidth,d=n.current.offsetHeight),t.current!=null&&(t.current.style.width="".concat(u,"px"),t.current.style.height="".concat(d,"px"),t.current.width=u*l,t.current.height=d*l),(v=o)===null||v===void 0||v.scale(l,l)}function I(){var{foregroundFill:v,foregroundStroke:N}=e,O=document.createElement("canvas");O.width=W.SIZE,O.height=W.SIZE;var A=O.getContext("2d");return A!=null&&(A.fillStyle=N,A.fillRect(0,0,W.DOT_SIZE,W.DOT_SIZE),A.fillStyle=v,A.fillRect(0,0,W.SIZE,W.SIZE)),A?.createPattern(O,"repeat")}function E(v){var N=Math.random()-.5,O=Qe*N;return v<tt?O=Math.abs(O):v>et&&(O=-Math.abs(O)),v+O}function S(){for(var v=[],N=nt,O=0;O<u+V;O+=1)N=E(N),v.push(N);return v}function M(){for(;f.length>=u+V;)f.pop();for(;f.length<u+V;)f.push(E(f[f.length-1]))}function U(v,N){N.beginPath(),N.moveTo(-1,d+1),N.lineTo(-1,d*v[0]);for(var O=0;O<v.length;O+=1)N.lineTo(O,d*v[O]);N.lineTo(u+V,d*v[v.length-1]),N.lineTo(u+V,d+1),N.closePath()}function $(v){v.beginPath();for(var N=1;N<u;N+=ue)v.moveTo(N,0),v.lineTo(N,d);for(var O=1;O<d;O+=ue)v.moveTo(0,O),v.lineTo(u,O)}function g(v){var N,O,A;m=(N=m)!==null&&N!==void 0?N:v;var{background:Ie,foregroundStroke:Te,gridColor:Ne}=e;Pe(o),o.fillStyle=Ie,o.fillRect(0,0,u,d),$(o),o.lineWidth=1,o.strokeStyle=Ne,o.stroke();var te=(((O=m)!==null&&O!==void 0?O:0)-(v??0))/(1e3/V);if(o.translate(te,0),U(f,o),o.lineWidth=2,o.strokeStyle=Te,o.stroke(),o.translate(-te,0),p!=null&&(o.fillStyle=p),o.fill(),o.setTransform(l,0,0,l,0,0),(v??0)-((A=m)!==null&&A!==void 0?A:0)>1e3/V){for(var q,xe=Math.floor(((v??0)-((q=m)!==null&&q!==void 0?q:0))/(1e3/V)),ne=0;ne<xe;ne+=1)f.shift(),f.push(E(f[f.length-1]));m=v}h!=null&&cancelAnimationFrame(h),h=requestAnimationFrame(g)}var k=Z(()=>{h=requestAnimationFrame(v=>{b(),M(),i(!1),g(v)})},at,{leading:!0});function T(){i(!0),h!=null&&cancelAnimationFrame(h),h=null,m=null}var C=Z(()=>{T()},rt);function D(){h==null&&(i(!1),b(),M(),h=requestAnimationFrame(g)),C()}function H(){document.hasFocus()&&D()}function ee(){h!=null&&cancelAnimationFrame(h),C(),k()}return c.useEffect(()=>{var v;return o=(v=t.current)===null||v===void 0?void 0:v.getContext("2d",{alpha:!1}),b(),f=S(),p=I(),g(),C(),window.addEventListener("resize",ee),window.addEventListener("focus",D),window.addEventListener("blur",T),window.addEventListener("mousemove",H),window.addEventListener("keydown",H),()=>{h!=null&&cancelAnimationFrame(h),window.removeEventListener("resize",ee),window.removeEventListener("focus",D),window.removeEventListener("blur",T),window.removeEventListener("mousemove",H),window.removeEventListener("keydown",H),C.cancel(),k.cancel()}},[e]),s.jsx("div",{className:"random-area-plot-animation-container",ref:n,children:s.jsx("canvas",{ref:t,className:r?"shade":""})})});const Et=lt,ot="_modified_5rbci_24",ut="_track_5rbci_35",dt="_handle_5rbci_15",ct="_ticks_5rbci_103",Oe={"handle-size":"15px","popover-width":"90px","time-slider":"_time-slider_5rbci_5","time-slider-popovers":"_time-slider-popovers_5rbci_10","handle-popper":"_handle-popper_5rbci_15",modified:ot,"flex-spacer":"_flex-spacer_5rbci_31",track:ut,"track-fills":"_track-fills_5rbci_42","track-fill":"_track-fill_5rbci_42","track-fill-start":"_track-fill-start_5rbci_60","track-fill-middle":"_track-fill-middle_5rbci_61","track-fill-end":"_track-fill-end_5rbci_64","handle-track":"_handle-track_5rbci_67",handle:dt,ticks:ct,"tick-labels":"_tick-labels_5rbci_121","tick-label":"_tick-label_5rbci_121","tick-label-wrapper":"_tick-label-wrapper_5rbci_137"};var G=parseInt(Oe["handle-size"],10),de=parseInt(Oe["popover-width"],10),j=24*60*60-1,ce=5*60;function Ct(a){var{startTime:e,endTime:t,onChange:n,isStartModified:r=!1,isEndModified:i=!1,"data-testid":l}=a,[o,p]=c.useState(e),[u,d]=c.useState(t),h=c.useRef(null);c.useEffect(function(){p(e),d(t)},[e,t]);var m=c.useCallback((I,E)=>{var S=I,M=E;S===M&&(M<j?M+=1:S-=1),p(S),d(M),n({startTime:S,endTime:M})},[p,d,n]),f=c.useCallback(I=>{m(I,u)},[m,u]),b=c.useCallback(I=>{m(o,I)},[m,o]);return s.jsxs("div",{className:"time-slider","data-testid":l,children:[s.jsx(ht,{startTime:o,endTime:u,onStartTimeChange:f,onEndTimeChange:b,isStartModified:r,isEndModified:i}),s.jsxs("div",{className:"track",ref:h,children:[s.jsx(pt,{startTime:o,endTime:u}),s.jsx("div",{className:"ticks",children:Array(24).fill(null).map((I,E)=>s.jsx("div",{className:"tick"},E))}),s.jsx(he,{track:h,time:o,setTime:f}),s.jsx(he,{track:h,time:u,setTime:b})]}),s.jsxs("div",{className:"tick-labels",children:[s.jsx("div",{className:"tick-label",children:"0:00"}),s.jsx("div",{className:"tick-label-wrapper",children:Array(24).fill(null).map((I,E)=>s.jsx("div",{className:"tick-label",children:"".concat(E+1,":00")},E))})]})]})}function ht(a){var{startTime:e,endTime:t,onStartTimeChange:n,onEndTimeChange:r,isStartModified:i,isEndModified:l,"data-testid":o}=a,p=e>t,[u,d]=c.useState(p?t:e),[h,m]=c.useState(p?e:t),f=c.useRef(null),b=c.useRef(null),I=c.useRef(null),E=c.useRef(null);c.useEffect(function(){d(e>t?t:e),m(e>t?e:t)},[e,t]),c.useEffect(function(){if(I.current!==null){var k;(k=b.current)===null||k===void 0||k.setSelection(I.current)}if(E.current!==null){var T;(T=f.current)===null||T===void 0||T.setSelection(E.current)}},[p]);function S(g){e<=t?n(g):r(g)}function M(g){e<=t?r(g):n(g)}var U=c.useCallback(g=>{I.current=g,E.current=null},[]),$=c.useCallback(g=>{I.current=null,E.current=g},[]);return s.jsxs("div",{className:"time-slider-popovers",children:[s.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat(u/j*100,"% - ").concat(de/2,"px)")}}),s.jsxs("div",{className:"handle-popper",children:[s.jsx("label",{className:w({modified:p?l:i}),children:p?"End Time":"Start Time"}),s.jsx(J,{ref:f,allowValueWrapping:!1,value:u,onChange:S,onSelect:U,"data-testid":o!==void 0?"".concat(o,"-input-1"):void 0})]}),s.jsx("div",{className:"flex-spacer"}),s.jsxs("div",{className:"handle-popper",children:[s.jsx("label",{className:w({modified:p?i:l}),children:p?"Start Time":"End Time"}),s.jsx(J,{ref:b,allowValueWrapping:!1,value:h,onChange:M,onSelect:$,"data-testid":o!==void 0?"".concat(o,"-input-2"):void 0})]}),s.jsx("div",{className:"flex",style:{flexBasis:"calc(".concat((j-h)/j*100,"% - ").concat(de/2,"px)")}})]})}function pt(a){var{startTime:e,endTime:t,"data-testid":n}=a;return s.jsxs("div",{className:"track-fills","data-testid":n,children:[e>t&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"track-fill track-fill-start",style:{transform:"scaleX(".concat(t/j,")")}}),s.jsx("div",{className:"track-fill track-fill-end",style:{transform:"scaleX(".concat((j-e)/j,")")}})]}),e<t&&s.jsx("div",{className:"track-fill track-fill-middle",style:{transform:"translateX(".concat(e/j*100,"%) scaleX(").concat((t-e)/j,")")}})]})}function he(a){var{track:e,time:t,setTime:n,"data-testid":r}=a,i=c.useMemo(()=>{var m=3600,f=G/2;return t<m?f=t/m*(G/2):t>23*m&&(f=G/2+1/(j-23*m)*(t-23*m)*(G/2)),"translateX(calc(".concat(t/j*100,"% - ").concat(f,"px))")},[t]),l=c.useCallback(m=>{if(!e.current)return 0;var f=e.current.getBoundingClientRect(),b=Math.max(m-f.left,0),I=j*Math.min(1,b/f.width),E=ce*Math.round(I/ce),S=Math.min(j,E);return S},[e]),o=c.useCallback(m=>{var{clientX:f}=m;n(l(f))},[n,l]),p=c.useCallback(m=>{var{clientX:f}=m;n(l(f)),window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",p),document.documentElement.classList.remove("drag-pointer-events-none")},[n,l,o]),u=c.useCallback(()=>{window.addEventListener("mousemove",o),window.addEventListener("mouseup",p),document.documentElement.classList.add("drag-pointer-events-none")},[o,p]),d=c.useCallback(()=>{window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",p),document.documentElement.classList.remove("drag-pointer-events-none")},[o,p]),h=c.useCallback(()=>{u()},[u]);return c.useEffect(function(){return()=>{d()}},[d]),s.jsx("div",{className:"handle-track",style:{transform:i},children:s.jsx("button",{className:"handle",type:"button","aria-label":"Change time",onMouseDown:h,"data-testid":r})})}function kt(a){var{children:e,className:t,labelText:n,hintText:r,isModified:i,validationError:l,showValidationError:o=!0,"data-testid":p,id:u}=a,{current:d}=c.useRef(u??Ee());return s.jsxs(s.Fragment,{children:[s.jsx("label",{className:w("validate-label",t,{modified:i}),htmlFor:d,"data-testid":p,children:n}),P.Children.toArray(e).map(h=>P.isValidElement(h)?P.cloneElement(h,{className:w(h.props.className,{"is-invalid":l})}):s.jsx("div",{className:w(t),children:h})),r!==void 0&&s.jsx("small",{className:"form-text text-muted",children:r}),l!==void 0&&o&&s.jsx("p",{className:"validate-label-error text-danger",children:l})]})}function K(a,e,t){return e=ft(e),e in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function ft(a){var e=mt(a,"string");return typeof e=="symbol"?e:String(e)}function mt(a,e){if(typeof a!="object"||a===null)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}class x extends je{static get theme(){return x._theme==null&&(x._theme=we()),x._theme}static makeRandomSeries(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,r=[],i=[],l=[],o=[],p=new Date("2018-06-01"),u=0;u<n;u+=1){var d=new Date(p.getFullYear(),p.getMonth(),p.getDate()+u-n);r.push("".concat(d.getFullYear(),"-").concat(d.getMonth()+1,"-").concat(d.getDate()));var h=(Math.sin(u/n*e)*n/3+Math.cos(u*.2)*n/6+Math.sin(u*.5)*n/10+x.random()*n/5+u*x.smoothing)*t;h=Math.round(h*100)/100,i.push(h),o.push(40+u*x.smoothing),l.push(Math.sin(u/n*e)*n/3+x.random()*n/10+u*x.smoothing)}return{x:r,y:i,s:l,l:o}}static makeScatter(e){return{name:"SCTR",x:e.x,y:e.y,type:"scatter",mode:"markers",hoverinfo:"skip",marker:{size:5}}}static makeArea(e){return{name:"AREA",x:e.x,y:e.s,type:"scatter",mode:"line",fill:"tozeroy",hoverinfo:"all",line:{width:3}}}static makeTrendline(e){return{name:"Trendline <br>R<sup>2</sup> = 0.91",x:e.x,y:e.l,type:"scatter",mode:"line",hoverinfo:"skip",line:{width:3,dash:"dot"}}}static makeErrorBand(e){for(var t=[],n=[],r=0;r<e.y.length;r+=1){var i=e.y[r];t[r]=Math.round((i+18)*100)/100,n[r]=Math.round((i-18)*100)/100}var l=t.concat(n.reverse());return{name:"error",x:e.x.concat(e.x.slice().reverse()),y:l,type:"scatter",mode:"line",hoverinfo:"skip",fill:"toself",line:{width:0,color:x.theme.error_band_line_color,shape:"spline"}}}static makeLine(e){return{name:"LINE",x:e.x,y:e.y,type:"scatter",mode:"line",hoverinfo:"x+y+text+name",line:{width:3}}}static makeRandomData(){var e=x.makeRandomSeries(6),t=x.makeArea(e),n=x.makeTrendline(e),r=x.makeRandomSeries(2),i=x.makeLine(r),l=x.makeErrorBand(r);return[t,n,i,l]}static makeDefaultLayout(e){var t={template:new Ae(e).makeDefaultTemplate(x.theme)};return t.title="Chart",t.xaxis={title:"Datestamp"},t.yaxis={title:"Price"},t}constructor(e){var{data:t=x.makeRandomData(),layout:n=x.makeDefaultLayout(e),filterFields:r=[]}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(e),K(this,"data",void 0),K(this,"filterFields",void 0),K(this,"layout",void 0),this.data=t,this.layout=n,this.filterFields=r}getData(){return this.data}getLayout(){return this.layout}getFilterColumnMap(){for(var e=new Map,t=0;t<this.filterFields.length;t+=1){var n=this.filterFields[t],r="java.lang.String";e.set(n,{name:n,type:r})}return e}isFilterRequired(){return this.filterFields.length>0}setFilter(){this.fireUpdate(this.data)}}K(x,"random",Math.random.bind(Math));K(x,"smoothing",1.5);K(x,"_theme",void 0);const wt=x;var vt=c.createContext(!1);function St(a){var{fontClassNames:e=["fira-sans-regular","fira-sans-semibold","fira-mono"],children:t}=a,[n,r]=c.useState(!1);return c.useEffect(function(){document.fonts.ready.then(()=>{r(!0)})},[]),s.jsxs(s.Fragment,{children:[s.jsx(vt.Provider,{value:n,children:t}),s.jsx("div",{id:"preload-fonts",style:{visibility:"hidden",position:"absolute",top:-1e4},children:e.map(i=>s.jsx("p",{className:i,children:"preload"},i))})]})}export{Tt as A,Nt as C,xt as D,vt as F,yt as H,wt as M,J as T,kt as V,ve as a,Et as b,Ct as c,St as d};
|
|
4
|
-
//# sourceMappingURL=FontBootstrap-
|
|
4
|
+
//# sourceMappingURL=FontBootstrap-f7fb13f9.js.map
|