@telsho/react-google-flight-datepicker 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/back-CP7UAS2G.svg +1 -0
- package/dist/calendar-P2OTLJJM.svg +1 -0
- package/dist/index.css +2 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +47 -0
- package/dist/index.d.ts +47 -7
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -0
- package/dist/next-EJ77CHMG.svg +1 -0
- package/dist/prev-XR4S5NRO.svg +1 -0
- package/package.json +18 -42
- package/dist/1014.index.js +0 -2
- package/dist/1014.index.js.map +0 -1
- package/dist/1024.index.js +0 -2
- package/dist/1024.index.js.map +0 -1
- package/dist/1037.index.js +0 -2
- package/dist/1037.index.js.map +0 -1
- package/dist/1048.index.js +0 -2
- package/dist/1048.index.js.map +0 -1
- package/dist/1127.index.js +0 -2
- package/dist/1127.index.js.map +0 -1
- package/dist/1131.index.js +0 -2
- package/dist/1131.index.js.map +0 -1
- package/dist/1162.index.js +0 -2
- package/dist/1162.index.js.map +0 -1
- package/dist/1172.index.js +0 -2
- package/dist/1172.index.js.map +0 -1
- package/dist/120.index.js +0 -2
- package/dist/120.index.js.map +0 -1
- package/dist/1216.index.js +0 -2
- package/dist/1216.index.js.map +0 -1
- package/dist/1270.index.js +0 -2
- package/dist/1270.index.js.map +0 -1
- package/dist/1349.index.js +0 -2
- package/dist/1349.index.js.map +0 -1
- package/dist/1409.index.js +0 -2
- package/dist/1409.index.js.map +0 -1
- package/dist/1432.index.js +0 -2
- package/dist/1432.index.js.map +0 -1
- package/dist/164.index.js +0 -2
- package/dist/164.index.js.map +0 -1
- package/dist/1709.index.js +0 -2
- package/dist/1709.index.js.map +0 -1
- package/dist/1733.index.js +0 -2
- package/dist/1733.index.js.map +0 -1
- package/dist/1999.index.js +0 -2
- package/dist/1999.index.js.map +0 -1
- package/dist/2149.index.js +0 -2
- package/dist/2149.index.js.map +0 -1
- package/dist/2163.index.js +0 -2
- package/dist/2163.index.js.map +0 -1
- package/dist/2219.index.js +0 -2
- package/dist/2219.index.js.map +0 -1
- package/dist/2285.index.js +0 -2
- package/dist/2285.index.js.map +0 -1
- package/dist/229.index.js +0 -2
- package/dist/229.index.js.map +0 -1
- package/dist/2345.index.js +0 -2
- package/dist/2345.index.js.map +0 -1
- package/dist/2388.index.js +0 -2
- package/dist/2388.index.js.map +0 -1
- package/dist/2541.index.js +0 -2
- package/dist/2541.index.js.map +0 -1
- package/dist/2734.index.js +0 -2
- package/dist/2734.index.js.map +0 -1
- package/dist/2837.index.js +0 -2
- package/dist/2837.index.js.map +0 -1
- package/dist/2880.index.js +0 -2
- package/dist/2880.index.js.map +0 -1
- package/dist/3117.index.js +0 -2
- package/dist/3117.index.js.map +0 -1
- package/dist/3119.index.js +0 -2
- package/dist/3119.index.js.map +0 -1
- package/dist/3183.index.js +0 -2
- package/dist/3183.index.js.map +0 -1
- package/dist/3212.index.js +0 -2
- package/dist/3212.index.js.map +0 -1
- package/dist/3237.index.js +0 -2
- package/dist/3237.index.js.map +0 -1
- package/dist/3274.index.js +0 -2
- package/dist/3274.index.js.map +0 -1
- package/dist/3306.index.js +0 -2
- package/dist/3306.index.js.map +0 -1
- package/dist/3430.index.js +0 -2
- package/dist/3430.index.js.map +0 -1
- package/dist/3438.index.js +0 -2
- package/dist/3438.index.js.map +0 -1
- package/dist/3613.index.js +0 -2
- package/dist/3613.index.js.map +0 -1
- package/dist/3641.index.js +0 -2
- package/dist/3641.index.js.map +0 -1
- package/dist/3838.index.js +0 -2
- package/dist/3838.index.js.map +0 -1
- package/dist/3920.index.js +0 -2
- package/dist/3920.index.js.map +0 -1
- package/dist/3947.index.js +0 -2
- package/dist/3947.index.js.map +0 -1
- package/dist/4010.index.js +0 -2
- package/dist/4010.index.js.map +0 -1
- package/dist/406.index.js +0 -2
- package/dist/406.index.js.map +0 -1
- package/dist/4063.index.js +0 -2
- package/dist/4063.index.js.map +0 -1
- package/dist/424.index.js +0 -2
- package/dist/424.index.js.map +0 -1
- package/dist/4254.index.js +0 -2
- package/dist/4254.index.js.map +0 -1
- package/dist/4351.index.js +0 -2
- package/dist/4351.index.js.map +0 -1
- package/dist/454.index.js +0 -2
- package/dist/454.index.js.map +0 -1
- package/dist/4565.index.js +0 -2
- package/dist/4565.index.js.map +0 -1
- package/dist/4610.index.js +0 -2
- package/dist/4610.index.js.map +0 -1
- package/dist/4676.index.js +0 -2
- package/dist/4676.index.js.map +0 -1
- package/dist/4769.index.js +0 -2
- package/dist/4769.index.js.map +0 -1
- package/dist/4780.index.js +0 -2
- package/dist/4780.index.js.map +0 -1
- package/dist/4785.index.js +0 -2
- package/dist/4785.index.js.map +0 -1
- package/dist/4868.index.js +0 -2
- package/dist/4868.index.js.map +0 -1
- package/dist/4892.index.js +0 -2
- package/dist/4892.index.js.map +0 -1
- package/dist/497.index.js +0 -2
- package/dist/497.index.js.map +0 -1
- package/dist/5081.index.js +0 -2
- package/dist/5081.index.js.map +0 -1
- package/dist/5204.index.js +0 -2
- package/dist/5204.index.js.map +0 -1
- package/dist/5206.index.js +0 -2
- package/dist/5206.index.js.map +0 -1
- package/dist/5328.index.js +0 -2
- package/dist/5328.index.js.map +0 -1
- package/dist/5329.index.js +0 -2
- package/dist/5329.index.js.map +0 -1
- package/dist/5334.index.js +0 -2
- package/dist/5334.index.js.map +0 -1
- package/dist/5363.index.js +0 -2
- package/dist/5363.index.js.map +0 -1
- package/dist/5606.index.js +0 -2
- package/dist/5606.index.js.map +0 -1
- package/dist/5705.index.js +0 -2
- package/dist/5705.index.js.map +0 -1
- package/dist/5780.index.js +0 -2
- package/dist/5780.index.js.map +0 -1
- package/dist/6034.index.js +0 -2
- package/dist/6034.index.js.map +0 -1
- package/dist/6060.index.js +0 -2
- package/dist/6060.index.js.map +0 -1
- package/dist/6113.index.js +0 -2
- package/dist/6113.index.js.map +0 -1
- package/dist/6157.index.js +0 -2
- package/dist/6157.index.js.map +0 -1
- package/dist/6167.index.js +0 -2
- package/dist/6167.index.js.map +0 -1
- package/dist/6217.index.js +0 -2
- package/dist/6217.index.js.map +0 -1
- package/dist/624.index.js +0 -2
- package/dist/624.index.js.map +0 -1
- package/dist/6293.index.js +0 -2
- package/dist/6293.index.js.map +0 -1
- package/dist/6408.index.js +0 -2
- package/dist/6408.index.js.map +0 -1
- package/dist/6446.index.js +0 -2
- package/dist/6446.index.js.map +0 -1
- package/dist/645.index.js +0 -2
- package/dist/645.index.js.map +0 -1
- package/dist/6505.index.js +0 -2
- package/dist/6505.index.js.map +0 -1
- package/dist/6539.index.js +0 -2
- package/dist/6539.index.js.map +0 -1
- package/dist/6706.index.js +0 -2
- package/dist/6706.index.js.map +0 -1
- package/dist/6715.index.js +0 -2
- package/dist/6715.index.js.map +0 -1
- package/dist/6797.index.js +0 -2
- package/dist/6797.index.js.map +0 -1
- package/dist/6824.index.js +0 -2
- package/dist/6824.index.js.map +0 -1
- package/dist/6879.index.js +0 -2
- package/dist/6879.index.js.map +0 -1
- package/dist/6905.index.js +0 -2
- package/dist/6905.index.js.map +0 -1
- package/dist/6967.index.js +0 -2
- package/dist/6967.index.js.map +0 -1
- package/dist/7042.index.js +0 -2
- package/dist/7042.index.js.map +0 -1
- package/dist/7153.index.js +0 -2
- package/dist/7153.index.js.map +0 -1
- package/dist/7206.index.js +0 -2
- package/dist/7206.index.js.map +0 -1
- package/dist/7221.index.js +0 -2
- package/dist/7221.index.js.map +0 -1
- package/dist/7226.index.js +0 -2
- package/dist/7226.index.js.map +0 -1
- package/dist/7234.index.js +0 -2
- package/dist/7234.index.js.map +0 -1
- package/dist/744.index.js +0 -2
- package/dist/744.index.js.map +0 -1
- package/dist/7447.index.js +0 -2
- package/dist/7447.index.js.map +0 -1
- package/dist/7512.index.js +0 -2
- package/dist/7512.index.js.map +0 -1
- package/dist/754.index.js +0 -2
- package/dist/754.index.js.map +0 -1
- package/dist/7607.index.js +0 -2
- package/dist/7607.index.js.map +0 -1
- package/dist/7609.index.js +0 -2
- package/dist/7609.index.js.map +0 -1
- package/dist/7876.index.js +0 -2
- package/dist/7876.index.js.map +0 -1
- package/dist/7932.index.js +0 -2
- package/dist/7932.index.js.map +0 -1
- package/dist/7981.index.js +0 -2
- package/dist/7981.index.js.map +0 -1
- package/dist/8022.index.js +0 -2
- package/dist/8022.index.js.map +0 -1
- package/dist/8068.index.js +0 -2
- package/dist/8068.index.js.map +0 -1
- package/dist/8146.index.js +0 -2
- package/dist/8146.index.js.map +0 -1
- package/dist/8267.index.js +0 -2
- package/dist/8267.index.js.map +0 -1
- package/dist/833.index.js +0 -2
- package/dist/833.index.js.map +0 -1
- package/dist/8629.index.js +0 -2
- package/dist/8629.index.js.map +0 -1
- package/dist/8641.index.js +0 -2
- package/dist/8641.index.js.map +0 -1
- package/dist/8667.index.js +0 -2
- package/dist/8667.index.js.map +0 -1
- package/dist/8699.index.js +0 -2
- package/dist/8699.index.js.map +0 -1
- package/dist/8788.index.js +0 -2
- package/dist/8788.index.js.map +0 -1
- package/dist/8807.index.js +0 -2
- package/dist/8807.index.js.map +0 -1
- package/dist/8911.index.js +0 -2
- package/dist/8911.index.js.map +0 -1
- package/dist/8937.index.js +0 -2
- package/dist/8937.index.js.map +0 -1
- package/dist/8945.index.js +0 -2
- package/dist/8945.index.js.map +0 -1
- package/dist/8956.index.js +0 -2
- package/dist/8956.index.js.map +0 -1
- package/dist/8971.index.js +0 -2
- package/dist/8971.index.js.map +0 -1
- package/dist/9034.index.js +0 -2
- package/dist/9034.index.js.map +0 -1
- package/dist/905.index.js +0 -2
- package/dist/905.index.js.map +0 -1
- package/dist/9056.index.js +0 -2
- package/dist/9056.index.js.map +0 -1
- package/dist/9105.index.js +0 -2
- package/dist/9105.index.js.map +0 -1
- package/dist/9268.index.js +0 -2
- package/dist/9268.index.js.map +0 -1
- package/dist/9292.index.js +0 -2
- package/dist/9292.index.js.map +0 -1
- package/dist/9378.index.js +0 -2
- package/dist/9378.index.js.map +0 -1
- package/dist/9550.index.js +0 -2
- package/dist/9550.index.js.map +0 -1
- package/dist/9620.index.js +0 -2
- package/dist/9620.index.js.map +0 -1
- package/dist/9625.index.js +0 -2
- package/dist/9625.index.js.map +0 -1
- package/dist/9745.index.js +0 -2
- package/dist/9745.index.js.map +0 -1
- package/dist/9787.index.js +0 -2
- package/dist/9787.index.js.map +0 -1
- package/dist/9862.index.js +0 -2
- package/dist/9862.index.js.map +0 -1
- package/dist/index.js.LICENSE.txt +0 -17
- package/dist/styles.css +0 -3
- package/dist/styles.css.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 492 492"><path d="M464.3 207.4l.8.2H136l103.5-103.7c5-5.1 7.8-12 7.8-19.2 0-7.2-2.7-14-7.8-19l-16.1-16.2c-5-5-11.8-7.8-19-7.8-7.2 0-14 2.8-19 7.8L7.8 227C2.8 232 0 238.8 0 246c0 7.3 2.8 14 7.8 19.2l177.5 177.4c5 5 11.8 7.8 19 7.8 7.2 0 14-2.8 19-7.8l16-16.1a26.6 26.6 0 000-37.7L134.8 284.4h330a27.9 27.9 0 0027.3-27.6V234a27.3 27.3 0 00-27.7-26.6z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.react-google-flight-datepicker{font-size:1rem}.react-google-flight-datepicker>*{box-sizing:border-box}.react-google-flight-datepicker .date-picker-demo{width:400px}.react-google-flight-datepicker .btn-outline{background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;overflow:hidden}.react-google-flight-datepicker .date-picker{position:relative;border-radius:4px;background:#fff;padding:6px}.react-google-flight-datepicker .date-picker.disabled{opacity:.6;cursor:default}.react-google-flight-datepicker .date-picker-input{width:100%;display:flex;justify-content:space-between;border:1px solid #dadce0;border-radius:4px;color:#3c4043;height:56px;letter-spacing:.2px;font-size:1rem;align-items:center;overflow:visible}.react-google-flight-datepicker .date-picker-input svg{min-width:24px;min-height:24px}.react-google-flight-datepicker .date-picker-date-group{position:relative;display:flex;justify-content:space-between;height:100%;flex-grow:1}.react-google-flight-datepicker .date{display:flex;align-items:center;height:100%;position:relative;padding:0 13px;flex-grow:1;width:50%;background:#fff;border-radius:4px}.react-google-flight-datepicker .date.is-single:before{display:none}.react-google-flight-datepicker .date:first-child:before{content:"";position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px;height:70%;background:#dadce0}.react-google-flight-datepicker .selected-date{display:flex;flex:1 1 0px;align-items:center;height:100%;font-size:.9rem;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.react-google-flight-datepicker .date-placeholder{color:#0000008f}.react-google-flight-datepicker .change-date-group{width:48px;display:flex}.react-google-flight-datepicker .change-date-group .change-date-button{height:40px;color:#5f6368;cursor:pointer;padding:8px 0;flex-grow:1}.react-google-flight-datepicker .change-date-group .change-date-button:disabled{cursor:default}.react-google-flight-datepicker .change-date-group .change-date-button:disabled .icon-arrow{fill:#93989e}.react-google-flight-datepicker .icon-calendar{width:24px;height:24px;fill:#1a73e8;margin-right:12px}.react-google-flight-datepicker .icon-calendar.mobile{display:none}.react-google-flight-datepicker .icon-arrow{width:24px;height:24px;fill:#5f6368}@keyframes showPopup{0%{transform:scale(.7);opacity:0}to{transform:scale(1);opacity:1}}@keyframes hidePopup{0%{transform:scale(1);opacity:1}to{transform:scale(.7);opacity:0;visibility:hidden}}.react-google-flight-datepicker .dialog-date-picker{background:#fff;border-radius:5px;box-shadow:0 1px 3px #3c40434d,0 4px 8px 3px #3c404326;min-width:200px;position:absolute;top:-2px;left:-2px;z-index:120;height:max-content;width:770px;margin-bottom:50px;transform-origin:top left;opacity:0;transform:scale(0)}.react-google-flight-datepicker .dialog-date-picker.single{width:385px}.react-google-flight-datepicker .dialog-date-picker.open{animation:showPopup .2s forwards}.react-google-flight-datepicker .dialog-date-picker.hide{animation:hidePopup .2s forwards}.react-google-flight-datepicker .dialog-date-picker.expand-right{left:-2px;right:auto;transform-origin:top left}.react-google-flight-datepicker .dialog-date-picker.expand-left{left:auto;right:-2px;transform-origin:top right}.react-google-flight-datepicker .dialog-header{padding:8px 8px 8px 24px;display:flex;justify-content:space-between;align-items:center}.react-google-flight-datepicker .dialog-header .date-picker-input{height:48px;width:50%}.react-google-flight-datepicker .date:focus,.react-google-flight-datepicker .date.is-focus{background-color:#f4f8ff}.react-google-flight-datepicker .date:focus:after,.react-google-flight-datepicker .date.is-focus:after{content:"";margin:-1px;border:2px solid #1a73e8;border-radius:4px;position:absolute;pointer-events:none;inset:0;z-index:5}.react-google-flight-datepicker .back-button{display:none}.react-google-flight-datepicker .dialog-content{border-bottom:1px solid #dadce0;border-top:1px solid #dadce0;position:relative}.react-google-flight-datepicker .reset-button{font-size:.9rem;padding:0 8px;height:36px;border-radius:4px;border:none;color:#5f6368;min-width:64px}.react-google-flight-datepicker .reset-button:hover{background-color:#fafafa}.react-google-flight-datepicker .reset-button.mobile{display:none}.react-google-flight-datepicker .calendar-wrapper{margin:12px 38px 8px;overflow:hidden;min-height:353px}.react-google-flight-datepicker .calendar-wrapper.single{margin-left:36px;margin-right:36px}.react-google-flight-datepicker .tooltip-text{position:absolute;background-color:#4285f4;color:#fff;text-align:center;border-radius:6px;padding:5px 15px;z-index:999;width:120px;max-width:120px;word-break:break-word;visibility:hidden}.react-google-flight-datepicker .tooltip-text:before{z-index:1001;border:6px solid transparent;background:transparent;content:"";margin-left:-6px;margin-bottom:-12px;border-top-color:#4285f4;position:absolute;bottom:0;left:50%}.react-google-flight-datepicker .calendar-content{display:flex;padding:0 2px;position:relative;overflow:hidden}.react-google-flight-datepicker .calendar-content.isAnimating{transition:transform .2s ease;overflow:initial}.react-google-flight-datepicker .month-calendar{width:308px;color:#3c4043;margin-right:43px}.react-google-flight-datepicker .month-calendar.hidden{position:absolute;visibility:hidden;z-index:-1;opacity:0}.react-google-flight-datepicker .month-calendar.isAnimating{position:absolute;left:-350px}.react-google-flight-datepicker .month-calendar .month-calendar.slide-next{position:absolute;left:350px}.react-google-flight-datepicker .month-calendar .month-calendar.slide-prev{position:absolute;left:-350px}.react-google-flight-datepicker .month-name{text-align:center;font-size:1rem;margin-bottom:10px}.react-google-flight-datepicker .weekdays{width:100%;font-size:.9rem;color:#0000008a;display:flex}.react-google-flight-datepicker .weekdays .weekday{display:flex;align-items:center;justify-content:center;height:36px;margin:0;flex-grow:1}.react-google-flight-datepicker .week{display:flex;justify-content:flex-start}.react-google-flight-datepicker .week.first{justify-content:flex-end}.react-google-flight-datepicker .day{display:flex;justify-content:center;align-items:center;cursor:pointer;height:44px;margin:2px 0;text-align:center;width:44px;vertical-align:top;position:relative;border-radius:50%}.react-google-flight-datepicker .day .background-day{bottom:0;opacity:0;pointer-events:none;position:absolute;top:0;width:10px;z-index:1}.react-google-flight-datepicker .day .background-day.first-day{background:linear-gradient(to right,#fff,#daedfd);left:-10px}.react-google-flight-datepicker .day .background-day.last-day{background:linear-gradient(to left,#fff,#daedfd);right:-10px}.react-google-flight-datepicker .day:after{border-radius:100%;content:"";height:44px;inset:0;margin:auto;position:absolute;width:44px;z-index:2}.react-google-flight-datepicker .day:hover:after{background-color:#fff;border:2px solid #4285f4;inset:-2px}.react-google-flight-datepicker .day.selected{color:#fff}.react-google-flight-datepicker .day.selected:hover{color:#000}.react-google-flight-datepicker .day.selected:after{background-color:#4285f4;border-radius:100%}.react-google-flight-datepicker .day.selected:hover:after{background-color:#fff}.react-google-flight-datepicker .day.highlight:before{content:"";width:44px;height:44px;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background-color:#f7ed7ad1;border-radius:50%}.react-google-flight-datepicker .day.hovered{background-color:#d9edfd;position:relative;border-radius:unset}.react-google-flight-datepicker .day.hovered .background-day{opacity:1}.react-google-flight-datepicker .day.hovered.end{background:linear-gradient(90deg,#d9edfd 50%,#fff 50%)}.react-google-flight-datepicker .day.hovered:hover{background-color:#d9edfd}.react-google-flight-datepicker .day.hovered:hover:after{border-radius:100%;background-color:#fff}.react-google-flight-datepicker .day.selected.hovered{background:linear-gradient(90deg,#fff 50%,#d9edfd 50%);color:#fff}.react-google-flight-datepicker .day.selected.hovered.end{background:linear-gradient(90deg,#d9edfd 50%,#fff 50%)}.react-google-flight-datepicker .day.selected.hovered:hover{color:#000}.react-google-flight-datepicker .day.selected.hovered:after{border-radius:100%;background-color:#4285f4}.react-google-flight-datepicker .day.selected.hovered:hover:after{background-color:#fff}.react-google-flight-datepicker .day.disabled{pointer-events:none;color:#00000042}.react-google-flight-datepicker .day.disabled.selected{color:#fff}.react-google-flight-datepicker .day .text-day{position:relative;z-index:3}.react-google-flight-datepicker .day-content{display:flex;flex-direction:column;align-items:center;gap:2px}.react-google-flight-datepicker .sub-text{font-size:.75em;color:#666;text-align:center}.react-google-flight-datepicker .day.has-subtext{padding-bottom:4px}.react-google-flight-datepicker .calendar-flippers{position:absolute;inset:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.react-google-flight-datepicker .flipper-button{background-color:#fff;border-radius:100%;box-shadow:0 0 4px #0000001f,0 4px 4px #0000003d;cursor:pointer;height:40px;width:40px;display:flex;justify-content:center;align-items:center;margin:0 -20px;pointer-events:all;border:none;outline:none}.react-google-flight-datepicker .flipper-button:focus:hover{outline:none;box-shadow:0 0 4px #0000001f,0 4px 4px #0000003d,0 0 0 2px #0000001a}.react-google-flight-datepicker .flipper-button svg{width:24px;height:24px}.react-google-flight-datepicker .flipper-button.disabled{cursor:default}.react-google-flight-datepicker .flipper-button.disabled svg{fill:#93989e}.react-google-flight-datepicker .dialog-footer{align-items:center;display:flex;flex-direction:row-reverse;padding:8px}.react-google-flight-datepicker .dialog-footer .submit-button{border-radius:8px;padding:10px 8px;border:none;line-height:16px;text-transform:uppercase;color:#fff;background:#4285f4;height:36px;min-width:88px;font-weight:500;font-size:.9rem;cursor:pointer}@media screen and (max-width: 768px){.react-google-flight-datepicker .date-picker-demo{width:100%}.react-google-flight-datepicker .date-picker-input{height:40px;border:none;border-radius:0;position:relative}.react-google-flight-datepicker .date{border:1px solid #dadce0;border-radius:5px;padding:0 10px;flex-grow:1}.react-google-flight-datepicker .date:nth-child(2){margin-left:10px}.react-google-flight-datepicker .date.is-focus{height:40px}.react-google-flight-datepicker .date:first-child:before{display:none}.react-google-flight-datepicker .icon-calendar{display:none}.react-google-flight-datepicker .icon-calendar.mobile{display:block}.react-google-flight-datepicker .reset-button{display:none}.react-google-flight-datepicker .reset-button.mobile{display:block;color:#000000de;min-width:88px;font-weight:500}.react-google-flight-datepicker .change-date-group,.react-google-flight-datepicker .divider,.react-google-flight-datepicker .calendar-flippers,.react-google-flight-datepicker .weekdays{display:none}.react-google-flight-datepicker .back-button{display:block;width:56px;height:100%;margin-right:16px;padding:0}.react-google-flight-datepicker .back-button svg{width:20px;height:20px;fill:#000000b3}.react-google-flight-datepicker .dialog-date-picker{border-radius:0;width:100%;height:100%;max-height:100%;position:fixed;inset:100% 0 10px;display:flex;flex-direction:column;opacity:1;transform:none;z-index:999999999}.react-google-flight-datepicker .dialog-date-picker.open{transition:all .2s ease-out;transform:translateY(-100%);animation:none}.react-google-flight-datepicker .dialog-date-picker.hide{transition:all .2s ease-in;transform:translate(0);animation:none}.react-google-flight-datepicker .dialog-header{padding:8px;box-shadow:0 0 2px #0000001f,0 2px 2px #0000003d;z-index:50}.react-google-flight-datepicker .dialog-header .date-picker-input{height:40px;width:100%}.react-google-flight-datepicker .dialog-content{border:none;overflow:hidden;height:100%}.react-google-flight-datepicker .calendar-wrapper{margin:0;height:100%;display:flex}.react-google-flight-datepicker .calendar-content{padding:0;width:100%;height:100%;flex-direction:column;flex-grow:1}.react-google-flight-datepicker .weekdays.mobile{display:flex;background-color:#f3f3f3}.react-google-flight-datepicker .month-calendar{width:100%;display:flex;flex-direction:column}.react-google-flight-datepicker .day{width:14.2857142857%;max-width:14.2857142857%}.react-google-flight-datepicker .day.selected:hover,.react-google-flight-datepicker .day.hovered:hover{color:#fff!important}.react-google-flight-datepicker .day.selected:hover:after,.react-google-flight-datepicker .day.hovered:hover:after{background-color:#4285f4!important}.react-google-flight-datepicker .month-name{text-align:left;margin-left:10px;margin-bottom:0;margin-top:25px;font-weight:700}.react-google-flight-datepicker .dialog-footer{box-shadow:0 0 4px #0000001f,0 4px 4px #0000003d;padding:15px 8px}}
|
|
2
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/components/DatePicker/styles.scss"],"sourcesContent":[".react-google-flight-datepicker {\r\n font-size: 1rem;\r\n\r\n & > * {\r\n box-sizing: border-box;\r\n }\r\n\r\n .date-picker-demo {\r\n width: 400px;\r\n }\r\n\r\n .btn-outline {\r\n background-color: transparent;\r\n background-repeat: no-repeat;\r\n border: none;\r\n cursor: pointer;\r\n overflow: hidden;\r\n }\r\n\r\n .date-picker {\r\n position: relative;\r\n border-radius: 4px;\r\n background: white;\r\n padding: 6px;\r\n\r\n &.disabled {\r\n opacity: 0.6;\r\n cursor: default;\r\n }\r\n }\r\n\r\n .date-picker-input {\r\n width: 100%;\r\n display: flex;\r\n justify-content: space-between;\r\n border: 1px solid #dadce0;\r\n border-radius: 4px;\r\n color: #3c4043;\r\n height: 56px;\r\n letter-spacing: 0.2px;\r\n font-size: 1rem;\r\n align-items: center;\r\n overflow: visible;\r\n\r\n\r\n svg {\r\n min-width: 24px;\r\n min-height: 24px;\r\n }\r\n }\r\n\r\n .date-picker-date-group {\r\n position: relative;\r\n display: flex;\r\n justify-content: space-between;\r\n height: 100%;\r\n flex-grow: 1;\r\n }\r\n\r\n .date {\r\n display: flex;\r\n align-items: center;\r\n height: 100%;\r\n position: relative;\r\n border-radius: 2px 0 0 2px;\r\n padding: 0 13px;\r\n flex-grow: 1;\r\n width: 50%;\r\n background: white;\r\n border-radius: 4px;\r\n\r\n &.is-single::before {\r\n display: none;\r\n }\r\n }\r\n\r\n .date:first-child::before {\r\n content: '';\r\n position: absolute;\r\n right: 0;\r\n top: 50%;\r\n transform: translate(0, -50%);\r\n width: 1px;\r\n height: 70%;\r\n background: #dadce0;\r\n }\r\n\r\n .selected-date {\r\n display: flex;\r\n flex: 1 1 0px;\r\n align-items: center;\r\n height: 100%;\r\n font-size: 0.9rem;\r\n line-height: normal;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n\r\n .date-placeholder {\r\n color: rgba(0, 0, 0, 0.56);\r\n }\r\n\r\n .change-date-group {\r\n width: 48px;\r\n display: flex;\r\n }\r\n\r\n .change-date-group .change-date-button {\r\n height: 40px;\r\n color: #5f6368;\r\n cursor: pointer;\r\n padding: 8px 0;\r\n flex-grow: 1;\r\n\r\n &:disabled {\r\n cursor: default;\r\n\r\n .icon-arrow {\r\n fill: #93989e;\r\n }\r\n }\r\n }\r\n\r\n .icon-calendar {\r\n width: 24px;\r\n height: 24px;\r\n fill: #1a73e8;\r\n margin-right: 12px;\r\n\r\n &.mobile {\r\n display: none;\r\n }\r\n }\r\n\r\n .icon-arrow {\r\n width: 24px;\r\n height: 24px;\r\n fill: #5f6368;\r\n }\r\n\r\n @keyframes showPopup {\r\n 0% {\r\n transform: scale(0.7);\r\n opacity: 0;\r\n }\r\n 100% {\r\n transform: scale(1);\r\n opacity: 1;\r\n }\r\n }\r\n\r\n @keyframes hidePopup {\r\n 0% {\r\n transform: scale(1);\r\n opacity: 1;\r\n }\r\n\r\n 100% {\r\n transform: scale(0.7);\r\n opacity: 0;\r\n visibility: hidden;\r\n }\r\n }\r\n\r\n .dialog-date-picker {\r\n background: #fff;\r\n border-radius: 5px;\r\n box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3),\r\n 0 4px 8px 3px rgba(60, 64, 67, 0.15);\r\n min-width: 200px;\r\n position: absolute;\r\n top: -2px;\r\n left: -2px;\r\n z-index: 120;\r\n height: max-content;\r\n width: 770px;\r\n margin-bottom: 50px;\r\n transform-origin: top left;\r\n opacity: 0;\r\n transform: scale(0);\r\n \r\n &.single {\r\n width: 385px;\r\n }\r\n\r\n &.open {\r\n animation: showPopup 0.2s forwards;\r\n }\r\n\r\n &.hide {\r\n animation: hidePopup 0.2s forwards;\r\n }\r\n\r\n &.expand-right {\r\n left: -2px;\r\n right: auto;\r\n transform-origin: top left;\r\n }\r\n &.expand-left {\r\n left: auto;\r\n right: -2px;\r\n transform-origin: top right;\r\n }\r\n }\r\n\r\n .dialog-header {\r\n padding: 8px 8px 8px 24px;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n }\r\n\r\n .dialog-header .date-picker-input {\r\n height: 48px;\r\n width: 50%;\r\n }\r\n\r\n .date:focus,\r\n .date.is-focus {\r\n background-color: #f4f8ff;\r\n\r\n &::after {\r\n content: '';\r\n margin: -1px;\r\n border: 2px solid #1a73e8;\r\n border-radius: 4px;\r\n position: absolute;\r\n pointer-events: none;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n z-index: 5;\r\n }\r\n }\r\n\r\n .back-button {\r\n display: none;\r\n }\r\n\r\n .dialog-content {\r\n border-bottom: 1px solid #dadce0;\r\n border-top: 1px solid #dadce0;\r\n position: relative;\r\n }\r\n\r\n .reset-button {\r\n font-size: 0.9rem;\r\n padding: 0 8px;\r\n height: 36px;\r\n border-radius: 4px;\r\n border: none;\r\n color: #5f6368;\r\n min-width: 64px;\r\n\r\n &:hover {\r\n background-color: #fafafa;\r\n }\r\n\r\n &.mobile {\r\n display: none;\r\n }\r\n }\r\n\r\n .calendar-wrapper {\r\n margin: 12px 38px 8px;\r\n overflow: hidden;\r\n min-height: 353px;\r\n \r\n &.single {\r\n margin-left: 36px;\r\n margin-right: 36px;\r\n }\r\n }\r\n\r\n .tooltip-text {\r\n position: absolute;\r\n background-color: #4285f4;\r\n color: #fff;\r\n text-align: center;\r\n border-radius: 6px;\r\n padding: 5px 15px;\r\n z-index: 999;\r\n width: 120px;\r\n max-width: 120px;\r\n word-break: break-word;\r\n visibility: hidden;\r\n }\r\n\r\n .tooltip-text::before {\r\n z-index: 1001;\r\n border: 6px solid transparent;\r\n background: transparent;\r\n content: \"\";\r\n margin-left: -6px;\r\n margin-bottom: -12px;\r\n border-top-color: #4285f4;\r\n position: absolute;\r\n bottom: 0;\r\n left: 50%;\r\n }\r\n\r\n .calendar-content {\r\n display: flex;\r\n padding: 0 2px;\r\n position: relative;\r\n overflow: hidden;\r\n \r\n &.isAnimating {\r\n transition: transform 0.2s ease;\r\n overflow: initial;\r\n }\r\n }\r\n\r\n .month-calendar {\r\n width: 308px;\r\n color: #3c4043;\r\n margin-right: 43px;\r\n \r\n &.hidden {\r\n position: absolute;\r\n visibility: hidden;\r\n z-index: -1;\r\n opacity: 0;\r\n }\r\n \r\n &.isAnimating {\r\n position: absolute;\r\n left: -350px;\r\n }\r\n\r\n .month-calendar {\r\n &.slide-next {\r\n position: absolute;\r\n left: 350px;\r\n }\r\n \r\n &.slide-prev {\r\n position: absolute;\r\n left: -350px;\r\n }\r\n }\r\n }\r\n\r\n .month-name {\r\n text-align: center;\r\n font-size: 1rem;\r\n margin-bottom: 10px;\r\n }\r\n\r\n .weekdays {\r\n width: 100%;\r\n font-size: 0.9rem;\r\n color: rgba(0, 0, 0, 0.54);\r\n display: flex;\r\n\r\n .weekday {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n height: 36px;\r\n margin: 0;\r\n flex-grow: 1;\r\n }\r\n }\r\n\r\n .week {\r\n display: flex;\r\n justify-content: flex-start;\r\n\r\n &.first {\r\n justify-content: flex-end;\r\n }\r\n }\r\n\r\n .day {\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n cursor: pointer;\r\n height: 44px;\r\n margin: 2px 0;\r\n text-align: center;\r\n width: 44px;\r\n vertical-align: top;\r\n position: relative;\r\n border-radius: 50%;\r\n\r\n .background-day {\r\n bottom: 0;\r\n opacity: 0;\r\n pointer-events: none;\r\n position: absolute;\r\n top: 0;\r\n width: 10px;\r\n z-index: 1;\r\n\r\n &.first-day {\r\n background: linear-gradient(to right, #fff, #daedfd);\r\n left: -10px;\r\n }\r\n\r\n &.last-day {\r\n background: linear-gradient(to left, #fff, #daedfd);\r\n right: -10px;\r\n }\r\n }\r\n\r\n &::after {\r\n border-radius: 100%;\r\n bottom: 0;\r\n content: '';\r\n height: 44px;\r\n left: 0;\r\n margin: auto;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n width: 44px;\r\n z-index: 2;\r\n }\r\n\r\n &:hover::after {\r\n background-color: #fff;\r\n border: 2px solid #4285f4;\r\n bottom: -2px;\r\n left: -2px;\r\n right: -2px;\r\n top: -2px;\r\n }\r\n\r\n &.selected {\r\n color: white;\r\n\r\n &:hover {\r\n color: #000;\r\n }\r\n\r\n &::after {\r\n background-color: #4285f4;\r\n border-radius: 100%;\r\n }\r\n\r\n &:hover::after {\r\n background-color: #fff;\r\n }\r\n }\r\n\r\n &.highlight::before {\r\n content: '';\r\n width: 44px;\r\n height: 44px;\r\n position: absolute;\r\n left: 50%;\r\n top: 50%;\r\n transform: translate(-50%, -50%);\r\n background-color: #f7ed7ad1;\r\n border-radius: 50%;\r\n }\r\n\r\n &.hovered {\r\n background-color: #d9edfd;\r\n position: relative;\r\n border-radius: unset;\r\n\r\n .background-day {\r\n opacity: 1;\r\n }\r\n\r\n &.end {\r\n background: linear-gradient(90deg, #d9edfd 50%, #fff 50%);\r\n }\r\n\r\n &:hover {\r\n background-color: #d9edfd;\r\n\r\n &::after {\r\n border-radius: 100%;\r\n background-color: #fff;\r\n }\r\n }\r\n }\r\n\r\n &.selected.hovered {\r\n background: linear-gradient(90deg, #fff 50%, #d9edfd 50%);\r\n color: #fff;\r\n\r\n &.end {\r\n background: linear-gradient(90deg, #d9edfd 50%, #fff 50%);\r\n }\r\n\r\n &:hover {\r\n color: #000;\r\n }\r\n\r\n &::after {\r\n border-radius: 100%;\r\n background-color: #4285f4;\r\n }\r\n\r\n &:hover::after {\r\n background-color: #fff;\r\n }\r\n }\r\n\r\n &.disabled {\r\n pointer-events: none;\r\n color: rgba(0, 0, 0, 0.26);\r\n\r\n &.selected {\r\n color: #fff;\r\n }\r\n }\r\n\r\n .text-day {\r\n position: relative;\r\n z-index: 3;\r\n }\r\n }\r\n\r\n .day-content {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: center;\r\n gap: 2px;\r\n }\r\n \r\n .sub-text {\r\n font-size: 0.75em;\r\n color: #666;\r\n text-align: center;\r\n }\r\n \r\n .day.has-subtext {\r\n padding-bottom: 4px;\r\n }\r\n\r\n .calendar-flippers {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n bottom: 0;\r\n right: 0;\r\n display: flex;\r\n justify-content: space-between;\r\n align-items: center;\r\n pointer-events: none;\r\n }\r\n\r\n .flipper-button {\r\n background-color: #fff;\r\n border-radius: 100%;\r\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);\r\n cursor: pointer;\r\n height: 40px;\r\n width: 40px;\r\n display: flex;\r\n justify-content: center;\r\n align-items: center;\r\n margin: 0 -20px;\r\n pointer-events: all;\r\n border: none; \r\n outline: none; \r\n\r\n &:focus:hover {\r\n outline: none;\r\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24),\r\n 0 0 0 2px rgba(0, 0, 0, 0.1); \r\n }\r\n\r\n svg {\r\n width: 24px;\r\n height: 24px;\r\n }\r\n\r\n &.disabled {\r\n cursor: default;\r\n\r\n svg {\r\n fill: #93989e;\r\n }\r\n }\r\n}\r\n .dialog-footer {\r\n align-items: center;\r\n display: flex;\r\n flex-direction: row-reverse;\r\n padding: 8px;\r\n\r\n .submit-button {\r\n border-radius: 8px;\r\n padding: 10px 8px;\r\n border: none;\r\n line-height: 16px;\r\n text-transform: uppercase;\r\n color: #fff;\r\n background: #4285f4;\r\n height: 36px;\r\n min-width: 88px;\r\n font-weight: 500;\r\n font-size: 0.9rem;\r\n cursor: pointer;\r\n }\r\n }\r\n\r\n /** RESPONSIVE MOBILE */\r\n @media screen and (max-width: 768px) {\r\n .date-picker-demo {\r\n width: 100%;\r\n }\r\n\r\n .date-picker-input {\r\n height: 40px;\r\n border: none;\r\n border-radius: 0;\r\n position: relative;\r\n }\r\n\r\n .date {\r\n border: 1px solid #dadce0;\r\n border-radius: 5px;\r\n padding: 0 10px;\r\n flex-grow: 1;\r\n\r\n &:nth-child(2) {\r\n margin-left: 10px;\r\n }\r\n\r\n &.is-focus {\r\n height: 40px;\r\n }\r\n }\r\n\r\n .date:first-child::before {\r\n display: none;\r\n }\r\n\r\n .icon-calendar {\r\n display: none;\r\n\r\n &.mobile {\r\n display: block;\r\n }\r\n }\r\n\r\n .reset-button {\r\n display: none;\r\n\r\n &.mobile {\r\n display: block;\r\n color: rgba(0, 0, 0, 0.87);\r\n min-width: 88px;\r\n font-weight: 500;\r\n }\r\n }\r\n\r\n .change-date-group,\r\n .divider,\r\n .calendar-flippers,\r\n .weekdays {\r\n display: none;\r\n }\r\n\r\n .back-button {\r\n display: block;\r\n width: 56px;\r\n height: 100%;\r\n margin-right: 16px;\r\n padding: 0;\r\n\r\n svg {\r\n width: 20px;\r\n height: 20px;\r\n fill: rgba(0, 0, 0, 0.7);\r\n }\r\n }\r\n\r\n .dialog-date-picker {\r\n border-radius: 0;\r\n width: 100%;\r\n height: 100%;\r\n max-height: 100%;\r\n position: fixed;\r\n left: 0;\r\n right: 0;\r\n bottom: 10px;\r\n top: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n opacity: 1;\r\n transform: none;\r\n z-index: 999999999;\r\n\r\n &.open {\r\n transition: all 0.2s ease-out;\r\n transform: translate(0, -100%);\r\n animation: none;\r\n }\r\n\r\n &.hide {\r\n transition: all 0.2s ease-in;\r\n transform: translate(0, 0);\r\n animation: none;\r\n }\r\n }\r\n\r\n .dialog-header {\r\n padding: 8px;\r\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);\r\n z-index: 50;\r\n\r\n .date-picker-input {\r\n height: 40px;\r\n width: 100%;\r\n }\r\n }\r\n\r\n .dialog-content {\r\n border: none;\r\n overflow: hidden;\r\n height: 100%;\r\n }\r\n\r\n .calendar-wrapper {\r\n margin: 0;\r\n height: 100%;\r\n display: flex;\r\n }\r\n\r\n .calendar-content {\r\n padding: 0;\r\n width: 100%;\r\n height: 100%;\r\n flex-direction: column;\r\n flex-grow: 1;\r\n\r\n }\r\n\r\n .weekdays.mobile {\r\n display: flex;\r\n background-color: #f3f3f3;\r\n }\r\n\r\n .month-calendar {\r\n width: 100%;\r\n display: flex;\r\n flex-direction: column;\r\n }\r\n\r\n .day {\r\n width: calc(100% / 7);\r\n max-width: calc(100% / 7);\r\n\r\n &.selected:hover,\r\n &.hovered:hover {\r\n color: #fff !important;\r\n\r\n &::after {\r\n background-color: #4285f4 !important;\r\n }\r\n }\r\n }\r\n\r\n .month-name {\r\n text-align: left;\r\n margin-left: 10px;\r\n margin-bottom: 0px;\r\n margin-top: 25px;\r\n font-weight: bold;\r\n }\r\n\r\n .dialog-footer {\r\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);\r\n padding: 15px 8px;\r\n }\r\n }\r\n}\r\n"],"mappings":"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","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SubTextDict {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
interface BaseDatePickerProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
startWeekDay?: "monday" | "sunday";
|
|
10
|
+
minDate?: Date | null;
|
|
11
|
+
maxDate?: Date | null;
|
|
12
|
+
weekDayFormat?: string;
|
|
13
|
+
dateFormat?: string;
|
|
14
|
+
monthFormat?: string;
|
|
15
|
+
highlightToday?: boolean;
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
tooltip?: string | React.ReactNode | ((date: Date) => React.ReactNode);
|
|
18
|
+
subTextDict?: SubTextDict | null;
|
|
19
|
+
expandDirection?: string;
|
|
20
|
+
locale?: string;
|
|
21
|
+
onFocus?: (input: string) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface RangeDatePickerProps extends BaseDatePickerProps {
|
|
25
|
+
startDate: Date | null;
|
|
26
|
+
endDate: Date | null;
|
|
27
|
+
startDatePlaceholder?: string;
|
|
28
|
+
endDatePlaceholder?: string;
|
|
29
|
+
onChange?: (startDate: Date | null, endDate: Date | null) => void;
|
|
30
|
+
onCloseCalendar?: (startDate: Date | null, endDate: Date | null) => void;
|
|
31
|
+
dateInputSeperator?: React.ReactNode;
|
|
32
|
+
hideDialogHeader?: boolean;
|
|
33
|
+
hideDialogFooter?: boolean;
|
|
34
|
+
hideDialogAfterSelectEndDate?: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare const RangeDatePicker: React.FC<RangeDatePickerProps>;
|
|
37
|
+
|
|
38
|
+
interface SingleDatePickerProps extends Omit<BaseDatePickerProps, 'onChange'> {
|
|
39
|
+
startDate: Date | null;
|
|
40
|
+
startDatePlaceholder?: string;
|
|
41
|
+
onChange?: (date: Date | null) => void;
|
|
42
|
+
onCloseCalendar?: (date: Date | null) => void;
|
|
43
|
+
singleCalendar?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const SingleDatePicker: React.FC<SingleDatePickerProps>;
|
|
46
|
+
|
|
47
|
+
export { RangeDatePicker, type RangeDatePickerProps, SingleDatePicker, type SingleDatePickerProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface SubTextDict {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
}
|
|
6
|
+
interface BaseDatePickerProps {
|
|
7
|
+
className?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
startWeekDay?: "monday" | "sunday";
|
|
10
|
+
minDate?: Date | null;
|
|
11
|
+
maxDate?: Date | null;
|
|
12
|
+
weekDayFormat?: string;
|
|
13
|
+
dateFormat?: string;
|
|
14
|
+
monthFormat?: string;
|
|
15
|
+
highlightToday?: boolean;
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
tooltip?: string | React.ReactNode | ((date: Date) => React.ReactNode);
|
|
18
|
+
subTextDict?: SubTextDict | null;
|
|
19
|
+
expandDirection?: string;
|
|
20
|
+
locale?: string;
|
|
21
|
+
onFocus?: (input: string) => void;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface RangeDatePickerProps extends BaseDatePickerProps {
|
|
25
|
+
startDate: Date | null;
|
|
26
|
+
endDate: Date | null;
|
|
27
|
+
startDatePlaceholder?: string;
|
|
28
|
+
endDatePlaceholder?: string;
|
|
29
|
+
onChange?: (startDate: Date | null, endDate: Date | null) => void;
|
|
30
|
+
onCloseCalendar?: (startDate: Date | null, endDate: Date | null) => void;
|
|
31
|
+
dateInputSeperator?: React.ReactNode;
|
|
32
|
+
hideDialogHeader?: boolean;
|
|
33
|
+
hideDialogFooter?: boolean;
|
|
34
|
+
hideDialogAfterSelectEndDate?: boolean;
|
|
35
|
+
}
|
|
36
|
+
declare const RangeDatePicker: React.FC<RangeDatePickerProps>;
|
|
37
|
+
|
|
38
|
+
interface SingleDatePickerProps extends Omit<BaseDatePickerProps, 'onChange'> {
|
|
39
|
+
startDate: Date | null;
|
|
40
|
+
startDatePlaceholder?: string;
|
|
41
|
+
onChange?: (date: Date | null) => void;
|
|
42
|
+
onCloseCalendar?: (date: Date | null) => void;
|
|
43
|
+
singleCalendar?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const SingleDatePicker: React.FC<SingleDatePickerProps>;
|
|
46
|
+
|
|
47
|
+
export { RangeDatePicker, type RangeDatePickerProps, SingleDatePicker, type SingleDatePickerProps };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
/*! For license information please see index.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("dayjs"),require("react"),require("react-dom")):"function"===typeof define&&define.amd?define(["dayjs","react","react-dom"],t):"object"===typeof exports?exports.ReactGoogleFlightDatepicker=t(require("dayjs"),require("react"),require("react-dom")):e.ReactGoogleFlightDatepicker=t(e.dayjs,e.React,e.ReactDOM)}(this,((e,t,r)=>(()=>{var n={8843:(e,t,r)=>{var n={"./af.js":[5334,5334],"./am.js":[9787,9787],"./ar-dz.js":[4785,4785],"./ar-iq.js":[1349,1349],"./ar-kw.js":[8945,8945],"./ar-ly.js":[3920,3920],"./ar-ma.js":[6113,6113],"./ar-sa.js":[2163,2163],"./ar-tn.js":[1037,1037],"./ar.js":[7226,7226],"./az.js":[4610,4610],"./be.js":[7876,7876],"./bg.js":[6446,6446],"./bi.js":[9056,9056],"./bm.js":[4780,4780],"./bn-bd.js":[120,120],"./bn.js":[1733,1733],"./bo.js":[1014,1014],"./br.js":[9105,9105],"./bs.js":[9378,9378],"./ca.js":[5329,5329],"./cs.js":[6879,6879],"./cv.js":[8788,8788],"./cy.js":[2345,2345],"./da.js":[9034,9034],"./de-at.js":[7206,7206],"./de-ch.js":[2880,2880],"./de.js":[5606,5606],"./dv.js":[5363,5363],"./el.js":[5328,5328],"./eo.js":[9625,9625],"./es-do.js":[1131,1131],"./es-mx.js":[6167,6167],"./es-pr.js":[1172,1172],"./es-us.js":[3274,3274],"./es.js":[6157,6157],"./et.js":[424,424],"./eu.js":[4351,4351],"./fa.js":[6060,6060],"./fi.js":[9268,9268],"./fo.js":[6706,6706],"./fr-ca.js":[4010,4010],"./fr-ch.js":[497,497],"./fr.js":[3237,3237],"./fy.js":[5204,5204],"./ga.js":[2837,2837],"./gd.js":[3306,3306],"./gl.js":[7042,7042],"./gom-latn.js":[7932,7932],"./gu.js":[6505,6505],"./he.js":[7234,7234],"./hi.js":[406,406],"./hr.js":[6715,6715],"./ht.js":[8641,8641],"./hu.js":[754,754],"./hy-am.js":[1709,1709],"./id.js":[4868,4868],"./is.js":[1409,1409],"./it-ch.js":[9550,9550],"./it.js":[164,164],"./ja.js":[624,624],"./jv.js":[645,645],"./ka.js":[5705,5705],"./kk.js":[3119,3119],"./km.js":[2541,2541],"./kn.js":[8068,8068],"./ko.js":[3947,3947],"./ku.js":[4565,4565],"./ky.js":[833,833],"./lb.js":[4063,4063],"./lo.js":[4892,4892],"./lt.js":[3117,3117],"./lv.js":[8699,8699],"./me.js":[6967,6967],"./mi.js":[6539,6539],"./mk.js":[6797,6797],"./ml.js":[744,744],"./mn.js":[6034,6034],"./mr.js":[8022,8022],"./ms-my.js":[6408,6408],"./ms.js":[6293,6293],"./mt.js":[1024,1024],"./my.js":[2219,2219],"./nb.js":[2285,2285],"./ne.js":[1432,1432],"./nl-be.js":[6905,6905],"./nl.js":[8807,8807],"./nn.js":[7609,7609],"./oc-lnc.js":[3641,3641],"./pa-in.js":[9292,9292],"./pl.js":[4769,4769],"./pt-br.js":[8146,8146],"./pt.js":[5081,5081],"./rn.js":[229,229],"./ro.js":[1270,1270],"./ru.js":[5780,5780],"./rw.js":[3838,3838],"./sd.js":[3438,3438],"./se.js":[3613,3613],"./si.js":[8937,8937],"./sk.js":[7607,7607],"./sl.js":[454,454],"./sq.js":[9745,9745],"./sr-cyrl.js":[1127,1127],"./sr.js":[6824,6824],"./ss.js":[8911,8911],"./sv-fi.js":[1216,1216],"./sv.js":[4676,4676],"./sw.js":[8971,8971],"./ta.js":[1162,1162],"./te.js":[5206,5206],"./tet.js":[1048,1048],"./tg.js":[3212,3212],"./th.js":[7153,7153],"./tk.js":[7512,7512],"./tl-ph.js":[9862,9862],"./tlh.js":[905,905],"./tr.js":[7447,7447],"./tzl.js":[8267,8267],"./tzm-latn.js":[8956,8956],"./tzm.js":[2388,2388],"./ug-cn.js":[1999,1999],"./uk.js":[2149,2149],"./ur.js":[2734,2734],"./uz-latn.js":[4254,4254],"./uz.js":[3430,3430],"./vi.js":[9620,9620],"./x-pseudo.js":[8667,8667],"./yo.js":[7221,7221],"./zh-cn.js":[6217,6217],"./zh-hk.js":[8629,8629],"./zh-tw.js":[7981,7981],"./zh.js":[3183,3183]};function o(e){if(!r.o(n,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=n[e],o=t[0];return r.e(t[1]).then((()=>r.t(o,23)))}o.keys=()=>Object.keys(n),o.id=8843,e.exports=o},1840:function(e){e.exports=function(){"use strict";return function(e,t,r){var n=t.prototype,o=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,r,n,i){var a=e.name?e:e.$locale(),s=o(a[t]),l=o(a[r]),c=s||l.map((function(e){return e.slice(0,n)}));if(!i)return c;var u=a.weekStart;return c.map((function(e,t){return c[(t+(u||0))%7]}))},a=function(){return r.Ls[r.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};n.localeData=function(){return l.bind(this)()},r.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},r.months=function(){return i(a(),"months")},r.monthsShort=function(){return i(a(),"monthsShort","months",3)},r.weekdays=function(e){return i(a(),"weekdays",null,null,e)},r.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},r.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},1020:(e,t,r)=>{"use strict";var n=r(4119),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,i={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},4848:(e,t,r)=>{"use strict";e.exports=r(1020)},8352:t=>{"use strict";t.exports=e},4119:e=>{"use strict";e.exports=t},9545:e=>{"use strict";e.exports=r},6942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e].call(r.exports,r,r.exports,i),r.exports}i.m=n,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;i.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"===typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"===typeof r.then)return r}var o=Object.create(null);i.r(o);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,i.d(o,a),o}})(),i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.f={},i.e=e=>Promise.all(Object.keys(i.f).reduce(((t,r)=>(i.f[r](e,t),t)),[])),i.u=e=>e+".index.js",i.miniCssF=e=>{},i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="ReactGoogleFlightDatepicker:";i.l=(r,n,o,a)=>{if(e[r])e[r].push(n);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[n];var f=(t,n)=>{s.onerror=s.onload=null,clearTimeout(h);var o=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(n))),t)return t(n)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),l&&document.head.appendChild(s)}}})(),i.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.p="/",(()=>{var e={8792:0};i.f.j=(t,r)=>{var n=i.o(e,t)?e[t]:void 0;if(0!==n)if(n)r.push(n[2]);else{var o=new Promise(((r,o)=>n=e[t]=[r,o]));r.push(n[2]=o);var a=i.p+i.u(t),s=new Error;i.l(a,(r=>{if(i.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var o=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,n[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var n,o,[a,s,l]=r,c=0;if(a.some((t=>0!==e[t]))){for(n in s)i.o(s,n)&&(i.m[n]=s[n]);if(l)l(i)}for(t&&t(r);c<a.length;c++)o=a[c],i.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=this.webpackChunkReactGoogleFlightDatepicker=this.webpackChunkReactGoogleFlightDatepicker||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var a={};return(()=>{"use strict";i.r(a),i.d(a,{RangeDatePicker:()=>Ke,SingleDatePicker:()=>tt});var e=i(4119),t=i.n(e),r=i(8352),n=i.n(r),o=i(6942),s=i.n(o),l=i(1840),c=i.n(l);function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t,r){var n=[],o=new Date(e,t,1),i=new Date(e,t+1,0).getDate(),a=1,s=0===o.getDay()?1:7-o.getDay()+1;for("sunday"===r&&(s=7-o.getDay());a<=i;)n.push({start:a,days:s-a+1}),a=s+1,s+=7,(s=1===a&&8===s?1:s)>i&&(s=i);return{totalWeek:n,totalDay:i}}function h(e,t){var r=u(Array(7)).map((function(e,r){return n()().day(r).format("dd"===t?"dd":"ddd"===t?"ddd":"dddd")}));if("sunday"===e){var o=r.pop();o&&r.unshift(o)}return r}var m=i(4848);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?j(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(){w=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new P(n||[]);return o(a,"_invoke",{value:E(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var f="suspendedStart",h="suspendedYield",m="executing",v="completed",y={};function g(){}function b(){}function j(){}var _={};c(_,a,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(N([])));S&&S!==r&&n.call(S,a)&&(_=S);var O=j.prototype=g.prototype=Object.create(_);function D(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==p(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,r,n){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=I(s,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===f)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var c=d(t,r,n);if("normal"===c.type){if(o=n.done?v:h,c.arg===y)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=v,n.method="throw",n.arg=c.arg)}}}function I(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function z(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(p(t)+" is not iterable")}return b.prototype=j,o(O,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:b,configurable:!0}),b.displayName=c(j,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,c(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},D(k.prototype),c(k.prototype,s,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},D(O),c(O,l,"Generator"),c(O,a,(function(){return this})),c(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(z),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),z(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;z(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function _(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}var x=(0,e.createContext)(null),S=(0,e.createContext)(null),O=(0,e.createContext)(null),D=(0,e.createContext)(null),k=(0,e.createContext)(null),E=function(){var t=(0,e.useContext)(x);if(!t)throw new Error("useDateState must be used within DatePickerProvider");return t},I=function(){var t=(0,e.useContext)(S);if(!t)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return t},C=function(){var t=(0,e.useContext)(O);if(!t)throw new Error("useUIState must be used within DatePickerProvider");return t},z=function(){var t=(0,e.useContext)(D);if(!t)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return t},P=function(){var e,t=(e=w().mark((function e(t){return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("en"!==t){e.next=2;break}return e.abrupt("return",!0);case 2:return e.prev=2,e.next=5,i(8843)("./".concat(t,".js"));case 5:return e.abrupt("return",!0);case 8:return e.prev=8,e.t0=e.catch(2),console.error("Failed to load locale ".concat(t,":"),e.t0),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,null,[[2,8]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){_(i,n,o,a,s,"next",e)}function s(e){_(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),N=function(t){var r=t.children,o=t.dateState,i=t.config,a=t.uiState,s=t.display,l=t.locale,c=void 0===l?"en":l,u=b((0,e.useState)({currentLocale:"en",isLocaleReady:"en"===c}),2),d=u[0],f=u[1];return(0,e.useEffect)((function(){"en"!==c?(f((function(e){return y(y({},e),{},{isLocaleReady:!1})})),P(c).then((function(e){e?(n().locale(c),f({currentLocale:c,isLocaleReady:!0})):(n().locale("en"),f({currentLocale:"en",isLocaleReady:!0}))}))):(n().locale("en"),f({currentLocale:"en",isLocaleReady:!0}))}),[c]),d.isLocaleReady?(0,m.jsx)(k.Provider,{value:d,children:(0,m.jsx)(x.Provider,{value:o,children:(0,m.jsx)(S.Provider,{value:i,children:(0,m.jsx)(O.Provider,{value:a,children:(0,m.jsx)(D.Provider,{value:s,children:r})})})})}):null};var A;function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(null,arguments)}const R=function(t){return e.createElement("svg",L({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),A||(A=e.createElement("path",{d:"M9 11H7v2h2zm4 0h-2v2h2zm4 0h-2v2h2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V9h14z"})))};var T;function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},M.apply(null,arguments)}const F=function(t){return e.createElement("svg",M({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),T||(T=e.createElement("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"})))};var W;function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H.apply(null,arguments)}const B=function(t){return e.createElement("svg",H({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},t),W||(W=e.createElement("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"})))};function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return U(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?U(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function U(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var $=function(t){var r=t.type,o=t.showIcon,i=void 0!==o&&o,a=t.tabIndex,l=void 0===a?0:a,c=t.nonFocusable,u=void 0!==c&&c,d=q((0,e.useState)(null),2),f=d[0],h=d[1],p=q((0,e.useState)(!1),2),v=p[0],y=p[1],g=q((0,e.useState)(!1),2),b=g[0],j=g[1],w=E(),_=w.fromDate,x=w.toDate,S=w.inputFocus,O=w.handleClickDateInput,D=w.handleChangeDate,k=I(),C=k.isSingle,P=k.minDate,N=k.maxDate,A=k.dateFormat,L=z(),T=L.startDatePlaceholder,M=L.endDatePlaceholder,W="from"===r?_:x,H="from"===r?T:M;(0,e.useEffect)((function(){if(W){var e=W.clone().locale(n().locale()).format("ddd, DD MMM");A&&(e=W.format(A)),h(e);var t=P?n()(P):null,o=N?n()(N):null;null!=t&&t.add(1,"day").isAfter(W,"date")||"to"===r&&_&&W.isBefore(_.add(1,"day"),"date")?y(!0):y(!1),null!=o&&o.subtract(1,"day").isBefore(W,"date")?j(!0):j(!1)}else h(null)}),[W,_,P,N,A,r]);return(0,m.jsxs)("div",{className:s()("date",{"is-focus":S===r,"is-single":C}),role:"button",tabIndex:u?-1:l,onClick:function(){O(r)},id:"".concat(r,"-date-input-button"),children:[i&&(0,m.jsx)(R,{className:"icon-calendar",viewBox:"0 0 24 24"}),(0,m.jsx)("div",{className:"selected-date",children:null!==f&&void 0!==f?f:(0,m.jsx)("div",{className:"date-placeholder",children:H})}),f&&(0,m.jsxs)("div",{className:"change-date-group",children:[(0,m.jsx)("button",{type:"button",className:"btn-outline change-date-button",onClick:function(e){e.stopPropagation(),W&&D(W.subtract(1,"day"),r)},tabIndex:u?-1:0,disabled:v,children:(0,m.jsx)(F,{viewBox:"0 0 24 24",className:"icon-arrow"})}),(0,m.jsx)("button",{type:"button",className:"btn-outline change-date-button",onClick:function(e){e.stopPropagation(),W&&D(W.add(1,"day"),r)},tabIndex:u?-1:0,disabled:b,children:(0,m.jsx)(B,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})},G=function(e){var t=e.showIcon,r=void 0!==t&&t,n=e.nonFocusable,o=void 0!==n&&n,i=I().isSingle,a=z().dateInputSeperator;return(0,m.jsxs)("div",{className:"date-picker-input",children:[r&&(0,m.jsx)(R,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),(0,m.jsxs)("div",{className:"date-picker-date-group",children:[(0,m.jsx)($,{type:"from",tabIndex:o?-1:0,showIcon:!0,nonFocusable:o}),!i&&a&&(0,m.jsx)("div",{className:"date-input-separator",children:a}),!i&&(0,m.jsx)($,{type:"to",tabIndex:o?-1:0,showIcon:!1,nonFocusable:o})]})]})},V=i(9545);const Y=function(e){var t=e.children,r=void 0===t?null:t,n=e.isMobile;return void 0!==n&&n?(0,V.createPortal)((0,m.jsx)("div",{className:"react-google-flight-datepicker",children:r}),document.querySelector("body")):(0,m.jsx)(m.Fragment,{children:r})};var K;function X(){return X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},X.apply(null,arguments)}const J=function(t){return e.createElement("svg",X({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492"},t),K||(K=e.createElement("path",{d:"m464.3 207.4.8.2H136l103.5-103.7c5-5.1 7.8-12 7.8-19.2s-2.7-14-7.8-19l-16.1-16.2c-5-5-11.8-7.8-19-7.8s-14 2.8-19 7.8L7.8 227c-5 5-7.8 11.8-7.8 19 0 7.3 2.8 14 7.8 19.2l177.5 177.4c5 5 11.8 7.8 19 7.8s14-2.8 19-7.8l16-16.1a26.6 26.6 0 0 0 0-37.7L134.8 284.4h330a27.9 27.9 0 0 0 27.3-27.6V234a27.3 27.3 0 0 0-27.7-26.6z"})))};function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Q.apply(this,arguments)}function Z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ee(e,t){return ee=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ee(e,t)}var re=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function ne(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(n=e[r],o=t[r],!(n===o||re(n)&&re(o)))return!1;var n,o;return!0}const oe=function(e,t){var r;void 0===t&&(t=ne);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}};var ie="object"===typeof performance&&"function"===typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ae(e){cancelAnimationFrame(e.id)}function se(e,t){var r=ie();var n={id:requestAnimationFrame((function o(){ie()-r>=t?e.call(null):n.id=requestAnimationFrame(o)}))};return n}var le=-1;function ce(e){if(void 0===e&&(e=!1),-1===le||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),le=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return le}var ue=null;function de(e){if(void 0===e&&(e=!1),null===ue||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?ue="positive-descending":(t.scrollLeft=1,ue=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ue}return ue}var fe=function(e,t){return e};function he(t){var r,n=t.getItemOffset,o=t.getEstimatedTotalSize,i=t.getItemSize,a=t.getOffsetForIndexAndAlignment,s=t.getStartIndexForOffset,l=t.getStopIndexForStartIndex,c=t.initInstanceProps,u=t.shouldResetStyleCacheOnItemSizeChange,d=t.validateProps;return r=function(t){function r(e){var r;return(r=t.call(this,e)||this)._instanceProps=c(r.props,Z(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Z(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"===typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=oe((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=oe((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,o=r.props,a=o.direction,s=o.itemSize,l=o.layout,c=r._getItemStyleCache(u&&s,u&&l,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),f=i(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,m="rtl"===a,p=h?d:0;c[e]=t={position:"absolute",left:m?void 0:p,right:m?p:void 0,top:h?0:d,height:h?"100%":f,width:h?f:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=oe((function(e,t,r){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(de()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"===typeof t?t(e):null!=t&&"object"===typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ae(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=se(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}te(r,t),r.getDerivedStateFromProps=function(e,t){return me(e,t),d(e),null};var f=r.prototype;return f.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var r=this.props,n=r.itemCount,o=r.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?ce():0:l.scrollHeight>l.clientHeight?ce():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,s))},f.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"===typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},f.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(de()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ae(this._resetIsScrollingTimeoutId)},f.render=function(){var t=this.props,r=t.children,n=t.className,i=t.direction,a=t.height,s=t.innerRef,l=t.innerElementType,c=t.innerTagName,u=t.itemCount,d=t.itemData,f=t.itemKey,h=void 0===f?fe:f,m=t.layout,p=t.outerElementType,v=t.outerTagName,y=t.style,g=t.useIsScrolling,b=t.width,j=this.state.isScrolling,w="horizontal"===i||"horizontal"===m,_=w?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),S=x[0],O=x[1],D=[];if(u>0)for(var k=S;k<=O;k++)D.push((0,e.createElement)(r,{data:d,key:h(k,d),index:k,isScrolling:g?j:void 0,style:this._getItemStyle(k)}));var E=o(this.props,this._instanceProps);return(0,e.createElement)(p||v||"div",{className:n,onScroll:_,ref:this._outerRefSetter,style:Q({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:i},y)},(0,e.createElement)(l||c||"div",{children:D,ref:s,style:{height:w?"100%":E,pointerEvents:j?"none":void 0,width:w?E:"100%"}}))},f._callPropsCallbacks=function(){if("function"===typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"===typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,a=n.scrollOffset;if(0===t)return[0,0,0,0];var c=s(this.props,a,this._instanceProps),u=l(this.props,c,a,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),f=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+f)),c,u]},r}(e.PureComponent),r.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var me=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},pe=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},ve=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=pe(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},ye=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&pe(e,r,t).offset<n;)r+=i,i*=2;return ve(e,t,Math.min(r,o-1),Math.floor(r/2),n)},ge=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},be=he({getItemOffset:function(e,t,r){return pe(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:ge,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=pe(e,t,o),f=ge(e,o),h=Math.max(0,Math.min(f-u,d.offset)),m=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=m-u&&n<=h+u?"auto":"center"),r){case"start":return h;case"end":return m;case"center":return Math.round(m+(h-m)/2);default:return n>=m&&n<=h?n:n<m?m:h}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?ve(e,t,o,0,r):ye(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=pe(e,t,n),d=r+c,f=u.offset+u.size,h=t;h<a-1&&f<d;)h++,f+=pe(e,h,n).size;return h},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});let je;je="undefined"!==typeof window?window:"undefined"!==typeof self?self:i.g;let we=null,_e=null;const xe=je.clearTimeout,Se=je.setTimeout,Oe=je.cancelAnimationFrame||je.mozCancelAnimationFrame||je.webkitCancelAnimationFrame,De=je.requestAnimationFrame||je.mozRequestAnimationFrame||je.webkitRequestAnimationFrame;function ke(e){let t,r,n,o,i,a,s;const l="undefined"!==typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,r=t.firstElementChild,n=t.lastElementChild,o=r.firstElementChild;n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight,o.style.width=r.offsetWidth+1+"px",o.style.height=r.offsetHeight+1+"px",r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=function(e){if(e.target.className&&"function"===typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&we(this.__resizeRAF__),this.__resizeRAF__=_e((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(r){r.call(t,e)})))}))};let e=!1,l="";n="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let r=0;r<c.length;r++)if(void 0!==t.style[c[r]+"AnimationName"]){d=c[r],l="-"+d.toLowerCase()+"-",n=u[r],e=!0;break}}r="resizeanim",t="@"+l+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+r+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=je.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(r){if(!r.getElementById("detectElementResize")){const n=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=r.head||r.getElementsByTagName("head")[0],a=r.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=n:a.appendChild(r.createTextNode(n)),i.appendChild(a)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),n&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===r&&a(i)},i.__resizeTriggers__.addEventListener(n,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(n,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==Oe||null==De?(we=xe,_e=function(e){return Se(e,20)}):(we=function([e,t]){Oe(e),xe(t)},_e=function(e){const t=De((function(){xe(r),e()})),r=Se((function(){Oe(t),e()}),20);return[t,r]});class Ee extends e.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:r}=this.props;if(this._parentNode){const n=window.getComputedStyle(this._parentNode)||{},o=parseFloat(n.paddingLeft||"0"),i=parseFloat(n.paddingRight||"0"),a=parseFloat(n.paddingTop||"0"),s=parseFloat(n.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,f=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===f&&this.state.scaledWidth===u)||(this.setState({height:d,width:f,scaledHeight:c,scaledWidth:u}),"function"===typeof r&&r({height:d,scaledHeight:c,scaledWidth:u,width:f}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const r=t.ownerDocument.defaultView.ResizeObserver;null!=r?(this._resizeObserver=new r((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=ke(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:r,defaultWidth:n,disableHeight:o=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:a=!1,nonce:s,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,scaledHeight:h,scaledWidth:m,width:p}=this.state,v={overflow:"visible"},y={};let g=!1;return o||(0===f&&(g=!0),v.height=0,y.height=f,y.scaledHeight=h),i||(0===p&&(g=!0),v.width=0,y.width=p,y.scaledWidth=m),a&&(g=!1),(0,e.createElement)(u,{ref:this._setRef,style:{...v,...c},...d},!g&&t(y))}}var Ie=(0,e.forwardRef)((function(t,r){var n=t.dateIndex,o=t.dateValue,i=t.isEndDay,a=t.selected,l=t.hovered,c=t.disabled,u=t.totalDay,d=t.highlight,f=t.handleHoverDay,h=t.subText,p=(0,e.useRef)(null),v=E(),y=v.onSelectDate,g=v.onHoverDate,b=(0,e.useCallback)((function(){var e=r.current;e&&p.current&&(e.style.left="".concat(p.current.offsetLeft-e.offsetWidth+135,"px"),e.style.top="".concat(p.current.offsetTop-e.offsetHeight-15,"px"),e.style.visibility="visible")}),[r]),j=(0,e.useCallback)((function(){var e=r.current;e&&(e.style.visibility="hidden")}),[r]);return(0,e.useEffect)((function(){var e=p.current;return e&&(e.addEventListener("mouseover",b),e.addEventListener("mouseleave",j)),function(){e&&(e.removeEventListener("mouseover",b),e.removeEventListener("mouseleave",j))}}),[b,j]),(0,m.jsxs)("div",{className:s()("day",{selected:a,hovered:l,disabled:c,highlight:d,end:i,"has-subtext":!!h}),onClick:function(e){e.stopPropagation(),e.preventDefault(),c||y(o)},onMouseEnter:function(){c||(g(o),f(o))},role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":o.valueOf(),ref:p,children:[l&&!(i&&n===u)&&!(1===n&&a&&!i)&&(0,m.jsx)("div",{className:s()("background-day",{"first-day":1===n,"last-day":n===u})}),(0,m.jsxs)("div",{className:"day-content",children:[(0,m.jsx)("div",{className:"text-day",children:n}),h&&(0,m.jsx)("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:a&&!l?"#fff":"#666"},children:h})]})]})}));Ie.displayName="Day";var Ce=(0,e.forwardRef)((function(e,t){var r=e.isFirst,o=e.week,i=e.month,a=e.year,l=e.totalDay,c=(e.weekIndex,e.handleHoverDay),u=E(),d=u.fromDate,f=u.toDate,h=u.hoverDate,p=I(),v=p.minDate,y=p.maxDate,g=p.isSingle,b=p.highlightToday,j=z().subTextDict;return(0,m.jsx)("div",{className:s()("week",{first:r}),children:Array.from({length:o.days},(function(e,r){var s,u=r+o.start,p=n()("".concat(a,"-").concat(i+1,"-").concat(u)),w=v&&p.isBefore(v,"date")||y&&p.isAfter(y,"date"),_=d&&p.isSame(d,"date")||f&&p.isSame(f,"date"),x=!1,S=b&&p.isSame(new Date,"date");!d||d.isSame(f,"date")||g||(!f||d.isAfter(p,"date")||f.isBefore(p,"date")||(x=!0),f||p.isBefore(d,"date")||h&&h.isBefore(p,"date")||!d.isBefore(h,"date")||(x=!0));var O=f&&p.isSame(f,"date")||!f&&h&&p.isSame(h,"date"),D=j?null!==(s=j[p.format("YYYY-MM-DD")])&&void 0!==s?s:"\xa0":"";return(0,m.jsx)(Ie,{dateIndex:u,dateValue:p,selected:_,hovered:x,highlight:S,disabled:w,isEndDay:O,totalDay:l,handleHoverDay:c,subText:D,ref:t},r)}))})}));Ce.displayName="Week";var ze=(0,e.forwardRef)((function(e,t){var r=e.month,o=e.year,i=e.hidden,a=void 0!==i&&i,l=e.isAnimating,c=void 0!==l&&l,u=e.handleHoverDay,d=e.className,p=I(),v=p.startWeekDay,y=p.weekDayFormat,g=p.monthFormat,b=p.singleCalendar;return(0,m.jsxs)("div",{className:s()("month-calendar",{isAnimating:c,hidden:a,single:b},d),"data-month-index":r+1,children:[(0,m.jsx)("div",{className:"month-name",children:function(){var e=n()("".concat(o,"-").concat(r+1,"-1"));return g?e.format(g):e.format("MMMM - YYYY")}()}),(0,m.jsx)("div",{className:"weekdays",children:h(v,y).map((function(e){return(0,m.jsx)("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))}))}),(0,m.jsx)("div",{className:"week-container",children:function(){var e=f(o,r,v),n=e.totalWeek,i=e.totalDay;return n.map((function(e){var a="".concat(o,"-").concat(r,"-").concat(e.start);return(0,m.jsx)(Ce,{week:e,month:r,year:o,isFirst:e===n[0],totalDay:i,weekIndex:n.indexOf(e),handleHoverDay:u,ref:t},a)}))}()})]})}));function Pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ne(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}ze.displayName="MonthCalendar";var Ae=function(){var r=Pe((0,e.useState)(2400),2),o=r[0],i=r[1],a=(0,e.useRef)(null),s=E().fromDate,l=I(),c=l.startWeekDay,u=l.minDate,d=l.maxDate,p=l.weekDayFormat,v=C().complsOpen,y=z(),g=(y.tooltip,y.subTextDict,u?n()(u).year():1900),b=u?n()(u).month():0;(0,e.useEffect)((function(){if(d){var e=u?n()(u):n()("1900-01-01");i(n()(d).diff(e,"month")+1)}}),[d,u]),(0,e.useEffect)((function(){if(a.current&&v){var e=s?n()(s):n()(),t=e.diff(n()("1900-01-01"),"month");u&&(t=e.diff(n()(u),"month")),a.current.scrollToItem(t+1,"smart")}}),[v,s,u]);var j=function(e){var t=e+b;return{year:g+Math.floor(t/12),month:t%12}},w=t().memo((function(e){var t=e.index,r=e.style,n=j(t),o=n.year,i=n.month;return(0,m.jsx)("div",{style:r,children:(0,m.jsx)(ze,{month:i,year:o,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})}));w.displayName="CalendarRow";var _=function(e){var t=j(e);return 48*f(t.year,t.month,c||"monday").totalWeek.length+34};return(0,m.jsx)("div",{className:"calendar-wrapper",children:(0,m.jsxs)("div",{className:"calendar-content",children:[(0,m.jsx)("div",{className:"weekdays mobile",children:h(c||"monday",p).map((function(e,t){return(0,m.jsx)("div",{className:"weekday",children:e},t)}))}),(0,m.jsx)(Ee,{children:function(e){var t=e.height,r=e.width;return(0,m.jsx)(be,{ref:a,width:r,height:t-36,itemCount:o,itemSize:_,children:w})}})]})})};function Le(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Re(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Re(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Te=function(t){var r,o=t.dateChanged,i=void 0===o?null:o,a=(0,e.useRef)(null),l=(0,e.useRef)(null),c=Le((0,e.useState)(0),2),u=c[0],d=c[1],f=Le((0,e.useState)([]),2),h=f[0],p=f[1],v=Le((0,e.useState)(n()()),2),y=v[0],g=v[1],b=Le((0,e.useState)(!1),2),j=b[0],w=b[1],_=Le((0,e.useState)(!1),2),x=_[0],S=_[1],O=Le((0,e.useState)(0),2),D=O[0],k=O[1],P=Le((0,e.useState)(null),2),N=P[0],A=P[1],L=Le((0,e.useState)(!1),2),R=L[0],T=L[1],M=E().fromDate,W=I(),H=W.minDate,q=W.maxDate,U=W.singleCalendar,$=C().complsOpen,G=z().tooltip,V=function(e){return[n()(e).subtract(1,"month"),e,n()(e).add(1,"month"),n()(e).add(2,"month")]},Y=(0,e.useCallback)((function(e){A(n()(e))}),[]),K=function(e){return function(){("next"===e?x:j)||R||(T(!0),requestAnimationFrame((function(){d("next"===e?-D:D)})),setTimeout((function(){var t="next"===e?n()(y).add(1,"month"):n()(y).subtract(1,"month");g(t),p(V(t)),d(0),T(!1)}),200))}},X=K("next"),J=K("prev"),Q=function(e,t){"Space"!==e.key&&"Enter"!==e.key||(e.preventDefault(),t())};return(0,e.useEffect)((function(){var e,t,r,n=null!==(e=null==(t=a.current)?void 0:t.offsetWidth)&&void 0!==e?e:0,o=window.getComputedStyle(null!==(r=a.current)&&void 0!==r?r:document.createElement("div")),i=U?n+parseInt(o.marginLeft)-8:n/2;k(i)}),[a.current,U]),(0,e.useEffect)((function(){g(null!==M&&void 0!==M?M:n()())}),[$,M]),(0,e.useEffect)((function(){w(Boolean(H&&y.isBefore(n()(H).add(1,"month"),"month"))),S(Boolean(q&&y.isAfter(n()(q).subtract(2,"month"),"month"))),p(V(y))}),[y,H,q]),(0,e.useEffect)((function(){i&&(n()(i).isBefore(y,"month")?J():n()(i).isAfter(y.add(1,"month"),"month")&&X())}),[i,y]),(0,m.jsxs)("div",{className:"relative",children:[G&&(0,m.jsx)("div",{id:"day-tooltip",className:"tooltip-text",ref:l,children:"function"===typeof G?G(null!==(r=null==N?void 0:N.toDate())&&void 0!==r?r:new Date):G}),(0,m.jsxs)("div",{className:s()("calendar-wrapper",{single:U}),ref:a,onKeyDown:function(e){var t,r=e.target,o=r.getAttribute("data-day-index");if(["Tab","Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(e.key)&&o){e.preventDefault();var i=r.closest(".calendar-wrapper"),a=parseInt(null!==(t=r.getAttribute("data-date-value"))&&void 0!==t?t:"0"),s=n()(a),l=s.add(1,"month").set("date",0).get("date"),c=parseInt(o),u=c;switch(e.key){case"Tab":return;case"Space":r.click();break;case"ArrowLeft":u=c-1;break;case"ArrowUp":u=c-7;break;case"ArrowRight":u=c+1;break;case"ArrowDown":u=c+7}if(u>0&&u<=l){var d=r.closest(".month-calendar"),f=null==d?void 0:d.querySelector('.day[data-day-index="'.concat(u,'"]'));null==f||f.focus()}else{var h=s.add(u-c,"day"),m=Math.ceil(h.diff(y,"month",!0));if(m>1){if(q&&n()(h).isAfter(q,"month"))return;X()}else if(m<0){if(H&&n()(h).isBefore(H,"month"))return;J()}setTimeout((function(){if(i){var e='.month-calendar[data-month-index="'.concat(h.get("month")+1,'"] .day[data-day-index="').concat(h.get("date"),'"]'),t=i.querySelector(e);null==t||t.focus()}}),200)}}},role:"grid","aria-label":"Calendar",children:[(0,m.jsx)("div",{className:s()("calendar-content",{isAnimating:R}),style:{transform:"translateX(".concat(u,"px)")},children:h.map((function(e,t){var r="".concat(e.get("year"),"-").concat(e.get("month")),n=R&&u<0&&3===t,o=R&&u>0&&0===t,i=!(1===t||2===t)&&!n&&!o;return(0,m.jsx)(ze,{hidden:i,isAnimating:n||o,month:e.get("month"),year:e.get("year"),handleHoverDay:Y,ref:l,className:s()({"slide-next":n,"slide-prev":o})},r)}))}),(0,m.jsxs)("div",{className:"calendar-flippers",children:[(0,m.jsx)("button",{className:s()("flipper-button",{disabled:j}),onClick:J,onKeyDown:function(e){return Q(e,J)},disabled:j,"aria-label":"Previous month",children:(0,m.jsx)(F,{viewBox:"0 0 24 24"})}),(0,m.jsx)("button",{className:s()("flipper-button",{disabled:x}),onClick:X,onKeyDown:function(e){return Q(e,X)},disabled:x,"aria-label":"Next month",onBlur:function(){var e,t,r,n=null!==(e=null==(t=a.current)?void 0:t.querySelector(".day.selected"))&&void 0!==e?e:null==(r=a.current)?void 0:r.querySelector(".month-calendar:not(.hidden) .day:not(.disabled)");null==n||n.focus()},children:(0,m.jsx)(B,{viewBox:"0 0 24 24"})})]})]})]})};function Me(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Fe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var We=function(t){var r=t.containerRef,n=Me((0,e.useState)(!1),2),o=n[0],i=n[1],a=Me((0,e.useState)(null),2),l=a[0],c=(a[1],(0,e.useRef)(null)),u=r||c,d=E(),f=(d.handleChangeDate,d.handleReset),h=I(),p=h.singleCalendar,v=h.expandDirection,y=C(),g=y.complsOpen,b=y.isMobile,j=y.toggleDialog,w=z(),_=w.hideDialogHeader,x=w.hideDialogFooter;return(0,e.useEffect)((function(){g&&!o&&i(!0),g&&setTimeout((function(){var e,t=null==(e=u.current)?void 0:e.querySelector("#start-date-input-button");t&&t.focus()}),50)}),[g,u,o]),(0,m.jsxs)("div",{className:s()("dialog-date-picker",{open:g,hide:!g&&o,single:p&&!b,"expand-left":"left"===v,"expand-right":"right"===v}),ref:u,children:[!_&&(0,m.jsxs)("div",{className:"dialog-header",children:[(0,m.jsx)("button",{type:"button",className:"btn-outline back-button",onClick:j,children:(0,m.jsx)(J,{viewBox:"0 0 492 492"})}),(0,m.jsx)(G,{showIcon:!0,nonFocusable:!g}),(0,m.jsx)("button",{type:"button",className:"btn-outline reset-button",onClick:f,children:"Reset"})]}),(0,m.jsx)("div",{className:"dialog-content",children:b?(0,m.jsx)(Ae,{}):(0,m.jsx)(Te,{dateChanged:l})}),!x&&(0,m.jsxs)("div",{className:"dialog-footer",children:[(0,m.jsx)("button",{type:"button",className:"submit-button",onClick:j,tabIndex:0,children:"Done"}),(0,m.jsx)("button",{type:"button",className:"btn-outline reset-button mobile",onClick:f,children:"Reset"})]})]})};function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}n().extend(c());const qe=function(t){var r=t.startDate,o=void 0===r?null:r,i=t.endDate,a=void 0===i?null:i,l=t.className,c=void 0===l?"":l,u=t.disabled,d=void 0!==u&&u,f=t.startDatePlaceholder,h=t.endDatePlaceholder,p=t.onChange,v=t.onFocus,y=void 0===v?function(){}:v,g=t.startWeekDay,b=void 0===g?"monday":g,j=t.minDate,w=void 0===j?null:j,_=t.maxDate,x=void 0===_?null:_,S=t.weekDayFormat,O=void 0===S?"dd":S,D=t.dateFormat,k=void 0===D?"":D,E=t.monthFormat,I=void 0===E?"":E,C=t.highlightToday,z=void 0!==C&&C,P=t.dateInputSeperator,A=void 0===P?null:P,L=t.hideDialogHeader,R=void 0!==L&&L,T=t.hideDialogFooter,M=void 0!==T&&T,F=t.hideDialogAfterSelectEndDate,W=void 0!==F&&F,H=t.isOpen,B=void 0!==H&&H,q=t.onCloseCalendar,U=t.tooltip,$=void 0===U?"":U,V=t.subTextDict,K=void 0===V?null:V,X=t.expandDirection,J=void 0===X?"right":X,Q=t.locale,Z=void 0===Q?"en":Q,ee=t.isSingle,te=void 0!==ee&&ee,re=t.singleCalendar,ne=void 0!==re&&re,oe=He((0,e.useState)(B),2),ie=oe[0],ae=oe[1],se=He((0,e.useState)(te?"from":null),2),le=se[0],ce=se[1],ue=He((0,e.useState)(o?n()(o):void 0),2),de=ue[0],fe=ue[1],he=He((0,e.useState)(a?n()(a):void 0),2),me=he[0],pe=he[1],ve=He((0,e.useState)(),2),ye=ve[0],ge=ve[1],be=He((0,e.useState)(!1),2),je=be[0],we=be[1],_e=He((0,e.useState)(!1),2),xe=_e[0],Se=_e[1],Oe=(0,e.useRef)(null),De=(0,e.useRef)(null),ke=(0,e.useRef)(null),Ee=function(){"undefined"!==typeof window&&window.innerWidth<768?we(!0):we(!1)},Ie=function(e,t){var r;return function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(n,i)}),t)}}((function(){var e=De.current?De.current.toDate():null,t=!te&&ke.current?ke.current.toDate():null;p(e,te?null:t)}),20),Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];fe(e||void 0),De.current=e||null,t&&Ie()},ze=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];te||(pe(e||void 0),ke.current=e||null,t&&Ie())};(0,e.useLayoutEffect)((function(){if(Ee(),"undefined"!==typeof window)return window.addEventListener("resize",Ee),function(){return window.removeEventListener("resize",Ee)}}),[]),(0,e.useEffect)((function(){Se(!0);var e=function(e){Oe.current&&e.target instanceof Node&&!Oe.current.contains(e.target)&&window.innerWidth>=768&&ae(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}}),[]),(0,e.useEffect)((function(){var e=o?n()(o):null;De.current=e,Ce(e,!1)}),[o]),(0,e.useEffect)((function(){if(!te){var e=a?n()(a):null;ke.current=e,ze(e,!1)}}),[a,te]),(0,e.useEffect)((function(){if(!ie&&xe){var e,t,r=(null==(e=De.current)?void 0:e.toDate())||null,n=(null==(t=ke.current)?void 0:t.toDate())||null;q(r,te?null:n)}}),[ie,xe,te,q]),(0,e.useEffect)((function(){ae(B)}),[B]),(0,e.useEffect)((function(){xe&&y("from"===le?"Start Date":"to"===le?"End Date":"")}),[le,xe,y]);var Pe={fromDate:de,toDate:me,hoverDate:ye,inputFocus:le,onSelectDate:function(e){w&&n()(w).isAfter(e,"date")||x&&n()(x).isBefore(e,"date")||(te?(Ce(e,!0),W&&setTimeout((function(){return ae(!1)}),50)):"from"===le||de&&e.isBefore(de,"date")?(Ce(e,!0),me&&e.isAfter(me,"date")&&ze(null,!0),ce("to")):(ze(e,!0),ce(null),W&&setTimeout((function(){return ae(!1)}),50)))},onHoverDate:function(e){ge(e)},handleChangeDate:function(e,t){w&&n()(w).isAfter(e,"date")||x&&n()(x).isBefore(e,"date")||("from"===t||te?(ce("from"),Ce(e,!0),!te&&me&&e.isAfter(me,"date")&&ze(null,!0)):(ce("to"),ze(e,!0)))},handleReset:function(){ge(void 0),Ce(null,!0),te||ze(null,!0),ce("from")},handleClickDateInput:function(e){d||!te&&"to"===e&&!de||(ie||ae(!0),ce(e))}},Ne={isSingle:te,startWeekDay:b,minDate:w,maxDate:x,weekDayFormat:O,dateFormat:k,monthFormat:I,highlightToday:z,singleCalendar:ne,expandDirection:J,locale:Z},Ae={complsOpen:ie,isMobile:je,disabled:d,toggleDialog:function(){ae(!ie)}},Le={startDatePlaceholder:f,endDatePlaceholder:h,dateInputSeperator:A,hideDialogHeader:R,hideDialogFooter:M,hideDialogAfterSelectEndDate:W,tooltip:$,subTextDict:K};return(0,m.jsx)("div",{className:"react-google-flight-datepicker",children:(0,m.jsx)("div",{className:s()("date-picker",c,{disabled:d}),ref:Oe,children:(0,m.jsxs)(N,{dateState:Pe,config:Ne,uiState:Ae,display:Le,locale:Z,children:[(0,m.jsx)(G,{}),(0,m.jsx)(Y,{children:(0,m.jsx)(We,{})})]})})})};function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}var $e=["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"];function Ge(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ge(Object(r),!0).forEach((function(t){Ye(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ge(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ye(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Ue(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ue(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ue(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ke=function(e){var t=e.onChange,r=void 0===t?function(){}:t,n=e.onCloseCalendar,o=void 0===n?function(){}:n,i=e.startDatePlaceholder,a=void 0===i?"Start date":i,s=e.endDatePlaceholder,l=void 0===s?"End date":s,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,$e);return(0,m.jsx)(qe,Ve(Ve({},c),{},{isSingle:!1,startDate:c.startDate,endDate:c.endDate,startDatePlaceholder:a,endDatePlaceholder:l,onChange:r,onCloseCalendar:o}))};function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}var Je=["onChange","onCloseCalendar","startDatePlaceholder"];function Qe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(r),!0).forEach((function(t){et(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function et(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Xe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tt=function(e){var t=e.onChange,r=void 0===t?function(){}:t,n=e.onCloseCalendar,o=void 0===n?function(){}:n,i=e.startDatePlaceholder,a=void 0===i?"Date":i,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,Je);return(0,m.jsx)(qe,Ze(Ze({},s),{},{endDate:null,isSingle:!0,startDate:s.startDate,startDatePlaceholder:a,onChange:function(e){return r(e)},onCloseCalendar:function(e){return o(e)}}))}})(),a})()));
|
|
3
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
"use strict";function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function r(e,t,n,r,a,o,i){try{var l=e[o](i);var u=l.value}catch(e){n(e);return}if(l.done){t(u)}else{Promise.resolve(u).then(r,a)}}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,o){var i=e.apply(t,n);function l(e){r(i,a,o,l,u,"next",e)}function u(e){r(i,a,o,l,u,"throw",e)}l(undefined)})}}function o(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function i(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function l(e){if(typeof WeakMap!=="function")return null;var t=new WeakMap;var n=new WeakMap;return(l=function(e){return e?n:t})(e)}function u(e,t){if(!t&&e&&e.__esModule){return e}if(e===null||typeof e!=="object"&&typeof e!=="function"){return{default:e}}var n=l(t);if(n&&n.has(e)){return n.get(e)}var r={__proto__:null};var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e){if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;if(i&&(i.get||i.set)){Object.defineProperty(r,o,i)}else{r[o]=e[o]}}}r.default=e;if(n){n.set(e,r)}return r}function d(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var r=[];var a=true;var o=false;var i,l;try{for(n=n.call(e);!(a=(i=n.next()).done);a=true){r.push(i.value);if(t&&r.length===t)break}}catch(e){o=true;l=e}finally{try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw l}}return r}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var r=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}r.forEach(function(t){o(e,t,n[t])})}return e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,r)}return n}function m(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{h(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function y(e,t){if(e==null)return{};var n=p(e,t);var r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++){r=o[a];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function p(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var a,o;for(o=0;o<r.length;o++){a=r[o];if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function b(e,n){return t(e)||c(e,n)||D(e,n)||s()}function x(e){return n(e)||d(e)||D(e)||f()}function g(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function D(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor)r=t.constructor.name;if(r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(t,n)}function j(e,t){var n,r,a,o,i={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),"throw":l(1),"return":l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return u([e,t])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;r=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(a=i.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(o[0]===6&&i.label<a[1]){i.label=a[1];a=o;break}if(a&&i.label<a[2]){i.label=a[2];i.ops.push(o);break}if(a[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];r=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}}var w=Object.create;var S=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty;var N=function(e,t){for(var n in t)S(e,n,{get:t[n],enumerable:!0})},q=function(e,t,n,r){var a=true,o=false,i=undefined;if(t&&(typeof t==="undefined"?"undefined":g(t))=="object"||typeof t=="function")try{var l=function(){var a=d.value;!O.call(e,a)&&a!==n&&S(e,a,{get:function(){return t[a]},enumerable:!(r=k(t,a))||r.enumerable})};for(var u=P(t)[Symbol.iterator](),d;!(a=(d=u.next()).done);a=true)l()}catch(e){o=true;i=e}finally{try{if(!a&&u.return!=null){u.return()}}finally{if(o){throw i}}}return e};var E=function(e,t,n){return n=e!=null?w(C(e)):{},q(t||!e||!e.__esModule?S(n,"default",{value:e,enumerable:!0}):n,e)},A=function(e){return q(S({},"__esModule",{value:!0}),e)};var I={};N(I,{RangeDatePicker:function(){return eX},SingleDatePicker:function(){return eQ}});module.exports=A(I);var R=require("react"),F=E(require("dayjs")),L=E(require("classnames")),M=E(require("dayjs/plugin/localeData"));var T=E(require("dayjs"));function B(e,t,n){var r=[],a=new Date(e,t,1),o=new Date(e,t+1,0).getDate(),i=1,l=a.getDay()===0?1:7-a.getDay()+1;for(n==="sunday"&&(l=7-a.getDay());i<=o;)r.push({start:i,days:l-i+1}),i=l+1,l+=7,l=i===1&&l===8?1:l,l>o&&(l=o);return{totalWeek:r,totalDay:o}}function _(e,t){var n=x(Array(7)).map(function(e,n){return(0,T.default)().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd")});if(e==="sunday"){var r=n.pop();r&&n.unshift(r)}return n}function W(e,t){var n;return function(){var r=this;for(var a=arguments.length,o=new Array(a),i=0;i<a;i++){o[i]=arguments[i]}var l=function(){n=null,e.apply(r,o)};n&&clearTimeout(n),n=setTimeout(l,t)}}var H=require("react"),z=E(require("dayjs")),Y=require("react/jsx-runtime"),U=(0,H.createContext)(null),G=(0,H.createContext)(null),J=(0,H.createContext)(null),K=(0,H.createContext)(null),V=(0,H.createContext)(null),X=function(){var e=(0,H.useContext)(U);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},$=function(){var e=(0,H.useContext)(G);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},Q=function(){var e=(0,H.useContext)(J);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},Z=function(){var e=(0,H.useContext)(K);if(!e)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return e};var ee=/*#__PURE__*/function(){var e=a(function(e){var t;return j(this,function(n){switch(n.label){case 0:if(e==="en")return[2,!0];n.label=1;case 1:n.trys.push([1,3,,4]);return[4,Promise.resolve("dayjs/locale/".concat(e,".js")).then(function(e){return /*#__PURE__*/u(require(e))})];case 2:return[2,(n.sent(),!0)];case 3:t=n.sent();return[2,(console.error("Failed to load locale ".concat(e,":"),t),!1)];case 4:return[2]}})});return function t(t){return e.apply(this,arguments)}}(),et=function(e){var t=e.children,n=e.dateState,r=e.config,a=e.uiState,o=e.display,i=e.locale,l=i===void 0?"en":i;var u=b((0,H.useState)({currentLocale:"en",isLocaleReady:l==="en"}),2),d=u[0],c=u[1];return(0,H.useEffect)(function(){l!=="en"?(c(function(e){return m(v({},e),{isLocaleReady:!1})}),ee(l).then(function(e){e?(z.default.locale(l),c({currentLocale:l,isLocaleReady:!0})):(z.default.locale("en"),c({currentLocale:"en",isLocaleReady:!0}))})):(z.default.locale("en"),c({currentLocale:"en",isLocaleReady:!0}))},[l]),d.isLocaleReady?(0,Y.jsx)(V.Provider,{value:d,children:(0,Y.jsx)(U.Provider,{value:n,children:(0,Y.jsx)(G.Provider,{value:r,children:(0,Y.jsx)(J.Provider,{value:a,children:(0,Y.jsx)(K.Provider,{value:o,children:t})})})})}):null};var en="./calendar-P2OTLJJM.svg";var er=require("react"),ea=E(require("classnames")),eo=E(require("dayjs"));var ei="./prev-XR4S5NRO.svg";var el="./next-EJ77CHMG.svg";var eu=require("react/jsx-runtime"),ed=function(e){var t=e.type,n=e.showIcon,r=n===void 0?!1:n,a=e.tabIndex,o=a===void 0?0:a,i=e.nonFocusable,l=i===void 0?!1:i;var u=b((0,er.useState)(null),2),d=u[0],c=u[1],s=b((0,er.useState)(!1),2),f=s[0],v=s[1],h=b((0,er.useState)(!1),2),m=h[0],y=h[1],p=X(),x=p.fromDate,g=p.toDate,D=p.inputFocus,j=p.handleClickDateInput,w=p.handleChangeDate,S=$(),k=S.isSingle,P=S.minDate,C=S.maxDate,O=S.dateFormat,N=Z(),q=N.startDatePlaceholder,E=N.endDatePlaceholder,A=t==="from"?x:g,I=t==="from"?q:E;(0,er.useEffect)(function(){if(A){var e=A.clone().locale(eo.default.locale()).format("ddd, DD MMM");O&&(e=A.format(O)),c(e);var n=P?(0,eo.default)(P):null,r=C?(0,eo.default)(C):null;(n===null||n===void 0?void 0:n.add(1,"day").isAfter(A,"date"))||t==="to"&&x&&A.isBefore(x.add(1,"day"),"date")?v(!0):v(!1),(r===null||r===void 0?void 0:r.subtract(1,"day").isBefore(A,"date"))?y(!0):y(!1)}else c(null)},[A,x,P,C,O,t]);var R=function(e){e.stopPropagation(),A&&w(A.subtract(1,"day"),t)},F=function(e){e.stopPropagation(),A&&w(A.add(1,"day"),t)},L=function(){j(t)};return(0,eu.jsxs)("div",{className:(0,ea.default)("date",{"is-focus":D===t&&!k,"is-single":k}),role:"button",tabIndex:l?-1:o,onClick:L,id:"".concat(t,"-date-input-button"),children:[r&&(0,eu.jsx)(en,{className:"icon-calendar",viewBox:"0 0 24 24"}),(0,eu.jsx)("div",{className:"selected-date",children:d!==null&&d!==void 0?d:(0,eu.jsx)("div",{className:"date-placeholder",children:I})}),d&&(0,eu.jsxs)("div",{className:"change-date-group",children:[(0,eu.jsx)("button",{type:"button",className:"btn-outline change-date-button",onClick:R,tabIndex:l?-1:0,disabled:f,children:(0,eu.jsx)(ei,{viewBox:"0 0 24 24",className:"icon-arrow"})}),(0,eu.jsx)("button",{type:"button",className:"btn-outline change-date-button",onClick:F,tabIndex:l?-1:0,disabled:m,children:(0,eu.jsx)(el,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};var ec=require("react/jsx-runtime"),es=function(e){var t=e.showIcon,n=t===void 0?!1:t,r=e.nonFocusable,a=r===void 0?!1:r;var o=$(),i=o.isSingle,l=Z(),u=l.dateInputSeperator;return(0,ec.jsxs)("div",{className:"date-picker-input",children:[n&&(0,ec.jsx)(en,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),(0,ec.jsxs)("div",{className:"date-picker-date-group",children:[(0,ec.jsx)(ed,{type:"from",tabIndex:a?-1:0,showIcon:!0,nonFocusable:a}),!i&&u&&(0,ec.jsx)("div",{className:"date-input-separator",children:u}),!i&&(0,ec.jsx)(ed,{type:"to",tabIndex:a?-1:0,showIcon:!1,nonFocusable:a})]})]})};var ef=require("react-dom"),ev=require("react/jsx-runtime"),eh=function(e){var t=e.children,n=t===void 0?null:t,r=e.isMobile,a=r===void 0?!1:r;return a?(0,ef.createPortal)((0,ev.jsx)("div",{className:"react-google-flight-datepicker",children:n}),document.querySelector("body")):(0,ev.jsx)(ev.Fragment,{children:n})},em=eh;var ey=require("react"),ep=E(require("classnames"));var eb="./back-CP7UAS2G.svg";var ex=E(require("react")),eg=E(require("dayjs")),eD=require("react-window"),ej=E(require("react-virtualized-auto-sizer"));var ew=require("react"),eS=E(require("classnames")),ek=E(require("dayjs"));var eP=require("react"),eC=E(require("classnames")),eO=E(require("dayjs"));var eN=require("react"),eq=E(require("classnames"));var eE=require("react/jsx-runtime"),eA=(0,eN.forwardRef)(function(e,t){var n=e.dateIndex,r=e.dateValue,a=e.isEndDay,o=e.selected,i=e.hovered,l=e.disabled,u=e.totalDay,d=e.highlight,c=e.handleHoverDay,s=e.subText;var f=(0,eN.useRef)(null),v=X(),h=v.onSelectDate,m=v.onHoverDate,y=function(e){e.stopPropagation(),e.preventDefault(),!l&&h(r)},p=function(){l||(m(r),c(r))},b=(0,eN.useCallback)(function(){var e=t.current;e&&f.current&&(e.style.left="".concat(f.current.offsetLeft-e.offsetWidth+135,"px"),e.style.top="".concat(f.current.offsetTop-e.offsetHeight-15,"px"),e.style.visibility="visible")},[t]),x=(0,eN.useCallback)(function(){var e=t.current;e&&(e.style.visibility="hidden")},[t]);return(0,eN.useEffect)(function(){var e=f.current;return e&&(e.addEventListener("mouseover",b),e.addEventListener("mouseleave",x)),function(){e&&(e.removeEventListener("mouseover",b),e.removeEventListener("mouseleave",x))}},[b,x]),(0,eE.jsxs)("div",{className:(0,eq.default)("day",{selected:o,hovered:i,disabled:l,highlight:d,end:a,"has-subtext":!!s}),onClick:y,onMouseEnter:p,role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":r.valueOf(),ref:f,children:[i&&!(a&&n===u)&&!(n===1&&o&&!a)&&(0,eE.jsx)("div",{className:(0,eq.default)("background-day",{"first-day":n===1,"last-day":n===u})}),(0,eE.jsxs)("div",{className:"day-content",children:[(0,eE.jsx)("div",{className:"text-day",children:n}),s&&(0,eE.jsx)("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:o&&!i?"#fff":"#666"},children:s})]})]})});eA.displayName="Day";var eI=require("react/jsx-runtime"),eR=(0,eP.forwardRef)(function(e,t){var n=e.isFirst,r=e.week,a=e.month,o=e.year,i=e.totalDay,l=e.weekIndex,u=e.handleHoverDay;var d=X(),c=d.fromDate,s=d.toDate,f=d.hoverDate,v=$(),h=v.minDate,m=v.maxDate,y=v.isSingle,p=v.highlightToday,b=Z(),x=b.subTextDict,g=function(){return Array.from({length:r.days},function(e,n){var l=n+r.start,d=(0,eO.default)("".concat(o,"-").concat(a+1,"-").concat(l)),v=h&&d.isBefore(h,"date")||m&&d.isAfter(m,"date"),b=c&&d.isSame(c,"date")||s&&d.isSame(s,"date"),g=!1,D=p&&d.isSame(new Date,"date");c&&!c.isSame(s,"date")&&!y&&(s&&!c.isAfter(d,"date")&&!s.isBefore(d,"date")&&(g=!0),!s&&!d.isBefore(c,"date")&&!(f&&f.isBefore(d,"date"))&&c.isBefore(f,"date")&&(g=!0));var j;var w=s&&d.isSame(s,"date")||!s&&f&&d.isSame(f,"date"),S=x?(j=x[d.format("YYYY-MM-DD")])!==null&&j!==void 0?j:"\xa0":"";return(0,eI.jsx)(eA,{dateIndex:l,dateValue:d,selected:b,hovered:g,highlight:D,disabled:v,isEndDay:w,totalDay:i,handleHoverDay:u,subText:S,ref:t},n)})};return(0,eI.jsx)("div",{className:(0,eC.default)("week",{first:n}),children:g()})});eR.displayName="Week";var eF=require("react/jsx-runtime"),eL=(0,ew.forwardRef)(function(e,t){var n=e.month,r=e.year,a=e.hidden,o=a===void 0?!1:a,i=e.isAnimating,l=i===void 0?!1:i,u=e.handleHoverDay,d=e.className;var c=$(),s=c.startWeekDay,f=c.weekDayFormat,v=c.monthFormat,h=c.singleCalendar,m=function(){var e=B(r,n,s),a=e.totalWeek,o=e.totalDay;return a.map(function(e){var i="".concat(r,"-").concat(n,"-").concat(e.start);return(0,eF.jsx)(eR,{week:e,month:n,year:r,isFirst:e===a[0],totalDay:o,weekIndex:a.indexOf(e),handleHoverDay:u,ref:t},i)})},y=function(){return _(s,f).map(function(e){return(0,eF.jsx)("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))})},p=function(){var e=(0,ek.default)("".concat(r,"-").concat(n+1,"-1"));return v?e.format(v):e.format("MMMM - YYYY")};return(0,eF.jsxs)("div",{className:(0,eS.default)("month-calendar",{isAnimating:l,hidden:o,single:h},d),"data-month-index":n+1,children:[(0,eF.jsx)("div",{className:"month-name",children:p()}),(0,eF.jsx)("div",{className:"weekdays",children:y()}),(0,eF.jsx)("div",{className:"week-container",children:m()})]})});eL.displayName="MonthCalendar";var eM=require("react/jsx-runtime"),eT=function(){var e=b((0,ex.useState)(2400),2),t=e[0],n=e[1],r=(0,ex.useRef)(null),a=X(),o=a.fromDate,i=$(),l=i.startWeekDay,u=i.minDate,d=i.maxDate,c=i.weekDayFormat,s=Q(),f=s.complsOpen,v=Z(),h=v.tooltip,m=v.subTextDict,y=u?(0,eg.default)(u).year():1900,p=u?(0,eg.default)(u).month():0;(0,ex.useEffect)(function(){if(d){var e=u?(0,eg.default)(u):(0,eg.default)("1900-01-01");n((0,eg.default)(d).diff(e,"month")+1)}},[d,u]),(0,ex.useEffect)(function(){if(r.current&&f){var e=o?(0,eg.default)(o):(0,eg.default)(),t=e.diff((0,eg.default)("1900-01-01"),"month");u&&(t=e.diff((0,eg.default)(u),"month")),r.current.scrollToItem(t+1,"smart")}},[f,o,u]);var x=function(e){var t=e+p,n=y+Math.floor(t/12),r=t%12;return{year:n,month:r}},g=ex.default.memo(function(e){var t=e.index,n=e.style;var r=x(t),a=r.year,o=r.month;return(0,eM.jsx)("div",{style:n,children:(0,eM.jsx)(eL,{month:o,year:a,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})});g.displayName="CalendarRow";var D=function(e){var t=x(e),n=t.year,r=t.month,a=B(n,r,l||"monday"),o=a.totalWeek;return o.length*48+34},j=function(){return(0,eM.jsx)(ej.default,{children:function(e){var n=e.height,a=e.width;return(0,eM.jsx)(eD.VariableSizeList,{ref:r,width:a,height:n-36,itemCount:t,itemSize:D,children:g})}})};return(0,eM.jsx)("div",{className:"calendar-wrapper",children:(0,eM.jsxs)("div",{className:"calendar-content",children:[(0,eM.jsx)("div",{className:"weekdays mobile",children:_(l||"monday",c).map(function(e,t){return(0,eM.jsx)("div",{className:"weekday",children:e},t)})}),j()]})})};var eB=require("react"),e_=E(require("classnames")),eW=E(require("dayjs"));var eH=require("react/jsx-runtime"),ez=function(e){var t=e.dateChanged,n=t===void 0?null:t;var r=(0,eB.useRef)(null),a=(0,eB.useRef)(null),o=b((0,eB.useState)(0),2),i=o[0],l=o[1],u=b((0,eB.useState)([]),2),d=u[0],c=u[1],s=b((0,eB.useState)((0,eW.default)()),2),f=s[0],v=s[1],h=b((0,eB.useState)(!1),2),m=h[0],y=h[1],p=b((0,eB.useState)(!1),2),x=p[0],g=p[1],D=b((0,eB.useState)(0),2),j=D[0],w=D[1],S=b((0,eB.useState)(null),2),k=S[0],P=S[1],C=b((0,eB.useState)(!1),2),O=C[0],N=C[1],q=X(),E=q.fromDate,A=$(),I=A.minDate,R=A.maxDate,F=A.singleCalendar,L=Q(),M=L.complsOpen,T=Z(),B=T.tooltip,_=function(e){return[(0,eW.default)(e).subtract(1,"month"),e,(0,eW.default)(e).add(1,"month"),(0,eW.default)(e).add(2,"month")]},W=(0,eB.useCallback)(function(e){P((0,eW.default)(e))},[]),H=function(e){return function(){(e==="next"?x:m)||O||(N(!0),requestAnimationFrame(function(){var t=e==="next"?-j:j;l(t)}),setTimeout(function(){var t=e==="next"?(0,eW.default)(f).add(1,"month"):(0,eW.default)(f).subtract(1,"month");v(t),c(_(t)),l(0),N(!1)},200))}},z=H("next"),Y=H("prev"),U=function(){var e,t,n;var a;(e=(a=(t=r.current)===null||t===void 0?void 0:t.querySelector(".day.selected"))!==null&&a!==void 0?a:(n=r.current)===null||n===void 0?void 0:n.querySelector(".month-calendar:not(.hidden) .day:not(.disabled)"))===null||e===void 0?void 0:e.focus()},G=function(e){var t,n;var r=e.target,a=["Tab","Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown"],o=r.getAttribute("data-day-index");if(!a.includes(e.key)||!o)return;e.preventDefault();var i;var l=r.closest(".calendar-wrapper"),u=parseInt((i=r.getAttribute("data-date-value"))!==null&&i!==void 0?i:"0"),d=(0,eW.default)(u),c=d.add(1,"month").set("date",0).get("date"),s=parseInt(o),v=s;switch(e.key){case"Tab":return;case"Space":r.click();break;case"ArrowLeft":v=s-1;break;case"ArrowUp":v=s-7;break;case"ArrowRight":v=s+1;break;case"ArrowDown":v=s+7;break}if(v>0&&v<=c)(n=r.closest(".month-calendar"))===null||n===void 0?void 0:(t=n.querySelector('.day[data-day-index="'.concat(v,'"]')))===null||t===void 0?void 0:t.focus();else{var h=d.add(v-s,"day"),m=Math.ceil(h.diff(f,"month",!0));if(m>1){if(R&&(0,eW.default)(h).isAfter(R,"month"))return;z()}else if(m<0){if(I&&(0,eW.default)(h).isBefore(I,"month"))return;Y()}setTimeout(function(){var e;if(!l)return;var t='.month-calendar[data-month-index="'.concat(h.get("month")+1,'"] .day[data-day-index="').concat(h.get("date"),'"]');(e=l.querySelector(t))===null||e===void 0?void 0:e.focus()},200)}},J=function(e,t){(e.key==="Space"||e.key==="Enter")&&(e.preventDefault(),t())};var K;return(0,eB.useEffect)(function(){var e;var t,n;var a=(t=(e=r.current)===null||e===void 0?void 0:e.offsetWidth)!==null&&t!==void 0?t:0,o=window.getComputedStyle((n=r.current)!==null&&n!==void 0?n:document.createElement("div")),i=F?a+parseInt(o.marginLeft)-8:a/2;w(i)},[r.current,F]),(0,eB.useEffect)(function(){v(E!==null&&E!==void 0?E:(0,eW.default)())},[M,E]),(0,eB.useEffect)(function(){y(!!(I&&f.isBefore((0,eW.default)(I).add(1,"month"),"month"))),g(!!(R&&f.isAfter((0,eW.default)(R).subtract(2,"month"),"month"))),c(_(f))},[f,I,R]),(0,eB.useEffect)(function(){n&&((0,eW.default)(n).isBefore(f,"month")?Y():(0,eW.default)(n).isAfter(f.add(1,"month"),"month")&&z())},[n,f]),(0,eH.jsxs)("div",{className:"relative",children:[B&&(0,eH.jsx)("div",{id:"day-tooltip",className:"tooltip-text",ref:a,children:typeof B=="function"?B((K=k===null||k===void 0?void 0:k.toDate())!==null&&K!==void 0?K:new Date):B}),(0,eH.jsxs)("div",{className:(0,e_.default)("calendar-wrapper",{single:F}),ref:r,onKeyDown:G,role:"grid","aria-label":"Calendar",children:[(0,eH.jsx)("div",{className:(0,e_.default)("calendar-content",{isAnimating:O}),style:{transform:"translateX(".concat(i,"px)")},children:d.map(function(e,t){var n="".concat(e.get("year"),"-").concat(e.get("month")),r=t===1||t===2,o=O&&i<0&&t===3,l=O&&i>0&&t===0;return(0,eH.jsx)(eL,{hidden:!r&&!o&&!l,isAnimating:o||l,month:e.get("month"),year:e.get("year"),handleHoverDay:W,ref:a,className:(0,e_.default)({"slide-next":o,"slide-prev":l})},n)})}),(0,eH.jsxs)("div",{className:"calendar-flippers",children:[(0,eH.jsx)("button",{className:(0,e_.default)("flipper-button",{disabled:m}),onClick:Y,onKeyDown:function(e){return J(e,Y)},disabled:m,"aria-label":"Previous month",children:(0,eH.jsx)(ei,{viewBox:"0 0 24 24"})}),(0,eH.jsx)("button",{className:(0,e_.default)("flipper-button",{disabled:x}),onClick:z,onKeyDown:function(e){return J(e,z)},disabled:x,"aria-label":"Next month",onBlur:U,children:(0,eH.jsx)(el,{viewBox:"0 0 24 24"})})]})]})]})};var eY=require("react/jsx-runtime"),eU=function(e){var t=e.containerRef;var n=b((0,ey.useState)(!1),2),r=n[0],a=n[1],o=b((0,ey.useState)(null),2),i=o[0],l=o[1],u=(0,ey.useRef)(null),d=t||u,c=X(),s=c.handleChangeDate,f=c.handleReset,v=$(),h=v.singleCalendar,m=v.expandDirection,y=Q(),p=y.complsOpen,x=y.isMobile,g=y.toggleDialog,D=Z(),j=D.hideDialogHeader,w=D.hideDialogFooter,S=function(e,t){l(e),s(e,t)};return(0,ey.useEffect)(function(){p&&!r&&a(!0),p&&setTimeout(function(){var e;var t=(e=d.current)===null||e===void 0?void 0:e.querySelector("#start-date-input-button");t&&t.focus()},50)},[p,d,r]),(0,eY.jsxs)("div",{className:(0,ep.default)("dialog-date-picker",{open:p,hide:!p&&r,single:h&&!x,"expand-left":m==="left","expand-right":m==="right"}),ref:d,children:[!j&&(0,eY.jsxs)("div",{className:"dialog-header",children:[(0,eY.jsx)("button",{type:"button",className:"btn-outline back-button",onClick:g,children:(0,eY.jsx)(eb,{viewBox:"0 0 492 492"})}),(0,eY.jsx)(es,{showIcon:!0,nonFocusable:!p}),(0,eY.jsx)("button",{type:"button",className:"btn-outline reset-button",onClick:f,children:"Reset"})]}),(0,eY.jsx)("div",{className:"dialog-content",children:x?(0,eY.jsx)(eT,{}):(0,eY.jsx)(ez,{dateChanged:i})}),!w&&(0,eY.jsxs)("div",{className:"dialog-footer",children:[(0,eY.jsx)("button",{type:"button",className:"submit-button",onClick:g,tabIndex:0,children:"Done"}),(0,eY.jsx)("button",{type:"button",className:"btn-outline reset-button mobile",onClick:f,children:"Reset"})]})]})};var eG=require("react/jsx-runtime");F.default.extend(M.default);var eJ=function(e){var t=e.startDate,n=t===void 0?null:t,r=e.endDate,a=r===void 0?null:r,o=e.className,l=o===void 0?"":o,u=e.disabled,d=u===void 0?!1:u,c=e.startDatePlaceholder,s=e.endDatePlaceholder,f=e.onChange,v=e.onFocus,h=v===void 0?function(){}:v,m=e.startWeekDay,y=m===void 0?"monday":m,p=e.minDate,x=p===void 0?null:p,D=e.maxDate,j=D===void 0?null:D,w=e.weekDayFormat,S=w===void 0?"dd":w,k=e.dateFormat,P=k===void 0?"":k,C=e.monthFormat,O=C===void 0?"":C,N=e.highlightToday,q=N===void 0?!1:N,E=e.dateInputSeperator,A=E===void 0?null:E,I=e.hideDialogHeader,M=I===void 0?!1:I,T=e.hideDialogFooter,B=T===void 0?!1:T,_=e.hideDialogAfterSelectEndDate,H=_===void 0?!1:_,z=e.isOpen,Y=z===void 0?!1:z,U=e.onCloseCalendar,G=e.tooltip,J=G===void 0?"":G,K=e.subTextDict,V=K===void 0?null:K,X=e.expandDirection,$=X===void 0?"right":X,Q=e.locale,Z=Q===void 0?"en":Q,ee=e.isSingle,en=ee===void 0?!1:ee,er=e.singleCalendar,ea=er===void 0?!1:er;var eo=b((0,R.useState)(Y),2),ei=eo[0],el=eo[1],eu=b((0,R.useState)(en?"from":null),2),ed=eu[0],ec=eu[1],ef=b((0,R.useState)(n?(0,F.default)(n):void 0),2),ev=ef[0],eh=ef[1],ey=b((0,R.useState)(a?(0,F.default)(a):void 0),2),ep=ey[0],eb=ey[1],ex=b((0,R.useState)(),2),eg=ex[0],eD=ex[1],ej=b((0,R.useState)(!1),2),ew=ej[0],eS=ej[1],ek=b((0,R.useState)(!1),2),eP=ek[0],eC=ek[1],eO=(0,R.useRef)(null),eN=(0,R.useRef)(null),eq=(0,R.useRef)(null),eE=function(){(typeof window==="undefined"?"undefined":g(window))<"u"&&window.innerWidth<768?eS(!0):eS(!1)},eA=W(function(){var e=eN.current?eN.current.toDate():null,t=!en&&eq.current?eq.current.toDate():null;en?f(e,null):f(e,t)},20),eI=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eh(e||void 0),eN.current=e||null,t&&eA()},eR=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;en||(eb(e||void 0),eq.current=e||null,t&&eA())};(0,R.useLayoutEffect)(function(){if(eE(),(typeof window==="undefined"?"undefined":g(window))<"u")return window.addEventListener("resize",eE),function(){return window.removeEventListener("resize",eE)}},[]),(0,R.useEffect)(function(){eC(!0);var e=function(e){eO.current&&i(e.target,Node)&&!eO.current.contains(e.target)&&window.innerWidth>=768&&el(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[]),(0,R.useEffect)(function(){var e=n?(0,F.default)(n):null;eN.current=e,eI(e,!1)},[n]),(0,R.useEffect)(function(){if(!en){var e=a?(0,F.default)(a):null;eq.current=e,eR(e,!1)}},[a,en]),(0,R.useEffect)(function(){if(!ei&&eP){var e,t;var n=((e=eN.current)===null||e===void 0?void 0:e.toDate())||null,r=((t=eq.current)===null||t===void 0?void 0:t.toDate())||null;en?U(n,null):U(n,r)}},[ei,eP,en,U]),(0,R.useEffect)(function(){el(Y)},[Y]),(0,R.useEffect)(function(){eP&&h(ed==="from"?"Start Date":ed==="to"?"End Date":"")},[ed,eP,h]);var eF=function(){el(!ei)},eL={fromDate:ev,toDate:ep,hoverDate:eg,inputFocus:ed,onSelectDate:function(e){x&&(0,F.default)(x).isAfter(e,"date")||j&&(0,F.default)(j).isBefore(e,"date")||(en?(eI(e,!0),H&&setTimeout(function(){return el(!1)},50)):ed==="from"||ev&&e.isBefore(ev,"date")?(eI(e,!0),ep&&e.isAfter(ep,"date")&&eR(null,!0),ec("to")):(eR(e,!0),ec(null),H&&setTimeout(function(){return el(!1)},50)))},onHoverDate:function(e){eD(e)},handleChangeDate:function(e,t){x&&(0,F.default)(x).isAfter(e,"date")||j&&(0,F.default)(j).isBefore(e,"date")||(t==="from"||en?(ec("from"),eI(e,!0),!en&&ep&&e.isAfter(ep,"date")&&eR(null,!0)):(ec("to"),eR(e,!0)))},handleReset:function(){eD(void 0),eI(null,!0),en||eR(null,!0),ec("from")},handleClickDateInput:function(e){d||!en&&e==="to"&&!ev||(ei||el(!0),ec(e))}},eM={isSingle:en,startWeekDay:y,minDate:x,maxDate:j,weekDayFormat:S,dateFormat:P,monthFormat:O,highlightToday:q,singleCalendar:ea,expandDirection:$,locale:Z},eT={complsOpen:ei,isMobile:ew,disabled:d,toggleDialog:eF},eB={startDatePlaceholder:c,endDatePlaceholder:s,dateInputSeperator:A,hideDialogHeader:M,hideDialogFooter:B,hideDialogAfterSelectEndDate:H,tooltip:J,subTextDict:V};return(0,eG.jsx)("div",{className:"react-google-flight-datepicker",children:(0,eG.jsx)("div",{className:(0,L.default)("date-picker",l,{disabled:d}),ref:eO,children:(0,eG.jsxs)(et,{dateState:eL,config:eM,uiState:eT,display:eB,locale:Z,children:[(0,eG.jsx)(es,{}),(0,eG.jsx)(em,{children:(0,eG.jsx)(eU,{})})]})})})},eK=eJ;var eV=require("react/jsx-runtime"),eX=function(e){var t=e.onChange,n=t===void 0?function(){}:t,r=e.onCloseCalendar,a=r===void 0?function(){}:r,o=e.startDatePlaceholder,i=o===void 0?"Start date":o,l=e.endDatePlaceholder,u=l===void 0?"End date":l,d=y(e,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return(0,eV.jsx)(eK,m(v({},d),{isSingle:!1,startDate:d.startDate,endDate:d.endDate,startDatePlaceholder:i,endDatePlaceholder:u,onChange:n,onCloseCalendar:a}))};var e$=require("react/jsx-runtime"),eQ=function(e){var t=e.onChange,n=t===void 0?function(){}:t,r=e.onCloseCalendar,a=r===void 0?function(){}:r,o=e.startDatePlaceholder,i=o===void 0?"Date":o,l=y(e,["onChange","onCloseCalendar","startDatePlaceholder"]);return(0,e$.jsx)(eK,m(v({},l),{endDate:null,isSingle:!0,startDate:l.startDate,startDatePlaceholder:i,onChange:function(e){return n(e)},onCloseCalendar:function(e){return a(e)}}))};0&&(module.exports={RangeDatePicker:RangeDatePicker,SingleDatePicker:SingleDatePicker});//# sourceMappingURL=index.js.map
|