@deriv-com/custom-scripts 1.26.46 → 1.26.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/css/styles.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.inherit-color *{color:inherit}*[tabindex]:focus-visible,input[type=file]:focus-visible{outline:.125rem solid #4d65ff;outline-offset:.125rem}.w-richtext>:not(div):first-child,.w-richtext>div:first-child>:first-child{margin-top:0!important;padding-top:0!important}.w-richtext>:last-child,.w-richtext ol li:last-child,.w-richtext ul li:last-child{margin-bottom:0!important}.pointer-events-off{pointer-events:none}.pointer-events-on{pointer-events:auto}.div-square:after{content:"";display:block;padding-bottom:100%}.container-medium,.container-small,.container-large{margin-right:auto!important;margin-left:auto!important}.text-style-3lines{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}.text-style-2lines{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.display-inlineflex{display:inline-flex}.hide{display:none!important}@media screen and (max-width: 991px){.hide,.hide-tablet{display:none!important}}@media screen and (max-width: 767px){.disclaimer-visible .max-width-medium.max-width-full-mobile-landscape{max-width:none;margin-bottom:1.5rem}.hide-mobile-landscape{display:none!important}}@media screen and (max-width: 479px){.hide-mobile{display:none!important}}.margin-0{margin:0rem!important}.padding-0{padding:0rem!important}.spacing-clean{padding:0rem!important;margin:0rem!important}.margin-top{margin-right:0rem!important;margin-bottom:0rem!important;margin-left:0rem!important}.padding-top{padding-right:0rem!important;padding-bottom:0rem!important;padding-left:0rem!important}.margin-right{margin-top:0rem!important;margin-bottom:0rem!important;margin-left:0rem!important}.padding-right{padding-top:0rem!important;padding-bottom:0rem!important;padding-left:0rem!important}.margin-bottom{margin-top:0rem!important;margin-right:0rem!important;margin-left:0rem!important}.padding-bottom{padding-top:0rem!important;padding-right:0rem!important;padding-left:0rem!important}.margin-left{margin-top:0rem!important;margin-right:0rem!important;margin-bottom:0rem!important}.padding-left{padding-top:0rem!important;padding-right:0rem!important;padding-bottom:0rem!important}.margin-horizontal{margin-top:0rem!important;margin-bottom:0rem!important}.padding-horizontal{padding-top:0rem!important;padding-bottom:0rem!important}.margin-vertical{margin-right:0rem!important;margin-left:0rem!important}.padding-vertical{padding-right:0rem!important;padding-left:0rem!important}.truncate-width{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-scrollbar{-ms-overflow-style:none;overflow:-moz-scrollbars-none}.no-scrollbar::-webkit-scrollbar{display:none}.accordion_dropdown.is-active-accordion,.tab-dropdown.is-active-accordion{background:var(--background-color--background-alternate)}.accordion_dropdown.is-white.is-active-accordion{background:#0000}.accordion_arrow.is-active-accordion{transform:rotate(180deg)}.help_tab.fs-cmsfilter_active{color:var(--text-color--text-primary);border-bottom:2px solid var(--border-color--border-primary)}.w-slider-dot{width:.5rem;height:.5rem;background:#4146528f}.w-slider-dot.w-active{background:var(--base-color-neutral--black)}.blog-filters_button.fs-cmsfilter_active{background:var(--base-color-neutral--black);color:var(--text-color--text-alternate);border-color:var(--border-color--border-primary)}@media screen and (min-width: 992px){.blogs_link-block:hover .blogs_image{transform:scale(1.07)}}.partner-navbar_component .w-nav-link.w--current{color:#e12e3a}.customLink{color:#ff444f!important}.content_market-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.floating-label{pointer-events:none}.custom-input:not(:placeholder-shown){padding-top:1.5rem;padding-bottom:.5rem}.custom-input:not(:placeholder-shown)~.floating-label{color:#6002ee;top:.5rem;font-size:12px}.custom-input:not(:focus)~.floating-label{color:#0009}.custom-input{position:absolute;width:100%;height:100%;border-radius:8px;margin-bottom:0;padding:1rem .7rem;border:1px solid #00000014;box-shadow:none;transition-property:background-color,border-color,border-width;transition-duration:.15s,.15s,0ms;transition-timing-function:ease,ease,ease;font-size:1rem;background-color:#0000}.text-input.custom{height:56px}.custom-input.-wfp-focus,:where(html:not(.wf-design-mode)) .custom-input:focus{border-bottom-width:2px;border-bottom-color:#00000014;background-color:#0000;box-shadow:none}.w-input:focus,.w-select:focus{outline:0;border:1px solid var(--core-color-solid-slate-1400, #000)}.w-input,.w-select{color:#000000b8}input,textarea,[contenteditable]{caret-color:#000000b8}.custom-input:not(:placeholder-shown)+.floating-label{color:#000000b8}.with-asterisk:after{content:"*";color:#c40000;margin-left:3px}.custom-input.error-field:not(:focus)+.floating-label{color:#de0040}.custom-input.error-field{border-color:#de0040}.input-error-text.error-field{display:block;padding-top:4px;padding-left:var(--16-px);color:#de0040}.error-field-icon.error-field{position:absolute;width:24px}.error-field-icon.error-field{position:absolute;width:24px;inset:0% 2% 0% auto;display:block}.error-field-icon,.input-error-text{display:none}.error-message{color:#e6190eb8!important;font-size:12px;margin-top:4px}.logged-out-btn.hide-element,.logged-in-btn.hide-element,.section_ctrader-check-email.hide-element,.section_ctrader-check-email-verify.hide-element,.section_page-header_dint-get-email.hide-element{display:none!important}.rangeslider_handle:focus{outline:none!important}.contact-social_link-wp:hover .is-hover,.contact-social_link-live:hover .is-hover{display:block}.contact-social_link-wp:hover .is-normal,.contact-social_link-live:hover .is-normal{display:none}.margin-bottom-md{margin-bottom:.2rem!important}input.error-field::placeholder{color:red!important}.disclaimer-active .header_background-image-wrapper{top:5%}@media screen and (max-width: 430px){.disclaimer-active .header_background-image-wrapper{top:10%}}.error-field-block{border:1px solid #de0040}.input-error-text.error-field-block{display:block;border:none}.sn_form img#email-sign-up-error-icon{width:24px;border:none;position:absolute;top:14px;height:25px;right:9px}.sn_form input.error-field-block:focus{border-color:#de0040}.error-field-icon.error-field-block{display:block}.footer_logo svg{max-width:72px}span#translations-customerssay{font-family:IBM Plex Sans,sans-serif;font-size:16px;line-height:24px;color:red}.navbar_icon{transition:transform .3s}.navbar_accordion-content{transition:max-height .3s ease,padding .3s ease,transform .3s ease;transform:translateY(-20px)}.navbar_accordion-trigger:before{display:none;content:"";position:absolute;left:0;top:0;width:4px;height:44px;background:#ff444f}.navbar_accordion-trigger.open:before{display:block}.navbar_accordion-trigger.open svg{transform:rotate(180deg);transition:all .5s ease-in-out}.navbar_accordion-trigger.current:before{display:block}@media (max-width: 479px){.disclaimer-active .header_background-image-wrapper{top:5%}}@media (min-width: 480px) and (max-width: 610px){.disclaimer-active .header_background-image-wrapper{top:15%}}@media (min-width: 611px) and (max-width: 767px){.disclaimer-active .header_background-image-wrapper{top:12%}}@media (min-width: 768px){.disclaimer-active .header_background-image-wrapper{top:7%}}select{-webkit-appearance:none;-moz-appearance:none}::-ms-reveal{display:none}.page-wrapper.nopad{padding:0!important}.disclaimer-show .menu-wrapper{height:80px}.trustpilot-widget a[rel~=noopener]{visibility:hidden}.new-navbar_component .new-navbar_container>.new-navbar_menu{transform:none!important}.input-group .error-field-icon.error-field{top:16px}.dir-ltr{direction:ltr;text-align:left}.new-navbar_menu.is-padding-0.is-adaptive:lang(ar){margin-right:0}:dir(rtl) .navbar_accordion-trigger:before{left:auto;right:0}:dir(rtl) .sn_form img#email-sign-up-error-icon,:dir(rtl) .error-field-icon.error-field{left:8px;right:auto}:dir(rtl) input#mobile-number{text-align:right}a#profile-link:focus{outline:none}@media (max-width: 768px){.blog-filters .w-dropdown{display:contents}}.show-cookie .cookie-middle-wrapper{margin-bottom:85px}.show-cookie .cookie-middle-wrapper:lang(de),.show-cookie .cookie-middle-wrapper:lang(fr),.show-cookie .cookie-middle-wrapper:lang(ru){margin-bottom:106px}@media (max-width: 1025px){.disclaimer_wrapper{display:none}.disclaimer_wrapper.head,.head .banner_disclaimer.hide-element{display:block}.show-cookie .cookie-middle-wrapper{margin-left:45px;margin-bottom:20px}.show-cookie .cookie-middle-wrapper:lang(ar){margin-right:45px}}@media (max-width: 478px){.show-cookie .cookie-middle-wrapper{margin-bottom:0;margin-left:0}}.foot .banner_disclaimer.hide-element{display:block}@media (max-width: 430px){.show-cookie .cookie-middle-wrapper:lang(de),.show-cookie .cookie-middle-wrapper:lang(fr),.show-cookie .cookie-middle-wrapper:lang(ru){margin-bottom:0}.show-cookie a.social-proof_link{z-index:-1}.show-cookie .cookie-middle-wrapper:lang(ar){margin-right:0}.show-cookie .contact-social_links-wrapper.is-whatsapp{bottom:10.5rem}}@media (min-width: 1025px){.disclaimer-visible #live_chat-wrapper,.disclaimer-visible .contact-social_links-wrapper{bottom:6rem}.disclaimer-visible #live_chat-wrapper:lang(de),.disclaimer-visible #live_chat-wrapper:lang(fr),.disclaimer-visible #live_chat-wrapper:lang(ru){bottom:8rem}.disclaimer-visible .footer_texts{padding-bottom:70px}}.cookies_banner-wrapper{box-shadow:0 0 8px #0003;-webkit-box-shadow:0 0px 8px rgba(0,0,0,.2)}.show-cookie div#floating_cta{display:none}.show-cookie .footer_bottom-wrapper{margin-bottom:128px}@media (max-width: 430px){.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(fr),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(pt),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(vi),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(bn),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(tr),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(it),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(pl){bottom:12.5rem}.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(ru),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(de){bottom:13.5rem}}.new-navbar_main-wrapper .logo-wrapper-25{padding-top:4px}.prime-form-group .error-field-icon.error-field{top:16px}.prime-form-group .custom-input:not(:placeholder-shown)~.floating-label{color:#000000b8}.form-group-wrapper.custom{transform:none!important;transform-style:unset!important}.dropdown-component.open .dropdown-component_list{display:block}.dropdown-component:after{content:"▼";position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;color:#333;pointer-events:none}:root{--container-xlarge-width: 77rem;--overflowMargin: calc((100vw - var(--container-xlarge-width)) / 2)}.testimonial_list.is-custom-margin{margin-left:var(--overflowMargin)}.is-custom-margin .testimonial-item.w-dyn-item:last-child{margin-right:var(--overflowMargin)}.dropdown-component_content-block{margin-top:20px}.overflow-word a{overflow-wrap:break-word}a.deriv-tech-header_tablet-link.is-overlay:after{content:"";z-index:-1;opacity:.4;background-image:linear-gradient(181.93deg,#11141b00 3.15%,#11141b 50.01%);height:71%;position:absolute;inset:auto 0% 0%}.disable-scroll{overflow:hidden}::-webkit-scrollbar{display:none}@media (min-width: 992px) and (max-width: 1200px){.new-navbar_menu-left-desctop{font-size:14px}.new-navbar_dropdown-toggle,.new-navbar_link{padding:.5rem .75rem}header h1{font-size:3rem}header p{font-size:14px}}@media screen and (max-width: 991px){.tabs_menu-scroll-mobile{display:flex;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}}*{scrollbar-width:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-o-font-smoothing:antialiased}
|
|
1
|
+
.inherit-color *{color:inherit}*[tabindex]:focus-visible,input[type=file]:focus-visible{outline:.125rem solid #4d65ff;outline-offset:.125rem}.w-richtext>:not(div):first-child,.w-richtext>div:first-child>:first-child{margin-top:0!important;padding-top:0!important}.w-richtext>:last-child,.w-richtext ol li:last-child,.w-richtext ul li:last-child{margin-bottom:0!important}.pointer-events-off{pointer-events:none}.pointer-events-on{pointer-events:auto}.div-square:after{content:"";display:block;padding-bottom:100%}.container-medium,.container-small,.container-large{margin-right:auto!important;margin-left:auto!important}.text-style-3lines{display:-webkit-box;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}.text-style-2lines{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.display-inlineflex{display:inline-flex}.hide{display:none!important}@media screen and (max-width: 991px){.hide,.hide-tablet{display:none!important}}@media screen and (max-width: 767px){.disclaimer-visible .max-width-medium.max-width-full-mobile-landscape{max-width:none;margin-bottom:1.5rem}.hide-mobile-landscape{display:none!important}}@media screen and (max-width: 479px){.hide-mobile{display:none!important}}.margin-0{margin:0rem!important}.padding-0{padding:0rem!important}.spacing-clean{padding:0rem!important;margin:0rem!important}.margin-top{margin-right:0rem!important;margin-bottom:0rem!important;margin-left:0rem!important}.padding-top{padding-right:0rem!important;padding-bottom:0rem!important;padding-left:0rem!important}.margin-right{margin-top:0rem!important;margin-bottom:0rem!important;margin-left:0rem!important}.padding-right{padding-top:0rem!important;padding-bottom:0rem!important;padding-left:0rem!important}.margin-bottom{margin-top:0rem!important;margin-right:0rem!important;margin-left:0rem!important}.padding-bottom{padding-top:0rem!important;padding-right:0rem!important;padding-left:0rem!important}.margin-left{margin-top:0rem!important;margin-right:0rem!important;margin-bottom:0rem!important}.padding-left{padding-top:0rem!important;padding-right:0rem!important;padding-bottom:0rem!important}.margin-horizontal{margin-top:0rem!important;margin-bottom:0rem!important}.padding-horizontal{padding-top:0rem!important;padding-bottom:0rem!important}.margin-vertical{margin-right:0rem!important;margin-left:0rem!important}.padding-vertical{padding-right:0rem!important;padding-left:0rem!important}.truncate-width{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.no-scrollbar{-ms-overflow-style:none;overflow:-moz-scrollbars-none}.no-scrollbar::-webkit-scrollbar{display:none}.accordion_dropdown.is-active-accordion,.tab-dropdown.is-active-accordion{background:var(--background-color--background-alternate)}.accordion_dropdown.is-white.is-active-accordion{background:#0000}.accordion_arrow.is-active-accordion{transform:rotate(180deg)}.help_tab.fs-cmsfilter_active{color:var(--text-color--text-primary);border-bottom:2px solid var(--border-color--border-primary)}.w-slider-dot{width:.5rem;height:.5rem;background:#4146528f}.w-slider-dot.w-active{background:var(--base-color-neutral--black)}.blog-filters_button.fs-cmsfilter_active{background:var(--base-color-neutral--black);color:var(--text-color--text-alternate);border-color:var(--border-color--border-primary)}@media screen and (min-width: 992px){.blogs_link-block:hover .blogs_image{transform:scale(1.07)}}.partner-navbar_component .w-nav-link.w--current{color:#e12e3a}.customLink{color:#ff444f!important}.content_market-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.floating-label{pointer-events:none}.custom-input:not(:placeholder-shown){padding-top:1.5rem;padding-bottom:.5rem}.custom-input:not(:placeholder-shown)~.floating-label{color:#6002ee;top:.5rem;font-size:12px}.custom-input:not(:focus)~.floating-label{color:#0009}.custom-input{position:absolute;width:100%;height:100%;border-radius:8px;margin-bottom:0;padding:1rem .7rem;border:1px solid #00000014;box-shadow:none;transition-property:background-color,border-color,border-width;transition-duration:.15s,.15s,0ms;transition-timing-function:ease,ease,ease;font-size:1rem;background-color:#0000}.text-input.custom{height:56px}.custom-input.-wfp-focus,:where(html:not(.wf-design-mode)) .custom-input:focus{border-bottom-width:2px;border-bottom-color:#00000014;background-color:#0000;box-shadow:none}.w-input:focus,.w-select:focus{outline:0;border:1px solid var(--core-color-solid-slate-1400, #000)}.w-input,.w-select{color:#000000b8}input,textarea,[contenteditable]{caret-color:#000000b8}.custom-input:not(:placeholder-shown)+.floating-label{color:#000000b8}.with-asterisk:after{content:"*";color:#c40000;margin-left:3px}.custom-input.error-field:not(:focus)+.floating-label{color:#de0040}.custom-input.error-field{border-color:#de0040}.input-error-text.error-field{display:block;padding-top:4px;padding-left:var(--16-px);color:#de0040}.error-field-icon.error-field{position:absolute;width:24px}.error-field-icon.error-field{position:absolute;width:24px;inset:0% 2% 0% auto;display:block}.error-field-icon,.input-error-text{display:none}.error-message{color:#e6190eb8!important;font-size:12px;margin-top:4px}.logged-out-btn.hide-element,.logged-in-btn.hide-element,.section_ctrader-check-email.hide-element,.section_ctrader-check-email-verify.hide-element,.section_page-header_dint-get-email.hide-element{display:none!important}.rangeslider_handle:focus{outline:none!important}.contact-social_link-wp:hover .is-hover,.contact-social_link-live:hover .is-hover{display:block}.contact-social_link-wp:hover .is-normal,.contact-social_link-live:hover .is-normal{display:none}.margin-bottom-md{margin-bottom:.2rem!important}input.error-field::placeholder{color:red!important}.disclaimer-active .header_background-image-wrapper{top:5%}@media screen and (max-width: 430px){.disclaimer-active .header_background-image-wrapper{top:10%}}.error-field-block{border:1px solid #de0040}.input-error-text.error-field-block{display:block;border:none}.sn_form img#email-sign-up-error-icon{width:24px;border:none;position:absolute;top:14px;height:25px;right:9px}.sn_form input.error-field-block:focus{border-color:#de0040}.error-field-icon.error-field-block{display:block}.footer_logo svg{max-width:72px}span#translations-customerssay{font-family:IBM Plex Sans,sans-serif;font-size:16px;line-height:24px;color:red}.navbar_icon{transition:transform .3s}.navbar_accordion-content{transition:max-height .3s ease,padding .3s ease,transform .3s ease;transform:translateY(-20px)}.navbar_accordion-trigger:before{display:none;content:"";position:absolute;left:0;top:0;width:4px;height:44px;background:#ff444f}.navbar_accordion-trigger.open:before{display:block}.navbar_accordion-trigger.open svg{transform:rotate(180deg);transition:all .5s ease-in-out}.navbar_accordion-trigger.current:before{display:block}@media (max-width: 479px){.disclaimer-active .header_background-image-wrapper{top:5%}}@media (min-width: 480px) and (max-width: 610px){.disclaimer-active .header_background-image-wrapper{top:15%}}@media (min-width: 611px) and (max-width: 767px){.disclaimer-active .header_background-image-wrapper{top:12%}}@media (min-width: 768px){.disclaimer-active .header_background-image-wrapper{top:7%}}select{-webkit-appearance:none;-moz-appearance:none}::-ms-reveal{display:none}.page-wrapper.nopad{padding:0!important}.disclaimer-show .menu-wrapper{height:80px}.trustpilot-widget a[rel~=noopener]{visibility:hidden}.new-navbar_component .new-navbar_container>.new-navbar_menu{transform:none!important}.input-group .error-field-icon.error-field{top:16px}.dir-ltr{direction:ltr;text-align:left}.new-navbar_menu.is-padding-0.is-adaptive:lang(ar){margin-right:0}:dir(rtl) .navbar_accordion-trigger:before{left:auto;right:0}:dir(rtl) .sn_form img#email-sign-up-error-icon,:dir(rtl) .error-field-icon.error-field{left:8px;right:auto}:dir(rtl) input#mobile-number{text-align:right}a#profile-link:focus{outline:none}@media (max-width: 768px){.blog-filters .w-dropdown{display:contents}}.show-cookie .cookie-middle-wrapper{margin-bottom:85px}.show-cookie .cookie-middle-wrapper:lang(de),.show-cookie .cookie-middle-wrapper:lang(fr),.show-cookie .cookie-middle-wrapper:lang(ru){margin-bottom:106px}@media (max-width: 1025px){.disclaimer_wrapper{display:none}.disclaimer_wrapper.head,.head .banner_disclaimer.hide-element{display:block}.show-cookie .cookie-middle-wrapper{margin-left:45px;margin-bottom:20px}.show-cookie .cookie-middle-wrapper:lang(ar){margin-right:45px}}@media (max-width: 478px){.show-cookie .cookie-middle-wrapper{margin-bottom:0;margin-left:0}}.foot .banner_disclaimer.hide-element{display:block}@media (max-width: 430px){.show-cookie .cookie-middle-wrapper:lang(de),.show-cookie .cookie-middle-wrapper:lang(fr),.show-cookie .cookie-middle-wrapper:lang(ru){margin-bottom:0}.show-cookie a.social-proof_link{z-index:-1}.show-cookie .cookie-middle-wrapper:lang(ar){margin-right:0}.show-cookie .contact-social_links-wrapper.is-whatsapp{bottom:10.5rem}}@media (min-width: 1025px){.disclaimer-visible #live_chat-wrapper,.disclaimer-visible .contact-social_links-wrapper{bottom:6rem}.disclaimer-visible #live_chat-wrapper:lang(de),.disclaimer-visible #live_chat-wrapper:lang(fr),.disclaimer-visible #live_chat-wrapper:lang(ru){bottom:8rem}.disclaimer-visible .footer_texts{padding-bottom:70px}}.cookies_banner-wrapper{box-shadow:0 0 8px #0003;-webkit-box-shadow:0 0px 8px rgba(0,0,0,.2)}.show-cookie div#floating_cta{display:none}.show-cookie .footer_bottom-wrapper{margin-bottom:128px}@media (max-width: 430px){.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(fr),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(pt),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(vi),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(bn),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(tr),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(it),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(pl){bottom:12.5rem}.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(ru),.show-cookie .contact-social_links-wrapper.is-whatsapp:lang(de){bottom:13.5rem}}.new-navbar_main-wrapper .logo-wrapper-25{padding-top:4px}.prime-form-group .error-field-icon.error-field{top:16px}.prime-form-group .custom-input:not(:placeholder-shown)~.floating-label{color:#000000b8}.form-group-wrapper.custom{transform:none!important;transform-style:unset!important}.dropdown-component.open .dropdown-component_list{display:block}.dropdown-component:after{content:"▼";position:absolute;right:10px;top:50%;transform:translateY(-50%);font-size:10px;color:#333;pointer-events:none}:root{--container-xlarge-width: 77rem;--overflowMargin: calc((100vw - var(--container-xlarge-width)) / 2)}.testimonial_list.is-custom-margin{margin-left:var(--overflowMargin)}.is-custom-margin .testimonial-item.w-dyn-item:last-child{margin-right:var(--overflowMargin)}.dropdown-component_content-block{margin-top:20px}.overflow-word a{overflow-wrap:break-word}a.deriv-tech-header_tablet-link.is-overlay:after{content:"";z-index:-1;opacity:.4;background-image:linear-gradient(181.93deg,#11141b00 3.15%,#11141b 50.01%);height:71%;position:absolute;inset:auto 0% 0%}.disable-scroll{overflow:hidden}@media (min-width: 992px) and (max-width: 1200px){.new-navbar_menu-left-desctop{font-size:14px}.new-navbar_dropdown-toggle,.new-navbar_link{padding:.5rem .75rem}header h1{font-size:3rem}header p{font-size:14px}}@media screen and (max-width: 991px){.tabs_menu-scroll-mobile{display:flex;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none}}*{scrollbar-width:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-o-font-smoothing:antialiased}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{initializeApp as e}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-app.js";import{getDatabase as t,ref as n,onValue as o}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-database.js";function i(e,t,n,o){let i="";if(n){let e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),i="; expires="+e.toUTCString()}document.cookie=o?e+"="+(t||"")+i+`;domain=${o};path=/`:e+"="+(t||"")+i+";path=/"}function r(e,t){const n={};return e.split(";").forEach(e=>{const[t,o]=e.split("=").map(e=>e.trim());n[t]=decodeURIComponent(o)}),n[t]}function c(e){i("webflow-user-language",e,30),i("webflow-user-language",e,30,`.${window.location.hostname}`)}function s(e){document.cookie=e+"=; Max-Age=-99999999;"}const a="green.derivws.com";window.emailRegex=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,window.toggleErrorField=(e,t)=>{t?e.classList.remove("error-field"):e.classList.add("error-field")},window.disableButton=function(e){e.disabled=!0,e.style.opacity="0.5"},window.isEuRegion=function(e){const t=e.replace(/\/$/,"");return/^\/(?:[^\/]+\/)?eu(?:\/|$)/.test(t)},window.enableButton=function(e){e.disabled=!1,e.style.opacity="1"},window.getOauthUrl=function(){var e=window.location.href,t=new URL(e).hostname,n=["deriv.com","deriv.be","deriv.me"].find(e=>t.endsWith(e));return n?`https://oauth.${n}`:"https://oauth.deriv.com"},window.getClientCountry=function(){var e;const t=r(document.cookie,"test_im_country"),n=r(document.cookie,"clients_country"),o=r(document.cookie,"client_information");return o?(null==(e=JSON.parse(o))?void 0:e.residence)||n:t||n},window.deriv_com_url="deriv.com",window.deriv_me_url="deriv.me",window.deriv_be_url="deriv.be",window.webflow_domain="webflow.deriv.com",window.staging_url="staging.deriv.com",window.staging_deriv_be_url="staging.deriv.be",window.domain_list_app_id={[window.deriv_com_url]:"61554",[window.deriv_me_url]:"1411",[window.deriv_be_url]:"30767",[window.webflow_domain]:"53503",[window.staging_url]:"53503"},window.getDomain=()=>{var e=window.location.href;return new URL(e).hostname},window.getAppId=()=>{const e=window.getDomain(),t=new URLSearchParams(window.location.search||"").get("app_id");if(t)return t;const n=localStorage.getItem("config.app_id");if(n)return n;const o={[window.webflow_domain]:window.domain_list_app_id[window.webflow_domain],[window.deriv_be_url]:window.domain_list_app_id[window.deriv_be_url],[window.deriv_me_url]:window.domain_list_app_id[window.deriv_me_url],[window.staging_url]:window.domain_list_app_id[window.staging_url]};return o[e]?o[e]:window.domain_list_app_id[window.deriv_com_url]};const d=()=>{try{return localStorage.getItem("config.server_url")||a}catch(e){return a}},l=()=>{const e=d(),t=r(document.cookie,"webflow-user-language");let n=window.getAppId(),o=(()=>{const e=window.getDomain();return e===window.deriv_me_url?window.domain_list_app_id[window.deriv_me_url]:e===window.deriv_be_url?window.domain_list_app_id[window.deriv_be_url]:e===window.webflow_domain?window.domain_list_app_id[window.webflow_domain]:window.domain_list_app_id[window.deriv_com_url]})();if("function"==typeof window.useGrowthbookFeatureFlag&&(window.isTHLogin=window.useGrowthbookFeatureFlag({featureFlag:"trigger_login_for_hub"}),"boolean"==typeof window.isTHLogin&&window.isTHLogin)){"staging.deriv.com"===new URL(window.location.href).host?(n=53503,o=53503):(n=61554,o=61554)}let i=t?t.toLowerCase():"en";"zh-cn"!==i&&"zh-tw"!==i||(i=i.replace("-","_"));const c=(e=>{let t="";return e&&Object.keys(e).forEach(n=>{t+=`&${n}=${e[n]}`}),t})((()=>{const e=r(document.cookie,"utm_data");if(e){const t=JSON.parse(e),n={};return["utm_source","utm_ad_id","utm_adgroup_id","utm_adrollclk_id","utm_campaign","utm_campaign_id","utm_content","utm_fbcl_id","utm_gl_client_id","utm_medium","utm_msclk_id","utm_term"].forEach(e=>{t.hasOwnProperty(e)&&(n[e]=t[e])}),n}return null})()),s=r(document.cookie,"affiliate_tracking"),a=s?`&affiliate_token=${s}`:"",l=void["mt5","bot","derivx"].filter(e=>window.location.pathname.includes(e)&&e)||"";return e&&/qa/.test(e)?`https://${e}/oauth2/authorize?app_id=${n}&l=${i}&brand=deriv${a}${c}&platform=${l}`:`${window.getOauthUrl()}/oauth2/authorize?app_id=${o}&l=${i}&brand=deriv${a}${c}&platform=${l}`};window.establishWebSocketConnection=()=>new Promise((e,t)=>{const n=r(document.cookie,"webflow-user-language"),o=n?n.toLowerCase():"en",i=d();window.websocket=new WebSocket(`wss://${i}/websockets/v3?app_id=${window.getAppId()}&l=${o||"en"}&brand=deriv`),window.websocket.addEventListener("open",t=>{window.websocket.addEventListener("close",()=>{window.websocket.close()}),window.websocket.addEventListener("message",e=>{JSON.parse(e.data)}),e(window.websocket)}),window.websocket.addEventListener("error",e=>{var n;null==(n=null==window?void 0:window.websocket)||n.close(),t(e)})}),window.socketMessageSend=async(e,t)=>{var n;try{return(null==window?void 0:window.websocket)&&(null==(n=null==window?void 0:window.websocket)?void 0:n.readyState)===(null==WebSocket?void 0:WebSocket.OPEN)?(window.websocket.send(e),new Promise((e,n)=>{window.websocket.addEventListener("message",o=>{const i=JSON.parse(o.data);t===i.msg_type&&(i.error?n(i.error):e(i))})})):establishWebSocketConnection().then(()=>(websocket.send(e),new Promise((e,n)=>{websocket.addEventListener("message",o=>{const i=JSON.parse(o.data);t===i.msg_type&&(i.error?n(i.error):e(i))})}))).catch(e=>Promise.reject(e))}catch(o){return Promise.reject(o)}};const u=[{id:"googlePlay",selectors:[".footer_banner-badge.google.w-inline-block",".app-download_link-wrapper.google.w-inline-block"],countries:["af","ax","as","ad","ai","aq","au","bb","bt","bv","io","bn","bi","ca","bq","cf","cx","cc","cg","cd","ck","cw","gq","et","fk","fo","gf","pf","tf","gl","gp","gu","gg","gy","hm","va","hk","ir","im","jp","je","ki","kp","ls","ly","mg","mw","mh","mq","mr","yt","fm","mn","me","ms","nr","nc","nz","ng","nu","nf","mp","pw","ps","pn","pr","re","sh","kn","lc","pm","vc","bl","mf","st","sg","sx","gs","ss","sj","sz","sy","tl","tk","tc","tv","um","us","vg","vi","wf","eh"]},{id:"appstore",selectors:[".footer_banner-badge.store.w-inline-block",".app-download_link-wrapper.appstore.w-inline-block"],countries:["ax","al","as","ad","aq","aw","au","at","bd","be","bv","io","bg","bi","ca","bq","cf","cx","cc","km","ck","hr","cu","cw","cy","cz","dk","dj","gq","er","ee","et","fk","fo","fi","fr","gf","pf","tf","de","gi","gr","gl","gp","gu","gg","gn","ht","hm","va","hk","hu","is","ir","iq","ie","im","il","it","je","ki","kp","lv","ls","ly","li","lt","lu","mt","mh","mq","yt","fm","me","nl","nc","nz","ng","nu","nf","mp","no","ps","pn","pl","pt","pr","re","ro","sh","pm","bl","mf","ws","sm","sg","sx","sk","si","so","gs","ss","es","sd","sj","se","ch","sy","tw","tl","tg","tk","tr","tv","gb","um","us","vu","vi","wf","eh"]},{id:"p2p",selectors:["#p2payment.accordion_toggle-block","#p2component.section_dp2p","#card_block_p2p.help_category"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","gb","us","um","vu","vi","ky","cu","de"]},{id:"w-dyn-item-p2p",selectors:["div.w-dyn-item"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"]},{id:"hideRow",selectors:["#footer_social-icons_row","#footer_text_row",".footer_risk-warning.w-richtext"],countries:["br","uy","lk","ch","za","ec"]},{id:"hideDiel",selectors:["#footer_text_diel","#footer_social-icons_diel"],countries:["br","uy","lk","ch","za","ec"]}],w=[{id:"showElems",selectors:[".banner_disclaimer"],countries:["br","uy","lk","ch","za","ec"]}],m=()=>{const e=window.getClientCountry();u.forEach(t=>{const n="hideDiel"===t.id?!t.countries.includes(e):t.countries.includes(e);if(e&&n)return t.selectors.forEach(e=>{document.querySelectorAll(e).forEach(e=>{if(e)if("w-dyn-item-p2p"===t.id){e.querySelector("#card_block_p2p.help_category")&&(e.style.display="none")}else e.style.display="none"})});if(!n){const e=document.querySelector(".footer_social-icons.diel");e&&(e.style.display="flex")}}),w.forEach(t=>{e&&t.countries.includes(e)?t.selectors.forEach(e=>{document.querySelectorAll(e).forEach(t=>{if(t){const n=document.querySelector(".page-wrapper");".banner_disclaimer"===e?(n.classList.add("disclaimer-show"),t.classList.remove("hide-element")):t.style.display="block"}})}):t.selectors.forEach(e=>{document.querySelectorAll(e).forEach(t=>{t&&(".banner_disclaimer"===e?t.classList.add("hide-element"):t.style.display="none")})})})};document.addEventListener("DOMContentLoaded",function(){const e=JSON.stringify({website_status:1});!async function(){try{const e=await fetch("https://deriv.com/cdn-cgi/trace"),t=await e.text(),n=Object.fromEntries(t.split("\n").map(e=>e.split("=",2))).loc.toLowerCase();n!==r(document.cookie,"clients_country")&&(s("clients_country"),i("clients_country",n,30)),m()}catch(e){m()}}();r(document.cookie,"clients_country")||window.socketMessageSend(e,"website_status").then(e=>{r(document.cookie,"clients_country")!==e.website_status.clients_country&&(s("clients_country"),i("clients_country",e.website_status.clients_country,30)),m()}).catch(e=>{})});const h=["ar","bn","de","en","es","fr","it","ko","pl","pt","ru","si","sw","tr","vi","zh_cn","zh_tw","zh-cn","zh-tw"];function p(){let e,t=!1,n=!1;const o=()=>{n=!0,t=!!r(document.cookie,"client_information"),t&&clearInterval(e),document.dispatchEvent(new Event("authStatusChange"))};return o(),e=setInterval(o,800),{getLoggedInStatus:()=>t,getAuthCheckedStatus:()=>n,onAuthStatusChange:e=>document.addEventListener("authStatusChange",e)}}document.addEventListener("DOMContentLoaded",function(){(()=>{var e;const t=window.location.pathname,n=window.location.hash,o=window.location.search,i=t.split("/"),s=i[1],a=h.includes(s||""),d=i.includes("careers")||i.includes("locations")||i.includes("derivtech")||i.includes("derivlife")||i.includes("trading-terms-glossary")||i.includes("product-explorer")||i.includes("eu-careers")||i.includes("our-locations")||i.includes("academy")||i.includes("trading-specifications");a&&c(s);const l=(null==(e=r(document.cookie,"webflow-user-language"))?void 0:e.toLowerCase())||"en",u=a?s:l;if((a||"en"!==l)&&s!==l)if(a&&s!==l)c(u);else if(!d){const e=(a?i.map(e=>e===s?u:e).join("/"):u+i.join("/"))+o+n;window.location.href="/"+e}})()}),document.addEventListener("DOMContentLoaded",()=>{const e=p();e.onAuthStatusChange(()=>{if(e.getAuthCheckedStatus()&&e.getLoggedInStatus()){document.querySelectorAll(".logged-in-btn").forEach(e=>{e.classList.remove("hide-element")});document.querySelectorAll(".logged-out-btn").forEach(e=>{e.classList.add("hide-element")})}else if(e.getAuthCheckedStatus()&&!e.getLoggedInStatus()){document.querySelectorAll(".logged-out-btn").forEach(e=>{e.classList.remove("hide-element")});document.querySelectorAll(".logged-in-btn").forEach(e=>{e.classList.add("hide-element")})}})});const g=document.querySelector(".banner_disclaimer"),f=document.querySelector(".main-wrapper");if(g){new ResizeObserver(e=>{for(let t of e)if(t.target===g){let e=t.target.getBoundingClientRect();f&&(f.style.paddingTop=e.height+"px")}}).observe(g)}window.addEventListener("pageshow",function(e){if(e.persisted){const e=document.querySelector(".w-nav-overlay");e&&(e.style.display="none",document.querySelector("body").click())}});const v=t(e({databaseURL:window.location.hostname.includes("staging")?"https://app-config-staging.firebaseio.com":"https://app-config-prod.firebaseio.com"}));let b=!1,_=!1;!function(){var e;const t=document.getElementById("live_chat-wrapper");try{const e=n(v,"remote_config/deriv-com/chat");o(e,e=>{const n=e.val();b=n.live_chat,_=n.whatsapp_chat;const o=document.querySelector(".whatsapp_chat"),i=document.querySelector(".livechatbtn");o&&(o.style.visibility=_?"visible":"hidden"),i&&(i.style.visibility=b?"visible":"hidden");const r=window.location.pathname.includes("/help-centre");if(window.location.pathname.includes("/deriv-prime")){t.style.flexDirection="column-reverse";document.querySelectorAll(".whatsapp_chat").forEach(e=>{e.style.visibility="hidden"})}if(r){const e=document.querySelectorAll(".livechatbtn");b?e.forEach(e=>{e.style.visibility="visible"}):e.forEach(e=>{e.style.visibility="hidden"});const t=document.querySelectorAll(".whatsapp_chat");_?t.forEach(e=>{e.style.visibility="visible"}):t.forEach(e=>{e.style.visibility="hidden"})}window.addEventListener("scroll",function(){var e,n;(b||_)&&(null==(e=null==t?void 0:t.classList)||e.remove("hide-element")),b||_||null==(n=null==t?void 0:t.classList)||n.add("hide-element")})},e=>{var n;null==(n=null==t?void 0:t.classList)||n.remove("hide-element")})}catch(i){null==(e=null==t?void 0:t.classList)||e.remove("hide-element")}}();new MutationObserver(function(e){for(const t of e)if(t.addedNodes.length)for(const e of t.addedNodes)e.nodeType===Node.ELEMENT_NODE&&"chat-widget-minimized"===e.id&&(e.style.opacity="0")}).observe(document.body,{childList:!0,subtree:!0});const y=document.querySelector(".redirection_background-wrapper"),k=document.getElementById("cancel-redirect"),L=document.getElementById("proceed-redirect"),E=window.dataLayer,S=r(document.cookie,"client_information"),q=!!S;if(document.addEventListener("DOMContentLoaded",()=>{E&&window.dataLayer.push({loggedIn:q,language:r(document.cookie,"webflow-user-language")||"en",...q&&{visitorId:null==S?void 0:S.loginid,currency:null==S?void 0:S.currency,email:null==S?void 0:S.email}})}),window.isEuRegion(window.location.pathname)&&y&&k&&L){let e=function(){document.querySelectorAll("a").forEach(function(e){const o=new URL(e.href,window.location.href),i=new URL(window.location.href);n.includes(o.host)||o.host===i.host||(e.removeEventListener("click",t),e.addEventListener("click",t))})},t=function(e){e.preventDefault(),o=this.href,i=this.target||"_self",y.classList.remove("hide-element"),document.body.style.overflow="hidden"};const n=["deriv.me","deriv.be","deriv.com","app.deriv.me","app.deriv.be","app.deriv.com","docs.deriv.com","community.deriv.com","deriv.statuspage.io","signup.deriv.com","login.deriv.com","api.deriv.com","hub.deriv.com"];let o="",i="_self";e();const r=document.querySelector(".w-pagination-wrapper");r&&r.addEventListener("click",t=>{const n=t.target;(n.closest(".blogs_page")||n.closest(".blogs_prev-button")||n.closest(".blogs_next-button"))&&setTimeout(()=>{e()},300)}),k.addEventListener("click",function(){y.classList.add("hide-element"),document.body.style.overflow="auto",o=""}),L.addEventListener("click",function(){o&&(window.open(o,i),o="",y.classList.add("hide-element"),document.body.style.overflow="auto")})}document.addEventListener("DOMContentLoaded",function(){document.querySelector(".banner_disclaimer")?document.body.classList.add("disclaimer-visible"):document.body.classList.remove("disclaimer-visible")});const $=document.querySelectorAll(".navbar_accordion-item");function A(){const e=document.querySelector(".navbar_accordion-trigger.open");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}$.forEach(e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const t=e.querySelector(".navbar_accordion-content");t.classList.remove("open"),t.style.maxHeight="0px",t.style.overflow="hidden",t.style.transition="max-height 0.3s ease-in, opacity 0.3s ease-in",t.style.opacity="0"}),$.forEach(e=>{const t=e.querySelector(".navbar_accordion-trigger");t.addEventListener("click",function(){const e=t.classList.contains("open");if($.forEach(e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const t=e.querySelector(".navbar_accordion-content");t.classList.remove("open"),t.style.maxHeight="0px",t.style.opacity="0"}),!e){t.classList.add("open");const e=t.nextElementSibling;e.classList.add("open"),e.style.maxHeight=e.scrollHeight+"px",e.style.opacity="1"}})});document.querySelectorAll(".navbar_accordion-trigger").forEach(e=>{e.addEventListener("click",function(){setTimeout(A,300)})});const C=new MutationObserver(e=>{e.forEach(e=>{if("class"===e.attributeName){const t=e.target;t.classList.contains("open")&&t.scrollIntoView({behavior:"smooth",block:"start"})}})});document.querySelectorAll(".navbar_accordion-item").forEach(e=>{C.observe(e,{attributes:!0})});const x=new URL(window.location.href),O=new URLSearchParams(x.search),z=O.get("t");if(O.has("referrer")&&null!=z){r(document.cookie,"referrer_token")!==z&&(s("referrer_token"),i("referrer_token",z,365,".deriv.com"))}const D=document.getElementById("navbar-home_login");D&&D.addEventListener("click",function(e){e.preventDefault(),window.location.href=l()});const I=document.getElementById("res-navbar-home_login");I&&I.addEventListener("click",function(e){e.preventDefault(),window.location.href=l()});const j=document.getElementById("white-navbar_login");j&&j.addEventListener("click",function(e){e.preventDefault(),window.location.href=l()});const M=document.getElementById("res-white-navbar_login");M&&M.addEventListener("click",function(e){e.preventDefault(),window.location.href=l()}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll(".navbar_accordion-trigger"),t=document.querySelector(".navbar_menu-button");if(document.querySelector(".new-navbar_component")){const e=document.querySelector(".new-navbar_component");e.addEventListener("mouseenter",()=>{window.innerWidth>991&&document.body.classList.add("disable-scroll")}),e.addEventListener("mouseleave",()=>{window.innerWidth>991&&document.body.classList.remove("disable-scroll")})}t&&t.addEventListener("click",function(){let e=window.innerHeight,t=document.querySelector(".new-navbar_main-wrapper");if(t){let n=e-t.offsetHeight,o=document.querySelector(".new-navbar_menu");o&&(o.style.height=`${n}px`)}}),e.forEach(t=>{t.addEventListener("click",function(){e.forEach(e=>e.classList.remove("current")),this.classList.add("current")})});let n=document.querySelector(".navbar_accordion-link.w--current");if(n){let e=n.closest(".navbar_accordion-item");if(e){let t=e.querySelector(".navbar_accordion-trigger");t&&t.classList.add("current")}}}),document.addEventListener("DOMContentLoaded",()=>{var e=window.location.pathname;["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"].some(t=>e.includes(t))&&document.head.querySelectorAll("link").forEach(function(e){e.hasAttribute("hreflang")&&"x-default"!==e.getAttribute("hreflang")&&e.remove()})}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".locale > .new-navbar_dropdown-link.w--current");if(e){let t=e.getAttribute("hreflang"),n=document.querySelectorAll(".current-locale-iso-code");if(t&&n.length)for(let e of n)e.innerText=t}});let R=document.querySelectorAll(".w-locales-items");if(R.length>0){R.forEach(function(e){e.querySelectorAll("a").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),c(e.getAttribute("hreflang")),window.location.href=e.href})})}),function(e){let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].trim();if(o.startsWith(e+"="))return o.substring(e.length+1)}}("webflow-user-language");let e=["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"],t=window.location.pathname;e.some(e=>t.includes(e))}document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".lang-mob");e&&e.addEventListener("click",function(){let e=document.querySelector(".new-navbar_menu-wrapper");e&&e.scrollBy({top:-3e3})})}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.pathname.split("/")[1],t=["en","fr","ar","pt","es","ru","vi","bn","si","tr","sw","zh-cn","zh-tw","ko","it","de","pl","uz"].includes(e)?e:"en",n=(e,n)=>{Array.from(document.querySelectorAll("a")).filter(n=>n.href===`${e}/signup`||n.href===`${e}/${t}/signup`||n.href===`${e}/landing/signup`||n.href===`${e}/${t}/landing/signup`).forEach(e=>{let o=t;"zh-tw"===o&&(o="zh_tw"),"zh-cn"===o&&(o="zh_cn"),e.href=`${n}/tradershub/signup?lang=${o}`})},o=window.location.hostname;"deriv.com"===o?n("https://deriv.com","https://hub.deriv.com"):"staging.deriv.com"===o&&n("https://staging.deriv.com","https://staging-hub.deriv.com")}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.hostname.split(".").slice(-2).join("."),t=()=>{const t=`https://hub.${e}/partnershub/`;document.querySelectorAll('a[href^="https://login.deriv."]').forEach(e=>{/https:\/\/login\.deriv\.(com|me|be)\/signin\.php/.test(e.href)&&(e.href=t)})},n=setInterval(()=>{var o;(null==(o=null==window?void 0:window.getClientCountry)?void 0:o.call(window))&&(t(),(()=>{let t="https://hub.deriv.com/partnershub/signup";"deriv.me"===e?t="https://hub.deriv.me/partnershub/signup":"deriv.be"===e&&(t="https://hub.deriv.be/partnershub/signup"),document.querySelectorAll('a[href="https://hub.deriv.com/partnershub/signup"]').forEach(e=>{e.href=t})})(),clearInterval(n))},300)}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('a[href="https://app.deriv.com/cashier/account-transfer"]').forEach(e=>{e.href="https://app.deriv.com/redirect?action=ctrader_account_transfer"})});let N=null,U=null,T=null;const B=()=>{const e="staging.deriv.com"===window.location.hostname?"https://staging-hub.deriv.com/tradershub/wallets":"https://hub.deriv.com/tradershub/wallets",t="staging.deriv.com"===window.location.hostname?"staging.deriv.com":"deriv.com";if(N&&U===e&&T===t)return N;const n={"https://deriv.com/cashier":e,"/cashier/withdrawal":`${e}/withdrawal`,"https://deriv.com/cashier/withdrawal":`${e}/withdrawal`,"https://deriv.com/cashier/account-transfer":`${e}/transfer`,"https://staging.deriv.com/cashier":e,"https://staging.deriv.com/cashier/withdrawal":`${e}/withdrawal`,"https://staging.deriv.com/cashier/account-transfer":`${e}/transfer`,"https://app.deriv.com/cashier":e,"https://app.deriv.com/cashier/withdrawal":`${e}/withdrawal`,"https://app.deriv.com/cashier/account-transfer":`${e}/transfer`,"https://app.deriv.com/wallet/withdrawal":`${e}/withdrawal`};return N=n,U=e,T=t,n},P=e=>{try{const t=e.getAttribute("href");if(!t)return;const n=B(),o=Object.entries(n).sort(([e],[t])=>t.length-e.length).find(([e])=>t.startsWith(e));if(o){const[n,i]=o,r=t.includes("?")?t.substring(t.indexOf("?")):"";e.setAttribute("href",i+r)}}catch(t){}};document.addEventListener("DOMContentLoaded",()=>{(()=>{try{const e=r(document.cookie,"client_information"),t=r(document.cookie,"wallet_account"),n=window.location.hostname.split(".").slice(-2).join(".");return e&&"true"===t&&"deriv.com"===n}catch(e){return!1}})()&&(()=>{try{document.querySelectorAll("a[href]").forEach(P)}catch(e){}})()});
|
|
1
|
+
import{initializeApp as e}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-app.js";import{getDatabase as t,ref as n,onValue as o}from"https://www.gstatic.com/firebasejs/10.8.1/firebase-database.js";function i(e,t,n,o){let i="";if(n){let e=new Date;e.setTime(e.getTime()+24*n*60*60*1e3),i="; expires="+e.toUTCString()}document.cookie=o?e+"="+(t||"")+i+`;domain=${o};path=/`:e+"="+(t||"")+i+";path=/"}function r(e){let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let o=t[n].trim();if(o.startsWith(e+"="))return o.substring(e.length+1)}return null}function c(e,t){const n={};return e.split(";").forEach(e=>{const[t,o]=e.split("=").map(e=>e.trim());n[t]=decodeURIComponent(o)}),n[t]}function s(e){i("webflow-user-language",e,30),i("webflow-user-language",e,30,`.${window.location.hostname}`)}function a(e){document.cookie=e+"=; Max-Age=-99999999;"}const d="green.derivws.com";window.emailRegex=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,window.toggleErrorField=(e,t)=>{t?e.classList.remove("error-field"):e.classList.add("error-field")},window.disableButton=function(e){e.disabled=!0,e.style.opacity="0.5"},window.isEuRegion=function(e){const t=e.replace(/\/$/,"");return/^\/(?:[^\/]+\/)?eu(?:\/|$)/.test(t)},window.enableButton=function(e){e.disabled=!1,e.style.opacity="1"},window.getOauthUrl=function(){var e=window.location.href,t=new URL(e).hostname,n=["deriv.com","deriv.be","deriv.me"].find(e=>t.endsWith(e));return n?`https://oauth.${n}`:"https://oauth.deriv.com"},window.getClientCountry=function(){var e;const t=c(document.cookie,"test_im_country"),n=c(document.cookie,"clients_country"),o=c(document.cookie,"client_information");return o?(null==(e=JSON.parse(o))?void 0:e.residence)||n:t||n},window.deriv_com_url="deriv.com",window.deriv_me_url="deriv.me",window.deriv_be_url="deriv.be",window.webflow_domain="webflow.deriv.com",window.staging_url="staging.deriv.com",window.staging_deriv_be_url="staging.deriv.be",window.domain_list_app_id={[window.deriv_com_url]:"61554",[window.deriv_me_url]:"1411",[window.deriv_be_url]:"30767",[window.webflow_domain]:"53503",[window.staging_url]:"53503"},window.getDomain=()=>{var e=window.location.href;return new URL(e).hostname},window.getAppId=()=>{const e=window.getDomain(),t=new URLSearchParams(window.location.search||"").get("app_id");if(t)return t;const n=localStorage.getItem("config.app_id");if(n)return n;const o={[window.webflow_domain]:window.domain_list_app_id[window.webflow_domain],[window.deriv_be_url]:window.domain_list_app_id[window.deriv_be_url],[window.deriv_me_url]:window.domain_list_app_id[window.deriv_me_url],[window.staging_url]:window.domain_list_app_id[window.staging_url]};return o[e]?o[e]:window.domain_list_app_id[window.deriv_com_url]};const l=()=>{try{return localStorage.getItem("config.server_url")||d}catch(e){return d}},u=()=>{const e=l(),t=c(document.cookie,"webflow-user-language");let n=window.getAppId(),o=(()=>{const e=window.getDomain();return e===window.deriv_me_url?window.domain_list_app_id[window.deriv_me_url]:e===window.deriv_be_url?window.domain_list_app_id[window.deriv_be_url]:e===window.webflow_domain?window.domain_list_app_id[window.webflow_domain]:window.domain_list_app_id[window.deriv_com_url]})();if("function"==typeof window.useGrowthbookFeatureFlag&&(window.isTHLogin=window.useGrowthbookFeatureFlag({featureFlag:"trigger_login_for_hub"}),"boolean"==typeof window.isTHLogin&&window.isTHLogin)){"staging.deriv.com"===new URL(window.location.href).host?(n=53503,o=53503):(n=61554,o=61554)}let i=t?t.toLowerCase():"en";"zh-cn"!==i&&"zh-tw"!==i||(i=i.replace("-","_"));const r=(e=>{let t="";return e&&Object.keys(e).forEach(n=>{t+=`&${n}=${e[n]}`}),t})((()=>{const e=c(document.cookie,"utm_data");if(e){const t=JSON.parse(e),n={};return["utm_source","utm_ad_id","utm_adgroup_id","utm_adrollclk_id","utm_campaign","utm_campaign_id","utm_content","utm_fbcl_id","utm_gl_client_id","utm_medium","utm_msclk_id","utm_term"].forEach(e=>{t.hasOwnProperty(e)&&(n[e]=t[e])}),n}return null})()),s=c(document.cookie,"affiliate_tracking"),a=s?`&affiliate_token=${s}`:"",d=void["mt5","bot","derivx"].filter(e=>window.location.pathname.includes(e)&&e)||"";return e&&/qa/.test(e)?`https://${e}/oauth2/authorize?app_id=${n}&l=${i}&brand=deriv${a}${r}&platform=${d}`:`${window.getOauthUrl()}/oauth2/authorize?app_id=${o}&l=${i}&brand=deriv${a}${r}&platform=${d}`};window.establishWebSocketConnection=()=>new Promise((e,t)=>{const n=c(document.cookie,"webflow-user-language"),o=n?n.toLowerCase():"en",i=l();window.websocket=new WebSocket(`wss://${i}/websockets/v3?app_id=${window.getAppId()}&l=${o||"en"}&brand=deriv`),window.websocket.addEventListener("open",t=>{window.websocket.addEventListener("close",()=>{window.websocket.close()}),window.websocket.addEventListener("message",e=>{JSON.parse(e.data)}),e(window.websocket)}),window.websocket.addEventListener("error",e=>{var n;null==(n=null==window?void 0:window.websocket)||n.close(),t(e)})}),window.socketMessageSend=async(e,t)=>{var n;try{return(null==window?void 0:window.websocket)&&(null==(n=null==window?void 0:window.websocket)?void 0:n.readyState)===(null==WebSocket?void 0:WebSocket.OPEN)?(window.websocket.send(e),new Promise((e,n)=>{window.websocket.addEventListener("message",o=>{const i=JSON.parse(o.data);t===i.msg_type&&(i.error?n(i.error):e(i))})})):establishWebSocketConnection().then(()=>(websocket.send(e),new Promise((e,n)=>{websocket.addEventListener("message",o=>{const i=JSON.parse(o.data);t===i.msg_type&&(i.error?n(i.error):e(i))})}))).catch(e=>Promise.reject(e))}catch(o){return Promise.reject(o)}};const m=[{id:"googlePlay",selectors:[".footer_banner-badge.google.w-inline-block",".app-download_link-wrapper.google.w-inline-block"],countries:["af","ax","as","ad","ai","aq","au","bb","bt","bv","io","bn","bi","ca","bq","cf","cx","cc","cg","cd","ck","cw","gq","et","fk","fo","gf","pf","tf","gl","gp","gu","gg","gy","hm","va","hk","ir","im","jp","je","ki","kp","ls","ly","mg","mw","mh","mq","mr","yt","fm","mn","me","ms","nr","nc","nz","ng","nu","nf","mp","pw","ps","pn","pr","re","sh","kn","lc","pm","vc","bl","mf","st","sg","sx","gs","ss","sj","sz","sy","tl","tk","tc","tv","um","us","vg","vi","wf","eh"]},{id:"appstore",selectors:[".footer_banner-badge.store.w-inline-block",".app-download_link-wrapper.appstore.w-inline-block"],countries:["ax","al","as","ad","aq","aw","au","at","bd","be","bv","io","bg","bi","ca","bq","cf","cx","cc","km","ck","hr","cu","cw","cy","cz","dk","dj","gq","er","ee","et","fk","fo","fi","fr","gf","pf","tf","de","gi","gr","gl","gp","gu","gg","gn","ht","hm","va","hk","hu","is","ir","iq","ie","im","il","it","je","ki","kp","lv","ls","ly","li","lt","lu","mt","mh","mq","yt","fm","me","nl","nc","nz","ng","nu","nf","mp","no","ps","pn","pl","pt","pr","re","ro","sh","pm","bl","mf","ws","sm","sg","sx","sk","si","so","gs","ss","es","sd","sj","se","ch","sy","tw","tl","tg","tk","tr","tv","gb","um","us","vu","vi","wf","eh"]},{id:"p2p",selectors:["#p2payment.accordion_toggle-block","#p2component.section_dp2p","#card_block_p2p.help_category"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","gb","us","um","vu","vi","ky","cu","de"]},{id:"w-dyn-item-p2p",selectors:["div.w-dyn-item"],countries:["as","au","at","be","bg","ca","hr","cy","cz","dk","ee","fi","fr","gr","gu","gg","hk","hu","ir","ie","im","il","it","je","ng","mm","sy","kp","lv","lt","lu","my","mt","nl","nz","mp","py","pl","pt","pr","ro","rw","sk","si","es","se","ae","gb","us","um","vu","vi","ky","cu","de"]},{id:"hideRow",selectors:["#footer_social-icons_row","#footer_text_row",".footer_risk-warning.w-richtext"],countries:["br","uy","lk","ch","za","ec"]},{id:"hideDiel",selectors:["#footer_text_diel","#footer_social-icons_diel"],countries:["br","uy","lk","ch","za","ec"]}],w=[{id:"showElems",selectors:[".banner_disclaimer"],countries:["br","uy","lk","ch","za","ec"]}],h=()=>{const e=window.getClientCountry();m.forEach(t=>{const n="hideDiel"===t.id?!t.countries.includes(e):t.countries.includes(e);if(e&&n)return t.selectors.forEach(e=>{document.querySelectorAll(e).forEach(e=>{if(e)if("w-dyn-item-p2p"===t.id){e.querySelector("#card_block_p2p.help_category")&&(e.style.display="none")}else e.style.display="none"})});if(!n){const e=document.querySelector(".footer_social-icons.diel");e&&(e.style.display="flex")}}),w.forEach(t=>{e&&t.countries.includes(e)?t.selectors.forEach(e=>{document.querySelectorAll(e).forEach(t=>{if(t){const n=document.querySelector(".page-wrapper");".banner_disclaimer"===e?(n.classList.add("disclaimer-show"),t.classList.remove("hide-element")):t.style.display="block"}})}):t.selectors.forEach(e=>{document.querySelectorAll(e).forEach(t=>{t&&(".banner_disclaimer"===e?t.classList.add("hide-element"):t.style.display="none")})})})};document.addEventListener("DOMContentLoaded",function(){const e=JSON.stringify({website_status:1});!async function(){try{const e=await fetch("https://deriv.com/cdn-cgi/trace"),t=await e.text(),n=Object.fromEntries(t.split("\n").map(e=>e.split("=",2))).loc.toLowerCase();n!==c(document.cookie,"clients_country")&&(a("clients_country"),i("clients_country",n,30)),h()}catch(e){h()}}();c(document.cookie,"clients_country")||window.socketMessageSend(e,"website_status").then(e=>{c(document.cookie,"clients_country")!==e.website_status.clients_country&&(a("clients_country"),i("clients_country",e.website_status.clients_country,30)),h()}).catch(e=>{})});const p=["ar","bn","de","en","es","fr","it","ko","pl","pt","ru","si","sw","tr","vi","zh_cn","zh_tw","zh-cn","zh-tw"];function g(){let e,t=!1,n=!1;const o=()=>{n=!0,t=!!c(document.cookie,"client_information"),t&&clearInterval(e),document.dispatchEvent(new Event("authStatusChange"))};return o(),e=setInterval(o,800),{getLoggedInStatus:()=>t,getAuthCheckedStatus:()=>n,onAuthStatusChange:e=>document.addEventListener("authStatusChange",e)}}document.addEventListener("DOMContentLoaded",function(){(()=>{var e;const t=window.location.pathname,n=window.location.hash,o=window.location.search,i=t.split("/"),r=i[1],a=p.includes(r||""),d=i.includes("careers")||i.includes("locations")||i.includes("derivtech")||i.includes("derivlife")||i.includes("trading-terms-glossary")||i.includes("product-explorer")||i.includes("eu-careers")||i.includes("our-locations")||i.includes("academy")||i.includes("trading-specifications");a&&s(r);const l=(null==(e=c(document.cookie,"webflow-user-language"))?void 0:e.toLowerCase())||"en",u=a?r:l;if((a||"en"!==l)&&r!==l)if(a&&r!==l)s(u);else if(!d){const e=(a?i.map(e=>e===r?u:e).join("/"):u+i.join("/"))+o+n;window.location.href="/"+e}})()}),document.addEventListener("DOMContentLoaded",()=>{const e=g();e.onAuthStatusChange(()=>{if(e.getAuthCheckedStatus()&&e.getLoggedInStatus()){document.querySelectorAll(".logged-in-btn").forEach(e=>{e.classList.remove("hide-element")});document.querySelectorAll(".logged-out-btn").forEach(e=>{e.classList.add("hide-element")})}else if(e.getAuthCheckedStatus()&&!e.getLoggedInStatus()){document.querySelectorAll(".logged-out-btn").forEach(e=>{e.classList.remove("hide-element")});document.querySelectorAll(".logged-in-btn").forEach(e=>{e.classList.add("hide-element")})}})});const f=document.querySelector(".banner_disclaimer"),v=document.querySelector(".main-wrapper");if(f){new ResizeObserver(e=>{for(let t of e)if(t.target===f){let e=t.target.getBoundingClientRect();v&&(v.style.paddingTop=e.height+"px")}}).observe(f)}window.addEventListener("pageshow",function(e){if(e.persisted){const e=document.querySelector(".w-nav-overlay");e&&(e.style.display="none",document.querySelector("body").click())}});const b=t(e({databaseURL:window.location.hostname.includes("staging")?"https://app-config-staging.firebaseio.com":"https://app-config-prod.firebaseio.com"}));let y=!1,_=!1;!function(){var e;const t=document.getElementById("live_chat-wrapper");try{const e=n(b,"remote_config/deriv-com/chat");o(e,e=>{const n=e.val();y=n.live_chat,_=n.whatsapp_chat;const o=document.querySelector(".whatsapp_chat"),i=document.querySelector(".livechatbtn");o&&(o.style.visibility=_?"visible":"hidden"),i&&(i.style.visibility=y?"visible":"hidden");const r=window.location.pathname.includes("/help-centre");if(window.location.pathname.includes("/deriv-prime")){t.style.flexDirection="column-reverse";document.querySelectorAll(".whatsapp_chat").forEach(e=>{e.style.visibility="hidden"})}if(r){const e=document.querySelectorAll(".livechatbtn");y?e.forEach(e=>{e.style.visibility="visible"}):e.forEach(e=>{e.style.visibility="hidden"});const t=document.querySelectorAll(".whatsapp_chat");_?t.forEach(e=>{e.style.visibility="visible"}):t.forEach(e=>{e.style.visibility="hidden"})}window.addEventListener("scroll",function(){var e,n;(y||_)&&(null==(e=null==t?void 0:t.classList)||e.remove("hide-element")),y||_||null==(n=null==t?void 0:t.classList)||n.add("hide-element")})},e=>{var n;null==(n=null==t?void 0:t.classList)||n.remove("hide-element")})}catch(i){null==(e=null==t?void 0:t.classList)||e.remove("hide-element")}}();new MutationObserver(function(e){for(const t of e)if(t.addedNodes.length)for(const e of t.addedNodes)e.nodeType===Node.ELEMENT_NODE&&"chat-widget-minimized"===e.id&&(e.style.opacity="0")}).observe(document.body,{childList:!0,subtree:!0});const k=document.querySelector(".redirection_background-wrapper"),L=document.getElementById("cancel-redirect"),E=document.getElementById("proceed-redirect"),S=window.dataLayer,q=c(document.cookie,"client_information"),$=!!q;if(document.addEventListener("DOMContentLoaded",()=>{S&&window.dataLayer.push({loggedIn:$,language:c(document.cookie,"webflow-user-language")||"en",...$&&{visitorId:null==q?void 0:q.loginid,currency:null==q?void 0:q.currency,email:null==q?void 0:q.email}})}),window.isEuRegion(window.location.pathname)&&k&&L&&E){let e=function(){document.querySelectorAll("a").forEach(function(e){const o=new URL(e.href,window.location.href),i=new URL(window.location.href);n.includes(o.host)||o.host===i.host||(e.removeEventListener("click",t),e.addEventListener("click",t))})},t=function(e){e.preventDefault(),o=this.href,i=this.target||"_self",k.classList.remove("hide-element"),document.body.style.overflow="hidden"};const n=["deriv.me","deriv.be","deriv.com","app.deriv.me","app.deriv.be","app.deriv.com","docs.deriv.com","community.deriv.com","deriv.statuspage.io","signup.deriv.com","login.deriv.com","api.deriv.com","hub.deriv.com"];let o="",i="_self";e();const r=document.querySelector(".w-pagination-wrapper");r&&r.addEventListener("click",t=>{const n=t.target;(n.closest(".blogs_page")||n.closest(".blogs_prev-button")||n.closest(".blogs_next-button"))&&setTimeout(()=>{e()},300)}),L.addEventListener("click",function(){k.classList.add("hide-element"),document.body.style.overflow="auto",o=""}),E.addEventListener("click",function(){o&&(window.open(o,i),o="",k.classList.add("hide-element"),document.body.style.overflow="auto")})}document.addEventListener("DOMContentLoaded",function(){document.querySelector(".banner_disclaimer")?document.body.classList.add("disclaimer-visible"):document.body.classList.remove("disclaimer-visible")});const C=document.querySelectorAll(".navbar_accordion-item");function A(){const e=document.querySelector(".navbar_accordion-trigger.open");e&&e.scrollIntoView({behavior:"smooth",block:"start"})}C.forEach(e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const t=e.querySelector(".navbar_accordion-content");t.classList.remove("open"),t.style.maxHeight="0px",t.style.overflow="hidden",t.style.transition="max-height 0.3s ease-in, opacity 0.3s ease-in",t.style.opacity="0"}),C.forEach(e=>{const t=e.querySelector(".navbar_accordion-trigger");t.addEventListener("click",function(){const e=t.classList.contains("open");if(C.forEach(e=>{e.querySelector(".navbar_accordion-trigger").classList.remove("open");const t=e.querySelector(".navbar_accordion-content");t.classList.remove("open"),t.style.maxHeight="0px",t.style.opacity="0"}),!e){t.classList.add("open");const e=t.nextElementSibling;e.classList.add("open"),e.style.maxHeight=e.scrollHeight+"px",e.style.opacity="1"}})});document.querySelectorAll(".navbar_accordion-trigger").forEach(e=>{e.addEventListener("click",function(){setTimeout(A,300)})});const x=new MutationObserver(e=>{e.forEach(e=>{if("class"===e.attributeName){const t=e.target;t.classList.contains("open")&&t.scrollIntoView({behavior:"smooth",block:"start"})}})});document.querySelectorAll(".navbar_accordion-item").forEach(e=>{x.observe(e,{attributes:!0})});const O=new URL(window.location.href),z=new URLSearchParams(O.search),D=z.get("t");if(z.has("referrer")&&null!=D){c(document.cookie,"referrer_token")!==D&&(a("referrer_token"),i("referrer_token",D,365,".deriv.com"))}const I=document.getElementById("navbar-home_login");I&&I.addEventListener("click",function(e){e.preventDefault(),window.location.href=u()});const j=document.getElementById("res-navbar-home_login");j&&j.addEventListener("click",function(e){e.preventDefault(),window.location.href=u()});const M=document.getElementById("white-navbar_login");M&&M.addEventListener("click",function(e){e.preventDefault(),window.location.href=u()});const R=document.getElementById("res-white-navbar_login");R&&R.addEventListener("click",function(e){e.preventDefault(),window.location.href=u()}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelectorAll(".navbar_accordion-trigger"),t=document.querySelector(".navbar_menu-button");if(document.querySelector(".new-navbar_component")){const e=document.querySelector(".new-navbar_component");e.addEventListener("mouseenter",()=>{window.innerWidth>991&&document.body.classList.add("disable-scroll")}),e.addEventListener("mouseleave",()=>{window.innerWidth>991&&document.body.classList.remove("disable-scroll")})}t&&t.addEventListener("click",function(){let e=window.innerHeight,t=document.querySelector(".new-navbar_main-wrapper");if(t){let n=e-t.offsetHeight,o=document.querySelector(".new-navbar_menu");o&&(o.style.height=`${n}px`)}}),e.forEach(t=>{t.addEventListener("click",function(){e.forEach(e=>e.classList.remove("current")),this.classList.add("current")})});let n=document.querySelector(".navbar_accordion-link.w--current");if(n){let e=n.closest(".navbar_accordion-item");if(e){let t=e.querySelector(".navbar_accordion-trigger");t&&t.classList.add("current")}}}),document.addEventListener("DOMContentLoaded",()=>{var e=window.location.pathname;["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"].some(t=>e.includes(t))&&document.head.querySelectorAll("link").forEach(function(e){e.hasAttribute("hreflang")&&"x-default"!==e.getAttribute("hreflang")&&e.remove()})}),document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".locale > .new-navbar_dropdown-link.w--current");if(e){let t=e.getAttribute("hreflang"),n=document.querySelectorAll(".current-locale-iso-code");if(t&&n.length)for(let e of n)e.innerText=t}});let U=document.querySelectorAll(".w-locales-items");if(U.length>0){U.forEach(function(e){e.querySelectorAll("a").forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),s(e.getAttribute("hreflang")),window.location.href=e.href})})}),r("webflow-user-language");let e=["/careers","/locations","/derivtech","/derivlife","/eu-careers","/our-locations","/product-explorer","/academy","/trading-terms-glossary"],t=window.location.pathname;e.some(e=>t.includes(e))}document.addEventListener("DOMContentLoaded",function(){let e=document.querySelector(".lang-mob");e&&e.addEventListener("click",function(){let e=document.querySelector(".new-navbar_menu-wrapper");e&&e.scrollBy({top:-3e3})})}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.pathname.split("/")[1],t=["en","fr","ar","pt","es","ru","vi","bn","si","tr","sw","zh-cn","zh-tw","ko","it","de","pl","uz"].includes(e)?e:"en",n=(e,n)=>{Array.from(document.querySelectorAll("a")).filter(n=>n.href===`${e}/signup`||n.href===`${e}/${t}/signup`||n.href===`${e}/landing/signup`||n.href===`${e}/${t}/landing/signup`).forEach(e=>{let o=t;"zh-tw"===o&&(o="zh_tw"),"zh-cn"===o&&(o="zh_cn"),e.href=`${n}/tradershub/signup?lang=${o}`})},o=window.location.hostname;"deriv.com"===o?n("https://deriv.com","https://hub.deriv.com"):"staging.deriv.com"===o&&n("https://staging.deriv.com","https://staging-hub.deriv.com")}),document.addEventListener("DOMContentLoaded",function(){const e=window.location.hostname.split(".").slice(-2).join("."),t=()=>{const t=`https://hub.${e}/partnershub/`;document.querySelectorAll('a[href^="https://login.deriv."]').forEach(e=>{/https:\/\/login\.deriv\.(com|me|be)\/signin\.php/.test(e.href)&&(e.href=t)})},n=setInterval(()=>{var o;(null==(o=null==window?void 0:window.getClientCountry)?void 0:o.call(window))&&(t(),(()=>{let t="https://hub.deriv.com/partnershub/signup";"deriv.me"===e?t="https://hub.deriv.me/partnershub/signup":"deriv.be"===e&&(t="https://hub.deriv.be/partnershub/signup"),document.querySelectorAll('a[href="https://hub.deriv.com/partnershub/signup"]').forEach(e=>{e.href=t})})(),clearInterval(n))},300)}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll('a[href="https://app.deriv.com/cashier/account-transfer"]').forEach(e=>{e.href="https://app.deriv.com/redirect?action=ctrader_account_transfer"})});let N=null,T=null,B=null;const W=()=>{const e="staging.deriv.com"===window.location.hostname?"https://staging-hub.deriv.com/tradershub/wallets":"https://hub.deriv.com/tradershub/wallets",t="staging.deriv.com"===window.location.hostname?"staging.deriv.com":"deriv.com";if(N&&T===e&&B===t)return N;const n={"https://deriv.com/cashier":e,"/cashier/withdrawal":`${e}/withdrawal`,"https://deriv.com/cashier/withdrawal":`${e}/withdrawal`,"https://deriv.com/cashier/account-transfer":`${e}/transfer`,"https://staging.deriv.com/cashier":e,"https://staging.deriv.com/cashier/withdrawal":`${e}/withdrawal`,"https://staging.deriv.com/cashier/account-transfer":`${e}/transfer`,"https://app.deriv.com/cashier":e,"https://app.deriv.com/cashier/withdrawal":`${e}/withdrawal`,"https://app.deriv.com/cashier/account-transfer":`${e}/transfer`,"https://app.deriv.com/wallet/withdrawal":`${e}/withdrawal`};return N=n,T=e,B=t,n},P=e=>{try{const t=e.getAttribute("href");if(!t)return;const n=W(),o=Object.entries(n).sort(([e],[t])=>t.length-e.length).find(([e])=>t.startsWith(e));if(o){const[n,i]=o,r=t.includes("?")?t.substring(t.indexOf("?")):"";e.setAttribute("href",i+r)}}catch(t){}};document.addEventListener("DOMContentLoaded",()=>{(()=>{try{const e=c(document.cookie,"client_information"),t=c(document.cookie,"wallet_account"),n=window.location.hostname.split(".").slice(-2).join(".");return e&&"true"===t&&"deriv.com"===n}catch(e){return!1}})()&&(()=>{try{document.querySelectorAll("a[href]").forEach(P)}catch(e){}})()});const H=["/newsroom","/trade/options","/markets/derived-indices/synthetic-indices","/tradingview","/mt5-trading-signals#signal-subscriber","/economic-calendar","/market-buzz","/trading-central","/trading-platforms/deriv-ctrader","/trading-platforms/deriv-x","/trading-platforms/deriv-trader","/trading-platforms/deriv-go","/trading-platforms/deriv-bot","/p2p","/academy","/blog","/trading-terms-glossary","/partners","/derivtech","/derivlife","/fraud-prevention","/partners-help-centre","/locations","/our-culture","/terms-and-conditions/deriv-mauritius-ltd-additional-terms","/terms-and-conditions/deriv-fx-ltd-additional-terms","/terms-and-conditions/deriv-bvi-ltd-additional-terms","/terms-and-conditions/deriv-v-ltd-additional-terms","/terms-and-conditions/business-partners-general-terms","/terms-and-conditions/affiliates-introducing-brokers-ibs","/terms-and-conditions/payment-agents","/terms-and-conditions/api-users","/terms-and-conditions/bug-bounty-program","/trading-specifications#forex","/trading-specifications#derived-indices","/trading-specifications#stocks","/trading-specifications#stock-indices","/trading-specifications#commodities","/trading-specifications#cryptocurrencies","/trading-specifications#etfs","/payment-methods"],F=["https://deriv.com","https://staging.deriv.com"].flatMap(e=>H.map(t=>`${e}${t}`));function J(e){try{const t=new URL(e);let n=t.pathname.replace(/\/$/,"");return`${t.origin}${n}`.toLowerCase()}catch{return e.toLowerCase()}}document.addEventListener("DOMContentLoaded",function(){if("true"===r("internal"))return;const e=document.querySelector("#geomodal"),t=setInterval(()=>{const n=window.getClientCountry();n&&(clearInterval(t),"ae"===n.toLowerCase()&&function(){const e=J(window.location.origin+window.location.pathname);return F.some(t=>{const n=J(t);return e===n||e.startsWith(n+"/")})}()?e&&e.classList.contains("hide-element")&&(e.classList.remove("hide-element"),document.body.style.overflow="hidden"):e&&!e.classList.contains("hide-element")&&(e.classList.add("hide-element"),document.body.style.overflow=""))},100)});
|