(function(o,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vuetify/components")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components"],e):(o=typeof globalThis<"u"?globalThis:o||self,e(o.VBirthdayPicker={},o.Vue,o.VuetifyComponents))})(this,function(o,e,c){"use strict";var y=e.defineComponent({__name:"VBirthdayPicker",props:e.mergeModels({modelValue:{default:()=>new Date},fromYear:{default:()=>new Date().getFullYear()-100},order:{default:"dd-mmm-yyyy"},density:{default:"compact"},variant:{default:"outlined"},maxWidth:{default:"none"},monthFormat:{default:"long"},monthFormatter:{}},{modelValue:{default:()=>new Date},modelModifiers:{}}),emits:["update:modelValue"],setup(n){const r=n,a=e.useModel(n,"modelValue"),i=()=>{const t=r.monthFormatter??new Intl.DateTimeFormat("en-US",{month:r.monthFormat}).format;return[...new Array(12).keys()].map(l=>t(new Date(Date.UTC(2022,l%12))))},m=e.computed(()=>[{type:"month",title:"Month",items:i().map((t,l)=>({title:t,value:++l})),order:r.order==="dd-mmm-yyyy"?2:1},{type:"day",title:"Day",items:Array.from({length:31},(t,l)=>++l),order:r.order==="dd-mmm-yyyy"?1:2},{type:"year",title:"Year",items:Array.from({length:new Date().getFullYear()-+r.fromYear},(t,l)=>l+ +r.fromYear).reverse(),order:3}]),u={year:e.computed({get:()=>r.modelValue.getFullYear(),set:t=>a.value=new Date(t,a.value.getMonth(),a.value.getDate())}),month:e.computed({get:()=>r.modelValue.getMonth()+1,set:t=>a.value=new Date(a.value.getFullYear(),t-1,a.value.getDate())}),day:e.computed({get:()=>r.modelValue.getDate(),set:t=>a.value=new Date(a.value.getFullYear(),a.value.getMonth(),t)})};return(t,l)=>(e.openBlock(),e.createElementBlock("div",{class:"v-birthdaypicker d-flex flex-column flex-sm-row align-sm-center",style:e.normalizeStyle({"max-width":`${t.maxWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,d=>(e.openBlock(),e.createBlock(e.unref(c.VSelect),{key:d.type,label:d.title,items:d.items,modelValue:u[d.type].value,"onUpdate:modelValue":h=>u[d.type].value=h,density:t.density,class:e.normalizeClass(["mr-4",`${d.type}-select`]),variant:t.variant,"hide-details":"",style:e.normalizeStyle({order:d.order})},null,8,["label","items","modelValue","onUpdate:modelValue","density","variant","class","style"]))),128))],4))}}),f=(n,r)=>{const a=n.__vccOpts||n;for(const[i,m]of r)a[i]=m;return a},s=f(y,[["__scopeId","data-v-73c3ab2a"]]);const p={install:n=>{n.component("VBirthdayPicker",s)}};typeof window<"u"&&window.Vue&&window.Vue.use(VBirthdayPickerPlugin),o.VBirthdayPicker=s,o.default=p,Object.defineProperty(o,"__esModule",{value:!0})});