PageSourceSearch

https://beebro.com/app/assets/Tabs-CEmK-UkL.js

js beebro.com collected 2026-10-02 01:25:04 UTC 3,504 bytes, 1 lines download raw bytes

1import{o as e,t}from"./react-B8HINTYZ.js";import{i as n}from"./bundle-mjs-C77yRssA.js";import{c as r}from"./i18n-BWNmymKJ.js";import{S as i,_ as a,b as o,g as s,v as c,x as l}from"./dist-BedKRH-1.js";import{i as u,n as d,r as f,t as p}from"./dist-BZ2nb8Rz.js";var m=e(t(),1),h=n(),g=`Tabs`,[_,v]=l(g,[f]),y=f(),[b,x]=_(g),S=m.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:o,orientation:l=`horizontal`,dir:d,activationMode:f=`automatic`,...p}=e,m=u(d),[_,v]=c({prop:r,onChange:a,defaultProp:o??``,caller:g});return(0,h.jsx)(b,{scope:n,baseId:s(),value:_,onValueChange:v,orientation:l,dir:m,activationMode:f,children:(0,h.jsx)(i.div,{dir:m,"data-orientation":l,...p,ref:t})})});S.displayName=g;var C=`TabsList`,w=m.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...a}=e,o=x(C,n),s=y(n);return(0,h.jsx)(d,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:r,children:(0,h.jsx)(i.div,{role:`tablist`,"aria-orientation":o.orientation,...a,ref:t})})});w.displayName=C;var T=`TabsTrigger`,E=m.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:a=!1,...s}=e,c=x(T,n),l=y(n),u=k(c.baseId,r),d=A(c.baseId,r),f=r===c.value;return(0,h.jsx)(p,{asChild:!0,...l,focusable:!a,active:f,children:(0,h.jsx)(i.button,{type:`button`,role:`tab`,"aria-selected":f,"aria-controls":d,"data-state":f?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:u,...s,ref:t,onMouseDown:o(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?c.onValueChange(r):e.preventDefault()}),onKeyDown:o(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&c.onValueChange(r)}),onFocus:o(e.onFocus,()=>{let e=c.activationMode!==`manual`;!f&&!a&&e&&c.onValueChange(r)})})})});E.displayName=T;var D=`TabsContent`,O=m.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:o,children:s,...c}=e,l=x(D,n),u=k(l.baseId,r),d=A(l.baseId,r),f=r===l.value,p=m.useRef(f);return m.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,h.jsx)(a,{present:o||f,children:({present:n})=>(0,h.jsx)(i.div,{"data-state":f?`active`:`inactive`,"data-orientation":l.orientation,role:`tabpanel`,"aria-labelledby":u,hidden:!n,id:d,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:p.current?`0s`:void 0},children:n&&s})})});O.displayName=D;function k(e,t){return`${e}-trigger-${t}`}function A(e,t){return`${e}-content-${t}`}var j=S,M=w,N=E;function P({className:e,...t}){return(0,h.jsx)(j,{"data-slot":`tabs`,className:r(`flex flex-col`,e),...t})}function F({className:e,...t}){return(0,h.jsx)(M,{"data-slot":`tabs-list`,className:r(`flex items-start gap-6 border-b border-line`,e),...t})}function I({className:e,...t}){return(0,h.jsx)(N,{"data-slot":`tabs-trigger`,className:r(`group/tab flex flex-col gap-2 disabled:pointer-events-none disabled:opacity-50`,e),...t})}function L({children:e}){return(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(`span`,{className:`whitespace-nowrap text-body font-medium leading-none text-text-tab-inactive group-data-[state=active]/tab:text-foreground`,style:{fontFeatureSettings:`'liga' 0`},children:e}),(0,h.jsx)(`span`,{className:`block h-px w-full bg-transparent group-data-[state=active]/tab:bg-foreground`})]})}function R({value:e,onValueChange:t,items:n,className:i,listClassName:a}){return(0,h.jsx)(P,{value:e,onValueChange:e=>t(e),className:r(`w-fit`,i),children:(0,h.jsx)(F,{className:r(`w-full`,a),children:n.map(e=>(0,h.jsx)(I,{value:e.value,disabled:e.disabled,children:(0,h.jsx)(L,{children:e.label})},e.value))})})}export{R 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.