UNPKG

react-calendar-kit

Version:

React Calendar Kit is a powerful and flexible library for building accessible and highly customizable calendar and date/time picker components in your React applications. React Calendar Kit provides a solid foundation for creating inclusive user experienc

3 lines (2 loc) 848 B
'use client'; var i=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var l=(a,t)=>{for(var h in t)i(a,h,{get:t[h],enumerable:!0})},p=(a,t,h,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of M(t))!m.call(a,n)&&n!==h&&i(a,n,{get:()=>t[n],enumerable:!(o=x(t,n))||o.enumerable});return a};var O=a=>p(i({},"__esModule",{value:!0}),a);var u={};l(u,{areRectsIntersecting:()=>g,calculateIntersectionArea:()=>s});module.exports=O(u);function g(a,t){return a&&t&&a.x<t.x+t.width&&a.x+a.width>t.x&&a.y<t.y+t.height&&a.y+a.height>t.y}function s(a,t){let h=Math.max(0,Math.min(a.right,t.right)-Math.max(a.left,t.left)),o=Math.max(0,Math.min(a.bottom,t.bottom)-Math.max(a.top,t.top));return h*o}0&&(module.exports={areRectsIntersecting,calculateIntersectionArea});