@telsho/react-google-flight-datepicker 1.1.2 → 1.1.3
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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -2
package/dist/index.mjs
CHANGED
|
@@ -1 +1,2 @@
|
|
|
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,g,i,a){try{var o=e[i](a);var l=o.value}catch(e){n(e);return}if(o.done){t(l)}else{Promise.resolve(l).then(c,g)}}function g(e){return function(){var t=this,n=arguments;return new Promise(function(g,i){var a=e.apply(t,n);function o(e){c(a,g,i,o,l,"next",e)}function l(e){c(a,g,i,o,l,"throw",e)}o(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 a(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function o(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var c=[];var g=true;var i=false;var a,o;try{for(n=n.call(e);!(g=(a=n.next()).done);g=true){c.push(a.value);if(t&&c.length===t)break}}catch(e){i=true;o=e}finally{try{if(!g&&n["return"]!=null)n["return"]()}finally{if(i)throw o}}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){i(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 A(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 C(e,t){if(e==null)return{};var n=s(e,t);var c,g;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(g=0;g<i.length;g++){c=i[g];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 g,i;for(i=0;i<c.length;i++){g=c[i];if(t.indexOf(g)>=0)continue;n[g]=e[g]}return n}function b(e,n){return t(e)||l(e,n)||p(e,n)||r()}function x(e){return n(e)||o(e)||p(e)||d()}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 m(e,t){var n,c,g,i,a={label:0,sent:function(){if(g[0]&1)throw g[1];return g[1]},trys:[],ops:[]};return i={next:o(0),"throw":o(1),"return":o(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function o(e){return function(t){return l([e,t])}}function l(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,c&&(g=i[0]&2?c["return"]:i[0]?c["throw"]||((g=c["return"])&&g.call(c),0):c.next)&&!(g=g.call(c,i[1])).done)return g;if(c=0,g)i=[i[0]&2,g.value];switch(i[0]){case 0:case 1:g=i;break;case 4:a.label++;return{value:i[1],done:false};case 5:a.label++;c=i[1];i=[0];continue;case 7:i=a.ops.pop();a.trys.pop();continue;default:if(!(g=a.trys,g=g.length>0&&g[g.length-1])&&(i[0]===6||i[0]===2)){a=0;continue}if(i[0]===3&&(!g||i[1]>g[0]&&i[1]<g[3])){a.label=i[1];break}if(i[0]===6&&a.label<g[1]){a.label=g[1];g=i;break}if(g&&a.label<g[2]){a.label=g[2];a.ops.push(i);break}if(g[2])a.ops.pop();a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e];c=0}finally{n=g=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}}import{useState as f,useRef as h,useEffect as y,useLayoutEffect as G,useCallback as X}from"react";import B from"dayjs";import H from"classnames";import v from"dayjs/plugin/localeData";import Q from"dayjs";function F(e,t,n){var c=[],g=new Date(e,t,1),i=new Date(e,t+1,0).getDate(),a=1,o=g.getDay()===0?1:7-g.getDay()+1;for(n==="sunday"&&(o=7-g.getDay());a<=i;)c.push({start:a,days:o-a+1}),a=o+1,o+=7,o=a===1&&o===8?1:o,o>i&&(o=i);return{totalWeek:c,totalDay:i}}function O(e,t){var n=x(Array(7)).map(function(e,n){return Q().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd")});if(e==="sunday"){var c=n.pop();c&&n.unshift(c)}return n}function Z(e,t){var n;return function(){var c=this;for(var g=arguments.length,i=new Array(g),a=0;a<g;a++){i[a]=arguments[a]}var o=function(){n=null,e.apply(c,i)};n&&clearTimeout(n),n=setTimeout(o,t)}}import{createContext as D,useContext as U,useState as J,useEffect as R}from"react";import w from"dayjs";import{jsx as k}from"react/jsx-runtime";var V=D(null),N=D(null),W=D(null),Y=D(null),j=D(null),T=function(){var e=U(V);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},z=function(){var e=U(N);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},L=function(){var e=U(W);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},M=function(){var e=U(Y);if(!e)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return e};var E=/*#__PURE__*/function(){var e=g(function(e){var t;return m(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,g=e.uiState,i=e.display,a=e.locale,o=a===void 0?"en":a;var l=b(J({currentLocale:"en",isLocaleReady:o==="en"}),2),r=l[0],d=l[1];return R(function(){o!=="en"?(d(function(e){return A(I({},e),{isLocaleReady:!1})}),E(o).then(function(e){e?(w.locale(o),d({currentLocale:o,isLocaleReady:!0})):(w.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))})):(w.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))},[o]),r.isLocaleReady?k(j.Provider,{value:r,children:k(V.Provider,{value:n,children:k(N.Provider,{value:c,children:k(W.Provider,{value:g,children:k(Y.Provider,{value:i,children:t})})})})}):null};import"react";import{jsx as P}from"react/jsx-runtime";var K=function(e){return P("svg",A(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",A(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"})}))},eg=ec;import"react";import{jsx as ei}from"react/jsx-runtime";var ea=function(e){return ei("svg",A(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:ei("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})}))},eo=ea;import{jsx as el,jsxs as er}from"react/jsx-runtime";var ed=function(e){var t=e.type,n=e.showIcon,c=n===void 0?!1:n,g=e.tabIndex,i=g===void 0?0:g,a=e.nonFocusable,o=a===void 0?!1:a;var l=b($(null),2),r=l[0],d=l[1],I=b($(!1),2),u=I[0],A=I[1],C=b($(!1),2),s=C[0],x=C[1],p=T(),m=p.fromDate,f=p.toDate,h=p.inputFocus,y=p.handleClickDateInput,G=p.handleChangeDate,X=z(),B=X.isSingle,H=X.minDate,v=X.maxDate,Q=X.dateFormat,F=M(),O=F.startDatePlaceholder,Z=F.endDatePlaceholder,D=t==="from"?m:f,U=t==="from"?O:Z;_(function(){if(D){var e=D.clone().locale(et.locale()).format("ddd, DD MMM");Q&&(e=D.format(Q)),d(e);var n=H?et(H):null,c=v?et(v):null;(n===null||n===void 0?void 0:n.add(1,"day").isAfter(D,"date"))||t==="to"&&m&&D.isBefore(m.add(1,"day"),"date")?A(!0):A(!1),(c===null||c===void 0?void 0:c.subtract(1,"day").isBefore(D,"date"))?x(!0):x(!1)}else d(null)},[D,m,H,v,Q,t]);var J=function(e){e.stopPropagation(),D&&G(D.subtract(1,"day"),t)},R=function(e){e.stopPropagation(),D&&G(D.add(1,"day"),t)},w=function(){y(t)};return er("div",{className:ee("date",{"is-focus":h===t&&!B,"is-single":B}),role:"button",tabIndex:o?-1:i,onClick:w,id:"".concat(t,"-date-input-button"),children:[c&&el(q,{className:"icon-calendar",viewBox:"0 0 24 24"}),el("div",{className:"selected-date",children:r!==null&&r!==void 0?r:el("div",{className:"date-placeholder",children:U})}),r&&er("div",{className:"change-date-group",children:[el("button",{type:"button",className:"btn-outline change-date-button",onClick:J,tabIndex:o?-1:0,disabled:u,children:el(eg,{viewBox:"0 0 24 24",className:"icon-arrow"})}),el("button",{type:"button",className:"btn-outline change-date-button",onClick:R,tabIndex:o?-1:0,disabled:s,children:el(eo,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};import{jsx as eI,jsxs as eu}from"react/jsx-runtime";var eA=function(e){var t=e.showIcon,n=t===void 0?!1:t,c=e.nonFocusable,g=c===void 0?!1:c;var i=z(),a=i.isSingle,o=M(),l=o.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:g?-1:0,showIcon:!0,nonFocusable:g}),!a&&l&&eI("div",{className:"date-input-separator",children:l}),!a&&eI(ed,{type:"to",tabIndex:g?-1:0,showIcon:!1,nonFocusable:g})]})]})};import{createPortal as eC}from"react-dom";import{useEffect as es,useState as eb}from"react";var ex=function(){var e=b(eb(!1),2),t=e[0],n=e[1];return es(function(){n(!0)},[]),t};import{jsx as ep}from"react/jsx-runtime";var em=function(e){var t=e.children,n=t===void 0?null:t,c=e.isMobile,g=c===void 0?!1:c;return ex()?g?eC(ep("div",{children:n}),document.body):n:null},ef=em;import{useEffect as eh,useState as ey,useRef as eG}from"react";import eX from"classnames";import"react";import{jsx as eB}from"react/jsx-runtime";var eH=function(e){return eB("svg",A(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492"},e),{children:eB("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"})}))},ev=eH;import eQ,{useEffect as eF,useState as eO,useRef as eZ}from"react";import eD from"dayjs";import{VariableSizeList as eU}from"react-window";import eJ from"react-virtualized-auto-sizer";import{forwardRef as eR}from"react";import ew from"classnames";import ek from"dayjs";import{forwardRef as eV}from"react";import eN from"classnames";import eW from"dayjs";import{forwardRef as eY,useCallback as ej,useEffect as eT,useRef as ez}from"react";import eL from"classnames";import{jsx as eM,jsxs as eE}from"react/jsx-runtime";var eS=eY(function(e,t){var n=e.dateIndex,c=e.dateValue,g=e.isEndDay,i=e.selected,a=e.hovered,o=e.disabled,l=e.totalDay,r=e.highlight,d=e.handleHoverDay,I=e.subText;var u=ez(null),A=T(),C=A.onSelectDate,s=A.onHoverDate,b=function(e){e.stopPropagation(),e.preventDefault(),!o&&C(c)},x=function(){o||(s(c),d(c))},p=ej(function(){if(!t||typeof t=="function")return;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]),m=ej(function(){if(!t||typeof t=="function")return;var e=t.current;e&&(e.style.visibility="hidden")},[t]);return eT(function(){var e=u.current;return e&&(e.addEventListener("mouseover",p),e.addEventListener("mouseleave",m)),function(){e&&(e.removeEventListener("mouseover",p),e.removeEventListener("mouseleave",m))}},[p,m]),eE("div",{className:eL("day",{selected:i,hovered:a,disabled:o,highlight:r,end:g,"has-subtext":!!I}),onClick:b,onMouseEnter:x,role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":c.valueOf(),ref:u,children:[a&&!(g&&n===l)&&!(n===1&&i&&!g)&&eM("div",{className:eL("background-day",{"first-day":n===1,"last-day":n===l})}),eE("div",{className:"day-content",children:[eM("div",{className:"text-day",children:n}),I&&eM("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:i&&!a?"#fff":"#666"},children:I})]})]})});eS.displayName="Day";import{jsx as eP}from"react/jsx-runtime";var eK=eV(function(e,t){var n=e.isFirst,c=e.week,g=e.month,i=e.year,a=e.totalDay,o=e.weekIndex,l=e.handleHoverDay;var r=T(),d=r.fromDate,I=r.toDate,u=r.hoverDate,A=z(),C=A.minDate,s=A.maxDate,b=A.isSingle,x=A.highlightToday,p=M(),m=p.subTextDict,f=function(){return Array.from({length:c.days},function(e,n){var o=n+c.start,r=eW("".concat(i,"-").concat(g+1,"-").concat(o)),A=C&&r.isBefore(C,"date")||s&&r.isAfter(s,"date"),p=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 y;var G=I&&r.isSame(I,"date")||!I&&u&&r.isSame(u,"date"),X=m?(y=m[r.format("YYYY-MM-DD")])!==null&&y!==void 0?y:"\xa0":"";return eP(eS,{dateIndex:o,dateValue:r,selected:p,hovered:f,highlight:h,disabled:A,isEndDay:G,totalDay:a,handleHoverDay:l,subText:X,ref:t},n)})};return eP("div",{className:eN("week",{first:n}),children:f()})});eK.displayName="Week";import{jsx as eq,jsxs as e_}from"react/jsx-runtime";var e$=eR(function(e,t){var n=e.month,c=e.year,g=e.hidden,i=g===void 0?!1:g,a=e.isAnimating,o=a===void 0?!1:a,l=e.handleHoverDay,r=e.className;var d=z(),I=d.startWeekDay,u=d.weekDayFormat,A=d.monthFormat,C=d.singleCalendar,s=function(){var e=F(c,n,I),g=e.totalWeek,i=e.totalDay;return g.map(function(e){var a="".concat(c,"-").concat(n,"-").concat(e.start);return eq(eK,{week:e,month:n,year:c,isFirst:e===g[0],totalDay:i,weekIndex:g.indexOf(e),handleHoverDay:l,ref:t},a)})},b=function(){return O(I,u).map(function(e){return eq("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))})},x=function(){var e=ek("".concat(c,"-").concat(n+1,"-1"));return A?e.format(A):e.format("MMMM - YYYY")};return e_("div",{className:ew("month-calendar",{isAnimating:o,hidden:i,single:C},r),"data-month-index":n+1,children:[eq("div",{className:"month-name",children:x()}),eq("div",{className:"weekdays",children:b()}),eq("div",{className:"week-container",children:s()})]})});e$.displayName="MonthCalendar";import{jsx as e0,jsxs as e1}from"react/jsx-runtime";var e2=function(){var e=b(eO(2400),2),t=e[0],n=e[1],c=eZ(null),g=T(),i=g.fromDate,a=z(),o=a.startWeekDay,l=a.minDate,r=a.maxDate,d=a.weekDayFormat,I=L(),u=I.complsOpen,A=M(),C=A.tooltip,s=A.subTextDict,x=l?eD(l).year():1900,p=l?eD(l).month():0;eF(function(){if(r){var e=l?eD(l):eD("1900-01-01");n(eD(r).diff(e,"month")+1)}},[r,l]),eF(function(){if(c.current&&u){var e=i?eD(i):eD(),t=e.diff(eD("1900-01-01"),"month");l&&(t=e.diff(eD(l),"month")),c.current.scrollToItem(t+1,"smart")}},[u,i,l]);var m=function(e){var t=e+p,n=x+Math.floor(t/12),c=t%12;return{year:n,month:c}},f=eQ.memo(function(e){var t=e.index,n=e.style;var c=m(t),g=c.year,i=c.month;return e0("div",{style:n,children:e0(e$,{month:i,year:g,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})});f.displayName="CalendarRow";var h=function(e){var t=m(e),n=t.year,c=t.month,g=F(n,c,o||"monday"),i=g.totalWeek;return i.length*48+34},y=function(){return e0(eJ,{children:function(e){var n=e.height,g=e.width;return e0(eU,{ref:c,width:g,height:n-36,itemCount:t,itemSize:h,children:f})}})};return e0("div",{className:"calendar-wrapper",children:e1("div",{className:"calendar-content",children:[e0("div",{className:"weekdays mobile",children:O(o||"monday",d).map(function(e,t){return e0("div",{className:"weekday",children:e},t)})}),y()]})})};import{useEffect as e4,useState as e7,useRef as e5,useCallback as e9,useMemo as e6}from"react";import e3 from"classnames";import e8 from"dayjs";import{jsx as te,jsxs as tt}from"react/jsx-runtime";var tn=function(){var e=b(e7(!1),2),t=e[0],n=e[1];return e4(function(){n(!0)},[]),t},tc=function(e){var t=e.dateChanged,n=t===void 0?null:t;var c=tn(),g=e5(null),i=e5(null),a=b(e7(0),2),o=a[0],l=a[1],r=b(e7([]),2),d=r[0],I=r[1],u=b(e7(null),2),A=u[0],C=u[1],s=b(e7(!1),2),x=s[0],p=s[1],m=b(e7(!1),2),f=m[0],h=m[1],y=b(e7(0),2),G=y[0],X=y[1],B=b(e7(null),2),H=B[0],v=B[1],Q=b(e7(!1),2),F=Q[0],O=Q[1],Z=T(),D=Z.fromDate,U=z(),J=U.minDate,R=U.maxDate,w=U.singleCalendar,k=L(),V=k.complsOpen,N=M(),W=N.tooltip,Y=e9(function(e){return[e.subtract(1,"month"),e,e.add(1,"month"),e.add(2,"month")]},[]);e4(function(){if(!c||!g.current)return;var e=function(){var e=g.current.offsetWidth,t=window.getComputedStyle(g.current),n=w?e+parseInt(t.marginLeft)-8:e/2;X(n)};e();var t=new ResizeObserver(e);return t.observe(g.current),function(){return t.disconnect()}},[c,w]),e4(function(){C(D!==null&&D!==void 0?D:e8())},[V,D]),e4(function(){if(!A)return;var e=J?e8(J):null,t=R?e8(R):null;p(!!(e&&A.isBefore(e.add(1,"month"),"month"))),h(!!(t&&A.isAfter(t.subtract(2,"month"),"month"))),I(Y(A))},[A,J,R,Y]),e4(function(){if(!n||!A)return;var e=n.diff(A,"month");e<-1&&P(),e>1&&S()},[n,A]);var j=e9(function(e){return function(){if(e==="next"&&f||e==="prev"&&x||F)return;O(!0),l(e==="next"?-G:G);var t=setTimeout(function(){C(function(t){var n=e==="next"?t.add(1,"month"):t.subtract(1,"month");return I(Y(n)),n}),l(0),O(!1)},200);return function(){return clearTimeout(t)}}},[f,x,F,G,Y]),E=b(e6(function(){return[j("next"),j("prev")]},[j]),2),S=E[0],P=E[1],K=e9(function(){var e;if(!c||!g.current)return;(e=g.current.querySelector(".day.selected, .month-calendar:not(.hidden) .day:not(.disabled)"))===null||e===void 0?void 0:e.focus()},[c]),q=e9(function(e){var t;var n=e.target,c=n.getAttribute("data-day-index");if(!c)return;e.preventDefault();var g;var i=n.closest(".calendar-wrapper"),a=parseInt((g=n.dataset.dateValue)!==null&&g!==void 0?g:"0"),o=e8(a),l=o.endOf("month").date(),r=parseInt(c);switch(e.key){case"ArrowLeft":r--;break;case"ArrowUp":r-=7;break;case"ArrowRight":r++;break;case"ArrowDown":r+=7;break;case" ":n.click();return;default:return}if(r>0&&r<=l)i===null||i===void 0?void 0:(t=i.querySelector('[data-day-index="'.concat(r,'"]')))===null||t===void 0?void 0:t.focus();else{var d=o.add(r-parseInt(c),"day"),I=d.diff(A,"month");I>1&&!f&&S(),I<0&&!x&&P(),setTimeout(function(){var e;i===null||i===void 0?void 0:(e=i.querySelector('[data-month-index="'.concat(d.month()+1,'"] [data-day-index="').concat(d.date(),'"]')))===null||e===void 0?void 0:e.focus()},200)}},[A,f,x,S,P]),_=e6(function(){if(!W||!c)return null;var e;var t=typeof W=="function"?W((e=H===null||H===void 0?void 0:H.toDate())!==null&&e!==void 0?e:new Date):W;return te("div",{id:"day-tooltip",className:"tooltip-text",ref:i,children:t})},[W,H,c]),$=e6(function(){return d.map(function(e,t){var n=t===1||t===2,c=F&&o<0&&t===3,g=F&&o>0&&t===0;return te(e$,{hidden:!n&&!c&&!g,isAnimating:c||g,month:e.month(),year:e.year(),handleHoverDay:v,ref:i,className:e3({"slide-next":c,"slide-prev":g})},"".concat(e.year(),"-").concat(e.month()))})},[d,F,o]);return tt("div",{className:"relative",children:[_,tt("div",{className:e3("calendar-wrapper",{single:w}),ref:g,onKeyDown:q,role:"grid","aria-label":"Calendar",children:[te("div",{className:e3("calendar-content",{isAnimating:F}),style:{transform:"translateX(".concat(o,"px)")},children:$}),tt("div",{className:"calendar-flippers",children:[te("button",{className:e3("flipper-button",{disabled:x}),onClick:P,onKeyDown:function(e){return e.key===" "&&P()},disabled:x,"aria-label":"Previous month",children:te(eg,{viewBox:"0 0 24 24"})}),te("button",{className:e3("flipper-button",{disabled:f}),onClick:S,onKeyDown:function(e){return e.key===" "&&S()},disabled:f,"aria-label":"Next month",onBlur:K,children:te(eo,{viewBox:"0 0 24 24"})})]})]})]})};import{jsx as tg,jsxs as ti}from"react/jsx-runtime";var ta=function(e){var t=e.containerRef;var n=b(ey(!1),2),c=n[0],g=n[1],i=b(ey(null),2),a=i[0],o=i[1],l=eG(null),r=t||l,d=T(),I=d.handleChangeDate,u=d.handleReset,A=z(),C=A.singleCalendar,s=A.expandDirection,x=L(),p=x.complsOpen,m=x.isMobile,f=x.toggleDialog,h=M(),y=h.hideDialogHeader,G=h.hideDialogFooter,X=function(e,t){o(e),I(e,t)};return eh(function(){p&&!c&&g(!0),p&&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)},[p,r,c]),ti("div",{className:eX("dialog-date-picker",{open:p,hide:!p&&c,single:C&&!m,"expand-left":s==="left","expand-right":s==="right"}),ref:r,children:[!y&&ti("div",{className:"dialog-header",children:[tg("button",{type:"button",className:"btn-outline back-button",onClick:f,children:tg(ev,{viewBox:"0 0 492 492"})}),tg(eA,{showIcon:!0,nonFocusable:!p}),tg("button",{type:"button",className:"btn-outline reset-button",onClick:u,children:"Reset"})]}),tg("div",{className:"dialog-content",children:m?tg(e2,{}):tg(tc,{dateChanged:a})}),!G&&ti("div",{className:"dialog-footer",children:[tg("button",{type:"button",className:"submit-button",onClick:f,tabIndex:0,children:"Done"}),tg("button",{type:"button",className:"btn-outline reset-button mobile",onClick:u,children:"Reset"})]})]})};var to='.react-google-flight-datepicker {\n font-size: 1rem;\n display: contents;\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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxFbGlhc1xcRG9jdW1lbnRzXFxyZWFjdC1nb29nbGUtZmxpZ2h0LWRhdGVwaWNrZXJcXHNyY1xcbGliXFxjb21wb25lbnRzXFxEYXRlUGlja2VyIiwic291cmNlcyI6WyJzdHlsZXMuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0VBQ0E7QUE2bEJBOztBQTNsQkE7RUFDRTs7QUFHRjtFQUNFOztBQUdGO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7RUFDQTs7QUFJSjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBR0E7RUFDRTtFQUNBOztBQUlKO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUVBO0VBQ0U7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUdGO0VBQ0U7RUFDQTtFQUN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ICAgIHotaW5kZXg6IDk5OTtcclxuICAgIHdpZHRoOiAxMjBweDtcclxuICAgIG1heC13aWR0aDogMTIwcHg7XHJcbiAgICB3b3JkLWJyZWFrOiBicmVhay13b3JkO1xyXG4gICAgdmlzaWJpbGl0eTogaGlkZGVuO1xyXG4gIH1cclxuXHJcbiAgLnRvb2x0aXAtdGV4dDo6YmVmb3JlIHtcclxuICAgIHotaW5kZXg6IDEwMDE7XHJcbiAgICBib3JkZXI6IDZweCBzb2xpZCB0cmFuc3BhcmVudDtcclxuICAgIGJhY2tncm91bmQ6IHRyYW5zcGFyZW50O1xyXG4gICAgY29udGVudDogXCJcIjtcclxuICAgIG1hcmdpbi1sZWZ0OiAtNnB4O1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTEycHg7XHJcbiAgICBib3JkZXItdG9wLWNvbG9yOiAjNDI4NWY0O1xyXG4gICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgYm90dG9tOiAwO1xyXG4gICAgbGVmdDogNTAlO1xyXG4gIH1cclxuXHJcbiAgLmNhbGVuZGFyLWNvbnRlbnQge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIHBhZGRpbmc6IDAgMnB4O1xyXG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xyXG4gICAgb3ZlcmZsb3c6IGhpZGRlbjtcclxuICBcclxuICAgICYuaXNBbmltYXRpbmcge1xyXG4gICAgICB0cmFuc2l0aW9uOiB0cmFuc2Zvcm0gMC4ycyBlYXNlO1xyXG4gICAgICBvdmVyZmxvdzogaW5pdGlhbDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC5tb250aC1jYWxlbmRhciB7XHJcbiAgICB3aWR0aDogMzA4cHg7XHJcbiAgICBjb2xvcjogIzNjNDA0MztcclxuICAgIG1hcmdpbi1yaWdodDogNDNweDtcclxuICBcclxuICAgICYuaGlkZGVuIHtcclxuICAgICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgICB2aXNpYmlsaXR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GxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDtcclxuXHJcbiAgICAmLmZpcnN0IHtcclxuICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC5kYXkge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIGhlaWdodDogNDRweDtcclxuICAgIG1hcmdpbjogMnB4IDA7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICB3aWR0aDogNDRweDtcclxuICAgIHZlcnRpY2FsLWFsaWduOiB0b3A7XHJcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XHJcblxyXG4gICAgLmJhY2tncm91bmQtZGF5IHtcclxuICAgICAgYm90dG9tOiAwO1xyXG4gICAgICBvcGFjaXR5OiAwO1xyXG4gICAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcclxuICAgICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgICB0b3A6IDA7XHJcbiAgICAgIHdpZHRoOiAxMHB4O1xyXG4gICAgICB6LWluZGV4OiAxO1xyXG5cclxuICAgICAgJi5maXJzdC1kYXkge1xyXG4gICAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwgI2ZmZiwgI2RhZWRmZCk7XHJcbiAgICAgICAgbGVmdDogLTEwcHg7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgICYubGFzdC1kYXkge1xyXG4gICAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCh0byBsZWZ0LCAjZmZmLCAjZGFlZGZkKTtcclxuICAgICAgICByaWdodDogLTEwcHg7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAmOjphZnRlciB7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7XHJcbiAgICAgIGJvdHRvbTogMDtcclxuICAgICAgY29udGVudDogJyc7XHJcbiAgICAgIGhlaWdodDogNDRweDtcclxuICAgICAgbGVmdDogMDtcclxuICAgICAgbWFyZ2luOiBhdXRvO1xyXG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgIHJpZ2h0OiAwO1xyXG4gICAgICB0b3A6IDA7XHJcbiAgICAgIHdpZHRoOiA0NHB4O1xyXG4gICAgICB6LWluZGV4OiAyO1xyXG4gICAgfVxyXG5cclxuICAgICY6aG92ZXI6OmFmdGVyIHtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgICAgYm9yZGVyOiAycHggc29saWQgIzQyODVmNDtcclxuICAgICAgYm90dG9tOiAtMnB4O1xyXG4gICAgICBsZWZ0OiAtMnB4O1xyXG4gICAgICByaWdodDogLTJweDtcclxuICAgICAgdG9wOiAtMnB4O1xyXG4gICAgfVxyXG5cclxuICAgICYuc2VsZWN0ZWQge1xyXG4gICAgICBjb2xvcjogd2hpdGU7XHJcblxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICBjb2xvcjogIzAwMDtcclxuICAgICAgfVxyXG5cclxuICAgICAgJjo6YWZ0ZXIge1xyXG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM0Mjg1ZjQ7XHJcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMTAwJTtcclxuICAgICAgfVxyXG5cclxuICAgICAgJjpob3Zlcjo6YWZ0ZXIge1xyXG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAmLmhpZ2hsaWdodDo6YmVmb3JlIHtcclxuICAgICAgY29udGVudDogJyc7XHJcbiAgICAgIHdpZHRoOiA0NHB4O1xyXG4gICAgICBoZWlna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1xyXG4gICAgICAgIHRyYW5zaXRpb246IGFsbCAwLjJzIGVhc2Utb3V0O1xyXG4gICAgICAgIHRyYW5zZm9ybTogdHJhbnNsYXRlKDAsIC0xMDAlKTtcclxuICAgICAgICBhbmltYXRpb246IG5vbmU7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgICYuaGlkZSB7XHJcbiAgICAgICAgdHJhbnNpdGlvbjogYWxsIDAuMnMgZWFzZS1pbjtcclxuICAgICAgICB0cmFuc2Zvcm06IHRyYW5zbGF0ZSgwLCAwKTtcclxuICAgICAgICBhbmltYXRpb246IG5vbmU7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWhlYWRlciB7XHJcbiAgICAgIHBhZGRpbmc6IDhweDtcclxuICAgICAgYm94LXNoYWRvdzogMCAwIDJweCByZ2JhKDAsIDAsIDAsIDAuMTIpLCAwIDJweCAycHggcmdiYSgwLCAwLCAwLCAwLjI0KTtcclxuICAgICAgei1pbmRleDogNTA7XHJcblxyXG4gICAgICAuZGF0ZS1waWNrZXItaW5wdXQge1xyXG4gICAgICAgIGhlaWdodDogNDBweDtcclxuICAgICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5kaWFsb2ctY29udGVudCB7XHJcbiAgICAgIGJvcmRlcjogbm9uZTtcclxuICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgfVxyXG5cclxuICAgIC5jYWxlbmRhci13cmFwcGVyIHtcclxuICAgICAgbWFyZ2luOiAwO1xyXG4gICAgICBoZWlnaHQ6IDEwMCU7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICB9XHJcblxyXG4gICAgLmNhbGVuZGFyLWNvbnRlbnQge1xyXG4gICAgICBwYWRkaW5nOiAwO1xyXG4gICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1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HggcmdiYSgwLCAwLCAwLCAwLjI0KTtcclxuICAgICAgcGFkZGluZzogMTVweCA4cHg7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== */';document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(to));import{jsx as tl,jsxs as tr}from"react/jsx-runtime";B.extend(v);var td=function(e){var t=e.startDate,n=t===void 0?null:t,c=e.endDate,g=c===void 0?null:c,i=e.className,o=i===void 0?"":i,l=e.disabled,r=l===void 0?!1:l,d=e.startDatePlaceholder,I=e.endDatePlaceholder,u=e.onChange,A=e.onFocus,C=A===void 0?function(){}:A,s=e.startWeekDay,x=s===void 0?"monday":s,p=e.minDate,m=p===void 0?null:p,v=e.maxDate,Q=v===void 0?null:v,F=e.weekDayFormat,O=F===void 0?"dd":F,D=e.dateFormat,U=D===void 0?"":D,J=e.monthFormat,R=J===void 0?"":J,w=e.highlightToday,k=w===void 0?!1:w,V=e.dateInputSeperator,N=V===void 0?null:V,W=e.hideDialogHeader,Y=W===void 0?!1:W,j=e.hideDialogFooter,T=j===void 0?!1:j,z=e.hideDialogAfterSelectEndDate,L=z===void 0?!1:z,M=e.isOpen,E=M===void 0?!1:M,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,eg=e.isSingle,ei=eg===void 0?!1:eg,ea=e.singleCalendar,eo=ea===void 0?!1:ea;var el=b(f(E),2),er=el[0],ed=el[1],eI=b(f(ei?"from":null),2),eu=eI[0],eC=eI[1],es=b(f(n?B(n):void 0),2),eb=es[0],ex=es[1],ep=b(f(g?B(g):void 0),2),em=ep[0],eh=ep[1],ey=b(f(),2),eG=ey[0],eX=ey[1],eB=b(f(!1),2),eH=eB[0],ev=eB[1],eQ=b(f(!1),2),eF=eQ[0],eO=eQ[1],eZ=function(){var e=b(f(!1),2),t=e[0],n=e[1];return y(function(){n(!0)},[]),t}(),eD=h(null),eU=h(null),eJ=h(null),eR=X(function(){eZ&&ev(window.innerWidth<768)},[eZ]),ew=Z(function(){var e=eU.current?eU.current.toDate():null,t=!ei&&eJ.current?eJ.current.toDate():null;ei?u(e,null):u(e,t)},20),ek=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ex(e||void 0),eU.current=e||null,t&&ew()},eV=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ei||(eh(e||void 0),eJ.current=e||null,t&&ew())};G(function(){if(eZ)return eR(),window.addEventListener("resize",eR),function(){return window.removeEventListener("resize",eR)}},[eZ,eR]),y(function(){eO(!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?B(n):null;eU.current=e,ek(e,!1)},[n]),y(function(){if(!ei){var e=g?B(g):null;eJ.current=e,eV(e,!1)}},[g,ei]),y(function(){if(!er&&eF){var e,t;var n=((e=eU.current)===null||e===void 0?void 0:e.toDate())||null,c=((t=eJ.current)===null||t===void 0?void 0:t.toDate())||null;ei?P(n,null):P(n,c)}},[er,eF,ei,P]),y(function(){ed(E)},[E]),y(function(){eF&&C(eu==="from"?"Start Date":eu==="to"?"End Date":"")},[eu,eF,C]);var eN=function(){ed(!er)},eW=function(e){r||!ei&&e==="to"&&!eb||(er||ed(!0),eC(e))},eY=X(function(e){var t=m?B(m):null,n=Q?B(Q):null;t&&t.isAfter(e,"date")||n&&n.isBefore(e,"date")||(ei?(ek(e,!0),L&&setTimeout(function(){return ed(!1)},50)):eu==="from"||eb&&e.isBefore(eb,"date")?(ek(e,!0),em&&e.isAfter(em,"date")&&eV(null,!0),eC("to")):(eV(e,!0),eC(null),L&&setTimeout(function(){return ed(!1)},50)))},[m,Q,ei,L,eu,eb,em]),ej=function(e){eX(e)},eT=function(){eX(void 0),ek(null,!0),ei||eV(null,!0),eC("from")},ez=X(function(e,t){var n=m?B(m):null,c=Q?B(Q):null;n&&n.isAfter(e,"date")||c&&c.isBefore(e,"date")||(t==="from"||ei?(eC("from"),ek(e,!0),!ei&&em&&e.isAfter(em,"date")&&eV(null,!0)):(eC("to"),eV(e,!0)))},[m,Q,ei,em,eu]),eL={fromDate:eb,toDate:em,hoverDate:eG,inputFocus:eu,onSelectDate:eY,onHoverDate:ej,handleChangeDate:ez,handleReset:eT,handleClickDateInput:eW},eM={isSingle:ei,startWeekDay:x,minDate:m?B(m).toDate():null,maxDate:Q?B(Q).toDate():null,weekDayFormat:O,dateFormat:U,monthFormat:R,highlightToday:k,singleCalendar:eo,expandDirection:et,locale:ec},eE={complsOpen:er,isMobile:eH,disabled:r,toggleDialog:eN},eS={startDatePlaceholder:d,endDatePlaceholder:I,dateInputSeperator:N,hideDialogHeader:Y,hideDialogFooter:T,hideDialogAfterSelectEndDate:L,tooltip:q,subTextDict:$};return tl("div",{className:"react-google-flight-datepicker",children:tl("div",{className:H("date-picker",o,{disabled:r}),ref:eD,children:tr(S,{dateState:eL,config:eM,uiState:eE,display:eS,locale:ec,children:[tl(eA,{}),tl(ef,{children:tl(ta,{})})]})})})},tI=td;import{useState as tu,useEffect as tA}from"react";import{Fragment as tC,jsx as ts}from"react/jsx-runtime";var tb=function(e){var t=e.children;var n=b(tu(!1),2),c=n[0],g=n[1];return tA(function(){g(!0)},[]),c?ts(tC,{children:t}):null};import{jsx as tx}from"react/jsx-runtime";var tp=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,g=c===void 0?function(){}:c,i=e.startDatePlaceholder,a=i===void 0?"Start date":i,o=e.endDatePlaceholder,l=o===void 0?"End date":o,r=C(e,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return tx(tb,{children:tx(tI,A(I({},r),{isSingle:!1,startDate:r.startDate,endDate:r.endDate,startDatePlaceholder:a,endDatePlaceholder:l,onChange:n,onCloseCalendar:g}))})};import{jsx as tm}from"react/jsx-runtime";var tf=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,g=c===void 0?function(){}:c,i=e.startDatePlaceholder,a=i===void 0?"Date":i,o=C(e,["onChange","onCloseCalendar","startDatePlaceholder"]);return tm(tb,{children:tm(tI,A(I({},o),{endDate:null,isSingle:!0,startDate:o.startDate,startDatePlaceholder:a,onChange:function(e){return n(e)},onCloseCalendar:function(e){return g(e)}}))})};export{tp as RangeDatePicker,tf as SingleDatePicker};//# sourceMappingURL=index.mjs.map
|
|
1
|
+
var kt=Object.defineProperty,Jt=Object.defineProperties;var vt=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Pe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable;var Se=(e,t,o)=>t in e?kt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,O=(e,t)=>{for(var o in t||(t={}))Pe.call(t,o)&&Se(e,o,t[o]);if(me)for(var o of me(t))Ke.call(t,o)&&Se(e,o,t[o]);return e},U=(e,t)=>Jt(e,vt(t));var fe=(e,t)=>{var o={};for(var a in e)Pe.call(e,a)&&t.indexOf(a)<0&&(o[a]=e[a]);if(e!=null&&me)for(var a of me(e))t.indexOf(a)<0&&Ke.call(e,a)&&(o[a]=e[a]);return o};import{useState as _,useRef as ze,useEffect as ie,useLayoutEffect as fo,useCallback as Le}from"react";import W from"dayjs";import yo from"classnames";import Go from"dayjs/plugin/localeData";import wt from"dayjs";function ye(e,t,o){let a=[],n=new Date(e,t,1),d=new Date(e,t+1,0).getDate(),A=1,g=n.getDay()===0?1:7-n.getDay()+1;for(o==="sunday"&&(g=7-n.getDay());A<=d;)a.push({start:A,days:g-A+1}),A=g+1,g+=7,g=A===1&&g===8?1:g,g>d&&(g=d);return{totalWeek:a,totalDay:d}}function Ge(e,t){let o=[...Array(7)].map((a,n)=>wt().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd"));if(e==="sunday"){let a=o.pop();a&&o.unshift(a)}return o}function $e(e,t){let o;return function(...n){let l=()=>{o=null,e.apply(this,n)};o&&clearTimeout(o),o=setTimeout(l,t)}}import{createContext as se,useContext as Xe,useState as Nt,useEffect as Wt}from"react";import Je from"dayjs";import{jsx as Ie}from"react/jsx-runtime";var _e=se(null),qe=se(null),et=se(null),tt=se(null),Vt=se(null),v=()=>{let e=Xe(_e);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},k=()=>{let e=Xe(qe);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},ne=()=>{let e=Xe(et);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},w=()=>{let e=Xe(tt);if(!e)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return e};var Tt=async e=>{if(e==="en")return!0;try{return await import(`dayjs/locale/${e}.js`),!0}catch(t){return console.error(`Failed to load locale ${e}:`,t),!1}},ot=({children:e,dateState:t,config:o,uiState:a,display:n,locale:l="en"})=>{let[d,A]=Nt({currentLocale:"en",isLocaleReady:l==="en"});return Wt(()=>{l!=="en"?(A(g=>U(O({},g),{isLocaleReady:!1})),Tt(l).then(g=>{g?(Je.locale(l),A({currentLocale:l,isLocaleReady:!0})):(Je.locale("en"),A({currentLocale:"en",isLocaleReady:!0}))})):(Je.locale("en"),A({currentLocale:"en",isLocaleReady:!0}))},[l]),d.isLocaleReady?Ie(Vt.Provider,{value:d,children:Ie(_e.Provider,{value:t,children:Ie(qe.Provider,{value:o,children:Ie(et.Provider,{value:a,children:Ie(tt.Provider,{value:n,children:e})})})})}):null};import"react";import{jsx as ct}from"react/jsx-runtime";var Yt=e=>ct("svg",U(O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:ct("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"})})),De=Yt;import{useEffect as zt,useState as ve}from"react";import Lt from"classnames";import we from"dayjs";import"react";import{jsx as at}from"react/jsx-runtime";var jt=e=>at("svg",U(O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:at("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})})),he=jt;import"react";import{jsx as gt}from"react/jsx-runtime";var Mt=e=>gt("svg",U(O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:gt("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})})),Be=Mt;import{jsx as ce,jsxs as it}from"react/jsx-runtime";var Ne=({type:e,showIcon:t=!1,tabIndex:o=0,nonFocusable:a=!1})=>{let[n,l]=ve(null),[d,A]=ve(!1),[g,s]=ve(!1),{fromDate:r,toDate:p,inputFocus:G,handleClickDateInput:B,handleChangeDate:x}=v(),{isSingle:D,minDate:y,maxDate:X,dateFormat:c}=k(),{startDatePlaceholder:m,endDatePlaceholder:C}=w(),f=e==="from"?r:p,V=e==="from"?m:C;zt(()=>{if(f){let Z=f.clone().locale(we.locale()).format("ddd, DD MMM");c&&(Z=f.format(c)),l(Z);let Q=y?we(y):null,H=X?we(X):null;Q!=null&&Q.add(1,"day").isAfter(f,"date")||e==="to"&&r&&f.isBefore(r.add(1,"day"),"date")?A(!0):A(!1),H!=null&&H.subtract(1,"day").isBefore(f,"date")?s(!0):s(!1)}else l(null)},[f,r,y,X,c,e]);let N=J=>{J.stopPropagation(),f&&x(f.subtract(1,"day"),e)},S=J=>{J.stopPropagation(),f&&x(f.add(1,"day"),e)},u=()=>{B(e)};return it("div",{className:Lt("date",{"is-focus":G===e&&!D,"is-single":D}),role:"button",tabIndex:a?-1:o,onClick:u,id:`${e}-date-input-button`,children:[t&&ce(De,{className:"icon-calendar",viewBox:"0 0 24 24"}),ce("div",{className:"selected-date",children:n!=null?n:ce("div",{className:"date-placeholder",children:V})}),n&&it("div",{className:"change-date-group",children:[ce("button",{type:"button",className:"btn-outline change-date-button",onClick:N,tabIndex:a?-1:0,disabled:d,children:ce(he,{viewBox:"0 0 24 24",className:"icon-arrow"})}),ce("button",{type:"button",className:"btn-outline change-date-button",onClick:S,tabIndex:a?-1:0,disabled:g,children:ce(Be,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};import{jsx as He,jsxs as lt}from"react/jsx-runtime";var Fe=({showIcon:e=!1,nonFocusable:t=!1})=>{let{isSingle:o}=k(),{dateInputSeperator:a}=w();return lt("div",{className:"date-picker-input",children:[e&&He(De,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),lt("div",{className:"date-picker-date-group",children:[He(Ne,{type:"from",tabIndex:t?-1:0,showIcon:!0,nonFocusable:t}),!o&&a&&He("div",{className:"date-input-separator",children:a}),!o&&He(Ne,{type:"to",tabIndex:t?-1:0,showIcon:!1,nonFocusable:t})]})]})};import{createPortal as Pt}from"react-dom";import{useEffect as Et,useState as St}from"react";var rt=()=>{let[e,t]=St(!1);return Et(()=>{t(!0)},[]),e};import{jsx as $t}from"react/jsx-runtime";var Kt=({children:e=null,isMobile:t=!1})=>rt()?t?Pt($t("div",{children:e}),document.body):e:null,nt=Kt;import{useEffect as po,useState as ft,useRef as xo}from"react";import mo from"classnames";import"react";import{jsx as dt}from"react/jsx-runtime";var _t=e=>dt("svg",U(O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492"},e),{children:dt("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"})})),It=_t;import no,{useEffect as bt,useState as Io,useRef as so}from"react";import z from"dayjs";import{VariableSizeList as Co}from"react-window";import Ao from"react-virtualized-auto-sizer";import{forwardRef as go}from"react";import io from"classnames";import lo from"dayjs";import{forwardRef as oo}from"react";import co from"classnames";import ao from"dayjs";import{forwardRef as qt,useCallback as st,useEffect as eo,useRef as to}from"react";import Ct from"classnames";import{jsx as We,jsxs as At}from"react/jsx-runtime";var Ve=qt(({dateIndex:e,dateValue:t,isEndDay:o,selected:a,hovered:n,disabled:l,totalDay:d,highlight:A,handleHoverDay:g,subText:s},r)=>{let p=to(null),{onSelectDate:G,onHoverDate:B}=v(),x=c=>{c.stopPropagation(),c.preventDefault(),!l&&G(t)},D=()=>{l||(B(t),g(t))},y=st(()=>{if(!r||typeof r=="function")return;let c=r.current;c&&p.current&&(c.style.left=`${p.current.offsetLeft-c.offsetWidth+135}px`,c.style.top=`${p.current.offsetTop-c.offsetHeight-15}px`,c.style.visibility="visible")},[r]),X=st(()=>{if(!r||typeof r=="function")return;let c=r.current;c&&(c.style.visibility="hidden")},[r]);return eo(()=>{let c=p.current;return c&&(c.addEventListener("mouseover",y),c.addEventListener("mouseleave",X)),()=>{c&&(c.removeEventListener("mouseover",y),c.removeEventListener("mouseleave",X))}},[y,X]),At("div",{className:Ct("day",{selected:a,hovered:n,disabled:l,highlight:A,end:o,"has-subtext":!!s}),onClick:x,onMouseEnter:D,role:"button",tabIndex:-1,"data-day-index":e,"data-date-value":t.valueOf(),ref:p,children:[n&&!(o&&e===d)&&!(e===1&&a&&!o)&&We("div",{className:Ct("background-day",{"first-day":e===1,"last-day":e===d})}),At("div",{className:"day-content",children:[We("div",{className:"text-day",children:e}),s&&We("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:a&&!n?"#fff":"#666"},children:s})]})]})});Ve.displayName="Day";import{jsx as ut}from"react/jsx-runtime";var Te=oo(({isFirst:e,week:t,month:o,year:a,totalDay:n,weekIndex:l,handleHoverDay:d},A)=>{let{fromDate:g,toDate:s,hoverDate:r}=v(),{minDate:p,maxDate:G,isSingle:B,highlightToday:x}=k(),{subTextDict:D}=w(),y=()=>Array.from({length:t.days},(X,c)=>{var Z;let m=c+t.start,C=ao(`${a}-${o+1}-${m}`),f=p&&C.isBefore(p,"date")||G&&C.isAfter(G,"date"),V=g&&C.isSame(g,"date")||s&&C.isSame(s,"date"),N=!1,S=x&&C.isSame(new Date,"date");g&&!g.isSame(s,"date")&&!B&&(s&&!g.isAfter(C,"date")&&!s.isBefore(C,"date")&&(N=!0),!s&&!C.isBefore(g,"date")&&!(r&&r.isBefore(C,"date"))&&g.isBefore(r,"date")&&(N=!0));let u=s&&C.isSame(s,"date")||!s&&r&&C.isSame(r,"date"),J=D?(Z=D[C.format("YYYY-MM-DD")])!=null?Z:"\xA0":"";return ut(Ve,{dateIndex:m,dateValue:C,selected:V,hovered:N,highlight:S,disabled:f,isEndDay:u,totalDay:n,handleHoverDay:d,subText:J,ref:A},c)});return ut("div",{className:co("week",{first:e}),children:y()})});Te.displayName="Week";import{jsx as Ce,jsxs as ro}from"react/jsx-runtime";var Ae=go(({month:e,year:t,hidden:o=!1,isAnimating:a=!1,handleHoverDay:n,className:l},d)=>{let{startWeekDay:A,weekDayFormat:g,monthFormat:s,singleCalendar:r}=k(),p=()=>{let{totalWeek:x,totalDay:D}=ye(t,e,A);return x.map(y=>{let X=`${t}-${e}-${y.start}`;return Ce(Te,{week:y,month:e,year:t,isFirst:y===x[0],totalDay:D,weekIndex:x.indexOf(y),handleHoverDay:n,ref:d},X)})},G=()=>Ge(A,g).map(D=>Ce("div",{className:"weekday",children:D},`weekday-${D.toLowerCase()}`)),B=()=>{let x=lo(`${t}-${e+1}-1`);return s?x.format(s):x.format("MMMM - YYYY")};return ro("div",{className:io("month-calendar",{isAnimating:a,hidden:o,single:r},l),"data-month-index":e+1,children:[Ce("div",{className:"month-name",children:B()}),Ce("div",{className:"weekdays",children:G()}),Ce("div",{className:"week-container",children:p()})]})});Ae.displayName="MonthCalendar";import{jsx as ae,jsxs as uo}from"react/jsx-runtime";var pt=()=>{let[e,t]=Io(2400),o=so(null),{fromDate:a}=v(),{startWeekDay:n,minDate:l,maxDate:d,weekDayFormat:A}=k(),{complsOpen:g}=ne(),{tooltip:s,subTextDict:r}=w(),p=l?z(l).year():1900,G=l?z(l).month():0;bt(()=>{if(d){let c=l?z(l):z("1900-01-01");t(z(d).diff(c,"month")+1)}},[d,l]),bt(()=>{if(o.current&&g){let c=a?z(a):z(),m=c.diff(z("1900-01-01"),"month");l&&(m=c.diff(z(l),"month")),o.current.scrollToItem(m+1,"smart")}},[g,a,l]);let B=c=>{let m=c+G,C=p+Math.floor(m/12),f=m%12;return{year:C,month:f}},x=no.memo(({index:c,style:m})=>{let{year:C,month:f}=B(c);return ae("div",{style:m,children:ae(Ae,{month:f,year:C,hidden:!1,isAnimating:!1,handleHoverDay:()=>{}})})});x.displayName="CalendarRow";let D=c=>{let{year:m,month:C}=B(c),{totalWeek:f}=ye(m,C,n||"monday");return f.length*48+34},y=()=>ae(Ao,{children:({height:c,width:m})=>ae(Co,{ref:o,width:m,height:c-36,itemCount:e,itemSize:D,children:x})});return ae("div",{className:"calendar-wrapper",children:uo("div",{className:"calendar-content",children:[ae("div",{className:"weekdays mobile",children:Ge(n||"monday",A).map((m,C)=>ae("div",{className:"weekday",children:m},C))}),y()]})})};import{useEffect as be,useState as L,useRef as xt,useCallback as Qe,useMemo as Ye}from"react";import ue from"classnames";import Ze from"dayjs";import{jsx as ge,jsxs as je}from"react/jsx-runtime";var bo=()=>{let[e,t]=L(!1);return be(()=>{t(!0)},[]),e},mt=({dateChanged:e=null})=>{let t=bo(),o=xt(null),a=xt(null),[n,l]=L(0),[d,A]=L([]),[g,s]=L(null),[r,p]=L(!1),[G,B]=L(!1),[x,D]=L(0),[y,X]=L(null),[c,m]=L(!1),{fromDate:C}=v(),{minDate:f,maxDate:V,singleCalendar:N}=k(),{complsOpen:S}=ne(),{tooltip:u}=w(),J=Qe(I=>[I.subtract(1,"month"),I,I.add(1,"month"),I.add(2,"month")],[]);be(()=>{if(!t||!o.current)return;let I=()=>{let R=o.current.offsetWidth,F=window.getComputedStyle(o.current),Y=N?R+parseInt(F.marginLeft)-8:R/2;D(Y)};I();let b=new ResizeObserver(I);return b.observe(o.current),()=>b.disconnect()},[t,N]),be(()=>{s(C!=null?C:Ze())},[S,C]),be(()=>{if(!g)return;let I=f?Ze(f):null,b=V?Ze(V):null;p(!!(I&&g.isBefore(I.add(1,"month"),"month"))),B(!!(b&&g.isAfter(b.subtract(2,"month"),"month"))),A(J(g))},[g,f,V,J]),be(()=>{if(!e||!g)return;let I=e.diff(g,"month");I<-1&&H(),I>1&&Q()},[e,g]);let Z=Qe(I=>()=>{if(I==="next"&&G||I==="prev"&&r||c)return;m(!0),l(I==="next"?-x:x);let b=setTimeout(()=>{s(R=>{let F=I==="next"?R.add(1,"month"):R.subtract(1,"month");return A(J(F)),F}),l(0),m(!1)},200);return()=>clearTimeout(b)},[G,r,c,x,J]),[Q,H]=Ye(()=>[Z("next"),Z("prev")],[Z]),P=Qe(()=>{if(!t||!o.current)return;let b=o.current.querySelector(".day.selected, .month-calendar:not(.hidden) .day:not(.disabled)");b==null||b.focus()},[t]),q=Qe(I=>{var te,le;let b=I.target,R=b.getAttribute("data-day-index");if(!R)return;I.preventDefault();let F=b.closest(".calendar-wrapper"),Y=parseInt((te=b.dataset.dateValue)!=null?te:"0"),ee=Ze(Y),ke=ee.endOf("month").date(),j=parseInt(R);switch(I.key){case"ArrowLeft":j--;break;case"ArrowUp":j-=7;break;case"ArrowRight":j++;break;case"ArrowDown":j+=7;break;case" ":b.click();return;default:return}if(j>0&&j<=ke)(le=F==null?void 0:F.querySelector(`[data-day-index="${j}"]`))==null||le.focus();else{let M=ee.add(j-parseInt(R),"day"),K=M.diff(g,"month");K>1&&!G&&Q(),K<0&&!r&&H(),setTimeout(()=>{var oe;(oe=F==null?void 0:F.querySelector(`[data-month-index="${M.month()+1}"] [data-day-index="${M.date()}"]`))==null||oe.focus()},200)}},[g,G,r,Q,H]),Ue=Ye(()=>{var b;if(!u||!t)return null;let I=typeof u=="function"?u((b=y==null?void 0:y.toDate())!=null?b:new Date):u;return ge("div",{id:"day-tooltip",className:"tooltip-text",ref:a,children:I})},[u,y,t]),T=Ye(()=>d.map((I,b)=>{let R=b===1||b===2,F=c&&n<0&&b===3,Y=c&&n>0&&b===0;return ge(Ae,{hidden:!R&&!F&&!Y,isAnimating:F||Y,month:I.month(),year:I.year(),handleHoverDay:X,ref:a,className:ue({"slide-next":F,"slide-prev":Y})},`${I.year()}-${I.month()}`)}),[d,c,n]);return je("div",{className:"relative",children:[Ue,je("div",{className:ue("calendar-wrapper",{single:N}),ref:o,onKeyDown:q,role:"grid","aria-label":"Calendar",children:[ge("div",{className:ue("calendar-content",{isAnimating:c}),style:{transform:`translateX(${n}px)`},children:T}),je("div",{className:"calendar-flippers",children:[ge("button",{className:ue("flipper-button",{disabled:r}),onClick:H,onKeyDown:I=>I.key===" "&&H(),disabled:r,"aria-label":"Previous month",children:ge(he,{viewBox:"0 0 24 24"})}),ge("button",{className:ue("flipper-button",{disabled:G}),onClick:Q,onKeyDown:I=>I.key===" "&&Q(),disabled:G,"aria-label":"Next month",onBlur:P,children:ge(Be,{viewBox:"0 0 24 24"})})]})]})]})};import{jsx as E,jsxs as Me}from"react/jsx-runtime";var yt=({containerRef:e})=>{let[t,o]=ft(!1),[a,n]=ft(null),l=xo(null),d=e||l,{handleChangeDate:A,handleReset:g}=v(),{singleCalendar:s,expandDirection:r}=k(),{complsOpen:p,isMobile:G,toggleDialog:B}=ne(),{hideDialogHeader:x,hideDialogFooter:D}=w(),y=(X,c)=>{n(X),A(X,c)};return po(()=>{p&&!t&&o(!0),p&&setTimeout(()=>{var c;let X=(c=d.current)==null?void 0:c.querySelector("#start-date-input-button");X&&X.focus()},50)},[p,d,t]),Me("div",{className:mo("dialog-date-picker",{open:p,hide:!p&&t,single:s&&!G,"expand-left":r==="left","expand-right":r==="right"}),ref:d,children:[!x&&Me("div",{className:"dialog-header",children:[E("button",{type:"button",className:"btn-outline back-button",onClick:B,children:E(It,{viewBox:"0 0 492 492"})}),E(Fe,{showIcon:!0,nonFocusable:!p}),E("button",{type:"button",className:"btn-outline reset-button",onClick:g,children:"Reset"})]}),E("div",{className:"dialog-content",children:G?E(pt,{}):E(mt,{dateChanged:a})}),!D&&Me("div",{className:"dialog-footer",children:[E("button",{type:"button",className:"submit-button",onClick:B,tabIndex:0,children:"Done"}),E("button",{type:"button",className:"btn-outline reset-button mobile",onClick:g,children:"Reset"})]})]})};import{jsx as pe,jsxs as Do}from"react/jsx-runtime";W.extend(Go);var Xo=({startDate:e=null,endDate:t=null,className:o="",disabled:a=!1,startDatePlaceholder:n,endDatePlaceholder:l,onChange:d,onFocus:A=()=>{},startWeekDay:g="monday",minDate:s=null,maxDate:r=null,weekDayFormat:p="dd",dateFormat:G="",monthFormat:B="",highlightToday:x=!1,dateInputSeperator:D=null,hideDialogHeader:y=!1,hideDialogFooter:X=!1,hideDialogAfterSelectEndDate:c=!1,isOpen:m=!1,onCloseCalendar:C,tooltip:f="",subTextDict:V=null,expandDirection:N="right",locale:S="en",isSingle:u=!1,singleCalendar:J=!1})=>{let[Z,Q]=_(m),[H,P]=_(u?"from":null),[q,Ue]=_(e?W(e):void 0),[T,I]=_(t?W(t):void 0),[b,R]=_(),[F,Y]=_(!1),[ee,ke]=_(!1),te=(()=>{let[i,h]=_(!1);return ie(()=>{h(!0)},[]),i})(),le=ze(null),M=ze(null),K=ze(null),oe=Le(()=>{te&&Y(window.innerWidth<768)},[te]),Ee=$e(()=>{let i=M.current?M.current.toDate():null,h=!u&&K.current?K.current.toDate():null;u?d(i,null):d(i,h)},20),de=(i,h=!1)=>{Ue(i||void 0),M.current=i||null,h&&Ee()},re=(i,h=!1)=>{u||(I(i||void 0),K.current=i||null,h&&Ee())};fo(()=>{if(te)return oe(),window.addEventListener("resize",oe),()=>window.removeEventListener("resize",oe)},[te,oe]),ie(()=>{ke(!0);let i=h=>{le.current&&h.target instanceof Node&&!le.current.contains(h.target)&&window.innerWidth>=768&&Q(!1)};return document.addEventListener("click",i),()=>document.removeEventListener("click",i)},[]),ie(()=>{let i=e?W(e):null;M.current=i,de(i,!1)},[e]),ie(()=>{if(!u){let i=t?W(t):null;K.current=i,re(i,!1)}},[t,u]),ie(()=>{var i,h;if(!Z&&ee){let $=((i=M.current)==null?void 0:i.toDate())||null,xe=((h=K.current)==null?void 0:h.toDate())||null;u?C($,null):C($,xe)}},[Z,ee,u,C]),ie(()=>{Q(m)},[m]),ie(()=>{ee&&A(H==="from"?"Start Date":H==="to"?"End Date":"")},[H,ee,A]);let Dt=()=>{Q(!Z)},ht=i=>{a||!u&&i==="to"&&!q||(Z||Q(!0),P(i))},Bt=Le(i=>{let h=s?W(s):null,$=r?W(r):null;h&&h.isAfter(i,"date")||$&&$.isBefore(i,"date")||(u?(de(i,!0),c&&setTimeout(()=>Q(!1),50)):H==="from"||q&&i.isBefore(q,"date")?(de(i,!0),T&&i.isAfter(T,"date")&&re(null,!0),P("to")):(re(i,!0),P(null),c&&setTimeout(()=>Q(!1),50)))},[s,r,u,c,H,q,T]),Ht=i=>{R(i)},Ft=()=>{R(void 0),de(null,!0),u||re(null,!0),P("from")},Qt=Le((i,h)=>{let $=s?W(s):null,xe=r?W(r):null;$&&$.isAfter(i,"date")||xe&&xe.isBefore(i,"date")||(h==="from"||u?(P("from"),de(i,!0),!u&&T&&i.isAfter(T,"date")&&re(null,!0)):(P("to"),re(i,!0)))},[s,r,u,T,H]),Zt={fromDate:q,toDate:T,hoverDate:b,inputFocus:H,onSelectDate:Bt,onHoverDate:Ht,handleChangeDate:Qt,handleReset:Ft,handleClickDateInput:ht},Rt={isSingle:u,startWeekDay:g,minDate:s?W(s).toDate():null,maxDate:r?W(r).toDate():null,weekDayFormat:p,dateFormat:G,monthFormat:B,highlightToday:x,singleCalendar:J,expandDirection:N,locale:S},Ot={complsOpen:Z,isMobile:F,disabled:a,toggleDialog:Dt},Ut={startDatePlaceholder:n,endDatePlaceholder:l,dateInputSeperator:D,hideDialogHeader:y,hideDialogFooter:X,hideDialogAfterSelectEndDate:c,tooltip:f,subTextDict:V};return pe("div",{className:"react-google-flight-datepicker",children:pe("div",{className:yo("date-picker",o,{disabled:a}),ref:le,children:Do(ot,{dateState:Zt,config:Rt,uiState:Ot,display:Ut,locale:S,children:[pe(Fe,{}),pe(nt,{children:pe(yt,{})})]})})})},Re=Xo;import{useState as ho,useEffect as Bo}from"react";import{Fragment as Ho,jsx as Fo}from"react/jsx-runtime";var Oe=({children:e})=>{let[t,o]=ho(!1);return Bo(()=>{o(!0)},[]),t?Fo(Ho,{children:e}):null};import{jsx as Gt}from"react/jsx-runtime";var Qo=l=>{var d=l,{onChange:e=()=>{},onCloseCalendar:t=()=>{},startDatePlaceholder:o="Start date",endDatePlaceholder:a="End date"}=d,n=fe(d,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return Gt(Oe,{children:Gt(Re,U(O({},n),{isSingle:!1,startDate:n.startDate,endDate:n.endDate,startDatePlaceholder:o,endDatePlaceholder:a,onChange:e,onCloseCalendar:t}))})};import{jsx as Xt}from"react/jsx-runtime";var Zo=n=>{var l=n,{onChange:e=()=>{},onCloseCalendar:t=()=>{},startDatePlaceholder:o="Date"}=l,a=fe(l,["onChange","onCloseCalendar","startDatePlaceholder"]);return Xt(Oe,{children:Xt(Re,U(O({},a),{endDate:null,isSingle:!0,startDate:a.startDate,startDatePlaceholder:o,onChange:d=>e(d),onCloseCalendar:d=>t(d)}))})};export{Qo as RangeDatePicker,Zo as SingleDatePicker};
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|