@telsho/react-google-flight-datepicker 1.1.1 → 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.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- 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,i,g,a){try{var l=e[g](a);var o=l.value}catch(e){n(e);return}if(l.done){t(o)}else{Promise.resolve(o).then(c,i)}}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,g){var a=e.apply(t,n);function l(e){c(a,i,g,l,o,"next",e)}function o(e){c(a,i,g,l,o,"throw",e)}l(undefined)})}}function g(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function a(e,t){if(t!=null&&typeof Symbol!=="undefined"&&t[Symbol.hasInstance]){return!!t[Symbol.hasInstance](e)}else{return e instanceof t}}function l(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o(e,t){var n=e==null?null:typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n==null)return;var c=[];var i=true;var g=false;var a,l;try{for(n=n.call(e);!(i=(a=n.next()).done);i=true){c.push(a.value);if(t&&c.length===t)break}}catch(e){g=true;l=e}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(g)throw l}}return c}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};var c=Object.keys(n);if(typeof Object.getOwnPropertySymbols==="function"){c=c.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))}c.forEach(function(t){g(e,t,n[t])})}return e}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);if(t){c=c.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,c)}return n}function C(e,t){t=t!=null?t:{};if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(t))}else{u(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function A(e,t){if(e==null)return{};var n=s(e,t);var c,i;if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(e);for(i=0;i<g.length;i++){c=g[i];if(t.indexOf(c)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,c))continue;n[c]=e[c]}}return n}function s(e,t){if(e==null)return{};var n={};var c=Object.keys(e);var i,g;for(g=0;g<c.length;g++){i=c[g];if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function b(e,n){return t(e)||o(e,n)||p(e,n)||r()}function x(e){return n(e)||l(e)||p(e)||d()}function 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,i,g,a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]};return g={next:l(0),"throw":l(1),"return":l(2)},typeof Symbol==="function"&&(g[Symbol.iterator]=function(){return this}),g;function l(e){return function(t){return o([e,t])}}function o(g){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,c&&(i=g[0]&2?c["return"]:g[0]?c["throw"]||((i=c["return"])&&i.call(c),0):c.next)&&!(i=i.call(c,g[1])).done)return i;if(c=0,i)g=[g[0]&2,i.value];switch(g[0]){case 0:case 1:i=g;break;case 4:a.label++;return{value:g[1],done:false};case 5:a.label++;c=g[1];g=[0];continue;case 7:g=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(g[0]===6||g[0]===2)){a=0;continue}if(g[0]===3&&(!i||g[1]>i[0]&&g[1]<i[3])){a.label=g[1];break}if(g[0]===6&&a.label<i[1]){a.label=i[1];i=g;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(g);break}if(i[2])a.ops.pop();a.trys.pop();continue}g=t.call(e,a)}catch(e){g=[6,e];c=0}finally{n=i=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:true}}}import{useState as f,useRef as h,useEffect as X,useLayoutEffect as B,useCallback as G}from"react";import y from"dayjs";import H from"classnames";import O from"dayjs/plugin/localeData";import v from"dayjs";function F(e,t,n){var c=[],i=new Date(e,t,1),g=new Date(e,t+1,0).getDate(),a=1,l=i.getDay()===0?1:7-i.getDay()+1;for(n==="sunday"&&(l=7-i.getDay());a<=g;)c.push({start:a,days:l-a+1}),a=l+1,l+=7,l=a===1&&l===8?1:l,l>g&&(l=g);return{totalWeek:c,totalDay:g}}function Q(e,t){var n=x(Array(7)).map(function(e,n){return v().day(n).format(t==="dd"?"dd":t==="ddd"?"ddd":"dddd")});if(e==="sunday"){var c=n.pop();c&&n.unshift(c)}return n}function D(e,t){var n;return function(){var c=this;for(var i=arguments.length,g=new Array(i),a=0;a<i;a++){g[a]=arguments[a]}var l=function(){n=null,e.apply(c,g)};n&&clearTimeout(n),n=setTimeout(l,t)}}import{createContext as J,useContext as Z,useState as U,useEffect as R}from"react";import k from"dayjs";import{jsx as w}from"react/jsx-runtime";var N=J(null),W=J(null),V=J(null),Y=J(null),j=J(null),T=function(){var e=Z(N);if(!e)throw new Error("useDateState must be used within DatePickerProvider");return e},M=function(){var e=Z(W);if(!e)throw new Error("useDatePickerConfig must be used within DatePickerProvider");return e},z=function(){var e=Z(V);if(!e)throw new Error("useUIState must be used within DatePickerProvider");return e},L=function(){var e=Z(Y);if(!e)throw new Error("useDisplayCustomization must be used within DatePickerProvider");return e};var E=/*#__PURE__*/function(){var e=i(function(e){var t;return 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,i=e.uiState,g=e.display,a=e.locale,l=a===void 0?"en":a;var o=b(U({currentLocale:"en",isLocaleReady:l==="en"}),2),r=o[0],d=o[1];return R(function(){l!=="en"?(d(function(e){return C(I({},e),{isLocaleReady:!1})}),E(l).then(function(e){e?(k.locale(l),d({currentLocale:l,isLocaleReady:!0})):(k.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))})):(k.locale("en"),d({currentLocale:"en",isLocaleReady:!0}))},[l]),r.isLocaleReady?w(j.Provider,{value:r,children:w(N.Provider,{value:n,children:w(W.Provider,{value:c,children:w(V.Provider,{value:i,children:w(Y.Provider,{value:g,children:t})})})})}):null};import"react";import{jsx as P}from"react/jsx-runtime";var K=function(e){return P("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:P("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"})}))},q=K;import{useEffect as _,useState as $}from"react";import ee from"classnames";import et from"dayjs";import"react";import{jsx as en}from"react/jsx-runtime";var ec=function(e){return en("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:en("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})}))},ei=ec;import"react";import{jsx as eg}from"react/jsx-runtime";var ea=function(e){return eg("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),{children:eg("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})}))},el=ea;import{jsx as eo,jsxs as er}from"react/jsx-runtime";var ed=function(e){var t=e.type,n=e.showIcon,c=n===void 0?!1:n,i=e.tabIndex,g=i===void 0?0:i,a=e.nonFocusable,l=a===void 0?!1:a;var o=b($(null),2),r=o[0],d=o[1],I=b($(!1),2),u=I[0],C=I[1],A=b($(!1),2),s=A[0],x=A[1],p=T(),m=p.fromDate,f=p.toDate,h=p.inputFocus,X=p.handleClickDateInput,B=p.handleChangeDate,G=M(),y=G.isSingle,H=G.minDate,O=G.maxDate,v=G.dateFormat,F=L(),Q=F.startDatePlaceholder,D=F.endDatePlaceholder,J=t==="from"?m:f,Z=t==="from"?Q:D;_(function(){if(J){var e=J.clone().locale(et.locale()).format("ddd, DD MMM");v&&(e=J.format(v)),d(e);var n=H?et(H):null,c=O?et(O):null;(n===null||n===void 0?void 0:n.add(1,"day").isAfter(J,"date"))||t==="to"&&m&&J.isBefore(m.add(1,"day"),"date")?C(!0):C(!1),(c===null||c===void 0?void 0:c.subtract(1,"day").isBefore(J,"date"))?x(!0):x(!1)}else d(null)},[J,m,H,O,v,t]);var U=function(e){e.stopPropagation(),J&&B(J.subtract(1,"day"),t)},R=function(e){e.stopPropagation(),J&&B(J.add(1,"day"),t)},k=function(){X(t)};return er("div",{className:ee("date",{"is-focus":h===t&&!y,"is-single":y}),role:"button",tabIndex:l?-1:g,onClick:k,id:"".concat(t,"-date-input-button"),children:[c&&eo(q,{className:"icon-calendar",viewBox:"0 0 24 24"}),eo("div",{className:"selected-date",children:r!==null&&r!==void 0?r:eo("div",{className:"date-placeholder",children:Z})}),r&&er("div",{className:"change-date-group",children:[eo("button",{type:"button",className:"btn-outline change-date-button",onClick:U,tabIndex:l?-1:0,disabled:u,children:eo(ei,{viewBox:"0 0 24 24",className:"icon-arrow"})}),eo("button",{type:"button",className:"btn-outline change-date-button",onClick:R,tabIndex:l?-1:0,disabled:s,children:eo(el,{viewBox:"0 0 24 24",className:"icon-arrow"})})]})]})};import{jsx as eI,jsxs as eu}from"react/jsx-runtime";var eC=function(e){var t=e.showIcon,n=t===void 0?!1:t,c=e.nonFocusable,i=c===void 0?!1:c;var g=M(),a=g.isSingle,l=L(),o=l.dateInputSeperator;return eu("div",{className:"date-picker-input",children:[n&&eI(q,{className:"icon-calendar mobile",viewBox:"0 0 24 24"}),eu("div",{className:"date-picker-date-group",children:[eI(ed,{type:"from",tabIndex:i?-1:0,showIcon:!0,nonFocusable:i}),!a&&o&&eI("div",{className:"date-input-separator",children:o}),!a&&eI(ed,{type:"to",tabIndex:i?-1:0,showIcon:!1,nonFocusable:i})]})]})};import{createPortal as eA}from"react-dom";import{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,i=c===void 0?!1:c;return ex()?i?eA(ep("div",{children:n}),document.body):n:null},ef=em;import{useEffect as eh,useState as eX,useRef as eB}from"react";import eG from"classnames";import"react";import{jsx as ey}from"react/jsx-runtime";var eH=function(e){return ey("svg",C(I({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 492 492"},e),{children:ey("path",{d:"M464.3 207.4l.8.2H136l103.5-103.7c5-5.1 7.8-12 7.8-19.2 0-7.2-2.7-14-7.8-19l-16.1-16.2c-5-5-11.8-7.8-19-7.8-7.2 0-14 2.8-19 7.8L7.8 227C2.8 232 0 238.8 0 246c0 7.3 2.8 14 7.8 19.2l177.5 177.4c5 5 11.8 7.8 19 7.8 7.2 0 14-2.8 19-7.8l16-16.1a26.6 26.6 0 000-37.7L134.8 284.4h330a27.9 27.9 0 0027.3-27.6V234a27.3 27.3 0 00-27.7-26.6z"})}))},eO=eH;import ev,{useEffect as eF,useState as eQ,useRef as eD}from"react";import eJ from"dayjs";import{VariableSizeList as eZ}from"react-window";import eU from"react-virtualized-auto-sizer";import{forwardRef as eR}from"react";import ek from"classnames";import ew from"dayjs";import{forwardRef as eN}from"react";import eW from"classnames";import eV from"dayjs";import{forwardRef as eY,useCallback as ej,useEffect as eT,useRef as eM}from"react";import ez from"classnames";import{jsx as eL,jsxs as eE}from"react/jsx-runtime";var eS=eY(function(e,t){var n=e.dateIndex,c=e.dateValue,i=e.isEndDay,g=e.selected,a=e.hovered,l=e.disabled,o=e.totalDay,r=e.highlight,d=e.handleHoverDay,I=e.subText;var u=eM(null),C=T(),A=C.onSelectDate,s=C.onHoverDate,b=function(e){e.stopPropagation(),e.preventDefault(),!l&&A(c)},x=function(){l||(s(c),d(c))},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:ez("day",{selected:g,hovered:a,disabled:l,highlight:r,end:i,"has-subtext":!!I}),onClick:b,onMouseEnter:x,role:"button",tabIndex:-1,"data-day-index":n,"data-date-value":c.valueOf(),ref:u,children:[a&&!(i&&n===o)&&!(n===1&&g&&!i)&&eL("div",{className:ez("background-day",{"first-day":n===1,"last-day":n===o})}),eE("div",{className:"day-content",children:[eL("div",{className:"text-day",children:n}),I&&eL("div",{className:"sub-text",style:{position:"relative",zIndex:3,color:g&&!a?"#fff":"#666"},children:I})]})]})});eS.displayName="Day";import{jsx as eP}from"react/jsx-runtime";var eK=eN(function(e,t){var n=e.isFirst,c=e.week,i=e.month,g=e.year,a=e.totalDay,l=e.weekIndex,o=e.handleHoverDay;var r=T(),d=r.fromDate,I=r.toDate,u=r.hoverDate,C=M(),A=C.minDate,s=C.maxDate,b=C.isSingle,x=C.highlightToday,p=L(),m=p.subTextDict,f=function(){return Array.from({length:c.days},function(e,n){var l=n+c.start,r=eV("".concat(g,"-").concat(i+1,"-").concat(l)),C=A&&r.isBefore(A,"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 X;var B=I&&r.isSame(I,"date")||!I&&u&&r.isSame(u,"date"),G=m?(X=m[r.format("YYYY-MM-DD")])!==null&&X!==void 0?X:"\xa0":"";return eP(eS,{dateIndex:l,dateValue:r,selected:p,hovered:f,highlight:h,disabled:C,isEndDay:B,totalDay:a,handleHoverDay:o,subText:G,ref:t},n)})};return eP("div",{className:eW("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,i=e.hidden,g=i===void 0?!1:i,a=e.isAnimating,l=a===void 0?!1:a,o=e.handleHoverDay,r=e.className;var d=M(),I=d.startWeekDay,u=d.weekDayFormat,C=d.monthFormat,A=d.singleCalendar,s=function(){var e=F(c,n,I),i=e.totalWeek,g=e.totalDay;return i.map(function(e){var a="".concat(c,"-").concat(n,"-").concat(e.start);return eq(eK,{week:e,month:n,year:c,isFirst:e===i[0],totalDay:g,weekIndex:i.indexOf(e),handleHoverDay:o,ref:t},a)})},b=function(){return Q(I,u).map(function(e){return eq("div",{className:"weekday",children:e},"weekday-".concat(e.toLowerCase()))})},x=function(){var e=ew("".concat(c,"-").concat(n+1,"-1"));return C?e.format(C):e.format("MMMM - YYYY")};return e_("div",{className:ek("month-calendar",{isAnimating:l,hidden:g,single:A},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 e4=function(){var e=b(eQ(2400),2),t=e[0],n=e[1],c=eD(null),i=T(),g=i.fromDate,a=M(),l=a.startWeekDay,o=a.minDate,r=a.maxDate,d=a.weekDayFormat,I=z(),u=I.complsOpen,C=L(),A=C.tooltip,s=C.subTextDict,x=o?eJ(o).year():1900,p=o?eJ(o).month():0;eF(function(){if(r){var e=o?eJ(o):eJ("1900-01-01");n(eJ(r).diff(e,"month")+1)}},[r,o]),eF(function(){if(c.current&&u){var e=g?eJ(g):eJ(),t=e.diff(eJ("1900-01-01"),"month");o&&(t=e.diff(eJ(o),"month")),c.current.scrollToItem(t+1,"smart")}},[u,g,o]);var m=function(e){var t=e+p,n=x+Math.floor(t/12),c=t%12;return{year:n,month:c}},f=ev.memo(function(e){var t=e.index,n=e.style;var c=m(t),i=c.year,g=c.month;return e0("div",{style:n,children:e0(e$,{month:g,year:i,hidden:!1,isAnimating:!1,handleHoverDay:function(){}})})});f.displayName="CalendarRow";var h=function(e){var t=m(e),n=t.year,c=t.month,i=F(n,c,l||"monday"),g=i.totalWeek;return g.length*48+34},X=function(){return e0(eU,{children:function(e){var n=e.height,i=e.width;return e0(eZ,{ref:c,width:i,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:Q(l||"monday",d).map(function(e,t){return e0("div",{className:"weekday",children:e},t)})}),X()]})})};import{useEffect as e2,useState as e7,useRef as e5,useCallback as e9,useMemo as e3}from"react";import e6 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 e2(function(){n(!0)},[]),t},tc=function(e){var t=e.dateChanged,n=t===void 0?null:t;var c=tn(),i=e5(null),g=e5(null),a=b(e7(0),2),l=a[0],o=a[1],r=b(e7([]),2),d=r[0],I=r[1],u=b(e7(null),2),C=u[0],A=u[1],s=b(e7(!1),2),x=s[0],p=s[1],m=b(e7(!1),2),f=m[0],h=m[1],X=b(e7(0),2),B=X[0],G=X[1],y=b(e7(null),2),H=y[0],O=y[1],v=b(e7(!1),2),F=v[0],Q=v[1],D=T(),J=D.fromDate,Z=M(),U=Z.minDate,R=Z.maxDate,k=Z.singleCalendar,w=z(),N=w.complsOpen,W=L(),V=W.tooltip,Y=e9(function(e){return[e.subtract(1,"month"),e,e.add(1,"month"),e.add(2,"month")]},[]);e2(function(){if(!c||!i.current)return;var e=function(){var e=i.current.offsetWidth,t=window.getComputedStyle(i.current),n=k?e+parseInt(t.marginLeft)-8:e/2;G(n)};e();var t=new ResizeObserver(e);return t.observe(i.current),function(){return t.disconnect()}},[c,k]),e2(function(){A(J!==null&&J!==void 0?J:e8())},[N,J]),e2(function(){if(!C)return;var e=U?e8(U):null,t=R?e8(R):null;p(!!(e&&C.isBefore(e.add(1,"month"),"month"))),h(!!(t&&C.isAfter(t.subtract(2,"month"),"month"))),I(Y(C))},[C,U,R,Y]),e2(function(){if(!n||!C)return;var e=n.diff(C,"month");e<-1&&P(),e>1&&S()},[n,C]);var j=e9(function(e){return function(){if(e==="next"&&f||e==="prev"&&x||F)return;Q(!0),o(e==="next"?-B:B);var t=setTimeout(function(){A(function(t){var n=e==="next"?t.add(1,"month"):t.subtract(1,"month");return I(Y(n)),n}),o(0),Q(!1)},200);return function(){return clearTimeout(t)}}},[f,x,F,B,Y]),E=b(e3(function(){return[j("next"),j("prev")]},[j]),2),S=E[0],P=E[1],K=e9(function(){var e;if(!c||!i.current)return;(e=i.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 i;var g=n.closest(".calendar-wrapper"),a=parseInt((i=n.dataset.dateValue)!==null&&i!==void 0?i:"0"),l=e8(a),o=l.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<=o)g===null||g===void 0?void 0:(t=g.querySelector('[data-day-index="'.concat(r,'"]')))===null||t===void 0?void 0:t.focus();else{var d=l.add(r-parseInt(c),"day"),I=d.diff(C,"month");I>1&&!f&&S(),I<0&&!x&&P(),setTimeout(function(){var e;g===null||g===void 0?void 0:(e=g.querySelector('[data-month-index="'.concat(d.month()+1,'"] [data-day-index="').concat(d.date(),'"]')))===null||e===void 0?void 0:e.focus()},200)}},[C,f,x,S,P]),_=e3(function(){if(!V||!c)return null;var e;var t=typeof V=="function"?V((e=H===null||H===void 0?void 0:H.toDate())!==null&&e!==void 0?e:new Date):V;return te("div",{id:"day-tooltip",className:"tooltip-text",ref:g,children:t})},[V,H,c]),$=e3(function(){return d.map(function(e,t){var n=t===1||t===2,c=F&&l<0&&t===3,i=F&&l>0&&t===0;return te(e$,{hidden:!n&&!c&&!i,isAnimating:c||i,month:e.month(),year:e.year(),handleHoverDay:O,ref:g,className:e6({"slide-next":c,"slide-prev":i})},"".concat(e.year(),"-").concat(e.month()))})},[d,F,l]);return tt("div",{className:"relative",children:[_,tt("div",{className:e6("calendar-wrapper",{single:k}),ref:i,onKeyDown:q,role:"grid","aria-label":"Calendar",children:[te("div",{className:e6("calendar-content",{isAnimating:F}),style:{transform:"translateX(".concat(l,"px)")},children:$}),tt("div",{className:"calendar-flippers",children:[te("button",{className:e6("flipper-button",{disabled:x}),onClick:P,onKeyDown:function(e){return e.key===" "&&P()},disabled:x,"aria-label":"Previous month",children:te(ei,{viewBox:"0 0 24 24"})}),te("button",{className:e6("flipper-button",{disabled:f}),onClick:S,onKeyDown:function(e){return e.key===" "&&S()},disabled:f,"aria-label":"Next month",onBlur:K,children:te(el,{viewBox:"0 0 24 24"})})]})]})]})};import{jsx as ti,jsxs as tg}from"react/jsx-runtime";var ta=function(e){var t=e.containerRef;var n=b(eX(!1),2),c=n[0],i=n[1],g=b(eX(null),2),a=g[0],l=g[1],o=eB(null),r=t||o,d=T(),I=d.handleChangeDate,u=d.handleReset,C=M(),A=C.singleCalendar,s=C.expandDirection,x=z(),p=x.complsOpen,m=x.isMobile,f=x.toggleDialog,h=L(),X=h.hideDialogHeader,B=h.hideDialogFooter,G=function(e,t){l(e),I(e,t)};return eh(function(){p&&!c&&i(!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]),tg("div",{className:eG("dialog-date-picker",{open:p,hide:!p&&c,single:A&&!m,"expand-left":s==="left","expand-right":s==="right"}),ref:r,children:[!X&&tg("div",{className:"dialog-header",children:[ti("button",{type:"button",className:"btn-outline back-button",onClick:f,children:ti(eO,{viewBox:"0 0 492 492"})}),ti(eC,{showIcon:!0,nonFocusable:!p}),ti("button",{type:"button",className:"btn-outline reset-button",onClick:u,children:"Reset"})]}),ti("div",{className:"dialog-content",children:m?ti(e4,{}):ti(tc,{dateChanged:a})}),!B&&tg("div",{className:"dialog-footer",children:[ti("button",{type:"button",className:"submit-button",onClick:f,tabIndex:0,children:"Done"}),ti("button",{type:"button",className:"btn-outline reset-button mobile",onClick:u,children:"Reset"})]})]})};var tl='.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VSb290IjoiQzpcXFVzZXJzXFxFbGlhc1xcRG9jdW1lbnRzXFxyZWFjdC1nb29nbGUtZmxpZ2h0LWRhdGVwaWNrZXJcXHNyY1xcbGliXFxjb21wb25lbnRzXFxEYXRlUGlja2VyIiwic291cmNlcyI6WyJzdHlsZXMuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFO0FBNmxCQTs7QUEzbEJBO0VBQ0U7O0FBR0Y7RUFDRTs7QUFHRjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFO0VBQ0E7O0FBSUo7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBOztBQUdBO0VBQ0U7RUFDQTs7QUFJSjtFQUNFO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7O0FBR0Y7RUFDRTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTtFQUNBO0VBQ0E7RUFDQTs7QUFFQTtFQUNFOztBQUlKO0VBQ0U7RUFDQTtFQUNBO0VBQ0E7RUFDQT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0ZTtcclxuICAgICAgdmlzaWJpbGl0eTogaGlkZGVuO1xyXG4gICAgICB6LWluZGV4OiAtMTtcclxuICAgICAgb3BhY2l0eTogMDtcclxuICAgIH1cclxuICBcclxuICAgICYuaXNBbmltYXRpbmcge1xyXG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgIGxlZnQ6IC0zNTBweDtcclxuICAgIH1cclxuXHJcbiAgICAubW9udGgtY2FsZW5kYXIge1xyXG4gICAgICAmLnNsaWRlLW5leHQge1xyXG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgICAgICBsZWZ0OiAzNTBweDtcclxuICAgICAgfVxyXG4gICAgICBcclxuICAgICAgJi5zbGlkZS1wcmV2IHtcclxuICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgICAgbGVmdDogLTM1MHB4O1xyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICAubW9udGgtbmFtZSB7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICBmb250LXNpemU6IDFyZW07XHJcbiAgICBtYXJnaW4tYm90dG9tOiAxMHB4O1xyXG4gIH1cclxuXHJcbiAgLndlZWtkYXlzIHtcclxuICAgIHdpZHRoOiAxMDAlO1xyXG4gICAgZm9udC1zaXplOiAwLjlyZW07XHJcbiAgICBjb2xvcjogcmdiYSgwLCAwLCAwLCAwLjU0KTtcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcblxyXG4gICAgLndlZWtkYXkge1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xyXG4gICAgICBqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcclxuICAgICAgaGVpZ2h0OiAzNnB4O1xyXG4gICAgICBtYXJnaW46IDA7XHJcbiAgICAgIGZsZXgtZ3JvdzogMTtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC53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SUxFICovXHJcbiAgQG1lZGlhIHNjcmVlbiBhbmQgKG1heC13aWR0aDogNzY4cHgpIHtcclxuICAgIC5kYXRlLXBpY2tlci1kZW1vIHtcclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICB9XHJcblxyXG4gICAgLmRhdGUtcGlja2VyLWlucHV0IHtcclxuICAgICAgaGVpZ2h0OiA0MHB4O1xyXG4gICAgICBib3JkZXI6IG5vbmU7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDA7XHJcbiAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcclxuICAgIH1cclxuXHJcbiAgICAuZGF0ZSB7XHJcbiAgICAgIGJvcmRlcjogMXB4IHNvbGlkICNkYWRjZTA7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDVweDtcclxuICAgICAgcGFkZGluZzogMCAxMHB4O1xyXG4gICAgICBmbGV4LWdyb3c6IDE7XHJcblxyXG4gICAgICAmOm50aC1jaGlsZCgyKSB7XHJcbiAgICAgICAgbWFyZ2luLWxlZnQ6IDEwcHg7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgICYuaXMtZm9jdXMge1xyXG4gICAgICAgIGhlaWdodDogNDBweDtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5kYXRlOmZpcnN0LWNoaWxkOjpiZWZvcmUge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG4gICAgfVxyXG5cclxuICAgIC5pY29uLWNhbGVuZGFyIHtcclxuICAgICAgZGlzcGxheTogbm9uZTtcclxuXHJcbiAgICAgICYubW9iaWxlIHtcclxuICAgICAgICBkaXNwbGF5OiBibG9jaztcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5yZXNldC1idXR0b24ge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG5cclxuICAgICAgJi5tb2JpbGUge1xyXG4gICAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuODcpO1xyXG4gICAgICAgIG1pbi13aWR0aDogODhweDtcclxuICAgICAgICBmb250LXdlaWdodDogNTAwO1xyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLmNoYW5nZS1kYXRlLWdyb3VwLFxyXG4gICAgLmRpdmlkZXIsXHJcbiAgICAuY2FsZW5kYXItZmxpcHBlcnMsXHJcbiAgICAud2Vla2RheXMge1xyXG4gICAgICBkaXNwbGF5OiBub25lO1xyXG4gICAgfVxyXG5cclxuICAgIC5iYWNrLWJ1dHRvbiB7XHJcbiAgICAgIGRpc3BsYXk6IGJsb2NrO1xyXG4gICAgICB3aWR0aDogNTZweDtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgICBtYXJnaW4tcmlnaHQ6IDE2cHg7XHJcbiAgICAgIHBhZGRpbmc6IDA7XHJcblxyXG4gICAgICBzdmcge1xyXG4gICAgICAgIHdpZHRoOiAyMHB4O1xyXG4gICAgICAgIGhlaWdodDogMjBweDtcclxuICAgICAgICBmaWxsOiByZ2JhKDAsIDAsIDAsIDAuNyk7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWRhdGUtcGlja2VyIHtcclxuICAgICAgYm9yZGVyLXJhZGl1czogMDtcclxuICAgICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgbWF4LWhlaWdodDogMTAwJTtcclxuICAgICAgcG9zaXRpb246IGZpeGVkO1xyXG4gICAgICBsZWZ0OiAwO1xyXG4gICAgICByaWdodDogMDtcclxuICAgICAgYm90dG9tOiAxMHB4O1xyXG4gICAgICB0b3A6IDEwMCU7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XHJcbiAgICAgIG9wYWNpdHk6IDE7XHJcbiAgICAgIHRyYW5zZm9ybTogbm9uZTtcclxuICAgICAgei1pbmRle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ICAgd2lkdGg6IDEwMCU7XHJcbiAgICAgIGhlaWdodDogMTAwJTtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgICAgZmxleC1ncm93OiAxO1xyXG5cclxuICAgIH1cclxuXHJcbiAgICAud2Vla2RheXMubW9iaWxlIHtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2YzZjNmMztcclxuICAgIH1cclxuXHJcbiAgICAubW9udGgtY2FsZW5kYXIge1xyXG4gICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgZGlzcGxheTogZmxleDtcclxuICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcclxuICAgIH1cclxuXHJcbiAgICAuZGF5IHtcclxuICAgICAgd2lkdGg6IGNhbGMoMTAwJSAvIDcpO1xyXG4gICAgICBtYXgtd2lkdGg6IGNhbGMoMTAwJSAvIDcpO1xyXG5cclxuICAgICAgJi5zZWxlY3RlZDpob3ZlcixcclxuICAgICAgJi5ob3ZlcmVkOmhvdmVyIHtcclxuICAgICAgICBjb2xvcjogI2ZmZiAhaW1wb3J0YW50O1xyXG5cclxuICAgICAgICAmOjphZnRlciB7XHJcbiAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjNDI4NWY0ICFpbXBvcnRhbnQ7XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLm1vbnRoLW5hbWUge1xyXG4gICAgICB0ZXh0LWFsaWduOiBsZWZ0O1xyXG4gICAgICBtYXJnaW4tbGVmdDogMTBweDtcclxuICAgICAgbWFyZ2luLWJvdHRvbTogMHB4O1xyXG4gICAgICBtYXJnaW4tdG9wOiAyNXB4O1xyXG4gICAgICBmb250LXdlaWdodDogYm9sZDtcclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWZvb3RlciB7XHJcbiAgICAgIGJveC1zaGFkb3c6IDAgMCA0cHggcmdiYSgwLCAwLCAwLCAwLjEyKSwgMCA0cHggNHB4IHJnYmEoMCwgMCwgMCwgMC4yNCk7XHJcbiAgICAgIHBhZGRpbmc6IDE1cHggOHB4O1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0= */';document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(tl));import{jsx as to,jsxs as tr}from"react/jsx-runtime";y.extend(O);var td=function(e){var t=e.startDate,n=t===void 0?null:t,c=e.endDate,i=c===void 0?null:c,g=e.className,l=g===void 0?"":g,o=e.disabled,r=o===void 0?!1:o,d=e.startDatePlaceholder,I=e.endDatePlaceholder,u=e.onChange,C=e.onFocus,A=C===void 0?function(){}:C,s=e.startWeekDay,x=s===void 0?"monday":s,p=e.minDate,m=p===void 0?null:p,O=e.maxDate,v=O===void 0?null:O,F=e.weekDayFormat,Q=F===void 0?"dd":F,J=e.dateFormat,Z=J===void 0?"":J,U=e.monthFormat,R=U===void 0?"":U,k=e.highlightToday,w=k===void 0?!1:k,N=e.dateInputSeperator,W=N===void 0?null:N,V=e.hideDialogHeader,Y=V===void 0?!1:V,j=e.hideDialogFooter,T=j===void 0?!1:j,M=e.hideDialogAfterSelectEndDate,z=M===void 0?!1:M,L=e.isOpen,E=L===void 0?!1:L,P=e.onCloseCalendar,K=e.tooltip,q=K===void 0?"":K,_=e.subTextDict,$=_===void 0?null:_,ee=e.expandDirection,et=ee===void 0?"right":ee,en=e.locale,ec=en===void 0?"en":en,ei=e.isSingle,eg=ei===void 0?!1:ei,ea=e.singleCalendar,el=ea===void 0?!1:ea;var eo=b(f(E),2),er=eo[0],ed=eo[1],eI=b(f(eg?"from":null),2),eu=eI[0],eA=eI[1],es=b(f(n?y(n):void 0),2),eb=es[0],ex=es[1],ep=b(f(i?y(i):void 0),2),em=ep[0],eh=ep[1],eX=b(f(),2),eB=eX[0],eG=eX[1],ey=b(f(!1),2),eH=ey[0],eO=ey[1],ev=b(f(!1),2),eF=ev[0],eQ=ev[1],eD=function(){var e=b(f(!1),2),t=e[0],n=e[1];return X(function(){n(!0)},[]),t}(),eJ=h(null),eZ=h(null),eU=h(null),eR=G(function(){eD&&eO(window.innerWidth<768)},[eD]),ek=D(function(){var e=eZ.current?eZ.current.toDate():null,t=!eg&&eU.current?eU.current.toDate():null;eg?u(e,null):u(e,t)},20),ew=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ex(e||void 0),eZ.current=e||null,t&&ek()},eN=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;eg||(eh(e||void 0),eU.current=e||null,t&&ek())};B(function(){if(eD)return eR(),window.addEventListener("resize",eR),function(){return window.removeEventListener("resize",eR)}},[eD,eR]),X(function(){eQ(!0);var e=function(e){eJ.current&&a(e.target,Node)&&!eJ.current.contains(e.target)&&window.innerWidth>=768&&ed(!1)};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[]),X(function(){var e=n?y(n):null;eZ.current=e,ew(e,!1)},[n]),X(function(){if(!eg){var e=i?y(i):null;eU.current=e,eN(e,!1)}},[i,eg]),X(function(){if(!er&&eF){var e,t;var n=((e=eZ.current)===null||e===void 0?void 0:e.toDate())||null,c=((t=eU.current)===null||t===void 0?void 0:t.toDate())||null;eg?P(n,null):P(n,c)}},[er,eF,eg,P]),X(function(){ed(E)},[E]),X(function(){eF&&A(eu==="from"?"Start Date":eu==="to"?"End Date":"")},[eu,eF,A]);var eW=function(){ed(!er)},eV=function(e){r||!eg&&e==="to"&&!eb||(er||ed(!0),eA(e))},eY=G(function(e){var t=m?y(m):null,n=v?y(v):null;t&&t.isAfter(e,"date")||n&&n.isBefore(e,"date")||(eg?(ew(e,!0),z&&setTimeout(function(){return ed(!1)},50)):eu==="from"||eb&&e.isBefore(eb,"date")?(ew(e,!0),em&&e.isAfter(em,"date")&&eN(null,!0),eA("to")):(eN(e,!0),eA(null),z&&setTimeout(function(){return ed(!1)},50)))},[m,v,eg,z,eu,eb,em]),ej=function(e){eG(e)},eT=function(){eG(void 0),ew(null,!0),eg||eN(null,!0),eA("from")},eM=G(function(e,t){var n=m?y(m):null,c=v?y(v):null;n&&n.isAfter(e,"date")||c&&c.isBefore(e,"date")||(t==="from"||eg?(eA("from"),ew(e,!0),!eg&&em&&e.isAfter(em,"date")&&eN(null,!0)):(eA("to"),eN(e,!0)))},[m,v,eg,em,eu]),ez={fromDate:eb,toDate:em,hoverDate:eB,inputFocus:eu,onSelectDate:eY,onHoverDate:ej,handleChangeDate:eM,handleReset:eT,handleClickDateInput:eV},eL={isSingle:eg,startWeekDay:x,minDate:m?y(m).toDate():null,maxDate:v?y(v).toDate():null,weekDayFormat:Q,dateFormat:Z,monthFormat:R,highlightToday:w,singleCalendar:el,expandDirection:et,locale:ec},eE={complsOpen:er,isMobile:eH,disabled:r,toggleDialog:eW},eS={startDatePlaceholder:d,endDatePlaceholder:I,dateInputSeperator:W,hideDialogHeader:Y,hideDialogFooter:T,hideDialogAfterSelectEndDate:z,tooltip:q,subTextDict:$};return to("div",{className:"react-google-flight-datepicker",children:to("div",{className:H("date-picker",l,{disabled:r}),ref:eJ,children:tr(S,{dateState:ez,config:eL,uiState:eE,display:eS,locale:ec,children:[to(eC,{}),to(ef,{children:to(ta,{})})]})})})},tI=td;import{jsx as tu}from"react/jsx-runtime";var tC=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,i=c===void 0?function(){}:c,g=e.startDatePlaceholder,a=g===void 0?"Start date":g,l=e.endDatePlaceholder,o=l===void 0?"End date":l,r=A(e,["onChange","onCloseCalendar","startDatePlaceholder","endDatePlaceholder"]);return tu(tI,C(I({},r),{isSingle:!1,startDate:r.startDate,endDate:r.endDate,startDatePlaceholder:a,endDatePlaceholder:o,onChange:n,onCloseCalendar:i}))};import{jsx as tA}from"react/jsx-runtime";var ts=function(e){var t=e.onChange,n=t===void 0?function(){}:t,c=e.onCloseCalendar,i=c===void 0?function(){}:c,g=e.startDatePlaceholder,a=g===void 0?"Date":g,l=A(e,["onChange","onCloseCalendar","startDatePlaceholder"]);return tA(tI,C(I({},l),{endDate:null,isSingle:!0,startDate:l.startDate,startDatePlaceholder:a,onChange:function(e){return n(e)},onCloseCalendar:function(e){return i(e)}}))};export{tC as RangeDatePicker,ts 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
|