1import{f as L,r as q,l as P,a0 as n,c as w,a as C,k as o,n as s,q as a,t as e,z as j,a1 as B,v as r,F as N,x as E,E as I,J as d,H as V,o as u}from"./index-D8J0oPww.js";import{t as z,o as D,s as h,u as J,F as k}from"./vee-validate-zod-CH2EDK3p.js";import{_ as H,a as m,b as $,c as R,d as S}from"./Input.vue_vue_type_script_setup_true_lang-CO7IBChK.js";import{_ as f,a as p,b as _,c,d as x}from"./CardTitle.vue_vue_type_script_setup_true_lang-CFxTdRq2.js";import{_ as M}from"./Button.vue_vue_type_script_setup_true_lang-CM5H0ys7.js";import"./Primitive-CljMe3x2.js";import"./useId-Cmtzhf5y.js";import"./useForwardExpose-B2hGr7vE.js";import"./utils-D-KgF5mV.js";import"./index-DO1vYoOx.js";const G={class:"bg-white"},K={class:"mx-auto justify-items-center max-w-7xl sm:px-8 lg:px-12 mt-8 mb-8"},O={class:"mx-auto w-full px-18"},Q={class:"flex flex-col gap-6"},U={class:"mx-auto w-full mt-8 grid lg:grid-cols-2 lg:gap-x-6 med:grid-cols-1 px-18"},ne=L({__name:"Login",setup(W){let i=q([]);const A=z(D({username:h().min(2).max(50),password:h().min(2).max(50)})),{isFieldDirty:g,handleSubmit:T}=J({validationSchema:A}),v=P();v.isAuthenticated&&n.push("/");const b=T(y=>{v.login(y).then(t=>{if(t.success){let l=localStorage.getItem("redirectAfterLogin");l?(localStorage.removeItem("redirectAfterLogin"),n.push(l)):n.push("/products")}else{let l=t.invalid[0];i.value=[{title:"Login Failed. "+l.message,description:"",color:"yellow"}]}})});return(y,t)=>(u(),w("div",G,[t[12]||(t[12]=C('<header class="relative bg-white"><nav aria-label="Top" class="mx-auto max-w-7xl sm:px-6 lg:px-8"><div class="border-b border-gray-200 px-4 pb-14 sm:px-0 sm:pb-0"><div class="flex h-16 items-center justify-between"><div class="flex flex-1"><a href="/"><span class="sr-only">CokeCustom</span><img class="h-8 w-auto" src="'+j+'" alt=""></a></div><div class="flex flex-1 items-center justify-end"><span class="text-base text-xs/6 text-red-600 pr-8">authorized specialty merchandise supplier for </span><span class="sr-only">Coca-Cola</span><img class="h-8 w-auto" src="'+B+'" alt=""></div></div></div></nav></header>',1)),o("main",K,[o("div",O,[s(e(f),null,{default:a(()=>[s(e(p),null,{default:a(()=>[s(e(_),null,{default:a(()=>t[1]||(t[1]=[r("Login to your account")])),_:1,__:[1]}),s(e(c),null,{default:a(()=>t[2]||(t[2]=[r("Enter your email below to login to your account")])),_:1,__:[2]})]),_:1}),s(e(x),null,{default:a(()=>[(u(!0),w(N,null,E(e(i),(l,F)=>(u(),I(H,d({key:l.title},{ref_for:!0},l,{onRemove:X=>e(i).splice(F,1)}),null,16,["onRemove"]))),128)),o("form",{onSubmit:t[0]||(t[0]=(...l)=>e(b)&&e(b)(...l))},[o("div",Q,[s(e(k),{name:"username","validate-on-blur":!e(g)},{default:a(({componentField:l})=>[s(e(m),null,{default:a(()=>[s(e($),null,{default:a(()=>t[3]||(t[3]=[r("Email")])),_:1,__:[3]}),s(e(R),null,{default:a(()=>[s(e(S),d({id:"email",type:"email"},l,{required:""}),null,16)]),_:2},1024)]),_:2},1024)]),_:1},8,["validate-on-blur"]),s(e(k),{name:"password"},{default:a(({componentField:l})=>[s(e(m),null,{default:a(()=>[s(e($),null,{default:a(()=>t[4]||(t[4]=[r("Password")])),_:1,__:[4]}),s(e(R),null,{default:a(()=>[s(e(S),d({id:"password",type:"password"},l,{"validate-on-blur":!e(g),required:""}),null,16,["validate-on-blur"])]),_:2},1024)]),_:2},1024)]),_:1}),s(e(m),null,{default:a(()=>[s(e(M),{type:"submit",class:"w-full bg-red-600"},{default:a(()=>t[5]||(t[5]=[r("Login")])),_:1,__:[5]})]),_:1})])],32)]),_:1})]),_:1})]),o("div",U,[o("div",null,[s(e(f),null,{default:a(()=>[s(e(p),null,{default:a(()=>[s(e(_),null,{default:a(()=>t[6]||(t[6]=[r("Request an account")])),_:1,__:[6]}),s(e(c),null,{default:a(()=>t[7]||(t[7]=[r("Click the link below to request an account.")])),_:1,__:[7]})]),_:1}),s(e(x),null,{default:a(()=>t[8]||(t[8]=[o("p",null,[o("a",{class:"text-red-700",href:"/register"},"Request an Acccount")],-1)])),_:1,__:[8]})]),_:1})]),o("div",null,[s(e(f),null,{default:a(()=>[s(e(p),null,{default:a(()=>[s(e(_),null,{default:a(()=>t[9]||(t[9]=[r("Forgot Password ?")])),_:1,__:[9]}),s(e(c),null,{default:a(()=>t[10]||(t[10]=[r("Click the link below to reset your password.")])),_:1,__:[10]})]),_:1}),s(e(x),null,{default:a(()=>t[11]||(t[11]=[o("p",null,[o("a",{class:"text-red-700",href:"/forgot-password"},"Reset Password")],-1)])),_:1,__:[11]})]),_:1})])])]),t[13]||(t[13]=C('<footer class="mx-auto max-w-7xl sm:px-6 lg:px-8"><p class="mt-8 text-center text-sm/6 text-gray-600 md:order-1 md:mt-0"><img src="'+V+'"></p><div class="mx-auto max-w-7xl px-6 py-12 md:flex md:items-center md:justify-between lg:px-8"><p class="mt-8 text-center text-xs/6 text-gray-600 md:order-1 md:mt-0"> ©2026 The Coca-Cola Company. All Rights Reserved. Merchandise on this website is designed to promote the sale of products of The Coca-Cola Company. No products shown here are authorized for sale at retail or outside of the Coca-Cola system. Coca-ColaÂ, the Red Disk Icon, the design of the Contour Bottle, the Dynamic Ribbon are registered trademarks of The Coca-Cola Company. Produced under the authority of The Coca-Cola Company. © 2026 Jansen Advertising, Inc. All Rights Reserved. | Powered by JA </p></div></footer>',1))]))}});
1export{ne 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.