1import{u,a as x,h as w,d,w as n,e as r,f as t,j as s,ak as y,g as i,b as h,i as k,t as g,k as v,l as _}from"./app-9M9HHsdt.js";import{_ as b}from"./Button-CSSzAH63.js";import{_ as T}from"./Input-CrgF5MLq.js";import{G as V}from"./GuestHeading-B5ixE_KT.js";import{_ as B}from"./GuestLayout-CBMJZwUI.js";import{_ as C}from"./GuestLayout-BP6VbpjY.js";import"./ButtonHelp-DUKG5sWl.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Demo-Z0zEk1Zf.js";import"./Menu-CK_vx_d1.js";import"./MenuLinkGuest-DL2yXM1H.js";import"./Footer-DMWCEDLx.js";import"./helpers-CEwLc7ZO.js";import"./applicationStore-uIn4FCkc.js";import"./installerStore-D2bblFcQ.js";import"./vue3-treeselect.cjs.min-BQM5-Q2s.js";import"./debounce-viaXhNn2.js";import"./Demo-Bs1qLLBp.js";import"./Menu-lWJ_WhRI.js";import"./Footer-Bbs00bvW.js";const P={class:"flex flex-col md:flex-row md:max-w-5xl md:mx-auto md:my-10 md:rounded-2xl md:shadow-2xl md:overflow-hidden min-h-[calc(100vh-8rem)]"},j={class:"flex flex-col bg-white md:w-7/12 px-6 py-8 md:px-12 md:py-10"},G={key:0,class:"mb-4 text-sm font-medium text-green-600"},L={class:"mt-6 flex items-center justify-between gap-4 max-w-[448px]"},Z={__name:"TwoFactorChallenge",props:{status:{type:String}},setup(l){const a=u().props.settings.country,f=a==="namibia"?B:a==="eswatini"?C:null,o=x({two_factor_code:""}),c=()=>{o.post(route("verify.store"),{onError:()=>o.reset("two_factor_code")})},m=()=>{_.post(route("verify.resend"),{},{preserveScroll:!0})};return(N,e)=>(d(),w(s(f),null,{default:n(()=>[r(s(y),{title:"Two-factor Confirmation"}),t("div",P,[e[4]||(e[4]=t("div",{class:"relative flex flex-col justify-between bg-primary-100 text-white md:w-5/12 px-8 py-10 overflow-hidden min-h-[160px] md:min-h-0"},[t("div",{class:"absolute inset-0 pointer-events-none select-none","aria-hidden":"true"},[t("svg",{class:"absolute -top-8 -right-8 w-72 h-72 opacity-10",viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("polygon",{points:"120,12 156,36 156,84 120,108 84,84 84,36",stroke:"#faf872","stroke-width":"1.5",fill:"none"}),t("polygon",{points:"120,60 156,84 156,132 120,156 84,132 84,84",stroke:"#faf872","stroke-width":"1.5",fill:"none"}),t("polygon",{points:"168,12 204,36 204,84 168,108 132,84 132,36",stroke:"#faf872","stroke-width":"1.5",fill:"none"}),t("polygon",{points:"72,12 108,36 108,84 72,108 36,84 36,36",stroke:"#faf872","stroke-width":"1.5",fill:"none"}),t("polygon",{points:"72,108 108,132 108,180 72,204 36,180 36,132",stroke:"#faf872","stroke-width":"1.5",fill:"none"}),t("polygon",{points:"168,108 204,132 204,180 168,204 132,180 132,132",stroke:"#faf872","stroke-width":"1.5",fill:"none"}),t("polygon",{points:"120,156 156,180 156,228 120,252 84,228 84,180",stroke:"#faf872","stroke-width":"1.5",fill:"none"})]),t("svg",{class:"absolute -bottom-4 -left-4 w-52 h-52 opacity-20",viewBox:"0 0 160 160",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("line",{x1:"0",y1:"160",x2:"160",y2:"0",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"140",y2:"15",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"115",y2:"8",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"85",y2:"4",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"55",y2:"4",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"22",y2:"12",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"6",y2:"35",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"4",y2:"65",stroke:"#faf872","stroke-width":"1"}),t("line",{x1:"0",y1:"160",x2:"4",y2:"95",stroke:"#faf872","stroke-width":"1"}),t("circle",{cx:"0",cy:"160",r:"22",fill:"#faf872","fill-opacity":"0.15"}),t("circle",{cx:"0",cy:"160",r:"9",fill:"#faf872","fill-opacity":"0.35"})])]),t("div",{class:"relative z-10 flex flex-col justify-between h-full gap-8"},[t("div",null,[t("div",{class:"font-nexa text-3xl md:text-4xl font-bold leading-tight tracking-wide mb-3"},[i(" Embedded"),t("br"),i("Generation"),t("br"),t("span",{class:"text-accent-100"},"Platform")]),t("div",{class:"h-1 w-12 bg-accent-100 rounded mb-4"}),t("p",{class:"text-white/80 text-sm leading-relaxed hidden md:block"}," Two-factor authentication adds an extra layer of security to your account. ")]),t("div",{class:"hidden md:flex flex-col items-center gap-3 py-4"}
1,[t("svg",{class:"w-16 h-16 opacity-70",viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t("path",{d:"M32 4L8 14v18c0 13 10.5 22 24 28 13.5-6 24-15 24-28V14L32 4z",stroke:"#faf872","stroke-width":"2",fill:"none"}),t("path",{d:"M22 32l7 7 13-13",stroke:"#faf872","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]),t("p",{class:"text-white/60 text-sm text-center"},"Check your email for the OTP code")]),t("div",{class:"h-0.5 w-full bg-accent-100/40 rounded hidden md:block"})])],-1)),t("div",j,[r(V,null,{default:n(()=>[...e[1]||(e[1]=[i("Two-Factor Authentication",-1)])]),_:1}),e[3]||(e[3]=t("p",{class:"text-center text-gray-500 text-sm mt-1 mb-6"}," Please enter the OTP sent to your email to confirm access to your account. ",-1)),l.status?(d(),h("p",G,g(l.status),1)):k("",!0),t("form",{onSubmit:v(c,["prevent"])},[t("div",null,[r(T,{modelValue:s(o).two_factor_code,"onUpdate:modelValue":e[0]||(e[0]=p=>s(o).two_factor_code=p),error_message:s(o).errors.two_factor_code,is_required:!0,label:"OTP Code",autofocus:"",autocomplete:"one-time-code",inputmode:"numeric"},null,8,["modelValue","error_message"])]),t("div",L,[t("button",{type:"button",onClick:m,class:"text-sm text-gray-500 underline hover:text-gray-800 focus:outline-none focus:ring-2 focus:ring-primary-100 focus:ring-offset-2 rounded"}," Resend OTP "),r(b,{colour_type:"primary-guest",disabled:s(o).processing},{default:n(()=>[...e[2]||(e[2]=[i(" Log In ",-1)])]),_:1},8,["disabled"])])],32)])])]),_:1}))}};export{Z as default};
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.