PageSourceSearch

https://oneworld.vercel.app/_nuxt/EhPrHLVg.js

js oneworld.vercel.app collected 2026-10-03 07:27:00 UTC 5,013 bytes, 2 lines download raw bytes

1import{f as R,j as q,G as L,a2 as U,i as P,l as D,a3 as O,m as j,c as y,x as m,t as n,a as i,w as f,A as c,n as e,v as k,z as G,b as _,d as g,K as z,B as M,s as H,o as d,J}from"./goLDb2lV.js";import{c as K,a as $}from"./2KRBp8kZ.js";import{F as W}from"./Bla455if.js";import{F as S}from"./Ns1MlECa.js";import{G as Y}from"./LM7KSAH2.js";import{S as Q}from"./D8QtM9bF.js";import{_ as X}from"./jh1pGnQn.js";import{u as Z}from"./DvUhTuKT.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};a.SENTRY_RELEASE={id:"fbb98ac15a660e865a4b25e3fe07bb23c4aa4acf"}}catch{}})();try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},u=new a.Error().stack;u&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[u]="3890d448-ae03-4933-91f7-02786015d8be",a._sentryDebugIdIdentifier="sentry-dbid-3890d448-ae03-4933-91f7-02786015d8be")}catch{}const ee={class:"flex flex-col"},oe={class:"fluid-sm leading-tight block"},te={class:"fluid-xl leading-tight font-medium mt-10 mb-3 text-center"},ae={key:1,class:"w-full mb-6"},se={key:4,class:"space-x-2"},ne={class:"fluid-sm leading-tight"},ge={__name:"LoginForm",props:{registerCtaTop:{type:Boolean,default:!1},forgotPasswordOverButton:{type:Boolean,default:!1},fromUri:{type:String,default:null}},emits:["success"],setup(a,{emit:u}){const{$localeRootPath:p,$_gtm:b,$sso:B}=R(),{t:v,locale:T}=q(),V=L(),C=U(),E=P(),r=H(()=>E.maintenance),x=u,{login:A}=D(),h=a,I=K().shape({email:$().required(v("account.fields.email.required")).email(v("account.fields.email.email")),password:$().required(v("account.fields.password.required"))}),t=Z({email:"",password:"",languageCode:O(T.value)},I),F=()=>{b.push({event:"gaEvent",event_name:"sign_up_click",sign_up_click:{event_category:"Account",event_action:"Sign Up",event_label:"Click"}})},N=async()=>{if(h.fromUri&&window.localStorage.setItem("fromUri",h.fromUri),!!await t.validate())try{await t.submit(A(t.email,t.password,t.languageCode)),x("success"),b.push({event:"gaEvent",event_name:"login",login:{event_category:"Account",event_action:"Login",event_label:"Success"}});const s=window.localStorage.getItem("ow:redirect");if(s){const l=B.processOWRedirect(s);l&&C.push(l)}else J(p("/account/profile/details"))}catch(s){console.warn("Login error:",s),b.push({event:"gaEvent",event_name:"login_fail",login_fail:{event_category:"Account",event_action:"Login",event_label:"Fail"}})}};return j(()=>{const o=V.query?.email;o&&typeof o=="string"&&o.length>0&&(t.email=o)}),(o,s)=>{const l=M;return d(),y("div",ee,[m("div",{class:k(["flex w-full pt-3 space-x-2 border-gray-400",a.registerCtaTop?"order-1 border-b pb-3 justify-center":"order-2  border-t justify-between"])},[m("p",oe,n(o.$t("account.modal.noAccount")),1),i(l,{class:"fluid-sm leading-tight block font-medium text-black underline underline-offset-2 hover:no-underline focus-visible:focus-ring",to:e(p)("/account/register"),onClick:F},{default:f(()=>[c(n(o.$t("account.modal.registerNow")),1)]),_:1},8,["to"])],2),m("form",{class:k(["flex flex-col items-center",a.registerCtaTop?"order-2":"order-1"]),onSubmit:z(N,["prevent"])},[m("h3",te,[G(o.$slots,"default",{},()=>[c(n(o.$t("account.login")),1)])]),e(r)?.active?(d(),_(Q,{key:0,class:"mb-4",type:"error",message:e(r)?.message??o.$t("account.modal.maintenance")},null,8,["message"])):g("",!0),e(r)?.active?g("",!0):(d(),y("div",ae,[i(X)])),i(e(S),{modelValue:e(t).email,"onUpdate:modelValue":s[0]||(s[0]=w=>e(t).email=w),id:"login-form-email",error:e(t).errors.email,disabled:e(r)?.active,label:o.$t("account.labels.email"),name:"email",type:"email",autocomplete:"email",required:""},null,8,["modelValue","error","disabled","label"]),i(e(S),{modelValue:e(t).password,"onUpdate:modelValue":s[1]||(s[1]=w=>e(t).password=w),id:"login-form-password",error:e(t).errors.password,disabled:e(r)?.active,label:o.$t("account.labels.password"),name:"password",type:"password",autocomplete:"current-password",required:""},null,8,["modelValue","error","disabled","label"]),e(t).errors.message?(d(),_(e(Y),{key:2},{default:f(()=>
1[c(n(e(t).errors.message),1)]),_:1})):g("",!0),a.forgotPasswordOverButton?(d(),_(l,{key:3,to:e(p)("/account/reset"),class:"fluid-sm leading-tight h-4 font-medium text-black border-b border-black"},{default:f(()=>[c(n(o.$t("account.modal.forgotPassword")),1)]),_:1},8,["to"])):g("",!0),i(e(W),{disabled:e(r)?.active,class:"self-center","is-loading":e(t).processing},{default:f(()=>[c(n(o.$t("account.login")),1)]),_:1},8,["disabled","is-loading"]),!a.forgotPasswordOverButton&&!e(r)?.active?(d(),y("div",se,[m("span",ne,n(o.$t("account.modal.forgotPassword")),1),i(l,{to:e(p)("/account/reset"),class:"fluid-sm leading-tight font-medium text-black underline underline-offset-2 hover:no-underline focus-visible:focus-ring"},{default:f(()=>[c(n(o.$t("account.modal.clickHere")),1)]),_:1},8,["to"])])):g("",!0)],34)])}}};export{ge as _};
2//# sourceMappingURL=EhPrHLVg.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.