import{_ as h}from"./DrA4KDSF.js";import{a as g,b as w,_ as B}from"./CcSAih1r.js";import{_ as b}from"./CW5dyef9.js";import{_ as S}from"./BpJC44XK.js";import{_ as E,o as a,c as _,b as n,w as r,a as s,d as c,t as o,p as k,q as l}from"./CibDhUcP.js";const v={__name:"ValidationError",props:{headline:{type:String,default:"Error"},text:{type:String,default:"ErrorOccured"},error:{type:String,default:""},route:{type:String,default:"/"},showAction:{type:Boolean,default:!0},showActionHeadline:{type:Boolean,default:!1},actionHeadline:{type:String,default:""},actionText:{type:String,default:"Back"}},setup(t,{expose:p}){p();const e={props:t};return Object.defineProperty(e,"__isScriptSetup",{enumerable:!1,value:!0}),e}},H={class:"flex gap-4 w-full"},V={class:"flex flex-col flex-grow justify-center lg:justify-start w-full mb-12 @container/main"},A={class:"flex flex-col w-full justify-center mb-4"},j={class:"font-bold"},N={key:1},C={key:0,class:"flex mb-4"};function O(t,p,i,e,T,M){const d=h,f=g,u=b,m=S,x=w,y=B;return a(),_("div",H,[n(d,{class:"hidden lg:flex lg:w-[320px]"}),n(y,null,{default:r(()=>[n(f),s("div",V,[s("div",A,[n(x,{"show-count":!1,class:"mb-4"},{headline:r(()=>[c(o(t.$t(e.props.headline)),1)]),text:r(()=>[s("p",null,o(t.$t(e.props.text)),1),e.props.error?(a(),k(u,{key:0},{default:r(()=>[c(o(t.$t("ErrorOccured"))+": ",1),s("span",j,o(t.$t(e.props.error)),1)]),_:1})):l("",!0),e.props.showAction?(a(),_("p",N,[e.props.showActionHeadline?(a(),_("span",C,o(t.$t(e.props.actionHeadline)),1)):l("",!0),n(m,{to:e.props.route},{default:r(()=>[c(o(t.$t(e.props.actionText)),1)]),_:1},8,["to"])])):l("",!0)]),_:1})])])]),_:1})])}const W=E(v,[["render",O],["__file","ValidationError.vue"]]);export{W as _};
