diff --git a/asset-manifest.json b/asset-manifest.json
index 1b17d4a..c59f342 100644
--- a/asset-manifest.json
+++ b/asset-manifest.json
@@ -1,6 +1,6 @@
{
"files": {
- "main.js": "/react-native-ui-datepicker/static/js/main.a0953296.js",
+ "main.js": "/react-native-ui-datepicker/static/js/main.6cf1083b.js",
"static/js/951.a73c5b2e.js": "/react-native-ui-datepicker/static/js/951.a73c5b2e.js",
"favicon.ico": "/react-native-ui-datepicker/favicon.ico",
"index.html": "/react-native-ui-datepicker/index.html",
@@ -11,11 +11,11 @@
"favicon-16.png": "/react-native-ui-datepicker/favicon-16.png",
"manifest.json": "/react-native-ui-datepicker/manifest.json",
"serve.json": "/react-native-ui-datepicker/serve.json",
- "main.a0953296.js.map": "/react-native-ui-datepicker/static/js/main.a0953296.js.map",
+ "main.6cf1083b.js.map": "/react-native-ui-datepicker/static/js/main.6cf1083b.js.map",
"951.a73c5b2e.js.map": "/react-native-ui-datepicker/static/js/951.a73c5b2e.js.map"
},
"entrypoints": [
"static/js/951.a73c5b2e.js",
- "static/js/main.a0953296.js"
+ "static/js/main.6cf1083b.js"
]
}
\ No newline at end of file
diff --git a/index.html b/index.html
index b513bb2..9e6f205 100644
--- a/index.html
+++ b/index.html
@@ -1 +1 @@
-
React Native UI DatePicker
\ No newline at end of file
+React Native UI DatePicker
\ No newline at end of file
diff --git a/static/js/main.6cf1083b.js b/static/js/main.6cf1083b.js
new file mode 100644
index 0000000..6dcc224
--- /dev/null
+++ b/static/js/main.6cf1083b.js
@@ -0,0 +1,2 @@
+(()=>{"use strict";var e={2578:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ee});var r=n(885),o=n(5004),l=n(6792),a=n(9385),i=n(1054),c=n(6264),d=n(1122),u=n(5722),s=n(7602),f=n(141),y=n(5809),h=n(126),m=n(7438),p=n.n(m),b="YYYY-MM-DD HH:mm",C="YYYY-MM-DD",x=12,g=function(e){return p()(e).format(b)},v=function(e){return p()(e).year()};function j(e,t){return!(!e||!t)&&p()(e).format(C)===p()(t).format(C)}var O=function(e,t){return p()(e).format(t)},D=function(e){return p()(e,b)},w=function(e){var t=x*Math.ceil(e/x),n=t===e?t:t-x;return n<0&&(n=0),Array.from({length:x},(function(e,t){return n+t}))},S=function(e){return{year:p()(e).year(),month:p()(e).month(),hour:p()(e).hour(),minute:p()(e).minute()}},P=function(e,t,n,r,o){var l=!1;return n&&(l=tD(r)),{text:e.toString(),day:e,date:O(t,C),disabled:l,isCurrentMonth:o}},E=(0,o.createContext)({}),T=function(){return(0,o.useContext)(E)};const I=E;var R=function(e){return e.day="day",e.month="month",e.year="year",e.time="time",e}({}),k=function(e){return e.SET_CALENDAR_VIEW="SET_CALENDAR_VIEW",e.CHANGE_CURRENT_DATE="CHANGE_CURRENT_DATE",e.CHANGE_CURRENT_YEAR="CHANGE_CURRENT_YEAR",e.CHANGE_SELECTED_DATE="CHANGE_SELECTED_DATE",e}({}),A=300,F=n(2629),_=n(374),M=n(1915),N=l.default.create({headerContainer:{marginBottom:5},container:{padding:5,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},selectorContainer:{flexDirection:"row",alignItems:"center"},textContainer:{marginHorizontal:1,paddingHorizontal:5,paddingVertical:5,borderRadius:5},text:{fontWeight:"bold",fontSize:15},iconContainer:{padding:4},prev:{marginRight:3},next:{marginLeft:3},row:{flexDirection:"row"}});const B=function(e){var t=e.buttonPrevIcon,n=e.buttonNextIcon,r=T(),l=r.currentDate,u=r.selectedDate,s=r.currentYear,f=r.onChangeMonth,y=r.onChangeYear,h=r.calendarView,m=r.setCalendarView,b=r.mode,C=r.theme,g=r.locale,j=p()(l).locale(g).format("MMMM"),O=(0,F.jsx)(c.default,{disabled:h===R.time,onPress:function(){return h===R.day?f(-1):h===R.month?y(s-1):h===R.year&&y(s-x)},testID:"btn-prev",accessibilityRole:"button",accessibilityLabel:"Prev",children:(0,F.jsx)(a.default,{style:[N.iconContainer,N.prev,null==C?void 0:C.headerButtonStyle],children:t||(0,F.jsx)(d.default,{source:_,style:{width:(null==C?void 0:C.headerButtonSize)||18,height:(null==C?void 0:C.headerButtonSize)||18,tintColor:null==C?void 0:C.headerButtonColor}})})}),D=(0,F.jsx)(c.default,{disabled:h===R.time,onPress:function(){return h===R.day?f(1):h===R.month?y(s+1):h===R.year&&y(s+x)},testID:"btn-next",accessibilityRole:"button",accessibilityLabel:"Next",children:(0,F.jsx)(a.default,{style:[N.iconContainer,N.next,null==C?void 0:C.headerButtonStyle],children:n||(0,F.jsx)(d.default,{source:M,style:{width:(null==C?void 0:C.headerButtonSize)||18,height:(null==C?void 0:C.headerButtonSize)||18,tintColor:null==C?void 0:C.headerButtonColor}})})}),S=(0,o.useCallback)((function(){var e=w(s);return(0,F.jsx)(c.default,{onPress:function(){m(h===R.year?R.day:R.year),y(v(l))},testID:"btn-year",accessibilityRole:"button",accessibilityLabel:p()(l).format("YYYY"),children:(0,F.jsx)(a.default,{style:[N.textContainer,null==C?void 0:C.headerTextContainerStyle],children:(0,F.jsx)(i.default,{style:[N.text,null==C?void 0:C.headerTextStyle],children:h===R.year?`${e.at(0)} - ${e.at(-1)}`:p()(l).format("YYYY")})})})}),[h,l,s,m,y,C]),P=(0,F.jsx)(c.default,{onPress:function(){return m(h===R.month?R.day:R.month)},testID:"btn-month",accessibilityRole:"button",accessibilityLabel:j,children:(0,F.jsx)(a.default,{style:[N.textContainer,null==C?void 0:C.headerTextContainerStyle],children:(0,F.jsx)(i.default,{style:[N.text,null==C?void 0:C.headerTextStyle],children:j})})}),E=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(a.default,{style:N.selectorContainer,children:[h!==R.year?P:null,S()]}),"datetime"===b&&h!==R.year?(0,F.jsx)(c.default,{onPress:function(){return m(h===R.time?R.day:R.time)},accessibilityRole:"button",accessibilityLabel:p()(u).format("HH:mm"),children:(0,F.jsx)(a.default,{style:[N.textContainer,null==C?void 0:C.headerTextContainerStyle],children:(0,F.jsx)(i.default,{style:[N.text,null==C?void 0:C.headerTextStyle],children:p()(u).format("HH:mm")})})}):null]});return(0,F.jsx)(a.default,{style:[N.headerContainer,null==C?void 0:C.headerContainerStyle],accessibilityRole:"header",children:"left"===(null==C?void 0:C.headerButtonsPosition)?(0,F.jsxs)(a.default,{style:N.container,children:[(0,F.jsxs)(a.default,{style:N.row,children:[O,D]}),E]}):"right"===(null==C?void 0:C.headerButtonsPosition)?(0,F.jsxs)(a.default,{style:N.container,children:[E,(0,F.jsxs)(a.default,{style:N.row,children:[O,D]})]}):(0,F.jsxs)(a.default,{style:N.container,children:[O,E,D]})})};function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:p()(),t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=D(e),l=o.daysInMonth(),a=o.add(-1,"month").daysInMonth(),i=o.date(1).day()%7,c=t?Array.from({length:i},(function(e,t){var l=t+(a-i+1),c=o.add(-1,"month").date(l);return P(l,c,n,r,!1)})):Array(i).fill(null),d=i+l,u=t?d>35?42-d:35-d:0,s=Array.from({length:l},(function(e,t){var l=t+1,a=o.date(l);return P(l,a,n,r,!0)})),f=Array.from({length:u},(function(e,t){var l=t+1,a=o.add(1,"month").date(l);return P(l,a,n,r,!1)}));return[].concat((0,h.default)(c),s,f)}(n,c,d,u).map((function(t){return t?Q(Q({},t),{},{isToday:j(t.date,e),isSelected:j(t.date,r)}):null}))}),[m,y,c,d,u,r]),v=(0,o.useCallback)((function(e){var t=D(e).hour(b).minute(C);l(g(t))}),[l,b,C]);return(0,F.jsxs)(a.default,{style:Z.container,testID:"day-selector",children:[(0,F.jsx)(a.default,{style:[Z.weekDaysContainer,null==s?void 0:s.weekDaysContainerStyle],testID:"week-days",children:null==(e=p().weekdaysMin())?void 0:e.map((function(e,t){return(0,F.jsx)(a.default,{style:Z.weekDayCell,children:(0,F.jsx)(i.default,{style:null==s?void 0:s.weekDaysTextStyle,children:e})},t)}))}),(0,F.jsx)(a.default,{style:Z.daysContainer,testID:"days",children:null==x?void 0:x.map((function(e,t){return e?(0,F.jsx)(J,{date:e.date,text:e.text,disabled:e.disabled,isCurrentMonth:e.isCurrentMonth,theme:s,isToday:e.isToday,isSelected:e.isSelected,onSelectDate:v},t):(0,F.jsx)(X,{},t)}))})]})};var te=n(7294),ne=n(9188),re=n(2152);function oe(e){var t=function(e){return te.default.add(te.default.modulo(te.default.add(e,Math.PI),2*Math.PI),-Math.PI).interpolate({inputRange:[-Math.PI,-Math.PI/2,Math.PI/2,Math.PI],outputRange:[0,-Math.PI/2,Math.PI/2,0]})}(e),n=te.default.multiply(t,t),r=te.default.multiply(t,n),o=te.default.multiply(r,n),l=te.default.multiply(o,n);return te.default.add(te.default.add(t,te.default.multiply(r,-1/6)),te.default.add(te.default.multiply(o,1/120),te.default.multiply(l,-1/5040)))}function le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t=m,x="number"===typeof(null==l?void 0:l.height)?l.height:130,g=null!=y?y/2:x/2,v=r.indexOf(t),j=(0,o.useMemo)((function(){return ne.default.create({onMoveShouldSetPanResponder:function(){return!0},onStartShouldSetPanResponderCapture:function(){return!0},onPanResponderGrant:function(){p.setValue(0)},onPanResponderMove:function(e,t){p.setValue(t.dy),e.stopPropagation()},onPanResponderRelease:function(e,o){p.extractOffset();var l=v-Math.round(o.dy/(2*g/m));C?l=(l+r.length)%r.length:l<0?l=0:l>=r.length&&(l=r.length-1);var a=r[l]||0;a===t?(p.setOffset(0),p.setValue(0)):n(a)}})}),[C,m,g,n,t,v,r,p]),O=(0,o.useMemo)((function(){var e=Math.floor(b/2);return Array.from({length:b},(function(t,n){var o=v+n-e;return(o<0||o>=r.length)&&(o=(o+r.length)%r.length),r[o]||0}))}),[b,v,r]),D=(0,o.useMemo)((function(){p.setOffset(0);var e=O.indexOf(t);return O&&O.length>0?O.map((function(t,n){return p.interpolate({inputRange:[-g,g],outputRange:[2*g/m*(n-e)-g,g+2*g/m*(n-e)],extrapolate:"extend"}).interpolate({inputRange:[-g,g],outputRange:[-Math.PI/2,Math.PI/2],extrapolate:"clamp"})})):[]}),[O,g,t,m,p]);return(0,F.jsx)(a.default,ae(ae({style:[ie.container,l]},j.panHandlers),{},{children:null==O?void 0:O.map((function(e,n){var r=D[n];return(0,F.jsx)(te.default.Text,{style:[i,{position:"absolute",height:c,transform:r?[{translateY:te.default.multiply(g,oe(r))},{rotateX:r.interpolate({inputRange:[-Math.PI/2,Math.PI/2],outputRange:["-89deg","89deg"],extrapolate:"clamp"})}]:[],color:e===t?u:f}],children:"number"===typeof e&&e<10?`0${e}`:`${e}`},`${t}${n>O.length/2?"Post":"Before"}${e+n}`)}))}))}));function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t=1;t{e.exports=n.p+"static/media/github-logo.096a1105a4175bc5cb97.png"},374:(e,t,n)=>{e.exports=n.p+"static/media/arrow_left.d30e48edaec517fafb76.png"},1915:(e,t,n)=>{e.exports=n.p+"static/media/arrow_right.e8676896fba657b8737b.png"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var l=t[r]={exports:{}};return e[r].call(l.exports,l,l.exports,n),l.exports}n.m=e,(()=>{var e=[];n.O=(t,r,o,l)=>{if(!r){var a=1/0;for(u=0;u=l)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(i=!1,l0&&e[u-1][2]>l;u--)e[u]=e[u-1];e[u]=[r,o,l]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/react-native-ui-datepicker/",(()=>{var e={179:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,l,[a,i,c]=r,d=0;if(a.some((t=>0!==e[t]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(c)var u=c(n)}for(t&&t(r);dn(6271)));r=n.O(r)})();
+//# sourceMappingURL=main.6cf1083b.js.map
\ No newline at end of file
diff --git a/static/js/main.6cf1083b.js.map b/static/js/main.6cf1083b.js.map
new file mode 100644
index 0000000..e186cb3
--- /dev/null
+++ b/static/js/main.6cf1083b.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"static/js/main.6cf1083b.js","mappings":"oNAGaA,EAAkB,mBAClBC,EAAc,aACdC,EAAiB,GAYjBC,EAAc,SAACC,GAAc,OACxCC,IAAMD,GAAME,OAAON,EAAiB,EAIzBO,EAAc,SAACH,GAAc,OAAKC,IAAMD,GAAMI,MAAO,EAI3D,SAASC,EAAkBC,EAAaC,GAC7C,SAAKD,IAAMC,IAIIN,IAAMK,GAAGJ,OAAOL,KAChBI,IAAMM,GAAGL,OAAOL,EAGjC,CAEO,IAAMW,EAAkB,SAACR,EAAgBE,GAAc,OAC5DD,IAAMD,GAAME,OAAOA,EAAQ,EAEhBO,EAAU,SAACT,GAAc,OAAKC,IAAMD,EAAMJ,EAAiB,EAE3Dc,EAAe,SAACN,GAC3B,IAAMO,EAAUb,EAAiBc,KAAKC,KAAKT,EAAON,GAC9C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KAAM,IAC3DH,EAAmBI,KAAOX,EAAqBU,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,KC7CvF,IAAIK,EAAsB5D,EAAoBS,OAAE9L,EAAW,CAAC,MAAM,IAAOqL,EAAoB,QAC7F4D,EAAsB5D,EAAoBS,EAAEmD,E","sources":["../src/utils.ts","../src/CalendarContext.tsx","../src/enums.ts","../src/components/Header.tsx","../src/components/YearSelector.tsx","../src/components/MonthSelector.tsx","../src/components/Day.tsx","../src/components/DaySelector.tsx","../src/components/TimePicker/AnimatedMath.tsx","../src/components/TimePicker/Wheel.tsx","../src/components/TimeSelector.tsx","../src/components/Calendar.tsx","../src/DateTimePicker.tsx","../src/index.tsx","src/App.tsx","webpack/bootstrap","webpack/runtime/chunk loaded","webpack/runtime/compat get default export","webpack/runtime/define property getters","webpack/runtime/global","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/make namespace object","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading","webpack/startup"],"sourcesContent":["import dayjs from 'dayjs';\nimport type { DateType, IDayObject } from './types';\n\nexport const CALENDAR_FORMAT = 'YYYY-MM-DD HH:mm';\nexport const DATE_FORMAT = 'YYYY-MM-DD';\nexport const YEAR_PAGE_SIZE = 12;\n\nexport const getMonths = () => dayjs.months();\n\nexport const getMonthName = (month: number) => dayjs.months()[month];\n\nexport const getWeekdays = () => dayjs.weekdays();\n\nexport const getWeekdaysShort = () => dayjs.weekdaysShort();\n\nexport const getWeekdaysMin = () => dayjs.weekdaysMin();\n\nexport const getFormated = (date: DateType) =>\n dayjs(date).format(CALENDAR_FORMAT);\n\nexport const getDateMonth = (date: DateType) => dayjs(date).month();\n\nexport const getDateYear = (date: DateType) => dayjs(date).year();\n\nexport const getToday = () => dayjs().format(DATE_FORMAT);\n\nexport function areDatesOnSameDay(a: DateType, b: DateType) {\n if (!a || !b) {\n return false;\n }\n\n const date_a = dayjs(a).format(DATE_FORMAT);\n const date_b = dayjs(b).format(DATE_FORMAT);\n\n return date_a === date_b;\n}\n\nexport const getFormatedDate = (date: DateType, format: string) =>\n dayjs(date).format(format);\n\nexport const getDate = (date: DateType) => dayjs(date, CALENDAR_FORMAT);\n\nexport const getYearRange = (year: number) => {\n const endYear = YEAR_PAGE_SIZE * Math.ceil(year / YEAR_PAGE_SIZE);\n let startYear = endYear === year ? endYear : endYear - YEAR_PAGE_SIZE;\n\n if (startYear < 0) startYear = 0;\n return Array.from({ length: YEAR_PAGE_SIZE }, (_, i) => startYear + i);\n};\n\n/**\n * Get detailed date object\n *\n * @param date Get detailed date object\n *\n * @returns parsed date object\n */\nexport const getParsedDate = (date: DateType) => {\n return {\n year: dayjs(date).year(),\n month: dayjs(date).month(),\n hour: dayjs(date).hour(),\n minute: dayjs(date).minute(),\n };\n};\n\n/**\n * Calculate month days array based on current date\n *\n * @param datetime - The current date that selected\n * @param displayFullDays\n * @param minimumDate - min selectable date\n * @param maximumDate - max selectable date\n *\n * @returns days array based on current date\n */\nexport const getMonthDays = (\n datetime: DateType = dayjs(),\n displayFullDays: boolean,\n minimumDate: DateType,\n maximumDate: DateType\n): IDayObject[] => {\n const date = getDate(datetime);\n const daysInMonth = date.daysInMonth();\n const prevMonthDays = date.add(-1, 'month').daysInMonth();\n const firstDay = date.date(1);\n const dayOfMonth = firstDay.day() % 7;\n\n const prevDays = displayFullDays\n ? Array.from({ length: dayOfMonth }, (_, i) => {\n const day = i + (prevMonthDays - dayOfMonth + 1);\n const thisDay = date.add(-1, 'month').date(day);\n return generateDayObject(day, thisDay, minimumDate, maximumDate, false);\n })\n : Array(dayOfMonth).fill(null);\n\n const monthDaysOffset = dayOfMonth + daysInMonth;\n const nextMonthDays = displayFullDays\n ? monthDaysOffset > 35\n ? 42 - monthDaysOffset\n : 35 - monthDaysOffset\n : 0;\n\n const currentDays = Array.from({ length: daysInMonth }, (_, i) => {\n const day = i + 1;\n const thisDay = date.date(day);\n return generateDayObject(day, thisDay, minimumDate, maximumDate, true);\n });\n\n const nextDays = Array.from({ length: nextMonthDays }, (_, i) => {\n const day = i + 1;\n const thisDay = date.add(1, 'month').date(day);\n return generateDayObject(day, thisDay, minimumDate, maximumDate, false);\n });\n\n return [...prevDays, ...currentDays, ...nextDays];\n};\n\n/**\n * Generate day object for displaying inside day cell\n *\n * @param day - number of day\n * @param date - calculated date based on day, month, and year\n * @param minDate - min selectable date\n * @param maxDate - max selectable date\n * @param isCurrentMonth - define the day is in the current month\n *\n * @returns days object based on current date\n */\nconst generateDayObject = (\n day: number,\n date: dayjs.Dayjs,\n minDate: DateType,\n maxDate: DateType,\n isCurrentMonth: boolean\n) => {\n let disabled = false;\n if (minDate) {\n disabled = date < getDate(minDate);\n }\n if (maxDate && !disabled) {\n disabled = date > getDate(maxDate);\n }\n return {\n text: day.toString(),\n day: day,\n date: getFormatedDate(date, DATE_FORMAT),\n disabled,\n isCurrentMonth,\n };\n};\n","import { createContext, useContext } from 'react';\nimport { CalendarViews } from './enums';\nimport type {\n DateType,\n CalendarTheme,\n CalendarModes,\n CalendarState,\n} from './types';\n\nexport interface CalendarContextType extends CalendarState {\n mode: CalendarModes;\n locale: string | ILocale;\n displayFullDays: boolean;\n minimumDate: DateType;\n maximumDate: DateType;\n theme?: CalendarTheme;\n setCalendarView: (value: CalendarViews) => void;\n onSelectDate: (date: DateType) => void;\n onSelectMonth: (month: number) => void;\n onSelectYear: (year: number) => void;\n onChangeMonth: (value: number) => void;\n onChangeYear: (value: number) => void;\n}\n\nconst CalendarContext = createContext({} as CalendarContextType);\n\nexport const useCalendarContext = () => useContext(CalendarContext);\n\nexport default CalendarContext;\n","export enum CalendarViews {\n day = 'day',\n month = 'month',\n year = 'year',\n time = 'time',\n}\n\nexport enum CalendarActionKind {\n SET_CALENDAR_VIEW = 'SET_CALENDAR_VIEW',\n CHANGE_CURRENT_DATE = 'CHANGE_CURRENT_DATE',\n CHANGE_CURRENT_YEAR = 'CHANGE_CURRENT_YEAR',\n CHANGE_SELECTED_DATE = 'CHANGE_SELECTED_DATE',\n}\n\nexport const CALENDAR_HEIGHT = 300;\n","import React, { useCallback } from 'react';\nimport { View, Text, Pressable, StyleSheet, Image } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport dayjs from 'dayjs';\nimport { CalendarViews } from '../enums';\nimport type { HeaderProps } from '../types';\nimport { getDateYear, getYearRange, YEAR_PAGE_SIZE } from '../utils';\n\nconst arrow_left = require('../assets/images/arrow_left.png');\nconst arrow_right = require('../assets/images/arrow_right.png');\n\nconst Header = ({ buttonPrevIcon, buttonNextIcon }: HeaderProps) => {\n const {\n currentDate,\n selectedDate,\n currentYear,\n onChangeMonth,\n onChangeYear,\n calendarView,\n setCalendarView,\n mode,\n theme,\n locale,\n } = useCalendarContext();\n\n const currentMonthText = dayjs(currentDate).locale(locale).format('MMMM');\n\n const renderPrevButton = (\n \n calendarView === CalendarViews.day\n ? onChangeMonth(-1)\n : calendarView === CalendarViews.month\n ? onChangeYear(currentYear - 1)\n : calendarView === CalendarViews.year &&\n onChangeYear(currentYear - YEAR_PAGE_SIZE)\n }\n testID=\"btn-prev\"\n accessibilityRole=\"button\"\n accessibilityLabel=\"Prev\"\n >\n \n {buttonPrevIcon || (\n \n )}\n \n \n );\n\n const renderNextButton = (\n \n calendarView === CalendarViews.day\n ? onChangeMonth(1)\n : calendarView === CalendarViews.month\n ? onChangeYear(currentYear + 1)\n : calendarView === CalendarViews.year &&\n onChangeYear(currentYear + YEAR_PAGE_SIZE)\n }\n testID=\"btn-next\"\n accessibilityRole=\"button\"\n accessibilityLabel=\"Next\"\n >\n \n {buttonNextIcon || (\n \n )}\n \n \n );\n\n const yearSelector = useCallback(() => {\n const years = getYearRange(currentYear);\n return (\n {\n setCalendarView(\n calendarView === CalendarViews.year\n ? CalendarViews.day\n : CalendarViews.year\n );\n onChangeYear(getDateYear(currentDate));\n }}\n testID=\"btn-year\"\n accessibilityRole=\"button\"\n accessibilityLabel={dayjs(currentDate).format('YYYY')}\n >\n \n \n {calendarView === CalendarViews.year\n ? `${years.at(0)} - ${years.at(-1)}`\n : dayjs(currentDate).format('YYYY')}\n \n \n \n );\n }, [\n calendarView,\n currentDate,\n currentYear,\n setCalendarView,\n onChangeYear,\n theme,\n ]);\n\n const monthSelector = (\n \n setCalendarView(\n calendarView === CalendarViews.month\n ? CalendarViews.day\n : CalendarViews.month\n )\n }\n testID=\"btn-month\"\n accessibilityRole=\"button\"\n accessibilityLabel={currentMonthText}\n >\n \n \n {currentMonthText}\n \n \n \n );\n\n const renderSelectors = (\n <>\n \n {calendarView !== CalendarViews.year ? monthSelector : null}\n {yearSelector()}\n \n {mode === 'datetime' && calendarView !== CalendarViews.year ? (\n \n setCalendarView(\n calendarView === CalendarViews.time\n ? CalendarViews.day\n : CalendarViews.time\n )\n }\n accessibilityRole=\"button\"\n accessibilityLabel={dayjs(selectedDate).format('HH:mm')}\n >\n \n \n {dayjs(selectedDate).format('HH:mm')}\n \n \n \n ) : null}\n >\n );\n\n return (\n \n {theme?.headerButtonsPosition === 'left' ? (\n \n \n {renderPrevButton}\n {renderNextButton}\n \n {renderSelectors}\n \n ) : theme?.headerButtonsPosition === 'right' ? (\n \n {renderSelectors}\n \n {renderPrevButton}\n {renderNextButton}\n \n \n ) : (\n \n {renderPrevButton}\n {renderSelectors}\n {renderNextButton}\n \n )}\n \n );\n};\n\nconst styles = StyleSheet.create({\n headerContainer: {\n marginBottom: 5,\n },\n container: {\n padding: 5,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n selectorContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n textContainer: {\n marginHorizontal: 1,\n paddingHorizontal: 5,\n paddingVertical: 5,\n borderRadius: 5,\n },\n text: {\n fontWeight: 'bold',\n fontSize: 15,\n },\n iconContainer: {\n padding: 4,\n },\n prev: {\n marginRight: 3,\n },\n next: {\n marginLeft: 3,\n },\n row: {\n flexDirection: 'row',\n },\n});\n\nexport default Header;\n","import React, { useCallback } from 'react';\nimport {\n Text,\n View,\n Pressable,\n StyleSheet,\n TextStyle,\n ViewStyle,\n} from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport { getDateYear, getYearRange } from '../utils';\n\nconst YearSelector = () => {\n const { currentDate, currentYear, selectedDate, onSelectYear, theme } =\n useCalendarContext();\n const selectedYear = getDateYear(selectedDate);\n\n const generateCells = useCallback(() => {\n const years = getYearRange(currentYear);\n const activeYear = getDateYear(currentDate);\n const column = years.map((year) => {\n const activeItemStyle: ViewStyle =\n year === selectedYear\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n backgroundColor: theme?.selectedItemColor || '#0047FF',\n }\n : year === activeYear\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n }\n : {};\n\n const textStyle: TextStyle =\n year === selectedYear\n ? { color: '#fff', ...theme?.selectedTextStyle }\n : year === activeYear\n ? {\n color: theme?.selectedItemColor || '#0047FF',\n fontWeight: 'bold',\n }\n : { ...theme?.calendarTextStyle };\n\n return (\n onSelectYear(year)}\n style={styles.yearCell}\n accessibilityRole=\"button\"\n accessibilityLabel={year.toString()}\n >\n \n \n {year}\n \n \n \n );\n });\n return column;\n }, [onSelectYear, selectedYear, currentYear, currentDate, theme]);\n\n return (\n \n {generateCells()}\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n margin: 5,\n width: '100%',\n },\n yearCell: {\n width: '33.3%',\n },\n years: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n width: '100%',\n },\n year: {\n paddingVertical: 15,\n margin: 2,\n alignItems: 'center',\n borderWidth: 1,\n borderRadius: 8,\n borderColor: '#E5E5E5',\n backgroundColor: '#FFFFFF',\n },\n});\n\nexport default YearSelector;\n","import React from 'react';\nimport { Text, View, Pressable, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport { getParsedDate, getMonths } from '../utils';\n\nconst MonthSelector = () => {\n const { currentDate, onSelectMonth, theme } = useCalendarContext();\n const { month } = getParsedDate(currentDate);\n\n return (\n \n \n {getMonths()?.map((item, index) => {\n const activeItemStyle =\n index === month\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n backgroundColor: theme?.selectedItemColor || '#0047FF',\n }\n : null;\n\n const textStyle =\n index === month\n ? { color: '#fff', ...theme?.selectedTextStyle }\n : theme?.calendarTextStyle;\n\n return (\n onSelectMonth(index)}\n accessibilityRole=\"button\"\n accessibilityLabel={item}\n >\n \n \n {item}\n \n \n \n );\n })}\n \n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n monthsContainer: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n },\n monthCell: {\n width: '33.3%',\n },\n month: {\n paddingVertical: 15,\n margin: 2,\n alignItems: 'center',\n borderWidth: 1,\n borderRadius: 8,\n borderColor: '#E5E5E5',\n backgroundColor: '#FFFFFF',\n },\n});\n\nexport default MonthSelector;\n","import React from 'react';\nimport { View, Text, Pressable, StyleSheet } from 'react-native';\nimport { CalendarTheme, IDayObject } from '../types';\nimport { CALENDAR_HEIGHT } from '../enums';\n\ninterface Props extends Omit {\n isToday: boolean;\n isSelected: boolean;\n onSelectDate: (date: string) => void;\n theme?: CalendarTheme;\n}\n\nfunction EmptyDayPure() {\n return ;\n}\n\nexport const EmptyDay = React.memo(EmptyDayPure);\n\nconst Day = ({\n date,\n text,\n disabled,\n isCurrentMonth,\n isToday,\n isSelected,\n onSelectDate,\n theme,\n}: Props) => {\n const dayContainerStyle = isCurrentMonth\n ? theme?.dayContainerStyle\n : { opacity: 0.3 };\n\n const todayItemStyle = isToday\n ? {\n borderWidth: 2,\n borderColor: theme?.selectedItemColor || '#0047FF',\n ...theme?.todayContainerStyle,\n }\n : null;\n\n const activeItemStyle = isSelected\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n backgroundColor: theme?.selectedItemColor || '#0047FF',\n }\n : null;\n\n const textStyle = isSelected\n ? { color: '#fff', ...theme?.selectedTextStyle }\n : isToday\n ? {\n ...theme?.calendarTextStyle,\n color: theme?.selectedItemColor || '#0047FF',\n ...theme?.todayTextStyle,\n }\n : theme?.calendarTextStyle;\n\n return (\n \n onSelectDate(date)}\n style={[\n styles.dayContainer,\n dayContainerStyle,\n todayItemStyle,\n activeItemStyle,\n disabled && styles.disabledDay,\n ]}\n testID={date}\n accessibilityRole=\"button\"\n accessibilityLabel={text}\n >\n \n {text}\n \n \n \n );\n};\n\nconst styles = StyleSheet.create({\n dayCell: {\n width: '14.2%',\n height: CALENDAR_HEIGHT / 7 - 1,\n },\n dayContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n margin: 1.5,\n borderRadius: 100,\n },\n dayTextContainer: {\n justifyContent: 'center',\n alignItems: 'center',\n },\n disabledDay: {\n opacity: 0.3,\n },\n});\n\nexport default React.memo(Day);\n","import React, { useMemo, useCallback } from 'react';\nimport { Text, View, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport Day, { EmptyDay } from './Day';\nimport {\n getParsedDate,\n getMonthDays,\n getWeekdaysMin,\n areDatesOnSameDay,\n getDate,\n getFormated,\n} from '../utils';\n\nconst DaySelector = () => {\n const {\n currentDate,\n selectedDate,\n onSelectDate,\n displayFullDays,\n minimumDate,\n maximumDate,\n theme,\n } = useCalendarContext();\n const { year, month, hour, minute } = getParsedDate(currentDate);\n\n const daysGrid = useMemo(\n () => {\n const today = new Date();\n return getMonthDays(\n currentDate,\n displayFullDays,\n minimumDate,\n maximumDate\n ).map((day) => {\n return day\n ? {\n ...day,\n isToday: areDatesOnSameDay(day.date, today),\n isSelected: areDatesOnSameDay(day.date, selectedDate),\n }\n : null;\n });\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [month, year, displayFullDays, minimumDate, maximumDate, selectedDate]\n );\n\n const handleSelectDate = useCallback(\n (date: string) => {\n const newDate = getDate(date).hour(hour).minute(minute);\n\n onSelectDate(getFormated(newDate));\n },\n [onSelectDate, hour, minute]\n );\n\n return (\n \n \n {getWeekdaysMin()?.map((item, index) => (\n \n {item}\n \n ))}\n \n \n {daysGrid?.map((day, index) => {\n return day ? (\n \n ) : (\n \n );\n })}\n \n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n paddingTop: 5,\n width: '100%',\n },\n weekDaysContainer: {\n width: '100%',\n flexDirection: 'row',\n paddingBottom: 10,\n paddingTop: 5,\n marginBottom: 10,\n alignItems: 'center',\n borderBottomWidth: 1,\n borderColor: '#E5E5E5',\n },\n weekDayCell: {\n width: '14.2%',\n alignItems: 'center',\n justifyContent: 'center',\n },\n daysContainer: {\n flex: 1,\n width: '100%',\n height: '100%',\n flexWrap: 'wrap',\n flexDirection: 'row',\n alignContent: 'flex-start',\n },\n});\n\nexport default DaySelector;\n","import { Animated } from 'react-native';\n\nconst FACTORIAL_3 = 3 * 2;\nconst FACTORIAL_5 = 5 * 4 * FACTORIAL_3;\nconst FACTORIAL_7 = 7 * 6 * FACTORIAL_5;\n\nfunction sin(animated: Animated.Animated) {\n const normalized = normalize(animated);\n const square = Animated.multiply(normalized, normalized);\n const pow3 = Animated.multiply(normalized, square);\n const pow5 = Animated.multiply(pow3, square);\n const pow7 = Animated.multiply(pow5, square);\n\n return Animated.add(\n Animated.add(normalized, Animated.multiply(pow3, -1 / FACTORIAL_3)),\n Animated.add(\n Animated.multiply(pow5, 1 / FACTORIAL_5),\n Animated.multiply(pow7, -1 / FACTORIAL_7)\n )\n );\n}\n\nfunction normalize(animated: Animated.Animated): Animated.Animated {\n return Animated.add(\n Animated.modulo(Animated.add(animated, Math.PI), Math.PI * 2),\n -Math.PI\n ).interpolate({\n inputRange: [-Math.PI, -Math.PI / 2, Math.PI / 2, Math.PI],\n outputRange: [0, -Math.PI / 2, Math.PI / 2, 0],\n });\n}\n\nexport { sin, normalize };\n","import {\n Animated,\n PanResponder,\n StyleSheet,\n TextStyle,\n View,\n ViewStyle,\n Platform,\n} from 'react-native';\nimport React, { memo, useMemo, useRef } from 'react';\nimport { sin } from './AnimatedMath';\nimport { CALENDAR_HEIGHT } from '../../enums';\n\nexport interface WheelStyleProps {\n containerStyle?: ViewStyle;\n itemHeight?: number;\n selectedColor?: string;\n disabledColor?: string;\n textStyle?: TextStyle;\n wheelHeight?: number;\n displayCount?: number;\n}\n\nexport interface WheelProps extends WheelStyleProps {\n value: number;\n setValue: (value: number) => void;\n items: number[];\n}\n\nconst Wheel = ({\n value,\n setValue,\n items,\n containerStyle,\n textStyle,\n itemHeight,\n selectedColor = 'black',\n disabledColor = 'gray',\n wheelHeight,\n displayCount = 5,\n}: WheelProps) => {\n const translateY = useRef(new Animated.Value(0)).current;\n const renderCount =\n displayCount * 2 < items.length\n ? displayCount * 4 + 1\n : displayCount * 2 - 1;\n const circular = items.length >= displayCount;\n const height =\n typeof containerStyle?.height === 'number' ? containerStyle.height : 130;\n const radius = wheelHeight != null ? wheelHeight / 2 : height / 2;\n\n const valueIndex = items.indexOf(value);\n\n const panResponder = useMemo(() => {\n return PanResponder.create({\n onMoveShouldSetPanResponder: () => true,\n onStartShouldSetPanResponderCapture: () => true,\n onPanResponderGrant: () => {\n translateY.setValue(0);\n },\n onPanResponderMove: (evt, gestureState) => {\n translateY.setValue(gestureState.dy);\n evt.stopPropagation();\n },\n onPanResponderRelease: (_, gestureState) => {\n translateY.extractOffset();\n let newValueIndex =\n valueIndex -\n Math.round(gestureState.dy / ((radius * 2) / displayCount));\n if (circular)\n newValueIndex = (newValueIndex + items.length) % items.length;\n else {\n if (newValueIndex < 0) newValueIndex = 0;\n else if (newValueIndex >= items.length)\n newValueIndex = items.length - 1;\n }\n const newValue = items[newValueIndex] || 0;\n if (newValue === value) {\n translateY.setOffset(0);\n translateY.setValue(0);\n } else setValue(newValue);\n },\n });\n }, [\n circular,\n displayCount,\n radius,\n setValue,\n value,\n valueIndex,\n items,\n translateY,\n ]);\n\n const displayValues = useMemo(() => {\n const centerIndex = Math.floor(renderCount / 2);\n\n return Array.from({ length: renderCount }, (_, index) => {\n let targetIndex = valueIndex + index - centerIndex;\n if (targetIndex < 0 || targetIndex >= items.length) {\n targetIndex = (targetIndex + items.length) % items.length;\n }\n return items[targetIndex] || 0;\n });\n }, [renderCount, valueIndex, items]);\n\n const animatedAngles = useMemo(() => {\n //translateY.setValue(0);\n translateY.setOffset(0);\n const currentIndex = displayValues.indexOf(value);\n return displayValues && displayValues.length > 0\n ? displayValues.map((_, index) =>\n translateY\n .interpolate({\n inputRange: [-radius, radius],\n outputRange: [\n -radius +\n ((radius * 2) / displayCount) * (index - currentIndex),\n radius + ((radius * 2) / displayCount) * (index - currentIndex),\n ],\n extrapolate: 'extend',\n })\n .interpolate({\n inputRange: [-radius, radius],\n outputRange: [-Math.PI / 2, Math.PI / 2],\n extrapolate: 'clamp',\n })\n )\n : [];\n }, [displayValues, radius, value, displayCount, translateY]);\n\n return (\n \n {displayValues?.map((displayValue, index) => {\n const animatedAngle = animatedAngles[index];\n return (\n displayValues.length / 2 ? 'Post' : 'Before'\n }${displayValue + index}`}\n style={[\n textStyle,\n // eslint-disable-next-line react-native/no-inline-styles\n {\n position: 'absolute',\n height: itemHeight,\n transform: animatedAngle\n ? [\n {\n translateY: Animated.multiply(\n radius,\n sin(animatedAngle)\n ),\n },\n {\n rotateX: animatedAngle.interpolate({\n inputRange: [-Math.PI / 2, Math.PI / 2],\n outputRange: ['-89deg', '89deg'],\n extrapolate: 'clamp',\n }),\n },\n ]\n : [],\n color: displayValue === value ? selectedColor : disabledColor,\n },\n ]}\n >\n {typeof displayValue === 'number' && displayValue < 10\n ? `0${displayValue}`\n : `${displayValue}`}\n \n );\n })}\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n minWidth: 30,\n overflow: 'hidden',\n alignItems: 'center',\n justifyContent: 'center',\n height: CALENDAR_HEIGHT / 2,\n ...Platform.select({\n web: {\n cursor: 'pointer',\n userSelect: 'none',\n },\n }),\n },\n contentContainer: {\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n});\n\nexport default memo(Wheel);\n","import React from 'react';\nimport { Text, View, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport Wheel from './TimePicker/Wheel';\nimport { CALENDAR_HEIGHT } from '../enums';\nimport { getParsedDate, getDate, getFormated } from '../utils';\n\nfunction createNumberList(num: number) {\n return new Array(num).fill(0).map((_, index) => index);\n}\n\nconst TimeSelector = () => {\n const { selectedDate, currentDate, onSelectDate, theme } =\n useCalendarContext();\n const { hour, minute } = getParsedDate(selectedDate);\n\n return (\n \n \n \n {\n const newDate = getDate(currentDate).hour(value);\n onSelectDate(getFormated(newDate));\n }}\n />\n \n \n :\n \n \n {\n const newDate = getDate(currentDate).minute(value);\n onSelectDate(getFormated(newDate));\n }}\n />\n \n \n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n wheelContainer: {\n flex: 1,\n },\n timePickerContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n width: CALENDAR_HEIGHT / 2,\n height: CALENDAR_HEIGHT / 2,\n },\n timePickerText: {\n fontSize: 24,\n fontWeight: 'bold',\n },\n});\n\nexport default TimeSelector;\n","import React, { ReactNode } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport type { CalendarViews } from '../enums';\nimport type { HeaderProps } from '../types';\nimport Header from './Header';\nimport YearSelector from './YearSelector';\nimport MonthSelector from './MonthSelector';\nimport DaySelector from './DaySelector';\nimport TimeSelector from './TimeSelector';\nimport { CALENDAR_HEIGHT } from '../enums';\n\nconst CalendarView: Record = {\n year: ,\n month: ,\n day: ,\n time: ,\n};\n\ninterface PropTypes extends HeaderProps {}\n\nconst Calendar = ({ buttonPrevIcon, buttonNextIcon }: PropTypes) => {\n const { calendarView, mode } = useCalendarContext();\n\n return (\n \n {mode !== 'time' ? (\n \n ) : null}\n {CalendarView[calendarView]}\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n width: '100%',\n },\n calendarContainer: {\n height: CALENDAR_HEIGHT,\n alignItems: 'center',\n },\n});\n\nexport default Calendar;\n","import React, { useEffect, useReducer } from 'react';\nimport { getFormated, getDate, getDateYear } from './utils';\nimport CalendarContext from './CalendarContext';\nimport { CalendarViews, CalendarActionKind } from './enums';\nimport type {\n DateType,\n CalendarModes,\n CalendarAction,\n CalendarState,\n CalendarTheme,\n HeaderProps,\n} from './types';\nimport Calendar from './components/Calendar';\nimport dayjs from 'dayjs';\nimport localeData from 'dayjs/plugin/localeData';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\n\ndayjs.extend(localeData);\ndayjs.extend(relativeTime);\ndayjs.extend(localizedFormat);\n\ninterface PropTypes extends CalendarTheme, HeaderProps {\n value: DateType;\n mode?: CalendarModes;\n locale?: string | ILocale;\n minimumDate?: DateType;\n maximumDate?: DateType;\n onValueChange?: (value: DateType) => void;\n displayFullDays?: boolean;\n}\n\nconst DateTimePicker = ({\n value,\n mode = 'datetime',\n locale = 'en',\n minimumDate = null,\n maximumDate = null,\n onValueChange = () => {},\n displayFullDays = false,\n headerButtonsPosition = 'around',\n headerContainerStyle,\n headerTextContainerStyle,\n headerTextStyle,\n headerButtonStyle,\n headerButtonColor,\n headerButtonSize,\n dayContainerStyle,\n todayContainerStyle,\n todayTextStyle,\n monthContainerStyle,\n yearContainerStyle,\n weekDaysContainerStyle,\n weekDaysTextStyle,\n calendarTextStyle,\n selectedTextStyle,\n selectedItemColor,\n timePickerContainerStyle,\n timePickerTextStyle,\n buttonPrevIcon,\n buttonNextIcon,\n}: Partial) => {\n dayjs.locale(locale);\n\n const theme = {\n headerButtonsPosition,\n headerContainerStyle,\n headerTextContainerStyle,\n headerTextStyle,\n headerButtonStyle,\n headerButtonColor,\n headerButtonSize,\n dayContainerStyle,\n todayContainerStyle,\n todayTextStyle,\n monthContainerStyle,\n yearContainerStyle,\n weekDaysContainerStyle,\n weekDaysTextStyle,\n calendarTextStyle,\n selectedTextStyle,\n selectedItemColor,\n timePickerContainerStyle,\n timePickerTextStyle,\n };\n\n const [state, dispatch] = useReducer(\n (prevState: CalendarState, action: CalendarAction) => {\n switch (action.type) {\n case CalendarActionKind.SET_CALENDAR_VIEW:\n return {\n ...prevState,\n calendarView: action.payload,\n };\n case CalendarActionKind.CHANGE_CURRENT_DATE:\n return {\n ...prevState,\n currentDate: action.payload,\n };\n case CalendarActionKind.CHANGE_CURRENT_YEAR:\n return {\n ...prevState,\n currentYear: action.payload,\n };\n case CalendarActionKind.CHANGE_SELECTED_DATE:\n return {\n ...prevState,\n selectedDate: action.payload,\n };\n }\n },\n {\n calendarView: mode === 'time' ? CalendarViews.time : CalendarViews.day,\n selectedDate: value ? getFormated(value) : new Date(),\n currentDate: value ? getFormated(value) : new Date(),\n currentYear: value ? getDateYear(value) : new Date().getFullYear(),\n }\n );\n\n useEffect(() => {\n dispatch({\n type: CalendarActionKind.CHANGE_SELECTED_DATE,\n payload: value,\n });\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: value,\n });\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_YEAR,\n payload: getDateYear(value),\n });\n }, [value]);\n\n useEffect(() => {\n dispatch({\n type: CalendarActionKind.SET_CALENDAR_VIEW,\n payload: mode === 'time' ? CalendarViews.time : CalendarViews.day,\n });\n }, [mode]);\n\n const actions = {\n setCalendarView: (view: CalendarViews) =>\n dispatch({ type: CalendarActionKind.SET_CALENDAR_VIEW, payload: view }),\n onSelectDate: (date: DateType) => {\n onValueChange(date);\n dispatch({\n type: CalendarActionKind.CHANGE_SELECTED_DATE,\n payload: date,\n });\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: date,\n });\n },\n onSelectMonth: (month: number) => {\n const newDate = getDate(state.currentDate).month(month);\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: getFormated(newDate),\n });\n dispatch({\n type: CalendarActionKind.SET_CALENDAR_VIEW,\n payload: CalendarViews.day,\n });\n },\n onSelectYear: (year: number) => {\n const newDate = getDate(state.currentDate).year(year);\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: getFormated(newDate),\n });\n dispatch({\n type: CalendarActionKind.SET_CALENDAR_VIEW,\n payload: CalendarViews.day,\n });\n },\n onChangeMonth: (month: number) => {\n const newDate = getDate(state.currentDate).add(month, 'month');\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: getFormated(newDate),\n });\n },\n onChangeYear: (year: number) => {\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_YEAR,\n payload: year,\n });\n },\n };\n\n return (\n \n \n \n );\n};\n\nexport default DateTimePicker;\n","import DateTimePicker from './DateTimePicker';\nimport type { DateType } from './types';\n\nexport { DateType };\nexport default DateTimePicker;\n","import React, { useState } from 'react';\nimport {\n StyleSheet,\n View,\n Text,\n Pressable,\n Image,\n Linking,\n SafeAreaView,\n} from 'react-native';\nimport DateTimePicker, { DateType } from 'react-native-ui-datepicker';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/en';\nimport 'dayjs/locale/de';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/fr';\nimport 'dayjs/locale/tr';\n\ninterface ITheme {\n mainColor: string;\n activeTextColor: string;\n}\n\nconst Themes: ITheme[] = [\n { mainColor: '#0047FF', activeTextColor: '#fff' },\n { mainColor: '#00D27A', activeTextColor: '#fff' },\n { mainColor: '#F5803E', activeTextColor: '#fff' },\n { mainColor: '#E63757', activeTextColor: '#fff' },\n { mainColor: '#D8E3FF', activeTextColor: '#0047FF' },\n { mainColor: '#CCF6E4', activeTextColor: '#00864E' },\n { mainColor: '#FDE6D8', activeTextColor: '#9D5228' },\n { mainColor: '#FAD7DD', activeTextColor: '#932338' },\n];\n\nconst Locales = ['en', 'de', 'es', 'fr', 'tr'];\n\nexport default function App() {\n const [value, setValue] = useState(dayjs());\n const [theme, setTheme] = useState(Themes[0]);\n const [locale, setLocale] = useState('en');\n\n return (\n \n \n \n React Native UI DatePicker\n \n \n {Themes.map((item, index) => (\n setTheme(item)}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Set Active Theme\"\n />\n ))}\n \n \n {Locales.map((item, index) => (\n setLocale(item)}\n accessibilityRole=\"button\"\n accessibilityLabel={item.toUpperCase()}\n >\n \n {item.toUpperCase()}\n \n \n ))}\n \n \n \n setValue(date)}\n headerButtonColor={theme?.mainColor}\n selectedItemColor={theme?.mainColor}\n // eslint-disable-next-line react-native/no-inline-styles\n selectedTextStyle={{\n fontWeight: 'bold',\n color: theme?.activeTextColor,\n }}\n // eslint-disable-next-line react-native/no-inline-styles\n todayContainerStyle={{\n borderWidth: 1,\n }}\n mode=\"datetime\"\n />\n \n \n {dayjs(value).locale(locale).format('MMMM, DD, YYYY - HH:mm')}\n \n {\n setValue(dayjs());\n }}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Today\"\n >\n \n \n Today\n \n \n \n \n \n \n \n \n Linking.openURL(\n 'https://github.com/farhoudshapouran/react-native-ui-datepicker'\n )\n }\n accessibilityRole=\"button\"\n accessibilityLabel=\"Check repository on GitHub\"\n >\n \n Check repository on GitHub\n \n \n \n \n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#F5FCFF',\n },\n body: {\n flex: 1,\n backgroundColor: '#F5FCFF',\n alignItems: 'center',\n },\n titleContainer: {\n paddingVertical: 20,\n alignItems: 'center',\n backgroundColor: '#fff',\n marginBottom: 20,\n width: '100%',\n },\n title: { fontSize: 18, fontWeight: 'bold' },\n themeContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-around',\n marginBottom: 10,\n width: 330,\n },\n themeButton: {\n borderWidth: 4,\n width: 32,\n height: 32,\n borderRadius: 32,\n margin: 5,\n shadowRadius: 20,\n shadowColor: '#000',\n shadowOpacity: 0.1,\n shadowOffset: { width: 0, height: 0 },\n },\n localeContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n marginBottom: 20,\n },\n localeButton: {\n alignItems: 'center',\n justifyContent: 'center',\n width: 36,\n height: 36,\n borderRadius: 36,\n margin: 2,\n },\n localeButtonText: {\n fontSize: 15,\n },\n datePickerContainer: {\n alignItems: 'center',\n },\n datePicker: {\n width: 330,\n backgroundColor: '#fff',\n padding: 15,\n borderRadius: 15,\n shadowRadius: 20,\n shadowColor: '#000',\n shadowOpacity: 0.1,\n shadowOffset: { width: 0, height: 0 },\n },\n footerContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingHorizontal: 5,\n paddingVertical: 5,\n },\n todayButton: {\n paddingHorizontal: 16,\n paddingVertical: 10,\n borderRadius: 8,\n },\n todayButtonText: {\n fontWeight: 'bold',\n },\n githubContainer: {\n paddingVertical: 20,\n },\n githubLink: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n githubLogo: {\n width: 22,\n height: 22,\n },\n githubText: {\n marginLeft: 8,\n },\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/react-native-ui-datepicker/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkweb\"] = self[\"webpackChunkweb\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [951], () => (__webpack_require__(6271)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["CALENDAR_FORMAT","DATE_FORMAT","YEAR_PAGE_SIZE","getFormated","date","dayjs","format","getDateYear","year","areDatesOnSameDay","a","b","getFormatedDate","getDate","getYearRange","endYear","Math","ceil","startYear","Array","from","length","_","i","getParsedDate","month","hour","minute","generateDayObject","day","minDate","maxDate","isCurrentMonth","disabled","text","toString","CalendarContext","createContext","useCalendarContext","useContext","CalendarViews","CalendarActionKind","CALENDAR_HEIGHT","arrow_left","require","arrow_right","styles","StyleSheet","create","headerContainer","marginBottom","container","padding","flexDirection","alignItems","justifyContent","selectorContainer","textContainer","marginHorizontal","paddingHorizontal","paddingVertical","borderRadius","fontWeight","fontSize","iconContainer","prev","marginRight","next","marginLeft","row","_ref","buttonPrevIcon","buttonNextIcon","_useCalendarContext","currentDate","selectedDate","currentYear","onChangeMonth","onChangeYear","calendarView","setCalendarView","mode","theme","locale","currentMonthText","renderPrevButton","_jsx","Pressable","time","onPress","testID","accessibilityRole","accessibilityLabel","children","View","style","headerButtonStyle","Image","source","width","headerButtonSize","height","tintColor","headerButtonColor","renderNextButton","yearSelector","useCallback","years","headerTextContainerStyle","Text","headerTextStyle","at","monthSelector","renderSelectors","_jsxs","_Fragment","headerContainerStyle","headerButtonsPosition","flex","margin","yearCell","flexWrap","borderWidth","borderColor","backgroundColor","onSelectYear","selectedYear","generateCells","activeYear","map","activeItemStyle","selectedItemColor","textStyle","_objectSpread","color","selectedTextStyle","calendarTextStyle","yearContainerStyle","monthsContainer","monthCell","_getMonths","onSelectMonth","item","index","monthContainerStyle","EmptyDay","React","dayCell","dayContainer","dayTextContainer","disabledDay","opacity","isToday","isSelected","onSelectDate","dayContainerStyle","todayItemStyle","todayContainerStyle","todayTextStyle","paddingTop","weekDaysContainer","paddingBottom","borderBottomWidth","weekDayCell","daysContainer","alignContent","_getWeekdaysMin","displayFullDays","minimumDate","maximumDate","_getParsedDate","daysGrid","useMemo","today","Date","datetime","arguments","undefined","daysInMonth","prevMonthDays","add","dayOfMonth","prevDays","thisDay","fill","monthDaysOffset","nextMonthDays","currentDays","nextDays","concat","_toConsumableArray","getMonthDays","handleSelectDate","newDate","weekDaysContainerStyle","weekDaysTextStyle","Day","sin","animated","normalized","Animated","modulo","PI","interpolate","inputRange","outputRange","normalize","square","multiply","pow3","pow5","pow7","minWidth","overflow","Platform","select","web","cursor","userSelect","contentContainer","memo","value","setValue","items","containerStyle","itemHeight","_ref$selectedColor","selectedColor","_ref$disabledColor","disabledColor","wheelHeight","_ref$displayCount","displayCount","translateY","useRef","Value","current","renderCount","circular","radius","valueIndex","indexOf","panResponder","PanResponder","onMoveShouldSetPanResponder","onStartShouldSetPanResponderCapture","onPanResponderGrant","onPanResponderMove","evt","gestureState","dy","stopPropagation","onPanResponderRelease","extractOffset","newValueIndex","round","newValue","setOffset","displayValues","centerIndex","floor","targetIndex","animatedAngles","currentIndex","extrapolate","panHandlers","displayValue","animatedAngle","position","transform","rotateX","createNumberList","num","wheelContainer","timePickerContainer","timePickerText","timePickerContainerStyle","Wheel","timePickerTextStyle","CalendarView","YearSelector","MonthSelector","DaySelector","TimeSelector","calendarContainer","Header","localeData","relativeTime","localizedFormat","_ref$mode","_ref$locale","_ref$minimumDate","_ref$maximumDate","_ref$onValueChange","onValueChange","_ref$displayFullDays","_ref$headerButtonsPos","_useReducer","useReducer","prevState","action","type","SET_CALENDAR_VIEW","payload","CHANGE_CURRENT_DATE","CHANGE_CURRENT_YEAR","CHANGE_SELECTED_DATE","getFullYear","_useReducer2","_slicedToArray","state","dispatch","useEffect","actions","view","Provider","Calendar","Themes","mainColor","activeTextColor","Locales","App","_useState","useState","_useState2","_useState3","_useState4","setTheme","_useState5","_useState6","setLocale","SafeAreaView","body","titleContainer","title","themeContainer","themeButton","localeContainer","localeButton","toUpperCase","localeButtonText","datePickerContainer","datePicker","DateTimePicker","footerContainer","todayButton","todayButtonText","githubContainer","githubLink","Linking","openURL","githubLogo","githubText","shadowRadius","shadowColor","shadowOpacity","shadowOffset","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","e","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file
diff --git a/static/js/main.a0953296.js b/static/js/main.a0953296.js
deleted file mode 100644
index 152d31f..0000000
--- a/static/js/main.a0953296.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(()=>{"use strict";var e={2578:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Pe});var r=n(885),o=n(5004),a=n(6792),l=n(9385),i=n(1054),c=n(6264),d=n(1122),u=n(5722),s=n(7602),f=n(141),y=n(5809),h=n(126),m=n(7438),p=n.n(m),b="YYYY-MM-DD HH:mm",C="YYYY-MM-DD",g=12,x=function(e){return p()(e).format(b)},v=function(e){return p()(e).year()};function j(e,t){return!(!e||!t)&&p()(e).format(C)===p()(t).format(C)}var D=function(e,t){return p()(e).format(t)},O=function(e){return p()(e,b)},w=function(e){var t=g*Math.ceil(e/g),n=t===e?t:t-g;return n<0&&(n=0),Array.from({length:g},(function(e,t){return n+t}))},S=function(e){return{year:p()(e).year(),month:p()(e).month(),hour:p()(e).hour(),minute:p()(e).minute()}},P=function(e,t,n,r,o){var a=!1;return n&&(a=tO(r)),{text:e.toString(),day:e,date:D(t,C),disabled:a,isCurrentMonth:o}},E=function(e){return e.day="day",e.month="month",e.year="year",e.time="time",e}({}),T=function(e){return e.SET_CALENDAR_VIEW="SET_CALENDAR_VIEW",e.CHANGE_CURRENT_DATE="CHANGE_CURRENT_DATE",e.CHANGE_CURRENT_YEAR="CHANGE_CURRENT_YEAR",e.CHANGE_SELECTED_DATE="CHANGE_SELECTED_DATE",e}({}),I=300,R=(0,o.createContext)({calendarView:E.day,selectedDate:new Date,currentDate:new Date,currentYear:(new Date).getFullYear(),mode:"datetime",locale:"en",minimumDate:null,maximumDate:null,displayFullDays:!1,setCalendarView:function(){},onSelectDate:function(){},onSelectMonth:function(){},onSelectYear:function(){},onChangeMonth:function(){},onChangeYear:function(){}}),k=function(){return(0,o.useContext)(R)};const A=R;var F=n(2629),_=n(374),M=n(1915),N=a.default.create({headerContainer:{marginBottom:5},container:{padding:5,flexDirection:"row",alignItems:"center",justifyContent:"space-between"},selectorContainer:{flexDirection:"row",alignItems:"center"},textContainer:{marginHorizontal:1,paddingHorizontal:5,paddingVertical:5,borderRadius:5},text:{fontWeight:"bold",fontSize:15},iconContainer:{padding:4},prev:{marginRight:3},next:{marginLeft:3},row:{flexDirection:"row"}});const Y=function(e){var t=e.buttonPrevIcon,n=e.buttonNextIcon,r=k(),a=r.currentDate,u=r.selectedDate,s=r.currentYear,f=r.onChangeMonth,y=r.onChangeYear,h=r.calendarView,m=r.setCalendarView,b=r.mode,C=r.theme,x=r.locale,j=p()(a).locale(x).format("MMMM"),D=(0,F.jsx)(c.default,{disabled:h===E.time,onPress:function(){return h===E.day?f(-1):h===E.month?y(s-1):h===E.year&&y(s-g)},testID:"btn-prev",accessibilityRole:"button",accessibilityLabel:"Prev",children:(0,F.jsx)(l.default,{style:[N.iconContainer,N.prev,null==C?void 0:C.headerButtonStyle],children:t||(0,F.jsx)(d.default,{source:_,style:{width:(null==C?void 0:C.headerButtonSize)||18,height:(null==C?void 0:C.headerButtonSize)||18,tintColor:null==C?void 0:C.headerButtonColor}})})}),O=(0,F.jsx)(c.default,{disabled:h===E.time,onPress:function(){return h===E.day?f(1):h===E.month?y(s+1):h===E.year&&y(s+g)},testID:"btn-next",accessibilityRole:"button",accessibilityLabel:"Next",children:(0,F.jsx)(l.default,{style:[N.iconContainer,N.next,null==C?void 0:C.headerButtonStyle],children:n||(0,F.jsx)(d.default,{source:M,style:{width:(null==C?void 0:C.headerButtonSize)||18,height:(null==C?void 0:C.headerButtonSize)||18,tintColor:null==C?void 0:C.headerButtonColor}})})}),S=(0,o.useCallback)((function(){var e=w(s);return(0,F.jsx)(c.default,{onPress:function(){m(h===E.year?E.day:E.year),y(v(a))},testID:"btn-year",accessibilityRole:"button",accessibilityLabel:p()(a).format("YYYY"),children:(0,F.jsx)(l.default,{style:[N.textContainer,null==C?void 0:C.headerTextContainerStyle],children:(0,F.jsx)(i.default,{style:[N.text,null==C?void 0:C.headerTextStyle],children:h===E.year?`${e.at(0)} - ${e.at(-1)}`:p()(a).format("YYYY")})})})}),[h,a,s,m,y,C]),P=(0,F.jsx)(c.default,{onPress:function(){return m(h===E.month?E.day:E.month)},testID:"btn-month",accessibilityRole:"button",accessibilityLabel:j,children:(0,F.jsx)(l.default,{style:[N.textContainer,null==C?void 0:C.headerTextContainerStyle],children:(0,F.jsx)(i.default,{style:[N.text,null==C?void 0:C.headerTextStyle],children:j})})}),T=(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(l.default,{style:N.selectorContainer,children:[h!==E.year?P:null,S()]}),"datetime"===b&&h!==E.year?(0,F.jsx)(c.default,{onPress:function(){return m(h===E.time?E.day:E.time)},accessibilityRole:"button",accessibilityLabel:p()(u).format("HH:mm"),children:(0,F.jsx)(l.default,{style:[N.textContainer,null==C?void 0:C.headerTextContainerStyle],children:(0,F.jsx)(i.default,{style:[N.text,null==C?void 0:C.headerTextStyle],children:p()(u).format("HH:mm")})})}):null]});return(0,F.jsx)(l.default,{style:[N.headerContainer,null==C?void 0:C.headerContainerStyle],accessibilityRole:"header",children:"left"===(null==C?void 0:C.headerButtonsPosition)?(0,F.jsxs)(l.default,{style:N.container,children:[(0,F.jsxs)(l.default,{style:N.row,children:[D,O]}),T]}):"right"===(null==C?void 0:C.headerButtonsPosition)?(0,F.jsxs)(l.default,{style:N.container,children:[T,(0,F.jsxs)(l.default,{style:N.row,children:[D,O]})]}):(0,F.jsxs)(l.default,{style:N.container,children:[D,T,O]})})};function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:p()(),t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=O(e),a=o.daysInMonth(),l=o.add(-1,"month").daysInMonth(),i=o.date(1).day()%7,c=t?Array.from({length:i},(function(e,t){var a=t+(l-i+1),c=o.add(-1,"month").date(a);return P(a,c,n,r,!1)})):Array(i).fill(null),d=i+a,u=t?d>35?42-d:35-d:0,s=Array.from({length:a},(function(e,t){var a=t+1,l=o.date(a);return P(a,l,n,r,!0)})),f=Array.from({length:u},(function(e,t){var a=t+1,l=o.add(1,"month").date(a);return P(a,l,n,r,!1)}));return[].concat((0,h.default)(c),s,f)}(n,c,d,u).map((function(t){var n=j(null==t?void 0:t.date,e),o=j(null==t?void 0:t.date,r);return K(K({},t),{},{isToday:n,selected:o})}))}),[m,y,c,d,u,r]),v=(0,o.useCallback)((function(e){var t=O(e).hour(b).minute(C);a(x(t))}),[a,b,C]);return(0,F.jsxs)(l.default,{style:Q.container,testID:"day-selector",children:[(0,F.jsx)(l.default,{style:[Q.weekDaysContainer,null==s?void 0:s.weekDaysContainerStyle],testID:"week-days",children:null==(e=p().weekdaysMin())?void 0:e.map((function(e,t){return(0,F.jsx)(l.default,{style:Q.weekDayCell,children:(0,F.jsx)(i.default,{style:null==s?void 0:s.weekDaysTextStyle,children:e})},t)}))}),(0,F.jsx)(l.default,{style:Q.daysContainer,testID:"days",children:null==g?void 0:g.map((function(e,t){return(0,F.jsx)(q,{day:e,theme:s,isToday:e.isToday,selected:e.selected,onSelectDate:v},t)}))})]})};var ee=n(7294),te=n(9188),ne=n(2152);function re(e){var t=function(e){return ee.default.add(ee.default.modulo(ee.default.add(e,Math.PI),2*Math.PI),-Math.PI).interpolate({inputRange:[-Math.PI,-Math.PI/2,Math.PI/2,Math.PI],outputRange:[0,-Math.PI/2,Math.PI/2,0]})}(e),n=ee.default.multiply(t,t),r=ee.default.multiply(t,n),o=ee.default.multiply(r,n),a=ee.default.multiply(o,n);return ee.default.add(ee.default.add(t,ee.default.multiply(r,-1/6)),ee.default.add(ee.default.multiply(o,1/120),ee.default.multiply(a,-1/5040)))}function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t=m,g="number"===typeof(null==a?void 0:a.height)?a.height:130,x=null!=y?y/2:g/2,v=r.indexOf(t),j=(0,o.useMemo)((function(){return te.default.create({onMoveShouldSetPanResponder:function(){return!0},onStartShouldSetPanResponderCapture:function(){return!0},onPanResponderGrant:function(){p.setValue(0)},onPanResponderMove:function(e,t){p.setValue(t.dy),e.stopPropagation()},onPanResponderRelease:function(e,o){p.extractOffset();var a=v-Math.round(o.dy/(2*x/m));C?a=(a+r.length)%r.length:a<0?a=0:a>=r.length&&(a=r.length-1);var l=r[a]||0;l===t?(p.setOffset(0),p.setValue(0)):n(l)}})}),[C,m,x,n,t,v,r,p]),D=(0,o.useMemo)((function(){var e=Math.floor(b/2);return Array.from({length:b},(function(t,n){var o=v+n-e;return(o<0||o>=r.length)&&(o=(o+r.length)%r.length),r[o]||0}))}),[b,v,r]),O=(0,o.useMemo)((function(){p.setOffset(0);var e=D.indexOf(t);return D&&D.length>0?D.map((function(t,n){return p.interpolate({inputRange:[-x,x],outputRange:[2*x/m*(n-e)-x,x+2*x/m*(n-e)],extrapolate:"extend"}).interpolate({inputRange:[-x,x],outputRange:[-Math.PI/2,Math.PI/2],extrapolate:"clamp"})})):[]}),[D,x,t,m,p]);return(0,F.jsx)(l.default,ae(ae({style:[le.container,a]},j.panHandlers),{},{children:null==D?void 0:D.map((function(e,n){var r=O[n];return(0,F.jsx)(ee.default.Text,{style:[i,{position:"absolute",height:c,transform:r?[{translateY:ee.default.multiply(x,re(r))},{rotateX:r.interpolate({inputRange:[-Math.PI/2,Math.PI/2],outputRange:["-89deg","89deg"],extrapolate:"clamp"})}]:[],color:e===t?u:f}],children:"number"===typeof e&&e<10?`0${e}`:`${e}`},`${t}${n>D.length/2?"Post":"Before"}${e+n}`)}))}))}));function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function de(e){for(var t=1;t{e.exports=n.p+"static/media/github-logo.096a1105a4175bc5cb97.png"},374:(e,t,n)=>{e.exports=n.p+"static/media/arrow_left.d30e48edaec517fafb76.png"},1915:(e,t,n)=>{e.exports=n.p+"static/media/arrow_right.e8676896fba657b8737b.png"}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,(()=>{var e=[];n.O=(t,r,o,a)=>{if(!r){var l=1/0;for(u=0;u=a)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(i=!1,a0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[r,o,a]}})(),n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/react-native-ui-datepicker/",(()=>{var e={179:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,a,[l,i,c]=r,d=0;if(l.some((t=>0!==e[t]))){for(o in i)n.o(i,o)&&(n.m[o]=i[o]);if(c)var u=c(n)}for(t&&t(r);dn(6271)));r=n.O(r)})();
-//# sourceMappingURL=main.a0953296.js.map
\ No newline at end of file
diff --git a/static/js/main.a0953296.js.map b/static/js/main.a0953296.js.map
deleted file mode 100644
index 9861295..0000000
--- a/static/js/main.a0953296.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"static/js/main.a0953296.js","mappings":"oNAGaA,EAAkB,mBAClBC,EAAc,aACdC,EAAiB,GAYjBC,EAAc,SAACC,GAAc,OACxCC,IAAMD,GAAME,OAAON,EAAiB,EAIzBO,EAAc,SAACH,GAAc,OAAKC,IAAMD,GAAMI,MAAO,EAI3D,SAASC,EAAkBC,EAAaC,GAC7C,SAAKD,IAAMC,IAIIN,IAAMK,GAAGJ,OAAOL,KAChBI,IAAMM,GAAGL,OAAOL,EAGjC,CAEO,IAAMW,EAAkB,SAACR,EAAgBE,GAAc,OAC5DD,IAAMD,GAAME,OAAOA,EAAQ,EAEhBO,EAAU,SAACT,GAAc,OAAKC,IAAMD,EAAMJ,EAAiB,EAE3Dc,EAAe,SAACN,GAC3B,IAAMO,EAAUb,EAAiBc,KAAKC,KAAKT,EAAON,GAC9CgB,EAAYH,IAAYP,EAAOO,EAAUA,EAAUb,EAGvD,OADIgB,EAAY,IAAGA,EAAY,GACxBC,MAAMC,KAAK,CAAEC,OAAQnB,IAAkB,SAACoB,EAAGC,GAAC,OAAKL,EAAYK,CAAC,GACvE,EASaC,EAAgB,SAACpB,GAC5B,MAAO,CACLI,KAAMH,IAAMD,GAAMI,OAClBiB,MAAOpB,IAAMD,GAAMqB,QACnBC,KAAMrB,IAAMD,GAAMsB,OAClBC,OAAQtB,IAAMD,GAAMuB,SAExB,EAiEMC,EAAoB,SACxBC,EACAzB,EACA0B,EACAC,EACAC,GAEA,IAAIC,GAAW,EAOf,OANIH,IACFG,EAAW7B,EAAOS,EAAQiB,IAExBC,IAAYE,IACdA,EAAW7B,EAAOS,EAAQkB,IAErB,CACLG,KAAML,EAAIM,WACVN,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AAKC,GCClFxC,EAAoBuB,EAAKpB,IACH,qBAAXwC,QAA0BA,OAAOC,aAC1C1B,OAAOY,eAAe3B,EAASwC,OAAOC,YAAa,CAAEpL,MAAO,WAE7D0J,OAAOY,eAAe3B,EAAS,aAAc,CAAE3I,OAAO,GAAO,ECL9DwI,EAAoB6C,EAAI,+B,MCKxB,IAAIC,EAAkB,CACrB,IAAK,GAaN9C,EAAoBS,EAAEQ,EAAK8B,GAA0C,IAA7BD,EAAgBC,GAGxD,IAAIC,EAAuB,CAACC,EAA4BC,KACvD,IAGIjD,EAAU8C,GAHTpC,EAAUwC,EAAaC,GAAWF,EAGhBhY,EAAI,EAC3B,GAAGyV,EAAS0C,MAAMC,GAAgC,IAAxBR,EAAgBQ,KAAa,CACtD,IAAIrD,KAAYkD,EACZnD,EAAoB6B,EAAEsB,EAAalD,KACrCD,EAAoBO,EAAEN,GAAYkD,EAAYlD,IAGhD,GAAGmD,EAAS,IAAI1C,EAAS0C,EAAQpD,EAClC,CAEA,IADGiD,GAA4BA,EAA2BC,GACrDhY,EAAIyV,EAAS3V,OAAQE,IACzB6X,EAAUpC,EAASzV,GAChB8U,EAAoB6B,EAAEiB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAO/C,EAAoBS,EAAEC,EAAO,EAGjC6C,EAAqBC,KAAsB,gBAAIA,KAAsB,iBAAK,GAC9ED,EAAmBE,QAAQT,EAAqBU,KAAK,KAAM,IAC3DH,EAAmBI,KAAOX,EAAqBU,KAAK,KAAMH,EAAmBI,KAAKD,KAAKH,G,KC7CvF,IAAIK,EAAsB5D,EAAoBS,OAAE7L,EAAW,CAAC,MAAM,IAAOoL,EAAoB,QAC7F4D,EAAsB5D,EAAoBS,EAAEmD,E","sources":["../src/utils.ts","../src/enums.ts","../src/CalendarContext.tsx","../src/components/Header.tsx","../src/components/YearSelector.tsx","../src/components/MonthSelector.tsx","../src/components/Day.tsx","../src/components/DaySelector.tsx","../src/components/TimePicker/AnimatedMath.tsx","../src/components/TimePicker/Wheel.tsx","../src/components/TimeSelector.tsx","../src/components/Calendar.tsx","../src/DateTimePicker.tsx","../src/index.tsx","src/App.tsx","webpack/bootstrap","webpack/runtime/chunk loaded","webpack/runtime/compat get default export","webpack/runtime/define property getters","webpack/runtime/global","webpack/runtime/hasOwnProperty shorthand","webpack/runtime/make namespace object","webpack/runtime/publicPath","webpack/runtime/jsonp chunk loading","webpack/startup"],"sourcesContent":["import dayjs from 'dayjs';\nimport type { DateType, IDayObject } from './types';\n\nexport const CALENDAR_FORMAT = 'YYYY-MM-DD HH:mm';\nexport const DATE_FORMAT = 'YYYY-MM-DD';\nexport const YEAR_PAGE_SIZE = 12;\n\nexport const getMonths = () => dayjs.months();\n\nexport const getMonthName = (month: number) => dayjs.months()[month];\n\nexport const getWeekdays = () => dayjs.weekdays();\n\nexport const getWeekdaysShort = () => dayjs.weekdaysShort();\n\nexport const getWeekdaysMin = () => dayjs.weekdaysMin();\n\nexport const getFormated = (date: DateType) =>\n dayjs(date).format(CALENDAR_FORMAT);\n\nexport const getDateMonth = (date: DateType) => dayjs(date).month();\n\nexport const getDateYear = (date: DateType) => dayjs(date).year();\n\nexport const getToday = () => dayjs().format(DATE_FORMAT);\n\nexport function areDatesOnSameDay(a: DateType, b: DateType) {\n if (!a || !b) {\n return false;\n }\n\n const date_a = dayjs(a).format(DATE_FORMAT);\n const date_b = dayjs(b).format(DATE_FORMAT);\n\n return date_a === date_b;\n}\n\nexport const getFormatedDate = (date: DateType, format: string) =>\n dayjs(date).format(format);\n\nexport const getDate = (date: DateType) => dayjs(date, CALENDAR_FORMAT);\n\nexport const getYearRange = (year: number) => {\n const endYear = YEAR_PAGE_SIZE * Math.ceil(year / YEAR_PAGE_SIZE);\n let startYear = endYear === year ? endYear : endYear - YEAR_PAGE_SIZE;\n\n if (startYear < 0) startYear = 0;\n return Array.from({ length: YEAR_PAGE_SIZE }, (_, i) => startYear + i);\n};\n\n/**\n * Get detailed date object\n *\n * @param date Get detailed date object\n *\n * @returns parsed date object\n */\nexport const getParsedDate = (date: DateType) => {\n return {\n year: dayjs(date).year(),\n month: dayjs(date).month(),\n hour: dayjs(date).hour(),\n minute: dayjs(date).minute(),\n };\n};\n\n/**\n * Calculate month days array based on current date\n *\n * @param datetime - The current date that selected\n * @param displayFullDays\n * @param minimumDate - min selectable date\n * @param maximumDate - max selectable date\n *\n * @returns days array based on current date\n */\nexport const getMonthDays = (\n datetime: DateType = dayjs(),\n displayFullDays: boolean,\n minimumDate: DateType,\n maximumDate: DateType\n): IDayObject[] => {\n const date = getDate(datetime);\n const daysInMonth = date.daysInMonth();\n const prevMonthDays = date.add(-1, 'month').daysInMonth();\n const firstDay = date.date(1);\n const dayOfMonth = firstDay.day() % 7;\n\n const prevDays = displayFullDays\n ? Array.from({ length: dayOfMonth }, (_, i) => {\n const day = i + (prevMonthDays - dayOfMonth + 1);\n const thisDay = date.add(-1, 'month').date(day);\n return generateDayObject(day, thisDay, minimumDate, maximumDate, false);\n })\n : Array(dayOfMonth).fill(null);\n\n const monthDaysOffset = dayOfMonth + daysInMonth;\n const nextMonthDays = displayFullDays\n ? monthDaysOffset > 35\n ? 42 - monthDaysOffset\n : 35 - monthDaysOffset\n : 0;\n\n const currentDays = Array.from({ length: daysInMonth }, (_, i) => {\n const day = i + 1;\n const thisDay = date.date(day);\n return generateDayObject(day, thisDay, minimumDate, maximumDate, true);\n });\n\n const nextDays = Array.from({ length: nextMonthDays }, (_, i) => {\n const day = i + 1;\n const thisDay = date.add(1, 'month').date(day);\n return generateDayObject(day, thisDay, minimumDate, maximumDate, false);\n });\n\n return [...prevDays, ...currentDays, ...nextDays];\n};\n\n/**\n * Generate day object for displaying inside day cell\n *\n * @param day - number of day\n * @param date - calculated date based on day, month, and year\n * @param minDate - min selectable date\n * @param maxDate - max selectable date\n * @param isCurrentMonth - define the day is in the current month\n *\n * @returns days object based on current date\n */\nconst generateDayObject = (\n day: number,\n date: dayjs.Dayjs,\n minDate: DateType,\n maxDate: DateType,\n isCurrentMonth: boolean\n) => {\n let disabled = false;\n if (minDate) {\n disabled = date < getDate(minDate);\n }\n if (maxDate && !disabled) {\n disabled = date > getDate(maxDate);\n }\n return {\n text: day.toString(),\n day: day,\n date: getFormatedDate(date, DATE_FORMAT),\n disabled,\n isCurrentMonth,\n };\n};\n","export enum CalendarViews {\n day = 'day',\n month = 'month',\n year = 'year',\n time = 'time',\n}\n\nexport enum CalendarActionKind {\n SET_CALENDAR_VIEW = 'SET_CALENDAR_VIEW',\n CHANGE_CURRENT_DATE = 'CHANGE_CURRENT_DATE',\n CHANGE_CURRENT_YEAR = 'CHANGE_CURRENT_YEAR',\n CHANGE_SELECTED_DATE = 'CHANGE_SELECTED_DATE',\n}\n\nexport const CALENDAR_HEIGHT = 300;\n","import { createContext, useContext } from 'react';\nimport { CalendarViews } from './enums';\nimport type {\n DateType,\n CalendarTheme,\n CalendarModes,\n CalendarState,\n} from './types';\n\nexport interface CalendarContextType extends CalendarState {\n mode: CalendarModes;\n locale: string | ILocale;\n displayFullDays: boolean;\n minimumDate: DateType;\n maximumDate: DateType;\n theme?: CalendarTheme;\n setCalendarView: (value: CalendarViews) => void;\n onSelectDate: (date: DateType) => void;\n onSelectMonth: (month: number) => void;\n onSelectYear: (year: number) => void;\n onChangeMonth: (value: number) => void;\n onChangeYear: (value: number) => void;\n}\n\nconst CalendarContext = createContext({\n calendarView: CalendarViews.day,\n selectedDate: new Date(),\n currentDate: new Date(),\n currentYear: new Date().getFullYear(),\n mode: 'datetime',\n locale: 'en',\n minimumDate: null,\n maximumDate: null,\n displayFullDays: false,\n setCalendarView: () => {},\n onSelectDate: () => {},\n onSelectMonth: () => {},\n onSelectYear: () => {},\n onChangeMonth: () => {},\n onChangeYear: () => {},\n});\n\nexport const useCalendarContext = () => useContext(CalendarContext);\n\nexport default CalendarContext;\n","import React, { useCallback } from 'react';\nimport { View, Text, Pressable, StyleSheet, Image } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport dayjs from 'dayjs';\nimport { CalendarViews } from '../enums';\nimport type { HeaderProps } from '../types';\nimport { getDateYear, getYearRange, YEAR_PAGE_SIZE } from '../utils';\n\nconst arrow_left = require('../assets/images/arrow_left.png');\nconst arrow_right = require('../assets/images/arrow_right.png');\n\nconst Header = ({ buttonPrevIcon, buttonNextIcon }: HeaderProps) => {\n const {\n currentDate,\n selectedDate,\n currentYear,\n onChangeMonth,\n onChangeYear,\n calendarView,\n setCalendarView,\n mode,\n theme,\n locale,\n } = useCalendarContext();\n\n const currentMonthText = dayjs(currentDate).locale(locale).format('MMMM');\n\n const renderPrevButton = (\n \n calendarView === CalendarViews.day\n ? onChangeMonth(-1)\n : calendarView === CalendarViews.month\n ? onChangeYear(currentYear - 1)\n : calendarView === CalendarViews.year &&\n onChangeYear(currentYear - YEAR_PAGE_SIZE)\n }\n testID=\"btn-prev\"\n accessibilityRole=\"button\"\n accessibilityLabel=\"Prev\"\n >\n \n {buttonPrevIcon || (\n \n )}\n \n \n );\n\n const renderNextButton = (\n \n calendarView === CalendarViews.day\n ? onChangeMonth(1)\n : calendarView === CalendarViews.month\n ? onChangeYear(currentYear + 1)\n : calendarView === CalendarViews.year &&\n onChangeYear(currentYear + YEAR_PAGE_SIZE)\n }\n testID=\"btn-next\"\n accessibilityRole=\"button\"\n accessibilityLabel=\"Next\"\n >\n \n {buttonNextIcon || (\n \n )}\n \n \n );\n\n const yearSelector = useCallback(() => {\n const years = getYearRange(currentYear);\n return (\n {\n setCalendarView(\n calendarView === CalendarViews.year\n ? CalendarViews.day\n : CalendarViews.year\n );\n onChangeYear(getDateYear(currentDate));\n }}\n testID=\"btn-year\"\n accessibilityRole=\"button\"\n accessibilityLabel={dayjs(currentDate).format('YYYY')}\n >\n \n \n {calendarView === CalendarViews.year\n ? `${years.at(0)} - ${years.at(-1)}`\n : dayjs(currentDate).format('YYYY')}\n \n \n \n );\n }, [\n calendarView,\n currentDate,\n currentYear,\n setCalendarView,\n onChangeYear,\n theme,\n ]);\n\n const monthSelector = (\n \n setCalendarView(\n calendarView === CalendarViews.month\n ? CalendarViews.day\n : CalendarViews.month\n )\n }\n testID=\"btn-month\"\n accessibilityRole=\"button\"\n accessibilityLabel={currentMonthText}\n >\n \n \n {currentMonthText}\n \n \n \n );\n\n const renderSelectors = (\n <>\n \n {calendarView !== CalendarViews.year ? monthSelector : null}\n {yearSelector()}\n \n {mode === 'datetime' && calendarView !== CalendarViews.year ? (\n \n setCalendarView(\n calendarView === CalendarViews.time\n ? CalendarViews.day\n : CalendarViews.time\n )\n }\n accessibilityRole=\"button\"\n accessibilityLabel={dayjs(selectedDate).format('HH:mm')}\n >\n \n \n {dayjs(selectedDate).format('HH:mm')}\n \n \n \n ) : null}\n >\n );\n\n return (\n \n {theme?.headerButtonsPosition === 'left' ? (\n \n \n {renderPrevButton}\n {renderNextButton}\n \n {renderSelectors}\n \n ) : theme?.headerButtonsPosition === 'right' ? (\n \n {renderSelectors}\n \n {renderPrevButton}\n {renderNextButton}\n \n \n ) : (\n \n {renderPrevButton}\n {renderSelectors}\n {renderNextButton}\n \n )}\n \n );\n};\n\nconst styles = StyleSheet.create({\n headerContainer: {\n marginBottom: 5,\n },\n container: {\n padding: 5,\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n },\n selectorContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n textContainer: {\n marginHorizontal: 1,\n paddingHorizontal: 5,\n paddingVertical: 5,\n borderRadius: 5,\n },\n text: {\n fontWeight: 'bold',\n fontSize: 15,\n },\n iconContainer: {\n padding: 4,\n },\n prev: {\n marginRight: 3,\n },\n next: {\n marginLeft: 3,\n },\n row: {\n flexDirection: 'row',\n },\n});\n\nexport default Header;\n","import React, { useCallback } from 'react';\nimport {\n Text,\n View,\n Pressable,\n StyleSheet,\n TextStyle,\n ViewStyle,\n} from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport { getDateYear, getYearRange } from '../utils';\n\nconst YearSelector = () => {\n const { currentDate, currentYear, selectedDate, onSelectYear, theme } =\n useCalendarContext();\n const selectedYear = getDateYear(selectedDate);\n\n const generateCells = useCallback(() => {\n const years = getYearRange(currentYear);\n const activeYear = getDateYear(currentDate);\n const column = years.map((year) => {\n const activeItemStyle: ViewStyle =\n year === selectedYear\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n backgroundColor: theme?.selectedItemColor || '#0047FF',\n }\n : year === activeYear\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n }\n : {};\n\n const textStyle: TextStyle =\n year === selectedYear\n ? { color: '#fff', ...theme?.selectedTextStyle }\n : year === activeYear\n ? {\n color: theme?.selectedItemColor || '#0047FF',\n fontWeight: 'bold',\n }\n : { ...theme?.calendarTextStyle };\n\n return (\n onSelectYear(year)}\n style={styles.yearCell}\n accessibilityRole=\"button\"\n accessibilityLabel={year.toString()}\n >\n \n \n {year}\n \n \n \n );\n });\n return column;\n }, [onSelectYear, selectedYear, currentYear, currentDate, theme]);\n\n return (\n \n {generateCells()}\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n margin: 5,\n width: '100%',\n },\n yearCell: {\n width: '33.3%',\n },\n years: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n width: '100%',\n },\n year: {\n paddingVertical: 15,\n margin: 2,\n alignItems: 'center',\n borderWidth: 1,\n borderRadius: 8,\n borderColor: '#E5E5E5',\n backgroundColor: '#FFFFFF',\n },\n});\n\nexport default YearSelector;\n","import React from 'react';\nimport { Text, View, Pressable, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport { getParsedDate, getMonths } from '../utils';\n\nconst MonthSelector = () => {\n const { currentDate, onSelectMonth, theme } = useCalendarContext();\n const { month } = getParsedDate(currentDate);\n\n return (\n \n \n {getMonths()?.map((item, index) => {\n const activeItemStyle =\n index === month\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n backgroundColor: theme?.selectedItemColor || '#0047FF',\n }\n : null;\n\n const textStyle =\n index === month\n ? { color: '#fff', ...theme?.selectedTextStyle }\n : theme?.calendarTextStyle;\n\n return (\n onSelectMonth(index)}\n accessibilityRole=\"button\"\n accessibilityLabel={item}\n >\n \n \n {item}\n \n \n \n );\n })}\n \n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n monthsContainer: {\n flexDirection: 'row',\n flexWrap: 'wrap',\n },\n monthCell: {\n width: '33.3%',\n },\n month: {\n paddingVertical: 15,\n margin: 2,\n alignItems: 'center',\n borderWidth: 1,\n borderRadius: 8,\n borderColor: '#E5E5E5',\n backgroundColor: '#FFFFFF',\n },\n});\n\nexport default MonthSelector;\n","import React from 'react';\nimport { View, Text, Pressable, StyleSheet } from 'react-native';\nimport { CalendarTheme, IDayObject } from '../types';\nimport { CALENDAR_HEIGHT } from '../enums';\n\ntype Props = {\n day?: IDayObject;\n theme?: CalendarTheme;\n isToday: boolean;\n selected: boolean;\n onSelectDate: (date: string) => void;\n};\n\nconst Day = ({ day, theme, isToday, selected, onSelectDate }: Props) => {\n const dayContainerStyle =\n day && day.isCurrentMonth ? theme?.dayContainerStyle : { opacity: 0.3 };\n\n const todayItemStyle = isToday\n ? {\n borderWidth: 2,\n borderColor: theme?.selectedItemColor || '#0047FF',\n ...theme?.todayContainerStyle,\n }\n : null;\n\n const activeItemStyle = selected\n ? {\n borderColor: theme?.selectedItemColor || '#0047FF',\n backgroundColor: theme?.selectedItemColor || '#0047FF',\n }\n : null;\n\n const textStyle = selected\n ? { color: '#fff', ...theme?.selectedTextStyle }\n : isToday\n ? {\n ...theme?.calendarTextStyle,\n color: theme?.selectedItemColor || '#0047FF',\n ...theme?.todayTextStyle,\n }\n : theme?.calendarTextStyle;\n\n return (\n \n {day ? (\n onSelectDate(day.date)}\n style={[\n styles.dayContainer,\n dayContainerStyle,\n todayItemStyle,\n activeItemStyle,\n day.disabled && styles.disabledDay,\n ]}\n testID={day.date}\n accessibilityRole=\"button\"\n accessibilityLabel={day.date}\n >\n \n {day.text}\n \n \n ) : null}\n \n );\n};\n\nconst styles = StyleSheet.create({\n dayCell: {\n width: '14.2%',\n height: CALENDAR_HEIGHT / 7 - 1,\n },\n dayContainer: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n margin: 1.5,\n borderRadius: 100,\n },\n dayTextContainer: {\n justifyContent: 'center',\n alignItems: 'center',\n },\n disabledDay: {\n opacity: 0.3,\n },\n});\n\nexport default React.memo(Day);\n","import React, { useMemo, useCallback } from 'react';\nimport { Text, View, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport Day from './Day';\nimport {\n getParsedDate,\n getMonthDays,\n getWeekdaysMin,\n areDatesOnSameDay,\n getDate,\n getFormated,\n} from '../utils';\n\nconst DaySelector = () => {\n const {\n currentDate,\n selectedDate,\n onSelectDate,\n displayFullDays,\n minimumDate,\n maximumDate,\n theme,\n } = useCalendarContext();\n const { year, month, hour, minute } = getParsedDate(currentDate);\n\n const daysGrid = useMemo(\n () => {\n const today = new Date();\n return getMonthDays(\n currentDate,\n displayFullDays,\n minimumDate,\n maximumDate\n ).map((day) => {\n const isToday = areDatesOnSameDay(day?.date, today);\n const selected = areDatesOnSameDay(day?.date, selectedDate);\n return {\n ...day,\n isToday,\n selected,\n };\n });\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [month, year, displayFullDays, minimumDate, maximumDate, selectedDate]\n );\n\n const handleSelectDate = useCallback(\n (date: string) => {\n const newDate = getDate(date).hour(hour).minute(minute);\n\n onSelectDate(getFormated(newDate));\n },\n [onSelectDate, hour, minute]\n );\n\n return (\n \n \n {getWeekdaysMin()?.map((item, index) => (\n \n {item}\n \n ))}\n \n \n {daysGrid?.map((day, index) => {\n return (\n \n );\n })}\n \n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n paddingTop: 5,\n width: '100%',\n },\n weekDaysContainer: {\n width: '100%',\n flexDirection: 'row',\n paddingBottom: 10,\n paddingTop: 5,\n marginBottom: 10,\n alignItems: 'center',\n borderBottomWidth: 1,\n borderColor: '#E5E5E5',\n },\n weekDayCell: {\n width: '14.2%',\n alignItems: 'center',\n justifyContent: 'center',\n },\n daysContainer: {\n flex: 1,\n width: '100%',\n height: '100%',\n flexWrap: 'wrap',\n flexDirection: 'row',\n alignContent: 'flex-start',\n },\n});\n\nexport default DaySelector;\n","import { Animated } from 'react-native';\n\nconst FACTORIAL_3 = 3 * 2;\nconst FACTORIAL_5 = 5 * 4 * FACTORIAL_3;\nconst FACTORIAL_7 = 7 * 6 * FACTORIAL_5;\n\nfunction sin(animated: Animated.Animated) {\n const normalized = normalize(animated);\n const square = Animated.multiply(normalized, normalized);\n const pow3 = Animated.multiply(normalized, square);\n const pow5 = Animated.multiply(pow3, square);\n const pow7 = Animated.multiply(pow5, square);\n\n return Animated.add(\n Animated.add(normalized, Animated.multiply(pow3, -1 / FACTORIAL_3)),\n Animated.add(\n Animated.multiply(pow5, 1 / FACTORIAL_5),\n Animated.multiply(pow7, -1 / FACTORIAL_7)\n )\n );\n}\n\nfunction normalize(animated: Animated.Animated): Animated.Animated {\n return Animated.add(\n Animated.modulo(Animated.add(animated, Math.PI), Math.PI * 2),\n -Math.PI\n ).interpolate({\n inputRange: [-Math.PI, -Math.PI / 2, Math.PI / 2, Math.PI],\n outputRange: [0, -Math.PI / 2, Math.PI / 2, 0],\n });\n}\n\nexport { sin, normalize };\n","import {\n Animated,\n PanResponder,\n StyleSheet,\n TextStyle,\n View,\n ViewStyle,\n Platform,\n} from 'react-native';\nimport React, { memo, useMemo, useRef } from 'react';\nimport { sin } from './AnimatedMath';\nimport { CALENDAR_HEIGHT } from '../../enums';\n\nexport interface WheelStyleProps {\n containerStyle?: ViewStyle;\n itemHeight?: number;\n selectedColor?: string;\n disabledColor?: string;\n textStyle?: TextStyle;\n wheelHeight?: number;\n displayCount?: number;\n}\n\nexport interface WheelProps extends WheelStyleProps {\n value: number;\n setValue: (value: number) => void;\n items: number[];\n}\n\nconst Wheel = ({\n value,\n setValue,\n items,\n containerStyle,\n textStyle,\n itemHeight,\n selectedColor = 'black',\n disabledColor = 'gray',\n wheelHeight,\n displayCount = 5,\n}: WheelProps) => {\n const translateY = useRef(new Animated.Value(0)).current;\n const renderCount =\n displayCount * 2 < items.length\n ? displayCount * 4 + 1\n : displayCount * 2 - 1;\n const circular = items.length >= displayCount;\n const height =\n typeof containerStyle?.height === 'number' ? containerStyle.height : 130;\n const radius = wheelHeight != null ? wheelHeight / 2 : height / 2;\n\n const valueIndex = items.indexOf(value);\n\n const panResponder = useMemo(() => {\n return PanResponder.create({\n onMoveShouldSetPanResponder: () => true,\n onStartShouldSetPanResponderCapture: () => true,\n onPanResponderGrant: () => {\n translateY.setValue(0);\n },\n onPanResponderMove: (evt, gestureState) => {\n translateY.setValue(gestureState.dy);\n evt.stopPropagation();\n },\n onPanResponderRelease: (_, gestureState) => {\n translateY.extractOffset();\n let newValueIndex =\n valueIndex -\n Math.round(gestureState.dy / ((radius * 2) / displayCount));\n if (circular)\n newValueIndex = (newValueIndex + items.length) % items.length;\n else {\n if (newValueIndex < 0) newValueIndex = 0;\n else if (newValueIndex >= items.length)\n newValueIndex = items.length - 1;\n }\n const newValue = items[newValueIndex] || 0;\n if (newValue === value) {\n translateY.setOffset(0);\n translateY.setValue(0);\n } else setValue(newValue);\n },\n });\n }, [\n circular,\n displayCount,\n radius,\n setValue,\n value,\n valueIndex,\n items,\n translateY,\n ]);\n\n const displayValues = useMemo(() => {\n const centerIndex = Math.floor(renderCount / 2);\n\n return Array.from({ length: renderCount }, (_, index) => {\n let targetIndex = valueIndex + index - centerIndex;\n if (targetIndex < 0 || targetIndex >= items.length) {\n targetIndex = (targetIndex + items.length) % items.length;\n }\n return items[targetIndex] || 0;\n });\n }, [renderCount, valueIndex, items]);\n\n const animatedAngles = useMemo(() => {\n //translateY.setValue(0);\n translateY.setOffset(0);\n const currentIndex = displayValues.indexOf(value);\n return displayValues && displayValues.length > 0\n ? displayValues.map((_, index) =>\n translateY\n .interpolate({\n inputRange: [-radius, radius],\n outputRange: [\n -radius +\n ((radius * 2) / displayCount) * (index - currentIndex),\n radius + ((radius * 2) / displayCount) * (index - currentIndex),\n ],\n extrapolate: 'extend',\n })\n .interpolate({\n inputRange: [-radius, radius],\n outputRange: [-Math.PI / 2, Math.PI / 2],\n extrapolate: 'clamp',\n })\n )\n : [];\n }, [displayValues, radius, value, displayCount, translateY]);\n\n return (\n \n {displayValues?.map((displayValue, index) => {\n const animatedAngle = animatedAngles[index];\n return (\n displayValues.length / 2 ? 'Post' : 'Before'\n }${displayValue + index}`}\n style={[\n textStyle,\n // eslint-disable-next-line react-native/no-inline-styles\n {\n position: 'absolute',\n height: itemHeight,\n transform: animatedAngle\n ? [\n {\n translateY: Animated.multiply(\n radius,\n sin(animatedAngle)\n ),\n },\n {\n rotateX: animatedAngle.interpolate({\n inputRange: [-Math.PI / 2, Math.PI / 2],\n outputRange: ['-89deg', '89deg'],\n extrapolate: 'clamp',\n }),\n },\n ]\n : [],\n color: displayValue === value ? selectedColor : disabledColor,\n },\n ]}\n >\n {typeof displayValue === 'number' && displayValue < 10\n ? `0${displayValue}`\n : `${displayValue}`}\n \n );\n })}\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n minWidth: 30,\n overflow: 'hidden',\n alignItems: 'center',\n justifyContent: 'center',\n height: CALENDAR_HEIGHT / 2,\n ...Platform.select({\n web: {\n cursor: 'pointer',\n userSelect: 'none',\n },\n }),\n },\n contentContainer: {\n justifyContent: 'space-between',\n alignItems: 'center',\n },\n});\n\nexport default memo(Wheel);\n","import React from 'react';\nimport { Text, View, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport Wheel from './TimePicker/Wheel';\nimport { CALENDAR_HEIGHT } from '../enums';\nimport { getParsedDate, getDate, getFormated } from '../utils';\n\nfunction createNumberList(num: number) {\n return new Array(num).fill(0).map((_, index) => index);\n}\n\nconst TimeSelector = () => {\n const { selectedDate, currentDate, onSelectDate, theme } =\n useCalendarContext();\n const { hour, minute } = getParsedDate(selectedDate);\n\n return (\n \n \n \n {\n const newDate = getDate(currentDate).hour(value);\n onSelectDate(getFormated(newDate));\n }}\n />\n \n \n :\n \n \n {\n const newDate = getDate(currentDate).minute(value);\n onSelectDate(getFormated(newDate));\n }}\n />\n \n \n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n alignItems: 'center',\n justifyContent: 'center',\n },\n wheelContainer: {\n flex: 1,\n },\n timePickerContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n width: CALENDAR_HEIGHT / 2,\n height: CALENDAR_HEIGHT / 2,\n },\n timePickerText: {\n fontSize: 24,\n fontWeight: 'bold',\n },\n});\n\nexport default TimeSelector;\n","import React, { ReactNode } from 'react';\nimport { View, StyleSheet } from 'react-native';\nimport { useCalendarContext } from '../CalendarContext';\nimport type { CalendarViews } from '../enums';\nimport type { HeaderProps } from '../types';\nimport Header from './Header';\nimport YearSelector from './YearSelector';\nimport MonthSelector from './MonthSelector';\nimport DaySelector from './DaySelector';\nimport TimeSelector from './TimeSelector';\nimport { CALENDAR_HEIGHT } from '../enums';\n\nconst CalendarView: Record = {\n year: ,\n month: ,\n day: ,\n time: ,\n};\n\ninterface PropTypes extends HeaderProps {}\n\nconst Calendar = ({ buttonPrevIcon, buttonNextIcon }: PropTypes) => {\n const { calendarView, mode } = useCalendarContext();\n\n return (\n \n {mode !== 'time' ? (\n \n ) : null}\n {CalendarView[calendarView]}\n \n );\n};\n\nconst styles = StyleSheet.create({\n container: {\n width: '100%',\n },\n calendarContainer: {\n height: CALENDAR_HEIGHT,\n alignItems: 'center',\n },\n});\n\nexport default Calendar;\n","import React, { useEffect, useReducer } from 'react';\nimport { getFormated, getDate, getDateYear } from './utils';\nimport CalendarContext from './CalendarContext';\nimport { CalendarViews, CalendarActionKind } from './enums';\nimport type {\n DateType,\n CalendarModes,\n CalendarAction,\n CalendarState,\n CalendarTheme,\n HeaderProps,\n} from './types';\nimport Calendar from './components/Calendar';\nimport dayjs from 'dayjs';\nimport localeData from 'dayjs/plugin/localeData';\nimport relativeTime from 'dayjs/plugin/relativeTime';\nimport localizedFormat from 'dayjs/plugin/localizedFormat';\n\ndayjs.extend(localeData);\ndayjs.extend(relativeTime);\ndayjs.extend(localizedFormat);\n\ninterface PropTypes extends CalendarTheme, HeaderProps {\n value: DateType;\n mode?: CalendarModes;\n locale?: string | ILocale;\n minimumDate?: DateType;\n maximumDate?: DateType;\n onValueChange?: (value: DateType) => void;\n displayFullDays?: boolean;\n}\n\nconst DateTimePicker = ({\n value,\n mode = 'datetime',\n locale = 'en',\n minimumDate = null,\n maximumDate = null,\n onValueChange = () => {},\n displayFullDays = false,\n headerButtonsPosition = 'around',\n headerContainerStyle,\n headerTextContainerStyle,\n headerTextStyle,\n headerButtonStyle,\n headerButtonColor,\n headerButtonSize,\n dayContainerStyle,\n todayContainerStyle,\n todayTextStyle,\n monthContainerStyle,\n yearContainerStyle,\n weekDaysContainerStyle,\n weekDaysTextStyle,\n calendarTextStyle,\n selectedTextStyle,\n selectedItemColor,\n timePickerContainerStyle,\n timePickerTextStyle,\n buttonPrevIcon,\n buttonNextIcon,\n}: Partial) => {\n dayjs.locale(locale);\n\n const theme = {\n headerButtonsPosition,\n headerContainerStyle,\n headerTextContainerStyle,\n headerTextStyle,\n headerButtonStyle,\n headerButtonColor,\n headerButtonSize,\n dayContainerStyle,\n todayContainerStyle,\n todayTextStyle,\n monthContainerStyle,\n yearContainerStyle,\n weekDaysContainerStyle,\n weekDaysTextStyle,\n calendarTextStyle,\n selectedTextStyle,\n selectedItemColor,\n timePickerContainerStyle,\n timePickerTextStyle,\n };\n\n const [state, dispatch] = useReducer(\n (prevState: CalendarState, action: CalendarAction) => {\n switch (action.type) {\n case CalendarActionKind.SET_CALENDAR_VIEW:\n return {\n ...prevState,\n calendarView: action.payload,\n };\n case CalendarActionKind.CHANGE_CURRENT_DATE:\n return {\n ...prevState,\n currentDate: action.payload,\n };\n case CalendarActionKind.CHANGE_CURRENT_YEAR:\n return {\n ...prevState,\n currentYear: action.payload,\n };\n case CalendarActionKind.CHANGE_SELECTED_DATE:\n return {\n ...prevState,\n selectedDate: action.payload,\n };\n }\n },\n {\n calendarView: mode === 'time' ? CalendarViews.time : CalendarViews.day,\n selectedDate: value ? getFormated(value) : new Date(),\n currentDate: value ? getFormated(value) : new Date(),\n currentYear: value ? getDateYear(value) : new Date().getFullYear(),\n }\n );\n\n useEffect(() => {\n dispatch({\n type: CalendarActionKind.CHANGE_SELECTED_DATE,\n payload: value,\n });\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: value,\n });\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_YEAR,\n payload: getDateYear(value),\n });\n }, [value]);\n\n useEffect(() => {\n dispatch({\n type: CalendarActionKind.SET_CALENDAR_VIEW,\n payload: mode === 'time' ? CalendarViews.time : CalendarViews.day,\n });\n }, [mode]);\n\n const actions = {\n setCalendarView: (view: CalendarViews) =>\n dispatch({ type: CalendarActionKind.SET_CALENDAR_VIEW, payload: view }),\n onSelectDate: (date: DateType) => {\n onValueChange(date);\n dispatch({\n type: CalendarActionKind.CHANGE_SELECTED_DATE,\n payload: date,\n });\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: date,\n });\n },\n onSelectMonth: (month: number) => {\n const newDate = getDate(state.currentDate).month(month);\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: getFormated(newDate),\n });\n dispatch({\n type: CalendarActionKind.SET_CALENDAR_VIEW,\n payload: CalendarViews.day,\n });\n },\n onSelectYear: (year: number) => {\n const newDate = getDate(state.currentDate).year(year);\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: getFormated(newDate),\n });\n dispatch({\n type: CalendarActionKind.SET_CALENDAR_VIEW,\n payload: CalendarViews.day,\n });\n },\n onChangeMonth: (month: number) => {\n const newDate = getDate(state.currentDate).add(month, 'month');\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_DATE,\n payload: getFormated(newDate),\n });\n },\n onChangeYear: (year: number) => {\n dispatch({\n type: CalendarActionKind.CHANGE_CURRENT_YEAR,\n payload: year,\n });\n },\n };\n\n return (\n \n \n \n );\n};\n\nexport default DateTimePicker;\n","import DateTimePicker from './DateTimePicker';\nimport type { DateType } from './types';\n\nexport { DateType };\nexport default DateTimePicker;\n","import React, { useState } from 'react';\nimport {\n StyleSheet,\n View,\n Text,\n Pressable,\n Image,\n Linking,\n SafeAreaView,\n} from 'react-native';\nimport DateTimePicker, { DateType } from 'react-native-ui-datepicker';\nimport dayjs from 'dayjs';\nimport 'dayjs/locale/en';\nimport 'dayjs/locale/de';\nimport 'dayjs/locale/es';\nimport 'dayjs/locale/fr';\nimport 'dayjs/locale/tr';\n\ninterface ITheme {\n mainColor: string;\n activeTextColor: string;\n}\n\nconst Themes: ITheme[] = [\n { mainColor: '#0047FF', activeTextColor: '#fff' },\n { mainColor: '#00D27A', activeTextColor: '#fff' },\n { mainColor: '#F5803E', activeTextColor: '#fff' },\n { mainColor: '#E63757', activeTextColor: '#fff' },\n { mainColor: '#D8E3FF', activeTextColor: '#0047FF' },\n { mainColor: '#CCF6E4', activeTextColor: '#00864E' },\n { mainColor: '#FDE6D8', activeTextColor: '#9D5228' },\n { mainColor: '#FAD7DD', activeTextColor: '#932338' },\n];\n\nconst Locales = ['en', 'de', 'es', 'fr', 'tr'];\n\nexport default function App() {\n const [value, setValue] = useState(dayjs());\n const [theme, setTheme] = useState(Themes[0]);\n const [locale, setLocale] = useState('en');\n\n return (\n \n \n \n React Native UI DatePicker\n \n \n {Themes.map((item, index) => (\n setTheme(item)}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Set Active Theme\"\n />\n ))}\n \n \n {Locales.map((item, index) => (\n setLocale(item)}\n accessibilityRole=\"button\"\n accessibilityLabel={item.toUpperCase()}\n >\n \n {item.toUpperCase()}\n \n \n ))}\n \n \n \n setValue(date)}\n headerButtonColor={theme?.mainColor}\n selectedItemColor={theme?.mainColor}\n // eslint-disable-next-line react-native/no-inline-styles\n selectedTextStyle={{\n fontWeight: 'bold',\n color: theme?.activeTextColor,\n }}\n // eslint-disable-next-line react-native/no-inline-styles\n todayContainerStyle={{\n borderWidth: 1,\n }}\n mode=\"datetime\"\n />\n \n \n {dayjs(value).locale(locale).format('MMMM, DD, YYYY - HH:mm')}\n \n {\n setValue(dayjs());\n }}\n accessibilityRole=\"button\"\n accessibilityLabel=\"Today\"\n >\n \n \n Today\n \n \n \n \n \n \n \n \n Linking.openURL(\n 'https://github.com/farhoudshapouran/react-native-ui-datepicker'\n )\n }\n accessibilityRole=\"button\"\n accessibilityLabel=\"Check repository on GitHub\"\n >\n \n Check repository on GitHub\n \n \n \n \n );\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#F5FCFF',\n },\n body: {\n flex: 1,\n backgroundColor: '#F5FCFF',\n alignItems: 'center',\n },\n titleContainer: {\n paddingVertical: 20,\n alignItems: 'center',\n backgroundColor: '#fff',\n marginBottom: 20,\n width: '100%',\n },\n title: { fontSize: 18, fontWeight: 'bold' },\n themeContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-around',\n marginBottom: 10,\n width: 330,\n },\n themeButton: {\n borderWidth: 4,\n width: 32,\n height: 32,\n borderRadius: 32,\n margin: 5,\n shadowRadius: 20,\n shadowColor: '#000',\n shadowOpacity: 0.1,\n shadowOffset: { width: 0, height: 0 },\n },\n localeContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n marginBottom: 20,\n },\n localeButton: {\n alignItems: 'center',\n justifyContent: 'center',\n width: 36,\n height: 36,\n borderRadius: 36,\n margin: 2,\n },\n localeButtonText: {\n fontSize: 15,\n },\n datePickerContainer: {\n alignItems: 'center',\n },\n datePicker: {\n width: 330,\n backgroundColor: '#fff',\n padding: 15,\n borderRadius: 15,\n shadowRadius: 20,\n shadowColor: '#000',\n shadowOpacity: 0.1,\n shadowOffset: { width: 0, height: 0 },\n },\n footerContainer: {\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n paddingHorizontal: 5,\n paddingVertical: 5,\n },\n todayButton: {\n paddingHorizontal: 16,\n paddingVertical: 10,\n borderRadius: 8,\n },\n todayButtonText: {\n fontWeight: 'bold',\n },\n githubContainer: {\n paddingVertical: 20,\n },\n githubLink: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n githubLogo: {\n width: 22,\n height: 22,\n },\n githubText: {\n marginLeft: 8,\n },\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"/react-native-ui-datepicker/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkweb\"] = self[\"webpackChunkweb\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [951], () => (__webpack_require__(6271)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["CALENDAR_FORMAT","DATE_FORMAT","YEAR_PAGE_SIZE","getFormated","date","dayjs","format","getDateYear","year","areDatesOnSameDay","a","b","getFormatedDate","getDate","getYearRange","endYear","Math","ceil","startYear","Array","from","length","_","i","getParsedDate","month","hour","minute","generateDayObject","day","minDate","maxDate","isCurrentMonth","disabled","text","toString","CalendarViews","CalendarActionKind","CALENDAR_HEIGHT","CalendarContext","createContext","calendarView","selectedDate","Date","currentDate","currentYear","getFullYear","mode","locale","minimumDate","maximumDate","displayFullDays","setCalendarView","onSelectDate","onSelectMonth","onSelectYear","onChangeMonth","onChangeYear","useCalendarContext","useContext","arrow_left","require","arrow_right","styles","StyleSheet","create","headerContainer","marginBottom","container","padding","flexDirection","alignItems","justifyContent","selectorContainer","textContainer","marginHorizontal","paddingHorizontal","paddingVertical","borderRadius","fontWeight","fontSize","iconContainer","prev","marginRight","next","marginLeft","row","_ref","buttonPrevIcon","buttonNextIcon","_useCalendarContext","theme","currentMonthText","renderPrevButton","_jsx","Pressable","time","onPress","testID","accessibilityRole","accessibilityLabel","children","View","style","headerButtonStyle","Image","source","width","headerButtonSize","height","tintColor","headerButtonColor","renderNextButton","yearSelector","useCallback","years","headerTextContainerStyle","Text","headerTextStyle","at","monthSelector","renderSelectors","_jsxs","_Fragment","headerContainerStyle","headerButtonsPosition","flex","margin","yearCell","flexWrap","borderWidth","borderColor","backgroundColor","selectedYear","generateCells","activeYear","map","activeItemStyle","selectedItemColor","textStyle","_objectSpread","color","selectedTextStyle","calendarTextStyle","yearContainerStyle","monthsContainer","monthCell","_getMonths","item","index","monthContainerStyle","dayCell","dayContainer","dayTextContainer","disabledDay","opacity","React","isToday","selected","dayContainerStyle","todayItemStyle","todayContainerStyle","todayTextStyle","paddingTop","weekDaysContainer","paddingBottom","borderBottomWidth","weekDayCell","daysContainer","alignContent","_getWeekdaysMin","_getParsedDate","daysGrid","useMemo","today","datetime","arguments","undefined","daysInMonth","prevMonthDays","add","dayOfMonth","prevDays","thisDay","fill","monthDaysOffset","nextMonthDays","currentDays","nextDays","concat","_toConsumableArray","getMonthDays","handleSelectDate","newDate","weekDaysContainerStyle","weekDaysTextStyle","Day","sin","animated","normalized","Animated","modulo","PI","interpolate","inputRange","outputRange","normalize","square","multiply","pow3","pow5","pow7","minWidth","overflow","Platform","select","web","cursor","userSelect","contentContainer","memo","value","setValue","items","containerStyle","itemHeight","_ref$selectedColor","selectedColor","_ref$disabledColor","disabledColor","wheelHeight","_ref$displayCount","displayCount","translateY","useRef","Value","current","renderCount","circular","radius","valueIndex","indexOf","panResponder","PanResponder","onMoveShouldSetPanResponder","onStartShouldSetPanResponderCapture","onPanResponderGrant","onPanResponderMove","evt","gestureState","dy","stopPropagation","onPanResponderRelease","extractOffset","newValueIndex","round","newValue","setOffset","displayValues","centerIndex","floor","targetIndex","animatedAngles","currentIndex","extrapolate","panHandlers","displayValue","animatedAngle","position","transform","rotateX","createNumberList","num","wheelContainer","timePickerContainer","timePickerText","timePickerContainerStyle","Wheel","timePickerTextStyle","CalendarView","YearSelector","MonthSelector","DaySelector","TimeSelector","calendarContainer","Header","localeData","relativeTime","localizedFormat","_ref$mode","_ref$locale","_ref$minimumDate","_ref$maximumDate","_ref$onValueChange","onValueChange","_ref$displayFullDays","_ref$headerButtonsPos","_useReducer","useReducer","prevState","action","type","SET_CALENDAR_VIEW","payload","CHANGE_CURRENT_DATE","CHANGE_CURRENT_YEAR","CHANGE_SELECTED_DATE","_useReducer2","_slicedToArray","state","dispatch","useEffect","actions","view","Provider","Calendar","Themes","mainColor","activeTextColor","Locales","App","_useState","useState","_useState2","_useState3","_useState4","setTheme","_useState5","_useState6","setLocale","SafeAreaView","body","titleContainer","title","themeContainer","themeButton","localeContainer","localeButton","toUpperCase","localeButtonText","datePickerContainer","datePicker","DateTimePicker","footerContainer","todayButton","todayButtonText","githubContainer","githubLink","Linking","openURL","githubLogo","githubText","shadowRadius","shadowColor","shadowOpacity","shadowOffset","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","Object","keys","every","key","splice","r","n","getter","__esModule","d","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","e","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","data","moreModules","runtime","some","id","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}
\ No newline at end of file