Files
ai/charting_library/bundles/add-compare-dialog.2967dfb4ca0b9cbae879.js
2023-02-02 13:31:14 +00:00

10 lines
26 KiB
JavaScript

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[731],{59142:function(e,t){var o,n,r;n=[t],void 0===(r="function"==typeof(o=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var o=!1;if("undefined"!=typeof window){var n={get passive(){o=!0}};window.addEventListener("testPassive",null,n),window.removeEventListener("testPassive",null,n)}var r="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),a=[],l=!1,c=-1,i=void 0,s=void 0,d=function(e){return a.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},u=function(e){var t=e||window.event;return!!d(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},m=function(){setTimeout((function(){void 0!==s&&(document.body.style.paddingRight=s,s=void 0),void 0!==i&&(document.body.style.overflow=i,i=void 0)}))};e.disableBodyScroll=function(e,n){if(r){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!a.some((function(t){return t.targetElement===e}))){var m={targetElement:e,options:n||{}};a=[].concat(t(a),[m]),e.ontouchstart=function(e){1===e.targetTouches.length&&(c=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var o,n,r,a;1===t.targetTouches.length&&(n=e,a=(o=t).targetTouches[0].clientY-c,!d(o.target)&&(n&&0===n.scrollTop&&0<a||(r=n)&&r.scrollHeight-r.scrollTop<=r.clientHeight&&a<0?u(o):o.stopPropagation()))},l||(document.addEventListener("touchmove",u,o?{passive:!1}:void 0),l=!0)}}else{h=n,setTimeout((function(){if(void 0===s){var e=!!h&&!0===h.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(s=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===i&&(i=document.body.style.overflow,document.body.style.overflow="hidden")}));var p={targetElement:e,options:n||{}};a=[].concat(t(a),[p])}var h},e.clearAllBodyScrollLocks=function(){r?(a.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),l&&(document.removeEventListener("touchmove",u,o?{passive:!1}:void 0),l=!1),a=[],c=-1):(m(),a=[])},e.enableBodyScroll=function(e){if(r){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,a=a.filter((function(t){return t.targetElement!==e})),l&&0===a.length&&(document.removeEventListener("touchmove",u,o?{passive:!1}:void 0),l=!1)}else 1===a.length&&a[0].targetElement===e?(m(),a=[]):a=a.filter((function(t){return t.targetElement!==e}))}})?o.apply(t,n):o)||(e.exports=r)},37593:e=>{e.exports={wrapper:"wrapper-5Xd5conM",input:"input-5Xd5conM",box:"box-5Xd5conM",icon:"icon-5Xd5conM",noOutline:"noOutline-5Xd5conM","intent-danger":"intent-danger-5Xd5conM",check:"check-5Xd5conM",
dot:"dot-5Xd5conM"}},71489:e=>{e.exports={button:"button-MtWCmkmc",bordersVisible:"bordersVisible-MtWCmkmc",selected:"selected-MtWCmkmc"}},72142:e=>{e.exports={footer:"footer-C0oTZgbU"}},35725:e=>{e.exports={wrap:"wrap-IVoYCPDG",header:"header-IVoYCPDG",item:"item-IVoYCPDG"}},74618:e=>{e.exports={label:"label-jkX9S6js"}},61257:e=>{e.exports={scrollable:"scrollable-JgZSADtd",spinnerWrap:"spinnerWrap-JgZSADtd",item:"item-JgZSADtd",heading:"heading-JgZSADtd",checkboxWrap:"checkboxWrap-JgZSADtd",checkbox:"checkbox-JgZSADtd",emptyState:"emptyState-JgZSADtd",image:"image-JgZSADtd",text:"text-JgZSADtd"}},20512:e=>{e.exports={dialog:"dialog-VLZxw4Dg",tablet:"tablet-VLZxw4Dg"}},66998:e=>{e.exports={wrap:"wrap-3HaHQVJm",positionBottom:"positionBottom-3HaHQVJm",backdrop:"backdrop-3HaHQVJm",drawer:"drawer-3HaHQVJm",positionLeft:"positionLeft-3HaHQVJm"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},84413:(e,t,o)=>{"use strict";o.d(t,{CheckboxInput:()=>s});var n=o(59496),r=o(97754),a=o(9745),l=o(49154),c=o(37593),i=o.n(c);function s(e){const t=r(i().box,i()["intent-"+e.intent],{[i().check]:!Boolean(e.indeterminate),[i().dot]:Boolean(e.indeterminate),[i().noOutline]:-1===e.tabIndex}),o=r(i().wrapper,e.className);return n.createElement("span",{className:o,title:e.title},n.createElement("input",{id:e.id,tabIndex:e.tabIndex,className:i().input,type:"checkbox",name:e.name,checked:e.checked,disabled:e.disabled,value:e.value,autoFocus:e.autoFocus,role:e.role,onChange:function(){e.onChange&&e.onChange(e.value)},ref:e.reference}),n.createElement("span",{className:t},n.createElement(a.Icon,{icon:l,className:i().icon})))}},39362:(e,t,o)=>{"use strict";o.d(t,{SymbolSearchDialogFooter:()=>c});var n=o(59496),r=o(97754),a=o.n(r),l=o(72142);function c(e){const{className:t,children:o}=e;return n.createElement("div",{className:a()(l.footer,t)},o)}},89035:(e,t,o)=>{"use strict";o.r(t),o.d(t,{getCompareDialogRenderer:()=>ie});var n=o(59496),r=o(28353),a=o(32563),l=o(67337),c=o(89453),i=o(97754),s=o.n(i),d=o(9837),u=o.n(d),m=o(88537),p=o(9745),h=o(86656),v=o(77975),f=o(61074),g=o(26843),b=o(45345),S=o(84524),C=o(5648);const w=n.createContext(null);var y=o(70412),x=o(78036);const E=n.createContext(null);var I=o(16396),k=o(41590),M=o(37558),D=o(71489);function N(e){const{theme:t=D,children:o,onClick:r,isSelected:a,areBordersVisible:l,isItemSelected:c,className:i,value:d,name:u}=e;return n.createElement("button",{type:"button",className:s()(i,t.button,a&&t.selected,l&&!a&&!c&&t.bordersVisible),name:u,value:d,onClick:r},o)}function O(e){const{value:t,onClick:o,...r}=e,a=(0,n.useCallback)(e=>o(t,e),[t,o]);return n.createElement(N,{...r,value:String(t),onClick:a})}var T=o(46148),A=o(35725);const _={sameScale:(0,
r.t)("Same % scale"),newPriceScale:(0,r.t)("New price scale"),newPane:(0,r.t)("New pane")};function P(e){const{fullSymbolName:t,isSelected:o,className:a}=e,{isMobile:l,searchRef:i,setMode:d}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{compareModel:u,selectedCompareOption:m,setHoveredItemId:p,clearInput:h,allowExtendTimeScale:v}=(0,x.useEnsuredContext)(w),{callback:f}=(0,x.useEnsuredContext)(E);return l?n.createElement(M.DrawerManager,null,n.createElement(k.Drawer,{position:"Bottom",onClose:g.bind(null,!1)},n.createElement("div",{className:A.header},(0,r.t)("Add to")),n.createElement(I.PopupMenuItem,{className:A.item,onClick:b,onClickArg:T.CompareOption.SameScale,label:_.sameScale}),n.createElement(I.PopupMenuItem,{className:A.item,onClick:b,onClickArg:T.CompareOption.NewPriceScale,label:_.newPriceScale}),n.createElement(I.PopupMenuItem,{className:A.item,onClick:b,onClickArg:T.CompareOption.NewPane,label:_.newPane}))):n.createElement("div",{className:s()(A.wrap,a),"data-name":"compare-buttons-group"},n.createElement(O,{onClick:b,value:T.CompareOption.SameScale,isItemSelected:Boolean(o),isSelected:o&&m===T.CompareOption.SameScale},_.sameScale),n.createElement(O,{onClick:b,value:T.CompareOption.NewPriceScale,isItemSelected:Boolean(o),isSelected:o&&m===T.CompareOption.NewPriceScale},_.newPriceScale),n.createElement(O,{onClick:b,value:T.CompareOption.NewPane,isItemSelected:Boolean(o),isSelected:o&&m===T.CompareOption.NewPane},_.newPane));function g(e){l&&f&&f(),h&&e&&h(i,d)}function b(e,o){if(o.preventDefault(),u&&t&&void 0!==e){(0,c.getSymbolSearchCompleteOverrideFunction)()(t).then(t=>{u.applyStudy(t,e,v),p(""),g(!0)})}}}function B(e){const{isSelected:t,fullSymbolName:o,onExpandClick:r,actions:l,id:i,isOffset:s}=e,{isMobile:d,toggleExpand:u,searchSpreads:m,searchRef:p,setMode:h,mode:v}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{compareModel:f,hoveredItemId:g,setHoveredItemId:b,clearInput:I,allowExtendTimeScale:k}=(0,x.useEnsuredContext)(w),[M,D]=(0,n.useState)(!1),N=(0,n.useRef)(null),O=(0,y.useAccurateHover)(N),A=(0,n.useMemo)(()=>({callback:R}),[R]),_=!Boolean(r)&&!Boolean(l),B=i===g;return n.createElement(E.Provider,{value:A},n.createElement(C.SymbolSearchDialogContentItem,{hideMarkedListFlag:"compare"===v,...e,reference:N,onClick:function(t){if(Boolean(r)&&i&&!s)return t.preventDefault(),void u(i);if(!M&&d)return void D(!0);if(m&&e.onClick)return void e.onClick(t);if((a.mobiletouch?B:!M)&&o){(0,c.getSymbolSearchCompleteOverrideFunction)()(o).then(e=>{f.applyStudy(e,T.CompareOption.SameScale,k)}),b(""),I&&I(p,h)}a.mobiletouch&&!d&&!B&&i&&b(i)},hoverComponent:function(){if(!_)return!1;if(d)return M;if(a.mobiletouch)return B;return Boolean(O||t)}()?P:void 0}));function R(){D(!1)}}var R=o(35932),H=o(68974),L=o(86440),z=o(61257);function F(e){const{handleListWidth:t}=(0,m.ensureNotNull)((0,n.useContext)(S.SymbolSearchItemsDialogContext)),{compareModel:o,selectedCompareIndex:a,selectedItemRef:l}=(0,m.ensureNotNull)((0,n.useContext)(w)),c=(0,v.useWatchedValueReadonly)({
watchedValue:o.isDataReady()}),i=(0,v.useWatchedValueReadonly)({watchedValue:o.studies()}),d=(0,v.useWatchedValueReadonly)({watchedValue:o.highlightedSymbol()}),y=(0,n.useMemo)(()=>i.filter(e=>e.checked),[i]),x=(0,n.useMemo)(()=>i.filter(e=>!e.checked),[i]);return(0,n.useEffect)(()=>(o.chartModel().dataSourceCollectionChanged().subscribe(o,o.handleSourcesChange),()=>o.chartModel().dataSourceCollectionChanged().unsubscribe(o,o.handleSourcesChange)),[o]),n.createElement(u(),{onMeasure:function(e){t(e.width)}},n.createElement(h.TouchScrollContainer,{className:z.scrollable},function(){if(!c)return n.createElement("div",{className:z.spinnerWrap},n.createElement(f.Spinner,null));if(!Boolean(y.length)&&!Boolean(x.length)){const e=b.watchedTheme.value()===g.StdTheme.Dark?H:R;return n.createElement("div",{className:z.emptyState},n.createElement(p.Icon,{className:z.image,icon:e}),n.createElement("div",{className:z.text},(0,r.t)("No symbols here yet — why not add some?")))}return n.createElement(n.Fragment,null,Boolean(y.length)&&n.createElement(n.Fragment,null,n.createElement("div",{className:z.heading},(0,r.t)("Added symbols")),y.map((e,t)=>n.createElement(C.SymbolSearchDialogContentItem,{"data-role":"added-symbol-item",className:z.item,key:e.id,id:e.id,shortName:e.title,title:e.title,logoId:e.logoId,currencyLogoId:e.currencyLogoId,baseCurrencyLogoId:e.baseCurrencyLogoId,dangerousDescriptionHTML:e.description,exchangeName:e.exchangeName,marketType:e.marketType,country:e.country,providerId:e.providerId,onClick:E.bind(null,e),isHighlighted:e.id===d,isSelected:I(e),itemRef:I(e)?l:void 0,actions:n.createElement("div",{className:z.checkboxWrap},n.createElement(N,{className:z.checkbox,onClick:E.bind(null,e),isSelected:I(e)},n.createElement(p.Icon,{icon:L})))}))),Boolean(x.length)&&n.createElement(n.Fragment,null,n.createElement("div",{className:z.heading},(0,r.t)("Recent symbols")),x.map(e=>n.createElement(B,{"data-role":"recent-symbol-item",className:s()(z.item,e.id===d&&z.highlighted),key:e.id,id:e.id,shortName:e.title,logoId:e.logoId,currencyLogoId:e.currencyLogoId,baseCurrencyLogoId:e.baseCurrencyLogoId,title:e.title,dangerousDescriptionHTML:e.description,exchangeName:e.exchangeName,marketType:e.marketType,country:e.country,providerId:e.providerId,fullSymbolName:e.symbol,isSelected:I(e),itemRef:I(e)?l:void 0}))))}()));function E(e,t){t.preventDefault(),o.removeStudy(e)}function I(e){return i.indexOf(e)===a}}var V=o(56840);class W extends n.PureComponent{constructor(e){super(e),this._selectedItemRef=n.createRef(),this._getContextValue=()=>{const{compareModel:e}=this.props,{selectedCompareOption:t,selectedCompareIndex:o,hoveredItemId:n,allowExtendTimeScale:r}=this.state;return{compareModel:e,selectedCompareOption:t,setSelectedCompareOption:this._setSelectedCompareOption,hoveredItemId:n,setHoveredItemId:this._setHoveredItemId,selectedCompareIndex:o,setSelectedCompareIndex:this._setSelectedCompareIndex,selectedItemRef:this._selectedItemRef,clearInput:this._clearInput,allowExtendTimeScale:r,
toggleAllowExtendTimeScale:this._toggleAllowExtendTimeScale}},this._clearInput=(e,t)=>{e&&e.current&&(e.current.value="",t("compare"))},this._setSelectedCompareOption=e=>{this.setState({selectedCompareOption:e})},this._setHoveredItemId=e=>{this.setState({hoveredItemId:e})},this._setSelectedCompareIndex=(e,t)=>{this.setState({selectedCompareIndex:e},t)},this._toggleAllowExtendTimeScale=()=>{const e=!this.state.allowExtendTimeScale;V.setValue("showAddSymbolDialog.extendCheckboxState",e),this.setState({allowExtendTimeScale:e})},this.state={selectedCompareOption:0,selectedCompareIndex:-1,hoveredItemId:void 0,allowExtendTimeScale:Boolean(V.getBool("showAddSymbolDialog.extendCheckboxState"))}}render(){const{children:e}=this.props;return n.createElement(w.Provider,{value:this._getContextValue()},e)}}var G=o(68335),J=o(85457),Z=o(20512);const j=Object.keys(T.CompareOption).length/2;function X(e){const{openedItems:t,searchRef:o,feedItems:r,selectedIndex:a,toggleExpand:l,onSearchComplete:c,mode:s,setMode:d,setSelectedIndex:u,isMobile:m,isTablet:p,onClose:h,upperCaseEnabled:f}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{compareModel:g,hoveredItemId:b,setHoveredItemId:C,selectedCompareOption:y,setSelectedCompareOption:E,selectedCompareIndex:I,setSelectedCompareIndex:k,selectedItemRef:M,clearInput:D,allowExtendTimeScale:N}=(0,x.useEnsuredContext)(w),O=(0,v.useWatchedValueReadonly)({watchedValue:g.studies()}),T=r[a],A="compare"===s;return(0,n.useEffect)(()=>{b&&C(""),I&&k(-1)},[s]),n.createElement(J.AdaptivePopupDialog,{...e,className:i(Z.dialog,!m&&p&&Z.tablet),onKeyDown:function(e){var n;const i=(0,G.hashFromEvent)(e),s=A?I:a,u=A?O:r;switch(i){case 38:if(e.preventDefault(),0===s)return;if(-1===s)return void _(0);_(s-1);break;case 40:if(e.preventDefault(),s===u.length-1)return;_(s+1);break;case 37:{const o=B();if(o&&t.has(o))return e.preventDefault(),void l(o);if(!y||o)return;e.preventDefault(),E(y-1);break}case 39:{const o=B();if(o&&!t.has(o))return e.preventDefault(),void l(o);if(y===j-1||o)return;e.preventDefault(),E(y+1);break}case 13:{if(A)return void function(){if(-1===I)return;const e=O[I];e.checked?g.removeStudy(e):g.applyStudy(e.symbol,y,N);k(-1)}();const t=B();if(t)return e.preventDefault(),void l(t);e.preventDefault();const r=null===(n=null==o?void 0:o.current)||void 0===n?void 0:n.value.trim();r&&D&&(c([{symbol:f?r.toUpperCase():r,resolved:!1,compareOption:y,allowExtendTimeScale:N}]),D(o,d));break}case 27:e.preventDefault(),h()}},dataName:"compare-dialog",draggable:!0});function _(e){A?k(e,P):u(e)}function P(){var e;null===(e=M.current)||void 0===e||e.scrollIntoView({block:"nearest"})}function B(){if(!T)return;const{id:e,isOffset:t,onExpandClick:o}=T;return!t&&Boolean(o)&&e?e:void 0}}var Q=o(87995),U=o(24389),Y=o(12045),K=(o(1861),o(22729));class q extends K.DialogRenderer{constructor(e){super(),this._props=e}show(){if(this.visible().value())return;const e=n.createElement(U.QuoteSessionContext.Provider,{value:null},n.createElement(Y.SymbolSearchItemsDialog,{...this._props,
initialMode:this._props.initialMode||"symbolSearch",onClose:()=>this.hide()}));Q.render(e,this._container),this._setVisibility(!0)}hide(){var e,t;Q.unmountComponentAtNode(this._container),this._visibility.setValue(!1),null===(t=(e=this._props).onClose)||void 0===t||t.call(e)}}var $=o(81319),ee=o(69654),te=o(70613);function oe(e){const{searchRef:t,setMode:o}=(0,x.useEnsuredContext)(S.SymbolSearchItemsDialogContext),{currentMode:r}=(0,x.useEnsuredContext)(te.SymbolSearchDialogBodyContext);return(0,n.useEffect)(()=>{const e=t.current;if(e)return e.addEventListener("input",a),()=>{e&&e.removeEventListener("input",a)}},[]),n.createElement(ee.DialogSearch,{...e});function a(){var e,n,a,l;t.current&&r&&("compare"!==r.current||""===(null===(n=null===(e=null==t?void 0:t.current)||void 0===e?void 0:e.value)||void 0===n?void 0:n.trim())?"symbolSearch"===r.current&&""===(null===(l=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.value)||void 0===l?void 0:l.trim())&&o("compare"):o("symbolSearch"))}}var ne=o(84413),re=o(39362),ae=o(74618);function le(e){const{allowExtendTimeScale:t,toggleAllowExtendTimeScale:o}=(0,m.ensureNotNull)((0,n.useContext)(w));return n.createElement(re.SymbolSearchDialogFooter,null,n.createElement("label",null,n.createElement(ne.CheckboxInput,{checked:t,value:t?"on":"off",onChange:o}),n.createElement("span",{className:ae.label},(0,r.t)("Allow extend time scale"))))}const ce=l.enabled("secondary_series_extend_time_scale");function ie(e){return new q({wrapper:(t=e,e=>n.createElement(W,{...e,compareModel:t})),dialog:X,contentItem:B,initialScreen:F,searchInput:oe,footer:ce?n.createElement(le):void 0,initialMode:"compare",dialogTitle:(0,r.t)("Compare symbol"),autofocus:!a.mobiletouch,dialogWidth:"fixed",onSearchComplete:t=>{const{compareOption:o,allowExtendTimeScale:n}=t[0];if(void 0!==o){(0,c.getSymbolSearchCompleteOverrideFunction)()(t[0].symbol).then(t=>{e.applyStudy(t,o,n)})}},symbolTypes:(0,$.getAvailableSymbolTypes)(),showSpreadActions:l.enabled("show_spread_operators")&&l.enabled("compare_symbol_search_spread_operators")});var t}},46148:(e,t,o)=>{"use strict";var n;o.d(t,{CompareOption:()=>n}),function(e){e[e.SameScale=0]="SameScale",e[e.NewPriceScale=1]="NewPriceScale",e[e.NewPane=2]="NewPane"}(n||(n={}))},37558:(e,t,o)=>{"use strict";o.d(t,{DrawerManager:()=>r,DrawerContext:()=>a});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._addDrawer=()=>{const e=this.state.currentDrawer+1;return this.setState({currentDrawer:e}),e},this._removeDrawer=()=>{const e=this.state.currentDrawer-1;return this.setState({currentDrawer:e}),e},this.state={currentDrawer:0}}render(){return n.createElement(a.Provider,{value:{addDrawer:this._addDrawer,removeDrawer:this._removeDrawer,currentDrawer:this.state.currentDrawer}},this.props.children)}}const a=n.createContext(null)},41590:(e,t,o)=>{"use strict";o.d(t,{Drawer:()=>p});var n=o(59496),r=o(88537),a=o(97754),l=o(59142),c=o(43989),i=o(65718),s=o(37558),d=o(49483),u=o(29197),m=o(66998);function p(e){
const{position:t="Bottom",onClose:o,children:p,className:h,theme:v=m}=e,f=(0,r.ensureNotNull)((0,n.useContext)(s.DrawerContext)),[g,b]=(0,n.useState)(0),S=(0,n.useRef)(null),C=(0,n.useContext)(u.CloseDelegateContext);return(0,n.useEffect)(()=>{const e=(0,r.ensureNotNull)(S.current);return e.focus({preventScroll:!0}),C.subscribe(f,o),0===f.currentDrawer&&(0,c.setFixedBodyState)(!0),d.CheckMobile.iOS()&&(0,l.disableBodyScroll)(e),b(f.addDrawer()),()=>{C.unsubscribe(f,o);const t=f.removeDrawer();d.CheckMobile.iOS()&&(0,l.enableBodyScroll)(e),0===t&&(0,c.setFixedBodyState)(!1)}},[]),n.createElement(i.Portal,null,n.createElement("div",{className:a(m.wrap,m["position"+t])},g===f.currentDrawer&&n.createElement("div",{className:m.backdrop,onClick:o}),n.createElement("div",{className:a(m.drawer,v.drawer,m["position"+t],h),ref:S,tabIndex:-1,"data-name":e["data-name"]},p)))}},70412:(e,t,o)=>{"use strict";o.d(t,{hoverMouseEventFilter:()=>a,useAccurateHover:()=>l,useHover:()=>r});var n=o(59496);function r(){const[e,t]=(0,n.useState)(!1);return[e,{onMouseOver:function(e){a(e)&&t(!0)},onMouseOut:function(e){a(e)&&t(!1)}}]}function a(e){return!e.currentTarget.contains(e.relatedTarget)}function l(e){const[t,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{const t=t=>{if(null===e.current)return;const n=e.current.contains(t.target);o(n)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)},[]),t}},16396:(e,t,o)=>{"use strict";o.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>s,PopupMenuItem:()=>m});var n=o(59496),r=o(97754),a=o(59064),l=o(51768),c=o(90186),i=o(23576);const s=i;function d(e){const{reference:t,...o}=e,r={...o,ref:t};return n.createElement(e.href?"a":"div",r)}function u(e){e.stopPropagation()}function m(e){const{id:t,role:o,"aria-selected":s,className:m,title:p,labelRowClassName:h,labelClassName:v,shortcut:f,forceShowShortcuts:g,icon:b,isActive:S,isDisabled:C,isHovered:w,appearAsDisabled:y,label:x,link:E,showToolboxOnHover:I,target:k,rel:M,toolbox:D,reference:N,onMouseOut:O,onMouseOver:T,suppressToolboxClick:A=!0,theme:_=i}=e,P=(0,c.filterDataProps)(e),B=(0,n.useRef)(null);return n.createElement(d,{...P,id:t,role:o,"aria-selected":s,className:r(m,_.item,b&&_.withIcon,{[_.isActive]:S,[_.isDisabled]:C||y,[_.hovered]:w}),title:p,href:E,target:k,rel:M,reference:function(e){B.current=e,"function"==typeof N&&N(e);"object"==typeof N&&(N.current=e)},onClick:function(t){const{dontClosePopup:o,onClick:n,onClickArg:r,trackEventObject:c}=e;if(C)return;c&&(0,l.trackEvent)(c.category,c.event,c.label);n&&n(r,t);o||(0,a.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:o,trackRightClick:n}=e;o&&n&&(0,l.trackEvent)(o.category,o.event,o.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:o,trackMouseWheelClick:n}=e;if(1===t.button&&E&&o){let e=o.label;n&&(e+="_mouseWheelClick"),(0,l.trackEvent)(o.category,o.event,e)}},onMouseOver:T,onMouseOut:O},void 0!==b&&n.createElement("div",{className:_.icon,dangerouslySetInnerHTML:{__html:b}}),n.createElement("div",{
className:r(_.labelRow,h)},n.createElement("div",{className:r(_.label,v)},x)),(void 0!==f||g)&&n.createElement("div",{className:_.shortcut},(R=f)&&R.split("+").join(" + ")),void 0!==D&&n.createElement("div",{onClick:A?u:void 0,className:r(_.toolbox,{[_.showOnHover]:I})},D));var R}},29197:(e,t,o)=>{"use strict";o.d(t,{CloseDelegateContext:()=>a});var n=o(59496),r=o(59064);const a=n.createContext(r.globalCloseDelegate)},86656:(e,t,o)=>{"use strict";o.d(t,{TouchScrollContainer:()=>c});var n=o(59496),r=o(59142),a=o(88537),l=o(49483);function c(e){const{reference:t,children:o,...a}=e,c=(0,n.useRef)(null),s=(0,n.useCallback)(e=>{t&&(t.current=e),l.CheckMobile.iOS()&&(null!==c.current&&(0,r.enableBodyScroll)(c.current),c.current=e,null!==c.current&&(0,r.disableBodyScroll)(c.current,{allowTouchMove:i(c)}))},[t]);return n.createElement("div",{ref:s,...a},o)}function i(e){return t=>{const o=(0,a.ensureNotNull)(e.current),n=document.activeElement;return!o.contains(t)||null!==n&&o.contains(n)&&n.contains(t)}}},49154:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11" height="9" fill="none"><path stroke-width="2" d="M0.999878 4L3.99988 7L9.99988 1"/></svg>'},86440:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path stroke="currentColor" stroke-linecap="round" stroke-width="1.5" d="M7 15l5 5L23 9"/></svg>'},68974:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 121 120" width="121" height="120"><path fill="#D1D4DC" d="M53.88 18.36a43.4 43.4 0 0 1 11.24 0 1 1 0 0 0 .26-1.98 45.42 45.42 0 0 0-11.76 0 1 1 0 1 0 .26 1.98zM43.04 21.26a1 1 0 0 0-.77-1.85A44.95 44.95 0 0 0 32.1 25.3a1 1 0 0 0 1.22 1.58 42.95 42.95 0 0 1 9.72-5.62zM75.42 19.96a1 1 0 0 1 1.3-.55A44.95 44.95 0 0 1 86.9 25.3a1 1 0 0 1-1.22 1.58 42.95 42.95 0 0 0-9.72-5.62 1 1 0 0 1-.54-1.3zM25.38 34.82a1 1 0 1 0-1.58-1.22 44.95 44.95 0 0 0-5.89 10.17 1 1 0 0 0 1.85.77 42.95 42.95 0 0 1 5.62-9.72zM16.86 55.38a1 1 0 0 0-1.98-.26 45.42 45.42 0 0 0 0 11.76 1 1 0 1 0 1.98-.26 43.4 43.4 0 0 1 0-11.24zM103 54.26a1 1 0 0 1 1.12.86 45.4 45.4 0 0 1 0 11.76 1 1 0 0 1-1.98-.26 43.37 43.37 0 0 0 0-11.24 1 1 0 0 1 .86-1.12zM19.76 77.46a1 1 0 0 0-1.85.77A44.95 44.95 0 0 0 23.8 88.4a1 1 0 0 0 1.58-1.22 42.95 42.95 0 0 1-5.62-9.72zM100.54 76.92a1 1 0 0 1 .54 1.3A44.95 44.95 0 0 1 95.2 88.4a1 1 0 0 1-1.58-1.22 42.95 42.95 0 0 0 5.62-9.72 1 1 0 0 1 1.3-.54zM33.32 95.12a1 1 0 1 0-1.22 1.58 44.94 44.94 0 0 0 10.17 5.88 1 1 0 0 0 .77-1.84 42.97 42.97 0 0 1-9.72-5.62zM87.08 95.3a1 1 0 0 1-.18 1.4 44.94 44.94 0 0 1-10.17 5.88 1 1 0 0 1-.77-1.84 42.98 42.98 0 0 0 9.72-5.62 1 1 0 0 1 1.4.18zM53.88 103.64a1 1 0 0 0-.26 1.98 45.4 45.4 0 0 0 11.76 0 1 1 0 0 0-.26-1.98 43.37 43.37 0 0 1-11.24 0zM62.81 53.17a1 1 0 0 0-.78 1.84 6.62 6.62 0 0 1 3.49 3.5 1 1 0 1 0 1.84-.78 8.62 8.62 0 0 0-4.55-4.56z"/><path fill="#D1D4DC" d="M45.5 61a14 14 0 1 1 24.28 9.5l7.92 7.92a1 1 0 0 1-1.42 1.42l-7.96-7.97A14 14 0 0 1 45.5 61zm14-12a12 12 0 1 0 0 24 12 12 0 0 0 0-24z"/><circle fill="#1976D2" cx="97.5" cy="39" r="13"/><path fill="#D1D4DC" d="M98.5 34a1 1 0 1 0-2 0v4h-4a1 1 0 1 0 0 2h4v4a1 1 0 1 0 2 0v-4h4a1 1 0 0 0 0-2h-4v-4z"/></svg>'},35932:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 121 120" width="121" height="120"><path fill="#1E222D" d="M53.88 18.36a43.4 43.4 0 0 1 11.24 0 1 1 0 0 0 .26-1.98 45.42 45.42 0 0 0-11.76 0 1 1 0 1 0 .26 1.98zM43.04 21.26a1 1 0 0 0-.77-1.85A44.95 44.95 0 0 0 32.1 25.3a1 1 0 0 0 1.22 1.58 42.95 42.95 0 0 1 9.72-5.62zM75.42 19.96a1 1 0 0 1 1.3-.55A44.95 44.95 0 0 1 86.9 25.3a1 1 0 0 1-1.22 1.58 42.95 42.95 0 0 0-9.72-5.62 1 1 0 0 1-.54-1.3zM25.38 34.82a1 1 0 1 0-1.58-1.22 44.95 44.95 0 0 0-5.89 10.17 1 1 0 0 0 1.85.77 42.95 42.95 0 0 1 5.62-9.72zM16.86 55.38a1 1 0 0 0-1.98-.26 45.42 45.42 0 0 0 0 11.76 1 1 0 1 0 1.98-.26 43.4 43.4 0 0 1 0-11.24zM103 54.26a1 1 0 0 1 1.12.86 45.4 45.4 0 0 1 0 11.76 1 1 0 0 1-1.98-.26 43.37 43.37 0 0 0 0-11.24 1 1 0 0 1 .86-1.12zM19.76 77.46a1 1 0 0 0-1.85.77A44.95 44.95 0 0 0 23.8 88.4a1 1 0 0 0 1.58-1.22 42.95 42.95 0 0 1-5.62-9.72zM100.54 76.92a1 1 0 0 1 .54 1.3A44.95 44.95 0 0 1 95.2 88.4a1 1 0 0 1-1.58-1.22 42.95 42.95 0 0 0 5.62-9.72 1 1 0 0 1 1.3-.54zM33.32 95.12a1 1 0 1 0-1.22 1.58 44.94 44.94 0 0 0 10.17 5.88 1 1 0 0 0 .77-1.84 42.97 42.97 0 0 1-9.72-5.62zM87.08 95.3a1 1 0 0 1-.18 1.4 44.94 44.94 0 0 1-10.17 5.88 1 1 0 0 1-.77-1.84 42.98 42.98 0 0 0 9.72-5.62 1 1 0 0 1 1.4.18zM53.88 103.64a1 1 0 0 0-.26 1.98 45.4 45.4 0 0 0 11.76 0 1 1 0 0 0-.26-1.98 43.37 43.37 0 0 1-11.24 0zM62.81 53.17a1 1 0 0 0-.78 1.84 6.62 6.62 0 0 1 3.49 3.5 1 1 0 1 0 1.84-.78 8.62 8.62 0 0 0-4.55-4.56z"/><path fill="#1E222D" d="M45.5 61a14 14 0 1 1 24.28 9.5l7.92 7.92a1 1 0 0 1-1.42 1.42l-7.96-7.97A14 14 0 0 1 45.5 61zm14-12a12 12 0 1 0 0 24 12 12 0 0 0 0-24z"/><circle fill="#2196F3" cx="97.5" cy="39" r="13"/><path fill="#fff" d="M98.5 34a1 1 0 1 0-2 0v4h-4a1 1 0 1 0 0 2h4v4a1 1 0 1 0 2 0v-4h4a1 1 0 0 0 0-2h-4v-4z"/></svg>'}}]);