PageSourceSearch

https://carbidder-connect.lovable.app/assets/tabs-B0GSHNwt.js

js carbidder-connect.lovable.app collected 2026-10-03 03:25:29 UTC 3,920 bytes, 1 lines download raw bytes

1import{bM as D,bR as y,r as l,bS as F,Z as $,j as d,bV as V,_ as p,bT as k,bU as G,$ as v,bO as L,w as m}from"./index-C7rjTsh5.js";var x="Tabs",[K,Z]=D(x,[y]),h=y(),[B,T]=K(x),w=l.forwardRef((a,e)=>{const{__scopeTabs:o,value:t,onValueChange:n,defaultValue:c,orientation:r="horizontal",dir:u,activationMode:f="automatic",...g}=a,i=F(u),[s,b]=$({prop:t,onChange:n,defaultProp:c});return d.jsx(B,{scope:o,baseId:V(),value:s,onValueChange:b,orientation:r,dir:i,activationMode:f,children:d.jsx(p.div,{dir:i,"data-orientation":r,...g,ref:e})})});w.displayName=x;var N="TabsList",R=l.forwardRef((a,e)=>{const{__scopeTabs:o,loop:t=!0,...n}=a,c=T(N,o),r=h(o);return d.jsx(k,{asChild:!0,...r,orientation:c.orientation,dir:c.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":c.orientation,...n,ref:e})})});R.displayName=N;var C="TabsTrigger",j=l.forwardRef((a,e)=>{const{__scopeTabs:o,value:t,disabled:n=!1,...c}=a,r=T(C,o),u=h(o),f=A(r.baseId,t),g=S(r.baseId,t),i=t===r.value;return d.jsx(G,{asChild:!0,...u,focusable:!n,active:i,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":i,"aria-controls":g,"data-state":i?"active":"inactive","data-disabled":n?"":void 0,disabled:n,id:f,...c,ref:e,onMouseDown:v(a.onMouseDown,s=>{!n&&s.button===0&&s.ctrlKey===!1?r.onValueChange(t):s.preventDefault()}),onKeyDown:v(a.onKeyDown,s=>{[" ","Enter"].includes(s.key)&&r.onValueChange(t)}),onFocus:v(a.onFocus,()=>{const s=r.activationMode!=="manual";!i&&!n&&s&&r.onValueChange(t)})})})});j.displayName=C;var I="TabsContent",_=l.forwardRef((a,e)=>{const{__scopeTabs:o,value:t,forceMount:n,children:c,...r}=a,u=T(I,o),f=A(u.baseId,t),g=S(u.baseId,t),i=t===u.value,s=l.useRef(i);return l.useEffect(()=>{const b=requestAnimationFrame(()=>s.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(L,{present:n||i,children:({present:b})=>d.jsx(p.div,{"data-state":i?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":f,hidden:!b,id:g,tabIndex:0,...r,ref:e,style:{...a.style,animationDuration:s.current?"0s":void 0},children:b&&c})})});_.displayName=I;function A(a,e){return`${a}-trigger-${e}`}function S(a,e){return`${a}-content-${e}`}var O=w,E=R,M=j,P=_;const J=O,q=l.forwardRef(({className:a,variant:e="default",...o},t)=>d.jsx(E,{ref:t,className:m("inline-flex h-10 items-center justify-center lg:justify-start rounded-md bg-muted p-1 text-muted-foreground overflow-x-auto scrollbar-hide",e==="admin"&&"bg-transparent p-0 gap-2",e==="offerRoom"&&"bg-muted/60 p-1 gap-1 w-full",e==="offerDetails"&&"bg-card border-b border-border w-full",a),...o}));q.displayName=E.displayName;const z=l.forwardRef(({className:a,variant:e="default",...o},t)=>d.jsx(M,{ref:t,className:m("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-background/80 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm",e==="admin"&&"rounded-md px-4 py-2 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground",e==="dealer"&&"rounded-md px-4 py-2 data-[state=active]:bg-primary data-[state=active]:text-primary-foreground",e==="offerRoom"&&"flex-1 rounded-md data-[state=active]:bg-card data-[state=active]:shadow",e==="offerDetails"&&"border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:bg-transparent rounded-none",a),...o}));z.displayName=M.displayName;const H=l.forwardRef(({className:a,...e},o)=>d.jsx(P,{ref:o,className:m("bg-muted mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-lg p-3",a),...e}));H.displayName=P.displayName;export{J as T,q as a,z as b,H as c};

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.