1import{Xt as e,fr as t,ln as n,lr as r,pr as i,un as a,ur as o}from"./useOpenInteractionType-CU4sGC0H.js";import*as s from"https://assets.finn.no/npm/react/v19/react.production.min.js";function c(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}var l=`data-valid`,u=`data-invalid`,d={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},f={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},p={disabled:!1,...f},m={valid(e){return e===null?null:e?{[l]:``}:{[u]:``}}},h={invalid:void 0,name:void 0,validityData:{state:d,errors:[],error:``,value:``,initialValue:null},setValidityData:o,disabled:void 0,setTouched:o,setDirty:o,setFilled:o,setFocused:o,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:p,registerFieldControl:o,validation:{getValidationProps:(e,t=r)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:o,getInputControl:()=>null,commit:async()=>{},change:o}},g=s.createContext(h);function _(e=!0){let t=s.useContext(g);if(t.setValidityData===o&&!e)throw Error(i(28));return t}function v(e,r,i,a,o=!0,s){let{registerFieldControl:c}=_(),l=t(()=>Symbol());n(()=>{let t=l.current;if(!o){c(t,void 0);return}c(t,{controlRef:e,getValue:a,id:r,name:s,value:i})},[e,o,a,r,s,c,l,i]),n(()=>{let e=l.current;return()=>{c(e,void 0)}},[c,l])}var y=s.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:o,validationMode:`onSubmit`,submitCountRef:{current:0}});function b(){return s.useContext(y)}var x=s.createContext({controlId:void 0,registerControlId:o,resetControlId:o,labelId:void 0,setLabelId:o,messageIds:[],setMessageIds:o,getDescriptionProps:e=>e});function S(){return s.useContext(x)}function C(r={}){let{id:i,enabled:c=!0}=r,{controlId:l,registerControlId:u,resetControlId:d}=S(),f=e(),p=t(()=>Symbol()),m=s.useRef(!1),h=s.useRef(!1),g=a(()=>{m.current&&u!==o&&(m.current=!1,u(p.current,void 0))});return n(()=>{if(!c||u===o){g();return}let e;if(i!==void 0)h.current=!0,e=i;else if(h.current)e=f;else{d();return}if(e===void 0){g();return}m.current=!0,u(p.current,e)},[i,c,u,d,f,p,g]),n(()=>g,[g]),(c?l:void 0)??i??f}export{h as a,f as c,c as d,v as i,d as l,S as n,g as o,b as r,_ as s,C as t,m as u};
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.