(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[139],{62978:t=>{t.exports={primary:"primary-PVWoXu5j",gray:"gray-PVWoXu5j",selected:"selected-PVWoXu5j",grouped:"grouped-PVWoXu5j",pills:"pills-PVWoXu5j",active:"active-PVWoXu5j",disableActiveOnTouch:"disableActiveOnTouch-PVWoXu5j",disableActiveStateStyles:"disableActiveStateStyles-PVWoXu5j",withGrouped:"withGrouped-PVWoXu5j","quiet-primary":"quiet-primary-PVWoXu5j",green:"green-PVWoXu5j",red:"red-PVWoXu5j",secondary:"secondary-PVWoXu5j",ghost:"ghost-PVWoXu5j"}},29075:t=>{t.exports={lightButton:"lightButton-bYDQcOkp",link:"link-bYDQcOkp",ltr:"ltr-bYDQcOkp",rtl:"rtl-bYDQcOkp","typography-regular16px":"typography-regular16px-bYDQcOkp","typography-medium16px":"typography-medium16px-bYDQcOkp","typography-regular14px":"typography-regular14px-bYDQcOkp","typography-semibold14px":"typography-semibold14px-bYDQcOkp","typography-semibold16px":"typography-semibold16px-bYDQcOkp",content:"content-bYDQcOkp",visuallyHidden:"visuallyHidden-bYDQcOkp",nowrap:"nowrap-bYDQcOkp",ellipsisContainer:"ellipsisContainer-bYDQcOkp",textWrapContainer:"textWrapContainer-bYDQcOkp",textWrapWithEllipsis:"textWrapWithEllipsis-bYDQcOkp",slot:"slot-bYDQcOkp",caret:"caret-bYDQcOkp",activeCaret:"activeCaret-bYDQcOkp",xsmall:"xsmall-bYDQcOkp",withStartSlot:"withStartSlot-bYDQcOkp",withEndSlot:"withEndSlot-bYDQcOkp",noContent:"noContent-bYDQcOkp",wrap:"wrap-bYDQcOkp",small:"small-bYDQcOkp",medium:"medium-bYDQcOkp"}},12327:t=>{t.exports={errorCard:"errorCard-S9sXvhAu",errorCard__icon:"errorCard__icon-S9sXvhAu",errorCard_size_big:"errorCard_size_big-S9sXvhAu",errorCard__message:"errorCard__message-S9sXvhAu",errorCard_limitWidth:"errorCard_limitWidth-S9sXvhAu",errorCard__link:"errorCard__link-S9sXvhAu",errorCard__buttons:"errorCard__buttons-S9sXvhAu",errorCardRendererContainer:"errorCardRendererContainer-S9sXvhAu",errorCardButton:"errorCardButton-S9sXvhAu"}},27011:(t,e,r)=>{"use strict";function o(t,e){return e||null==t||("string"==typeof t||Array.isArray(t))&&0===t.length}r.d(e,{isIconOnly:()=>o})},9038:(t,e,r)=>{"use strict";r.d(e,{useLightButtonClasses:()=>c});var o=r(50959),i=r(97754),a=r(17946),l=r(27011),n=r(86332);const s=o.createContext({isInButtonGroup:!1,isGroupPrimary:!1}),c=(t,e,r)=>{const c=(0,o.useContext)(a.CustomBehaviourContext),{className:d,isSelected:u,children:h,showCaret:p,forceDirection:m,iconOnly:v,color:g="gray",variant:C="primary",size:y="medium",enableActiveStateStyles:x=c.enableActiveStateStyles,typography:w,isLink:b=!1,textWrap:f,isPills:S,isActive:_,startSlot:A,endSlot:k}=e,W=t[`typography-${((t,e,r)=>{if(r){const t=r.replace(/^\D+/g,"");return e?`semibold${t}`:r}switch(t){case"xsmall":return e?"semibold14px":"regular14px";case"small":case"medium":return e?"semibold16px":"regular16px";default:return""}})(y,u||S,w||void 0)}`],E=(0,o.useContext)(n.ControlGroupContext),{isInButtonGroup:H,isGroupPrimary:V}=(0,o.useContext)(s);return i(d,t.lightButton,b&&t.link,_&&t.active,u&&t.selected,(0, l.isIconOnly)(h,v)&&t.noContent,!!A&&t.withStartSlot,(p||!!k)&&t.withEndSlot,r&&t.withGrouped,m&&t[m],t[V?"primary":C],t[V?"gray":g],t[y],W,!x&&t.disableActiveStateStyles,E.isGrouped&&t.grouped,f&&t.wrap,H&&t.disableActiveOnTouch,S&&t.pills)}},66860:(t,e,r)=>{"use strict";r.d(e,{LightButtonContent:()=>u});var o=r(50959),i=r(97754),a=r(34094),l=r(27011),n=r(9745),s=r(2948),c=r(29075),d=r.n(c);function u(t){const{showCaret:e,iconOnly:r,ellipsis:c=!0,textWrap:u,tooltipText:h,children:p,endSlot:m,startSlot:v,isActiveCaret:g}=t;[m,e].filter((t=>!!t));return o.createElement(o.Fragment,null,v&&o.createElement("span",{className:i(d().slot,d().startSlot)},v),!(0,l.isIconOnly)(p,r)&&o.createElement("span",{className:i(d().content,!u&&d().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":null!=h?h:(0,a.getTextForTooltip)(p)},u||c?o.createElement(o.Fragment,null,o.createElement("span",{className:i(!u&&c&&d().ellipsisContainer,u&&d().textWrapContainer,u&&c&&d().textWrapWithEllipsis)},p),o.createElement("span",{className:d().visuallyHidden,"aria-hidden":!0},p)):o.createElement(o.Fragment,null,p,o.createElement("span",{className:d().visuallyHidden,"aria-hidden":!0},p))),m&&o.createElement("span",{className:i(d().slot,d().endSlot)},m),e&&(t=>o.createElement(n.Icon,{className:i(d().caret,t&&d().activeCaret),icon:s}))(g))}},15893:(t,e,r)=>{"use strict";r.d(e,{LightButton:()=>u});var o=r(50959),i=r(86332),a=r(9038),l=r(66860),n=r(29075),s=r.n(n),c=r(62978),d=r.n(c);function u(t){const{isGrouped:e}=o.useContext(i.ControlGroupContext),{reference:r,className:n,isSelected:c,children:u,iconOnly:h,ellipsis:p,showCaret:m,forceDirection:v,endSlot:g,startSlot:C,color:y,variant:x,size:w,enableActiveStateStyles:b,typography:f,textWrap:S=!1,maxLines:_,style:A={},isPills:k,isActive:W,tooltipText:E,role:H,...V}=t,O=S?null!=_?_:2:1,L=O>0?{...A,"--ui-lib-light-button-content-max-lines":O}:A;return o.createElement("button",{...V,className:(0,a.useLightButtonClasses)({...d(),...s()},{className:n,isSelected:c,children:u,iconOnly:h,showCaret:m,forceDirection:v,endSlot:g,startSlot:C,color:y,variant:x,size:w,enableActiveStateStyles:b,typography:f,textWrap:S,isPills:k,isActive:W},e),ref:r,style:L,role:H},o.createElement(l.LightButtonContent,{showCaret:m,isActiveCaret:m&&(k||W||c),iconOnly:h,ellipsis:p,textWrap:S,tooltipText:E,endSlot:g,startSlot:C},u))}},86332:(t,e,r)=>{"use strict";r.d(e,{ControlGroupContext:()=>o});const o=r(50959).createContext({isGrouped:!1,cellState:{isTop:!0,isRight:!0,isBottom:!0,isLeft:!0}})},17946:(t,e,r)=>{"use strict";r.d(e,{CustomBehaviourContext:()=>o});const o=(0,r(50959).createContext)({enableActiveStateStyles:!0});o.displayName="CustomBehaviourContext"},9745:(t,e,r)=>{"use strict";r.d(e,{Icon:()=>i});var o=r(50959);const i=o.forwardRef(((t,e)=>{const{icon:r="",title:i,ariaLabel:a,ariaLabelledby:l,ariaHidden:n,...s}=t,c=!!(i||a||l);return o.createElement("span",{...s,ref:e,role:"img","aria-label":a,"aria-labelledby":l, "aria-hidden":n||!c,title:i,dangerouslySetInnerHTML:{__html:r}})}))},34094:(t,e,r)=>{"use strict";r.d(e,{getTextForTooltip:()=>l});var o=r(50959);const i=t=>(0,o.isValidElement)(t)&&Boolean(t.props.children),a=t=>null==t||"boolean"==typeof t||"{}"===JSON.stringify(t)?"":t.toString()+" ",l=t=>Array.isArray(t)||(0,o.isValidElement)(t)?o.Children.toArray(t).reduce(((t,e)=>{let r="";return r=(0,o.isValidElement)(e)&&i(e)?l(e.props.children):(0,o.isValidElement)(e)&&!i(e)?"":a(e),t.concat(r)}),"").trim():a(t)},81200:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ErrorCard:()=>x,ErrorCardRenderer:()=>b,ResizableErrorCard:()=>w});var o,i,a=r(50959),l=r(32227),n=r(43370),s=r(97754),c=r.n(s),d=r(9745),u=r(15893),h=(r(11542),r(56570)),p=r(29540),m=r(11425),v=(r(78080),r(79035),r(44645)),g=r(77678),C=r(12327);!function(t){t[t.ShowErrorCardIconMinHeight=105]="ShowErrorCardIconMinHeight"}(o||(o={})),function(t){t[t.Empty=0]="Empty",t[t.Medium=1]="Medium",t[t.Big=2]="Big"}(i||(i={}));const y={ghost:{1:(0,h.enabled)("hide_image_invalid_symbol")?void 0:p,2:(0,h.enabled)("hide_image_invalid_symbol")?void 0:m},attention:{1:void 0,2:void 0},"stop-hand":{1:void 0,2:void 0},"unsupported-resolution":{1:v,2:g}};const x=a.forwardRef(((t,e)=>{const{icon:r,message:o,size:i=1,rawHtml:l=!1,doNotLimitWidth:n,solutionId:s,buttons:h}=t,p=a.useMemo((()=>r&&function(t,e){if(0!==e)return y[t][e]}(r,i)),[r,i]),m=2===i?"medium":"xsmall",v=h?h.map((t=>a.createElement(u.LightButton,{onClick:t.onClick,className:C.errorCardButton,size:m,key:t.name},t.name))):null;return a.createElement("div",{ref:e,className:c()(C.errorCard,2===i&&C.errorCard_size_big,!n&&C.errorCard_limitWidth)},p&&a.createElement(d.Icon,{icon:p,className:C.errorCard__icon}),l?a.createElement("div",{className:C.errorCard__message,dangerouslySetInnerHTML:{__html:o}}):a.createElement("div",{className:C.errorCard__message},o),null,v&&a.createElement("div",{className:C.errorCard__buttons}," ",v," "))}));function w(t){const{icon:e,message:r,rawHtml:o,doNotLimitWidth:i,maxWidth:l=200,maxHeight:s=200,zeroHeight:c=105,offsetHeight:d=0,solutionId:u,buttons:h}=t,p=a.useRef(null),[m,v]=a.useState(1);return a.useEffect((()=>{const t=p.current;if(t){const e=new ResizeObserver((0,n.default)(g,150));return e.observe(t),()=>e.disconnect()}}),[l,s,d,c]),a.createElement(x,{ref:p,message:r,icon:e,size:m,rawHtml:o,doNotLimitWidth:i,solutionId:u,buttons:h});function g(){const t=p.current;if(!t)return;const e=t.clientHeight+d;e{t.exports=''},79035:t=>{t.exports=''},78080:t=>{t.exports=''},11425:t=>{t.exports=''},29540:t=>{t.exports=''},77678:t=>{ t.exports=''},44645:t=>{ t.exports=''}}]);