PageSourceSearch

https://www.rosen-group.com/_next/static/chunks/460.6b950e57667651d3.js

js rosen-group.com collected 2026-10-02 04:30:17 UTC 1,869 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[460],{56460:(e,r,n)=>{n.r(r),n.d(r,{RosenTreeDropdown:()=>C});var t=n(37876),l=n(14232),u=n(65400),o=n(74134),c=n.n(o),a=n(41946),s=n.n(a),i=n(80782),d=n.n(i),h=n(29832),p=n(29102);let f=(e,r)=>e.reduce((e,n)=>(n.value===r&&(n.checked=!0),[...e,{...n,...n.children&&n.children.length>0?{children:f(n.children,r)}:{}}]),[]),k=l.memo(function(e){let r,{options:n,value:l,onChange:u,onBlur:o,onFocus:a,onNodeToggle:s}=e,i=(r=[...n],l.forEach(e=>{r=f(n,e)}),r);return(0,t.jsx)(c(),{className:"rosen-dropdown",data:i,onChange:u,onFocus:a,onBlur:o,onNodeToggle:s})},(e,r)=>s()(e.options,r.options)&&s()(e.value,r.value)),C=l.forwardRef(function(e,r){let{options:n,value:o,onSelect:c,onReset:a}=e,[s,i]=(0,l.useState)(0),[f,C]=(0,l.useState)(!1),[g,b]=(0,l.useState)(o),v=(0,l.useRef)(null),w=(0,l.useRef)(!1),m=(0,l.useRef)([]),N=(0,l.useCallback)(d()(()=>{C(!1),w.current||c(m.current),w.current=!1},500,{trailing:!1}),[c]),j=(0,l.useCallback)(()=>{setTimeout(()=>{if(v.current){let e=v.current.querySelector(".dropdown-content");if(e){let{height:r}=(0,h.eD)(v.current),{height:n}=(0,h.eD)(e);i(r+n)}}},50)},[]),x=(0,l.useCallback)(()=>{C(!0),j()},[j]),y=(0,l.useCallback)((e,r)=>{m.current=r},[]),R=(0,l.useCallback)(()=>{w.current=!0,m.current=[],b([]),a()},[a]),S=(0,l.useCallback)(d()(()=>{w.current=!0,c(m.current)},500,{trailing:!1}),[c]);return(0,p.h)(()=>{b(o)},[o]),(0,t.jsxs)("div",{className:"rosen-dropdown-wrapper",ref:e=>{v.current=e,"function"==typeof r?r(e):null!==r&&(r.current=e)},children:[(0,t.jsx)(k,{options:n,value:g,onChange:y,onBlur:N,onFocus:x,onNodeToggle:j}),f&&(0,t.jsxs)("div",{className:"rosen-dropdown-buttons",style:{to
1p:s},children:[(0,t.jsx)(u.A,{onClick:R,variant:"tertiary",children:"Clear"}),(0,t.jsx)(u.A,{onClick:S,variant:"primary",children:"Apply"})]})]})})}}]);

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.