PageSourceSearch

https://di-volio.com/cz/_nuxt/Dmc1NUam.js

js di-volio.com collected 2026-10-05 05:34:02 UTC 7,435 bytes, 1 lines download raw bytes

1import{as as F,c as d,d as s,ao as H,Q as E,f as c,N as p,aq as h,g as a,z as w,O as f,r as u,t as g,P,aw as q,o as m,a2 as z,D as N}from"./K1b_ijTh.js";import{u as O,b as R,a as Z}from"./B1Fi2rw8.js";import"./XUID70n1.js";const A={class:"flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8"},D={class:"mt-10 sm:mx-auto sm:w-full sm:max-w-[480px]"},U={class:"bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12"},T={class:"mt-2"},W={key:0,class:"text-red-500 text-sm mt-1"},G={class:"mt-4"},Q={class:"mt-2"},$={key:0,class:"text-red-500 text-sm mt-1"},I={key:0,class:"mb-4 text-red-500 text-sm mt-2"},J={class:"flex items-center justify-between pt-2"},K={class:"flex gap-3"},X={class:"flex h-6 shrink-0 items-center"},Y={class:"group grid size-4 grid-cols-1"},oe={__name:"index",setup(ee){const y=N(),k=q(),{fetch:C}=F(),S=O(),{fetchCart:_}=S,L=R(),{fetchFavorites:M}=L,j=Z(),{fetchComparison:V}=j,r=u(""),i=u(""),l=u(!1),t=u({email:"",password:"",general:""}),B=async()=>{t.value={email:"",password:"",general:""};let n=!1;if(r.value||(t.value.email="Email is required.",n=!0),i.value||(t.value.password="Password is required.",n=!0),!n)try{const{data:e,error:o}=await z("/api/auth/login",{method:"POST",body:{email:r.value,password:i.value,rememberMe:l.value}},"$LdW7yjZWv_");if(o.value){const v=o.value.data?.data;if(v)for(const[x,b]of Object.entries(v))t.value.hasOwnProperty(x)?t.value[x]=b:t.value.general+=b+" ";else t.value.general="An error occurred during login.";return}e.value?.success?(await C(),await _(),await M(),y.public.showComparison&&await V(),await k.push({path:"/account/dashboard"})):t.value.general="Login failed. Please try again."}catch(e){console.error(e),t.value.general="An unexpected error occurred."}};return(n,e)=>(m(),d("div",A,[e[10]||(e[10]=s("div",{class:"sm:mx-auto sm:w-full sm:max-w-md"},[s("h2",{class:"mt-6 text-center text-2xl/9 font-bold tracking-tight text-gray-900"}," Sign in to your account ")],-1)),s("div",D,[s("div",U,[s("form",{onSubmit:E(B,["prevent"])},[s("div",null,[e[3]||(e[3]=s("label",{for:"email",class:"block text-sm/6 font-medium text-gray-900"},"Email address",-1)),s("div",T,[p(s("input",{"onUpdate:modelValue":e[0]||(e[0]=o=>f(r)?r.value=o:null),type:"email",name:"email",id:"email",autocomplete:"email",required:"",class:w([{"border-red-500":a(t).email},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-primary sm:text-sm/6"])},null,2),[[h,a(r)]])]),a(t).email?(m(),d("span",W,g(a(t).email),1)):c("",!0)]),s("div",G,[e[4]||(e[4]=s("label",{for:"password",class:"block text-sm/6 font-medium text-gray-900"},"Password",-1)),s("div",Q,[p(s("input",{"onUpdate:modelValue":e[1]||(e[1]=o=>f(i)?i.value=o:null),type:"password",name:"password",id:"password",autocomplete:"current-password",required:"",class:w([{"border-red-500":a(t).password},"block w-full rounded-md bg-white px-3 py-1.5 text-base text-gray-900 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-primary sm:text-sm/6"])},null,2),[[h,a(i)]])]),a(t).password?(m(),d("span",$,g(a(t).password),1)):c("",!0)]),a(t).general?(m(),d("div",I,g(a(t).general),1)):c("",!0),s("div",J,[s("div",K,[s("div",X,[s("div",Y,[p(s("input",{"onUpdate:modelValue":e[2]||(e[2]=o=>f(l)?l.value=o:null),id:"remember-me",name:"remember-me",type:"checkbox",class:"col-start-1 row-start-1 appearance-none rounded border border-gray-300 bg-white checked:primary checked:primary indeterminate:primary indeterminate:primary focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:primary disabled:border-gray-300 disabled:bg-gray-100 disabled:checked:bg-gray-100 forced-colors:appearance-auto"},null,512),[[P,a(l)]]),e[5]||(e[5]=s("svg",{class:"pointer-events-none col-start-1 row-start-1 size-3.5 self-center justify-self-center stroke-white group-has-[:disabled]:stroke-gray-950/25",viewBox:"0 0 14 14",fill:"none"},[s("path",{class:"opacity-0 group-has-[:checked]:opacity-100",d:"M3 8L6 11L11 3.5","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),s("path",{class:"opacity-0 group-has-[:indeterminate]:opacity-100",d:"M3 7H11","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1))])]),e[6]||(e[6]=s("label",{for:"remember-me",class:"block text-sm/6 text-gray-900"},"Remember me",-1))]),e[7]||(e[7]=s("div",{class:"text-sm/6"},[s("a",{href:"/login/password/reset",class:"font-semibold"},"Forgot password?")],-1))]),e[8]||(e[8]=s("div",{class:"pt-4"},[s("button",{type:"submit",class:"flex cta is-primary w-full justify-center rounded-md px-3 py-1.5 text-sm/6 font-semibold text-white shadow-sm focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2"}," Sign in ")],-1))],32),e[9]||(e[9]=H('<div><div class="relative mt-10"><div class="absolute inset-0 flex items-center" aria-hidden="true"><div class="w-full border-t border-gray-200"></div></div><div class="relative flex justify-center text-sm/6 font-medium"><span class="bg-white px-6 text-gray-900">Or continue with</span></div></div><div class="mt-6 grid grid-cols-2 gap-4"><a href="/auth/google" class="flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:ring-transparent"><svg class="h-5 w-5" aria-hidden="true" viewBox="0 0 24 24">
1<path d="M12.0003 4.75C13.7703 4.75 15.3553 5.36002 16.6053 6.54998L20.0303 3.125C17.9502 1.19 15.2353 0 12.0003 0C7.31028 0 3.25527 2.69 1.28027 6.60998L5.27028 9.70498C6.21525 6.86002 8.87028 4.75 12.0003 4.75Z" fill="#EA4335"></path><path d="M23.49 12.275C23.49 11.49 23.415 10.73 23.3 10H12V14.51H18.47C18.18 15.99 17.34 17.25 16.08 18.1L19.945 21.1C22.2 19.01 23.49 15.92 23.49 12.275Z" fill="#4285F4"></path><path d="M5.26498 14.2949C5.02498 13.5699 4.88501 12.7999 4.88501 11.9999C4.88501 11.1999 5.01998 10.4299 5.26498 9.7049L1.275 6.60986C0.46 8.22986 0 10.0599 0 11.9999C0 13.9399 0.46 15.7699 1.28 17.3899L5.26498 14.2949Z" fill="#FBBC05"></path><path d="M12.0004 24.0001C15.2404 24.0001 17.9654 22.935 19.9454 21.095L16.0804 18.095C15.0054 18.82 13.6204 19.245 12.0004 19.245C8.8704 19.245 6.21537 17.135 5.2654 14.29L1.27539 17.385C3.25539 21.31 7.3104 24.0001 12.0004 24.0001Z" fill="#34A853"></path></svg><span class="text-sm/6 font-semibold">Google</span></a><a href="/auth/facebook" class="flex w-full items-center justify-center gap-3 rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus-visible:ring-transparent"><span class="[&amp;&gt;svg]:h-5 [&amp;&gt;svg]:w-5 [&amp;&gt;svg]:fill-[#1877f2]"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"></path></svg></span><span class="text-sm/6 font-semibold">Facebook</span></a></div></div><div><p class="mt-10 text-center text-sm/6 text-gray-500"> Not a member?   <a href="/register" class="font-semibold text-primary hover:primary-light">Register now!</a></p></div>',2))])])]))}};export{oe 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.