Files
ai/charting_library/bundles/early-bird-dialog.b9daeb69416b2c6d8d50.js
2023-02-02 13:31:14 +00:00

3 lines
7.1 KiB
JavaScript

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8435],{73611:(e,t,a)=>{e.exports=a.p+"4f7347b954545a7137c5b906707789e6.svg"},39392:(e,t,a)=>{e.exports=a.p+"1e193459d0a9e9fc9ef95beffa15de1c.svg"},91636:(e,t,a)=>{e.exports=a.p+"a2f98c60137c8c2eb3d3fb96c7767876.svg"},32877:(e,t,a)=>{e.exports=a.p+"b9ef74d4cc68a3ee92fc345b70753629.svg"},27744:(e,t,a)=>{e.exports=a.p+"ec773b52c3fc4ccd7a5a86a577674e84.svg"},43517:(e,t,a)=>{e.exports=a.p+"6fcde21723892d962edac0d9998528d0.svg"},34265:(e,t,a)=>{e.exports=a.p+"75af36c37801a630adf29c84bcb12855.svg"},88001:(e,t,a)=>{e.exports=a.p+"3aedcdb787ab2003b4f84578eabe8839.svg"},39017:(e,t,a)=>{e.exports=a.p+"4bd2362d901778b20ccc963f023833f6.svg"},8992:(e,t,a)=>{e.exports=a.p+"559bbd43de542185b04c719bc152c540.svg"},80213:e=>{e.exports={dialog:"dialog-xvLVYmhd",container:"container-xvLVYmhd",header:"header-xvLVYmhd",image:"image-xvLVYmhd",title:"title-xvLVYmhd","main-content":"main-content-xvLVYmhd",paragraph:"paragraph-xvLVYmhd",list:"list-xvLVYmhd","paragraph--bold":"paragraph--bold-xvLVYmhd","list--bold":"list--bold-xvLVYmhd","list-item":"list-item-xvLVYmhd",strong:"strong-xvLVYmhd",actions:"actions-xvLVYmhd","button-content":"button-content-xvLVYmhd",button:"button-xvLVYmhd",countDown:"countDown-xvLVYmhd",closeButton:"closeButton-xvLVYmhd"}},38409:(e,t,a)=>{"use strict";a.r(t),a.d(t,{EarlyBirdDialog:()=>Y,renderEarlyBirdDialog:()=>P});var n=a(59496),o=a(87995),l=a(28353),c=a(5437),i=a(3767),r=a(90692),s=a(67844),m=a(37005),d=a(77975),u=a(45345),h=a(26843),p=(a(94419),a(53746)),f=a(82760),g=a(98020),x=a(93299);var v=a(39392),b=a(73611),y=a(32877),E=a(91636),w=a(43517),N=a(27744),T=a(88001),D=a(34265),S=a(8992),B=a(39017),C=a(80213),L=a(97754);const k={7:e=>({imageSrc:{[h.StdTheme.Light]:v,[h.StdTheme.Dark]:b},title:(0,l.t)("Need a discount?"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("You have access to a new member special offer: buy any annual plan right now and get up to {discount}% off. Plus, keep all of your unused trial days.").format({discount:(e.maxDiscount||"").toString()})),n.createElement("p",{className:C.paragraph},(0,l.t)("This is one of our best deals and we hope you take advantage of it."))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Explore deals")}),14:e=>({imageSrc:{[h.StdTheme.Light]:y,[h.StdTheme.Dark]:E},title:(0,l.t)("Tools that help you succeed"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("Make sure to try every Premium tool including:")),n.createElement("ul",{className:C.list},n.createElement("li",{className:C["list-item"]},(0,l.t)("Real-time alerts")),n.createElement("li",{className:C["list-item"]},(0,l.t)("Volume Profile indicators")),n.createElement("li",{className:C["list-item"]},(0,l.t)("Multiple chart layouts")),n.createElement("li",{className:C["list-item"]},(0,l.t)("Second-based intervals")),n.createElement("li",{className:C["list-item"]},(0,l.t)("And much more…"))),n.createElement("p",{className:C.paragraph
},(0,l.t)("Don't forget, if you buy an annual plan today you're eligible for up to {discount}% off.").format({discount:(e.maxDiscount||"").toString()}))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Get {discount}% off").format({discount:(e.maxDiscount||"").toString()})}),21:e=>({imageSrc:{[h.StdTheme.Light]:S,[h.StdTheme.Dark]:B},title:(0,l.t)("You still have time"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("Buy an annual plan today and get up to {discount}% off Pro, Pro+, and Premium.").format({discount:(e.maxDiscount||"").toString()}))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Let's do this")}),28:e=>{return{imageSrc:{[h.StdTheme.Light]:w,[h.StdTheme.Dark]:N},title:(0,l.t)("The countdown begins"),mainContent:n.createElement(n.Fragment,null,n.createElement("p",{className:C.paragraph},(0,l.t)("If you don't act soon, you'll miss out on our exclusive Early Bird deal. We know how important it is to have a platform you can trust, at the best cost and with the most tools — so explore our discounts now before time's up. Once they're gone, they're gone.")),n.createElement("div",{className:C.countDown},n.createElement(p.OfferCountdown,{theme:f.CountdownTheme.Profile,expiration:null===(a=null===(t=window.user.available_offers)||void 0===t?void 0:t[x.OFFERS.early_access])||void 0===a?void 0:a.expire_on,size:"m"}))),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Get {discount}% off now").format({discount:(e.maxDiscount||"").toString()})};var t,a},30:e=>{const t=(0,l.t)("Your trial ends today. It's also your last chance to {link_start}claim up to {discount}% off{link_end} an annual plan. Want this? Just click the button below. Don't want to continue with us? Please go to your billing settings and cancel your trial, otherwise you'll be charged our full normal price.").split(/\{\w+\}/),a=`${t[1]} ${(e.maxDiscount||"").toString()}${t[2]}`;return{imageSrc:{[h.StdTheme.Light]:T,[h.StdTheme.Dark]:D},title:(0,l.t)("Today's the day"),mainContent:n.createElement(n.Fragment,null,n.createElement("span",{className:C.paragraph},t[0],n.createElement("span",{className:L(C.paragraph,C["paragraph--bold"])},a),t[3])),cancelBtnText:(0,l.t)("Decline offer"),yesBtnText:(0,l.t)("Claim offer")}}};var V=a(86240);function Y(e){const{content:t,actionHref:a,onActionClick:o,onClose:p}=e,{title:f,mainContent:g,cancelBtnText:x,yesBtnText:v,imageSrc:b,showCloseBtn:y}=t,E=(0,d.useWatchedValueReadonly)({watchedValue:u.watchedTheme})||h.StdTheme.Light;return(0,m.useFixedBody)(),n.createElement(r.MatchMedia,{rule:V["media-mf-phone-landscape"]},e=>n.createElement(i.Modal,{isOpened:!0,fullscreen:!e,rounded:e,width:720,className:C.dialog},n.createElement("div",{className:C.container},y&&n.createElement(s.CloseButton,{className:C.closeButton,onClick:p,"aria-label":l.t("Close",{context:"input"}),size:"m"}),n.createElement("div",null,n.createElement("div",{className:C.header},b&&b[E]&&n.createElement("img",{src:b[E],className:C.image}),n.createElement("h2",{
className:C.title},f)),n.createElement("div",{className:C["main-content"]},g)),n.createElement("div",{className:C["button-content"]},n.createElement("div",{className:C.actions},!y&&n.createElement(c.RoundButton,{className:C.button,color:"red",variant:"ghost",onClick:p},x),n.createElement(c.RoundAnchorButton,{href:a,target:"_blank",className:C.button,onClick:o},v))))))}function P(e){const{root:t,onClose:a,actionHref:l,onActionClick:c}=e,i=()=>{o.unmountComponentAtNode(t),void 0!==a&&a()},r=()=>{o.unmountComponentAtNode(t),void 0!==c&&c()},s=function(e){const t=(0,g.getEarlyBirdDialogDay)(e.state,e.trialDaysPassed);return null!==t?k[t](e):null}(e);if(null!==s){const e={content:s,actionHref:l,onActionClick:r,onClose:i};o.render(n.createElement(Y,{...e}),t)}}},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","media-mf-phone-landscape":"screen and (min-width: 568px)","media-mf-tablet-vertical":"screen and (min-width: 768px)","media-mf-tablet-landscape":"screen and (min-width: 1024px)","media-mf-laptop":"screen and (min-width: 1280px)"}')}}]);