PageSourceSearch

https://static.linear.app/web/_next/static/chunks/BufslTYJ.js

js linear.app collected 2026-09-24 07:29:35 UTC 2,310 bytes, 1 lines download raw bytes

1var t,e,r,n,o,i,a,s,l;import{o as u}from"./C_JJxWoe.js";import{Vr as d}from"./CGcjPoY7.js";import{f as c,l as f,m as v,o as m,p as g,u as p}from"./BiWktRCH.js";import{t as C}from"./C9HL7yLd.js";function I(e=!0){const r=t.useContext(a);if(r.setValidityData===g&&!e)throw new Error(f(28));return r}function y(){return t.useContext(s)}function b(e={}){const{id:r,enabled:n=!0}=e,{controlId:o,registerControlId:i,resetControlId:a}=y(),s=C(),l=v(()=>Symbol()),u=t.useRef(!1),d=t.useRef(!1),c=m(()=>{u.current&&i!==g&&(u.current=!1,i(l.current,void 0))});return p(()=>{if(!n||i===g)return void c();let t;if(void 0!==r)d.current=!0,t=r;else{if(!d.current)return void a();t=s}void 0!==t?(u.current=!0,i(l.current,t)):c()},[r,n,i,a,s,l,c]),p(()=>c,[c]),(n?o:void 0)??r??s}function h(t){if(null==t)return"";if("string"==typeof t)return t;try{return JSON.stringify(t)}catch{return String(t)}}function M(t,e,r,n,o=!0,i){const{registerFieldControl:a}=I(),s=v(()=>Symbol());p(()=>{const l=s.current;a(l,o?{controlRef:t,getValue:n,id:e,name:i,value:r}:void 0)},[t,o,n,e,i,a,s,r]),p(()=>{const t=s.current;return()=>{a(t,void 0)}},[a,s])}function x(){return t.useContext(l)}t=u(d(),1),e="data-valid",r="data-invalid",o={valid:t=>null===t?null:t?{[e]:""}:{[r]:""}},i={invalid:void 0,name:void 0,validityData:{state:n={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},errors:[],error:"",value:"",initialValue:null},setValidityData:g,disabled:void 0,setTouched:g,setDirty:g,setFilled:g,setFocused:g,validationMode:"onSubmit",shouldValidateOnChange:()=>!1,state:{disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},registerFieldControl:g,validation:{getValidationProps:(t,e=c)=>e,inputRef:{current:null},registeredInputs:new Map,registerInput:g,getInputControl:()=>null,commit:async()=>{},change:g}},a=t.createContext(i),s=t.createContext({controlId:void 0,registerControlId:g,resetControlId:g,labelId:void 0,setLabelId:g,messageIds:[],setMessageIds:g,getDescriptionProps:t=>t}),l=t.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:g,validationMode:"onSubmit",submitCountRef:{current:0}});export{y as a,o as c,b as i,M as n,I as o,h as r,n as s,x as t};

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.