PageSourceSearch

https://freedx.com/_next/static/chunks/2598.29c30b03d1eea717.js

js freedx.com collected 2026-09-30 21:21:42 UTC 8,501 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2598],{24046:(e,a,l)=>{l.d(a,{DI:()=>n,Z2:()=>c,c9:()=>i,tO:()=>u,w9:()=>d});var t=l(81486),r=l(16078),s=l(24343);let n=(0,r.F)(s.iD,{variants:{variant:{...s.KQ.variant,primary:(0,t.cn)(s.KQ.variant.primary,"")}},defaultVariants:{variant:"default"}}),i=(0,r.F)(s.XH,{variants:{inset:{...s.VP.inset,true:(0,t.cn)(s.VP.inset.true,""),false:(0,t.cn)(s.VP.inset.false,"")}},defaultVariants:{inset:!1}}),c=(0,r.F)(s.Y7,{variants:{},defaultVariants:{}}),d=(0,r.F)(s.J,{variants:{},defaultVariants:{}}),u=(0,r.F)(s.kX,{variants:{},defaultVariants:{}})},92598:(e,a,l)=>{l.d(a,{l:()=>x});var t=l(63424),r=l(76396),s=l(81486),n=l(19259),i=l(27695),c=l(98903),d=l(24046),u=l(24343),o=l(55748),m=l(14111),h=l(14996),f=l(30388);function x(e){let{options:a,value:l,onValueChange:x,placeholder:p="Select an option",multiselect:v=!1,withSearch:j,contentClassName:N,contentProps:y,showSeparators:b=!0,scrollable:g,onSearch:w,TriggerComponent:C,searchPlaceholder:V="Search options",noResultsText:k="No results found for",disabled:P=!1,variant:R="primary",triggerProps:A={},triggerClassName:D,noOptionsPlaceholder:T,openOnHover:F=!1}=e,[I,_]=(0,r.useState)(""),[z,B]=(0,r.useState)(!1),E=(0,r.useRef)(void 0);(0,r.useEffect)(()=>()=>clearTimeout(E.current),[]);let G=(0,r.useRef)(null),S=(0,r.useRef)(null),H=Array.isArray(l)?l[0]:l;(0,r.useEffect)(()=>{if(!z||!H)return;let e=requestAnimationFrame(()=>{let e=G.current,a=S.current;if(!e||!a)return;let l=e.getBoundingClientRect(),t=a.getBoundingClientRect(),r=e.scrollHeight-e.clientHeight,s=e.scrollTop+(t.top-l.top)-e.clientHeight/2+a.clientHeight/2;e.scrollTop=Math.max(0,Math.min(s,r))});return()=>cancelAnimationFrame(e)},[z,H]);let L=F&&!P?{onPointerEnter:e=>{"touch"!==e.pointerType&&(clearTimeout(E.current),B(!0))},onPointerLeave:e=>{"touch"!==e.pointerType&&(E.current=setTimeout(()=>B(!1),150))}}:{},O=(0,r.useMemo)(()=>w?a:a.filter(e=>{if(""===I.trim())return!0;let a=I.toLowerCase();return e.label.toLowerCase().includes(a)}),[w,a,I]),U=e=>v?Array.isArray(l)&&l.includes(e):l===e;return(0,t.jsxs)(c.rI,{open:z,onOpenChange:B,modal:!F,children:[(0,t.jsx)(c.ty,{triggerClassName:D,...A,...L,disabled:P,children:C||(()=>{if(v&&Array.isArray(l)){if(0===l.length)return p;if(1===l.length){let e=a.find(e=>e.value===l[0]);return(null==e?void 0:e.label)||l[0]}return"".concat(l.length," items selected")}if(l&&!Array.isArray(l)){let e=a.find(e=>e.value===l);return(null==e?void 0:e.label)||l}return p})()}),(0,t.jsx)(c.SQ,{ref:G,className:(0,s.cn)((0,d.DI)({variant:R}),"min-w-[var(--radix-dropdown-menu-trigger-width)] p-0",N,g?"max-h-60 min-w-[304px] overflow-y-auto":""),...L,...y,children:(0,t.jsxs)(i.P.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{duration:.15},children:[j&&(0,t.jsxs)("div",{className:"bg-surface-surface-1 p-md sticky top-0 z-50",children:[(0,t.jsx)(o.p,{id:"select-search",onChange:e=>{let a=e.target.value;_(a),w&&w(a)},value:I,size:"md",startIconPath:(0,n.e)({variant:"line",name:"search"}),placeholder:V}),b&&(0,t.jsx)(c.mB,{})]}),(0,t.jsxs)("div",{className:"p-md flex flex-col gap-1",children:[(null==a?void 0:a.length)===0&&T?(0,t.jsx)(f.o,{className:"text-text-med-em",variant:"body_1",children:T}):null,O.map(e=>(0,t.jsx)(c._2,{ref:e.value===H?S:void 0,onClick:a=>{a.preventDefault(),(e=>{if(P||e.disabled)return;let a=e.value;if(v){let e=Array.isArray(l)?l:[],t=e.includes(a)?e.filter(e=>e!==a):[...e,a];null==x||x(t)}else null==x||x(a),B(!1)})(e)},disabled:e.disabled,className:u.BV,children:(0,t.jsx)(m.c,{size:"md",startTextGroup:{title:e.label},EndIcon:U(e.value)&&(0,t.jsx)(h.l,{src:(0,n.e)({variant:"line",name:"check",withBaseUrl:!0}),width:16,height:16}),...e,state:e.disabled||U(e.value)?"active":"default",className:u.vb})},e.value)),0===O.length&&I.length>0&&(0,t.jsxs)(c._2,{disabled:!0,children:[k,' "',(0,t.jsx)("strong",{children:I}),'"']})]})]})})]})}},98903:(e,a,l)=>{l.d(a,{SQ:()=>g,_2:()=>w,mB:()=>P,rI:()=>x,ty:()=>N,uG:()=>A});var t=l(63424),r=l(76396),s=l(81486),n=l(19259),i=l(79591),c=l(14829),d=l(63734),u=l(40073),o=l(14111),m=l(14996),h=l(24343),f=l(24046);let x=i.bL,p=i.YJ,v=i.Pb,j=i.z6,N=e=>{let{variant:a="primary",size:l="md",label:r,hint:n,state:o="default",StartElement:h,EndElement:f,startIconPath:x,endIconPath:p,containerClassName:v,children:j,asChild:N,disabled:y,triggerClassName:b,className:g,onPointerEnter:w,onPointerLeave:C}=e;return(0,t.jsx)(i.l9,{asChild:N,disabled:y,className:(0,s.cn)("outline-none focus-visible:outline-none",b),onPointerEnter:w,onPointerLeave:C,children:N?j:(0,t.jsxs)("div",{className:(0,s.cn)((0,c.ER)({size:l}),v),children:[r?(0,t.jsx)(u.l,{label:r,size:l,variant:a,state:o}):null,(0,t.jsxs)("div",{className:(0,s.cn)((0,c.Gk)({variant:a,size:l,state:o}),g),children:[h?(0,t.jsx)(h,{}):null,x?(0,t.jsx)(m.l,{src:x,className:(0,s.cn)((0,c.wD)({size:l,variant:a}))}):null,j?(0,t.jsx)("span",{className:"px-xs flex-1 text-start",children:j}):null,p?(0,t.jsx)(m.l,{src:p,className:(0,s.cn)((0,c.wD)({size:l,variant:a}))}):null,f?"function"==typeof f?(0,t.jsx)(f,{}):f:null]}),n?(0,t.jsx)(d.m,{hint:n,size:l,variant:a,state:o}):null]})})},y=(0,r.forwardRef)((e,a)=>{let{className:l,inset:r,children:c,...d}=e;return(0,t.jsx)(i.ZP,{ref:a,className:(0,s.cn)(h.BV,l),...d,children:(0,t.jsx)(o.c,{size:"md",startTextGroup:{title:c},state:"default",className:(0,s.cn)(h.vb,"justify-between"),EndIcon:(0,t.jsx)(m.l,{src:(0,n.e)({variant:"line",name:"chevron_right"})})})})});y.displayName=i.ZP.displayName;let b=(0,r.forwardRef)((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(i.G5,{ref:a,className:(0,s.cn)((0,f.tO)(),l),...r})});b.displayName=i.G5.displayName;let g=(0,r.forwardRef)((e,a)=>{let{className:l,sideOffset:n=8,collisionPadding:c=8,onPointerDownOutside:d,onCloseAutoFocus:u,onPointerDownCapture:o,onKeyDownCapture:m,...h}=e,x=(0,r.useRef)(!1);return(0,t.jsx)(i.ZL,{children:(0,t.jsx)(i.UC,{ref:a,sideOffset:n,collisionPadding:c,...h,onPointerDownOutside:e=>{x.current=!0,null==d||d(e)},onPointerDownCapture:e=>{x.current=!0,null==o||o(e)},onKeyDownCapture:e=>{x.current=!1,null==m||m(e)},onCloseAutoFocus:e=>{x.current&&(x.current=!1,e.preventDefault()),null==u||u(e)},className:(0,s.cn)((0,f.DI)(),l)})})});g.displayName=i.UC.displayName;let w=(0,r.forwardRef)((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(i.q7,{ref:a,className:l,...r})});w.displayName=i.q7.displayName;let C=(0,r.forwardRef)((e,a)=>{let{className:l,children:r,checked:c,...d}=e;return(0,t.jsx)(i.H_,{ref:a,className:(0,s.cn)(h.BV,l),checked:c,...d,children:(0,t.jsx)(o.c,{size:"md",startTextGroup:{title:r},state:"default",className:h.vb,StartIcon:(0,t.jsx)(i.VF,{children:(0,t.jsx)(m.l,{src:(0,n.e)({variant:"solid",name:"placeholder"})})})})})});C.displayName=i.H_.displayName;let V=(0,r.forwardRef)((e,a)=>{let{className:l,children:r,...c}=e;return(0,t.jsx)(i.hN,{ref:a,className:(0,s.cn)(h.BV,l),...c,children:(0,t.jsx)(o.c,{size:"md",startTextGroup:{title:r},state:"default",className:h.vb,StartIcon:(0,t.jsx)(i.VF,{children:(0,t.jsx)(m.l,{src:(0,n.e)({variant:"line",name:"check"})})})})})});V.displayName=i.hN.displayName;let k=(0,r.forwardRef)((e,a)=>{let{className:l,inset:r,...n}=e;return(0,t.jsx)(i.JU,{ref:a,className:(0,s.cn)((0,f.c9)({inset:r}),l),...n})});k.displayName=i.JU.displayName;let P=(0,r.forwardRef)((e,a)=>{let{className:l,...r}=e;return(0,t.jsx)(i.wv,{ref:a,className:(0,s.cn)((0,f.Z2)(),l),...r})});P.displayName=i.wv.displayName;let R=e=>{let{className:a,...l}=e;return(0,t.jsx)("span",{className:(0,s.cn)((0,f.w9)(),a),...l})};R.displayName="DropdownMenuShortcut";let A=e=>e.map((e,a)=>"separator"in e&&e.separator?(0,t.jsx)(P,{},a):"group"in e&&e.group?(0,t.jsxs)(p,{children:[e.label&&(0,t.jsx)(k,{children:e.label}),A(e.group)]},a):"children"in e&&e.children?(0,t.jsxs)(v,{children:[(0,t.jsx)(y,{children:e.label}),(0,t.jsx)(b,{children:A(e.children)})]},a):"checkbox"===e.type?(0,t.jsx)(C,{checked:e.checked,onCheckedChange:e.onCheckedChange,disabled:"disabled"===e.state,children:e.label},a):"radioGroup"===e.type?(0,t.jsxs)(r.Fragment,{children:[e.label&&(0,t.jsx)(k,{children:e.label}),(0,t.jsx)(P,{}),(0,t.jsx)(j,{value:e.value,onValueChange:e.onValueChange,children:e.options.map(e=>(0,t.jsx)(V,{value:e.value,children:e.label},e.value))})]},a):(0,t.jsx)(w,{disabled:"disabled"===e.state,className:h.BV,asChild:!0,children:(0,t.jsx)(o.c,{size:"md",startTextGroup:{title:e.label},...e,className:h.vb,EndIcon:e.shortcut&&(0,t.jsx)(R,{children:e.shortcut})})},a))}}]);

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.