Release v23.044 (from fd133747)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[7274],{21103:e=>{e.exports={container:"container-pgo9gj31","intent-default":"intent-default-pgo9gj31",focused:"focused-pgo9gj31",readonly:"readonly-pgo9gj31",disabled:"disabled-pgo9gj31","with-highlight":"with-highlight-pgo9gj31",grouped:"grouped-pgo9gj31","adjust-position":"adjust-position-pgo9gj31","first-row":"first-row-pgo9gj31","first-col":"first-col-pgo9gj31",stretch:"stretch-pgo9gj31","font-size-medium":"font-size-medium-pgo9gj31","font-size-large":"font-size-large-pgo9gj31","size-small":"size-small-pgo9gj31","size-medium":"size-medium-pgo9gj31","size-large":"size-large-pgo9gj31","intent-success":"intent-success-pgo9gj31","intent-warning":"intent-warning-pgo9gj31","intent-danger":"intent-danger-pgo9gj31","intent-primary":"intent-primary-pgo9gj31","border-none":"border-none-pgo9gj31","border-thin":"border-thin-pgo9gj31","border-thick":"border-thick-pgo9gj31","no-corner-top-left":"no-corner-top-left-pgo9gj31","no-corner-top-right":"no-corner-top-right-pgo9gj31","no-corner-bottom-right":"no-corner-bottom-right-pgo9gj31","no-corner-bottom-left":"no-corner-bottom-left-pgo9gj31",highlight:"highlight-pgo9gj31",shown:"shown-pgo9gj31"}},10306:e=>{e.exports={"inner-slot":"inner-slot-QpAAIiaV",interactive:"interactive-QpAAIiaV",icon:"icon-QpAAIiaV","inner-middle-slot":"inner-middle-slot-QpAAIiaV","before-slot":"before-slot-QpAAIiaV","after-slot":"after-slot-QpAAIiaV"}},66579:e=>{e.exports={input:"input-uGWFLwEy","with-start-slot":"with-start-slot-uGWFLwEy","with-end-slot":"with-end-slot-uGWFLwEy"}},62092:e=>{e.exports={loader:"loader-MuZZSHRY",static:"static-MuZZSHRY",item:"item-MuZZSHRY","tv-button-loader":"tv-button-loader-MuZZSHRY",medium:"medium-MuZZSHRY",small:"small-MuZZSHRY",black:"black-MuZZSHRY",white:"white-MuZZSHRY",gray:"gray-MuZZSHRY",primary:"primary-MuZZSHRY","loader-initial":"loader-initial-MuZZSHRY","loader-appear":"loader-appear-MuZZSHRY"}},92595:e=>{e.exports={actions:"actions-gJT1zWiK","actions--align_right":"actions--align_right-gJT1zWiK","actions--align_center":"actions--align_center-gJT1zWiK",button:"button-gJT1zWiK",text:"text-gJT1zWiK",shown:"shown-gJT1zWiK",loader:"loader-gJT1zWiK"}},37040:e=>{e.exports={"code-highlighter":"code-highlighter-OSu8zI0r"}},58878:e=>{e.exports={"wrapper-copy-link-button":"wrapper-copy-link-button-v1B2IYZi","copy-link-button":"copy-link-button-v1B2IYZi",icon:"icon-v1B2IYZi"}},72720:e=>{e.exports={title:"title-TQlEhltv",externalLink:"externalLink-TQlEhltv",externalIcon:"externalIcon-TQlEhltv","externalIcon--free-user-faqs":"externalIcon--free-user-faqs-TQlEhltv","externalIcon--shortcuts":"externalIcon--shortcuts-TQlEhltv","externalIcon--new":"externalIcon--new-TQlEhltv","externalIcon--feature":"externalIcon--feature-TQlEhltv","externalIcon--pine":"externalIcon--pine-TQlEhltv","externalIcon--pine-script":"externalIcon--pine-script-TQlEhltv","externalIcon--update":"externalIcon--update-TQlEhltv","externalIcon--status":"externalIcon--status-TQlEhltv",externalTitle:"externalTitle-TQlEhltv",
|
||||
openingIcon:"openingIcon-TQlEhltv"}},43566:e=>{e.exports={list:"list-xevOrWvR",button:"button-xevOrWvR",item:"item-xevOrWvR",focus:"focus-xevOrWvR",content:"content-xevOrWvR",icon:"icon-xevOrWvR"}},48884:e=>{e.exports={"page-title":"page-title-KvjIyxe2"}},45775:e=>{e.exports={paragraph:"paragraph-q0Pd3eEh"}},48e3:e=>{e.exports={"spinner-container":"spinner-container-wvKRiFX3"}},56585:e=>{e.exports={"problems-nav-item-wrap":"problems-nav-item-wrap-7e1JpK6O","problems-nav-item":"problems-nav-item-7e1JpK6O",icon:"icon-7e1JpK6O",column:"column-7e1JpK6O",count:"count-7e1JpK6O",text:"text-7e1JpK6O","blackfriday-tile":"blackfriday-tile-7e1JpK6O"}},7931:e=>{e.exports={"search-block":"search-block-HVdG1RMD search-block-FdunOPoq","input-container":"input-container-HVdG1RMD search-input-container-FdunOPoq","search-icon":"search-icon-HVdG1RMD search-icon-FdunOPoq",list:"list-HVdG1RMD",empty:"empty-HVdG1RMD",itemWrapper:"itemWrapper-HVdG1RMD",item:"item-HVdG1RMD",highlight:"highlight-HVdG1RMD"}},33811:e=>{e.exports={icon:"icon-eFQRlZi6",container:"container-eFQRlZi6",item:"item-eFQRlZi6",innerItem:"innerItem-eFQRlZi6"}},81560:e=>{e.exports={"item-title":"item-title-bztm5Sql","solutions-count":"solutions-count-bztm5Sql"}},79082:e=>{e.exports={tiles:"tiles-2ojDbEbo"}},76917:e=>{e.exports={"wizard-header":"wizard-header-CjoBuNmK","wizard-header-dialog":"wizard-header-dialog-CjoBuNmK"}},15472:e=>{e.exports={"wizard-title":"wizard-title-IDEICbHG","wizard-title-dialog":"wizard-title-dialog-IDEICbHG"}},69363:e=>{e.exports={wrap:"wrap-vLznnRjl","close-button":"close-button-vLznnRjl","with-search":"with-search-vLznnRjl","back-button":"back-button-vLznnRjl","fixed-header-button":"fixed-header-button-vLznnRjl","fixed-header-back-button":"fixed-header-back-button-vLznnRjl","fixed-header-close-button":"fixed-header-close-button-vLznnRjl",breadcrumbs:"breadcrumbs-vLznnRjl","breadcrumbs-inner":"breadcrumbs-inner-vLznnRjl",disabledForIos:"disabledForIos-vLznnRjl"}},11115:e=>{e.exports={solution:"solution-Iy6Ippd7 solution-FdunOPoq","images-hidden":"images-hidden-Iy6Ippd7",spinner:"spinner-Iy6Ippd7","launch-chart-banner":"launch-chart-banner-Iy6Ippd7","copy-link-button":"copy-link-button-Iy6Ippd7"}},21236:e=>{e.exports={spinner:"spinner-e4BIGvhd"}},4881:e=>{e.exports={"success-page":"success-page-w9EDOZYy",link:"link-w9EDOZYy","success-page-title":"success-page-title-w9EDOZYy","success-page-text":"success-page-text-w9EDOZYy"}},71319:e=>{e.exports={wizard:"wizard-nYCqoM4n"}},38581:e=>{e.exports={breadcrumbs:"breadcrumbs-qk2FRuwQ","left-fade":"left-fade-qk2FRuwQ","right-fade":"right-fade-qk2FRuwQ","breadcrumbs-inner":"breadcrumbs-inner-qk2FRuwQ",breadcrumb:"breadcrumb-qk2FRuwQ",divider:"divider-qk2FRuwQ"}},16866:e=>{e.exports={"fixed-header":"fixed-header-k70B48fN",visible:"visible-k70B48fN","fixed-header-content":"fixed-header-content-k70B48fN"}},97737:(e,t,n)=>{"use strict";n.d(t,{AnchorButton:()=>d,Button:()=>c});var o=n(59496),r=n(71036);function i(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}
|
||||
function s(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function a(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:n,appearance:o,useFullWidth:r,icon:l,...c}=e;return{...c,color:s(t),size:a(n),variant:i(o),stretch:r,startIcon:l}}function c(e){return o.createElement(r.SquareButton,{...l(e)})}function u(e){const{intent:t,size:n,appearance:o,useFullWidth:r,icon:l,...c}=e;return{...c,color:s(t),size:a(n),variant:i(o),stretch:r,startIcon:l}}function d(e){return o.createElement(r.SquareAnchorButton,{...u(e)})}},67029:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>v,InputClasses:()=>m});var o=n(59496),r=n(97754),i=n(88537),s=n(66092),a=n(90186),l=n(86332),c=n(95604);var u=n(21103),d=n.n(u);function h(e){let t="";return 0!==e&&(1&e&&(t=r(t,d()["no-corner-top-left"])),2&e&&(t=r(t,d()["no-corner-top-right"])),4&e&&(t=r(t,d()["no-corner-bottom-right"])),8&e&&(t=r(t,d()["no-corner-bottom-left"]))),t}function g(e,t,n,o){const{removeRoundBorder:i,className:s,intent:a="default",borderStyle:l="thin",size:u,highlight:g,disabled:p,readonly:m,stretch:f,noReadonlyStyles:w,isFocused:v}=e,_=h(null!=i?i:(0,c.getGroupCellRemoveRoundBorders)(n));return r(d().container,d()["intent-"+a],d()["border-"+l],u&&d()["size-"+u],_,g&&d()["with-highlight"],p&&d().disabled,m&&!w&&d().readonly,v&&d().focused,f&&d().stretch,t&&d().grouped,!o&&d()["adjust-position"],n.isTop&&d()["first-row"],n.isLeft&&d()["first-col"],s)}function p(e,t){const{highlight:n,highlightRemoveRoundBorder:o}=e;if(!n)return d().highlight;const i=h(null!=o?o:(0,c.getGroupCellRemoveRoundBorders)(t));return r(d().highlight,d().shown,i)}const m={FontSizeMedium:(0,i.ensureDefined)(d()["font-size-medium"]),FontSizeLarge:(0,i.ensureDefined)(d()["font-size-large"])},f={passive:!1};function w(e,t){const{id:n,role:r,onFocus:i,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:h,onMouseUp:m,onKeyDown:w,onClick:v,tabIndex:_,startSlot:S,middleSlot:b,endSlot:y,onWheel:E,onWheelNoPassive:k=null}=e,{isGrouped:C,cellState:I,disablePositionAdjustment:x=!1}=(0,o.useContext)(l.ControlGroupContext),N=function(e,t=null,n){const r=(0,o.useRef)(null),i=(0,o.useRef)(null),s=(0,o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.addEventListener(e,t,n)},[]),a=(0,o.useCallback)(()=>{if(null===r.current||null===i.current)return;const[e,t,n]=i.current;null!==t&&r.current.removeEventListener(e,t,n)},[]),l=(0,o.useCallback)(e=>{a(),r.current=e,s()},[]);return(0,o.useEffect)(()=>(i.current=[e,t,n],s(),a),[e,t,n]),l}("wheel",k,f);return o.createElement("span",{id:n,role:r,className:g(e,C,I,x),tabIndex:_,ref:(0,s.useMergedRefs)([t,N]),onFocus:i,onBlur:c,onMouseOver:u,onMouseOut:d,onMouseDown:h,onMouseUp:m,onKeyDown:w,onClick:v,onWheel:E,...(0,a.filterDataProps)(e),...(0,a.filterAriaProps)(e)},S,b,y,o.createElement("span",{className:p(e,I)}))}w.displayName="ControlSkeleton";const v=o.forwardRef(w)},
|
||||
78274:(e,t,n)=>{"use strict";n.d(t,{BeforeSlot:()=>a,StartSlot:()=>l,MiddleSlot:()=>c,EndSlot:()=>u,AfterSlot:()=>d});var o=n(59496),r=n(97754),i=n(10306),s=n.n(i);function a(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["before-slot"],t)},n)}function l(e){const{className:t,interactive:n=!0,icon:i=!1,children:a}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},a)}function c(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["inner-slot"],s()["inner-middle-slot"],t)},n)}function u(e){const{className:t,interactive:n=!0,icon:i=!1,children:a}=e;return o.createElement("span",{className:r(s()["inner-slot"],n&&s().interactive,i&&s().icon,t)},a)}function d(e){const{className:t,children:n}=e;return o.createElement("span",{className:r(s()["after-slot"],t)},n)}},31261:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>v});var o=n(59496),r=n(97754),i=n(90186),s=n(47201),a=n(48907),l=n(66092),c=n(48027),u=n(29202),d=n(45812),h=n(67029),g=n(78274),p=n(66579),m=n.n(p);function f(e){return!(0,i.isAriaAttribute)(e)&&!(0,i.isDataAttribute)(e)}function w(e){const{id:t,title:n,role:s,tabIndex:a,placeholder:l,name:c,type:u,value:d,defaultValue:p,draggable:w,autoComplete:v,autoFocus:_,maxLength:S,min:b,max:y,step:E,pattern:k,inputMode:C,onSelect:I,onFocus:x,onBlur:N,onKeyDown:P,onKeyUp:D,onKeyPress:A,onChange:R,onDragStart:T,size:F="medium",className:W,inputClassName:M,disabled:O,readonly:L,containerTabIndex:z,startSlot:B,endSlot:j,reference:H,containerReference:$,onContainerFocus:U,...V}=e,G=(0,i.filterProps)(V,f),Q={...(0,i.filterAriaProps)(V),...(0,i.filterDataProps)(V),id:t,title:n,role:s,tabIndex:a,placeholder:l,name:c,type:u,value:d,defaultValue:p,draggable:w,autoComplete:v,autoFocus:_,maxLength:S,min:b,max:y,step:E,pattern:k,inputMode:C,onSelect:I,onFocus:x,onBlur:N,onKeyDown:P,onKeyUp:D,onKeyPress:A,onChange:R,onDragStart:T};return o.createElement(h.ControlSkeleton,{...G,disabled:O,readonly:L,tabIndex:z,className:r(m().container,W),size:F,ref:$,onFocus:U,startSlot:B,middleSlot:o.createElement(g.MiddleSlot,null,o.createElement("input",{...Q,className:r(m().input,M,B&&m()["with-start-slot"],j&&m()["with-end-slot"]),disabled:O,readOnly:L,ref:H})),endSlot:j})}function v(e){e=(0,c.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:r=0,onFocus:i,onBlur:h,reference:g,containerReference:p=null}=e,m=(0,o.useRef)(null),f=(0,o.useRef)(null),[v,_]=(0,u.useFocus)(),S=t?void 0:v?-1:r,b=t?void 0:v?r:-1,{isMouseDown:y,handleMouseDown:E,handleMouseUp:k}=(0,d.useIsMouseDown)(),C=(0,s.createSafeMulticastEventHandler)(_.onFocus,(function(e){n&&!y.current&&(0,a.selectAllContent)(e.currentTarget)}),i),I=(0,s.createSafeMulticastEventHandler)(_.onBlur,h),x=(0,o.useCallback)(e=>{m.current=e,g&&("function"==typeof g&&g(e),"object"==typeof g&&(g.current=e))},[m,g]);return o.createElement(w,{...e,isFocused:v,containerTabIndex:S,tabIndex:b,onContainerFocus:function(e){f.current===e.target&&null!==m.current&&m.current.focus()},onFocus:C,
|
||||
onBlur:I,reference:x,containerReference:(0,l.useMergedRefs)([f,p]),onMouseDown:E,onMouseUp:k})}},48027:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>i});var o=n(47201),r=n(29202);function i(e){const{onFocus:t,onBlur:n,intent:i,highlight:s,disabled:a}=e,[l,c]=(0,r.useFocus)(void 0,a),u=(0,o.createSafeMulticastEventHandler)(a?void 0:c.onFocus,t),d=(0,o.createSafeMulticastEventHandler)(a?void 0:c.onBlur,n);return{...e,intent:i||(l?"primary":"default"),highlight:null!=s?s:l,onFocus:u,onBlur:d}}},29202:(e,t,n)=>{"use strict";n.d(t,{useFocus:()=>r});var o=n(59496);function r(e,t){const[n,r]=(0,o.useState)(!1);(0,o.useEffect)(()=>{t&&n&&r(!1)},[t,n]);const i={onFocus:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!0)}),[e]),onBlur:(0,o.useCallback)((function(t){void 0!==e&&e.current!==t.target||r(!1)}),[e])};return[n,i]}},76974:(e,t,n)=>{"use strict";n.d(t,{useIsMounted:()=>r});var o=n(59496);const r=()=>{const e=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}},45812:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>r});var o=n(59496);function r(){const e=(0,o.useRef)(!1),t=(0,o.useCallback)(()=>{e.current=!0},[e]),n=(0,o.useCallback)(()=>{e.current=!1},[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},66092:(e,t,n)=>{"use strict";n.d(t,{useMergedRefs:()=>r});var o=n(59496);function r(e){return(0,o.useCallback)(function(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}(e),e)}},26996:(e,t,n)=>{"use strict";n.d(t,{Loader:()=>c});var o,r=n(59496),i=n(97754),s=n(74991),a=n(62092),l=n.n(a);!function(e){e[e.Initial=0]="Initial",e[e.Appear=1]="Appear",e[e.Active=2]="Active"}(o||(o={}));class c extends r.PureComponent{constructor(e){super(e),this._stateChangeTimeout=null,this.state={state:o.Initial}}render(){const{className:e,color:t="black",size:n="medium",staticPosition:o}=this.props,s=i(l().item,l()[t],l()[n]);return r.createElement("span",{className:i(l().loader,o&&l().static,this._getStateClass(),e)},r.createElement("span",{className:s}),r.createElement("span",{className:s}),r.createElement("span",{className:s}))}componentDidMount(){this.setState({state:o.Appear}),this._stateChangeTimeout=setTimeout(()=>{this.setState({state:o.Active})},2*s.dur)}componentWillUnmount(){this._stateChangeTimeout&&(clearTimeout(this._stateChangeTimeout),this._stateChangeTimeout=null)}_getStateClass(){switch(this.state.state){case o.Initial:return l()["loader-initial"];case o.Appear:return l()["loader-appear"];default:return""}}}},48907:(e,t,n)=>{"use strict";function o(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>o})},47201:(e,t,n)=>{"use strict";function o(...e){return t=>{for(const n of e)void 0!==n&&n(t)}}n.d(t,{createSafeMulticastEventHandler:()=>o})},60540:(e,t,n)=>{"use strict";n.d(t,{takeChartSnapshotPromise:()=>i,takeChartSnapshot:()=>s});n(94419),n(28353);var o=n(67337),r=n(85198);function i(e,t={}){return new Promise((n,o)=>{s(e,n,o,t)})}async function s(e,t,n,i={}){var s;const a=new FormData
|
||||
;if(void 0!==i.previews)for(const e of i.previews)a.append("previews[]",e);void 0!==i.cme&&a.append("cme",String(i.cme)),void 0!==i.wl&&a.append("wl",String(i.wl)),void 0!==i.onWidget&&a.append("onWidget",String(i.onWidget)),i.isReport&&a.append("isReport",String(i.isReport)),i.asyncSave&&a.append("asyncSave",String(i.asyncSave));const l=window.urlParams;l&&l.locale&&a.append("language",l.locale);const c=e.activeChartWidget.value(),u=c.widgetCustomer();void 0!==u&&a.append("customer",u);let d=c.properties().childs().timezone.value();"exchange"===d&&(d=(null===(s=c.model().mainSeries().symbolInfo())||void 0===s?void 0:s.timezone)||d),a.append("timezone",d),a.append("symbol",c.model().mainSeries().symbol());const h=await e.clientSnapshot({showHeaderMainSymbol:i.showHeaderMainSymbol}),g=await new Promise(e=>h.toBlob(e));null!==g&&a.append("preparedImage",g),async function(e,t,n,i={}){const s=o.enabled("charting_library_base")?i.snapshotUrl||"https://www.tradingview.com/snapshot/":"/snapshot/";try{const o=await(0,r.fetch)(s,{body:e,method:"POST",credentials:"same-origin"}),i=await o.text();o.ok?t(i):n()}catch(e){n()}}(a,t,n,i)}},93299:(e,t,n)=>{"use strict";n.d(t,{OFFERS:()=>o,OfferKind:()=>r,LastChanceType:()=>i});const o={trial:"trial",early_access:"early_access",black_friday:"black_friday",cyber_monday:"cyber_monday",custom_discount:"custom_discount",longer_cycle:"longer_cycle",upgrade:"upgrade",last_chance:"last_chance",one_usd:"one_usd",six_months:"six_months"},r={early_access:"early_access",black_friday:"black_friday",last_chance:"last_chance",one_usd:"1 usd offer",six_months:"six_months",custom_discount:"custom_discount"};var i;!function(e){e.TwoWeeks="LastChance_2w",e.TwoDays="LastChance_2d",e.Hours="LastChance_24h"}(i||(i={}))},89053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{SupportDialog:()=>mn});var o,r=n(59496),i=n(87995),s=n(56840),a=n(32563),l=n(98125),c=n(94673),u=n(28353);class d extends Error{constructor(e,t,n=!0){super(e),this.name="SupportWizardError",this.userFriendlyMessage=u.t("Report could not be sent due to a server error. Please refresh the page and try again."),this.showToUser=!0,this.showToUser=n,void 0!==t&&(this.userFriendlyMessage=t)}}!function(e){e[e.Unknown=0]="Unknown",e[e.ChartPage=1]="ChartPage",e[e.MobileApp=2]="MobileApp",e[e.Dialog=4]="Dialog",e[e.Portal=8]="Portal",e[e.SSR=16]="SSR",e[e.Desktop=32]="Desktop",e[e.ScreenerPage=64]="ScreenerPage"}(o||(o={}));const h=(0,r.createContext)({context:o.Unknown,solutionsSearch:{search:()=>Promise.resolve([])},blogUrl:"",rootElement:null});function g(e,...t){return t.map(t=>0!=(e&t)).reduce((e,t)=>e&&t,!0)}var p,m,f,w,v,_,S,b,y,E,k,C=n(83812),I=n(92033);function x(e){return e.type===k.Category}function N(e){return e.type===k.Folder}function P(e){return void 0!==e.parent}!function(e){e.Chart="Chart",e.Trading="Trading issue"}(p||(p={})),function(e){e.Other="Other",e.DrawingIssue="Drawings issue",e.StudyNotLoading="Study not loading",e.SlowChart="Slow scrolling or chart loading"}(m||(m={})),function(e){e.Data="Data",e.PineScript="Pine Script issue",
|
||||
e.Alert="Alerts issue",e.Billing="Billing",e.Screener="Screener",e.SocialNetwork="Social network",e.Watchlist="Watchlist",e.MobileApps="Mobile apps",e.Desktop="Desktop",e.Financials="Financials",e.ProfileSettings="Profile settings",e.AccountRecovery="Account recovery",e.Blackfriday="Black Friday",e.Cybermonday="Cyber Monday",e.PaymentSearch="Payment search"}(f||(f={})),function(e){e.Unsubscribe="Unsubscribe",e.ChartDoesNotLoad="Chart does not load",e.NoRealTimeData="No real-time data",e.GapInTheData="Gap in the data",e.PriceIncorrect="Price incorrect"}(w||(w={})),function(e){e.IsPro="Is PRO",e.ExPro="Ex-PRO"}(v||(v={})),function(e){e.FromAgent="0",e.FromUser="2"}(_||(_={})),function(e){e.Received="Received",e.InProgress="In Progress",e.Closed="Closed"}(S||(S={})),function(e){e[e.Good=103]="Good",e[e.Average=100]="Average",e[e.Bad=-103]="Bad"}(b||(b={})),function(e){e.Billing="billing",e.Data="data",e.Chart="chart",e.Trading="trading",e.Alerts="alerts",e.Pine="pine",e.Screener="screener",e.SocialNetwork="socialNetwork",e.Watchlist="watchlist",e.MobileApps="mobileApps",e.Desktop="desktop",e.ProfileSettings="profileSettings",e.Financials="financials",e.Blackfriday="blackfriday"}(y||(y={})),function(e){e[e.Billing=43000359310]="Billing",e[e.Data=43000359303]="Data",e[e.Chart=43000359369]="Chart",e[e.Trading=43000359435]="Trading",e[e.Alerts=43000359434]="Alerts",e[e.Pine=43000359313]="Pine",e[e.Screener=43000359433]="Screener",e[e.SocialNetwork=43000359389]="SocialNetwork",e[e.Watchlist=43000359455]="Watchlist",e[e.MobileApps=43000359462]="MobileApps",e[e.Desktop=43000368699]="Desktop",e[e.ProfileSettings=43000363655]="ProfileSettings",e[e.Financials=43000366059]="Financials",e[e.Blackfriday=43000370551]="Blackfriday"}(E||(E={})),function(e){e.Category="category",e.Folder="folder",e.Solution="solution"}(k||(k={}));const D={[y.Data]:E.Data,[y.Billing]:E.Billing,[y.Pine]:E.Pine,[y.Chart]:E.Chart,[y.SocialNetwork]:E.SocialNetwork,[y.Screener]:E.Screener,[y.Alerts]:E.Alerts,[y.Trading]:E.Trading,[y.Watchlist]:E.Watchlist,[y.MobileApps]:E.MobileApps,[y.Desktop]:E.Desktop,[y.ProfileSettings]:E.ProfileSettings,[y.Financials]:E.Financials,[y.Blackfriday]:E.Blackfriday},A={[E.Data]:()=>u.t("Data",{context:"support"}),[E.Billing]:()=>u.t("Billing"),[E.Pine]:()=>u.t("Pine Script™",{context:"support"}),[E.Chart]:()=>u.t("Chart"),[E.SocialNetwork]:()=>u.t("Social network"),[E.Screener]:()=>u.t("Screener"),[E.Alerts]:()=>u.t("Alerts"),[E.Trading]:()=>u.t("Trading"),[E.Watchlist]:()=>u.t("Watchlist"),[E.MobileApps]:()=>u.t("Mobile apps"),[E.Desktop]:()=>u.t("Desktop"),[E.ProfileSettings]:()=>u.t("Profile settings"),[E.Financials]:()=>u.t("Financials"),[E.Financials]:()=>u.t("Financials"),[E.Blackfriday]:()=>u.t("Black Friday FAQ",{context:"support"})};var R=n(54690);const T=(0,l.getLogger)("Support.WizardErrorBoundary");class F extends r.PureComponent{componentDidCatch(e){T.logError(e.message)}render(){return r.createElement(r.Fragment,null,this.props.children)}}let W=[y.Chart,y.Trading];var M=n(2872),O=n.n(M)
|
||||
;const L=r.createContext(null),z=new(O());function B(e,t){z.fire(e,t)}function j(e,t="",n){if("en"!==n)return e;let o=t.toLowerCase();const r=new RegExp("[^a-zA-Z0-9]+","ug");return o=o.replace(r,"-"),o=o.replace(/-+/g,"-"),o=o.replace(/^-/g,""),o=o.replace(/-$/g,""),`${e}-${o}`}var H=n(97754),$=n(64531),U=n(43370),V=n(59255),G=n(88537),Q=n(62820),Z=n(38581);function K(e){const{divider:t="•",className:n}=e;return"string"==typeof t?r.createElement("span",{className:H(Z.divider,n)},t):t}function q(e){const{name:t,href:n="",...o}=e;return r.createElement("a",{href:n,...o},t)}class J extends r.PureComponent{constructor(e){super(e),this._ref=r.createRef(),this._handleContainerScroll=()=>{const{showLeftFade:e,showRightFade:t}=this.state,n=this._shouldShowLeftFade(),o=this._shouldShowRightFade();n===e&&o===t||this.setState({showLeftFade:n,showRightFade:o})},this._shouldShowLeftFade=()=>{const e=this._ref.current;if(null===e)return!1;const t=e.clientWidth;if(e.scrollWidth>t){return(0,$.getNormalizedScrollLeft)(e,(0,Q.isRtl)()?"rtl":"ltr")>0}return!1},this._shouldShowRightFade=()=>{const e=this._ref.current;if(null===e)return!1;const t=e.clientWidth,n=e.scrollWidth;if(n>t){return(0,$.getNormalizedScrollLeft)(e,(0,Q.isRtl)()?"rtl":"ltr")+t<n}return!1},this.state={showLeftFade:!1,showRightFade:!1},this._handleContainerScroll=(0,U.default)(this._handleContainerScroll,200),this._resizeObserver=new V.default(this._handleContainerScroll)}componentDidMount(){const e=(0,G.ensureNotNull)(this._ref.current);"end"===this.props.initialScrollPosition&&e.scrollWidth>e.clientWidth&&(0,$.setNormalizedScrollLeft)(e,(0,Q.isRtl)()?0:e.scrollWidth-e.clientWidth,(0,Q.isRtl)()?"rtl":"ltr"),this._resizeObserver.observe(e),this._handleContainerScroll()}componentWillUnmount(){const e=(0,G.ensureNotNull)(this._ref.current);this._resizeObserver.unobserve(e)}render(){const{path:e,divider:t,className:n,innerClassName:o,dividerClassName:i}=this.props,{showLeftFade:s,showRightFade:a}=this.state;if(0===e.length)return null;const[l,...c]=e,u=[this._getBreadcrumbComponent(l)];for(const e of c)u.push(r.createElement(K,{key:e.name+"_divider",divider:t,className:i})),u.push(this._getBreadcrumbComponent(e));return r.createElement("div",{className:H(Z.breadcrumbs,s&&Z["left-fade"],a&&Z["right-fade"],n),onScrollCapture:this._handleContainerScroll},r.createElement("nav",{ref:this._ref,className:H(Z["breadcrumbs-inner"],o)},u))}_getBreadcrumbComponent(e){const{itemClassName:t}=this.props,{component:n=q,className:o,...i}=e;return r.createElement(n,{key:e.name,className:H(Z.breadcrumb,t,o),...i})}}function Y(e,t=!1){const n=[];for(let o=0;o<e.length;o++){const r=e[o];if(void 0!==r.isCrumbVisible&&!r.isCrumbVisible)continue;const i=o+1===e.length,s=t||i,a={name:r.name,role:"button",href:r.href,onClick:e=>{e.preventDefault(),s||r.onClick()}};s&&(a["aria-disabled"]=!0,a.tabIndex=-1),n.push(a)}return n}function X(e){const{breadcrumbs:t,className:n,innerClassName:o}=e;return r.createElement(J,{path:t,className:n,innerClassName:o,initialScrollPosition:"start"})}
|
||||
J.defaultProps={initialScrollPosition:"end"};n(94419);var ee=n(44518);const te=JSON.parse('{"43000359310":"billing","43000359303":"data","43000359369":"chart","43000359435":"trading","43000359434":"alerts","43000359313":"pine","43000359433":"screener","43000359389":"socialNetwork","43000359455":"watchlist","43000359462":"mobileApps","43000368699":"desktop","43000363655":"profileSettings","43000366059":"financials","43000370551":"blackfriday"}');function ne(e,t,n=[]){const o=(0,C.useHistory)(),r=e.getEntity(t),i=e.getLanguage(),s={href:"/support/",name:u.t("Help Center"),onClick:()=>o.push("/")};if(null===r)return Y([s,...n]);return Y([s,...e.getPathToEntity(r).map(e=>{let t="/",n="/support/";const r=j(String(e.id),e.title,i);return x(e)?(t=`/categories/${te[e.id]}/`,n=`/support/categories/${te[e.id]}/`):N(e)?(t=`/folders/${r}/`,n=`/support/folders/${r}/`):(t=`/solutions/${r}/`,n=`/support/solutions/${r}/`),{href:n,name:e.title,onClick:()=>o.push(t)}}),...n])}function oe(e){return r.createElement(C.Redirect,{...e})}function re(e,t){const n=u.t("Help Center and Support"),o=u.t("Folder");if(t&&e){const r=e.getEntity(t);r&&e.getPathToEntity(r).map(e=>{if(x(e)){const t=A[Number(e.id)]();document.title=`${n} — ${t} — TradingView`}else N(e)?document.title=`${n} — ${o} — TradingView`:document.title=e.title+" — TradingView"})}else document.title=n+" — TradingView"}var ie=n(51768),se=n(76917);function ae(e){const{children:t,className:n}=e,{context:i}=(0,r.useContext)(h),s=g(i,o.Portal),a=H(n,se["wizard-header"],!s&&se["wizard-header-dialog"]);return r.createElement("div",{className:a},t)}var le=n(15472);function ce(e){const{children:t}=e,{context:n}=(0,r.useContext)(h),i=g(n,o.Portal),s=H(le["wizard-title"],!i&&le["wizard-title-dialog"]);return r.createElement("h2",{className:s},t)}var ue=n(48884);function de(e){const{children:t,className:n}=e,{context:i}=(0,r.useContext)(h),s=g(i,o.Portal);return r.createElement(r.Fragment,null,s?r.createElement("h1",{className:H(ue["page-title"],n)},t):r.createElement("h3",{className:H(ue["page-title"],n)},t))}var he=n(79082);function ge(e){const{children:t}=e;return r.createElement("nav",{className:he.tiles},t)}var pe=n(9745),me=n(56585);const fe=r.memo(e=>{const{icon:t,children:n,onClick:i,href:s,solutions:a,category:l,hideNumberArticles:c=!1,tileClassName:d}=e,{context:p}=(0,r.useContext)(h),m=g(p,o.Portal),f=!c&&a.getCategories().length>0,w=(0,r.useMemo)(()=>a.getCategoryFolders(l||0).reduce((e,t)=>e+t.solutions.length,0),[f]),v=u.t("{solution_number} article",{plural:"{solution_number} articles",count:w}).format({solution_number:w.toString()||"0"});return r.createElement("div",{className:me["problems-nav-item-wrap"]},r.createElement("a",{role:void 0!==s&&m?void 0:"button",href:s,onClick:function(e){void 0!==i&&(e.preventDefault(),i(e))},className:H(me["problems-nav-item"],d)},r.createElement("span",{className:me.column},r.createElement("span",{className:me.text},n),f&&l&&r.createElement("span",{className:me.count},v)),t&&r.createElement(pe.Icon,{icon:t,className:me.icon})))})
|
||||
;function we(e){return r.createElement(fe,{...e,tileClassName:me["blackfriday-tile"]})}var ve=n(61074),_e=n(27016),Se=n(43566);function be(e){const{className:t,...n}=e;return r.createElement("ul",{...n,className:H(Se.list,t)})}function ye(e){const{href:t,children:n,onClick:i,className:s,innerClassName:a,role:l,id:c,...u}=e,{context:d}=(0,r.useContext)(h),p=g(d,o.Portal);return r.createElement("li",{className:H(Se.item,s),role:l,id:c},r.createElement("a",{...u,role:void 0!==t&&p?void 0:"button",className:H(Se.button,a),onClick:function(e){void 0!==i&&(e.preventDefault(),i(e))},href:t},r.createElement("span",{className:Se.content},n),r.createElement(pe.Icon,{icon:_e,className:Se.icon})))}n(48e3);var Ee=n(4889),ke=n(9423),Ce=n(76594),Ie=n(78274),xe=n(31261),Ne=n(48652),Pe=n(7931);class De extends r.PureComponent{constructor(e){super(e),this._input=null,this._placeholderText=u.t("Find an answer"),this._emptyBlockText=u.t("Nothing was found"),this._uid=(0,ke.guid)().slice(0,8),this._renderSearchBar=e=>{const{isLoaded:t,solutions:n,focusOn:o}=this.state;return r.createElement(r.Fragment,null,r.createElement(xe.InputControl,{id:e?this._domId(""+e):void 0,placeholder:this._placeholderText,onChange:this._handleChange,onClick:this._handleSearch,className:Pe["input-container"],stretch:!0,reference:e=>{this._input=e},inputMode:"search",type:"text",role:"textbox","aria-label":this._placeholderText,"aria-autocomplete":"list","aria-controls":t&&n.length>0?this._domId("items"):void 0,"aria-activedescendant":void 0!==o?this._domId("item_"+o):void 0,startSlot:r.createElement(Ie.StartSlot,null,r.createElement(pe.Icon,{className:Pe["search-icon"],icon:Ne}))}))},this._renderSolution=(e,t)=>{const{focusOn:n}=this.state,o=function(e,t){const n=e.split(" ");let o=t.split(" ");return n.forEach(e=>{e&&(o=function(e,t){return t=t.toUpperCase(),e.map((e,n)=>{if("string"!=typeof e)return e;return e.replace(/[.,/#!$%^&*;:{}=\-_`~()?]/g,"").toUpperCase()===t?function(e,t){return r.createElement("span",{key:t,className:Pe.highlight},e)}(e+" ",n):e})}(o,e))}),function(e){const t=[""];return e.forEach(e=>{"string"!=typeof e?(t.push(e),t.push("")):t[t.length-1]+=e+" "}),r.createElement("span",null,...t)}(o)}(this.state.term,e.title),i=t===n;return r.createElement(ye,{key:t,id:this._domId("item_"+t),role:"option",tabIndex:-1,className:H(Pe.item,i&&Se.focus),innerClassName:Pe["item-inner"],onClick:()=>this._handleListItemClick(e),onFocus:()=>this._handleListItemFocus(t),href:`/support/solutions/${j(String(e.id),e.title,e.lang)}/`},r.createElement("div",{className:Pe.itemWrapper},o))},this._handleChange=()=>{this.setState({focusOn:void 0,isLoaded:!1}),this._debounceSearch()},this._handleSearch=()=>{const e=null!==this._input?this._input.value:"";e.length>=3&&this._search(e)},this._handleOutsideEvent=()=>{this._setDefaultState()},this._handleEscape=e=>{"Escape"===e.key&&this.state.isLoaded&&(e.stopImmediatePropagation(),this._setDefaultState())},this._keyDownHandle=e=>{e.stopPropagation();const{focusOn:t,solutions:n}=this.state,o=n.length-1;switch(e.key){
|
||||
case"ArrowUp":e.preventDefault(),void 0===t?this.setState({focusOn:o}):0!==t&&this.setState({focusOn:t-1});break;case"ArrowDown":e.preventDefault(),void 0===t?this.setState({focusOn:0}):t<o&&this.setState({focusOn:t+1});break;case"Enter":if(void 0===t)return;const n=this._getCurrentFocus(t);this._handleListItemClick(n)}},this._debounceSearch=(0,Ee.default)(this._handleSearch,500),this.state={solutions:[],isLoaded:!1,term:"",isPortal:this.props.isPortal||!1}}componentWillUnmount(){this._disableListeners()}componentDidUpdate(e,t){t.isLoaded===this.state.isLoaded||this.state.isLoaded||this._disableListeners()}componentDidMount(){this._debounceSearch=(0,Ee.default)(this._handleSearch,500),this.setState({isPortal:!1})}render(){const{solutions:e,isLoaded:t,isPortal:n}=this.state;return r.createElement(r.Fragment,null,n?r.createElement("div",{className:Pe["search-block"],onKeyDown:this._keyDownHandle,role:"combobox","aria-expanded":t&&e.length>0},this._renderSearchBar()):r.createElement(Ce.OutsideEvent,{handler:this._handleOutsideEvent,mouseDown:!0,touchStart:!0},n=>r.createElement("div",{ref:n,className:Pe["search-block"],onKeyDown:this._keyDownHandle,role:"combobox","aria-expanded":t&&e.length>0},this._renderSearchBar("input"),t?e.length>0?this._renderSolutions():this._renderPlaceholder():null)))}_renderSolutions(){const{solutions:e}=this.state;return r.createElement(be,{className:Pe.list,id:this._domId("items"),role:"listbox","aria-labelledby":this._domId("input")},e.map(this._renderSolution))}_renderPlaceholder(){return r.createElement("div",{className:H(Pe.list,Pe.empty)},this._emptyBlockText)}_handleListItemClick(e){const{onClick:t}=this.props;this._setDefaultState(),t(e)}_handleListItemFocus(e){this.setState({focusOn:e}),null!==this._input&&this._input.focus()}async _search(e){return this.props.solutionsSearch.search(e).then(t=>{this.setState({solutions:t,isLoaded:!0,term:e}),this.state.isLoaded||this._setListeners()})}_setDefaultState(){var e;(""!==(e=this.state).term||e.isLoaded||0!==e.solutions.length||void 0!==e.focusOn)&&this.setState({term:"",isLoaded:!1,solutions:[],focusOn:void 0})}_setListeners(){document.addEventListener("keyup",this._handleEscape,!0)}_disableListeners(){document.removeEventListener("keyup",this._handleEscape,!0)}_getCurrentFocus(e){return this.state.solutions[e]}_domId(e){return`${e}_${this._uid}`}}var Ae=n(67844),Re=n(16866);function Te(e){const{children:t,className:n,style:o,isVisible:i=!1}=e;return r.createElement("div",{className:H(Re["fixed-header"],i&&Re.visible,n),style:o},r.createElement("div",{className:Re["fixed-header-content"]},t))}var Fe=n(41145),We=n(69363);function Me(e){const{className:t,children:n,sending:i,ignoreHistory:s,ignoreSearch:a,breadcrumbs:l}=e,c=(0,C.useHistory)(),d=r.useRef(null),p=r.useRef(null),[m,f]=r.useState(!1),w=r.useContext(L),{context:v,solutionsSearch:_,onCloseDialog:S}=r.useContext(h),b=g(v,o.Portal),y=c.length>0&&!s;return r.useEffect(()=>{const e=d.current,t=p.current,n=e=>{const t=null!==d.current?d.current:p.current,n=e.find(({target:e})=>e===t)
|
||||
;void 0!==n&&null!==n.rootBounds&&0!==n.rootBounds.x&&f(!n.isIntersecting)};return null!==w&&(null!==e&&w.observe(e),null!==t&&w.observe(t),z.subscribe(null,n)),()=>{null!==w&&(null!==e&&w.unobserve(e),null!==t&&w.unobserve(t)),z.unsubscribe(null,n)}},[d.current,p.current]),r.createElement(r.Fragment,null,!b&&r.createElement(r.Fragment,null,r.createElement(Te,{isVisible:m,className:We.disabledForIos},y&&r.createElement(Fe.BackButton,{onClick:E,className:H(We["fixed-header-button"],We["fixed-header-back-button"]),"aria-label":u.t("Back",{context:"input"}),disabled:i,tabIndex:-1}),r.createElement(Ae.CloseButton,{className:H(We["fixed-header-button"],We["fixed-header-close-button"]),"aria-label":u.t("Close",{context:"input"}),onClick:k,tabIndex:-1})),r.createElement(Ae.CloseButton,{className:H(We["close-button"],!a&&We["with-search"]),"aria-label":u.t("Close",{context:"input"}),onClick:k,ref:p})),r.createElement("div",{className:H(We.wrap,t)},!a&&r.createElement(De,{onClick:function(e){const t=j(String(e.id),e.title,e.lang);c.push(`/solutions/${t}/`)},solutionsSearch:_,isPortal:b}),!s&&void 0!==l&&r.createElement(X,{breadcrumbs:l,className:We.breadcrumbs,innerClassName:We["breadcrumbs-inner"]}),y&&!b&&r.createElement(Fe.BackButton,{onClick:E,className:H(We["back-button"],!a&&We["with-search"]),"aria-label":u.t("Back",{context:"input"}),disabled:i,ref:d}),n));function E(){c.goBack()}function k(){void 0!==S&&S()}}var Oe=n(1787),Le=n(73242),ze=n(72720);function Be(e){const{href:t,onClick:n,rel:i,internal:s,className:a,title:l}=e,{context:c}=r.useContext(h),u=g(c,o.Portal);return r.createElement("a",{role:!u&&s?"button":void 0,href:t||"",onClick:function(e){void 0!==n&&(e.preventDefault(),n())},rel:i,target:"_blank",className:ze.externalLink},!s&&r.createElement(pe.Icon,{icon:Le,className:ze.openingIcon}),r.createElement("div",{className:H(ze.externalIcon,ze["externalIcon--"+a])}),r.createElement("span",{className:ze.externalTitle},l))}function je(){const{blogUrl:e}=r.useContext(h),t=(0,C.useHistory)(),n=[{className:"free-user-faqs",title:u.t("Free user FAQs"),onClick:()=>t.push(`/solutions/${Oe.solutionIds.FREE_USER_FAQS}/`),href:`/support/solutions/${Oe.solutionIds.FREE_USER_FAQS}/`,internal:!0},{className:"shortcuts",title:u.t("Keyboard shortcuts"),onClick:()=>t.push("/shortcuts/"),href:"/support/shortcuts/",internal:!0},{className:"new",title:u.t("What's new?"),href:""+e},{className:"feature",title:u.t("Feature request"),href:"https://www.reddit.com/r/TradingView/",rel:"nofollow"},{className:"pine",title:u.t("Pine Script™ Q&A"),href:"https://stackoverflow.com/questions/tagged/pine-script",rel:"nofollow"},{className:"pine-script",title:u.t("Pine Script™ manual"),href:"https://www.tradingview.com/pine-script-docs/en/v5/Introduction.html"},{className:"update",title:u.t("Real-time updates"),href:"https://twitter.com/tradingview",rel:"nofollow"},{className:"status",title:u.t("Status page"),href:"https://status.tradingview.com/",rel:"nofollow"}];return r.createElement(r.Fragment,null,r.createElement(de,{className:ze.title
|
||||
},u.t("Looking for something else?")),r.createElement(ge,null,n.map((e,t)=>r.createElement(Be,{key:t,...e}))))}const He=r.lazy(async()=>({default:(await Promise.all([n.e(6767),n.e(2267),n.e(8477)]).then(n.bind(n,93187))).SlowWarning})),$e=(Object.values(p),Object.values(p),Object.values(m),{[p.Chart]:()=>u.t("Chart"),[p.Trading]:()=>u.t("Trading"),[m.Other]:()=>u.t("Other"),[m.DrawingIssue]:()=>u.t("Drawings"),[m.StudyNotLoading]:()=>u.t("Indicators"),[m.SlowChart]:()=>u.t("Chart")});function Ue(e){const t=$e[e];return void 0!==t?t():""}var Ve=n(59835),Ge=n(53802);function Qe(e){const{popularSolutions:t,supportNotificationTools:n,solutionsLanguage:i,solutions:s,blackfridaySolutionShown:a,cybermondaySolutionShown:l}=e,c=(0,C.useHistory)(),{context:d,solutionsSearch:m}=r.useContext(h),w=g(d,o.Portal),v=g(d,o.SSR);useReloadTicketsListPage();return r.createElement(Me,{ignoreHistory:!0,ignoreSearch:!0},r.createElement(ae,null,r.createElement(ce,null,u.t("How can we help?")),!1),r.createElement(De,{isPortal:w,solutionsSearch:m,onClick:S}),!v&&r.createElement(r.Suspense,{fallback:null},r.createElement(He,null)),r.createElement(de,null,u.t("Select your issue category")),r.createElement(ge,null,(a||l)&&r.createElement(we,{href:`/support/categories/${y.Blackfriday}/`,onClick:(y.Blackfriday,()=>{}),solutions:s,category:D.blackfriday,hideNumberArticles:!0},Ue(l?f.Cybermonday:f.Blackfriday)),!1,r.createElement(fe,{icon:Ve,href:`/support/categories/${y.Chart}/`,onClick:_(y.Chart),solutions:s,category:D.chart},Ue(p.Chart)),r.createElement(fe,{icon:Ge,href:`/support/categories/${y.Trading}/`,onClick:_(y.Trading),solutions:s,category:D.trading},Ue(p.Trading)),!1),!1,r.createElement(je,null));function _(e){return()=>c.push(`/categories/${e}/`)}function S(e){const t=j(String(e.id),e.title,i);c.push(`/solutions/${t}/`)}}var Ze=n(85198),Ke=n(76861);n(51872);const qe=(0,l.getLogger)("Support.Api"),Je=window.DATA_ISSUES_HOST,Ye=void 0!==Je?Je+"/api/v1":void 0;function Xe(e){if(void 0===Ye)throw new Error("Helpdesk host is not defined.");return`${Ye}${e}`}const et={count:()=>({method:"GET",url:Xe("/tickets/count_by_userid")}),list:e=>({method:"GET",url:Xe("/tickets/by_userid/?page="+e)}),get:e=>({method:"GET",url:Xe("/tickets/"+e)}),send:()=>({method:"POST",url:Xe("/tickets/save")}),close:()=>({method:"POST",url:Xe("/tickets/close")}),getSatisfactionRatings:e=>({method:"GET",url:Xe(`/tickets/${e}/get_satisfaction_ratings`)}),addSatisfactionRating:e=>({method:"POST",url:Xe(`/tickets/${e}/add_satisfaction_rating`)})},tt={list:e=>({method:"GET",url:Xe(`/tickets/${e}/comments`)}),send:()=>({method:"POST",url:Xe("/tickets/add_comment")})},nt={get:()=>({method:"GET",url:Xe("/unreads/get")}),update:()=>({method:"PATCH",url:Xe("/unreads/update")}),drop:()=>({method:"PATCH",url:Xe("/unreads/drop")})},ot={getPopulars:e=>({method:"GET",url:Xe("/solutions/popular/"+e)}),getTree:e=>({method:"GET",url:Xe("/solutions/get_solutions_tree/"+e)}),search:(e,t)=>({method:"GET",url:Xe(`/solutions/search/${e}?term=${t}`)}),get:(e,t)=>({method:"GET",
|
||||
url:Xe(`/solutions/${e}/${t}`)})},rt={get:()=>({method:"GET",url:Xe("/business_hours")})},it={get:e=>({method:"GET",url:Xe("/freshdeskId/"+e)})};function st(e,t,n){const o={method:e,credentials:"include"};return o.headers=new Headers,(0,Ke.isProd)()||(o.headers.set("X-UserId",String(window.user.id)),o.headers.set("X-UserPerm",JSON.stringify({is_pro_admin:1,is_support_unreads_admin:1}))),void 0!==n&&(o.headers.set("Content-Type","application/json"),o.body=JSON.stringify(n)),(0,Ze.fetch)(t,o)}async function at(e){const t=await e.text();if(!e.ok)throw new Error(`Response was not OK. Status: ${e.status}. Content: ${t}`);return t}async function lt(e){const t=await e.text();if(!e.ok){const n=JSON.parse(t);if(n.code)throw new Error(n.code);throw new Error(`Response was not OK. Status: ${e.status}. Content: ${t}`)}try{return JSON.parse(t)}catch(n){throw new Error(`Failed to parse JSON response (at ${e.url}). Original error: "${n.name}: ${n.message}". Tried to parse: ${t}`)}}const ct={tickets:{count:async function(){const{method:e,url:t}=et.count();try{const n=await st(e,t);return await lt(n)}catch(e){throw qe.logError("Error while fetching tickets count. "+e),e}},list:async function(e){const{method:t,url:n}=et.list(e);try{const e=await st(t,n);return await lt(e)}catch(e){throw qe.logError("Error while fetching tickets. "+e),e}},get:async function(e){const{method:t,url:n}=et.get(e);try{const e=await st(t,n);return await lt(e)}catch(t){throw qe.logError(`Error while fetching ticket ${e}. `+t),t}},send:async function(e){const{method:t,url:n}=et.send();try{const o=await st(t,n,e);return await lt(o)}catch(e){throw qe.logError("Error while sending new ticket. "+e),e}},close:async function(e){const{method:t,url:n}=et.close();try{const o=await st(t,n,e);return await lt(o)}catch(t){throw qe.logError(`Error while fetching ticket ${e.reportId}. `+t),t}},getSatisfactionRatings:async function(e){const{method:t,url:n}=et.getSatisfactionRatings(e);try{const e=await st(t,n);return await lt(e)}catch(e){throw qe.logError("Error while fetching ticket satisfaction ratings. "+e),e}},addSatisfactionRating:async function(e,t){const{method:n,url:o}=et.addSatisfactionRating(e);try{const e=await st(n,o,t);return await lt(e)}catch(e){throw qe.logError("Error while sending new ticket satisfaction rating. "+e),e}}},conversations:{list:async function(e){const{method:t,url:n}=tt.list(e);try{const e=await st(t,n);return await lt(e)}catch(e){throw qe.logError("Error while fetching ticket conversations. "+e),e}},send:async function(e){const{method:t,url:n}=tt.send();try{const o=await st(t,n,e);return await lt(o)}catch(e){throw qe.logError("Error while sending new ticket note. "+e),e}}},unreads:{get:async function(){const{method:e,url:t}=nt.get();try{const n=await st(e,t);return await lt(n)}catch(e){throw qe.logWarn("Error while fetching support unreads count. "+e),e}},update:async function(e){const{method:t,url:n}=nt.update();try{const o=await st(t,n,e);await at(o)}catch(e){throw qe.logError("Error while updating ticket conversations unreads. "+e),e}},
|
||||
drop:async function(e){const{method:t,url:n}=nt.drop();try{const o=await st(t,n,e);await at(o)}catch(e){throw qe.logError("Error while dropping ticket conversations unreads. "+e),e}}},solutions:{getPopulars:async function(e){const{method:t,url:n}=ot.getPopulars(e);try{const e=await st(t,n);return await lt(e)}catch(e){throw qe.logError("Error while fetching popular solutions. "+e),e}},getTree:async function(e){const{method:t,url:n}=ot.getTree(e);try{const e=await st(t,n);return await lt(e)}catch(e){throw qe.logError("Error while fetching solutions tree. "+e),e}},search:async function(e,t){const{method:n,url:o}=ot.search(e,t);try{const e=await st(n,o);return await lt(e)}catch(e){throw qe.logError("Error while searching solutions. "+e),e}},get:async function(e,t){const{method:n,url:o}=ot.get(e,t);try{const e=await st(n,o);return await lt(e)}catch(t){throw qe.logError(`Error while fetching solution ${e}. `+t),t}}},businessHours:{get:async function(){const{method:e,url:t}=rt.get();try{const n=await st(e,t);return await lt(n)}catch(e){throw qe.logError("Error while fetching support business hours. "+e),e}}},freshdeskId:{get:async function(e){const{method:t,url:n}=it.get(e);try{const e=await st(t,n);return await lt(e)}catch(e){throw qe.logWarn("Error while fetching user Freshdesk ID. "+e),e}}}};(0,l.getLogger)("Support.BusinessHours");new Date;var ut=n(97737),dt=(n(26996),n(45345),n(26843),n(92595));function ht(e){const{children:t,...n}=e;return r.createElement("div",{className:dt.button},r.createElement(ut.AnchorButton,{...n,useFullWidth:!0},t))}function gt(e){const{children:t,align:n="left"}=e;return r.createElement("div",{className:H(dt.actions,"left"!==n&&dt["actions--align_"+n])},t)}n(45775);var pt=n(4881);function mt(e){const t=(0,u.t)("Thank you for your feedback!");return r.createElement(ce,null,t)}function ft(e){return r.createElement(r.Fragment,null)}function wt(e){const{onCloseDialog:t,...n}=(0,r.useContext)(h),o=(0,C.useHistory)(),i=(0,r.useCallback)(e=>{e.preventDefault(),o.push("/tickets/")},[o]),s=(0,r.useCallback)(e=>{e.preventDefault(),o.push("/")},[o]),a=(0,r.useCallback)(()=>{void 0!==t&&t(!0)},[t]);return r.createElement(h.Provider,{value:{...n,onCloseDialog:a}},r.createElement(Me,{className:pt["success-page"],ignoreHistory:!0,ignoreSearch:!0},r.createElement(ae,{className:pt["success-page-title"]},r.createElement(mt,null)),r.createElement(ft,null),r.createElement(gt,{align:"center"},r.createElement(ee.ProOnly,null,r.createElement(ht,{onClick:i,href:"/support/tickets/"},(0,u.t)("My support tickets"))),r.createElement(ht,{intent:"primary",appearance:"stroke",onClick:s,href:"/support/"},(0,u.t)("Help Center")))))}var vt=n(17681),_t=n(33811);function St(e){const t=u.t("Still need help? Open a support ticket and we'll get back to you shortly"),n=u.t("Share feedback"),o=(0,ee.useShowProFeature)()?t:n;return r.createElement(be,{className:_t.container},r.createElement(ye,{onClick:t=>{t.preventDefault(),window.runOrSignIn(()=>e.onClick(t),{source:"Send report from support dialog",
|
||||
paidAccountSuccessButtonText:u.t("Continue"),paidAccountCheck:!0})},href:"",innerClassName:_t.innerItem,className:_t.item},r.createElement(pe.Icon,{icon:vt,className:_t.icon}),o))}var bt=n(68335);const yt=/tradingview\.freshdesk\.com\/(.+?\/support\/)?solution(s)?\/articles\/(\d*)-/,Et=/tradingview\.com\/.*solution=(\d*)/;function kt(e,t){if(t(e))return e;const n=e.parentElement;return null!==n?kt(n,t):void 0}const Ct=e=>e instanceof HTMLAnchorElement&&Boolean(e.href),It=e=>e instanceof HTMLImageElement&&Boolean(e.src),xt=e=>e instanceof HTMLDivElement&&1===e.children.length&&"IMG"===e.children[0].tagName&&Boolean(e.children[0].src);function Nt(e){const{onSolutionLinkClick:t,onImageClick:n,children:o}=e,i=(0,r.useRef)(null),s=(0,r.useCallback)(e=>{const o=kt(e.target,Ct);const r=function(e){if(!e)return;const t=e.match(yt);if(null!==t)return parseInt(t[3],10);const n=e.match(Et);return null!==n?parseInt(n[1],10):void 0}(o?o.href:void 0);if(r)return e.preventDefault(),e.stopPropagation(),void t(r);if(o)return void(o.target="_blank");const i=function(e){return kt(e,It)}(e.target);if(i)return void n(i.src);const s=function(e){const t=kt(e,xt);return void 0!==t?t.children[0]:void 0}(e.target);s&&n(s.src)},[n,t]),a=(0,r.useCallback)(e=>{[13,32].includes((0,bt.hashFromEvent)(e))&&s(e)},[s]);return(0,r.useEffect)(()=>{const e=i.current;return null!==e&&(e.addEventListener("click",s),e.addEventListener("keydown",a)),()=>{null!==e&&(e.removeEventListener("click",s),e.removeEventListener("keydown",a))}},[s,a]),r.createElement("div",{ref:i},o)}var Pt=n(76974),Dt=n(37040);function At(e){const{children:t,containerRef:o}=e,i=(0,Pt.useIsMounted)();return(0,r.useEffect)(()=>{Promise.all([n.e(5971),n.e(2331),n.e(988)]).then(n.bind(n,70494)).then(e=>{i.current&&e.usePrismHighlightAllUnder((0,G.ensureNotNull)(o.current))})},[i.current]),r.createElement(r.Fragment,null,t(Dt["code-highlighter"]))}function Rt(e){e.parentElement&&"imgBorder"in e.parentElement.dataset&&(e.parentElement.tabIndex=0,e.parentElement.setAttribute("role","button"),e.parentElement.setAttribute("aria-label",(0,u.t)("Click to maximize")))}function Tt(e){const{children:t,containerRef:n}=e,[o,i]=r.useState(!1);return r.useEffect(()=>{const e=(0,G.ensureNotNull)(n.current).querySelectorAll("img");let t=!0;const o=(0,Ee.default)(()=>{if(t){for(let t=0;t<e.length;t++)(n=e[t]).style.width=Math.floor(n.naturalWidth/2)+"px",n.style.maxHeight=Math.floor(n.naturalHeight/2)+"px",Rt(e[t]);var n;i(!0)}},300);for(let t=0;t<e.length;t++){const n=e[t];if(n.complete)o();else{const e=()=>{o(),n.removeEventListener("load",e)};n.addEventListener("load",e)}}return()=>{t=!1}},[t]),r.createElement(r.Fragment,null,t(o))}var Ft=n(38780),Wt=n(65446),Mt=n(69786),Ot=n(58878);function Lt(e){const{solutionId:t,className:n}=e,[o,i]=r.useState(""),s=r.useRef(null);r.useEffect(()=>i(function(e){return`https://www.tradingview.com/?solution=${e}/`}(t)),[t]);const a=r.useCallback(()=>{null!==s.current&&(0,Ft.showOnElement)(s.current,{tooltipDelay:0,tooltipHideDelay:250,content:{type:"text",
|
||||
data:u.t("Copy link to solution")}})},[s.current]);return r.createElement("span",{className:Ot["wrapper-copy-link-button"]}," ",r.createElement("button",{type:"button",className:H(Ot["copy-link-button"],n),"aria-label":u.t("Copy link to solution"),"data-clipboard-text":o,ref:s,onMouseEnter:a,onMouseLeave:function(){(0,Ft.hide)()},onClick:function(e){(0,Wt.copyToClipboard)({text:o}),null!==s.current&&((0,Ft.showOnElement)(s.current,{tooltipDelay:0,tooltipHideDelay:250,content:{type:"text",data:u.t("Link copied")}}),setTimeout(()=>(0,Ft.hide)(),1500))}},r.createElement(pe.Icon,{icon:Mt,className:Ot.icon})))}class zt{}function Bt(e){Promise.all([n.e(9129),n.e(2888),n.e(4956),n.e(8367),n.e(1e3),n.e(4632)]).then(n.bind(n,93497)).then(t=>t.renderFullscreenImageDialog({imageSrc:e}))}var jt=n(11115);function Ht(e){const{children:t,containerRef:n}=e;return r.createElement(At,{containerRef:n},e=>r.createElement(Tt,{containerRef:n},n=>t(e,n)))}function $t(e){const{solutions:t,onSkipSolutions:n,onTrackSolution:i,onError:s}=e,a=(0,C.useHistory)(),l=parseInt((0,C.useParams)().solutionId,10),[c,p]=r.useState(t.getSolution(l)),m=r.useRef(null),f=ne(t,l),{context:w}=(0,r.useContext)(h),v=g(w,o.Portal),_=g(w,o.MobileApp),S=null!==c&&t.isReadySingleSolution(c),b=null!==c?t.getSolutionTitle(c.id):"",y=null!==c&&void 0!==c.description?c.description:"",E=r.useCallback(e=>{const n=t.getSolution(e),o=j(e.toString(10),null==n?void 0:n.title,null==n?void 0:n.lang);a.push(`/solutions/${o}/`)},[]),k=r.useCallback(()=>n("solution",l),[l]);return r.useEffect(()=>{v&&re(t,l);const{promise:e,cancel:n}=function(e){let t=!1;return{promise:new Promise((n,o)=>{e.then(e=>t?o(new zt):n(e)),e.catch(e=>o(t?new zt:e))}),cancel(){t=!0}}}(t.getFullSolution(l));return e.then(e=>{null===e?a.length>1?a.goBack():a.replace("/"):(p(e),i(e))}).catch(e=>{(function(e){return e instanceof zt})(e)||s(new d("Failed to load solution: "+e,u.t("Solution couldn’t be loaded. This may be due to a connection failure. Please try refreshing the page.")))}),()=>{n()}},[l]),r.createElement(Me,{breadcrumbs:f},r.createElement("div",{itemScope:!0,itemType:"https://schema.org/FAQPage"},r.createElement("div",{itemScope:!0,itemProp:"mainEntity",itemType:"https://schema.org/Question"},r.createElement(de,null,r.createElement("span",{itemProp:"name"},b),!v&&r.createElement(Lt,{solutionId:l,className:jt["copy-link-button"]})),S?r.createElement(r.Fragment,null,r.createElement(Nt,{onSolutionLinkClick:E,onImageClick:Bt},r.createElement(Ht,{containerRef:m},(e,t)=>r.createElement("div",{itemScope:!0,itemProp:"acceptedAnswer",itemType:"https://schema.org/Answer"},r.createElement("div",{itemProp:"text",className:H(jt.solution,e,!t&&jt["images-hidden"]),ref:m,dangerouslySetInnerHTML:{__html:y}})))),(!v||_)&&r.createElement(St,{onClick:k})):r.createElement("div",{className:jt.spinner},r.createElement(ve.Spinner,null)),!1)))}var Ut=n(81560);function Vt(e){const{entityId:t,parentEntityType:n,solutions:o,children:i,...s}=e,a=(0,r.useMemo)(()=>{var e
|
||||
;return n===k.Category&&o&&t?null===(e=o.getFolder(t))||void 0===e?void 0:e.solutions.length:void 0},[o,t]),l=void 0!==a?u.t("{solution_number} article",{plural:"{solution_number} articles",count:a}).format({solution_number:(null==a?void 0:a.toString())||"0"}):void 0;return r.createElement(ye,{...s},r.createElement("span",{className:Ut["item-title"]},i),l&&r.createElement("span",{className:Ut["solutions-count"]},l))}var Gt=n(21236);function Qt(e,t){const n=j(String(e.id),e.title,t);return N(e)?`/support/folders/${n}/`:P(e)?`/support/solutions/${n}/`:void 0}function Zt(e){const{solutions:t,onTrackSolutionsNode:n,onSkipSolutions:i}=e,{context:s}=(0,r.useContext)(h),a=g(s,o.Portal),l=g(s,o.MobileApp),c=(0,C.useHistory)(),u=(0,C.useParams)(),d=void 0!==u.folderId?parseInt(u.folderId,10):D[u.categoryName],p=ne(t,d),m=t.getEntity(d),f=function(e){if(null!==e)return x(e)?k.Category:N(e)?k.Folder:void 0}(m),w=function(e,t){const n=e.getCategoryFolders(t);return n.length>0?n:e.getFolderSolutions(t)}(t,d),v=null!==m?m.title:"",_=!t.isTreeExists()&&0===w.length,S=t.getLanguage(),b=r.useCallback(()=>i(f,d),[f,d]),y=r.useCallback(e=>{const t=Qt(e,S),n=null==t?void 0:t.replace("/support/","/");void 0!==n&&c.push(n)},[]);return r.useEffect(()=>{_||null!==m||(c.length>1?c.goBack():c.replace("/")),void 0!==f&&n(f,d),a&&re(t,d)},[d]),r.createElement(Me,{breadcrumbs:p},r.createElement(r.Fragment,null,r.createElement(de,null,v),_?r.createElement("div",{className:Gt.spinner},r.createElement(ve.Spinner,null)):r.createElement(be,null,w.map((e,n)=>r.createElement(Vt,{onClick:()=>y(e),key:n,href:Qt(e,S),entityId:e.id,parentEntityType:f,solutions:t},e.title))),(!a||l)&&r.createElement(St,{onClick:b})))}var Kt=n(71319);(0,u.t)("Whoa there, we need some time to check your first tickets before getting round to new ones. Please come back in a bit.");function qt(e){const{onError:t,onMouseUp:n,solutions:i,ticketData:s,onScrollToTop:a,blackfridaySolutionShown:l,cybermondaySolutionShown:c}=e,m=(0,C.useHistory)(),[w,v]=r.useState(i.getReadyPopularSolutions()),[_,S]=r.useState({mobileTradingData:!1}),[b,y]=r.useState(null),[k,x]=r.useState(!1),[N,P]=r.useState(),{context:D,rootElement:A}=r.useContext(h),T=g(D,o.Portal),W=(g(D,o.SSR),g(D,o.ChartPage)),[M,O]=r.useState();r.useMemo(()=>{},[]),r.useMemo(()=>{},[]),r.useMemo(()=>{},[]);r.useEffect(()=>{var e;!async function(){return void 0;try{const e=await i.getPopularSolutions();v(e)}catch(e){v([]),t(new d("Failed to load popular solutions: "+e,(0,u.t)("Popular solutions list couldn’t be loaded. This may be due to a connection failure. Please try refreshing the page.")))}}(),async function(){if(!W)return;const e=await(0,I.waitTradingService)();S({trading:e,brokers:e.brokersList()})}(),A&&y((e=A,"IntersectionObserver"in window?new IntersectionObserver(B,{root:e}):null)),m.listen(async()=>{if("/"===m.location.pathname&&T&&re(),"/tickets/open-ticket/"===m.location.pathname){const e=null==s?void 0:s.tradingDataPromise();void 0!==e&&(await e(),S({..._,brokers:null==s?void 0:s.getData().brokersList,
|
||||
activeBroker:null==s?void 0:s.getData().activeBroker,mobileTradingData:!0}))}void 0!==a&&a(),T&&A&&A.getBoundingClientRect().top<0&&A.scrollIntoView(),null!==document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()})},[]);const z=r.useCallback(e=>{0},[]),j=r.useCallback((e,t)=>{0},[]);return r.createElement(F,null,r.createElement(R.ResponsiveContainer,{className:Kt.wizard,onMouseUp:n,"data-name":"support-dialog",initialBreakPoint:T?"base":void 0},r.createElement(L.Provider,{value:b},r.createElement(C.Switch,null,r.createElement(C.Route,{path:"/solutions/:solutionId/"},r.createElement($t,{solutions:i,onSkipSolutions:H,onTrackSolution:z,onError:t})),r.createElement(C.Route,{path:"/folders/:folderId/"},r.createElement(Zt,{solutions:i,onTrackSolutionsNode:j,onSkipSolutions:H})),r.createElement(C.Route,{path:"/categories/:categoryName/"},r.createElement(Zt,{solutions:i,onTrackSolutionsNode:j,onSkipSolutions:H})),r.createElement(C.Route,{path:"/tickets/open-ticket/"},!1,r.createElement(oe,{to:"/"})),r.createElement(C.Route,{path:"/tickets/:ticketId/"},!1,r.createElement(oe,{to:"/"})),r.createElement(C.Route,{path:"/tickets/"},!1,r.createElement(oe,{to:"/"})),r.createElement(C.Route,{path:"/ticket-sent/"},r.createElement(wt,null)),r.createElement(C.Route,{path:"/shortcuts/"},!1),r.createElement(C.Route,{exact:!0,path:"/"},r.createElement(Qe,{solutions:i,solutionsLanguage:i.getLanguage(),popularSolutions:w,supportNotificationTools:M,blackfridaySolutionShown:l,cybermondaySolutionShown:c}))))));function H(e,t){const n=i.getEntity(t);if(null===n)return;const[o]=i.getPathToEntity(n);let r;switch(o.id){case E.Chart:r=p.Chart;break;case E.Trading:r=p.Trading;break;case E.Billing:case E.Blackfriday:r=f.Billing;break;case E.Data:r=f.Data;break;case E.Alerts:r=f.Alert;break;case E.Pine:r=f.PineScript;break;case E.Screener:r=f.Screener;break;case E.SocialNetwork:r=f.SocialNetwork;break;case E.Watchlist:r=f.Watchlist;break;case E.MobileApps:r=f.MobileApps;break;case E.Desktop:r=f.Desktop;break;case E.ProfileSettings:r=f.ProfileSettings;break;case E.Financials:r=f.Financials}P(t),m.push("/tickets/open-ticket/",{selectedIssueType:r})}}function Jt(e){const{initialState:t,solutionId:n,ticketId:o}=e;return void 0!==n?["/","/solutions/"+n]:void 0!==o?["/","/tickets/"+o]:"tickets"===t||"shortcuts"===t?["/","/"+t]:"open-ticket"===t?["/","/tickets/open-ticket"]:"trading-ticket"===t?["/",{pathname:"/tickets/open-ticket",state:{selectedIssueType:p.Trading}}]:void 0!==t&&(r=t,W.includes(r))?["/","/categories/"+t]:["/"];var r}function Yt(e){const t=Jt(e);return r.createElement(C.MemoryRouter,{initialEntries:t,initialIndex:t.length-1},r.createElement(qt,{...e}))}var Xt=n(93299);class en extends class{constructor(e){this._solutions={},this._ready=[],e&&this.initStaticPopularSolution(e)}initStaticPopularSolution(e){const t=this._preparePopularSolutions(e);this._ready=t.sort(this._popularSolutionsCompareFn)}getReady(){return this._ready}async getPopularSolutions(){return Promise.resolve(this._ready)}
|
||||
_preparePopularSolutions(e){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const o=e[n],r={id:Number(n),title:o.title,type:k.Solution,lang:o.lang,categoryId:o.categoryId,folderId:o.folderId,updatedAt:new Date(o.updatedAt),popular:!0};n in this._solutions?Object.assign(this._solutions[n],r):this._solutions[n]=r,t.push(this._solutions[n])}return t}_popularSolutionsCompareFn(e,t){return e.updatedAt&&t.updatedAt?new Date(e.updatedAt)<=new Date(t.updatedAt)?1:-1:0}}{constructor(){super(...arguments),this._lang=window.language?window.language:"en"}async getPopularSolutions(){const e=this.getReady();return e.length>0?e:(await this._initPopularSolutions(),this.getReady())}async _initPopularSolutions(){const e=await this._fetchPopularSolutions();this.initStaticPopularSolution(e)}async _fetchPopularSolutions(){return ct.solutions.getPopulars(this._lang)}}class tn{constructor(){this._lang=window.language?window.language:"en"}async search(e){const t=await this._fetchSearchSolutions(e);return this._prepareSearchSolutions(t)}_prepareSearchSolutions(e){return e.map(e=>({id:Number(e.solutionId),title:e.title,type:k.Solution,lang:e.lang,categoryId:e.categoryId,folderId:e.folderId}))}async _fetchSearchSolutions(e){return ct.solutions.search(this._lang,e)}}class nn extends class{constructor(e,t){var n;this._initPromise=Promise.resolve(),this._lang="en",this._categories={},this._folders={},this._solutions={},this._categoriesDisplayNames=A,this.getSolution=e=>e in this._solutions?this._solutions[e]:null,t&&(this._categoriesDisplayNames=(n=this._categoriesDisplayNames,{...n,[E.Blackfriday]:()=>u.t("Cyber Monday FAQ",{context:"support"})})),this._popularSolutions=e}async getPopularSolutions(){return await this._popularSolutions.getPopularSolutions(),this.getReadyPopularSolutions()}getReadyPopularSolutions(){const e=this._popularSolutions.getReady();return e.forEach(e=>this._markSolutionAsPopular(e)),e}getCategory(e){return e in this._categories?this._categories[e]:null}getFolder(e){return e in this._folders?this._folders[e]:null}getSolutionTitle(e){const t=this.getSolution(e);return t?t.title:""}getEntity(e){const t=this.getCategory(e);if(null!==t)return t;const n=this.getFolder(e);return null!==n?n:this.getSolution(e)}getCategories(){return Object.values(this._categories)}getCategoryFolders(e){const t=this.getCategory(e);return null!==t?t.folders:[]}getFolderSolutions(e){const t=this.getFolder(e);return null!==t?t.solutions:[]}isTreeExists(){return this._hasValues(this._categories)&&this._hasValues(this._folders)&&this._hasValues(this._solutions)}getPathToEntity(e){if(N(e)||P(e))return[...this.getPathToEntity(e.parent),e];if(e.type===k.Solution){const t=this.getSolution(e.id);if(null!==t)return[...this.getPathToEntity(t.parent),t]}return[e]}patchSolution(e){return Object.assign(e,this.getSolution(e.id))}isReadySingleSolution(e){return void 0!==e.description}_markSolutionAsPopular(e){const t=this.getSolution(e.id);null!==t&&(this._solutions[e.id]={...t,popular:!0})}_updateSolution(e,t){const n={...e,description:t.description}
|
||||
;return this._solutions[e.id]=n,n}_prepareCategories(e){for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];if("string"==typeof n||!(Number(t)in E))continue;const o={id:Number(t),title:this._categoriesDisplayNames[Number(t)]()||n.name,type:k.Category,folders:[]};o.folders=this._prepareFolders(n.folders,o),this._categories[t]=o}return[]}_hasValues(e){return Object.values(e).length>0}_prepareSolutions(e,t){const n=[];for(const o in e)if(e.hasOwnProperty(o)){const r=e[o],i={id:Number(o),title:r.title,type:k.Solution,lang:r.lang,parent:t,folderId:t.id,categoryId:t.parent.id,position:r.position};o in this._solutions?Object.assign(this._solutions[o],i):this._solutions[o]=i,n.push(i)}return n.sort((e,t)=>void 0===e.position||void 0===t.position?0:e.position>t.position?1:-1)}_prepareFolders(e,t){const n=[];for(const o in e)if(e.hasOwnProperty(o)){const r={id:Number(o),title:e[o].name,type:k.Folder,position:e[o].position,solutions:[],parent:t};r.solutions=this._prepareSolutions(e[o].solutions,r),n.push(r),this._folders[o]=r}return n.sort((e,t)=>void 0===e.position||void 0===t.position?0:e.position>t.position?1:-1)}}{constructor(e,t,n){var o;if(super(new en(t),function(){const e=window.user.available_offers[Xt.OFFERS.cyber_monday];return Boolean(null==e?void 0:e.show_solution)}()),this.getFullSolution=async e=>{var t;await this._initPromise;const n=this.getSolution(e);return null===n?null:this.isReadySingleSolution(n)?n:async function(e,t){return ct.solutions.get(e,t)}(Number(e),null!==(t=n.lang)&&void 0!==t?t:this._lang).then(e=>this._updateSolution(n,e))},this._lang=null!==(o=window.language)&&void 0!==o?o:"en",void 0!==e?this._prepareCategories(e):this._initPromise=async function(e){return ct.solutions.getTree(e)}(this._lang).then(e=>{this._prepareCategories(e)}),n){const e=this.getSolution(n.solutionId);null!==e&&this._updateSolution(e,n)}}getLanguage(){return this._lang}sendTicket(e){return ct.tickets.send(e)}}var on=n(67337),rn=n(15369),sn=n.n(rn),an=n(60540),ln=n(84015),cn=n(49483),un=n(46433);const dn=(0,l.getLogger)("Support.TicketData");class hn{constructor(e={}){this._options=e,this.reset()}destroy(){delete this._data,delete this._browserInfo,delete this._dialogElement}reset(){this._data={event:"support_ticket"},this._browserInfo=new(sn())}setOptions(e){this._options={...this._options,...e}}getData(){return this._data}addData(e){Object.assign(this._data,e)}setDialogElement(e){this._dialogElement=e}async getFinalData(){void 0!==this._beforeCollectingFinalData&&await this._beforeCollectingFinalData();const e=this._options.disableAutoCollection?this.getData():await this._collectData();return function(e){return void 0!==e.event&&void 0!==e.userId||void 0!==e.email}(e)?e:(dn.logError("Not enough data collected. `event` and one of (`userId`, `email`) fields required."),null)}onBeforeCollectingFinalData(e){this._beforeCollectingFinalData=e}tradingDataPromise(){return this._tradingDataPromise}onTradingData(e){this._tradingDataPromise=e}static setChartWidgetCollection(e){hn._chartWidgetCollection=e}
|
||||
static getChartWidgetCollection(){return hn._chartWidgetCollection}static setScreener(e){hn._screener=e}static getScreener(){return hn._screener}_collectData(){const e=Promise.all([this._getChartSnapshot(),this._getTradingLogs(),this._getScreenerParams(),this._getPageSnapshot(),this._getLogHistory(),this._getDesktopReports()]).then(e=>{this.addData(this._filterEmptyFields({snapshotURL:e[0],trading:e[1],screener:e[2],pageSnapshotURL:e[3],log:e[4],desktopReports:e[5]}))}).then(()=>this._data);return this.addData(this._filterEmptyFields({browserInfo:this._getBrowserInfo(),ping:this._getPingInfo(),user:this._getUser(),userId:this._getUserId(),pro_plan:this._getProPlan(),websocketAddress:this._getWebSocketAddress(),sessionid:this._getSessionId(),ref:this._getReferrer(),js_errors:this._getJsErrors(),product:this._getProductId(),symbolSessionId:this._getSymbolSessionId(),dividendsAdjustment:this._getDividendsAdjustment(),backAdjustment:this._getBackAdjustment(),settlementAsClose:this._getSettlementAsClose(),chartSessionDisconnects:this._getChartSessionDisconnects(),marketStatuses:this._getChartMarketStatuses(),seriesStatuses:this._getChartSeriesStatuses(),is_pro:this._getUserIsPro(),subscription_state:this._getSubscriptionState(),proOffers:this._getProOffers(),timezone:this._getTimezone(),performanceMetrics:this._getPerformanceMetrics(),serverInfo:this._getServerInfo(),serverTimeOffset:this._getServerTimeOffset(),settings:this._getUserSettings(),domNodesCount:this._getDomNodesCount(),buildTime:this._getBuildTime(),plugins:this._getPlugins(),locale:this._getLocale()})),e}_getBrowserInfo(){return this._browserInfo.state()}_getChartSnapshot(){return new Promise(async e=>{const t=hn.getChartWidgetCollection();if(void 0===t)return dn.logWarn("Abort generating snapshot. No chartWidgetCollection found."),void e(null);const n=on.enabled("snapshot_trading_drawings");try{on.enable("snapshot_trading_drawings"),await(0,an.takeChartSnapshot)(t,t=>{const n=on.enabled("charting_library_base")?"https://www.tradingview.com/x/"+t:`${location.protocol}//${location.host}/x/${t}`;e(n)},()=>{dn.logError("Failed to take chart snapshot."),e(null)},{showHeaderMainSymbol:!0})}catch(t){return dn.logError("Error while taking chart snapshot: "+t.message),void e(null)}finally{n?on.enable("snapshot_trading_drawings"):on.disable("snapshot_trading_drawings")}})}_getTradingLogs(){return new Promise(e=>{if(!this._data.tradingLogsAgree)return dn.logWarn("Abort collecting trading logs. User did not agree to send trading logs."),void e(null);const t=(0,I.tradingService)();if(!t)return dn.logWarn("Abort collecting trading logs. No trading object found."),void e(null);const n=t.activeBroker();if(null===n||!n.bugReportInfo||1!==n.connectionStatus())return dn.logWarn("Abort collecting trading logs because of connection or abscence of info collection method."),void e(null);n.bugReportInfo().then(t=>e(JSON.stringify(t))).catch(t=>(dn.logError("Error while collecting activeBroker info: "+t.message),e(null)))})}_getScreenerParams(){return new Promise(e=>{
|
||||
const t=hn.getScreener();if(void 0===t)return dn.logWarn("Abort collecting screener params. No screener found."),void e(null);e(t.getCurrentState())})}_getProductId(){return(0,ln.isOnMobileAppPage)("old")?"ios":(0,ln.isOnMobileAppPage)("new")?"android":(0,cn.isDesktopApp)()?"desktop":on.enabled("charting_library_base")?"charting_library":"tv"}_getSymbolSessionId(){const e=hn.getChartWidgetCollection();if(!e)return dn.logWarn("Abort getting sessionId property value. No chartWidgetCollection found."),null;let t;try{t=e.activeChartWidget.value().model().mainSeries().properties().childs().sessionId.value()}catch(e){return dn.logError("Error while getting sessionId property value: "+e.message),null}return"string"==typeof t?t:null}_getDividendsAdjustment(){const e=hn.getChartWidgetCollection();if(!e)return dn.logWarn("Abort getting dividendsAdjustment property value. No chartWidgetCollection found."),null;let t;try{t=e.activeChartWidget.value().model().mainSeries().properties().childs().dividendsAdjustment.value()}catch(e){return dn.logError("Error while getting dividendsAdjustment property value: "+e.message),null}return"boolean"==typeof t?t:null}_getBackAdjustment(){const e=hn.getChartWidgetCollection();if(!e)return dn.logWarn("Abort getting backAdjustment property value. No chartWidgetCollection found."),null;let t;try{t=e.activeChartWidget.value().model().mainSeries().properties().childs().backAdjustment.value()}catch(e){return dn.logError("Error while getting backAdjustment property value: "+(null==e?void 0:e.message)),null}return"boolean"==typeof t?t:null}_getSettlementAsClose(){const e=hn.getChartWidgetCollection();if(!e)return dn.logWarn("Abort getting settlementAsClose property value. No chartWidgetCollection found."),null;let t;try{t=e.activeChartWidget.value().model().mainSeries().properties().childs().settlementAsClose.value()}catch(e){return dn.logError("Error while getting settlementAsClose property value: "+(null==e?void 0:e.message)),null}return"boolean"==typeof t?t:null}_getChartSessionDisconnects(){return window.ChartApiInstance?window.ChartApiInstance.disconnectCount():(dn.logWarn("Abort getting chart session disconnects count. No ChartApiInstance found."),null)}_getChartMarketStatuses(){const e=hn.getChartWidgetCollection();return e?e.chartMarketStatuses():(dn.logWarn("Abort getting market statuses. No chartWidgetCollection found."),[])}_getChartSeriesStatuses(){const e=hn.getChartWidgetCollection();return e?e.chartSeriesStatuses():(dn.logWarn("Abort getting series statuses. No chartWidgetCollection found."),[])}_getUserIsPro(){return Boolean(window.user&&window.user.is_pro)}_getSubscriptionState(){return window.pro&&window.pro.isPaidPro()?v.IsPro:window.user.had_pro?v.ExPro:void 0}_getProOffers(){return window.pro&&window.pro.offers&&window.pro.offers()||[]}_getTimezone(){const e=hn.getChartWidgetCollection();if(!e)return dn.logWarn("Abort getting timezone. No chartWidgetCollection found."),null;let t=null;try{t=e.activeChartWidget.value().model().model().properties().childs().timezone.value()
|
||||
}catch(e){dn.logError("Error while getting timezone: "+e.message)}return t}_getPerformanceMetrics(){return null}_sortLogs(e,t){return e.timestamp-t.timestamp}async _getLogHistory(){let e;try{0,e=(0,l.getRawLogHistory)().sort(this._sortLogs).map(l.serializeLogHistoryEntry).join("\n").slice(-8e6)}catch(t){dn.logWarn("Error while collecting log history: "+t.message),e=JSON.stringify({error:"logger.getLogHistory(maxLen) failed: "+t.message,stack:t.stack})}return e}async _getDesktopReports(){return window.TVD&&window.TVD.getReports?window.TVD.getReports():null}_getPingInfo(){if(!window.ChartApiInstance)return dn.logWarn("Abort getting chart session disconnects count. No ChartApiInstance found."),[];const e=window.ChartApiInstance.getPingInfo();return null!==e?[e.min,e.max,e.avg]:[]}_getUserId(){return window.user&&window.user.id?window.user.id:null}_getUser(){return window.user&&window.user.username||"Guest"}_getProPlan(){return null}_getWebSocketAddress(){return window.WSBackendConnection?window.WSBackendConnection.getHost():(dn.logWarn("Abort getting websocket address. No WSBackendConnection found."),null)}_getSessionId(){return window.ChartApiInstance?window.ChartApiInstance.sessionid:(dn.logWarn("Abort getting websocket address. No ChartApiInstance found."),null)}_getReferrer(){return location.href}_getJsErrors(){return window.__tv_js_errors.slice(0,10)}_filterEmptyFields(e){const t={};for(const n in e)if(e.hasOwnProperty(n)){const o=e[n];null!=o&&(!Array.isArray(o)||o.length>0)&&(t[n]=o)}return t}_getServerInfo(){const e=document.querySelector('meta[name="tv:server-name"]');return null!==e?e.getAttribute("content"):null}_getServerTimeOffset(){return window.ChartApiInstance?String(Math.round(window.ChartApiInstance.serverTimeOffset()))+"s":(dn.logWarn("Abort getting server time offset. No ChartApiInstance found."),null)}_getUserSettings(){return null}_getDomNodesCount(){return document.querySelectorAll("*").length}async _getPageSnapshot(){return null}_getBuildTime(){return window.BUILD_TIME}_getPlugins(){return void 0!==navigator.plugins?Array.from(navigator.plugins).map(e=>({name:e.name,filename:e.filename,description:e.description})):[]}_getLocale(){var e,t;return null!==(t=null===(e=(0,un.getFreshInitData)().currentLocaleInfo)||void 0===e?void 0:e.flag)&&void 0!==t?t:null}}const gn=(0,l.getLogger)("Support.Dialog");let pn=null;class mn{constructor(e={}){if(this._solutions=new nn,this._solutionsSearch=new tn,this._ticketData=new hn,this.destroy=()=>{void 0!==this._dialog&&this._dialog.destroy()},this._onDialogDestroy=()=>{window.loginStateChange.unsubscribe(this,this._handleLoginStateChange),this._unmountWizard(),this._ticketData.destroy(),delete this._dialog,delete this._options,delete this._savedDialogWidth,pn=null},this._beforeOpenDialog=e=>{this._fetchSavedDialogWidth(),this._options.beforeOpen?this._options.beforeOpen(e):e()},this._afterOpenDialog=()=>{this._setInitialDialogWidth(),this._options.afterOpen&&this._options.afterOpen(),void 0!==this._dialog&&(this._ticketData.setDialogElement(this._dialog.el),
|
||||
this._renderWizard(this._dialog))},this._fetchSavedDialogWidth=()=>{let e;try{e=s.getInt("support.dialog.width")}catch(e){return}this._savedDialogWidth=e},this._setInitialDialogWidth=()=>{const e=this._savedDialogWidth;(0,ie.trackEvent)("Support","support dialog width",e?String(Math.floor(e/100)):"default"),void 0===this._dialog||a.mobiletouch||this._dialog.el.classList.contains("dialog-media__tablet")||void 0!==e||(this._dialog.el.style.width="50%")},this._handleError=e=>{void 0!==e&&(gn.logError(e.message),void 0!==this._dialog&&"SupportWizardError"===e.name&&e.showToUser&&this._dialog.error(e.userFriendlyMessage))},this._handleCloseDialog=e=>{this.close(),e&&this.destroy()},this._handleScrollToTop=()=>{void 0!==this._dialog&&(this._dialog.$content.get(0).scrollTop=0)},this._handleFocusDialog=()=>{var e;null===(e=this._dialog)||void 0===e||e.toTop()},this._renderWizard=e=>{const t=o.Dialog|o.ChartPage|((0,ln.isOnMobileAppPage)("any")?o.MobileApp:0)|((0,cn.isDesktopApp)()?o.Desktop:0)|(window.location.pathname.match("screener")?o.ScreenerPage:0);i.render(r.createElement(h.Provider,{value:{context:t,onCloseDialog:this._handleCloseDialog,solutionsSearch:this._solutionsSearch,blogUrl:window.BLOG_LOCALIZED_URL,rootElement:e.$content.get(0)}},r.createElement(Yt,{onError:this._handleError,onMouseUp:this._handleFocusDialog,onScrollToTop:this._handleScrollToTop,initialState:this._options.initialState,solutionId:this._options.solutionId,ticketId:this._options.ticketId,solutions:this._solutions,ticketData:this._ticketData,blackfridaySolutionShown:this._blackfridaySolutionShown(),cybermondaySolutionShown:this._cybermondaySolutionShown()})),e.$content.get(0))},this._blackfridaySolutionShown=()=>{var e;const t=window.user.available_offers[Xt.OFFERS.black_friday];return null!==(e=null==t?void 0:t.show_solution)&&void 0!==e&&e},this._cybermondaySolutionShown=()=>{var e;const t=window.user.available_offers[Xt.OFFERS.cyber_monday];return null!==(e=null==t?void 0:t.show_solution)&&void 0!==e&&e},this._unmountWizard=()=>{void 0!==this._dialog&&i.unmountComponentAtNode(this._dialog.$content.get(0))},this._handleLoginStateChange=()=>{window.is_authenticated?void 0!==this._dialog&&this._renderWizard(this._dialog):(this.close(),this.destroy())},null!==pn)return void 0!==pn._dialog&&(e.initialState&&(pn._options.initialState=e.initialState,pn._options.solutionId=void 0,pn._options.ticketId=void 0,pn._unmountWizard(),pn._renderWizard(pn._dialog)),void 0!==e.solutionId?(pn._options.solutionId=e.solutionId,pn._unmountWizard(),pn._renderWizard(pn._dialog),pn._dialog.toTop()):void 0!==e.ticketId&&(pn._options.ticketId=e.ticketId,pn._unmountWizard(),pn._renderWizard(pn._dialog))),pn;pn=this,this._options=e,this._dialog=(0,c.createFullscreenDialog)({...this._options,titleTemplate:"",closeButton:!1,closeOnEsc:!0,destroyOnClose:!1,minimizeButton:!1,horizontalResize:!0,horizontalResizeSettingsKey:"support.dialog.width",content:this._renderWizard,beforeOpen:this._beforeOpenDialog,afterOpen:this._afterOpenDialog,onDestroy:this._onDialogDestroy}),
|
||||
window.loginStateChange.subscribe(this,this._handleLoginStateChange)}open(){void 0!==this._dialog&&this._dialog.open()}close(){void 0!==this._dialog&&this._dialog.close()}}},44518:(e,t,n)=>{"use strict";n.d(t,{useShowProFeature:()=>r,ProOnly:()=>i});var o=n(59496);function r(){return!1}function i(e){return o.createElement(o.Fragment,null,null)}},15369:(e,t,n)=>{"use strict";var o,r,i,s=n(23127),a=n(77034);function l(){return o||(this instanceof l?void(o=this):new l)}l.prototype.browser=function(){return r||(r=a.name+" "+a.version),r},l.prototype.setBrowser=function(e){"string"==typeof e&&e&&(r=e)},l.prototype.os=function(){if(!i){var e=Object.keys(a);i=["mac","windows","windowsphone","linux","chromeos","android","ios","blackberry","firefoxos","webos","bada","tizen","sailfish"].filter((function(t){return e.includes(t)}))[0]}return i},l.prototype.setOS=function(e){"string"==typeof e&&e&&(i=e)},l.prototype.cookieEnabled=function(){return navigator.cookieEnabled},l.prototype.viewportSize=function(){return s(window).width()+" x "+s(window).height()},l.prototype.screenSize=function(){return window.screen&&(screen.width||screen.availWidth)+" x "+(screen.height||screen.availHeight)||"unknown"},l.prototype.colorDepth=function(){return window.screen&&screen.colorDepth||"unknown"},l.prototype.pixelRatio=function(){return window.devicePixelRatio||0},l.prototype.wsTestResult=function(){return"Pending"},l.prototype.state=function(){return{os:this.os(),browser:this.browser(),cookieEnabled:this.cookieEnabled(),viewportSize:this.viewportSize(),screenSize:this.screenSize(),colorDepth:this.colorDepth(),pixelRatio:this.pixelRatio()}},e.exports=l},46433:(e,t,n)=>{"use strict";n.d(t,{updateInitData:()=>s,getInitData:()=>a,getFreshInitData:()=>l});var o=n(88537);const r=(0,n(98125).getLogger)("Common.InitData"),i=window.initData||{};function s(){window.initData&&window.initData!==i&&(Object.assign(i,window.initData),window.initData=i);const e=document.querySelectorAll('script[type="application/prs.init-data+json"]');for(let t=0;t<e.length;t++){const n=e[t];try{const e=JSON.parse((0,o.ensureNotNull)(n.textContent));Object.assign(i,e)}catch(e){r.logWarn("Failed to parse initData element. "+e)}finally{(0,o.ensureNotNull)(n.parentNode).removeChild(n)}}}function a(){return i}function l(){return s(),i}},12565:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="currentColor"><path d="m.58 1.42.82-.82 15 15-.82.82z"/><path d="m.58 15.58 15-15 .82.82-15 15z"/></svg>'},69786:e=>{
|
||||
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><g fill="currentColor"><path fill-rule="nonzero" d="M15.039 5.969l-.019-.019-2.828 2.828.707.707 2.474-2.474c1.367-1.367 3.582-1.367 4.949 0s1.367 3.582 0 4.949l-2.474 2.474.707.707 2.828-2.828-.019-.019c1.415-1.767 1.304-4.352-.334-5.99-1.638-1.638-4.224-1.749-5.99-.334zM5.97 15.038l-.019-.019 2.828-2.828.707.707-2.475 2.475c-1.367 1.367-1.367 3.582 0 4.949s3.582 1.367 4.949 0l2.474-2.474.707.707-2.828 2.828-.019-.019c-1.767 1.415-4.352 1.304-5.99-.334-1.638-1.638-1.749-4.224-.334-5.99z"/><path d="M10.485 16.141l5.656-5.656.707.707-5.656 5.656z"/></g></svg>'},27016:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 9" width="6" height="9"><path fill="none" stroke="currentColor" d="M1 1l3.5 3.5L1 8"/></svg>'},17681:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 16A7 7 0 1 0 9 2a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 9 1a8 8 0 0 0 0 16zm-1-4a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7 7a2 2 0 1 1 4 0c0 .38-.11.6-.26.77a2.38 2.38 0 0 1-.84.53c-.26.13-.58.29-.83.5A1.5 1.5 0 0 0 8.5 10v.5h1V10c0-.2.07-.32.21-.44a3.18 3.18 0 0 1 .76-.43c.32-.15.7-.36 1-.7.33-.35.53-.81.53-1.43a3 3 0 1 0-6 0h1z"/></svg>'},59835:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="2"><path d="M7 2a5 5 0 0 0-5 5v18a5 5 0 0 0 5 5h18a5 5 0 0 0 5-5V7a5 5 0 0 0-5-5H7z"/><path stroke-linecap="square" d="M7 20l6-6 6 4 6-6"/></g></svg>'},73242:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 4.5H5.5a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V10M10 4.5h3.5m0 0V8m0-3.5l-5 5"/></svg>'},48652:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><defs/><path stroke="currentColor" d="M12.399 12.5a7 7 0 10-9.798-10 7 7 0 009.798 10zm0 0l5.101 5"/></svg>'},53802:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-width="2" d="M10.5 16.651l-8.49 4.84A2 2 0 0 0 1 23.227v1.747a1.028 1.028 0 0 0 1.538.894L10.5 21.33l7.962 4.538A1.028 1.028 0 0 0 20 24.975v-1.747a2 2 0 0 0-1.01-1.738l-8.49-4.839zm11-1.302l8.49-4.838A2 2 0 0 0 31 8.773V7.026a1.028 1.028 0 0 0-1.537-.894L21.5 10.67l-7.963-4.538A1.028 1.028 0 0 0 12 7.026v1.747a2 2 0 0 0 1.01 1.738l8.49 4.838z"/></svg>'}}]);
|
||||
Reference in New Issue
Block a user