"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkY45PAGZ2cjs = require('./chunk-Y45PAGZ2.cjs');


var _chunkCKOBIWNVcjs = require('./chunk-CKOBIWNV.cjs');



var _chunkZ6EUSUADcjs = require('./chunk-Z6EUSUAD.cjs');

// src/components/DataManagerTable/BooleanFilter.tsx
var _jsxruntime = require('@emotion/react/jsx-runtime');
var isBooleanFilterState = (state) => state.type === "boolean" /* BOOLEAN */;
var getDefaultBooleanFilterState = () => ({
  type: "boolean" /* BOOLEAN */,
  value: void 0,
  isApplied: false
});
var BooleanFilter = ({
  updateFilterState,
  state,
  label
}) => {
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkY45PAGZ2cjs.Filter, { label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
    _chunkCKOBIWNVcjs.Radio,
    {
      radioOptions: [
        { label: "Yes" /* YES */ },
        { label: "No" /* NO */ },
        { label: "Both" /* BOTH */ }
      ],
      defaultOption: "Both" /* BOTH */,
      onChange: (selectedOption) => {
        updateFilterState(_chunkZ6EUSUADcjs.__spreadProps.call(void 0, _chunkZ6EUSUADcjs.__spreadValues.call(void 0, {}, state), {
          value: selectedOption === "Yes" /* YES */ ? true : selectedOption === "No" /* NO */ ? false : void 0,
          isApplied: true
        }));
      }
    }
  ) }) });
};





exports.isBooleanFilterState = isBooleanFilterState; exports.getDefaultBooleanFilterState = getDefaultBooleanFilterState; exports.BooleanFilter = BooleanFilter;
