1import{_ as B}from"./BPYbhdme.js";import T from"./r45v9FsF.js";import{I as V}from"./Cc0tPQ04.js";import{ao as h,cZ as C,cB as E,dC as S,c2 as l,ab as f,dI as y,aa as o,cr as i,cy as t,aj as x,bc as I,ai as j,s as N,ae as A,cd as w,a7 as O}from"./DR_CSbha.js";import"./C6ZXxE-j.js";import"./B-3vy5cE.js";import"./CueTHv89.js";import"./BwdO_H0i.js";import"./CO_Hsq9O.js";import"./BK-XcV57.js";import"./Kn31Lm3h.js";import"./CbxwP-g1.js";import"./D6LE6_wk.js";import"./CcsTk7az.js";import"./Xe3ueKJj.js";const R={class:"whitespace-pre-wrap"},$={class:"mt-8 mb-4 text-center"},z={class:"mb-4 text-center"},F=h({__name:"DialogTanEntry",props:{loading:{type:Boolean,default:!1},mailData:{}},emits:["action"],setup(c,{emit:b}){const m=c,d=b,{t:a}=C(),n=w(""),p=O(()=>{const s=/^\d+$/.test(n.value),e=n.value.length===6;return s&&e}),{directTanRepository:D}=E(),r=w(!1),{createSnackbar:u}=S(),k=async()=>{var s,e;if(!r.value){r.value=!0;try{await D.resend((e=(s=m.mailData)==null?void 0:s.subject)!=null?e:"",window.location.href,m.mailData.companyBranding),u({message:a("viewer.tan.expired.tan_flow.feedback.success")})}catch(v){u({message:a("global.general_error")})}r.value=!1}},g=()=>{p.value&&d("action",{tan:n.value})};return(s,e)=>{const v=B;return l(),f(T,{"data-cy":"tan_entry_dialog","max-width":"640",title:t(a)("viewer.tan.overlay.title"),disabled:!t(p),loading:c.loading,"action-text":t(a)("viewer.tan.overlay.confirm_sign"),"cancel-text":t(a)("viewer.tan.overlay.cancel"),onAction:g,onClose:e[1]||(e[1]=_=>d("action",{tan:"",cancel:!0}))},{default:y(()=>[o("p",R,i(t(a)("viewer.tan.overlay.lead_text")),1),o("p",$,[o("strong",null,i(t(a)("viewer.tan.overlay.enter_code")),1)]),x(V,{modelValue:t(n),"onUpdate:modelValue":e[0]||(e[0]=_=>I(n)?n.value=_:null),onEnter:g},null,8,["modelValue"]),o("p",z,[o("small",null,[o("strong",null,i(t(a)("viewer.tan.overlay.mail_sent.help_text")),1),e[2]||(e[2]=j(" "+i(" ")+" ",-1)),x(N,{mode:"out-in"},{default:y(()=>[t(r)?(l(),f(v,{key:0,class:"ml-4",size:16})):(l(),A("a",{key:1,class:"cursor-pointer text-decoration-underline",onClick:k},i(t(a)("viewer.tan.overlay.resend")),1))]),_:1})])])]),_:1},8,["title","disabled","loading","action-text","cancel-text"])}}}),te=Object.assign(F,{__name:"DialogsDocumentDialogTanEntry"});export{te as default}; 2//# sourceMappingURL=Bhr0nFIy.js.map
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.