PageSourceSearch

https://1win.com/resources/v1/app/assets/two-factor-authentication-CP_CVDEF.js

js 1win.com collected 2026-10-03 19:09:56 UTC 6,420 bytes, 2 lines download raw bytes

1import{defineComponent as h,toRef as E,ref as S,withAsyncContext as x,openBlock as i,createBlock as V,unref as t,withCtx as b,createVNode as _,createElementVNode as m,normalizeClass as r,withDirectives as c,createElementBlock as l,createTextVNode as u,toDisplayString as s,withModifiers as K,createCommentVNode as N}from"vue";import{J as A,a9 as M}from"./merge-translations-BOeU9PXC.js";import{Z as B}from"./logger-BOxpBNGt.js";import"./plugin-feature-flags-DzLAwQjW.js";import"vue-router";import{M as D}from"./use-mfa-code-confirmation-DgJVbx4A.js";import{_ as L}from"./modal.vue_vue_type_script_setup_true_lang-BNzvSpoG.js";import{v as f,g as C}from"./test-manager-BlurlTRy.js";import{b as R}from"./custom-html-DSkscCoV.js";import{M as F}from"./modal-header-DO_tj22A.js";import{C as P}from"./code-input-DnE6OGy2.js";import"./plugin-server-updates-BaSdFo0k.js";import"./socket-io-adapter-CN39NsFq.js";import"./index-DB_05CQu.js";import"./use-recaptcha-C1-k4II9.js";import"./useMutation-BnvjhEUP.js";import"./snackbar-layout-Dv_DOfmg.js";import"./set-window-href-BCtJEGQE.js";import"./use-i18n-B0hP4Z_U.js";import"./index-vSUUMbpI.js";import"./modal-info-DPHBCCCG.js";import"./button-CTQg7Uw-.js";import"./use-modal-BvRYAWLj.js";import"./use-feature-flag-DIkGOlb4.js";import"./use-server-event-CiJxy1t7.js";import"./use-balances-activated-query-DWYPsSOw.js";import"./social-button-DzwFcR_k.js";import"./checkmark-C0P6RrdZ.js";import"./segment-control-4OlPhpYh.js";import"./use-path-based-route-matcher-u_WwO7dQ.js";import"./tab-C-rSRwXz.js";import"./picture-v2-KA_3OvDf.js";import"./create-mask-image-value-BQDVFb7C.js";import"./icon-box-CebUXsN4.js";import"./badge-base-6J2_ZzEN.js";import"./use-countdown-C2HYb50l.js";import"./error-captured.vue_vue_type_script_setup_true_lang-CAKKD8xl.js";import"./skeleton-B0OrSZmr.js";import"./index-DOechJbJ.js";import"./icon-sprite-DxqeX5YZ.js";import"./list-item-Cg5fDJ0s.js";import"./tooltip-CQ7G7tzQ.js";import"./currency-BIKkeMtT.js";import"./index-BkZBUjIo.js";import"./clear-redirect-params-C02M0nvJ.js";import"./setup-window-open-interceptor-qpvNcLsG.js";import"./use-body-scroll-lock-CkQ2xZd3.js";import"./arrow-back-CC1qmhtQ.js";import"./mask-input-BvALDU__.js";import"./component3-composition-Cx3jgoEb.js";import"./control-CETHERta.js";import"./hint-Bd5W3RbP.js";const H=["href","data-testid"],T="user2faCode",O=h({analyticName:"user/modal:two-factor-authentication",__name:"two-factor-authentication",emits:["update:modelValue"],async setup(W){let v,g;const w=A(),p=R(),[a,{suspense:$}]=M("modal.profile-2fa"),[y,{suspense:I}]=M("modal.profile"),d=E(()=>w.data.config.profile.security?.supportEmail??w.data.supportEmail),k=S("");return[v,g]=x(()=>Promise.all([$(),I()])),await v,g(),(e,o)=>(i(),V(t(L),{ref_key:"modalRef",ref:p,scrollable:"",detent:"expanded","test-id":T,onClose:o[4]||(o[4]=n=>t(p)?.dismiss("cancel"))},{default:b(()=>[_(t(F),{title:t(y).titleTwoFactorAuthentication(),"back-text":t(y).headerBack(),"is-back-shown":"",onBack:o[0]||(o[0]=n=>t(p)?.dismiss("cancel")),onClose:o[1]||(o[1]=n=>t(p)?.dismiss("cancel"))},null,8,["title","back-text"]),m("div",{class:r(e.$style.root)},[c((i(),l("div",{class:r(e.$style.description)},[u(s(t(a).loginDescription()),1)],2)),[[t(f)]]),m("form",{onSubmit:o[3]||(o[3]=K(()=>{},["prevent"]))},[_(t(P),{modelValue:k.value,"onUpdate:modelValue":o[2]||(o[2]=n=>k.value=n),length:t(D),"error-message":t(a).errorCodeInvalid(),autocomplete:"off","test-id":t(C)("codeInput",T)},null,8,["modelValue","length","error-message","test-id"])],32),d.value?(i(),l("div",{key:0,class:r(e.$style.support)},[c((i(),l("div",{class:r(e.$style.supportTitle)},[u(s(t(a).pauseSupportTitle()),1)],2)),[[t(f)]]),m("div",{class:r(e.$style.supportText)},[c((i(),l("span",null,[u(s(t(a).pauseSupportText()),1)])),[[t(f)]]),o[5]||(o[5]=u(" "+s(" ")+" ",-1)),m("a",{href:`mailto:${d.value}`,class:r(e.$style.supportLink),"data-testid":t(C)("supportEmail",T)},s(d.value),11,H)],2)],2)):N("",!0)],2)]),_:1},512))}}),z="two-factor-authentication_root-iIgMK",G="two-factor-authentication_description-iIgMK",J="two-factor-authentication_support-iIgMK",U="two-factor-authentication_supportTitle-iIgMK",Z="two-factor-authentication_supportText-iIgMK",j="two-factor-authentication_supportLink-iIgMK",q={root:z,description:G,support:J,supportTitle:U,supportText:Z,supportLink:j},Q={$style:q},Qt=B(O,[["__cssModules",Q]]);
1export{Qt as default};
2(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".two-factor-authentication_root-iIgMK{padding:0 var(--modal-padding-modal-mobile) var(--modal-padding-modal-mobile);gap:var(--spacing-16);flex-direction:column;flex:1;display:flex}@media (min-width:1024px){.two-factor-authentication_root-iIgMK{padding:0 var(--modal-padding-modal-desktop) var(--modal-padding-modal-desktop)}}.two-factor-authentication_description-iIgMK{color:var(--color-content-base-secondary);font-family:var(--font-body-font-family);font-size:var(--font-body-regular-font-size);font-weight:var(--font-body-regular-font-weight);letter-spacing:var(--font-body-regular-letter-spacing);line-height:var(--font-body-regular-line-height);margin-block-start:calc(var(--spacing-4)*-1)}.two-factor-authentication_support-iIgMK{padding:var(--spacing-12) var(--spacing-16);border-radius:var(--rounding-container-m);background:var(--color-background-base-secondary);gap:var(--spacing-4);flex-direction:column;margin-block-start:auto;display:flex}.two-factor-authentication_supportTitle-iIgMK{color:var(--color-content-base-primary);font-family:var(--font-body-font-family);font-size:var(--font-body-semibold-font-size);font-weight:var(--font-body-semibold-font-weight);letter-spacing:var(--font-body-semibold-letter-spacing);line-height:var(--font-body-semibold-line-height)}.two-factor-authentication_supportText-iIgMK{color:var(--color-content-base-secondary);font-family:var(--font-caption-font-family);font-size:var(--font-caption-s-regular-font-size);font-weight:var(--font-caption-s-regular-font-weight);letter-spacing:var(--font-caption-s-regular-letter-spacing);line-height:var(--font-caption-s-regular-line-height)}.two-factor-authentication_supportLink-iIgMK{color:var(--color-solid-sentiment-informative-default);-webkit-text-decoration:none;text-decoration:none}")),document.head.appendChild(t)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.