1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2519],{92209:function(e,a,t){t.d(a,{V:function(){return V}});var l=t(85893),n=t(48399),s=t(13794),r=t(87067),i=t(43201),o=t(4382),d=t(45634),u=t(32855),c=t(36100),m=t(67294),v=t(54181),g=t(40629),b=t(96974),f=t(16842),h=t(26009),p=t(32425),y=t(25286),D=t(12479),x=t(19909);function w(e,a){return e&&a?(0>a.compare(e)&&([e,a]=[a,e]),{start:(0,y.WG)(e),end:(0,y.WG)(a)}):null}function k(e,a){return e=(0,y.Mw)(e,(null==a?void 0:a.calendar)||new p.IQ),a&&"hour"in a?a.set(e):e}function C(e,a,t){let l=e.add({days:t});for(;(t<0?l.compare(a.visibleRange.start)>=0:0>=l.compare(a.visibleRange.end))&&!a.isCellUnavailable(l);)l=l.add({days:t});if(a.isCellUnavailable(l))return l.add({days:-t})}let V=e=>{let a,t,p;let V=(0,b.Dv)(s.ZX),{headerDropdowns:R=!1,touched:F,valid:N,children:P,themeConfig:j,disabled:O,className:I,onStateChange:B,stateProps:S,selectionMode:Z="manual",autoRangeDuration:T,onChange:M,isDateVisuallyDisabled:W,firstDayOfWeek:z,...E}=e,{locale:L}=(0,v.j)(),U=(0,m.useRef)(null),H=(null==S?void 0:S.locale)||L||"en-US",K=(null==V?void 0:V.onChange)??M,q=function(e){let{value:a,defaultValue:t,onChange:l,createCalendar:n,locale:s,visibleDuration:r={months:1},minValue:i,maxValue:o,...d}=e,[u,c]=(0,x.z)(a,t||null,l),[v,g]=(0,m.useState)(null),b="center";if(u&&u.start&&u.end){let e=(0,f.A8)((0,y.WG)(u.start),r,s,i,o).add(r).subtract({days:1});u.end.compare(e)>0&&(b="start")}let p=(0,m.useRef)(null),[V,R]=(0,m.useState)(null),F=(0,m.useMemo)(()=>(0,D.l7)(i,null==V?void 0:V.start),[i,V]),N=(0,m.useMemo)(()=>(0,D.Mb)(o,null==V?void 0:V.end),[o,V]),P=(0,h.F)({...d,value:u&&u.start,createCalendar:n,locale:s,visibleDuration:r,minValue:F,maxValue:N,selectionAlignment:b}),j=a=>{if(a&&e.isDateUnavailable&&!e.allowsNonContiguousRanges){let e=C(a,P,-1),t=C(a,P,1);p.current={start:e,end:t},R(p.current)}else p.current=null,R(null)},[O,I]=(0,m.useState)(P.visibleRange);(0,D.N9)(P.visibleRange.start,O.start)&&(0,D.N9)(P.visibleRange.end,O.end)||(j(v),I(P.visibleRange));let B=e=>{e?(g(e),j(e)):(g(null),j(null))},S=v?w(v,P.focusedDate):u&&w(u.start,u.end),Z=a=>{if(e.isReadOnly)return;let t=(0,f.Me)(a,F,N),l=(0,f.UC)(t,P.visibleRange.start,e.isDateUnavailable);if(l){if(v){let e=w(v,l);e&&c({start:k(e.start,null==u?void 0:u.start),end:k(e.end,null==u?void 0:u.end)}),B(null)}else B(l)}},[T,M]=(0,m.useState)(!1),{isDateUnavailable:W}=e,z=(0,m.useMemo)(()=>!!u&&!v&&(!!(W&&(W(u.start)||W(u.end)))||(0,f.wp)(u.start,i,o)||(0,f.wp)(u.end,i,o)),[W,u,v,i,o]),E=e.isInvalid||"invalid"===e.validationState||z;return{...P,value:u,setValue:c,anchorDate:v,setAnchorDate:B,highlightedRange:S,validationState:E?"invalid":null,isValueInvalid:E,selectFocusedDate(){Z(P.focusedDate)},selectDate:Z,highlightDate(e){v&&P.setFocusedDate(e)},isSelected:e=>!!(S&&e.compare(S.start)>=0&&0>=e.compare(S.end)&&!P.isCellDisabled(e)&&!P.isCellUnavailable(e)),isInvalid(e){var a,t;return P.isInvalid(e)||(0,f.wp)(e,null===(a=p.current)||void 0===a?void 0:a.start,null===(t=p.current)||void 0===t?void 0:t.end)},isDragging:T,setDragging:M}}({...E,...V,...S,isDisabled:O,isInvalid:F?!N:void 0,firstDayOfWeek:z,createCalendar:d.Y,onChange:"automatic"===Z?void 0:K,locale:H}),{calendarProps:_,prevButtonProps:G,nextButtonProps:A,title:J}=(a=(0,u.z)(E,q),t=(0,m.useRef)(!1),p=(0,m.useRef)("u">typeof window?window:null),(0,c.z)(p,"pointerdown",e=>{t.current=0===e.width&&0===e.height}),(0,c.z)(p,"pointerup",e=>{if(t.current){t.current=!1;return}if(q.setDragging(!1),!q.anchorDate)return;let a=e.target;U.current&&U.current.contains(document.activeElement)&&(!U.current.contains(a)||!a.closest('button, [role="button"]'))&&q.selectFocusedDate()}),a.calendarProps.onBlur=e=>{U.current&&(!e.relatedTarget||!U.current.contains(e.relatedTarget))&&q.anchorDate&&q.selectFocusedDate()},(0,c.z)(U,"touchmove",e=>{q.isDragging&&e.preventDefault()},{passive:!1,capture:!0}),a);(0,m.useEffect)(()=>{B&&B(q)},[q,B]),function({state:e,selectionMode:a,autoRangeDuration:t,onChange:l}){let n=(0,m.useRef)(null);(0,m.useEffect)(()=>{if("automatic"!==a||!t)return;let s=e.anchorDate;if(!s)return;let r=s.toString();if(r===n.current)return;n.current=r;let i=s.add(t),o={start:s,end:i};e.setValue(o),null==l||l(o),queueMicrotask(()=>{e.setAnchorDate(null),n.current=null})},[e.anchorDate,a,t,l])}({state:q,selectionMode:Z,autoRangeDuration:T,onChange:K});let{root:Q,header:X,monthText:$,button:Y,icon:ee}=(0,o.tv)(j?(0,o.RH)(r.S_,j):r.S_)(),ea=(0,n.cn)("ef-range-calendar",Q(),I);return(0,l.jsxs)("div",{..._,ref:U,className:ea,children:[(0,l.jsx)(g.v,{state:q,title:J,showDropdowns:R,ariaPrevButtonProps:G,ariaNextButtonProps:A,disabled:O,themeConfig:{slots:{root:(0,n.cn)(X()),title:(0,n.cn)($()),button:(0,n.cn)(Y()),icon:(0,n.cn)(ee())}}}),(0,l.jsx)(i.o,{atomValues:[[s.B3,q],[s.eb,{view:"day"}],[s.EQ,{fn:W}]],children:P})]})};V.displayName="RangeCalendar"},90346:function(e,a,t){t.d(a,{f:function(){return p}});
1var l=t(85893),n=t(48399),s=t(4382),r=t(67294),i=t(13794),o=t(87067),d=t(38012),u=t(15607),c=t(47175),m=t(96909),v=t(12479),g=t(89412),b=t(7545);let f=e=>{let{state:a,date:t,themeConfig:i,className:u,tabIndex:c,label:m="",isVisuallyDisabled:f=!1,isDateHighlighted:h=!1,isInFlexibleRange:p=!1,isFirstFlexibleDate:y=!1,isLastFlexibleDate:D=!1,...x}=e,w=(0,r.useRef)(null),{cellProps:k,buttonProps:C,isSelected:V,isOutsideVisibleRange:R,isDisabled:F,isUnavailable:N,formattedDate:P,isInvalid:j}=(0,b.J)({date:t},a,w),O=a.highlightedRange??a.value,I=null!=O&&!!O.start&&(0,v.KC)(t,O.start),B=null!=O&&!!O.end&&(0,v.KC)(t,O.end),S=(0,d.ZQ)(t,a),Z=I&&B?"single":I?"start":B?"end":V||S?"middle":"none",T="none"!==Z,M=I||B,W=(0,d.zk)(t),z=F||N,{root:E,rangeBg:L}=(0,s.tv)(i?(0,s.RH)(o.Jm,i):o.Jm)({rangePosition:Z,isInFlexibleRange:p}),U=(0,n.cn)("ef-range-calendar-cell",E(),u);return(0,l.jsxs)("span",{...k,className:(0,n.cn)(U),"data-in-flexible-range":p||void 0,"data-first-flexible":y||void 0,"data-last-flexible":D||void 0,...x,children:[(0,l.jsx)("span",{className:(0,n.cn)("ef-range-bg",L()),"aria-hidden":"true"}),(0,l.jsx)(g.l,{ref:w,...C,...void 0!==c?{tabIndex:c}:{},label:m,isSelected:M,isDisabled:z,isInvalid:j,isHighlighted:W&&!z&&!f,isDateHighlighted:h,hidden:R,"data-range-position":Z,"data-in-range":T,"data-unavailable":N,themeConfig:i,isInRange:T,isVisuallyDisabled:f,children:P})]})};f.displayName="RangeCalendarCell";var h=t(96974);let p=e=>{var a,t;let{state:v,themeConfig:g,className:b,fixedHeight:p,cellContent:y,flexibleRange:D,highlightedDates:x,minYear:w=100,maxYear:k=10,...C}=e,V=(0,h.Dv)(i.B3),R=(0,h.Dv)(i.W3),{view:F}=(0,h.Dv)(i.eb),{fn:N}=(0,h.Dv)(i.EQ),P=v??V,{root:j,dropdown:O,dayView:I}=(0,s.tv)(g?(0,s.RH)(o.ab,g):o.ab)({view:F}),B=(0,n.cn)("ef-range-calendar-grid",j(),b),{firstFlexibleDate:S,lastFlexibleDate:Z}=(0,r.useMemo)(()=>{var e,a;return(0,d.JK)(P,null==(e=V.value)?void 0:e.start,null==(a=V.value)?void 0:a.end,D)},[D,P,null==(a=V.value)?void 0:a.start,null==(t=V.value)?void 0:t.end]);return(0,l.jsxs)("div",{className:B,children:[(0,l.jsx)(u.y,{className:(0,n.cn)(I()),state:P,themeConfig:g,cellContent:y,fixedHeight:R||p,highlightedDates:x,renderCell:({date:e,state:a,label:t,isDateHighlighted:n})=>{var s,r;let i=e.toString(),o=!!D&&(0,d.D7)(e,null==(s=V.value)?void 0:s.start,null==(r=V.value)?void 0:r.end,D);return(0,l.jsx)(f,{state:a,date:e,label:t,themeConfig:g,isVisuallyDisabled:null==N?void 0:N(e),isDateHighlighted:n,isInFlexibleRange:D?o:void 0,isFirstFlexibleDate:i===S,isLastFlexibleDate:i===Z},i)},...C}),"month"===F?(0,l.jsx)(c.H,{className:(0,n.cn)(O()),state:P,themeConfig:g,...C}):"year"===F?(0,l.jsx)(m.V,{className:(0,n.cn)(O()),state:P,min:w,max:k,themeConfig:g,...C}):null]})};p.displayName="RangeCalendarGrid"},70755:function(e,a,t){t.d(a,{J:function(){return A}});
1var l=t(85893),n=t(67294),s=t(88393),r=t(13178),i=t(96655),o=t(48399),d=t(4382),u=t(86575),c=t(85013),m=t(67350),v=t(74613),g=t(69302),b=t(75077),f=t(47566),h=t(45139),p=t(65274),y=t(13794),D=t(63890);let x=(0,d.c6)({slots:{root:"relative flex h-[56px] flex-1 text-system-text-default",startDateField:"group relative flex items-center rounded-s-sm border-y border-l border-system-stroke-default bg-system-surface-default px-xs py-s hover:border-system-stroke-hover md:px-s",endDateField:"group relative flex flex-1 items-center border-y border-system-stroke-default bg-system-surface-default px-xs py-s hover:border-system-stroke-hover md:px-s",separator:"flex items-center justify-center border-y border-system-stroke-default bg-system-surface-default px-xxs py-s text-system-text-default",calendarButton:(0,D.W)("flex w-xl items-center justify-center rounded-e-sm border border-solid border-system-stroke-default bg-system-surface-default transition-all duration-system-short hover:border-system-stroke-hover hover:bg-system-surface-selected-weak","focus-visible:z-10"),modalCalendarContainer:"pb-2"},variants:{disabled:{true:{startDateField:"pointer-events-none border-system-stroke-disabled bg-system-surface-disabled-weak text-system-text-disabled-default",endDateField:"pointer-events-none border-y-system-stroke-disabled bg-system-surface-disabled-weak text-system-text-disabled-default",separator:"border-y-system-stroke-disabled bg-system-surface-disabled-weak text-system-text-disabled-default",calendarButton:"pointer-events-none border-system-stroke-disabled bg-system-surface-disabled-weak text-system-text-disabled-default"}},hasFloatingLabel:{true:{startDateField:"z-0 pb-xs pt-m",separator:"pb-xs pt-m",endDateField:"z-0 pb-xs pt-m"}},valid:{true:{}},touched:{true:{}},loading:{true:{startDateField:"text-system-text-weak",endDateField:"text-system-text-weak"}}},compoundVariants:[{valid:!1,touched:!0,class:{startDateField:"z-10 border-y-2 border-l-2 border-y-system-stroke-warning-on-weak border-l-system-stroke-warning-on-weak bg-system-surface-warning-weak hover:border-y-system-stroke-warning-on-weak hover:border-l-system-stroke-warning-on-weak",endDateField:"z-10 border-y-2 border-y-system-stroke-warning-on-weak bg-system-surface-warning-weak hover:border-y-system-stroke-warning-on-weak hover:border-r-system-stroke-warning-on-weak",separator:"border-y-2 border-y-system-stroke-warning-on-weak bg-system-surface-warning-weak",calendarButton:"border-2 border-system-stroke-warning-on-weak bg-system-surface-warning-weak"}},{valid:!0,touched:!0,class:{startDateField:"z-10 border-y-2 border-l-2 border-y-system-stroke-success-on-weak border-l-system-stroke-success-on-weak bg-system-surface-success-weak hover:border-y-system-stroke-success-on-weak hover:border-l-system-stroke-success-on-weak",endDateField:"z-10 border-y-2 border-y-system-stroke-success-on-weak bg-system-surface-success-weak hover:border-y-system-stroke-success-on-weak hover:border-r-system-stroke-success-on-weak",separator:"border-y-2 border-y-system-stroke-success-on-weak bg-system-surface-success-weak",calendarButton:"border-2 border-system-stroke-success-on-weak bg-system-surface-success-weak"}}]});var w=t(29398),k=t(43201),C=t(79256),V=t(76121),R=t(6901),F=t(90006),N=t(25286),P=t(61448),j=t(64106),O=t(47717),I=t(19909);function B(e){return(null==e?void 0:e.start)!=null&&null!=e.end}var S=t(74915),Z=t(37247),T=t(40953),M=t(48356),W=t(11214),z=t(25146),E=t(96194),L=t(38346),U=t(54039),H=t(90539),K=t(54181),q=t(73849),_=t(96974);let G=(0,n.forwardRef)((e,a)=>{let{mobilePanelTitle:t,touched:s,valid:r,value:i,currentValue:u,floatingLabel:c,id:D,onBlur:G,onFocus:A,isDisabled:J,disabled:Q,required:X,loading:$,children:Y,className:ee,themeConfig:ea,portalContainer:et,...el}=e,en=function(e){var a,t,l,s;let r=(0,O.d)(e),[i,o]=(0,I.z)(e.value,e.defaultValue||null,e.onChange),[d]=(0,n.useState)(i),[u,c]=(0,n.useState)(()=>i||{start:null,end:null});null==i&&u.start&&u.end&&c(u={start:null,end:null});let m=i||u,v=e=>{c(m=e||{start:null,end:null}),B(m)?o(m):o(null)},g=(null==m?void 0:m.start)||(null==m?void 0:m.end)||e.placeholderValue||null,[b,f]=(0,F.iZ)(g,e.granularity),h="hour"===b||"minute"===b||"second"===b,p=null===(l=e.shouldCloseOnSelect)||void 0===l||l,[y,D]=(0,n.use
1State)(null),[x,w]=(0,n.useState)(null);m&&B(m)&&(y=m,"hour"in m.start&&(x=m));let k=(e,a)=>{v({start:"timeZone"in a.start?a.start.set((0,N.WG)(e.start)):(0,N.IO)(e.start,a.start),end:"timeZone"in a.end?a.end.set((0,N.WG)(e.end)):(0,N.IO)(e.end,a.end)}),D(null),w(null),z.commitValidation()},C=a=>{let t="function"==typeof p?p():p;h?B(a)&&(t||null!=x&&x.start&&null!=x&&x.end)?k(a,{start:(null==x?void 0:x.start)||(0,F.zu)(e.placeholderValue),end:(null==x?void 0:x.end)||(0,F.zu)(e.placeholderValue)}):D(a):B(a)?(v(a),z.commitValidation()):D(a),t&&r.setOpen(!1)},V=e=>{B(y)&&B(e)?k(y,e):w(e)},R=(null==m||null===(a=m.start)||void 0===a?void 0:a.calendar.identifier)==="gregory"&&"BC"===m.start.era||(null==m||null===(t=m.end)||void 0===t?void 0:t.calendar.identifier)==="gregory"&&"BC"===m.end.era,S=(0,n.useMemo)(()=>({granularity:b,timeZone:f,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,shouldForceLeadingZeros:e.shouldForceLeadingZeros,showEra:R}),[b,e.hourCycle,e.shouldForceLeadingZeros,f,e.hideTimeZone,R]),{minValue:Z,maxValue:T,isDateUnavailable:M}=e,W=(0,n.useMemo)(()=>(0,F.MJ)(m,Z,T,M,S),[m,Z,T,M,S]),z=(0,j.Q3)({...e,value:i,name:(0,n.useMemo)(()=>[e.startName,e.endName].filter(e=>null!=e),[e.startName,e.endName]),builtinValidation:W}),E=z.displayValidation.isInvalid,L=e.validationState||(E?"invalid":null);return{...z,value:m,defaultValue:null!==(s=e.defaultValue)&&void 0!==s?s:d,setValue:v,dateRange:y,timeRange:x,granularity:b,hasTime:h,setDate(e,a){var t,l;C("start"===e?{start:a,end:null!==(t=null==y?void 0:y.end)&&void 0!==t?t:null}:{start:null!==(l=null==y?void 0:y.start)&&void 0!==l?l:null,end:a})},setTime(e,a){var t,l;V("start"===e?{start:a,end:null!==(t=null==x?void 0:x.end)&&void 0!==t?t:null}:{start:null!==(l=null==x?void 0:x.start)&&void 0!==l?l:null,end:a})},setDateTime(e,a){var t,l;v("start"===e?{start:a,end:null!==(t=null==m?void 0:m.end)&&void 0!==t?t:null}:{start:null!==(l=null==m?void 0:m.start)&&void 0!==l?l:null,end:a})},setDateRange:C,setTimeRange:V,...r,setOpen(a){!a&&!(null!=m&&m.start&&null!=m&&m.end)&&B(y)&&h&&k(y,{start:(null==x?void 0:x.start)||(0,F.zu)(e.placeholderValue),end:(null==x?void 0:x.end)||(0,F.zu)(e.placeholderValue)}),r.setOpen(a)},validationState:L,isInvalid:E,formatValue(a,t){if(!m||!m.start||!m.end)return null;let l="timeZone"in m.start?m.start.timeZone:void 0,n=e.granularity||(m.start&&"minute"in m.start?"minute":"day"),s="timeZone"in m.end?m.end.timeZone:void 0,r=e.granularity||(m.end&&"minute"in m.end?"minute":"day"),i=(0,F.oE)(t,{granularity:n,timeZone:l,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,showEra:"gregory"===m.start.calendar.identifier&&"BC"===m.start.era||"gregory"===m.end.calendar.identifier&&"BC"===m.end.era}),o=m.start.toDate(l||"UTC"),d=m.end.toDate(s||"UTC"),u=new P.C(a,i),c;if(l===s&&n===r&&0!==m.start.compare(m.end)){try{let e=u.formatRangeToParts(o,d),a=-1;for(let t=0;t<e.length;t++){let l=e[t];if("shared"===l.source&&"literal"===l.type)a=t;else if("endRange"===l.source)break}let t="",l="";for(let n=0;n<e.length;n++)n<a?t+=e[n].value:n>a&&(l+=e[n].value);return{start:t,end:l}}catch{}c=u}else{let l=(0,F.oE)(t,{granularity:r,timeZone:s,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle});c=new P.C(a,l)}return{start:u.format(o),end:c.format(d)}},getDateFormatter(e,a){let t={...S,...a},l=(0,F.oE)({},t);return new P.C(e,l)}}}({...e,isInvalid:!r}),es=(0,n.useRef)(null),er=(0,n.useRef)(null);(0,n.useImperativeHandle)(a,()=>es.current);let[ei]=(0,n.useState)((null==e?void 0:e.locale)||Intl.DateTimeFormat().resolvedOptions().locale),{groupProps:eo,startFieldProps:ed,endFieldProps:eu,buttonProps:ec,dialogProps:em,calendarProps:ev}=function(e,a,t){var l,s,r,i,o,d,u,c;let m=(0,q.q)((c=Z.Z)&&c.__esModule?c.default:c,"@react-aria/datepicker"),{isInvalid:v,validationErrors:g,validationDetails:b}=a.displayValidation,{labelProps:f,fieldProps:h,descriptionProps:p,errorMessageProps:y}=(0,H.U)({...e,labelElementType:"span",isInvalid:v,errorMessage:e.errorMessage||g}),D=h["aria-labelledby"]||h.id,{locale:x}=(0,K.j)(),w=a.formatValue(x,{month:"long"}),k=w?m.format("selectedRangeDescription",{startDate:w.start,endDate:w.end}):"",C=(0,L.P)(k),V={"aria-label":m.format("startDate"),"aria-labelledby":D},R={"aria-label":m.format("endDate"),"aria-labelledby":D},F=(0,W.Me)(),N=(0,W.Me)(),P=(0,T.H)(a,t),O=[C["aria-describedby"],h["aria-describedby"]].filter(
1Boolean).join(" ")||void 0,I=(0,n.useMemo)(()=>(0,M.E7)(t,{accept:e=>e.id!==F}),[t,F]),B={[S.Ff]:I,[S.KX]:"presentation","aria-describedby":O,placeholderValue:e.placeholderValue,hideTimeZone:e.hideTimeZone,hourCycle:e.hourCycle,granularity:e.granularity,shouldForceLeadingZeros:e.shouldForceLeadingZeros,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isRequired:e.isRequired,validationBehavior:e.validationBehavior},_=(0,E.z)(e),G=(0,n.useRef)(!1),{focusWithinProps:A}=(0,U.L)({...e,isDisabled:a.isOpen,onBlurWithin:a=>{let t=document.getElementById(N);if(!(null!=t&&t.contains(a.relatedTarget))){var l,n;G.current=!1,null===(l=e.onBlur)||void 0===l||l.call(e,a),null===(n=e.onFocusChange)||void 0===n||n.call(e,!1)}},onFocusWithin:a=>{if(!G.current){var t,l;G.current=!0,null===(t=e.onFocus)||void 0===t||t.call(e,a),null===(l=e.onFocusChange)||void 0===l||l.call(e,!0)}}}),J=(0,n.useRef)(j.PS),Q=(0,n.useRef)(j.PS);return{groupProps:(0,z.d)(_,P,h,C,A,{role:"group","aria-disabled":e.isDisabled||null,"aria-describedby":O,onKeyDown(t){a.isOpen||e.onKeyDown&&e.onKeyDown(t)},onKeyUp(t){a.isOpen||e.onKeyUp&&e.onKeyUp(t)}}),labelProps:{...f,onClick:()=>{I.focusFirst()}},buttonProps:{...C,id:F,"aria-haspopup":"dialog","aria-label":m.format("calendar"),"aria-labelledby":`${F} ${D}`,"aria-describedby":O,"aria-expanded":a.isOpen,isDisabled:e.isDisabled||e.isReadOnly,onPress:()=>a.setOpen(!0)},dialogProps:{id:N,"aria-labelledby":`${F} ${D}`},startFieldProps:{...V,...B,value:null!==(d=null===(l=a.value)||void 0===l?void 0:l.start)&&void 0!==d?d:null,defaultValue:null===(s=a.defaultValue)||void 0===s?void 0:s.start,onChange:e=>a.setDateTime("start",e),autoFocus:e.autoFocus,name:e.startName,form:e.form,[j.tL]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(e){J.current=e,a.updateValidation((0,j.W0)(e,Q.current))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},endFieldProps:{...R,...B,value:null!==(u=null===(r=a.value)||void 0===r?void 0:r.end)&&void 0!==u?u:null,defaultValue:null===(i=a.defaultValue)||void 0===i?void 0:i.end,onChange:e=>a.setDateTime("end",e),name:e.endName,form:e.form,[j.tL]:{realtimeValidation:a.realtimeValidation,displayValidation:a.displayValidation,updateValidation(e){Q.current=e,a.updateValidation((0,j.W0)(J.current,e))},resetValidation:a.resetValidation,commitValidation:a.commitValidation}},descriptionProps:p,errorMessageProps:y,calendarProps:{autoFocus:!0,value:!(null===(o=a.dateRange)||void 0===o)&&o.start&&a.dateRange.end?a.dateRange:null,onChange:a.setDateRange,minValue:e.minValue,maxValue:e.maxValue,isDisabled:e.isDisabled,isReadOnly:e.isReadOnly,isDateUnavailable:e.isDateUnavailable,allowsNonContiguousRanges:e.allowsNonContiguousRanges,defaultFocusedValue:a.dateRange?void 0:e.placeholderValue,isInvalid:a.isInvalid,errorMessage:"function"==typeof e.errorMessage?e.errorMessage(a.displayValidation):e.errorMessage||a.displayValidation.validationErrors.join(" "),firstDayOfWeek:e.firstDayOfWeek,pageBehavior:e.pageBehavior},isInvalid:v,validationErrors:g,validationDetails:b}}({isDisabled:Q||J,...el},en,es),eg=(0,_.b9)(y.ZX);(0,n.useEffect)(()=>eg({...ev}),[ev,eg]);let{buttonProps:eb}=(0,V.U)({...ec,isDisabled:J||Q,preventFocusOnPress:!0},er),{breakpoint:ef}=(0,w.G)(),eh=(0,w.w)({currentBp:ef,bp:"s",range:"down"}),ep=!!(null!=i&&i.start||null!=i&&i.end),{labelClassName:ey,inputOnFocus:eD,inputOnBlur:ex}=(0,f.O)({onFocus:A,onBlur:G,value:u||(ep?"has-value":""),placeholder:"Select date range",themeConfig:{variants:{active:{true:{root:"translate-y-[-12px] text-ui-label-small"}}}}}),{root:ew,startDateField:ek,endDateField:eC,separator:eV,calendarButton:eR,modalCalendarContainer:eF}=(0,d.tv)(ea?(0,d.RH)(x,ea):x)({disabled:Q,hasFloatingLabel:!!c,valid:r,touched:s,loading:$}),eN=(0,o.cn)("ef-range-date-picker",ew(),ee),eP=c?{onFocus:eD,onBlur:ex}:{};return(0,l.jsxs)(K.b,{locale:ei,children:[(0,l.jsxs)("div",{...eo,ref:es,className:eN,children:[c&&(0,f.T)(D,ey,c,eh?8:16,X),(0,l.jsx)(R.N,{className:(0,o.cn)(ek()),touched:s,...eP,...ed}),(0,l.jsx)("span",{className:(0,o.cn)(eV()),children:"â"}),(0,l.jsx)(R.N,{className:(0,o.cn)(eC()),touched:s,...eP,...eu}),(0,l.jsx)(b.t,{children:(0,l.jsx)("button",{...eb,ref:er,className:(0,o.cn)(eR()),children:(0,l.jsx)(C.R,{weight:"bold"})})})]}),eh?(0,l.jsx)(m.d,{open:en.isOpen,onOpenChange:en.setOpen,title:t??"Select date range",container:null==et?void 0:et.current,children:(0,l.jsx)(k.o,{atomValues:[[y.W3,!0],[y.ZX,ev]],children:(0,l.jsxs)(g.x,{...em,children:[(0,l.jsx)(v.O,{}),(0,l.jsx)("div",{className:(0,o.cn)(eF()),children:Y})]})})}):en.isOpen?(0,l.jsx)(p.z,{triggerRef:es,state:en,placement:"bottom start",portalContainer:et,children:(0,l.jsx)(h.P,{...em,children:(0,l.jsx)(k.o,{atomValues:[[y.W3,!1],[y.ZX,ev]],children:Y})})}):void 0]})});G.displayName="RangeDatePicker";let A=(0,n.forwardRef)((e,a)=>{var t,n,m,v,g,b,f,h,p,y;let{valid:D,loading:x,disabled:w=x,className:k,themeConfig:C,...V}=e,R=(0,d.tv)(u.ge),{isValidAndTouched:F,isInvalidAndTouched:P}=(0,c.jH)(e.touched,D),{markValidation:j}=R({valid:D,touched:e.touched}),{iconInvalid:O,iconValid:I,loadingIndicator:B}=(0,d.tv)(u.xk)({valid:D,validationIconOffset:"xxl"}),S=(0,o.cn)(O(),j()),Z=(0,o.cn)(I(),j()),T=(0,o.cn)("ef-form-range-date-picker",j,k);return(0,l.jsxs)(i.W,{className:T,valid:D,touched:e.touched,required:e.required,description:e.description,label:e.label,themeConfig:C?{slots:{formField:null==(t=C.slots)?void 0:t.formField,formFieldContainer:null==(n=C.slots)?void 0:n.fieldContainer,formLabelDescription:null==(m=C.slots)?void 0:m.formLabelDescription,formLabelRequiredSign:null==(v=C.slots)?void 0:v.formLabelRequiredSign,formLabelWrapper:null==(g=C.slots)?void 0:g.formLabelWrapper}}:void 0,children:[F&&(0,l.jsx)(s.f,{weight:"fill",className:Z}),P&&(0,l.jsx)(r.Q,{weight:"fill",className:S}),x&&(0,l.jsx)("div",{className:(0,o.cn)(B())}),(0,l.jsx)(G,{...V,onChange:e=>{V.onChange&&V.onChange({range:e,value:e?{start:(0,N.IO)(e.start).toString(),end:(0,N.IO)(e.end).toString()}:null})}
1,loading:x,disabled:w,ref:a,valid:D,touched:e.touched,themeConfig:C?{...C,slots:{root:null==(b=C.slots)?void 0:b.root,startDateField:null==(f=C.slots)?void 0:f.startDateField,endDateField:null==(h=C.slots)?void 0:h.endDateField,separator:null==(p=C.slots)?void 0:p.separator,calendarButton:null==(y=C.slots)?void 0:y.calendarButton}}:void 0})]})});A.displayName="FormRangeDatePicker"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.