"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var i=require("../../../../_virtual/jsx-runtime.js"),x=require("../../../Chip/Chip.js"),d=require("../datePickerSelect/index.js"),u=require("../../dateUtils.js"),m=require("../datePickerSelect/styles.js");function j(e,r,t){if(u.getIsSameDay(e.start,e.end))return u.formatDate(e.start,r,t);{const n=u.formatDate(e.start,r,t),s=u.formatDate(e.end,r,t);return`${n} - ${s}`}}function h({value:e,locale:r,variant:t,placeholder:n,handleClick:s,visible:a,disabled:o,hasError:c,leadingIcon:l,getInputLabel:p}){const f=e?(typeof p=="function"?p:j)(e,r,t):n;switch(t){case"select":return i.jsxRuntimeExports.jsx(d.DatePickerSelect,{handleClick:s,visible:a,disabled:o,placeholder:f,hasError:c,leadingIcon:l});case"chip":default:return i.jsxRuntimeExports.jsx(m.ChipBorder,{hasError:c,children:i.jsxRuntimeExports.jsx(x.Chip,{label:f,onClick:s,disabled:o,selected:!1})})}}exports.Input=h;
