PageSourceSearch

https://www.roede.com/_next/static/chunks/use-by-comparator-CoiQGKxL.js

js roede.com collected 2026-10-02 06:39:17 UTC 2,712 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,n}from"./framework-BlZLPK95.js";import{C as r,E as i,g as a,h as o,k as s}from"./focus-management-D8aSPS_A.js";var c=e(t(),1);function l(e,t,n){let[r,a]=(0,c.useState)(n),o=e!==void 0,s=(0,c.useRef)(o),l=(0,c.useRef)(!1),u=(0,c.useRef)(!1);return o&&!s.current&&!l.current?(l.current=!0,s.current=o,console.error(`A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.`)):!o&&s.current&&!u.current&&(u.current=!0,s.current=o,console.error(`A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.`)),[o?e:r,i(e=>(o||a(e),t?.(e)))]}function u(e){let[t]=(0,c.useState)(e);return t}var d=e(n(),1);function f(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))m(n,p(t,r),i);return n}function p(e,t){return e?e+`[`+t+`]`:t}function m(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())m(e,p(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n==`boolean`?e.push([t,n?`1`:`0`]):typeof n==`string`?e.push([t,n]):typeof n==`number`?e.push([t,`${n}`]):n==null?e.push([t,``]):f(n,t,e)}function h(e){var t;let n=e?.form??e.closest(`form`);if(n){for(let t of n.elements)if(t!==e&&(t.tagName===`INPUT`&&t.type===`submit`||t.tagName===`BUTTON`&&t.type===`submit`||t.nodeName===`INPUT`&&t.type===`image`)){t.click();return}(t=n.requestSubmit)==null||t.call(n)}}var g=(0,c.createContext)(null);function _({children:e}){let t=(0,c.useContext)(g);if(!t)return c.createElement(c.Fragment,null,e);let{target:n}=t;return n?(0,d.createPortal)(c.createElement(c.Fragment,null,e),n):null}function v({data:e,form:t,disabled:n,onReset:i,overrides:l}){let[u,d]=(0,c.useState)(null),p=s();return(0,c.useEffect)(()=>{if(i&&u)return p.addEventListener(u,`reset`,i)},[u,t,i]),c.createElement(_,null,c.createElement(y,{setForm:d,formId:t}),f(e).map(([e,i])=>c.createElement(o,{features:a.Hidden,...r({key:e,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:i,...l})})))}function y({setForm:e,formId:t}){return(0,c.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:c.createElement(o,{features:a.Hidden,as:`input`,type:`hidden`,hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest(`form`);n&&e(n)}})}function b(e,t){return e!==null&&t!==null&&typeof e==`object`&&typeof t==`object`&&`id`in e&&`id`in t?e.id===t.id:e===t}function x(e=b){return(0,c.useCallback)((t,n)=>{if(typeof e==`string`){let r=e;return t?.[r]===n?.[r]}return e(t,n)},[e])}export{l as a,u as i,v as n,h as r,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.