import{_ as p,o as t,c as a,p as n,j as l,d as k,r as y,e as w,a as d,t as f,k as v,q as $,h as S,u as r,O as b,P as m,i as x,n as q}from"./entry.99121c4e.js";import{_ as B}from"./nuxt-link.566afe5b.js";import{I as N}from"./IconPasswordHide.d9084612.js";import{I as V}from"./IconPasswordShow.dd77eea0.js";const P={},T={class:"flex flex-col justify-center gap-16 w-full text-oxford-60 dark:text-white-60"},_={key:0,class:"flex flex-col gap-1"},C={key:0,class:"text-4xl text-oxford dark:text-white leading-10"},I={key:1};function j(e,o){return t(),a("div",T,[e.$slots.headline||e.$slots["sub-headline"]?(t(),a("div",_,[e.$slots.headline?(t(),a("h1",C,[n(e.$slots,"headline")])):l("",!0),e.$slots["sub-headline"]?(t(),a("span",I,[n(e.$slots,"sub-headline")])):l("",!0)])):l("",!0),n(e.$slots,"default")])}const M=p(P,[["render",j]]),z={class:"flex flex-col w-full gap-2"},D={class:"flex flex-row justify-between"},E=["for"],H={class:"relative"},L={key:0,class:"absolute top-1/2 -translate-y-1/2 left-4 pointer-events-none svg:stroke-manatee dark:svg:stroke-quick-silver"},O=["id","autocomplete","name","placeholder","required","tabindex","type","value"],Q=k({__name:"CInput",props:{id:{type:String,required:!0},tabindex:{type:[Number,String],default:null},linkTabindex:{type:[Number,String],default:null},label:{type:String,required:!0},placeholder:{type:String,required:!0},required:{type:Boolean,default:!1},link:{type:String,default:""},linkText:{type:String,default:""},type:{type:String,default:"text"},togglePassword:{type:Boolean,default:!1},autocomplete:{type:String,default:""},invalid:{type:Boolean,default:!1},modelValue:[String,Number,Boolean]},emits:["update:modelValue"],setup(e){const o=e,s=y(!1),h=w(()=>o.togglePassword?s.value?"text":"password":o.type);return(u,i)=>{const g=B;return t(),a("div",z,[d("div",D,[d("label",{for:e.id,class:"font-medium text-sm text-oxford-60 dark:text-white-60"},f(e.label),9,E),e.link&&e.linkText?(t(),v(g,{key:0,tabindex:e.linkTabindex,to:e.link,class:"font-medium text-sm text-cerulean dark:text-azure"},{default:$(()=>[S(f(e.linkText),1)]),_:1},8,["tabindex","to"])):l("",!0)]),d("div",H,[u.$slots.icon?(t(),a("span",L,[n(u.$slots,"icon")])):l("",!0),e.togglePassword?(t(),a("span",{key:1,class:"absolute top-1/2 -translate-y-1/2 right-4 cursor-pointer",onClick:i[0]||(i[0]=c=>s.value=!r(s))},[b(x(N,{class:"icon:stroke-manatee dark:icon:stroke-quick-silver"},null,512),[[m,r(s)]]),b(x(V,{class:"icon:stroke-manatee dark:icon:stroke-quick-silver"},null,512),[[m,!r(s)]])])):l("",!0),d("input",{id:e.id,autocomplete:e.autocomplete,class:q([{"!border-red":e.invalid},"py-4 px-11 w-full appearance-none border rounded focus-visible:outline-0 border-oxford-20 dark:border-white-20 invalid:!border-red bg-white dark:bg-eerie-black"]),name:e.id,placeholder:e.placeholder,required:e.required,tabindex:e.tabindex,type:r(h),value:e.modelValue,onInput:i[1]||(i[1]=c=>u.$emit("update:modelValue",c.target.value))},null,42,O)])])}}}),A=["disabled","tabindex"],R=k({__name:"Submit",props:{disabled:{type:Boolean,default:!1},tabindex:{type:[Number,String],default:null}},setup(e){return(o,s)=>(t(),a("button",{disabled:e.disabled,tabindex:e.tabindex,class:"flex flex-row justify-center items-center rounded p-4 gap-2 font-bold text-xl text-ghost-white svg:stroke-ghost-white bg-cerulean dark:bg-azure disabled:bg-cerulean-50 disabled:dark:bg-azure-50 disabled:cursor-not-allowed disabled:text-ghost-white-50 svg:disabled:stroke-ghost-white-50",type:"submit"},[n(o.$slots,"default")],8,A))}});export{Q as _,R as a,M as b};
