"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"use client";
var _chunk5KRCPBZRcjs = require('./chunk-5KRCPBZR.cjs');var _chunk3CNSKST2cjs = require('./chunk-3CNSKST2.cjs');var _react = require('react');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var R=_chunk3CNSKST2cjs.a.call(void 0, "EulTabs",["active","disabled","focusVisible","isSelected","item","root","selected","sizeSmall","sizeMedium","sizeLarge"]),n=e=>_chunk5KRCPBZRcjs.e.call(void 0, "EulTabs",{root:["root",e.isSelected&&"isSelected"],tab:["item",e.size&&`size${_chunk3CNSKST2cjs.d.call(void 0, e.size)}`,e.selected&&"selected",e.active&&"active",e.disabled&&"disabled",e.focusVisible&&"focusVisible"]}),o= exports.a =R;var _react3 = require('@emotion/react');var w=_chunk3CNSKST2cjs.m.call(void 0, "button")(({theme:e})=>_react3.css`
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    gap: ${e.spacing(3)};
    align-items: center;
    margin: ${e.spacing(1.5,0)};
    color: ${e.palette.background[800]};
    background: transparent;
    border: none;
    border-radius: ${e.spacing(1)};
    outline: 0 solid ${e.palette.yellow[600]};
    outline-offset: 4px;
    cursor: pointer;
    isolation: isolate;

    &.${o.sizeSmall} {
      padding: ${e.spacing(2,3)};
      font-size: ${e.typography.body2.fontSize};
      line-height: ${e.typography.body2.lineHeight};
    }

    &.${o.sizeMedium} {
      padding: ${e.spacing(3,4)};
      font-size: ${e.typography.body1.fontSize};
      line-height: ${e.typography.body1.lineHeight};
    }

    &.${o.sizeLarge} {
      padding: ${e.spacing(4,5)};
      font-size: ${e.typography.subtitle3.fontSize};
      line-height: ${e.typography.subtitle3.lineHeight};
    }

    &.${o.focusVisible} {
      outline-width: 2px;
    }

    &.${o.selected}, &.${o.active}, &:hover {
      color: ${e.palette.teal[1e3]};
    }
  `);var _jsxruntime = require('react/jsx-runtime');var C=_react.forwardRef.call(void 0, ({className:e,size:t,tabIndex:s,...i},a)=>{let{children:p,selected:c}=i,{ariaAttributes:d,classes:r,getRootProps:f,handleKeyDown:b,handleOnClick:m}=_chunk5KRCPBZRcjs.k.call(void 0, i,a),y=n({...r,size:t});return _jsxruntime.jsx.call(void 0, w,{...f(),...d,"aria-selected":c,className:_clsx2.default.call(void 0, e,y.tab),onClick:m,onKeyDown:b,ref:a,role:"tab",tabIndex:s,children:p})});C.displayName="Tab";var u=C;var v=_chunk3CNSKST2cjs.m.call(void 0, "div",{shouldForwardProp:e=>e!=="width"&&e!=="left"})(({left:e,theme:t,width:s})=>_react3.css`
    position: relative;
    display: flex;
    max-width: 100%;
    overflow: auto;
    white-space: nowrap;
    scrollbar-width: none;

    &:after {
      position: absolute;
      bottom: ${t.spacing(1.5)};
      left: 0;
      z-index: 0;
      width: 100%;
      height: 1px;
      background-color: ${t.palette.background[500]};
      content: "";
    }

    &:before {
      position: absolute;
      bottom: ${t.spacing(1.5)};
      left: ${e}px;
      z-index: 1;
      width: ${s}px;
      height: 1px;
      background: ${t.palette.teal[700]};
      opacity: 0;
      transition: ${t.transitions.create(["opacity","left"])};
      content: "";
    }

    &.${o.isSelected}:before {
      opacity: 1;
    }
  `);var g=_react.forwardRef.call(void 0, ({children:e,className:t,onChange:s,size:i,value:a,...p},c)=>{let d=_chunk5KRCPBZRcjs.d.call(void 0, p),r=_react.useRef.call(void 0, null),f=_chunk5KRCPBZRcjs.i.call(void 0, c,r),{children:b,selectedPosition:m}=_chunk5KRCPBZRcjs.o.call(void 0, {childDisplayName:"Tab",children:e,innerRef:r,onChange:s,size:i,value:a}),k=n({isSelected:typeof a<"u",size:i});return _jsxruntime.jsx.call(void 0, v,{...d,...m,className:_clsx2.default.call(void 0, t,k.root),ref:f,role:"tablist",children:b})});g.displayName="Tabs";g.defaultProps={size:"small"};var U=Object.assign(g,{Tab:u}),F= exports.b =U;exports.a = o; exports.b = F;
