PageSourceSearch

https://hellowriter.ai/assets/tabs-BbTm3VMY.js

js hellowriter.ai collected 2026-10-05 12:02:15 UTC 3,474 bytes, 1 lines download raw bytes

vendor: 3,474 bytes, line 1
1import{it as e,nt as t,y as n}from"./preload-helper-CPINmX-L.js";import{t as r}from"./utils-B6KiDbIe.js";import{i,r as a}from"./dist-BAl6obO2.js";import{c as o,s,u as c}from"./card-B2-RyYCM.js";import{Rn as l,_n as u,gn as d,hn as f,zn as p}from"./index-9RCMtff_.js";var m=e(t(),1),h=n(),g=`Tabs`,[_,v]=a(g,[u]),y=u(),[b,x]=_(g),S=m.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:a,defaultValue:s,orientation:c=`horizontal`,dir:u,activationMode:d=`automatic`,...f}=e,m=l(u),[_,v]=o({prop:r,onChange:a,defaultProp:s??``,caller:g});return(0,h.jsx)(b,{scope:n,baseId:p(),value:_,onValueChange:v,orientation:c,dir:m,activationMode:d,children:(0,h.jsx)(i.div,{dir:m,"data-orientation":c,...f,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,...o}=e,s=x(T,n),l=y(n),u=k(s.baseId,r),d=A(s.baseId,r),p=r===s.value;return(0,h.jsx)(f,{asChild:!0,...l,focusable:!a,active:p,children:(0,h.jsx)(i.button,{type:`button`,role:`tab`,"aria-selected":p,"aria-controls":d,"data-state":p?`active`:`inactive`,"data-disabled":a?``:void 0,disabled:a,id:u,...o,ref:t,onMouseDown:c(e.onMouseDown,e=>{!a&&e.button===0&&e.ctrlKey===!1?s.onValueChange(r):e.preventDefault()}),onKeyDown:c(e.onKeyDown,e=>{[` `,`Enter`].includes(e.key)&&s.onValueChange(r)}),onFocus:c(e.onFocus,()=>{let e=s.activationMode!==`manual`;!p&&!a&&e&&s.onValueChange(r)})})})});E.displayName=T;var D=`TabsContent`,O=m.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:a,children:o,...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)(s,{present:a||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&&o})})});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,P=O;function F({className:e,...t}){return(0,h.jsx)(j,{"data-slot":`tabs`,className:r(`flex flex-col gap-2`,e),...t})}function I({className:e,...t}){return(0,h.jsx)(M,{"data-slot":`tabs-list`,className:r(`bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]`,e),...t})}function L({className:e,...t}){return(0,h.jsx)(N,{"data-slot":`tabs-trigger`,className:r(`data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm focus-visible:ring-[3px] focus-visible:outline-1 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function R({className:e,...t}){return(0,h.jsx)(P,{"data-slot":`tabs-content`,className:r(`flex-1 outline-none`,e),...t})}export{L as i,R as n,I as r,F 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.