"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 _chunk5NXYDZPPcjs = require('./chunk-5NXYDZPP.cjs');var _react = require('react');var _clsx = require('clsx'); var _clsx2 = _interopRequireDefault(_clsx);var N=_chunk3CNSKST2cjs.a.call(void 0, "EulChip",["active","contained","clickable","disabled","endIcon","focusVisible","green","greenContained","greenOutlined","grey","greyContained","greyOutlined","outlined","root","red","redContained","redOutlined","startIcon","teal","tealContained","tealOutlined","uppercase","weight100","weight200","weight300","weight400","weight500","weight600","weight700","weight800","weight900","yellow","yellowContained","yellowOutlined"]),b=o=>_chunk5KRCPBZRcjs.e.call(void 0, "EulChip",{endIcon:["endIcon"],root:["root",o.weight&&`weight${o.weight}`,o.color,o.variant,o.variant&&o.color&&`${o.color}${_chunk3CNSKST2cjs.d.call(void 0, o.variant)}`,o.uppercase&&"uppercase",o.onClick&&"clickable",o.active&&"active",o.disabled&&"disabled",o.focusVisible&&"focusVisible"],startIcon:["startIcon"]}),e= exports.a =N;var _react3 = require('@emotion/react');var _reactslot = require('@radix-ui/react-slot');var w=_chunk3CNSKST2cjs.m.call(void 0, _reactslot.Slot,{shouldForwardProp:o=>!["weight"].includes(o.toString())})(({theme:o,weight:t})=>_react3.css`
    position: relative;
    display: inline-flex;
    flex-direction: row;
    gap: ${o.spacing(2)};
    align-items: center;
    justify-content: center;
    height: ${o.spacing(5)};
    padding: ${o.spacing(.5,1)};
    font-weight: ${t||o.typography.fontWeightMedium};
    font-size: ${o.typography.body2.fontSize};
    line-height: ${o.typography.body2.lineHeight};
    white-space: nowrap;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    outline: 0 solid transparent;
    outline-offset: -1px;

    &.${e.clickable} {
      cursor: pointer;
    }

    &.${e.uppercase} {
      text-transform: uppercase;
    }

    &.${e.outlined} {
      outline-width: 1px;
    }

    &.${e.green} {
      color: ${o.palette.green[800]};
      outline-color: ${o.palette.green[800]};
    }

    &.${e.greenContained} {
      background-color: ${o.palette.greenOpaque[300]};
    }

    &.${e.grey} {
      color: ${o.palette.background[900]};
    }

    &.${e.greyContained} {
      background-color: ${o.palette.background[500]};
    }

    &.${e.greyOutlined} {
      color: ${o.palette.background[800]};
      outline-color: ${o.palette.background[900]};
    }

    &.${e.red} {
      color: ${o.palette.red[800]};
      outline-color: ${o.palette.red[800]};
    }

    &.${e.redContained} {
      background-color: ${o.palette.redOpaque[400]};
    }

    &.${e.teal} {
      color: ${o.palette.teal[800]};
      outline-color: ${o.palette.teal[800]};
    }

    &.${e.tealContained} {
      background-color: ${o.palette.tealOpaque[300]};
    }

    &.${e.yellow} {
      color: ${o.palette.yellow[800]};
      outline-color: ${o.palette.yellow[800]};
    }

    &.${e.yellowContained} {
      background-color: ${o.palette.yellowOpaque[300]};
    }
  `);var _jsxruntime = require('react/jsx-runtime');var s=_react.forwardRef.call(void 0, (o,t)=>{let{color:z,component:y="button",endIcon:c,startIcon:p,uppercase:H,variant:M,weight:h,...r}=o,{children:m,className:k,...x}=r,{active:I,disabled:P,focusVisible:v,getRootProps:O}=_chunk5KRCPBZRcjs.c.call(void 0, {...r,ref:t}),S=_chunk5KRCPBZRcjs.d.call(void 0, r),i=b({...o,active:I,disabled:P,focusVisible:v}),B=c&&_jsxruntime.jsx.call(void 0, _chunk5NXYDZPPcjs.s,{className:_clsx2.default.call(void 0, i.endIcon),children:c}),V=p&&_jsxruntime.jsx.call(void 0, _chunk5NXYDZPPcjs.s,{className:_clsx2.default.call(void 0, i.startIcon),children:p});return _jsxruntime.jsx.call(void 0, w,{...O(),...S,...x,className:_clsx2.default.call(void 0, k,i.root),weight:h,children:_jsxruntime.jsxs.call(void 0, y,{children:[V,m,B]})})});s.defaultProps={color:"teal",variant:"contained"};s.displayName="Chip";var E=s;exports.a = e; exports.b = E;
