1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[790],{790:(e,r,t)=>{t.r(r),t.d(r,{default:()=>f});var l=t(95155),a=t(12115),s=t(17232),n=t(43425),o=t(14900),i=t(64473),c=t.n(i);t(37763);var d=t(2076);let f=({fieldData:e})=>{let r=(0,a.useRef)(null),[t,i,f]=(0,o.Mt)(e.name),[u,p]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{if(!r?.current)return;let{input:e}=r.current||{};e.addEventListener("focus",()=>{p(!0)}),e.addEventListener("blur",()=>{p(!1)})},[r]),(0,l.jsxs)("div",{className:"freeform-field relative bg-grey-bg border border-grey-border rounded-sm flex items-start flex-1",children:[(0,l.jsx)(s.P.label,{htmlFor:e.name,className:"freeform-label pointer-events-none absolute left-2 top-1/2 transform -translate-y-1/2 origin-top-left will-change-auto",initial:{scale:1,y:"-50%",color:"#222"},animate:t.value||u||e.placeholder?{scale:.8571428571,y:"0",top:"0.25rem",color:"#767572"}:{scale:1,y:"-50%",color:"#222",top:"50%"},transition:{duration:.2},children:e.label}),(0,l.jsx)(c(),{...t,selected:t.value,dateFormat:"dd/MM/yyyy",onChange:e=>f.setValue(e),className:"freeform-input w-full bg-transparent pt-6 px-2 pb-1",ref:r}),(0,l.jsx)(n.N,{children:i.touched&&i.error?(0,l.jsx)(s.P.div,{className:"freeform-error absolute left-0 top-full text-red w-full z-10",initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:10},transition:{type:"spring",stiffness:300,damping:30},children:i.error}):null}),e.required&&(0,l.jsx)("span",{className:"freeform-required absolute right-2 top-1 text-red",children:"*"}),e.description&&(0,l.jsx)("span",{className:"freeform-description absolute right-0 top-full text-xs text-grey",children:(0,l.jsx)(d.A,{content:e.description})})]})}}}]);
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.