(window.webpackJsonp=window.webpackJsonp||[]).push([["new-edit-object-dialog"],{"/Hwa":function(e,t,n){"use strict";var r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("17x9"),t.makeSwitchGroupItem=function(e){return(t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onChange=function(t){e.context.switchGroupContext.getOnChange()(t)},e._onUpdate=function(t){t.includes(e.props.value)&&e.forceUpdate()},e}return r.__extends(n,t),n.prototype.componentDidMount=function(){this.context.switchGroupContext.subscribe(this._onUpdate)},n.prototype.render=function(){return o.createElement(e,r.__assign({},this.props,{name:this._getName(),onChange:this._onChange,checked:this._isChecked()}))},n.prototype.componentWillUnmount=function(){this.context.switchGroupContext.unsubscribe(this._onUpdate)},n.prototype._getName=function(){return this.context.switchGroupContext.getName()},n.prototype._isChecked=function(){return this.context.switchGroupContext.getValues().includes(this.props.value)},n}(o.PureComponent)).contextTypes={switchGroupContext:i.any.isRequired},t;var t}},"/YRR":function(e,t){e.exports=''},"01Ho":function(e,t){e.exports=''},"0Mig":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mrSG");r.__exportStar(n("omE6"),t),r.__exportStar(n("/Hwa"),t)},"1Kfe":function(e,t,n){e.exports={container:"container-3jqXx6VY-",sectionTitle:"sectionTitle-14f4vHhw-",separator:"separator-37206dUD-",customButton:"customButton-1OVL2GM7-"}},"4Njr":function(e,t){e.exports=''},"4ZyK":function(e,t){e.exports=''},"5VK0":function(e,t,n){e.exports={scrollWrap:"scrollWrap-hMorJ3oa-",tabsWrap:"tabsWrap-DW4tJckL-",tabs:"tabs-2ZEU3acm-",tab:"tab-1l4dFt6c-",withHover:"withHover-1_-qVdZP-",headerBottomSeparator:"headerBottomSeparator-1v9qLLAy-"}},"5o6O":function(e,t,n){e.exports={tabs:"tabs-1LGqoVz6-",tab:"tab-1Yr0rq0J-",noBorder:"noBorder-oc3HwerO-",disabled:"disabled-s8cEYElA-",active:"active-37sipdzm-",defaultCursor:"defaultCursor-Np9BHjTg-",slider:"slider-1-X4lOmE-",content:"content-2asssfGq-"}},"6ix9":function(e,t,n){e.exports={content:"content-jw-2aYgg-",cell:"cell-hIDC3uV--",inner:"inner--hn7i_PK-", first:"first-2n3flLMC-",fill:"fill-1Pff_fQf-",last:"last-3u0rzQsJ-",top:"top-E6bk4zZh-",grouped:"grouped-HUhXUUdM-",separator:"separator-27YVz1Zr-",groupSeparator:"groupSeparator-3LbEcdXc-",adaptive:"adaptive-3nNVfvpI-"}},"7yjv":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("TSYQ");t.getButtonClasses=function(e,t){var n=t.intent,o=void 0===n?"primary":n,i=t.size,a=void 0===i?"m":i,s=t.appearance,l=void 0===s?"default":s,c=t.useFullWidth,u=void 0!==c&&c,p=t.tabIndex,d=void 0===p?0:p,h=t.icon,m=t.className;return r(m,e.button,e["size-"+a],e["intent-"+o],e["appearance-"+l],u&&e["full-width"],-1===d&&e.noOutline,h&&"s"!==a&&e["with-icon"])}},"8E5s":function(e){e.exports={switcherWrapper:"switcherWrapper-1wFH-_jm-",input:"input-J7QIcTTo-",switcherThumbWrapper:"switcherThumbWrapper-2u191lDO-",switcherTrack:"switcherTrack-2XruDVTa-",switcherThumb:"switcherThumb-2yuEucci-",focus:"focus-uZMRkCO0-"}},"9+jD":function(e,t,n){e.exports={scrollable:"scrollable-2JmGKstT-"}},"91aW":function(e,t,n){e.exports={colorPickerWrap:"colorPickerWrap-g7MZN9Dl-",isFocused:"isFocused-3wuPc5Da-",readonly:"readonly-2Xub3oHm-",disabled:"disabled-24dvPoDK-",error:"error-31TTEMpu-",input:"input-2GDyVcsR-",colorPicker:"colorPicker-2OGp6qQ6-",swatch:"swatch-3YbCY5LA-",white:"white-LBubMjih-",opacitySwatch:"opacitySwatch-rUAVaCZe-",colorLine:"colorLine-2IHeLUz--",thicknessContainer:"thicknessContainer-1FjUUtPP-",thicknessTitle:"thicknessTitle-2dGkHaSV-"}},"95N5":function(e,t,n){e.exports={wrap:"wrap-3KIz6IQG-",thicknessItem:"thicknessItem-1D40arGe-",checked:"checked-pDy7EtmX-",radio:"radio-mk150mXO-",bar:"bar-3l4jwcsX-"}},"9FXF":function(e,t){e.exports=''},"9XXR":function(e,t,n){"use strict";function r(e,t){var n,r;return void 0===t&&(t=" "),-1!==(n=e+"").indexOf("e")&&(n=function(e){return Object(o.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e))),(r=n.split("."))[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(r[1]?"."+r[1]:"")}var o;n.r(t),n.d(t,"splitThousands",function(){return r}),o=n("ivNn")},"9dlw":function(e,t,n){"use strict";var r,o,i,a,s,l,c,u,p;n.d(t,"a",function(){return p}),r=n("mrSG"),o=n("bf9a"),i=n("q1tI"),a=n("i8i4"),s=n("17x9"),l=n("RgaO"),c=n("AiMB"),u=n("DTHj"),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleClose=function(){t.props.onClose()},t._handleClickOutside=function(e){var n,r=t.props,o=r.closeOnClickOutside,i=r.onClickOutside,s=r.doNotCloseOn;i&&i(e),o&&(s&&e.target instanceof Node&&(n=a.findDOMNode(s))instanceof Node&&n.contains(e.target)||t._handleClose())},t._handleScroll=function(e){var n=t.props.onScroll;n&&n(e),e.stopPropagation()},t}return r.__extends(t,e),t.prototype.componentWillReceiveProps=function(e){this.props.isOpened&&!e.isOpened&&this.setState({isMeasureValid:void 0})},t.prototype.render=function(){ var e=this.props,t=e.children,n=e.isOpened,o=(e.closeOnClickOutside,e.doNotCloseOn,e.onClickOutside,e.onClose,r.__rest(e,["children","isOpened","closeOnClickOutside","doNotCloseOn","onClickOutside","onClose"]));return n?i.createElement(c.a,null,i.createElement(l.a,{handler:this._handleClickOutside,mouseDown:!0,touchStart:!0},i.createElement(u.a,r.__assign({},o,{isOpened:n,onClose:this._handleClose,onScroll:this._handleScroll,customCloseDelegate:this.context.customCloseDelegate}),t))):null},t.contextTypes={customCloseDelegate:s.any},t.defaultProps={closeOnClickOutside:!0},t}(i.PureComponent)},CZlE:function(e,t,n){"use strict";var r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("TSYQ"),a=n("OxS6"),n("mR1d"),t.makeIcon=function(e){return function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(n,t),n.prototype.render=function(){var t=i(a.icon,this.props.className);return o.createElement("div",{className:t,dangerouslySetInnerHTML:{__html:e}})},n}(o.PureComponent)}},Ce4d:function(e,t,n){e.exports={container:"container-AqxbM340-",isFocused:"isFocused-7mTKfuzg-",readonly:"readonly-3YlYTz9Q-",disabled:"disabled-3kisU58M-",error:"error-2iYMTIjO-",input:"input-1U-fFP73-",placeholder:"placeholder-3IHl8nis-",selected:"selected-2IjEMdXr-",hiddenArrow:"hiddenArrow-1HtcxiMc-",button:"button-yGQ2leGL-",isOpen:"isOpen-2Z30Tav4-",icon:"icon-1UiKQ-Y--"}},D2im:function(e,t){e.exports=''},DXuF:function(e,t,n){e.exports={swatches:"swatches-2NO2y7Xs-",swatch:"swatch-CMyFZXry-",empty:"empty-1lteEy1B-",white:"white-RBcZELAh-",selected:"selected-3mQR-gqr-"}},Dj0x:function(e,t){e.exports=''},FgZj:function(e,t,n){},"H+g1":function(e,t,n){"use strict";var r,o,i,a,s,l,c;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("TSYQ"),a=n("0Mig"),s=n("Lv+c"),l=n("eHOe"),n("FgZj"),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(){t.props.onChange&&t.props.onChange(t.props.value)},t}return r.__extends(t,e),t.prototype.render=function(){var e,t,n,r=i(this.props.className,l.checkbox,((e={})[l.reverse]=Boolean(this.props.labelPositionReverse),e)),a=i(l.box,((t={})[l.check]=!Boolean(this.props.indeterminate),t[l.dot]=Boolean(this.props.indeterminate),t[l.noOutline]=-1===this.props.tabIndex,t)),c=i(l.label,((n={})[l.disabled]=this.props.disabled,n)),u=null;return this.props.label&&(u=o.createElement("span",{className:c},this.props.label)),o.createElement("label",{className:r},o.createElement("div",{className:l.wrapper,title:this.props.title},o.createElement("input",{id:this.props.id,tabIndex:this.props.tabIndex,className:l.input,type:"checkbox",name:this.props.name, checked:this.props.checked,disabled:this.props.disabled,value:this.props.value,autoFocus:this.props.autoFocus,role:this.props.role,onChange:this._onChange,ref:this.props.reference}),o.createElement("div",{className:a},o.createElement(s.CheckIcon,{className:l.icon}))),u)},t.defaultProps={value:"on"},t}(o.PureComponent),t.Checkbox=c,t.GroupedCheckbox=a.makeSwitchGroupItem(c)},Hk3L:function(e,t,n){e.exports={container:"container-2kDJVADV-",isFocused:"isFocused-ypbVKrsj-",readonly:"readonly-3PcaDYes-",disabled:"disabled-3y5wOPXy-",error:"error-3omEaj9F-",input:"input-1Fp9QlzO-",thickBorder:"thickBorder-3W4KWCy_-","intent-success":"intent-success-2qRddKlF-","intent-warning":"intent-warning-3nKtF1a7-","intent-danger":"intent-danger-2UcBu3hY-","intent-primary":"intent-primary-1GPjPo8I-",icon:"icon-1S_6X6gw-",iconRight:"iconRight-yLWVMTca-"}},K3s3:function(e,t,n){"use strict";function r(e){var t,n=s(e.className,c.tab,((t={})[c.active]=e.isActive,t[c.disabled]=e.isDisabled,t[c.defaultCursor]=!!e.shouldUseDefaultCursor,t[c.noBorder]=!!e.noBorder,t));return a.createElement("div",{className:n,onClick:e.onClick,ref:e.reference},e.children)}function o(e){return function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.activeTab={current:null},e}return i.__extends(n,t),n.prototype.componentDidUpdate=function(){var e=Object(l.ensureNotNull)(this._slider),t=e.style;t.transition="transform 350ms",this._componentDidUpdate()},n.prototype.componentDidMount=function(){this._componentDidUpdate()},n.prototype.render=function(){var t=this,n=this.props.className,r=this._generateTabs();return a.createElement("div",{className:s(n,c.tabs)},r,a.createElement(e,{reference:function(e){t._slider=e}}))},n.prototype._generateTabs=function(){var e=this;return this.activeTab.current=null,a.Children.map(this.props.children,function(t){var n=t,r=Boolean(n.props.isActive),o={reference:function(t){r&&(e.activeTab.current=t),n.props.reference&&n.props.reference(t)}};return a.cloneElement(n,o)})},n.prototype._componentDidUpdate=function(){var e,t,n=Object(l.ensureNotNull)(this._slider),r=n.style;this.activeTab.current?(e=this.activeTab.current.offsetWidth,t=this.activeTab.current.offsetLeft,r.transform="translateX("+t+"px)",r.width=e+"px",r.opacity="1"):r.opacity="0"},n}(a.PureComponent)}var i,a,s,l,c,u;n.d(t,"a",function(){return u}),n.d(t,"b",function(){return r}),n.d(t,"c",function(){return o}),i=n("mrSG"),a=n("q1tI"),s=n("TSYQ"),l=n("Eyy1"),c=n("5o6O"),u=c,o(function(e){return a.createElement("div",{className:c.slider,ref:e.reference})})},KKsp:function(e,t,n){"use strict";function r(e){return o.createElement("div",{className:i.separator})}var o,i;n.d(t,"a",function(){return r}),o=n("q1tI"),i=n("NOPy")},KLV3:function(e){e.exports={button:"button-1iktpaT1-",content:"content-2PGssb8d-",noOutline:"noOutline-d9Yp4qvi-","appearance-default":"appearance-default-dMjF_2Hu-","intent-primary":"intent-primary-1-IOYcbg-","intent-success":"intent-success-25a4XZXM-","intent-default":"intent-default-2ZbSqQDs-", "intent-warning":"intent-warning-24j5HMi0-","intent-danger":"intent-danger-1EETHCla-","appearance-stroke":"appearance-stroke-12lxiUSM-","appearance-text":"appearance-text-DqKJVT3U-","size-s":"size-s-3mait84m-","size-m":"size-m-2G7L7Qat-","size-l":"size-l-2NEs9_xt-","full-width":"full-width-1wU8ljjC-","with-icon":"with-icon-yumghDr--",icon:"icon-1grlgNdV-"}},"Lv+c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("mrSG").__exportStar(n("mD/u"),t)},Ly1u:function(e,t){e.exports=''},N5tr:function(e,t,n){"use strict";function r(e){return a.createElement(e.href?"a":"div",e)}function o(e){e.stopPropagation()}var i,a,s,l,c,u,p,d;n.d(t,"a",function(){return d}),i=n("mrSG"),a=n("q1tI"),s=n("TSYQ"),l=n("tWVy"),c=n("tITk"),u=n("QpNh"),p=n("v1bN"),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._handleClick=function(e){var n=t.props,r=n.dontClosePopup,o=n.isDisabled,i=n.onClick,a=n.onClickArg,s=n.trackEventObject;o||(s&&Object(c.trackEvent)(s.category,s.event,s.label),i&&i(a,e),r||Object(l.b)())},t._handleMouseUp=function(e){var n=t.props,r=n.link,o=n.trackEventObject;1===e.button&&r&&o&&Object(c.trackEvent)(o.category,o.event,o.label)},t._formatShortcut=function(e){return e&&e.split("+").join(" + ")},t}return i.__extends(t,e),t.prototype.render=function(){var e,t,n=this.props,l=n.className,c=n.shortcut,d=n.forceShowShortcuts,h=n.icon,m=n.isActive,f=n.isDisabled,v=n.isHovered,_=n.appearAsDisabled,g=n.label,y=n.link,b=n.showToolboxOnHover,C=n.target,w=n.toolbox,E=n.theme,S=void 0===E?p:E,x=Object(u.a)(this.props);return a.createElement(r,i.__assign({},x,{className:s(l,S.item,h&&S.withIcon,(e={},e[S.isActive]=m,e[S.isDisabled]=f||_,e[S.hovered]=v,e)),href:y,target:C,onClick:this._handleClick,onMouseUp:this._handleMouseUp}),void 0!==h&&a.createElement("div",{className:S.icon,dangerouslySetInnerHTML:{__html:h}}),a.createElement("div",{className:S.labelRow},a.createElement("div",{className:S.label},g)),(void 0!==c||d)&&a.createElement("div",{className:S.shortcut},this._formatShortcut(c)),void 0!==w&&a.createElement("div",{onClick:o,className:s(S.toolbox,(t={},t[S.showOnHover]=b,t))},w))},t}(a.PureComponent)},NOPy:function(e,t,n){e.exports={separator:"separator-25lkUpN--"}},OP2o:function(e,t,n){e.exports={wrapper:"wrapper-3Sj-FzgR-",hovered:"hovered-1G0yygIe-",labelRow:"labelRow-3h7cSJ_L-",label:"label-3iLxp29M-",labelOn:"labelOn-10QGwv2n-",labelHint:"labelHint-3qxeiVfa-"}},Oqo1:function(e,t,n){e.exports={opacity:"opacity-2aYjtVUz-",opacitySlider:"opacitySlider-2S5vLqQZ-",opacitySliderGradient:"opacitySliderGradient-1uUWtQAG-",pointer:"pointer-3pBhp8nL-",dragged:"dragged-1FWLoCMd-",opacityPointerWrap:"opacityPointerWrap-133eLPOE-",opacityInputWrap:"opacityInputWrap-1okRhpq9-",opacityInput:"opacityInput-1A9bqplo-",opacityInputPercent:"opacityInputPercent-n0mDvs0P-"}},OxS6:function(e){e.exports={icon:"icon-3qYrZx7p-"}},"R4+T":function(e,t){ e.exports=''},UXdH:function(e,t){e.exports=''},V1YL:function(e,t,n){e.exports={recalculateCheckbox:"recalculateCheckbox-1Xa1TR7D-",descriptionCell:"descriptionCell-3oIbGAm4-"}},VKCZ:function(e,t,n){"use strict";var r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("7yjv"),a=n("KLV3"),n("cEAz"),t.Button=function(e){var t=e.intent,n=e.size,s=e.appearance,l=e.disabled,c=e.useFullWidth,u=e.reference,p=e.icon,d=e.children,h=e.tabIndex,m=r.__rest(e,["intent","size","appearance","disabled","useFullWidth","reference","icon","children","tabIndex"]),f=i.getButtonClasses(a,{intent:t,size:n,appearance:s,disabled:l,useFullWidth:c,tabIndex:h,icon:p});return o.createElement("button",r.__assign({className:f,disabled:l,ref:u,tabIndex:h},m),p&&"s"!==n&&o.createElement("span",{className:a.icon},p),o.createElement("span",{className:a.content},d))}},WIlE:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("mrSG").__exportStar(n("l5G/"),t)},"XhS/":function(e,t,n){"use strict";var r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("7yjv"),a=n("KLV3"),n("cEAz"),t.AnchorButton=function(e){var t=e.intent,n=e.size,s=e.appearance,l=e.disabled,c=e.useFullWidth,u=e.reference,p=e.icon,d=e.children,h=e.href,m=e.tabIndex,f=r.__rest(e,["intent","size","appearance","disabled","useFullWidth","reference","icon","children","href","tabIndex"]),v=i.getButtonClasses(a,{intent:t,size:n,appearance:s,disabled:l,useFullWidth:c,tabIndex:m,icon:p});return o.createElement("a",r.__assign({className:v,href:l?void 0:h,"aria-disabled":l,ref:u,tabIndex:m},f),p&&"s"!==n&&o.createElement("span",{className:a.icon},p),o.createElement("span",{className:a.content},d))}},ZOCd:function(e,t){e.exports=''},"ZSM+":function(e,t){e.exports=''},"ZgM/":function(e,t,n){e.exports={inputWithErrorWrapper:"inputWithErrorWrapper-3VldItns-",disabled:"disabled-1H5pTmbC-",thickBorder:"thickBorder-17UV-SuS-",readonly:"readonly-3wmbSVwP-",focused:"focused-3rk113Ah-",innerInput:"innerInput-29Ku0bwF-",error:"error-32uXEKXM-",inputWithError:"inputWithError-1wKt_k8s-",inputContainer:"inputContainer-2JfcvOzg-",inputContainerFix:"inputContainerFix-3bYyvsOT-",innerInputContainer:"innerInputContainer-FSOtBYl0-",innerInputFix:"innerInputFix-3nQEuMmn-", errorMessage:"errorMessage-3U3e1ayv-",iconBlock:"iconBlock-1uOkuIhU-"}},ZtdB:function(e,t){e.exports=''},bQEj:function(e,t){e.exports=''},br6c:function(e,t){e.exports=''},cEAz:function(e,t,n){},chcq:function(e,t,n){},dMmr:function(e,t,n){e.exports={slider:"slider-2TOmsMP8-",inner:"inner-21p4mP7K-"}},dWaX:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("mrSG").__exportStar(n("H+g1"),t)},eHOe:function(e){e.exports={checkbox:"checkbox-3xZUD-2M-",input:"input-ly-CSnj5-",box:"box-20C92a5S-",reverse:"reverse-3xeTx96y-",label:"label-cyItEVpF-",wrapper:"wrapper-1AZBBaMW-",icon:"icon-3dOOKDQo-",noOutline:"noOutline-3wgQ5xZI-",check:"check-13mv3fTM-",dot:"dot-3FRmUbXl-"}},flzi:function(e,t){e.exports=''},iB0j:function(e,t){e.exports=''},"jpE+":function(e,t,n){e.exports={hue:"hue-2mlXxlkM-",pointer:"pointer-3fNcCimp-",pointerContainer:"pointerContainer-1T_sOwrr-"}},kMtk:function(e,t){e.exports=''},"l5G/":function(e,t,n){"use strict";var r,o,i,a,s;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("TSYQ"),a=n("8E5s"),n("chcq"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.reference,s=r.__rest(e,["className","reference"]),l=i(a.input,-1!==this.props.tabIndex&&a.focus);return o.createElement("div",{className:i(t,a.switcherWrapper)},o.createElement("input",r.__assign({},s,{type:"checkbox",className:l,ref:n})),o.createElement("div",{className:a.switcherThumbWrapper},o.createElement("div",{className:a.switcherTrack}),o.createElement("div",{className:a.switcherThumb})))},t}(o.PureComponent),t.Switch=s},lOpG:function(e,t){e.exports=''},lY1a:function(e,t,n){e.exports={saturation:"saturation-2SLmW8C--",pointer:"pointer-2fX2g8ap-"}},leq5:function(e,t){ e.exports=''},"m+Gx":function(e,t){e.exports=''},"mD/u":function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),r=n("CZlE"),o=n("ZOCd"),t.CheckIcon=r.makeIcon(o)},mPKq:function(e,t,n){e.exports={itemWrap:"itemWrap-1l2e2sHG-",item:"item-Nzo-hGTv-",icon:"icon-P5EULTkT-",selected:"selected-1XdidPev-",label:"label-1SpxmZgG-"}},mR1d:function(e,t,n){},mZ7d:function(e,t,n){e.exports={dialog:"dialog-JRH26tka-",wrapper:"wrapper-2B9fDla2-",header:"header-1kCeIimW-",title:"title-PguUJuCM-",ellipsis:"ellipsis-2RjgOBwv-",defaultsButtonText:"defaultsButtonText-1AOMd0Vb-",defaultsButtonItem:"defaultsButtonItem-28r4w14T-",closeButton:"closeButton-2hAsmqaP-",okButton:"okButton-1Y7fzF0C-",footer:"footer-2ulFfvmF-",footerLeft:"footerLeft-3evpQgST-"}},nc0P:function(e,t,n){var r;!function(o){"use strict";function i(e,t,n,r){var o=e.c,i=e.e+t+1;if(i=5;else if(2===n)r=o[i]>5||5==o[i]&&(r||i<0||o[i+1]!==g||1&o[i-1]);else if(3===n)r=r||!!o[0];else if(r=!1,0!==n)throw Error(v);if(i<1)o.length=1,r?(e.e=-t,o[0]=1):o[0]=e.e=0;else{if(o.length=i--,r)for(;++o[i]>9;)o[i]=0,i--||(++e.e,o.unshift(1));for(i=o.length;!o[--i];)o.pop()}}else if(n<0||n>3||n!==~~n)throw Error(v);return e}function a(e,t,n,r){var o,a,s=e.constructor,l=!e.c[0];if(n!==g){if(n!==~~n||n<(3==t)||n>u)throw Error(3==t?m+"precision":f);for(n=r-(e=new s(e)).e,e.c.length>++r&&i(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length=s.PE))a=a.charAt(0)+(n>1?"."+a.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)a="0"+a;a="0."+a}else if(o>0)if(++o>n)for(o-=n;o--;)a+="0";else o1&&(a=a.charAt(0)+"."+a.slice(1));return e.s<0&&(!l||4==t)?"-"+a:a}var s,l=20,c=1,u=1e6,p=-7,d=21,h="[big.js] ",m=h+"Invalid ",f=m+"decimal places",v=m+"rounding mode",_={},g=void 0,y=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;_.abs=function(){var e=new this.constructor(this);return e.s=1,e},_.cmp=function(e){var t,n=this,r=n.c,o=(e=new n.constructor(e)).c,i=n.s,a=e.s,s=n.e,l=e.e;if(!r[0]||!o[0])return r[0]?i:o[0]?-a:0;if(i!=a)return i;if(t=i<0,s!=l)return s>l^t?1:-1;for(a=(s=r.length)<(l=o.length)?s:l,i=-1;++io[i]^t?1:-1;return s==l?0:s>l^t?1:-1},_.div=function(e){var t,n,r,o,a,s,l,c,p,d,h,m,v,_,y=this,b=y.constructor,C=y.c,w=(e=new b(e)).c,E=y.s==e.s?1:-1,S=b.DP;if(S!==~~S||S<0||S>u)throw Error(f);if(!w[0])throw Error("[big.js] Division by zero");if(!C[0])return new b(0*E);for(s=w.slice(),l=t=w.length,c=C.length,d=(p=C.slice(0,t)).length,m=(h=e).c=[],v=0,_=S+(h.e=y.e-e.e)+1,h.s=E,E=_<0?0:_,s.unshift(0);d++d?1:-1;else for(a=-1,o=0;++ap[a]?1:-1;break}if(!(o<0))break;for(n=d==t?w:s;d;){if(p[--d]_&&i(h,S,b.RM,p[0]!==g),h},_.eq=function(e){return!this.cmp(e)},_.gt=function(e){return this.cmp(e)>0},_.gte=function(e){return this.cmp(e)>-1},_.lt=function(e){return this.cmp(e)<0},_.lte=function(e){return this.cmp(e)<1},_.minus=_.sub=function(e){var t,n,r,o,i,a,s,l,c=this,u=c.constructor,p=c.s,d=(e=new u(e)).s;if(p!=d)return e.s=-d,c.plus(e);if(i=c.c.slice(),a=c.e,s=e.c,l=e.e,!i[0]||!s[0])return s[0]?(e.s=-d,e):new u(i[0]?c:0);if(p=a-l){for((o=p<0)?(p=-p,r=i):(l=a,r=s),r.reverse(),d=p;d--;)r.push(0);r.reverse()}else for(n=((o=i.length0)for(;d--;)i[t++]=0;for(d=t;n>p;){if(i[--n]0?(o=n,t=i):(l=-l,t=r),t.reverse();l--;)t.push(0);t.reverse()}for(r.length-i.length<0&&(t=i,i=r,r=t),l=i.length,c=0;l;r[l]%=10)c=(r[--l]=r[l]+i[l]+c)/10|0;for(c&&(r.unshift(c),++o),l=r.length;0===r[--l];)r.pop();return e.c=r,e.e=o,e},_.pow=function(e){var t=this,n=new t.constructor(1),r=n,o=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(m+"exponent");for(o&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return o?n.div(r):r},_.round=function(e,t){var n=this.constructor;if(e===g)e=0;else if(e!==~~e||e<-u||e>u)throw Error(f);return i(new n(this),e,t===g?n.RM:t)},_.sqrt=function(){var e,t,n,r=this,o=r.constructor,a=r.s,s=r.e,l=new o(.5);if(!r.c[0])return new o(r);if(a<0)throw Error(h+"No square root");0===(a=Math.sqrt(r+""))||a===1/0?((t=r.c.join("")).length+s&1||(t+="0"),a=Math.sqrt(t),s=((s+1)/2|0)-(s<0||1&s),e=new o((a==1/0?"1e":(a=a.toExponential()).slice(0,a.indexOf("e")+1))+s)):e=new o(a),s=e.e+(o.DP+=4);do{n=e,e=l.times(n.plus(r.div(n)))}while(n.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return i(e,o.DP-=4,o.RM)},_.times=_.mul=function(e){var t,n=this,r=n.constructor,o=n.c,i=(e=new r(e)).c,a=o.length,s=i.length,l=n.e,c=e.e;if(e.s=n.s==e.s?1:-1,!o[0]||!i[0])return new r(0*e.s);for(e.e=l+c,al;)s=t[c]+i[l]*o[c-l-1]+s,t[c--]=s%10,s=s/10|0;t[c]=(t[c]+s)%10}for(s?++e.e:t.shift(),l=t.length;!t[--l];)t.pop();return e.c=t,e},_.toExponential=function(e){ return a(this,1,e,e)},_.toFixed=function(e){return a(this,2,e,this.e+e)},_.toPrecision=function(e){return a(this,3,e,e-1)},_.toString=function(){return a(this)},_.valueOf=_.toJSON=function(){return a(this,4)},(s=function e(){function t(n){var r=this;if(!(r instanceof t))return n===g?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice()):function(e,t){var n,r,o;if(0===t&&1/t<0)t="-0";else if(!y.test(t+=""))throw Error(m+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),o=t.length,r=0;r0&&"0"==t.charAt(--o););for(e.e=n-r-1,e.c=[],n=0;r<=o;)e.c[n++]=+t.charAt(r++)}}(r,n),r.constructor=t}return t.prototype=_,t.DP=l,t.RM=c,t.NE=p,t.PE=d,t.version="5.2.2",t}()).default=s.Big=s,void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()},omE6:function(e,t,n){"use strict";var r,o,i,a;Object.defineProperty(t,"__esModule",{value:!0}),r=n("mrSG"),o=n("q1tI"),i=n("17x9"),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._subscriptions=new Set,t._getName=function(){return t.props.name},t._getValues=function(){return t.props.values},t._getOnChange=function(){return t.props.onChange},t._subscribe=function(e){t._subscriptions.add(e)},t._unsubscribe=function(e){t._subscriptions.delete(e)},t}return r.__extends(t,e),t.prototype.getChildContext=function(){return{switchGroupContext:{getName:this._getName,getValues:this._getValues,getOnChange:this._getOnChange,subscribe:this._subscribe,unsubscribe:this._unsubscribe}}},t.prototype.render=function(){return this.props.children},t.prototype.componentDidUpdate=function(e){this._notify(this._getUpdates(this.props.values,e.values))},t.prototype._notify=function(e){this._subscriptions.forEach(function(t){return t(e)})},t.prototype._getUpdates=function(e,t){return t.concat(e).filter(function(n){return t.includes(n)?!e.includes(n):e.includes(n)})},t.childContextTypes={switchGroupContext:i.any.isRequired},t}(o.PureComponent),t.SwitchGroup=a},rbFW:function(e,t,n){e.exports={focusedInput:"focusedInput-3Maf-avB-",clock:"clock-2kk8-9TY-"}},"rlj/":function(e,t){e.exports=''},"sPU+":function(e,t){e.exports=''},tDS2:function(e,t,n){e.exports={input:"input-2M6pUl-Q-",checkbox:"checkbox-15VqCFje-",label:"label-3rCCk0Td-",symbolInput:"symbolInput-1r0O05gG-",isFocused:"isFocused-3ps_uNFG-",readonly:"readonly-3HE9PFCu-",disabled:"disabled-3omO9UCm-",error:"error-3HEkUG-H-",dropdownMenu:"dropdownMenu-sPl98nIf-",sessionStart:"sessionStart-20Y_zZKF-",sessionEnd:"sessionEnd-Biyt0SRM-", sessionDash:"sessionDash-3i8ftDqe-",inputGroup:"inputGroup-13um8mnj-"}},tH7p:function(e,t){e.exports=''},tQCG:function(e,t){e.exports=''},uJfL:function(e,t,n){e.exports={container:"container-1-OmVBa--",form:"form-1PwJY7C7-",swatch:"swatch-1yekatxU-",inputWrap:"inputWrap-11zHN5-G-",inputHash:"inputHash-2IZ-P-A4-",input:"input-35LrVJJj-",buttonWrap:"buttonWrap-37bmOXG9-",hueSaturationWrap:"hueSaturationWrap-2qtz1WJa-",saturation:"saturation-3duvfnxs-",hue:"hue-31zIOKyJ-"}},uZsJ:function(e,t,n){e.exports={controlWrapper:"controlWrapper-skuqZLfC-",hidden:"hidden-3NLdXwWA-",control:"control-1HTkHp6S-",controlIncrease:"controlIncrease-2YFIq5Gk-",controlDecrease:"controlDecrease-3RZJUOOQ-",increaseControlIcon:"increaseControlIcon-1tvvZsEf-",decreaseControlIcon:"decreaseControlIcon-O8mAFFIw-"}},v1bN:function(e,t,n){e.exports={item:"item-2xPVYue0-",hovered:"hovered-1uf45E05-",isDisabled:"isDisabled-1wLqKupj-",isActive:"isActive-2j-GhQs_-",icon:"icon-2Qm7YIcz-",shortcut:"shortcut-30pveiCO-",toolbox:"toolbox-3ulPxfe--",withIcon:"withIcon-1xBjf-oB-",labelRow:"labelRow-3Q0rdE8--",label:"label-3Xqxy756-",showOnHover:"showOnHover-1q6ySzZc-"}},vWed:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("mrSG");r.__exportStar(n("VKCZ"),t),r.__exportStar(n("XhS/"),t)},wwEg:function(e,t,n){e.exports={smallStyleControl:"smallStyleControl-1XGqoHgA-",additionalSelect:"additionalSelect-1RoWzlTA-",childRowContainer:"childRowContainer-_iCnmDPI-",defaultSelect:"defaultSelect-DeTJWnAh-",defaultSelectItem:"defaultSelectItem-1jN74NCa-",block:"block-3Tp_jRog-",group:"group-2HQIdqE5-",wrapGroup:"wrapGroup-3gHGJIrr-",textMarkGraphicBlock:"textMarkGraphicBlock-1nDopgxR-",textMarkGraphicWrapGroup:"textMarkGraphicWrapGroup-3QaIoY03-"}},xHjM:function(e,t){e.exports=''},yWQr:function(e,t,n){"use strict";function r(e){var t;return(t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onChange=function(t,n,r){var o=e.context.setValue,i=e.props.onChange;o(n,t,r),i&&i(t,n,r)},e}return P.__extends(n,t),n.prototype.render=function(){var t=this.props.input,n=this.context.values;return b.createElement(e,P.__assign({},this.props,{value:n[t.id],onChange:this._onChange }))},n}(b.PureComponent)).contextType=oe,t}function o(e,t){return void 0===t&&(t=ae),function(n){function r(e){var r=n.call(this,e)||this;return r._onChange=function(e,n,o){var i=t.change;i?(clearTimeout(r._timeout),r.setState({value:e},function(){i!==1/0&&(r._timeout=setTimeout(function(){return r._flush()},i))})):r._flush(e)},r._onBlur=function(){r._debounce(t.blur);var e=r.props.onBlur;e&&e()},r._onKeyDown=function(e){13===e.keyCode&&r._debounce(t.commit)},r.state={prevValue:e.value,value:e.value},r}return P.__extends(r,n),r.prototype.componentWillUnmount=function(){this._flush()},r.prototype.render=function(){var t=this.state.value;return b.createElement(e,P.__assign({},this.props,{value:t,onChange:this._onChange,onBlur:this._onBlur,onKeyDown:this._onKeyDown}))},r.getDerivedStateFromProps=function(e,t){return e.value===t.prevValue?t:{prevValue:e.value,value:e.value}},r.prototype._debounce=function(e){var t=this;e?(clearTimeout(this._timeout),e!==1/0&&(this._timeout=setTimeout(function(){return t._flush()},e))):this.setState(function(e){t._flush(e.value)})},r.prototype._flush=function(e){var t,n=this.props,r=n.input,o=r.id,i=r.name,a=n.onChange,s=this.state,l=s.prevValue,c=s.value;clearTimeout(this._timeout),t=void 0!==e?e:c,a&&void 0!==t&&t!==l&&a(t,o,i)},r}(b.PureComponent)}function i(e){var t=k(he.control,he.controlIncrease),n=k(he.control,he.controlDecrease);return b.createElement("div",{className:k(he.controlWrapper,!e.visible&&he.hidden)},b.createElement("div",{className:t,onClick:e.increaseValue},b.createElement(A.a,{icon:z,className:he.increaseControlIcon})),b.createElement("div",{className:n,onClick:e.decreaseValue},b.createElement(A.a,{icon:z,className:he.decreaseControlIcon})))}function a(e,t){return void 0===t&&(t=Ce),null!==e?t.format(e):""}function s(e){var t=e.borderStyle,n=void 0===t?"thin":t,r=e.intent,o=void 0===r?"default":r,i=e.className,a=e.disabled,s=e.readonly,l=e.icon,c=e.iconPosition,u=e.reference,p=e.onFocus,d=e.onClick,h=e.onBlur,m=P.__rest(e,["borderStyle","intent","className","disabled","readonly","icon","iconPosition","reference","onFocus","onClick","onBlur"]),f=Object(b.useRef)(null),v=function(e){var t=Object(b.useState)(!1),n=t[0],r=t[1],o={onFocus:Object(b.useCallback)(function(t){void 0!==e&&e.current!==t.target||r(!0)},[e]),onBlur:Object(b.useCallback)(function(t){void 0!==e&&e.current!==t.target||r(!1)},[e])};return[n,o]}(),_=v[0],g=v[1];return C.a.createElement("span",{className:k(De.container,i,De["intent-"+o],2===c&&De.iconRight,"thick"===n&&De.thickBorder,a&&De.disabled,s&&De.readonly,_&&De.isFocused),onClick:function(e){var t=Object(V.ensureNotNull)(f.current);e.target!==t&&t.focus(),d&&d(e)}},l&&C.a.createElement("span",{className:De.icon},l),C.a.createElement("input",P.__assign({},m,{className:De.input,disabled:a,readOnly:s,onFocus:function(e){g.onFocus(e),p&&p(e)},onBlur:function(e){g.onBlur(e),h&&h(e)},ref:function(e){f.current=e,u&&u(e)}})))}function l(e,t){var n=t.resolvedSymbolInfoBySymbol(e);return n&&(n.ticker||n.full_name)?n.ticker||n.full_name:e}function c(e){ return b.createElement("div",{className:Se.inputGroup},e.children)}function u(e){return null===e?Ge()({hour:0,minute:0}):e}function p(e){void 0===e&&(e="");var t=e.match(/^(\d\d)(\d\d)-(\d\d)(\d\d)/)||[0,0,0,0,0],n=t[1],r=t[2],o=t[3],i=t[4];return{startTime:Ge()({hour:n,minute:r}),endTime:Ge()({hour:o,minute:i})}}function d(e){return{msGridRow:e}}function h(e){var t=e.property,n=e.model,r=e.inputs,o=e.study;return b.createElement(ie,{property:t.inputs,model:n,study:o},b.createElement(It,{inputs:r}))}function m(e){return"strategy_props"===e.groupId}function f(e){var t=e.study,n=e.model,r=e.inputs,o=e.property;return b.createElement(ie,{property:o,study:t,model:n},r.map(function(e){return"bool"===e.type?b.createElement(Ht,{key:e.id,label:window.t(e.name,{context:"input"}),input:e}):b.createElement(wt,{labelAlign:"session"===e.type?"adaptive":void 0,key:e.id,input:e})}))}function v(e){var t,n,r,o,i,a,s,l,c,u,p,d,h,m="Invalid RGB color: "+e;if(null===e)throw new Error(m);if(null===(t=e.match(/^#?([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/i)))throw new Error(m);if(n=t[1],r=t[2],o=t[3],!n||!r||!o)throw new Error(m);if(i=parseInt(n,16)/255,a=parseInt(r,16)/255,s=parseInt(o,16)/255,d=l=Math.max(i,a,s),h=l-(c=Math.min(i,a,s)),p=0===l?0:h/l,l===c)u=0;else{switch(l){case i:u=(a-s)/h+(a0?0:1)*a).minus(o),l=Number(i)),n._checkValueBoundaries(l).value&&(n.setState({displayValue:(n.props.formatter||n._defaultFormatter).format(l)}),n.props.onValueChange(l,"step")), n.props.errorHandler&&n.props.errorHandler(!1)},n.state={value:n.props.value,displayValue:a(n.props.value,n.props.formatter),focused:!1,errorMsg:ge},n}return P.__extends(t,e),t.prototype.render=function(){return b.createElement(me,{borderStyle:this.props.borderStyle,value:this.state.displayValue,focused:this.state.focused,forceShowControls:this.props.forceShowControls,className:this.props.className,button:this.props.button,placeholder:this.props.placeholder,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes})},t.getDerivedStateFromProps=function(e,t){if(t.focused&&!e.alwaysUpdateValueFromProps||t.value===e.value)return null;var n=a(e.value,e.formatter);return P.__assign({},t,{value:e.value,displayValue:n})},t.prototype._checkValueBoundaries=function(e){var t,n=this.props,r=n.min,o=n.max,i=void 0===r||e>=r,a=void 0!==o?e<=o:e<=this._defaultMax;return i||(t=ye),a||(t=be),{value:i&&a,msg:t}},t}(b.PureComponent),Ee=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._container=null,t._handleContainerRef=function(e){return t._container=e},t._onChange=function(e,n){var r=t.props,o=r.input,i=o.id,a=o.name,s=r.onChange,l=r.onBlur;s(e,i,a),"step"===n&&l&&l()},t._onBlur=function(e){var n,r=t.props.onBlur;r&&((n=Object(V.ensureNotNull)(t._container)).contains(document.activeElement)||n.contains(e.relatedTarget)||r())},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.min,o=t.max,i=t.step,a=e.value,s=e.disabled,l=e.onKeyDown,c=e.className;return b.createElement(we,{className:c,value:Number(void 0===a?n:a),min:r,max:o,step:i,borderStyle:"thin",onBlur:this._onBlur,onValueChange:this._onChange,onKeyDown:l,disabled:s,containerReference:this._handleContainerRef,forceShowControls:!0})},t}(b.PureComponent),Se=n("tDS2"),xe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){return b.createElement(Ee,P.__assign({},this.props,{className:Se.input}))},t}(b.PureComponent),Pe=o(xe,{change:1/0,commit:0,blur:0}),ke=r(Pe),Ne=o(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){return b.createElement(Ee,P.__assign({},this.props,{className:Se.input}))},t}(b.PureComponent),{change:1/0,commit:0,blur:0}),Oe=r(Ne),Te=n("dWaX"),Ie=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(){var e=t.props,n=e.input,r=n.id,o=n.name,i=e.value;(0,e.onChange)(!i,r,o)},t}return P.__extends(t,e),t.prototype.render=function(){ var e=this.props,t=e.input.defval,n=e.value,r=e.disabled,o=e.label,i=void 0===n?t:n;return b.createElement(Te.Checkbox,{className:Se.checkbox,disabled:r,checked:i,onChange:this._onChange,label:b.createElement("span",{className:Se.label},o)})},t}(b.PureComponent),Me=r(Ie),De=n("Hk3L"),je=o(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,i=r.name;(0,n.onChange)(e.currentTarget.value,o,i)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input.defval,n=e.value,r=e.disabled,o=e.onBlur,i=e.onKeyDown;return b.createElement(s,{className:Se.input,value:void 0===n?t:n,onChange:this._onChange,onBlur:o,onKeyDown:i,disabled:r})},t}(b.PureComponent)),Le=r(je),Be=n("pZll"),Ve=n("0waE"),Re=n("jAh7"),Fe=n("+EG+"),Ae=n("RgaO"),We=function(e){function t(t){var n,r=e.call(this,t)||this;return r._input=null,r._popup=null,r._uuid=Object(Ve.guid)(),r._onChange=function(e){r.setState({value:e.currentTarget.value})},r._updateSymbolName=function(){r._onSetSymbol(r.state.value)},r._onSetSymbol=function(e){var t=r.props.study,n=l(e,t),o=r.props,i=o.input,a=i.id,s=i.name,c=o.onChange;c(n,a,s),r.setState({value:n})},r._refInput=function(e){r._input=e},r._handleOutsideClick=function(e){null!==r._input&&document.activeElement===r._input&&e.target instanceof Node&&null!==r._popup&&!r._popup.contains(e.target)&&r._input.blur()},n=t.value,r.state={value:n||""},r}return P.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.study,n=this.context||Object(Re.getRootOverlapManager)();Object(Be.symbolSearchUIService)().bindToInput(Object(V.ensureNotNull)(this._input),{syncWithChartWidget:!1,syncOnBlur:!0,callback:this._onSetSymbol,onPopupOpen:function(t){e._popup=n.ensureWindow(e._uuid),t.appendTo(e._popup)},onPopupClose:function(){e._popup=null,n.removeWindow(e._uuid)}}),t.symbolsResolved().subscribe(this,this._updateSymbolName)},t.prototype.componentWillUnmount=function(){this.props.study.symbolsResolved().unsubscribe(this,this._updateSymbolName)},t.prototype.render=function(){var e=this.props.disabled,t=this.state.value;return b.createElement(Ae.a,{mouseDown:!0,touchStart:!0,handler:this._handleOutsideClick},b.createElement(s,{className:Se.input,value:t,onChange:this._onChange,disabled:e,reference:this._refInput}))},t.contextType=Fe.b,t}(b.PureComponent),He=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input.defval,n=e.value,r=n||t||"",o=Object(V.ensureDefined)(this.context.study);return b.createElement(We,P.__assign({},this.props,{value:l(r,o),study:o}))},t.contextType=oe,t}(b.PureComponent),ze=r(He),Ue=n("ldgD"),Ge=n.n(Ue),Ke=n("75D8"),qe=n("yd0C"),Ye=n("rbFW"),Xe=window.t("Invalid time"),Ze="HH:mm",Qe=function(e){function t(t){var n,r,o=e.call(this,t)||this;return o._container=null,o._refContainer=function(e){o._container=e},o._getPosition=function(){ var e=Object(V.ensureNotNull)(o._container).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},o._onSelect=function(e){var t=o.props,n=t.name;(0,t.onChange)(e,n),o.setState({inputValue:e.format(Ze),inputError:null,isOpened:!1})},o._toggleMenu=function(){o.setState({isOpened:!o.state.isOpened})},o._inputFocusHandler=function(e){e.target.blur(),o._toggleMenu()},o._handleChange=function(){},t.value.isValid()?(n=t.value.format(Ze),r=null):(n="",r=Xe),o.state={inputValue:n,inputError:r,prevValue:n,isOpened:!1},o}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.value,r=this.state,o=r.inputValue,i=r.isOpened,a=b.createElement(A.a,{icon:qe});return b.createElement(b.Fragment,null,b.createElement("div",{ref:this._refContainer},b.createElement(s,{className:k(t,i&&Ye.focusedInput),icon:a,iconPosition:2,value:o,onFocus:this._inputFocusHandler,onChange:this._handleChange})),b.createElement(H.a,{isOpened:i,position:this._getPosition,onClose:this._toggleMenu,doNotCloseOn:this},b.createElement(Ke.a,{className:Ye.clock,selectedTime:n,onSelect:this._onSelect})))},t.getDerivedStateFromProps=function(e,t){var n=e.value.format(Ze);return n===t.prevValue?t:P.__assign({},t,{inputValue:n,prevValue:n})},t}(b.PureComponent),Je=function(e){function t(t){var n,r=e.call(this,t)||this;return r._onStartPick=function(e){r.setState({startTime:u(e)},r._onChange)},r._onEndPick=function(e){r.setState({endTime:u(e)},r._onChange)},r._onChange=function(){var e=r.props,t=e.input,n=t.id,o=t.name,i=e.onChange,a=r.state,s=a.startTime,l=a.endTime,c=Object(V.ensureDefined)(s).format("HHmm")+"-"+Object(V.ensureDefined)(l).format("HHmm");i(c,n,o)},n=t.value||t.input.defval,r.state=P.__assign({prevValue:n},p(n)),r}return P.__extends(t,e),t.prototype.render=function(){var e=this.state,t=e.startTime,n=e.endTime;return b.createElement(c,null,b.createElement("div",{className:Se.sessionStart},b.createElement(Qe,{className:Se.input,name:"start",value:Object(V.ensureDefined)(t),onChange:this._onStartPick}),b.createElement("span",{className:Se.sessionDash}," – ")),b.createElement("div",{className:Se.sessionEnd},b.createElement(Qe,{className:Se.input,name:"end",value:Object(V.ensureDefined)(n),onChange:this._onEndPick})))},t.getDerivedStateFromProps=function(e,t){return e.value===t.prevValue?t:P.__assign({prevValue:e.value},p(e.value))},t}(b.PureComponent),$e=r(Je),et=n("0YCj"),tt=n.n(et),nt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,i=r.name;(0,n.onChange)(e,o,i)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.options,o=t.optionsTitles,i=e.value,a=e.disabled,s=r.map(function(e){var t=o&&o[e]?o[e]:e;return{value:e,content:window.t(t,{context:"input"})}}),l=void 0!==i&&r.includes(i)?i:n;return b.createElement(G,{className:Se.input,menuClassName:Se.dropdownMenu,value:l,items:s,onChange:this._onChange,disabled:a})},t}(b.PureComponent),rt=r(nt),ot={open:window.t("open"), high:window.t("high"),low:window.t("low"),close:window.t("close"),hl2:window.t("hl2"),hlc3:window.t("hlc3"),ohlc4:window.t("ohlc4")},it=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e,t,n,r,o,i=this.props.input,a=this.context,s=a.study,l=a.model,c=P.__assign({},ot);return s&&s.isChildStudy()&&(t=(e=s.parentSource()).title(),n=tt.a.getChildSourceInputTitles(i,e.metaInfo(),t),c=P.__assign({},c,n)),E.enabled("study_on_study")&&s&&(s.isChildStudy()||tt.a.canBeChild(s.metaInfo()))&&(r=[s].concat(s.getAllChildren()),l.model().allStudies().filter(function(e){return e.canHaveChildren()&&!r.includes(e)}).forEach(function(e){var t,n=e.title(!0,void 0,!0),r=e.sourceId()||"#"+e.id(),o=e.metaInfo(),i=o.styles,a=o.plots||[];1===a.length?c[r+"$0"]=n:a.length>1&&(t=a.reduce(function(e,t,o){var a,s;if(!tt.a.canPlotBeSourceOfChildStudy(t.type))return e;try{s=Object(V.ensureDefined)(Object(V.ensureDefined)(i)[t.id]).title}catch(e){s=t.id}return P.__assign({},e,((a={})[r+"$"+o]=n+": "+s,a))},{}),c=P.__assign({},c,t))})),o=P.__assign({},i,{type:"text",options:Object.keys(c),optionsTitles:c}),b.createElement(rt,P.__assign({},this.props,{input:o}))},t.contextType=oe,t}(b.PureComponent),at=n("LxhU"),st=n("pPtI"),ct=(lt=["1","3","5","15","30","45","60","120","180","240","1D","1W","1M"]).map(function(e){return{value:e,content:Object(st.getTranslatedResolutionModel)(e).hint}}),ut=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,i=r.name;(0,n.onChange)(e,o,i)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=e.value,r=e.disabled,o=at.Interval.parse(void 0===n?t.defval:n),i=o.multiplier(),a=o.value();return i&<.includes(a)||(a=lt[0]),b.createElement(G,{className:Se.input,menuClassName:Se.dropdownMenu,items:ct,value:a,onChange:this._onChange,disabled:r})},t}(b.PureComponent),pt=r(ut),dt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,i=r.name;(0,n.onChange)(e,o,i)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.min,o=t.max,i=e.value,a=e.disabled;return b.createElement(we,{className:Se.input,value:Number(void 0===i?n:i),min:r,max:o,borderStyle:"thin",onValueChange:this._onChange,disabled:a})},t}(b.PureComponent),ht=r(dt),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e,t=this.props,n=t.input,r=t.disabled,o=t.onChange;if(["text","integer","float","session","resolution"].includes((e=n).type)&&e.hasOwnProperty("options"))return b.createElement(rt,{input:n,disabled:r,onChange:o});switch(n.type){case"integer":return b.createElement(ke,{input:n,disabled:r,onChange:o});case"float":return b.createElement(Oe,{input:n,disabled:r,onChange:o});case"bool":return b.createElement(Me,{input:n,disabled:r,onChange:o});case"text": return b.createElement(Le,{input:n,disabled:r,onChange:o});case"symbol":return b.createElement(ze,{input:n,disabled:r,onChange:o});case"session":return b.createElement($e,{input:n,disabled:r,onChange:o});case"source":return b.createElement(it,{input:n,disabled:r,onChange:o});case"resolution":return b.createElement(pt,{input:n,disabled:r,onChange:o});case"time":return b.createElement(ht,{input:n,disabled:r,onChange:o});default:return null}},t}(b.PureComponent),ft=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=e.value,r=e.onChange,o=e.onBlur,i=e.onKeyDown,a=t.options.reduce(function(e,t){return e[t]="NONE"===t?window.t("Default"):t,e},{}),s=P.__assign({},t,{optionsTitles:a});return b.createElement(nt,{input:s,value:n,onChange:r,onBlur:o,onKeyDown:i})},t}(b.PureComponent),vt=r(ft),_t=n("6ix9"),gt=b.createContext(null),yt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._rows=new WeakMap,t._rowCount=1,t}return P.__extends(t,e),t.prototype.render=function(){return b.createElement(gt.Provider,{value:this},b.createElement("div",{className:_t.content},this.props.children))},t.prototype.getRowIndex=function(e){var t=this._rows.get(e);return void 0===t&&(t=this._rowCount++,this._rows.set(e,t)),t},t}(b.PureComponent),bt=b.createContext(0),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){return b.createElement(bt.Provider,{value:Object(V.ensureNotNull)(this.context).getRowIndex(this)},this.props.children)},t.contextType=gt,t}(b.PureComponent),yt.Row=Ct,yt.Cell=function(e){var t=k(_t.cell,e.grouped&&_t.grouped,"top"===e.verticalAlign&&_t.top,"adaptive"===e.verticalAlign&&_t.adaptive,2===e.colSpan&&_t.fill,"first"===e.placement&&2!==e.colSpan&&_t.first,"last"===e.placement&&2!==e.colSpan&&_t.last);return b.createElement(bt.Consumer,null,function(n){return b.createElement("div",{className:t,style:d(n)},b.createElement("div",{className:k(_t.inner,e.className)},e.children))})},yt.Separator=function(e){return b.createElement(yt.Row,null,b.createElement(bt.Consumer,null,function(e){return b.createElement("div",{className:k(_t.cell,_t.separator,_t.fill),style:d(e)})}))},yt.GroupSeparator=function(e){return b.createElement(yt.Row,null,b.createElement(bt.Consumer,null,function(e){return b.createElement("div",{className:k(_t.cell,_t.groupSeparator,_t.fill),style:d(e)})}))},wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.children,r=e.input,o=e.disabled,i=e.onChange,a=e.labelAlign,s=e.grouped;return b.createElement(yt.Row,null,b.createElement(yt.Cell,{placement:"first",verticalAlign:a,grouped:s},void 0!==t?t:window.t(Object(V.ensureDefined)(r).name,{context:"input"})),b.createElement(yt.Cell,{placement:"last",grouped:s},n||b.createElement(mt,{input:Object(V.ensureDefined)(r),onChange:i,disabled:o})))},t }(b.PureComponent),n("HbRj"),Et=b.createContext(null),St=window.t("{currency} per order"),xt=window.t("{currency} per contract"),Pt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e,t=this.props.input,n=Object(V.ensureNotNull)(this.context),r=((e={}).percent="%",e.cash_per_order=St.format({currency:n}),e.cash_per_contract=xt.format({currency:n}),e),o=P.__assign({},t,{optionsTitles:r});return b.createElement(rt,{input:o})},t.contextType=Et,t}(b.PureComponent),kt=window.t("Contracts"),Nt=window.t("% of equity"),Ot=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e,t=this.props.input,n=Object(V.ensureNotNull)(this.context),r=((e={}).fixed=kt,e.cash_per_order=n,e.percent_of_equity=Nt,e),o=P.__assign({},t,{optionsTitles:r});return b.createElement(rt,{input:o})},t.contextType=Et,t}(b.PureComponent),Tt=n("V1YL"),It=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props.inputs;return b.createElement(yt,null,b.createElement(wt,{label:window.t("Initial capital")},b.createElement(mt,{input:e.initial_capital})),b.createElement(wt,{label:window.t("Base currency")},b.createElement(vt,{input:e.currency})),b.createElement(wt,{label:window.t("Order size"),labelAlign:"adaptive"},b.createElement(c,null,b.createElement(mt,{input:e.default_qty_value}),b.createElement(Ot,{input:e.default_qty_type}))),b.createElement(wt,{label:window.t("Pyramiding")},b.createElement("span",null,b.createElement(mt,{input:e.pyramiding})),b.createElement("span",{className:Tt.descriptionCell},window.t("orders",{context:"Pyramiding: count orders"}))),b.createElement(yt.Separator,null),b.createElement(wt,{label:window.t("Commission"),labelAlign:"adaptive"},b.createElement(c,null,b.createElement(mt,{input:e.commission_value}),b.createElement(Pt,{input:e.commission_type}))),b.createElement(wt,{label:window.t("Verify Price for Limit Orders")},b.createElement("span",null,b.createElement(mt,{input:e.backtest_fill_limits_assumption})),b.createElement("span",{className:Tt.descriptionCell},window.t("ticks",{context:"slippage ... ticks"}))),b.createElement(wt,{label:window.t("Slippage")},b.createElement("span",null,b.createElement(mt,{input:e.slippage})),b.createElement("span",{className:Tt.descriptionCell},window.t("ticks",{context:"slippage ... ticks"}))),b.createElement(yt.Separator,null),b.createElement(wt,{label:window.t("Recalculate"),labelAlign:"top"},b.createElement("div",null,b.createElement("div",{className:Tt.recalculateCheckbox},b.createElement(Me,{label:window.t("After Order filled"),input:e.calc_on_order_fills})),b.createElement("div",{className:Tt.recalculateCheckbox},b.createElement(Me,{label:window.t("On Every Tick"),input:e.calc_on_every_tick})))))},t.contextType=oe,t}(b.PureComponent),Mt=n("23IT"),Dt=n("ogJP"),jt=n("uOxu"),Lt=n("W5mg"), Vt=Object(jt.getLogger)("Platform.GUI.PropertyDialog.Indicators.MetaInfo"),Rt=function(){function e(e){this._metaInfo=e}return e.prototype.hasUserEditableInputs=function(){return this._metaInfo.inputs.some(Lt.a)},e.prototype.getUserEditableInputs=function(){return this._metaInfo.inputs.filter(Lt.a)},e.prototype.hasUserEditableProperties=function(){return tt.a.isScriptStrategy(this._metaInfo)},e.prototype.getUserEditablePlots=function(){var e=new Set,t=this._metaInfo;return t.plots.filter(function(n){var r,o,i;return!(Object(Mt.isColorerPlot)(n)||Object(Mt.isTextColorerPlot)(n)||Object(Mt.isDataOffsetPlot)(n)||Object(Mt.isOhlcColorerPlot)(n))&&(Object(Mt.isOhlcPlot)(n)?(r=n.target,!e.has(r)&&(e.add(r),o=Object(V.ensureDefined)(t.ohlcPlots),!Object(V.ensureDefined)(o[r]).isHidden)):void 0===(i=t.styles?t.styles[n.id]:void 0)||!i.isHidden)})},e.prototype.getStrategyProperties=function(){var e,t,n,r,o,i=this._metaInfo,a=i.inputs.filter(m),s=P.__assign({},Ft);for(e=0,t=a;e1||n.props.onChange(r)},n.state={inputOpacity:Math.round(100*t.opacity).toString(),isPointerDragged:!1},n}return P.__extends(t,e),t.prototype.componentWillUnmount=function(){null!==this._raf&&(cancelAnimationFrame(this._raf),this._raf=null),this._dragUnsubscribe()},t.prototype.render=function(){var e=this.props,t=e.color,n=e.opacity,r=this.state,o=r.inputOpacity,i=r.isPointerDragged,a={color:t||void 0};return b.createElement("div",{className:On.opacity},b.createElement("div",{className:On.opacitySlider,style:a,ref:this._refContainer,onMouseDown:this._onSliderClick,onTouchStart:this._onTouchStart,onTouchMove:this._handleTouch,onTouchEnd:this._handleTouchEnd},b.createElement("div",{className:On.opacitySliderGradient,style:{backgroundImage:"linear-gradient(90deg, transparent, "+t+")"}}),b.createElement("div",{className:On.opacityPointerWrap},b.createElement("div",{className:k(On.pointer,i&&On.dragged),style:{left:100*n+"%"},ref:this._refPointer}))),b.createElement("div",{className:On.opacityInputWrap},b.createElement("input",{type:"text",className:On.opacityInput,value:o,onChange:this._handleInput}),b.createElement("span",{className:On.opacityInputPercent},"%")))}, t.prototype._dragSubscribe=function(){var e=Object(V.ensureNotNull)(this._container).ownerDocument;e&&(e.addEventListener("mouseup",this._mouseUp),e.addEventListener("mousemove",this._mouseMove))},t.prototype._dragUnsubscribe=function(){var e=Object(V.ensureNotNull)(this._container).ownerDocument;e&&(e.removeEventListener("mousemove",this._mouseMove),e.removeEventListener("mouseup",this._mouseUp))},t}(b.PureComponent),In=n("PoSe"),Mn=n.n(In),Dn=n("lY1a"),jn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._container=null,t._refContainer=function(e){t._container=e},t._handlePosition=function(e){var n,r,o,i,a,s=t.props,l=s.hsv.h,c=s.onChange;c&&(n=Object(V.ensureNotNull)(t._container).getBoundingClientRect(),r=e.clientX-n.left,o=e.clientY-n.top,(i=r/n.width)<0?i=0:i>1&&(i=1),(a=1-o/n.height)<0?a=0:a>1&&(a=1),c({h:l,s:i,v:a}))},t._mouseDown=function(e){window.addEventListener("mouseup",t._mouseUp),window.addEventListener("mousemove",t._mouseMove)},t._mouseUp=function(e){window.removeEventListener("mousemove",t._mouseMove),window.removeEventListener("mouseup",t._mouseUp),t._handlePosition(e)},t._mouseMove=Mn()(t._handlePosition,100),t._handleTouch=function(e){t._handlePosition(e.nativeEvent.touches[0])},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hsv,r=n.h,o=n.s,i=n.v,a="hsl("+360*r+", 100%, 50%)";return b.createElement("div",{className:N()(Dn.saturation,t),style:{backgroundColor:a},ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},b.createElement("div",{className:Dn.pointer,style:{left:100*o+"%",top:100*(1-i)+"%"}}))},t}(b.PureComponent),Ln=n("jpE+"),Bn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._container=null,t._refContainer=function(e){t._container=e},t._handlePosition=function(e){var n,r,o,i=t.props,a=i.hsv,s=a.s,l=a.v,c=i.onChange;c&&(n=Object(V.ensureNotNull)(t._container).getBoundingClientRect(),(r=e.clientY-n.top)>=n.top&&(r=n.top-1),(o=r/n.height)<0?o=0:o>1&&(o=1),c({h:o,s:s,v:l}))},t._mouseDown=function(e){window.addEventListener("mouseup",t._mouseUp),window.addEventListener("mousemove",t._mouseMove)},t._mouseUp=function(e){window.removeEventListener("mousemove",t._mouseMove),window.removeEventListener("mouseup",t._mouseUp),t._handlePosition(e)},t._mouseMove=Mn()(t._handlePosition,100),t._handleTouch=function(e){t._handlePosition(e.nativeEvent.touches[0])},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.hsv.h;return b.createElement("div",{className:N()(Ln.hue,t)},b.createElement("div",{className:Ln.pointerContainer,ref:this._refContainer,onMouseDown:this._mouseDown,onTouchStart:this._handleTouch,onTouchMove:this._handleTouch},b.createElement("div",{className:Ln.pointer,style:{top:100*n+"%"}})))},t}(b.PureComponent),Vn=n("uJfL"),Rn="#000000",Fn=window.t("Add",{context:"Color Picker"}),An=function(e){function t(t){var n,r=e.call(this,t)||this;return r._handleHSV=function(e){var t=function(e){ var t,n,r,o=e.h,i=e.s,a=e.v,s=Math.floor(6*o),l=6*o-s,c=a*(1-i),u=a*(1-l*i),p=a*(1-(1-l)*i);switch(s%6){case 0:t=a,n=p,r=c;break;case 1:t=u,n=a,r=c;break;case 2:t=c,n=a,r=p;break;case 3:t=c,n=u,r=a;break;case 4:t=p,n=c,r=a;break;case 5:t=a,n=c,r=u;break;default:t=0,n=0,r=0}return"#"+[255*t,255*n,255*r].map(function(e){return("0"+Math.round(e).toString(16)).replace(/.+?([a-f0-9]{2})$/i,"$1")}).join("")}(e)||Rn;r.setState({color:t,inputColor:t.replace(/^#/,""),hsv:e})},r._handleInput=function(e){var t,n=e.currentTarget.value;try{t=v(n),r.setState({color:"#"+n,inputColor:n,hsv:t})}catch(e){r.setState({inputColor:n})}},r._handleButton=function(){r.props.onSelect(r.state.color)},n=t.color||Rn,r.state={color:n,inputColor:n.replace(/^#/,""),hsv:v(n)},r}return P.__extends(t,e),t.prototype.render=function(){var e=this.state,t=e.color,n=e.hsv,r=e.inputColor;return b.createElement("div",{className:Vn.container},b.createElement("div",{className:Vn.form},b.createElement("div",{className:Vn.swatch,style:{backgroundColor:t}}),b.createElement("div",{className:Vn.inputWrap},b.createElement("span",{className:Vn.inputHash},"#"),b.createElement("input",{type:"text",className:Vn.input,value:r,onChange:this._handleInput})),b.createElement("div",{className:Vn.buttonWrap},b.createElement(R.Button,{size:"s",onClick:this._handleButton},Fn))),b.createElement("div",{className:Vn.hueSaturationWrap},b.createElement(jn,{className:Vn.saturation,hsv:n,onChange:this._handleHSV}),b.createElement(Bn,{className:Vn.hue,hsv:n,onChange:this._handleHSV})))},t}(b.PureComponent),Wn=n("1Kfe"),Hn=window.t("Add Custom Color",{context:"Color Picker"}),zn=window.t("Opacity",{context:"Color Picker"}),Un=function(e){function t(t){var n=e.call(this,t)||this;return n._handleColor=function(e){var t=n.props.onColorChange;t&&t(e)},n._handleCustomClick=function(){n.setState({isCustom:!0}),n._onToggleCustom(!0)},n._onAddColor=function(e){n.setState({isCustom:!1}),n._onToggleCustom(!1);var t=n.props,r=t.onColorChange,o=t.onAddColor;r&&r(e),o&&o(e)},n._handleOpacity=function(e){var t=n.props.onOpacityChange;t&&t(e)},n.state={isCustom:!1},n}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.opacity,r=e.selectCustom,o=e.selectOpacity,i=e.customColors,a=this.state.isCustom,s="number"==typeof n?n:1;return a?b.createElement(An,{color:t,onSelect:this._onAddColor}):b.createElement("div",{className:Wn.container},b.createElement(kn,{colors:wn,color:t,onSelect:this._handleColor}),b.createElement(kn,{colors:Sn,color:t,onSelect:this._handleColor}),b.createElement("div",{className:Wn.separator}),b.createElement(kn,{colors:i,color:t,onSelect:this._handleColor},r&&b.createElement("div",{className:N()(Wn.customButton,"apply-common-tooltip"),onClick:this._handleCustomClick,title:Hn})),o&&b.createElement(b.Fragment,null,b.createElement("div",{className:Wn.sectionTitle},zn),b.createElement(Tn,{color:t,opacity:s,onChange:this._handleOpacity})))},t.prototype._onToggleCustom=function(e){var t=this.props.onToggleCustom;t&&t(e)},t}(b.PureComponent),Gn=function(e){ function t(t){var n=e.call(this,t)||this;return n._button=null,n._refButton=function(e){n._button=e},n._togglePopup=function(){n.props.disabled||n.setState(function(e){return{isOpened:!e.isOpened,isCustom:!1}})},n._getPopupPosition=function(){var e=Object(V.ensureNotNull)(n._button).getBoundingClientRect();return{x:e.left,y:e.top+e.height}},n._toggleCustom=function(e){n.setState({isCustom:e})},n.state={isOpened:!1,isCustom:!1},n}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.button,n=e.children,r=P.__rest(e,["button","children"]),o=this.state,i=o.isOpened,a=o.isCustom;return b.createElement("div",{className:Wn.popupButtonWrap},b.createElement("div",{tabIndex:this.props.disabled?void 0:-1,ref:this._refButton,onClick:this._togglePopup},"function"==typeof t?t(i):t),b.createElement(H.a,{isOpened:i,onClose:this._togglePopup,position:this._getPopupPosition,doNotCloseOn:this._button},b.createElement(Un,P.__assign({},r,{onToggleCustom:this._toggleCustom})),!a&&n))},t}(b.PureComponent),Kn=n("0Mig"),qn=n("95N5"),Yn=Object(Kn.makeSwitchGroupItem)(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(){t.props.onChange&&t.props.onChange(t.props.value)},t}return P.__extends(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.name,o=n.checked,i=n.value,a=k(qn.thicknessItem,((e={})[qn.checked]=o,e)),s=k(qn.bar,((t={})[qn.checked]=o,t)),l={borderTopWidth:parseInt(i)};return b.createElement("div",{className:a},b.createElement("input",{type:"radio",className:qn.radio,name:r,value:i,onChange:this._onChange,checked:o}),b.createElement("div",{className:s,style:l}," "))},t}(b.PureComponent)),Xn=n("91aW"),Zn=[1,2,3,4],Qn=window.t("Thickness",{context:"Color Picker"}),Jn=window.t("Change Color"),$n=window.t("Change Opacity"),er=window.t("Change Thickness"),tr="add_new_custom_color",nr=29,rr=function(e){function t(t){var n=e.call(this,t)||this;return n._handleAddColor=function(e){var t=n.state.customColors,r=e?Object(vn.parseRgb)(e):null,o=t.some(function(e){return null!==e&&null!==r&&Object(vn.areEqualRgb)(Object(vn.parseRgb)(e),r)});o||(S.emit(tr,e),Object(w.setJSON)("pickerCustomColors",n._addCustomColorToArray(e,t),{forceFlush:!0}))},n._globalAddCustomColorHandler=function(e){var t=n.state.customColors;n.setState({customColors:n._addCustomColorToArray(e,t)})},n._onColorChange=function(e){var t=n.props,r=t.color,o=t.transparency,i=n._getPropertyValue(r),a=o?o.value():0,s=Object(_n.isHexColor)(i)?a:Object(_n.alphaToTransparency)(Object(vn.parseRgba)(i)[3]);n._setProperty(r,Object(_n.generateColor)(String(e),s,!0),Jn)},n._onOpacityChange=function(e){var t=n.props.color,r=n._getPropertyValue(t);n._setProperty(t,Object(_n.generateColor)(r,Object(_n.alphaToTransparency)(e),!0),$n)},n._onThicknessChange=function(e){var t=n.props.thickness;t&&n._setProperty(t,e,er)},n._addCustomColorToArray=function(e,t){var n=t.slice();return n.length=.95&&m&&Xn.white)})),a&&b.createElement("span",{className:k(Xn.colorLine,m&&Xn.white),style:{height:e._getPropertyValue(a),backgroundColor:d}})))}},a&&b.createElement("div",{className:Xn.thicknessContainer},b.createElement("div",{className:Xn.thicknessTitle},Qn),b.createElement(_,{name:"color_picker_thickness_select",onChange:this._onThicknessChange,values:Zn,selectedValues:[this._getPropertyValue(a)]})))},t.prototype._setProperty=function(e,t,n){var r=this.context.setValue;Array.isArray(e)?e.forEach(function(e){r(e,t,n)}):r(e,t,n)},t.prototype._getPropertyValue=function(e){return Array.isArray(e)?e[0].value():e.value()},t.contextType=Kt,t}(b.PureComponent),or=n("wwEg"),ir=window.t("Change Plot Type"),ar=window.t("Change Price Line"),sr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPlotTypeChange=function(e){var n=t.context.setValue,r=t.props.styleProp.plottype;r&&n(r,e,ir)},t._onPriceLineChange=function(e){var n=t.context.setValue,r=t.props.styleProp.trackPrice;r&&n(r,e,ar)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.paletteColor,n=e.paletteColorProps,r=e.styleProp,o=e.isLine,i=e.hasPlotTypeSelect,a=e.grouped,s=n.childs();return b.createElement(wt,{grouped:a,label:b.createElement("div",{className:or.childRowContainer},t.name)},b.createElement(rr,{disabled:!r.visible.value(),color:s.color,transparency:r.transparency,thickness:o?s.width:void 0}),o&&i&&r.plottype&&r.trackPrice?b.createElement(fn,{disabled:!r.visible.value(),className:or.smallStyleControl,plotType:r.plottype.value(),priceLine:r.trackPrice.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}):null)},t.contextType=Kt,t}(b.PureComponent),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){ var e=this.props,t=e.plot,n=e.area,r=e.palette,o=e.paletteProps,i=e.hideVisibilitySwitch,a=e.styleProp,s=t?t.id:Object(V.ensureDefined)(n).id,l=s.startsWith("fill"),c=!l&&t&&Object(Mt.isLinePlot)(t);return b.createElement(b.Fragment,null,!i&&b.createElement(yt.Row,null,b.createElement(yt.Cell,{placement:"first",colSpan:2,grouped:!0},b.createElement(Xt,{id:s,title:n?n.title:a.title.value(),visible:a.visible}))),function(e,t,n,r){var o=e.colors,i=t.colors;return Object.keys(o).map(function(e,t){return b.createElement(sr,{key:e,grouped:!0,paletteColor:Object(V.ensureDefined)(o[e]),paletteColorProps:Object(V.ensureDefined)(i[e]),styleProp:n,isLine:r,hasPlotTypeSelect:0===t})})}(r,o,a,c),b.createElement(yt.GroupSeparator,null))},t.contextType=Kt,t}(b.PureComponent),cr=window.t("Change Plot Type"),ur=window.t("Change Price Line"),pr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPlotTypeChange=function(e){var n=t.context.setValue,r=t.props.property.plottype;r&&n(r,e,cr)},t._onPriceLineChange=function(e){var n=t.context.setValue,r=t.props.property.trackPrice;r&&n(r,e,ur)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.title,o=n.color,i=n.plottype,a=n.linewidth,s=n.transparency,l=n.trackPrice,c=n.visible;return b.createElement(wt,{label:b.createElement(Xt,{id:t,title:r.value(),visible:c})},b.createElement(rr,{disabled:!c.value(),color:o,transparency:s,thickness:a}),b.createElement(fn,{disabled:!c.value(),className:or.smallStyleControl,plotType:i.value(),priceLine:l.value(),plotTypeChange:this._onPlotTypeChange,priceLineChange:this._onPriceLineChange}))},t.contextType=Kt,t}(b.PureComponent),dr=b.createContext(null),hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.colorup,o=n.colordown,i=n.transparency,a=n.visible;return b.createElement(dr.Consumer,null,function(e){return b.createElement(wt,{label:b.createElement(Xt,{id:t,title:function(e,t){var n=Object(V.ensureDefined)(e.metaInfo().styles),r=Object(V.ensureDefined)(n[t]).title;return Object(V.ensureDefined)(r)}(Object(V.ensureNotNull)(e),t),visible:a})},b.createElement(rr,{disabled:!a.value(),color:r,transparency:i}),b.createElement("span",{className:or.additionalSelect},b.createElement(rr,{disabled:!a.value(),color:o,transparency:i})))})},t.contextType=Kt,t}(b.PureComponent),(fr={})[(mr=n("972a")).MarkLocation.AboveBar]={value:mr.MarkLocation.AboveBar,content:window.t("Above Bar"),order:0},fr[mr.MarkLocation.BelowBar]={value:mr.MarkLocation.BelowBar,content:window.t("Below Bar"),order:1},fr[mr.MarkLocation.Top]={value:mr.MarkLocation.Top,content:window.t("Top"),order:2},fr[mr.MarkLocation.Bottom]={value:mr.MarkLocation.Bottom,content:window.t("Bottom"),order:3},fr[mr.MarkLocation.Absolute]={value:mr.MarkLocation.Absolute,content:window.t("Absolute"),order:4},vr=fr,_r=Object.values(vr).sort(function(e,t){return e.order-t.order}),gr=function(e){function t(){ return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.shapeLocation,n=e.className,r=e.menuItemClassName,o=e.shapeLocationChange,i=e.disabled;return b.createElement(G,{disabled:i,className:n,menuItemClassName:r,items:_r,value:t,onChange:o})},t}(b.PureComponent),yr=window.t("Change Char"),br=window.t("Change Location"),Cr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCharChange=function(e){var n=t.context.setValue,r=e.currentTarget.value.trim(),o=r.length?r[r.length-1]:"",i=t.props.property.char;n(i,o,yr)},t._onLocationChange=function(e){var n=t.context.setValue,r=t.props.property.location;n(r,e,br)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.title,o=n.color,i=n.transparency,a=n.char,l=n.location,c=n.visible,u=e.hasPalette;return b.createElement(wt,{grouped:u,label:b.createElement(Xt,{id:t,title:r.value(),visible:c})},!u&&b.createElement(rr,{disabled:!c.value(),color:o,transparency:i}),b.createElement(s,{disabled:!c.value(),className:or.smallStyleControl,value:a.value(),onChange:this._onCharChange}),b.createElement(gr,{disabled:!c.value(),className:k(or.defaultSelect,or.additionalSelect),menuItemClassName:or.defaultSelectItem,shapeLocation:l.value(),shapeLocationChange:this._onLocationChange}))},t.contextType=Kt,t}(b.PureComponent),wr=n("Nu4p"),Er=n("4Njr"),Sr=n("lOpG"),xr=n("br6c"),Pr=n("m+Gx"),kr=n("01Ho"),Nr=n("4ZyK"),Or=n("kMtk"),Tr=n("Dj0x"),Ir=n("Ly1u"),Mr=n("leq5"),Dr=n("flzi"),jr=n("iB0j"),(Lr={}).arrow_down=Er,Lr.arrow_up=Sr,Lr.circle=xr,Lr.cross=Pr,Lr.diamond=kr,Lr.flag=Nr,Lr.label_down=Or,Lr.label_up=Tr,Lr.square=Ir,Lr.triangle_down=Mr,Lr.triangle_up=Dr,Lr.x_cross=jr,Br=Lr,Vr=[],Object.keys(wr.plotShapesData).forEach(function(e){var t=wr.plotShapesData[e];Vr.push({value:t.id,selectedContent:b.createElement("div",{className:N()(un.item,un.selected)},b.createElement(A.a,{className:un.icon,icon:g(t.icon)})),content:b.createElement("div",{className:un.item},b.createElement(A.a,{className:un.icon,icon:g(t.icon)}),b.createElement("div",{className:un.label},t.guiName))})}),Rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.shapeStyleId,n=e.className,r=e.shapeStyleChange,o=e.disabled;return b.createElement(G,{disabled:o,className:n,menuItemClassName:un.itemWrap,hideArrowButton:!0,items:Vr,value:t,onChange:r})},t}(b.PureComponent),Fr=window.t("Change Shape"),Ar=window.t("Change Location"),Wr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onPlotTypeChange=function(e){var n=t.context.setValue,r=t.props.property.plottype;n(r,e,Fr)},t._onLocationChange=function(e){var n=t.context.setValue,r=t.props.property.location;n(r,e,Ar)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.hasPalette,r=e.property,o=r.title,i=r.color,a=r.transparency,s=r.plottype,l=r.location,c=r.visible;return b.createElement(wt,{ grouped:n,label:b.createElement(Xt,{id:t,title:o.value(),visible:c})},!n&&b.createElement(rr,{disabled:!c.value(),color:i,transparency:a}),b.createElement(Rr,{disabled:!c.value(),className:or.smallStyleControl,shapeStyleId:s.value(),shapeStyleChange:this._onPlotTypeChange}),b.createElement(gr,{disabled:!c.value(),className:k(or.defaultSelect,or.additionalSelect),menuItemClassName:or.defaultSelectItem,shapeLocation:l.value(),shapeLocationChange:this._onLocationChange}))},t.contextType=Kt,t}(b.PureComponent),Hr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.title,r=e.visible,o=e.color,i=e.transparency,a=e.thickness,s=e.children,l=e.switchable,c=void 0===l||l;return b.createElement(wt,{label:c?b.createElement(Xt,{id:t,title:n,visible:r}):n},b.createElement(rr,{disabled:r&&!(Array.isArray(r)?r[0].value():r.value()),color:o,transparency:i,thickness:a}),s)},t.contextType=Kt,t}(b.PureComponent),zr=Object(jt.getLogger)("Chart.Study.PropertyPage"),Ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e,t,n,r,o,i=this.props,a=i.plot,s=i.palette,l=i.paletteProps,c=i.study,u=a.id,p=c.properties().styles,d=p[u],h=a.type;return"line"===h||"bar_colorer"===h||"bg_colorer"===h?s&&l?b.createElement(lr,{plot:a,palette:s,paletteProps:l,styleProp:d}):b.createElement(pr,{id:u,property:d}):"arrows"===h?b.createElement(hr,{id:u,property:d}):"chars"===h||"shapes"===h?b.createElement(b.Fragment,null,"chars"===h?b.createElement(Cr,{id:u,property:d,hasPalette:Boolean(s)}):b.createElement(Wr,{id:u,property:d,hasPalette:Boolean(s)}),s&&l&&b.createElement(lr,{plot:a,palette:s,paletteProps:l,hideVisibilitySwitch:!0,styleProp:d})):Object(Mt.isOhlcPlot)(a)?(e=a.target,t=Object(V.ensureDefined)(c.metaInfo().defaults.ohlcPlots)[e],n=c.properties().ohlcPlots[e],r=void 0,r=s&&l?b.createElement(lr,{plot:a,palette:s,paletteProps:l,styleProp:n}):b.createElement(Hr,{id:e,title:n.title.value(),color:n.color,visible:n.visible,transparency:n.transparency}),o=void 0,void 0!==t&&Object(Mt.isOhlcPlotStyleCandles)(t)&&(o=b.createElement(Hr,{id:e,title:window.t("Wick"),visible:n.drawWick,color:n.wickColor,transparency:n.transparency})),b.createElement(b.Fragment,null,r,o)):(zr.logError("Unknown plot type: "+h),null)},t}(b.PureComponent),Gr=n("8Uy/"),Kr=n("bQEj"),qr=n("UXdH"),Yr=n("ZSM+"),Xr=window.t("Change Line Style"),Zr=[{type:Gr.LINESTYLE_SOLID,icon:Kr,label:window.t("Line")},{type:Gr.LINESTYLE_DASHED,icon:qr,label:window.t("Dashed Line")},{type:Gr.LINESTYLE_DOTTED,icon:Yr,label:window.t("Dotted Line")}],Qr=Zr.map(function(e){return{value:e.type,selectedContent:b.createElement("div",{className:N()(un.item,un.selected)},b.createElement(A.a,{className:un.icon,icon:e.icon})),content:b.createElement("div",{className:un.item},b.createElement(A.a,{className:un.icon,icon:e.icon}),b.createElement("div",{className:un.label},e.label))}}),Jr=window.t("Show Price"),$r=function(e){ function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onLineStyleChange=function(e){var n=t.context.setValue,r=t.props.lineStyle;n(r,e,Xr)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.lineStyle,n=e.className,r=e.disabled,o=e.showPrice,i=e.showPriceChange,a=Qr;return void 0!==o&&i&&(a=[{readonly:!0,content:b.createElement(b.Fragment,null,b.createElement($t,{checked:o,label:Jr,preventLabelHighlight:!0,value:"showPriceSwitcher",onChange:i}),b.createElement(Zt.a,null))}].concat(a)),b.createElement(G,{disabled:r,className:n,menuItemClassName:un.itemWrap,hideArrowButton:!0,items:a,value:t.value(),onChange:this._onLineStyleChange})},t.contextType=Kt,t}(b.PureComponent),eo=window.t("Change Value"),to=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onValueChange=function(e){var n=t.context.setValue,r=t.props.property.value;n(r,e,eo)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.property,r=n.name,o=n.color,i=n.linestyle,a=n.linewidth,s=n.transparency,l=n.value,c=n.visible;return b.createElement(wt,{labelAlign:"adaptive",label:b.createElement(Xt,{id:t,title:r.value(),visible:c})},b.createElement("div",{className:or.block},b.createElement("div",{className:or.group},b.createElement(rr,{disabled:!c.value(),color:o,transparency:s,thickness:a}),b.createElement($r,{disabled:!c.value(),className:or.smallStyleControl,lineStyle:i})),b.createElement("div",{className:k(or.wrapGroup,or.defaultSelect,or.additionalSelect)},b.createElement(Pe,{input:{id:"",name:"",type:"integer",defval:0},value:l.value(),disabled:!c.value(),onChange:this._onValueChange}))))},t.contextType=Kt,t}(b.PureComponent),no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this.props.orders,t=e.visible,n=e.showLabels,r=e.showQty;return b.createElement(b.Fragment,null,b.createElement(yt.Row,null,b.createElement(yt.Cell,{placement:"first",colSpan:2},b.createElement(Xt,{id:"chart-orders-switch",title:window.t("Trades on Chart"),visible:t}))),b.createElement(yt.Row,null,b.createElement(yt.Cell,{placement:"first",colSpan:2},b.createElement(Xt,{id:"chart-orders-labels-switch",title:window.t("Signal Labels"),visible:n}))),b.createElement(yt.Row,null,b.createElement(yt.Cell,{placement:"first",colSpan:2},b.createElement(Xt,{id:"chart-orders-qty-switch",title:window.t("Quantity"),visible:r}))))},t.contextType=Kt,t}(b.PureComponent),ro=window.t("Change Font"),oo=["Verdana","Courier New","Times New Roman","Arial"].map(function(e){return{value:e,content:e}}),io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onFontFamilyChange=function(e){var n=t.context.setValue,r=t.props.fontFamily;n(r,e,ro)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.fontFamily,n=e.className,r=e.disabled;return b.createElement(G,{disabled:r,className:N()(n,or.defaultSelect),menuItemClassName:or.defaultSelectItem,items:oo,value:t.value(), onChange:this._onFontFamilyChange})},t.contextType=Kt,t}(b.PureComponent),ao=window.t("Change Font Size"),so=[10,11,12,14,16,20,24,28,32,40].map(function(e){return{value:e,content:e.toString()}}),lo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onFontSizeChange=function(e){var n=t.context.setValue,r=t.props.fontSize;n(r,e,ao)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.fontSize,n=e.className,r=e.disabled;return b.createElement(G,{disabled:r,className:N()(n,or.defaultSelect),menuItemClassName:or.defaultSelectItem,items:so,value:t.value(),onChange:this._onFontSizeChange})},t.contextType=Kt,t}(b.PureComponent),co=window.t("Change Visibility"),uo=window.t("Labels Font"),po=window.t("Show Labels"),ho={Traditional:new Set(["S5/R5","S4/R4","S3/R3","S2/R2","S1/R1","P"]),Fibonacci:new Set(["S3/R3","S2/R2","S1/R1","P"]),Woodie:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),Classic:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"]),DM:new Set(["S1/R1","P"]),DeMark:new Set(["S1/R1","P"]),Camarilla:new Set(["S4/R4","S3/R3","S2/R2","S1/R1","P"])},mo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.context.setValue,r=t.props.property.childs().levelsStyle,o=r.childs().showLabels;n(o,e,co)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props.property.childs(),t=e.font,n=e.fontsize,r=e.levelsStyle;return C.a.createElement(C.a.Fragment,null,C.a.createElement(wt,{labelAlign:"adaptive",label:C.a.createElement("span",null,uo)},C.a.createElement("div",{className:or.block},C.a.createElement("div",{className:or.group},C.a.createElement(io,{fontFamily:t})),C.a.createElement("div",{className:k(or.wrapGroup,or.additionalSelect)},C.a.createElement(lo,{fontSize:n})))),C.a.createElement(yt.Row,null,C.a.createElement(yt.Cell,{placement:"first",colSpan:2},C.a.createElement(Ie,{label:po,input:{id:"ShowLabels",type:"bool",defval:!0,name:"visible"},value:r.childs().showLabels.value(),onChange:this._onChange}))),this._renderColors())},t.prototype._renderColors=function(){var e=this.props.property.childs(),t=e.levelsStyle,n=e.inputs,r=t.childs(),o=r.colors,i=r.widths,a=r.visibility,s=n.childs().kind,l=Object(V.ensureDefined)(ho[s.value()]);return o.childNames().filter(function(e){return l.has(e)}).map(function(e){return C.a.createElement(Hr,{key:e,id:e,title:e,color:o.childs()[e],visible:a.childs()[e],thickness:i.childs()[e]})})},t.contextType=Kt,t}(C.a.PureComponent),fo={PivotPointsStandard:function(){var e=Object(V.ensureNotNull)(Object(b.useContext)(dr)),t=e.properties();return C.a.createElement(mo,{property:t})}},vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return P.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.model;return b.createElement(dr.Consumer,null,function(n){return b.createElement(qt,{property:Object(V.ensureNotNull)(n).properties(),model:t},b.createElement(yt,null,e._renderCustomContent(Object(V.ensureNotNull)(n).metaInfo().shortId)))})}, t.prototype._renderCustomContent=function(e){var t=fo[e];return t?b.createElement(t,null):null},t}(b.PureComponent),_o=window.t("Default"),go=window.t("Precision"),yo=window.t("Change Precision"),bo=[{value:"default",content:_o}],Co=0;Co<=8;Co++)bo.push({value:Co,content:Co.toString()});for(wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.context.setValue,r=t.props.precision;n(r,e,yo)},t}return P.__extends(t,e),t.prototype.render=function(){var e=this.props.precision;return b.createElement(wt,{label:go},b.createElement(G,{className:or.defaultSelect,menuItemClassName:or.defaultSelectItem,items:bo,value:e.value(),onChange:this._onChange}))},t.contextType=Kt,t}(b.PureComponent),Eo=window.t("Default"),So=window.t("Override Min Tick"),xo=window.t("Change Min Tick"),Po=[{priceScale:1,minMove:1,frac:!1},{priceScale:10,minMove:1,frac:!1},{priceScale:100,minMove:1,frac:!1},{priceScale:1e3,minMove:1,frac:!1},{priceScale:1e4,minMove:1,frac:!1},{priceScale:1e5,minMove:1,frac:!1},{priceScale:1e6,minMove:1,frac:!1},{priceScale:1e7,minMove:1,frac:!1},{priceScale:1e8,minMove:1,frac:!1},{priceScale:2,minMove:1,frac:!0},{priceScale:4,minMove:1,frac:!0},{priceScale:8,minMove:1,frac:!0},{priceScale:16,minMove:1,frac:!0},{priceScale:32,minMove:1,frac:!0},{priceScale:64,minMove:1,frac:!0},{priceScale:128,minMove:1,frac:!0},{priceScale:320,minMove:1,frac:!0}],ko=[{value:"default",content:Eo}],No=0;No0||c&&Object.keys(c).length>0,p=f.canOverrideMinTick(),b.createElement(qt,{property:t,model:v},b.createElement(yt,null,e.map(function(e){var t=Object(Mt.isOhlcPlot)(e)?P.__assign({},e,{id:e.target}):e,n=h._findPlotPalette(t),r=n.palette,o=n.paletteProps ;return b.createElement(Ur,{key:e.id,plot:e,palette:r,paletteProps:o,study:f})}),n&&n.childNames().map(function(e,t){var r=n.child(e);if(!r.isHidden||!r.isHidden.value())return b.createElement(to,{key:t,id:r.name.value(),property:r})}),r&&b.createElement(Hr,{id:"bandsBackground",title:Io,visible:r.fillBackground,color:r.backgroundColor,transparency:r.transparency}),o&&b.createElement(Hr,{id:"areaBackground",title:Io,visible:o.fillBackground,color:o.backgroundColor,transparency:o.transparency}),l&&l.map(function(e){var t,n,r;if(!e.isHidden)return t=f.properties().filledAreasStyle[e.id],n=e.title||Io,e.palette?(r=h._findPaletteByTargetId(e.id),b.createElement(lr,{key:e.id,area:e,palette:Object(V.ensureDefined)(r.palette),paletteProps:Object(V.ensureDefined)(r.paletteProps),styleProp:t})):b.createElement(Hr,{key:e.id,id:e.id,title:n,color:t.color,visible:t.visible,transparency:t.transparency})}),!1,u&&b.createElement(wo,{precision:i}),p&&b.createElement(To,{minTick:s}),tt.a.isScriptStrategy(_)&&b.createElement(no,{orders:a.orders}))))},t.prototype._findPaletteByTargetId=function(e){var t,n,r,o=this.props.study,i=o.metaInfo(),a=i.plots,s=Object(V.ensureDefined)(i.palettes);for(t=0,n=a;t'},zztK:function(e,t){e.exports=''}}]);