{"version":3,"file":"Datapicker.D8VxIXMQ.mjs","names":["React.useRef"],"sources":["https:/framerusercontent.com/modules/gDMDB8qCuvmgbV3Q1Q9n/EgKc3aFnL4i6RDTIefDZ/Datapicker.js"],"sourcesContent":["// Datapicker.tsx\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";export default function Datapicker(props){const{startName=\"startDate\",endName=\"endDate\",label=\"Dates\"}=props;const startRef=React.useRef(null);const endRef=React.useRef(null);const fieldStyle={width:\"100%\",padding:\"8px 10px\",borderRadius:8,border:\"1px solid #333\",backgroundColor:\"#111\",color:\"#999999\",fontSize:14};const wrapperStyle={flex:1,cursor:\"pointer\"};const openPicker=input=>{if(!input)return;input.showPicker?.();input.focus();};return /*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4},children:/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:8},children:[/*#__PURE__*/_jsx(\"div\",{style:wrapperStyle,onClick:()=>openPicker(startRef.current),children:/*#__PURE__*/_jsx(\"input\",{ref:startRef,type:\"date\",name:startName,style:fieldStyle})}),/*#__PURE__*/_jsx(\"div\",{style:wrapperStyle,onClick:()=>openPicker(endRef.current),children:/*#__PURE__*/_jsx(\"input\",{ref:endRef,type:\"date\",name:endName,style:fieldStyle})})]})});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Datapicker\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Datapicker.map"],"mappings":"yHACqF,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,YAAU,YAAY,UAAQ,UAAU,QAAM,SAAS,EAAY,EAASA,EAAa,KAAK,CAAO,EAAOA,EAAa,KAAK,CAAO,EAAW,CAAC,MAAM,OAAO,QAAQ,WAAW,aAAa,EAAE,OAAO,iBAAiB,gBAAgB,OAAO,MAAM,UAAU,SAAS,GAAG,CAAO,EAAa,CAAC,KAAK,EAAE,OAAO,UAAU,CAAO,EAAW,GAAO,CAAK,IAAa,EAAM,cAAc,CAAC,EAAM,OAAO,GAAG,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,IAAI,EAAE,CAAC,SAAsB,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,IAAI,EAAE,CAAC,SAAS,CAAc,EAAK,MAAM,CAAC,MAAM,EAAa,YAAY,EAAW,EAAS,QAAQ,CAAC,SAAsB,EAAK,QAAQ,CAAC,IAAI,EAAS,KAAK,OAAO,KAAK,EAAU,MAAM,EAAW,CAAC,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,EAAa,YAAY,EAAW,EAAO,QAAQ,CAAC,SAAsB,EAAK,QAAQ,CAAC,IAAI,EAAO,KAAK,OAAO,KAAK,EAAQ,MAAM,EAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,kBAA59B,IAA4B"}