(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[139],{30509:e=>{e.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",errorCardRendererContainer:"errorCardRendererContainer-S9sXvhAu"}},9745:(e,r,t)=>{"use strict";t.d(r,{Icon:()=>i});var o=t(50959);const i=o.forwardRef(((e,r)=>{const{icon:t="",...i}=e;return o.createElement("span",{...i,ref:r,dangerouslySetInnerHTML:{__html:t}})}))},81200:(e,r,t)=>{"use strict";t.r(r),t.d(r,{ErrorCard:()=>v,ErrorCardRenderer:()=>g,ResizableErrorCard:()=>_});var o=t(50959),i=t(962),n=t(43370),s=t(97754),a=t.n(s),d=t(9745),l=(t(11542),t(14483)),h=t(29540),c=t(11425),m=t(30509);const u={ghost:{1:(0,l.enabled)("hide_image_invalid_symbol")?void 0:h,2:(0,l.enabled)("hide_image_invalid_symbol")?void 0:c},"stop-hand":{1:void 0,2:void 0}};const v=o.forwardRef(((e,r)=>{const{icon:t,message:i,size:n=1,rawHtml:s=!1,doNotLimitWidth:l,solutionId:h}=e,c=o.useMemo((()=>t&&function(e,r){if(0!==r)return u[e][r]}(t,n)),[t,n]);return o.createElement("div",{ref:r,className:a()(m.errorCard,2===n&&m.errorCard_size_big,!l&&m.errorCard_limitWidth)},c&&o.createElement(d.Icon,{icon:c,className:m.errorCard__icon}),s?o.createElement("div",{className:m.errorCard__message,dangerouslySetInnerHTML:{__html:i}}):o.createElement("div",{className:m.errorCard__message},i),null)}));function _(e){const{icon:r,message:t,rawHtml:i,doNotLimitWidth:s,maxWidth:a=200,maxHeight:d=200,offsetHeight:l=0,solutionId:h}=e,c=o.useRef(null),[m,u]=o.useState(1);return o.useEffect((()=>{const e=c.current;if(e){const r=new ResizeObserver((0,n.default)(_,150));return r.observe(e),()=>r.disconnect()}}),[a,d,l]),o.createElement(v,{ref:c,message:t,icon:r,size:m,rawHtml:i,doNotLimitWidth:s,solutionId:h});function _(){const e=c.current;if(!e)return;const r=e.clientHeight+l;r<105?u(0):e.clientWidth{ e.exports=''},29540:e=>{e.exports=''}}]);