Release v24.000 (from b7d8dd93)
Fixes tradingview/charting_library#60 Fixes tradingview/charting_library#65 Fixes tradingview/charting_library#70 Fixes tradingview/charting_library#71 Fixes tradingview/charting_library#75 Fixes tradingview/charting_library#76 Fixes tradingview/charting_library#78 Fixes tradingview/charting_library#79 Fixes tradingview/charting_library#81 Fixes tradingview/charting_library#82 Fixes tradingview/charting_library#84 Fixes tradingview/charting_library#86 Fixes tradingview/charting_library#89 Fixes tradingview/charting_library#90 Fixes tradingview/charting_library#91 Fixes tradingview/charting_library#92 Fixes tradingview/charting_library#94 Fixes tradingview/charting_library#99 Fixes tradingview/charting_library#100 Fixes tradingview/charting_library#101 Fixes tradingview/charting_library#102 Fixes tradingview/charting_library#103 Fixes tradingview/charting_library#1995 Fixes tradingview/charting_library#5726 Fixes tradingview/charting_library#6025 Fixes tradingview/charting_library#6406 Fixes tradingview/charting_library#6636 Fixes tradingview/charting_library#6767 Fixes tradingview/charting_library#6775 Fixes tradingview/charting_library#6783 Fixes tradingview/charting_library#6864 Fixes tradingview/charting_library#6926 Fixes tradingview/charting_library#7060 Fixes tradingview/charting_library#7169 Fixes tradingview/charting_library#7307
This commit is contained in:
13
charting_library/bundles/9050.f4820dabd96059521d2c.js
Normal file
13
charting_library/bundles/9050.f4820dabd96059521d2c.js
Normal file
@@ -0,0 +1,13 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[9050],{28146:e=>{e.exports={button:"button-OvB35Th_",content:"content-OvB35Th_","icon-only":"icon-only-OvB35Th_",link:"link-OvB35Th_","color-brand":"color-brand-OvB35Th_","variant-primary":"variant-primary-OvB35Th_","variant-secondary":"variant-secondary-OvB35Th_","color-gray":"color-gray-OvB35Th_","color-green":"color-green-OvB35Th_","color-red":"color-red-OvB35Th_","size-xsmall":"size-xsmall-OvB35Th_","with-start-icon":"with-start-icon-OvB35Th_","with-end-icon":"with-end-icon-OvB35Th_","start-icon-wrap":"start-icon-wrap-OvB35Th_","end-icon-wrap":"end-icon-wrap-OvB35Th_","size-small":"size-small-OvB35Th_","size-medium":"size-medium-OvB35Th_","size-large":"size-large-OvB35Th_","size-xlarge":"size-xlarge-OvB35Th_",animated:"animated-OvB35Th_",stretch:"stretch-OvB35Th_",grouped:"grouped-OvB35Th_","adjust-position":"adjust-position-OvB35Th_","first-row":"first-row-OvB35Th_","first-col":"first-col-OvB35Th_","no-corner-top-left":"no-corner-top-left-OvB35Th_","no-corner-top-right":"no-corner-top-right-OvB35Th_","no-corner-bottom-right":"no-corner-bottom-right-OvB35Th_","no-corner-bottom-left":"no-corner-bottom-left-OvB35Th_"}},81193:e=>{e.exports={container:"container-Mtq7m9Yl","intent-default":"intent-default-Mtq7m9Yl",focused:"focused-Mtq7m9Yl",readonly:"readonly-Mtq7m9Yl",disabled:"disabled-Mtq7m9Yl","with-highlight":"with-highlight-Mtq7m9Yl",grouped:"grouped-Mtq7m9Yl","adjust-position":"adjust-position-Mtq7m9Yl","first-row":"first-row-Mtq7m9Yl","first-col":"first-col-Mtq7m9Yl",stretch:"stretch-Mtq7m9Yl","font-size-medium":"font-size-medium-Mtq7m9Yl","font-size-large":"font-size-large-Mtq7m9Yl","no-corner-top-left":"no-corner-top-left-Mtq7m9Yl","no-corner-top-right":"no-corner-top-right-Mtq7m9Yl","no-corner-bottom-right":"no-corner-bottom-right-Mtq7m9Yl","no-corner-bottom-left":"no-corner-bottom-left-Mtq7m9Yl","size-small":"size-small-Mtq7m9Yl","size-medium":"size-medium-Mtq7m9Yl","size-large":"size-large-Mtq7m9Yl","intent-success":"intent-success-Mtq7m9Yl","intent-warning":"intent-warning-Mtq7m9Yl","intent-danger":"intent-danger-Mtq7m9Yl","intent-primary":"intent-primary-Mtq7m9Yl","border-none":"border-none-Mtq7m9Yl","border-thin":"border-thin-Mtq7m9Yl","border-thick":"border-thick-Mtq7m9Yl",highlight:"highlight-Mtq7m9Yl",shown:"shown-Mtq7m9Yl"}},84684:e=>{e.exports={"inner-slot":"inner-slot-yJbunXPO",interactive:"interactive-yJbunXPO",icon:"icon-yJbunXPO","inner-middle-slot":"inner-middle-slot-yJbunXPO","before-slot":"before-slot-yJbunXPO","after-slot":"after-slot-yJbunXPO"}},58089:e=>{e.exports={input:"input-oiYdY6I4","with-start-slot":"with-start-slot-oiYdY6I4","with-end-slot":"with-end-slot-oiYdY6I4"}},95700:e=>{e.exports={"small-height-breakpoint":"screen and (max-height: 360px)",footer:"footer-PQhX1JKt",submitButton:"submitButton-PQhX1JKt",buttons:"buttons-PQhX1JKt"}},89220:e=>{e.exports={errors:"errors-nQUDfTUB",show:"show-nQUDfTUB",error:"error-nQUDfTUB"}},96373:e=>{e.exports={"error-icon":"error-icon-ROs2cmJ2",
|
||||
"intent-danger":"intent-danger-ROs2cmJ2","intent-warning":"intent-warning-ROs2cmJ2"}},87429:e=>{e.exports={wrap:"wrap-MeRSNRqP",input:"input-MeRSNRqP"}},62774:e=>{e.exports={icon:"icon-FGiNit7J"}},39941:e=>{e.exports={"static-messages":"static-messages-u1qnKSIb",errors:"errors-u1qnKSIb",warnings:"warnings-u1qnKSIb","success-mesages":"success-mesages-u1qnKSIb","input-description":"input-description-u1qnKSIb",message:"message-u1qnKSIb"}},55498:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 430px)",item:"item-RhC5uhZw",hovered:"hovered-RhC5uhZw",isDisabled:"isDisabled-RhC5uhZw",isActive:"isActive-RhC5uhZw",shortcut:"shortcut-RhC5uhZw",toolbox:"toolbox-RhC5uhZw",withIcon:"withIcon-RhC5uhZw",icon:"icon-RhC5uhZw",labelRow:"labelRow-RhC5uhZw",label:"label-RhC5uhZw",showOnHover:"showOnHover-RhC5uhZw"}},94720:(e,t,n)=>{"use strict";n.d(t,{Button:()=>w});var o=n(50959),r=n(97754),s=n(95604),a=n(9745),i=n(28146),c=n.n(i);function l(e){const{color:t="brand",size:n="medium",variant:o="primary",stretch:a=!1,icon:i,startIcon:l,endIcon:u,iconOnly:h=!1,className:d,isGrouped:m,cellState:f,disablePositionAdjustment:p=!1,isAnchor:g=!1}=e,v=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,c()["no-corner-top-left"])),2&e&&(t=r(t,c()["no-corner-top-right"])),4&e&&(t=r(t,c()["no-corner-bottom-right"])),8&e&&(t=r(t,c()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(f));return r(d,c().button,c()[`size-${n}`],c()[`color-${t}`],c()[`variant-${o}`],a&&c().stretch,(i||l)&&c()["with-start-icon"],u&&c()["with-end-icon"],h&&c()["icon-only"],v,m&&c().grouped,m&&!p&&c()["adjust-position"],m&&f.isTop&&c()["first-row"],m&&f.isLeft&&c()["first-col"],g&&c().link)}function u(e){const{startIcon:t,icon:n,iconOnly:r,children:s,endIcon:i}=e,l=null!=t?t:n;return o.createElement(o.Fragment,null,l&&o.createElement(a.Icon,{icon:l,className:c()["start-icon-wrap"]}),s&&o.createElement("span",{className:c().content},s),i&&!r&&o.createElement(a.Icon,{icon:i,className:c()["end-icon-wrap"]}))}var h=n(86332),d=n(90186);function m(e){const{className:t,color:n,variant:o,size:r,stretch:s,animated:a,icon:i,iconOnly:c,startIcon:l,endIcon:u,...h}=e;return{...h,...(0,d.filterDataProps)(e),...(0,d.filterAriaProps)(e)}}function f(e){const{reference:t,...n}=e,{isGrouped:r,cellState:s,disablePositionAdjustment:a}=(0,o.useContext)(h.ControlGroupContext),i=l({...n,isGrouped:r,cellState:s,disablePositionAdjustment:a});return o.createElement("button",{...m(n),className:i,ref:t},o.createElement(u,{...n}))}function p(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function g(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function v(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function b(e){const{intent:t,size:n,appearance:o,useFullWidth:r,icon:s,...a}=e;return{...a,color:g(t),size:v(n),variant:p(o),stretch:r,startIcon:s}}function w(e){return o.createElement(f,{...b(e)})}},86332:(e,t,n)=>{
|
||||
"use strict";n.d(t,{ControlGroupContext:()=>o});const o=n(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},95604:(e,t,n)=>{"use strict";function o(e){let t=0;return e.isTop&&e.isLeft||(t+=1),e.isTop&&e.isRight||(t+=2),e.isBottom&&e.isLeft||(t+=8),e.isBottom&&e.isRight||(t+=4),t}n.d(t,{getGroupCellRemoveRoundBorders:()=>o})},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>b,InputClasses:()=>p});var o=n(50959),r=n(97754),s=n(50151),a=n(38528),i=n(90186),c=n(86332),l=n(95604);var u=n(81193),h=n.n(u);function d(e){let t="";return 0!==e&&(1&e&&(t=r(t,h()["no-corner-top-left"])),2&e&&(t=r(t,h()["no-corner-top-right"])),4&e&&(t=r(t,h()["no-corner-bottom-right"])),8&e&&(t=r(t,h()["no-corner-bottom-left"]))),t}function m(e,t,n,o){const{removeRoundBorder:s,className:a,intent:i="default",borderStyle:c="thin",size:u,highlight:m,disabled:f,readonly:p,stretch:g,noReadonlyStyles:v,isFocused:b}=e,w=d(null!=s?s:(0,l.getGroupCellRemoveRoundBorders)(n));return r(h().container,h()[`intent-${i}`],h()[`border-${c}`],u&&h()[`size-${u}`],w,m&&h()["with-highlight"],f&&h().disabled,p&&!v&&h().readonly,b&&h().focused,g&&h().stretch,t&&h().grouped,!o&&h()["adjust-position"],n.isTop&&h()["first-row"],n.isLeft&&h()["first-col"],a)}function f(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return h().highlight;const s=d(null!=o?o:(0,l.getGroupCellRemoveRoundBorders)(t));return r(h().highlight,h().shown,s)}const p={FontSizeMedium:(0,s.ensureDefined)(h()["font-size-medium"]),FontSizeLarge:(0,s.ensureDefined)(h()["font-size-large"])},g={passive:!1};function v(e,t){const{style:n,id:r,role:s,onFocus:l,onBlur:u,onMouseOver:h,onMouseOut:d,onMouseDown:p,onMouseUp:v,onKeyDown:b,onClick:w,tabIndex:C,startSlot:E,middleSlot:M,endSlot:S,onWheel:y,onWheelNoPassive:O=null}=e,{isGrouped:R,cellState:B,disablePositionAdjustment:N=!1}=(0,o.useContext)(c.ControlGroupContext),x=function(e,t=null,n){const r=(0,o.useRef)(null),s=(0,o.useRef)(null),a=(0,o.useCallback)((()=>{if(null===r.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&r.current.addEventListener(e,t,n)}),[]),i=(0,o.useCallback)((()=>{if(null===r.current||null===s.current)return;const[e,t,n]=s.current;null!==t&&r.current.removeEventListener(e,t,n)}),[]),c=(0,o.useCallback)((e=>{i(),r.current=e,a()}),[]);return(0,o.useEffect)((()=>(s.current=[e,t,n],a(),i)),[e,t,n]),c}("wheel",O,g);return o.createElement("span",{style:n,id:r,role:s,className:m(e,R,B,N),tabIndex:C,ref:(0,a.useMergedRefs)([t,x]),onFocus:l,onBlur:u,onMouseOver:h,onMouseOut:d,onMouseDown:p,onMouseUp:v,onKeyDown:b,onClick:w,onWheel:y,...(0,i.filterDataProps)(e),...(0,i.filterAriaProps)(e)},E,M,S,o.createElement("span",{className:f(e,B)}))}v.displayName="ControlSkeleton";const b=o.forwardRef(v)},78274:(e,t,n)=>{"use strict";n.d(t,{StartSlot:()=>i,MiddleSlot:()=>c,EndSlot:()=>l,AfterSlot:()=>u});var o=n(50959),r=n(97754),s=n(84684),a=n.n(s);function i(e){const{className:t,interactive:n=!0,icon:s=!1,children:i}=e;return o.createElement("span",{
|
||||
className:r(a()["inner-slot"],n&&a().interactive,s&&a().icon,t)},i)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(a()["inner-slot"],a()["inner-middle-slot"],t)},n)}function l(e){const{className:t,interactive:n=!0,icon:s=!1,children:i}=e;return o.createElement("span",{className:r(a()["inner-slot"],n&&a().interactive,s&&a().icon,t)},i)}function u(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(a()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>b});var o=n(50959),r=n(97754),s=n(90186),a=n(47201),i=n(48907),c=n(38528),l=n(48027),u=n(29202),h=n(45812),d=n(67029),m=n(78274),f=n(58089),p=n.n(f);function g(e){return!(0,s.isAriaAttribute)(e)&&!(0,s.isDataAttribute)(e)}function v(e){const{id:t,title:n,role:a,tabIndex:i,placeholder:c,name:l,type:u,value:h,defaultValue:f,draggable:v,autoComplete:b,autoFocus:w,maxLength:C,min:E,max:M,step:S,pattern:y,inputMode:O,onSelect:R,onFocus:B,onBlur:N,onKeyDown:x,onKeyUp:k,onKeyPress:_,onChange:A,onDragStart:I,size:T="medium",className:D,inputClassName:P,disabled:z,readonly:F,containerTabIndex:Y,startSlot:q,endSlot:W,reference:L,containerReference:H,onContainerFocus:K,...U}=e,j=(0,s.filterProps)(U,g),$={...(0,s.filterAriaProps)(U),...(0,s.filterDataProps)(U),id:t,title:n,role:a,tabIndex:i,placeholder:c,name:l,type:u,value:h,defaultValue:f,draggable:v,autoComplete:b,autoFocus:w,maxLength:C,min:E,max:M,step:S,pattern:y,inputMode:O,onSelect:R,onFocus:B,onBlur:N,onKeyDown:x,onKeyUp:k,onKeyPress:_,onChange:A,onDragStart:I};return o.createElement(d.ControlSkeleton,{...j,disabled:z,readonly:F,tabIndex:Y,className:r(p().container,D),size:T,ref:H,onFocus:K,startSlot:q,middleSlot:o.createElement(m.MiddleSlot,null,o.createElement("input",{...$,className:r(p().input,P,q&&p()["with-start-slot"],W&&p()["with-end-slot"]),disabled:z,readOnly:F,ref:L})),endSlot:W})}function b(e){e=(0,l.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:s,onBlur:d,reference:m,containerReference:f=null}=e,p=(0,o.useRef)(null),g=(0,o.useRef)(null),[b,w]=(0,u.useFocus)(),C=t?void 0:b?-1:r,E=t?void 0:b?r:-1,{isMouseDown:M,handleMouseDown:S,handleMouseUp:y}=(0,h.useIsMouseDown)(),O=(0,a.createSafeMulticastEventHandler)(w.onFocus,(function(e){n&&!M.current&&(0,i.selectAllContent)(e.currentTarget)}),s),R=(0,a.createSafeMulticastEventHandler)(w.onBlur,d),B=(0,o.useCallback)((e=>{p.current=e,m&&("function"==typeof m&&m(e),"object"==typeof m&&(m.current=e))}),[p,m]);return o.createElement(v,{...e,isFocused:b,containerTabIndex:C,tabIndex:E,onContainerFocus:function(e){g.current===e.target&&null!==p.current&&p.current.focus()},onFocus:O,onBlur:R,reference:B,containerReference:(0,c.useMergedRefs)([g,f]),onMouseDown:S,onMouseUp:y})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>s});var o=n(47201),r=n(29202);function s(e){const{onFocus:t,onBlur:n,intent:s,highlight:a,disabled:i}=e,[c,l]=(0,r.useFocus)(void 0,i),u=(0,o.createSafeMulticastEventHandler)(i?void 0:l.onFocus,t),h=(0,
|
||||
o.createSafeMulticastEventHandler)(i?void 0:l.onBlur,n);return{...e,intent:s||(c?"primary":"default"),highlight:null!=a?a:c,onFocus:u,onBlur:h}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(50959);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)((()=>{t&&n&&r(!1)}),[t,n]);const s={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,s]}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(50959);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)((()=>{e.current=!0}),[e]),n=(0,o.useCallback)((()=>{e.current=!1}),[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},38528:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>s});var o=n(50959),r=n(53017);function s(e){return(0,o.useCallback)((0,r.mergeRefs)(e),e)}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},50182:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>d});var o=n(50959),r=n(97754),s=n.n(r),a=n(94720),i=n(50151),c=n(44352),l=n(68335),u=n(75208),h=n(95700);class d extends o.PureComponent{constructor(){super(...arguments),this._dialogRef=o.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:o}=this.props;switch(e){case"submit":t();break;case"cancel":n()}o()},this._handleCancel=()=>{this.props.onCancel(),this.props.onClose()},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:o}=this.props;13===(0,l.hashFromEvent)(e)&&o&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:r,footerLeftRenderer:s,submitButtonText:a,submitButtonDisabled:i,defaultActionOnClose:c,submitOnEnterKey:l,...h}=this.props;return o.createElement(u.AdaptivePopupDialog,{...h,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,i.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:r,additionalButtons:i,submitButtonText:l,submitButtonDisabled:u,onSubmit:d,cancelButtonText:m,showCancelButton:f=!0,submitButtonClassName:p,cancelButtonClassName:g,buttonsWrapperClassName:v}=this.props;return o.createElement(o.Fragment,null,t(e),o.createElement("div",{className:h.footer},r&&r(e.isSmallWidth),o.createElement("div",{className:s()(h.buttons,v)},i,f&&o.createElement(a.Button,{className:g,name:"cancel",appearance:"stroke",onClick:this._handleCancel},null!=m?m:c.t(null,void 0,n(20036))),o.createElement("span",{className:h.submitButton},o.createElement(a.Button,{className:p,disabled:u,name:"submit",onClick:d,"data-name":"submit-button"},null!=l?l:c.t(null,void 0,n(68988)))))))}}}d.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},27365:(e,t,n)=>{"use strict";n.d(t,{
|
||||
getTimezoneName:()=>o});n(32769);function o(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>o,dialogsOpenerManager:()=>r});class o{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const r=new o},1405:(e,t,n)=>{"use strict";n.d(t,{anchors:()=>o});n(50959);const o={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},70412:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>s,useAccurateHover:()=>a,useHover:()=>r});var o=n(50959);function r(){const[e,t]=(0,o.useState)(!1);return[e,{onMouseOver:function(e){s(e)&&t(!0)},onMouseOut:function(e){s(e)&&t(!1)}}]}function s(e){return!e.currentTarget.contains(e.relatedTarget)}function a(e){const[t,n]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{const t=t=>{if(null===e.current)return;const o=e.current.contains(t.target);n(o)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)}),[]),t}},86623:(e,t,n)=>{"use strict";n.d(t,{FormInput:()=>l});var o=n(50959),r=n(31261),s=n(84275),a=n(78274),i=n(47201),c=n(38528);function l(e){var t;const{intent:n,onFocus:l,onBlur:u,onMouseOver:h,onMouseOut:d,containerReference:m=null,endSlot:f,hasErrors:p,hasWarnings:g,hasSuccessMessages:v,errors:b,warnings:w,successMessages:C,alwaysShowAttachedErrors:E,iconHidden:M,messagesPosition:S,messagesAttachment:y,customErrorsAttachment:O,messagesRoot:R,inheritMessagesWidthFromTarget:B,disableMessagesRtlStyles:N,"aria-required":x,"aria-invalid":k,inputDescription:_,...A}=e,I=(0,s.useControlValidationLayout)({hasErrors:p,hasWarnings:g,hasSuccessMessages:v,errors:b,warnings:w,successMessages:C,alwaysShowAttachedErrors:E,iconHidden:M,messagesPosition:S,messagesAttachment:y,customErrorsAttachment:O,messagesRoot:R,inheritMessagesWidthFromTarget:B,disableMessagesRtlStyles:N,inputDescription:_}),T=(0,i.createSafeMulticastEventHandler)(l,I.onFocus),D=(0,i.createSafeMulticastEventHandler)(u,I.onBlur),P=(0,i.createSafeMulticastEventHandler)(h,I.onMouseOver),z=(0,i.createSafeMulticastEventHandler)(d,I.onMouseOut);return o.createElement(o.Fragment,null,o.createElement(r.InputControl,{...A,intent:null!==(t=I.intent)&&void 0!==t?t:n,onFocus:T,onBlur:D,onMouseOver:P,onMouseOut:z,containerReference:(0,c.useMergedRefs)([m,I.containerReference]),endSlot:o.createElement(o.Fragment,null,I.icon&&o.createElement(a.EndSlot,{icon:!0},I.icon),f),"aria-required":x,"aria-invalid":k,
|
||||
"aria-describedby":I.ariaIds}),I.renderedErrors)}},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>D});var o=n(49483),r=n(50959),s=n(97754),a=n.n(s),i=n(50151),c=n(47201),l=n(78274),u=n(31261),h=n(9745),d=n(62774),m=n(95096);function f(e){return r.createElement(h.Icon,{className:d.icon,icon:m})}var p=n(29202),g=n(87429);var v=n(58095),b=n(91031);const w={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function C(e,t,n){const o=[],r=n;let s=0,a=0;const i=e.length,c=r.length;let l=-1,u=0;const h=[],d=i-1,m=[];let f;for(;s<i&&a<c;){const n=e.charAt(s),i=r.charAt(a),c=w[n];c?(i.match(c.pattern)?(o.push(i),c.recursive&&(-1===l?l=s:s===d&&s!==l&&(s=l-1),d===l&&(s-=1)),s+=1):i===f?(u--,f=void 0):c.optional?(s+=1,a-=1):c.fallback?(o.push(c.fallback),s+=1,a-=1):m.push({p:a,v:i,e:c.pattern}),a+=1):(t||o.push(n),i===n?(h.push(a),a+=1):(f=n,h.push(a+u),u++),s+=1)}const p=e.charAt(d);i!==c+1||w[p]||o.push(p);const g=o.join(""),v=function(e,t){const n=0,o={};for(let e=0;e<t.length;e++)o[t[e]+n]=1;return o}(0,h);return[g,v,m]}function E(e,t,n){const o=function(e){let t=!0;for(let n=0;n<e.length;n++){const o=w[e.charAt(n)];if(o&&o.recursive){t=!1;break}}return t?e.length:void 0}(e),[s,a]=C(e,!1,t),[c,l]=(0,r.useState)(s),[u,h]=(0,r.useState)(0),[d,m]=(0,r.useState)(!1),f=(0,r.useRef)(a),p=(0,r.useRef)(c);return(0,r.useEffect)((()=>{const[n,o]=C(e,!1,t);l(n),g(o)}),[t,e]),(0,r.useLayoutEffect)((()=>{const e=(0,i.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),m(!1)),h(M(e))}),[d]),[t,p,{onChange:function(){const t=(0,i.ensureNotNull)(n.current),o=t.value,[r,s]=C(e,!1,o);l(r),p.current=r;const a=g(s),d=function(e,t,n,o,r,s){if(e!==t){const a=t.length,i=e.length;let c=0,l=0,u=0,h=0,d=0;for(d=o;d<a&&r[d];d++)l++;for(d=o-1;d>=0&&r[d];d--)c++;for(d=o-1;d>=0;d--)r[d]&&u++;for(d=n-1;d>=0;d--)s[d]&&h++;if(o>i)o=10*a;else if(n>=o&&n!==i){if(s[o]){const e=o;o-=h-u,r[o-=c]&&(o=e)}}else o>n&&(o+=u-h,o+=l)}return o}(c,r,u,M(t),s,a);h(d),m(!0)},onSelect:function(){const e=(0,i.ensureNotNull)(n.current);h(M(e))},maxLength:o}];function g(e){const t=f.current;return f.current=e,t}}function M(e){return e.selectionStart||0}function S(e){const{value:t,mask:n,onChange:o,...s}=e,a=(0,r.useRef)(null),[i,c,l]=E(n,t,a);return(0,r.useLayoutEffect)((()=>{void 0!==e.reference&&(e.reference.current=a.current)}),[e.reference]),r.createElement(u.InputControl,{...s,maxLength:l.maxLength,value:i,autoComplete:"off",reference:function(e){a.current=e},onChange:function(){l.onChange(),o(c.current)},onSelect:l.onSelect})}var y=n(68335),O=n(50628),R=n(16396),B=n(93975);const N=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[o,r]=[I(t.toString()),I(n.toString())],s=`${o}:${r}`,a=_(s)?s:A(s);e.push(a)}return e})();function x(e){let t=!1;const n=(0,r.useRef)(null),o=(0,r.useRef)(null),s=(0,r.useRef)(null),c=(0,r.useRef)(null),[u,h]=(0,p.useFocus)(),[d,m]=(0,r.useState)(e.value),g=k(d),w=_(g)?g:A(g),[C,E]=(0,
|
||||
r.useState)(w),M=u||q().some((e=>null!==e&&e.contains(document.activeElement)));(0,r.useLayoutEffect)((()=>m(e.value)),[e.value]),(0,r.useLayoutEffect)((()=>E(w)),[d,M]),(0,r.useEffect)((()=>W(C===w?"auto":"smooth")),[C]);const x=(0,B.lowerbound)(N,w,((e,t)=>e<t));let I=N;N[x]!==w&&(I=[...N],I.splice(x,0,w));const T=(0,v.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:function(e){null!==o.current&&M&&e.target instanceof Node&&null!==s.current&&!s.current.contains(e.target)&&o.current.blur()}});return r.createElement("div",{className:a()(e.className),onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,y.hashFromEvent)(e.nativeEvent);if(38===t){e.preventDefault();const t=(I.indexOf(C)+I.length-1)%I.length;E(I[t])}if(40===t){e.preventDefault();const t=(I.indexOf(C)+I.length+1)%I.length;E(I[t])}},onFocus:function(e){F(e)||h.onFocus(e)},onBlur:function(e){F(e)||h.onBlur(e)},ref:T},r.createElement(S,{disabled:e.disabled,name:e.name,endSlot:r.createElement(l.EndSlot,{icon:!0},r.createElement(f,null)),reference:o,containerReference:n,mask:"09:00",value:d,onFocus:function(e){setTimeout(L,0)},onBlur:function(e){F(e)||D(d)},onChange:function(t){m(t),e.onInput&&e.onInput(t)},onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,y.hashFromEvent)(e.nativeEvent);13===t&&(e.preventDefault(),D(C),(0,i.ensureNotNull)(o.current).blur());27===t&&(e.preventDefault(),(0,i.ensureNotNull)(o.current).blur())}}),r.createElement(O.PopupMenu,{onOpen:function(){W()},onClose:function(){},position:function(){const e=(0,i.ensureNotNull)(n.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,o=e.top;let r=231,s=e.bottom;if(r>o&&r>t){const n=(0,b.clamp)(r,0,o),a=(0,b.clamp)(r,0,t);r=Math.max(n,a),s=n>a?e.top-n:e.bottom}else r>t&&(s=e.top-r);return{x:e.left,y:s,overrideWidth:e.width,overrideHeight:r}},closeOnClickOutside:!1,isOpened:M,tabIndex:-1,reference:s},I.map((e=>r.createElement(R.PopupMenuItem,{key:e,label:e,isActive:e===w,isHovered:e===C,reference:e===C?P:void 0,onClick:z,onClickArg:e})))));function D(n){const o=k(n),r=_(o)?o:A(o);m(r),t||(t=!0,e.onChange(r))}function P(e){c.current=e}function z(e){D((0,i.ensureDefined)(e)),(0,i.ensureNotNull)(s.current).blur()}function F(e){return u&&(null!==Y(document.activeElement)||null!==Y(e.relatedTarget))}function Y(e){return e instanceof Node&&q().find((t=>null!==t&&t.contains(e)))||null}function q(){return[s.current,o.current]}function W(e="auto"){if(null!==c.current){const t=(0,i.ensureNotNull)(s.current).getBoundingClientRect(),n=c.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&c.current.scrollIntoView({behavior:e})}}function L(){const e=o.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}function k(e){const[t="",n=""]=e.split(":"),[o,r]=[I(t),T(n)];return`${o}:${r}`}function _(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function A(e){const[t,n]=e.split(":"),[o,r]=[(0,b.clamp)(parseInt(t),0,23),(0,b.clamp)(parseInt(n),0,59)],[s,a]=[I(o.toString()),T(r.toString())];return`${s}:${a}`}function I(e){
|
||||
return e.slice(0,2).padStart(2,"0")}function T(e){return e.slice(0,2).padEnd(2,"0")}const D=o.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:o,className:s,...h}=e,d=(0,r.useRef)(null),[m,v]=(0,p.useFocus)(),b=(0,c.createSafeMulticastEventHandler)(v.onBlur,(function(){d.current&&o&&(d.current.defaultValue=o)}));return(0,r.useLayoutEffect)((()=>{d.current&&o&&(d.current.defaultValue=o)}),[]),(0,r.useLayoutEffect)((()=>{d.current&&o&&(d.current.value=o)}),[o]),r.createElement("div",{className:a()(g.wrap,s)},r.createElement(u.InputControl,{...h,type:"text",endSlot:r.createElement(l.EndSlot,{icon:!0},r.createElement(f,null)),value:o,highlight:m,intent:m?"primary":void 0,onFocus:function(e){(0,i.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),r.createElement("input",{...v,disabled:e.disabled,className:g.input,type:"time",onBlur:b,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:x},84275:(e,t,n)=>{"use strict";n.d(t,{MessagesPosition:()=>M,useControlValidationLayout:()=>_});var o=n(50959),r=n(97754),s=n(29202),a=n(70412),i=n(78274),c=n(1405),l=n(86431),u=n(962);var h=n(89220),d=n(80142);class m extends o.PureComponent{render(){const{children:e=[],show:t=!1,customErrorClass:n,disableRtlStyles:s,messageIdCallback:a}=this.props,i=r(h.errors,{[h.show]:t},n),c=e.map(((e,t)=>o.createElement(v,{key:t,messageIdCallback:a},e)));let l={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,d.isRtl)()&&!s){const{left:e,right:t}=l;l={...l,left:t,right:e}}return o.createElement("div",{style:l,className:i},c)}}const f=(0,l.makeOverlapable)((p=m,(g=class extends o.PureComponent{constructor(e){super(e),this._getComponentInstance=e=>{this._instance=e},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=u.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(e){e.children===this.props.children&&e.top===this.props.top&&e.left===this.props.left&&e.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return o.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},o.createElement(p,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,
|
||||
width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(e){if(e.target&&e.attachment&&e.targetAttachment){const t=this._calcTargetProps(e.target,e.attachment,e.targetAttachment);if(null===t)return{};const{width:n,inheritWidthFromTarget:o=!0,inheritMaxWidthFromTarget:r=!1}=this.props,s={width:o?t.width:n,maxWidth:r?t.width:void 0};switch(e.attachment.vertical){case"bottom":case"middle":s.top=t.y;break;default:s[e.attachment.vertical]=t.y}switch(e.attachment.horizontal){case"right":case"center":s.left=t.x;break;default:s[e.attachment.horizontal]=t.x}return s}return{}}_calcTargetProps(e,t,n){const o=e.getBoundingClientRect(),r=this._instanceElem.getBoundingClientRect(),s="parent"===this.props.root?this._getCoordsRelToParentEl(e,o):this._getCoordsRelToDocument(o);if(null===s)return null;const a=this._getDimensions(r),i=this._getDimensions(o).width;let c=0,l=0;switch(t.vertical){case"top":l=s[n.vertical];break;case"bottom":l=s[n.vertical]-a.height;break;case"middle":l=s[n.vertical]-a.height/2}switch(t.horizontal){case"left":c=s[n.horizontal];break;case"right":c=s[n.horizontal]-a.width;break;case"center":c=s[n.horizontal]-a.width/2}return"number"==typeof this.props.attachmentOffsetY&&(l+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(c+=this.props.attachmentOffsetX),{x:c,y:l,width:i}}_getCoordsRelToDocument(e){const t=pageYOffset,n=pageXOffset,o=e.top+t,r=e.bottom+t,s=e.left+n;return{top:o,bottom:r,left:s,right:e.right+n,middle:(o+e.height)/2,center:s+e.width/2}}_getCoordsRelToParentEl(e,t){const n=e.offsetParent;if(null===n)return null;const o=n.scrollTop,r=n.scrollLeft,s=e.offsetTop+o,a=e.offsetLeft+r,i=t.width+a;return{top:s,bottom:t.height+s,left:a,right:i,middle:(s+t.height)/2,center:(a+t.width)/2}}_getDimensions(e){return{height:e.height,width:e.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",g));var p,g;function v(e){const{children:t,messageIdCallback:n,...r}=e,s=o.useId();return o.useEffect((()=>{n&&n(s)}),[s]),o.createElement("div",{...r,className:h.error,id:s},t)}var b=n(9745),w=n(16658),C=n(96373);function E(e){const{intent:t="danger"}=e;return o.createElement(b.Icon,{icon:w,className:r(C["error-icon"],C[`intent-${t}`])})}var M,S,y=n(39941);!function(e){e[e.Attached=0]="Attached",e[e.Static=1]="Static",e[e.Hidden=2]="Hidden"}(M||(M={})),function(e){e.Top="top",e.Bottom="bottom"}(S||(S={}));const O={top:{attachment:c.anchors.topRight.attachment,targetAttachment:c.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.anchors.bottomRight.attachment,
|
||||
targetAttachment:c.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function R(e){const{isOpened:t,target:n,errorAttachment:r=S.Top,customErrorsAttachment:s,root:a="parent",inheritWidthFromTarget:i=!1,disableRtlStyles:c,children:l,messageIdCallback:u}=e,{attachment:h,targetAttachment:d,attachmentOffsetY:m}=null!=s?s:O[r];return o.createElement(f,{isOpened:t,target:n,root:a,inheritWidthFromTarget:i,attachment:h,targetAttachment:d,attachmentOffsetY:m,disableRtlStyles:c,messageIdCallback:u,inheritMaxWidthFromTarget:!0,show:!0},l)}function B(e,t){return Boolean(e)&&void 0!==t&&t.length>0}function N(e,t,n){return e===M.Attached&&B(t,n)}function x(e,t,n){return e===M.Static&&B(t,n)}function k(e,t,n){const{hasErrors:o,hasWarnings:r,hasSuccessMessages:s,alwaysShowAttachedErrors:a,iconHidden:i,errors:c,warnings:l,successMessages:u,messagesPosition:h=M.Static}=e,d=N(h,o,c),m=N(h,r,l),f=d&&(t||n||Boolean(a)),p=!f&&m&&(t||n),g=x(h,o,c),v=!g&&x(h,r,l),b=!g&&!v&&x(h,s,u),w=!i&&Boolean(o),C=!i&&!w&&Boolean(r),E=function(e,t,n){return Boolean(n)?"success":Boolean(e)?"danger":Boolean(t)?"warning":void 0}(o,r,s);return{hasAttachedErrorMessages:d,hasAttachedWarningMessages:m,showAttachedErrorMessages:f,showAttachedWarningMessages:p,showStaticErrorMessages:g,showStaticWarningMessages:v,showStaticSuccessMessages:b,showErrorIcon:w,showWarningIcon:C,intent:E}}function _(e){var t,n,c,l;const{errors:u,warnings:h,successMessages:d,messagesAttachment:m,customErrorsAttachment:f,messagesRoot:p,inheritMessagesWidthFromTarget:g,disableMessagesRtlStyles:v,inputDescription:b}=e,[w,C]=(0,s.useFocus)(),[M,S]=(0,a.useHover)(),O=(0,o.useRef)(null),B=(0,o.useRef)(""),N=(0,o.useRef)([]),x=e=>{e&&N.current.push(e)};o.useEffect((()=>(B.current=N.current.join(" "),()=>{N.current=[],B.current=""})),[N.current]);const{hasAttachedErrorMessages:_,hasAttachedWarningMessages:I,showAttachedErrorMessages:T,showAttachedWarningMessages:D,showStaticErrorMessages:P,showStaticWarningMessages:z,showStaticSuccessMessages:F,showErrorIcon:Y,showWarningIcon:q,intent:W}=k(e,w,M),L=Y||q?o.createElement(E,{intent:Y?"danger":"warning"}):void 0,H=_?o.createElement(R,{errorAttachment:m,customErrorsAttachment:f,isOpened:T,target:O.current,root:p,inheritWidthFromTarget:g,disableRtlStyles:v,children:u,messageIdCallback:x}):void 0,K=I?o.createElement(R,{errorAttachment:m,isOpened:D,target:O.current,root:p,inheritWidthFromTarget:g,disableRtlStyles:v,children:h,messageIdCallback:x}):void 0,U=P?o.createElement(i.AfterSlot,{className:r(y["static-messages"],y.errors)},null==u?void 0:u.map(((e,t)=>o.createElement(A,{key:t,messageIdCallback:x},e)))):void 0,j=z?o.createElement(i.AfterSlot,{className:r(y["static-messages"],y.warnings)},null==h?void 0:h.map(((e,t)=>o.createElement(A,{key:t,messageIdCallback:x},e)))):void 0,$=F?o.createElement(i.AfterSlot,{className:r(y["static-messages"],y["success-mesages"])},null==d?void 0:d.map(((e,t)=>o.createElement(A,{key:t,messageIdCallback:x},e)))):void 0,G=!P&&!z&&!F&&b?o.createElement(i.AfterSlot,{
|
||||
className:r(y["static-messages"],y["input-description"])},o.createElement(A,{messageIdCallback:x},b)):void 0,J=null!==(l=null!==(c=null!==(n=null!==(t=null!=H?H:K)&&void 0!==t?t:U)&&void 0!==n?n:j)&&void 0!==c?c:$)&&void 0!==l?l:G;return{ariaIds:B.current,icon:L,renderedErrors:J,containerReference:O,intent:W,...C,...S}}function A(e){const{children:t,messageIdCallback:n,...r}=e,s=o.useId();return o.useEffect((()=>{n(s)}),[s]),o.createElement("span",{...r,className:y.message,id:s},t)}},16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>l,PopupMenuItem:()=>h});var o=n(50959),r=n(97754),s=n(59064),a=n(51768),i=n(90186),c=n(55498);const l=c;function u(e){e.stopPropagation()}function h(e){const{id:t,role:n,"aria-label":l,"aria-selected":h,"aria-checked":d,className:m,title:f,labelRowClassName:p,labelClassName:g,shortcut:v,forceShowShortcuts:b,icon:w,isActive:C,isDisabled:E,isHovered:M,appearAsDisabled:S,label:y,link:O,showToolboxOnHover:R,target:B,rel:N,toolbox:x,reference:k,onMouseOut:_,onMouseOver:A,onKeyDown:I,suppressToolboxClick:T=!0,theme:D=c,tabIndex:P,tagName:z,renderComponent:F}=e,Y=(0,i.filterDataProps)(e),q=(0,o.useRef)(null),W=(0,o.useMemo)((()=>function(e){function t(t){const{reference:n,...r}=t,s=null!=e?e:r.href?"a":"div",a="a"===s?r:function(e){const{download:t,href:n,hrefLang:o,media:r,ping:s,rel:a,target:i,type:c,referrerPolicy:l,...u}=e;return u}(r);return o.createElement(s,{...a,ref:n})}return t.displayName=`DefaultComponent(${e})`,t}(z)),[z]),L=null!=F?F:W;return o.createElement(L,{...Y,id:t,role:n,"aria-label":l,"aria-selected":h,"aria-checked":d,className:r(m,D.item,w&&D.withIcon,{[D.isActive]:C,[D.isDisabled]:E||S,[D.hovered]:M}),title:f,href:O,target:B,rel:N,reference:function(e){q.current=e,"function"==typeof k&&k(e);"object"==typeof k&&(k.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:o,onClickArg:r,trackEventObject:i}=e;if(E)return;i&&(0,a.trackEvent)(i.category,i.event,i.label);o&&o(r,t);n||(0,s.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:o}=e;n&&o&&(0,a.trackEvent)(n.category,n.event,`${n.label}_rightClick`)},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:o}=e;if(1===t.button&&O&&n){let e=n.label;o&&(e+="_mouseWheelClick"),(0,a.trackEvent)(n.category,n.event,e)}},onMouseOver:A,onMouseOut:_,onKeyDown:I,tabIndex:P},void 0!==w&&o.createElement("span",{className:D.icon,dangerouslySetInnerHTML:{__html:w}}),o.createElement("span",{className:r(D.labelRow,p)},o.createElement("span",{className:r(D.label,g)},y)),(void 0!==v||b)&&o.createElement("span",{className:D.shortcut},(H=v)&&H.split("+").join(" + ")),void 0!==x&&o.createElement("span",{onClick:T?u:void 0,className:r(D.toolbox,{[D.showOnHover]:R})},x));var H}},50628:(e,t,n)=>{"use strict";n.d(t,{PopupMenu:()=>u});var o=n(50959),r=n(962),s=n(62942),a=n(65718),i=n(27317),c=n(29197),l=n(58095);function u(e){
|
||||
const{controller:t,children:n,isOpened:u,closeOnClickOutside:h=!0,doNotCloseOn:d,onClickOutside:m,onClose:f,onKeyboardClose:p,"data-name":g="popup-menu-container",...v}=e,b=(0,o.useContext)(c.CloseDelegateContext),w=(0,l.useOutsideEvent)({handler:function(e){m&&m(e);if(!h)return;const t=(0,s.default)(d)?d():d;if(t&&e.target instanceof Node){const n=r.findDOMNode(t);if(n instanceof Node&&n.contains(e.target))return}f()},mouseDown:!0,touchStart:!0});return u?o.createElement(a.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},o.createElement("span",{ref:w,style:{pointerEvents:"auto"}},o.createElement(i.Menu,{...v,onClose:f,onKeyboardClose:p,onScroll:function(t){const{onScroll:n}=e;n&&n(t)},customCloseDelegate:b,ref:t,"data-name":g},n))):null}},16658:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M8 15c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm0 1c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm-1-12c0-.552.448-1 1-1s1 .448 1 1v4c0 .552-.448 1-1 1s-1-.448-1-1v-4zm1 7c-.552 0-1 .448-1 1s.448 1 1 1 1-.448 1-1-.448-1-1-1z"/></svg>'},95096:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17"><path fill="currentColor" d="M1 8.5a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0zM8.5 0a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM9 9V3H8v5H5v1h4z"/></svg>'}}]);
|
||||
Reference in New Issue
Block a user