@telsho/react-google-flight-datepicker 1.1.3 → 1.1.4
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 +659 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +659 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,660 @@
|
|
|
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};
|
|
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 yo,useCallback as Le}from"react";import W from"dayjs";import Go from"classnames";import Xo 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"})]})]})};var fo=`.react-google-flight-datepicker {
|
|
2
|
+
font-size: 1rem;
|
|
3
|
+
display: contents;
|
|
4
|
+
/** RESPONSIVE MOBILE */
|
|
5
|
+
}
|
|
6
|
+
.react-google-flight-datepicker > * {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
.react-google-flight-datepicker .date-picker-demo {
|
|
10
|
+
width: 400px;
|
|
11
|
+
}
|
|
12
|
+
.react-google-flight-datepicker .btn-outline {
|
|
13
|
+
background-color: transparent;
|
|
14
|
+
background-repeat: no-repeat;
|
|
15
|
+
border: none;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
}
|
|
19
|
+
.react-google-flight-datepicker .date-picker {
|
|
20
|
+
position: relative;
|
|
21
|
+
border-radius: 4px;
|
|
22
|
+
background: white;
|
|
23
|
+
padding: 6px;
|
|
24
|
+
}
|
|
25
|
+
.react-google-flight-datepicker .date-picker.disabled {
|
|
26
|
+
opacity: 0.6;
|
|
27
|
+
cursor: default;
|
|
28
|
+
}
|
|
29
|
+
.react-google-flight-datepicker .date-picker-input {
|
|
30
|
+
width: 100%;
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
border: 1px solid #dadce0;
|
|
34
|
+
border-radius: 4px;
|
|
35
|
+
color: #3c4043;
|
|
36
|
+
height: 56px;
|
|
37
|
+
letter-spacing: 0.2px;
|
|
38
|
+
font-size: 1rem;
|
|
39
|
+
align-items: center;
|
|
40
|
+
overflow: visible;
|
|
41
|
+
}
|
|
42
|
+
.react-google-flight-datepicker .date-picker-input svg {
|
|
43
|
+
min-width: 24px;
|
|
44
|
+
min-height: 24px;
|
|
45
|
+
}
|
|
46
|
+
.react-google-flight-datepicker .date-picker-date-group {
|
|
47
|
+
position: relative;
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
height: 100%;
|
|
51
|
+
flex-grow: 1;
|
|
52
|
+
}
|
|
53
|
+
.react-google-flight-datepicker .date {
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
height: 100%;
|
|
57
|
+
position: relative;
|
|
58
|
+
border-radius: 2px 0 0 2px;
|
|
59
|
+
padding: 0 13px;
|
|
60
|
+
flex-grow: 1;
|
|
61
|
+
width: 50%;
|
|
62
|
+
background: white;
|
|
63
|
+
border-radius: 4px;
|
|
64
|
+
}
|
|
65
|
+
.react-google-flight-datepicker .date.is-single::before {
|
|
66
|
+
display: none;
|
|
67
|
+
}
|
|
68
|
+
.react-google-flight-datepicker .date:first-child::before {
|
|
69
|
+
content: "";
|
|
70
|
+
position: absolute;
|
|
71
|
+
right: 0;
|
|
72
|
+
top: 50%;
|
|
73
|
+
transform: translate(0, -50%);
|
|
74
|
+
width: 1px;
|
|
75
|
+
height: 70%;
|
|
76
|
+
background: #dadce0;
|
|
77
|
+
}
|
|
78
|
+
.react-google-flight-datepicker .selected-date {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex: 1 1 0px;
|
|
81
|
+
align-items: center;
|
|
82
|
+
height: 100%;
|
|
83
|
+
font-size: 0.9rem;
|
|
84
|
+
line-height: normal;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
text-overflow: ellipsis;
|
|
87
|
+
white-space: nowrap;
|
|
88
|
+
}
|
|
89
|
+
.react-google-flight-datepicker .date-placeholder {
|
|
90
|
+
color: rgba(0, 0, 0, 0.56);
|
|
91
|
+
}
|
|
92
|
+
.react-google-flight-datepicker .change-date-group {
|
|
93
|
+
width: 48px;
|
|
94
|
+
display: flex;
|
|
95
|
+
}
|
|
96
|
+
.react-google-flight-datepicker .change-date-group .change-date-button {
|
|
97
|
+
height: 40px;
|
|
98
|
+
color: #5f6368;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
padding: 8px 0;
|
|
101
|
+
flex-grow: 1;
|
|
102
|
+
}
|
|
103
|
+
.react-google-flight-datepicker .change-date-group .change-date-button:disabled {
|
|
104
|
+
cursor: default;
|
|
105
|
+
}
|
|
106
|
+
.react-google-flight-datepicker .change-date-group .change-date-button:disabled .icon-arrow {
|
|
107
|
+
fill: #93989e;
|
|
108
|
+
}
|
|
109
|
+
.react-google-flight-datepicker .icon-calendar {
|
|
110
|
+
width: 24px;
|
|
111
|
+
height: 24px;
|
|
112
|
+
fill: #1a73e8;
|
|
113
|
+
margin-right: 12px;
|
|
114
|
+
}
|
|
115
|
+
.react-google-flight-datepicker .icon-calendar.mobile {
|
|
116
|
+
display: none;
|
|
117
|
+
}
|
|
118
|
+
.react-google-flight-datepicker .icon-arrow {
|
|
119
|
+
width: 24px;
|
|
120
|
+
height: 24px;
|
|
121
|
+
fill: #5f6368;
|
|
122
|
+
}
|
|
123
|
+
@keyframes showPopup {
|
|
124
|
+
0% {
|
|
125
|
+
transform: scale(0.7);
|
|
126
|
+
opacity: 0;
|
|
127
|
+
}
|
|
128
|
+
100% {
|
|
129
|
+
transform: scale(1);
|
|
130
|
+
opacity: 1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@keyframes hidePopup {
|
|
134
|
+
0% {
|
|
135
|
+
transform: scale(1);
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
100% {
|
|
139
|
+
transform: scale(0.7);
|
|
140
|
+
opacity: 0;
|
|
141
|
+
visibility: hidden;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
.react-google-flight-datepicker .dialog-date-picker {
|
|
145
|
+
background: #fff;
|
|
146
|
+
border-radius: 5px;
|
|
147
|
+
box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
|
|
148
|
+
min-width: 200px;
|
|
149
|
+
position: absolute;
|
|
150
|
+
top: -2px;
|
|
151
|
+
left: -2px;
|
|
152
|
+
z-index: 120;
|
|
153
|
+
height: max-content;
|
|
154
|
+
width: 770px;
|
|
155
|
+
margin-bottom: 50px;
|
|
156
|
+
transform-origin: top left;
|
|
157
|
+
opacity: 0;
|
|
158
|
+
transform: scale(0);
|
|
159
|
+
}
|
|
160
|
+
.react-google-flight-datepicker .dialog-date-picker.single {
|
|
161
|
+
width: 385px;
|
|
162
|
+
}
|
|
163
|
+
.react-google-flight-datepicker .dialog-date-picker.open {
|
|
164
|
+
animation: showPopup 0.2s forwards;
|
|
165
|
+
}
|
|
166
|
+
.react-google-flight-datepicker .dialog-date-picker.hide {
|
|
167
|
+
animation: hidePopup 0.2s forwards;
|
|
168
|
+
}
|
|
169
|
+
.react-google-flight-datepicker .dialog-date-picker.expand-right {
|
|
170
|
+
left: -2px;
|
|
171
|
+
right: auto;
|
|
172
|
+
transform-origin: top left;
|
|
173
|
+
}
|
|
174
|
+
.react-google-flight-datepicker .dialog-date-picker.expand-left {
|
|
175
|
+
left: auto;
|
|
176
|
+
right: -2px;
|
|
177
|
+
transform-origin: top right;
|
|
178
|
+
}
|
|
179
|
+
.react-google-flight-datepicker .dialog-header {
|
|
180
|
+
padding: 8px 8px 8px 24px;
|
|
181
|
+
display: flex;
|
|
182
|
+
justify-content: space-between;
|
|
183
|
+
align-items: center;
|
|
184
|
+
}
|
|
185
|
+
.react-google-flight-datepicker .dialog-header .date-picker-input {
|
|
186
|
+
height: 48px;
|
|
187
|
+
width: 50%;
|
|
188
|
+
}
|
|
189
|
+
.react-google-flight-datepicker .date:focus,
|
|
190
|
+
.react-google-flight-datepicker .date.is-focus {
|
|
191
|
+
background-color: #f4f8ff;
|
|
192
|
+
}
|
|
193
|
+
.react-google-flight-datepicker .date:focus::after,
|
|
194
|
+
.react-google-flight-datepicker .date.is-focus::after {
|
|
195
|
+
content: "";
|
|
196
|
+
margin: -1px;
|
|
197
|
+
border: 2px solid #1a73e8;
|
|
198
|
+
border-radius: 4px;
|
|
199
|
+
position: absolute;
|
|
200
|
+
pointer-events: none;
|
|
201
|
+
top: 0;
|
|
202
|
+
bottom: 0;
|
|
203
|
+
left: 0;
|
|
204
|
+
right: 0;
|
|
205
|
+
z-index: 5;
|
|
206
|
+
}
|
|
207
|
+
.react-google-flight-datepicker .back-button {
|
|
208
|
+
display: none;
|
|
209
|
+
}
|
|
210
|
+
.react-google-flight-datepicker .dialog-content {
|
|
211
|
+
border-bottom: 1px solid #dadce0;
|
|
212
|
+
border-top: 1px solid #dadce0;
|
|
213
|
+
position: relative;
|
|
214
|
+
}
|
|
215
|
+
.react-google-flight-datepicker .reset-button {
|
|
216
|
+
font-size: 0.9rem;
|
|
217
|
+
padding: 0 8px;
|
|
218
|
+
height: 36px;
|
|
219
|
+
border-radius: 4px;
|
|
220
|
+
border: none;
|
|
221
|
+
color: #5f6368;
|
|
222
|
+
min-width: 64px;
|
|
223
|
+
}
|
|
224
|
+
.react-google-flight-datepicker .reset-button:hover {
|
|
225
|
+
background-color: #fafafa;
|
|
226
|
+
}
|
|
227
|
+
.react-google-flight-datepicker .reset-button.mobile {
|
|
228
|
+
display: none;
|
|
229
|
+
}
|
|
230
|
+
.react-google-flight-datepicker .calendar-wrapper {
|
|
231
|
+
margin: 12px 38px 8px;
|
|
232
|
+
overflow: hidden;
|
|
233
|
+
min-height: 353px;
|
|
234
|
+
}
|
|
235
|
+
.react-google-flight-datepicker .calendar-wrapper.single {
|
|
236
|
+
margin-left: 36px;
|
|
237
|
+
margin-right: 36px;
|
|
238
|
+
}
|
|
239
|
+
.react-google-flight-datepicker .tooltip-text {
|
|
240
|
+
position: absolute;
|
|
241
|
+
background-color: #4285f4;
|
|
242
|
+
color: #fff;
|
|
243
|
+
text-align: center;
|
|
244
|
+
border-radius: 6px;
|
|
245
|
+
padding: 5px 15px;
|
|
246
|
+
z-index: 999;
|
|
247
|
+
width: 120px;
|
|
248
|
+
max-width: 120px;
|
|
249
|
+
word-break: break-word;
|
|
250
|
+
visibility: hidden;
|
|
251
|
+
}
|
|
252
|
+
.react-google-flight-datepicker .tooltip-text::before {
|
|
253
|
+
z-index: 1001;
|
|
254
|
+
border: 6px solid transparent;
|
|
255
|
+
background: transparent;
|
|
256
|
+
content: "";
|
|
257
|
+
margin-left: -6px;
|
|
258
|
+
margin-bottom: -12px;
|
|
259
|
+
border-top-color: #4285f4;
|
|
260
|
+
position: absolute;
|
|
261
|
+
bottom: 0;
|
|
262
|
+
left: 50%;
|
|
263
|
+
}
|
|
264
|
+
.react-google-flight-datepicker .calendar-content {
|
|
265
|
+
display: flex;
|
|
266
|
+
padding: 0 2px;
|
|
267
|
+
position: relative;
|
|
268
|
+
overflow: hidden;
|
|
269
|
+
}
|
|
270
|
+
.react-google-flight-datepicker .calendar-content.isAnimating {
|
|
271
|
+
transition: transform 0.2s ease;
|
|
272
|
+
overflow: initial;
|
|
273
|
+
}
|
|
274
|
+
.react-google-flight-datepicker .month-calendar {
|
|
275
|
+
width: 308px;
|
|
276
|
+
color: #3c4043;
|
|
277
|
+
margin-right: 43px;
|
|
278
|
+
}
|
|
279
|
+
.react-google-flight-datepicker .month-calendar.hidden {
|
|
280
|
+
position: absolute;
|
|
281
|
+
visibility: hidden;
|
|
282
|
+
z-index: -1;
|
|
283
|
+
opacity: 0;
|
|
284
|
+
}
|
|
285
|
+
.react-google-flight-datepicker .month-calendar.isAnimating {
|
|
286
|
+
position: absolute;
|
|
287
|
+
left: -350px;
|
|
288
|
+
}
|
|
289
|
+
.react-google-flight-datepicker .month-calendar .month-calendar.slide-next {
|
|
290
|
+
position: absolute;
|
|
291
|
+
left: 350px;
|
|
292
|
+
}
|
|
293
|
+
.react-google-flight-datepicker .month-calendar .month-calendar.slide-prev {
|
|
294
|
+
position: absolute;
|
|
295
|
+
left: -350px;
|
|
296
|
+
}
|
|
297
|
+
.react-google-flight-datepicker .month-name {
|
|
298
|
+
text-align: center;
|
|
299
|
+
font-size: 1rem;
|
|
300
|
+
margin-bottom: 10px;
|
|
301
|
+
}
|
|
302
|
+
.react-google-flight-datepicker .weekdays {
|
|
303
|
+
width: 100%;
|
|
304
|
+
font-size: 0.9rem;
|
|
305
|
+
color: rgba(0, 0, 0, 0.54);
|
|
306
|
+
display: flex;
|
|
307
|
+
}
|
|
308
|
+
.react-google-flight-datepicker .weekdays .weekday {
|
|
309
|
+
display: flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
justify-content: center;
|
|
312
|
+
height: 36px;
|
|
313
|
+
margin: 0;
|
|
314
|
+
flex-grow: 1;
|
|
315
|
+
}
|
|
316
|
+
.react-google-flight-datepicker .week {
|
|
317
|
+
display: flex;
|
|
318
|
+
justify-content: flex-start;
|
|
319
|
+
}
|
|
320
|
+
.react-google-flight-datepicker .week.first {
|
|
321
|
+
justify-content: flex-end;
|
|
322
|
+
}
|
|
323
|
+
.react-google-flight-datepicker .day {
|
|
324
|
+
display: flex;
|
|
325
|
+
justify-content: center;
|
|
326
|
+
align-items: center;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
height: 44px;
|
|
329
|
+
margin: 2px 0;
|
|
330
|
+
text-align: center;
|
|
331
|
+
width: 44px;
|
|
332
|
+
vertical-align: top;
|
|
333
|
+
position: relative;
|
|
334
|
+
border-radius: 50%;
|
|
335
|
+
}
|
|
336
|
+
.react-google-flight-datepicker .day .background-day {
|
|
337
|
+
bottom: 0;
|
|
338
|
+
opacity: 0;
|
|
339
|
+
pointer-events: none;
|
|
340
|
+
position: absolute;
|
|
341
|
+
top: 0;
|
|
342
|
+
width: 10px;
|
|
343
|
+
z-index: 1;
|
|
344
|
+
}
|
|
345
|
+
.react-google-flight-datepicker .day .background-day.first-day {
|
|
346
|
+
background: linear-gradient(to right, #fff, #daedfd);
|
|
347
|
+
left: -10px;
|
|
348
|
+
}
|
|
349
|
+
.react-google-flight-datepicker .day .background-day.last-day {
|
|
350
|
+
background: linear-gradient(to left, #fff, #daedfd);
|
|
351
|
+
right: -10px;
|
|
352
|
+
}
|
|
353
|
+
.react-google-flight-datepicker .day::after {
|
|
354
|
+
border-radius: 100%;
|
|
355
|
+
bottom: 0;
|
|
356
|
+
content: "";
|
|
357
|
+
height: 44px;
|
|
358
|
+
left: 0;
|
|
359
|
+
margin: auto;
|
|
360
|
+
position: absolute;
|
|
361
|
+
right: 0;
|
|
362
|
+
top: 0;
|
|
363
|
+
width: 44px;
|
|
364
|
+
z-index: 2;
|
|
365
|
+
}
|
|
366
|
+
.react-google-flight-datepicker .day:hover::after {
|
|
367
|
+
background-color: #fff;
|
|
368
|
+
border: 2px solid #4285f4;
|
|
369
|
+
bottom: -2px;
|
|
370
|
+
left: -2px;
|
|
371
|
+
right: -2px;
|
|
372
|
+
top: -2px;
|
|
373
|
+
}
|
|
374
|
+
.react-google-flight-datepicker .day.selected {
|
|
375
|
+
color: white;
|
|
376
|
+
}
|
|
377
|
+
.react-google-flight-datepicker .day.selected:hover {
|
|
378
|
+
color: #000;
|
|
379
|
+
}
|
|
380
|
+
.react-google-flight-datepicker .day.selected::after {
|
|
381
|
+
background-color: #4285f4;
|
|
382
|
+
border-radius: 100%;
|
|
383
|
+
}
|
|
384
|
+
.react-google-flight-datepicker .day.selected:hover::after {
|
|
385
|
+
background-color: #fff;
|
|
386
|
+
}
|
|
387
|
+
.react-google-flight-datepicker .day.highlight::before {
|
|
388
|
+
content: "";
|
|
389
|
+
width: 44px;
|
|
390
|
+
height: 44px;
|
|
391
|
+
position: absolute;
|
|
392
|
+
left: 50%;
|
|
393
|
+
top: 50%;
|
|
394
|
+
transform: translate(-50%, -50%);
|
|
395
|
+
background-color: rgba(247, 237, 122, 0.8196078431);
|
|
396
|
+
border-radius: 50%;
|
|
397
|
+
}
|
|
398
|
+
.react-google-flight-datepicker .day.hovered {
|
|
399
|
+
background-color: #d9edfd;
|
|
400
|
+
position: relative;
|
|
401
|
+
border-radius: unset;
|
|
402
|
+
}
|
|
403
|
+
.react-google-flight-datepicker .day.hovered .background-day {
|
|
404
|
+
opacity: 1;
|
|
405
|
+
}
|
|
406
|
+
.react-google-flight-datepicker .day.hovered.end {
|
|
407
|
+
background: linear-gradient(90deg, #d9edfd 50%, #fff 50%);
|
|
408
|
+
}
|
|
409
|
+
.react-google-flight-datepicker .day.hovered:hover {
|
|
410
|
+
background-color: #d9edfd;
|
|
411
|
+
}
|
|
412
|
+
.react-google-flight-datepicker .day.hovered:hover::after {
|
|
413
|
+
border-radius: 100%;
|
|
414
|
+
background-color: #fff;
|
|
415
|
+
}
|
|
416
|
+
.react-google-flight-datepicker .day.selected.hovered {
|
|
417
|
+
background: linear-gradient(90deg, #fff 50%, #d9edfd 50%);
|
|
418
|
+
color: #fff;
|
|
419
|
+
}
|
|
420
|
+
.react-google-flight-datepicker .day.selected.hovered.end {
|
|
421
|
+
background: linear-gradient(90deg, #d9edfd 50%, #fff 50%);
|
|
422
|
+
}
|
|
423
|
+
.react-google-flight-datepicker .day.selected.hovered:hover {
|
|
424
|
+
color: #000;
|
|
425
|
+
}
|
|
426
|
+
.react-google-flight-datepicker .day.selected.hovered::after {
|
|
427
|
+
border-radius: 100%;
|
|
428
|
+
background-color: #4285f4;
|
|
429
|
+
}
|
|
430
|
+
.react-google-flight-datepicker .day.selected.hovered:hover::after {
|
|
431
|
+
background-color: #fff;
|
|
432
|
+
}
|
|
433
|
+
.react-google-flight-datepicker .day.disabled {
|
|
434
|
+
pointer-events: none;
|
|
435
|
+
color: rgba(0, 0, 0, 0.26);
|
|
436
|
+
}
|
|
437
|
+
.react-google-flight-datepicker .day.disabled.selected {
|
|
438
|
+
color: #fff;
|
|
439
|
+
}
|
|
440
|
+
.react-google-flight-datepicker .day .text-day {
|
|
441
|
+
position: relative;
|
|
442
|
+
z-index: 3;
|
|
443
|
+
}
|
|
444
|
+
.react-google-flight-datepicker .day-content {
|
|
445
|
+
display: flex;
|
|
446
|
+
flex-direction: column;
|
|
447
|
+
align-items: center;
|
|
448
|
+
gap: 2px;
|
|
449
|
+
}
|
|
450
|
+
.react-google-flight-datepicker .sub-text {
|
|
451
|
+
font-size: 0.75em;
|
|
452
|
+
color: #666;
|
|
453
|
+
text-align: center;
|
|
454
|
+
}
|
|
455
|
+
.react-google-flight-datepicker .day.has-subtext {
|
|
456
|
+
padding-bottom: 4px;
|
|
457
|
+
}
|
|
458
|
+
.react-google-flight-datepicker .calendar-flippers {
|
|
459
|
+
position: absolute;
|
|
460
|
+
top: 0;
|
|
461
|
+
left: 0;
|
|
462
|
+
bottom: 0;
|
|
463
|
+
right: 0;
|
|
464
|
+
display: flex;
|
|
465
|
+
justify-content: space-between;
|
|
466
|
+
align-items: center;
|
|
467
|
+
pointer-events: none;
|
|
468
|
+
}
|
|
469
|
+
.react-google-flight-datepicker .flipper-button {
|
|
470
|
+
background-color: #fff;
|
|
471
|
+
border-radius: 100%;
|
|
472
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);
|
|
473
|
+
cursor: pointer;
|
|
474
|
+
height: 40px;
|
|
475
|
+
width: 40px;
|
|
476
|
+
display: flex;
|
|
477
|
+
justify-content: center;
|
|
478
|
+
align-items: center;
|
|
479
|
+
margin: 0 -20px;
|
|
480
|
+
pointer-events: all;
|
|
481
|
+
border: none;
|
|
482
|
+
outline: none;
|
|
483
|
+
}
|
|
484
|
+
.react-google-flight-datepicker .flipper-button:focus:hover {
|
|
485
|
+
outline: none;
|
|
486
|
+
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);
|
|
487
|
+
}
|
|
488
|
+
.react-google-flight-datepicker .flipper-button svg {
|
|
489
|
+
width: 24px;
|
|
490
|
+
height: 24px;
|
|
491
|
+
}
|
|
492
|
+
.react-google-flight-datepicker .flipper-button.disabled {
|
|
493
|
+
cursor: default;
|
|
494
|
+
}
|
|
495
|
+
.react-google-flight-datepicker .flipper-button.disabled svg {
|
|
496
|
+
fill: #93989e;
|
|
497
|
+
}
|
|
498
|
+
.react-google-flight-datepicker .dialog-footer {
|
|
499
|
+
align-items: center;
|
|
500
|
+
display: flex;
|
|
501
|
+
flex-direction: row-reverse;
|
|
502
|
+
padding: 8px;
|
|
503
|
+
}
|
|
504
|
+
.react-google-flight-datepicker .dialog-footer .submit-button {
|
|
505
|
+
border-radius: 8px;
|
|
506
|
+
padding: 10px 8px;
|
|
507
|
+
border: none;
|
|
508
|
+
line-height: 16px;
|
|
509
|
+
text-transform: uppercase;
|
|
510
|
+
color: #fff;
|
|
511
|
+
background: #4285f4;
|
|
512
|
+
height: 36px;
|
|
513
|
+
min-width: 88px;
|
|
514
|
+
font-weight: 500;
|
|
515
|
+
font-size: 0.9rem;
|
|
516
|
+
cursor: pointer;
|
|
517
|
+
}
|
|
518
|
+
@media screen and (max-width: 768px) {
|
|
519
|
+
.react-google-flight-datepicker .date-picker-demo {
|
|
520
|
+
width: 100%;
|
|
521
|
+
}
|
|
522
|
+
.react-google-flight-datepicker .date-picker-input {
|
|
523
|
+
height: 40px;
|
|
524
|
+
border: none;
|
|
525
|
+
border-radius: 0;
|
|
526
|
+
position: relative;
|
|
527
|
+
}
|
|
528
|
+
.react-google-flight-datepicker .date {
|
|
529
|
+
border: 1px solid #dadce0;
|
|
530
|
+
border-radius: 5px;
|
|
531
|
+
padding: 0 10px;
|
|
532
|
+
flex-grow: 1;
|
|
533
|
+
}
|
|
534
|
+
.react-google-flight-datepicker .date:nth-child(2) {
|
|
535
|
+
margin-left: 10px;
|
|
536
|
+
}
|
|
537
|
+
.react-google-flight-datepicker .date.is-focus {
|
|
538
|
+
height: 40px;
|
|
539
|
+
}
|
|
540
|
+
.react-google-flight-datepicker .date:first-child::before {
|
|
541
|
+
display: none;
|
|
542
|
+
}
|
|
543
|
+
.react-google-flight-datepicker .icon-calendar {
|
|
544
|
+
display: none;
|
|
545
|
+
}
|
|
546
|
+
.react-google-flight-datepicker .icon-calendar.mobile {
|
|
547
|
+
display: block;
|
|
548
|
+
}
|
|
549
|
+
.react-google-flight-datepicker .reset-button {
|
|
550
|
+
display: none;
|
|
551
|
+
}
|
|
552
|
+
.react-google-flight-datepicker .reset-button.mobile {
|
|
553
|
+
display: block;
|
|
554
|
+
color: rgba(0, 0, 0, 0.87);
|
|
555
|
+
min-width: 88px;
|
|
556
|
+
font-weight: 500;
|
|
557
|
+
}
|
|
558
|
+
.react-google-flight-datepicker .change-date-group,
|
|
559
|
+
.react-google-flight-datepicker .divider,
|
|
560
|
+
.react-google-flight-datepicker .calendar-flippers,
|
|
561
|
+
.react-google-flight-datepicker .weekdays {
|
|
562
|
+
display: none;
|
|
563
|
+
}
|
|
564
|
+
.react-google-flight-datepicker .back-button {
|
|
565
|
+
display: block;
|
|
566
|
+
width: 56px;
|
|
567
|
+
height: 100%;
|
|
568
|
+
margin-right: 16px;
|
|
569
|
+
padding: 0;
|
|
570
|
+
}
|
|
571
|
+
.react-google-flight-datepicker .back-button svg {
|
|
572
|
+
width: 20px;
|
|
573
|
+
height: 20px;
|
|
574
|
+
fill: rgba(0, 0, 0, 0.7);
|
|
575
|
+
}
|
|
576
|
+
.react-google-flight-datepicker .dialog-date-picker {
|
|
577
|
+
border-radius: 0;
|
|
578
|
+
width: 100%;
|
|
579
|
+
height: 100%;
|
|
580
|
+
max-height: 100%;
|
|
581
|
+
position: fixed;
|
|
582
|
+
left: 0;
|
|
583
|
+
right: 0;
|
|
584
|
+
bottom: 10px;
|
|
585
|
+
top: 100%;
|
|
586
|
+
display: flex;
|
|
587
|
+
flex-direction: column;
|
|
588
|
+
opacity: 1;
|
|
589
|
+
transform: none;
|
|
590
|
+
z-index: 999999999;
|
|
591
|
+
}
|
|
592
|
+
.react-google-flight-datepicker .dialog-date-picker.open {
|
|
593
|
+
transition: all 0.2s ease-out;
|
|
594
|
+
transform: translate(0, -100%);
|
|
595
|
+
animation: none;
|
|
596
|
+
}
|
|
597
|
+
.react-google-flight-datepicker .dialog-date-picker.hide {
|
|
598
|
+
transition: all 0.2s ease-in;
|
|
599
|
+
transform: translate(0, 0);
|
|
600
|
+
animation: none;
|
|
601
|
+
}
|
|
602
|
+
.react-google-flight-datepicker .dialog-header {
|
|
603
|
+
padding: 8px;
|
|
604
|
+
box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.24);
|
|
605
|
+
z-index: 50;
|
|
606
|
+
}
|
|
607
|
+
.react-google-flight-datepicker .dialog-header .date-picker-input {
|
|
608
|
+
height: 40px;
|
|
609
|
+
width: 100%;
|
|
610
|
+
}
|
|
611
|
+
.react-google-flight-datepicker .dialog-content {
|
|
612
|
+
border: none;
|
|
613
|
+
overflow: hidden;
|
|
614
|
+
height: 100%;
|
|
615
|
+
}
|
|
616
|
+
.react-google-flight-datepicker .calendar-wrapper {
|
|
617
|
+
margin: 0;
|
|
618
|
+
height: 100%;
|
|
619
|
+
display: flex;
|
|
620
|
+
}
|
|
621
|
+
.react-google-flight-datepicker .calendar-content {
|
|
622
|
+
padding: 0;
|
|
623
|
+
width: 100%;
|
|
624
|
+
height: 100%;
|
|
625
|
+
flex-direction: column;
|
|
626
|
+
flex-grow: 1;
|
|
627
|
+
}
|
|
628
|
+
.react-google-flight-datepicker .weekdays.mobile {
|
|
629
|
+
display: flex;
|
|
630
|
+
background-color: #f3f3f3;
|
|
631
|
+
}
|
|
632
|
+
.react-google-flight-datepicker .month-calendar {
|
|
633
|
+
width: 100%;
|
|
634
|
+
display: flex;
|
|
635
|
+
flex-direction: column;
|
|
636
|
+
}
|
|
637
|
+
.react-google-flight-datepicker .day {
|
|
638
|
+
width: 14.2857142857%;
|
|
639
|
+
max-width: 14.2857142857%;
|
|
640
|
+
}
|
|
641
|
+
.react-google-flight-datepicker .day.selected:hover, .react-google-flight-datepicker .day.hovered:hover {
|
|
642
|
+
color: #fff !important;
|
|
643
|
+
}
|
|
644
|
+
.react-google-flight-datepicker .day.selected:hover::after, .react-google-flight-datepicker .day.hovered:hover::after {
|
|
645
|
+
background-color: #4285f4 !important;
|
|
646
|
+
}
|
|
647
|
+
.react-google-flight-datepicker .month-name {
|
|
648
|
+
text-align: left;
|
|
649
|
+
margin-left: 10px;
|
|
650
|
+
margin-bottom: 0px;
|
|
651
|
+
margin-top: 25px;
|
|
652
|
+
font-weight: bold;
|
|
653
|
+
}
|
|
654
|
+
.react-google-flight-datepicker .dialog-footer {
|
|
655
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.24);
|
|
656
|
+
padding: 15px 8px;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
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29sdXRlO1xyXG4gICAgICAgIGxlZnQ6IDM1MHB4O1xyXG4gICAgICB9XHJcbiAgICAgIFxyXG4gICAgICAmLnNsaWRlLXByZXYge1xyXG4gICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgICAgICBsZWZ0OiAtMzUwcHg7XHJcbiAgICAgIH1cclxuICAgIH1cclxuICB9XHJcblxyXG4gIC5tb250aC1uYW1lIHtcclxuICAgIHRleHQtYWxpZ246IGNlbnRlcjtcclxuICAgIGZvbnQtc2l6ZTogMXJlbTtcclxuICAgIG1hcmdpbi1ib3R0b206IDEwcHg7XHJcbiAgfVxyXG5cclxuICAud2Vla2RheXMge1xyXG4gICAgd2lkdGg6IDEwMCU7XHJcbiAgICBmb250LXNpemU6IDAuOXJlbTtcclxuICAgIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNTQpO1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuXHJcbiAgICAud2Vla2RheSB7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XHJcbiAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgICBoZWlnaHQ6IDM2cHg7XHJcbiAgICAgIG1hcmdpbjogMDtcclxuICAgICAgZmxleC1ncm93OiAxO1xyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLndlZWsge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogZmxleC1zdGFydDtcclxuXHJcbiAgICAmLmZpcnN0IHtcclxuICAgICAganVzdGlmeS1jb250ZW50OiBmbGV4LWVuZDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC5kYXkge1xyXG4gICAgZGlzcGxheTogZmxleDtcclxuICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xyXG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcclxuICAgIGN1cnNvcjogcG9pbnRlcjtcclxuICAgIGhlaWdodDogNDRweDtcclxuICAgIG1hcmdpbjogMnB4IDA7XHJcbiAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XHJcbiAgICB3aWR0aDogNDRweDtcclxuICAgIHZlcnRpY2FsLWFsaWduOiB0b3A7XHJcbiAgICBwb3NpdGlvbjogcmVsYXRpdmU7XHJcbiAgICBib3JkZXItcmFkaXVzOiA1MCU7XHJcblxyXG4gICAgLmJhY2tncm91bmQtZGF5IHtcclxuICAgICAgYm90dG9tOiAwO1xyXG4gICAgICBvcGFjaXR5OiAwO1xyXG4gICAgICBwb2ludGVyLWV2ZW50czogbm9uZTtcclxuICAgICAgcG9zaXRpb246IGFic29sdXRlO1xyXG4gICAgICB0b3A6IDA7XHJcbiAgICAgIHdpZHRoOiAxMHB4O1xyXG4gICAgICB6LWluZGV4OiAxO1xyXG5cclxuICAgICAgJi5maXJzdC1kYXkge1xyXG4gICAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwgI2ZmZiwgI2RhZWRmZCk7XHJcbiAgICAgICAgbGVmdDogLTEwcHg7XHJcbiAgICAgIH1cclxuXHJcbiAgICAgICYubGFzdC1kYXkge1xyXG4gICAgICAgIGJhY2tncm91bmQ6IGxpbmVhci1ncmFkaWVudCh0byBsZWZ0LCAjZmZmLCAjZGFlZGZkKTtcclxuICAgICAgICByaWdodDogLTEwcHg7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAmOjphZnRlciB7XHJcbiAgICAgIGJvcmRlci1yYWRpdXM6IDEwMCU7XHJcbiAgICAgIGJvdHRvbTogMDtcclxuICAgICAgY29udGVudDogJyc7XHJcbiAgICAgIGhlaWdodDogNDRweDtcclxuICAgICAgbGVmdDogMDtcclxuICAgICAgbWFyZ2luOiBhdXRvO1xyXG4gICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XHJcbiAgICAgIHJpZ2h0OiAwO1xyXG4gICAgICB0b3A6IDA7XHJcbiAgICAgIHdpZHRoOiA0NHB4O1xyXG4gICAgICB6LWluZGV4OiAyO1xyXG4gICAgfVxyXG5cclxuICAgICY6aG92ZXI6OmFmdGVyIHtcclxuICAgICAgYmFja2dyb3VuZC1jb2xvcjogI2ZmZjtcclxuICAgICAgYm9yZGVyOiAycHggc29saWQgIzQyODVmNDtcclxuICAgICAgYm90dG9tOiAtMnB4O1xyXG4gICAgICBsZWZ0OiAtMnB4O1xyXG4gICAgICByaWdodDogLTJweDtcclxuICAgICAgdG9wOiAtMnB4O1xyXG4gICAgfVxyXG5cclxuICAgICYuc2VsZWN0ZWQge1xyXG4gICAgICBjb2xvcjogd2hpdGU7XHJcblxyXG4gICAgICAmOmhvdmVyIHtcclxuICAgICAgICBjb2xvcjogIzAwMDtcclxuICAgICAgfVxyXG5cclxuICAgICAgJjo6YWZ0ZXIge1xyXG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM0Mjg1ZjQ7XHJcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMTAwJTtcclxuICAgICAgfVxyXG5cclxuICAgICAgJjpob3Zlcjo6YWZ0ZXIge1xyXG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmZmY7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAmLmhpZ2hsaWdodDo6YmVmb3JlIHtcclxuICAgICAgY29udGVudDogJyc7XHJcbiAgICAgIHdpZHRoOiA0NHB4O1xyXG4gICAgICBoZWlnaHQ6IDQ0cHg7XHJcbiAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcclxuICAgICAgbGVmdDogNTAlO1xyXG4gICAgICB0b3A6IDUwJTtcclxuICAgICAgdHJhbnNmb3JtOiB0cmFuc2xhdGUoLTUwJSwgLTUwJSk7XHJcbiAgICAgIGJhY2tncm91bmQtY29sb3I6ICNmN2VkN2FkMTtcclxuICAgICAgYm9yZGVyLXJhZGl1czogNTAlO1xyXG4gICAgfVxyXG5cclxuICAgICYuaG92ZXJlZCB7XHJcbiAgICA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uICAgICAgICBhbmltYXRpb246IG5vbmU7XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAuZGlhbG9nLWhlYWRlciB7XHJcbiAgICAgIHBhZGRpbmc6IDhweDtcclxuICAgICAgYm94LXNoYWRvdzogMCAwIDJweCByZ2JhKDAsIDAsIDAsIDAuMTIpLCAwIDJweCAycHggcmdiYSgwLCAwLCAwLCAwLjI0KTtcclxuICAgICAgei1pbmRleDogNTA7XHJcblxyXG4gICAgICAuZGF0ZS1waWNrZXItaW5wdXQge1xyXG4gICAgICAgIGhlaWdodDogNDBweDtcclxuICAgICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC5kaWFsb2ctY29udGVudCB7XHJcbiAgICAgIGJvcmRlcjogbm9uZTtcclxuICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgfVxyXG5cclxuICAgIC5jYWxlbmRhci13cmFwcGVyIHtcclxuICAgICAgbWFyZ2luOiAwO1xyXG4gICAgICBoZWlnaHQ6IDEwMCU7XHJcbiAgICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICB9XHJcblxyXG4gICAgLmNhbGVuZGFyLWNvbnRlbnQge1xyXG4gICAgICBwYWRkaW5nOiAwO1xyXG4gICAgICB3aWR0aDogMTAwJTtcclxuICAgICAgaGVpZ2h0OiAxMDAlO1xyXG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gICAgICBmbGV4LWdyb3c6IDE7XHJcblxyXG4gICAgfVxyXG5cclxuICAgIC53ZWVrZGF5cy5tb2JpbGUge1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjZjNmM2YzO1xyXG4gICAgfVxyXG5cclxuICAgIC5tb250aC1jYWxlbmRhciB7XHJcbiAgICAgIHdpZHRoOiAxMDAlO1xyXG4gICAgICBkaXNwbGF5OiBmbGV4O1xyXG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gICAgfVxyXG5cclxuICAgIC5kYXkge1xyXG4gICAgICB3aWR0aDogY2FsYygxMDAlIC8gNyk7XHJcbiAgICAgIG1heC13aWR0aDogY2FsYygxMDAlIC8gNyk7XHJcblxyXG4gICAgICAmLnNlbGVjdGVkOmhvdmVyLFxyXG4gICAgICAmLmhvdmVyZWQ6aG92ZXIge1xyXG4gICAgICAgIGNvbG9yOiAjZmZmICFpbXBvcnRhbnQ7XHJcblxyXG4gICAgICAgICY6OmFmdGVyIHtcclxuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICM0Mjg1ZjQgIWltcG9ydGFudDtcclxuICAgICAgICB9XHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICAubW9udGgtbmFtZSB7XHJcbiAgICAgIHRleHQtYWxpZ246IGxlZnQ7XHJcbiAgICAgIG1hcmdpbi1sZWZ0OiAxMHB4O1xyXG4gICAgICBtYXJnaW4tYm90dG9tOiAwcHg7XHJcbiAgICAgIG1hcmdpbi10b3A6IDI1cHg7XHJcbiAgICAgIGZvbnQtd2VpZ2h0OiBib2xkO1xyXG4gICAgfVxyXG5cclxuICAgIC5kaWFsb2ctZm9vdGVyIHtcclxuICAgICAgYm94LXNoYWRvdzogMCAwIDRweCByZ2JhKDAsIDAsIDAsIDAuMTIpLCAwIDRweCA0cHggcmdiYSgwLCAwLCAwLCAwLjI0KTtcclxuICAgICAgcGFkZGluZzogMTVweCA4cHg7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ== */`;document.head.appendChild(document.createElement("style")).appendChild(document.createTextNode(fo));import{jsx as pe,jsxs as ho}from"react/jsx-runtime";W.extend(Xo);var Do=({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())};yo(()=>{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:Go("date-picker",o,{disabled:a}),ref:le,children:ho(ot,{dateState:Zt,config:Rt,uiState:Ot,display:Ut,locale:S,children:[pe(Fe,{}),pe(nt,{children:pe(yt,{})})]})})})},Re=Do;import{useState as Bo,useEffect as Ho}from"react";import{Fragment as Fo,jsx as Qo}from"react/jsx-runtime";var Oe=({children:e})=>{let[t,o]=Bo(!1);return Ho(()=>{o(!0)},[]),t?Qo(Fo,{children:e}):null};import{jsx as Gt}from"react/jsx-runtime";var Zo=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 Ro=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{Zo as RangeDatePicker,Ro as SingleDatePicker};
|
|
2
660
|
//# sourceMappingURL=index.mjs.map
|