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,4 @@
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8132],{86473:t=>{t.exports={errorDialog:"errorDialog-0R3aCXZS"}},43024:t=>{t.exports={"tv-free-trial":"tv-free-trial-q2JdOW0b","tv-free-trial__total":"tv-free-trial__total-q2JdOW0b","tv-free-trial__total-separator":"tv-free-trial__total-separator-q2JdOW0b","tv-free-trial__total-today":"tv-free-trial__total-today-q2JdOW0b","tv-free-trial__total-after-trial":"tv-free-trial__total-after-trial-q2JdOW0b","tv-free-trial__total-today-description-container":"tv-free-trial__total-today-description-container-q2JdOW0b","tv-free-trial__total-after-trial-description-container":"tv-free-trial__total-after-trial-description-container-q2JdOW0b","tv-free-trial__total-today-price":"tv-free-trial__total-today-price-q2JdOW0b","tv-free-trial__total-after-trial-price":"tv-free-trial__total-after-trial-price-q2JdOW0b","tv-free-trial__total-today-price-year":"tv-free-trial__total-today-price-year-q2JdOW0b","tv-free-trial__total-after-trial-price-year":"tv-free-trial__total-after-trial-price-year-q2JdOW0b","tv-free-trial__total-today-price-year--crossed":"tv-free-trial__total-today-price-year--crossed-q2JdOW0b","tv-free-trial__total-after-trial-price-year--crossed":"tv-free-trial__total-after-trial-price-year--crossed-q2JdOW0b","tv-free-trial__total-today-title":"tv-free-trial__total-today-title-q2JdOW0b","tv-free-trial__total-after-trial-title":"tv-free-trial__total-after-trial-title-q2JdOW0b","tv-free-trial__total-today-description":"tv-free-trial__total-today-description-q2JdOW0b","tv-free-trial__total-after-trial-description":"tv-free-trial__total-after-trial-description-q2JdOW0b","tv-free-trial__footer-info":"tv-free-trial__footer-info-q2JdOW0b","tv-free-trial__footer-info-block":"tv-free-trial__footer-info-block-q2JdOW0b"}},76712:t=>{t.exports={"tv-start-free-trial-bt":"tv-start-free-trial-bt-8jVavR5U","tv-start-free-trial-bt__section":"tv-start-free-trial-bt__section-8jVavR5U","tv-start-free-trial-bt__title":"tv-start-free-trial-bt__title-8jVavR5U","tv-start-free-trial-bt__card-container":"tv-start-free-trial-bt__card-container-8jVavR5U","tv-start-free-trial-bt__footer-container":"tv-start-free-trial-bt__footer-container-8jVavR5U",paymentMethodSpinnerContainer:"paymentMethodSpinnerContainer-8jVavR5U"}},9078:(t,e,a)=>{"use strict";a.d(e,{showErrorDialog:()=>o});var r=a(28353),i=a(86473);function l(t){const{title:e,content:a,actions:l,btnTitle:o,btnType:n,help:s}=t;return{title:e||(0,r.t)("Error"),help:s,content:a,addClass:i.errorDialog,destroyOnClose:!0,width:500,dataset:{"dialog-type":"error-dialog"},actions:l||[{key:[13,32],method:"close",name:"ok",text:o||(0,r.t)("OK"),type:n||"primary"}]}}function o(t){(async function(t){return(await Promise.all([a.e(509),a.e(3118),a.e(1729),a.e(6708),a.e(1536),a.e(7678),a.e(4834)]).then(a.bind(a,89725))).createDialog({...l(t),type:"modal"})})(t).then(t=>t.open())}},27468:(t,e,a)=>{"use strict";a.d(e,{formatPrice:()=>h,getTemplate:()=>C});var r=a(55532),i=a(28353),l=a(78540),o=a(53402),n=a(82531),s=a(43024)
;const c=i.t("Your card will be charged {cost} on {billing_date}."),d=i.t("The bank will hold {cost} today to verify the card."),f=i.t("You can cancel auto-renewal"),_=i.t("You can cancel your trial & auto-renewal BEFORE {billing_date} and you will not be charged at all."),v=i.t("Payable today"),y=i.t("Free trial"),p=i.t("Payable on {billing_date}"),b=i.t("{plan} plan ({billingCycle}){point}"),u=i.t("US");function g(t){return`<span class="i-no-break">${t}</span>`}function h(t){return`<span class="i-no-break">$${(0,o.round2)(t)} ${u}</span>`}function m(t){return{[l.BillingCycle.Monthly]:i.t("monthly"),[l.BillingCycle.OneYear]:i.t("1 year"),[l.BillingCycle.ThreeMonths]:i.t("3 months"),[l.BillingCycle.TwoYears]:i.t("2 years")}[t]||""}function C(t){const{productData:e,billingCycle:a,isChangeTrial:u,expirationDateTs:C,setChangePriceCallback:T,className:$}=t,w=a===l.BillingCycle.OneYear,k=(0,n.getTrialLength)();let O;O=C?r.unix(+C):r().add(k,"days"),O=O.add(1,"days"),O=O.format("LL"),T&&T(t=>{const{total:r,full_monthly_price:i}=t,l=parseFloat(r.toString())-parseFloat(r.toString())+parseFloat(i?i.toString():"0"),n=document.body.querySelectorAll(".js-trial-dialog-footer");Array.from(n).forEach(r=>{const i=r.querySelector(".js-footer-billing-text");if(i){i.innerHTML="";const e=`\n\t\t\t\t\t\t${c.format({billing_date:g(O),cost:h(t.total)})}\n\t\t\t\t\t\t${d.format({cost:h(1)})}\n\t\t\t\t\t`;i.insertAdjacentHTML("afterbegin",e)}const n=r.querySelector(".js-footer-billing-price");n&&(n.innerHTML="",n.insertAdjacentHTML("afterbegin",h(t.total)));const s=r.querySelector(".js-footer-billing-crossed");s&&(s.textContent=l.toString());const f=r.querySelector(".js-footer-total-after-trial-description");f&&(f.textContent=b.format({plan:(0,o.humanizeProPlan)(e.text_id),billingCycle:m(a),point:""}))})});const S=_.format({billing_date:g(O)}),q=i.t("Free trial ({days} day)",{plural:"Free trial ({days} days)",context:"free_trial",count:k});return`\n\t\t<div class="${s["tv-free-trial"]} js-trial-dialog-footer ${$||""}">\n\t\t\t<div class="${s["tv-free-trial__total"]}">\n\t\t\t\t<div class="${s["tv-free-trial__total-today"]}">\n\t\t\t\t\t<div class="${s["tv-free-trial__total-today-description-container"]}">\n\t\t\t\t\t\t<div class="${s["tv-free-trial__total-today-title"]}">${v}</div>\n\t\t\t\t\t\t<div class="${s["tv-free-trial__total-today-description"]}">\n\t\t\t\t\t\t\t${u?y:q.format({days:k.toString()})}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s["tv-free-trial__total-today-price"]}">${h(0)}</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="${s["tv-free-trial__total-separator"]}"></div>\n\t\t\t\t<div class="${s["tv-free-trial__total-after-trial"]}">\n\t\t\t\t\t<div class="${s["tv-free-trial__total-after-trial-description-container"]}">\n\t\t\t\t\t\t<div class="${s["tv-free-trial__total-after-trial-title"]}">\n\t\t\t\t\t\t\t${p.format({billing_date:g(O)})}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="${s["tv-free-trial__total-after-trial-description"]} js-footer-total-after-trial-description">${b.format({plan:(0,
o.humanizeProPlan)(e.text_id),billingCycle:m(a),point:""})}</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="${s["tv-free-trial__total-after-trial-price"]}">\n\t\t\t\t\t\t${!w||u?"":`\n\t\t\t\t\t\t\t<span class="${s["tv-free-trial__total-after-trial-price-year"]}">\n\t\t\t\t\t\t\t\t$<span class="${s["tv-free-trial__total-after-trial-price-year--crossed"]} js-footer-billing-crossed"></span> ${i.t("US")}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t`}\n\t\t\t\t\t\t<span class="js-footer-billing-price"></span>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="${s["tv-free-trial__footer-info"]}">\n\t\t\t\t<div class="${s["tv-free-trial__footer-info-block"]}">\n\t\t\t\t\t<h3>${f}</h3>\n\t\t\t\t\t<p class="js-footer-billing-text"></p>\n\t\t\t\t</div>\n\n\t\t\t\t<div class="${s["tv-free-trial__footer-info-block"]}">\n\t\t\t\t\t<h3>${f}</h3>\n\t\t\t\t\t<p class="js-footer-auto-renewal">${S}</p>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t`}},79290:(t,e,a)=>{"use strict";a.r(e),a.d(e,{showStartFreeTrialDialog:()=>m});a(94419);var r=a(28353),i=a(9078),l=a(59496),o=a(87995),n=a(31946);var s=a(60679),c=a(57762),d=a(78540),f=a(53402),_=a(49483),v=a(76266),y=a(27468),p=a(12107);let b=null;class u{constructor(){return this._dialogs={},b||(b=this,b)}add(t,e){this._dialogs[t]={onClose:e}}remove(t){delete this._dialogs[t]}close(t){const e=this._dialogs[t];e&&(e.onClose(),this.remove(t))}}var g=a(82531),h=a(76712);async function m(t){const{createDialog:e}=await Promise.all([a.e(509),a.e(3118),a.e(1729),a.e(6708),a.e(1536),a.e(7678),a.e(9725)]).then(a.bind(a,89725)),d=window.pro,{startTrial:v,billingCycle:y}=t;d.findProduct(v).then(t=>{var a,d;const b=new u,m=(0,g.getTrialLength)(),T=r.t("Start free {days}-day {trial_plan_name}",{plural:"Start free {days}-day {trial_plan_name}",context:"free_trial",count:m}),$=e({type:"modal",width:768,closeOnEsc:!1,destroyOnClose:!0,closeOnOutsideClick:!1,fixBodyState:!_.CheckMobile.any(),title:T.format({days:m.toString(),trial_plan_name:(0,f.humanizeProPlan)(v,!0)}),titleTemplate:`<h2 class="${h["tv-start-free-trial-bt__title"]}">{{{ title }}}</h2>`,content:"<div>",addClass:h["tv-start-free-trial-bt"],contentWrapTemplate:`<div class="${h["tv-start-free-trial-bt__section"]} tv-dialog__section--no-border">`});b.add("braintree-trial-dialog",$.close.bind($)),b.close("tv-coins-dialog");const w=$.$content.get(0),k=document.createElement("div");k.classList.add(h["tv-start-free-trial-bt__card-container"]),w.appendChild(k),function(t){const{container:e,...a}=t;o.render(l.createElement(n.PaymentMethod,{...a}),e)}({onPurchase:s.onStartTrial,container:k,products:[v],billingCycle:y,onError:t=>(0,i.showErrorDialog)({title:r.t("Error"),content:t.message}),hideTotalPrice:!0,onSuccess:function(){setTimeout(()=>{window.location.href="/chart"},5e3)},purchaseButtonText:r.t("Start {days}-day free trial",{plural:"Start {days}-day free trial",context:"free_trial",count:m}).format({days:m.toString()}),termsText:C(y,t),spinnerContainerClassName:h.paymentMethodSpinnerContainer,
hideTryAgainButtonCodes:["trial_not_available"],successText:r.t("We'll automatically redirect you to the chart in just a few seconds"),successTitle:r.t("Success!"),excludedTabs:[c.PaymentTab.Coinbase],price:{totalCostWithTax:null!==(d=null===(a=null===window||void 0===window?void 0:window.pro)||void 0===a?void 0:a.getProduct(v).cost)&&void 0!==d?d:0}}),$.on("afterClose",()=>{(0,p.trackTrialAction)(v,y,"close","braintree"),b.remove("braintree-trial-dialog")}),$.open(),(0,p.trackTrialAction)(v,y,"show","braintree")})}function C(t,e){const a=window.pro,i=r.t("I have read and agreed with the {policiesLinkTag}Terms of Use{linkCloseTag} and {pivacyPolicyLinkTag}Privacy Policy{linkCloseTag}"),l=r.t("I authorize TradingView to charge me automatically every year until I cancel my subscription."),o=r.t("I authorize TradingView to charge me automatically every month until I cancel my subscription."),n=r.t("If the auto renewal fails for an annual plan I will automatically be switched to a monthly plan for {cost} per month."),s=r.t("I acknowledge that refunds are NOT available for monthly payments.");let c;const f=i.format({policiesLinkTag:'<a class="link" target="_blank" tabindex="-1" href="/policies/">',pivacyPolicyLinkTag:'<a class="link" target="_blank" tabindex="-1" href="/privacy-policy/">',linkCloseTag:"</a>"});return t===d.BillingCycle.OneYear?(c=l,(0,v.isFeatureEnabled)("switching_trial_year_to_month_disabled")||(c+=" "+n.format({cost:(0,y.formatPrice)(a.getCost(e,d.BillingCycle.Monthly))})),c+=" "+f):c=`${o}<br>${s} ${f}`,c}}}]);