@telsho/react-google-flight-datepicker 1.0.6 → 1.0.7
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/back-CP7UAS2G.svg +0 -1
- package/dist/calendar-P2OTLJJM.svg +0 -1
- package/dist/index.css +0 -2
- package/dist/index.css.map +0 -1
- package/dist/next-EJ77CHMG.svg +0 -1
- package/dist/prev-XR4S5NRO.svg +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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 c=l.value}catch(e){n(e);return}if(l.done){t(c)}else{Promise.resolve(c).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,c,"next",e)}function c(e){r(i,a,o,l,c,"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 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 d(){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 s(){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 u(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 f(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{f(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function v(e,t){if(e==null)return{};var n=h(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 h(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 p(e,n){return t(e)||c(e,n)||g(e,n)||d()}function y(e){return n(e)||l(e)||g(e)||s()}function b(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function g(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 D(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 c([e,t])}}function c(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}}}import{useState as w,useRef as x,useEffect as k,useLayoutEffect as S}from"react";import j from"dayjs";import C from"classnames";import N from"dayjs/plugin/localeData";import P from"dayjs";function O(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 A(e,t){var n=y(Array(7)).map(function(e,n){return P().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd")});if(e==="sunday"){var r=n.pop();r&&n.unshift(r)}return n}function E(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)}}import{createContext as I,useContext as F,useState as L,useEffect as R}from"react";import T from"dayjs";import{jsx as B}from"react/jsx-runtime";var M=I(null),H=I(null),W=I(null),z=I(null),Y=I(null),q=function(){var e=F(M);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},U=function(){var e=F(H);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},K=function(){var e=F(W);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},_=function(){var e=F(z);if(!e)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return e};var G=/*#__PURE__*/function(){var e=a(function(e){var t;return D(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,import("dayjs/locale/".concat(e,".js"))];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)}}(),J=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 c=p(L({currentLocale:"en",isLocaleReady:l==="en"}),2),d=c[0],s=c[1];return R(function(){l!=="en"?(s(function(e){return m(u({},e),{isLocaleReady:!1})}),G(l).then(function(e){e?(T.locale(l),s({currentLocale:l,isLocaleReady:!0})):(T.locale("en"),s({currentLocale:"en",isLocaleReady:!0}))})):(T.locale("en"),s({currentLocale:"en",isLocaleReady:!0}))},[l]),d.isLocaleReady?B(Y.Provider,{value:d,children:B(M.Provider,{value:n,children:B(H.Provider,{value:r,children:B(W.Provider,{value:a,children:B(z.Provider,{value:o,children:t})})})})}):null};var V="./calendar-P2OTLJJM.svg";import{useEffect as X,useState as $}from"react";import Q from"classnames";import Z from"dayjs";var ee="./prev-XR4S5NRO.svg";var et="./next-EJ77CHMG.svg";import{jsx as en,jsxs as er}from"react/jsx-runtime";var ea=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 c=p($(null),2),d=c[0],s=c[1],u=p($(!1),2),f=u[0],m=u[1],v=p($(!1),2),h=v[0],y=v[1],b=q(),g=b.fromDate,D=b.toDate,w=b.inputFocus,x=b.handleClickDateInput,k=b.handleChangeDate,S=U(),j=S.isSingle,C=S.minDate,N=S.maxDate,P=S.dateFormat,O=_(),A=O.startDatePlaceholder,E=O.endDatePlaceholder,I=t==="from"?g:D,F=t==="from"?A:E;X(function(){if(I){var e=I.clone().locale(Z.locale()).format("ddd, DD MMM");P&&(e=I.format(P)),s(e);var n=C?Z(C):null,r=N?Z(N):null;(n===null||n===void 0?void 0:n.add(1,"day").isAfter(I,"date"))||t==="to"&&g&&I.isBefore(g.add(1,"day"),"date")?m(!0):m(!1),(r===null||r===void 0?void 0:r.subtract(1,"day").isBefore(I,"date"))?y(!0):y(!1)}else s(null)},[I,g,C,N,P,t]);var L=function(e){e.stopPropagation(),I&&k(I.subtract(1,"day"),t)},R=function(e){e.stopPropagation(),I&&k(I.add(1,"day"),t)},T=function(){x(t)};return er("div",{className:Q("date",{"is-focus":w===t&&!j,"is-single":j}),role:"button",tabIndex:l?-1:o,onClick:T,id:"".concat(t,"-date-input-button"),children:[r&&en(V,{className:"icon-calendar",viewBox:"0 0 24 24"}),en("div",{className:"selected-date",children:d!==null&&d!==void 0?d:en("div",{className:"date-placeholder",children:F})}),d&&er("div",{className:"change-date-group",children:[en("button",{type:"button",className:"btn-outline change-date-button",onClick:L,tabIndex:l?-1:0,disabled:f,children:en(ee,{viewBox:"0 0 24 24",className:"icon-arrow"})}),en("button",{type:"button",className:"btn-outline change-date-button",onClick:R,tabIndex:l?-1:0,disabled:h,children:en(et,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};import{jsx as eo,jsxs as ei}from"react/jsx-runtime";var el=function(e){var t=e.showIcon,n=t===void 0?!1:t,r=e.nonFocusable,a=r===void 0?!1:r;var o=U(),i=o.isSingle,l=_(),c=l.dateInputSeperator;return ei("div",{className:"date-picker-input",children:[n&&eo(V,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),ei("div",{className:"date-picker-date-group",children:[eo(ea,{type:"from",tabIndex:a?-1:0,showIcon:!0,nonFocusable:a}),!i&&c&&eo("div",{className:"date-input-separator",children:c}),!i&&eo(ea,{type:"to",tabIndex:a?-1:0,showIcon:!1,nonFocusable:a})]})]})};import{createPortal as ec}from"react-dom";import{Fragment as ed,jsx as es}from"react/jsx-runtime";var eu=function(e){var t=e.children,n=t===void 0?null:t,r=e.isMobile,a=r===void 0?!1:r;return a?ec(es("div",{className:"react-google-flight-datepicker",children:n}),document.querySelector("body")):es(ed,{children:n})},ef=eu;import{useEffect as em,useState as ev,useRef as eh}from"react";import ep from"classnames";var ey="./back-CP7UAS2G.svg";import eb,{useEffect as eg,useState as eD,useRef as ew}from"react";import ex from"dayjs";import{VariableSizeList as ek}from"react-window";import eS from"react-virtualized-auto-sizer";import{forwardRef as ej}from"react";import eC from"classnames";import eN from"dayjs";import{forwardRef as eP}from"react";import eO from"classnames";import eA from"dayjs";import{forwardRef as eE,useCallback as eI,useEffect as eF,useRef as eL}from"react";import eR from"classnames";import{jsx as eT,jsxs as eB}from"react/jsx-runtime";var eM=eE(function(e,t){var n=e.dateIndex,r=e.dateValue,a=e.isEndDay,o=e.selected,i=e.hovered,l=e.disabled,c=e.totalDay,d=e.highlight,s=e.handleHoverDay,u=e.subText;var f=eL(null),m=q(),v=m.onSelectDate,h=m.onHoverDate,p=function(e){e.stopPropagation(),e.preventDefault(),!l&&v(r)},y=function(){l||(h(r),s(r))},b=eI(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]),g=eI(function(){var e=t.current;e&&(e.style.visibility="hidden")},[t]);return eF(function(){var e=f.current;return e&&(e.addEventListener("mouseover",b),e.addEventListener("mouseleave",g)),function(){e&&(e.removeEventListener("mouseover",b),e.removeEventListener("mouseleave",g))}},[b,g]),eB("div",{className:eR("day",{selected:o,hovered:i,disabled:l,highlight:d,end:a,"has-subtext":!!u}),onClick:p,onMouseEnter:y,role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":r.valueOf(),ref:f,children:[i&&!(a&&n===c)&&!(n===1&&o&&!a)&&eT("div",{className:eR("background-day",{"first-day":n===1,"last-day":n===c})}),eB("div",{className:"day-content",children:[eT("div",{className:"text-day",children:n}),u&&eT("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:o&&!i?"#fff":"#666"},children:u})]})]})});eM.displayName="Day";import{jsx as eH}from"react/jsx-runtime";var eW=eP(function(e,t){var n=e.isFirst,r=e.week,a=e.month,o=e.year,i=e.totalDay,l=e.weekIndex,c=e.handleHoverDay;var d=q(),s=d.fromDate,u=d.toDate,f=d.hoverDate,m=U(),v=m.minDate,h=m.maxDate,p=m.isSingle,y=m.highlightToday,b=_(),g=b.subTextDict,D=function(){return Array.from({length:r.days},function(e,n){var l=n+r.start,d=eA("".concat(o,"-").concat(a+1,"-").concat(l)),m=v&&d.isBefore(v,"date")||h&&d.isAfter(h,"date"),b=s&&d.isSame(s,"date")||u&&d.isSame(u,"date"),D=!1,w=y&&d.isSame(new Date,"date");s&&!s.isSame(u,"date")&&!p&&(u&&!s.isAfter(d,"date")&&!u.isBefore(d,"date")&&(D=!0),!u&&!d.isBefore(s,"date")&&!(f&&f.isBefore(d,"date"))&&s.isBefore(f,"date")&&(D=!0));var x;var k=u&&d.isSame(u,"date")||!u&&f&&d.isSame(f,"date"),S=g?(x=g[d.format("YYYY-MM-DD")])!==null&&x!==void 0?x:"\xa0":"";return eH(eM,{dateIndex:l,dateValue:d,selected:b,hovered:D,highlight:w,disabled:m,isEndDay:k,totalDay:i,handleHoverDay:c,subText:S,ref:t},n)})};return eH("div",{className:eO("week",{first:n}),children:D()})});eW.displayName="Week";import{jsx as ez,jsxs as eY}from"react/jsx-runtime";var eq=ej(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,c=e.handleHoverDay,d=e.className;var s=U(),u=s.startWeekDay,f=s.weekDayFormat,m=s.monthFormat,v=s.singleCalendar,h=function(){var e=O(r,n,u),a=e.totalWeek,o=e.totalDay;return a.map(function(e){var i="".concat(r,"-").concat(n,"-").concat(e.start);return ez(eW,{week:e,month:n,year:r,isFirst:e===a[0],totalDay:o,weekIndex:a.indexOf(e),handleHoverDay:c,ref:t},i)})},p=function(){return A(u,f).map(function(e){return ez("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))})},y=function(){var e=eN("".concat(r,"-").concat(n+1,"-1"));return m?e.format(m):e.format("MMMM - YYYY")};return eY("div",{className:eC("month-calendar",{isAnimating:l,hidden:o,single:v},d),"data-month-index":n+1,children:[ez("div",{className:"month-name",children:y()}),ez("div",{className:"weekdays",children:p()}),ez("div",{className:"week-container",children:h()})]})});eq.displayName="MonthCalendar";import{jsx as eU,jsxs as eK}from"react/jsx-runtime";var e_=function(){var e=p(eD(2400),2),t=e[0],n=e[1],r=ew(null),a=q(),o=a.fromDate,i=U(),l=i.startWeekDay,c=i.minDate,d=i.maxDate,s=i.weekDayFormat,u=K(),f=u.complsOpen,m=_(),v=m.tooltip,h=m.subTextDict,y=c?ex(c).year():1900,b=c?ex(c).month():0;eg(function(){if(d){var e=c?ex(c):ex("1900-01-01");n(ex(d).diff(e,"month")+1)}},[d,c]),eg(function(){if(r.current&&f){var e=o?ex(o):ex(),t=e.diff(ex("1900-01-01"),"month");c&&(t=e.diff(ex(c),"month")),r.current.scrollToItem(t+1,"smart")}},[f,o,c]);var g=function(e){var t=e+b,n=y+Math.floor(t/12),r=t%12;return{year:n,month:r}},D=eb.memo(function(e){var t=e.index,n=e.style;var r=g(t),a=r.year,o=r.month;return eU("div",{style:n,children:eU(eq,{month:o,year:a,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})});D.displayName="CalendarRow";var w=function(e){var t=g(e),n=t.year,r=t.month,a=O(n,r,l||"monday"),o=a.totalWeek;return o.length*48+34},x=function(){return eU(eS,{children:function(e){var n=e.height,a=e.width;return eU(ek,{ref:r,width:a,height:n-36,itemCount:t,itemSize:w,children:D})}})};return eU("div",{className:"calendar-wrapper",children:eK("div",{className:"calendar-content",children:[eU("div",{className:"weekdays mobile",children:A(l||"monday",s).map(function(e,t){return eU("div",{className:"weekday",children:e},t)})}),x()]})})};import{useEffect as eG,useState as eJ,useRef as eV,useCallback as eX}from"react";import e$ from"classnames";import eQ from"dayjs";import{jsx as eZ,jsxs as e0}from"react/jsx-runtime";var e1=function(e){var t=e.dateChanged,n=t===void 0?null:t;var r=eV(null),a=eV(null),o=p(eJ(0),2),i=o[0],l=o[1],c=p(eJ([]),2),d=c[0],s=c[1],u=p(eJ(eQ()),2),f=u[0],m=u[1],v=p(eJ(!1),2),h=v[0],y=v[1],b=p(eJ(!1),2),g=b[0],D=b[1],w=p(eJ(0),2),x=w[0],k=w[1],S=p(eJ(null),2),j=S[0],C=S[1],N=p(eJ(!1),2),P=N[0],O=N[1],A=q(),E=A.fromDate,I=U(),F=I.minDate,L=I.maxDate,R=I.singleCalendar,T=K(),B=T.complsOpen,M=_(),H=M.tooltip,W=function(e){return[eQ(e).subtract(1,"month"),e,eQ(e).add(1,"month"),eQ(e).add(2,"month")]},z=eX(function(e){C(eQ(e))},[]),Y=function(e){return function(){(e==="next"?g:h)||P||(O(!0),requestAnimationFrame(function(){var t=e==="next"?-x:x;l(t)}),setTimeout(function(){var t=e==="next"?eQ(f).add(1,"month"):eQ(f).subtract(1,"month");m(t),s(W(t)),l(0),O(!1)},200))}},G=Y("next"),J=Y("prev"),V=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()},X=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"),c=parseInt((i=r.getAttribute("data-date-value"))!==null&&i!==void 0?i:"0"),d=eQ(c),s=d.add(1,"month").set("date",0).get("date"),u=parseInt(o),m=u;switch(e.key){case"Tab":return;case"Space":r.click();break;case"ArrowLeft":m=u-1;break;case"ArrowUp":m=u-7;break;case"ArrowRight":m=u+1;break;case"ArrowDown":m=u+7;break}if(m>0&&m<=s)(n=r.closest(".month-calendar"))===null||n===void 0?void 0:(t=n.querySelector('.day[data-day-index="'.concat(m,'"]')))===null||t===void 0?void 0:t.focus();else{var v=d.add(m-u,"day"),h=Math.ceil(v.diff(f,"month",!0));if(h>1){if(L&&eQ(v).isAfter(L,"month"))return;G()}else if(h<0){if(F&&eQ(v).isBefore(F,"month"))return;J()}setTimeout(function(){var e;if(!l)return;var t='.month-calendar[data-month-index="'.concat(v.get("month")+1,'"] .day[data-day-index="').concat(v.get("date"),'"]');(e=l.querySelector(t))===null||e===void 0?void 0:e.focus()},200)}},$=function(e,t){(e.key==="Space"||e.key==="Enter")&&(e.preventDefault(),t())};var Q;return eG(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=R?a+parseInt(o.marginLeft)-8:a/2;k(i)},[r.current,R]),eG(function(){m(E!==null&&E!==void 0?E:eQ())},[B,E]),eG(function(){y(!!(F&&f.isBefore(eQ(F).add(1,"month"),"month"))),D(!!(L&&f.isAfter(eQ(L).subtract(2,"month"),"month"))),s(W(f))},[f,F,L]),eG(function(){n&&(eQ(n).isBefore(f,"month")?J():eQ(n).isAfter(f.add(1,"month"),"month")&&G())},[n,f]),e0("div",{className:"relative",children:[H&&eZ("div",{id:"day-tooltip",className:"tooltip-text",ref:a,children:typeof H=="function"?H((Q=j===null||j===void 0?void 0:j.toDate())!==null&&Q!==void 0?Q:new Date):H}),e0("div",{className:e$("calendar-wrapper",{single:R}),ref:r,onKeyDown:X,role:"grid","aria-label":"Calendar",children:[eZ("div",{className:e$("calendar-content",{isAnimating:P}),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=P&&i<0&&t===3,l=P&&i>0&&t===0;return eZ(eq,{hidden:!r&&!o&&!l,isAnimating:o||l,month:e.get("month"),year:e.get("year"),handleHoverDay:z,ref:a,className:e$({"slide-next":o,"slide-prev":l})},n)})}),e0("div",{className:"calendar-flippers",children:[eZ("button",{className:e$("flipper-button",{disabled:h}),onClick:J,onKeyDown:function(e){return $(e,J)},disabled:h,"aria-label":"Previous month",children:eZ(ee,{viewBox:"0 0 24 24"})}),eZ("button",{className:e$("flipper-button",{disabled:g}),onClick:G,onKeyDown:function(e){return $(e,G)},disabled:g,"aria-label":"Next month",onBlur:V,children:eZ(et,{viewBox:"0 0 24 24"})})]})]})]})};import{jsx as e2,jsxs as e4}from"react/jsx-runtime";var e7=function(e){var t=e.containerRef;var n=p(ev(!1),2),r=n[0],a=n[1],o=p(ev(null),2),i=o[0],l=o[1],c=eh(null),d=t||c,s=q(),u=s.handleChangeDate,f=s.handleReset,m=U(),v=m.singleCalendar,h=m.expandDirection,y=K(),b=y.complsOpen,g=y.isMobile,D=y.toggleDialog,w=_(),x=w.hideDialogHeader,k=w.hideDialogFooter,S=function(e,t){l(e),u(e,t)};return em(function(){b&&!r&&a(!0),b&&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)},[b,d,r]),e4("div",{className:ep("dialog-date-picker",{open:b,hide:!b&&r,single:v&&!g,"expand-left":h==="left","expand-right":h==="right"}),ref:d,children:[!x&&e4("div",{className:"dialog-header",children:[e2("button",{type:"button",className:"btn-outline back-button",onClick:D,children:e2(ey,{viewBox:"0 0 492 492"})}),e2(el,{showIcon:!0,nonFocusable:!b}),e2("button",{type:"button",className:"btn-outline reset-button",onClick:f,children:"Reset"})]}),e2("div",{className:"dialog-content",children:g?e2(e_,{}):e2(e1,{dateChanged:i})}),!k&&e4("div",{className:"dialog-footer",children:[e2("button",{type:"button",className:"submit-button",onClick:D,tabIndex:0,children:"Done"}),e2("button",{type:"button",className:"btn-outline reset-button mobile",onClick:f,children:"Reset"})]})]})};import{jsx as e3,jsxs as e6}from"react/jsx-runtime";j.extend(N);var e5=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,c=e.disabled,d=c===void 0?!1:c,s=e.startDatePlaceholder,u=e.endDatePlaceholder,f=e.onChange,m=e.onFocus,v=m===void 0?function(){}:m,h=e.startWeekDay,y=h===void 0?"monday":h,g=e.minDate,D=g===void 0?null:g,N=e.maxDate,P=N===void 0?null:N,O=e.weekDayFormat,A=O===void 0?"dd":O,I=e.dateFormat,F=I===void 0?"":I,L=e.monthFormat,R=L===void 0?"":L,T=e.highlightToday,B=T===void 0?!1:T,M=e.dateInputSeperator,H=M===void 0?null:M,W=e.hideDialogHeader,z=W===void 0?!1:W,Y=e.hideDialogFooter,q=Y===void 0?!1:Y,U=e.hideDialogAfterSelectEndDate,K=U===void 0?!1:U,_=e.isOpen,G=_===void 0?!1:_,V=e.onCloseCalendar,X=e.tooltip,$=X===void 0?"":X,Q=e.subTextDict,Z=Q===void 0?null:Q,ee=e.expandDirection,et=ee===void 0?"right":ee,en=e.locale,er=en===void 0?"en":en,ea=e.isSingle,eo=ea===void 0?!1:ea,ei=e.singleCalendar,ec=ei===void 0?!1:ei;var ed=p(w(G),2),es=ed[0],eu=ed[1],em=p(w(eo?"from":null),2),ev=em[0],eh=em[1],ep=p(w(n?j(n):void 0),2),ey=ep[0],eb=ep[1],eg=p(w(a?j(a):void 0),2),eD=eg[0],ew=eg[1],ex=p(w(),2),ek=ex[0],eS=ex[1],ej=p(w(!1),2),eC=ej[0],eN=ej[1],eP=p(w(!1),2),eO=eP[0],eA=eP[1],eE=x(null),eI=x(null),eF=x(null),eL=function(){(typeof window==="undefined"?"undefined":b(window))<"u"&&window.innerWidth<768?eN(!0):eN(!1)},eR=E(function(){var e=eI.current?eI.current.toDate():null,t=!eo&&eF.current?eF.current.toDate():null;eo?f(e,null):f(e,t)},20),eT=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eb(e||void 0),eI.current=e||null,t&&eR()},eB=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eo||(ew(e||void 0),eF.current=e||null,t&&eR())};S(function(){if(eL(),(typeof window==="undefined"?"undefined":b(window))<"u")return window.addEventListener("resize",eL),function(){return window.removeEventListener("resize",eL)}},[]),k(function(){eA(!0);var e=function(e){eE.current&&i(e.target,Node)&&!eE.current.contains(e.target)&&window.innerWidth>=768&&eu(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[]),k(function(){var e=n?j(n):null;eI.current=e,eT(e,!1)},[n]),k(function(){if(!eo){var e=a?j(a):null;eF.current=e,eB(e,!1)}},[a,eo]),k(function(){if(!es&&eO){var e,t;var n=((e=eI.current)===null||e===void 0?void 0:e.toDate())||null,r=((t=eF.current)===null||t===void 0?void 0:t.toDate())||null;eo?V(n,null):V(n,r)}},[es,eO,eo,V]),k(function(){eu(G)},[G]),k(function(){eO&&v(ev==="from"?"Start Date":ev==="to"?"End Date":"")},[ev,eO,v]);var eM=function(){eu(!es)},eH={fromDate:ey,toDate:eD,hoverDate:ek,inputFocus:ev,onSelectDate:function(e){D&&j(D).isAfter(e,"date")||P&&j(P).isBefore(e,"date")||(eo?(eT(e,!0),K&&setTimeout(function(){return eu(!1)},50)):ev==="from"||ey&&e.isBefore(ey,"date")?(eT(e,!0),eD&&e.isAfter(eD,"date")&&eB(null,!0),eh("to")):(eB(e,!0),eh(null),K&&setTimeout(function(){return eu(!1)},50)))},onHoverDate:function(e){eS(e)},handleChangeDate:function(e,t){D&&j(D).isAfter(e,"date")||P&&j(P).isBefore(e,"date")||(t==="from"||eo?(eh("from"),eT(e,!0),!eo&&eD&&e.isAfter(eD,"date")&&eB(null,!0)):(eh("to"),eB(e,!0)))},handleReset:function(){eS(void 0),eT(null,!0),eo||eB(null,!0),eh("from")},handleClickDateInput:function(e){d||!eo&&e==="to"&&!ey||(es||eu(!0),eh(e))}},eW={isSingle:eo,startWeekDay:y,minDate:D,maxDate:P,weekDayFormat:A,dateFormat:F,monthFormat:R,highlightToday:B,singleCalendar:ec,expandDirection:et,locale:er},ez={complsOpen:es,isMobile:eC,disabled:d,toggleDialog:eM},eY={startDatePlaceholder:s,endDatePlaceholder:u,dateInputSeperator:H,hideDialogHeader:z,hideDialogFooter:q,hideDialogAfterSelectEndDate:K,tooltip:$,subTextDict:Z};return e3("div",{className:"react-google-flight-datepicker",children:e3("div",{className:C("date-picker",l,{disabled:d}),ref:eE,children:e6(J,{dateState:eH,config:eW,uiState:ez,display:eY,locale:er,children:[e3(el,{}),e3(ef,{children:e3(e7,{})})]})})})},e8=e5;import{jsx as e9}from"react/jsx-runtime";var te=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,c=l===void 0?"End date":l,d=v(e,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return e9(e8,m(u({},d),{isSingle:!1,startDate:d.startDate,endDate:d.endDate,startDatePlaceholder:i,endDatePlaceholder:c,onChange:n,onCloseCalendar:a}))};import{jsx as tt}from"react/jsx-runtime";var tn=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=v(e,["onChange","onCloseCalendar","startDatePlaceholder"]);return tt(e8,m(u({},l),{endDate:null,isSingle:!0,startDate:l.startDate,startDatePlaceholder:i,onChange:function(e){return n(e)},onCloseCalendar:function(e){return a(e)}}))};export{te as RangeDatePicker,tn as SingleDatePicker};//# sourceMappingURL=index.mjs.map
|
|
1
|
+
function e(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,c=new Array(t);n<t;n++)c[n]=e[n];return c}function t(e){if(Array.isArray(e))return e}function n(t){if(Array.isArray(t))return e(t)}function c(e,t,n,c,i,g,a){try{var l=e[g](a);var o=l.value}catch(e){n(e);return}if(l.done){t(o)}else{Promise.resolve(o).then(c,i)}}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,g){var a=e.apply(t,n);function l(e){c(a,i,g,l,o,"next",e)}function o(e){c(a,i,g,l,o,"throw",e)}l(undefined)})}}function g(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 a(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 Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var c=[];var i=true;var g=false;var a,l;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){c.push(a.value);if(t&&c.length===t)break}}catch(e){g=true;l=e}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(g)throw l}}return c}function r(){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 d(){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 I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var c=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){c=c.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}c.forEach(function(t){g(e,t,n[t])})}return e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);if(t){c=c.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,c)}return n}function C(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{u(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function A(e,t){if(e==null)return{};var n=s(e,t);var c,i;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);for(i=0;i<g.length;i++){c=g[i];if(t.indexOf(c)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,c))continue;n[c]=e[c]}}return n}function s(e,t){if(e==null)return{};var n={};var c=Object.keys(e);var i,g;for(g=0;g<c.length;g++){i=c[g];if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function b(e,n){return t(e)||o(e,n)||p(e,n)||r()}function x(e){return n(e)||l(e)||p(e)||d()}function m(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function p(t,n){if(!t)return;if(typeof t==="string")return e(t,n);var c=Object.prototype.toString.call(t).slice(8,-1);if(c==="Object"&&t.constructor)c=t.constructor.name;if(c==="Map"||c==="Set")return Array.from(c);if(c==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c))return e(t,n)}function f(e,t){var n,c,i,g,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return g={next:l(0),"throw":l(1),"return":l(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function l(e){return function(t){return o([e,t])}}function o(g){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,c&&(i=g[0]&2?c["return"]:g[0]?c["throw"]||((i=c["return"])&&i.call(c),0):c.next)&&!(i=i.call(c,g[1])).done)return i;if(c=0,i)g=[g[0]&2,i.value];switch(g[0]){case 0:case 1:i=g;break;case 4:a.label++;return{value:g[1],done:false};case 5:a.label++;c=g[1];g=[0];continue;case 7:g=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(g[0]===6||g[0]===2)){a=0;continue}if(g[0]===3&&(!i||g[1]>i[0]&&g[1]<i[3])){a.label=g[1];break}if(g[0]===6&&a.label<i[1]){a.label=i[1];i=g;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(g);break}if(i[2])a.ops.pop();a.trys.pop();continue}g=t.call(e,a)}catch(e){g=[6,e];c=0}finally{n=i=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:true}}}import{useState as h,useRef as X,useEffect as y,useLayoutEffect as B}from"react";import G from"dayjs";import H from"classnames";import O from"dayjs/plugin/localeData";import v from"dayjs";function F(e,t,n){var c=[],i=new Date(e,t,1),g=new Date(e,t+1,0).getDate(),a=1,l=i.getDay()===0?1:7-i.getDay()+1;for(n==="sunday"&&(l=7-i.getDay());a<=g;)c.push({start:a,days:l-a+1}),a=l+1,l+=7,l=a===1&&l===8?1:l,l>g&&(l=g);return{totalWeek:c,totalDay:g}}function Q(e,t){var n=x(Array(7)).map(function(e,n){return v().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd")});if(e==="sunday"){var c=n.pop();c&&n.unshift(c)}return n}function D(e,t){var n;return function(){var c=this;for(var i=arguments.length,g=new Array(i),a=0;a<i;a++){g[a]=arguments[a]}var l=function(){n=null,e.apply(c,g)};n&&clearTimeout(n),n=setTimeout(l,t)}}import{createContext as J,useContext as Z,useState as U,useEffect as R}from"react";import w from"dayjs";import{jsx as k}from"react/jsx-runtime";var N=J(null),W=J(null),V=J(null),Y=J(null),j=J(null),T=function(){var e=Z(N);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},M=function(){var e=Z(W);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},z=function(){var e=Z(V);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},L=function(){var e=Z(Y);if(!e)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return e};var E=/*#__PURE__*/function(){var e=i(function(e){var t;return f(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,import("dayjs/locale/".concat(e,".js"))];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)}}(),S=function(e){var t=e.children,n=e.dateState,c=e.config,i=e.uiState,g=e.display,a=e.locale,l=a===void 0?"en":a;var o=b(U({currentLocale:"en",isLocaleReady:l==="en"}),2),r=o[0],d=o[1];return R(function(){l!=="en"?(d(function(e){return C(I({},e),{isLocaleReady:!1})}),E(l).then(function(e){e?(w.locale(l),d({currentLocale:l,isLocaleReady:!0})):(w.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))})):(w.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))},[l]),r.isLocaleReady?k(j.Provider,{value:r,children:k(N.Provider,{value:n,children:k(W.Provider,{value:c,children:k(V.Provider,{value:i,children:k(Y.Provider,{value:g,children:t})})})})}):null};import"react";import{jsx as P}from"react/jsx-runtime";var K=function(e){return P("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:P("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"})}))},q=K;import{useEffect as _,useState as $}from"react";import ee from"classnames";import et from"dayjs";import"react";import{jsx as en}from"react/jsx-runtime";var ec=function(e){return en("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:en("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})}))},ei=ec;import"react";import{jsx as eg}from"react/jsx-runtime";var ea=function(e){return eg("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:eg("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})}))},el=ea;import{jsx as eo,jsxs as er}from"react/jsx-runtime";var ed=function(e){var t=e.type,n=e.showIcon,c=n===void 0?!1:n,i=e.tabIndex,g=i===void 0?0:i,a=e.nonFocusable,l=a===void 0?!1:a;var o=b($(null),2),r=o[0],d=o[1],I=b($(!1),2),u=I[0],C=I[1],A=b($(!1),2),s=A[0],x=A[1],m=T(),p=m.fromDate,f=m.toDate,h=m.inputFocus,X=m.handleClickDateInput,y=m.handleChangeDate,B=M(),G=B.isSingle,H=B.minDate,O=B.maxDate,v=B.dateFormat,F=L(),Q=F.startDatePlaceholder,D=F.endDatePlaceholder,J=t==="from"?p:f,Z=t==="from"?Q:D;_(function(){if(J){var e=J.clone().locale(et.locale()).format("ddd, DD MMM");v&&(e=J.format(v)),d(e);var n=H?et(H):null,c=O?et(O):null;(n===null||n===void 0?void 0:n.add(1,"day").isAfter(J,"date"))||t==="to"&&p&&J.isBefore(p.add(1,"day"),"date")?C(!0):C(!1),(c===null||c===void 0?void 0:c.subtract(1,"day").isBefore(J,"date"))?x(!0):x(!1)}else d(null)},[J,p,H,O,v,t]);var U=function(e){e.stopPropagation(),J&&y(J.subtract(1,"day"),t)},R=function(e){e.stopPropagation(),J&&y(J.add(1,"day"),t)},w=function(){X(t)};return er("div",{className:ee("date",{"is-focus":h===t&&!G,"is-single":G}),role:"button",tabIndex:l?-1:g,onClick:w,id:"".concat(t,"-date-input-button"),children:[c&&eo(q,{className:"icon-calendar",viewBox:"0 0 24 24"}),eo("div",{className:"selected-date",children:r!==null&&r!==void 0?r:eo("div",{className:"date-placeholder",children:Z})}),r&&er("div",{className:"change-date-group",children:[eo("button",{type:"button",className:"btn-outline change-date-button",onClick:U,tabIndex:l?-1:0,disabled:u,children:eo(ei,{viewBox:"0 0 24 24",className:"icon-arrow"})}),eo("button",{type:"button",className:"btn-outline change-date-button",onClick:R,tabIndex:l?-1:0,disabled:s,children:eo(el,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};import{jsx as eI,jsxs as eu}from"react/jsx-runtime";var eC=function(e){var t=e.showIcon,n=t===void 0?!1:t,c=e.nonFocusable,i=c===void 0?!1:c;var g=M(),a=g.isSingle,l=L(),o=l.dateInputSeperator;return eu("div",{className:"date-picker-input",children:[n&&eI(q,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),eu("div",{className:"date-picker-date-group",children:[eI(ed,{type:"from",tabIndex:i?-1:0,showIcon:!0,nonFocusable:i}),!a&&o&&eI("div",{className:"date-input-separator",children:o}),!a&&eI(ed,{type:"to",tabIndex:i?-1:0,showIcon:!1,nonFocusable:i})]})]})};import{createPortal as eA}from"react-dom";import{Fragment as es,jsx as eb}from"react/jsx-runtime";var ex=function(e){var t=e.children,n=t===void 0?null:t,c=e.isMobile,i=c===void 0?!1:c;return i?eA(eb("div",{className:"react-google-flight-datepicker",children:n}),document.querySelector("body")):eb(es,{children:n})},em=ex;import{useEffect as ep,useState as ef,useRef as eh}from"react";import eX from"classnames";import"react";import{jsx as ey}from"react/jsx-runtime";var eB=function(e){return ey("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492"},e),{children:ey("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"})}))},eG=eB;import eH,{useEffect as eO,useState as ev,useRef as eF}from"react";import eQ from"dayjs";import{VariableSizeList as eD}from"react-window";import eJ from"react-virtualized-auto-sizer";import{forwardRef as eZ}from"react";import eU from"classnames";import eR from"dayjs";import{forwardRef as ew}from"react";import ek from"classnames";import eN from"dayjs";import{forwardRef as eW,useCallback as eV,useEffect as eY,useRef as ej}from"react";import eT from"classnames";import{jsx as eM,jsxs as ez}from"react/jsx-runtime";var eL=eW(function(e,t){var n=e.dateIndex,c=e.dateValue,i=e.isEndDay,g=e.selected,a=e.hovered,l=e.disabled,o=e.totalDay,r=e.highlight,d=e.handleHoverDay,I=e.subText;var u=ej(null),C=T(),A=C.onSelectDate,s=C.onHoverDate,b=function(e){e.stopPropagation(),e.preventDefault(),!l&&A(c)},x=function(){l||(s(c),d(c))},m=eV(function(){var e=t.current;e&&u.current&&(e.style.left="".concat(u.current.offsetLeft-e.offsetWidth+135,"px"),e.style.top="".concat(u.current.offsetTop-e.offsetHeight-15,"px"),e.style.visibility="visible")},[t]),p=eV(function(){var e=t.current;e&&(e.style.visibility="hidden")},[t]);return eY(function(){var e=u.current;return e&&(e.addEventListener("mouseover",m),e.addEventListener("mouseleave",p)),function(){e&&(e.removeEventListener("mouseover",m),e.removeEventListener("mouseleave",p))}},[m,p]),ez("div",{className:eT("day",{selected:g,hovered:a,disabled:l,highlight:r,end:i,"has-subtext":!!I}),onClick:b,onMouseEnter:x,role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":c.valueOf(),ref:u,children:[a&&!(i&&n===o)&&!(n===1&&g&&!i)&&eM("div",{className:eT("background-day",{"first-day":n===1,"last-day":n===o})}),ez("div",{className:"day-content",children:[eM("div",{className:"text-day",children:n}),I&&eM("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:g&&!a?"#fff":"#666"},children:I})]})]})});eL.displayName="Day";import{jsx as eE}from"react/jsx-runtime";var eS=ew(function(e,t){var n=e.isFirst,c=e.week,i=e.month,g=e.year,a=e.totalDay,l=e.weekIndex,o=e.handleHoverDay;var r=T(),d=r.fromDate,I=r.toDate,u=r.hoverDate,C=M(),A=C.minDate,s=C.maxDate,b=C.isSingle,x=C.highlightToday,m=L(),p=m.subTextDict,f=function(){return Array.from({length:c.days},function(e,n){var l=n+c.start,r=eN("".concat(g,"-").concat(i+1,"-").concat(l)),C=A&&r.isBefore(A,"date")||s&&r.isAfter(s,"date"),m=d&&r.isSame(d,"date")||I&&r.isSame(I,"date"),f=!1,h=x&&r.isSame(new Date,"date");d&&!d.isSame(I,"date")&&!b&&(I&&!d.isAfter(r,"date")&&!I.isBefore(r,"date")&&(f=!0),!I&&!r.isBefore(d,"date")&&!(u&&u.isBefore(r,"date"))&&d.isBefore(u,"date")&&(f=!0));var X;var y=I&&r.isSame(I,"date")||!I&&u&&r.isSame(u,"date"),B=p?(X=p[r.format("YYYY-MM-DD")])!==null&&X!==void 0?X:"\xa0":"";return eE(eL,{dateIndex:l,dateValue:r,selected:m,hovered:f,highlight:h,disabled:C,isEndDay:y,totalDay:a,handleHoverDay:o,subText:B,ref:t},n)})};return eE("div",{className:ek("week",{first:n}),children:f()})});eS.displayName="Week";import{jsx as eP,jsxs as eK}from"react/jsx-runtime";var eq=eZ(function(e,t){var n=e.month,c=e.year,i=e.hidden,g=i===void 0?!1:i,a=e.isAnimating,l=a===void 0?!1:a,o=e.handleHoverDay,r=e.className;var d=M(),I=d.startWeekDay,u=d.weekDayFormat,C=d.monthFormat,A=d.singleCalendar,s=function(){var e=F(c,n,I),i=e.totalWeek,g=e.totalDay;return i.map(function(e){var a="".concat(c,"-").concat(n,"-").concat(e.start);return eP(eS,{week:e,month:n,year:c,isFirst:e===i[0],totalDay:g,weekIndex:i.indexOf(e),handleHoverDay:o,ref:t},a)})},b=function(){return Q(I,u).map(function(e){return eP("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))})},x=function(){var e=eR("".concat(c,"-").concat(n+1,"-1"));return C?e.format(C):e.format("MMMM - YYYY")};return eK("div",{className:eU("month-calendar",{isAnimating:l,hidden:g,single:A},r),"data-month-index":n+1,children:[eP("div",{className:"month-name",children:x()}),eP("div",{className:"weekdays",children:b()}),eP("div",{className:"week-container",children:s()})]})});eq.displayName="MonthCalendar";import{jsx as e_,jsxs as e$}from"react/jsx-runtime";var e0=function(){var e=b(ev(2400),2),t=e[0],n=e[1],c=eF(null),i=T(),g=i.fromDate,a=M(),l=a.startWeekDay,o=a.minDate,r=a.maxDate,d=a.weekDayFormat,I=z(),u=I.complsOpen,C=L(),A=C.tooltip,s=C.subTextDict,x=o?eQ(o).year():1900,m=o?eQ(o).month():0;eO(function(){if(r){var e=o?eQ(o):eQ("1900-01-01");n(eQ(r).diff(e,"month")+1)}},[r,o]),eO(function(){if(c.current&&u){var e=g?eQ(g):eQ(),t=e.diff(eQ("1900-01-01"),"month");o&&(t=e.diff(eQ(o),"month")),c.current.scrollToItem(t+1,"smart")}},[u,g,o]);var p=function(e){var t=e+m,n=x+Math.floor(t/12),c=t%12;return{year:n,month:c}},f=eH.memo(function(e){var t=e.index,n=e.style;var c=p(t),i=c.year,g=c.month;return e_("div",{style:n,children:e_(eq,{month:g,year:i,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})});f.displayName="CalendarRow";var h=function(e){var t=p(e),n=t.year,c=t.month,i=F(n,c,l||"monday"),g=i.totalWeek;return g.length*48+34},X=function(){return e_(eJ,{children:function(e){var n=e.height,i=e.width;return e_(eD,{ref:c,width:i,height:n-36,itemCount:t,itemSize:h,children:f})}})};return e_("div",{className:"calendar-wrapper",children:e$("div",{className:"calendar-content",children:[e_("div",{className:"weekdays mobile",children:Q(l||"monday",d).map(function(e,t){return e_("div",{className:"weekday",children:e},t)})}),X()]})})};import{useEffect as e1,useState as e4,useRef as e2,useCallback as e7}from"react";import e5 from"classnames";import e9 from"dayjs";import{jsx as e3,jsxs as e6}from"react/jsx-runtime";var e8=function(e){var t=e.dateChanged,n=t===void 0?null:t;var c=e2(null),i=e2(null),g=b(e4(0),2),a=g[0],l=g[1],o=b(e4([]),2),r=o[0],d=o[1],I=b(e4(e9()),2),u=I[0],C=I[1],A=b(e4(!1),2),s=A[0],x=A[1],m=b(e4(!1),2),p=m[0],f=m[1],h=b(e4(0),2),X=h[0],y=h[1],B=b(e4(null),2),G=B[0],H=B[1],O=b(e4(!1),2),v=O[0],F=O[1],Q=T(),D=Q.fromDate,J=M(),Z=J.minDate,U=J.maxDate,R=J.singleCalendar,w=z(),k=w.complsOpen,N=L(),W=N.tooltip,V=function(e){return[e9(e).subtract(1,"month"),e,e9(e).add(1,"month"),e9(e).add(2,"month")]},Y=e7(function(e){H(e9(e))},[]),j=function(e){return function(){(e==="next"?p:s)||v||(F(!0),requestAnimationFrame(function(){var t=e==="next"?-X:X;l(t)}),setTimeout(function(){var t=e==="next"?e9(u).add(1,"month"):e9(u).subtract(1,"month");C(t),d(V(t)),l(0),F(!1)},200))}},E=j("next"),S=j("prev"),P=function(){var e,t,n;var i;(e=(i=(t=c.current)===null||t===void 0?void 0:t.querySelector(".day.selected"))!==null&&i!==void 0?i:(n=c.current)===null||n===void 0?void 0:n.querySelector(".month-calendar:not(.hidden) .day:not(.disabled)"))===null||e===void 0?void 0:e.focus()},K=function(e){var t,n;var c=e.target,i=["Tab","Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown"],g=c.getAttribute("data-day-index");if(!i.includes(e.key)||!g)return;e.preventDefault();var a;var l=c.closest(".calendar-wrapper"),o=parseInt((a=c.getAttribute("data-date-value"))!==null&&a!==void 0?a:"0"),r=e9(o),d=r.add(1,"month").set("date",0).get("date"),I=parseInt(g),C=I;switch(e.key){case"Tab":return;case"Space":c.click();break;case"ArrowLeft":C=I-1;break;case"ArrowUp":C=I-7;break;case"ArrowRight":C=I+1;break;case"ArrowDown":C=I+7;break}if(C>0&&C<=d)(n=c.closest(".month-calendar"))===null||n===void 0?void 0:(t=n.querySelector('.day[data-day-index="'.concat(C,'"]')))===null||t===void 0?void 0:t.focus();else{var A=r.add(C-I,"day"),s=Math.ceil(A.diff(u,"month",!0));if(s>1){if(U&&e9(A).isAfter(U,"month"))return;E()}else if(s<0){if(Z&&e9(A).isBefore(Z,"month"))return;S()}setTimeout(function(){var e;if(!l)return;var t='.month-calendar[data-month-index="'.concat(A.get("month")+1,'"] .day[data-day-index="').concat(A.get("date"),'"]');(e=l.querySelector(t))===null||e===void 0?void 0:e.focus()},200)}},q=function(e,t){(e.key==="Space"||e.key==="Enter")&&(e.preventDefault(),t())};var _;return e1(function(){var e;var t,n;var i=(t=(e=c.current)===null||e===void 0?void 0:e.offsetWidth)!==null&&t!==void 0?t:0,g=window.getComputedStyle((n=c.current)!==null&&n!==void 0?n:document.createElement("div")),a=R?i+parseInt(g.marginLeft)-8:i/2;y(a)},[c.current,R]),e1(function(){C(D!==null&&D!==void 0?D:e9())},[k,D]),e1(function(){x(!!(Z&&u.isBefore(e9(Z).add(1,"month"),"month"))),f(!!(U&&u.isAfter(e9(U).subtract(2,"month"),"month"))),d(V(u))},[u,Z,U]),e1(function(){n&&(e9(n).isBefore(u,"month")?S():e9(n).isAfter(u.add(1,"month"),"month")&&E())},[n,u]),e6("div",{className:"relative",children:[W&&e3("div",{id:"day-tooltip",className:"tooltip-text",ref:i,children:typeof W=="function"?W((_=G===null||G===void 0?void 0:G.toDate())!==null&&_!==void 0?_:new Date):W}),e6("div",{className:e5("calendar-wrapper",{single:R}),ref:c,onKeyDown:K,role:"grid","aria-label":"Calendar",children:[e3("div",{className:e5("calendar-content",{isAnimating:v}),style:{transform:"translateX(".concat(a,"px)")},children:r.map(function(e,t){var n="".concat(e.get("year"),"-").concat(e.get("month")),c=t===1||t===2,g=v&&a<0&&t===3,l=v&&a>0&&t===0;return e3(eq,{hidden:!c&&!g&&!l,isAnimating:g||l,month:e.get("month"),year:e.get("year"),handleHoverDay:Y,ref:i,className:e5({"slide-next":g,"slide-prev":l})},n)})}),e6("div",{className:"calendar-flippers",children:[e3("button",{className:e5("flipper-button",{disabled:s}),onClick:S,onKeyDown:function(e){return q(e,S)},disabled:s,"aria-label":"Previous month",children:e3(ei,{viewBox:"0 0 24 24"})}),e3("button",{className:e5("flipper-button",{disabled:p}),onClick:E,onKeyDown:function(e){return q(e,E)},disabled:p,"aria-label":"Next month",onBlur:P,children:e3(el,{viewBox:"0 0 24 24"})})]})]})]})};import{jsx as te,jsxs as tt}from"react/jsx-runtime";var tn=function(e){var t=e.containerRef;var n=b(ef(!1),2),c=n[0],i=n[1],g=b(ef(null),2),a=g[0],l=g[1],o=eh(null),r=t||o,d=T(),I=d.handleChangeDate,u=d.handleReset,C=M(),A=C.singleCalendar,s=C.expandDirection,x=z(),m=x.complsOpen,p=x.isMobile,f=x.toggleDialog,h=L(),X=h.hideDialogHeader,y=h.hideDialogFooter,B=function(e,t){l(e),I(e,t)};return ep(function(){m&&!c&&i(!0),m&&setTimeout(function(){var e;var t=(e=r.current)===null||e===void 0?void 0:e.querySelector("#start-date-input-button");t&&t.focus()},50)},[m,r,c]),tt("div",{className:eX("dialog-date-picker",{open:m,hide:!m&&c,single:A&&!p,"expand-left":s==="left","expand-right":s==="right"}),ref:r,children:[!X&&tt("div",{className:"dialog-header",children:[te("button",{type:"button",className:"btn-outline back-button",onClick:f,children:te(eG,{viewBox:"0 0 492 492"})}),te(eC,{showIcon:!0,nonFocusable:!m}),te("button",{type:"button",className:"btn-outline reset-button",onClick:u,children:"Reset"})]}),te("div",{className:"dialog-content",children:p?te(e0,{}):te(e8,{dateChanged:a})}),!y&&tt("div",{className:"dialog-footer",children:[te("button",{type:"button",className:"submit-button",onClick:f,tabIndex:0,children:"Done"}),te("button",{type:"button",className:"btn-outline reset-button mobile",onClick:u,children:"Reset"})]})]})};var tc='.react-google-flight-datepicker {\n font-size: 1rem;\n /** RESPONSIVE MOBILE */\n}\n.react-google-flight-datepicker > * {\n box-sizing: border-box;\n}\n.react-google-flight-datepicker .date-picker-demo {\n width: 400px;\n}\n.react-google-flight-datepicker .btn-outline {\n background-color: transparent;\n background-repeat: no-repeat;\n border: none;\n cursor: pointer;\n overflow: hidden;\n}\n.react-google-flight-datepicker .date-picker {\n position: relative;\n border-radius: 4px;\n background: white;\n padding: 6px;\n}\n.react-google-flight-datepicker .date-picker.disabled {\n opacity: 0.6;\n cursor: default;\n}\n.react-google-flight-datepicker .date-picker-input {\n width: 100%;\n display: flex;\n justify-content: space-between;\n border: 1px solid #dadce0;\n border-radius: 4px;\n color: #3c4043;\n height: 56px;\n letter-spacing: 0.2px;\n font-size: 1rem;\n align-items: center;\n overflow: visible;\n}\n.react-google-flight-datepicker .date-picker-input svg {\n min-width: 24px;\n min-height: 24px;\n}\n.react-google-flight-datepicker .date-picker-date-group {\n position: relative;\n display: flex;\n justify-content: space-between;\n height: 100%;\n flex-grow: 1;\n}\n.react-google-flight-datepicker .date {\n display: flex;\n align-items: center;\n height: 100%;\n position: relative;\n border-radius: 2px 0 0 2px;\n padding: 0 13px;\n flex-grow: 1;\n width: 50%;\n background: white;\n border-radius: 4px;\n}\n.react-google-flight-datepicker .date.is-single::before {\n display: none;\n}\n.react-google-flight-datepicker .date:first-child::before {\n content: "";\n position: absolute;\n right: 0;\n top: 50%;\n transform: translate(0, -50%);\n width: 1px;\n height: 70%;\n background: #dadce0;\n}\n.react-google-flight-datepicker .selected-date {\n display: flex;\n flex: 1 1 0px;\n align-items: center;\n height: 100%;\n font-size: 0.9rem;\n line-height: normal;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.react-google-flight-datepicker .date-placeholder {\n color: rgba(0, 0, 0, 0.56);\n}\n.react-google-flight-datepicker .change-date-group {\n width: 48px;\n display: flex;\n}\n.react-google-flight-datepicker .change-date-group .change-date-button {\n height: 40px;\n color: #5f6368;\n cursor: pointer;\n padding: 8px 0;\n flex-grow: 1;\n}\n.react-google-flight-datepicker .change-date-group .change-date-button:disabled {\n cursor: default;\n}\n.react-google-flight-datepicker .change-date-group .change-date-button:disabled .icon-arrow {\n fill: #93989e;\n}\n.react-google-flight-datepicker .icon-calendar {\n width: 24px;\n height: 24px;\n fill: #1a73e8;\n margin-right: 12px;\n}\n.react-google-flight-datepicker .icon-calendar.mobile {\n display: none;\n}\n.react-google-flight-datepicker .icon-arrow {\n width: 24px;\n height: 24px;\n fill: #5f6368;\n}\n@keyframes showPopup {\n 0% {\n transform: scale(0.7);\n opacity: 0;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n}\n@keyframes hidePopup {\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 100% {\n transform: scale(0.7);\n opacity: 0;\n visibility: hidden;\n }\n}\n.react-google-flight-datepicker .dialog-date-picker {\n background: #fff;\n border-radius: 5px;\n box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);\n min-width: 200px;\n position: absolute;\n top: -2px;\n left: -2px;\n z-index: 120;\n height: max-content;\n width: 770px;\n margin-bottom: 50px;\n transform-origin: top left;\n opacity: 0;\n transform: scale(0);\n}\n.react-google-flight-datepicker .dialog-date-picker.single {\n width: 385px;\n}\n.react-google-flight-datepicker .dialog-date-picker.open {\n animation: showPopup 0.2s forwards;\n}\n.react-google-flight-datepicker .dialog-date-picker.hide {\n animation: hidePopup 0.2s forwards;\n}\n.react-google-flight-datepicker .dialog-date-picker.expand-right {\n left: -2px;\n right: auto;\n transform-origin: top left;\n}\n.react-google-flight-datepicker .dialog-date-picker.expand-left {\n left: auto;\n right: -2px;\n transform-origin: top right;\n}\n.react-google-flight-datepicker .dialog-header {\n padding: 8px 8px 8px 24px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n.react-google-flight-datepicker .dialog-header .date-picker-input {\n height: 48px;\n width: 50%;\n}\n.react-google-flight-datepicker .date:focus,\n.react-google-flight-datepicker .date.is-focus {\n background-color: #f4f8ff;\n}\n.react-google-flight-datepicker .date:focus::after,\n.react-google-flight-datepicker .date.is-focus::after {\n content: "";\n margin: -1px;\n border: 2px solid #1a73e8;\n border-radius: 4px;\n position: absolute;\n pointer-events: none;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n z-index: 5;\n}\n.react-google-flight-datepicker .back-button {\n display: none;\n}\n.react-google-flight-datepicker .dialog-content {\n border-bottom: 1px solid #dadce0;\n border-top: 1px solid #dadce0;\n position: relative;\n}\n.react-google-flight-datepicker .reset-button {\n font-size: 0.9rem;\n padding: 0 8px;\n height: 36px;\n border-radius: 4px;\n border: none;\n color: #5f6368;\n min-width: 64px;\n}\n.react-google-flight-datepicker .reset-button:hover {\n background-color: #fafafa;\n}\n.react-google-flight-datepicker .reset-button.mobile {\n display: none;\n}\n.react-google-flight-datepicker .calendar-wrapper {\n margin: 12px 38px 8px;\n overflow: hidden;\n min-height: 353px;\n}\n.react-google-flight-datepicker .calendar-wrapper.single {\n margin-left: 36px;\n margin-right: 36px;\n}\n.react-google-flight-datepicker .tooltip-text {\n position: absolute;\n background-color: #4285f4;\n color: #fff;\n text-align: center;\n border-radius: 6px;\n padding: 5px 15px;\n z-index: 999;\n width: 120px;\n max-width: 120px;\n word-break: break-word;\n visibility: hidden;\n}\n.react-google-flight-datepicker .tooltip-text::before {\n z-index: 1001;\n border: 6px solid transparent;\n background: transparent;\n content: "";\n margin-left: -6px;\n margin-bottom: -12px;\n border-top-color: #4285f4;\n position: absolute;\n bottom: 0;\n left: 50%;\n}\n.react-google-flight-datepicker .calendar-content {\n display: flex;\n padding: 0 2px;\n position: relative;\n overflow: hidden;\n}\n.react-google-flight-datepicker .calendar-content.isAnimating {\n transition: transform 0.2s ease;\n overflow: initial;\n}\n.react-google-flight-datepicker .month-calendar {\n width: 308px;\n color: #3c4043;\n margin-right: 43px;\n}\n.react-google-flight-datepicker .month-calendar.hidden {\n position: absolute;\n visibility: hidden;\n z-index: -1;\n opacity: 0;\n}\n.react-google-flight-datepicker .month-calendar.isAnimating {\n position: absolute;\n left: -350px;\n}\n.react-google-flight-datepicker .month-calendar .month-calendar.slide-next {\n position: absolute;\n left: 350px;\n}\n.react-google-flight-datepicker .month-calendar .month-calendar.slide-prev {\n position: absolute;\n left: -350px;\n}\n.react-google-flight-datepicker .month-name {\n text-align: center;\n font-size: 1rem;\n margin-bottom: 10px;\n}\n.react-google-flight-datepicker .weekdays {\n width: 100%;\n font-size: 0.9rem;\n color: rgba(0, 0, 0, 0.54);\n display: flex;\n}\n.react-google-flight-datepicker .weekdays .weekday {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 36px;\n margin: 0;\n flex-grow: 1;\n}\n.react-google-flight-datepicker .week {\n display: flex;\n justify-content: flex-start;\n}\n.react-google-flight-datepicker .week.first {\n justify-content: flex-end;\n}\n.react-google-flight-datepicker .day {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n height: 44px;\n margin: 2px 0;\n text-align: center;\n width: 44px;\n vertical-align: top;\n position: relative;\n border-radius: 50%;\n}\n.react-google-flight-datepicker .day .background-day {\n bottom: 0;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 0;\n width: 10px;\n z-index: 1;\n}\n.react-google-flight-datepicker .day .background-day.first-day {\n background: linear-gradient(to right, #fff, #daedfd);\n left: -10px;\n}\n.react-google-flight-datepicker .day .background-day.last-day {\n background: linear-gradient(to left, #fff, #daedfd);\n right: -10px;\n}\n.react-google-flight-datepicker .day::after {\n border-radius: 100%;\n bottom: 0;\n content: "";\n height: 44px;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n width: 44px;\n z-index: 2;\n}\n.react-google-flight-datepicker .day:hover::after {\n background-color: #fff;\n border: 2px solid #4285f4;\n bottom: -2px;\n left: -2px;\n right: -2px;\n top: -2px;\n}\n.react-google-flight-datepicker .day.selected {\n color: white;\n}\n.react-google-flight-datepicker .day.selected:hover {\n color: #000;\n}\n.react-google-flight-datepicker .day.selected::after {\n background-color: #4285f4;\n border-radius: 100%;\n}\n.react-google-flight-datepicker .day.selected:hover::after {\n background-color: #fff;\n}\n.react-google-flight-datepicker .day.highlight::before {\n content: "";\n width: 44px;\n height: 44px;\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n background-color: rgba(247, 237, 122, 0.8196078431);\n border-radius: 50%;\n}\n.react-google-flight-datepicker .day.hovered {\n background-color: #d9edfd;\n position: relative;\n border-radius: unset;\n}\n.react-google-flight-datepicker .day.hovered .background-day {\n opacity: 1;\n}\n.react-google-flight-datepicker .day.hovered.end {\n background: linear-gradient(90deg, #d9edfd 50%, #fff 50%);\n}\n.react-google-flight-datepicker .day.hovered:hover {\n background-color: #d9edfd;\n}\n.react-google-flight-datepicker .day.hovered:hover::after {\n border-radius: 100%;\n background-color: #fff;\n}\n.react-google-flight-datepicker .day.selected.hovered {\n background: linear-gradient(90deg, #fff 50%, #d9edfd 50%);\n color: #fff;\n}\n.react-google-flight-datepicker .day.selected.hovered.end {\n background: linear-gradient(90deg, #d9edfd 50%, #fff 50%);\n}\n.react-google-flight-datepicker .day.selected.hovered:hover {\n color: #000;\n}\n.react-google-flight-datepicker .day.selected.hovered::after {\n border-radius: 100%;\n background-color: #4285f4;\n}\n.react-google-flight-datepicker .day.selected.hovered:hover::after {\n background-color: #fff;\n}\n.react-google-flight-datepicker .day.disabled {\n pointer-events: none;\n color: rgba(0, 0, 0, 0.26);\n}\n.react-google-flight-datepicker .day.disabled.selected {\n color: #fff;\n}\n.react-google-flight-datepicker .day .text-day {\n position: relative;\n z-index: 3;\n}\n.react-google-flight-datepicker .day-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 2px;\n}\n.react-google-flight-datepicker .sub-text {\n font-size: 0.75em;\n color: #666;\n text-align: center;\n}\n.react-google-flight-datepicker .day.has-subtext {\n padding-bottom: 4px;\n}\n.react-google-flight-datepicker .calendar-flippers {\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n pointer-events: none;\n}\n.react-google-flight-datepicker .flipper-button {\n background-color: #fff;\n border-radius: 100%;\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);\n cursor: pointer;\n height: 40px;\n width: 40px;\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0 -20px;\n pointer-events: all;\n border: none;\n outline: none;\n}\n.react-google-flight-datepicker .flipper-button:focus:hover {\n outline: none;\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(0, 0, 0, 0.1);\n}\n.react-google-flight-datepicker .flipper-button svg {\n width: 24px;\n height: 24px;\n}\n.react-google-flight-datepicker .flipper-button.disabled {\n cursor: default;\n}\n.react-google-flight-datepicker .flipper-button.disabled svg {\n fill: #93989e;\n}\n.react-google-flight-datepicker .dialog-footer {\n align-items: center;\n display: flex;\n flex-direction: row-reverse;\n padding: 8px;\n}\n.react-google-flight-datepicker .dialog-footer .submit-button {\n border-radius: 8px;\n padding: 10px 8px;\n border: none;\n line-height: 16px;\n text-transform: uppercase;\n color: #fff;\n background: #4285f4;\n height: 36px;\n min-width: 88px;\n font-weight: 500;\n font-size: 0.9rem;\n cursor: pointer;\n}\n@media screen and (max-width: 768px) {\n .react-google-flight-datepicker .date-picker-demo {\n width: 100%;\n }\n .react-google-flight-datepicker .date-picker-input {\n height: 40px;\n border: none;\n border-radius: 0;\n position: relative;\n }\n .react-google-flight-datepicker .date {\n border: 1px solid #dadce0;\n border-radius: 5px;\n padding: 0 10px;\n flex-grow: 1;\n }\n .react-google-flight-datepicker .date:nth-child(2) {\n margin-left: 10px;\n }\n .react-google-flight-datepicker .date.is-focus {\n height: 40px;\n }\n .react-google-flight-datepicker .date:first-child::before {\n display: none;\n }\n .react-google-flight-datepicker .icon-calendar {\n display: none;\n }\n .react-google-flight-datepicker .icon-calendar.mobile {\n display: block;\n }\n .react-google-flight-datepicker .reset-button {\n display: none;\n }\n .react-google-flight-datepicker .reset-button.mobile {\n display: block;\n color: rgba(0, 0, 0, 0.87);\n min-width: 88px;\n font-weight: 500;\n }\n .react-google-flight-datepicker .change-date-group,\n .react-google-flight-datepicker .divider,\n .react-google-flight-datepicker .calendar-flippers,\n .react-google-flight-datepicker .weekdays {\n display: none;\n }\n .react-google-flight-datepicker .back-button {\n display: block;\n width: 56px;\n height: 100%;\n margin-right: 16px;\n padding: 0;\n }\n .react-google-flight-datepicker .back-button svg {\n width: 20px;\n height: 20px;\n fill: rgba(0, 0, 0, 0.7);\n }\n .react-google-flight-datepicker .dialog-date-picker {\n border-radius: 0;\n width: 100%;\n height: 100%;\n max-height: 100%;\n position: fixed;\n left: 0;\n right: 0;\n bottom: 10px;\n top: 100%;\n display: flex;\n flex-direction: column;\n opacity: 1;\n transform: none;\n z-index: 999999999;\n }\n .react-google-flight-datepicker .dialog-date-picker.open {\n transition: all 0.2s ease-out;\n transform: translate(0, -100%);\n animation: none;\n }\n .react-google-flight-datepicker .dialog-date-picker.hide {\n transition: all 0.2s ease-in;\n transform: translate(0, 0);\n animation: none;\n }\n .react-google-flight-datepicker .dialog-header {\n padding: 8px;\n box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);\n z-index: 50;\n }\n .react-google-flight-datepicker .dialog-header .date-picker-input {\n height: 40px;\n width: 100%;\n }\n .react-google-flight-datepicker .dialog-content {\n border: none;\n overflow: hidden;\n height: 100%;\n }\n .react-google-flight-datepicker .calendar-wrapper {\n margin: 0;\n height: 100%;\n display: flex;\n }\n .react-google-flight-datepicker .calendar-content {\n padding: 0;\n width: 100%;\n height: 100%;\n flex-direction: column;\n flex-grow: 1;\n }\n .react-google-flight-datepicker .weekdays.mobile {\n display: flex;\n background-color: #f3f3f3;\n }\n .react-google-flight-datepicker .month-calendar {\n width: 100%;\n display: flex;\n flex-direction: column;\n }\n .react-google-flight-datepicker .day {\n width: 14.2857142857%;\n max-width: 14.2857142857%;\n }\n .react-google-flight-datepicker .day.selected:hover, .react-google-flight-datepicker .day.hovered:hover {\n color: #fff !important;\n }\n .react-google-flight-datepicker .day.selected:hover::after, .react-google-flight-datepicker .day.hovered:hover::after {\n background-color: #4285f4 !important;\n }\n .react-google-flight-datepicker .month-name {\n text-align: left;\n margin-left: 10px;\n margin-bottom: 0px;\n margin-top: 25px;\n font-weight: bold;\n }\n .react-google-flight-datepicker .dialog-footer {\n box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);\n padding: 15px 8px;\n }\n}\n/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxFbGlhc1xcRG9jdW1lbnRzXFxyZWFjdC1nb29nbGUtZmxpZ2h0LWRhdGVwaWNrZXJcXHNyY1xcbGliXFxjb21wb25lbnRzXFxEYXRlUGlja2VyIiwic291cmNlcyI6WyJzdHlsZXMuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0FBNmxCQTs7QUEzbEJBO0VBQ0U7O0FBR0Y7RUFDRTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFO0VBQ0E7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUdBO0VBQ0U7RUFDQTs7QUFJSjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFOztBQUlKO0VBQ0U7RUFDQTtFQUNBO0VBQ0E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YnNvbHV0ZTtcclxuICAgICAgdmlzaWJpbGl0eTogaGlkZGVuO1xyXG4gICAgICB6LWluZGV4OiAtMTtcclxuICAgICAgb3BhY2l0eTogMDtcclxuICAgIH1cclxuICBcclxuICAgICYuaXNBbmltYXRpbmcge1xyXG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgIGxlZnQ6IC0zNTBweDtcclxuICAgIH1cclxuXHJcbiAgICAubW9udGgtY2FsZW5kYXIge1xyXG4gICAgICAmLnNsaWRlLW5leHQge1xyXG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgICAgICBsZWZ0OiAzNTBweDtcclxuICAgICAgfVxyXG4gICAgICBcclxuICAgICAgJi5zbGlkZS1wcmV2IHtcclxuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgICAgbGVmdDogLTM1MHB4O1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAubW9udGgtbmFtZSB7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBmb250LXNpemU6IDFyZW07XHJcbiAgICBtYXJnaW4tYm90dG9tOiAxMHB4O1xyXG4gIH1cclxuXHJcbiAgLndlZWtkYXlzIHtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gICAgZm9udC1zaXplOiAwLjlyZW07XHJcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjU0KTtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcblxyXG4gICAgLndlZWtkYXkge1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgICAgaGVpZ2h0OiAzNnB4O1xyXG4gICAgICBtYXJnaW46IDA7XHJcbiAgICAgIGZsZXgtZ3JvdzogMTtcclxuICAgIH1cclxuICB9XHJcblxy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kUgTU9CSUxFICovXHJcbiAgQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogNzY4cHgpIHtcclxuICAgIC5kYXRlLXBpY2tlci1kZW1vIHtcclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICB9XHJcblxyXG4gICAgLmRhdGUtcGlja2VyLWlucHV0IHtcclxuICAgICAgaGVpZ2h0OiA0MHB4O1xyXG4gICAgICBib3JkZXI6IG5vbmU7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDA7XHJcbiAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIH1cclxuXHJcbiAgICAuZGF0ZSB7XHJcbiAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkYWRjZTA7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDVweDtcclxuICAgICAgcGFkZGluZzogMCAxMHB4O1xyXG4gICAgICBmbGV4LWdyb3c6IDE7XHJcblxyXG4gICAgICAmOm50aC1jaGlsZCgyKSB7XHJcbiAgICAgICAgbWFyZ2luLWxlZnQ6IDEwcHg7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgICYuaXMtZm9jdXMge1xyXG4gICAgICAgIGhlaWdodDogNDBweDtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5kYXRlOmZpcnN0LWNoaWxkOjpiZWZvcmUge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG4gICAgfVxyXG5cclxuICAgIC5pY29uLWNhbGVuZGFyIHtcclxuICAgICAgZGlzcGxheTogbm9uZTtcclxuXHJcbiAgICAgICYubW9iaWxlIHtcclxuICAgICAgICBkaXNwbGF5OiBibG9jaztcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5yZXNldC1idXR0b24ge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG5cclxuICAgICAgJi5tb2JpbGUge1xyXG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuODcpO1xyXG4gICAgICAgIG1pbi13aWR0aDogODhweDtcclxuICAgICAgICBmb250LXdlaWdodDogNTAwO1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLmNoYW5nZS1kYXRlLWdyb3VwLFxyXG4gICAgLmRpdmlkZXIsXHJcbiAgICAuY2FsZW5kYXItZmxpcHBlcnMsXHJcbiAgICAud2Vla2RheXMge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG4gICAgfVxyXG5cclxuICAgIC5iYWNrLWJ1dHRvbiB7XHJcbiAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICB3aWR0aDogNTZweDtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgICBtYXJnaW4tcmlnaHQ6IDE2cHg7XHJcbiAgICAgIHBhZGRpbmc6IDA7XHJcblxyXG4gICAgICBzdmcge1xyXG4gICAgICAgIHdpZHRoOiAyMHB4O1xyXG4gICAgICAgIGhlaWdodDogMjBweDtcclxuICAgICAgICBmaWxsOiByZ2JhKDAsIDAsIDAsIDAuNyk7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWRhdGUtcGlja2VyIHtcclxuICAgICAgYm9yZGVyLXJhZGl1czogMDtcclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgbWF4LWhlaWdodDogMTAwJTtcclxuICAgICAgcG9zaXRpb246IGZpeGVkO1xyXG4gICAgICBsZWZ0OiAwO1xyXG4gICAgICByaWdodDogMDtcclxuICAgICAgYm90dG9tOiAxMHB4O1xyXG4gICAgICB0b3A6IDEwMCU7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICAgIG9wYWNpdHk6IDE7XHJcbiAgICAgIHRyYW5zZm9ybTogbm9uZTtcclxuICAgICAg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cclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgICAgZmxleC1ncm93OiAxO1xyXG5cclxuICAgIH1cclxuXHJcbiAgICAud2Vla2RheXMubW9iaWxlIHtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YzZjNmMztcclxuICAgIH1cclxuXHJcbiAgICAubW9udGgtY2FsZW5kYXIge1xyXG4gICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgIH1cclxuXHJcbiAgICAuZGF5IHtcclxuICAgICAgd2lkdGg6IGNhbGMoMTAwJSAvIDcpO1xyXG4gICAgICBtYXgtd2lkdGg6IGNhbGMoMTAwJSAvIDcpO1xyXG5cclxuICAgICAgJi5zZWxlY3RlZDpob3ZlcixcclxuICAgICAgJi5ob3ZlcmVkOmhvdmVyIHtcclxuICAgICAgICBjb2xvcjogI2ZmZiAhaW1wb3J0YW50O1xyXG5cclxuICAgICAgICAmOjphZnRlciB7XHJcbiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDI4NWY0ICFpbXBvcnRhbnQ7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLm1vbnRoLW5hbWUge1xyXG4gICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xyXG4gICAgICBtYXJnaW4tbGVmdDogMTBweDtcclxuICAgICAgbWFyZ2luLWJvdHRvbTogMHB4O1xyXG4gICAgICBtYXJnaW4tdG9wOiAyNXB4O1xyXG4gICAgICBmb250LXdlaWdodDogYm9sZDtcclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWZvb3RlciB7XHJcbiAgICAgIGJveC1zaGFkb3c6IDAgMCA0cHggcmdiYSgwLCAwLCAwLCAwLjEyKSwgMCA0cHggNHB4IHJnYmEoMCwgMCwgMCwgMC4yNCk7XHJcbiAgICAgIHBhZGRpbmc6IDE1cHggOHB4O1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= */';document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(tc));import{jsx as ti,jsxs as tg}from"react/jsx-runtime";G.extend(O);var ta=function(e){var t=e.startDate,n=t===void 0?null:t,c=e.endDate,i=c===void 0?null:c,g=e.className,l=g===void 0?"":g,o=e.disabled,r=o===void 0?!1:o,d=e.startDatePlaceholder,I=e.endDatePlaceholder,u=e.onChange,C=e.onFocus,A=C===void 0?function(){}:C,s=e.startWeekDay,x=s===void 0?"monday":s,p=e.minDate,f=p===void 0?null:p,O=e.maxDate,v=O===void 0?null:O,F=e.weekDayFormat,Q=F===void 0?"dd":F,J=e.dateFormat,Z=J===void 0?"":J,U=e.monthFormat,R=U===void 0?"":U,w=e.highlightToday,k=w===void 0?!1:w,N=e.dateInputSeperator,W=N===void 0?null:N,V=e.hideDialogHeader,Y=V===void 0?!1:V,j=e.hideDialogFooter,T=j===void 0?!1:j,M=e.hideDialogAfterSelectEndDate,z=M===void 0?!1:M,L=e.isOpen,E=L===void 0?!1:L,P=e.onCloseCalendar,K=e.tooltip,q=K===void 0?"":K,_=e.subTextDict,$=_===void 0?null:_,ee=e.expandDirection,et=ee===void 0?"right":ee,en=e.locale,ec=en===void 0?"en":en,ei=e.isSingle,eg=ei===void 0?!1:ei,ea=e.singleCalendar,el=ea===void 0?!1:ea;var eo=b(h(E),2),er=eo[0],ed=eo[1],eI=b(h(eg?"from":null),2),eu=eI[0],eA=eI[1],es=b(h(n?G(n):void 0),2),eb=es[0],ex=es[1],ep=b(h(i?G(i):void 0),2),ef=ep[0],eh=ep[1],eX=b(h(),2),ey=eX[0],eB=eX[1],eG=b(h(!1),2),eH=eG[0],eO=eG[1],ev=b(h(!1),2),eF=ev[0],eQ=ev[1],eD=X(null),eJ=X(null),eZ=X(null),eU=function(){(typeof window==="undefined"?"undefined":m(window))<"u"&&window.innerWidth<768?eO(!0):eO(!1)},eR=D(function(){var e=eJ.current?eJ.current.toDate():null,t=!eg&&eZ.current?eZ.current.toDate():null;eg?u(e,null):u(e,t)},20),ew=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ex(e||void 0),eJ.current=e||null,t&&eR()},ek=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eg||(eh(e||void 0),eZ.current=e||null,t&&eR())};B(function(){if(eU(),(typeof window==="undefined"?"undefined":m(window))<"u")return window.addEventListener("resize",eU),function(){return window.removeEventListener("resize",eU)}},[]),y(function(){eQ(!0);var e=function(e){eD.current&&a(e.target,Node)&&!eD.current.contains(e.target)&&window.innerWidth>=768&&ed(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[]),y(function(){var e=n?G(n):null;eJ.current=e,ew(e,!1)},[n]),y(function(){if(!eg){var e=i?G(i):null;eZ.current=e,ek(e,!1)}},[i,eg]),y(function(){if(!er&&eF){var e,t;var n=((e=eJ.current)===null||e===void 0?void 0:e.toDate())||null,c=((t=eZ.current)===null||t===void 0?void 0:t.toDate())||null;eg?P(n,null):P(n,c)}},[er,eF,eg,P]),y(function(){ed(E)},[E]),y(function(){eF&&A(eu==="from"?"Start Date":eu==="to"?"End Date":"")},[eu,eF,A]);var eN=function(){ed(!er)},eW={fromDate:eb,toDate:ef,hoverDate:ey,inputFocus:eu,onSelectDate:function(e){f&&G(f).isAfter(e,"date")||v&&G(v).isBefore(e,"date")||(eg?(ew(e,!0),z&&setTimeout(function(){return ed(!1)},50)):eu==="from"||eb&&e.isBefore(eb,"date")?(ew(e,!0),ef&&e.isAfter(ef,"date")&&ek(null,!0),eA("to")):(ek(e,!0),eA(null),z&&setTimeout(function(){return ed(!1)},50)))},onHoverDate:function(e){eB(e)},handleChangeDate:function(e,t){f&&G(f).isAfter(e,"date")||v&&G(v).isBefore(e,"date")||(t==="from"||eg?(eA("from"),ew(e,!0),!eg&&ef&&e.isAfter(ef,"date")&&ek(null,!0)):(eA("to"),ek(e,!0)))},handleReset:function(){eB(void 0),ew(null,!0),eg||ek(null,!0),eA("from")},handleClickDateInput:function(e){r||!eg&&e==="to"&&!eb||(er||ed(!0),eA(e))}},eV={isSingle:eg,startWeekDay:x,minDate:f,maxDate:v,weekDayFormat:Q,dateFormat:Z,monthFormat:R,highlightToday:k,singleCalendar:el,expandDirection:et,locale:ec},eY={complsOpen:er,isMobile:eH,disabled:r,toggleDialog:eN},ej={startDatePlaceholder:d,endDatePlaceholder:I,dateInputSeperator:W,hideDialogHeader:Y,hideDialogFooter:T,hideDialogAfterSelectEndDate:z,tooltip:q,subTextDict:$};return ti("div",{className:"react-google-flight-datepicker",children:ti("div",{className:H("date-picker",l,{disabled:r}),ref:eD,children:tg(S,{dateState:eW,config:eV,uiState:eY,display:ej,locale:ec,children:[ti(eC,{}),ti(em,{children:ti(tn,{})})]})})})},tl=ta;import{jsx as to}from"react/jsx-runtime";var tr=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,i=c===void 0?function(){}:c,g=e.startDatePlaceholder,a=g===void 0?"Start date":g,l=e.endDatePlaceholder,o=l===void 0?"End date":l,r=A(e,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return to(tl,C(I({},r),{isSingle:!1,startDate:r.startDate,endDate:r.endDate,startDatePlaceholder:a,endDatePlaceholder:o,onChange:n,onCloseCalendar:i}))};import{jsx as td}from"react/jsx-runtime";var tI=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,i=c===void 0?function(){}:c,g=e.startDatePlaceholder,a=g===void 0?"Date":g,l=A(e,["onChange","onCloseCalendar","startDatePlaceholder"]);return td(tl,C(I({},l),{endDate:null,isSingle:!0,startDate:l.startDate,startDatePlaceholder:a,onChange:function(e){return n(e)},onCloseCalendar:function(e){return i(e)}}))};export{tr as RangeDatePicker,tI as SingleDatePicker};//# sourceMappingURL=index.mjs.map
|