(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[139],{97754:(t,e)=>{var r;!function(){"use strict";var o={}.hasOwnProperty;function i(){for(var t=[],e=0;e{t.exports={pills:"pills-PVWoXu5j",primary:"primary-PVWoXu5j",gray:"gray-PVWoXu5j",selected:"selected-PVWoXu5j",grouped:"grouped-PVWoXu5j",active:"active-PVWoXu5j",disableActiveOnTouch:"disableActiveOnTouch-PVWoXu5j",disableActiveStateStyles:"disableActiveStateStyles-PVWoXu5j",withGrouped:"withGrouped-PVWoXu5j","quiet-primary":"quiet-primary-PVWoXu5j",green:"green-PVWoXu5j",red:"red-PVWoXu5j",blue:"blue-PVWoXu5j",secondary:"secondary-PVWoXu5j",ghost:"ghost-PVWoXu5j"}},78457: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"}},2385: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})},8025:(t,e,r)=>{"use strict";r.d(e,{useLightButtonClasses:()=>d});var o=r(50959),i=r(97754),a=r.n(i),n=r(17946),l=r(27011),s=r(86332);const c=o.createContext({isInButtonGroup:!1,isGroupPrimary:!1}),d=(t,e,r)=>{const i=(0, o.useContext)(n.CustomBehaviourContext),{className:d,isSelected:u,children:p,showCaret:h,forceDirection:m,iconOnly:v,color:g="gray",variant:C="primary",size:y="medium",enableActiveStateStyles:x=i.enableActiveStateStyles,typography:w,isLink:b=!1,textWrap:f,isPills:S,isActive:_,startSlot:A,endSlot:W}=e,k=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)(s.ControlGroupContext),{isInButtonGroup:V,isGroupPrimary:H}=(0,o.useContext)(c);return a()(d,t.lightButton,b&&t.link,_&&t.active,u&&t.selected,(0,l.isIconOnly)(p,v)&&t.noContent,!!A&&t.withStartSlot,(h||!!W)&&t.withEndSlot,r&&t.withGrouped,m&&t[m],t[H?"primary":C],t[H?"gray":g],t[y],k,!x&&t.disableActiveStateStyles,E.isGrouped&&t.grouped,f&&t.wrap,V&&t.disableActiveOnTouch,S&&t.pills)}},66860:(t,e,r)=>{"use strict";r.d(e,{LightButtonContent:()=>m});var o=r(50959),i=r(97754),a=r.n(i),n=r(34094),l=r(27011),s=r(9745),c=r(2948),d=r.n(c),u=r(78457),p=r.n(u);const h=t=>o.createElement(s.Icon,{className:a()(p().caret,t&&p().activeCaret),icon:d()});function m(t){const{showCaret:e,iconOnly:r,ellipsis:i=!0,textWrap:s,tooltipText:c,children:d,endSlot:u,startSlot:m,isActiveCaret:v}=t;[u,e].filter((t=>!!t));return o.createElement(o.Fragment,null,m&&o.createElement("span",{className:a()(p().slot,p().startSlot)},m),!(0,l.isIconOnly)(d,r)&&o.createElement("span",{className:a()(p().content,!s&&p().nowrap,"apply-overflow-tooltip","apply-overflow-tooltip--check-children-recursively","apply-overflow-tooltip--allow-text"),"data-overflow-tooltip-text":c??(0,n.getTextForTooltip)(d)},s||i?o.createElement(o.Fragment,null,o.createElement("span",{className:a()(!s&&i&&p().ellipsisContainer,s&&p().textWrapContainer,s&&i&&p().textWrapWithEllipsis)},d),o.createElement("span",{className:p().visuallyHidden,"aria-hidden":!0},d)):o.createElement(o.Fragment,null,d,o.createElement("span",{className:p().visuallyHidden,"aria-hidden":!0},d))),u&&o.createElement("span",{className:a()(p().slot,p().endSlot)},u),e&&h(v))}},15893:(t,e,r)=>{"use strict";r.d(e,{LightButton:()=>u});var o=r(50959),i=r(86332),a=r(8025),n=r(66860),l=r(78457),s=r.n(l),c=r(11985),d=r.n(c);function u(t){const{isGrouped:e}=o.useContext(i.ControlGroupContext),{reference:r,className:l,isSelected:c,children:u,iconOnly:p,ellipsis:h,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:W,isActive:k,tooltipText:E,role:V,...H}=t,O=S?_??2:1,L=O>0?{...A,"--ui-lib-light-button-content-max-lines":O}:A;return o.createElement("button",{...H,className:(0,a.useLightButtonClasses)({...d(),...s()},{className:l,isSelected:c,children:u,iconOnly:p,showCaret:m,forceDirection:v,endSlot:g,startSlot:C,color:y,variant:x,size:w,enableActiveStateStyles:b,typography:f,textWrap:S,isPills:W,isActive:k},e),ref:r,style:L,role:V },o.createElement(n.LightButtonContent,{showCaret:m,isActiveCaret:m&&(W||k||c),iconOnly:p,ellipsis:h,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:n,ariaHidden:l,...s}=t,c=!!(i||a||n);return o.createElement("span",{role:"img",...s,ref:e,"aria-label":a,"aria-labelledby":n,"aria-hidden":l||!c,title:i,dangerouslySetInnerHTML:{__html:r}})}))},34094:(t,e,r)=>{"use strict";r.d(e,{getTextForTooltip:()=>n});var o=r(50959);const i=t=>(0,o.isValidElement)(t)&&Boolean(t.props.children),a=(t,e=!0)=>null==t||"boolean"==typeof t||"{}"===JSON.stringify(t)?"":t.toString()+(e?" ":""),n=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)?n(e.props.children):(0,o.isValidElement)(e)&&!i(e)?"":a(e),t.concat(r)}),"").trim():a(t,!1)},81200:(t,e,r)=>{"use strict";r.r(e),r.d(e,{ErrorCard:()=>x,ErrorCardRenderer:()=>b,ResizableErrorCard:()=>w});var o,i,a=r(50959),n=r(32227),l=r(20057),s=r(97754),c=r.n(s),d=r(9745),u=r(15893),p=(r(11542),r(37103)),h=r(29540),m=r(11425),v=(r(78080),r(79035),r(44645)),g=r(77678),C=r(2385);!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,p.enabled)("hide_image_invalid_symbol")?void 0:h,2:(0,p.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}};new Set(["en","gb","de_DE","fr","es","it","pl","ja"]);const x=a.forwardRef(((t,e)=>{const{icon:r,message:o,size:i=1,rawHtml:n=!1,doNotLimitWidth:l,solutionId:s,buttons:p}=t,h=a.useMemo((()=>r&&function(t,e){if(0!==e)return y[t][e]}(r,i)),[r,i]),m=2===i?"medium":"xsmall",v=p?p.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,!l&&C.errorCard_limitWidth),"data-name":"error-card"},h&&a.createElement(d.Icon,{icon:h,className:C.errorCard__icon}),n?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:n=200,maxHeight:s=200,zeroHeight:c=105,offsetHeight:d=0,solutionId:u,buttons:p}=t,h=a.useRef(null),[m,v]=a.useState(1);return a.useEffect((()=>{const t=h.current;if(t){ const e=new ResizeObserver((0,l.default)(g,150));return e.observe(t),()=>e.disconnect()}}),[n,s,d,c]),a.createElement(x,{ref:h,message:r,icon:e,size:m,rawHtml:o,doNotLimitWidth:i,solutionId:u,buttons:p});function g(){const t=h.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=''}}]);