import{a as e}from"./rolldown-runtime-C-57s9n3.js";import{c as t,l as n}from"./vendor-BfiCheAv.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};