(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`${t}`}function h(t){return`$${(0,o.round2)(t)} ${u}`}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