import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,u as n}from"./vendor-QjIDchsK.js";var r=e(t(),1),i=e=>{let t={allowInput:!0,dateFormat:`Y-m-d`,locale:r.default.ja};if(e.flatpickr!==void 0)return;t.defaultDate=e.value;let i=n(e,t);e.setAttribute(`autocomplete`,`off`),e.addEventListener(`change`,e=>{i.jumpToDate(e.target.value),i.setDate(e.target.value)}),e.flatpickr=i};export{i as default};