Fixes tradingview/charting_library#60 Fixes tradingview/charting_library#65 Fixes tradingview/charting_library#70 Fixes tradingview/charting_library#71 Fixes tradingview/charting_library#75 Fixes tradingview/charting_library#76 Fixes tradingview/charting_library#78 Fixes tradingview/charting_library#79 Fixes tradingview/charting_library#81 Fixes tradingview/charting_library#82 Fixes tradingview/charting_library#84 Fixes tradingview/charting_library#86 Fixes tradingview/charting_library#89 Fixes tradingview/charting_library#90 Fixes tradingview/charting_library#91 Fixes tradingview/charting_library#92 Fixes tradingview/charting_library#94 Fixes tradingview/charting_library#99 Fixes tradingview/charting_library#100 Fixes tradingview/charting_library#101 Fixes tradingview/charting_library#102 Fixes tradingview/charting_library#103 Fixes tradingview/charting_library#1995 Fixes tradingview/charting_library#5726 Fixes tradingview/charting_library#6025 Fixes tradingview/charting_library#6406 Fixes tradingview/charting_library#6636 Fixes tradingview/charting_library#6767 Fixes tradingview/charting_library#6775 Fixes tradingview/charting_library#6783 Fixes tradingview/charting_library#6864 Fixes tradingview/charting_library#6926 Fixes tradingview/charting_library#7060 Fixes tradingview/charting_library#7169 Fixes tradingview/charting_library#7307
4 lines
12 KiB
JavaScript
4 lines
12 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8890],{59142:function(e,t){var n,o,l;o=[t],n=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(e,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var o={get passive(){n=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var l="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),a=[],r=!1,i=-1,s=void 0,c=void 0,u=function(e){return a.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},d=function(e){var t=e||window.event;return!!u(t.target)||1<t.touches.length||(t.preventDefault&&t.preventDefault(),!1)},m=function(){setTimeout((function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==s&&(document.body.style.overflow=s,s=void 0)}))};e.disableBodyScroll=function(e,o){if(l){if(!e)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(e&&!a.some((function(t){return t.targetElement===e}))){var m={targetElement:e,options:o||{}};a=[].concat(t(a),[m]),e.ontouchstart=function(e){1===e.targetTouches.length&&(i=e.targetTouches[0].clientY)},e.ontouchmove=function(t){var n,o,l,a;1===t.targetTouches.length&&(o=e,a=(n=t).targetTouches[0].clientY-i,!u(n.target)&&(o&&0===o.scrollTop&&0<a||(l=o)&&l.scrollHeight-l.scrollTop<=l.clientHeight&&a<0?d(n):n.stopPropagation()))},r||(document.addEventListener("touchmove",d,n?{passive:!1}:void 0),r=!0)}}else{v=o,setTimeout((function(){if(void 0===c){var e=!!v&&!0===v.reserveScrollBarGap,t=window.innerWidth-document.documentElement.clientWidth;e&&0<t&&(c=document.body.style.paddingRight,document.body.style.paddingRight=t+"px")}void 0===s&&(s=document.body.style.overflow,document.body.style.overflow="hidden")}));var f={targetElement:e,options:o||{}};a=[].concat(t(a),[f])}var v},e.clearAllBodyScrollLocks=function(){l?(a.forEach((function(e){e.targetElement.ontouchstart=null,e.targetElement.ontouchmove=null})),r&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),r=!1),a=[],i=-1):(m(),a=[])},e.enableBodyScroll=function(e){if(l){if(!e)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");e.ontouchstart=null,e.ontouchmove=null,a=a.filter((function(t){return t.targetElement!==e})),r&&0===a.length&&(document.removeEventListener("touchmove",d,n?{passive:!1}:void 0),r=!1)}else 1===a.length&&a[0].targetElement===e?(m(),a=[]):a=a.filter((function(t){return t.targetElement!==e}))}},void 0===(l="function"==typeof n?n.apply(t,o):n)||(e.exports=l)},56433:e=>{e.exports={actionButton:"actionButton-NwOkSfvs",small:"small-NwOkSfvs",hiddenTitle:"hiddenTitle-NwOkSfvs"}},60365:e=>{e.exports={label:"label-veVJ4P41"}},6730:e=>{e.exports={
|
||
popupDialog:"popupDialog-MQCwyEL_",wrap:"wrap-MQCwyEL_",main:"main-MQCwyEL_",small:"small-MQCwyEL_",title:"title-MQCwyEL_",content:"content-MQCwyEL_",html:"html-MQCwyEL_",footer:"footer-MQCwyEL_",close:"close-MQCwyEL_",marginWithoutCloseButton:"marginWithoutCloseButton-MQCwyEL_"}},76974:(e,t,n)=>{"use strict";n.d(t,{useIsMounted:()=>l});var o=n(50959);const l=()=>{const e=(0,o.useRef)(!1);return(0,o.useEffect)((()=>(e.current=!0,()=>{e.current=!1})),[]),e}},70493:(e,t,n)=>{"use strict";n.r(t),n.d(t,{confirmModule:()=>D,renameModule:()=>I,showSimpleDialog:()=>P,warningModule:()=>R});var o=n(50959),l=n(44352),a=n(97754),r=n(9745),i=n(76422),s=n(63016),c=n(68335),u=n(90692),d=n(52092),m=n(24437),f=n(86656),v=n(94720),h=n(26996),p=n(50151),g=n(76974),C=n(50655);const E=o.createContext({isSmallTablet:!1,dialogCloseHandler:()=>{}});var w=n(56433);function _(e){const{disabled:t,name:n,title:l,appearance:r,intent:i,handler:s,reference:c}=e,{isSmallTablet:u,dialogCloseHandler:d}=(0,o.useContext)(E),m=(0,p.ensureNotNull)((0,o.useContext)(C.SlotContext)),f=(0,g.useIsMounted)(),[_,y]=(0,o.useState)(!1);return o.createElement(v.Button,{disabled:t,reference:c,className:a(w.actionButton,u&&w.small),name:n,size:u?"l":void 0,appearance:r,intent:i,onClick:function(){if(_)return;const e=s({dialogClose:d,innerManager:m});e&&(y(!0),e.then((()=>{f.current&&y(!1)})))}},o.createElement("span",{className:a(_&&w.hiddenTitle)},l),_&&o.createElement(h.Loader,{color:"white"}))}var y=n(7720),N=n(6730);function S(e){const{title:t,onClose:n,actions:l,dataName:v,popupDialogClassName:h,contentClassName:p,wrapperClassName:g,backdrop:C,closeOnOutsideClick:w=!0,showCloseButton:S=!0,closeOnEscapePress:b=!0}=e;(0,o.useEffect)((()=>(i.subscribe(d.CLOSE_POPUPS_AND_DIALOGS_COMMAND,n,null),()=>{i.unsubscribe(d.CLOSE_POPUPS_AND_DIALOGS_COMMAND,n,null)})),[n]);const[M,O]=(0,o.useState)(!0),L=(0,o.useRef)(null);return o.createElement(u.MatchMedia,{rule:m.DialogBreakpoints.TabletSmall},(i=>o.createElement(E.Provider,{value:{isSmallTablet:i,dialogCloseHandler:n}},o.createElement(s.PopupDialog,{className:a(N.popupDialog,h),isOpened:M,backdrop:C,onClickBackdrop:k,onClickOutside:w?k:void 0,onKeyDown:T,autofocus:!0,fixedBody:!0},o.createElement("div",{className:a(N.wrap,g),"data-name":v},o.createElement("div",{className:a(N.main,!S&&N.marginWithoutCloseButton,i&&N.small)},t&&o.createElement("div",{className:a(N.title,i&&N.small)},t),function(t){if("html"in e)return o.createElement(f.TouchScrollContainer,{className:a(N.content,t&&N.small,N.html,p),dangerouslySetInnerHTML:{__html:e.html}});if("content"in e)return o.createElement(f.TouchScrollContainer,{className:a(N.content,t&&N.small,p)},e.content);return null}(i),l&&l.length>0&&o.createElement("div",{className:a(N.footer,i&&N.small)},l.map(((e,t)=>o.createElement(_,{...e,key:e.name,reference:0===t?L:void 0}))))),S&&o.createElement(r.Icon,{className:a(N.close,i&&N.small),icon:y,onClick:k,"data-name":"close","data-role":"button"}))))));function T(e){switch((0,c.hashFromEvent)(e)){case 27:M&&b&&(e.preventDefault(),n())
|
||
;break;case 13:if(M&&l&&l.length){e.preventDefault();const t=L.current;t&&t.click()}}}function k(){O(!1),n()}}function b(e){return"html"in e?{html:e.html}:{content:e.text}}var M=n(21788),O=n(60365);function L(e){const{maxLength:t,value:n,placeholder:l,onValueChange:a,nameInputRef:r,source:i=[],autocompleteFilter:s}=e,{isSmallTablet:c}=(0,o.useContext)(E),u=o.useRef(null);return(0,o.useLayoutEffect)((()=>{u.current&&u.current.select()}),[]),o.createElement(o.Fragment,null,function(){if("content"in e)return o.createElement("div",{className:O.label},e.content);if("html"in e)return o.createElement("div",{className:O.label,dangerouslySetInnerHTML:{__html:e.html}});return null}(),o.createElement(M.Autocomplete,{maxLength:t,value:n,onChange:function(e){a(e)},allowUserDefinedValues:!0,preventOnFocusOpen:!0,noEmptyText:!0,source:i,preventSearchOnEmptyQuery:!0,filter:s,setupHTMLInput:function(e){u.current=e,r&&(r.current=e)},size:c?"large":void 0,placeholder:l,suggestionsInPortal:!0}))}function T(e){return Boolean(e.trim())}function k(e){const{buttonText:t,intentButton:o,actions:a}=e,r=[{name:"ok",title:t||l.t(null,void 0,n(68988)),intent:o,handler:({dialogClose:e})=>{e()}}];return a&&a.forEach((e=>r.push(e))),r}var B=n(962);const x=new(n(51826).DialogsOpenerManager);const D=function(e){const{title:t,onClose:a=(()=>{}),mainButtonText:r,mainButtonIntent:i,cancelButtonText:s,closeOnOutsideClick:c,onConfirm:u,onCancel:d}=e,m=b(e);return o.createElement(S,{...m,title:t||l.t(null,void 0,n(94443)),onClose:a,actions:[{name:"yes",title:r||l.t(null,void 0,n(79831)),intent:i||"success",handler:u},{name:"no",title:s||l.t(null,void 0,n(6255)),appearance:"stroke",intent:"default",handler:e=>{d?d(e):e.dialogClose()}}],dataName:"confirm-dialog",closeOnOutsideClick:c})},I=function(e){const{title:t,maxLength:a,initValue:r,placeholder:i,onClose:s=(()=>{}),mainButtonText:c,mainButtonIntent:u,cancelButtonText:d,validator:m=T,onRename:f,source:v,autocompleteFilter:h}=e,p=(0,o.useRef)(null),[g,C]=(0,o.useState)(r||""),[E,w]=(0,o.useState)((()=>m(g))),_=b(e);return o.createElement(S,{title:t||l.t(null,void 0,n(35038)),content:o.createElement(L,{..._,nameInputRef:p,maxLength:a,placeholder:i,value:g,onValueChange:function(e){C(e),w(m(e))},source:v,autocompleteFilter:h}),onClose:s,actions:[{disabled:!E,name:"save",title:c||l.t(null,void 0,n(85520)),intent:u||"primary",handler:({dialogClose:e,innerManager:t})=>f({newValue:g,focusInput:y,dialogClose:e,innerManager:t})},{name:"cancel",title:d||l.t(null,void 0,n(20036)),appearance:"stroke",intent:"default",handler:({dialogClose:e})=>{e()}}],dataName:"rename-dialog"});function y(){p.current&&p.current.focus()}},R=function(e){const{title:t,closeOnOutsideClick:a,onClose:r=(()=>{})}=e,i=b(e);return o.createElement(S,{...i,title:t||l.t(null,void 0,n(33603)),onClose:r,actions:k(e),dataName:"warning-dialog",closeOnOutsideClick:a})},P=function(e,t,n){const{title:l}=e,a=`${l}_${"text"in e?e.text:e.html}`;if(x.isOpened(a))return(0,p.ensureDefined)(x.getDialogPayload(a)).closeHandler
|
||
;const r=document.createElement("div"),i=()=>{var t;null===(t=e.onClose)||void 0===t||t.call(e),B.unmountComponentAtNode(r),x.setAsClosed(a)};return B.render(o.createElement(C.SlotContext.Provider,{value:n||null},o.createElement(t,{...e,onClose:i})),r),x.setAsOpened(a,{closeHandler:i}),i}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>o,dialogsOpenerManager:()=>l});class o{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const l=new o},86656:(e,t,n)=>{"use strict";n.d(t,{TouchScrollContainer:()=>i});var o=n(50959),l=n(59142),a=n(50151),r=n(49483);const i=(0,o.forwardRef)(((e,t)=>{const{children:n,...a}=e,i=(0,o.useRef)(null);return(0,o.useImperativeHandle)(t,(()=>i.current)),(0,o.useLayoutEffect)((()=>{if(r.CheckMobile.iOS())return null!==i.current&&(0,l.disableBodyScroll)(i.current,{allowTouchMove:s(i)}),()=>{null!==i.current&&(0,l.enableBodyScroll)(i.current)}}),[]),o.createElement("div",{ref:i,...a},n)}));function s(e){return t=>{const n=(0,a.ensureNotNull)(e.current),o=document.activeElement;return!n.contains(t)||null!==o&&n.contains(o)&&o.contains(t)}}},94443:e=>{e.exports={ar:["تأكيد"],ca_ES:["Confirmació"],cs:["Potvrzení"],de:["Bestätigung"],el:["Επιβεβαίωση"],en:"Confirmation",es:["Confirmación"],fa:["تاییدیه"],fr:"Confirmation",he_IL:["אישור"],hu_HU:["Megerősítés"],id_ID:["Konfirmasi"],it:["Conferma"],ja:["確認"],ko:["확인"],ms_MY:["Pengesahan"],nl_NL:["Bevestig"],pl:["Potwierdzenie"],pt:["Confirmação"],ro:"Confirmation",ru:["Подтвердите действие"],sv:["Bekräftelse"],th:["การยืนยัน"],tr:["Onaylama"],vi:["Xác nhận"],zh:["确认"],zh_TW:["確認"]}},6255:e=>{e.exports={ar:["لا"],ca_ES:"No",cs:["Ne"],de:["Nein"],el:"No",en:"No",es:"No",fa:"No",fr:["Non"],he_IL:["לא"],hu_HU:["Nem"],id_ID:["Tidak"],it:"No",ja:["いいえ"],ko:["아니오"],ms_MY:["Tidak"],nl_NL:"No",pl:["Nie"],pt:["Não"],ro:"No",ru:["Нет"],sv:["Nej"],th:["ไม่"],tr:["Hayır"],vi:["Không"],zh:["否"],zh_TW:["否"]}},35038:e=>{e.exports={ar:["تغيير الأسم"],ca_ES:["Reanomenar"],cs:"Rename",de:["Umbenennen"],el:"Rename",en:"Rename",es:["Renombrar."],fa:"Rename",fr:["Renommer"],he_IL:["שנה שם"],hu_HU:["Átnevezés"],id_ID:["Mengganti Nama"],it:["Rinomina"],ja:["名前の変更"],ko:["이름 바꾸기"],ms_MY:["Namakan semula"],nl_NL:"Rename",pl:["Zmień nazwę"],pt:["Renomear"],ro:"Rename",ru:["Переименовать"],sv:["Döp om"],th:["เปลี่ยนชื่อ"],tr:["Yeni Ad Ver"],vi:["Đổi tên"],zh:["重命名"],zh_TW:["重新命名"]}},79831:e=>{e.exports={ar:["نعم"],ca_ES:["Sí"],cs:["Ano"],de:["Ja"],el:"Yes",en:"Yes",es:["Sí"],fa:"Yes",fr:["Oui"],he_IL:["כן"],hu_HU:["Igen"],id_ID:["Ya"],it:["Sì"],ja:["はい"],ko:["예"],ms_MY:["Ya"],nl_NL:"Yes",pl:["Tak"],pt:["Sim"],ro:"Yes",ru:["Да"],sv:["Ja"],th:["ใช่"],tr:["Evet"],vi:["Có"],zh:["是"],zh_TW:["是"]}}}]); |