PageSourceSearch

https://magic-planner.com/build/assets/FormField-l-jKkQo9.js

js magic-planner.com collected 2026-10-07 02:15:58 UTC 1,248 bytes, 1 lines download raw bytes

1import{u as f,U as y,c as l,d as a,n as h,h as m,t as r,i as n,k as b,P as k,s as o}from"./app-DBmLtXHu.js";const v=["for"],g={key:0,class:"field-required","aria-hidden":"true"},p={key:1,class:"ml-1 font-normal text-ink-muted"},B=["id"],S=["id"],x={__name:"FormField",props:{id:{type:String,default:null},label:{type:String,default:null},error:{type:String,default:null},hint:{type:String,default:null},optional:{type:Boolean,default:!1},required:{type:Boolean,default:!1},srOnlyLabel:{type:Boolean,default:!1}},setup(e){const i=e,s=f(),d=y(),t=o(()=>i.id??d),u=o(()=>{if(i.error)return`${t.value}-error`;if(i.hint)return`${t.value}-hint`});return(c,$)=>(l(),a("div",null,[e.label?(l(),a("label",{key:0,for:t.value,class:h(["field-label",e.srOnlyLabel?"sr-only":""])},[m(r(e.label),1),e.required?(l(),a("span",g,"*")):n("",!0),e.optional?(l(),a("span",p,"("+r(b(s).props.translations?.["forms.optional"]??"neobvezno")+")",1)):n("",!0)],10,v)):n("",!0),k(c.$slots,"default",{id:t.value,describedby:u.value,invalid:e.error?"true":void 0}),e.error?(l(),a("p",{key:1,id:`${t.value}-error`,class:"field-error",role:"alert"},r(e.error),9,B)):e.hint?(l(),a("p",{key:2,id:`${t.value}-hint`,class:"field-hint"},r(e.hint),9,S)):n("",!0)]))}};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.