vendor: 4,300 bytes, lines 1-11
1import{c as k,u as L,a as K,P as w,b as T,d as ne,i as re,f as se,g as ae}from"./createLucideIcon-CbC9zL1n.js";import{r as o}from"./index-CUC4KNaM.js";import{u as U}from"./icon-BdCD8k7S.js";import{u as B}from"./index-CtSaI5qA.js";import{j as p}from"./compiler-runtime-DLkwNwoZ.js";import{u as ce}from"./input-Df1evK8t.js";/** 2 * @license lucide-react v0.510.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ie=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ae=k("chevron-right",ie);/** 7 * @license lucide-react v0.510.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const le=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ne=k("circle",le);var _="Collapsible",[ue,Pe]=K(_),[de,O]=ue(_),$=o.forwardRef((e,n)=>{const{__scopeCollapsible:r,open:t,defaultOpen:a,disabled:b,onOpenChange:u,...R}=e,[v,m]=L({prop:t,defaultProp:a??!1,onChange:u,caller:_});return p.jsx(de,{scope:r,disabled:b,contentId:B(),open:v,onOpenToggle:o.useCallback(()=>m(c=>!c),[m]),children:p.jsx(w.div,{"data-state":j(v),"data-disabled":b?"":void 0,...R,ref:n})})});$.displayName=_;var Y="CollapsibleTrigger",q=o.forwardRef((e,n)=>{const{__scopeCollapsible:r,...t}=e,a=O(Y,r);return p.jsx(w.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":j(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...t,ref:n,onClick:T(e.onClick,a.onOpenToggle)})});q.displayName=Y;var D="CollapsibleContent",H=o.forwardRef((e,n)=>{const{forceMount:r,...t}=e,a=O(D,e.__scopeCollapsible);return p.jsx(ne,{present:r||a.open,children:({present:b})=>p.jsx(fe,{...t,ref:n,present:b})})});H.displayName=D;var fe=o.forwardRef((e,n)=>{const{__scopeCollapsible:r,present:t,children:a,...b}=e,u=O(D,r),[R,v]=o.useState(t),m=o.useRef(null),c=U(n,m),I=o.useRef(0),h=I.current,F=o.useRef(0),x=F.current,g=u.open||R,s=o.useRef(g),d=o.useRef(void 0);return o.useEffect(()=>{const i=requestAnimationFrame(()=>s.current=!1);return()=>cancelAnimationFrame(i)},[]),re(()=>{const i=m.current;if(i){d.current=d.current||{transitionDuration:i.style.transitionDuration,animationName:i.style.animationName},i.style.transitionDuration="0s",i.style.animationName="none";const l=i.getBoundingClientRect();I.current=l.height,F.current=l.width,s.current||(i.style.transitionDuration=d.current.transitionDuration,i.style.animationName=d.current.animationName),v(t)}},[u.open,t]),p.jsx(w.div,{"data-state":j(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!g,...b,ref:c,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":x?`${x}px`:void 0,...e.style},children:g&&a})});function j(e){return e?"open":"closed"}var Oe=$,De=q,je=H,N="rovingFocusGroup.onEntryFocus",pe={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[P,V,me]=se(y),[be,Ge]=K(y,[me]),[ve,ge]=be(y),z=o.forwardRef((e,n)=>p.jsx(P.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(P.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ce,{...e,ref:n})})}));z.displayName=y;var Ce=o.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:a=!1,dir:b,currentTabStopId:u,defaultCurrentTabStopId:R,onCurrentTabStopIdChange:v,onEntryFocus:m,preventScrollOnEntryFocus:c=!1,...I}=e,h=o.useRef(null),F=U(n,h),x=ce(b),[g,s]=L({prop:u,defaultProp:R??null,onChange:v,caller:y}),[d,i]=o.useState(!1),l=ae(m),C=V(r),S=o.useRef(!1),[X,G]=o.useState(0);return o.useEffect(()=>{const f=h.current;if(f)return f.addEventListener(N,l),()=>f.removeEventListener(N,l)},[l]),p.jsx(ve,{scope:r,orientation:t,dir:x,loop:a,currentTabStopId:g,onItemFocus:o.useCallback(f=>s(f),[s]),onItemShiftTab:o.useCallback(()=>i(!0),[]),onFocusableItemAdd:o.useCallback(()=>G(f=>f+1),[]),onFocusableItemRemove:o.useCallback(()=>G(f=>f-1),[]),children:p.jsx(w.div,{tabIndex:d||X===0?-1:0,"data-orientation":t,...I,ref:F,style:{outline:"none",...e.style},onMouseDown:T(e.onMouseDown,()=>{S.current=!0}),onFocus:T(e.onFocus,f=>{const Z=!S.current;if(f.target===f.currentTarget&&Z&&!d){const M=new CustomEvent(N,pe);if(f.currentTarget.dispatchEvent(M),!M.defaultPrevented){const A=C().filter(E=>E.focusable),ee=A.find(E=>E.active),te=A.find(E=>
vendor: 1,961 bytes, line 11
11E.id===g),oe=[ee,te,...A].filter(Boolean).map(E=>E.ref.current);W(oe,c)}}S.current=!1}),onBlur:T(e.onBlur,()=>i(!1))})})}),J="RovingFocusGroupItem",Q=o.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:a=!1,tabStopId:b,children:u,...R}=e,v=B(),m=b||v,c=ge(J,r),I=c.currentTabStopId===m,h=V(r),{onFocusableItemAdd:F,onFocusableItemRemove:x,currentTabStopId:g}=c;return o.useEffect(()=>{if(t)return F(),()=>x()},[t,F,x]),p.jsx(P.ItemSlot,{scope:r,id:m,focusable:t,active:a,children:p.jsx(w.span,{tabIndex:I?0:-1,"data-orientation":c.orientation,...R,ref:n,onMouseDown:T(e.onMouseDown,s=>{t?c.onItemFocus(m):s.preventDefault()}),onFocus:T(e.onFocus,()=>c.onItemFocus(m)),onKeyDown:T(e.onKeyDown,s=>{if(s.key==="Tab"&&s.shiftKey){c.onItemShiftTab();return}if(s.target!==s.currentTarget)return;const d=he(s,c.orientation,c.dir);if(d!==void 0){if(s.metaKey||s.ctrlKey||s.altKey||s.shiftKey)return;s.preventDefault();let l=h().filter(C=>C.focusable).map(C=>C.ref.current);if(d==="last")l.reverse();else if(d==="prev"||d==="next"){d==="prev"&&l.reverse();const C=l.indexOf(s.currentTarget);l=c.loop?Fe(l,C+1):l.slice(C+1)}setTimeout(()=>W(l))}}),children:typeof u=="function"?u({isCurrentTabStop:I,hasTabStop:g!=null}):u})})});Q.displayName=J;var Re={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Ie(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function he(e,n,r){const t=Ie(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return Re[t]}function W(e,n=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:n}),document.activeElement!==r))return}function Fe(e,n){return e.map((r,t)=>e[(n+t)%e.length])}var Me=z,ke=Q;export{q as C,ke as I,Oe as R,De as T,H as a,Me as b,Ge as c,Ae as d,Ne as e,Pe as f,je as g};
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.