26 lines
74 KiB
JavaScript
26 lines
74 KiB
JavaScript
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[3895],{21353:e=>{e.exports={container:"container-WDZ0PRNh","container-xxsmall":"container-xxsmall-WDZ0PRNh","container-xsmall":"container-xsmall-WDZ0PRNh","container-small":"container-small-WDZ0PRNh","container-medium":"container-medium-WDZ0PRNh","container-large":"container-large-WDZ0PRNh","intent-default":"intent-default-WDZ0PRNh",focused:"focused-WDZ0PRNh",readonly:"readonly-WDZ0PRNh",disabled:"disabled-WDZ0PRNh","with-highlight":"with-highlight-WDZ0PRNh",grouped:"grouped-WDZ0PRNh","adjust-position":"adjust-position-WDZ0PRNh","first-row":"first-row-WDZ0PRNh","first-col":"first-col-WDZ0PRNh",stretch:"stretch-WDZ0PRNh","font-size-medium":"font-size-medium-WDZ0PRNh","font-size-large":"font-size-large-WDZ0PRNh","no-corner-top-left":"no-corner-top-left-WDZ0PRNh","no-corner-top-right":"no-corner-top-right-WDZ0PRNh","no-corner-bottom-right":"no-corner-bottom-right-WDZ0PRNh","no-corner-bottom-left":"no-corner-bottom-left-WDZ0PRNh","size-xxsmall":"size-xxsmall-WDZ0PRNh","size-xsmall":"size-xsmall-WDZ0PRNh","size-small":"size-small-WDZ0PRNh","size-medium":"size-medium-WDZ0PRNh","size-large":"size-large-WDZ0PRNh","intent-success":"intent-success-WDZ0PRNh","intent-warning":"intent-warning-WDZ0PRNh","intent-danger":"intent-danger-WDZ0PRNh","intent-primary":"intent-primary-WDZ0PRNh","border-none":"border-none-WDZ0PRNh","border-thin":"border-thin-WDZ0PRNh","border-thick":"border-thick-WDZ0PRNh",highlight:"highlight-WDZ0PRNh",shown:"shown-WDZ0PRNh"}},20853:e=>{e.exports={"inner-slot":"inner-slot-W53jtLjw",interactive:"interactive-W53jtLjw",icon:"icon-W53jtLjw","inner-middle-slot":"inner-middle-slot-W53jtLjw","before-slot":"before-slot-W53jtLjw","after-slot":"after-slot-W53jtLjw"}},39017:e=>{e.exports={input:"input-RUSovanF","size-xxsmall":"size-xxsmall-RUSovanF","size-xsmall":"size-xsmall-RUSovanF","size-small":"size-small-RUSovanF","size-medium":"size-medium-RUSovanF","size-large":"size-large-RUSovanF","with-start-slot":"with-start-slot-RUSovanF","with-end-slot":"with-end-slot-RUSovanF"}},71014:e=>{e.exports={"small-height-breakpoint":"(max-height: 360px)",footer:"footer-PhMf7PhQ",submitButton:"submitButton-PhMf7PhQ",buttons:"buttons-PhMf7PhQ"}},84911:e=>{e.exports={calendar:"calendar-N6r5jhbE",popupStyle:"popupStyle-N6r5jhbE",header:"header-N6r5jhbE","flip-horizontal":"flip-horizontal-N6r5jhbE","sub-header":"sub-header-N6r5jhbE","view-month":"view-month-N6r5jhbE","view-year":"view-year-N6r5jhbE","view-decades":"view-decades-N6r5jhbE",weeks:"weeks-N6r5jhbE",week:"week-N6r5jhbE",day:"day-N6r5jhbE",hover:"hover-N6r5jhbE","accent-color":"accent-color-N6r5jhbE","another-month":"another-month-N6r5jhbE","current-day":"current-day-N6r5jhbE","slot-wrapper":"slot-wrapper-N6r5jhbE","hide-focus-ring":"hide-focus-ring-N6r5jhbE","decade-button":"decade-button-N6r5jhbE","visually-hidden":"visually-hidden-N6r5jhbE","grid-row":"grid-row-N6r5jhbE"}},28147:e=>{e.exports={container:"container-PNiXwSz6",icon:"icon-PNiXwSz6",tooltip:"tooltip-PNiXwSz6",date:"date-PNiXwSz6",
|
|
time:"time-PNiXwSz6"}},62797:e=>{e.exports={pickerInput:"pickerInput-P2cJzZdH",icon:"icon-P2cJzZdH",disabled:"disabled-P2cJzZdH",picker:"picker-P2cJzZdH",fixed:"fixed-P2cJzZdH",absolute:"absolute-P2cJzZdH",nativePicker:"nativePicker-P2cJzZdH"}},24219:e=>{e.exports={tooltip:"tooltip-RU08GcsY"}},73547:e=>{e.exports={errors:"errors-UKx97h9K",show:"show-UKx97h9K",error:"error-UKx97h9K","visually-hidden":"visually-hidden-UKx97h9K"}},91940:e=>{e.exports={"error-icon":"error-icon-UhKAouIg","intent-danger":"intent-danger-UhKAouIg","intent-warning":"intent-warning-UhKAouIg"}},79394:e=>{e.exports={desktopTimeInput:"desktopTimeInput-cW0jHi4o"}},18636:e=>{e.exports={wrap:"wrap-NsE0FV0Z",input:"input-NsE0FV0Z"}},21400:e=>{e.exports={icon:"icon-Rubz29lH"}},76329:e=>{e.exports={"static-messages":"static-messages-cF4vS9J8",errors:"errors-cF4vS9J8",warnings:"warnings-cF4vS9J8","success-mesages":"success-mesages-cF4vS9J8","input-description":"input-description-cF4vS9J8",message:"message-cF4vS9J8"}},12725:(e,t,n)=>{"use strict";var s,a,r;function o(e="default"){switch(e){case"default":return"primary";case"stroke":return"secondary"}}function i(e="primary"){switch(e){case"primary":return"brand";case"success":return"green";case"default":return"gray";case"danger":return"red"}}function l(e="m"){switch(e){case"s":return"xsmall";case"m":return"small";case"l":return"large"}}n.d(t,{Button:()=>h}),function(e){e.Primary="primary",e.Success="success",e.Default="default",e.Danger="danger"}(s||(s={})),function(e){e.Small="s",e.Medium="m",e.Large="l"}(a||(a={})),function(e){e.Default="default",e.Stroke="stroke"}(r||(r={}));var c=n(79474),u=n(63459);function d(e){const{intent:t,size:n,appearance:s,useFullWidth:a,icon:r,...c}=e;return{...c,color:i(t),size:l(n),variant:o(s),stretch:a}}function h(e){return c.createElement(u.SquareButton,{...d(e)})}},8120:(e,t,n)=>{"use strict";n.d(t,{LightButton:()=>s.LightButton});n(54571);var s=n(7859);n(79474),n(14232),n(92531),n(71042),n(76284);n(90741)},13621:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>w,InputClasses:()=>f});var s=n(79474),a=n(14487),r=n.n(a),o=n(85842),i=n(9774),l=n(40197),c=n(59794),u=n(67440);var d=n(21353),h=n.n(d);function p(e){let t="";return 0!==e&&(1&e&&(t=r()(t,h()["no-corner-top-left"])),2&e&&(t=r()(t,h()["no-corner-top-right"])),4&e&&(t=r()(t,h()["no-corner-bottom-right"])),8&e&&(t=r()(t,h()["no-corner-bottom-left"]))),t}function m(e,t,n,s){const{removeRoundBorder:a,className:o,intent:i="default",borderStyle:l="thin",size:c,highlight:d,disabled:m,readonly:g,stretch:f,noReadonlyStyles:v,isFocused:D}=e,w=p(a??(0,u.getGroupCellRemoveRoundBorders)(n));return r()(h().container,h()[`container-${c}`],h()[`intent-${i}`],h()[`border-${l}`],c&&h()[`size-${c}`],w,d&&h()["with-highlight"],m&&h().disabled,g&&!v&&h().readonly,D&&h().focused,f&&h().stretch,t&&h().grouped,!s&&h()["adjust-position"],n.isTop&&h()["first-row"],n.isLeft&&h()["first-col"],o)}function g(e,t,n){const{highlight:s,highlightRemoveRoundBorder:a}=e;if(!s)return h().highlight;const o=p(a??(0,
|
|
u.getGroupCellRemoveRoundBorders)(t));return r()(h().highlight,h().shown,h()[`size-${n}`],o)}const f={FontSizeMedium:(0,o.ensureDefined)(h()["font-size-medium"]),FontSizeLarge:(0,o.ensureDefined)(h()["font-size-large"])},v={passive:!1};function D(e,t){const{style:n,id:a,role:r,onFocus:o,onBlur:u,onMouseOver:d,onMouseOut:h,onMouseDown:p,onMouseUp:f,onKeyDown:D,onClick:w,tabIndex:b,startSlot:y,middleSlot:C,endSlot:S,onWheel:F,onWheelNoPassive:E=null,size:M,tag:_="span",type:N}=e,{isGrouped:k,cellState:R,disablePositionAdjustment:x=!1}=(0,s.useContext)(c.ControlGroupContext),I=function(e,t=null,n){const a=(0,s.useRef)(null),r=(0,s.useRef)(null),o=(0,s.useCallback)((()=>{if(null===a.current||null===r.current)return;const[e,t,n]=r.current;null!==t&&a.current.addEventListener(e,t,n)}),[]),i=(0,s.useCallback)((()=>{if(null===a.current||null===r.current)return;const[e,t,n]=r.current;null!==t&&a.current.removeEventListener(e,t,n)}),[]),l=(0,s.useCallback)((e=>{i(),a.current=e,o()}),[]);return(0,s.useEffect)((()=>(r.current=[e,t,n],o(),i)),[e,t,n]),l}("wheel",E,v),T=_;return s.createElement(T,{type:N,style:n,id:a,role:r,className:m(e,k,R,x),tabIndex:b,ref:(0,i.useMergedRefs)([t,I]),onFocus:o,onBlur:u,onMouseOver:d,onMouseOut:h,onMouseDown:p,onMouseUp:f,onKeyDown:D,onClick:w,onWheel:F,...(0,l.filterDataProps)(e),...(0,l.filterAriaProps)(e)},y,C,S,s.createElement("span",{className:g(e,R,M)}))}D.displayName="ControlSkeleton";const w=s.forwardRef(D)},88169:(e,t,n)=>{"use strict";n.d(t,{ControlSkeleton:()=>s.ControlSkeleton,InputClasses:()=>s.InputClasses});var s=n(13621)},78484:(e,t,n)=>{"use strict";n.d(t,{AfterSlot:()=>d,EndSlot:()=>u,MiddleSlot:()=>c,StartSlot:()=>l});var s=n(79474),a=n(14487),r=n.n(a),o=n(20853),i=n.n(o);function l(e){const{className:t,interactive:n=!0,icon:a=!1,children:o}=e;return s.createElement("span",{className:r()(i()["inner-slot"],n&&i().interactive,a&&i().icon,t)},o)}function c(e){const{className:t,children:n}=e;return s.createElement("span",{className:r()(i()["inner-slot"],i()["inner-middle-slot"],t)},n)}function u(e){const{className:t,interactive:n=!0,icon:a=!1,children:o,dataQaId:l}=e;return s.createElement("span",{className:r()(i()["inner-slot"],n&&i().interactive,a&&i().icon,t),"data-qa-id":l},o)}function d(e){const{className:t,children:n,dataQaId:a}=e;return s.createElement("span",{className:r()(i()["after-slot"],t),"data-qa-id":a},n)}},82651:(e,t,n)=>{"use strict";n.d(t,{InputControl:()=>b});var s=n(79474),a=n(14487),r=n.n(a),o=n(29914),i=n(40197),l=n(69550),c=n(26834),u=n(9774),d=n(94530),h=n(55971),p=n(59618),m=n(13621),g=n(78484),f=n(39017),v=n.n(f);function D(e){return!(0,i.isAriaAttribute)(e)&&!(0,i.isDataAttribute)(e)}function w(e){
|
|
const{id:t,title:n,role:a,tabIndex:l,placeholder:c,name:u,type:d,value:h,defaultValue:p,draggable:f,autoComplete:w,autoFocus:b,autoCapitalize:y,autoCorrect:C,maxLength:S,min:F,max:E,step:M,pattern:_,inputMode:N,onSelect:k,onFocus:R,onBlur:x,onKeyDown:I,onKeyUp:T,onKeyPress:P,onChange:A,onDragStart:Y,size:z="small",className:V,inputClassName:B,disabled:L,readonly:O,containerTabIndex:W,startSlot:H,endSlot:K,reference:$,containerReference:Q,onContainerFocus:Z,dataQaId:j,...U}=e,q=(0,i.filterProps)(U,D),J={...(0,i.filterAriaProps)(U),...(0,i.filterDataProps)(U),id:t,title:n,role:a,tabIndex:l,placeholder:c,name:u,type:d,value:h,defaultValue:p,draggable:f,autoComplete:w,autoFocus:b,autoCapitalize:y,autoCorrect:C,maxLength:S,min:F,max:E,step:M,pattern:_,inputMode:N,onSelect:k,onFocus:R,onBlur:x,onKeyDown:I,onKeyUp:T,onKeyPress:P,onChange:A,onDragStart:Y};return s.createElement(m.ControlSkeleton,{...q,disabled:L,readonly:O,tabIndex:W,className:V,size:z,ref:Q,onFocus:Z,startSlot:H,middleSlot:s.createElement(g.MiddleSlot,null,s.createElement("input",{...J,className:r()(v().input,v()[`size-${z}`],B,H&&v()["with-start-slot"],K&&v()["with-end-slot"]),disabled:L,readOnly:O,ref:$,"data-qa-id":(0,o.dataQaIds)("ui-lib-Input-input",j?`${j}-input`:void 0)})),endSlot:K,"data-qa-id":(0,o.dataQaIds)("ui-lib-Input",j)})}function b(e){e=(0,d.useControl)(e);const{disabled:t,autoSelectOnFocus:n,tabIndex:a=0,onFocus:r,onBlur:o,reference:i,containerReference:m=null,dataQaId:g}=e,f=(0,s.useRef)(null),v=(0,s.useRef)(null),[D,b]=(0,h.useFocus)(),y=t?void 0:D?-1:a,C=t?void 0:D?a:-1,{isMouseDown:S,handleMouseDown:F,handleMouseUp:E}=(0,p.useIsMouseDown)(),M=(0,l.createSafeMulticastEventHandler)(b.onFocus,(function(e){n&&!S.current&&(0,c.selectAllContent)(e.currentTarget)}),r),_=(0,l.createSafeMulticastEventHandler)(b.onBlur,o),N=(0,s.useCallback)((e=>{f.current=e,i&&("function"==typeof i&&i(e),"object"==typeof i&&(i.current=e))}),[f,i]);return s.createElement(w,{...e,isFocused:D,containerTabIndex:y,tabIndex:C,onContainerFocus:function(e){v.current===e.target&&null!==f.current&&f.current.focus()},onFocus:M,onBlur:_,reference:N,containerReference:(0,u.useMergedRefs)([v,m]),onMouseDown:F,onMouseUp:E,dataQaId:g})}},94530:(e,t,n)=>{"use strict";n.d(t,{useControl:()=>r});var s=n(69550),a=n(55971);function r(e){const{onFocus:t,onBlur:n,intent:r,highlight:o,disabled:i}=e,[l,c]=(0,a.useFocus)(void 0,i),u=(0,s.createSafeMulticastEventHandler)(i?void 0:c.onFocus,t),d=(0,s.createSafeMulticastEventHandler)(i?void 0:c.onBlur,n);return{...e,intent:r||(l?"primary":"default"),highlight:o??l,onFocus:u,onBlur:d}}},59618:(e,t,n)=>{"use strict";n.d(t,{useIsMouseDown:()=>a});var s=n(79474);function a(){const e=(0,s.useRef)(!1),t=(0,s.useCallback)((()=>{e.current=!0}),[e]),n=(0,s.useCallback)((()=>{e.current=!1}),[e]);return{isMouseDown:e,handleMouseDown:t,handleMouseUp:n}}},26834:(e,t,n)=>{"use strict";function s(e){null!==e&&e.setSelectionRange(0,e.value.length)}n.d(t,{selectAllContent:()=>s})},51349:(e,t,n)=>{"use strict";n.d(t,{AdaptiveConfirmDialog:()=>p})
|
|
;var s,a=n(79474),r=n(14487),o=n.n(r),i=n(12725),l=n(85842),c=n(91599),u=n(23351),d=n(35088),h=n(71014);!function(e){e.Submit="submit",e.Cancel="cancel",e.None="none"}(s||(s={}));class p extends a.PureComponent{constructor(){super(...arguments),this._dialogRef=a.createRef(),this._handleClose=()=>{const{defaultActionOnClose:e,onSubmit:t,onCancel:n,onClose:s}=this.props;switch(e){case"submit":t();break;case"cancel":n()}s()},this._handleCancel=()=>{this.props.cancelButtonDisabled||(this.props.onCancel(),this.props.onClose())},this._handleKeyDown=e=>{const{onSubmit:t,submitButtonDisabled:n,submitOnEnterKey:s}=this.props;13===(0,u.hashFromEvent)(e)&&s&&(e.preventDefault(),n||t())}}render(){const{render:e,onClose:t,onSubmit:n,onCancel:s,footerLeftRenderer:r,submitButtonText:o,submitButtonDisabled:i,cancelButtonDisabled:l,defaultActionOnClose:c,submitOnEnterKey:u,...h}=this.props;return a.createElement(d.AdaptivePopupDialog,{...h,ref:this._dialogRef,onKeyDown:this._handleKeyDown,render:this._renderChildren(),onClose:this._handleClose})}focus(){(0,l.ensureNotNull)(this._dialogRef.current).focus()}_renderChildren(){return e=>{const{render:t,footerLeftRenderer:s,additionalButtons:r,submitButtonText:l,submitButtonDisabled:u,cancelButtonDisabled:d,onSubmit:p,cancelButtonText:m,showCancelButton:g=!0,showSubmitButton:f=!0,submitButtonClassName:v,cancelButtonClassName:D,buttonsWrapperClassName:w,footerClassName:b}=this.props;return a.createElement(a.Fragment,null,t(e),a.createElement("div",{className:o()(h.footer,b)},s&&s(e.isSmallWidth),a.createElement("div",{className:o()(h.buttons,w)},r,g&&a.createElement(i.Button,{className:D,disabled:d,name:"cancel",appearance:"stroke",onClick:this._handleCancel},m??c.t(null,void 0,n(43563))),f&&a.createElement("span",{className:h.submitButton},a.createElement(i.Button,{className:v,disabled:u,name:"submit",onClick:p,"data-name":"submit-button","data-qa-id":"submit-button"},l??c.t(null,void 0,n(8078)))))))}}}p.defaultProps={defaultActionOnClose:"submit",submitOnEnterKey:!0}},84688:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>s,dialogsOpenerManager:()=>a});class s{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const a=new s},67970:(e,t,n)=>{"use strict";n.d(t,{anchors:()=>a});var s;n(79474);!function(e){e.Top="top",e.Bottom="bottom",e.TopRight="topRight"}(s||(s={}));const a={bottom:{attachment:{horizontal:"left",vertical:"top"},targetAttachment:{horizontal:"left",vertical:"bottom"}},top:{attachment:{horizontal:"left",vertical:"bottom"},targetAttachment:{horizontal:"left",vertical:"top"}},topRight:{attachment:{horizontal:"right",vertical:"bottom"},targetAttachment:{horizontal:"right",vertical:"top"}},bottomRight:{attachment:{horizontal:"right",vertical:"top"},targetAttachment:{horizontal:"right",vertical:"bottom"}}}},63979:(e,t,n)=>{"use strict";n.d(t,{CalendarViewType:()=>u,DECADES_YEARS_AMOUNT:()=>p,getCurrentAriaLabel:()=>v,
|
|
getCurrentVisibleTitle:()=>D,getDayAriaLabel:()=>m,getMonths:()=>o,getMonthsShort:()=>i,getNextAriaLabel:()=>f,getNextLiveRegionConfirmation:()=>b,getNextMonth:()=>C,getPrevAriaLabel:()=>g,getPrevLiveRegionConfirmation:()=>w,getSubHeaderDecades:()=>d,getSubHeaderYear:()=>h,getViewTypeLiveRegionConfirmation:()=>y,getWeekDaysMin:()=>a});var s=n(91599);const a=()=>[s.t(null,{context:"day_of_week"},n(65535)),s.t(null,{context:"day_of_week"},n(39329)),s.t(null,{context:"day_of_week"},n(51271)),s.t(null,{context:"day_of_week"},n(28582)),s.t(null,{context:"day_of_week"},n(98459)),s.t(null,{context:"day_of_week"},n(60496)),s.t(null,{context:"day_of_week"},n(69199))],r=()=>[s.t(null,void 0,n(9304)),s.t(null,void 0,n(89394)),s.t(null,void 0,n(56334)),s.t(null,void 0,n(72765)),s.t(null,void 0,n(34671)),s.t(null,void 0,n(18525)),s.t(null,void 0,n(38795))],o=()=>[s.t(null,void 0,n(44784)),s.t(null,void 0,n(33630)),s.t(null,void 0,n(35643)),s.t(null,void 0,n(55852)),s.t(null,void 0,n(49973)),s.t(null,void 0,n(2482)),s.t(null,void 0,n(24689)),s.t(null,void 0,n(59772)),s.t(null,void 0,n(15261)),s.t(null,void 0,n(14501)),s.t(null,void 0,n(71561)),s.t(null,void 0,n(9666))],i=()=>[s.t(null,void 0,n(57374)),s.t(null,void 0,n(17341)),s.t(null,void 0,n(3305)),s.t(null,void 0,n(26785)),s.t(null,void 0,n(49973)),s.t(null,void 0,n(87745)),s.t(null,void 0,n(83959)),s.t(null,void 0,n(93762)),s.t(null,void 0,n(78469)),s.t(null,void 0,n(28337)),s.t(null,void 0,n(46545)),s.t(null,void 0,n(69036))],l={get prevMonth(){return s.t(null,void 0,n(72974))},get nextMonth(){return s.t(null,void 0,n(83794))},get prevYear(){return s.t(null,void 0,n(47279))},get nextYear(){return s.t(null,void 0,n(83928))},get prevDecades(){return s.t(null,void 0,n(18191))},get nextDecades(){return s.t(null,void 0,n(44054))},get selectMonth(){return s.t(null,void 0,n(70542))},get selectYear(){return s.t(null,void 0,n(46228))},get selectDate(){return s.t(null,void 0,n(19565))}},c={get setMonth(){return s.t(null,void 0,n(9857))},get setYear(){return s.t(null,void 0,n(61612))},get setDecades(){return s.t(null,void 0,n(11253))}};var u;!function(e){e.Month="month",e.Year="year",e.Decades="decades"}(u||(u={}));const d=()=>s.t(null,void 0,n(53419)),h=()=>s.t(null,void 0,n(95337)),p=20;function m(e){return`${r()[e.getDay()]} ${e.getDate()} ${o()[e.getMonth()]} ${e.getFullYear()}`}function g(e,t){switch(e){case u.Month:{const e=new Date(t);return e.setMonth(e.getMonth()-1),`${l.prevMonth}, ${o()[e.getMonth()]} ${e.getFullYear()}`}case u.Year:return`${l.prevYear}, ${t.getFullYear()-1}`;case u.Decades:return`${l.prevDecades}, ${t.getFullYear()-p} - ${t.getFullYear()-1}`}}function f(e,t){switch(e){case u.Month:{const e=new Date(t);return e.setMonth(e.getMonth()+1),`${l.nextMonth}, ${o()[e.getMonth()]} ${e.getFullYear()}`}case u.Year:return`${l.nextYear}, ${t.getFullYear()+1}`;case u.Decades:return`${l.nextDecades}, ${t.getFullYear()+p} - ${t.getFullYear()+2*p-1}`}}function v(e,t){switch(e){case u.Month:return`${l.selectMonth}, ${t.getFullYear()}`;case u.Year:
|
|
return`${l.selectYear}, ${t.getFullYear()} - ${t.getFullYear()+p-1}`;case u.Decades:return`${l.selectDate}, ${o()[t.getMonth()]} ${t.getFullYear()}`}}function D(e,t){switch(e){case u.Month:return`${o()[t.getMonth()]} ${t.getFullYear()}`;case u.Year:return`${t.getFullYear()}`;case u.Decades:return`${t.getFullYear()} - ${t.getFullYear()+p-1}`}}function w(e,t){switch(e){case u.Month:{const e=new Date(t);return e.setMonth(e.getMonth()-1),c.setMonth.format({month:o()[e.getMonth()]})}case u.Year:return c.setYear.format({year:""+(t.getFullYear()-1)});case u.Decades:return c.setDecades.format({year_start:""+(t.getFullYear()-p),year_end:""+(t.getFullYear()-1)})}}function b(e,t){switch(e){case u.Month:{const e=C(t);return c.setMonth.format({month:o()[e.getMonth()]})}case u.Year:return c.setYear.format({year:`${t.getFullYear()+1}`});case u.Decades:return c.setDecades.format({year_start:`${t.getFullYear()+p}`,year_end:""+(t.getFullYear()+2*p-1)})}}function y(e,t){switch(e){case u.Month:return c.setYear.format({year:`${t.getFullYear()}`});case u.Year:return c.setDecades.format({year_start:`${t.getFullYear()}`,year_end:""+(t.getFullYear()+p-1)});case u.Decades:return c.setMonth.format({month:o()[t.getMonth()]})}}function C(e){return 11===e.getMonth()?new Date(e.getFullYear()+1,0,1):new Date(e.getFullYear(),e.getMonth()+1,1)}},35297:(e,t,n)=>{"use strict";n.d(t,{Calendar:()=>T});var s=n(79474),a=n(14487),r=n.n(a),o=n(8120),i=n(66334),l=n(61262),c=n(84911);function u(e){const{prevAriaLabel:t,nextAriaLabel:n,currentAriaLabel:a,currentVisibleTitle:r,isNextDisabled:u,isPrevDisabled:d,isViewModeDisabled:h,prevRef:p,middleRef:m,onPrevClick:g,onNextClick:f,onCurrentClick:v,onPrevKeyDown:D,onMiddleKeyDown:w,onHeaderKeyDown:b}=e;return s.createElement("div",{className:c.header,onKeyDown:b},s.createElement(o.LightButton,{startSlot:s.createElement(i.Icon,{icon:l}),onClick:g,size:"small",variant:"ghost","aria-label":t,disabled:d,onKeyDown:D,reference:p}),s.createElement(o.LightButton,{size:"small",variant:"ghost","aria-label":a,onClick:v,disabled:h,onKeyDown:w,reference:m},r),s.createElement(o.LightButton,{startSlot:s.createElement(i.Icon,{icon:l}),onClick:f,size:"small",variant:"ghost","aria-label":n,disabled:u,className:c["flip-horizontal"]}))}var d=n(32438),h=n(84082),p=n(38317),m=n(63979);class g extends s.PureComponent{constructor(){super(...arguments),this._dateFormatter=new h.DateFormatter,this._getVariant=()=>{let e="ghost";return this._withinSelectedRange()&&(e=this.props.isDisabled?"secondary":"quiet-primary"),this._isOnHighlightedEdge()&&this.props.isDisabled&&(e="quiet-primary"),e},this._onClick=()=>{this.props.onClick&&!this.props.isDisabled&&this.props.onClick(new Date(this.props.day))},this._onPointerOver=()=>{this.props.onHover&&!this.props.isDisabled&&this.props.onHover(new Date(this.props.day))},this._onPointerOut=()=>{this.props.onHover&&!this.props.isDisabled&&this.props.onHover(null)}}render(){
|
|
const e=a(c.day,this.props.isDisabled&&c.disabled,!this.props.isDisabled&&(this.props.isSelected||this._isOnHighlightedEdge())&&c["accent-color"],this._withinSelectedRange()&&c["within-selected-range"],this._isCurrentDay()&&c["current-day"],!this.props.showFocusRing&&c["hide-focus-ring"],this.props.isAnotherMonth&&c["another-month"]),t=this.props.isSelected||this._isOnHighlightedEdge()||this._withinSelectedRange(),n=t||this._isCurrentDay();return s.createElement(o.LightButton,{role:"cell",onClick:this._onClick,onPointerOver:this._onPointerOver,onPointerOut:this._onPointerOut,onFocus:this.props.onFocus,size:"small",variant:this._getVariant(),isSelected:n,"data-day":this._dateFormatter.formatLocal(this.props.day),className:a(e,this.props.forceHover&&c.hover),disabled:this.props.isDisabled,reference:this.props.reference,tabIndex:this.props.tabIndex,"aria-label":(0,m.getDayAriaLabel)(this.props.day),"aria-selected":t,"aria-current":this._isCurrentDay()?"date":void 0,"aria-colindex":this.props.ariaColIndex},this.props.day.getDate())}_isOnHighlightedEdge(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&((0,d.isSameDay)(e,t)||(0,d.isSameDay)(e,n))}_withinSelectedRange(){const{day:e,highlightedFrom:t,highlightedTo:n}=this.props;return!(!t||!n)&&this._isBetweenByDay(t,e,n)}_isCurrentDay(){return(0,d.isSameDay)(this.props.todayDate??new Date,this.props.day)}_isBetweenByDay(e,t,n){const s=(0,p.resetToDayStart)(e),a=(0,p.resetToDayStart)(t),r=(0,p.resetToDayStart)(n);return s<a&&a<r}}const f=7;function v(e){const{rowIndex:t,days:n,showFocusRing:a,dateInTabOrder:o,isDisabledDate:i,highlightedFrom:l,highlightedTo:u,setCurrentlyFocused:h,setItemRef:p,selectedDate:m,viewDate:v,onClickDay:D,onDayHover:w,onDayFocus:b,todayDate:y,forceHoverTo:C,forceHoverFrom:S,className:F}=e;return s.createElement("div",{role:"row",className:r()(c.week,F)},n.map(((e,r)=>s.createElement(g,{key:e.toDateString(),day:e,isDisabled:i(e),isSelected:!!m&&(0,d.isSameDay)(e,m),onClick:D,onHover:w,highlightedFrom:l,highlightedTo:u,forceHover:S&&C&&e>=S&&e<=C,reference:p(e),tabIndex:(0,d.isSameDay)(e,o)?0:-1,onFocus:()=>function(e){b?.(e),(0,d.isSameDay)(e,o)&&h(e)}(e),showFocusRing:a,todayDate:y,isAnotherMonth:!(0,d.isSameMonth)(e,v),ariaColIndex:0===t?f-n.length+r+1:void 0}))))}var D=n(10342),w=n(23351);function b({isDisabledDate:e,findDate:t,getFirstDate:n,getLastDate:a,setNext:r,setPrev:o,dateToFocus:i,verticalOffset:l,dateLevel:c}){const[u,h]=(0,D.useRefsMap)(),p=(0,s.useCallback)((t=>t?e(t)?null:t:null),[e]),m=(0,s.useCallback)(((n,s)=>{if(!n)return null;const a=(0,d.getCloneDateWithOffset)({dateFrom:n,offset:s,isDisabledDate:e,level:c});return p(t(a))}),[t,p]),g=(0,s.useCallback)((()=>{const e=n();return p(e)||m(e,1)}),[p,m]),f=(0,s.useCallback)((()=>{const e=a();return p(e)||m(e,-1)}),[p,m]),v=(0,s.useCallback)(((t,n)=>{if(!t)return;const s=(0,d.getCloneDateWithOffset)({dateFrom:t,offset:n,isDisabledDate:e,level:c});s&&(n>0?r(s):o(s))
|
|
}),[e,r,o]),{currentlyFocused:b,setCurrentlyFocused:y,focusItem:C,bindings:S}=function({refsMap:e,verticalOffset:t,getNextKeyToFocus:n,getFirstKey:a,getLastKey:r,onGridEnd:o}){const[i,l]=(0,s.useState)(null),c=(0,s.useCallback)((t=>{if(!t)return;const n=e.current.get(t);n&&(n.focus(),l(t))}),[e]),u=(0,s.useCallback)((e=>{const t=n(i,e);t?c(t):o(i,e)}),[i,n]),d=(0,s.useCallback)((e=>{const n=(0,w.hashFromEvent)(e);if(40===n&&(e.preventDefault(),u(t)),38===n&&(e.preventDefault(),u(-1*t)),39===n&&(e.preventDefault(),u(1)),37===n&&(e.preventDefault(),u(-1)),36===n){e.preventDefault();const t=a();c(t)}if(35===n){e.preventDefault();const t=r();c(t)}}),[i,n]);return{currentlyFocused:i,setCurrentlyFocused:l,focusItem:c,bindings:{onKeyDown:d}}}({refsMap:u,verticalOffset:l,getNextKeyToFocus:m,getFirstKey:g,getLastKey:f,onGridEnd:v});return(0,s.useEffect)((()=>C(p(t(i)))),[i]),{itemsRefs:u,setItemRef:h,ensureNotDisabledDate:p,currentlyFocused:b,setCurrentlyFocused:y,focusItem:C,bindings:S}}function y(e){const{selectedDate:t,viewDate:n,dateToFocus:a,weeks:r,onClickDay:o,setPrevMonth:i,setNextMonth:l,maxDate:u,minDate:h,isDateDisabled:p,showFocusRing:g,highlightedFrom:f,highlightedTo:D,isDisabled:w,focusableDateRef:y,onDayHover:C,onDayFocus:S,todayDate:F,forceHoverFrom:E,forceHoverTo:M,weekClassName:_}=e,N=(0,s.useCallback)((e=>{if(!e)return null;let t=null;return r.find((({days:n})=>(t=n.find((t=>(0,d.isSameDay)(t,e))),t))),t}),[r]),k=(0,s.useCallback)((()=>r[0].days[0]),[r]),R=(0,s.useCallback)((()=>{const e=r[r.length-1].days;return e[e.length-1]}),[r]),x=(0,s.useCallback)((e=>w||(0,d.isDayDisabled)({day:e,minDate:h,maxDate:u,isDateDisabled:p})),[h,u,p,w]),{itemsRefs:I,setItemRef:T,currentlyFocused:P,setCurrentlyFocused:A,bindings:Y}=b({isDisabledDate:x,findDate:N,getFirstDate:k,getLastDate:R,setPrev:i,setNext:l,dateToFocus:a,verticalOffset:7,dateLevel:"day"}),z=(0,d.getDateInTabOrder)({selectedDate:t??new Date,dateToFocus:a,currentlyFocused:P,firstEnabledDate:(0,d.getFirstEnabledDay)(r,x),getFirstDate:k,getLastDate:R,isDisabledDate:x});return(0,s.useEffect)((()=>{y.current=z&&I.current.get(z)||null}),[z,y]),s.createElement(s.Fragment,null,s.createElement("div",{className:c["sub-header"],"aria-hidden":!0},(0,m.getWeekDaysMin)().map((e=>s.createElement("span",{key:e},e)))),s.createElement("div",{className:c["view-month"],tabIndex:-1,...Y},s.createElement("div",{role:"grid",className:c.weeks},r.map(((e,a)=>s.createElement(v,{className:_,key:e.week,rowIndex:a,setCurrentlyFocused:A,setItemRef:T,dateInTabOrder:z,days:e.days,onDayFocus:S,onDayHover:C,isDisabledDate:x,selectedDate:t,viewDate:n,onClickDay:o,highlightedFrom:f,highlightedTo:D,showFocusRing:g,todayDate:F,forceHoverFrom:E,forceHoverTo:M}))))))}var C=n(98862);const S=3;function F(e){const{months:t,selectedDate:n,maxDate:a,minDate:r,showFocusRing:i,dateToFocus:l,isDisabled:u,focusableDateRef:h,onSelect:p,setPrevYear:g,setNextYear:f}=e,v=(0,s.useCallback)((e=>u||!(0,d.isInRange)(e,r,a,"month")),[r,a,u]),D=(0,s.useCallback)((e=>{if(!e)return null;let n=null
|
|
;return t.find((({date:t})=>(n=(0,d.isSameMonth)(e,t)?t:null,n))),n}),[t]),w=(0,s.useCallback)((()=>t[0].date),[t]),y=(0,s.useCallback)((()=>t[t.length-1].date),[t]),{itemsRefs:F,setItemRef:E,currentlyFocused:M,setCurrentlyFocused:_,bindings:N}=b({isDisabledDate:v,findDate:D,getFirstDate:w,getLastDate:y,setPrev:g,setNext:f,verticalOffset:S,dateToFocus:l,dateLevel:"month"}),k=(0,d.getDateInTabOrder)({selectedDate:n,dateToFocus:l,currentlyFocused:M,firstEnabledDate:(0,d.getFirstEnabledMonth)(t,v),getFirstDate:w,getLastDate:y,isDisabledDate:v});(0,s.useEffect)((()=>{h.current=k&&F.current.get(k)||null}),[k,h]);const R=(0,s.useMemo)((()=>(0,C.default)(t,S)),[t]);return s.createElement(s.Fragment,null,s.createElement("div",{className:c["sub-header"],"aria-hidden":!0},s.createElement("span",null,(0,m.getSubHeaderYear)())),s.createElement("div",{role:"grid",className:c["view-year"],...N},R.map(((e,t)=>s.createElement("div",{key:t,role:"row",className:c["grid-row"]},e.map((({title:e,ariaLabel:t,date:a})=>{const r=(0,d.isSameMonth)(a,n),l=v(a),u=r?"quiet-primary":"ghost";return s.createElement(o.LightButton,{key:a.toDateString(),role:"cell",size:"small",variant:u,disabled:l,isSelected:r,className:!i&&c["hide-focus-ring"],onClick:()=>p(a),reference:E(a),tabIndex:(0,d.isSameMonth)(a,k)?0:-1,onFocus:(0,d.isSameMonth)(a,k)?()=>_(a):void 0,"aria-label":`${t} ${a.getFullYear()}`,"aria-selected":r},e)})))))))}const E=4;function M(e){const{years:t,selectedDate:n,dateToFocus:a,maxDate:i,minDate:l,showFocusRing:u,isDisabled:h,focusableDateRef:p,onSelect:g,setPrevDecades:f,setNextDecades:v}=e,D=(0,s.useCallback)((e=>h||!(0,d.isInRange)(e,l,i,"year")),[l,i,h]),w=(0,s.useCallback)((e=>e&&t.find((t=>(0,d.isSameYear)(e,t)))||null),[t]),y=(0,s.useCallback)((()=>t[0]),[t]),S=(0,s.useCallback)((()=>t[t.length-1]),[t]),{itemsRefs:F,setItemRef:M,currentlyFocused:_,setCurrentlyFocused:N,bindings:k}=b({isDisabledDate:D,findDate:w,getFirstDate:y,getLastDate:S,setPrev:f,setNext:v,dateToFocus:a,verticalOffset:E,dateLevel:"year"}),R=(0,d.getDateInTabOrder)({selectedDate:n,dateToFocus:a,currentlyFocused:_,firstEnabledDate:(0,d.getFirstEnabledYear)(t,D),getFirstDate:y,getLastDate:S,isDisabledDate:D});(0,s.useEffect)((()=>{p.current=R&&F.current.get(R)||null}),[R,p]);const x=(0,s.useMemo)((()=>(0,C.default)(t,E)),[t]);return s.createElement(s.Fragment,null,s.createElement("div",{className:c["sub-header"],"aria-hidden":!0},s.createElement("span",null,(0,m.getSubHeaderDecades)())),s.createElement("div",{role:"grid",className:c["view-decades"],...k},x.map(((e,t)=>s.createElement("div",{key:t,role:"row",className:c["grid-row"]},e.map((e=>{const t=e.getFullYear(),a=(0,d.isSameYear)(e,n),i=D(e),l=a?"quiet-primary":"ghost";return s.createElement(o.LightButton,{key:e.toDateString(),role:"cell",size:"small",variant:l,disabled:i,isSelected:a,className:r()(c["decade-button"],!u&&c["hide-focus-ring"]),onClick:()=>g(e),reference:M(e),tabIndex:(0,d.isSameYear)(e,R)?0:-1,onFocus:(0,d.isSameYear)(e,R)?()=>N(e):void 0,"aria-selected":a},t)})))))))}
|
|
function _({selectedDate:e,autoFocus:t,showFocusRing:n,minDate:a,maxDate:r,onSelect:o,onMonthSwitch:i,onYearSwitch:l,onDecadesSwitch:c,onViewTypeChange:u,fullSixWeeks:h}){const[g,f]=(0,s.useState)(e),[v,D]=(0,s.useState)(m.CalendarViewType.Month),[w,b]=(0,s.useState)(t?e:null),y=(0,s.useMemo)((()=>(0,d.getDecadesStart)(g)),[g]),C=(0,s.useCallback)((e=>{const t=new Date(g),n=(0,m.getNextMonth)(g),s=new Date(n.getFullYear(),n.getMonth()+e,0).getDate(),a=g.getDate()>s?s:g.getDate();t.setMonth(t.getMonth()+e,a),f(t),i&&i(t)}),[g,i]),S=(0,s.useCallback)((e=>{const t=new Date(g);t.setFullYear(t.getFullYear()+e),f(t),l&&l(t)}),[g,l]),F=(0,s.useCallback)((e=>{const t=new Date(y);t.setFullYear(t.getFullYear()+e),f(t),c&&c(t)}),[y,g,c]),E=(0,s.useCallback)(((e,t)=>{switch(t&&b(t),v){case m.CalendarViewType.Month:return C(1*e);case m.CalendarViewType.Year:return S(1*e);case m.CalendarViewType.Decades:return F(e*m.DECADES_YEARS_AMOUNT)}}),[v,C,S,F]),M=(0,s.useCallback)((e=>E(-1,e)),[E]),_=(0,s.useCallback)((e=>E(1,e)),[E]),N=(0,s.useCallback)((()=>{const e=Object.values(m.CalendarViewType);let t=e.indexOf(v)+1;t>=e.length&&(t=0),D(e[t]),u&&u(e[t])}),[v]),k=(0,s.useCallback)((e=>{f(new Date(e)),o&&o(new Date(e))}),[o]),R=(0,s.useCallback)((e=>{const t=new Date(g);t.setMonth(e.getMonth()),(0,d.isSameMonth)(t,e)||t.setMonth(e.getMonth(),1),f(t);const n=new Date(w||g);n.setMonth(e.getMonth()),(0,d.isSameMonth)(n,e)||n.setMonth(e.getMonth(),1),b(n),D(m.CalendarViewType.Month)}),[g,o,N]),x=(0,s.useCallback)((e=>{const t=new Date(g);t.setFullYear(e.getFullYear()),f(t);const n=new Date(w||g);n.setFullYear(e.getFullYear()),b(n),D(m.CalendarViewType.Year)}),[g,o,N]),I=(0,s.useMemo)((()=>(0,d.getWeeks)(g,h)),[g,h]),T=(0,s.useMemo)((()=>function(e){return(0,m.getMonthsShort)().map(((t,n)=>{const s=(0,p.resetToMonthStart)(e);return s.setMonth(n),{title:t,ariaLabel:(0,m.getMonths)()[n],date:s}}))}(g)),[g]),P=(0,s.useMemo)((()=>function(e){const t=[];for(let n=0;n<m.DECADES_YEARS_AMOUNT;n++){const s=new Date(e);s.setFullYear(e.getFullYear()+n),t.push(s)}return t}(y)),[y]),A=(0,s.useMemo)((()=>{switch(v){case m.CalendarViewType.Month:{const e=I[I.length-1].days,t=new Date(e[e.length-1]);return t.setDate(t.getDate()+1),!(0,d.isInRange)(t,a,r)}case m.CalendarViewType.Year:{const e=new Date(T[T.length-1].date);return e.setMonth(e.getMonth()+1),!(0,d.isInRange)(e,a,r,"month")}case m.CalendarViewType.Decades:{const e=new Date(P[P.length-1]);return e.setFullYear(e.getFullYear()+1),!(0,d.isInRange)(e,a,r,"year")}}}),[v,a,r,I,T,P]),Y=(0,s.useMemo)((()=>{switch(v){case m.CalendarViewType.Month:{const e=new Date(I[0].days[0]);return e.setDate(e.getDate()-1),!(0,d.isInRange)(e,a,r)}case m.CalendarViewType.Year:{const e=new Date(T[0].date);return e.setMonth(e.getMonth()-1),!(0,d.isInRange)(e,a,r,"month")}case m.CalendarViewType.Decades:{const e=new Date(P[0]);return e.setFullYear(e.getFullYear()-1),!(0,d.isInRange)(e,a,r,"year")}}}),[v,a,r,I,T,P]);return(0,s.useEffect)((()=>{!w&&n&&t&&b(e),n||b(null)}),[t,e,w,n]),{viewDate:g,setViewDate:f,viewType:v,
|
|
setViewType:D,dateToFocus:w,weeks:I,months:T,years:P,isNextDisabled:A,isPrevDisabled:Y,setPrev:M,setNext:_,switchViewType:N,onClickDay:k,onClickMonth:R,onClickYear:x}}class N{constructor(e,t=[]){this._messagesQueue=[],this._alternate=!1,this._renderedMessage=null,this._idCounter=0,this._containers=[...t],this._type=e}setContainers(e){this._containers=[...e]}addMessage(e,t=0){const n=this._generateId(),s={id:n,message:e,destroyTimeout:this._calculateDestroyTimeout(e,t)};return this._messagesQueue.push(s),this._renderedMessage||this._renderMessage(),{...s,type:this._type,destroy:this._getDestroyMessageCallback(n)}}destroyAll(){this._messagesQueue=[],clearTimeout(this._renderedMessage?.destroyTimer),this._containers.forEach((e=>{e.innerText=""})),this._renderedMessage=null,this._alternate=!1}_generateId(){return`live-region-${this._type}-${this._idCounter++}`}_calculateDestroyTimeout(e,t=0){const n=50*e.trim().length+200,s=250*e.trim().length;return Math.min(Math.max(n,t),s)}_findById(e){return this._renderedMessage?.id===e?this._renderedMessage:this._messagesQueue.find((t=>t.id===e))}_getDestroyMessageCallback(e){return async t=>{const n=this._findById(e);return!!n&&(n.renderedTo?!!t&&(this._removeRenderedMessage(),this._renderMessage(),!0):(this._removeFromQueue(n),!0))}}_removeRenderedMessage(){const e=this._renderedMessage?.renderedTo;e&&(e.innerText=""),this._renderedMessage=null}_removeFromQueue(e){this._messagesQueue=this._messagesQueue.filter((t=>t!==e))}async _renderMessage(){if(!this._containers.length||!this._messagesQueue.length)return;const e=this._alternate?this._containers[0]:this._containers[1],t=this._messagesQueue.shift();let n;e.innerText=t.message;const s=new Promise(((e,s)=>{n=setTimeout((()=>{if(this._renderedMessage?.id===t.id)return this._removeRenderedMessage(),void this._renderMessage().then(e);s("Currently rendered message is not the one that you 're trying to destroy")}),t.destroyTimeout)}));this._renderedMessage={...t,renderedTo:e,destroyTimer:n,destroyPromise:s},this._alternate=!this._alternate}}class k extends N{}const R=new class{constructor(){this.isInited=!1,this._politeQueue=new k("polite"),this._assertiveQueue=new k("assertive")}renderTo(e,t=!1){return t&&this.destroy(),this._init(e)}destroy(){this._politeQueue.destroyAll(),this._assertiveQueue.destroyAll(),this.isInited=!1}sayPolitely(e,t){return this.isInited?this._politeQueue.addMessage(e,t):null}interrupt(e,t){return this.isInited?this._assertiveQueue.addMessage(e,t):null}_init(e){if(!e)return!1;if(this.isInited)return!1;return!!this._setContainers(e)&&(this.isInited=!0,!0)}_setContainers(e){const t=document.getElementById(e);if(!t)return!1;const n=t.querySelectorAll('[aria-live="polite"]'),s=t.querySelectorAll('[aria-live="assertive"]');return!(!n||2!==n.length||!s||2!==s.length)&&(this._politeQueue.setContainers([n[0],n[1]]),this._assertiveQueue.setContainers([s[0],s[1]]),!0)}};var x;function I({viewType:e,decadesStartYear:t,viewDate:n,setPrev:a,setNext:r,switchViewType:o}){const[i,l]=(0,s.useState)(null),c=(0,
|
|
s.useCallback)((e=>{i&&i.destroy(),l(R.sayPolitely(e))}),[i,l]);return{onPrevClick:(0,s.useCallback)((()=>{c((0,m.getPrevLiveRegionConfirmation)(e,e===m.CalendarViewType.Decades?t:n)),a(null)}),[a,c]),onNextClick:(0,s.useCallback)((()=>{c((0,m.getNextLiveRegionConfirmation)(e,e===m.CalendarViewType.Decades?t:n)),r(null)}),[r,c]),onSwitchViewType:(0,s.useCallback)((s=>{c((0,m.getViewTypeLiveRegionConfirmation)(e,e===m.CalendarViewType.Year?t:n)),o(s)}),[o,c])}}function T(e){const{selectedDate:t,maxDate:n,minDate:r,className:o,weekClassName:i,isDateDisabled:l,highlightedFrom:d,highlightedTo:h,todayDate:p,popupStyle:g=!0,showFocusRing:f=!1,autoFocus:v=!1,isDisabled:D=!1,withFocusTrap:b=!1,endSlot:C,onSelect:S,onMonthSwitch:E,onYearSwitch:N,onDecadesSwitch:k,onViewTypeChange:R,focusTriggerElement:x,fullSixWeeks:T,onDayHover:P,onDayFocus:A,forceHoverTo:Y,forceHoverFrom:z,calendarRef:V,dataQaId:B}=e,[L,O]=(0,s.useState)(f),W=(0,s.useCallback)((()=>O(!0)),[O]);(0,s.useEffect)((()=>{f&&O(!0)}),[f]);const H=(0,s.useCallback)((e=>{x&&38===(0,w.hashFromEvent)(e)&&(e.preventDefault(),e.stopPropagation(),O(!1),x())}),[x]),K=t??new Date,{viewDate:$,setViewDate:Q,viewType:Z,setViewType:j,dateToFocus:U,weeks:q,months:J,years:G,isNextDisabled:X,isPrevDisabled:ee,setPrev:te,setNext:ne,switchViewType:se,onClickDay:ae,onClickMonth:re,onClickYear:oe}=_({selectedDate:K,minDate:r,maxDate:n,autoFocus:v,showFocusRing:L,onMonthSwitch:E,onYearSwitch:N,onDecadesSwitch:k,onViewTypeChange:R,onSelect:S,fullSixWeeks:T}),{focusableDateRef:ie,prevRef:le,middleRef:ce,onPrevKeyDown:ue,onMiddleKeyDown:de,forwardFocusToStart:he}=function({withFocusTrap:e,isPrevDisabled:t}){const n=(0,s.useRef)(null),a=(0,s.useCallback)((t=>{e&&w.Modifiers.Shift+9===(0,w.hashFromEvent)(t)&&(t.preventDefault(),n.current?.focus())}),[e]),r=(0,s.useCallback)((e=>{t||a(e)}),[t,a]),o=(0,s.useCallback)((e=>{t&&a(e)}),[t,a]),i=(0,s.useRef)(null),l=(0,s.useRef)(null),c=(0,s.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),t?l.current?.focus():i.current?.focus()}),[t]);return{focusableDateRef:n,prevRef:i,middleRef:l,onPrevKeyDown:r,onMiddleKeyDown:o,forwardFocusToStart:c}}({withFocusTrap:b,isPrevDisabled:ee}),pe=(0,s.useMemo)((()=>G[0]),[G]),{onPrevClick:me,onNextClick:ge,onSwitchViewType:fe}=I({viewType:Z,decadesStartYear:pe,viewDate:$,setPrev:te,setNext:ne,switchViewType:se});return(0,s.useImperativeHandle)(V,(()=>({focus(){ee?ce.current?.focus():le.current?.focus()},setViewDate:Q,setViewType:j})),[ee]),s.createElement("div",{className:a(c.calendar,g&&c.popupStyle,o),tabIndex:-1,onKeyDown:W,"data-qa-id":B},s.createElement(u,{prevAriaLabel:(0,m.getPrevAriaLabel)(Z,Z===m.CalendarViewType.Decades?pe:$),nextAriaLabel:(0,m.getNextAriaLabel)(Z,Z===m.CalendarViewType.Decades?pe:$),currentAriaLabel:(0,m.getCurrentAriaLabel)(Z,Z===m.CalendarViewType.Year?pe:$),currentVisibleTitle:(0,m.getCurrentVisibleTitle)(Z,Z===m.CalendarViewType.Decades?pe:$),onPrevClick:me,onNextClick:ge,onPrevKeyDown:ue,onMiddleKeyDown:de,onHeaderKeyDown:H,onCurrentClick:fe,isNextDisabled:D||X,
|
|
isPrevDisabled:D||ee,isViewModeDisabled:D,prevRef:le,middleRef:ce}),Z===m.CalendarViewType.Month&&s.createElement(y,{weeks:q,selectedDate:t,viewDate:$,dateToFocus:U,maxDate:n,minDate:r,onClickDay:ae,isDateDisabled:l,highlightedFrom:d,highlightedTo:h,setPrevMonth:te,setNextMonth:ne,showFocusRing:L,isDisabled:D,focusableDateRef:ie,todayDate:p,onDayHover:P,onDayFocus:A,forceHoverFrom:z,forceHoverTo:Y,weekClassName:i}),Z===m.CalendarViewType.Year&&s.createElement(F,{months:J,selectedDate:K,dateToFocus:U,maxDate:n,minDate:r,onSelect:re,setPrevYear:te,setNextYear:ne,showFocusRing:L,isDisabled:D,focusableDateRef:ie}),Z===m.CalendarViewType.Decades&&s.createElement(M,{years:G,selectedDate:K,dateToFocus:U,maxDate:n,minDate:r,onSelect:oe,setPrevDecades:te,setNextDecades:ne,showFocusRing:L,isDisabled:D,focusableDateRef:ie}),s.createElement("div",{className:c["slot-wrapper"]},C),b&&s.createElement("div",{tabIndex:0,onFocus:he}))}!function(e){e.Assertive="assertive",e.Polite="polite"}(x||(x={}))},34720:(e,t,n)=>{"use strict";n.d(t,{DatePicker:()=>M});var s=n(91599),a=n(79474),r=n(14487),o=n(56688),i=n(72445),l=n(84082),c=n(35297),u=n(85842),d=n(66334),h=n(19308),p=n(84874),m=n(78484),g=n(61726),f=n(64888),v=n(23351),D=n(62797);class w extends a.PureComponent{constructor(e){super(e),this._input=null,this._inputContainer=null,this._popupContainer=null,this._handleFocus=e=>{this.props.showOnFocus&&this.props.onShowPicker(),this.props.onFocus?.(e)},this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._handleContainerRef=e=>{this._inputContainer=e},this._onShowPicker=e=>{if(this._popupContainer=e,e&&this._inputContainer){const t=e.getBoundingClientRect(),n=this._inputContainer.getBoundingClientRect();t.width&&t.width>window.innerWidth-n.left?(e.style.right="0",e.style.left="auto"):(e.style.right="auto",e.style.left=`${n.left}px`);const s=window.innerHeight-n.bottom,a=n.top;if(s>=t.height)return void(e.style.top=`${n.bottom}px`);e.style.top="auto",e.style.bottom=a<t.height?"0":`${s+n.height}px`}},this._onChange=()=>{const e=(0,u.ensureNotNull)(this._input).value;this.setState({value:e}),this.props.onType(e)},this._onKeyDown=e=>{this.props.hideOnKeyDown&&this.props.onHidePicker(),this.props.onKeyDown&&this.props.onKeyDown(e)},this._onKeyPress=e=>{if(e.charCode){const t=String.fromCharCode(e.charCode);this.props.inputRegex.test(t)||e.preventDefault()}},this._onKeyUp=e=>{if(8!==e.keyCode){const e=(0,u.ensureNotNull)(this._input).value,t=this.props.fixValue(e);t!==e&&this.setState({value:t})}},this._handleDropdownKeydown=e=>{27===(0,v.hashFromEvent)(e)&&(this._input?.focus(),this.props.onHidePicker())},this._onBlur=e=>{this._popupContainer&&this._popupContainer.contains(e.relatedTarget)||this._inputContainer&&this._inputContainer.contains(e.relatedTarget)||this.props.onBlur?.(e)},this.state={value:e.value??"",updateValueKey:e.updateValueKey}}render(){const{position:e="fixed",className:t,size:n,disabled:s,readonly:o,errors:i,icon:l,InputComponent:c=h.FormInput}=this.props
|
|
;return a.createElement("div",{className:D.pickerInput,ref:this._handleContainerRef,onBlur:this._onBlur},a.createElement(c,{value:this.state.value,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onChange:this._onChange,onFocus:this._handleFocus,onClick:this.props.onShowPicker,reference:this._handleInputRef,className:r(t,s&&D.disabled),size:n,disabled:s,errors:i,messagesPosition:p.MessagesPosition.Attached,hasErrors:this.props.showErrorMessages&&i&&i.length>0,name:this.props.name,readonly:o,endSlot:i&&i.length?void 0:a.createElement(m.EndSlot,null,a.createElement(d.Icon,{icon:l,className:D.icon,onClick:s||o?void 0:this.props.onShowPicker})),"data-name":this.props.name,placeholder:this.props.placeholder,dataQaId:this.props.dataQaId}),this.props.showPicker&&!o?a.createElement(f.Portal,{top:"0",left:"0",right:"0",bottom:"0",pointerEvents:"none"},a.createElement(g.OutsideEvent,{mouseDown:!0,handler:this.props.onHidePicker},(t=>a.createElement("span",{ref:t,style:{pointerEvents:"auto"}},a.createElement("div",{className:r(D.picker,D[e]),key:"0",ref:this._onShowPicker,onKeyDown:this._handleDropdownKeydown},this.props.children))))):null)}static getDerivedStateFromProps(e,t){return e.updateValueKey!==t.updateValueKey?{value:e.value??"",updateValueKey:e.updateValueKey}:null}}w.defaultProps={showOnFocus:!0};class b extends a.PureComponent{constructor(e){super(e),this._input=null,this._nativeInputRef=a.createRef(),this._handleInputRef=e=>{this._input=e,this.props.inputReference&&this.props.inputReference(this._input)},this._onFocus=()=>{this.setState({isFocused:!0})},this._onBlur=()=>{this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value),this.setState({isFocused:!1})},this._onChange=e=>{const{value:t}=e.target;t&&(this.setState({value:t}),this.props.onChange(t))},this.state={value:e.value,isFocused:!1}}componentDidMount(){this._nativeInputRef.current&&(this._nativeInputRef.current.defaultValue=this.props.value)}render(){const{className:e,containerClassName:t,disabled:n,errors:s,InputComponent:o=h.FormInput}=this.props,i=!this.props.readonly&&!n,l=this.props.showErrorMessages&&s&&s.length>0;return a.createElement("div",{className:r(D.pickerInput,t)},a.createElement(o,{value:this.props.value,readonly:!0,noReadonlyStyles:!0,endSlot:s&&s.length?void 0:a.createElement(m.EndSlot,null,a.createElement(d.Icon,{icon:this.props.icon,className:r(D.icon,n&&D.disabled)})),className:e,inputClassName:D.textInput,size:this.props.size,disabled:n,hasErrors:l,errors:s,alwaysShowAttachedErrors:!0,messagesPosition:p.MessagesPosition.Attached,name:i?void 0:this.props.name,reference:this._handleInputRef,highlight:this.state.isFocused,intent:!l&&this.state.isFocused?"primary":void 0}),i&&a.createElement("input",{ref:this._nativeInputRef,type:this.props.type,className:D.nativePicker,onChange:this._onChange,onInput:this._onChange,min:this.props.min,max:this.props.max,name:this.props.name,onFocus:this._onFocus,onBlur:this._onBlur}))}}var y=n(32438),C=n(11463),S=n(88169),F=n(16455),E=n(66101)
|
|
;class M extends a.PureComponent{constructor(e){super(e),this._pickerInpuRef=a.createRef(),this._onPickerInputKeyDown=e=>{const t=(0,v.hashFromEvent)(e);if([v.Modifiers.Shift+9,9].includes(t))this._hideCalendar();else{if(40===t||38===t)return e.preventDefault(),this._showCalendar(),void this.setState({autofocusCalendar:!0});13===t&&this.props.onEnter&&this.props.onEnter(e),this._hideCalendar()}},this._returnFocusToInput=e=>{this.setState({autofocusCalendar:!1}),this._pickerInpuRef.current?.focus(),e&&this._hideCalendar()},this._fixValue=e=>(e=(e=e.substring(0,10)).replace(/-+/g,"-"),(/^\d{4}$/.test(e)||/^\d{4}-\d{2}$/.test(e))&&(e+="-"),e),this._isValid=e=>{const t=M._dateFormatter.parse(e);if(t.res&&/^[0-9]{4}(-[0-9]{2}){2}$/.test(t.value)){const e=new Date(t.value);return!(0,y.isInvalidDateObj)(e)&&(!!(this.props.noRangeValidation||i.mobiletouch&&o.isIOS)||(0,y.isInRange)(e,this.props.minDate,this.props.maxDate))}return!1},this._onBlur=e=>{this.props.revertInvalidData&&!this._isValid(e.target.value)&&this.setState((e=>{if(!e.isInvalid)return this.props.onPick(e.date),e;const t=new Date(this.state.date);return this.props.onPick(t),{pickerInputValueKey:e.pickerInputValueKey+1,date:t,isInvalid:!1}}))},this._onType=e=>{let t=this._isValid(e)?new Date(e.concat("T00:00")):null;t&&isNaN(t.valueOf())&&(t=null),t?this.setState({date:t,isInvalid:!1}):this.setState({isInvalid:!0}),this.props.onPick(t)},this._onSelect=e=>{this.setState((t=>({date:e,showCalendar:!1,isInvalid:!1,pickerInputValueKey:t.pickerInputValueKey+1}))),this._returnFocusToInput(!0),this.props.onPick(e)},this._showCalendar=()=>{this.setState({showCalendar:!0})},this._hideCalendar=()=>{this.setState({showCalendar:!1,autofocusCalendar:!1})},this._getErrors=()=>{const e=this.props.errors?[...this.props.errors]:[];return this.state.isInvalid&&e.push(s.t(null,void 0,n(98440))),e};const t=new Date,r=e.initial??t;this.state={pickerInputValueKey:0,date:r,showCalendar:!1,isInvalid:!this._isValid(M._dateFormatter.formatLocal(r)),autofocusCalendar:!1,initial:r}}componentDidMount(){C.globalCloseDelegate.subscribe(this,this._handleGlobalClose)}componentWillUnmount(){C.globalCloseDelegate.unsubscribe(this,this._handleGlobalClose)}render(){const e=this.props.endSlotComponent,t=(0,F.mergeRefs)([this._pickerInpuRef,this.props.inputReference]);return i.mobiletouch?a.createElement(b,{value:M._dateFormatter.formatLocal(this.state.date),type:"date",onChange:this._onType,icon:E,disabled:this.props.disabled,size:this.props.size,min:this.props.minDate&&M._dateFormatter.formatLocal(this.props.minDate),max:this.props.maxDate&&M._dateFormatter.formatLocal(this.props.maxDate),errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,className:r(this._getFontSizeClassName(this.props.size),this.props.className),containerClassName:this.props.containerClassName,inputReference:this.props.inputReference,InputComponent:this.props.InputComponent}):a.createElement("div",{className:this.props.containerClassName},a.createElement(w,{
|
|
value:this.props.initial?M._dateFormatter.formatLocal(this.state.date):"",inputRegex:/[0-9.]/,fixValue:this._fixValue,onType:this._onType,onBlur:this._onBlur,onShowPicker:this._showCalendar,onHidePicker:this._hideCalendar,showPicker:this.state.showCalendar&&this.props.withCalendar,showOnFocus:this.props.showOnFocus,icon:E,disabled:this.props.disabled,size:this.props.size,errors:this._getErrors(),showErrorMessages:this.props.showErrorMessages,name:this.props.name,readonly:this.props.readonly,position:this.props.position,className:r(this._getFontSizeClassName(this.props.size),this.props.className),inputReference:t,InputComponent:this.props.InputComponent,onKeyDown:this._onPickerInputKeyDown,onFocus:this.props.onFocus,placeholder:"YYYY-MM-DD",dataQaId:this.props.dataQaId?`${this.props.dataQaId} ui-lib-date-picker-anchor`:void 0,updateValueKey:this.state.pickerInputValueKey},a.createElement(c.Calendar,{selectedDate:this.props.initial?this.state.date:null,maxDate:this.props.maxDate,minDate:this.props.minDate,onSelect:this._onSelect,endSlot:e&&a.createElement(e,{onSelectDate:this._onSelect}),autoFocus:this.state.autofocusCalendar,showFocusRing:this.state.autofocusCalendar,focusTriggerElement:this._returnFocusToInput,withFocusTrap:!0,dataQaId:this.props.dataQaId?`${this.props.dataQaId} ui-lib-date-picker-calendar`:void 0})))}static getDerivedStateFromProps(e,t){const n=new Date,s=e.initial??n;return M._dateFormatter.formatLocal(t.initial)!==M._dateFormatter.formatLocal(s)?{...t,date:s,initial:s,pickerInputValueKey:t.pickerInputValueKey+1}:null}_getFontSizeClassName(e){return e?"large"===e?S.InputClasses.FontSizeLarge:S.InputClasses.FontSizeMedium:void 0}_handleGlobalClose(){this._hideCalendar()}}M.defaultProps={position:"fixed",withCalendar:!0},M._dateFormatter=new l.DateFormatter},24180:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_INPUT_DATE_THEME:()=>p,DateInput:()=>m});var s=n(79474),a=n(91599),r=n(66334),o=n(78484),i=n(19308),l=n(14487),c=n.n(l),u=n(24219);function d(e){const{className:t,text:n}=e;return s.createElement("span",{className:c()(u.tooltip,t)},n)}var h=n(4434);const p=n(28147);function m(e){const{hasErrors:t,onClick:l,errors:c,className:u,theme:m=p,...g}=e;return s.createElement("div",{className:m.container,onClick:l},s.createElement(i.FormInput,{...g,className:m.date,hasErrors:t,errors:[],endSlot:!t&&s.createElement(o.EndSlot,{icon:!0,interactive:!1},s.createElement(r.Icon,{icon:h,className:m.icon}))}),t&&s.createElement(d,{text:a.t(null,void 0,n(53647)),className:m.tooltip}))}},38317:(e,t,n)=>{"use strict";function s(e){const t=new Date(e);return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),t}function a(e){const t=new Date(e);return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),t}function r(e,t=!1){const n=s(e),a=t?function(e){if(e>6)throw new Error("Invalid day is provided");return 0===e?6:e-1}(n.getDay()):n.getDay();return n.setDate(n.getDate()-a),n}function o(e){const t=s(e);return t.setDate(1),t}function i(e){const t=o(e);return t.setMonth(0),t}n.d(t,{
|
|
resetToDayEnd:()=>a,resetToDayStart:()=>s,resetToMonthStart:()=>o,resetToWeekStart:()=>r,resetToYearStart:()=>i})},32438:(e,t,n)=>{"use strict";n.d(t,{addLocalTime:()=>f,getCloneDateWithOffset:()=>S,getDateInTabOrder:()=>F,getDecadesStart:()=>v,getFirstEnabledDay:()=>b,getFirstEnabledMonth:()=>y,getFirstEnabledYear:()=>C,getWeeks:()=>D,isDayDisabled:()=>w,isInRange:()=>h,isInvalidDateObj:()=>p,isSameDay:()=>o,isSameMonth:()=>i,isSameYear:()=>l,subtractLocalTime:()=>g,twoDigitsFormat:()=>r});var s,a=n(38317);function r(e){return("0"+e).slice(-2)}function o(e,t){return!!t&&Number((0,a.resetToDayStart)(e))===Number((0,a.resetToDayStart)(t))}function i(e,t){return!!t&&Number((0,a.resetToMonthStart)(e))===Number((0,a.resetToMonthStart)(t))}function l(e,t){return!!t&&Number((0,a.resetToYearStart)(e))===Number((0,a.resetToYearStart)(t))}function c(e){const t=new Date(e.getFullYear(),0,1),n=(Number(e)-Number(t))/864e5;return Math.ceil((n+t.getDay()+1)/7)}function u(e){const t=new Date(e);return t.setDate(t.getDate()+7),t}!function(e){e.Day="day",e.Month="month",e.Year="year"}(s||(s={}));const d={day:a.resetToDayStart,month:a.resetToMonthStart,year:a.resetToYearStart};function h(e,t,n,s="day"){const a=d[s],r=!t||Number(a(t))-Number(a(e))<=0;return(!n||Number(a(n))-Number(a(e))>=0)&&r}function p(e){return Number.isNaN(Number(e))}function m(e){return new Date(e).getTimezoneOffset()/60}function g(e){const t=new Date(e);return t.setHours(t.getHours()+m(t)),t}function f(e){const t=new Date(e);return t.setHours(t.getHours()-m(t)),t}function v(e){const t=e.getFullYear()%10*-1,n=new Date(e);return n.setFullYear(e.getFullYear()+t),n}function D(e,t){const n=[];let s=(0,a.resetToWeekStart)((0,a.resetToMonthStart)(e),!0);for(let a=0;a<6;a++){const a=[];for(let n=0;n<7;n++){const r=new Date(s);r.setDate(r.getDate()+n),(i(r,e)||t)&&a.push(r)}a.length&&n.push({week:c(s),days:a}),s=new Date(u(s))}return n}function w({day:e,minDate:t,maxDate:n,isDateDisabled:s}){return!h(e,t,n)||!!s&&s(e)}function b(e,t){return function n(s=0,a=0){if(!e[s]||!e[s].days[a])return;const r=e[s].days,o=r[a];return t(o)?a+1<r.length?n(s,a+1):n(s+1,0):o}()}function y(e,t){return function n(s=0){if(!e[s])return;const a=e[s].date;return t(a)?n(s+1):a}()}function C(e,t){return function n(s=0){if(!e[s])return;const a=e[s];return t(a)?n(s+1):a}()}function S({dateFrom:e,offset:t,level:n="day",maxIterations:s=6,isDisabledDate:a=()=>!1}){return function e(r,o=0){const i=new Date(r);switch(n){case"day":i.setDate(i.getDate()+t);break;case"month":i.setMonth(i.getMonth()+t);break;case"year":i.setFullYear(i.getFullYear()+t)}const l=a(i);return o>s||!l?l?null:i:e(i,o+1)}(e)}function F({selectedDate:e,dateToFocus:t,currentlyFocused:n,firstEnabledDate:s,getFirstDate:a,getLastDate:r,isDisabledDate:o}){const i=h(e,a(),r(),"day")&&!o(e)?e:null,l=t&&h(t,a(),r(),"day")&&!o(t)?t:null;return(n&&h(n,a(),r(),"day")&&!o(n)?n:null)||i||l||s}},53530:(e,t,n)=>{"use strict";n.d(t,{hoverMouseEventFilter:()=>o,useAccurateHover:()=>i,useHover:()=>a,useHoverDeprecated:()=>r});var s=n(79474)
|
|
;function a(){const[e,t]=(0,s.useState)(!1);return[e,{onMouseEnter:function(e){t(!0)},onMouseLeave:function(e){t(!1)}}]}function r(){const[e,t]=(0,s.useState)(!1);return[e,{onMouseOver:function(e){o(e)&&t(!0)},onMouseOut:function(e){o(e)&&t(!1)}}]}function o(e){return!e.currentTarget.contains(e.relatedTarget)}function i(e){const[t,n]=(0,s.useState)(!1);return(0,s.useEffect)((()=>{const t=t=>{if(null===e.current)return;const s=e.current.contains(t.target);n(s)};return document.addEventListener("mouseover",t),()=>document.removeEventListener("mouseover",t)}),[]),t}},90632:(e,t,n)=>{"use strict";n.d(t,{useSafeMatchMedia:()=>s.useSafeMatchMedia});var s=n(11763)},19308:(e,t,n)=>{"use strict";n.d(t,{FormInput:()=>c});var s=n(79474),a=n(82651),r=n(84874),o=n(78484),i=n(69550),l=n(9774);function c(e){const{intent:t,onFocus:n,onBlur:c,onMouseOver:u,onMouseOut:d,containerReference:h=null,endSlot:p,hasErrors:m,hasWarnings:g,hasSuccessMessages:f,errors:v,warnings:D,successMessages:w,alwaysShowAttachedErrors:b,iconHidden:y,messagesPosition:C,messagesAttachment:S,customErrorsAttachment:F,messagesRoot:E,inheritMessagesWidthFromTarget:M,disableMessagesRtlStyles:_,"aria-required":N,"aria-invalid":k,"aria-label":R,inputDescription:x,dataQaId:I,...T}=e,P=(0,r.useControlValidationLayout)({hasErrors:m,hasWarnings:g,hasSuccessMessages:f,errors:v,warnings:D,successMessages:w,alwaysShowAttachedErrors:b,iconHidden:y,messagesPosition:C,messagesAttachment:S,customErrorsAttachment:F,messagesRoot:E,inheritMessagesWidthFromTarget:M,disableMessagesRtlStyles:_,inputDescription:x}),A=(0,i.createSafeMulticastEventHandler)(n,P.onFocus),Y=(0,i.createSafeMulticastEventHandler)(c,P.onBlur),z=(0,i.createSafeMulticastEventHandler)(u,P.onMouseOver),V=(0,i.createSafeMulticastEventHandler)(d,P.onMouseOut);return s.createElement(s.Fragment,null,s.createElement(a.InputControl,{...T,intent:P.intent??t,onFocus:A,onBlur:Y,onMouseOver:z,onMouseOut:V,containerReference:(0,l.useMergedRefs)([h,P.containerReference]),endSlot:s.createElement(s.Fragment,null,P.icon&&s.createElement(o.EndSlot,{dataQaId:"validation-input-icon",icon:!0},P.icon),p),"aria-required":N,"aria-invalid":k,"aria-describedby":P.ariaIds,"aria-label":R,dataQaId:I}),P.renderedErrors)}},10530:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>O});var s=n(45958),a=n(79474),r=n(14487),o=n.n(r),i=n(85842),l=n(29914),c=n(69550),u=n(78484),d=n(82651),h=n(66334),p=n(21400),m=n(44024);function g(e){return a.createElement(h.Icon,{className:p.icon,icon:m})}var f=n(55971),v=n(18636);var D=n(60135),w=n(9774),b=n(4138),y=n(85728);const C={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function S(e,t,n){const s=[],a=n;let r=0,o=0;const i=e.length,l=a.length;let c=-1,u=0;const d=[],h=i-1,p=[];let m;for(;r<i&&o<l;){const n=e.charAt(r),i=a.charAt(o),l=C[n];l?(i.match(l.pattern)?(s.push(i),l.recursive&&(-1===c?c=r:r===h&&r!==c&&(r=c-1),h===c&&(r-=1)),r+=1):i===m?(u--,m=void 0):l.optional?(r+=1,o-=1):l.fallback?(s.push(l.fallback),r+=1,
|
|
o-=1):p.push({p:o,v:i,e:l.pattern}),o+=1):(t||s.push(n),i===n?(d.push(o),o+=1):(m=n,d.push(o+u),u++),r+=1)}const g=e.charAt(h);i!==l+1||C[g]||s.push(g);const f=s.join(""),v=function(e,t){const n=0,s={};for(let e=0;e<t.length;e++)s[t[e]+n]=1;return s}(0,d);return[f,v,p]}function F(e,t,n){const s=function(e){let t=!0;for(let n=0;n<e.length;n++){const s=C[e.charAt(n)];if(s&&s.recursive){t=!1;break}}return t?e.length:void 0}(e),[r,o]=S(e,!1,t),[l,c]=(0,a.useState)(r),[u,d]=(0,a.useState)(0),[h,p]=(0,a.useState)(!1),m=(0,a.useRef)(o),g=(0,a.useRef)(l);return(0,a.useEffect)((()=>{const[n,s]=S(e,!1,t);c(n),f(s)}),[t,e]),(0,a.useLayoutEffect)((()=>{const e=(0,i.ensureNotNull)(n.current);h&&(e.setSelectionRange(u,u),p(!1)),d(E(e))}),[h]),[t,g,{onChange:function(){const t=(0,i.ensureNotNull)(n.current),s=t.value,[a,r]=S(e,!1,s);c(a),g.current=a;const o=f(r),h=function(e,t,n,s,a,r){if(e!==t){const o=t.length,i=e.length;let l=0,c=0,u=0,d=0,h=0;for(h=s;h<o&&a[h];h++)c++;for(h=s-1;h>=0&&a[h];h--)l++;for(h=s-1;h>=0;h--)a[h]&&u++;for(h=n-1;h>=0;h--)r[h]&&d++;if(s>i)s=10*o;else if(n>=s&&n!==i){if(r[s]){const e=s;s-=d-u,a[s-=l]&&(s=e)}}else s>n&&(s+=u-d,s+=c)}return s}(l,a,u,E(t),r,o);d(h),p(!0)},onSelect:function(){const e=(0,i.ensureNotNull)(n.current);d(E(e))},maxLength:s}];function f(e){const t=m.current;return m.current=e,t}}function E(e){return e.selectionStart||0}function M(e){const{value:t,mask:n,onChange:s,...r}=e,o=(0,a.useRef)(null),[i,l,c]=F(n,t,o);return(0,a.useLayoutEffect)((()=>{void 0!==e.reference&&(e.reference.current=o.current)}),[e.reference]),a.createElement(d.InputControl,{...r,maxLength:c.maxLength,value:i,autoComplete:"off",reference:function(e){o.current=e},onChange:function(){c.onChange(),s(l.current)},onSelect:c.onSelect})}var _=n(23351),N=n(29344),k=n(1642),R=n(21515),x=n(84874),I=n(79394);const T=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[s,a]=[B(t.toString()),B(n.toString())],r=`${s}:${a}`,o=z(r)?r:V(r);e.push(o)}return e})();const P="desktop_time_input_item";function A(e){if(void 0!==e)return`${P}_${e}`}function Y(e){const[t="",n=""]=e.split(":"),[s,a]=[B(t),L(n)];return`${s}:${a}`}function z(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function V(e){const[t,n]=e.split(":"),[s,a]=[(0,y.clamp)(parseInt(t),0,23),(0,y.clamp)(parseInt(n),0,59)],[r,o]=[B(s.toString()),L(a.toString())];return`${r}:${o}`}function B(e){return e.slice(0,2).padStart(2,"0")}function L(e){return e.slice(0,2).padEnd(2,"0")}const O=s.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:s,className:r,dataQaId:h,...p}=e,m=(0,a.useRef)(null),[D,w]=(0,f.useFocus)(),b=(0,c.createSafeMulticastEventHandler)(w.onBlur,(function(){m.current&&s&&(m.current.defaultValue=s)}));return(0,a.useLayoutEffect)((()=>{m.current&&s&&(m.current.defaultValue=s)}),[]),(0,a.useLayoutEffect)((()=>{m.current&&s&&(m.current.value=s)}),[s]),a.createElement("div",{"data-qa-id":"time-input-wrapper",className:o()(v.wrap,r)},a.createElement(d.InputControl,{...p,type:"text",endSlot:a.createElement(u.EndSlot,{icon:!0
|
|
},a.createElement(g,null)),value:s,highlight:D,intent:D?"primary":void 0,onFocus:function(e){(0,i.ensureNotNull)(m.current).focus(),n&&n(e)},onChange:function(){},dataQaId:(0,l.dataQaIds)("time-input",h)}),a.createElement("input",{...w,disabled:e.disabled,className:v.input,type:"time",onBlur:b,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:m}))}:function(e){const{openPopupByFocus:t=!0}=e,[s,r]=(0,a.useState)(t);let d=!1;const h=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useRef)(null),v=(0,a.useRef)(null),[C,S]=(0,f.useFocus)(),[F,E]=(0,a.useState)(e.value),P=Y(F),B=z(P)?P:V(P),[L,O]=(0,a.useState)(B),W=C||te().some((e=>null!==e&&e.contains(document.activeElement)));(0,a.useLayoutEffect)((()=>E(e.value)),[e.value]),(0,a.useLayoutEffect)((()=>O(B)),[F,W]),(0,a.useEffect)((()=>ne(L===B?"auto":"smooth")),[L]);const H=W&&s,K=(0,R.lowerbound)(T,B,((e,t)=>e<t));let $=T;T[K]!==B&&($=[...T],$.splice(K,0,B));const Q=(0,b.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:function(e){null!==p.current&&W&&e.target instanceof Node&&null!==m.current&&!m.current.contains(e.target)&&p.current.blur()}}),Z=(0,x.useControlValidationLayout)({hasErrors:e.showErrorMessages&&P!==B,messagesPosition:x.MessagesPosition.Attached,errors:[D.t(null,{context:"time_input"},n(52922))]}),j=(0,c.createSafeMulticastEventHandler)((function(t){setTimeout(se,0),e.onFocus?.(t)}),Z.onFocus),U=(0,c.createSafeMulticastEventHandler)((function(e){X(e)||(r(t),q(F))}),Z.onBlur);return a.createElement("div",{className:o()(e.className,I.desktopTimeInput),onKeyDown:function(e){if(e.defaultPrevented)return;const n=(0,_.hashFromEvent)(e.nativeEvent);if(38===n){if(e.preventDefault(),H){const e=($.indexOf(L)+$.length-1)%$.length;O($[e])}t||r(!0)}if(40===n){if(e.preventDefault(),H){const e=($.indexOf(L)+$.length+1)%$.length;O($[e])}t||r(!0)}},onFocus:function(e){X(e)||S.onFocus(e)},onBlur:function(e){X(e)||S.onBlur(e)},onClick:function(){t||r(!0)},ref:Q,"data-qa-id":"time-input-wrapper"},a.createElement(M,{dataQaId:(0,l.dataQaIds)("time-input",e.dataQaId),role:"combobox",disabled:e.disabled,name:e.name,endSlot:a.createElement(u.EndSlot,{icon:!0},Z.icon??a.createElement(g,null)),reference:p,containerReference:(0,w.useMergedRefs)([h,Z.containerReference]),mask:"09:00",value:F,onFocus:j,onBlur:U,onMouseOver:Z.onMouseOver,onMouseOut:Z.onMouseOut,onChange:function(t){E(t),e.onInput&&e.onInput(t)},onKeyDown:function(n){if(n.defaultPrevented)return;const s=(0,_.hashFromEvent)(n.nativeEvent);13===s&&(n.preventDefault(),q(L),e.keepFocusOnKeyBoardNavigation||(0,i.ensureNotNull)(p.current).blur(),t||r(!1));27===s&&(n.preventDefault(),e.keepFocusOnKeyBoardNavigation||(0,i.ensureNotNull)(p.current).blur(),t||r(!1))},"aria-activedescendant":A(L),intent:Z.intent}),Z.renderedErrors,a.createElement(N.PopupMenu,{role:"listbox",onOpen:function(){ne()},onClose:function(){},position:function(){const e=(0,i.ensureNotNull)(h.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,n=e.top;let s=231,a=e.bottom;if(s>n&&s>t){const r=(0,y.clamp)(s,0,n),o=(0,
|
|
y.clamp)(s,0,t);s=Math.max(r,o),a=r>o?e.top-r:e.bottom}else s>t&&(a=e.top-s);return{x:e.left,y:a,overrideWidth:e.width,overrideHeight:s}},closeOnClickOutside:!1,isOpened:H,tabIndex:-1,reference:m},$.map((e=>a.createElement(k.PopupMenuItem,{key:e,id:A(e),role:"option",label:e,isActive:e===B,"aria-selected":e===B,isHovered:e===L,reference:e===L?J:void 0,onClick:G,onClickArg:e})))));function q(t){const n=Y(t),s=z(n)?n:V(n);E(s),d||(d=!0,e.onChange(s))}function J(e){v.current=e}function G(e){q((0,i.ensureDefined)(e)),(0,i.ensureNotNull)(m.current).blur()}function X(e){return C&&(null!==ee(document.activeElement)||null!==ee(e.relatedTarget))}function ee(e){return e instanceof Node&&te().find((t=>null!==t&&t.contains(e)))||null}function te(){return[m.current,p.current]}function ne(e="auto"){if(null!==v.current){const t=(0,i.ensureNotNull)(m.current).getBoundingClientRect(),n=v.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&v.current.scrollIntoView({behavior:e})}}function se(){const e=p.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}},84874:(e,t,n)=>{"use strict";n.d(t,{MessagesPosition:()=>F,useControlValidationLayout:()=>T});var s=n(79474),a=n(14487);function r(e,t){(0,s.useEffect)((()=>(t&&t(e),()=>{t&&t(e)})),[])}var o=n(55971),i=n(53530),l=n(78484),c=n(67970),u=n(43514),d=n(29365);var h=n(73547),p=n(81458);class m extends s.PureComponent{render(){const{children:e=[],show:t=!1,customErrorClass:n,disableRtlStyles:r,messageIdCallback:o,dataQaId:i}=this.props,l=a(h.errors,{[h.show]:t},n),c=e.map(((e,t)=>s.createElement(D,{key:t,messageIdCallback:o},e)));let u={position:"absolute",top:this.props.top,width:this.props.width,height:this.props.height,bottom:void 0!==this.props.bottom?this.props.bottom:"100%",right:void 0!==this.props.right?this.props.right:0,left:this.props.left,zIndex:this.props.zIndex,maxWidth:this.props.maxWidth};if((0,p.isRtl)()&&!r){const{left:e,right:t}=u;u={...u,left:t,right:e}}return s.createElement("div",{"data-qa-id":i,style:u,className:l},c)}}const g=(0,u.makeOverlapable)((f=m,(v=class extends s.PureComponent{constructor(e){super(e),this._getComponentInstance=e=>{this._instance=e},this._throttleCalcProps=()=>{requestAnimationFrame((()=>this.setState(this._calcProps(this.props))))},this.state=this._getStateFromProps()}componentDidMount(){this._instanceElem=d.findDOMNode(this._instance),this.props.attachOnce||this._subscribe(),this.setState(this._calcProps(this.props))}componentDidUpdate(e){e.children===this.props.children&&e.top===this.props.top&&e.left===this.props.left&&e.width===this.props.width||this.setState(this._getStateFromProps(),(()=>this.setState(this._calcProps(this.props))))}render(){return s.createElement("div",{style:{position:"absolute",width:"100%",top:0,left:0}},s.createElement(f,{...this.props,ref:this._getComponentInstance,top:this.state.top,bottom:void 0!==this.state.bottom?this.state.bottom:"auto",right:void 0!==this.state.right?this.state.right:"auto",left:this.state.left,width:this.state.width,maxWidth:this.state.maxWidth
|
|
},this.props.children))}componentWillUnmount(){this._unsubsribe()}_getStateFromProps(){return{bottom:this.props.bottom,left:this.props.left,right:this.props.right,top:void 0!==this.props.top?this.props.top:-1e4,width:this.props.inheritWidthFromTarget?this.props.target&&this.props.target.getBoundingClientRect().width:this.props.width,maxWidth:this.props.inheritMaxWidthFromTarget&&this.props.target&&this.props.target.getBoundingClientRect().width}}_calcProps(e){if(e.target&&e.attachment&&e.targetAttachment){const t=this._calcTargetProps(e.target,e.attachment,e.targetAttachment);if(null===t)return{};const{width:n,inheritWidthFromTarget:s=!0,inheritMaxWidthFromTarget:a=!1}=this.props,r={width:s?t.width:n,maxWidth:a?t.width:void 0};switch(e.attachment.vertical){case"bottom":case"middle":r.top=t.y;break;default:r[e.attachment.vertical]=t.y}switch(e.attachment.horizontal){case"right":case"center":r.left=t.x;break;default:r[e.attachment.horizontal]=t.x}return r}return{}}_calcTargetProps(e,t,n){const s=e.getBoundingClientRect(),a=this._instanceElem.getBoundingClientRect(),r="parent"===this.props.root?this._getCoordsRelToParentEl(e,s):this._getCoordsRelToDocument(s);if(null===r)return null;const o=this._getDimensions(a),i=this._getDimensions(s).width;let l=0,c=0;switch(t.vertical){case"top":c=r[n.vertical];break;case"bottom":c=r[n.vertical]-o.height;break;case"middle":c=r[n.vertical]-o.height/2}switch(t.horizontal){case"left":l=r[n.horizontal];break;case"right":l=r[n.horizontal]-o.width;break;case"center":l=r[n.horizontal]-o.width/2}return"number"==typeof this.props.attachmentOffsetY&&(c+=this.props.attachmentOffsetY),"number"==typeof this.props.attachmentOffsetX&&(l+=this.props.attachmentOffsetX),{x:l,y:c,width:i}}_getCoordsRelToDocument(e){const t=pageYOffset,n=pageXOffset,s=e.top+t,a=e.bottom+t,r=e.left+n;return{top:s,bottom:a,left:r,right:e.right+n,middle:(s+e.height)/2,center:r+e.width/2}}_getCoordsRelToParentEl(e,t){const n=e.offsetParent;if(null===n)return null;const s=n.scrollTop,a=n.scrollLeft,r=e.offsetTop+s,o=e.offsetLeft+a,i=t.width+o;return{top:r,bottom:t.height+r,left:o,right:i,middle:(r+t.height)/2,center:(o+t.width)/2}}_getDimensions(e){return{height:e.height,width:e.width}}_subscribe(){"document"===this.props.root&&(window.addEventListener("scroll",this._throttleCalcProps,!0),window.addEventListener("resize",this._throttleCalcProps))}_unsubsribe(){window.removeEventListener("scroll",this._throttleCalcProps,!0),window.removeEventListener("resize",this._throttleCalcProps)}}).displayName="Attachable Component",v));var f,v;function D(e){const{children:t,messageIdCallback:n,...a}=e;return s.createElement("div",{...a,className:h.error},t)}function w(e){const{children:t,messageIdCallback:n,...a}=e,o=s.useId();return r(o,n),s.createElement("span",{...a,className:h["visually-hidden"],id:o},t)}var b=n(66334),y=n(77437),C=n(91940);function S(e){const{intent:t="danger"}=e;return s.createElement(b.Icon,{icon:y,className:a(C["error-icon"],C[`intent-${t}`])})}var F,E,M=n(76329);!function(e){e[e.Attached=0]="Attached",
|
|
e[e.Static=1]="Static",e[e.Hidden=2]="Hidden"}(F||(F={})),function(e){e.Top="top",e.Bottom="bottom"}(E||(E={}));const _={top:{attachment:c.anchors.topRight.attachment,targetAttachment:c.anchors.topRight.targetAttachment,attachmentOffsetY:-4},bottom:{attachment:c.anchors.bottomRight.attachment,targetAttachment:c.anchors.bottomRight.targetAttachment,attachmentOffsetY:4}};function N(e){const{isOpened:t,target:n,errorAttachment:a=E.Top,customErrorsAttachment:r,root:o="parent",inheritWidthFromTarget:i=!1,disableRtlStyles:l,children:c,messageIdCallback:u,dataQaId:d}=e,{attachment:h,targetAttachment:p,attachmentOffsetY:m}=r??_[a];return s.createElement(s.Fragment,null,s.createElement(g,{isOpened:t,target:r?.target??n,root:o,inheritWidthFromTarget:i,attachment:h,targetAttachment:p,attachmentOffsetY:m,disableRtlStyles:l,messageIdCallback:u,inheritMaxWidthFromTarget:!0,show:!0,dataQaId:d},c),s.createElement(w,{messageIdCallback:u},c))}function k(e,t){return Boolean(e)&&void 0!==t&&t.length>0}function R(e,t,n){return e===F.Attached&&k(t,n)}function x(e,t,n){return e===F.Static&&k(t,n)}function I(e,t,n){const{hasErrors:s,hasWarnings:a,hasSuccessMessages:r,alwaysShowAttachedErrors:o,iconHidden:i,errors:l,warnings:c,successMessages:u,messagesPosition:d=F.Static}=e,h=R(d,s,l),p=R(d,a,c),m=h&&(t||n||Boolean(o)),g=!m&&p&&(t||n),f=x(d,s,l),v=!f&&x(d,a,c),D=!f&&!v&&x(d,r,u),w=!i&&Boolean(s),b=!i&&!w&&Boolean(a),y=function(e,t,n){return Boolean(n)?"success":Boolean(e)?"danger":Boolean(t)?"warning":void 0}(s,a,r);return{hasAttachedErrorMessages:h,hasAttachedWarningMessages:p,showAttachedErrorMessages:m,showAttachedWarningMessages:g,showStaticErrorMessages:f,showStaticWarningMessages:v,showStaticSuccessMessages:D,showErrorIcon:w,showWarningIcon:b,intent:y}}function T(e){const{errors:t,warnings:n,successMessages:r,messagesAttachment:c,customErrorsAttachment:u,messagesRoot:d,inheritMessagesWidthFromTarget:h,disableMessagesRtlStyles:p,inputDescription:m}=e,[g,f]=(0,o.useFocus)(),[v,D]=(0,i.useHoverDeprecated)(),w=(0,s.useRef)(null),[b,y]=s.useState(void 0),C=(0,s.useRef)(new Map),F=s.useCallback((e=>{if(!e)return;const t=C.current;t.has(e)?t.delete(e):t.set(e,e),0!==t.size?y(Array.from(t.keys()).join(" ")):y(void 0)}),[y,C.current]),{hasAttachedErrorMessages:E,hasAttachedWarningMessages:_,showAttachedErrorMessages:k,showAttachedWarningMessages:R,showStaticErrorMessages:x,showStaticWarningMessages:T,showStaticSuccessMessages:A,showErrorIcon:Y,showWarningIcon:z,intent:V}=I(e,g,v),B=Y||z?s.createElement(S,{intent:Y?"danger":"warning"}):void 0,L=E?s.createElement(N,{errorAttachment:c,customErrorsAttachment:u,isOpened:k,target:w.current,root:d,inheritWidthFromTarget:h,disableRtlStyles:p,children:t,messageIdCallback:F,dataQaId:"attached-error-box"}):void 0,O=_?s.createElement(N,{errorAttachment:c,isOpened:R,target:w.current,root:d,inheritWidthFromTarget:h,disableRtlStyles:p,children:n,messageIdCallback:F,dataQaId:"attached-warning-box"}):void 0,W=x?s.createElement(l.AfterSlot,{dataQaId:"static-errors",className:a(M["static-messages"],M.errors)
|
|
},t?.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:F},e)))):void 0,H=T?s.createElement(l.AfterSlot,{dataQaId:"static-warnings",className:a(M["static-messages"],M.warnings)},n?.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:F},e)))):void 0,K=A?s.createElement(l.AfterSlot,{dataQaId:"success-message",className:a(M["static-messages"],M["success-mesages"])},r?.map(((e,t)=>s.createElement(P,{key:t,messageIdCallback:F},e)))):void 0,$=!x&&!T&&!A&&m?s.createElement(l.AfterSlot,{dataQaId:"success-messages",className:a(M["static-messages"],M["input-description"])},s.createElement(P,{messageIdCallback:F},m)):void 0;return{ariaIds:b,icon:B,renderedErrors:L??O??W??H??K??$,containerReference:w,intent:V,...f,...D}}function P(e){const{children:t,messageIdCallback:n,...a}=e,o=s.useId();return r(o,n),s.createElement("span",{...a,className:M.message,"aria-live":"assertive",id:o},t)}},22955:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" d="m4.67 7.38.66-.76L9 9.84l3.67-3.22.66.76L9 11.16 4.67 7.38Z"/></svg>'},61262:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28"><path fill="currentColor" d="m16.47 7.47 1.06 1.06L12.06 14l5.47 5.47-1.06 1.06L9.94 14l6.53-6.53Z"/></svg>'},66101:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" d="M10 6h8V4h1v2h1.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H9V4h1zM6 19.5A1.5 1.5 0 0 0 7.5 21h13a1.5 1.5 0 0 0 1.5-1.5V11H6zM7.5 7A1.5 1.5 0 0 0 6 8.5V10h16V8.5A1.5 1.5 0 0 0 20.5 7H19v1h-1V7h-8v1H9V7z"/></svg>'},44024:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" d="M14 3c6.075 0 11 4.925 11 11s-4.925 11-11 11S3 20.075 3 14 7.925 3 14 3m0 1C8.477 4 4 8.477 4 14s4.477 10 10 10 10-4.477 10-10S19.523 4 14 4m1 12h-5v-1h4V8h1z"/></svg>'},4434:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5C6.67 7 6 7.67 6 8.5v11c0 .83.67 1.5 1.5 1.5h13c.83 0 1.5-.67 1.5-1.5v-11c0-.83-.67-1.5-1.5-1.5H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'},77437:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" width="18" height="18"><path fill="currentColor" fill-rule="evenodd" d="M9 16A7 7 0 1 0 9 2a7 7 0 0 0 0 14Zm0 1A8 8 0 1 0 9 1a8 8 0 0 0 0 16ZM8 5a1 1 0 0 1 2 0v4a1 1 0 1 1-2 0V5Zm1 7a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"/></svg>'},98862:(e,t,n)=>{"use strict";n.d(t,{default:()=>l});var s=n(18413),a=n(16599),r=n(55526),o=Math.ceil,i=Math.max;const l=function(e,t,n){t=(n?(0,a.default)(e,t,n):void 0===t)?1:i((0,r.default)(t),0)
|
|
;var l=null==e?0:e.length;if(!l||t<1)return[];for(var c=0,u=0,d=Array(o(l/t));c<l;)d[u++]=(0,s.default)(e,c,c+=t);return d}}}]); |