import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as t}from"react";import{R as n,S as r,U as l,V as o,x as s,W as i}from"./index-CQXsL1YZ.js";import"@bbodek/utils";import{F as m,u}from"./useFilterSelectOptionPanel-CC8v2EC-.js";import"react-dom";import"@bbodek/hooks";import"overlay-kit";const d=()=>{const{variant:a,internalValue:t,handleChange:l}=n(),o=!r({value:t,variant:a});return e(m,{disabled:o,onClick:l})},c=({variant:n})=>{const r=t(),m=t(),{models:{calendarValue:c},operations:{onChange:h}}=(()=>{const{models:{value:e},operations:{handleChange:a}}=u(),{startDate:t,endDate:n}=null!==e?l({value:e}):{startDate:null,endDate:null};return{models:{calendarValue:null!==e?{startDate:t,endDate:n}:null},operations:{onChange:e=>{const t=e?[`${e.startDate}~${e.endDate}`]:null;a({value:t})}}}})();return e(o,{value:c,variant:n,onChange:h,children:a(s,{className:"in-tablet:min-w-[23.75rem] mx-auto w-[22.5rem] justify-between overflow-hidden",direction:"column",children:[e(i,{className:"in-tablet:min-h-[34svh-3.75rem] in-tablet:max-h-[46svh-3.75rem] mx-auto h-[100svh-4rem]",id:m,labelId:r}),e(d,{})]})})};export{c as default};
//# sourceMappingURL=FilterCalendarPanel-BbenYrLd.js.map
