Release v23.044 (from fd133747)

This commit is contained in:
jenkins
2023-02-02 13:31:14 +00:00
parent d6f0df64d2
commit a1183587d0
731 changed files with 2618 additions and 1297 deletions

View File

@@ -0,0 +1,2 @@
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[4278],{56744:(e,t,n)=>{e.exports=n.p+"8fdaa57f804bba3dc62f43d8ee0e76ce.svg"},61424:(e,t,n)=>{e.exports=n.p+"8d4be41f3f5d5923bc7574128be4cbe4.svg"},5553:e=>{e.exports={toast:"toast-x9aer5B8","intent-success":"intent-success-x9aer5B8","intent-warning":"intent-warning-x9aer5B8","intent-danger":"intent-danger-x9aer5B8",image:"image-x9aer5B8","main-content":"main-content-x9aer5B8",title:"title-x9aer5B8","main-text":"main-text-x9aer5B8","secondary-text":"secondary-text-x9aer5B8",actions:"actions-x9aer5B8","close-icon":"close-icon-x9aer5B8","close-button":"close-button-x9aer5B8","adjust-for-close-button":"adjust-for-close-button-x9aer5B8"}},42122:e=>{e.exports={"trial-notification":"trial-notification-f8oxI7Em"}},22032:(e,t,n)=>{"use strict";n.d(t,{Toast:()=>w});var a,r=n(59496),o=n(97754);!function(e){e.Default="default",e.Success="success",e.Warning="warning",e.Danger="danger"}(a||(a={}));var c=n(9745),s=n(95781),i=n(5553),l=n.n(i);const u=r.forwardRef((e,t)=>{const{className:n,onClick:a,tabIndex:i}=e;return r.createElement("button",{type:"button",className:o(l()["close-button"],n),tabIndex:i,onClick:a,ref:t},r.createElement(c.Icon,{icon:s,className:l()["close-icon"]}))});function d(e){const{children:t,role:n,className:c,intent:s=a.Default}=e,i=o(l().toast,s!==a.Default&&l()["intent-"+s],c);return r.createElement("article",{className:i,role:n},t)}function f(e){const{children:t}=e;return r.createElement("div",{className:l().image},t)}function m(e){const{children:t,className:n}=e;return r.createElement("h2",{className:o(l().title,n)},t)}function g(e){const{children:t,className:n}=e;return r.createElement("p",{className:o(l()["main-text"],n)},t)}function h(e){const{children:t}=e;return r.createElement("div",{className:l().actions},t)}function x(e){const{children:t}=e;return r.createElement("p",{className:l()["secondary-text"]},t)}const w=r.memo(e=>{const{title:t,text:n,secondaryText:a,image:c,actions:s,intent:i,role:w="status",showCloseButton:p=!1,onClose:y,onAutoFocus:E,className:b}=e,v=r.useRef(null),N=p&&!c?l()["adjust-for-close-button"]:void 0,k=!p||c||t?void 0:l()["adjust-for-close-button"];return r.useEffect(()=>{"alert"===w&&(void 0!==E?E():null!==v.current&&v.current.focus())},[]),r.createElement(d,{intent:i,role:w,className:b},p&&r.createElement(u,{ref:v,onClick:y}),c&&r.createElement(f,null,c),r.createElement("div",{className:o(l()["main-content"],p&&l()["with-close-button"])},t&&r.createElement(m,{className:N},t),n&&r.createElement(g,{className:k},n),s&&r.createElement(h,null,s),a&&r.createElement(x,null,a)))})},43159:(e,t,n)=>{"use strict";n.r(t),n.d(t,{TrialNotification:()=>p,showTrialNotification:()=>y});var a=n(59496),r=n(28353),o=(n(94419),n(22032)),c=n(97737),s=n(77975),i=n(45345),l=n(26843),u=n(11203),d=n(76266),f=n(82531),m=n(91955),g=n(61424),h=n(56744),x=n(42122);function w(e){return e.openDialog?a.createElement(c.Button,{size:"s",onClick:function(){window.runOrSignIn(async()=>{var e
;await(null===(e=window.pro)||void 0===e?void 0:e.updateShopConf()),(0,u.showGoProOrderDialog)({source:"start_trial_notification",feature:"start_free_trial"})},{source:"start_trial_notification",feature:"start_free_trial",startTrial:!0}),e.onClick()}},e.children):a.createElement(c.AnchorButton,{href:"/gopro/?source=start_trial_notification&feature=start_free_trial",target:"_blank",size:"s",onClick:e.onClick},e.children)}function p(e){const{onRemove:t,source:n,userPlan:c}=e,u="unlock_the_full_power",m=(0,s.useWatchedValueReadonly)({watchedValue:i.watchedTheme}),p=a.createElement("img",{src:m===l.StdTheme.Dark?h:g,role:"presentation"}),y=(0,f.getTrialLength)(),b=r.t("Try any plan free for {days} day. We'll help you trade and invest better from the get-go.",{plural:"Try any plan free for {days} days. We'll help you trade and invest better from the get-go.",context:"free_trial",count:y}).format({days:y.toString()}),v=r.t("{days}-day free trial",{plural:"{days}-day free trial",context:"free_trial",count:y}).format({days:y.toString()}),N=(0,d.isFeatureEnabled)("braintree-gopro-in-order-dialog")&&!window.TVD;return a.useEffect(()=>{E("show",u,n,c)},[]),a.createElement(o.Toast,{className:x["trial-notification"],title:r.t("Unlock the full power of TradingView"),text:b,image:p,actions:a.createElement(w,{onClick:()=>{t(),E("click",u,n,c)},openDialog:N},v),onClose:()=>{t(),E("close",u,n,c)},showCloseButton:!0})}function y(e,t,n){return e.showCustomToast({render:e=>a.createElement(p,{source:t,onRemove:async()=>{n(),e.onRemove()},suggestedLayout:e.suggestedLayout})})}async function E(e,t,n,a){const r=null!=a?a:window.is_authenticated?"free":"visitor",o=await(0,m.getTracker)();o&&o.trackToastDialog("trial",e,t,n,r)}}}]);