Files
ai/charting_library/bundles/email-dialog.11c06641e902f3048b83.js
2023-02-02 13:31:14 +00:00

16 lines
46 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

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

(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[8606],{52014:()=>{},6539:e=>{e.exports={button:"button-YKkCvwjV",content:"content-YKkCvwjV","icon-only":"icon-only-YKkCvwjV","color-brand":"color-brand-YKkCvwjV","variant-primary":"variant-primary-YKkCvwjV","variant-secondary":"variant-secondary-YKkCvwjV","color-gray":"color-gray-YKkCvwjV","color-green":"color-green-YKkCvwjV","color-red":"color-red-YKkCvwjV","size-xsmall":"size-xsmall-YKkCvwjV","size-small":"size-small-YKkCvwjV","size-medium":"size-medium-YKkCvwjV","size-large":"size-large-YKkCvwjV","size-xlarge":"size-xlarge-YKkCvwjV","with-start-icon":"with-start-icon-YKkCvwjV","with-end-icon":"with-end-icon-YKkCvwjV","start-icon-wrap":"start-icon-wrap-YKkCvwjV","end-icon-wrap":"end-icon-wrap-YKkCvwjV",animated:"animated-YKkCvwjV",stretch:"stretch-YKkCvwjV",grouped:"grouped-YKkCvwjV","adjust-position":"adjust-position-YKkCvwjV","first-row":"first-row-YKkCvwjV","first-col":"first-col-YKkCvwjV","no-corner-top-left":"no-corner-top-left-YKkCvwjV","no-corner-top-right":"no-corner-top-right-YKkCvwjV","no-corner-bottom-right":"no-corner-bottom-right-YKkCvwjV","no-corner-bottom-left":"no-corner-bottom-left-YKkCvwjV"}},16178:e=>{e.exports={"close-button":"close-button-WaM0Er9G","close-icon":"close-icon-WaM0Er9G","button-l":"button-l-WaM0Er9G","button-m":"button-m-WaM0Er9G","button-s":"button-s-WaM0Er9G","button-xs":"button-xs-WaM0Er9G","button-xxs":"button-xxs-WaM0Er9G"}},8714:e=>{e.exports={"button-box-code":"button-box-code-ykdczZxH","small-buttons":"small-buttons-ykdczZxH",arrowHolder:"arrowHolder-ykdczZxH","arrowHolder--below":"arrowHolder--below-ykdczZxH","arrowHolder--above":"arrowHolder--above-ykdczZxH","arrowHolder--before":"arrowHolder--before-ykdczZxH","arrowHolder--after":"arrowHolder--after-ykdczZxH",tooltip:"tooltip-ykdczZxH"}},96290:e=>{e.exports={"content-wrap-template":"content-wrap-template-SuBxKHcJ",title:"title-SuBxKHcJ",description:"description-SuBxKHcJ","close-button":"close-button-SuBxKHcJ","phone-block":"phone-block-SuBxKHcJ","email-block":"email-block-SuBxKHcJ",input:"input-SuBxKHcJ","code-block":"code-block-SuBxKHcJ","timer-block":"timer-block-SuBxKHcJ","spinner-wrap":"spinner-wrap-SuBxKHcJ","hide-country-select":"hide-country-select-SuBxKHcJ","okay-button":"okay-button-SuBxKHcJ","wrapper-content":"wrapper-content-SuBxKHcJ","wrapper-content-successful":"wrapper-content-successful-SuBxKHcJ",link:"link-SuBxKHcJ","labeled-input":"labeled-input-SuBxKHcJ"}},10660:e=>{e.exports={code:"code-w1JWVjk5","ui-kit-input":"ui-kit-input-w1JWVjk5",input:"input-w1JWVjk5","digit-1":"digit-1-w1JWVjk5","digit-2":"digit-2-w1JWVjk5","digit-3":"digit-3-w1JWVjk5","digit-4":"digit-4-w1JWVjk5","input-disable-mode-safari":"input-disable-mode-safari-w1JWVjk5"}},98898:e=>{e.exports={countrySelect:"countrySelect-zsy9fYkd",flagSlot:"flagSlot-zsy9fYkd",flag:"flag-zsy9fYkd",textSlot:"textSlot-zsy9fYkd"}},99171:e=>{e.exports={button:"button-1ARG85Og",disabled:"disabled-1ARG85Og",hidden:"hidden-1ARG85Og",icon:"icon-1ARG85Og",dropped:"dropped-1ARG85Og"}},28335:e=>{
e.exports={label:"label-UvIfeuIB"}},44443:e=>{e.exports={container:"container-vZPBcQQO",content:"content-vZPBcQQO",arrowHolder:"arrowHolder-vZPBcQQO","arrowHolder--below":"arrowHolder--below-vZPBcQQO","arrowHolder--above":"arrowHolder--above-vZPBcQQO","arrowHolder--before":"arrowHolder--before-vZPBcQQO","arrowHolder--after":"arrowHolder--after-vZPBcQQO","arrowHolder--above-fix":"arrowHolder--above-fix-vZPBcQQO","arrowHolder--before-rtl-fix":"arrowHolder--before-rtl-fix-vZPBcQQO","arrowHolder--after-ltr-fix":"arrowHolder--after-ltr-fix-vZPBcQQO",label:"label-vZPBcQQO",closeButton:"closeButton-vZPBcQQO"}},97737:(e,t,o)=>{"use strict";o.d(t,{AnchorButton:()=>u,Button:()=>c});var n=o(59496),r=o(71036);function s(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function i(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function a(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}function l(e){const{intent:t,size:o,appearance:n,useFullWidth:r,icon:l,...c}=e;return{...c,color:i(t),size:a(o),variant:s(n),stretch:r,startIcon:l}}function c(e){return n.createElement(r.SquareButton,{...l(e)})}function d(e){const{intent:t,size:o,appearance:n,useFullWidth:r,icon:l,...c}=e;return{...c,color:i(t),size:a(o),variant:s(n),stretch:r,startIcon:l}}function u(e){return n.createElement(r.SquareAnchorButton,{...d(e)})}},71036:(e,t,o)=>{"use strict";o.d(t,{SquareAnchorButton:()=>v,SquareButton:()=>p});var n=o(59496),r=o(97754),s=o(95604),i=o(9745),a=o(6539),l=o.n(a);function c(e){const{color:t="brand",size:o="medium",variant:n="primary",stretch:i=!1,icon:a,startIcon:c,endIcon:d,iconOnly:u=!1,className:h,isGrouped:m,cellState:p,disablePositionAdjustment:f=!1}=e,v=function(e){let t="";return 0!==e&&(1&e&&(t=r(t,l()["no-corner-top-left"])),2&e&&(t=r(t,l()["no-corner-top-right"])),4&e&&(t=r(t,l()["no-corner-bottom-right"])),8&e&&(t=r(t,l()["no-corner-bottom-left"]))),t}((0,s.getGroupCellRemoveRoundBorders)(p));return r(h,l().button,l()["size-"+o],l()["color-"+t],l()["variant-"+n],i&&l().stretch,(a||c)&&l()["with-start-icon"],d&&l()["with-end-icon"],u&&l()["icon-only"],v,m&&l().grouped,m&&!f&&l()["adjust-position"],m&&p.isTop&&l()["first-row"],m&&p.isLeft&&l()["first-col"])}function d(e){const{size:t,startIcon:o,icon:r,iconOnly:s,children:a,endIcon:c}=e,d=null!=o?o:r;return n.createElement(n.Fragment,null,d&&"xsmall"!==t&&n.createElement(i.Icon,{icon:d,className:l()["start-icon-wrap"]}),a&&n.createElement("span",{className:l().content},a),c&&!s&&"xsmall"!==t&&n.createElement(i.Icon,{icon:c,className:l()["end-icon-wrap"]}))}var u=o(86332),h=o(90186);function m(e){const{className:t,color:o,variant:n,size:r,stretch:s,animated:i,icon:a,iconOnly:l,startIcon:c,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function p(e){const{reference:t,...o}=e,{isGrouped:r,cellState:s,disablePositionAdjustment:i}=(0,n.useContext)(u.ControlGroupContext),a=c({...o,isGrouped:r,
cellState:s,disablePositionAdjustment:i});return n.createElement("button",{...m(o),className:a,ref:t},n.createElement(d,{...o}))}function f(e){const{className:t,color:o,variant:n,size:r,stretch:s,animated:i,icon:a,iconOnly:l,startIcon:c,endIcon:d,...u}=e;return{...u,...(0,h.filterDataProps)(e),...(0,h.filterAriaProps)(e)}}function v(e){const{reference:t}=e,{isGrouped:o,cellState:r,disablePositionAdjustment:s}=(0,n.useContext)(u.ControlGroupContext),i=c({...e,isGrouped:o,cellState:r,disablePositionAdjustment:s});return n.createElement("a",{...f(e),className:i,ref:t},n.createElement(d,{...e}))}},35582:(e,t,o)=>{"use strict";o.d(t,{CloseButton:()=>p});var n=o(59496),r=o(97754),s=o(9745),i=o(64120),a=o(12565),l=o(95781),c=o(7801),d=o(33584),u=o(16178),h=o.n(u);function m(e="l"){switch(e){case"l":return i;case"m":return a;case"s":return l;case"xs":return c;case"xxs":return d;default:return a}}const p=n.forwardRef((e,t)=>{const{className:o,size:i,...a}=e,l=r(h()["close-button"],h()["button-"+i],o);return n.createElement("button",{...a,type:"button",className:l,ref:t},n.createElement(s.Icon,{icon:m(i),className:h()["close-icon"],"aria-hidden":!0}))})},22064:(e,t,o)=>{"use strict";o.d(t,{createDomId:()=>l,joinDomIds:()=>c});const n=/\s/g;function r(e){return"string"==typeof e}function s(e){switch(typeof e){case"string":return e;case"number":case"bigint":return e.toString(10);case"boolean":case"symbol":return e.toString();default:return null}}function i(e){return e.trim().length>0}function a(e){return e.replace(n,"-")}function l(...e){const t=e.map(s).filter(r).filter(i).map(a);return(t.length>0&&t[0].startsWith("id_")?t:["id",...t]).join("_")}function c(...e){return e.map(s).filter(r).filter(i).join(" ")}},20497:(e,t,o)=>{"use strict";var n=o(23127);const r=o(98125).getLogger("CommonUI.CreateTVBlockPlugin");e.exports.createTvBlockWithInstance=function(e,t){if(e&&t)return e=e.toString(),function(s,i,a){var l,c,d;return"get"===s?l=i:(c=i,"object"==typeof s&&void 0===i?(c=s,s="init"):"string"!=typeof s&&(s="init")),"getInstance"===s?n(this).eq(0).data(e):"destroy"===s?(d=n(this).eq(0).data(e))?void("function"==typeof d.destroy?(o(d,"destroy",c),n(this).eq(0).removeData(e)):r.logError("[Block Plugin] "+e+" does not support destroy command")):void console.warn("[Block Plugin] Trying to execute destroy method of "+e+" but it has not been inited"):"get"===s?(d=n(this).eq(0).data(e))?"function"==typeof d[l]?o(d,l,a):d[l]:void console.warn("[Block Plugin] Trying to get prop or execute method of "+e+" but it has not been inited"):n(this).each((function(){var i=n(this),a=i.data(e);void 0===a&&(a=void 0===c?t(i):t(i,c),i.data(e,a)),"init"!==s&&("function"==typeof a[s]?o(a,s,c):r.logError("[Block Plugin] "+e+" does not support command "+s))}))};function o(e,t,o){return void 0===o?e[t]():e[t](o)}}},78754:(e,t,o)=>{"use strict";o.d(t,{buttonLoader:()=>i});o(52014);var n=o(20497),r=o(68587),s=o(23127);function i(e){return new a(s(e))}s.fn.tvButtonLoader=(0,n.createTvBlockWithInstance)("tv-button-loader",(function(e){return new a(e)}))
;class a{constructor(e){this.$btn=s(e).addClass("tv-button--loader"),0===this.$btn.find(".tv-button__loader").length&&this.$btn.html('<span class="tv-button__text">'+this.$btn.html()+'</span><span class="tv-button__loader"><span class="tv-button__loader-item"></span><span class="tv-button__loader-item"></span><span class="tv-button__loader-item"></span></span>'),this.loading=this.$btn.hasClass("i-loading")}_start(){this.starting=!0,this.$btn.addClass("i-start-load"),this.$btn.trigger("tv-button-loader:start"),setTimeout(()=>{this.loading=!0,this.starting=!1,this._startPromise=!1,this.$btn.addClass("i-loading"),this.$btn.removeClass("i-start-load"),this._stopPromise&&this._stop()},2*r.dur)}start(){this.starting||(this.stopping?this._startPromise=!0:this._start())}_stop(){this.stopping=!0,this.$btn.addClass("i-stop-load"),this.$btn.trigger("tv-button-loader:stop"),setTimeout(()=>{this.loading=!1,this.stopping=!1,this._stopPromise=!1,this.$btn.removeClass("i-loading i-start-load i-stop-load"),this._startPromise&&this._start()},r.dur)}stop(){this.stopping||(this.starting?this._stopPromise=!0:this._stop())}toggle(){this.loading?this.stop():this.start()}contentHtml(e){return e?(this.$btn.find(".tv-button__text").html(e),e):this.$btn.find(".tv-button__text").html()}contentNojQuery(){return this.$btn.get(0)}disable(){this.stop(),this.$btn.addClass("i-disabled")}enable(){this.$btn.removeClass("i-disabled")}}},93573:(e,t,o)=>{"use strict";o.d(t,{getCountries:()=>s});var n=o(85198);let r=null;async function s(){var e;if(null!==r)return r;const t=await(0,n.fetch)("/accounts/countries/",{credentials:"include"});if(!t.ok){const e=await t.json();throw Error(String(e))}const o=await t.json();return r={...o,current_country_code:null!==(e=o.current_country_code)&&void 0!==e?e:"US"},r}},976:(e,t,o)=>{"use strict";o.d(t,{TVModal:()=>f});var n=o(28353),r=o(68587),s=o(49483),i=o(43989),a=o(51536),l=o(4185),c=o(85739),d=o(25760),u=o(23127),h=o(25977);let m=[];const p={ajax:{},closingDuration:r.dur/2,fixBodyState:!0,overlayTemplate:'<div class="tv-dialog__overlay"></div>',containerTemplate:'<div class="tv-dialog__modal-wrap"><div class="tv-dialog__modal-container"><div class="tv-dialog__modal-body"></div></div></div>',ajaxErrorTemplate:`<div class="tv-dialog__error js-dialog__close">${(0,n.t)("Error")}</div>`};class f extends a.TVDialogAbstract{constructor(e={}){if(super({...p,...e}),this.$overlay=u(this.options.overlayTemplate),this.$modalWrap=u(this.options.containerTemplate),this.$body=this.$modalWrap.find(".tv-dialog__modal-body").append(this.$el),this.options.closeOnOutsideClick&&this.$overlay.add(this.$modalWrap).click(e=>{this.isEventOut(e)&&this.close()}),this.on("change:zIndex",()=>{this.$overlay.css("z-index",this.zIndex),this.$modalWrap.css("z-index",this.zIndex)}),this.on("destroy",()=>{const e=()=>{this.$overlay.remove(),this.$modalWrap.remove()};this.opened?(this.close(),setTimeout(e,this.options.closingDuration)):e()}),this.on("beforeOpen",()=>{m.push(this)}),this.options.ajax.url){
const e=this.options.ajax.beforeSend||u.noop,t=this.options.ajax.success||!1,o=this.options.ajax.error||u.noop;u.extend(this.options.ajax,{beforeSend:()=>{this.trigger("beforeLoading",[this]),this.startSpinner(),e(this)},success:e=>{this.trigger("afterLoading",[this]),this.renderContent(t?t(this,e):e).showContent(),this.trigger("afterLoadingShow",[this])},error:()=>{this.renderContent(this.options.ajaxErrorTemplate),o(this),this.trigger("errorLoading",[this])}})}this.on("error",(e,t)=>{this.$modalWrap[0].getBoundingClientRect().height<this.$content[0].getBoundingClientRect().height&&t.addClass("i-fixed").css({width:this.$el.width()})}),this._keyboardBinderLockId=null}open(){if(this.opened)return;this.opened=!0,this._keyboardBinderLockId=c.disable(),this.options.fixBodyState&&(0,i.setFixedBodyState)(!0),this._hotkeys||(this._hotkeys=d.createGroup({desc:"Modal Dialog",isDisabled:()=>!this.opened,modal:!0}),this.options.closeOnEsc&&this._hotkeys.add({desc:"close",hotkey:27,handler:()=>this.close()}));const e=()=>{this.focus(),this.toTop(),this.trigger("beforeOpen",[this]),u(this.$wrap).append(this.$overlay.addClass("i-hidden i-closed").css("z-index",this.zIndex)).append(this.$modalWrap.addClass("i-hidden i-closed").css("z-index",this.zIndex)),this.$overlay.removeClass("i-hidden"),setTimeout(()=>{this.$overlay.removeClass("i-closed")},20),this.options.ajax.url?this.ajaxRequest=u.ajax(this.options.ajax):this.showContent()};return s.isSafari?setTimeout(()=>e(),50):e(),this}close(){if(this.opened)return this.opened=!1,this._keyboardBinderLockId&&c.enable(this._keyboardBinderLockId),this._hotkeys&&(this._hotkeys.destroy(),this._hotkeys=null),this.trigger("beforeClose",[this]),this.ajaxRequest&&(this.ajaxRequest.abort(),delete this.ajaxRequest),this.hideContent(),this.$overlay.addClass("i-closed"),setTimeout(()=>{this.$modalWrap.addClass("i-hidden").detach(),this.$overlay.addClass("i-hidden").detach(),m=h.without(m,this),this.options.fixBodyState&&(0,i.setFixedBodyState)(!1),this.trigger("afterClose",[this]),this.unfocus(),m.length>0&&m[m.length-1].focus(),this.options.destroyOnClose&&this.destroy()},this.options.closingDuration),this}showContent(){return this.$modalWrap.removeClass("i-hidden"),setTimeout(()=>{this.$modalWrap.removeClass("i-closed")},20),setTimeout(()=>{this.trigger("afterOpen",[this]),this.spinner&&this.stopSpinner()},.75*r.dur+20),this}hideContent(){if(this.$el)return this.$modalWrap.addClass("i-closed"),this.unfocus(),this}startSpinner(){return this.spinner=new l.Spinner("large"),this.spinner.spin(this.$overlay[0]),this}stopSpinner(){if(this.spinner)return this.spinner.stop(),delete this.spinner,this}}},44279:(e,t,o)=>{"use strict";o.r(t),o.d(t,{createEmailDialog:()=>Le,createPhoneDialog:()=>Te});var n,r=o(59496),s=o(28353),i=o(87995),a=o(976),l=o(91955);!function(e){e.SmsEmail="smsEmail",e.Phone="phone"}(n||(n={}));const c={[n.SmsEmail]:null,[n.Phone]:null};function d(e,t,o,n){const{featureSource:s="",doNotShowConfirmation:d=!1}=t,{onVerificationSuccess:u}=n;let h=null,m=c[o];null===m&&(m=new a.TVModal({
closeButton:!1,closeOnOutsideClick:!1,contentWrapTemplate:'<div class="tv-dialog__verification-content"></div>',containerTemplate:'<div class="tv-dialog__modal-wrap"><div class="tv-dialog__modal-container"><div class="tv-dialog__modal-body tv-dialog__verification-modal"></div></div></div>',focusFirstControl:!1,closeOnEsc:!1}),c[o]=m,h=m.$content.get(0),m.on("destroy",()=>{null!==h&&i.unmountComponentAtNode(h),c[o]=null}));const p=location.pathname,f=()=>{const[t,n]=r.useState(!1);return r.useEffect(()=>(null==m||m.on("afterOpen",()=>{var e,t;(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("shown",s,p)}),n(null!==(t=null===(e=c[o])||void 0===e?void 0:e.isOpened())&&void 0!==t&&t)}),null==m||m.on("afterClose",()=>{var e;return n(null!==(e=null==m?void 0:m.isOpened())&&void 0!==e&&e)}),()=>n(!1)),[]),r.createElement(e,{onClose:()=>{var e;return null===(e=c[o])||void 0===e?void 0:e.close()},opened:t,showConfirmation:!d,onVerificationCancel:()=>{(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("closed",s,p)}),null==m||m.trigger("verification:cancel",null)},onVerificationCodeExpired:()=>{(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("code_expired",s,p)}),null==m||m.trigger("verification:codeExpired",null)},onVerificationSuccess:e=>{u(e),null==m||m.trigger("verification:success",[e])}})};return h&&i.render(r.createElement(f,null),h),m}var u=o(85198);const h=window;function m(){return void 0!==h.AbortController}let p=null,f=null;function v(){m()&&(null==p||p.abort(),p=new AbortController,f=p.signal)}function g(e,t){return e[t.country_code]=t,e}function b(){const[e,t]=r.useState(null);return r.useEffect(()=>{(0,u.fetch)("/accounts/phone-options/",{signal:f}).then(e=>e.json()).then(({options:e,iso:o,phone:n})=>{t({iso:o,options:e.reduce(g,{}),phone:null==n?void 0:n.replace(/[^0-9]/g,"")})})},[]),e}var w;function y(e){return e.ok?e.json():e.json().then(({error:e})=>{throw new Error(e)})}function C(e){return 0===e.length?[s.t("This field is required")]:[]}function S(e,t){return(o,n,r,s)=>{const i=C(r);i.length>0?t(i):function(e,t,o){const n=new FormData;return n.append("phone",`+${t}${o}`),n.append("phone_country_code",e),(0,u.fetch)("/accounts/change-phone/",{method:"POST",credentials:"include",body:n,signal:f}).then(e=>e.ok?e.json():e.json().then(t=>{let o="";if([400,422,429].includes(e.status)){const e=[];Object.values(t.errors).forEach(t=>{e.push(...t)}),o=e.join("\n")}throw 403===e.status&&(o=t.error),new Error(o)}))}(o,n,r).then(()=>function(e){const t=new FormData;return t.append("channel",e),(0,u.fetch)("/accounts/phone-verify-send/",{method:"POST",credentials:"include",body:t}).then(e=>y(e))}(s)).then(t=>{e({...t,exp:Date.now()+1e3*t.exp})}).catch(e=>{t([e.message])})}}function x(e,t){return o=>{const n=C(o);n.length>0?t(n):function(e){const t=new FormData;return t.append("sms_email",e.sms_email),(0,u.fetch)("/accounts/sms-email/change/",{method:"POST",credentials:"include",body:t,signal:f}).then(e=>e.ok?e.json():e.json().then(t=>{if(400===e.status){const e=[]
;throw Object.values(t.errors).forEach(t=>{e.push(...t)}),new Error(e.join("\n"))}throw new Error(t.detail)}))}({sms_email:o}).then(t=>{e({...t,exp:Date.now()+1e3*t.exp})}).catch(e=>{t([e.message])})}}function E(e,t){return r.useCallback((o,n,r)=>{const s=C(n);s.length>0?t(s):function({code:e,sid:t}){const o=new FormData;return t&&o.append("sid",t),o.append("code",e),(0,u.fetch)("/accounts/phone-verify-check/",{method:"POST",credentials:"include",body:o,signal:f}).then(e=>y(e))}({code:n,sid:r}).then(()=>{e(o)}).catch(e=>{t([e.message])})},[])}function k(e,t){return r.useCallback((o,n,r)=>{const s=C(n);s.length>0?t(s):function({code:e,sid:t}){const o=new FormData;return t&&o.append("sid",t),o.append("code",e),(0,u.fetch)("/accounts/sms-email/check_code/",{method:"POST",credentials:"include",body:o,signal:f}).then(e=>e.ok?e.json():e.json().then(({detail:e})=>{throw new Error(e)}))}({code:n,sid:r}).then(()=>{e(o)}).catch(e=>{t([e.message])})},[])}m()&&(p=new AbortController,f=p.signal),function(e){e.Sms="sms",e.Call="call"}(w||(w={}));var _=o(97754),N=o(49483),B=o(78274),V=o(86623),j=o(86629),I=o(67029);const M=r.forwardRef((e,t)=>{const{className:o,...n}=e;return r.useEffect(()=>()=>{var e;t&&(null===(e=t.current)||void 0===e||e.blur())},[]),r.createElement(V.FormInput,{reference:e=>{e&&t&&(t.current=e)},className:_(I.InputClasses.FontSizeLarge,o),size:"large",messagesPosition:j.MessagesPosition.Attached,stretch:!0,...n})});var H=o(10660);const P=r.forwardRef((e,t)=>{const{value:o,disabled:n=!1,errors:i}=e,a=e.code?"+"+e.code:"",l=r.useCallback(t=>{const{value:o}=t.target;isNaN(Number(o))||e.onChange(o)},[]),c=N.isSafari&&"input-disable-mode-safari";return r.createElement(M,{ref:t,inputClassName:_(H["ui-kit-input"],H.input,H["digit-"+a.length],n&&H[c||""]),placeholder:a?s.t("Enter phone number"):"",startSlot:r.createElement(B.StartSlot,null,r.createElement("div",{className:H.code},a)),value:o,onChange:l,disabled:n,hasErrors:i&&i.length>0,errors:i})});var z=o(44065),O=o(11298);function K(e){const t=window.sessionStorage.getItem(e);if(null!==t)try{const o=JSON.parse(t);return Math.ceil((o.exp-Date.now())/1e3)<0?void L(e):o}catch(t){return void L(e)}}function W(){return K("_tempPhoneExp")}function D(){return K("_tempSmsEmailExp")}function T(e){window.sessionStorage.setItem("_tempPhoneExp",JSON.stringify(e))}function L(e){window.sessionStorage.removeItem(e)}function $(){window.sessionStorage.removeItem("_callIsAvailableExp")}function A(){const e=window.sessionStorage.getItem("_callIsAvailableExp");if(null===e)return!1;try{const t=Number(e);if(Date.now()<t)return!1;const o=new Date(t),n=o.setDate(o.getDate()+1);return!(Date.now()>n)||($(),!1)}catch(e){return $(),!1}}var F=o(67844),R=o(61074),Y=o(9481),J=o(71036),q=o(2998),Q=o(64118),G=o(4298),Z=o(18041),U=o(70412),X=o(42707),ee=o(86240),te=o(94254),oe=o(79826),ne=o(8714);const re=ee["media-mf-tablet-vertical"],se=s.t("Get the code via SMS"),ie=s.t("Get the code via phone call");function ae(e){const[t,o]=(0,U.useHover)(),{disabled:n,children:s,onClick:i,icon:a}=e,l=(0,
X.useMatchMedia)(re);return r.createElement(q.Manager,null,r.createElement(Q.Reference,null,e=>r.createElement(J.SquareButton,{...o,size:"large",variant:"secondary",className:ne.button,disabled:n,icon:a,iconOnly:!!l||void 0,reference:e.ref,onClick:i,stretch:!0},s)),r.createElement(G.Popper,{strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,9]}}],placement:"top"},e=>t&&!n&&r.createElement(Z.TooltipWidget,{reference:e.ref,style:e.style,arrowReference:e.arrowProps.ref,arrowStyle:e.arrowProps.style,arrowClassName:_(ne.arrowHolder,ne["arrowHolder--above"]),"data-placement":e.placement,containerClassName:ne.tooltip},r.createElement("div",{style:{padding:10}},s))))}function le(e){const{phoneCallAvailable:t,disabled:o,verifyWithCall:n}=e;return r.createElement("div",{className:ne["button-box-code"]},!t&&r.createElement(J.SquareButton,{stretch:!0,size:"large",disabled:o},s.t("Get code")),t&&r.createElement("div",{className:ne["small-buttons"]},r.createElement(ae,{disabled:o,icon:oe},se),r.createElement(ae,{disabled:o,onClick:n,icon:te},ie)))}var ce,de=o(6087),ue=o(26843),he=o(54325);function me(e){return void 0===e?0:Math.ceil((e-Date.now())/1e3)}function pe(e,t){var o,n;return(null!==(n=null===(o=t[e])||void 0===o?void 0:o.phone_code)&&void 0!==n?n:1).toString()}!function(e){e[e.WaitValue=0]="WaitValue",e[e.Verify=1]="Verify",e[e.WaitSMSCode=2]="WaitSMSCode",e[e.CheckingSMSCode=3]="CheckingSMSCode"}(ce||(ce={}));const fe={step:ce.WaitValue,smsCode:"",verifyErrors:[],timer:0,smsErrors:[],smsPartShowed:!1,phoneCallAvailable:!1};function ve(e,t,o){switch(t.type){case"waitValue":return A();case"waitSMSCode":return 0===o||A();case"codeExpired":return!0;default:return e.phoneCallAvailable}}function ge(e,t){switch(t.type){case"waitValue":return ce.WaitValue;case"verify":return ce.Verify;case"verifyErrors":return ce.WaitValue;case"waitSMSCode":return ce.WaitSMSCode;case"codeExpired":return ce.WaitValue;case"smsErrors":return e.timer<=0?ce.WaitValue:ce.WaitSMSCode;case"checkingSMSCode":return ce.CheckingSMSCode;default:return e.step}}function be(e,t){const{iso:o,options:n,phone:r}=e,{iso:s,code:i,phone:a}=t;return{iso:""===s&&o?o:s,code:""===i&&o?pe(o,n):i,phone:""===a&&r?r:a}}function we(e,t){let o=e;switch(t.type){case"setValue":o={...e,value:{...e.value,...t.value},verifyErrors:[]};break;case"verifyErrors":{const{errors:n}=t;o={...e,verifyErrors:n};break}case"waitSMSCode":{const{sid:n,exp:r,value:s={}}=t;o={...e,sid:n,exp:r,verifyErrors:[],timer:me(r),smsPartShowed:!0,value:{...e.value,...s}};break}case"timerId":o={...e,timerId:t.timerId};break;case"timerTick":o={...e,timer:t.timer};break;case"codeExpired":o={...e,timer:0,exp:void 0,sid:void 0};break;case"setSMSCode":o={...e,smsCode:t.smsCode,smsErrors:[]};break;case"smsErrors":o={...e,smsErrors:t.errors};break;case"close":o={...e,smsPartShowed:!1,exp:void 0,timer:0,sid:void 0,verifyErrors:[],smsErrors:[]}}return{...o,step:ge(e,t),phoneCallAvailable:ve(e,t,o.timer)}}const ye=()=>r.useReducer(we,function(){let e={...fe,phoneCallAvailable:A(),value:{iso:"",code:"",
phone:""}};const t=W();return void 0!==t&&(e={...e,...t,step:ce.WaitSMSCode,timer:me(t.exp)}),e}()),Ce=()=>r.useReducer(we,function(){let e={...fe,value:{email:""}};const t=D();return void 0!==t&&(e={...e,...t,step:ce.WaitSMSCode,timer:me(t.exp)}),e}());var Se=o(96722);const xe=r.forwardRef((e,t)=>{const{value:o,errors:n,disabled:s,id:i}=e,a=r.useCallback(t=>{e.onChange(t.target.value)},[]);return r.createElement(M,{id:i,ref:t,disabled:s,hasErrors:n&&n.length>0,errors:n,value:o,onChange:a})});var Ee=o(97737),ke=o(26996),_e=o(1787),Ne=o(30152),Be=o(96290);const Ve=s.t("You can request a new code in {timer} seconds. If you are not receiving it, check out possible {linkOpen}solutions{linkClose}."),[je,,Ie,,Me]=Ve.split(/({linkOpen}|{linkClose})/);function He(e){const{onSubmit:t,timer:o,step:n,smsCode:i,setSMSCode:a,errors:l,hidden:c,disableInput:d}=e,u=r.useRef(null);return r.useLayoutEffect(()=>{var e;c||n!==ce.WaitSMSCode||null===(e=u.current)||void 0===e||e.focus()},[c,n]),c?null:r.createElement(r.Fragment,null,r.createElement("form",{className:Be["code-block"],onSubmit:t},r.createElement("div",{className:Be["labeled-input"]},r.createElement(Se.Label,{className:Be.label,htmlFor:"code-verification-input"},s.t("Verification code")),r.createElement(xe,{id:"code-verification-input",value:i,onChange:a,errors:l,disabled:n===ce.CheckingSMSCode||d,ref:u})),r.createElement("div",{className:Be["button-box"]},r.createElement(Ee.Button,{useFullWidth:!0,size:"l",disabled:n===ce.CheckingSMSCode||d},n!==ce.CheckingSMSCode&&s.t("Submit"),n===ce.CheckingSMSCode&&r.createElement(ke.Loader,{color:(0,de.getCurrentTheme)().name===ue.StdTheme.Light?"white":"gray"})))),r.createElement("div",{className:Be["timer-block"]},je.format({timer:o}),r.createElement("a",{className:Be.link,onClick:()=>(0,Ne.showSupportDialog)({solutionId:_e.solutionIds.SMS_VERIFICATION})},Ie),Me))}function Pe(e){var t;const{responseOptions:o,onVerificationCancel:n,opened:i,onConfirmed:a}=e,[l,c]=ye(),{value:d,step:u,verifyErrors:h,exp:m,timer:p,timerId:f,smsCode:g,sid:b,smsPartShowed:y,smsErrors:C,phoneCallAvailable:x}=l,{iso:k,code:_,phone:N}=d,[B,V]=r.useState(!1),j=r.useRef(!1),I=S(e=>{T({phone:N,code:_,iso:k,...e}),function(e){const t=window.sessionStorage.getItem("_callIsAvailableExp");window.sessionStorage.setItem("_callIsAvailableExp",t?Date.now().toString():e.toString())}(e.exp),c({type:"waitSMSCode",...e}),V(!1)},e=>{c({type:"verifyErrors",errors:e})});r.useEffect(()=>v,[]),r.useEffect(()=>{if(i){const e=W();if(void 0!==e&&me(e.exp)>0){void 0!==e.verify&&V(!0);const t={iso:e.iso,code:e.code,phone:e.phone};c({type:"waitSMSCode",sid:e.sid,exp:e.exp,value:t})}else V(!1),c({type:"waitValue"})}},[i,B]);const M=E(t=>{e.onVerificationSuccess(t),a(),function(e){const t=window.sessionStorage.getItem("_tempPhoneExp");if(null!==t)try{const o=JSON.parse(t);T(Object.assign(o,e))}catch(e){return void L("_tempPhoneExp")}}({verify:!0})},e=>{c({type:"smsErrors",errors:e})});r.useEffect(()=>{null!==o&&c({type:"setValue",value:be(o,{phone:N,code:_,iso:k})})},[o]),
r.useLayoutEffect(()=>{let t;return void 0===m&&clearInterval(f),void 0!==m&&(clearInterval(f),t=setInterval(()=>{const t=me(m);t<=0?(e.onVerificationCodeExpired(),c({type:"codeExpired"})):c({type:"timerTick",timer:t})},500),c({type:"timerId",timerId:t})),()=>clearInterval(t)},[m]);const H=u===ce.Verify||u===ce.WaitSMSCode||null===o;const K=r.useRef(null);return r.useLayoutEffect(()=>{var e;i&&u===ce.WaitValue&&(null===(e=K.current)||void 0===e||e.focus())},[i,u]),r.createElement(r.Fragment,null,r.createElement(Y.KeyboardDocumentListener,{keyCode:27,handler:function(){j.current||$()}}),r.createElement(F.CloseButton,{className:Be["close-button"],"aria-label":s.t("Close",{context:"input"}),onClick:$}),r.createElement("div",{className:Be["wrapper-content"]},r.createElement("h5",{className:Be.title},s.t("Account verification")),r.createElement("p",{className:Be.description},s.t("Enter your phone number to receive a confirmation code. If there are any errors with SMS delivery, you can receive your code via automated phone call. Your phone number will not be used for any other purpose other than account verification.")),r.createElement("form",{className:Be["phone-block"],onSubmit:e=>{var t;e.preventDefault(),null===(t=K.current)||void 0===t||t.blur(),c({type:"verify"}),I(k,_,N,w.Sms)}},r.createElement("div",{className:Be["spinner-wrap"]},null===o&&r.createElement(R.Spinner,{size:"medium"}),r.createElement(O.CountrySelect,{className:null===o?Be["hide-country-select"]:void 0,countries:(D=null!==(t=null==o?void 0:o.options)&&void 0!==t?t:{},Object.values(D).map(e=>({name:e.country,code:(0,he.toCountryCode)(e.country_code),iconUrl:(0,z.flagUrl)(e.country_code.toLowerCase())}))),onSelected:e=>{o&&c({type:"setValue",value:{iso:e.code,code:pe(e.code,o.options)}})},onToggle:function(e){j.current=e},flagUrl:(0,z.flagUrl)(k.toLowerCase()),text:"",disabled:H})),r.createElement(P,{ref:K,code:_,value:N,onChange:function(e){c({type:"setValue",value:{phone:e}})},disabled:H,errors:h}),r.createElement(le,{disabled:H,phoneCallAvailable:x,verifyWithCall:()=>{c({type:"verify"}),I(k,_,N,w.Call)}})),r.createElement(He,{onSubmit:e=>{e.preventDefault(),c({type:"checkingSMSCode"}),M(`+${_}${N}`,g,null!=b?b:"")},smsCode:g,setSMSCode:function(e){c({type:"setSMSCode",smsCode:e})},errors:C,step:u,timer:p.toString(),hidden:!y,disableInput:B&&H})));var D;function $(){n(),c({type:"close"}),e.onClose()}}function ze(e){const{onVerificationCancel:t,opened:o,onConfirmed:n}=e,[i,a]=Ce(),{value:l,step:c,verifyErrors:d,exp:u,timer:h,timerId:m,smsCode:p,sid:f,smsPartShowed:g,smsErrors:b}=i,{email:w}=l,y=x(e=>{!function(e){window.sessionStorage.setItem("_tempSmsEmailExp",JSON.stringify(e))}({email:w,...e}),a({type:"waitSMSCode",...e})},e=>{a({type:"verifyErrors",errors:e})});r.useEffect(()=>v,[]),r.useEffect(()=>{if(o){const e=D();void 0!==e&&me(e.exp)>0?a({type:"waitSMSCode",sid:e.sid,exp:e.exp,value:{email:e.email}}):a({type:"waitValue"})}},[o]);const C=k(t=>{e.onVerificationSuccess(t),n()},e=>{a({type:"smsErrors",errors:e})});r.useLayoutEffect(()=>{let t
;return void 0===u&&clearInterval(m),void 0!==u&&(clearInterval(m),t=setInterval(()=>{const t=me(u);t<=0?(e.onVerificationCodeExpired(),a({type:"codeExpired"})):a({type:"timerTick",timer:t})},500),a({type:"timerId",timerId:t})),()=>clearInterval(t)},[u]);const S=c===ce.Verify||c===ce.WaitSMSCode;const E=r.useRef(null);return r.useLayoutEffect(()=>{var e;o&&c===ce.WaitValue&&(null===(e=E.current)||void 0===e||e.focus())},[o,c]),r.createElement(r.Fragment,null,r.createElement(Y.KeyboardDocumentListener,{keyCode:27,handler:_}),r.createElement(F.CloseButton,{className:Be["close-button"],"aria-label":s.t("Close",{context:"input"}),onClick:_}),r.createElement("div",{className:Be["wrapper-content"]},r.createElement("h5",{className:Be.title},s.t("Account verification")),r.createElement("p",{className:Be.description},s.t("Enter your email address below. Well send you a text message with a confirmation code.")),r.createElement("form",{className:Be["email-block"],onSubmit:e=>{var t;e.preventDefault(),null===(t=E.current)||void 0===t||t.blur(),a({type:"verify"}),y(w)}},r.createElement(M,{ref:E,placeholder:s.t("Email"),value:w,onChange:e=>{return t=e.target.value,void a({type:"setValue",value:{email:t}});var t},disabled:S,hasErrors:d.length>0,errors:d,className:Be.input}),r.createElement(le,{disabled:S,phoneCallAvailable:!1})),r.createElement(He,{onSubmit:e=>{e.preventDefault(),a({type:"checkingSMSCode"}),C(w,p,null!=f?f:"")},smsCode:p,setSMSCode:function(e){a({type:"setSMSCode",smsCode:e})},errors:b,step:c,timer:h.toString(),hidden:!g})));function _(){t(),a({type:"close"}),e.onClose()}}var Oe=o(90692);function Ke(e){const{onClose:t,message:o}=e;return r.createElement(r.Fragment,null,r.createElement(Y.KeyboardDocumentListener,{keyCode:13,handler:t}),r.createElement(F.CloseButton,{className:Be["close-button"],"aria-label":s.t("Close",{context:"input"}),onClick:t}),r.createElement("div",{className:Be["wrapper-content-successful"]},r.createElement("h5",{className:Be.title},s.t("Verification successful")),r.createElement("p",{className:Be.description},o),r.createElement(Oe.MatchMedia,{rule:ee["media-phone"]},e=>r.createElement(Ee.Button,{useFullWidth:e,size:e?"l":"m",onClick:t,className:e?"":Be["okay-button"]},s.t("Okay")))))}function We(e){const t=b(),[o,n]=r.useState(!1),i=()=>{n(!1),e.onClose()},a=(0,s.t)("Now you have access to social features, such as chatting, publishing ideas and following other users.");return r.createElement("div",{className:Be["content-wrap-template"]},!o&&r.createElement(Pe,{responseOptions:t,onConfirmed:()=>e.showConfirmation?n(!0):i(),...e}),o&&r.createElement(Ke,{onClose:i,message:a}))}function De(e){const[t,o]=r.useState(!1),n=()=>{o(!1),e.onClose()},i=(0,s.t)("Now you can receive text messages alerts to your phone");return r.createElement("div",{className:Be["content-wrap-template"]},!t&&r.createElement(ze,{onConfirmed:()=>e.showConfirmation?o(!0):n(),...e}),t&&r.createElement(Ke,{onClose:n,message:i}))}function Te(e){const{featureSource:t=""}=e,o=location.pathname,r={onVerificationSuccess:e=>{
window.user.has_phone=!0,(0,l.getTracker)().then(e=>{null==e||e.trackPhoneVerificationDialog("verified",t,o)})}};return d(We,e,n.Phone,r)}function Le(e){const t={onVerificationSuccess:e=>{window.user.sms_email=e}};return d(De,e,n.SmsEmail,t)}},43989:(e,t,o)=>{"use strict";o.d(t,{setFixedBodyState:()=>i});var n=o(68722);let r=0,s=!1;function i(e){const{body:t}=document,o=t.querySelector(".widgetbar-wrap");if(e&&1==++r){const e=(0,n.getCSSProperty)(t,"overflow"),r=(0,n.getCSSPropertyNumericValue)(t,"padding-right");"hidden"!==e.toLowerCase()&&t.scrollHeight>t.offsetHeight&&((0,n.setStyle)(o,"right",(0,n.getScrollbarWidth)()+"px"),t.style.paddingRight=r+(0,n.getScrollbarWidth)()+"px",s=!0),t.classList.add("i-no-scroll")}else if(!e&&r>0&&0==--r&&(t.classList.remove("i-no-scroll"),s)){(0,n.setStyle)(o,"right","0px");let e=0;0,t.scrollHeight<=t.clientHeight&&(e-=(0,n.getScrollbarWidth)()),t.style.paddingRight=(e<0?0:e)+"px",s=!1}}},91955:(e,t,o)=>{"use strict";async function n(){if(!window.user||window.user.do_not_track)return null;{const e=(await Promise.all([o.e(2917),o.e(4081)]).then(o.bind(o,98491))).getTrackerInstance();return e||null}}o.d(t,{getTracker:()=>n})},11298:(e,t,o)=>{"use strict";o.d(t,{CountrySelect:()=>w,getCountries:()=>y});var n=o(59496),r=o(97754),s=o(28353),i=o(22064),a=o(67029),l=o(78274),c=o(93211),d=o(9481),u=o(68721),h=o(26597),m=o(86629),p=o(93573);const f=n.lazy(async()=>({default:(await Promise.all([o.e(9129),o.e(2888),o.e(4956),o.e(7245),o.e(1e3),o.e(6973)]).then(o.bind(o,56973))).CountryList}));function v(e){const{isOpen:t,countries:o,onSelected:r,selectedCountry:s,onClose:i,className:a,attachment:l,targetAttachment:c}=e;return n.createElement(n.Fragment,null,t&&n.createElement(n.Suspense,{fallback:null},n.createElement(f,{className:a,onClose:i,selectedCountry:s,onSelected:r,countries:o,attachment:l,targetAttachment:c})))}var g=o(98898);let b;function w(e){var t;const{flagUrl:o,disabled:s=!1,countries:p,selectedCountry:f,onSelected:b,onToggle:w,className:y,dropDownClassName:C,stretch:S,dropdownAttachment:x,text:E,buttonSize:k="large","aria-labelledby":_,id:N,hasErrors:B,errors:V}=e,j=(0,m.useControlValidationLayout)({hasErrors:B,errors:V}),{isOpened:I,isFocused:M,buttonTabIndex:H,highlight:P,intent:z,open:O,close:K,toggle:W,buttonFocusBindings:D,onButtonClick:T,buttonRef:L,buttonAria:$}=(0,u.useControlDisclosure)({id:N,disabled:s}),A=(0,i.joinDomIds)(_,N),F=A.length>0?A:void 0,R=(0,h.useKeyboardToggle)(W),Y=(0,h.useKeyboardClose)(I,K),J=(0,h.useKeyboardOpen)(I,O),q=(0,h.useKeyboardEventHandler)(R,Y,J);return(0,n.useEffect)(()=>{w&&w(I)},[I]),n.createElement(n.Fragment,null,n.createElement(d.KeyboardDocumentListener,{keyCode:27,handler:K}),n.createElement(v,{className:C,onClose:K,selectedCountry:f,onSelected:b,countries:p,isOpen:I,attachment:null==x?void 0:x.attachment,targetAttachment:null==x?void 0:x.targetAttachment}),n.createElement(a.ControlSkeleton,{...D,...$,className:r(g.countrySelect,y),intent:null!==(t=j.intent)&&void 0!==t?t:z,highlight:P,isFocused:M,size:k,stretch:S,disabled:s,
role:"button",tabIndex:H,"aria-haspopup":"listbox","aria-labelledby":F,ref:L,onClick:T,onKeyDown:q,startSlot:o&&n.createElement(l.StartSlot,{className:g.flagSlot},n.createElement("img",{className:g.flag,src:o,role:"presentation"})),middleSlot:n.createElement(l.MiddleSlot,{className:g.textSlot},E),endSlot:n.createElement(l.EndSlot,null,n.createElement(c.Caret,{isDropped:I,disabled:s,className:g.caretSelectBtn}))}),j.renderedErrors)}async function y(){return b||(b=(0,p.getCountries)().then(e=>{const t=[];if(Object.keys(e.countries).forEach(o=>{t.push({code:o,name:s.t(e.countries[o]),iconUrl:`/static/images/svg/common/flags/flag-square-${o.toLowerCase()}.svg`})}),t.length%3!=0){const e=t.length%3,o=e?3-e:0;for(let e=0;e<o;e++)t.push({code:"placeholder"+e,name:"",iconUrl:""})}return[t,e.current_country_code]}),b)}},67844:(e,t,o)=>{"use strict";o.d(t,{CloseButton:()=>n.CloseButton});var n=o(35582)},68721:(e,t,o)=>{"use strict";o.d(t,{useControlDisclosure:()=>c});var n=o(59496),r=o(88537),s=o(29202),i=o(47201),a=o(22064),l=o(35749);function c(e){const{intent:t,highlight:o,...c}=e,{isFocused:d,...u}=function(e){const{id:t,disabled:o,buttonTabIndex:c=0,onFocus:d,onBlur:u,onClick:h}=e,[m,p]=(0,n.useState)(!1),[f,v]=(0,s.useFocus)(),g=f||m,b=void 0!==t?(0,a.createDomId)(t,"listbox"):void 0,w=(0,n.useRef)(null),y=(0,n.useCallback)(e=>(0,r.ensureNotNull)(w.current).focus(e),[w]),C=(0,n.useRef)(null),S=(0,n.useCallback)(()=>(0,r.ensureNotNull)(C.current).focus(),[C]),x=(0,n.useCallback)(()=>p(!0),[p]),E=(0,n.useCallback)((e=!1)=>{p(!1);const{activeElement:t}=document;t&&(0,l.isTextEditingField)(t)||y({preventScroll:e})},[p,y]),k=(0,n.useCallback)(()=>{m?E():x()},[m,E,x]),_=o?[]:[d,v.onFocus],N=o?[]:[u,v.onBlur],B=o?[]:[h,k],V=(0,i.createSafeMulticastEventHandler)(..._),j=(0,i.createSafeMulticastEventHandler)(...N),I=(0,i.createSafeMulticastEventHandler)(...B);return{listboxId:b,isOpened:m,isFocused:g,buttonTabIndex:o?-1:c,listboxTabIndex:-1,open:x,close:E,toggle:k,onOpen:S,buttonFocusBindings:{onFocus:V,onBlur:j},onButtonClick:I,buttonRef:w,listboxRef:C,buttonAria:{"aria-controls":m?b:void 0,"aria-expanded":m,"aria-disabled":o}}}(c);return{...u,isFocused:d,highlight:null!=o?o:d,intent:null!=t?t:d?"primary":"default"}}},26597:(e,t,o)=>{"use strict";o.d(t,{useKeyboardActionHandler:()=>i,useComposedKeyboardActionHandlers:()=>a,useKeyboardEventHandler:()=>l,useKeyboardToggle:()=>c,useKeyboardClose:()=>d,useKeyboardOpen:()=>u});var n=o(59496),r=o(68335);const s=()=>!0;function i(e,t,o=s){return(0,n.useCallback)(n=>{const r=e.map(e=>"function"==typeof e?e():e);return!(!o()||!r.includes(n))&&(t(),!0)},[...e,t,o])}function a(...e){return(0,n.useCallback)(t=>{for(const o of e)if(o(t))return!0;return!1},[...e])}function l(...e){const t=a(...e);return(0,n.useCallback)(e=>{t((0,r.hashFromEvent)(e))&&e.preventDefault()},[t])}function c(e){return i([13,32],e)}function d(e,t){return i([9,(0,n.useCallback)(()=>r.Modifiers.Shift+9,[]),27],t,(0,n.useCallback)(()=>e,[e]))}function u(e,t){return i([40,38],t,(0,n.useCallback)(()=>!e,[e]))}},
42707:(e,t,o)=>{"use strict";o.d(t,{useSafeMatchMedia:()=>r,useMatchMedia:()=>s});var n=o(59496);function r(e,t=!1){const[o,r]=(0,n.useState)(t);return(0,n.useEffect)(()=>{const t=window.matchMedia(e);function o(){r(t.matches)}return o(),t.addListener(o),()=>{t.removeListener(o)}},[e]),o}function s(e){const t=(0,n.useMemo)(()=>window.matchMedia(e).matches,[]);return r(e,t)}},93211:(e,t,o)=>{"use strict";o.d(t,{Caret:()=>d});var n=o(59496),r=o(97754),s=o.n(r),i=o(9745),a=o(89974),l=o(99171);function c(e){const{isDropped:t}=e;return n.createElement(i.Icon,{className:s()(l.icon,t&&l.dropped),icon:a})}function d(e){const{className:t,disabled:o,isDropped:r}=e;return n.createElement("span",{className:s()(l.button,o&&l.disabled,t)},n.createElement(c,{isDropped:r}))}},96722:(e,t,o)=>{"use strict";o.d(t,{Label:()=>l});var n=o(59496),r=o(97754),s=o.n(r),i=o(78274),a=o(28335);function l(e){const{htmlFor:t,children:o,className:r,id:l,...c}=e;return n.createElement(i.BeforeSlot,{...c,className:s()(a.label,r)},n.createElement("label",{id:l,htmlFor:t},o))}},9481:(e,t,o)=>{"use strict";o.d(t,{KeyboardDocumentListener:()=>r});var n=o(59496);class r extends n.PureComponent{constructor(){super(...arguments),this._handleKeyDown=e=>{e.keyCode===this.props.keyCode&&this.props.handler(e)}}componentDidMount(){document.addEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}componentWillUnmount(){document.removeEventListener(this.props.eventType||"keydown",this._handleKeyDown,!1)}render(){return null}}},90692:(e,t,o)=>{"use strict";o.d(t,{MatchMedia:()=>r});var n=o(59496);class r extends n.PureComponent{constructor(e){super(e),this._handleChange=()=>{this.forceUpdate()},this.state={query:window.matchMedia(this.props.rule)}}componentDidMount(){this._subscribe(this.state.query)}componentDidUpdate(e,t){this.state.query!==t.query&&(this._unsubscribe(t.query),this._subscribe(this.state.query))}componentWillUnmount(){this._unsubscribe(this.state.query)}render(){return this.props.children(this.state.query.matches)}static getDerivedStateFromProps(e,t){return e.rule!==t.query.media?{query:window.matchMedia(e.rule)}:null}_subscribe(e){e.addListener(this._handleChange)}_unsubscribe(e){e.removeListener(this._handleChange)}}},61074:(e,t,o)=>{"use strict";o.d(t,{Spinner:()=>i});var n=o(59496),r=o(97754),s=o(33134);o(24780);function i(e){const t=r(e.className,"tv-spinner","tv-spinner--shown","tv-spinner--size_"+s.spinnerSizeMap[e.size||s.DEFAULT_SIZE]);return n.createElement("div",{className:t,style:e.style,role:"progressbar"})}},18041:(e,t,o)=>{"use strict";o.d(t,{TooltipWidget:()=>l});var n=o(59496),r=o(97754),s=o(9745),i=(o(65718),o(73366)),a=o(44443);n.PureComponent;function l(e){const{className:t,containerClassName:o,contentClassName:l,reference:c,style:d,arrow:u=!0,arrowClassName:h,arrowReference:m,onClose:p,arrowStyle:f,children:v,...g}=e;return n.createElement("div",{...g,className:t,ref:c,style:d},u&&n.createElement("div",{className:h,ref:m,style:f}),n.createElement("div",{className:r(a.container,o)},n.createElement("div",{
className:r(a.content,l)},v),p&&n.createElement(s.Icon,{className:a.closeButton,icon:i,onClick:p})))}},64120:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 23 23" width="23" height="23"><path stroke="currentColor" stroke-width="1.2" d="M1 1l21 21m0-21L1 22"/></svg>'},12565:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17" fill="currentColor"><path d="m.58 1.42.82-.82 15 15-.82.82z"/><path d="m.58 15.58 15-15 .82.82-15 15z"/></svg>'},95781:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 13 13" width="13" height="13"><path stroke="currentColor" stroke-width="1.2" d="M1 1l11 11m0-11L1 12"/></svg>'},7801:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 11" width="11" height="11"><path stroke="currentColor" stroke-width="1.2" d="M1 1l9 9m0-9l-9 9"/></svg>'},33584:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 9" width="9" height="9"><path stroke="currentColor" stroke-width="1.2" d="M1 1l7 7m0-7L1 8"/></svg>'},89974:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 7" width="11" height="7" fill="none"><path stroke="currentColor" stroke-width="1.3" d="M.5 1.5l5 4 5-4"/></svg>'},4135:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11 9" width="11px" height="9px"><path fill="none" fill-rule="evenodd" stroke-width="2" d="M1 3.22l3.415 3.496L10 1"/></svg>'},73366:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18"><path fill="currentColor" d="M9.707 9l4.647-4.646-.707-.708L9 8.293 4.354 3.646l-.708.708L8.293 9l-4.647 4.646.708.708L9 9.707l4.646 4.647.708-.707L9.707 9z"/></svg>'},94254: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" d="M20.97 3c-.39.02-1.6.06-3.46.93-1.86.87-4.4 2.55-7.71 5.86-3.32 3.32-5 5.86-5.87 7.72-.87 1.85-.9 3.07-.93 3.46v.02c0 .45.23.76.49 1.1.26.35.6.7.94 1.03.7.67 1.45 1.27 1.8 1.52.79.56 1.72.43 2.14-.16.3-.42 2.6-3.9 2.94-4.48.35-.53.2-1.15-.11-1.74l-1.11-1.96c.17-.26.83-1.23 2.9-3.3a19.66 19.66 0 0 1 3.31-2.92l1.95 1.11c.55.33 1.2.44 1.72.14h.01v-.01c.27-.16 1.27-.8 2.28-1.48l1.42-.93c.4-.27.67-.44.8-.54.59-.42.73-1.35.16-2.14a19.2 19.2 0 0 0-1.52-1.81 8.87 8.87 0 0 0-1.03-.95c-.34-.26-.66-.5-1.12-.47zm.05 1c-.05 0 .2.06.47.26.27.21.6.52.9.85.64.66 1.24 1.43 1.43 1.7.32.43.1.73.08.74l-.01.01-.76.52a161.68 161.68 0 0 1-3.65 2.38c-.08.04-.4.06-.72-.13h-.02l-2.22-1.27-.25-.14-.25.14s-1.3.76-3.73 3.23c-2.43 2.43-3.23 3.72-3.23 3.72l-.15.25.15.26 1.26 2.22c.2.38.15.71.15.7v.03c-.2.33-2.78 4.24-2.92 4.43-.01.02-.3.23-.74-.08-.27-.19-1.03-.8-1.69-1.42a8.78 8.78 0 0 1-.84-.91c-.2-.28-.28-.52-.28-.5.03-.44.04-1.36.83-3.06.8-1.72 2.42-4.18 5.67-7.43s5.7-4.86 7.43-5.67c1.72-.8 2.65-.8 3.1-.83z"/></svg>'},79826: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="M5.5 19.9H4.1V6.1h19.8v13.8H10.69c-.4 0-.77.14-1.06.4L7.1 22.55V21.5c0-.88-.72-1.6-1.6-1.6zm-2.5.6v-15c0-.28.22-.5.5-.5h21c.28 0 .5.22.5.5v15a.5.5 0 0 1-.5.5H10.69a.5.5 0 0 0-.33.13l-3.53 3.13a.5.5 0 0 1-.83-.37V21.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 1-.5-.5zm5-8.9h12v-1.2H8v1.2zm0 4h9v-1.2H8v1.2z"/></svg>'},86240:e=>{"use strict";e.exports=JSON.parse('{"size-header-height":"64px","media-phone":"screen and (max-width: 767px)","media-mf-phone-landscape":"screen and (min-width: 568px)","media-mf-tablet-vertical":"screen and (min-width: 768px)","media-mf-tablet-landscape":"screen and (min-width: 1024px)","media-mf-laptop":"screen and (min-width: 1280px)"}')}}]);