utils-1d8dfadf.js 599 B

1
  1. import{p as c}from"./index-14b5dea2.js";import{A as u,q as p,aS as l}from"./index-e362c2e8.js";const g=u({},c,{modelValue:p(),filter:Function,formatter:{type:Function,default:(t,e)=>e}}),h=Object.keys(c);function m(t,e){if(t<0)return[];const r=Array(t);let n=-1;for(;++n<t;)r[n]=e(n);return r}const y=(t,e)=>32-new Date(t,e-1,32).getDate(),x=(t,e,r,n,a)=>{const o=m(e-t+1,i=>{const s=l(t+i);return n(r,{text:s,value:s})});return a?a(r,o):o},k=(t,e)=>t.map((r,n)=>{const a=e[n];if(a.length){const o=+a[a.length-1].value;if(+r>o)return String(o)}return r});export{x as a,k as f,y as g,h as p,g as s};