@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 CHANGED
@@ -1 +1 @@
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
1
+ "use strict";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,a,i,g){try{var l=e[i](g);var r=l.value}catch(e){n(e);return}if(l.done){t(r)}else{Promise.resolve(r).then(c,a)}}function a(e){return function(){var t=this,n=arguments;return new Promise(function(a,i){var g=e.apply(t,n);function l(e){c(g,a,i,l,r,"next",e)}function r(e){c(g,a,i,l,r,"throw",e)}l(undefined)})}}function i(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 g(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 r(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 c={__proto__:null};var a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e){if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var g=a?Object.getOwnPropertyDescriptor(e,i):null;if(g&&(g.get||g.set)){Object.defineProperty(c,i,g)}else{c[i]=e[i]}}}c.default=e;if(n){n.set(e,c)}return c}function o(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var c=[];var a=true;var i=false;var g,l;try{for(n=n.call(e);!(a=(g=n.next()).done);a=true){c.push(g.value);if(t&&c.length===t)break}}catch(e){i=true;l=e}finally{try{if(!a&&n["return"]!=null)n["return"]()}finally{if(i)throw l}}return c}function I(){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(){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 C(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){i(e,t,n[t])})}return e}function A(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 s(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{A(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function b(e,t){if(e==null)return{};var n=x(e,t);var c,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++){c=i[a];if(t.indexOf(c)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,c))continue;n[c]=e[c]}}return n}function x(e,t){if(e==null)return{};var n={};var c=Object.keys(e);var a,i;for(i=0;i<c.length;i++){a=c[i];if(t.indexOf(a)>=0)continue;n[a]=e[a]}return n}function f(e,n){return t(e)||d(e,n)||m(e,n)||I()}function p(e){return n(e)||o(e)||m(e)||u()}function h(e){"@swc/helpers - typeof";return e&&typeof Symbol!=="undefined"&&e.constructor===Symbol?"symbol":typeof e}function m(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 y(e,t){var n,c,a,i,g={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),"throw":l(1),"return":l(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(e){return function(t){return r([e,t])}}function r(i){if(n)throw new TypeError("Generator is already executing.");while(g)try{if(n=1,c&&(a=i[0]&2?c["return"]:i[0]?c["throw"]||((a=c["return"])&&a.call(c),0):c.next)&&!(a=a.call(c,i[1])).done)return a;if(c=0,a)i=[i[0]&2,a.value];switch(i[0]){case 0:case 1:a=i;break;case 4:g.label++;return{value:i[1],done:false};case 5:g.label++;c=i[1];i=[0];continue;case 7:i=g.ops.pop();g.trys.pop();continue;default:if(!(a=g.trys,a=a.length>0&&a[a.length-1])&&(i[0]===6||i[0]===2)){g=0;continue}if(i[0]===3&&(!a||i[1]>a[0]&&i[1]<a[3])){g.label=i[1];break}if(i[0]===6&&g.label<a[1]){g.label=a[1];a=i;break}if(a&&g.label<a[2]){g.label=a[2];g.ops.push(i);break}if(a[2])g.ops.pop();g.trys.pop();continue}i=t.call(e,g)}catch(e){i=[6,e];c=0}finally{n=a=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}var X=Object.create;var B=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var v=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var F=function(e,t){for(var n in t)B(e,n,{get:t[n],enumerable:!0})},Q=function(e,t,n,c){var a=true,i=false,g=undefined;if(t&&(typeof t==="undefined"?"undefined":h(t))=="object"||typeof t=="function")try{var l=function(){var a=o.value;!H.call(e,a)&&a!==n&&B(e,a,{get:function(){return t[a]},enumerable:!(c=G(t,a))||c.enumerable})};for(var r=O(t)[Symbol.iterator](),o;!(a=(o=r.next()).done);a=true)l()}catch(e){i=true;g=e}finally{try{if(!a&&r.return!=null){r.return()}}finally{if(i){throw g}}}return e};var D=function(e,t,n){return n=e!=null?X(v(e)):{},Q(t||!e||!e.__esModule?B(n,"default",{value:e,enumerable:!0}):n,e)},J=function(e){return Q(B({},"__esModule",{value:!0}),e)};var Z={};F(Z,{RangeDatePicker:function(){return e8},SingleDatePicker:function(){return tt}});module.exports=J(Z);var U=require("react"),R=D(require("dayjs")),w=D(require("classnames")),k=D(require("dayjs/plugin/localeData"));var N=D(require("dayjs"));function W(e,t,n){var c=[],a=new Date(e,t,1),i=new Date(e,t+1,0).getDate(),g=1,l=a.getDay()===0?1:7-a.getDay()+1;for(n==="sunday"&&(l=7-a.getDay());g<=i;)c.push({start:g,days:l-g+1}),g=l+1,l+=7,l=g===1&&l===8?1:l,l>i&&(l=i);return{totalWeek:c,totalDay:i}}function V(e,t){var n=p(Array(7)).map(function(e,n){return(0,N.default)().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd")});if(e==="sunday"){var c=n.pop();c&&n.unshift(c)}return n}function j(e,t){var n;return function(){var c=this;for(var a=arguments.length,i=new Array(a),g=0;g<a;g++){i[g]=arguments[g]}var l=function(){n=null,e.apply(c,i)};n&&clearTimeout(n),n=setTimeout(l,t)}}var Y=require("react"),T=D(require("dayjs")),M=require("react/jsx-runtime"),z=(0,Y.createContext)(null),E=(0,Y.createContext)(null),L=(0,Y.createContext)(null),S=(0,Y.createContext)(null),P=(0,Y.createContext)(null),q=function(){var e=(0,Y.useContext)(z);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},K=function(){var e=(0,Y.useContext)(E);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},_=function(){var e=(0,Y.useContext)(L);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},$=function(){var e=(0,Y.useContext)(S);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 y(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__*/r(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,c=e.config,a=e.uiState,i=e.display,g=e.locale,l=g===void 0?"en":g;var r=f((0,Y.useState)({currentLocale:"en",isLocaleReady:l==="en"}),2),o=r[0],d=r[1];return(0,Y.useEffect)(function(){l!=="en"?(d(function(e){return s(C({},e),{isLocaleReady:!1})}),ee(l).then(function(e){e?(T.default.locale(l),d({currentLocale:l,isLocaleReady:!0})):(T.default.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))})):(T.default.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))},[l]),o.isLocaleReady?(0,M.jsx)(P.Provider,{value:o,children:(0,M.jsx)(z.Provider,{value:n,children:(0,M.jsx)(E.Provider,{value:c,children:(0,M.jsx)(L.Provider,{value:a,children:(0,M.jsx)(S.Provider,{value:i,children:t})})})})}):null};var en=require("react"),ec=require("react/jsx-runtime"),ea=function(e){return(0,ec.jsx)("svg",s(C({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:(0,ec.jsx)("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"})}))},ei=ea;var eg=require("react"),el=D(require("classnames")),er=D(require("dayjs"));var eo=require("react"),ed=require("react/jsx-runtime"),eI=function(e){return(0,ed.jsx)("svg",s(C({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:(0,ed.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})}))},eu=eI;var eC=require("react"),eA=require("react/jsx-runtime"),es=function(e){return(0,eA.jsx)("svg",s(C({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:(0,eA.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})}))},eb=es;var ex=require("react/jsx-runtime"),ef=function(e){var t=e.type,n=e.showIcon,c=n===void 0?!1:n,a=e.tabIndex,i=a===void 0?0:a,g=e.nonFocusable,l=g===void 0?!1:g;var r=f((0,eg.useState)(null),2),o=r[0],d=r[1],I=f((0,eg.useState)(!1),2),u=I[0],C=I[1],A=f((0,eg.useState)(!1),2),s=A[0],b=A[1],x=q(),p=x.fromDate,h=x.toDate,m=x.inputFocus,y=x.handleClickDateInput,X=x.handleChangeDate,B=K(),G=B.isSingle,O=B.minDate,v=B.maxDate,H=B.dateFormat,F=$(),Q=F.startDatePlaceholder,D=F.endDatePlaceholder,J=t==="from"?p:h,Z=t==="from"?Q:D;(0,eg.useEffect)(function(){if(J){var e=J.clone().locale(er.default.locale()).format("ddd, DD MMM");H&&(e=J.format(H)),d(e);var n=O?(0,er.default)(O):null,c=v?(0,er.default)(v):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"))?b(!0):b(!1)}else d(null)},[J,p,O,v,H,t]);var U=function(e){e.stopPropagation(),J&&X(J.subtract(1,"day"),t)},R=function(e){e.stopPropagation(),J&&X(J.add(1,"day"),t)},w=function(){y(t)};return(0,ex.jsxs)("div",{className:(0,el.default)("date",{"is-focus":m===t&&!G,"is-single":G}),role:"button",tabIndex:l?-1:i,onClick:w,id:"".concat(t,"-date-input-button"),children:[c&&(0,ex.jsx)(ei,{className:"icon-calendar",viewBox:"0 0 24 24"}),(0,ex.jsx)("div",{className:"selected-date",children:o!==null&&o!==void 0?o:(0,ex.jsx)("div",{className:"date-placeholder",children:Z})}),o&&(0,ex.jsxs)("div",{className:"change-date-group",children:[(0,ex.jsx)("button",{type:"button",className:"btn-outline change-date-button",onClick:U,tabIndex:l?-1:0,disabled:u,children:(0,ex.jsx)(eu,{viewBox:"0 0 24 24",className:"icon-arrow"})}),(0,ex.jsx)("button",{type:"button",className:"btn-outline change-date-button",onClick:R,tabIndex:l?-1:0,disabled:s,children:(0,ex.jsx)(eb,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};var ep=require("react/jsx-runtime"),eh=function(e){var t=e.showIcon,n=t===void 0?!1:t,c=e.nonFocusable,a=c===void 0?!1:c;var i=K(),g=i.isSingle,l=$(),r=l.dateInputSeperator;return(0,ep.jsxs)("div",{className:"date-picker-input",children:[n&&(0,ep.jsx)(ei,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),(0,ep.jsxs)("div",{className:"date-picker-date-group",children:[(0,ep.jsx)(ef,{type:"from",tabIndex:a?-1:0,showIcon:!0,nonFocusable:a}),!g&&r&&(0,ep.jsx)("div",{className:"date-input-separator",children:r}),!g&&(0,ep.jsx)(ef,{type:"to",tabIndex:a?-1:0,showIcon:!1,nonFocusable:a})]})]})};var em=require("react-dom"),ey=require("react/jsx-runtime"),eX=function(e){var t=e.children,n=t===void 0?null:t,c=e.isMobile,a=c===void 0?!1:c;return a?(0,em.createPortal)((0,ey.jsx)("div",{className:"react-google-flight-datepicker",children:n}),document.querySelector("body")):(0,ey.jsx)(ey.Fragment,{children:n})},eB=eX;var eG=require("react"),eO=D(require("classnames"));var ev=require("react"),eH=require("react/jsx-runtime"),eF=function(e){return(0,eH.jsx)("svg",s(C({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492"},e),{children:(0,eH.jsx)("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"})}))},eQ=eF;var eD=D(require("react")),eJ=D(require("dayjs")),eZ=require("react-window"),eU=D(require("react-virtualized-auto-sizer"));var eR=require("react"),ew=D(require("classnames")),ek=D(require("dayjs"));var eN=require("react"),eW=D(require("classnames")),eV=D(require("dayjs"));var ej=require("react"),eY=D(require("classnames"));var eT=require("react/jsx-runtime"),eM=(0,ej.forwardRef)(function(e,t){var n=e.dateIndex,c=e.dateValue,a=e.isEndDay,i=e.selected,g=e.hovered,l=e.disabled,r=e.totalDay,o=e.highlight,d=e.handleHoverDay,I=e.subText;var u=(0,ej.useRef)(null),C=q(),A=C.onSelectDate,s=C.onHoverDate,b=function(e){e.stopPropagation(),e.preventDefault(),!l&&A(c)},x=function(){l||(s(c),d(c))},f=(0,ej.useCallback)(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=(0,ej.useCallback)(function(){var e=t.current;e&&(e.style.visibility="hidden")},[t]);return(0,ej.useEffect)(function(){var e=u.current;return e&&(e.addEventListener("mouseover",f),e.addEventListener("mouseleave",p)),function(){e&&(e.removeEventListener("mouseover",f),e.removeEventListener("mouseleave",p))}},[f,p]),(0,eT.jsxs)("div",{className:(0,eY.default)("day",{selected:i,hovered:g,disabled:l,highlight:o,end:a,"has-subtext":!!I}),onClick:b,onMouseEnter:x,role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":c.valueOf(),ref:u,children:[g&&!(a&&n===r)&&!(n===1&&i&&!a)&&(0,eT.jsx)("div",{className:(0,eY.default)("background-day",{"first-day":n===1,"last-day":n===r})}),(0,eT.jsxs)("div",{className:"day-content",children:[(0,eT.jsx)("div",{className:"text-day",children:n}),I&&(0,eT.jsx)("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:i&&!g?"#fff":"#666"},children:I})]})]})});eM.displayName="Day";var ez=require("react/jsx-runtime"),eE=(0,eN.forwardRef)(function(e,t){var n=e.isFirst,c=e.week,a=e.month,i=e.year,g=e.totalDay,l=e.weekIndex,r=e.handleHoverDay;var o=q(),d=o.fromDate,I=o.toDate,u=o.hoverDate,C=K(),A=C.minDate,s=C.maxDate,b=C.isSingle,x=C.highlightToday,f=$(),p=f.subTextDict,h=function(){return Array.from({length:c.days},function(e,n){var l=n+c.start,o=(0,eV.default)("".concat(i,"-").concat(a+1,"-").concat(l)),C=A&&o.isBefore(A,"date")||s&&o.isAfter(s,"date"),f=d&&o.isSame(d,"date")||I&&o.isSame(I,"date"),h=!1,m=x&&o.isSame(new Date,"date");d&&!d.isSame(I,"date")&&!b&&(I&&!d.isAfter(o,"date")&&!I.isBefore(o,"date")&&(h=!0),!I&&!o.isBefore(d,"date")&&!(u&&u.isBefore(o,"date"))&&d.isBefore(u,"date")&&(h=!0));var y;var X=I&&o.isSame(I,"date")||!I&&u&&o.isSame(u,"date"),B=p?(y=p[o.format("YYYY-MM-DD")])!==null&&y!==void 0?y:"\xa0":"";return(0,ez.jsx)(eM,{dateIndex:l,dateValue:o,selected:f,hovered:h,highlight:m,disabled:C,isEndDay:X,totalDay:g,handleHoverDay:r,subText:B,ref:t},n)})};return(0,ez.jsx)("div",{className:(0,eW.default)("week",{first:n}),children:h()})});eE.displayName="Week";var eL=require("react/jsx-runtime"),eS=(0,eR.forwardRef)(function(e,t){var n=e.month,c=e.year,a=e.hidden,i=a===void 0?!1:a,g=e.isAnimating,l=g===void 0?!1:g,r=e.handleHoverDay,o=e.className;var d=K(),I=d.startWeekDay,u=d.weekDayFormat,C=d.monthFormat,A=d.singleCalendar,s=function(){var e=W(c,n,I),a=e.totalWeek,i=e.totalDay;return a.map(function(e){var g="".concat(c,"-").concat(n,"-").concat(e.start);return(0,eL.jsx)(eE,{week:e,month:n,year:c,isFirst:e===a[0],totalDay:i,weekIndex:a.indexOf(e),handleHoverDay:r,ref:t},g)})},b=function(){return V(I,u).map(function(e){return(0,eL.jsx)("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))})},x=function(){var e=(0,ek.default)("".concat(c,"-").concat(n+1,"-1"));return C?e.format(C):e.format("MMMM - YYYY")};return(0,eL.jsxs)("div",{className:(0,ew.default)("month-calendar",{isAnimating:l,hidden:i,single:A},o),"data-month-index":n+1,children:[(0,eL.jsx)("div",{className:"month-name",children:x()}),(0,eL.jsx)("div",{className:"weekdays",children:b()}),(0,eL.jsx)("div",{className:"week-container",children:s()})]})});eS.displayName="MonthCalendar";var eP=require("react/jsx-runtime"),eq=function(){var e=f((0,eD.useState)(2400),2),t=e[0],n=e[1],c=(0,eD.useRef)(null),a=q(),i=a.fromDate,g=K(),l=g.startWeekDay,r=g.minDate,o=g.maxDate,d=g.weekDayFormat,I=_(),u=I.complsOpen,C=$(),A=C.tooltip,s=C.subTextDict,b=r?(0,eJ.default)(r).year():1900,x=r?(0,eJ.default)(r).month():0;(0,eD.useEffect)(function(){if(o){var e=r?(0,eJ.default)(r):(0,eJ.default)("1900-01-01");n((0,eJ.default)(o).diff(e,"month")+1)}},[o,r]),(0,eD.useEffect)(function(){if(c.current&&u){var e=i?(0,eJ.default)(i):(0,eJ.default)(),t=e.diff((0,eJ.default)("1900-01-01"),"month");r&&(t=e.diff((0,eJ.default)(r),"month")),c.current.scrollToItem(t+1,"smart")}},[u,i,r]);var p=function(e){var t=e+x,n=b+Math.floor(t/12),c=t%12;return{year:n,month:c}},h=eD.default.memo(function(e){var t=e.index,n=e.style;var c=p(t),a=c.year,i=c.month;return(0,eP.jsx)("div",{style:n,children:(0,eP.jsx)(eS,{month:i,year:a,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})});h.displayName="CalendarRow";var m=function(e){var t=p(e),n=t.year,c=t.month,a=W(n,c,l||"monday"),i=a.totalWeek;return i.length*48+34},y=function(){return(0,eP.jsx)(eU.default,{children:function(e){var n=e.height,a=e.width;return(0,eP.jsx)(eZ.VariableSizeList,{ref:c,width:a,height:n-36,itemCount:t,itemSize:m,children:h})}})};return(0,eP.jsx)("div",{className:"calendar-wrapper",children:(0,eP.jsxs)("div",{className:"calendar-content",children:[(0,eP.jsx)("div",{className:"weekdays mobile",children:V(l||"monday",d).map(function(e,t){return(0,eP.jsx)("div",{className:"weekday",children:e},t)})}),y()]})})};var eK=require("react"),e_=D(require("classnames")),e$=D(require("dayjs"));var e0=require("react/jsx-runtime"),e1=function(e){var t=e.dateChanged,n=t===void 0?null:t;var c=(0,eK.useRef)(null),a=(0,eK.useRef)(null),i=f((0,eK.useState)(0),2),g=i[0],l=i[1],r=f((0,eK.useState)([]),2),o=r[0],d=r[1],I=f((0,eK.useState)((0,e$.default)()),2),u=I[0],C=I[1],A=f((0,eK.useState)(!1),2),s=A[0],b=A[1],x=f((0,eK.useState)(!1),2),p=x[0],h=x[1],m=f((0,eK.useState)(0),2),y=m[0],X=m[1],B=f((0,eK.useState)(null),2),G=B[0],O=B[1],v=f((0,eK.useState)(!1),2),H=v[0],F=v[1],Q=q(),D=Q.fromDate,J=K(),Z=J.minDate,U=J.maxDate,R=J.singleCalendar,w=_(),k=w.complsOpen,N=$(),W=N.tooltip,V=function(e){return[(0,e$.default)(e).subtract(1,"month"),e,(0,e$.default)(e).add(1,"month"),(0,e$.default)(e).add(2,"month")]},j=(0,eK.useCallback)(function(e){O((0,e$.default)(e))},[]),Y=function(e){return function(){(e==="next"?p:s)||H||(F(!0),requestAnimationFrame(function(){var t=e==="next"?-y:y;l(t)}),setTimeout(function(){var t=e==="next"?(0,e$.default)(u).add(1,"month"):(0,e$.default)(u).subtract(1,"month");C(t),d(V(t)),l(0),F(!1)},200))}},T=Y("next"),M=Y("prev"),z=function(){var e,t,n;var a;(e=(a=(t=c.current)===null||t===void 0?void 0:t.querySelector(".day.selected"))!==null&&a!==void 0?a:(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()},E=function(e){var t,n;var c=e.target,a=["Tab","Space","ArrowLeft","ArrowUp","ArrowRight","ArrowDown"],i=c.getAttribute("data-day-index");if(!a.includes(e.key)||!i)return;e.preventDefault();var g;var l=c.closest(".calendar-wrapper"),r=parseInt((g=c.getAttribute("data-date-value"))!==null&&g!==void 0?g:"0"),o=(0,e$.default)(r),d=o.add(1,"month").set("date",0).get("date"),I=parseInt(i),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=o.add(C-I,"day"),s=Math.ceil(A.diff(u,"month",!0));if(s>1){if(U&&(0,e$.default)(A).isAfter(U,"month"))return;T()}else if(s<0){if(Z&&(0,e$.default)(A).isBefore(Z,"month"))return;M()}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)}},L=function(e,t){(e.key==="Space"||e.key==="Enter")&&(e.preventDefault(),t())};var S;return(0,eK.useEffect)(function(){var e;var t,n;var a=(t=(e=c.current)===null||e===void 0?void 0:e.offsetWidth)!==null&&t!==void 0?t:0,i=window.getComputedStyle((n=c.current)!==null&&n!==void 0?n:document.createElement("div")),g=R?a+parseInt(i.marginLeft)-8:a/2;X(g)},[c.current,R]),(0,eK.useEffect)(function(){C(D!==null&&D!==void 0?D:(0,e$.default)())},[k,D]),(0,eK.useEffect)(function(){b(!!(Z&&u.isBefore((0,e$.default)(Z).add(1,"month"),"month"))),h(!!(U&&u.isAfter((0,e$.default)(U).subtract(2,"month"),"month"))),d(V(u))},[u,Z,U]),(0,eK.useEffect)(function(){n&&((0,e$.default)(n).isBefore(u,"month")?M():(0,e$.default)(n).isAfter(u.add(1,"month"),"month")&&T())},[n,u]),(0,e0.jsxs)("div",{className:"relative",children:[W&&(0,e0.jsx)("div",{id:"day-tooltip",className:"tooltip-text",ref:a,children:typeof W=="function"?W((S=G===null||G===void 0?void 0:G.toDate())!==null&&S!==void 0?S:new Date):W}),(0,e0.jsxs)("div",{className:(0,e_.default)("calendar-wrapper",{single:R}),ref:c,onKeyDown:E,role:"grid","aria-label":"Calendar",children:[(0,e0.jsx)("div",{className:(0,e_.default)("calendar-content",{isAnimating:H}),style:{transform:"translateX(".concat(g,"px)")},children:o.map(function(e,t){var n="".concat(e.get("year"),"-").concat(e.get("month")),c=t===1||t===2,i=H&&g<0&&t===3,l=H&&g>0&&t===0;return(0,e0.jsx)(eS,{hidden:!c&&!i&&!l,isAnimating:i||l,month:e.get("month"),year:e.get("year"),handleHoverDay:j,ref:a,className:(0,e_.default)({"slide-next":i,"slide-prev":l})},n)})}),(0,e0.jsxs)("div",{className:"calendar-flippers",children:[(0,e0.jsx)("button",{className:(0,e_.default)("flipper-button",{disabled:s}),onClick:M,onKeyDown:function(e){return L(e,M)},disabled:s,"aria-label":"Previous month",children:(0,e0.jsx)(eu,{viewBox:"0 0 24 24"})}),(0,e0.jsx)("button",{className:(0,e_.default)("flipper-button",{disabled:p}),onClick:T,onKeyDown:function(e){return L(e,T)},disabled:p,"aria-label":"Next month",onBlur:z,children:(0,e0.jsx)(eb,{viewBox:"0 0 24 24"})})]})]})]})};var e4=require("react/jsx-runtime"),e2=function(e){var t=e.containerRef;var n=f((0,eG.useState)(!1),2),c=n[0],a=n[1],i=f((0,eG.useState)(null),2),g=i[0],l=i[1],r=(0,eG.useRef)(null),o=t||r,d=q(),I=d.handleChangeDate,u=d.handleReset,C=K(),A=C.singleCalendar,s=C.expandDirection,b=_(),x=b.complsOpen,p=b.isMobile,h=b.toggleDialog,m=$(),y=m.hideDialogHeader,X=m.hideDialogFooter,B=function(e,t){l(e),I(e,t)};return(0,eG.useEffect)(function(){x&&!c&&a(!0),x&&setTimeout(function(){var e;var t=(e=o.current)===null||e===void 0?void 0:e.querySelector("#start-date-input-button");t&&t.focus()},50)},[x,o,c]),(0,e4.jsxs)("div",{className:(0,eO.default)("dialog-date-picker",{open:x,hide:!x&&c,single:A&&!p,"expand-left":s==="left","expand-right":s==="right"}),ref:o,children:[!y&&(0,e4.jsxs)("div",{className:"dialog-header",children:[(0,e4.jsx)("button",{type:"button",className:"btn-outline back-button",onClick:h,children:(0,e4.jsx)(eQ,{viewBox:"0 0 492 492"})}),(0,e4.jsx)(eh,{showIcon:!0,nonFocusable:!x}),(0,e4.jsx)("button",{type:"button",className:"btn-outline reset-button",onClick:u,children:"Reset"})]}),(0,e4.jsx)("div",{className:"dialog-content",children:p?(0,e4.jsx)(eq,{}):(0,e4.jsx)(e1,{dateChanged:g})}),!X&&(0,e4.jsxs)("div",{className:"dialog-footer",children:[(0,e4.jsx)("button",{type:"button",className:"submit-button",onClick:h,tabIndex:0,children:"Done"}),(0,e4.jsx)("button",{type:"button",className:"btn-outline reset-button mobile",onClick:u,children:"Reset"})]})]})};var e7='.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxFbGlhc1xcRG9jdW1lbnR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zogMCAxMHB4O1xyXG4gICAgICBmbGV4LWdyb3c6IDE7XHJcblxyXG4gICAgICAmOm50aC1jaGlsZCgyKSB7XHJcbiAgICAgICAgbWFyZ2luLWxlZnQ6IDEwcHg7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgICYuaXMtZm9jdXMge1xyXG4gICAgICAgIGhlaWdodDogNDBweDtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5kYXRlOmZpcnN0LWNoaWxkOjpiZWZvcmUge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG4gICAgfVxyXG5cclxuICAgIC5pY29uLWNhbGVuZGFyIHtcclxuICAgICAgZGlzcGxheTogbm9uZTtcclxuXHJcbiAgICAgICYubW9iaWxlIHtcclxuICAgICAgICBkaXNwbGF5OiBibG9jaztcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5yZXNldC1idXR0b24ge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG5cclxuICAgICAgJi5tb2JpbGUge1xyXG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuODcpO1xyXG4gICAgICAgIG1pbi13aWR0aDogODhweDtcclxuICAgICAgICBmb250LXdlaWdodDogNTAwO1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLmNoYW5nZS1kYXRlLWdyb3VwLFxyXG4gICAgLmRpdmlkZXIsXHJcbiAgICAuY2FsZW5kYXItZmxpcHBlcnMsXHJcbiAgICAud2Vla2RheXMge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG4gICAgfVxyXG5cclxuICAgIC5iYWNrLWJ1dHRvbiB7XHJcbiAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICB3aWR0aDogNTZweDtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgICBtYXJnaW4tcmlnaHQ6IDE2cHg7XHJcbiAgICAgIHBhZGRpbmc6IDA7XHJcblxyXG4gICAgICBzdmcge1xyXG4gICAgICAgIHdpZHRoOiAyMHB4O1xyXG4gICAgICAgIGhlaWdodDogMjBweDtcclxuICAgICAgICBmaWxsOiByZ2JhKDAsIDAsIDAsIDAuNyk7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWRhdGUtcGlja2VyIHtcclxuICAgICAgYm9yZGVyLXJhZGl1czogMDtcclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgbWF4LWhlaWdodDogMTAwJTtcclxuICAgICAgcG9zaXRpb246IGZpeGVkO1xyXG4gICAgICBsZWZ0OiAwO1xyXG4gICAgICByaWdodDogMDtcclxuICAgICAgYm90dG9tOiAxMHB4O1xyXG4gICAgICB0b3A6IDEwMCU7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICAgIG9wYWNpdHk6IDE7XHJcbiAgICAgIHRyYW5zZm9ybTogbm9uZTtcclxuICAgICAgei1pbmRleDogOTk5OTk5OTk5O1xyXG5cclxuICAgICAgJi5vcGVuIHtcclxuICAgICAgICB0cmFuc2l0aW9uOiBhbGwgMC4ycyBlYXNlLW91dDtcclxuICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgwLCAtMTAwJSk7XHJcbiAgICAgICAgYW5pbWF0aW9uOiBub25lO1xyXG4gICAgICB9XHJcblxyXG4gICAgICAmLmhpZGUge1xyXG4gICAgICAgIHRyYW5zaXRpb246IGFsbCAwLjJzIGVhc2UtaW47XHJcbiAgICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoMCwgMCk7XHJcbiAgICAgICAgYW5pbWF0aW9uOiBub25lO1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLmRpYWxvZy1oZWFkZXIge1xyXG4gICAgICBwYWRkaW5nOiA4cHg7XHJcbiAgICAgIGJveC1zaGFkb3c6IDAgMCAycHggcmdiYSgwLCAwLCAwLCAwLjEyKSwgMCAycHggMnB4IHJnYmEoMCwgMCwgMCwgMC4yNCk7XHJcbiAgICAgIHotaW5kZXg6IDUwO1xyXG5cclxuICAgICAgLmRhdGUtcGlja2VyLWlucHV0IHtcclxuICAgICAgICBoZWlnaHQ6IDQwcHg7XHJcbiAgICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWNvbnRlbnQge1xyXG4gICAgICBib3JkZXI6IG5vbmU7XHJcbiAgICAgIG92ZXJmbG93OiBoaWRkZW47XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgIH1cclxuXHJcbiAgICAuY2FsZW5kYXItd3JhcHBlciB7XHJcbiAgICAgIG1hcmdpbjogMDtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgfVxyXG5cclxuICAgIC5jYWxlbmRhci1jb250ZW50IHtcclxuICAgICAgcGFkZGluZzogMDtcclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgICAgZmxleC1ncm93OiAxO1xyXG5cclxuICAgIH1cclxuXHJcbiAgICAud2Vla2RheXMubW9iaWxlIHtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YzZjNmMztcclxuICAgIH1cclxuXHJcbiAgICAubW9udGgtY2FsZW5kYXIge1xyXG4gICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgIH1cclxuXHJcbiAgICAuZGF5IHtcclxuICAgICAgd2lkdGg6IGNhbGMoMTAwJSAvIDcpO1xyXG4gICAgICBtYXgtd2lkdGg6IGNhbGMoMTAwJSAvIDcpO1xyXG5cclxuICAgICAgJi5zZWxlY3RlZDpob3ZlcixcclxuICAgICAgJi5ob3ZlcmVkOmhvdmVyIHtcclxuICAgICAgICBjb2xvcjogI2ZmZiAhaW1wb3J0YW50O1xyXG5cclxuICAgICAgICAmOjphZnRlciB7XHJcbiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDI4NWY0ICFpbXBvcnRhbnQ7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLm1vbnRoLW5hbWUge1xyXG4gICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xyXG4gICAgICBtYXJnaW4tbGVmdDogMTBweDtcclxuICAgICAgbWFyZ2luLWJvdHRvbTogMHB4O1xyXG4gICAgICBtYXJnaW4tdG9wOiAyNXB4O1xyXG4gICAgICBmb250LXdlaWdodDogYm9sZDtcclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWZvb3RlciB7XHJcbiAgICAgIGJveC1zaGFkb3c6IDAgMCA0cHggcmdiYSgwLCAwLCAwLCAwLjEyKSwgMCA0cHggNHB4IHJnYmEoMCwgMCwgMCwgMC4yNCk7XHJcbiAgICAgIHBhZGRpbmc6IDE1cHggOHB4O1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= */';document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(e7));var e5=require("react/jsx-runtime");R.default.extend(k.default);var e9=function(e){var t=e.startDate,n=t===void 0?null:t,c=e.endDate,a=c===void 0?null:c,i=e.className,l=i===void 0?"":i,r=e.disabled,o=r===void 0?!1:r,d=e.startDatePlaceholder,I=e.endDatePlaceholder,u=e.onChange,C=e.onFocus,A=C===void 0?function(){}:C,s=e.startWeekDay,b=s===void 0?"monday":s,x=e.minDate,p=x===void 0?null:x,m=e.maxDate,y=m===void 0?null:m,X=e.weekDayFormat,B=X===void 0?"dd":X,G=e.dateFormat,O=G===void 0?"":G,v=e.monthFormat,H=v===void 0?"":v,F=e.highlightToday,Q=F===void 0?!1:F,D=e.dateInputSeperator,J=D===void 0?null:D,Z=e.hideDialogHeader,k=Z===void 0?!1:Z,N=e.hideDialogFooter,W=N===void 0?!1:N,V=e.hideDialogAfterSelectEndDate,Y=V===void 0?!1:V,T=e.isOpen,M=T===void 0?!1:T,z=e.onCloseCalendar,E=e.tooltip,L=E===void 0?"":E,S=e.subTextDict,P=S===void 0?null:S,q=e.expandDirection,K=q===void 0?"right":q,_=e.locale,$=_===void 0?"en":_,ee=e.isSingle,en=ee===void 0?!1:ee,ec=e.singleCalendar,ea=ec===void 0?!1:ec;var ei=f((0,U.useState)(M),2),eg=ei[0],el=ei[1],er=f((0,U.useState)(en?"from":null),2),eo=er[0],ed=er[1],eI=f((0,U.useState)(n?(0,R.default)(n):void 0),2),eu=eI[0],eC=eI[1],eA=f((0,U.useState)(a?(0,R.default)(a):void 0),2),es=eA[0],eb=eA[1],ex=f((0,U.useState)(),2),ef=ex[0],ep=ex[1],em=f((0,U.useState)(!1),2),ey=em[0],eX=em[1],eG=f((0,U.useState)(!1),2),eO=eG[0],ev=eG[1],eH=(0,U.useRef)(null),eF=(0,U.useRef)(null),eQ=(0,U.useRef)(null),eD=function(){(typeof window==="undefined"?"undefined":h(window))<"u"&&window.innerWidth<768?eX(!0):eX(!1)},eJ=j(function(){var e=eF.current?eF.current.toDate():null,t=!en&&eQ.current?eQ.current.toDate():null;en?u(e,null):u(e,t)},20),eZ=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eC(e||void 0),eF.current=e||null,t&&eJ()},eU=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;en||(eb(e||void 0),eQ.current=e||null,t&&eJ())};(0,U.useLayoutEffect)(function(){if(eD(),(typeof window==="undefined"?"undefined":h(window))<"u")return window.addEventListener("resize",eD),function(){return window.removeEventListener("resize",eD)}},[]),(0,U.useEffect)(function(){ev(!0);var e=function(e){eH.current&&g(e.target,Node)&&!eH.current.contains(e.target)&&window.innerWidth>=768&&el(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[]),(0,U.useEffect)(function(){var e=n?(0,R.default)(n):null;eF.current=e,eZ(e,!1)},[n]),(0,U.useEffect)(function(){if(!en){var e=a?(0,R.default)(a):null;eQ.current=e,eU(e,!1)}},[a,en]),(0,U.useEffect)(function(){if(!eg&&eO){var e,t;var n=((e=eF.current)===null||e===void 0?void 0:e.toDate())||null,c=((t=eQ.current)===null||t===void 0?void 0:t.toDate())||null;en?z(n,null):z(n,c)}},[eg,eO,en,z]),(0,U.useEffect)(function(){el(M)},[M]),(0,U.useEffect)(function(){eO&&A(eo==="from"?"Start Date":eo==="to"?"End Date":"")},[eo,eO,A]);var eR=function(){el(!eg)},ew={fromDate:eu,toDate:es,hoverDate:ef,inputFocus:eo,onSelectDate:function(e){p&&(0,R.default)(p).isAfter(e,"date")||y&&(0,R.default)(y).isBefore(e,"date")||(en?(eZ(e,!0),Y&&setTimeout(function(){return el(!1)},50)):eo==="from"||eu&&e.isBefore(eu,"date")?(eZ(e,!0),es&&e.isAfter(es,"date")&&eU(null,!0),ed("to")):(eU(e,!0),ed(null),Y&&setTimeout(function(){return el(!1)},50)))},onHoverDate:function(e){ep(e)},handleChangeDate:function(e,t){p&&(0,R.default)(p).isAfter(e,"date")||y&&(0,R.default)(y).isBefore(e,"date")||(t==="from"||en?(ed("from"),eZ(e,!0),!en&&es&&e.isAfter(es,"date")&&eU(null,!0)):(ed("to"),eU(e,!0)))},handleReset:function(){ep(void 0),eZ(null,!0),en||eU(null,!0),ed("from")},handleClickDateInput:function(e){o||!en&&e==="to"&&!eu||(eg||el(!0),ed(e))}},ek={isSingle:en,startWeekDay:b,minDate:p,maxDate:y,weekDayFormat:B,dateFormat:O,monthFormat:H,highlightToday:Q,singleCalendar:ea,expandDirection:K,locale:$},eN={complsOpen:eg,isMobile:ey,disabled:o,toggleDialog:eR},eW={startDatePlaceholder:d,endDatePlaceholder:I,dateInputSeperator:J,hideDialogHeader:k,hideDialogFooter:W,hideDialogAfterSelectEndDate:Y,tooltip:L,subTextDict:P};return(0,e5.jsx)("div",{className:"react-google-flight-datepicker",children:(0,e5.jsx)("div",{className:(0,w.default)("date-picker",l,{disabled:o}),ref:eH,children:(0,e5.jsxs)(et,{dateState:ew,config:ek,uiState:eN,display:eW,locale:$,children:[(0,e5.jsx)(eh,{}),(0,e5.jsx)(eB,{children:(0,e5.jsx)(e2,{})})]})})})},e3=e9;var e6=require("react/jsx-runtime"),e8=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,a=c===void 0?function(){}:c,i=e.startDatePlaceholder,g=i===void 0?"Start date":i,l=e.endDatePlaceholder,r=l===void 0?"End date":l,o=b(e,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return(0,e6.jsx)(e3,s(C({},o),{isSingle:!1,startDate:o.startDate,endDate:o.endDate,startDatePlaceholder:g,endDatePlaceholder:r,onChange:n,onCloseCalendar:a}))};var te=require("react/jsx-runtime"),tt=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,a=c===void 0?function(){}:c,i=e.startDatePlaceholder,g=i===void 0?"Date":i,l=b(e,["onChange","onCloseCalendar","startDatePlaceholder"]);return(0,te.jsx)(e3,s(C({},l),{endDate:null,isSingle:!0,startDate:l.startDate,startDatePlaceholder:g,onChange:function(e){return n(e)},onCloseCalendar:function(e){return a(e)}}))};0&&(module.exports={RangeDatePicker:RangeDatePicker,SingleDatePicker:SingleDatePicker});//# sourceMappingURL=index.js.map