PageSourceSearch

https://johnberger.fi/_nuxt/B_0WsTBq.js

js johnberger.fi collected 2026-10-04 01:53:46 UTC 1,938 bytes, 1 lines download raw bytes

1import{z as g,bX as k,bY as _,k as o,m as n,j as i,n as I,O as A,t as p,v as u,l as y,aN as $,y as r,r as H}from"./DXADahwW.js";const O={class:"form-group"},E=["for"],V={key:0,"aria-hidden":"true"},B={class:"has-feedback"},j=["id"],x=g({__name:"validatedInput",props:{label:{type:String,required:!0},labelVisible:{type:Boolean,required:!1,default:!0},inputId:{type:String,required:!1,default:""},validationHandler:{type:Object,required:!1,default:null},readonly:{type:Boolean,required:!1,default:!1}},setup(s){const e=s,m=k().default?.({})??[],l=r(()=>e.inputId||m[0]?.props?.id||void 0),h=r(()=>!e.validationHandler?.$invalid),q=new Set(["required","requiredIf"]),S=r(()=>(e.validationHandler?.$errors??[]).find(t=>!e.readonly||!q.has(String(t.$validator)))),c=r(()=>String(S.value?.$message??"").trim()),v=r(()=>!e.readonly&&!!e.validationHandler&&(Object.hasOwn(e.validationHandler,"required")||Object.hasOwn(e.validationHandler,"requiredIf")&&e.validationHandler.requiredIf.$invalid)),f=r(()=>!h.value&&c.value.length>0),d=r(()=>l.value?`${l.value}-feedback`:void 0),b=H(null);return _(()=>{const t=b.value;if(!t)return;const a=(l.value?t.querySelector(`#${CSS.escape(l.value)}`):null)??t.querySelector("input, select, textarea");a&&(v.value?a.setAttribute("aria-required","true"):a.removeAttribute("aria-required"),f.value&&d.value?(a.setAttribute("aria-invalid","true"),a.setAttribute("aria-describedby",d.value)):(a.removeAttribute("aria-invalid"),a.removeAttribute("aria-describedby")))},{flush:"post"}),(t,a)=>(o(),n("div",O,[s.label.length>0?(o(),n("label",{key:0,class:I(["os-form-label",{"sr-only":!s.labelVisible}]),for:i(l)},[A(p(s.label),1),i(v)?(o(),n("span",V," *")):u("",!0)],10,E)):u("",!0),y("div",B,[y("div",{ref_key:"controlGroup",ref:b,class:"input-group has-validation"},[$(t.$slots,"default"),i(f)?(o(),n("div",{key:0,id:i(d),class:"invalid-feedback d-block"},p(i(c)),9,j)):u("",!0)],512)])]))}});export{x as _};

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.