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,59 @@
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8357],{15746:e=>{e.exports={badge:"badge-yHuWj4ze",content:"content-yHuWj4ze",anchor:"anchor-yHuWj4ze",button:"button-yHuWj4ze","size-xsmall":"size-xsmall-yHuWj4ze","size-small":"size-small-yHuWj4ze","size-medium":"size-medium-yHuWj4ze","size-large":"size-large-yHuWj4ze","size-xlarge":"size-xlarge-yHuWj4ze"}},88755:e=>{e.exports={"light-button-group":"light-button-group-7mI4HslZ"}},14488:e=>{e.exports={"light-button":"light-button-1f5iHRsw","disable-cursor-pointer":"disable-cursor-pointer-1f5iHRsw",content:"content-1f5iHRsw","ellipsis-container":"ellipsis-container-1f5iHRsw",icon:"icon-1f5iHRsw","variant-primary":"variant-primary-1f5iHRsw","color-gray":"color-gray-1f5iHRsw","size-small":"size-small-1f5iHRsw","force-direction-ltr":"force-direction-ltr-1f5iHRsw","force-direction-rtl":"force-direction-rtl-1f5iHRsw","with-grouped":"with-grouped-1f5iHRsw","variant-quiet-primary":"variant-quiet-primary-1f5iHRsw",selected:"selected-1f5iHRsw","typography-small":"typography-small-1f5iHRsw","typography-medium":"typography-medium-1f5iHRsw","with-start-icon":"with-start-icon-1f5iHRsw","with-end-icon":"with-end-icon-1f5iHRsw","no-content":"no-content-1f5iHRsw",caret:"caret-1f5iHRsw","disable-active-state-styles":"disable-active-state-styles-1f5iHRsw","size-medium":"size-medium-1f5iHRsw","color-green":"color-green-1f5iHRsw","color-red":"color-red-1f5iHRsw","variant-secondary":"variant-secondary-1f5iHRsw","variant-ghost":"variant-ghost-1f5iHRsw"}},57336:e=>{e.exports={"text-button":"text-button-jmRlvG08",content:"content-jmRlvG08","text-button-brand-small":"text-button-brand-small-jmRlvG08",background:"background-jmRlvG08","with-start-icon":"with-start-icon-jmRlvG08","with-end-icon":"with-end-icon-jmRlvG08","start-icon":"start-icon-jmRlvG08","end-icon":"end-icon-jmRlvG08",selected:"selected-jmRlvG08",caret:"caret-jmRlvG08","text-button-brand-medium":"text-button-brand-medium-jmRlvG08","text-button-brand-large":"text-button-brand-large-jmRlvG08","text-button-gray-small":"text-button-gray-small-jmRlvG08","text-button-gray-medium":"text-button-gray-medium-jmRlvG08","text-button-gray-large":"text-button-gray-large-jmRlvG08"}},79370:e=>{e.exports={group:"group-7eb3l0ph"}},69599:e=>{e.exports={container:"container-PxtBx6dp","container-danger":"container-danger-PxtBx6dp",icon:"icon-PxtBx6dp",header:"header-PxtBx6dp","container-warning":"container-warning-PxtBx6dp","container-success":"container-success-PxtBx6dp","container-default":"container-default-PxtBx6dp","text-wrap":"text-wrap-PxtBx6dp","close-button":"close-button-PxtBx6dp"}},1365:e=>{e.exports={"agreement-switch":"agreement-switch-xGfsY7aB",legend:"legend-xGfsY7aB","error-wrapper":"error-wrapper-xGfsY7aB","error-icon":"error-icon-xGfsY7aB","switch-group":"switch-group-xGfsY7aB"}},12032:e=>{e.exports={checkbox:"checkbox-PDtI2r2Z","error-wrapper":"error-wrapper-PDtI2r2Z","error-icon":"error-icon-PDtI2r2Z"}},51556:e=>{e.exports={occupation:"occupation-GVt2ue8G","nothing-selected":"nothing-selected-GVt2ue8G",
"occupation-menu":"occupation-menu-GVt2ue8G"}},55315:e=>{e.exports={"subscribers-inputs":"subscribers-inputs-okfUHTUP",dropdown:"dropdown-okfUHTUP","country-select-container":"country-select-container-okfUHTUP"}},74660:e=>{e.exports={page:"page-RRWggudg",sheet:"sheet-RRWggudg","page-title":"page-title-RRWggudg","page-sub-title":"page-sub-title-RRWggudg","exchange-agreement-description":"exchange-agreement-description-RRWggudg","exchange-file-link":"exchange-file-link-RRWggudg","section-title":"section-title-RRWggudg","section-terms-description":"section-terms-description-RRWggudg","questions-title":"questions-title-RRWggudg",questions:"questions-RRWggudg",question:"question-RRWggudg",actions:"actions-RRWggudg","checkbox-margin":"checkbox-margin-RRWggudg","accept-terms-checkbox-margin":"accept-terms-checkbox-margin-RRWggudg"}},14333:e=>{e.exports={container:"container-13Vfp93l",switcher:"switcher-13Vfp93l","arrow-curve":"arrow-curve-13Vfp93l",emoji:"emoji-13Vfp93l",nowrap:"nowrap-13Vfp93l"}},99925:e=>{e.exports={label:"label-GH2s1rfd"}},74364:e=>{e.exports={button:"button-oKQ8GSG1",link:"link-oKQ8GSG1"}},86326:e=>{e.exports={cardDescription:"cardDescription-nrU0JU6d"}},42155:e=>{e.exports={wrapperFeatures:"wrapperFeatures-YtR0Roin",padding:"padding-YtR0Roin card-padding-ErxLIKiI",titleFeatures:"titleFeatures-YtR0Roin",listFeatures:"listFeatures-YtR0Roin",itemFeatures:"itemFeatures-YtR0Roin",tooltipIcon:"tooltipIcon-YtR0Roin",tooltipTitle:"tooltipTitle-YtR0Roin"}},64790:e=>{e.exports={label:"label-HkY0BJBZ",icon:"icon-HkY0BJBZ",discount:"discount-HkY0BJBZ",gift:"gift-HkY0BJBZ","no-active-card":"no-active-card-HkY0BJBZ","label-discount-upsell":"label-discount-upsell-HkY0BJBZ","label-discount--pro":"label-discount--pro-HkY0BJBZ","label-discount--pro_realtime":"label-discount--pro_realtime-HkY0BJBZ","label-discount--pro_premium":"label-discount--pro_premium-HkY0BJBZ","label-gift--pro":"label-gift--pro-HkY0BJBZ","label-gift--pro_realtime":"label-gift--pro_realtime-HkY0BJBZ","label-gift--pro_premium":"label-gift--pro_premium-HkY0BJBZ"}},63332:e=>{e.exports={cardTitle:"cardTitle-omURZg64"}},84895:e=>{e.exports={"card-padding":"card-padding-ErxLIKiI",card:"card-ErxLIKiI card-padding-ErxLIKiI",button:"button-ErxLIKiI",cardLayout:"cardLayout-ErxLIKiI"}},70191:e=>{e.exports={"border-radius":"12px","cards-wrap":"cards-wrap-QQXm7yVo",cards:"cards-QQXm7yVo","cards-scroll-wrap":"cards-scroll-wrap-QQXm7yVo","secondary-action-sizes":"secondary-action-sizes-QQXm7yVo","has-active":"has-active-QQXm7yVo","top-0":"top-0-QQXm7yVo","is-active":"is-active-QQXm7yVo","top-1":"top-1-QQXm7yVo","bottom-0":"bottom-0-QQXm7yVo","bottom-1":"bottom-1-QQXm7yVo",top:"top-QQXm7yVo","top-2":"top-2-QQXm7yVo",bottom:"bottom-QQXm7yVo","bottom-2":"bottom-2-QQXm7yVo"}},3412:e=>{e.exports={"change-trial":"change-trial-ntk0pgwQ secondary-action-sizes-QQXm7yVo","current-trial":"current-trial-ntk0pgwQ secondary-action-sizes-QQXm7yVo"}},71360:e=>{e.exports={"info-icon":"info-icon-PvYAVz99","info-icon-wrap":"info-icon-wrap-PvYAVz99",label:"label-PvYAVz99",
"tooltip-wrap":"tooltip-wrap-PvYAVz99"}},9716:e=>{e.exports={offerPrice:"offerPrice-wCGVDggm",measure:"measure-wCGVDggm",mainPrice:"mainPrice-wCGVDggm","color-red":"color-red-wCGVDggm",mainPriceLetter:"mainPriceLetter-wCGVDggm",sup:"sup-wCGVDggm","color-green":"color-green-wCGVDggm"}},33848:e=>{e.exports={description:"description-d5Tocwga secondary-action-sizes-QQXm7yVo",link:"link-d5Tocwga"}},84235:e=>{e.exports={skipTrial:"skipTrial-7OCYXd1m secondary-action-sizes-QQXm7yVo",link:"link-7OCYXd1m"}},96644:e=>{e.exports={container:"container-5CQYJZ9F",text:"text-5CQYJZ9F",icon:"icon-5CQYJZ9F"}},29201:e=>{e.exports={icon:"icon-mrROUtv5"}},31976:e=>{e.exports={"border-radius":"12px","under-cards":"under-cards-5bi7tudm"}},228:e=>{e.exports={badge:"badge-3HaOrC7Y",stocks:"stocks-3HaOrC7Y",futures:"futures-3HaOrC7Y",indices:"indices-3HaOrC7Y",currency:"currency-3HaOrC7Y",certificates:"certificates-3HaOrC7Y",cryptocurrency:"cryptocurrency-3HaOrC7Y"}},22020:e=>{e.exports={title:"title-vrUcGhJD",secondary:"secondary-vrUcGhJD",link:"link-vrUcGhJD"}},75246:e=>{e.exports={title:"title-vjlx3nMq",secondary:"secondary-vjlx3nMq",titleContainer:"titleContainer-vjlx3nMq"}},6331:e=>{e.exports={container:"container-1PoDYo3m","dropdown-item":"dropdown-item-1PoDYo3m",icon:"icon-1PoDYo3m"}},59353:e=>{e.exports={next:"next-1Ts5vcta"}},23078:e=>{e.exports={"padding-top-notebook":"105px",cart:"cart-bjdgLkZK","purchase-info":"purchase-info-bjdgLkZK","mobile-opened":"mobile-opened-bjdgLkZK","row-layout":"row-layout-bjdgLkZK","product-name":"product-name-bjdgLkZK","product-cost":"product-cost-bjdgLkZK",productTrial:"productTrial-bjdgLkZK","mobile-total-title":"mobile-total-title-bjdgLkZK","mobile-total-cost":"mobile-total-cost-bjdgLkZK",actions:"actions-bjdgLkZK",withPaymentDropdown:"withPaymentDropdown-bjdgLkZK","mobile-wrapper":"mobile-wrapper-bjdgLkZK","mobile-wrapper-opened":"mobile-wrapper-opened-bjdgLkZK","mobile-total":"mobile-total-bjdgLkZK","caret-button":"caret-button-bjdgLkZK","header-caret-button":"header-caret-button-bjdgLkZK",icon:"icon-bjdgLkZK",dropped:"dropped-bjdgLkZK"}},73015:e=>{e.exports={badge:"badge-35MDaV7L",description:"description-35MDaV7L","product-name":"product-name-35MDaV7L"}},15359:e=>{e.exports={exchanges:"exchanges-hTiOOCdh"}},658:e=>{e.exports={"next-payment-info":"next-payment-info-bDg2DFsp"}},83110:e=>{e.exports={"purchase-info":"purchase-info-8I7iMxAC","cart-section":"cart-section-8I7iMxAC","exchange-item":"exchange-item-8I7iMxAC",total:"total-8I7iMxAC","total-title":"total-title-8I7iMxAC","total-cost":"total-cost-8I7iMxAC","billing-freq":"billing-freq-8I7iMxAC",highlightTitle:"highlightTitle-8I7iMxAC",highlight:"highlight-8I7iMxAC","product-trial":"product-trial-8I7iMxAC","cost-trial":"cost-trial-8I7iMxAC","total-tax":"total-tax-8I7iMxAC"}},89989:e=>{e.exports={"row-layout":"row-layout-O7MPIjhm","row-name":"row-name-O7MPIjhm","row-value":"row-value-O7MPIjhm"}},84266:e=>{e.exports={"back-button-space":"20px","back-button":"back-button-ysmLHxY9",hidden:"hidden-ysmLHxY9",textButton:"textButton-ysmLHxY9",
"close-button":"close-button-ysmLHxY9"}},38823:e=>{e.exports={logo:"logo-jrIJiOY8"}},24169:e=>{e.exports={title:"title-X4q9jvDs",secondary:"secondary-X4q9jvDs",titleContainer:"titleContainer-X4q9jvDs"}},39908:e=>{e.exports={button:"button-c4OTPHT1"}},41285:e=>{e.exports={termsCheckboxesContainer:"termsCheckboxesContainer-IxYXs9Hp",nonProLable:"nonProLable-IxYXs9Hp",infoIcon:"infoIcon-IxYXs9Hp"}},90514:e=>{e.exports={title:"title-i6YYU4Ty",description:"description-i6YYU4Ty"}},58751:e=>{e.exports={"highlight-wrap":"highlight-wrap-iKO7WU8n","highligh-extra-data":"highligh-extra-data-iKO7WU8n","payment-highlight-light":"payment-highlight-light-iKO7WU8n","payment-highlight-dark":"payment-highlight-dark-iKO7WU8n"}},40893:e=>{e.exports={"back-button-space":"20px","padding-top-notebook":"105px",dialog:"dialog-ekStf8bO","open-animation":"open-animation-ekStf8bO","dialog-section":"dialog-section-ekStf8bO","two-column":"two-column-ekStf8bO","one-column":"one-column-ekStf8bO",body:"body-ekStf8bO",main:"main-ekStf8bO",mainMobile:"mainMobile-ekStf8bO",cart:"cart-ekStf8bO",hidden:"hidden-ekStf8bO"}},10287:e=>{e.exports={"billing-cycle-item":"billing-cycle-item-1JAaqBgk","billing-cycle":"billing-cycle-1JAaqBgk",description:"description-1JAaqBgk",highlight:"highlight-1JAaqBgk",price:"price-1JAaqBgk","full-price":"full-price-1JAaqBgk",disabled:"disabled-1JAaqBgk"}},14724:e=>{e.exports={"billing-cycles":"billing-cycles-qU0k2PxV"}},21810:e=>{e.exports={"vertical-alignment-height":"vertical-alignment-height-z3YnaYkd",wrapper:"wrapper-z3YnaYkd",container:"container-z3YnaYkd",icon:"icon-z3YnaYkd",title:"title-z3YnaYkd",cheque:"cheque-z3YnaYkd",highlightBlock:"highlightBlock-z3YnaYkd",grid:"grid-z3YnaYkd",flex:"flex-z3YnaYkd",paymentInfo:"paymentInfo-z3YnaYkd",description:"description-z3YnaYkd",descriptionBlock:"descriptionBlock-z3YnaYkd",border:"border-z3YnaYkd",paddingRow:"paddingRow-z3YnaYkd",trialPaddingRow:"trialPaddingRow-z3YnaYkd",proPlanPaddingRow:"proPlanPaddingRow-z3YnaYkd",trialFirstPaddingRow:"trialFirstPaddingRow-z3YnaYkd",exchangesListWrapper:"exchangesListWrapper-z3YnaYkd",productText:"productText-z3YnaYkd",wrapperTotalCost:"wrapperTotalCost-z3YnaYkd",total:"total-z3YnaYkd",totalCost:"totalCost-z3YnaYkd",button:"button-z3YnaYkd",tax:"tax-z3YnaYkd","trial-tax":"trial-tax-z3YnaYkd","product-trial":"product-trial-z3YnaYkd","cost-trial":"cost-trial-z3YnaYkd"}},11264:e=>{e.exports={container:"container-jJ28DorJ",icon:"icon-jJ28DorJ",title:"title-jJ28DorJ",description:"description-jJ28DorJ",button:"button-jJ28DorJ"}},30649:e=>{e.exports={container:"container-XzdX3itL",icon:"icon-XzdX3itL",title:"title-XzdX3itL",descriptionBlock:"descriptionBlock-XzdX3itL"}},37438:e=>{e.exports={container:"container-gg7uxeBC"}},46248:e=>{e.exports={button:"button-RmahEtr8",item:"item-RmahEtr8",title:"title-RmahEtr8",description:"description-RmahEtr8"}},51491:e=>{e.exports={list:"list-YclYOAXu",item:"item-YclYOAXu","item-disabled":"item-disabled-YclYOAXu",info:"info-YclYOAXu",checkbox:"checkbox-YclYOAXu",title:"title-YclYOAXu",
"exchange-name":"exchange-name-YclYOAXu",exchangeBadge:"exchangeBadge-YclYOAXu",flag:"flag-YclYOAXu",description:"description-YclYOAXu",prices:"prices-YclYOAXu",price:"price-YclYOAXu",month:"month-YclYOAXu",year:"year-YclYOAXu","resident-price":"resident-price-YclYOAXu",infoIcon:"infoIcon-YclYOAXu",tooltipTitle:"tooltipTitle-YclYOAXu",infoIconContainer:"infoIconContainer-YclYOAXu",spinner:"spinner-YclYOAXu",badge:"badge-YclYOAXu"}},60033:e=>{e.exports={footer:"footer-ENI3UToR",info:"info-ENI3UToR",title:"title-ENI3UToR",text:"text-ENI3UToR",description:"description-ENI3UToR","description-logo":"description-logo-ENI3UToR","ice-icon":"ice-icon-ENI3UToR",icon:"icon-ENI3UToR"}},14284:e=>{e.exports={info:"info-Y4tMc12a",link:"link-Y4tMc12a",text:"text-Y4tMc12a",informer:"informer-Y4tMc12a"}},28672:e=>{e.exports={group:"group-kxBajQCf",switcher:"switcher-kxBajQCf",margin:"margin-kxBajQCf",tabs:"tabs-kxBajQCf"}},76221:e=>{e.exports={swithcherContainer:"swithcherContainer-OB6hG3Dv"}},78365:e=>{e.exports={cards:"cards-xDk5tnZJ",container:"container-xDk5tnZJ","vertical-alignment-height":"vertical-alignment-height-xDk5tnZJ","block-wrap":"block-wrap-xDk5tnZJ"}},71323:e=>{e.exports={swithcherContainer:"swithcherContainer-RrUqgK2t",trialSubtitle:"trialSubtitle-RrUqgK2t",changeTrialTerms:"changeTrialTerms-RrUqgK2t"}},75223:e=>{e.exports={childrenWrapper:"childrenWrapper-W0mNxTYg",shown:"shown-W0mNxTYg",loader:"loader-W0mNxTYg"}},87823:e=>{e.exports={"back-button":"back-button-837Z5B3u",icon:"icon-837Z5B3u","button-m":"button-m-837Z5B3u"}},17946:(e,t,n)=>{"use strict";n.d(t,{CustomBehaviourContext:()=>a,presetDefault:()=>r,presetPlatform:()=>o});const a=(0,n(59496).createContext)({enablePointerOnHover:!0,enableActiveStateStyles:!0}),r={enableActiveStateStyles:!0,enablePointerOnHover:!0},o={enableActiveStateStyles:!1,enablePointerOnHover:!1}},21310:(e,t,n)=>{"use strict";n.d(t,{Informer:()=>p});var a=n(59496),r=n(97754),o=n(9745),i=n(35582),c=n(79704),l=n(26),s=n(87172),u=n(69599),d=n.n(u);const m={danger:c,warning:c,success:s,default:l};function p(e){const{informerIntent:t,content:n,className:c,header:l,isIconShown:s=!0,isCloseButtonShown:u,icon:p,onCloseClick:g,closeButtonLabel:h="Close"}=e;return a.createElement("div",{className:r(d().container,d()["container-"+t],c)},s&&a.createElement(o.Icon,{className:d().icon,icon:null!=p?p:m[t]}),a.createElement("div",{className:d()["text-wrap"]},a.createElement("span",{className:d().header},l)," ",n),u&&a.createElement(i.CloseButton,{"aria-label":h,onClick:g,className:d()["close-button"],size:"xs"}))}},9168:(e,t,n)=>{"use strict";var a;n.d(t,{ExchangeDataType:()=>a}),function(e){e.Stocks="stocks",e.Indices="indices",e.Futures="futures",e.Currency="currency",e.Certificates="certificates",e.Cryptocurrency="cryptocurrency",e.Bist100="bist_100",e.Bist30="bist_30",e.Rofex20="rofex_20"}(a||(a={}))},1787:(e,t,n)=>{"use strict";n.d(t,{solutionIds:()=>a})
;const a=JSON.parse('{"EXTENDED_HOURS":43000502023,"PRE_MARKET":43000502023,"POST_MARKET":43000502023,"SPREAD_CHARTS":43000502298,"ALERTS":43000520149,"ALERT_ON_STRATEGY":43000481368,"ALERT_WEBHOOK":43000529348,"ALERT_DESCRIPTION_PLACEHOLDER":43000531021,"VOLUME_PROFILE":43000502040,"VOLUME_PROFILE_INDICATOR":43000557450,"RENKO":43000502284,"KAGI":43000502272,"LINE_BREAK":43000502273,"PNF":43000502276,"FINANCIAL_DATA":43000543506,"BROKER_RATING":43000542490,"CRYPTO_MARKET_CAP":43000540941,"CRYPTO_PAYMENT":43000485536,"ALERT_ON_SPREAD":43000478406,"ALERT_ON_CUSTOM_SCRIPT":43000478415,"ALERT_FUNCTION":43000597494,"SMS_VERIFICATION":43000553429,"MAGNET_MODE":43000537270,"PINE_CANNOT_DETERMINE":43000587849,"PRIVACY_SETTINGS":43000548335,"PUBLICATION_TYPE":43000609497,"SCRIPT_ACCESS":43000482573,"MEMORY_LIMITS_EXCEEDED":43000590233,"FREE_USER_FAQS":43000590947,"STRATEGY_UNREALISTIC_RESULTS":43000481029,"STRATEGY_FUTURE_DATA":43000614705,"STREAM_RULES":43000591348,"HOW_TO_USE_PAPER":43000516466,"HOW_TO_USE_CQG":43000516372,"HOW_TO_USE_OANDA":43000516375,"HOW_TO_USE_FOREXCOM":43000516374,"FAVORITE_IDEA":43000555216,"YOUTUBE_ERROR":43000612153,"AUTHORS_INSTRUCTIONS_PUBCLICATION":43000549951,"AUTHORS_INSTRUCTIONS_EDIT":43000614618,"SCRIPT_INSTRUCTIONS":43000482573,"BAR_REPLAY_UNAVAILABILITY":43000475470,"WHAT_IS_CBOE_BZX_EXCHANGE":43000473924,"GOPRO_UPGRADE_DESCRIPTION":43000473324,"GOPRO_DOWNGRADE_DESCRIPTION":43000485437,"BROKERAGE_REVIEWS":43000591351,"CHANGE_SUBSCRIPTION":43000635806,"PINE_LIBRARY_INFO":43000638371,"HOW_TO_CREATE_A_STREAM":43000560174,"HOW_DO_I_UPDATE_DESKTOP_APP":43000647779,"TECHNICAL_RATINGS":43000614331,"BACKTESTING_WIDGET":43000561856,"DEEP_BACKTESTING_WIDGET":43000670566,"DEEP_BACKTESTING":43000666199,"DEEP_BACKTESTING_AVAILABLE_DATA":43000668210}')},57229:(e,t,n)=>{"use strict";n.r(t),n.d(t,{bannerPrivacyPreferenceKey:()=>p,checkCookiePolicy:()=>f,cookieBannerDelegate:()=>g,initCookiesNotification:()=>b,oldBannerKey:()=>m,onAccept:()=>y,removeOldCookieBannerKey:()=>h,showCookiesNotification:()=>C});var a=n(11417),r=n(84015),o=(n(51872),n(81836)),i=n(46433),c=n(85198);const l=(0,n(98125).getLogger)("User.GeoInfo");let s;var u=n(98999),d=n(11542);const m="cookieBanner",p="cookiePrivacyPreferenceBanner",g=(0,o.createDeferredPromise)();function h(){return a.TVLocalStorage.removeItem(m)}function f(e){return"accepted"===a.TVLocalStorage.getItem(e)||"notApplicable"===a.TVLocalStorage.getItem(e)}function y(){a.TVLocalStorage.setItem(p,"accepted")}let v=!1;async function C(){if(v)return;v=!0;const e=await Promise.all([n.e(5514),n.e(8463),n.e(8844),n.e(4408),n.e(1253),n.e(6464),n.e(5064),n.e(724),n.e(9255),n.e(9957),n.e(8869)]).then(n.bind(n,44598));await e.showCookiesNotification()&&(y(),(0,d.trackCookies)("click","accept_all")),v=!1}async function b(){var e;const t=document.querySelector(".js-main-page-promo-container");if(!f(p)&&!(0,r.isOnMobileAppPage)("any")){t||g.resolve();if((null===(e=(0,
i.getFreshInitData)().currentLocaleInfo)||void 0===e?void 0:e.is_in_european_union)||"ignored"===a.TVLocalStorage.getItem(p))return g.promise.then(()=>C());{const e=await(void 0!==s||(s=(0,c.fetch)("/check_language/",{method:"POST"}).then(e=>{if(e.ok)return e.json();throw new Error(e.statusText)}).catch(e=>(l.logWarn(e.message),{}))),s);if(e.is_in_european_union||(n=e.country_code,["is","li","no","uk"].includes(n)))return a.TVLocalStorage.setItem(p,"ignored"),g.promise.then(()=>C());a.TVLocalStorage.setItem(p,"notApplicable"),(0,u.setCookieSetting)(u.CookieSettings.Analytics,!0),(0,u.setCookieSetting)(u.CookieSettings.Advertising,!0)}}var n}},23651:(e,t,n)=>{"use strict";n.d(t,{getPrice:()=>l});var a=n(85198),r=n(10878);const o=(0,n(98125).getLogger)("Payment.Price");class i{constructor(){this._cache={}}get(e){const t=this._getKey(e);return t in this._cache?this._cache[t]:void 0}add(e,t){this._cache[this._getKey(e)]=t}static getInstance(){return i._instance||(i._instance=new i),i._instance}_getKey(e){const{productId:t,billingCycle:n="",country_code_alpha2:a="",region:r="",postal_code:o="",locality:i="",currency:c,withTax:l}=e;return`${t}_${n}_${a}_${c}_${r}_${o}_${i}_${l?"tax":""}`}}class c{constructor(){this._cache={}}getCache(e){return e in this._cache||(this._cache[e]=i.getInstance()),this._cache[e]}static getInstance(){return c._instance||(c._instance=new c),c._instance}}async function l(e){const{products:t,billingCycle:n,billingAddress:i,currency:l=r.Currencies.Usd,withTax:s=!1}=e,u=c.getInstance().getCache(l),d=[],m=[],p=s?i:{country_code_alpha2:i.country_code_alpha2};t.forEach(e=>{const t=u.get({productId:e,billingCycle:n,withTax:s,currency:l,...p});t?d.push(t):(m.push(e),d.push(null))});const g={products:m,billing_cycle:n,currency:l,billing_address:p,with_tax:s},h=await async function(e){if(0===e.products.length)return Promise.resolve({results:[]});const t=await(0,a.fetch)("/order/price/",{method:"POST",body:JSON.stringify(e),credentials:"include"});if(!t.ok){const e=await t.json(),n=Error(e.detail);throw n.name="ApiError:"+e.code,o.logError(e.detail),n}return t.json()}(g);m.forEach((e,t)=>{const a=h.results[t];a&&u.add({productId:e,billingCycle:n,withTax:s,currency:l,...p},a)});const f=[...h.results];return{results:d.map(e=>null!=e?e:f.shift())}}},18662:(e,t,n)=>{"use strict";n.d(t,{getDowngrade:()=>r,postDowngrade:()=>o,getUpgrade:()=>i,postUpgrade:()=>c,postTvcoinsProPlan:()=>l});var a=n(28353);async function r(e){const t=new URL("/pro-plans/downgrade/",window.location.href);t.searchParams.append("pro_plan",e.pro_plan),e.billing_cycle&&t.searchParams.append("billing_cycle",e.billing_cycle),e.offer&&t.searchParams.append("offer",e.offer);const n=await fetch(t.href);if(!n.ok){const e=await n.json(),t=Error(e.detail);throw t.name="ApiError:"+e.code,t}return n.json()}async function o(e){const t=new FormData;t.append("pro_plan",e.pro_plan),e.billing_cycle&&t.append("billing_cycle",e.billing_cycle),e.offer&&t.append("offer",e.offer);const n=await fetch("/pro-plans/downgrade/",{method:"POST",
credentials:"include",body:t});if(!n.ok){const e=await n.json();throw Error(e.detail)}return n.json()}async function i(e){const t=new URL("/pro-plans/upgrade/",window.location.href);t.searchParams.append("pro_plan",e.pro_plan),e.billing_cycle&&t.searchParams.append("billing_cycle",e.billing_cycle);const n=await fetch(t.href);if(!n.ok){const e=await n.json(),t=Error(e.detail);throw t.name="ApiError:"+e.code,t}return n.json()}async function c(e){const t=new FormData;t.append("pro_plan",e.pro_plan),e.billing_cycle&&t.append("billing_cycle",e.billing_cycle);const n=await fetch("/pro-plans/upgrade/",{method:"POST",credentials:"include",body:t});if(!n.ok){const e=await n.json();throw Error(e.detail)}return n.json()}async function l(e){const t=await fetch("/tvcoins/pro-plan/",{method:"POST",credentials:"include",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})});if(!t.ok){const e=await t.json();if("failed_to_redeem"===e.code)throw Error((0,a.t)("Sorry, your subscription cant currently be extended, downgraded or upgraded because your payment method doesnt support recurring payments. Please head to profile settings to update your payment method, then try again."));throw Error(e.detail)}return t.json()}},11313:(e,t,n)=>{"use strict";function a(e){return Promise.all([n.e(5399),n.e(1865),n.e(1566)]).then(n.bind(n,55701)).then(t=>{t.changePlanDialog(e)})}n.d(t,{changePlanDialog:()=>a})},33040:(e,t,n)=>{"use strict";var a;n.d(t,{ChangePlanType:()=>a}),function(e){e[e.Downgrade=0]="Downgrade",e[e.Upgrade=1]="Upgrade",e[e.Reactivate=2]="Reactivate",e[e.TvcoinsUpgrade=3]="TvcoinsUpgrade",e[e.TvcoinsExtend=4]="TvcoinsExtend",e[e.Switch=5]="Switch"}(a||(a={}))},88930:(e,t,n)=>{"use strict";n.r(t),n.d(t,{openGoProOrderDialog:()=>di,openPaymentOrderDialog:()=>si});var a=n(59496),r=n(87995),o=n(83812),i=n(91955),c=n(9423),l=n(78540),s=n(93299);n(49483);class u{showAfterTimeout(e,t){!window.is_authenticated||s.OFFERS.trial in window.user.available_offers?this._timeoutId=setTimeout(async()=>{if(window.is_authenticated&&!(s.OFFERS.trial in window.user.available_offers))return void t();const{globalToasts:a}=await Promise.all([n.e(5064),n.e(4291)]).then(n.bind(n,56139));!async function(e,t,a){(await Promise.all([n.e(6464),n.e(2340),n.e(4278)]).then(n.bind(n,43159))).showTrialNotification(e,t,a)}(a,e,t)},3e4):t()}clear(){clearTimeout(this._timeoutId)}static getInstance(){return u._instance||(u._instance=new u),u._instance}}function d(){return u.getInstance()}var m=n(88216),p=n(53402);function g(e){return[s.OFFERS.early_access,s.OFFERS.last_chance,s.OFFERS.one_usd].some(t=>t in e)}function h(e,t,n){const a=null==n?void 0:n.billing_cycle;let r=e.isPaidPro()?l.BillingCycle.OneYear:a||l.BillingCycle.Monthly;const o=t.available_offers;return s.OFFERS.trial in o?r=l.BillingCycle.Monthly:s.OFFERS.early_access in o||s.OFFERS.six_months in o?r=l.BillingCycle.OneYear:g(o)?r=null!=a?a:l.BillingCycle.OneYear:a===l.BillingCycle.TwoYears&&(r=l.BillingCycle.TwoYears),r}function f(e,t){(0,i.getTracker)().then(n=>{
null!==n&&n.trackGoproCardsClicks(e,t)})}var y=n(76974),v=n(2872),C=n.n(v),b=n(98125),E=n(28353),w=n(21097);const x=(0,b.getLogger)("SubscriptionNotification"),_="subscriptionPermissionHasChanged";var P;!function(e){e.Subscribe="subscribe",e.Unsubscribe="unsubscribe",e.Downgrade="downgrade",e.Upgrade="upgrade",e.Change="change"}(P||(P={}));class S{constructor(){this.stateChanged=new(C())}on(e,t){w.TVXWindowEvents.on(_,n=>{let a=null;try{a=JSON.parse(n)}catch(e){return void x.logWarn("Failed to parse JSON: "+n)}e!==P.Change&&e!==a.type||t(a)}),this.stateChanged.subscribe(null,n=>{e!==P.Change&&e!==n.type||t(n)})}showNotification(){n.e(870).then(n.bind(n,46224)).then(({showSubscriptionHasBeenChangedDialog:e})=>{e({pushReload:!0})})}showChartNotification(){n.e(870).then(n.bind(n,46224)).then(({showSubscriptionHasBeenChangedDialog:e})=>{e({content:E.t("You've upgraded your subscription. Please reload the chart to fire up the new changes.")})})}showBillingTimeoutNotification(){n.e(870).then(n.bind(n,46224)).then(({showSubscriptionHasBeenChangedDialog:e})=>{e({title:E.t("Subscription details are no longer valid"),content:E.t("You were inactive for a long period of time. Please refresh the page to see your subscription status."),pushReload:!0})})}xWindowEventsEmit(e){w.TVXWindowEvents.emit(_,JSON.stringify(e))}currentTabEmit(e){this.stateChanged.fire(e)}emit(e){this.currentTabEmit(e),this.xWindowEventsEmit(e)}static getInstance(){return S._instance||(S._instance=new S),S._instance}}function k(){return S.getInstance()}var T=n(20120);const N=(0,b.getLogger)("Conversion.Context"),A={user:null,state:{bannedTrial:!1,canDowngrade:!1,subscriptionDetails:void 0}},D=a.createContext({pro:null,...A});var I;!function(e){e.LoginStateChange="loginStateChange",e.Initial="initial",e.Subscribe="subscribe",e.Unsubscribe="unsubscribe",e.Downgrade="downgrade",e.Upgrade="upgrade"}(I||(I={}));class R{constructor(e,t){this.updateDelegate=new(C()),this.needUpdate=!0,this.pro=null,this.userState=A,t&&(this.userState=t,this.needUpdate=!1),this.pro=e,this.subscribe()}update(e){return(0,T.syncUserConversionData)(e).catch(()=>(N.logError("Gopro update request fail"),null)).then(e=>{var t,n,a;return null===e||(this.userState={user:e.user,state:{bannedTrial:null!==(t=e.banned_trial)&&void 0!==t&&t,canDowngrade:null!==(n=e.can_downgrade)&&void 0!==n&&n,subscriptionDetails:e.subscription_details,affiliateUsername:e.affiliate_username}},(null==e?void 0:e.user)&&(null===(a=this.pro)||void 0===a||a.updateUser(e.user)),this.needUpdate=!1),this.getContext()})}getContext(){return{pro:this.pro,...this.userState}}subscribe(){k().on(P.Change,e=>{var t;this.needUpdate=!0,e.invalidateShopConf&&(null===(t=this.pro)||void 0===t||t.invalidateShopConf());try{const t=function(e){switch(e){case P.Subscribe:return I.Subscribe;case P.Unsubscribe:return I.Unsubscribe;case P.Downgrade:return I.Downgrade;case P.Upgrade:return I.Upgrade;default:throw Error("Unknown eventType")}}(e.type);this.updateDelegate.fire(t)}catch(e){N.logError(e.message)}}),
window.loginStateChange.subscribe(null,()=>{var e;this.needUpdate=!0,null===(e=this.pro)||void 0===e||e.invalidateShopConf(),this.updateDelegate.fire(I.LoginStateChange)})}static getInstance(e,t){return R._instance||(R._instance=new R(e,t)),R._instance}}const O=a.memo((function(e){var t;const{initialState:n,updateShopConf:r,onMounted:o,source:i}=e;let c,l;n?(c={user:n.user,state:n.state},l=n.pro):l=null!==(t=window.pro)&&void 0!==t?t:null;const s=R.getInstance(l,c),[u,d]=a.useState(s.getContext()),m=(0,y.useIsMounted)();async function p(t){var n,a;const o=s.update(i);let c=null;r&&(null===(n=s.pro)||void 0===n?void 0:n.isInvalidShopConf())&&(c=null===(a=s.pro)||void 0===a?void 0:a.updateShopConf());const[l]=await Promise.all([o,c]);m.current&&(d(l),e.onUpdate&&e.onUpdate(l,t))}return(0,a.useEffect)(()=>{var e,t;const n=s.getContext();o&&o(n),s.needUpdate?p(I.Initial):r&&(null===(e=n.pro)||void 0===e?void 0:e.isInvalidShopConf())&&(null===(t=n.pro)||void 0===t||t.updateShopConf())},[]),(0,a.useEffect)(()=>(s.updateDelegate.unsubscribe(null,p),s.updateDelegate.subscribe(null,p),()=>s.updateDelegate.unsubscribe(null,p)),[p]),a.createElement(D.Provider,{value:u},e.children)}));var B=n(97754),M=n.n(B),L=n(37005),Y=n(81e3),U=n(1938),F=n(59401),z=n(25760),H=n(10878),V=n(76266),j=n(85739),G=n(51768),W=n(78599),q=n(11417),$=n(67337),K=n(23127);let Q=K.Deferred();function X(e,t){var n=TVSettings.getBool("_phone_verif_dlg_initial",!0);TVSettings.setValue("_phone_verif_dlg_initial",!1),(0,G.trackEvent)("Phone verification",e+(n?" initial":""),t)}function Z(e){const t=K.Deferred();return(0,W.createPhoneDialog)({featureSource:e.source,doNotShowConfirmation:e.doNotShowConfirmation}).then(n=>{n.on("afterOpen",()=>X("Show dialog",e.source)).on("verification:success",n=>{t.resolve(n),X("Verified",e.source)}).on("verification:cancel",()=>{t.reject("cancelled"),X("Cancelled",e.source)}).on("verification:codeExpired",()=>X("Show dialog",e.source)).open()}),t}function J(e={}){return new Promise(t=>{!window.is_authenticated||user.is_staff||user.is_superuser||user.is_pro||user.is_moderator?t([!1]):e.customPhoneCheck?e.customPhoneCheck()?t([!0,"date-joined"]):t([!1]):$.enabled("phone_verification")&&!user.has_phone?!0!==e.doNotCheckSocialActivity?t([!0,"date-joined"]):(!0!==e.doNotCheckSuspicious&&t([Boolean(q.TVLocalStorage.getItem("is_suspicious")),"suspicious"]),t([!0,"default"])):t([!1])})}window.loginStateChange&&loginStateChange.subscribe(null,()=>{window.is_authenticated&&(Q=K.Deferred(),J().then(([e,t])=>{e||Q.resolve()}))});var ee=n(93573),te=n(57762),ne=n(60679);const ae=(0,b.getLogger)("GoPro.VisitPaymentPageContext"),re={visitPaymentPage:()=>{ae.logError("visitPaymentPage not implement")},startTrial:()=>{ae.logError("startTrial not implement")},changeTrial:()=>{ae.logError("changeTrial not implement")},upgradePlan:()=>{ae.logError("upgradePlan not implement")}},oe=a.createContext(re);var ie=n(83317),ce=n(9745),le=n(23298),se=n(57336),ue=n.n(se);const de=e=>{
const{className:t,isSelected:n,size:a="medium",color:r,startIcon:o,endIcon:i,showCaret:c}=e;return B(t,ue()["text-button"],n&&ue().selected,ue()[`text-button-${r}-${a}`],o&&ue()["with-start-icon"],(c||i)&&ue()["with-end-icon"])};function me(e){return a.createElement(a.Fragment,null,a.createElement("span",{className:ue().background}),e.startIcon&&a.createElement(ce.Icon,{className:ue()["start-icon"],icon:e.startIcon}),a.createElement("span",{className:ue().content},e.children),(e.endIcon||e.showCaret)&&(e=>a.createElement(ce.Icon,{className:B(ue()["end-icon"],e.showCaret&&ue().caret),icon:e.showCaret?le:e.endIcon}))(e))}function pe(e){const{reference:t,className:n,isSelected:r,children:o,startIcon:i,showCaret:c,color:l,endIcon:s,size:u,...d}=e;return a.createElement("button",{...d,className:de({className:n,isSelected:r,startIcon:i,showCaret:c,endIcon:s,color:l,size:u}),ref:t},a.createElement(me,{showCaret:c,startIcon:i,endIcon:s},o))}var ge=n(41145),he=n(67844),fe=n(158),ye=n(38823);function ve(e){return a.createElement("div",{className:ye.logo},a.createElement(ce.Icon,{icon:fe}))}var Ce=n(81925),be=n(84266);const Ee=a.memo((function(e){const{hideBackButton:t,hideCloseButton:n,onPrevious:r,onClose:o}=e;return a.createElement("div",null,a.createElement(ge.BackButton,{"aria-label":(0,E.t)("Back",{context:"input"}),onClick:r,className:B(be["back-button"],t&&be.hidden)}),a.createElement(pe,{onClick:r,startIcon:Ce,size:"medium","aria-label":(0,E.t)("Back",{context:"input"}),color:"gray",className:B(be.textButton,t&&be.hidden)},(0,E.t)("Back")),a.createElement(ve,null),a.createElement(he.CloseButton,{"aria-label":(0,E.t)("Close",{context:"input"}),onClick:o,className:B(be["close-button"],n&&be.hidden)}))}));var we=n(14972),xe=(n(94419),n(82531)),_e=n(7043),Pe=n(1860);E.t("Real-time markets"),E.t("year"),E.t("Next payment on {next_payment_date}"),E.t("{plan_name} plan at regular price");function Se(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function ke(e,t){let n=function(e,t){const n=new Date(e);return n.setMonth(n.getMonth()+t),n}(new Date,(0,p.billingCycleToMonth)(e));return void 0!==t&&(n=Se(n,t)),_e.dateFormatFunctions["MMM dd, yyyy"](n,!1)}function Te(e){if(void 0===e)return function(){const e=new Pe.DateFormatter("MMM dd, yyyy"),t=24*((0,xe.getTrialLength)()+1)*60*60*1e3;return e.formatLocal(new Date(Date.now()+t))}();return new Pe.DateFormatter("MMM dd, yyyy").formatLocal(Se(new Date(e.expire_on),1))}var Ne=n(658);function Ae(e){const{product:t,billingCycle:n,pro:r,exchangesCost:o,proPlanCost:i,currency:c}=e;let{extraDays:l}=e;const s=r.getProduct(r.getProductId(t));!l&&s.billing_cycle===n&&s.extra_days&&(l=s.extra_days);const u=E.t("Next payment on {next_payment_date}").format({next_payment_date:ke(n,l)}),d=E.t("{plan_name} plan at regular price").format({plan_name:t.name}),m=E.t("Real-time markets");return a.createElement(tt,null,a.createElement("p",{className:Ne["next-payment-info"]},u,": ",d," — ",De(i,n,c),".",0!==o&&a.createElement("span",null," ",m," — ",De(o,n,c),".")))}function De(e,t,n){
const a=n===H.Currencies.Usd?"$":"",r=n===H.Currencies.Rub?" "+E.t("RUB"):"";return`${a}${(0,p.round2)(e)}${r}/${(0,p.billingCycleToTimeUnit)(t)}`}function Ie(e,t,n){let a=30;return"y"===t?a=365:"2y"===t&&(a=730),n.getCost(e,t)/a}function Re(e,t,n,a){if(void 0===n.pro_plan)return;const r=n.pro_plan_days_left;let o,i,c=!1;if(n.is_trial||a.isOffer(e,"six_months")?(c=!0,o=(0,p.getProductForTrial)(n.pro_plan),i=l.BillingCycle.Monthly):(o=n.pro_plan_original_name,i=n.pro_plan_billing_cycle),!r||!o||!i)return;const s=function(e,t,n,a,r,o,i=!1){const c=o.getProduct(t),l=o.getProduct(a);if(!o.isPlan(l))return;if(!o.isProductDefined(c)||!o.isProductDefined(l))return;if(l.type!==o.PRODUCT_TYPES.pro_plan)return;const s=c.upgrade_weight,u=l.upgrade_weight;if(!i&&s>u)return;let d=0;if(l.billing_cycle===r&&(d=l.extra_days||0),i||c.text_id===l.text_id)return e+d;const m=Ie(c,n,o)*e,p=Ie(l,r,o);return Math.ceil(m/p)+d}(r,o,i,e,t,a,c);if(!s)return;let u;const d=a.getProduct(o),m=a.getProduct(e),g=(0,p.getAmountOfDaysForBillingCycle)(t)+s;return u=n.is_trial?E.t("You have {boldHighlightStart} {daysLeft} days left {boldHighlightEnd} in your free trial. These days will be added to your new subscription. Your {proPlan} plan will have {boldHighlightStart} {amountOfDaysForBillingCycle} days {boldHighlightEnd} after the purchase.").format({daysLeft:r.toString(),proPlan:(0,p.humanizeProPlan)(m.text_id),amountOfDaysForBillingCycle:g.toString(),boldHighlightStart:"<b>",boldHighlightEnd:"</b>"}):E.t("Your account has {boldHighlightStart} {daysLeft} days left {boldHighlightEnd} in the current {currentProPlan} plan. We'll convert this remaining time into an equivalent value of days on your new plan. Your {proPlan} plan will have {boldHighlightStart} {amountOfDaysForBillingCycle} days {boldHighlightEnd} after the purchase.").format({daysLeft:r.toString(),currentProPlan:(0,p.humanizeProPlan)(d.text_id),proPlan:(0,p.humanizeProPlan)(m.text_id),amountOfDaysForBillingCycle:g.toString(),boldHighlightStart:"<b>",boldHighlightEnd:"</b>"}),{text:u,extraDays:s,totalAmountOfDays:g}}var Oe=n(23078);const Be=a.memo((function(e){const{pro:t,cost:n,cartData:r,classNameProductName:o,classNameProductCost:i,modifier:c,trialDays:l=(0,xe.getTrialLength)(),currency:s=""}=e,{isTrial:u}=r,d=Me(t,r,void 0===c?l:void 0),m=`${(0,ie.getCurrencySign)(s)}${u?"0":n} ${s}`;return a.createElement("div",{className:Oe["row-layout"]},a.createElement("div",{className:B(Oe["product-name"],o)},a.createElement("span",null,d)),a.createElement("div",{className:B(Oe["product-cost"],i)},m))}));function Me(e,t,n){const{proPlanProductId:a,isTrial:r}=t,o=a?e.getProduct(a):null;if(!o)return"";let i="";return i=r?n?(0,E.t)("{proPlanName} trial ({days_count} day)",{plural:"{proPlanName} trial ({days_count} days)",context:"free_trial",count:n}).format({proPlanName:o.name,days_count:n.toString()}):(0,E.t)("{proPlanName} trial").format({proPlanName:o.name}):(0,E.t)("{proPlanName} plan").format({proPlanName:o.name}),i}var Le,Ye=n(9168);!function(e){e.XSmall="xsmall",e.Small="small",
e.Medium="medium",e.Large="large",e.XLarge="xlarge"}(Le||(Le={}));var Ue=n(15746),Fe=n.n(Ue);function ze(e){const{size:t=Le.Medium,className:n}=e;return M()(Fe().badge,t&&Fe()["size-"+t],n)}function He(e){const{children:t,contentClassName:n}=e;return a.createElement("span",{className:M()(Fe().content,n)},t)}function Ve(e){const{size:t,children:n,className:r,contentClassName:o,...i}=e;return a.createElement("span",{...i,className:ze({size:t,className:r})},a.createElement(He,{contentClassName:o},n))}var je=n(228);const Ge={[Ye.ExchangeDataType.Stocks]:je.stocks,[Ye.ExchangeDataType.Indices]:je.indices,[Ye.ExchangeDataType.Futures]:je.futures,[Ye.ExchangeDataType.Currency]:je.currency,[Ye.ExchangeDataType.Certificates]:je.certificates,[Ye.ExchangeDataType.Cryptocurrency]:je.cryptocurrency,[Ye.ExchangeDataType.Bist100]:je.indices,[Ye.ExchangeDataType.Bist30]:je.indices,[Ye.ExchangeDataType.Rofex20]:je.indices};function We(e){const t={[Ye.ExchangeDataType.Stocks]:E.t("Stocks"),[Ye.ExchangeDataType.Indices]:E.t("Indices"),[Ye.ExchangeDataType.Futures]:E.t("Futures"),[Ye.ExchangeDataType.Currency]:E.t("Currency"),[Ye.ExchangeDataType.Certificates]:E.t("Certificates"),[Ye.ExchangeDataType.Cryptocurrency]:E.t("Cryptocurrency"),[Ye.ExchangeDataType.Bist100]:E.t("Bist 100"),[Ye.ExchangeDataType.Bist30]:E.t("Bist 30"),[Ye.ExchangeDataType.Rofex20]:E.t("Rofex 20")};return a.createElement(Ve,{className:B(je.badge,e.className,Ge[e.type]),size:Le.Small},t[e.type])}var qe=n(73015);const $e=a.memo((function(e){const{cost:t,classNameExchangeItem:n,classNameExchangeItemText:r,localPriceProduct:o,isCart:i,exchange:c,currency:l=""}=e,s=o?(0,p.round2)(o.total):t,u=`${(0,ie.getCurrencySign)(l)}${s} ${l}`,d=i?c.name:c.description,m=(0,ie.getExchangeType)(c);return a.createElement("li",{className:B(qe["exchange-item"],Oe["row-layout"],n)},a.createElement("div",{className:qe.description},a.createElement("span",{className:B(Oe["product-name"],qe["product-name"])},d),!i&&m.map(e=>a.createElement(We,{key:"exchange_badge_"+e,className:qe.badge,type:e}))),a.createElement("div",{className:B(Oe["product-cost"],r)},u))}));var Ke=n(15359);function Qe(e){const{pro:t,cartData:n,isCart:r,classNameExchangeItem:o,classNameExchangeItemText:i,cartPrices:c,exchanges:l}=e,{billingCycle:s}=n;return a.createElement("ul",{className:Ke.exchanges},l.map(n=>{var l,u,d;const m=c?c[n.text_id]:void 0,g=null!==(u=null===(l=null==m?void 0:m.price)||void 0===l?void 0:l.total)&&void 0!==u?u:t.getCost(n,s);return a.createElement($e,{key:"order_cart_"+n.text_id,cost:(0,p.round2)(g),classNameExchangeItem:o,classNameExchangeItemText:i,isCart:r,exchange:n,currency:null!==(d=null==m?void 0:m.currency)&&void 0!==d?d:e.currency})}))}var Xe=n(89989);function Ze(e){const{tax:t,currency:n,subtotal:r,costClassName:o}=e;return a.createElement("div",{className:Xe["row-layout"]},a.createElement("div",{className:Xe["row-name"]},(0,E.t)("Subtotal")),a.createElement("div",{className:B(Xe["row-value"],o)},(0,ie.getCurrencySign)(n),r," ",n),a.createElement("div",{className:Xe["row-name"]},(0,
E.t)("Tax")),a.createElement("div",{className:B(Xe["row-value"],o)},(0,ie.getCurrencySign)(n),t," ",n))}var Je=n(83110);function et(e){return(0,E.t)("Payable on {billingDate}").format({billingDate:Te(e)})}function tt(e){return a.createElement("div",{className:B(Je.highlight,e.className)},e.children)}function nt(e){const{title:t,description:n}=e;return a.createElement(tt,null,t&&a.createElement("p",{className:Je.highlightTitle},t),a.createElement("p",{dangerouslySetInnerHTML:{__html:n}}))}function at(e){return e===l.BillingCycle.Monthly?(0,E.t)("You will not be billed today"):(0,E.t)("Further billing")}function rt(e){return`<span class="i-no-break">${e}</span>`}function ot(e,t){const n={[H.Currencies.Usd]:(0,E.t)("US"),[H.Currencies.Rub]:(0,E.t)("RUB")},a={[H.Currencies.Usd]:"$",[H.Currencies.Rub]:""},r=n[t];return`<span class="i-no-break">${a[t]}${(0,p.round2)(e)} ${r}</span>`}const it=a.memo((function(e){const{cartData:t,cartPrices:n,listLocalPricesProducts:r,isCart:o,showNextPaymentData:i,modifier:c,className:s}=e,{proPlanProductId:u,billingCycle:d,isTrial:m}=t,{pro:g,user:h,state:f}=a.useContext(D),{subscriptionDetails:y}=f;if(null===g||null===h)return a.createElement("div",null);const v=(0,E.t)("{currencySymbol}{cost} {currency}").format({currency:n.currency,cost:(0,p.round2)(n.totalCostWithTax),currencySymbol:(0,ie.getCurrencySign)(n.currency)}),C=(0,ie.getListExchanges)(g,t),b=u?g.getProduct(u):void 0,w=!m&&u?Re(u,d,h,g):void 0,x=m?et(y):(0,E.t)("Total"),_=!m&&i&&u&&(g.isOffer(u,"early_access")||g.isOffer(u,"six_months")||g.isOffer(u,"1 usd offer")||g.isOffer(u,"last_chance")||g.isOffer(u,"custom_discount")||g.isOffer(u,"black_friday")),P=(0,E.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,p.round2)(n.tax),currency:n.currency,currencySign:(0,ie.getCurrencySign)(n.currency)});return a.createElement("div",{className:B(s,Je["purchase-info"])},t.proPlanProductId&&a.createElement("div",{className:Je["cart-section"]},a.createElement(Be,{pro:g,cost:(0,p.round2)(n.proPlanCost),cartData:t,modifier:c,currency:n.currency,classNameProductName:B({[Je["product-trial"]]:m}),classNameProductCost:B({[Je["cost-trial"]]:m})})),C.length>0&&a.createElement("div",{className:B(Je["cart-section"])},a.createElement(Qe,{pro:g,cartData:t,isCart:o,exchanges:C,cartPrices:r,currency:n.currency,classNameExchangeItem:Je["exchange-item"]})),0!==n.tax&&!m&&a.createElement("div",{className:B(Je["cart-section"])},a.createElement(Ze,{tax:(0,p.round2)(n.tax),currency:n.currency,subtotal:(0,p.round2)(n.subtotal)})),a.createElement("div",{className:B(Je.total,Je["cart-section"])},a.createElement("h3",{className:Je["total-title"]},x),a.createElement("div",{className:Je["total-cost"]},v),0!==n.tax&&m&&a.createElement("p",{className:Je["total-tax"]},P),m?a.createElement(a.Fragment,null,g&&u&&a.createElement(nt,{title:at(d),description:function(){const e=n.proPlanCostWithTax,t=n.currency,a=rt(Te(y));if(d!==l.BillingCycle.Monthly){return(0,
E.t)("Accounting for your Early Bird discount, the chosen payment method will be charged {cost} on {billing_date}. The annual payments after this one will be {full_cost}, our regular price.").format({cost:ot(e,t),billing_date:a,full_cost:ot(n.baseProPlanCostWithTax,t)})}return(0,E.t)("Your card will be charged {cost} on {billing_date}.").format({cost:ot(e,t),billing_date:a})}()}),a.createElement(nt,{title:(0,E.t)("You can cancel auto-renewal"),description:function(){const e=rt(Te(y));return(0,E.t)("You can cancel your trial & auto-renewal BEFORE {billing_date} and you will not be charged at all.").format({billing_date:e})}()})):i&&a.createElement("div",{className:Je["billing-freq"]},(0,p.billingPeriodText)(d)),w&&a.createElement(nt,{description:w.text}),_&&b&&a.createElement(Ae,{product:b,billingCycle:d,pro:g,proPlanCost:n.baseProPlanCostWithTax,exchangesCost:n.exchangesCost,extraDays:null==w?void 0:w.extraDays,currency:n.currency})))}));var ct,lt=n(42879),st=n(59407),ut=n(42707),dt=n(86240),mt=n(68769),pt=n(40161),gt=n(6331);function ht(e){const{paymentMethods:t,token:n,onMethodChange:r}=e;return a.createElement("div",{className:gt.container},a.createElement(pt.FormSelect,{id:"one-click-payment-method",value:n||"default",size:"large",items:function(){const e=t.map(e=>function(e){let t,n;1===e.method?(t="*"+e.acct,n=mt.braintreePaymentTypeToIconMap[e.cardtype]):2===e.method?(t=E.t("PayPal account"),n=mt.paymentTypeToIconMap.paypal):3===e.method?(t="Google Pay",n=mt.paymentTypeToIconMap["google-pay"]):4===e.method&&(t="Apple Pay",n=mt.paymentTypeToIconMap["apple-pay"]);return{value:e.token,content:a.createElement("div",{className:gt["dropdown-item"]},a.createElement("img",{src:n||mt.paymentTypeToIconMap.default,className:gt.icon}),a.createElement("span",null,t))}}(e));return e.push({value:"default",content:a.createElement("div",{className:gt["dropdown-item"]},a.createElement(ce.Icon,{icon:mt.paymentTypeToIconMap.default,className:gt.icon}),a.createElement("span",null,E.t("Add new method")))}),e}(),onChange:r}))}!function(e){e.Untouched="untouched",e.Unsettled="unsettled",e.Resolved="resolved",e.Rejected="rejected"}(ct||(ct={}));var ft=n(5437),yt=n(45345),vt=n(26843),Ct=n(26996),bt=n(71036),Et=n(75223);function wt(e){const{onClick:t,loaderColor:n,disabled:r,showLoader:o=!1}=e,[i,c]=function(e){const[t,n]=(0,a.useState)(ct.Untouched),r=(0,y.useIsMounted)(),o=(0,a.useCallback)((...t)=>{e&&(i(ct.Unsettled),e(...t).then(()=>i(ct.Resolved)).catch(()=>i(ct.Rejected)))},[e]),i=(0,a.useCallback)(e=>{r.current&&n(e)},[]);return[o,t]}(t),[l,s]=(0,a.useState)(!1);(0,a.useEffect)(()=>{s(c===ct.Unsettled&&o)},[c]);const u=B(Et.childrenWrapper,!l&&Et.shown),d=B(Et.loader,l&&Et.shown);return{onClickhandler:i,disabled:r||c===ct.Unsettled,childrenWrapperClassNames:u,laoderClassNames:d,loaderColor:null!=n?n:yt.watchedTheme.value()===vt.StdTheme.Light?"white":"gray"}}function xt(e){const{disabled:t,showLoader:n,loaderColor:a,onClick:r,...o}=e;return o}function _t(e){
const{onClickhandler:t,disabled:n,childrenWrapperClassNames:r,laoderClassNames:o,loaderColor:i}=wt(e),{children:c,size:l="small",...s}=e;return a.createElement(bt.SquareButton,{...xt(s),disabled:n,onClick:t,size:l},a.createElement("span",{className:r},c),a.createElement(Ct.Loader,{className:o,color:i}))}var Pt=n(59353);function St(e){const{token:t,onClick:n,currentPaymentMethod:r,hideDefaultButton:o,showPaymentDropdown:i,allowOneClickPurchase:c,reference:l,onMethodChange:s,disabled:u,activePaymentMethods:d}=e,m=i&&c&&!o&&d&&d.length>0,p=m&&r?E.t("Purchase"):E.t("Next"),g=(0,ut.useSafeMatchMedia)(dt["media-mf-tablet-landscape"]);return a.createElement(a.Fragment,null,m&&a.createElement(ht,{token:t,paymentMethods:d||[],onMethodChange:s}),a.createElement("div",{className:Pt.next,ref:l},!o&&a.createElement(_t,{onClick:n,size:g?"medium":"large",disabled:u,showLoader:!0,stretch:!0},p)))}var kt=n(25293);var Tt;function Nt(e,t){return e!==te.PaymentTab.Coinbase&&!(e===te.PaymentTab.Ecommpay&&t.filter(e=>Boolean(e)).length>1)}!function(e){e[e.Highligh=0]="Highligh",e[e.ChangeTrial=1]="ChangeTrial",e[e.Next=2]="Next",e[e.OrderPurchase=3]="OrderPurchase",e[e.Disabled=4]="Disabled"}(Tt||(Tt={}));const At=a.memo((function(e){const{pro:t,cartData:n,currentStep:r,reference:o,clientToken:i,currentPaymentMethod:c,currentPaymentTab:l,isOnlyExchanges:s,statusExtraData:u,token:d,activePaymentMethods:m,modifier:g,setStep:h,onHighlight:f,setErrorText:v,setAllowTryAgain:C,onNext:b,onSuccessPurchase:w,onMethodChange:x,listLocalPricesProducts:_,currency:P}=e,{isTrial:S,exchanges:k}=n,T=r===st.Steps.PaymentMethod||r===st.Steps.Trial&&void 0===g,N=(0,y.useIsMounted)(),[A,D]=(0,a.useState)(!1),[I,R]=(0,a.useState)(!1),O=a.useMemo(()=>(0,ie.getPricesForCart)({pro:t,cartData:n,currency:P,listLocalPricesProducts:_}),[t,n,_,P]),M=(O.currency!==H.Currencies.Usd?(0,E.t)("{cost}"):(0,E.t)("${cost}")).format({cost:(0,p.round2)(S?0:O.totalCostWithTax)}),[L,Y]=(0,a.useState)(""),U=(0,V.isFeatureEnabled)("braintree-order-one-click-dropdown")&&r===st.Steps.MarketData&&!I&&!s&&0===n.exchanges.length&&u===lt.StatusExtraData.Disable,F=r===st.Steps.MarketData&&!I,z=function(e,t,n){const{currentStep:a,cartData:r,statusExtraData:o,modifier:i,token:c}=e;if(function(e){const{currentStep:t,cartData:n,modifier:a,orderTermsChecked:r}=e;return t===st.Steps.MarketData&&void 0===n.proPlanProductId&&0===n.exchanges.length||t===st.Steps.Trial&&void 0!==a&&!r}(e))return Tt.Disabled;if(a===st.Steps.MarketData&&void 0===o)return Tt.Highligh;if(void 0!==i&&r.isTrial&&r.proPlanProductId)return Tt.ChangeTrial;if(!n||!c||!t)return Tt.Next;return Tt.OrderPurchase}(e,U,F);(0,a.useEffect)(()=>{const e=()=>R(window.innerWidth<1020);return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),(0,a.useEffect)(()=>{I&&x("default")},[I]);const j=(0,a.useCallback)(async e=>{const t=await e.json();N.current&&t.detail&&t.code&&(v&&v(t.detail),["payments_banned","anonymization_activated","order_forbidden"].includes(t.code)&&C(!1),h(st.Steps.Error))
},[]),G=a.useCallback(async()=>{q();const{proPlanProductId:e}=n;if(z===Tt.Highligh)return f();if(z===Tt.Next)return b();let t=null;if(z===Tt.ChangeTrial&&e&&(t=await(0,ne.onChangeTrial)(e)),z===Tt.OrderPurchase&&null!==d){const a=e?[e,...k]:n.exchanges;t=await(0,ne.onOrderPurchase)(d,a,ne.PaymentDataType.Token,n.billingCycle,{device_data:L})}N.current&&null!==t&&(t.ok?w(t):j(t))},[z,n.proPlanProductId,n.exchanges,n.billingCycle,d,b,w]);(0,a.useEffect)(()=>{i&&(0,we.getDeviceData)(i).then(e=>{N.current&&Y(e)})},[c,i]);const W=B(Oe.cart,{[Oe["mobile-opened"]]:A}),q=(0,a.useCallback)(()=>D(!1),[]),$=(0,a.useCallback)(()=>D(!0),[]);return a.createElement("div",{className:W},a.createElement("div",{className:B(Oe["caret-button"],Oe["header-caret-button"])},a.createElement(ce.Icon,{icon:kt,onClick:q,className:Oe.icon})),a.createElement(it,{isCart:!0,cartData:n,cartPrices:O,listLocalPricesProducts:_,showNextPaymentData:Nt(l,[n.proPlanProductId,...n.exchanges]),modifier:g,className:Oe["purchase-info"]}),a.createElement("div",{className:B(Oe.actions,U&&Oe.withPaymentDropdown)},a.createElement("div",{className:Oe["caret-button"]},a.createElement(ce.Icon,{icon:kt,onClick:$,className:B(Oe.icon,Oe.dropped)})),a.createElement("div",{className:B(Oe["mobile-wrapper"],A&&Oe["mobile-wrapper-opened"])},a.createElement("div",{className:Oe["mobile-total"]},a.createElement("h3",{className:Oe["mobile-total-title"]},(0,E.t)("Total:")),a.createElement("div",{className:Oe["mobile-total-cost"]},M)),a.createElement(St,{token:d,onClick:G,currentPaymentMethod:c,onMethodChange:x,showPaymentDropdown:U,hideDefaultButton:T,allowOneClickPurchase:F,disabled:z===Tt.Disabled,reference:o,activePaymentMethods:m}))))}));var Dt=n(60670),It=n(54349),Rt=n(90514);function Ot(e){return a.createElement("span",{className:B(Rt.description,e.className)},e.children)}const Bt=a.memo((function(e){return a.createElement("h2",{className:B(Rt.title,e.className)},e.text)}));var Mt=n(45631),Lt=n(46248);function Yt(e){const{status:t,disabled:n}=e;return a.createElement("label",{className:Lt.item},a.createElement(Mt.RadioButton,{className:Lt.button,value:t,"aria-label":t,disabled:n}),a.createElement("div",{className:Lt.wrapper},a.createElement("p",{className:Lt.title},function(e){if(e===lt.StatusExtraData.Enable)return E.t("I need that data");return E.t("I'm good without it")}(t)),a.createElement("p",{className:Lt.description},function(e){if(e===lt.StatusExtraData.Enable)return E.t("Show me the available market packages");return E.t("I'll just buy the plan as it is for now")}(t))))}var Ut=n(44065),Ft=n(77540);function zt(e){const{name:t,className:n,size:r,title:o,alt:i,role:c}=e,l=B("tv-flag-country tv-flag-country--"+t,r&&"tv-flag-country--size_"+r,n);if("forex"===t)return a.createElement(ce.Icon,{icon:Ft,className:l});const s=(0,Ut.flagUrl)(t);return a.createElement("img",{title:o,alt:i,className:l,src:s,role:c})}var Ht=n(38780),Vt=n(32563),jt=n(15294),Gt=n(61074),Wt=n(66026);function qt(e){return a.createElement(ce.Icon,{icon:Wt,title:e.residentTooltipText,
className:B(e.className,"apply-common-tooltip")})}var $t=n(30152),Kt=n(17681),Qt=n(51491);const Xt=new Set(["exchange-bist_mixed"]),Zt={"exchange-bist_mixed":43000609137},Jt=a.memo((function(e){const{exchange:t,pro:n,billingCycle:r,questionMark:o,solutionId:i,isDisabledExchange:c}=e,{name:s,description:u,country:d,text_id:m}=t,p=n.getCost(t,l.BillingCycle.Monthly),g=n.getCost(t,l.BillingCycle.OneYear),h=(0,ie.getExchangeType)(t),f=E.t("This is a special price for residents of the exchange's home country. The final cost is applied after entering your address in the next step.");return a.createElement("label",{className:B(Qt.item,c&&Qt["item-disabled"])},a.createElement("div",{className:Qt.info},a.createElement(jt.GroupedCheckbox,{disabled:c,value:m,className:Qt.checkbox,"aria-label":m}),a.createElement(zt,{className:Qt.flag,name:d.toLowerCase()}),a.createElement("div",{className:Qt.title},a.createElement("span",{className:Qt["exchange-name"]},(0,ie.translateExchangeData)(s)),h.length>0&&h.map((e,t)=>a.createElement(We,{type:e,className:Qt.exchangeBadge,key:t}))),a.createElement(Ot,{className:Qt.description},(0,ie.translateExchangeData)(u),o&&i&&a.createElement(nn,{solutionId:i}))),a.createElement("div",{className:Qt.prices},t.has_resident_price&&t.cost_local&&a.createElement("div",{className:Qt["resident-price"]},a.createElement(tn,{billingCycle:r,monthlyPrice:t.cost_local,annualPrice:12*t.cost_local})),a.createElement(tn,{billingCycle:r,monthlyPrice:p,annualPrice:g}),t.has_resident_price&&a.createElement(qt,{className:Qt.badge,residentTooltipText:f})))}));function en(e){const{pro:t,currentTab:n,billingCycle:r,selectedExchanges:o,onChangeListExchanges:i,disableSF:c}=e,[l,s]=a.useState(t.getProductsByType(t.PRODUCT_TYPES.exchange));function u(){s(t.getProductsByType(t.PRODUCT_TYPES.exchange))}(0,a.useEffect)(()=>(t.packagesUpdated.subscribe(null,u),()=>t.packagesUpdated.unsubscribe(null,u)),[]);const d=(0,ie.getAvailableExchanges)(l),m=function(e,t){for(const n in t)if(t[n].hasOwnProperty("name")&&t[n].name===e)return t[n].exchanges;return[]}(n,(0,ie.getExchangesOrderedByRegion)(d)),p=(0,a.useMemo)(()=>m.filter(e=>t.hasPackage(e.text_id)).map(e=>e.text_id),[l,n,t]),g=(0,a.useMemo)(()=>m.filter(e=>c&&Boolean(e.idc_service_codes)).map(e=>e.text_id),[l,n,c]),h=(0,a.useMemo)(()=>[...o,...p],[o,p]);return t.isInvalidShopConf()?a.createElement("div",{className:Qt.spinner},a.createElement(Gt.Spinner,null)):a.createElement(It.SwitchGroup,{name:"list_exchanges",onChange:i,values:h},m.map(e=>a.createElement(Jt,{key:e.text_id,exchange:e,pro:t,billingCycle:r,questionMark:Xt.has(e.text_id),solutionId:Zt[e.text_id],isDisabledExchange:p.includes(e.text_id)||g.includes(e.text_id)})))}function tn(e){const{billingCycle:t,monthlyPrice:n,annualPrice:r}=e;return a.createElement("div",{className:Qt.price},a.createElement("div",{className:Qt.month},a.createElement("span",null,"$"),a.createElement("span",null,E.t("{price} /mo").format({price:n.toString()}))),t!==l.BillingCycle.Monthly&&a.createElement("div",{className:Qt.year
},a.createElement("span",null,"$"),a.createElement("span",null,E.t("{price} /year").format({price:r.toString()}))))}function nn(e){const{solutionId:t}=e,n=(0,a.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),(0,$t.showSupportDialog)({solutionId:t})},[t]);return a.createElement("span",{title:E.t("Click to learn more"),className:B("apply-common-tooltip","common-tooltip-html",Qt.tooltipTitle),onClick:rn,onMouseOver:on},a.createElement("a",{href:`/support/solutions/${t}/`,role:"button",className:Qt.infoIcon},a.createElement(ce.Icon,{icon:Kt,className:Qt.infoIconContainer,onClick:n})))}function an(){document.removeEventListener("scroll",an),document.removeEventListener("touchstart",an),(0,Ht.hide)()}function rn(e){Vt.mobiletouch&&((0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",an),document.addEventListener("touchstart",an))}function on(e){(0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0})}var cn=n(14284),ln=n(21310);const sn=a.memo((function(e){const{valueCheckbox:t,countryIsNotAllowed:n}=e,r=(0,E.t)("We provide real-time data for free if it's allowed. {link_start}Some data is delayed{link_end} due to specific exchange regulations and real-time data must be purchased separately on this page below. We are required to collect these payments and remit them to the exchanges.").split(/{link_start}|{link_end}/),o=a.createElement(a.Fragment,null,r[0],a.createElement("a",{href:"/?solution=43000471705",className:cn.link},r[1]),r[2]),i=(0,E.t)("US stock market data is real-time, but provided by CBOE BZX. {link_start}This data is slightly different{link_end} from primary exchanges. If you would like to get real-time data directly from NASDAQ, NYSE or ARCA, you can add this data to your plan.").split(/{link_start}|{link_end}/),c=a.createElement(a.Fragment,null,i[0],a.createElement("a",{href:"/?solution=43000473924",className:cn.link},i[1]),i[2]),l=(0,E.t)("Extra market data subscriptions are not available in the Russian Federation and in the Republic of Belarus");return t===lt.StatusExtraData.Enable?null:a.createElement("div",{className:cn.info},n?a.createElement(ln.Informer,{className:cn.informer,content:l,informerIntent:"warning"}):a.createElement(a.Fragment,null,a.createElement("p",{className:cn.text},o),a.createElement("p",{className:cn.text},c)))}));var un=n(43861),dn=n(55348),mn=n(60033);const pn=a.memo((function(e){return a.createElement("div",{className:mn.footer},a.createElement("div",{className:mn.info},a.createElement("div",{className:mn.title},a.createElement(ce.Icon,{className:mn.icon,icon:un}),a.createElement(Ot,{className:mn.text},E.t("Residents price"))),a.createElement(Ot,{className:mn.description},E.t("This is a special price for residents of the exchange's home country. The final cost is applied after entering your address in the next step."))),a.createElement("div",{className:mn.info},a.createElement("div",{className:mn.title},a.createElement(ce.Icon,{icon:dn,className:mn["ice-icon"]})),a.createElement(Ot,{className:mn["description-logo"]
},E.t("Market Data Provided by ICE Data services"))))}));var gn,hn=n(58751),fn=n(28672);!function(e){e.NorthAmerica="North America",e.Europe="Europe",e.EastAfrica="Middle East/Africa",e.Mexico="Mexico and South America",e.AsiaPacific="Asia/Pacific"}(gn||(gn={}));const yn=[lt.StatusExtraData.Disable,lt.StatusExtraData.Enable],vn=[gn.NorthAmerica,gn.Europe,gn.EastAfrica,gn.Mexico,gn.AsiaPacific],Cn=(0,V.isFeatureEnabled)("RU_SF_disable"),bn=(0,V.isFeatureEnabled)("RU_VOR_disable");const En=a.memo((function(e){const{pro:t,billingCycle:n,selectedExchanges:r,isOnlyExchanges:o,statusExtraData:i,setExtraDataStatus:c,setExchanges:l,defaultCountryCode:s}=e,u=o?(0,E.t)("Extra market data"):(0,E.t)("Need extra market data?"),d=(0,mt.isRussian)(s),[m,p]=(0,a.useState)(gn.NorthAmerica),g=d&&Cn&&bn,h=i===lt.StatusExtraData.Enable||o&&!g,f=a.useCallback(e=>{r.includes(e)?l(r.filter(t=>t!==e)):l([...r,e])},[r]),y=a.useCallback(e=>{c(e),e===lt.StatusExtraData.Disable&&l([])},[]),v=vn.map((e,t)=>({onClick:()=>p(e),children:a.createElement("span",null,(0,ie.exchangeGroupTabTranslate)(e)),isChecked:m===e,key:`tab_${e}_${t}`,role:"tabpanel","aria-controls":"tab-region-"+t,"aria-selected":m===e,id:"tabpanel-region-"+t})),C=!o||o&&g;return a.createElement("div",null,a.createElement(Bt,{text:u}),C&&a.createElement(a.Fragment,null,a.createElement("div",{className:B(fn.group,hn["highligh-extra-data"])},a.createElement(It.SwitchGroup,{name:"switcher_extra_data",onChange:y,values:i?[i]:[]},yn.map(e=>a.createElement(Yt,{status:e,key:e,disabled:g})))),a.createElement(sn,{valueCheckbox:i,countryIsNotAllowed:g})),h&&a.createElement(a.Fragment,null,d&&Cn&&a.createElement(ln.Informer,{className:fn.informer,content:(0,E.t)("Some extra market data subscriptions are not available in the Russian Federation and in the Republic of Belarus"),informerIntent:"warning"}),a.createElement("div",{className:fn.tabs,role:"tablist","aria-label":u},a.createElement(Dt.RoundTabsButtons,{tabs:v,align:"start",size:"xsmall",theme:Dt.DEFAULT_ROUND_TABS_THEME})),a.createElement("div",{role:"tabpanel",id:"tab-region-"+m,"aria-expanded":!0,"aria-labelledby":"tabpanel-region-"+m},a.createElement(en,{pro:t,currentTab:m,billingCycle:n,selectedExchanges:r,onChangeListExchanges:f,disableSF:d&&Cn})),a.createElement(pn,null)))}));var wn=n(63897),xn=n(11264);function _n(e){const{errorText:t,allowTryAgain:n,onClose:r,onTryAgain:o}=e,i=null!=t?t:(0,E.t)("Connection Error");return a.createElement("div",{className:xn.container},a.createElement(ce.Icon,{icon:wn,className:xn.icon}),a.createElement(Bt,{text:(0,E.t)("Payment error"),className:xn.title}),a.createElement(Ot,{className:xn.description},i),a.createElement(ft.RoundButton,{className:xn.button,onClick:n?o:r},n?(0,E.t)("Try again"):(0,E.t)("Close")))}var Pn=n(46198),Sn=n(33550),kn=n(62867),Tn=n(65417),Nn=n(42155);function An(e){return(0,E.t)("{indicatorQuantity} indicator per chart",{plural:"{indicatorQuantity} indicators per chart",count:e,replace:{indicatorQuantity:e.toString()}})}function Dn(e){return(0,
E.t)("{chartQuantity} chart in one layout",{plural:"{chartQuantity} charts in one layout",count:e,replace:{chartQuantity:e.toString()}})}function In(e){return(0,E.t)("{alertQuantity} server-side alert",{plural:"{alertQuantity} server-side alerts",count:e,replace:{alertQuantity:e.toString()}})}function Rn(){document.removeEventListener("scroll",Rn),document.removeEventListener("touchstart",Rn),(0,Ht.hide)()}function On(e){Vt.mobiletouch&&((0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",Rn),document.addEventListener("touchstart",Rn))}class Bn extends a.PureComponent{render(){const{proPlan:e,className:t}=this.props,n=B(Nn.wrapperFeatures,t);let r;switch(e){case Pn.ProPlans.Pro:r=(0,E.t)("Key benefits of Pro:");break;case Pn.ProPlans.ProRealtime:r=(0,E.t)("All the benefits of Pro, plus:");break;case Pn.ProPlans.ProPremium:r=(0,E.t)("The complete package, with:")}return a.createElement("div",{className:n},a.createElement("div",{className:Nn.padding},r&&a.createElement("p",{className:Nn.titleFeatures},r),a.createElement("ul",{className:Nn.listFeatures},function(e){var t,n,r,o,i,c,l,s,u;const d={pro:[{text:An((null===(t=(0,Sn.getConfig)(kn.ProductFeatures.INDICATORS_ON_CHART,Pn.ProPlans.Pro))||void 0===t?void 0:t.limit)||0)},{text:(0,E.t)("2 charts in one window")},{text:In((null===(n=(0,Sn.getConfig)(kn.ProductFeatures.SERVER_SIDE_ALERTS,Pn.ProPlans.Pro))||void 0===n?void 0:n.limit)||0)},{text:(0,E.t)("Ad-free")},{text:(0,E.t)("Volume profile indicators")},{text:(0,E.t)("Custom time intervals")},{text:(0,E.t)("Multiple enhanced watchlists")},{text:(0,E.t)("Bar replay on intraday bars")},{text:(0,E.t)("Multi-monitor support in Desktop app")}],pro_realtime:[{text:An((null===(r=(0,Sn.getConfig)(kn.ProductFeatures.INDICATORS_ON_CHART,Pn.ProPlans.ProRealtime))||void 0===r?void 0:r.limit)||0)},{text:Dn((null===(o=(0,Sn.getConfig)(kn.ProductFeatures.MULTIPLE_CHARTS,Pn.ProPlans.ProRealtime))||void 0===o?void 0:o.limit)||0)},{text:In((null===(i=(0,Sn.getConfig)(kn.ProductFeatures.SERVER_SIDE_ALERTS,Pn.ProPlans.ProRealtime))||void 0===i?void 0:i.limit)||0)},{text:(m=(null===(c=(0,Sn.getConfig)(kn.ProductFeatures.CHART_STORAGE,Pn.ProPlans.ProRealtime))||void 0===c?void 0:c.limit)||0,(0,E.t)("{chartLayoutsQuantity} saved chart layout",{plural:"{chartLayoutsQuantity} saved chart layouts",count:m,replace:{chartLayoutsQuantity:m.toString()}}))},{text:(0,E.t)("Intraday exotic charts")},{text:(0,E.t)("Charts based on custom formulas")},{text:(0,E.t)("Chart data export")},{text:(0,E.t)("Indicators on indicators")}],pro_premium:[{text:An((null===(l=(0,Sn.getConfig)(kn.ProductFeatures.INDICATORS_ON_CHART,Pn.ProPlans.ProPremium))||void 0===l?void 0:l.limit)||0)},{text:Dn((null===(s=(0,Sn.getConfig)(kn.ProductFeatures.MULTIPLE_CHARTS,Pn.ProPlans.ProPremium))||void 0===s?void 0:s.limit)||0)},{text:In((null===(u=(0,Sn.getConfig)(kn.ProductFeatures.SERVER_SIDE_ALERTS,Pn.ProPlans.ProPremium))||void 0===u?void 0:u.limit)||0)},{text:(0,E.t)("Unlimited saved chart layouts")},{text:(0,
E.t)("Second-based intervals")},{text:(0,E.t)("Alerts that don't expire")},{text:(0,E.t)("4x more data on charts (20K bars)")},{text:(0,E.t)("Publishing invite-only indicators")}]};var m;return a.createElement(a.Fragment,null,d[e].map((e,t)=>a.createElement("li",{key:t,className:Nn.itemFeatures},e.text,e.tooltip&&a.createElement("span",{title:e.tooltip,"aria-label":e.tooltip,className:B("apply-common-tooltip",Nn.tooltipTitle),onClick:On},a.createElement(ce.Icon,{icon:Tn,className:Nn.tooltipIcon})))))}(e))))}}var Mn=n(9716);const Ln=/{\w+}/;var Yn;function Un(e){const{price:t,period:n,color:r=Yn.Black}=e,o=E.t("Special price: ${price} {measure}"),i=E.t("{htmlTag}USD/{htmlCloseTag}{htmlTag}mo{htmlCloseTag}"),c=E.t("{htmlTag}USD/{htmlCloseTag}{htmlTag}year{htmlCloseTag}"),s=E.t("{htmlTag}USD/{htmlCloseTag}{htmlTag}2 years{htmlCloseTag}"),u=E.t("USD/mo"),d=E.t("USD/year"),m=E.t("USD/2 years");let p=i,g=u;switch(n){case l.BillingCycle.OneYear:p=c,g=d;break;case l.BillingCycle.TwoYears:p=s,g=m}const h=p.split(Ln).filter(e=>e.length>0),f=o.format({price:t,measure:g}),y=B(Mn.offerPrice,Mn[r]);return a.createElement("div",{className:y,"aria-label":f},a.createElement("span",{className:Mn.sup,"aria-hidden":!0},"$"),a.createElement("ins",{className:Mn.mainPrice,"aria-hidden":!0},t),a.createElement("span",{className:B(Mn.measure),"aria-hidden":!0},a.createElement(a.Fragment,null,a.createElement("span",null,h[0]),a.createElement("span",null,h[1]))))}!function(e){e.Gray="color-gray",e.Red="color-red",e.Black="color-black",e.Green="color-green"}(Yn||(Yn={}));var Fn=n(3615);function zn(e){(0,Fn.showWarning)({title:(0,E.t)("Manage account via app"),text:(0,E.t)("You can manage your subscription via the {app_name} TradingView app. In order to make changes, please go to the payment section of the app, found under profile settings.").format({app_name:e})})}var Hn=n(33040),Vn=n(84303),jn=n(38335),Gn=n(11313),Wn=n(18662);const qn=k();async function $n(e){const{proPlan:t,billingCycle:n,offer:a,type:r}=e,o=(0,E.t)("Sorry, your subscription cant currently be extended, downgraded or upgraded because your payment method doesnt support recurring payments. Please head to profile settings to update your payment method, then try again."),i=(0,E.t)("Recurring payment issue");let c=null;try{c=await(0,Wn.getDowngrade)({pro_plan:t,billing_cycle:n,offer:a})}catch(e){return["ApiError:downgrade_not_permitted"].includes(e.name)?void(0,Fn.showWarning)({title:i,text:o}):void(0,Fn.showWarning)({title:(0,E.t)("Error"),text:e.message})}if(!c)return void(0,Fn.showWarning)({title:(0,E.t)("Error"),text:(0,E.t)("Something went wrong")});const{current:l,downgrade:s,next_billing:u}=c;s?(0,Gn.changePlanDialog)({current:l,next:s,nextPayment:u,type:r,currentPayment:{currency:"USD",price:0},offer:a,onSuccess:function(){qn.emit({type:P.Downgrade})}}):(0,Fn.showWarning)({title:i,text:o})}var Kn=n(74364);function Qn(e){const{color:t,children:n,disabled:r,variant:o="primary",onClick:i,isLink:c=!1}=e,l=(0,
ut.useSafeMatchMedia)(dt["media-mf-tablet-landscape"],!0)?"xlarge":"medium";return a.createElement("div",null,c?a.createElement("a",{role:"button",href:"#",className:Kn.link,onClick:function(e){e.preventDefault(),void 0!==i&&i()}},n):a.createElement(bt.SquareButton,{color:t||"brand",size:l,variant:o,disabled:r,onClick:i,tabIndex:0,stretch:!0,className:Kn.button},n))}function Xn(e){const t=(0,E.t)("Start now");return a.createElement(Qn,{...e},e.text||t)}function Zn(e){const t=(0,E.t)("Buy now");return a.createElement(Qn,{...e},e.text||t)}function Jn(e){const t=(0,E.t)("Included");return a.createElement(Qn,{...e,disabled:!0},e.text||t)}function ea(e){const t=(0,E.t)("Extend",{context:"plan"});return a.createElement(Qn,{...e},e.text||t)}function ta(e){const t=(0,E.t)("Switch",{context:"plan"});return a.createElement(Qn,{...e},e.text||t)}function na(e){const t=(0,E.t)("Not available");return a.createElement(Qn,{...e,disabled:!0},e.text||t)}function aa(e){const t=(0,E.t)("Upgrade");return a.createElement(Qn,{...e},e.text||t)}function ra(e){const t=(0,E.t)("Downgrade");return a.createElement(Qn,{...e},e.text||t)}function oa(e){const t=(0,E.t)("Get 6 months free");return a.createElement(Qn,{...e},e.text||t)}function ia(e){const t=(0,E.t)("Get {discount}% off"),{discount:n=0,...r}=e,o=e.text||t.format({discount:n.toString()});return a.createElement(Qn,{...r},o)}function ca(e){const t=(0,E.t)("Try free for {days} day",{plural:"Try free for {days} days",context:"free_trial",count:e.trialLength}).format({days:(e.trialLength||"").toString()});return a.createElement(Qn,{...e},e.text||t)}function la(e){const t=(0,E.t)("Start now",{context:"basic"});return a.createElement(Qn,{...e},e.text||t)}function sa(e){const t=(0,E.t)("Downgrade activated");return a.createElement(Qn,{...e,disabled:!0},e.text||t)}function ua(e){const t=(0,E.t)("Reactivate current");return a.createElement(Qn,{...e},e.text||t)}var da,ma;!function(e){e[e.Free=0]="Free",e[e.Trial=1]="Trial",e[e.StartPlan=2]="StartPlan",e[e.EarlyAccess=3]="EarlyAccess",e[e.LastChance=4]="LastChance",e[e.CurrentLastChance=5]="CurrentLastChance",e[e.CurrentEarlyAccess=6]="CurrentEarlyAccess",e[e.SixMonthUpgrade=7]="SixMonthUpgrade",e[e.CurrentSixMonthUpgrade=8]="CurrentSixMonthUpgrade",e[e.Upgrade=9]="Upgrade",e[e.Downgrade=10]="Downgrade",e[e.Current=11]="Current",e[e.CurrentTrial=12]="CurrentTrial",e[e.BuyNow=13]="BuyNow",e[e.Included=14]="Included",e[e.Markets=15]="Markets",e[e.NotAvailable=16]="NotAvailable",e[e.OneUsdUpgrade=17]="OneUsdUpgrade",e[e.DowngradeActivated=18]="DowngradeActivated",e[e.ReactivateCurrent=19]="ReactivateCurrent",e[e.Switch=20]="Switch"}(da||(da={})),function(e){e[e.UpgradeTrial=0]="UpgradeTrial",e[e.DowngradeTrial=1]="DowngradeTrial",e[e.SkipTrial=2]="SkipTrial",e[e.DateStarted=3]="DateStarted",e[e.DateEnd=4]="DateEnd",e[e.DowngradeDescription=5]="DowngradeDescription",e[e.UpgradeDescription=6]="UpgradeDescription",e[e.CurrentPlan=7]="CurrentPlan"}(ma||(ma={}));const pa=a.memo(e=>{
const{action:t,offerId:r,...o}=e,{visitPaymentPage:i,startTrial:c,upgradePlan:u}=a.useContext(oe);function d(t){if(e.appName)return void zn(e.appName);const n={[Hn.ChangePlanType.Reactivate]:"reactivate",[Hn.ChangePlanType.Downgrade]:"downgrade",[Hn.ChangePlanType.Switch]:"switch"};g(`${e.proPlan} ${n[t]}`),$n({billingCycle:e.billingCycle||l.BillingCycle.OneYear,proPlan:e.proPlan,type:t})}switch(t){case da.EarlyAccess:case da.CurrentEarlyAccess:return a.createElement(ia,{...o,onClick:function(){const{discount:t,proPlan:n,appName:a}=e;if(a)return void zn(a);if(void 0!==t){g(`${n} early access ${t}`);const e=(0,jn.getVisitEarlyAccessPaymentPageProperties)(n,t);i(e.billingCycle,e.options)}}});case da.LastChance:case da.CurrentLastChance:return a.createElement(ia,{...o,onClick:function(){if(e.appName)return void zn(e.appName);e.isLowerWeightOffer?($n({billingCycle:e.billingCycle||l.BillingCycle.OneYear,proPlan:e.proPlan,offer:s.OFFERS.last_chance,type:Hn.ChangePlanType.Downgrade}),g(`${e.proPlan} ${s.OFFERS.last_chance} downgrade`)):r&&(i(e.billingCycle,{productName:e.offerId,fixedCycle:!0}),g(`${e.proPlan} ${s.OFFERS.last_chance}`))}});case da.SixMonthUpgrade:case da.CurrentSixMonthUpgrade:return a.createElement(oa,{...o,onClick:function(){if(e.appName)return void zn(e.appName);void 0!==r&&(i(l.BillingCycle.OneYear,{productName:e.offerId,fixedCycle:!0}),g(r),e.onClick&&e.onClick())}});case da.OneUsdUpgrade:return a.createElement(aa,{...o,onClick:function(){if(e.appName)return void zn(e.appName);void 0!==r&&(i(e.billingCycle,{productName:e.offerId,fixedCycle:!0}),g(r),e.onClick&&e.onClick())}});case da.Upgrade:return a.createElement(aa,{...o,onClick:async function(){if(e.appName)return void zn(e.appName);g(e.proPlan+" upgrade");const{isFeatureEnabled:t}=await Promise.resolve().then(n.t.bind(n,76266,19));if(t("pro_plan_upgrades_disabled"))return m();u(e.proPlan,e.billingCycle||l.BillingCycle.OneYear,()=>m())}});case da.DowngradeActivated:return a.createElement(sa,{...o});case da.ReactivateCurrent:return a.createElement(ua,{...o,onClick:()=>d(Hn.ChangePlanType.Reactivate)});case da.Downgrade:return a.createElement(ra,{...o,onClick:()=>d(Hn.ChangePlanType.Downgrade)});case da.Trial:return a.createElement(ca,{...o,onClick:function(){const{proPlan:t,billingCycle:n,discount:a,appName:r}=e;if(r)return void zn(r);if(!window.is_authenticated)return void(0,Vn.showSignModal)({source:"Go pro page"});let o=t.toString();a&&e.billingCycle===l.BillingCycle.OneYear&&(o=(0,p.toEarlyAccess)(o,a));g(t+" trial"),c(o,n||l.BillingCycle.Monthly)}});case da.Free:return a.createElement(la,{...o,onClick:function(){g("basic"),(0,Vn.showSignModal)({mode:"signup",source:"Go pro page"})}});case da.StartPlan:return a.createElement(Xn,{...o,onClick:h});case da.CurrentTrial:case da.BuyNow:return a.createElement(Zn,{...o,onClick:function(){m()}});case da.Current:return a.createElement(ea,{...o,onClick:h});case da.Switch:return a.createElement(ta,{...o,onClick:()=>d(Hn.ChangePlanType.Switch)});case da.NotAvailable:return a.createElement(na,{...o});default:
return a.createElement(Jn,{...o})}function m(){const{proPlan:t,billingCycle:n,appName:a}=e;a?zn(a):(g(t),i(n,{productName:t,fixedCycle:!1}))}function g(e){f("gopro",e)}function h(){m()}});var ga=n(71360),ha=n(60495);function fa(){document.removeEventListener("scroll",fa),document.removeEventListener("touchstart",fa),(0,Ht.hide)()}function ya(e){Vt.mobiletouch&&((0,Ht.showOnElement)(e.currentTarget,{tooltipDelay:0}),document.addEventListener("scroll",fa),document.addEventListener("touchstart",fa))}function va(e){const{discount:t,fullMonthlyPrice:n,fullYearlyPrice:r,isEarlyBird:o=!1,isVisibleInformationIcon:i=!0,isLastChance:c=!1}=e,l=E.t("Compared to paying monthly."),s=E.t("All of your unused trial days will be added to your subscription. This offer expires soon."),u=E.t("The full monthly price is ${monthlyPrice}. The monthly price within the yearly subscription is ${yearlyPrice}.").format({monthlyPrice:n,yearlyPrice:r}),d=E.t("Compared to paying monthly. This offer expires soon."),m=E.t("You save {strongTag}${amount}{strongTag} a year"),[p,g,h,f]=m.split(/{strongTag}|{amount}/),y=c?d:l+" "+(o?s:u);if(0===t)return a.createElement(a.Fragment,null);const v=B(ga["tooltip-wrap"],i&&"apply-common-tooltip");return a.createElement("div",{className:ga.label},a.createElement("span",null,p,a.createElement("strong",null,g+t.toString()+h),f),i&&a.createElement("span",{className:ga["info-icon-wrap"]},a.createElement(ce.Icon,{icon:ha,className:ga["info-icon"]})),i&&a.createElement("div",{title:y,"aria-label":y,onClick:ya,className:v}))}var Ca=n(63332);class ba extends a.PureComponent{render(){const{proPlan:e}=this.props;return a.createElement("div",{className:Ca.cardTitle},(0,p.humanizeCardPlan)(e))}}var Ea=n(86326);class wa extends a.PureComponent{render(){let e;switch(this.props.proPlan){case Pn.ProPlans.Free:e=E.t("For new traders and investors starting their journey");break;case Pn.ProPlans.Pro:e=E.t("Distraction-free trading and investing, with more charts, intervals and indicators");break;case Pn.ProPlans.ProRealtime:e=E.t("Intraday technical analysis for day traders looking to take things to the next level");break;case Pn.ProPlans.ProPremium:e=E.t("Highest precision and maximum data to capture all possible opportunities")}return a.createElement("div",{className:Ea.cardDescription},e)}}var xa=n(54417),_a=n(64790);function Pa(e){const{proPlan:t,isActiveCard:n,labelType:r,isSixMonthsOffer:o}=e;if(1===r)return a.createElement("div",{className:B(_a.label,_a.gift,_a["label-gift--"+t],!n&&_a["no-active-card"]),dir:"ltr"},a.createElement(ce.Icon,{icon:xa,className:_a.icon}));const i=E.t("-{numberDiscount}% off").format({numberDiscount:e.discount.toString()}),c=o?_a["label-discount-upsell"]:_a["label-discount--"+t];return a.createElement("div",{className:B(_a.label,_a.discount,c,!n&&_a["no-active-card"]),dir:"ltr"},i)}var Sa=n(84235);const ka=/{\w+}/;function Ta(e){
const t=E.t("or skip trial and {openLink}pay now{closeLink}"),{visitPaymentPage:n}=a.useContext(oe),{proPlan:r,billingCycle:o,offerId:i}=e,c=t.split(ka).filter(e=>e.length>0),l=(0,a.useCallback)(e=>{e.preventDefault(),window.runOrSignIn(()=>n(o,{productName:i||r}),{source:"Skip trial"}),(0,G.trackEvent)("Gopro","click_CTA_pay_now",r),f("gopro",r+" skip trial")},[r,o,i]);return a.createElement("div",{className:Sa.skipTrial},c[0],a.createElement("a",{href:"/order/",onClick:l,className:Sa.link},c[1]))}var Na;!function(e){e[e.Downgrade=0]="Downgrade",e[e.Upgrade=1]="Upgrade"}(Na||(Na={}));var Aa=n(3412);function Da(e){const{action:t,eventAction:n,proPlan:r,offerId:o}=e,{changeTrial:i}=a.useContext(oe),{state:c}=a.useContext(D),s=t===ma.DowngradeTrial?E.t("Trial downgrade"):E.t("Trial upgrade");return a.createElement("a",{href:"",className:Aa["change-trial"],onClick:function(e){var a,s;e.preventDefault();const u=null===(s=null===(a=null==c?void 0:c.subscriptionDetails)||void 0===a?void 0:a.renewal)||void 0===s?void 0:s.billing_cycle;if(void 0===u)return;let d=r.toString();o&&u===l.BillingCycle.OneYear&&(d=o);t===ma.DowngradeTrial?(i(d,u,Na.Downgrade),(0,G.trackEvent)("Gopro",n,"Downgrade trial"),f("gopro",d+" downgrade trial")):t===ma.UpgradeTrial&&(i(d,u,Na.Upgrade),(0,G.trackEvent)("Gopro",n,"Upgrade trial"),f("gopro",d+" upgrade trial"))},role:"button"},s)}function Ia(e){const{user:t}=a.useContext(D),{proPlan:n}=e,r=(null==t?void 0:t.is_trial)&&void 0!==(null==t?void 0:t.pro_plan)&&(0,p.getProductForTrial)(null==t?void 0:t.pro_plan)===n;return a.createElement("div",{className:Aa["current-trial"]},r&&E.t("Current trial"))}var Ra=n(1787),Oa=n(33848);function Ba(e){const{secondaryAction:t,proPlan:n,offerId:r,billingCycle:o,showChangeTrial:i,currentSubscriptionExpireOn:c}=e;if(t===ma.SkipTrial)return a.createElement(Ta,{proPlan:n,billingCycle:o,offerId:r});if(i&&(t===ma.UpgradeTrial||t===ma.DowngradeTrial))return a.createElement(Da,{action:t,eventAction:`click_CTA_${n}_top'}`,proPlan:n,offerId:r});if(c&&t===ma.DateStarted)return a.createElement("div",{className:Oa.description},E.t("Starting on {date}").format({date:_e.dateFormatFunctions["MMM dd, yyyy"](new Date(c),!1)}));if(c&&t===ma.DateEnd)return a.createElement("div",{className:Oa.description},E.t("Ending on {date}").format({date:_e.dateFormatFunctions["MMM dd, yyyy"](new Date(c),!1)}));if(t===ma.DowngradeDescription){const e=E.t("If chosen, this'll start {solution_link}once the existing plan ends{close_solution_link}").split(/{solution_link}|{close_solution_link}/);return a.createElement("div",{className:Oa.description},e[0],a.createElement("a",{className:Oa.link,href:"?solution="+Ra.solutionIds.GOPRO_DOWNGRADE_DESCRIPTION,role:"button"},e[1]),e[2])}if(t===ma.UpgradeDescription){const e=E.t("Pay nothing extra — {solution_link}here's how{solution_link}").split(/{solution_link}|{close_solution_link}/);return a.createElement("div",{className:Oa.description},e[0],a.createElement("a",{className:Oa.link,href:"?solution="+Ra.solutionIds.GOPRO_UPGRADE_DESCRIPTION,
role:"button"},e[1]),e[2])}return t===ma.CurrentPlan?a.createElement("div",{className:Oa.description},E.t("This is your current plan")):a.createElement(Ia,{proPlan:n})}var Ma=n(84895);function La(e){return e===da.CurrentSixMonthUpgrade||e===da.SixMonthUpgrade}function Ya(e){const{primaryAction:t,secondaryAction:n,billingCycle:r,offerProduct:o,product:i,isLowerWeightOffer:c,appName:s,currentSubscriptionExpireOn:u,trialLength:d,isActive:m,className:g,priceProps:h,label:f}=e,{cost:y}=i,v=i.text_id,C=function(e){return e===da.CurrentEarlyAccess||e===da.EarlyAccess}(t),b=function(e){return e===da.LastChance||e===da.CurrentLastChance}(t),E=function(e){return e===da.OneUsdUpgrade}(t),w=La(t),x=!s&&function(e){return e===ma.UpgradeTrial||e===ma.DowngradeTrial}(n);let _;o&&o.product_id?_=o.product_id:o&&(_=o.product.text_id);const P=(0,p.countDiscountByBillingCycle)(h.price,y,r),S=B(Ma.card,Ma[v],g);return a.createElement("div",{className:S},void 0!==f&&a.createElement(Pa,{isSixMonthsOffer:w,isActiveCard:m,proPlan:v,discount:h.discount,labelType:f}),a.createElement(ba,{proPlan:v}),a.createElement(wa,{proPlan:v}),a.createElement(Un,{price:(0,p.round2)(h.price),period:l.BillingCycle.Monthly,color:E?Yn.Red:Yn.Black}),a.createElement(va,{discount:E?0:P,fullMonthlyPrice:(0,p.round2)(h.canceledPrice),fullYearlyPrice:(0,p.round2)(h.price),isEarlyBird:C,isLastChance:b,isVisibleInformationIcon:!w}),a.createElement("div",{className:Ma.button},a.createElement(pa,{proPlan:v,discount:h.discount,action:t,trialLength:d,offerId:_,billingCycle:r,variant:t===da.Downgrade?"secondary":"primary",isLowerWeightOffer:c,appName:s})),a.createElement(Ba,{secondaryAction:n,proPlan:v,offerId:_,billingCycle:r,showChangeTrial:x,currentSubscriptionExpireOn:u}))}var Ua=n(70191);function Fa(e){const{card:t,gridKey:n}=e;let r;La(t.primaryAction)&&(r=1),t.priceProps.discount>0&&(r=0);const o=B(Ua.top,Ua["top-"+n],{[Ua["is-active"]]:t.isActive,[Ua["with-label"]]:void 0!==r}),i=B(Ua.bottom,Ua["bottom-"+n],{[Ua["is-active"]]:t.isActive});return a.createElement(a.Fragment,null,a.createElement(Ya,{...t,isLowerWeightOffer:t.isLowerWeightOffer,appName:t.appName,className:o,label:r}),a.createElement(Bn,{proPlan:t.product.text_id,className:i}))}var za=n(87239),Ha=n(96644),Va=n(29201);const ja=a.memo((function(e){const t=`/share-your-love/?source=${e.source}&feature=card_referral_note`,n=(0,E.t)("Refer a friend and earn ${bonus} to upgrade your plan").format({bonus:"30"});return a.createElement("a",{className:Ha.container,href:t,target:"_blank"},a.createElement("span",{className:Ha.text},n),a.createElement(ce.Icon,{icon:za,className:B(Ha.icon,Va.icon)}))}));var Ga;!function(e){e.Plans="plans",e.Compare="compare",e.Markets="markets",e.WallOfLove="walloflove",e.FAQ="faq"}(Ga||(Ga={}));Ga.Plans,Ga.Compare,Ga.Markets,Ga.WallOfLove,Ga.FAQ;var Wa=n(61975);function qa(e){const t=E.t("Compare all features"),n=new URL("./gopro/",window.location.origin);return n.searchParams.append("source",e.source),n.searchParams.append("feature","card_compare_features"),n.hash=Ga.Compare,
a.createElement("a",{className:Ha.container,href:n.href,target:"_blank"},a.createElement("span",{className:Ha.text},t),a.createElement(ce.Icon,{icon:Wa,className:Ha.icon}))}var $a,Ka=n(31976);!function(e){e[e.CompareFeatures=0]="CompareFeatures",e[e.ReferralNote=1]="ReferralNote"}($a||($a={}));const Qa=a.memo((function(e){const{type:t,source:n}=e;return a.createElement("div",{className:Ka["under-cards"]},t===$a.CompareFeatures&&a.createElement(qa,{source:n}),t===$a.ReferralNote&&a.createElement(ja,{source:n}))}));var Xa=n(88537);function Za(e,t,n,a){var r,o,i,c,l;let s=null!==(r=e.getCost({...t,fixed_cost:!0},n))&&void 0!==r?r:0;const u=t.cost;let d=0,m=null!==(o=e.getCost(t,n))&&void 0!==o?o:0;const p={...t};delete p.cost_annual,delete p.cost_biennial;const g=null!==(i=e.getCost(p,n))&&void 0!==i?i:0;void 0!==a&&(s=null!==(c=e.getCost({...a,fixed_cost:!0},n))&&void 0!==c?c:0,d=a.discount.discount_percent||0,m=null!==(l=e.getCost(a,n))&&void 0!==l?l:0);const h=Math.round(100*(1-s/t.cost));return{price:s,canceledPrice:u,discount:d,fullPrice:m,canceledFullPrice:g,annualProfit:Math.round(100*(1-s/t.cost_annual)),profit:h}}class Ja{constructor(e){this.createCardInfo=e=>{const{pro:t,appName:n,trialLength:a,userProduct:r,availableOffers:o,userAuthenticated:i,subscriptionDetails:c}=this._cardsData,l=i?this._getCardPrimaryAction(e):da.Trial,u=i?this._getCardSecondaryAction(e,l):ma.SkipTrial,d=null!==r&&e.upgrade_weight<r.upgrade_weight;let m,p=this._cardsData.billingCycle;if(m=o[s.OFFERS.early_access]?this._getCardOfferProduct(e,o[s.OFFERS.early_access]):o[s.OFFERS.six_months]?this._getCardOfferProduct(e,o[s.OFFERS.six_months]):o[s.OFFERS.trial]?this._getCardOfferProduct(e,o[s.OFFERS.trial]):this._getCardOfferProduct(e,o[s.OFFERS.last_chance]),m)(null==m?void 0:m.product.discount.billing_cycle)&&(p=m.product.discount.billing_cycle);else{const t=this._getAvailableOffer(e);(null==t?void 0:t.product.discount.billing_cycle)&&(m=t,p=null==m?void 0:m.product.discount.billing_cycle)}return{billingCycle:p,userBillingCycle:null==c?void 0:c.billing_cycle,primaryAction:l,secondaryAction:u,offerProduct:m,product:e,isLowerWeightOffer:d,trialLength:a,appName:n,currentSubscriptionExpireOn:null==c?void 0:c.expire_on,isActive:er(l),priceProps:Za((0,Xa.ensure)(t),e,p,null==m?void 0:m.product)}},this._getCardPrimaryAction=e=>{var t,n,a;const{isTrialPlan:r,userProduct:o,bannedTrial:i,billingCycle:c,trialAvailable:l,availableOffers:s,subscriptionDetails:u}=this._cardsData,d=null==u?void 0:u.billing_cycle,{early_access:m,last_chance:p,one_usd:g,six_months:h}=s,f=this._getCardOfferProduct(e,m),y=this._getCardOfferProduct(e,h),v=this._getCardOfferProduct(e,p)
;return void 0!==m&&f?(null==o?void 0:o.text_id)===(null===(t=null==f?void 0:f.product)||void 0===t?void 0:t.text_id)?da.CurrentEarlyAccess:da.EarlyAccess:void 0!==h&&void 0!==y?(null==o?void 0:o.text_id)===(null===(n=y.product)||void 0===n?void 0:n.text_id)?da.CurrentSixMonthUpgrade:da.SixMonthUpgrade:void 0!==p&&v?(null==o?void 0:o.text_id)===(null===(a=null==v?void 0:v.product)||void 0===a?void 0:a.text_id)?da.CurrentLastChance:da.LastChance:void 0!==g&&g.products[e.text_id]?da.OneUsdUpgrade:null!==o&&r&&e.upgrade_weight===o.upgrade_weight?da.CurrentTrial:null!==o&&void 0!==d?this._getRegularCard(e,o,c,d):l?da.Trial:i?da.BuyNow:da.StartPlan},this._getCardSecondaryAction=(e,t)=>{const{isTrialPlan:n,userProduct:a,trialAvailable:r,subscriptionDetails:o}=this._cardsData,i=null==o?void 0:o.billing_cycle,c=n&&e.upgrade_weight===(null==a?void 0:a.upgrade_weight);if(null!==a&&n){if(e.upgrade_weight<a.upgrade_weight)return ma.DowngradeTrial;if(e.upgrade_weight>a.upgrade_weight)return ma.UpgradeTrial}return!c&&r?ma.SkipTrial:t===da.Downgrade||t===da.Switch?ma.DowngradeDescription:t===da.Upgrade&&i!==l.BillingCycle.Monthly?ma.UpgradeDescription:t===da.DowngradeActivated?ma.DateStarted:t===da.ReactivateCurrent?ma.DateEnd:null===a||n||e.text_id!==a.text_id?void 0:ma.CurrentPlan},this._getCardOfferProduct=(e,t)=>{if(!t)return;const n=e.text_id,a=t.products[n];if(!a||!a.product.discount.billing_cycle)return;const r=this._cardsData.billingCycle===l.BillingCycle.TwoYears?l.BillingCycle.OneYear:this._cardsData.billingCycle,o=[String(Pn.ProPlans.Pro),String(Pn.ProPlans.ProRealtime),String(Pn.ProPlans.ProPremium)].includes(n),i=a.product.discount.billing_cycle===r;return o&&i?a:void 0},this._getAvailableOffer=e=>{const{text_id:t}=e,{one_usd:n}=this._cardsData.availableOffers;if(n)return n.products[t]},this._getRegularCard=(e,t,n,a)=>{var r,o;const{subscriptionDetails:i}=this._cardsData,c=null===(r=null==i?void 0:i.renewal)||void 0===r?void 0:r.product_id,l=null===(o=null==i?void 0:i.renewal)||void 0===o?void 0:o.billing_cycle,s=this._downgradeAvailable(),u=function(e,t){var n,a;if(!(null===(n=null==e?void 0:e.renewal)||void 0===n?void 0:n.is_active))return!1;const r=null===(a=null==e?void 0:e.renewal)||void 0===a?void 0:a.offer_kind;return t?t===r:void 0!==r&&["downgrade","last_chance","downgrade_black_friday"].includes(r)}(this._cardsData.subscriptionDetails);if(e.upgrade_weight===t.upgrade_weight){if(u){if(c===e.text_id&&l===n)return da.DowngradeActivated;if(s&&a===n)return da.ReactivateCurrent}return s&&n<a?da.Switch:n<a?da.Included:da.Current}return e.upgrade_weight>t.upgrade_weight?da.Upgrade:s&&e.upgrade_weight<t.upgrade_weight?u&&c===e.text_id&&l===n?da.DowngradeActivated:da.Downgrade:da.Included},this._downgradeAvailable=()=>!this._cardsData.isDowngradeDisabled&&this._cardsData.canDowngrade,this._cardsData={pro:e.pro,appName:e.appName,userProduct:e.userProduct,trialLength:e.trialLength,isTrialPlan:e.isTrialPlan,canDowngrade:e.canDowngrade,billingCycle:e.billingCycle,bannedTrial:e.bannedTrial,trialAvailable:e.trialAvailable,
availableOffers:e.availableOffers,userAuthenticated:e.userAuthenticated,isDowngradeDisabled:e.isDowngradeDisabled,subscriptionDetails:e.subscriptionDetails}}}function er(e){return[da.CurrentEarlyAccess,da.CurrentSixMonthUpgrade,da.CurrentLastChance,da.Current,da.CurrentTrial].includes(e)}function tr(e){const{className:t,proPlans:n,underCards:r}=e,o=(0,a.useMemo)(()=>new Ja(e),[e]),i=n.map(o.createCardInfo),c=i.some(e=>e.isActive);return a.createElement("div",{className:B(t,Ua["cards-wrap"])},a.createElement("div",{className:Ua.cards},a.createElement("div",{className:B(Ua["cards-scroll-wrap"],c&&Ua["has-active"])},i.map((e,t)=>a.createElement(Fa,{card:e,gridKey:t,key:e.product.text_id})))),a.createElement(Qa,{type:r,source:e.source}))}var nr=n(17946),ar=n(14488),rr=n.n(ar);function or(e,t){return t||null==e||("string"==typeof e||Array.isArray(e))&&0===e.length}const ir=(e,t)=>{const n=(0,a.useContext)(nr.CustomBehaviourContext),{className:r,isSelected:o,children:i,startIcon:c,showCaret:l,endIcon:s,forceDirection:u,iconOnly:d,color:m="gray",variant:p="primary",size:g="medium",enableActiveStateStyles:h=n.enableActiveStateStyles,enablePointerOnHover:f=n.enablePointerOnHover}=e;return B(r,rr()["light-button"],o&&rr().selected,or(i,d)&&rr()["no-content"],c&&rr()["with-start-icon"],(l||s)&&rr()["with-end-icon"],t&&rr()["with-grouped"],u&&rr()["force-direction-"+u],rr()["variant-"+p],rr()["color-"+m],rr()["size-"+g],rr()["typography-"+g],!f&&rr()["disable-cursor-pointer"],!h&&rr()["disable-active-state-styles"])};function cr(e){const{startIcon:t,endIcon:n,showCaret:r,iconOnly:o,ellipsis:i=!0,children:c}=e;return a.createElement(a.Fragment,null,t&&a.createElement(ce.Icon,{className:rr().icon,icon:t}),!or(c,o)&&a.createElement("span",{className:rr().content},i?a.createElement("span",{className:rr()["ellipsis-container"]},c):c),(n||r)&&(e=>a.createElement(ce.Icon,{className:B(rr().icon,e.showCaret&&rr().caret),icon:e.showCaret?le:e.endIcon}))(e))}var lr=n(86332);function sr(e){const{isGrouped:t}=a.useContext(lr.ControlGroupContext),{reference:n,className:r,isSelected:o,children:i,startIcon:c,iconOnly:l,ellipsis:s,showCaret:u,forceDirection:d,endIcon:m,color:p,variant:g,size:h,enableActiveStateStyles:f,enablePointerOnHover:y,...v}=e;return a.createElement("button",{...v,className:ir({className:r,isSelected:o,children:i,startIcon:c,iconOnly:l,showCaret:u,forceDirection:d,endIcon:m,color:p,variant:g,size:h,enableActiveStateStyles:f,enablePointerOnHover:y},t),ref:n},a.createElement(cr,{showCaret:u,startIcon:c,endIcon:m,iconOnly:l,ellipsis:s},i))}var ur=n(79370),dr=n.n(ur);function mr(e,t,n){return{isTop:e<t,isRight:e%t==t-1,isBottom:e>=t*(n-1),isLeft:e%t==0}}function pr(e){const{children:t,rows:n,cols:r,disablePositionAdjustment:o,className:i,...c}=e,l=a.Children.count(t),s=null!=r?r:l,u=null!=n?n:function(e,t){return Math.ceil(e/t)}(l,s),d=(0,a.useMemo)(()=>{const e=[];for(let t=0;t<l;t++)e.push({isGrouped:!0,cellState:mr(t,s,u),disablePositionAdjustment:o});return e
},[l,s,u,o]),m=a.Children.map(t,(e,t)=>a.createElement(lr.ControlGroupContext.Provider,{value:d[t]},e)),p={"--ui-lib-control-group-cols":s.toString(10),"--ui-lib-control-group-rows":u.toString(10)};return a.createElement("span",{className:B(dr().group,i),style:p,...c},m)}var gr=n(88755),hr=n.n(gr);function fr(e){const{children:t,className:n,...r}=e;return a.createElement(pr,{className:M()(hr()["light-button-group"],n),...r},t)}var yr=n(99925);const vr=a.memo((function(e){return a.createElement("div",{className:yr.label},e.children)}));var Cr=n(59899),br=n(14333);const Er=a.memo((function(e){const{billingCycle:t,hide:n=!1,discount:r,labelType:o,onChange:i}=e,c=E.t("Monthly"),s=E.t("Annually");let u;u=0===o?r?E.t("Going annual will save you up to {discount}% {noWrapTag}this year {emoji}{noWrapTagClose}").format({discount:r}):E.t("Annually you have {discount}% off which is 2 months {noWrapTag}free {emoji}{noWrapTagClose}").format({discount:"16"}):E.t("Go for a year plan, get 6 months free. {noWrapTag}Good times {emoji}{noWrapTagClosed}");const d=u.split(/{emoji}|{noWrapTag}|{noWrapTagClose}/);if(n)return null;const m=t===l.BillingCycle.Monthly,p=t===l.BillingCycle.OneYear,g=a.useCallback(()=>{i&&i(l.BillingCycle.Monthly)},[]),h=a.useCallback(()=>{i&&i(l.BillingCycle.OneYear)},[]);return a.createElement("div",{className:br.container},a.createElement("div",{className:br.switcher,role:"radiogroup"},a.createElement(fr,{cols:2},a.createElement(sr,{"aria-label":c,"aria-checked":m,onClick:g,role:"radio",tabIndex:0,isSelected:m,variant:"quiet-primary"},c),a.createElement(sr,{"aria-label":s,"aria-checked":p,onClick:h,role:"radio",tabIndex:0,isSelected:p,variant:"quiet-primary"},s)),a.createElement(ce.Icon,{icon:Cr,className:br["arrow-curve"]})),a.createElement(vr,null,d[0],a.createElement("span",{className:br.nowrap}," ",d[1],a.createElement("span",{className:br.emoji}," ",0===o?"😍":"🎁"),d[3])))}));var wr=n(53746),xr=n(75246);function _r(e){const{title:t,secondary:n,className:r,secondaryClassName:o}=e;return a.createElement("div",{className:B(xr.titleContainer,r)},a.createElement("h1",{className:xr.title},t),n&&a.createElement("p",{className:B(xr.secondary,o)},n))}var Pr=n(22020);a.memo(e=>{const[t,n]=Sr(e);return a.createElement(_r,{className:Pr.title,secondaryClassName:Pr.secondary,title:t,secondary:n})});function Sr(e){const{availableOffers:t,userAuthenticated:n,userBillingCycle:a,userProduct:r,affiliateName:o,userHadPro:i,isTrialPlan:c}=e,u=E.t("Plans for every level of ambition"),d=E.t("Try any of our plans, free for {days} day",{plural:"Try any of our plans, free for {days} days",context:"free_trial",count:e.trialLength}).format({days:e.trialLength.toString()}),m=E.t("Early bird offer"),p=E.t("Limited offer for monthly subscribers"),g=E.t("Wait, don't go"),h=E.t("Get an upgrade for $1"),f=E.t("You've got the most powerful plan. Enjoy!"),y=E.t("Your bonus is waiting for you");return n?s.OFFERS.trial in t?[d]:function(e,t){return e&&s.OFFERS.early_access in t&&void 0!==t.early_access
}(c,t)?[m]:s.OFFERS.six_months in t?[p]:s.OFFERS.last_chance in t?[g]:s.OFFERS.one_usd in t?[h]:null!==r&&r.text_id===Pn.ProPlans.ProPremium&&void 0!==a&&[l.BillingCycle.OneYear,l.BillingCycle.TwoYears].includes(a)?[f]:o&&!i?[y]:[u]:[u]}var kr=n(24169);const Tr=a.memo((function(e){const[t,n]=Sr(e);return a.createElement("div",{className:kr.titleContainer},a.createElement("h2",{className:kr.title},t),n&&a.createElement("p",{className:kr.secondary},n))}));var Nr=n(78365);const Ar=a.memo((function(e){var t,n;const{onChangeBillingCycle:r}=e,{user:o,pro:i,state:c}=a.useContext(D),{bannedTrial:u,canDowngrade:d,subscriptionDetails:m,affiliateUsername:f}=c,y=a.useMemo(()=>{var e,t;return null!==(t=null===(e=null==i?void 0:i.getProductsByType(i.PRODUCT_TYPES.pro_plan))||void 0===e?void 0:e.filter(e=>!e.is_limited))&&void 0!==t?t:[]},[i]),v=i&&o?h(i,o,null==c?void 0:c.subscriptionDetails):l.BillingCycle.Monthly,[C,b]=a.useState(v);a.useEffect(()=>{i&&o&&b(h(i,o,null==c?void 0:c.subscriptionDetails))},[o,i,c]);const E=a.useCallback(e=>{b(e),r(e)},[r]);if(null===o||null===i||0===y.length)return a.createElement("div",{className:Nr.container});const{userBillingCycle:w,isTrialPlan:x,userProduct:_}=function(e,t){let n=!1,a=null;const r=null==t?void 0:t.billing_cycle,o=null==t?void 0:t.product_id;if(o){n=(0,p.isTrialProduct)(o);const t=n?(0,p.getProductForTrial)(o):o;a=e.getProduct(t)}return{userBillingCycle:r,isTrialPlan:n,userProduct:a}}(i,m),P=null!==(t=null==o?void 0:o.available_offers)&&void 0!==t?t:{},S=g(P),k=s.OFFERS.trial in P,T=window.is_authenticated,N=(0,V.isFeatureEnabled)("pro_plan_downgrades_disabled"),A=null!==(n=null==o?void 0:o.app_name)&&void 0!==n?n:"",I=(0,xe.getTrialLength)();return a.createElement("div",{className:Nr["vertical-alignment-height"]},a.createElement("div",{className:Nr.container},a.createElement("div",{className:Nr["block-wrap"]},a.createElement(Tr,{affiliateName:f,userAuthenticated:T,availableOffers:P,userBillingCycle:w,userHadPro:Boolean(null==o?void 0:o.had_pro),userProduct:_,isTrialPlan:x,trialLength:I}),a.createElement(wr.GoproOfferCountdown,{userAuthenticated:T,availableOffers:P}),a.createElement(Er,{billingCycle:C,onChange:E,hide:S||(null==o?void 0:o.is_trial)||void 0!==w&&w!==l.BillingCycle.Monthly,labelType:P[s.OFFERS.six_months]?1:0}),a.createElement(tr,{className:Nr.cards,availableOffers:P,trialAvailable:k,proPlans:y,userAuthenticated:T,bannedTrial:u,billingCycle:C,isTrialPlan:x,userProduct:_,isDowngradeDisabled:N,appName:A,canDowngrade:d,subscriptionDetails:m,trialLength:I,underCards:$a.CompareFeatures,pro:i,source:"gopro_order_dialog"}))))}));var Dr=n(31946),Ir=n(74745),Rr=n(41285);const Or=new Set(["exchange-iceusa"]);function Br(e){const{onChecked:t,products:n,hasExchanges:r,billingCycle:o,paymentTab:i,showError:c}=e,[l,s]=(0,a.useState)(!1),[u,d]=(0,a.useState)(r),[m,p]=(0,a.useState)({nonPro:!1,terms:!1,ice:!1});(0,a.useEffect)(()=>{const e=n.some(e=>Or.has(e));s(e),d(r)},[n,r]),(0,a.useEffect)(()=>{const e=[m.terms];l&&e.push(m.ice),u&&e.push(m.nonPro);const n=e.every(e=>e);t(n)
},[m,l,u,i]);const g=(0,a.useCallback)(e=>{p({...m,[e]:!m[e]})},[m]),h=E.t("Non-professional trader means any natural person who receives market data solely for his/her personal, non-business use and cannot be a corporation, trust, organization, institution or partnership account.");return a.createElement("div",{className:Rr.termsCheckboxesContainer},l&&a.createElement(Ir.TermsCheckbox,{checked:m.ice,onChange:()=>g("ice"),labelText:E.t("I have read and agree with the {iceLink}ICE Subscriber Agreement{closeLink}.").format({iceLink:'<a class="link" href="https://s3.tradingview.com/exchange-agreements/ice-subscriber-addendum.pdf" target="_blank">',closeLink:"</a>"}),checkboxId:"ice",showError:c}),u&&a.createElement(Ir.TermsCheckbox,{checked:m.nonPro,onChange:()=>g("nonPro"),labelText:E.t("I'm a non-professional trader"),checkboxId:"non-pro",showError:c},a.createElement("span",{className:M()("apply-common-tooltip",Rr.nonProLable),title:h,"aria-label":h},E.t("I'm a non-professional trader"),a.createElement(ce.Icon,{icon:Tn,className:Rr.infoIcon}))),a.createElement(Ir.TermsCheckbox,{checked:m.terms,onChange:()=>g("terms"),labelText:Mr(i,o,n),checkboxId:"terms-of-use",showError:c}))}function Mr(e,t,n){return e===te.PaymentTab.Ecommpay&&n.length>1?`${Yr()} ${Lr()}`:e===te.PaymentTab.Coinbase?E.t("{policyText} I confirm that refunds will only be made in line with the situations they describe.").format({policyText:Yr()}):function(e){return`${{[l.BillingCycle.OneYear]:E.t("I authorize TradingView to charge me automatically every year, until I cancel my subscription."),[l.BillingCycle.Monthly]:E.t("I authorize TradingView to charge me automatically every month, until I cancel my subscription."),[l.BillingCycle.ThreeMonths]:E.t("I authorize TradingView to charge me automatically every three months, until I cancel my subscription."),[l.BillingCycle.TwoYears]:E.t("I authorize TradingView to charge me automatically every two years, until I cancel my subscription.")}[e]} ${E.t("{acknowledgeText} The subscription can be canceled at any time from the Account and Billing section in the Profile settings. {policyText}").format({termsLink:'<a class="link" href="/policies/" target="_blank">',privacyLink:'<a class="link" href="/privacy-policy/" target="_blank">',closeLink:"</a>",policyText:Yr(),acknowledgeText:Lr()})}`}(t)}function Lr(){return E.t("I acknowledge that refunds are made according to the Terms of Use.")}function Yr(){return E.t("I have read, and agree to, TradingView's {termsLink}Terms of Use{closeLink} and {privacyLink}Privacy Policy{closeLink}.").format({termsLink:'<a class="link" href="/policies/" target="_blank">',privacyLink:'<a class="link" href="/privacy-policy/" target="_blank">',closeLink:"</a>"})}var Ur=n(76221);function Fr(e){const{products:t,defaultTab:n,currentTab:r,buttonContainerRef:o,billingCycle:i,hasExchanges:c,ipCountryCode:s,onSuccessPurchase:u,onTabChange:d,onError:m,onClose:p,onBillingAddressChange:g,currency:h,price:f,blockedCountries:y}=e,[v,C]=(0,a.useState)(!1),[b,w]=(0,a.useState)(!1),[x,_]=(0,
a.useState)([]);(0,a.useEffect)(()=>{var e,t;const n=[];try{(0,V.isFeatureEnabled)("braintree-apple-pay")&&(null===(e=window.ApplePaySession)||void 0===e?void 0:e.supportsVersion(3))&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||n.push(te.PaymentTab.ApplePay)}catch(e){n.push(te.PaymentTab.ApplePay)}(0,V.isFeatureEnabled)("braintree-google-pay")||n.push(te.PaymentTab.GooglePay),(0,V.isFeatureEnabled)("ecommpay_ru")&&(0,mt.showEcommpay)(s)&&i===l.BillingCycle.Monthly&&n.push(te.PaymentTab.Coinbase),(0,mt.canShowPaypalPaymentMethod)(s)||n.push(te.PaymentTab.Paypal),_(n)},[i,s]);const P=(0,a.useCallback)(e=>{d(e),w(!1)},[d]);return a.createElement("div",null,a.createElement(Bt,{text:E.t("Payment method")}),a.createElement(Dr.PaymentMethod,{onPurchase:ne.onOrderPurchase,defaultTab:n,products:t,billingCycle:i,onTabChange:P,onSuccess:u,onError:m,buttonContainer:o,checked:v,switcherContainerClassName:Ur.swithcherContainer,excludedTabs:x,onCheckboxValidityChange:w,onClose:p,onBillingAddressChange:g,price:f,hideTotalPrice:!0,defaultCountry:s,currency:h,blockedCountries:y},a.createElement(Br,{onChecked:C,products:t,hasExchanges:c,billingCycle:i,paymentTab:r,showError:b})))}var zr=n(71323);function Hr(e){const{modifier:t,onChangeOrderTerms:n,billingCycle:r,planName:o}=e;let i=E.t("Downgrade trial to {plan_name}"),c=E.t("You can downgrade your trial and pick the one that meets your needs. This way youll know exactly what you are paying for if wish to continue using this plan after the free trial period."),l=E.t("If you switch to a different plan, the amount charged at the end of the trial (if you dont cancel) will change according to the new plan.");return t===Na.Upgrade&&(i=E.t("Upgrade trial to {plan_name}"),c=E.t("You can continue your trial with a different plan for free to check out more features."),l=E.t("If you switch to a better plan, the amount charged at the end of the trial (if you dont cancel) will change according to the new plan.")),a.createElement("div",null,a.createElement(Bt,{text:i.format({plan_name:o})}),a.createElement("p",{className:zr.trialSubtitle},c),a.createElement("p",{className:zr.trialSubtitle},l),a.createElement("div",{className:zr.changeTrialTerms},a.createElement(Br,{billingCycle:r,onChecked:n,products:[],hasExchanges:!1})))}var Vr=n(12107);const jr=(0,b.getLogger)("Payment.TrialPaymentMethod"),Gr=[te.PaymentTab.OneClick,te.PaymentTab.Coinbase],Wr=te.PaymentTab.CreditCard;const qr=a.memo((function(e){var t,n,r,o;const{proPlanProductId:i,onSuccessPurchase:c,buttonContainerRef:l,onBillingAddressChange:s,billingCycle:u,modifier:d,onChangeOrderTerm:m,orderTermsChecked:g,ipCountryCode:h,onTabChange:f,currency:y,blockedCountries:v}=e,[C,b]=(0,a.useState)(!1),w=(0,xe.getTrialLength)();(0,a.useEffect)(()=>{(0,Vr.trackTrialAction)(i,u,"show","braintree"),(0,ie.trackPaymentOrderDialogInitial)(st.Steps.Trial,[i],u)},[]);try{(0,
V.isFeatureEnabled)("braintree-apple-pay-trial")&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))&&(null===(n=window.ApplePaySession)||void 0===n?void 0:n.canMakePayments())||Gr.push(te.PaymentTab.ApplePay)}catch(e){Gr.push(te.PaymentTab.ApplePay)}(0,V.isFeatureEnabled)("braintree-google-pay-trial")||Gr.push(te.PaymentTab.GooglePay),(0,mt.canShowPaypalPaymentMethod)(h)||Gr.push(te.PaymentTab.Paypal);const{pro:x}=a.useContext(D),_=null==x?void 0:x.getProduct(i),P=null!==(r=null==_?void 0:_.text_id)&&void 0!==r?r:i,S=(0,a.useCallback)(e=>jr.logError(e.message),[]);if(void 0!==d)return a.createElement(Hr,{onChangeOrderTerms:m,billingCycle:u,modifier:d,planName:null!==(o=null==_?void 0:_.name)&&void 0!==o?o:""});const k=(0,a.useMemo)(()=>({totalCostWithTax:0}),[]);return a.createElement("div",null,a.createElement(Bt,{text:(T=P,N=w,E.t("Start free {daysCount}-day {proPlan}",{plural:"Start free {daysCount}-day {proPlan}",context:"free_trial",count:N}).format({proPlan:(0,p.humanizeProPlan)(T,!0),daysCount:N.toString()}))}),a.createElement("p",{className:zr.trialSubtitle},function(e){return{[Pn.ProPlans.Pro]:E.t("Distraction-free trading and investing, with more charts, intervals and indicators"),[Pn.ProPlans.ProRealtime]:E.t("Intraday technical analysis for day traders looking to take things to the next level"),[Pn.ProPlans.ProPremium]:E.t("Highest precision and maximum data to capture all possible opportunities")}[e]||""}(P)),a.createElement(Dr.PaymentMethod,{onPurchase:ne.onStartTrial,defaultTab:Wr,products:[i],billingCycle:u,onSuccess:c,onError:S,buttonContainer:l,checked:g,onTabChange:f,switcherContainerClassName:zr.swithcherContainer,excludedTabs:Gr,purchaseButtonText:E.t("Start {days}-day free trial",{plural:"Start {days}-day free trial",context:"free_trial",count:w}).format({days:w.toString()}),hideTryAgainButtonCodes:["trial_not_available"],onCheckboxValidityChange:e=>b(e),onBillingAddressChange:s,price:k,hideTotalPrice:!0,defaultCountry:h,blockedCountries:v,currency:y,isTrial:!0},a.createElement(Br,{onChecked:m,products:[],hasExchanges:!1,billingCycle:u,showError:C})));var T,N}));var $r=n(10287);function Kr(e){const{billingCycle:t,product:n,pro:r,discount:o,disabled:i}=e,c=Za(r,n,t),l=(null==o?void 0:o.billing_cycle)===t&&(null==o?void 0:o.offer_type)!==s.OfferKind.one_usd,u=B($r["billing-cycle-item"],{[$r["has-highlight"]]:null!==o&&o.offer_type!==s.OfferKind.one_usd,[$r.disabled]:i});return a.createElement("label",{className:u},a.createElement(Mt.RadioButton,{value:t,disabled:i}),a.createElement("p",{className:$r["billing-cycle"]},(0,p.getReadableCycle)(t)),a.createElement(Qr,{isHighlight:l,billingCycle:t,priceProps:c,discount:o}),a.createElement("div",{className:$r.price},"$",(0,p.round2)(c.price)," ",E.t("/mo")),c.fullPrice>c.price&&a.createElement("div",{className:$r["full-price"]},"$",(0,p.round2)(c.fullPrice)," ",function(e){var t;return null!==(t={y:E.t("/year"),m:E.t("/mo"),"2y":E.t("/2years")}[e])&&void 0!==t?t:""}(t)))}function Qr(e){
const{billingCycle:t,priceProps:n,discount:r}=e,o=(0,p.billingPeriodText)(t),i=B($r.description,{[$r.highlight]:e.isHighlight});if(t===l.BillingCycle.Monthly&&(null==r?void 0:r.offer_type)===s.OfferKind.one_usd)return a.createElement("p",{className:i},E.t("Special offer. First month of upgraded features for one dollar."));if(t===l.BillingCycle.OneYear&&(null==r?void 0:r.offer_type)===s.OfferKind.one_usd)return a.createElement("p",{className:i},o);if(t===l.BillingCycle.Monthly)return a.createElement("p",{className:i},E.t("Most flexible option.")," ",o);if((null==r?void 0:r.offer_type)===s.OfferKind.six_months&&t===(null==r?void 0:r.billing_cycle))return a.createElement("div",{className:i},a.createElement("p",null,E.t("Special offer — pay for half a year, get the other half at no cost.")),a.createElement("p",null,E.t("We only give this discount for your first year.")));const c=Math.round(n.canceledFullPrice-n.fullPrice);return(null==r?void 0:r.offer_type)===s.OfferKind.early_access&&t===(null==r?void 0:r.billing_cycle)?a.createElement("div",{className:i},a.createElement("p",null,E.t("Save ${amount} ({profit}%) when compared to the monthly plan.").format({amount:c.toString(),profit:n.profit.toString()})," ",o),a.createElement("p",null,E.t("We only offer this discount for your first year."))):((null==r?void 0:r.offer_type)===s.OfferKind.last_chance&&(null==r||r.billing_cycle),a.createElement("p",{className:i},E.t("Save ${amount} ({profit}%) when compared to the monthly plan.").format({amount:c.toString(),profit:n.profit.toString()})))}var Xr=n(14724);const Zr=[l.BillingCycle.OneYear,l.BillingCycle.Monthly],Jr=a.memo(e=>{const{proPlanProductId:t,onChange:n,pro:r,fixedCycle:o,initialBillingCycle:i}=e,c=r.getProduct(t),l=r.isDiscountProductId(t)?r.getDiscountProduct(t):null,s=void 0===i||Zr.includes(i)?Zr:[i,...Zr];return a.useEffect(()=>{(0,ie.trackPaymentOrderDialogInitial)(st.Steps.BillingCycle,[t],e.billingCycle)},[]),a.createElement("div",null,a.createElement(Bt,{text:E.t("{plan_name} plan").format({plan_name:c.name})}),a.createElement("div",{className:Xr["billing-cycles"]},a.createElement(It.SwitchGroup,{name:"billing_cycle",onChange:e=>n(e),values:e.billingCycle?[e.billingCycle]:[]},s.map(t=>a.createElement(Kr,{product:c,pro:r,billingCycle:t,discount:l,key:"billingCycle_"+String(t),disabled:o&&e.billingCycle!==t})))))});var eo=n(39908);function to(e){const t=window.TradingView.onChartPage?E.t("Back to the chart"):E.t("Start charting");return a.createElement(ft.RoundButton,{className:eo.button,onClick:function(){window.TradingView.onChartPage||window.open("/chart/","_blank");e.onClose()}},t)}var no=n(65151),ao=n(21810);function ro(e){return a.createElement(ft.RoundButton,{className:ao.button,onClick:e.onClick},(0,E.t)("Next"))}function oo(e){const{cartData:t,receiptInfo:n,modifier:r,onClose:o,onExchangeAgreement:i,cartPrices:c}=e,{isTrial:l}=t,{pro:s,state:u}=a.useContext(D);return a.createElement("div",{className:ao["vertical-alignment-height"]},a.createElement("div",{className:ao.container
},!l&&s&&n&&a.createElement(io,{pro:s,cartData:t,receiptInfo:n,modifier:r,needExchangeAgreement:null==n?void 0:n.needExchangeAgreement,onExchangeAgreement:i,onClose:o}),l&&s&&a.createElement(co,{pro:s,cartData:t,modifier:r,subsciptionDetails:null==u?void 0:u.subscriptionDetails,needExchangeAgreement:null==n?void 0:n.needExchangeAgreement,onExchangeAgreement:i,onClose:o,cartPrices:c})))}function io(e){const{pro:t,cartData:n,receiptInfo:r,modifier:o}=e,{currency:i="",total:c}=r,{proPlanProductId:l}=n,s=(0,E.t)("Payment #{receiptId}").format({receiptId:r.transactionId}),u=a.useMemo(()=>(0,ie.getPricesForCart)({pro:t,cartData:n,listLocalPricesProducts:r.resultPricesProducts}),[t,n,r.resultPricesProducts]),d=l?(0,p.round2)(r.resultPricesProducts[l].price.total):"0",m=`${(0,ie.getCurrencySign)(i)}${(0,p.round2)(c)} ${i}`,g=function(e){const t=e.getDate().toString(),n=t.length<2?"0"+t:t,a=(e.getMonth()+1).toString(),r=a.length<2?"0"+a:a;return n+"."+r+"."+e.getFullYear()+", "+e.toLocaleTimeString([],{hour:"numeric",minute:"numeric"})}(new Date(r.date)),h=(0,ie.getListExchanges)(t,n);return a.createElement(a.Fragment,null,a.createElement("div",{className:ao.wrapper},a.createElement(ce.Icon,{icon:no,className:ao.icon}),a.createElement(Bt,{text:(0,E.t)("Thanks for purchasing"),className:ao.title}),a.createElement(lo,{needExchangeAgreement:e.needExchangeAgreement,onExchangeAgreement:e.onExchangeAgreement,onClose:e.onClose})),a.createElement("div",{className:ao.cheque},a.createElement("div",null,a.createElement("div",{className:B(ao.flex,ao.paymentInfo)},a.createElement("p",null,s),a.createElement("p",null,g)),a.createElement("div",{className:B(ao.flex,ao.description)},a.createElement("p",null,(0,E.t)("Description")),a.createElement("p",null,(0,E.t)("Subtotal"))),l&&a.createElement("div",{className:B(ao.grid,ao.proPlanPaddingRow)},a.createElement(Be,{pro:t,cartData:n,cost:d,classNameProductCost:ao.productText,modifier:o,currency:i})),h.length>0&&a.createElement("div",{className:B(ao.grid,ao.border,ao.exchangesListWrapper)},a.createElement(Qe,{pro:t,cartData:n,cartPrices:r.resultPricesProducts,classNameExchangeItem:ao.paddingRow,classNameExchangeItemText:ao.productText,exchanges:h})),0!==u.tax&&a.createElement("div",{className:B(ao.grid,ao.border,ao.tax)},a.createElement(Ze,{tax:(0,p.round2)(u.tax),currency:u.currency,subtotal:(0,p.round2)(u.subtotal),costClassName:ao.productText}))),a.createElement("div",{className:B(ao.flex,ao.wrapperTotalCost,ao.border)},a.createElement("p",{className:ao.total},(0,E.t)("Total:")),a.createElement("p",{className:ao.totalCost},m))))}function co(e){const{pro:t,cartData:n,modifier:r,subsciptionDetails:o,cartPrices:i}=e,{totalCostWithTax:c,currency:l}=i,s=(0,xe.getTrialLength)(),u=Me(t,n,void 0===r?s:void 0),d=(0,E.t)("We'll charge your card {price} on {date}. If you cancel auto-renewal before this time, you'll not be charged at all."),m=`${(0,ie.getCurrencySign)(l)}${(0,p.round2)(c)} ${l}`,g=void 0===r?(0,E.t)("Woohoo! Let the fun begin"):(0,E.t)("Congrats! Your new trial is setup"),h=(0,
E.t)("Your {daysCount}-day free trial is live and kicking, and you've now got free access to loads of additional features. Don't forget: we may also have a special offer or two for you during this trial keep your eyes peeled.").format({daysCount:s.toString()}),f={description:{[Na.Downgrade]:(0,E.t)("Your trial was successfully downgraded. You can always upgrade again to a more powerful plan before it runs out."),[Na.Upgrade]:(0,E.t)("Now you have even more tools and features to make your trading successful.")}},y=(0,E.t)("Tax included {currencySign}{tax} {currency}").format({tax:(0,p.round2)(i.tax),currency:i.currency,currencySign:(0,ie.getCurrencySign)(i.currency)});return a.createElement(a.Fragment,null,a.createElement("div",{className:ao.wrapper},a.createElement(ce.Icon,{icon:no,className:ao.icon}),a.createElement(Bt,{text:g,className:ao.title}),a.createElement(Ot,{className:ao.descriptionBlock},void 0===r&&h,void 0!==r&&f.description[r]),void 0!==r&&a.createElement(Ot,{className:ao.descriptionBlock},(0,E.t)("The amount charged at the end of the trial (if you dont cancel) also reflects the new plan.")),a.createElement(lo,{needExchangeAgreement:e.needExchangeAgreement,onExchangeAgreement:e.onExchangeAgreement,onClose:e.onClose})),a.createElement("div",{className:ao.cheque},a.createElement("div",{className:B(ao.flex,ao.productText,ao.trialFirstPaddingRow)},a.createElement("p",{className:ao["product-trial"]},u),a.createElement("p",{className:ao["cost-trial"]},(0,E.t)("$0.00 USD"))),a.createElement("div",{className:ao.trialPaddingRow},a.createElement("div",{className:B(ao.flex,ao.productText)},a.createElement("p",{className:ao["product-trial"]},et(o)),a.createElement("p",{className:ao["cost-trial"]},m)),0!==i.tax&&a.createElement("div",{className:ao["trial-tax"]},y)),a.createElement("div",{className:B(ao.flex,ao.wrapperTotalCost,ao.border)},a.createElement("p",{className:ao.total},(0,E.t)("Total:")),a.createElement("p",{className:ao.totalCost},(0,E.t)("$0.00 USD")))),a.createElement(tt,{className:ao.highlightBlock},a.createElement("p",null,d.format({price:m,date:Te(o)}))))}function lo(e){return e.needExchangeAgreement?a.createElement(ro,{onClick:e.onExchangeAgreement}):a.createElement(to,{onClose:e.onClose})}var so=n(85198),uo=n(18609);function mo(e=!1){const t=Boolean(e);return{isValid:t,errors:t?[]:[E.t("You need to accept this")]}}function po(){return E.t("This agreement is for NON-PROFESSIONALS only. If you qualify as a Professional under exchange regulations you may not use this service")}function go(e){let t=!0;const n=[];return void 0!==e&&0!==e.length||(t=!1,n.push(E.t("This field is required"))),void 0===e||(0,uo.isLatin)(e)||(t=!1,n.push(E.t("Only English language is allowed"))),{isValid:t,errors:n}}var ho=n(44943),fo=n(10959),yo=n(86629),vo=n(1365);function Co(e){const{name:t,validationResults:n,legend:r,reference:o}=e;let i=[];void 0!==e.value&&(i=e.value?["yes"]:["no"]);const c=(0,yo.useControlValidationLayout)({hasErrors:!n.isValid,errors:n.errors,messagesPosition:yo.MessagesPosition.Attached
}),l=c.containerReference.current;return o&&l&&o(l),a.createElement("fieldset",{className:vo["agreement-switch"]},a.createElement("legend",{className:vo.legend},r),a.createElement("div",{className:vo["error-wrapper"],onFocus:c.onFocus,onBlur:c.onBlur,onMouseOver:c.onMouseOver,onMouseOut:c.onMouseOut,ref:c.containerReference},a.createElement("div",{className:vo["switch-group"]},a.createElement(It.SwitchGroup,{name:t,onChange:function(t){e.onChange("yes"===t)},values:i},a.createElement(Mt.RadioButton,{value:"yes",label:E.t("Yes")}),a.createElement(Mt.RadioButton,{value:"no",label:E.t("No")}))),!n.isValid&&a.createElement("div",{className:vo["error-icon"]},a.createElement(fo.ErrorIcon,{intent:"danger"})),c.renderedErrors))}var bo=n(12032);function Eo(e){const{validationResults:t,value:n,wrapperClassName:r,reference:o,...i}=e,c=(0,yo.useControlValidationLayout)({hasErrors:!t.isValid,errors:t.errors,messagesPosition:yo.MessagesPosition.Attached});return o&&c.containerReference.current&&o(c.containerReference.current),a.createElement("div",{className:B(bo["error-wrapper"],r),onFocus:c.onFocus,onBlur:c.onBlur,onMouseOver:c.onMouseOver,onMouseOut:c.onMouseOut,ref:c.containerReference},a.createElement(jt.Checkbox,{className:bo.checkbox,...i,checked:n}),!t.isValid&&a.createElement("div",{className:bo["error-icon"]},a.createElement(fo.ErrorIcon,{intent:"danger"})),c.renderedErrors)}var wo=n(86623);function xo(e){const{validationBinding:t,...n}=e;return a.createElement(wo.FormInput,{...n,value:t.value,hasErrors:!t.validationResults.isValid,errors:t.validationResults.errors})}var _o,Po=n(51556);!function(e){e.Occupation="occupation",e.NameAndAddressEmployer="name_and_address_employer",e.Position="position",e.EmploymentFunctions="employment_functions"}(_o||(_o={}));const So=[_o.Occupation,_o.NameAndAddressEmployer,_o.Position,_o.EmploymentFunctions],ko={[_o.Occupation]:function(e=""){const t=["bookkeeper_or_auditor_or_tax_consultant","civil_service","computer_specialist","construction_professional","CPA","engineer","individual_investor","farmer","legal_professional","management","marketing_professional","medical_professional","public_relations","real_estate","retired_or_homemaker","sales_or_service_representative_or_clerical","store_manager_or_owner","student_or_educator_or_child_care_provider","transportation","tv_or_radio_announcer","veterinarian"].includes(e);return{isValid:t,errors:t?[]:[po()]}},[_o.NameAndAddressEmployer]:go,[_o.Position]:go,[_o.EmploymentFunctions]:go},To={type:"text",maxLength:265,messagesPosition:yo.MessagesPosition.Attached,size:"large"};function No(e){const{bindings:t,setValidationResults:n,handleReference:r}=e,o=E.t("Name(s) and address(es) of Subscriber's employer(s)"),i=E.t("Subscriber's title(s) and/or position(s)"),c=E.t("Subscriber's employment functions (description)");return a.createElement("div",{className:Po.occupation},a.createElement(pt.FormSelect,{items:[{content:a.createElement("span",{className:Po["nothing-selected"]},E.t("Subscriber's occupations")),readonly:!0},{
id:"banker_or_insurance_representative",value:"banker_or_insurance_representative",content:E.t("Banker/Insurance Representative")},{id:"bookkeeper_or_auditor_or_tax_consultant",value:"bookkeeper_or_auditor_or_tax_consultant",content:E.t("Bookkeeper/Auditor/Tax Consultant")},{id:"broker_or_dealer",value:"broker_or_dealer",content:E.t("Broker/Dealer")},{id:"civil_service",value:"civil_service",content:E.t("Civil Service")},{id:"commodity_trading_advisor",value:"commodity_trading_advisor",content:E.t("Commodity Trading Advisor")},{id:"commodities_introducing_broker",value:"commodities_introducing_broker",content:E.t("Commodities Introducing Broker")},{id:"computer_specialist",value:"computer_specialist",content:E.t("Computer Specialist")},{id:"construction_professional",value:"construction_professional",content:E.t("Construction Professional")},{id:"CPA",value:"CPA",content:E.t("CPA")},{id:"engineer",value:"engineer",content:E.t("Engineer")},{id:"individual_investor",value:"individual_investor",content:E.t("Individual Investor")},{id:"farmer",value:"farmer",content:E.t("Farmer")},{id:"financial_analyst",value:"financial_analyst",content:E.t("Financial Analyst")},{id:"futures_commission_merchant",value:"futures_commission_merchant",content:E.t("Futures Commission Merchant")},{id:"investment_advisor_or_banker",value:"investment_advisor_or_banker",content:E.t("Investment Advisor/Banker")},{id:"legal_professional",value:"legal_professional",content:E.t("Legal Professional")},{id:"management",value:"management",content:E.t("Management")},{id:"marketing_professional",value:"marketing_professional",content:E.t("Marketing Professional")},{id:"medical_professional",value:"medical_professional",content:E.t("Medical Professional")},{id:"money_manager",value:"money_manager",content:E.t("Money Manager")},{id:"public_relations",value:"public_relations",content:E.t("Public Relations")},{id:"real_estate",value:"real_estate",content:E.t("Real Estate")},{id:"retired_or_homemaker",value:"retired_or_homemaker",content:E.t("Retired/Homemaker")},{id:"sales_or_service_representative_or_clerical",value:"sales_or_service_representative_or_clerical",content:E.t("Sales/Service Representative/Clerical")},{id:"securities_exchange_or_association_futures_contract",value:"securities_exchange_or_association_futures_contract",content:E.t("Securities Exchange/Association, Futures Contract")},{id:"registered_representative",value:"registered_representative",content:E.t("Registered Representative")},{id:"store_manager_or_owner",value:"store_manager_or_owner",content:E.t("Store Manager/Owner")},{id:"student_or_educator_or_child_care_provider",value:"student_or_educator_or_child_care_provider",content:E.t("Student/Educator/Child Care Provider")},{id:"transportation",value:"transportation",content:E.t("Transportation")},{id:"tv_or_radio_announcer",value:"tv_or_radio_announcer",content:E.t("TV/Radio Announcer")},{id:"veterinarian",value:"veterinarian",content:E.t("Veterinarian")}],value:t[_o.Occupation].value,onChange:e=>l(_o.Occupation,e),size:"large",
hasErrors:!t[_o.Occupation].validationResults.isValid,errors:t[_o.Occupation].validationResults.errors,messagesPosition:yo.MessagesPosition.Attached,menuClassName:Po["occupation-menu"],ref:e=>r(_o.Occupation,e)}),a.createElement(xo,{name:String(_o.NameAndAddressEmployer),placeholder:o,"aria-label":o,onChange:e=>l(_o.NameAndAddressEmployer,e.target.value),validationBinding:t[_o.NameAndAddressEmployer],reference:e=>r(_o.NameAndAddressEmployer,e),...To}),a.createElement(xo,{name:String(_o.Position),placeholder:i,"aria-label":i,onChange:e=>l(_o.Position,e.target.value),validationBinding:t[_o.Position],reference:e=>r(_o.Position,e),...To}),a.createElement(xo,{name:String(_o.EmploymentFunctions),placeholder:c,"aria-label":c,onChange:e=>l(_o.EmploymentFunctions,e.target.value),validationBinding:t[_o.EmploymentFunctions],reference:e=>r(_o.EmploymentFunctions,e),...To}));function l(e,a){n({[e]:ko[e](a)}),t[e].onChange(a)}}var Ao=n(11298),Do=n(54325);var Io,Ro=n(18244),Oo=n(55315);!function(e){e.SubscriberName="subscriber_name",e.CountryCode="country_code",e.State="state",e.City="city",e.Street="street",e.Zip="zip"}(Io||(Io={}));const Bo=[Io.SubscriberName,Io.Street,Io.City,Io.State,Io.CountryCode,Io.Zip],Mo={[Io.SubscriberName]:go,[Io.CountryCode]:ho.dumbValidator,[Io.State]:go,[Io.City]:go,[Io.Street]:go,[Io.Zip]:go},Lo={type:"text",maxLength:265,messagesPosition:yo.MessagesPosition.Attached,size:"large"};function Yo(e){var t;const{bindings:n,setValidationResults:r,handleReference:o,showStateSelect:i}=e,c=a.useMemo(()=>Object.entries(e.countries).map(e=>function(e){const[t,n]=e;return{code:(0,Do.toCountryCode)(t),iconUrl:(0,Ut.flagUrl)(t.toLowerCase()),name:n}}(e)),[e.countries]),l=null!==(t=n[Io.CountryCode].value)&&void 0!==t?t:"US",s=e.countries[l],u=(0,Ut.flagUrl)(l.toLowerCase()),d=E.t("Subscriber's name"),m=E.t("State/Region"),p=E.t("City"),g=E.t("Street"),h=E.t("Zip/Postal code");return a.createElement("div",{className:Oo["subscribers-inputs"]},a.createElement(xo,{placeholder:d,name:"subscriber_name","aria-label":d,validationBinding:n[Io.SubscriberName],onChange:e=>f(Io.SubscriberName,e.target.value),reference:e=>o(Io.SubscriberName,e),...Lo}),a.createElement("div",{className:Oo["country-select-container"]},a.createElement(Ao.CountrySelect,{countries:c,flagUrl:u,onSelected:e=>f(Io.CountryCode,e.code),stretch:!0,text:s,dropdownAttachment:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"top"}}})),i?a.createElement(pt.FormSelect,{placeholder:a.createElement("span",{className:Oo.selectPlaceholder},m),items:Ro.stateItems[l]||[],value:n[Io.State].value,onChange:e=>f(Io.State,e),size:"large",hasErrors:!n[Io.State].validationResults.isValid,errors:n[Io.State].validationResults.errors,messagesPosition:yo.MessagesPosition.Attached,ref:e=>o(Io.State,e)}):a.createElement(xo,{placeholder:m,name:"state","aria-label":m,validationBinding:n[Io.State],onChange:e=>f(Io.State,e.target.value),reference:e=>o(Io.State,e),...Lo}),a.createElement(xo,{placeholder:p,name:"city","aria-label":p,
validationBinding:n[Io.City],onChange:e=>f(Io.City,e.target.value),reference:e=>o(Io.City,e),...Lo}),a.createElement(xo,{placeholder:g,name:"street","aria-label":g,validationBinding:n[Io.Street],onChange:e=>f(Io.Street,e.target.value),reference:e=>o(Io.Street,e),...Lo}),a.createElement(xo,{placeholder:h,name:"zip","aria-label":h,validationBinding:n[Io.Zip],onChange:e=>f(Io.Zip,e.target.value),reference:e=>o(Io.Zip,e),...Lo}));function f(e,t){r({[e]:Mo[e](t)}),n[e].onChange(t)}}var Uo=n(97737),Fo=n(10777);var zo,Ho=n(66302),Vo=n(71131),jo=n(74660);!function(e){e.ReadAndAcceptTerms="read_and_accept_terms",e.ConfirmSection1="confirm_section_1",e.BusinessUse="business_use",e.ReceiveBenefits="receive_benefits",e.Certification="certification",e.ConfirmSection2="confirm_section_2"}(zo||(zo={}));const Go=[zo.ReadAndAcceptTerms,...Bo,...So,zo.ConfirmSection1,zo.BusinessUse,zo.ReceiveBenefits,zo.Certification,zo.ConfirmSection2],Wo={[zo.ReadAndAcceptTerms]:mo,...Mo,...ko,[zo.ConfirmSection1]:mo,[zo.Certification]:mo,[zo.ConfirmSection2]:mo,[zo.BusinessUse]:function(e){const t=void 0!==e&&e;return{isValid:t,errors:t?[]:[po()]}},[zo.ReceiveBenefits]:function(e){const t=void 0!==e&&!e;return{isValid:t,errors:t?[]:[po()]}}};function qo(e){const{exchange_agreements:t,user_billing_info:n,countries:r,user_name:o,onSuccess:i}=e,c=[],l=[];Object.values(t).forEach(e=>{const t=e.exchange_name;l.includes(t)||(l.push(t),c.push(e))});const s=c.every(e=>e.free_exchange);s&&So.forEach(e=>{Wo[e]=ho.dumbValidator});const u=(0,Vo.useScrollIntoViewHelper)(),[d,m]=(0,a.useState)(Ho.COUNTRY_WITH_STATE_SELECT.includes(""===n.billing_countrycode?"US":n.billing_countrycode)),[p,g]=(0,a.useState)(r),[h,f,y]=(0,ho.useFormValidation)(Go,Wo,{[zo.ReadAndAcceptTerms]:!1,[Io.SubscriberName]:o,[Io.CountryCode]:""===n.billing_countrycode?"US":n.billing_countrycode,[Io.State]:n.billing_state,[Io.City]:n.billing_city,[Io.Street]:n.billing_street,[Io.Zip]:n.billing_zip,[_o.NameAndAddressEmployer]:"",[_o.Position]:"",[_o.EmploymentFunctions]:"",[zo.ConfirmSection1]:!1,[zo.Certification]:!1,[zo.ConfirmSection2]:!1}),v=(0,a.useRef)(new Map),C=(0,a.useRef)(!0);(0,a.useEffect)(()=>{e.container&&u.current&&u.current.setContainer(e.container)},[e.container]),(0,a.useEffect)(()=>{if(!(0,V.isFeatureEnabled)("RU_VOR_disable"))return;const e={};Object.keys(r).forEach(t=>{mt.marketBlockedCountries.includes(t)||(e[t]=r[t])}),g(e)},[r]);const b=(0,a.useRef)(!0);return(0,a.useEffect)(()=>{const e=Ho.COUNTRY_WITH_STATE_SELECT.includes(h[Io.CountryCode].value);m(e),b.current?b.current=!1:h[Io.State].onChange("")},[h[Io.CountryCode].value]),(0,a.useEffect)(()=>{let e=!0;for(const t in h)h[t].validationResults.isValid||(e=!1);e!==C.current&&P(),C.current=e},[h]),a.createElement("form",{method:"post",onSubmit:function(e){var n,a,r,o,c;e.preventDefault();const l=f();l||C.current||P();if(!l)return;const u=h[Io.CountryCode].value;let d={subscriber_name:null!==(n=h[Io.SubscriberName].value)&&void 0!==n?n:"",country:null!=u?u:"",state:null!==(a=h[Io.State].value)&&void 0!==a?a:"",
city:null!==(r=h[Io.City].value)&&void 0!==r?r:"",street:null!==(o=h[Io.Street].value)&&void 0!==o?o:"",zip:null!==(c=h[Io.Zip].value)&&void 0!==c?c:""};s||(d={...d,occupation:h[_o.Occupation].value,position:h[_o.Position].value,employment_functions:h[_o.EmploymentFunctions].value,name_and_address_employer:h[_o.NameAndAddressEmployer].value});(m={exchange_agreement_data:d,exchanges:Object.keys(t)},(0,so.fetch)("/exchange-agreement/",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(m)}).then(e=>e.ok?e.json():e.json().then(t=>{throw new Fo.AggregateError((0,Fo.accumulateErrors)(t.errors,e.status))}))).then(()=>i?i():window.location.reload()).catch(e=>{const t={},n=e.errors;n&&(n.forEach(e=>{var n,a;const[,r]=null!==(a=null===(n=e.type)||void 0===n?void 0:n.split("."))&&void 0!==a?a:[];r&&(t[r]={isValid:!1,errors:[e.message]})}),y(t))});var m}},a.createElement("h1",{className:jo["page-title"]},E.t("Agreement for market data display services")),a.createElement("p",{className:jo["page-sub-title"]},"(",E.t("Usage-Based Services/Non-professional Subscriber Status"),")"),a.createElement("p",{className:jo["exchange-agreement-description"]},E.t("Following exchanges require agreements to be completed before TradingView, Inc. can provide real-time data:")),c.map(e=>{const t=new URL(e.path,"https://s3.tradingview.com/exchange-agreements/");return a.createElement("p",{key:"exchange-agreements-file-"+e.exchange_name},a.createElement("a",{href:t.href,className:jo["exchange-file-link"],target:"_blank",onClick:e=>function(e,t){window.open(t,"NYSE Exhibit B","width=1000,height=1000"),e.preventDefault()}(e,t.href)},E.t("{exchange_name} Subscriber Agreement").format({exchange_name:e.agreement_name})))}),a.createElement(Eo,{...h[zo.ReadAndAcceptTerms],onChange:()=>w(zo.ReadAndAcceptTerms),name:String(zo.ReadAndAcceptTerms),label:E.t("I've read and accept the terms and conditions."),wrapperClassName:jo["accept-terms-checkbox-margin"],reference:e=>_(zo.ReadAndAcceptTerms,e)}),a.createElement("h2",{className:jo["section-title"]},E.t("Section 1")),a.createElement(Yo,{countries:p,bindings:{[Io.SubscriberName]:h[Io.SubscriberName],[Io.State]:h[Io.State],[Io.City]:h[Io.City],[Io.Street]:h[Io.Street],[Io.Zip]:h[Io.Zip],[Io.CountryCode]:h[Io.CountryCode]},setValidationResults:y,handleReference:_,showStateSelect:d}),!s&&a.createElement(No,{bindings:{[_o.Occupation]:h[_o.Occupation],[_o.NameAndAddressEmployer]:h[_o.NameAndAddressEmployer],[_o.Position]:h[_o.Position],[_o.EmploymentFunctions]:h[_o.EmploymentFunctions]},setValidationResults:y,handleReference:_}),a.createElement(Eo,{...h[zo.ConfirmSection1],onChange:()=>w(zo.ConfirmSection1),name:String(zo.ConfirmSection1),label:E.t("Accepted and agreed:"),wrapperClassName:jo["checkbox-margin"],reference:e=>_(zo.ConfirmSection1,e)}),a.createElement("p",{className:jo["section-terms-description"]
},E.t('I, the "Subscriber" to which the preceding terms and conditions refer, acknowledge that I have read the preceding terms and conditions of this Section 1, that I understand them and that I hereby manifest my assent to, and my agreement to comply with, those terms and conditions by "clicking" on the box.')),a.createElement("h2",{className:jo["section-title"]},E.t("Section 2")),a.createElement(Co,{...h[zo.BusinessUse],onChange:e=>x(e,zo.BusinessUse),name:String(zo.BusinessUse),legend:E.t("Do you use Market Data solely for your personal, non-business use?"),reference:e=>_(zo.BusinessUse,e)}),a.createElement("h3",{className:jo["questions-title"]},E.t("Please read the following 10 questions:")),a.createElement("ol",{type:"A",className:jo.questions},a.createElement("li",{className:jo.question},E.t("Do you receive Market Data for your business or any other entity?")),a.createElement("li",{className:jo.question},E.t("Are you currently registered or qualified with the SEC or the CFTC?")),a.createElement("li",{className:jo.question},E.t("Are you currently registered or qualified with any securities agency, any securities exchange, association or regulatory body, or any commodities or futures contract market, association or regulatory body, in the United States or elsewhere?")),a.createElement("li",{className:jo.question},E.t("Whether you are located within or outside of the United States, do you perform any functions that are similar to those that require an individual to register or qualify with the SEC, the CFTC, any other securities agency or regulatory body, any securities exchange or association, or any commodities or futures contract market, association or regulatory body?")),a.createElement("li",{className:jo.question},E.t("Are you engaged to provide investment advice to any individual or entity?")),a.createElement("li",{className:jo.question},E.t("Are you engaged as an asset manager?")),a.createElement("li",{className:jo.question},E.t("Do you use the capital of any other individual or entity in the conduct of your trading?")),a.createElement("li",{className:jo.question},E.t("Do you conduct trading for the benefit of a corporation, partnership, or other entity?")),a.createElement("li",{className:jo.question},E.t("Have you entered into any agreement to share the profit of your trading activities or receive compensation for your trading activities?")),a.createElement("li",{className:jo.question},E.t("Are you receiving office space, and equipment or other benefits in exchange for your trading or work as a financial consultant to any person, firm or business entity?"))),a.createElement(Co,{...h[zo.ReceiveBenefits],onChange:e=>x(e,zo.ReceiveBenefits),name:String(zo.ReceiveBenefits),legend:E.t("If any of the above applies, then mark Yes. If none applies, then tick No."),reference:e=>_(zo.ReceiveBenefits,e)}),a.createElement(Eo,{...h[zo.Certification],onChange:()=>w(zo.Certification),name:String(zo.Certification),label:E.t("Certification:"),wrapperClassName:jo["checkbox-margin"],reference:e=>_(zo.Certification,e)
}),a.createElement("p",{className:jo["section-terms-description"]},E.t('By executing this Agreement, Subscriber hereby certifies that he or she falls within Paragraph 9\'s definition of "Non-professional Subscriber" and that the personal and employment information that he or she has included in Paragraph 12 is truthful and accurate.')),a.createElement(Eo,{...h[zo.ConfirmSection2],onChange:()=>w(zo.ConfirmSection2),name:String(zo.ConfirmSection2),label:E.t("Accepted and agreed:"),wrapperClassName:jo["checkbox-margin"],reference:e=>_(zo.ConfirmSection2,e)}),a.createElement("p",{className:jo["section-terms-description"]},E.t('I, the "Subscriber" to which the preceding terms and conditions refer, acknowledge that I have read the preceding terms and conditions of this Section 2, that I understand them and that I hereby manifest my assent to, and my agreement to comply with, those terms and conditions by "clicking" on the box.')),a.createElement("div",{className:jo.actions},s&&a.createElement(Uo.Button,{size:"l",appearance:"stroke",onClick:function(){e.onRefuse?e.onRefuse():window.close()}},E.t("Refuse")),a.createElement(Uo.Button,{type:"submit",size:"l"},E.t("I Agree"))));function w(e){const t=!h[e].value;y({[e]:Wo[e](t)}),h[e].onChange(t)}function x(e,t){y({[t]:Wo[t](e)}),h[t].onChange(e)}function _(e,t){t&&v.current.set(t,e)}function P(e){const t=function(){const e=[];if(v.current.forEach((t,n)=>{h[t].validationResults.isValid||e.push(n)}),0===e.length)return null;const t={element:e[0],top:window.innerHeight};return e.forEach(e=>{const n=e.getBoundingClientRect();n.top<t.top&&(t.element=e,t.top=n.top)}),t.element}();null!==t&&(0,Xa.ensureNotNull)(u.current).scrollTo(t,e)}}var $o=n(37438);function Ko(e){const{exchange:t}=e,[n,r]=(0,a.useState)();return(0,a.useEffect)(()=>{const n=new URL("/exchange-agreement/",window.location.origin);t&&n.searchParams.append("exchange",t),(0,so.fetch)(n.href).then(e=>e.json()).then(t=>{0===Object.keys(t.exchange_agreements).length?e.onSuccess&&e.onSuccess():r(t)})},[]),void 0===n?a.createElement(a.Fragment,null):a.createElement("div",{className:$o.container},a.createElement(qo,{...n,onSuccess:e.onSuccess,onRefuse:e.onRefuse,container:e.container}))}var Qo=n(30649);function Xo(e){return a.createElement("div",{className:Qo.container},a.createElement(ce.Icon,{icon:no,className:Qo.icon}),a.createElement(Bt,{text:(0,E.t)("Success!"),className:Qo.title}),a.createElement(Ot,{className:Qo.descriptionBlock},(0,E.t)("Go now, dive into your new data")),a.createElement(to,{onClose:e.onClose}))}const Zo={[st.Steps.SelectPlan]:st.Steps.BillingCycle,[st.Steps.BillingCycle]:st.Steps.MarketData,[st.Steps.MarketData]:st.Steps.PaymentMethod,[st.Steps.PaymentMethod]:st.Steps.Cheque,[st.Steps.Trial]:void 0,[st.Steps.Cheque]:st.Steps.ExchangeAgreement,[st.Steps.Error]:void 0,[st.Steps.ExchangeAgreement]:st.Steps.ExchangeAgreementSuccess,[st.Steps.ExchangeAgreementSuccess]:void 0},Jo={[st.Steps.Trial]:st.Steps.SelectPlan,[st.Steps.BillingCycle]:st.Steps.SelectPlan,[st.Steps.MarketData]:st.Steps.BillingCycle,
[st.Steps.PaymentMethod]:st.Steps.MarketData,[st.Steps.SelectPlan]:void 0,[st.Steps.Cheque]:void 0,[st.Steps.Error]:void 0,[st.Steps.ExchangeAgreement]:void 0,[st.Steps.ExchangeAgreementSuccess]:void 0};var ei=n(17136),ti=n(78820),ni=n(23651),ai=n(40893);const ri=(0,b.getLogger)("Payments.Payment-Order-Dialog"),oi=k(),ii=new Set([st.Steps.Error,st.Steps.Cheque,st.Steps.SelectPlan,st.Steps.ExchangeAgreement,st.Steps.ExchangeAgreementSuccess]);const ci=a.memo((function(e){var t;const{initialStep:r,cart:i,initialBillingCycle:c,setBillingCycle:s,setCart:u,setPlanProduct:d}=e,{pro:m}=a.useContext(D),[p,g]=(0,a.useState)(e.statusExtraData),[h,f]=(0,a.useState)(""),[v,C]=(0,a.useState)(null),[b,w]=(0,a.useState)(),[x,_]=(0,a.useState)(),[S,k]=(0,a.useState)([]),[T,N]=(0,a.useState)(H.Currencies.Usd),[A,I]=(0,a.useState)(void 0),[R,O]=(0,a.useState)({receiptId:0,transactionId:"",date:"",total:0,resultPricesProducts:{},needExchangeAgreement:!1,currency:void 0}),[M,G]=(0,a.useState)(e.modifier),{currentStep:W,onNextStep:q,onPreviousStep:$,setStep:X}=function(e){const[t,n]=(0,a.useState)(e),r=(0,o.useHistory)(),i=(0,a.useCallback)(()=>{const e=Zo[t];e&&(r.push(e),s(e))},[t]),c=(0,a.useCallback)(()=>{const e=Jo[t];e&&(r.goBack(),s(e))},[t]),l=(0,a.useCallback)(e=>{r.push(e),s(e)},[]);function s(e){n(e),(0,ie.trackPaymentOrderDialogChanges)("changeStep",e)}return{currentStep:t,onNextStep:i,onPreviousStep:c,setStep:l}}(r),ae=(0,a.useMemo)(()=>({visitPaymentPage:rt,startTrial:ot,changeTrial:it,upgradePlan:ct}),[q]),[re,ce]=(0,a.useState)(te.PaymentTab.CreditCard),[le,se]=(0,a.useState)(te.PaymentTab.CreditCard),[ue,de]=(0,a.useState)(null),[me,pe]=(0,a.useState)(""),[ge,he]=(0,a.useState)(null),[fe,ye]=(0,a.useState)(!1),[ve,Ce]=(0,a.useState)(null!==(t=e.fixedCycle)&&void 0!==t&&t),be=(0,a.useRef)(null),we=(0,y.useIsMounted)(),[xe,_e]=function(){const[e,t]=a.useState(!1),n=(0,y.useIsMounted)(),r=a.useCallback(()=>{e||(t(!0),setTimeout(()=>{n.current&&t(!1)},1350))},[e]);return[e,r]}(),[Pe,Se]=(0,a.useState)(!1),[ke,Te]=(0,a.useState)(!0),[Ne,Ae]=(0,a.useState)([]),De=(0,a.useRef)(null),[Ie,Re]=(0,a.useState)({}),Oe=i.proPlanProductId,Be=(0,a.useCallback)(()=>{i.exchanges.length>0?Ae(mt.marketBlockedCountries):Ae([])},[i,x]);async function Me(e,t,n=!1){const a=[...e.exchanges];if(e.proPlanProductId&&(a.push(e.proPlanProductId),null==m?void 0:m.isDiscountProductId(e.proPlanProductId))){const t=null==m?void 0:m.getDiscountProduct(e.proPlanProductId).product;t&&a.push(t)}if(0===a.length)return{};try{const r=await(0,ni.getPrice)({products:a,billingCycle:e.billingCycle,billingAddress:t,currency:T,withTax:n});return(0,ie.getLocalPricesProducts)(a,r.results)}catch(e){const t=Error(e.message);throw t.name=e.name,t}}(0,a.useEffect)(()=>Be(),[i,x,S]),(0,a.useEffect)(()=>{if(void 0!==b){Me(i,b,void 0!==M).then(e=>{we.current&&Re(e)}).catch(e=>{we.current&&(f("ApiError:wrong_details"===e.name?(0,
E.t)("Sorry, your subscription cant currently be extended, downgraded or upgraded because your payment method doesnt support recurring payments. Please head to profile settings to update your payment method, then try again."):e.message),X(st.Steps.Error))})}else Re({})},[Oe,i.exchanges,i.billingCycle,null==b?void 0:b.country_code_alpha2,T]),(0,a.useEffect)(()=>{r===st.Steps.Trial&&(0,mt.showEcommpay)(x)&&(N(H.Currencies.Rub),Ae(S.filter(e=>!mt.ecommpayAvailableCountries.includes(e))))},[r,x,S]);const Le=R.needExchangeAgreement&&W===st.Steps.ExchangeAgreement,Ye=a.useRef(Le);(0,L.useFixedBody)(),(0,a.useEffect)(()=>{Promise.all([(0,ee.getCountries)(),(0,ne.orderDetails)()]).then(([e,t])=>{var n;if(!we.current)return;const{current_country_code:a,countries:r}=e;_(a),k(Object.keys(r)),(0,mt.isRussian)(a)&&g(lt.StatusExtraData.Disable);const{payment_methods:o,client_token:i}=t,[c]=o;w({country_code_alpha2:null!==(n=null==c?void 0:c.billing_address.country_code_alpha2)&&void 0!==n?n:a,region:null==c?void 0:c.billing_address.region,street_address:null==c?void 0:c.billing_address.street_address,locality:null==c?void 0:c.billing_address.locality,postal_code:null==c?void 0:c.billing_address.postal_code}),pe(i),C(o),je(o)}).catch(e=>ri.logWarn("Failed to fetch: "+e));const e=j.disable(),t=(0,z.createGroup)({desc:"Payment order dialog",modal:!0});return t.add({desc:"Close Dialog",hotkey:27,handler:He,isDisabled:()=>Ye.current}),()=>{e&&j.enable(e),t.destroy()}},[]),(0,a.useEffect)(()=>{Ye.current=Le},[Le]),(0,a.useLayoutEffect)(()=>Se(!0),[]);const Ue=(0,a.useCallback)(e=>{s(e),(0,ie.trackPaymentOrderDialogChanges)("changeBillingCycle",e)},[]),Fe=Oe?[Oe,...i.exchanges]:i.exchanges,ze=(0,a.useCallback)(e=>{e.json().then(e=>{if(we.current){if(i.proPlanProductId&&m&&(window.user.pro_plan=m.getProduct(i.proPlanProductId).text_id,window.user.pro_plan_billing_cycle=i.billingCycle,window.user.is_pro=!0,window.user.is_trial=i.isTrial),oi.xWindowEventsEmit({type:P.Subscribe,invalidateShopConf:i.exchanges.length>0}),i.isTrial)return X(st.Steps.Cheque),(0,U.trackGTagAdsEvent)(U.GTagEvent.TrialSignUp),void(0,F.trackTwitterEvent)(F.TwitterEvent.TrialSignUp);(0,U.trackGTagAdsEvent)(U.GTagEvent.PaidPlanAcquired,{value:e.total,transaction_id:e.transaction_id}),(0,F.trackTwitterEvent)(F.TwitterEvent.PaidPlanAcquired),O({receiptId:e.receipt_id,transactionId:e.transaction_id,date:e.date,total:e.total,resultPricesProducts:(0,ie.getLocalPricesProducts)(Fe,e.result),needExchangeAgreement:e.need_exchange_agreement,currency:e.currency}),X(st.Steps.Cheque)}})},[m,i,Fe]),He=(0,a.useCallback)(()=>{Se(!1),e.onClose&&e.onClose(),W===st.Steps.Trial&&(0,Vr.trackTrialAction)(Oe,i.billingCycle,"close","braintree"),ie.afterPaymentSteps.has(W)&&oi.currentTabEmit({type:P.Subscribe,invalidateShopConf:i.exchanges.length>0})},[W,e.onClose,i.billingCycle,i.proPlanProductId]),Ve=(0,a.useCallback)((e,t)=>{const n="default"===e,a=t.find(t=>t.token===e);ce(!n&&a?te.PaymentTab.OneClick:te.PaymentTab.CreditCard),I(null!=a?a:null),w({
country_code_alpha2:""!==(null==a?void 0:a.billing_address.country_code_alpha2)?null==a?void 0:a.billing_address.country_code_alpha2:x}),de(n?null:e)},[x]),je=(0,a.useCallback)(e=>{if(!e)return;const t=e.filter(e=>e.is_address_complete);he(t);const n=t[0];void 0===A&&n||null!=A&&!t.includes(A)&&n?Ve(n.token,e):n||Ve("default",e)},[Ve]),Ge=(0,a.useCallback)(e=>{const t=i.proPlanProductId?[i.proPlanProductId,...e]:e;u({...i,exchanges:e}),(0,ie.trackPaymentOrderDialogChanges)("changeProducts",t.join(";"))},[i,v]),We=(0,a.useCallback)(e=>{v&&Ve(e,v)},[v]),qe=(0,a.useCallback)(e=>{(0,ie.trackPaymentOrderDialogChanges)("changePaymentTab",e),se(e),e===te.PaymentTab.Ecommpay&&(0,mt.showEcommpay)(x)&&(0,V.isFeatureEnabled)("ecommpay_ru")?(N(H.Currencies.Rub),Ae(S.filter(e=>!mt.ecommpayAvailableCountries.includes(e)))):(N(H.Currencies.Usd),Be())},[x,S,i]),$e=(0,a.useCallback)(()=>{W===st.Steps.PaymentMethod&&T!==H.Currencies.Usd&&N(H.Currencies.Usd),$()},[$,W,T]),Ke=(0,a.useCallback)(()=>{X(r),f("")},[]),Qe=(0,a.useCallback)(()=>X(st.Steps.ExchangeAgreement),[]),Xe=ii.has(W)||W===r,Ze=W===st.Steps.Cheque,Je=ie.hideCartSteps.has(W),et=r===st.Steps.MarketData,tt=B(ai["dialog-section"],{[hn["highlight-wrap"]]:xe,[ai["one-column"]]:Je,[ai["two-column"]]:!Je}),nt=(0,a.useCallback)(async(e,t)=>{const n=await Me(i,e,t);we.current&&Re(n)},[m,i,T]),at=a.useMemo(()=>(0,ie.getPricesForCart)({pro:m,cartData:i,listLocalPricesProducts:Ie}),[m,i,Ie]);return a.createElement(Y.PopupDialog,{isOpened:!0,fullscreen:!0,draggable:!1,rounded:!1,className:B(ai.dialog,Pe&&ai["open-animation"])},a.createElement("section",{className:tt},a.createElement(Ee,{onPrevious:$e,onClose:He,hideBackButton:Xe,hideCloseButton:Le}),a.createElement("div",{ref:De,className:ai.body},a.createElement("div",{className:B(ai.main,Ze&&ai.mainMobile)},a.createElement(o.Switch,null,a.createElement(o.Route,{path:st.Steps.SelectPlan},a.createElement(oe.Provider,{value:ae},a.createElement(Ar,{onChangeBillingCycle:Ue}))),a.createElement(o.Route,{path:st.Steps.BillingCycle},m&&Oe&&a.createElement(Jr,{proPlanProductId:Oe,billingCycle:i.billingCycle,onChange:Ue,pro:m,fixedCycle:ve,initialBillingCycle:c})),a.createElement(o.Route,{path:st.Steps.MarketData},m&&a.createElement(En,{pro:m,billingCycle:i.billingCycle,selectedExchanges:i.exchanges,isOnlyExchanges:et,setExchanges:Ge,statusExtraData:p,setExtraDataStatus:g,defaultCountryCode:x})),a.createElement(o.Route,{path:st.Steps.PaymentMethod},a.createElement(Fr,{onSuccessPurchase:ze,defaultTab:re,currentTab:le,onTabChange:qe,products:Fe,onError:$,buttonContainerRef:be,onBillingAddressChange:nt,price:at,billingCycle:i.billingCycle,hasExchanges:i.exchanges.length>0,onClose:He,ipCountryCode:x,currency:T,blockedCountries:Ne})),m&&x&&a.createElement(o.Route,{path:st.Steps.Trial},Oe&&a.createElement(qr,{onSuccessPurchase:ze,proPlanProductId:Oe,buttonContainerRef:be,onBillingAddressChange:nt,billingCycle:i.billingCycle,modifier:M,orderTermsChecked:fe,onChangeOrderTerm:ye,ipCountryCode:x,onTabChange:qe,currency:T,blockedCountries:Ne
})),a.createElement(o.Route,{path:st.Steps.Error},a.createElement(_n,{onTryAgain:Ke,errorText:h,allowTryAgain:ke,onClose:He})),a.createElement(o.Route,{path:st.Steps.Cheque},a.createElement(oo,{cartData:i,receiptInfo:R,onClose:He,modifier:M,onExchangeAgreement:R&&R.needExchangeAgreement?Qe:void 0,cartPrices:at})),a.createElement(o.Route,{path:st.Steps.ExchangeAgreement},a.createElement(Ko,{onSuccess:q,container:De.current,onRefuse:He})),a.createElement(o.Route,{path:st.Steps.ExchangeAgreementSuccess},a.createElement(Xo,{onClose:He})))),a.createElement("div",{className:B(ai.cart,Je&&ai.hidden)},m&&!Je&&a.createElement(At,{statusExtraData:p,pro:m,cartData:i,currentPaymentTab:le,currentStep:W,reference:be,currentPaymentMethod:A,onSuccessPurchase:ze,onNext:q,onMethodChange:We,onHighlight:_e,isOnlyExchanges:et,setErrorText:f,token:ue,activePaymentMethods:ge,modifier:M,orderTermsChecked:fe,setStep:X,clientToken:me,setAllowTryAgain:Te,listLocalPricesProducts:Ie,currency:T})))));async function rt(e,t){var n;if(await(0,ei.check)())return void(0,ti.showRestrictedCountryNotificationDialog)();const a=null==t?void 0:t.productName;a&&(d(a,null!=e?e:l.BillingCycle.Monthly),Ce(null!==(n=null==t?void 0:t.fixedCycle)&&void 0!==n&&n),q())}async function ot(e,t){await(0,ei.check)()?(0,ti.showRestrictedCountryNotificationDialog)():function(e={}){const t=K.Deferred();return J({doNotCheckSuspicious:e.doNotCheckSuspicious,doNotCheckSocialActivity:e.doNotCheckSocialActivity,customPhoneCheck:e.customPhoneCheck}).then(([n,a])=>{if(!n)return Q.resolve(),t.resolve();if(n&&e.silentPhoneVerification)return t.reject("phone_verification_required");if(!e.showDialog)return Q.done(()=>t.resolve());const r={source:e.source,doNotShowConfirmation:e.doNotShowConfirmation};"suspicious"!==a&&(r.topMessage=(0,E.t)("Verify your phone number and get access to more tools on TradingView.")),Z(r).done(()=>t.resolve()).always(()=>t.reject("phone_verification_declined"))}).catch(e=>e),t.promise()}({showDialog:!0,doNotCheckSocialActivity:!0,doNotShowConfirmation:!0,doNotCheckSuspicious:!1,source:"before_start_trial"}).then(()=>{we.current&&(d(e,t,!0),X(st.Steps.Trial))})}function it(e,t,n){d(e,t,!0),X(st.Steps.Trial),G(n)}async function ct(e,t,a){const{upgradeDialog:r}=await n.e(9347).then(n.bind(n,47684));r({fallback:a,billingCycle:t,proPlan:e,onSuccess:()=>{oi.emit({type:P.Upgrade}),He()}})}})),li=(0,c.guid)();function si(e){const{onClose:t,...n}=e;d().clear();const o=(0,m.getRootOverlapManager)().ensureWindow(li);r.render(a.createElement(ui,{...n,onClose:function(){t&&t(),r.unmountComponentAtNode(o)}}),o)}function ui(e){var t,n;const{statusExtraData:r,billingCycle:i}=e;let c=st.Steps.BillingCycle,s=!0;e.productId||(c=st.Steps.MarketData),e.isTrial&&(c=st.Steps.Trial,s=!1);const[u,d]=a.useState({proPlanProductId:e.productId,billingCycle:null!=i?i:l.BillingCycle.Monthly,exchanges:null!==(t=e.exchanges)&&void 0!==t?t:[],isTrial:null!==(n=e.isTrial)&&void 0!==n&&n});return a.createElement(o.MemoryRouter,{initialEntries:[c],initialIndex:0},a.createElement(O,{
updateShopConf:s,source:"payment-dialog"},a.createElement(ci,{...e,initialBillingCycle:i,initialStep:c,statusExtraData:e.productId?r:lt.StatusExtraData.Enable,cart:u,setCart:d,setBillingCycle:function(e){d({...u,billingCycle:e})},setPlanProduct:function(e,t,n=!1){d({...u,proPlanProductId:e,billingCycle:t,isTrial:n})}})))}function di(e){const{onClose:t,...n}=e;d().clear();const o=(0,m.getRootOverlapManager)(),i=o.ensureWindow(li);r.render(a.createElement(pi,{...n,onClose:function(){t&&t(),r.unmountComponentAtNode(i),o.removeWindow(li)}}),i)}function mi(e,t){var n;switch(t.type){case"setCart":return{...t.cart};case"setBillingCycle":return{...e,billingCycle:t.billingCycle};case"setPlanProduct":return{...e,proPlanProductId:t.productId,isTrial:null!==(n=t.isTrial)&&void 0!==n&&n,billingCycle:t.billingCycle};default:return e}}function pi(e){const[t,n]=a.useReducer(mi,{billingCycle:l.BillingCycle.Monthly,exchanges:[],isTrial:!1});a.useEffect(()=>{(0,i.getTracker)().then(t=>{null==t||t.trackGoproVisits(e.source,e.feature,"dialog")})},[]);const r=a.useCallback(e=>{n({type:"setCart",cart:e})},[]),c=a.useCallback(e=>{n({type:"setBillingCycle",billingCycle:e})},[]),s=a.useCallback((e,t,a)=>{n({type:"setPlanProduct",productId:e,billingCycle:t,isTrial:a})},[]),u=a.useCallback(e=>{var t;const{pro:n,user:a}=e;null!==n&&null!==a&&c(h(n,a,null===(t=e.state)||void 0===t?void 0:t.subscriptionDetails))},[]);return a.createElement(o.MemoryRouter,{initialEntries:[st.Steps.SelectPlan],initialIndex:0},a.createElement(O,{onUpdate:u,onMounted:u,updateShopConf:!0,source:"gopro-payment-dialog"},a.createElement(ci,{...e,initialStep:st.Steps.SelectPlan,cart:t,setCart:r,setBillingCycle:c,setPlanProduct:s})))}},59407:(e,t,n)=>{"use strict";var a;n.d(t,{Steps:()=>a}),function(e){e.SelectPlan="/select-plan",e.BillingCycle="/billing-cycle",e.MarketData="/market-data",e.PaymentMethod="/payment-method",e.Cheque="/cheque",e.Error="/error",e.Trial="/trial",e.ExchangeAgreement="/exchange-agreement",e.ExchangeAgreementSuccess="/exchange-agreement-success"}(a||(a={}))},83317:(e,t,n)=>{"use strict";n.d(t,{getExchangeType:()=>s,exchangeGroupTabTranslate:()=>u,getExchangesOrderedByRegion:()=>m,getAvailableExchanges:()=>p,getLocalPricesProducts:()=>g,getListExchanges:()=>h,trackPaymentOrderDialogChanges:()=>f,trackPaymentOrderDialogInitial:()=>y,getPricesForCart:()=>v,translateExchangeData:()=>C,hideCartSteps:()=>b,afterPaymentSteps:()=>E,getCurrencySign:()=>w});var a,r=n(28353),o=n(9168),i=n(91955),c=n(59407),l=n(10878);function s(e){let t=[];const n=new Map([[o.ExchangeDataType.Stocks,e.is_stocks?o.ExchangeDataType.Stocks:null],[o.ExchangeDataType.Indices,e.is_indices?o.ExchangeDataType.Indices:null],[o.ExchangeDataType.Futures,e.is_futures?o.ExchangeDataType.Futures:null],[o.ExchangeDataType.Currency,e.is_currency?o.ExchangeDataType.Currency:null],[o.ExchangeDataType.Certificates,e.is_certificates?o.ExchangeDataType.Certificates:null],[o.ExchangeDataType.Bist100,null],[o.ExchangeDataType.Bist30,null],[o.ExchangeDataType.Rofex20,null]])
;return"bist_mixed"===e.exchange&&(n.set(o.ExchangeDataType.Indices,null),n.set(o.ExchangeDataType.Bist100,o.ExchangeDataType.Bist100),n.set(o.ExchangeDataType.Bist30,o.ExchangeDataType.Bist30)),"matbarofex"===e.exchange&&(n.set(o.ExchangeDataType.Indices,null),n.set(o.ExchangeDataType.Rofex20,o.ExchangeDataType.Rofex20)),n.forEach(e=>{e&&(t=[...t,e])}),t}function u(e){return{[a.NorthAmerica]:r.t("North America"),[a.Europe]:r.t("Europe"),[a.EastAfrica]:r.t("Middle East / Africa"),[a.Mexico]:r.t("Mexico and South America"),[a.AsiaPacific]:r.t("Asia / Pacific")}[e]}!function(e){e.NorthAmerica="North America",e.Europe="Europe",e.EastAfrica="Middle East/Africa",e.Mexico="Mexico and South America",e.AsiaPacific="Asia/Pacific"}(a||(a={}));const d=new Map([[0,a.NorthAmerica],[1,a.Europe],[2,a.EastAfrica],[3,a.Mexico],[4,a.AsiaPacific]]);function m(e){const t={};for(const n of e){const e=n.region;void 0!==d.get(e)&&(t.hasOwnProperty(e)||(t[""+e]={name:d.get(e),exchanges:[]}),t[""+e].exchanges.push(n))}for(const e in t)if(t.hasOwnProperty(e)){const n=t[""+e].exchanges;"0"===e?n.sort((e,t)=>e.order>t.order?1:-1):n.sort((e,t)=>e.name>t.name?1:-1)}return t}function p(e){return e.filter(e=>!e.disabled)}function g(e,t){const n={};for(let a=0;a<t.length;++a)n[e[a]]=t[a];return n}function h(e,t){return t.exchanges.map(t=>e.getProduct(t))}async function f(e,t){const n=await(0,i.getTracker)();null!==n&&n.trackPaymentOrderDialogChanges(e,t)}async function y(e,t,n){const a=await(0,i.getTracker)();null!==a&&a.trackPaymentOrderDialogInitial(e,t.join(";"),n)}function v(e){var t,n,a,r,o;const{pro:i,cartData:c,listLocalPricesProducts:s,currency:u}=e,{proPlanProductId:d,billingCycle:m}=c;let p=0,g=0,f=u||l.Currencies.Usd,y=0,v=0,C=0,b=0,E=0;if(null===i)return{proPlanCost:p,exchangesCost:b,totalCostWithTax:v,currency:f,tax:y,proPlanCostWithTax:p,baseProPlanCostWithTax:C,subtotal:E};const w=h(i,c);if(void 0===s||0===Object.keys(s).length){const e=d?i.getProduct(d):null,t=e?i.getProduct(e.text_id):null;return C=t?i.getCost(t,m):0,p=e?i.getCost(e,m):0,b=w.reduce((e,t)=>i.getCost(t,m)+e,0),E=p+b,{proPlanCost:p,exchangesCost:b,totalCostWithTax:E,currency:f,tax:y,proPlanCostWithTax:p,baseProPlanCostWithTax:C,subtotal:E}}const x=void 0!==d?s[d]:null,_=null!==(n=null===(t=null==x?void 0:x.tax)||void 0===t?void 0:t.tax)&&void 0!==n?n:0;x&&(p=x.price.total,f=null!==(a=x.price.currency)&&void 0!==a?a:"");const P=x?s[x.text_id]:null;P&&(C=P.price.total+(null!==(o=null===(r=P.tax)||void 0===r?void 0:r.tax)&&void 0!==o?o:0)),b=w.reduce((e,t)=>{var n,a;return(null!==(a=null===(n=s[t.text_id])||void 0===n?void 0:n.price.total)&&void 0!==a?a:0)+e},0);const S=w.reduce((e,t)=>{var n,a,r;return(null!==(r=null===(a=null===(n=s[t.text_id])||void 0===n?void 0:n.tax)||void 0===a?void 0:a.tax)&&void 0!==r?r:0)+e},0);g=p+_;return y=_+S,E=p+b,v=E+y,{proPlanCost:p,exchangesCost:b+S,totalCostWithTax:v,currency:f,tax:y,proPlanCostWithTax:g,baseProPlanCostWithTax:C,subtotal:E}}function C(e){return r.t(e)}
const b=new Set([c.Steps.Cheque,c.Steps.Error,c.Steps.SelectPlan,c.Steps.ExchangeAgreement,c.Steps.ExchangeAgreementSuccess]),E=new Set([c.Steps.Cheque,c.Steps.ExchangeAgreement,c.Steps.ExchangeAgreementSuccess]);function w(e){return"USD"===e?"$":""}},10777:(e,t,n)=>{"use strict";n.r(t),n.d(t,{firstLoginDataUrl:()=>r,accumulateErrors:()=>o,fetchPost:()=>i,firstLoginData:()=>c,resendLink:()=>l,signinUrl:()=>s,signin:()=>d,signupUrl:()=>m,signup:()=>p,ApiError:()=>g,AggregateError:()=>h,recoverPasswordUrl:()=>f,recoverPassword:()=>y,resetPassword:()=>v});var a=n(85198);const r="/accounts/first_login_data/";function o(e,t){return Object.entries(e).map(e=>new g(e[1].join("\n"),t,e[0]))}function i(e,t){return(0,a.fetch)(e,{method:"POST",credentials:"include",mode:"same-origin",body:t})}function c(e){return i(r,e).then(e=>e.ok?e.json():e.json().then(t=>{throw new h(o(t.errors,e.status))}))}function l(){return i("/api/v1/users/anon/change-email/resend/").then(e=>e.ok?e.json():e.json().then(e=>{throw Error(e.error)}))}const s="/accounts/signin/";function u(e){return e.json().then(t=>{if("error"in t&&""!==t.error||"code"in t||!e.ok)throw new g(t.error||t.detail,e.status,t.code,t.two_factor_types);return t})}function d(e){return i(s,e).then(u)}const m="/accounts/signup/";function p(e){return i(m,e).then(e=>e.json().then(t=>{if("errors"in t&&""!==t.errors)throw new h(o(t.errors,e.status))}))}class g extends Error{constructor(e,t,n,a){super(e),this.type=n,this.status=t}}class h extends Error{constructor(e){super(e.map(e=>e.message).join("\n")),this.errors=[],this.errors=e}}const f="/api/v1/recover_password/search/";function y(e){return i(f,e).then(u)}function v(e){return i("/accounts/reset_password/",e).then(e=>400===e.status?e.json().then(t=>{if("errors"in t)throw new h(o(t.errors,e.status));throw new g(t.detail,e.status,t.code)}):u(e))}},30152:(e,t,n)=>{"use strict";n.d(t,{showSupportDialog:()=>a});n(51872);function a(e){return Promise.all([n.e(9685),n.e(5514),n.e(8463),n.e(9289),n.e(509),n.e(3118),n.e(5998),n.e(8844),n.e(1253),n.e(8247),n.e(9297),n.e(9255),n.e(3812),n.e(5376),n.e(1536),n.e(5423),n.e(9957),n.e(7274)]).then(n.bind(n,89053)).then(t=>new t.SupportDialog(e).open())}},78599:(e,t,n)=>{"use strict";async function a(e){return(await Promise.all([n.e(8463),n.e(509),n.e(3118),n.e(5998),n.e(3848),n.e(8844),n.e(9410),n.e(5113),n.e(9565),n.e(8138),n.e(3014),n.e(1536),n.e(9040),n.e(8606)]).then(n.bind(n,44279))).createPhoneDialog(e)}async function r(e){return(await Promise.all([n.e(8463),n.e(509),n.e(3118),n.e(5998),n.e(3848),n.e(8844),n.e(9410),n.e(5113),n.e(9565),n.e(8138),n.e(3014),n.e(1536),n.e(9040),n.e(8606)]).then(n.bind(n,44279))).createEmailDialog(e)}n.d(t,{createPhoneDialog:()=>a,createSMSEmailDialog:()=>r})},1768:(e,t,n)=>{"use strict";n.d(t,{createImage:()=>r,marketingAnalyticsEnabled:()=>o});var a=n(76266);function r(e){const t=document.createElement("img");return t.src=e,t}function o(){return(0,a.isFeatureEnabled)("marketing-analytics")}},1938:(e,t,n)=>{"use strict";n.d(t,{GTagEvent:()=>d,
trackGTagAdsEvent:()=>p});var a=n(76422),r=n(98999),o=n(84015),i=n(49483),c=n(46433),l=n(38663),s=n(1768);let u=!1;var d;function m(){u||!(0,s.marketingAnalyticsEnabled)()||(0,o.isOnMobileAppPage)("any")||i.CheckMobile.iOS()||((0,c.updateInitData)(),(0,c.getInitData)().gadwId&&(u=!0,(0,l.appendScript)("https://www.googletagmanager.com/gtag/js?id="+(0,c.getInitData)().gadwId),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},window.gtag("js",new Date),window.gtag("consent","default",{ad_storage:(0,r.getCookieSetting)(r.CookieSettings.Advertising)?"granted":"denied"}),window.gtag("config",(0,c.getInitData)().gadwId),a.subscribe(r.cookieSettingsChangeEvent,(e,t)=>{e===r.CookieSettings.Advertising&&window.gtag("consent","update",{ad_storage:t?"granted":"denied"})},null)))}function p(e,t={}){if(m(),!u)return;const n=(0,c.getInitData)().gadwId;window.gtag("event","conversion",{send_to:`${n}/${e}`,user_id:window.user.id,...t})}!function(e){e.PageView="kwnRCP6AwqsBEOTvvuED",e.TrialSignUp="6_gCCOyejsACEK3sq6gB",e.RegistrationCompleted="JzYhCIOr578CEK3sq6gB",e.PaidPlanAcquired="ca8iCNrG578CEK3sq6gB"}(d||(d={}))},59401:(e,t,n)=>{"use strict";n.d(t,{TwitterEvent:()=>a,trackTwitterEvent:()=>i});var a,r=n(1768),o=n(98999);!function(e){e.SiteVisit="o2eg2",e.TrialSignUp="o1wjo",e.RegistrationCompleted="o1wjq",e.PaidPlanAcquired="o1wjr"}(a||(a={}));function i(e){(0,r.marketingAnalyticsEnabled)()&&(0,o.getCookieSetting)(o.CookieSettings.Analytics)&&(e=>[`https://analytics.twitter.com/i/adsct?txn_id=${e}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0`,`https://t.co/i/adsct?txn_id=${e}&p_id=Twitter&tw_sale_amount=0&tw_order_quantity=0"`])(e).map(r.createImage)}},38663:(e,t,n)=>{"use strict";n.d(t,{appendScript:()=>r});var a=n(15298);function r(e){const t=document.createElement("script");t.async=!0,t.src=e;const n=(0,a.getCspNonce)();return n&&t.setAttribute("nonce",n),document.head.appendChild(t),t}},98999:(e,t,n)=>{"use strict";n.d(t,{CookieSettings:()=>a,cookieSettingsChangeEvent:()=>c,setCookieSetting:()=>s,getCookieSetting:()=>u});var a,r=n(76422),o=n(11417),i=n(57229);!function(e){e.Analytics="analytics",e.Advertising="advertising"}(a||(a={}));const c="cookie_settings_changed",l={[a.Analytics]:!1,[a.Advertising]:!1};function s(e,t){l[e]=t,o.TVLocalStorage.setItem("cookiesSettings",JSON.stringify(l)),r.emit(c,e,t)}function u(e){return l[e]}!function(){const e=o.TVLocalStorage.getItem("cookiesSettings");if(e)try{const t=JSON.parse(e);l[a.Analytics]=(null==t?void 0:t[a.Analytics])||!1,l[a.Advertising]=(null==t?void 0:t[a.Advertising])||!1}catch(e){}else(0,i.checkCookiePolicy)(i.oldBannerKey)&&(s(a.Analytics,!0),s(a.Advertising,!0),(0,i.onAccept)(),(0,i.removeOldCookieBannerKey)())}()},46433:(e,t,n)=>{"use strict";n.d(t,{updateInitData:()=>i,getInitData:()=>c,getFreshInitData:()=>l});var a=n(88537);const r=(0,n(98125).getLogger)("Common.InitData"),o=window.initData||{};function i(){window.initData&&window.initData!==o&&(Object.assign(o,window.initData),window.initData=o)
;const e=document.querySelectorAll('script[type="application/prs.init-data+json"]');for(let t=0;t<e.length;t++){const n=e[t];try{const e=JSON.parse((0,a.ensureNotNull)(n.textContent));Object.assign(o,e)}catch(e){r.logWarn("Failed to parse initData element. "+e)}finally{(0,a.ensureNotNull)(n.parentNode).removeChild(n)}}}function c(){return o}function l(){return i(),o}},11542:(e,t,n)=>{"use strict";n.d(t,{trackCookies:()=>r});var a=n(91955);async function r(e,t){var n;let r,o;r="/"===window.location.pathname?"index":window.location.pathname.split("/")[1];const i=null!==(n=window.user.pro_plan)&&void 0!==n?n:window.is_authenticated?"free":"visitor";window.is_authenticated&&(o=window.user.id);const c=await(0,a.getTracker)();c&&c.trackToastDialog("cookies",e,t,r,i,o)}},41145:(e,t,n)=>{"use strict";n.d(t,{BackButton:()=>u});var a=n(59496),r=n(97754),o=n(9745),i=n(70895),c=n(81925),l=n(99803),s=n(87823);const u=a.forwardRef((e,t)=>{const{className:n,size:u,...d}=e,m=r(s["back-button"],s["button-"+u],n);return a.createElement("button",{...d,type:"button",className:m,ref:t},a.createElement(o.Icon,{icon:function(e="l"){switch(e){case"l":return i;case"m":return c;case"s":return l;default:return i}}(u),className:s.icon}))})},44943:(e,t,n)=>{"use strict";n.d(t,{dumbValidator:()=>r,useFormValidation:()=>o});var a=n(59496);function r(){return{isValid:!0,errors:[]}}function o(e,t,n){const a={},r={},o={};for(const c of e){const e=void 0!==n?n[c]:void 0,[l,s,u,d,m]=i(t[c],e);a[c]={value:l,onChange:s,validationResults:u},r[c]=d,o[c]=m}return[a,function(){let e=!0;for(const t in r)if(r.hasOwnProperty(t)){const n=r[t];if(void 0!==n){const t=n();e=e&&t}}return e},function(e){for(const t in e)e.hasOwnProperty(t)&&e[t]&&o[t](e[t])}]}function i(e,t){const[n,r]=(0,a.useState)(t),[o,i]=(0,a.useState)(!0),[c,l]=(0,a.useState)([]);function s(t=n){const{isValid:a,errors:r}=e(t);return a!==o&&i(a),(r.length!==c.length||r.filter(e=>c.includes(e)).length>0)&&l(r),a}return[n,function(e){r(e),o||s(e)},{isValid:o,errors:c},s,function(e){i(e.isValid),l(e.errors)}]}},23298:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M5.5 6.44a.75.75 0 1 0-1 1.12l1-1.12zM9 10.5l-.5.56c.29.25.71.25 1 0L9 10.5zm4.5-2.94a.75.75 0 0 0-1-1.12l1 1.12zm-9 0l4 3.5 1-1.12-4-3.5-1 1.12zm5 3.5l4-3.5-1-1.12-4 3.5 1 1.12z"/></svg>'},87172:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zm4.15 5.87a.75.75 0 0 0-1.3-.74l-3.51 6.15-2.31-2.31a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.18-.16l4-7z"/></svg>'},79704:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zM7.75 5.48a1.27 1.27 0 1 1 2.5 0l-.67 4.03a.59.59 0 0 1-1.16 0l-.67-4.03zM8 13a1 1 0 1 1 2 0 1 1 0 0 1-2 0z"/></svg>'},26:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="M9 0a9 9 0 1 0 0 18A9 9 0 0 0 9 0zm1 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zM9 8a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1z"/></svg>'},25293:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M13.47 10.47c.3-.3.77-.3 1.06 0L21.06 17 20 18.06l-6-6-6 6L6.94 17l6.53-6.53z"/></svg>'},87239:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="M16.38 8.18l5.27 6.32-5.27 6.32-.76-.64L19.93 15H7v-1h12.93l-4.31-5.18.76-.64z"/></svg>'},70895:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" width="23" height="23" fill="none"><path stroke="currentColor" stroke-width="1.2" d="M16 22L5.5 11.5 16 1"/></svg>'},81925:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="none"><path stroke="currentColor" stroke-width="1.2" d="M12 16L4.5 8.5 12 1"/></svg>'},99803:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13" fill="none"><path stroke="currentColor" stroke-width="1.2" d="M9 12L3 6.5 9 1"/></svg>'},59899:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 46 46" width="46" height="46"><path fill="#00BFA5" d="M32.0111 37.5309C31.8516 37.9104 32.0412 38.3291 32.4348 38.4661C32.8283 38.603 33.2767 38.4063 33.4362 38.0268L32.0111 37.5309ZM33.4362 38.0268C36.7381 30.1718 34.6144 22.3879 29.9675 17.1594C25.3326 11.9444 18.078 9.16758 11.0662 11.5341L11.5303 12.909C17.7833 10.7986 24.4238 13.2296 28.7766 18.1273C33.1174 23.0112 35.074 30.2445 32.0111 37.5309L33.4362 38.0268Z"/><path fill="#00BFA5" d="M10.4222 8.06326L13.1212 16.0602L7.03425 13.6607L10.4222 8.06326Z"/></svg>'},61975:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="14"><g fill="none" fill-rule="evenodd"><path fill="currentColor" d="M0 6h17v2H0z"/><path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="M13 1.5L18 7l-5 5.5"/></g></svg>'},77540:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="100%" height="100%"><g fill="none" fill-rule="evenodd" stroke="currentColor"><circle cx="9" cy="9" r="8.5"/><path stroke-linecap="square" d="M5.5 13.5v-9h4m-2 4H6m3.5 1l3 4m0-4l-3 4"/></g></svg>'},63897:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="44" height="44" fill="none"><g clip-path="url(#clip0)"><circle fill="currentColor" cx="17" cy="16.927" r="17.003"/><path fill="#fff" d="M17.586 21.523h-1.219c-.61-3.906-.914-6.636-.914-8.191V8.527H18.5v4.793c0 1.563-.305 4.297-.914 8.203zm-.516.868c.532 0 .98.187 1.348.562.375.375.563.828.563 1.36 0 .53-.188.984-.563 1.359a1.814 1.814 0 01-1.348.562c-.53 0-.984-.187-1.36-.562a1.852 1.852 0 01-.562-1.36c0-.53.188-.984.563-1.359a1.852 1.852 0 011.36-.562z"/></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h34v34H0z"/></clipPath></defs></svg>'},54417:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><mask fill="#fff" id="a2yh5eblk"><rect width="20" height="6" rx="1" x="4" y="9"/></mask><rect width="20" height="6" stroke="#fff" stroke-width="3" rx="1" x="4" y="9" mask="url(#a2yh5eblk)"/><path stroke="#fff" stroke-width="1.5" d="M5.75 14.25h16.5V23c0 .14-.11.25-.25.25H6a.25.25 0 0 1-.25-.25v-8.75zM17.2 9.25H13.8a10.66 10.66 0 0 1 .43-2c.24-.69.58-1.32 1.06-1.77a2.64 2.64 0 0 1 1.91-.73c1.08 0 2.05.96 2.05 2.25 0 1.3-.97 2.25-2.05 2.25z"/><path stroke="#fff" stroke-width="1.5" d="M10.7 9.25h3.46a9.6 9.6 0 0 0-.5-1.98c-.54-1.4-1.43-2.52-2.97-2.52-1 0-1.94.93-1.94 2.25 0 1.32.94 2.25 1.94 2.25z"/><path fill="#fff" d="M13 9h1.5v14H13z"/></svg>'},43861:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 18A9 9 0 109 0a9 9 0 000 18zM3 9l6-6 6 6h-2v5h-3v-3.5l-2 .008V14H5V9H3z"/></svg>'},66026:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 18A9 9 0 1 0 9 0a9 9 0 0 0 0 18zM3 9l6-6 6 6h-2v5h-3v-3.5H8V14H5V9H3z"/></svg>'},55348:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 168.8 51.5" width="168.8" height="51.5px"><g transform="matrix(1.3333333,0,0,-1.3333333,0,51.546667)"><g transform="scale(0.1)"><g><g><path fill="currentColor" d="m 131.258,26.6211 h 21.9258 v 108.336 H 131.258 Z"/><path fill="currentColor" d="m 228.555,121.543 c 10.836,0 17.718,-2.629 21.582,-4.836 l 1.496,-0.855 5.16,17.566 -1.016,0.512 c -5.156,2.586 -15.379,5.609 -27.222,5.609 -17.102,0 -31.715,-5.617 -42.254,-16.246 -10.207,-10.297 -15.832,-24.9219 -15.832,-41.1875 0,-16.2617 5.093,-30.1328 14.726,-40.1133 9.703,-10.0508 23.266,-15.3633 39.219,-15.3633 13.688,0 25.231,3.5 30.957,6.4961 l 0.926,0.4844 -3.871,17.0195 -1.504,-0.6641 c -5.649,-2.4765 -12.551,-5.121 -23.027,-5.121 -21.11,0 -35.293,15.3203 -35.293,38.121 0,10.7969 3.281,20.5122 9.238,27.3442 6.406,7.351 15.644,11.234 26.715,11.234"/><path fill="currentColor" d="m 350.828,121.559 c -7.851,11.906 -20.262,18.203 -35.883,18.203 -15.164,0 -28.078,-5.887 -37.343,-17.024 -8.735,-10.488 -13.543,-25.1521 -13.543,-41.2888 0,-16.1797 4.89,-29.8828 14.148,-39.6172 9.453,-9.9453 22.988,-15.2031 39.145,-15.2031 16.918,0 28.746,3.75 35.683,6.8906 l 1.024,0.4649 -3.911,16.3945 -1.476,-0.625 c -6.559,-2.7773 -14.574,-5.3477 -28.699,-5.3477 -9.848,0 -18.231,2.8516 -24.246,8.2422 -6.579,5.9024 -10.133,14.5391 -10.579,25.6954 h 73.993 l 0.238,2.0664 c 0.238,2.0156 0.566,4.7734 0.566,8.2421 0,5.7344 -0.886,20.4257 -9.117,32.9067 m -37.41,1.73 c 7.215,0 13.043,-2.211 17.328,-6.566 6.82,-6.942 7.836,-17.3246 7.93,-21.9105 h -53.153 c 1.743,11.2465 9.289,28.4765 27.895,28.4765"/><path fill="#7dd5f5" d="M 0,386.57 V 26.5664 H 71.332 V 67.4961 H 40.918 V 345.652 H 319.863 V 191.977 H 360 V 386.57 H 0"/><g transform="scale(10)"><text fill="#48484f" transform="matrix(1,0,0,-1,41.3605,2.66445)" style="font-size:9.68912029px;font-family:Gotham;-inkscape-font-specification:Gotham-Medium;"><tspan x="0 7.35498 14.34863 19.956537 27.659172 30.614248 37.02441 43.758789 50.745117 58.123535 61.372086 68.672852 75.401855" y="0">DATA SERVICES</tspan></text></g><path fill="#48484f" d="m 1240.85,92.3008 h -4.84 v 2.4883 h 12.4 v -2.4883 h -4.85 V 79.4922 h -2.71 v 12.8086"/><path fill="#48484f" d="m 1250.82,94.7891 h 2.87 l 4.65,-7.2344 4.65,7.2344 h 2.86 V 79.4922 h -2.68 v 10.9687 l -4.83,-7.2109 h -0.09 l -4.78,7.1719 V 79.4922 h -2.65 v 15.2969"/></g></g></g></g></svg>'},60495:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path stroke="currentColor" d="M8 8.5h1.5V14"/><circle fill="currentColor" cx="9" cy="5" r="1"/><path stroke="currentColor" d="M16.5 9a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0z"/></svg>'},65417:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M14 4a10 10 0 1 0 0 20 10 10 0 0 0 0-20zM3 14a11 11 0 1 1 22 0 11 11 0 0 1-22 0z"/><path fill="currentColor" d="M13.5 20v-7.5H12V11h3v9h-1.5z"/><circle fill="currentColor" cx="14" cy="9" r="1"/></svg>'},158:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="158" height="28"><g fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"><path d="M127.367 7.215c0 .981-.825 1.779-1.863 1.779-.995 0-1.842-.798-1.842-1.78 0-.98.847-1.778 1.842-1.778 1.038 0 1.863.797 1.863 1.779zM127 21h-3V10h3v11zM81.543 9.025c1.038 0 1.863-.798 1.863-1.78 0-.981-.825-1.779-1.863-1.779-.995 0-1.841.798-1.841 1.78 0 .981.847 1.779 1.841 1.779zM80 21h3V10h-3v11zm-37 0h-2.999V9H36V6h11v3h-4v12zm7 0-3 .018V10h3v1.885a2.68 2.68 0 0 1 2.526-1.759h.033c.305 0 .594 0 .941.099v2.842a4.006 4.006 0 0 0-1.313-.2C50.81 12.867 50 13.87 50 15.568V21zm38 0h-3V10.012L88 10v1c.572-.818 1.53-1.213 2.906-1.213 2.562 0 4.086 1.8 4.086 4.458V21H92v-6c0-1.473-.564-2.657-1.771-2.657-1.355 0-2.229.922-2.229 2.886v5.77zm29 0 6-15h-3.5l-4 10.5L111 6h-3.5l6.5 15h3zm36.449 0h-2.926l-2.023-6.248L146.499 21h-2.927L140 10h3.142l2.044 7.04 2.173-7.04h2.26l2.195 7.04 2.023-7.04H157l-3.551 11zm-94.531.242c1.518 0 2.576-.77 3.082-1.474V21h3l-.004-11h-2.992v1.232c-.506-.704-1.568-1.474-3.086-1.474-2.926 0-5.17 2.64-5.17 5.742s2.244 5.742 5.17 5.742zm.638-2.75c-1.672 0-2.772-1.254-2.772-2.992s1.1-2.992 2.772-2.992c1.672 0 2.772 1.254 2.772 2.992s-1.1 2.992-2.772 2.992zM75 19.768c-.506.704-1.564 1.474-3.082 1.474-2.926 0-5.17-2.64-5.17-5.742s2.244-5.742 5.17-5.742c1.518 0 2.576.77 3.082 1.474V6h3v15h-3v-1.232zM69.784 15.5c0 1.738 1.1 2.992 2.772 2.992 1.672 0 2.772-1.254 2.772-2.992s-1.1-2.992-2.772-2.992c-1.672 0-2.772 1.254-2.772 2.992zm32.794 2.64c-1.518 0-2.794-1.144-2.794-2.816 0-1.694 1.276-2.816 2.794-2.816s2.794 1.122 2.794 2.816c0 1.672-1.276 2.816-2.794 2.816zm-.352 7.678c3.366 0 5.774-1.716 5.774-5.676V10h-3v1.232c-.594-.858-1.652-1.474-3.06-1.474-2.882 0-5.192 2.464-5.192 5.566 0 3.08 2.31 5.676 5.192 5.676 1.408 0 2.466-.77 3.06-1.584v.748c0 1.76-1.036 3.014-2.818 3.014-1.232 0-2.464-.418-3.432-1.364l-1.65 2.244c1.254 1.21 3.212 1.76 5.126 1.76zm37.556-7.094c-1.034 1.496-2.794 2.464-5.104 2.464-3.278 0-5.83-2.266-5.83-5.742 0-3.256 2.442-5.742 5.786-5.742 2.882 0 5.412 1.826 5.412 5.412l.001.16a6.01 6.01 0 0 1-.045.974h-8.228c.176 1.474 1.474 2.188 2.926 2.188 1.386 0 2.332-.616 2.838-1.386l2.244 1.672zm-5.236-6.534c-1.122 0-2.376.572-2.662 1.914h5.148c-.264-1.32-1.364-1.914-2.486-1.914zM12 6H0v6h6v9h6V6zm12 15h-7l6-15h7l-6 15zm-7-9a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/></g></svg>'},65151:e=>{
e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44" width="44" height="44" fill="none"><path fill="none" d="M0 0h44v44H0z"/><circle fill="currentColor" cx="22" cy="22" r="22"/><path stroke="#fff" stroke-linecap="round" stroke-width="2.59" d="M12.34 22.55l6.88 6.88 14.55-14.55"/></svg>'},17681:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M9 16A7 7 0 1 0 9 2a7 7 0 0 0 0 14zm0 1A8 8 0 1 0 9 1a8 8 0 0 0 0 16zm-1-4a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7 7a2 2 0 1 1 4 0c0 .38-.11.6-.26.77a2.38 2.38 0 0 1-.84.53c-.26.13-.58.29-.83.5A1.5 1.5 0 0 0 8.5 10v.5h1V10c0-.2.07-.32.21-.44a3.18 3.18 0 0 1 .76-.43c.32-.15.7-.36 1-.7.33-.35.53-.81.53-1.43a3 3 0 1 0-6 0h1z"/></svg>'}}]);