Files
ai/charting_library/bundles/last-chance-banner.0210ab3cfb4e94797db1.js
2023-02-02 13:31:14 +00:00

1 line
2.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1611],{33492:e=>{e.exports={banner:"banner-EZ3DKk2H","countdown-section":"countdown-section-EZ3DKk2H","main-section":"main-section-EZ3DKk2H",title:"title-EZ3DKk2H","main-text":"main-text-EZ3DKk2H",image:"image-EZ3DKk2H"}},66359:(e,t,n)=>{"use strict";n.r(t),n.d(t,{renderLastChanceBanner:()=>p});var o=n(59496),a=n(87995),r=n(28353),i=n(77975),s=n(45345),c=n(26843),u=n(56299),l=n(27591),m=n(24136),d=n(93299);function f(e){const{expiration:t,maxDiscount:n="",lastChanceType:a}=e,f=(0,i.useWatchedValueReadonly)({watchedValue:s.watchedTheme})===c.StdTheme.Light?l:m,p=r.t("Explore special offers"),h=n.toString();let w=r.t("Wait, don't go"),b=r.t("Get up to {discount}% off a new plan if you decide to renew with us before your current one ends.").format({discount:h});switch(a){case d.LastChanceType.TwoDays:w=r.t("Time's running out!"),b=r.t("Your subscription expires soon claim your special offer and save up to {discount}% before it's too late.").format({discount:h});break;case d.LastChanceType.Hours:w=r.t("The countdown has started."),b=r.t("Your subscription isn't set to auto-renew, so you'll lose your benefits very soon... This is your last chance to claim up to {discount}% discount.").format({discount:h})}return o.createElement(u.OfferBanner,{expiration:t,title:w,mainTitle:b,buttonProps:{href:"/gopro/?source=profile&feature=last_chance_banner"},buttonText:p,imgSrc:f})}function p(e,t){a.render(o.createElement(f,{...t}),e)}},56299:(e,t,n)=>{"use strict";n.d(t,{OfferBanner:()=>u});var o=n(59496),a=n(28353),r=n(53746),i=n(82760),s=n(5437),c=n(33492);function u(e){const{expiration:t,title:n,mainTitle:u,buttonProps:l,buttonText:m=a.t("Learn more"),imgSrc:d}=e;return o.createElement("article",{className:c.banner},o.createElement("section",{className:c["main-section"]},o.createElement("h2",{className:c.title},n),o.createElement("p",{className:c["main-text"]},u),o.createElement(s.RoundAnchorButton,{className:c["cta-button"],...l},m)),o.createElement("section",{className:c["countdown-section"]},o.createElement("img",{src:d,className:c.image,role:"presentation"}),o.createElement(r.OfferCountdown,{theme:i.CountdownTheme.Profile,expiration:t,size:"m"})))}}}]);