(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[139],{41571:e=>{e.exports={errorCard:"errorCard-iiZjDmS7",errorCard__icon:"errorCard__icon-iiZjDmS7",errorCard_size_big:"errorCard_size_big-iiZjDmS7",errorCard__message:"errorCard__message-iiZjDmS7",errorCard_limitWidth:"errorCard_limitWidth-iiZjDmS7",errorCardRendererContainer:"errorCardRendererContainer-iiZjDmS7"}},9745:(e,r,t)=>{"use strict";t.d(r,{Icon:()=>o});var i=t(59496);const o=i.forwardRef((e,r)=>{const{icon:t="",...o}=e;return i.createElement("span",{...o,ref:r,dangerouslySetInnerHTML:{__html:t}})})},81200:(e,r,t)=>{"use strict";t.r(r),t.d(r,{ErrorCard:()=>g,ResizableErrorCard:()=>v,ErrorCardRenderer:()=>C});var i=t(59496),o=t(87995),a=t(43370),n=t(97754),s=t.n(n),d=t(9745),l=(t(28353),t(69067)),c=t(61812),m=t(41571);const h={ghost:{1:l,2:c},"stop-hand":{1:void 0,2:void 0}},g=i.forwardRef((e,r)=>{const{icon:t,message:o,size:a=1,rawHtml:n=!1,doNotLimitWidth:l}=e;return i.createElement("div",{ref:r,className:s()(m.errorCard,2===a&&m.errorCard_size_big,!l&&m.errorCard_limitWidth)},i.createElement(d.Icon,{icon:t&&h[t][a],className:m.errorCard__icon}),n?i.createElement("div",{className:m.errorCard__message,dangerouslySetInnerHTML:{__html:o}}):i.createElement("div",{className:m.errorCard__message},o))});function v(e){const{icon:r,message:t,rawHtml:o,doNotLimitWidth:n,maxWidth:s=200,maxHeight:d=200,offsetHeight:l=0}=e,c=i.useRef(null),[m,h]=i.useState(1);return i.useEffect(()=>{const e=c.current;if(e){const r=new ResizeObserver((0,a.default)(v,150));return r.observe(e),()=>r.disconnect()}},[s,d,l]),i.createElement(g,{ref:c,message:t,icon:r,size:m,rawHtml:o,doNotLimitWidth:n});function v(){const e=c.current;e&&(e.clientWidth{ e.exports=''},69067:e=>{e.exports=''}}]);