@equisoft/design-elements-react 5.6.1-snapshot.20231213205711 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -587,7 +587,7 @@
587
587
  `,f=o.default.div`
588
588
  height: ${({isMobile:e})=>e?2.5:2}rem;
589
589
  width: ${({isMobile:e})=>e?5.5:5}rem;
590
- `;t.CalendarHeader=({changeMonth:e,changeYear:t,date:n,decreaseMonth:a,increaseMonth:o,months:h,monthsOptions:v,nextMonthButtonDisabled:g,prevMonthButtonDisabled:y,yearsOptions:b})=>{const{t:w}=(0,l.useTranslation)("datepicker"),{isMobile:_}=(0,u.useDeviceContext)();return(0,r.jsxs)(c,{isMobile:_,"data-testid":"calendar-header",children:[(0,r.jsx)(m,{"aria-label":w("monthPreviousButtonLabel"),"data-testid":"month-previous",onClick:a,disabled:y,children:(0,r.jsx)(s.Icon,{name:"chevronLeft",size:_?"26":"16"})}),(0,r.jsxs)(p,{children:[(0,r.jsx)(f,{isMobile:_,style:{marginRight:"8px"},children:(0,r.jsx)(d.DropdownList,{ariaLabel:w("monthSelectLabel"),"data-testid":"month-select",options:v,onChange:t=>{e(h.indexOf(t.label))},value:v[(0,i.getMonth)(n)].value})}),(0,r.jsx)(f,{isMobile:_,children:(0,r.jsx)(d.DropdownList,{ariaLabel:w("yearSelectLabel"),"data-testid":"year-select",options:b,onChange:e=>{t(parseInt(e.value,10))},value:(0,i.getYear)(n).toString()})})]}),(0,r.jsx)(m,{"aria-label":w("monthNextButtonLabel"),"data-testid":"month-next",onClick:o,disabled:g,children:(0,r.jsx)(s.Icon,{name:"chevronRight",size:_?"24":"16"})})]})};try{t.CalendarHeader.displayName="CalendarHeader",t.CalendarHeader.__docgenInfo={description:"",displayName:"CalendarHeader",props:{date:{defaultValue:null,description:"",name:"date",required:!0,type:{name:"Date"}},months:{defaultValue:null,description:"",name:"months",required:!0,type:{name:"string[]"}},monthsOptions:{defaultValue:null,description:"",name:"monthsOptions",required:!0,type:{name:"Option[]"}},nextMonthButtonDisabled:{defaultValue:null,description:"",name:"nextMonthButtonDisabled",required:!0,type:{name:"boolean"}},prevMonthButtonDisabled:{defaultValue:null,description:"",name:"prevMonthButtonDisabled",required:!0,type:{name:"boolean"}},yearsOptions:{defaultValue:null,description:"",name:"yearsOptions",required:!0,type:{name:"Option[]"}},changeMonth:{defaultValue:null,description:"",name:"changeMonth",required:!0,type:{name:"(month: number) => void"}},changeYear:{defaultValue:null,description:"",name:"changeYear",required:!0,type:{name:"(year: number) => void"}},decreaseMonth:{defaultValue:null,description:"",name:"decreaseMonth",required:!0,type:{name:"() => void"}},increaseMonth:{defaultValue:null,description:"",name:"increaseMonth",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/date-picker/calendar-header.tsx#CalendarHeader"]={docgenInfo:t.CalendarHeader.__docgenInfo,name:"CalendarHeader",path:"src/components/date-picker/calendar-header.tsx#CalendarHeader"})}catch(e){}},5592:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},o=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Datepicker=void 0;const u=n(3564),s=n(2117),d=n(8156),c=i(n(6719)),m=l(n(967)),p=i(n(1608)),f=n(8077),h=n(9092),v=n(4182),g=n(8276),y=n(9752),b=n(964),w=n(569),_=n(9568),M=n(9838),E=p.default.div`
590
+ `;t.CalendarHeader=({changeMonth:e,changeYear:t,date:n,decreaseMonth:a,increaseMonth:o,months:h,monthsOptions:v,nextMonthButtonDisabled:g,prevMonthButtonDisabled:y,yearsOptions:b})=>{const{t:w}=(0,l.useTranslation)("datepicker"),{isMobile:_}=(0,u.useDeviceContext)();return(0,r.jsxs)(c,{isMobile:_,"data-testid":"calendar-header",children:[(0,r.jsx)(m,{"aria-label":w("monthPreviousButtonLabel"),"data-testid":"month-previous",onClick:a,disabled:y,children:(0,r.jsx)(s.Icon,{name:"chevronLeft",size:_?"26":"16"})}),(0,r.jsxs)(p,{children:[(0,r.jsx)(f,{isMobile:_,style:{marginRight:"8px"},children:(0,r.jsx)(d.DropdownList,{ariaLabel:w("monthSelectLabel"),"data-testid":"month-select",options:v,onChange:t=>{e(h.indexOf(t.label))},value:v[(0,i.getMonth)(n)].value})}),(0,r.jsx)(f,{isMobile:_,children:(0,r.jsx)(d.DropdownList,{ariaLabel:w("yearSelectLabel"),"data-testid":"year-select",options:b,onChange:e=>{t(parseInt(e.value,10))},value:(0,i.getYear)(n).toString()})})]}),(0,r.jsx)(m,{"aria-label":w("monthNextButtonLabel"),"data-testid":"month-next",onClick:o,disabled:g,children:(0,r.jsx)(s.Icon,{name:"chevronRight",size:_?"24":"16"})})]})};try{t.CalendarHeader.displayName="CalendarHeader",t.CalendarHeader.__docgenInfo={description:"",displayName:"CalendarHeader",props:{date:{defaultValue:null,description:"",name:"date",required:!0,type:{name:"Date"}},months:{defaultValue:null,description:"",name:"months",required:!0,type:{name:"string[]"}},monthsOptions:{defaultValue:null,description:"",name:"monthsOptions",required:!0,type:{name:"DropdownListOption[]"}},nextMonthButtonDisabled:{defaultValue:null,description:"",name:"nextMonthButtonDisabled",required:!0,type:{name:"boolean"}},prevMonthButtonDisabled:{defaultValue:null,description:"",name:"prevMonthButtonDisabled",required:!0,type:{name:"boolean"}},yearsOptions:{defaultValue:null,description:"",name:"yearsOptions",required:!0,type:{name:"DropdownListOption[]"}},changeMonth:{defaultValue:null,description:"",name:"changeMonth",required:!0,type:{name:"(month: number) => void"}},changeYear:{defaultValue:null,description:"",name:"changeYear",required:!0,type:{name:"(year: number) => void"}},decreaseMonth:{defaultValue:null,description:"",name:"decreaseMonth",required:!0,type:{name:"() => void"}},increaseMonth:{defaultValue:null,description:"",name:"increaseMonth",required:!0,type:{name:"() => void"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/date-picker/calendar-header.tsx#CalendarHeader"]={docgenInfo:t.CalendarHeader.__docgenInfo,name:"CalendarHeader",path:"src/components/date-picker/calendar-header.tsx#CalendarHeader"})}catch(e){}},5592:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},o=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Datepicker=void 0;const u=n(3564),s=n(2117),d=n(8156),c=i(n(6719)),m=l(n(967)),p=i(n(1608)),f=n(8077),h=n(9092),v=n(4182),g=n(8276),y=n(9752),b=n(964),w=n(569),_=n(9568),M=n(9838),E=p.default.div`
591
591
  display: flex;
592
592
 
593
593
  .popper {
@@ -783,65 +783,34 @@
783
783
  }
784
784
  `,S=p.createGlobalStyle`
785
785
  ${m.default.toString()}
786
- `;(0,c.registerLocale)("en-CA",s.enCA),(0,c.registerLocale)("en-US",s.enUS),(0,c.registerLocale)("fr-CA",s.frCA);const T=[s.enUS,s.enCA,s.frCA];t.Datepicker=(0,d.forwardRef)(((e,t)=>{var n,{className:a,defaultDate:r,dateFormat:i,disabled:l,firstDayOfWeek:s,hasTodayButton:c,hint:m,id:p,label:H,locale:P="en-CA",maxDate:V,minDate:q,noMargin:O,onBlur:L,onCalendarClose:D,onCalendarOpen:A,onChange:j,onFocus:I,open:R,placeholder:W,required:N,openToDate:z,startOpen:Z,tooltip:F,valid:B=!0,validationErrorMessage:$}=e,U=o(e,["className","defaultDate","dateFormat","disabled","firstDayOfWeek","hasTodayButton","hint","id","label","locale","maxDate","minDate","noMargin","onBlur","onCalendarClose","onCalendarOpen","onChange","onFocus","open","placeholder","required","openToDate","startOpen","tooltip","valid","validationErrorMessage"]);const{t:Y}=(0,f.useTranslation)("datepicker"),{isMobile:K}=(0,y.useDeviceContext)(),[G,X]=(0,d.useState)(r),J=(0,d.useMemo)((()=>(0,M.getLocale)(T,P)),[P]),Q=(0,d.useMemo)((()=>(0,M.getLocaleMonthsShort)(J)),[J]),ee=(0,d.useMemo)((()=>(0,M.getLocaleMonthsOptions)(J)),[J]),te=(0,d.useMemo)((()=>(0,M.getYearsOptions)(q,V)),[q,V]),ne=(0,d.useRef)(null),ae=(0,d.useMemo)((()=>p||(0,v.v4)()),[p]),re=(0,d.useRef)(null),ie=(0,d.useRef)(null);function oe(){setTimeout((()=>{var e;const t=null===(e=ne.current)||void 0===e?void 0:e.querySelector('.react-datepicker__day[tabindex="0"]');t&&t.focus()}),0)}(0,d.useImperativeHandle)(t,(()=>({reset:()=>{X(r)},setDate:e=>{X(e)}}))),(0,d.useEffect)((()=>{s&&(0,M.setLocaleFirstDayOfWeek)(J,s)}),[J,s]);const le=(0,d.useCallback)((e=>{X(e),j&&j(e)}),[j]),ue=(0,d.useCallback)((()=>{var e;le(new Date),null===(e=re.current)||void 0===e||e.setOpen(!1)}),[le]),se=(0,d.useMemo)((()=>W||(i?i.toUpperCase():(0,M.getLocaleDatePlaceholder)(J))),[J,W,i]),de=(0,d.useMemo)((()=>({children:e})=>(0,u.jsxs)("div",{"aria-label":(null==G?void 0:G.toLocaleDateString(P))||Y("calendarContainerLabel"),"aria-live":"polite","aria-modal":!0,className:"react-datepicker",role:"dialog",ref:ne,children:[e,c&&(0,u.jsx)(C,{children:(0,u.jsx)(g.Button,{"aria-label":Y("todayButtonAriaLabel"),buttonType:"secondary","data-testid":"today-button",label:Y("todayButtonLabel"),type:"button",onClick:ue})})]})),[ue,c,P,G,Y]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(S,{}),(0,u.jsx)(b.FieldContainer,{className:a,noMargin:O,fieldId:ae,label:H,required:N,tooltip:F,hint:m,valid:B,validationErrorMessage:$||Y("validationErrorMessage"),children:(0,u.jsxs)(E,{isMobile:K,children:[(0,u.jsx)(k,Object.assign({customInput:(0,u.jsx)("input",{type:"text","data-testid":null!==(n=U["data-testid"])&&void 0!==n?n:"text-input"}),isMobile:K,id:ae,ref:re,renderCustomHeader:e=>(0,u.jsx)(_.CalendarHeader,Object.assign({months:Q,monthsOptions:ee,yearsOptions:te},e)),calendarContainer:de,className:"datePickerInput",dateFormat:i||(0,M.getLocaleDateFormat)(J),disabled:l,locale:P,maxDate:V||void 0,minDate:q||void 0,onChange:le,onSelect:function(){var e;null===(e=ie.current)||void 0===e||e.focus()},onBlur:function(e){var t,n;const a=null===(t=re.current)||void 0===t?void 0:t.isCalendarOpen();void 0!==a&&(null===(n=re.current)||void 0===n||n.setOpen(a,!1)),L&&L(e)},onCalendarClose:D,onCalendarOpen:A,onFocus:I,onClickOutside:function(e){re.current&&ie.current&&(0,h.eventIsInside)(e,ie.current)&&re.current.setOpen(!0)},onInputClick:function(){var e;null===(e=re.current)||void 0===e||e.setOpen(!1,!0)},onKeyDown:function(e){var t,n;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":oe();break;case"Escape":e.stopPropagation(),null===(t=re.current)||void 0===t||t.setOpen(!1),null===(n=ie.current)||void 0===n||n.focus()}},open:R,openToDate:z||void 0,placeholderText:se,popperClassName:"popper",preventOpenOnFocus:!0,selected:G,showPopperArrow:!1,startOpen:Z,valid:B,withPortal:K},U)),(0,u.jsx)(x,{"aria-label":G?`${Y("calendarButtonSelectedLabel")} ${G.toLocaleDateString(P)}`:Y("calendarButtonLabel"),"data-testid":"calendar-button",type:"button",disabled:l,isMobile:K,onKeyDown:function(e){var t;"Enter"!==e.key&&" "!==e.key||(null===(t=re.current)||void 0===t||t.setOpen(!0),oe())},onMouseDown:function(){var e,t,n;(null===(e=re.current)||void 0===e?void 0:e.isCalendarOpen())?null===(t=re.current)||void 0===t||t.setOpen(!1):(null===(n=re.current)||void 0===n||n.setOpen(!0),oe())},ref:ie,tabIndex:0,children:(0,u.jsx)(w.Icon,{name:"calendar",size:K?"24":"16"})})]})})]})})),t.Datepicker.displayName="Datepicker";try{t.Datepicker.displayName="Datepicker",t.Datepicker.__docgenInfo={description:"",displayName:"Datepicker",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultDate:{defaultValue:null,description:"Sets default selected date",name:"defaultDate",required:!1,type:{name:"Date"}},dateFormat:{defaultValue:null,description:"Sets date format (e.g.: dd/MM/yyyy).",name:"dateFormat",required:!1,type:{name:"string"}},"data-testid":{defaultValue:null,description:"",name:"data-testid",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},firstDayOfWeek:{defaultValue:null,description:"",name:"firstDayOfWeek",required:!1,type:{name:"enum",value:[{value:"0"},{value:"1"},{value:"2"},{value:"3"},{value:"4"},{value:"5"},{value:"6"}]}},hasTodayButton:{defaultValue:null,description:"",name:"hasTodayButton",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"Sets input label",name:"label",required:!1,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},locale:{defaultValue:{value:"en-CA"},description:"Sets localization",name:"locale",required:!1,type:{name:"enum",value:[{value:'"fr-CA"'},{value:'"en-CA"'},{value:'"en-US"'}]}},maxDate:{defaultValue:null,description:"",name:"maxDate",required:!1,type:{name:"Date | null"}},minDate:{defaultValue:null,description:"",name:"minDate",required:!1,type:{name:"Date | null"}},name:{defaultValue:null,description:"Sets input name",name:"name",required:!1,type:{name:"string"}},open:{defaultValue:null,description:"Toggles calendar (controlled)",name:"open",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},readOnly:{defaultValue:null,description:"",name:"readOnly",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},openToDate:{defaultValue:null,description:"Sets calendar date when initially open",name:"openToDate",required:!1,type:{name:"Date | null"}},startOpen:{defaultValue:null,description:"Sets calendar initially open (uncontrolled)",name:"startOpen",required:!1,type:{name:"boolean"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},valid:{defaultValue:{value:!0},description:"Sets input validity",name:"valid",required:!1,type:{name:"boolean"}},validationErrorMessage:{defaultValue:null,description:"Sets error message",name:"validationErrorMessage",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Sets input value (controlled)",name:"value",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onCalendarClose:{defaultValue:null,description:"",name:"onCalendarClose",required:!1,type:{name:"(() => void)"}},onCalendarOpen:{defaultValue:null,description:"",name:"onCalendarOpen",required:!1,type:{name:"(() => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((date: Date) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<DatepickerHandles>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/date-picker/date-picker.tsx#Datepicker"]={docgenInfo:t.Datepicker.__docgenInfo,name:"Datepicker",path:"src/components/date-picker/date-picker.tsx#Datepicker"})}catch(e){}},9838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLocaleFirstDayOfWeek=t.getYearsOptions=t.getLocaleMonthsOptions=t.getLocaleDatePlaceholder=t.getLocaleDateFormat=t.getLocaleMonthsShort=t.getLocale=void 0;const a=n(2117),r=n(6543);function i(e=a.enCA){return new Intl.DateTimeFormat(e.code).formatToParts(new Date).map((e=>{switch(e.type){case"day":return"dd";case"month":return"MM";case"year":return"yyyy";default:return e.value}})).join("")}t.getLocale=function(e,t){return e.find((e=>e.code===t))||a.enCA},t.getLocaleMonthsShort=function(e){var t;const n=[];for(let a=0;a<12;a++)n.push(null===(t=e.localize)||void 0===t?void 0:t.month(a,{width:"abbreviated"}));return n},t.getLocaleDateFormat=i,t.getLocaleDatePlaceholder=function(e){return i(e).toUpperCase()},t.getLocaleMonthsOptions=function(e){var t,n;const a=[];for(let r=0;r<12;r++)a.push({value:null===(t=e.localize)||void 0===t?void 0:t.month(r).toLowerCase(),label:null===(n=e.localize)||void 0===n?void 0:n.month(r,{width:"abbreviated"})});return a},t.getYearsOptions=function(e,t){return e&&t&&e>t?[]:(0,r.range)(e?e.getUTCFullYear():1920,t?t.getUTCFullYear():(new Date).getUTCFullYear()).map((e=>({value:e.toString(),label:e.toString()})))},t.setLocaleFirstDayOfWeek=function(e,t){const n={weekStartsOn:t};Object.assign(e.options||{},n)}},5825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignSystem=void 0;const a=n(3564),r=n(9752),i=n(8904),o=n(153),l=n(1450);t.DesignSystem=e=>(0,a.jsx)(r.DeviceContextProvider,{staticDevice:e.staticDevice,children:(0,a.jsx)(o.ThemeWrapper,{theme:e.theme,isolateStyles:e.isolateStyles,children:(0,a.jsx)(i.IntlProvider,{language:e.language,children:(0,a.jsx)(l.ToastProvider,{children:e.children})})})});try{t.DesignSystem.displayName="DesignSystem",t.DesignSystem.__docgenInfo={description:"",displayName:"DesignSystem",props:{isolateStyles:{defaultValue:{value:"false"},description:"When true, components are mounted in the Shadow DOM",name:"isolateStyles",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}},staticDevice:{defaultValue:null,description:"",name:"staticDevice",required:!1,type:{name:"enum",value:[{value:'"desktop"'},{value:'"tablet"'},{value:'"mobile"'}]}},language:{defaultValue:{value:"en"},description:"",name:"language",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/design-system.tsx#DesignSystem"]={docgenInfo:t.DesignSystem.__docgenInfo,name:"DesignSystem",path:"src/components/design-system.tsx#DesignSystem"})}catch(e){}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDeviceContext=t.DeviceContextProvider=void 0;const a=n(3564),r=n(8156),i=n(9543),o=(e=void 0)=>{let t=!1,n=!1,a=!1;const r={device:"desktop",isDesktop:!0,isTablet:!1,isMobile:!1,breakpoints:i.breakpoints};return e?("desktop"===e?t=!0:"tablet"===e?n=!0:"mobile"===e&&(a=!0),{device:e,isDesktop:t,isTablet:n,isMobile:a,breakpoints:i.breakpoints}):r},l=(0,r.createContext)(o());t.DeviceContextProvider=({children:e,staticDevice:t})=>{const[n,u]=(0,r.useState)(o(t));function s(){const e=(e=>{let t="desktop";return e>=i.breakpoints.desktop?t="desktop":e<i.breakpoints.desktop&&e>i.breakpoints.mobile?t="tablet":e<=i.breakpoints.mobile&&(t="mobile"),t})(window.innerWidth||document.documentElement.clientWidth);u(o(e))}return(0,r.useEffect)((()=>{if(!t)return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}),[t]),(0,a.jsx)(l.Provider,{value:n,children:e})},t.useDeviceContext=function(){return(0,r.useContext)(l)};try{t.DeviceContextProvider.displayName="DeviceContextProvider",t.DeviceContextProvider.__docgenInfo={description:"",displayName:"DeviceContextProvider",props:{staticDevice:{defaultValue:null,description:"",name:"staticDevice",required:!1,type:{name:"enum",value:[{value:'"desktop"'},{value:'"tablet"'},{value:'"mobile"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/device-context-provider/device-context-provider.tsx#DeviceContextProvider"]={docgenInfo:t.DeviceContextProvider.__docgenInfo,name:"DeviceContextProvider",path:"src/components/device-context-provider/device-context-provider.tsx#DeviceContextProvider"})}catch(e){}},9685:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownList=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(9092),c=n(1834),m=n(4182),p=n(7195),f=n(9752),h=n(964),v=n(569),g=n(634),y=(0,l.default)(h.FieldContainer)`
786
+ `;(0,c.registerLocale)("en-CA",s.enCA),(0,c.registerLocale)("en-US",s.enUS),(0,c.registerLocale)("fr-CA",s.frCA);const T=[s.enUS,s.enCA,s.frCA];t.Datepicker=(0,d.forwardRef)(((e,t)=>{var n,{className:a,defaultDate:r,dateFormat:i,disabled:l,firstDayOfWeek:s,hasTodayButton:c,hint:m,id:p,label:H,locale:P="en-CA",maxDate:V,minDate:q,noMargin:O,onBlur:L,onCalendarClose:D,onCalendarOpen:A,onChange:j,onFocus:I,open:R,placeholder:W,required:N,openToDate:z,startOpen:Z,tooltip:F,valid:B=!0,validationErrorMessage:$}=e,U=o(e,["className","defaultDate","dateFormat","disabled","firstDayOfWeek","hasTodayButton","hint","id","label","locale","maxDate","minDate","noMargin","onBlur","onCalendarClose","onCalendarOpen","onChange","onFocus","open","placeholder","required","openToDate","startOpen","tooltip","valid","validationErrorMessage"]);const{t:Y}=(0,f.useTranslation)("datepicker"),{isMobile:K}=(0,y.useDeviceContext)(),[G,X]=(0,d.useState)(r),J=(0,d.useMemo)((()=>(0,M.getLocale)(T,P)),[P]),Q=(0,d.useMemo)((()=>(0,M.getLocaleMonthsShort)(J)),[J]),ee=(0,d.useMemo)((()=>(0,M.getLocaleMonthsOptions)(J)),[J]),te=(0,d.useMemo)((()=>(0,M.getYearsOptions)(q,V)),[q,V]),ne=(0,d.useRef)(null),ae=(0,d.useMemo)((()=>p||(0,v.v4)()),[p]),re=(0,d.useRef)(null),ie=(0,d.useRef)(null);function oe(){setTimeout((()=>{var e;const t=null===(e=ne.current)||void 0===e?void 0:e.querySelector('.react-datepicker__day[tabindex="0"]');t&&t.focus()}),0)}(0,d.useImperativeHandle)(t,(()=>({reset:()=>{X(r)},setDate:e=>{X(e)}}))),(0,d.useEffect)((()=>{s&&(0,M.setLocaleFirstDayOfWeek)(J,s)}),[J,s]);const le=(0,d.useCallback)((e=>{X(e),j&&j(e)}),[j]),ue=(0,d.useCallback)((()=>{var e;le(new Date),null===(e=re.current)||void 0===e||e.setOpen(!1)}),[le]),se=(0,d.useMemo)((()=>W||(i?i.toUpperCase():(0,M.getLocaleDatePlaceholder)(J))),[J,W,i]),de=(0,d.useMemo)((()=>({children:e})=>(0,u.jsxs)("div",{"aria-label":(null==G?void 0:G.toLocaleDateString(P))||Y("calendarContainerLabel"),"aria-live":"polite","aria-modal":!0,className:"react-datepicker",role:"dialog",ref:ne,children:[e,c&&(0,u.jsx)(C,{children:(0,u.jsx)(g.Button,{"aria-label":Y("todayButtonAriaLabel"),buttonType:"secondary","data-testid":"today-button",label:Y("todayButtonLabel"),type:"button",onClick:ue})})]})),[ue,c,P,G,Y]);return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(S,{}),(0,u.jsx)(b.FieldContainer,{className:a,noMargin:O,fieldId:ae,label:H,required:N,tooltip:F,hint:m,valid:B,validationErrorMessage:$||Y("validationErrorMessage"),children:(0,u.jsxs)(E,{isMobile:K,children:[(0,u.jsx)(k,Object.assign({customInput:(0,u.jsx)("input",{type:"text","data-testid":null!==(n=U["data-testid"])&&void 0!==n?n:"text-input"}),isMobile:K,id:ae,ref:re,renderCustomHeader:e=>(0,u.jsx)(_.CalendarHeader,Object.assign({months:Q,monthsOptions:ee,yearsOptions:te},e)),calendarContainer:de,className:"datePickerInput",dateFormat:i||(0,M.getLocaleDateFormat)(J),disabled:l,locale:P,maxDate:V||void 0,minDate:q||void 0,onChange:le,onSelect:function(){var e;null===(e=ie.current)||void 0===e||e.focus()},onBlur:function(e){var t,n;const a=null===(t=re.current)||void 0===t?void 0:t.isCalendarOpen();void 0!==a&&(null===(n=re.current)||void 0===n||n.setOpen(a,!1)),L&&L(e)},onCalendarClose:D,onCalendarOpen:A,onFocus:I,onClickOutside:function(e){re.current&&ie.current&&(0,h.eventIsInside)(e,ie.current)&&re.current.setOpen(!0)},onInputClick:function(){var e;null===(e=re.current)||void 0===e||e.setOpen(!1,!0)},onKeyDown:function(e){var t,n;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":oe();break;case"Escape":e.stopPropagation(),null===(t=re.current)||void 0===t||t.setOpen(!1),null===(n=ie.current)||void 0===n||n.focus()}},open:R,openToDate:z||void 0,placeholderText:se,popperClassName:"popper",preventOpenOnFocus:!0,selected:G,showPopperArrow:!1,startOpen:Z,valid:B,withPortal:K},U)),(0,u.jsx)(x,{"aria-label":G?`${Y("calendarButtonSelectedLabel")} ${G.toLocaleDateString(P)}`:Y("calendarButtonLabel"),"data-testid":"calendar-button",type:"button",disabled:l,isMobile:K,onKeyDown:function(e){var t;"Enter"!==e.key&&" "!==e.key||(null===(t=re.current)||void 0===t||t.setOpen(!0),oe())},onMouseDown:function(){var e,t,n;(null===(e=re.current)||void 0===e?void 0:e.isCalendarOpen())?null===(t=re.current)||void 0===t||t.setOpen(!1):(null===(n=re.current)||void 0===n||n.setOpen(!0),oe())},ref:ie,tabIndex:0,children:(0,u.jsx)(w.Icon,{name:"calendar",size:K?"24":"16"})})]})})]})})),t.Datepicker.displayName="Datepicker";try{t.Datepicker.displayName="Datepicker",t.Datepicker.__docgenInfo={description:"",displayName:"Datepicker",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultDate:{defaultValue:null,description:"Sets default selected date",name:"defaultDate",required:!1,type:{name:"Date"}},dateFormat:{defaultValue:null,description:"Sets date format (e.g.: dd/MM/yyyy).",name:"dateFormat",required:!1,type:{name:"string"}},"data-testid":{defaultValue:null,description:"",name:"data-testid",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},firstDayOfWeek:{defaultValue:null,description:"",name:"firstDayOfWeek",required:!1,type:{name:"enum",value:[{value:"0"},{value:"1"},{value:"2"},{value:"3"},{value:"4"},{value:"5"},{value:"6"}]}},hasTodayButton:{defaultValue:null,description:"",name:"hasTodayButton",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"Sets input label",name:"label",required:!1,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},locale:{defaultValue:{value:"en-CA"},description:"Sets localization",name:"locale",required:!1,type:{name:"enum",value:[{value:'"fr-CA"'},{value:'"en-CA"'},{value:'"en-US"'}]}},maxDate:{defaultValue:null,description:"",name:"maxDate",required:!1,type:{name:"Date | null"}},minDate:{defaultValue:null,description:"",name:"minDate",required:!1,type:{name:"Date | null"}},name:{defaultValue:null,description:"Sets input name",name:"name",required:!1,type:{name:"string"}},open:{defaultValue:null,description:"Toggles calendar (controlled)",name:"open",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},readOnly:{defaultValue:null,description:"",name:"readOnly",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},openToDate:{defaultValue:null,description:"Sets calendar date when initially open",name:"openToDate",required:!1,type:{name:"Date | null"}},startOpen:{defaultValue:null,description:"Sets calendar initially open (uncontrolled)",name:"startOpen",required:!1,type:{name:"boolean"}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"number"}},valid:{defaultValue:{value:!0},description:"Sets input validity",name:"valid",required:!1,type:{name:"boolean"}},validationErrorMessage:{defaultValue:null,description:"Sets error message",name:"validationErrorMessage",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Sets input value (controlled)",name:"value",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onCalendarClose:{defaultValue:null,description:"",name:"onCalendarClose",required:!1,type:{name:"(() => void)"}},onCalendarOpen:{defaultValue:null,description:"",name:"onCalendarOpen",required:!1,type:{name:"(() => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((date: Date) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<DatepickerHandles>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/date-picker/date-picker.tsx#Datepicker"]={docgenInfo:t.Datepicker.__docgenInfo,name:"Datepicker",path:"src/components/date-picker/date-picker.tsx#Datepicker"})}catch(e){}},9838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setLocaleFirstDayOfWeek=t.getYearsOptions=t.getLocaleMonthsOptions=t.getLocaleDatePlaceholder=t.getLocaleDateFormat=t.getLocaleMonthsShort=t.getLocale=void 0;const a=n(2117),r=n(6543);function i(e=a.enCA){return new Intl.DateTimeFormat(e.code).formatToParts(new Date).map((e=>{switch(e.type){case"day":return"dd";case"month":return"MM";case"year":return"yyyy";default:return e.value}})).join("")}t.getLocale=function(e,t){return e.find((e=>e.code===t))||a.enCA},t.getLocaleMonthsShort=function(e){var t;const n=[];for(let a=0;a<12;a++)n.push(null===(t=e.localize)||void 0===t?void 0:t.month(a,{width:"abbreviated"}));return n},t.getLocaleDateFormat=i,t.getLocaleDatePlaceholder=function(e){return i(e).toUpperCase()},t.getLocaleMonthsOptions=function(e){var t,n;const a=[];for(let r=0;r<12;r++)a.push({value:null===(t=e.localize)||void 0===t?void 0:t.month(r).toLowerCase(),label:null===(n=e.localize)||void 0===n?void 0:n.month(r,{width:"abbreviated"})});return a},t.getYearsOptions=function(e,t){return e&&t&&e>t?[]:(0,r.range)(e?e.getUTCFullYear():1920,t?t.getUTCFullYear():(new Date).getUTCFullYear()).map((e=>({value:e.toString(),label:e.toString()})))},t.setLocaleFirstDayOfWeek=function(e,t){const n={weekStartsOn:t};Object.assign(e.options||{},n)}},5825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DesignSystem=void 0;const a=n(3564),r=n(9752),i=n(8904),o=n(153),l=n(1450);t.DesignSystem=e=>(0,a.jsx)(r.DeviceContextProvider,{staticDevice:e.staticDevice,children:(0,a.jsx)(o.ThemeWrapper,{theme:e.theme,isolateStyles:e.isolateStyles,children:(0,a.jsx)(i.IntlProvider,{language:e.language,children:(0,a.jsx)(l.ToastProvider,{children:e.children})})})});try{t.DesignSystem.displayName="DesignSystem",t.DesignSystem.__docgenInfo={description:"",displayName:"DesignSystem",props:{isolateStyles:{defaultValue:{value:"false"},description:"When true, components are mounted in the Shadow DOM",name:"isolateStyles",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}},staticDevice:{defaultValue:null,description:"",name:"staticDevice",required:!1,type:{name:"enum",value:[{value:'"desktop"'},{value:'"tablet"'},{value:'"mobile"'}]}},language:{defaultValue:{value:"en"},description:"",name:"language",required:!1,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/design-system.tsx#DesignSystem"]={docgenInfo:t.DesignSystem.__docgenInfo,name:"DesignSystem",path:"src/components/design-system.tsx#DesignSystem"})}catch(e){}},9752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDeviceContext=t.DeviceContextProvider=void 0;const a=n(3564),r=n(8156),i=n(9543),o=(e=void 0)=>{let t=!1,n=!1,a=!1;const r={device:"desktop",isDesktop:!0,isTablet:!1,isMobile:!1,breakpoints:i.breakpoints};return e?("desktop"===e?t=!0:"tablet"===e?n=!0:"mobile"===e&&(a=!0),{device:e,isDesktop:t,isTablet:n,isMobile:a,breakpoints:i.breakpoints}):r},l=(0,r.createContext)(o());t.DeviceContextProvider=({children:e,staticDevice:t})=>{const[n,u]=(0,r.useState)(o(t));function s(){const e=(e=>{let t="desktop";return e>=i.breakpoints.desktop?t="desktop":e<i.breakpoints.desktop&&e>i.breakpoints.mobile?t="tablet":e<=i.breakpoints.mobile&&(t="mobile"),t})(window.innerWidth||document.documentElement.clientWidth);u(o(e))}return(0,r.useEffect)((()=>{if(!t)return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}}),[t]),(0,a.jsx)(l.Provider,{value:n,children:e})},t.useDeviceContext=function(){return(0,r.useContext)(l)};try{t.DeviceContextProvider.displayName="DeviceContextProvider",t.DeviceContextProvider.__docgenInfo={description:"",displayName:"DeviceContextProvider",props:{staticDevice:{defaultValue:null,description:"",name:"staticDevice",required:!1,type:{name:"enum",value:[{value:'"desktop"'},{value:'"tablet"'},{value:'"mobile"'}]}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/device-context-provider/device-context-provider.tsx#DeviceContextProvider"]={docgenInfo:t.DeviceContextProvider.__docgenInfo,name:"DeviceContextProvider",path:"src/components/device-context-provider/device-context-provider.tsx#DeviceContextProvider"})}catch(e){}},9685:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownList=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(4606),c=n(1834),m=n(9752),p=n(964),f=n(569),h=n(634),v=n(8478),g=n(2347),y=n(4199),b=n(9072),w=n(5358),_=(0,l.default)(p.FieldContainer)`
787
787
  position: relative;
788
- `,b=(0,l.default)(g.Listbox)`
788
+ `,M=(0,l.default)(h.Listbox)`
789
789
  position: absolute;
790
790
  width: 100%;
791
- `,w=l.default.div`
791
+ `,E=l.default.div`
792
792
  align-items: center;
793
- background-color: ${({disabled:e,theme:t})=>e?t.greys["light-grey"]:t.greys.white};
794
- border: 1px solid ${function({disabled:e,focus:t,theme:n,valid:a}){return e?n.greys.grey:a?t?n.main["primary-1.1"]:n.greys["dark-grey"]:n.notifications["alert-2.1"]}};
793
+ background-color: ${({$disabled:e,theme:t})=>e?t.greys["light-grey"]:t.greys.white};
794
+ border: 1px solid ${function({$disabled:e,theme:t,$valid:n}){return e?t.greys["mid-grey"]:n?t.greys["dark-grey"]:t.notifications["alert-2.1"]}};
795
795
  border-radius: var(--border-radius);
796
- box-shadow: ${({containerOutline:e,theme:t})=>e?t.tokens["focus-box-shadow"]:"none"};
797
796
  box-sizing: border-box;
797
+ ${({$disabled:e,theme:t})=>e&&`color: ${t.greys["mid-grey"]}`};
798
798
  display: flex;
799
- height: ${({isMobile:e})=>e?"2.5rem":"2rem"};
800
- padding-right: var(--spacing-1x);
801
- width: 100%;
802
-
803
- &:hover {
804
- cursor: ${({disabled:e})=>e?"default":"pointer"};
805
- }
806
-
807
- svg {
808
- color: ${({disabled:e,theme:t})=>e?t.greys["mid-grey"]:t.greys["dark-grey"]};
809
- }
810
- `;function _(e,t){return e.filter((e=>e.label.toLowerCase().startsWith(t.toLowerCase())))}const M=l.default.input`
811
- background-color: ${({disabled:e,theme:t})=>e?t.greys["light-grey"]:t.greys.white};
812
- border: none;
813
- border-radius: var(--border-radius);
814
- box-sizing: border-box;
815
- caret-color: ${({searchable:e})=>e?"unset":"transparent"};
816
- font-size: ${({isMobile:e})=>e?"1rem":"0.875rem"};
817
- letter-spacing: 0.025rem;
818
- max-height: 100%;
819
- min-width: 0;
820
- outline: none;
821
- overflow: hidden;
822
- padding: var(--spacing-1x) 0 var(--spacing-1x) var(--spacing-1x);
823
- text-overflow: ellipsis;
824
- white-space: nowrap;
799
+ height: ${({$isMobile:e})=>e?"var(--size-2halfx)":"var(--size-2x)"};
800
+ justify-content: space-between;
801
+ padding: 0 var(--spacing-1x);
825
802
  width: 100%;
826
-
827
- &:hover {
828
- cursor: ${function({disabled:e,searchable:t}){return e?"default":t?"text":"pointer"}};
829
- }
830
-
831
- &::placeholder {
832
- color: ${({disabled:e,theme:t})=>e?t.greys["mid-grey"]:t.greys["dark-grey"]};
833
- font-size: ${({isMobile:e})=>e?"1rem":"0.875rem"};
834
- }
835
- `,E=l.default.button`
803
+
804
+ ${({theme:e})=>(0,d.focus)({theme:e},!0)};
805
+ `,k=(0,l.default)(f.Icon)`
836
806
  align-items: center;
837
- cursor: ${({disabled:e})=>e?"default":"pointer"};
807
+ color: ${({$disabled:e,theme:t})=>e?t.greys["mid-grey"]:t.greys["dark-grey"]};
838
808
  display: flex;
839
-
840
- > svg {
841
- height: var(--size-1x);
842
- width: var(--size-1x);
843
- }
844
- `;t.DropdownList=e=>{var{ariaLabel:t,className:n,defaultOpen:r=!1,defaultValue:l,disabled:h,noMargin:g,id:k,label:C,onChange:x,options:S,name:T,placeholder:H,required:P,searchable:V,skipOption:q,tooltip:O,valid:L=!0,validationErrorMessage:D,value:A,hint:j}=e,I=a(e,["ariaLabel","className","defaultOpen","defaultValue","disabled","noMargin","id","label","onChange","options","name","placeholder","required","searchable","skipOption","tooltip","valid","validationErrorMessage","value","hint"]);const{t:R}=(0,s.useTranslation)("select"),{device:W,isMobile:N}=(0,f.useDeviceContext)(),z=(0,o.useMemo)((()=>k||(0,m.v4)()),[k]),Z=(0,u.useDataAttributes)(I),[F,B]=(0,o.useState)(!1),[$,U]=(0,o.useState)(!1),[Y,K]=(0,o.useState)(!1),[G,X]=(0,o.useState)(r),[J,Q]=(0,o.useState)(""),[ee,te]=(0,o.useState)(),[ne,ae]=(0,o.useState)(l||A),re=(0,o.useMemo)((()=>q&&q.value===ne),[ne,q]),ie=(0,o.useRef)(null),oe=(0,o.useRef)(null),le=(0,o.useRef)(null),[ue,se]=(0,o.useState)(V),de=(0,o.useMemo)((()=>ue?_(S,J):S),[S,J,ue]),ce=(0,o.useCallback)((e=>S.find((t=>t.value===e))),[S]),[me,pe]=(0,o.useState)((()=>{var e,t;return null!==(t=null===(e=ce(ne))||void 0===e?void 0:e.label)&&void 0!==t?t:""}));(0,o.useEffect)((()=>{const e=ce(A);e?(ae(e.value),pe(e.label)):q&&q.value===A&&(ae(q.value),pe(""))}),[ce,S,q,re,A]);const fe=(0,o.useCallback)((()=>{var e;h||(G?(null===(e=ie.current)||void 0===e||e.focus(),B(!1),te("")):(K(!0),V&&ie.current?(ie.current.focus(),te("")):te(ne)),X(!G))}),[h,G,V,ne]),he=(0,o.useCallback)((e=>{var t;const n=!(0,d.eventIsInside)(e,oe.current,le.current);(null===oe.current||n)&&G&&(fe(),null===(t=ie.current)||void 0===t||t.blur())}),[G,fe]);function ve(e){const t=e.find((e=>!e.disabled));t&&te(t.value)}function ge(e){const t=[...e].reverse().find((e=>!e.disabled));t&&te(t.value)}function ye(){te(""),pe(""),ae(""),Q("")}(0,o.useEffect)((()=>(document.addEventListener("mouseup",he),()=>document.removeEventListener("mouseup",he))),[he,G]);const be=(0,o.useCallback)((()=>{const e=(t=me,S.find((e=>e.label.toLowerCase()===t.toLowerCase())));var t;e&&(ae(e.value),pe(e.label))}),[me,S]),we=(0,o.useCallback)((e=>{var t;X(!1),K(!1),te(""),pe(e.label),ae(e.value),se(!1),null==x||x(e),V&&(B(!1),Q(e.label)),null===(t=ie.current)||void 0===t||t.focus()}),[x,V]),_e=(0,o.useCallback)((e=>{e&&pe(e.label)}),[]);(0,o.useEffect)((()=>{!G||ee&&de.find((e=>e.value===ee))||(de.length>0?ve(de):(ae(""),te("")))}),[ee,de,G]);const Me=(0,o.useCallback)((()=>{V?te(""):(fe(),be()),B(!1)}),[fe,be,V]),Ee=(0,o.useCallback)((e=>{switch(e.key){case"ArrowDown":if(G){if(V)if(""!==J){const e=de.length>1?de[1]:de[0];setTimeout((()=>te(e.value)),10)}else setTimeout((()=>ve(de)),10)}else fe(),V||!ne?ve(de):te(ne);B(!0);break;case"ArrowUp":G?V?setTimeout((()=>ge(de)),10):F&&B(!1):(fe(),V||!ne?ge(de):setTimeout((()=>te(ne)),10)),B(!0);break;case"Enter":if(e.preventDefault(),""!==J&&de.length>0&&G){const e=ce(ee);e&&we(e)}else G||V||(fe(),setTimeout((()=>te(ne)),10));break;case" ":G||(e.preventDefault(),fe(),V||setTimeout((()=>te(ne)),10));break;case"Escape":V&&ye(),G&&(fe(),be())}}),[F,de,we,fe,be,G,J,V,ne,ce,ee]),ke=(0,o.useCallback)((e=>{var t;if("Escape"===e.key)V?ye():be(),te(""),fe();else if("ArrowUp"!==e.key||ee){if((0,c.isLetterOrNumber)(e.key))if(V)B(!1),te(""),null===(t=ie.current)||void 0===t||t.focus();else{const t=S.find((t=>t.label.toLowerCase().startsWith(e.key.toLowerCase())));t&&te(t.value)}}else ge(S)}),[ee,fe,be,S,V]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(y,{className:n,noMargin:g,fieldId:z,label:C,required:P,tooltip:O,valid:L,validationErrorMessage:D||R("validationErrorMessage"),hint:j,children:[(0,i.jsxs)(w,{"aria-expanded":G,"aria-haspopup":"listbox","aria-owns":`listbox_${z}`,"data-testid":"input-wrapper",containerOutline:$,isMobile:N,disabled:h,focus:Y,ref:oe,role:V?"combobox":void 0,valid:L,onClick:Me,children:[(0,i.jsx)(M,Object.assign({"aria-label":t||C||R("inputAriaLabel"),"aria-activedescendant":ne?`${z}_${ne}`:void 0,"aria-autocomplete":V?"both":"list","aria-controls":`listbox_${z}`,"aria-multiline":"false","data-testid":"input",id:z,isMobile:N,disabled:h,name:T,onBlur:function(){be(),G||K(!1),U(!1)},onChange:function(e){if(V){const t=e.currentTarget.value,n=_(S,t);me!==t&&se(!0),""===t?(te(""),Q(""),pe(t),X(!1),ae("")):(pe(t),Q(t),X(n.length>=1))}},onFocus:function(){K(!0),U(!0)},onKeyDown:Ee,placeholder:H,ref:ie,required:P,searchable:V,type:"text",value:me},Z)),(0,i.jsx)(E,{"aria-labelledby":z,type:"button","data-testid":"arrow",tabIndex:-1,onClick:h?void 0:function(){fe(),be()},disabled:h,children:(0,i.jsx)(v.Icon,{name:G?"chevronUp":"chevronDown",size:"mobile"===W?"24":"16"})})]}),G&&(0,i.jsx)(b,{ariaLabelledBy:z,ref:le,"data-testid":"listbox",defaultValue:l,focusedValue:ee,id:`listbox_${z}`,onChange:we,onFocusChange:V?void 0:_e,onKeyDown:ke,options:de,value:ne})]}),q&&(0,i.jsx)(p.ChooserButton,{checked:re,"data-testid":"select-skip-option",groupName:`${z}_skip`,onChange:function(){var e;!re&&q&&(ae(q.value),pe(""),null==x||x({label:q.label,value:null!==(e=q.value)&&void 0!==e?e:q.label}))},type:"radio",value:q.value,children:q.label})]})};try{t.DropdownList.displayName="DropdownList",t.DropdownList.__docgenInfo={description:"",displayName:"DropdownList",props:{ariaLabel:{defaultValue:null,description:"Sets input's aria-label",name:"ariaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"",name:"defaultOpen",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"The default selected option",name:"defaultValue",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"Disables input",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"{ disabled?: boolean, value: string; label: string; }[]",name:"options",required:!0,type:{name:"Option[]"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},searchable:{defaultValue:null,description:"Adds search functionality with autocomplete",name:"searchable",required:!1,type:{name:"boolean"}},skipOption:{defaultValue:null,description:"Adds a skip button",name:"skipOption",required:!1,type:{name:"{ label: string; value?: string; }"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},valid:{defaultValue:{value:!0},description:"Sets input validity",name:"valid",required:!1,type:{name:"boolean"}},validationErrorMessage:{defaultValue:{value:"You must select an option"},description:"Sets error message",name:"validationErrorMessage",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Set the selected value",name:"value",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"OnChange callback function, invoked when an option is selected",name:"onChange",required:!1,type:{name:"((option: Option) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/dropdown-list/dropdown-list.tsx#DropdownList"]={docgenInfo:t.DropdownList.__docgenInfo,name:"DropdownList",path:"src/components/dropdown-list/dropdown-list.tsx#DropdownList"})}catch(e){}},5233:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenuButton=t.StyledDropdownMenu=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(2219),c=n(9092),m=n(4182),p=n(8276),f=n(524),h=n(9752),v=n(9659),g=n(569),y=l.default.div`
809
+ height: var(--size-1x);
810
+ margin-left: auto;
811
+ padding: var(--spacing-half);
812
+ width: var(--size-1x);
813
+ `,C=e=>!e.disabled,x=e=>e.label;t.DropdownList=e=>{var t,n,r,{ariaLabel:l,className:d,defaultOpen:p=!1,defaultValue:f,disabled:h,noMargin:S,id:T,label:H,onChange:P,options:V,name:q,required:O,tooltip:L,valid:D=!0,validationErrorMessage:A,value:j,hint:I}=e,R=a(e,["ariaLabel","className","defaultOpen","defaultValue","disabled","noMargin","id","label","onChange","options","name","required","tooltip","valid","validationErrorMessage","value","hint"]);const{t:W}=(0,s.useTranslation)("dropdown-list"),{device:N,isMobile:z}=(0,m.useDeviceContext)(),Z=(0,g.useId)(T),F=(0,u.useDataAttributes)(R),B=(0,o.useRef)(null),$=(0,o.useRef)(null),[U,Y]=(0,o.useState)(p);function K(e){return V.find((t=>t.value===e))}const[G,X]=(0,o.useState)((()=>function(){let e;return void 0===j&&void 0===f||(e=K(null!=j?j:f)),void 0===e&&(e=V.find(C)),e}())),{selectedElement:J,setSelectedElement:Q,selectPrevious:ee,selectNext:te,selectFirst:ne,selectLast:ae}=(0,y.useListCursor)({elements:V,initialElement:G,predicate:C}),[re,ie]=(0,o.useState)(j);if(j!==re){const e=K(j);X(e),Q(e),ie(j)}function oe(){h||(!J&&G&&Q(G),Y(!0))}const le=(0,o.useCallback)((()=>{Y(!1)}),[]),ue=(0,o.useCallback)((e=>{X(e),null==P||P(e)}),[P,X]),se=(0,o.useCallback)((()=>{U&&(J&&J!==G&&ue(J),le())}),[le,J,U,ue,G]);(0,b.useClickOutside)([B,$],se);const de=(0,o.useCallback)((e=>{e&&Q(e)}),[Q]),{handleSearchInput:ce}=(0,w.useListSearch)({elements:V,focusedElement:J,onFoundElementChange:de,searchPropertyAccessor:x,predicate:C}),me=(0,v.useAriaConditionalIds)([{id:`${Z}_hint`,include:!!I},{id:`${Z}_invalid`,include:!D}]);return(0,i.jsxs)(_,{className:d,noMargin:S,fieldId:Z,label:H,required:O,tooltip:L,valid:D,validationErrorMessage:A||W("validationErrorMessage"),hint:I,children:[(0,i.jsxs)(E,Object.assign({"aria-label":H?void 0:l||W("inputAriaLabel"),"aria-activedescendant":U&&J?`${Z}_${J.value}`:void 0,"aria-controls":`${Z}_listbox`,"aria-describedby":me,"aria-expanded":U,"aria-invalid":D?"false":"true","aria-labelledby":`${Z}_label`,"aria-required":O?"true":"false","data-testid":"textbox",id:Z,$isMobile:z,$disabled:h,onBlur:function(e){U&&e.relatedTarget!==$.current&&(J&&J!==G&&ue(J),le())},onClick:function(){U?le():oe()},onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),U?te():oe();break;case"ArrowUp":e.preventDefault(),U?ee():oe();break;case"Home":e.preventDefault(),U||oe(),ne();break;case"End":e.preventDefault(),U||oe(),ae();break;case"Enter":e.preventDefault(),U?(J&&J!==G&&ue(J),le()):oe();break;case" ":e.preventDefault(),U||oe();break;case"Escape":U&&(Q(void 0),le());break;default:(0,c.isLetterOrNumber)(e.key)&&(e.preventDefault(),U||oe(),ce(e.key))}},ref:B,role:"combobox",tabIndex:0,$valid:D,value:null!==(t=null==G?void 0:G.value)&&void 0!==t?t:""},F,{children:[(0,i.jsx)("input",{type:"hidden",name:q,value:null==G?void 0:G.value,"data-testid":"input"}),null!==(n=null==G?void 0:G.label)&&void 0!==n?n:"",(0,i.jsx)(k,{"aria-hidden":"true","data-testid":"arrow",$disabled:h,name:U?"chevronUp":"chevronDown",size:"mobile"===N?"24":"16"})]})),U&&(0,i.jsx)(M,{ariaLabelledBy:`${Z}_label`,ref:$,"data-testid":"listbox",focusable:!1,focusedValue:null==J?void 0:J.value,id:`${Z}_listbox`,onOptionClick:function(e){e!==J&&Q(e),e!==G&&ue(e),le()},options:V,value:[null!==(r=null==G?void 0:G.value)&&void 0!==r?r:""]})]})};try{t.DropdownList.displayName="DropdownList",t.DropdownList.__docgenInfo={description:"",displayName:"DropdownList",props:{ariaLabel:{defaultValue:null,description:"Aria label for the input (used when no visual label is present)",name:"ariaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"",name:"defaultOpen",required:!1,type:{name:"boolean"}},defaultValue:{defaultValue:null,description:"The default selected option",name:"defaultValue",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"Disables input",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"{ disabled?: boolean, value: string; label: string; }[]",name:"options",required:!0,type:{name:"DropdownListOption[]"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},valid:{defaultValue:{value:!0},description:"Sets input validity",name:"valid",required:!1,type:{name:"boolean"}},validationErrorMessage:{defaultValue:{value:"You must select an option"},description:"Sets error message",name:"validationErrorMessage",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Set the selected value",name:"value",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"OnChange callback function, invoked when an option is selected",name:"onChange",required:!1,type:{name:"((option: DropdownListOption) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/dropdown-list/dropdown-list.tsx#DropdownList"]={docgenInfo:t.DropdownList.__docgenInfo,name:"DropdownList",path:"src/components/dropdown-list/dropdown-list.tsx#DropdownList"})}catch(e){}},5233:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenuButton=t.StyledDropdownMenu=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(2219),c=n(9092),m=n(4182),p=n(8276),f=n(524),h=n(9752),v=n(9659),g=n(569),y=l.default.div`
845
814
  position: relative;
846
815
  `,b=(0,l.default)(p.Button)`
847
816
  font-size: 0.875rem;
@@ -1066,7 +1035,7 @@
1066
1035
  font-weight: var(--font-normal);
1067
1036
  letter-spacing: 0.02rem;
1068
1037
  line-height: ${({isMobile:e})=>e?"1.5rem":"1.25rem"};
1069
- `;t.FieldContainer=e=>{var{children:t,className:n,fieldId:r,hint:o,label:m,noInvalidFieldIcon:p,noMargin:f,required:h,tooltip:v,valid:g,validationErrorMessage:y}=e,b=a(e,["children","className","fieldId","hint","label","noInvalidFieldIcon","noMargin","required","tooltip","valid","validationErrorMessage"]);const{isMobile:w}=(0,l.useDeviceContext)();return(0,i.jsxs)(d,Object.assign({className:n,noMargin:f,hasLabel:!!m,hasHint:!!o,valid:g},b,{children:[m&&(0,i.jsx)(s.Label,{forId:r,tooltip:v,required:h,children:m}),o&&(0,i.jsx)(c,{id:`${r}_hint`,isMobile:w,children:o}),!g&&(0,i.jsx)(u.InvalidField,{"data-testid":"text-input-error-msg",controlId:r,feedbackMsg:y,noIcon:p}),t]}))};try{t.FieldContainer.displayName="FieldContainer",t.FieldContainer.__docgenInfo={description:"",displayName:"FieldContainer",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},fieldId:{defaultValue:null,description:"",name:"fieldId",required:!0,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},noInvalidFieldIcon:{defaultValue:null,description:"",name:"noInvalidFieldIcon",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"",name:"noMargin",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},valid:{defaultValue:null,description:"",name:"valid",required:!0,type:{name:"boolean"}},validationErrorMessage:{defaultValue:null,description:"",name:"validationErrorMessage",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/field-container/field-container.tsx#FieldContainer"]={docgenInfo:t.FieldContainer.__docgenInfo,name:"FieldContainer",path:"src/components/field-container/field-container.tsx#FieldContainer"})}catch(e){}},4570:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalBanner=void 0;const o=n(3564),l=n(8156),u=i(n(1608)),s=n(8077),d=n(8276),c=n(9752),m=n(569);function p({bannerType:e,theme:t}){switch(e){case"alert":return t.notifications["alert-2.1"];case"warning":return t.notifications["warning-3.1"];case"info":return t.notifications["info-1.1"];case"default":return t.greys["dark-grey"]}}const f=u.default.strong`
1038
+ `;t.FieldContainer=e=>{var{children:t,className:n,fieldId:r,hint:o,label:m,noInvalidFieldIcon:p,noMargin:f,required:h,tooltip:v,valid:g,validationErrorMessage:y}=e,b=a(e,["children","className","fieldId","hint","label","noInvalidFieldIcon","noMargin","required","tooltip","valid","validationErrorMessage"]);const{isMobile:w}=(0,l.useDeviceContext)();return(0,i.jsxs)(d,Object.assign({className:n,noMargin:f,hasLabel:!!m,hasHint:!!o,valid:g},b,{children:[m&&(0,i.jsx)(s.Label,{id:`${r}_label`,forId:r,tooltip:v,required:h,children:m}),o&&(0,i.jsx)(c,{id:`${r}_hint`,isMobile:w,children:o}),!g&&(0,i.jsx)(u.InvalidField,{"data-testid":"text-input-error-msg",controlId:r,feedbackMsg:y,noIcon:p}),t]}))};try{t.FieldContainer.displayName="FieldContainer",t.FieldContainer.__docgenInfo={description:"",displayName:"FieldContainer",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},fieldId:{defaultValue:null,description:"",name:"fieldId",required:!0,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},noInvalidFieldIcon:{defaultValue:null,description:"",name:"noInvalidFieldIcon",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"",name:"noMargin",required:!1,type:{name:"boolean"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},valid:{defaultValue:null,description:"",name:"valid",required:!0,type:{name:"boolean"}},validationErrorMessage:{defaultValue:null,description:"",name:"validationErrorMessage",required:!0,type:{name:"string"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/field-container/field-container.tsx#FieldContainer"]={docgenInfo:t.FieldContainer.__docgenInfo,name:"FieldContainer",path:"src/components/field-container/field-container.tsx#FieldContainer"})}catch(e){}},4570:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalBanner=void 0;const o=n(3564),l=n(8156),u=i(n(1608)),s=n(8077),d=n(8276),c=n(9752),m=n(569);function p({bannerType:e,theme:t}){switch(e){case"alert":return t.notifications["alert-2.1"];case"warning":return t.notifications["warning-3.1"];case"info":return t.notifications["info-1.1"];case"default":return t.greys["dark-grey"]}}const f=u.default.strong`
1070
1039
  display: ${({isMobile:e})=>e?"block":"inline"};
1071
1040
  font-weight: var(--font-semi-bold);
1072
1041
 
@@ -1379,7 +1348,7 @@
1379
1348
  }
1380
1349
  `,m=(0,o.default)(u.Tooltip)`
1381
1350
  margin-left: calc(var(--spacing-1x) * 1.5);
1382
- `,p=({type:e})=>{const{t}=(0,s.useTranslation)("text-input");return(0,r.jsxs)(r.Fragment,{children:[" (",t("required"),")"]})};t.Label=({className:e,children:t,forId:n,tooltip:a,required:o,requiredLabelType:u="text"})=>{const s=a?d:i.Fragment,{isMobile:f}=(0,l.useDeviceContext)();return(0,r.jsxs)(s,{children:[(0,r.jsxs)(c,{className:e,htmlFor:n,isMobile:f,children:[t,o&&(0,r.jsx)(p,{type:u})]}),a&&(0,r.jsx)(m,Object.assign({},a))]})};try{t.Label.displayName="Label",t.FunctionComponent.__docgenInfo={description:"",displayName:"Label",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},forId:{defaultValue:null,description:"",name:"forId",required:!0,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},requiredLabelType:{defaultValue:{value:"text"},description:"",name:"requiredLabelType",required:!1,type:{name:"enum",value:[{value:'"text"'}]}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/label/label.tsx#Label"]={docgenInfo:t.Label.__docgenInfo,name:"Label",path:"src/components/label/label.tsx#Label"})}catch(e){}},9855:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Legend=void 0;const r=n(3564),i=n(8156),o=a(n(1608)),l=o.default.ul`
1351
+ `,p=({type:e})=>{const{t}=(0,s.useTranslation)("text-input");return(0,r.jsxs)(r.Fragment,{children:[" (",t("required"),")"]})};t.Label=({className:e,children:t,forId:n,id:a,tooltip:o,required:u,requiredLabelType:s="text"})=>{const f=o?d:i.Fragment,{isMobile:h}=(0,l.useDeviceContext)();return(0,r.jsxs)(f,{children:[(0,r.jsxs)(c,{className:e,htmlFor:n,id:a,isMobile:h,children:[t,u&&(0,r.jsx)(p,{type:s})]}),o&&(0,r.jsx)(m,Object.assign({},o))]})};try{t.Label.displayName="Label",t.FunctionComponent.__docgenInfo={description:"",displayName:"Label",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},forId:{defaultValue:null,description:"",name:"forId",required:!0,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},requiredLabelType:{defaultValue:{value:"text"},description:"",name:"requiredLabelType",required:!1,type:{name:"enum",value:[{value:'"text"'}]}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/label/label.tsx#Label"]={docgenInfo:t.Label.__docgenInfo,name:"Label",path:"src/components/label/label.tsx#Label"})}catch(e){}},9855:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Legend=void 0;const r=n(3564),i=n(8156),o=a(n(1608)),l=o.default.ul`
1383
1352
  margin: 0;
1384
1353
  padding: 0;
1385
1354
  `,u=o.default.li`
@@ -1458,6 +1427,7 @@
1458
1427
  font-size: ${({isMobile:e})=>e?"1rem":"0.875rem"};
1459
1428
  font-weight: ${({selected:e})=>e?"var(--font-semi-bold)":"var(--font-normal)"};
1460
1429
  line-height: var(--size-1halfx);
1430
+ min-height: var(--size-1halfx);
1461
1431
  padding: var(--spacing-half) var(--spacing-2x);
1462
1432
 
1463
1433
  ${({isMobile:e})=>!e&&u.css`
@@ -1486,7 +1456,7 @@
1486
1456
  color: ${({disabled:e,theme:t})=>e?t.greys.grey:t.greys["dark-grey"]};
1487
1457
  display: block;
1488
1458
  font-size: ${({isMobile:e})=>e?"0.875rem":"0.75rem"};
1489
- `,k=e=>!e.disabled;t.Listbox=(0,l.forwardRef)((({ariaLabelledBy:e,id:t,options:n,onChange:a,onFocusChange:r,onKeyDown:i,className:u,defaultValue:s,focusable:c=!0,multiselect:C=!1,focusedValue:x,value:S},T)=>{const H=(0,m.useId)(t),{isMobile:P}=(0,d.useDeviceContext)(),V=(0,l.useRef)(null),q=(0,l.useRef)(new Map),O=(0,l.useCallback)((e=>n.filter((t=>Array.isArray(e)?e.includes(t.value):t.value===e))),[n]),{selectedElement:L,setSelectedElement:D,selectPrevious:A,selectNext:j,selectFirst:I,selectLast:R}=(0,p.useListCursor)({elements:n,initialElement:O(x)[0],predicate:k}),[W,N]=(0,l.useState)((()=>O(S||s)));function z(e){return C?W.includes(e):W[0]===e}function Z(e){return e===L}function F(e){W.includes(e)||(N([e]),null==a||a(e))}function B(e){const t=(0,v.unique)([...W,...e.filter(k)]);N(t),null==a||a(t)}function $(e,t){const n=!W.includes(e)||t?(0,v.unique)([...W,e]):W.filter((t=>t!==e));N(n),null==a||a(n)}const{scrollIntoView:U}=(0,f.useScrollIntoView)({container:V}),Y=(0,l.useCallback)(((e,t=!1)=>{if(e){const n=q.current.get(e.value);n&&U(n,t)}}),[U]);(0,l.useLayoutEffect)((()=>{L&&Y(L)}),[L,n,Y]),(0,l.useLayoutEffect)((()=>{const e=O(x||s);e.length>0&&Y(e[0],!0)}),[s,x,O,Y]);const[K,G]=(0,l.useState)(x);if(x!==K){const e=O(x)[0];D(e),G(x)}const[X,J]=(0,l.useState)(S);S!==X&&(N(O(S)),J(S));let Q=!1;function ee(){Q=!0,document.addEventListener("mouseup",(()=>{Q=!1}),{once:!0})}function te(e){return()=>{e!==L&&(D(e),null==r||r(e)),C?$(e):F(e)}}return(0,o.jsx)(g,{"aria-activedescendant":L?`${H}_${L.value}`:void 0,"aria-labelledby":e,"aria-multiselectable":C?"true":void 0,className:u,"data-testid":"listbox-container",$focusable:c,id:H,onBlur:function(){D(void 0)},onFocus:function(){!L&&W.length>0&&!Q&&D(W[0])},onKeyDown:function(e){let t;switch(e.key){case" ":e.preventDefault(),C&&L&&$(L);break;case"ArrowUp":e.preventDefault(),t=A(),t&&(null==r||r(t),C&&e.shiftKey&&L?$(t,!0):C||F(t));break;case"ArrowDown":e.preventDefault(),t=j(),t&&(null==r||r(t),C&&e.shiftKey&&L?$(t,!0):C||F(t));break;case"Home":e.preventDefault(),t=I(),t&&(null==r||r(t),C&&e.shiftKey&&(e.ctrlKey||e.metaKey)&&L?B(n.slice(n.indexOf(t),n.indexOf(L)+1)):C||F(t));break;case"End":e.preventDefault(),t=R(),t&&(null==r||r(t),C&&e.shiftKey&&(e.ctrlKey||e.metaKey)&&L?B(n.slice(n.indexOf(L),n.indexOf(t)+1)):C||F(t));break;case"a":C&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),function(){const e=n.filter(k),t=W.length===e.length?[]:e;N(t),null==a||a(t)}())}null==i||i(e)},ref:(0,h.mergeRefs)(T,V),role:"listbox",tabIndex:c?0:-1,children:(0,o.jsx)(y,{"data-testid":"listbox-list",role:"presentation",children:n.map((e=>(0,o.jsxs)(_,{"aria-disabled":e.disabled,"aria-selected":C&&z(e)?"true":void 0,"data-testid":`listitem-${e.value}`,disabled:e.disabled,focused:Z(e),id:`${H}_${e.value}`,isMobile:P,onClick:e.disabled?void 0:te(e),onMouseDown:ee,ref:t=>{const n=q.current;t?n.set(e.value,t):n.delete(e.value)},role:"option",selected:z(e),children:[C?(0,o.jsx)(w,{"aria-hidden":"true",disabled:e.disabled,checked:z(e),children:(0,o.jsx)(b,{})}):null,(0,o.jsxs)(M,{children:[e.label||e.value,e.caption&&(0,o.jsx)(E,{disabled:e.disabled,isMobile:P,children:e.caption})]})]},e.value)))})})})),t.Listbox.displayName="Listbox";try{t.Listbox.displayName="Listbox",t.Listbox.__docgenInfo={description:"",displayName:"Listbox",props:{ariaLabelledBy:{defaultValue:null,description:"",name:"ariaLabelledBy",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"{ value: string; label?: string; caption?: string; disabled?: boolean }[]",name:"options",required:!0,type:{name:"ListboxOption[]"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"The default selected option. You may specify an array of strings when using multiselect feature.",name:"defaultValue",required:!1,type:{name:"Value"}},focusable:{defaultValue:{value:!0},description:"Set to false to prevent the listbox from receiving focus",name:"focusable",required:!1,type:{name:"boolean"}},multiselect:{defaultValue:{value:!1},description:"Activates multiple selection feature",name:"multiselect",required:!1,type:{name:"boolean"}},focusedValue:{defaultValue:null,description:"Sets the current focused element in the listbox",name:"focusedValue",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Sets the selected value (controlled input)",name:"value",required:!1,type:{name:"Value"}},onChange:{defaultValue:null,description:"Callback function, invoked when an option is selected",name:"onChange",required:!1,type:{name:"((options: ListboxOption | ListboxOption[]) => void)"}},onKeyDown:{defaultValue:null,description:"Callback function, invoked when a key is pressed",name:"onKeyDown",required:!1,type:{name:"((event: KeyboardEvent<Element>) => void)"}},onFocusChange:{defaultValue:null,description:"Callback function, invoked when focused value changes",name:"onFocusChange",required:!1,type:{name:"((option?: ListboxOption) => void)"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLDivElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/listbox/listbox.tsx#Listbox"]={docgenInfo:t.Listbox.__docgenInfo,name:"Listbox",path:"src/components/listbox/listbox.tsx#Listbox"})}catch(e){}},6152:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Lozenge=void 0;const r=n(3564),i=a(n(1608)),o=n(9752),l=n(569),u=i.default.div`
1459
+ `,k=e=>!e.disabled;t.Listbox=(0,l.forwardRef)((({ariaLabelledBy:e,id:t,options:n,onChange:a,onFocusChange:r,onKeyDown:i,onOptionClick:u,className:s,defaultValue:c,focusable:C=!0,multiselect:x=!1,focusedValue:S,value:T},H)=>{const P=(0,m.useId)(t),{isMobile:V}=(0,d.useDeviceContext)(),q=(0,l.useRef)(null),O=(0,l.useRef)(new Map),L=(0,l.useCallback)((e=>n.filter((t=>Array.isArray(e)?e.includes(t.value):t.value===e))),[n]),{selectedElement:D,setSelectedElement:A,selectPrevious:j,selectNext:I,selectFirst:R,selectLast:W}=(0,p.useListCursor)({elements:n,initialElement:L(S)[0],predicate:k}),[N,z]=(0,l.useState)((()=>L(null!=T?T:c)));function Z(e){return x?N.includes(e):N[0]===e}function F(e){return e===D}function B(e){N.includes(e)||(z([e]),null==a||a(e))}function $(e){const t=(0,v.unique)([...N,...e.filter(k)]);z(t),null==a||a(t)}function U(e,t){const n=!N.includes(e)||t?(0,v.unique)([...N,e]):N.filter((t=>t!==e));z(n),null==a||a(n)}const{scrollIntoView:Y}=(0,f.useScrollIntoView)({container:q}),K=(0,l.useCallback)(((e,t=!1)=>{if(e){const n=O.current.get(e.value);n&&Y(n,t)}}),[Y]);(0,l.useLayoutEffect)((()=>{D&&K(D)}),[D,n,K]),(0,l.useLayoutEffect)((()=>{const e=L(S||c);e.length>0&&K(e[0],!0)}),[c,S,L,K]);const[G,X]=(0,l.useState)(S);if(S!==G){const e=L(S)[0];A(e),X(S)}const[J,Q]=(0,l.useState)(T);T!==J&&(z(L(T)),Q(T));let ee=!1;function te(){ee=!0,document.addEventListener("mouseup",(()=>{ee=!1}),{once:!0})}function ne(e){return()=>{null==u||u(e),e!==D&&(A(e),null==r||r(e)),x?U(e):B(e)}}return(0,o.jsx)(g,{"aria-activedescendant":D?`${P}_${D.value}`:void 0,"aria-labelledby":e,"aria-multiselectable":x?"true":void 0,className:s,"data-testid":"listbox-container",$focusable:C,id:P,onBlur:function(){A(void 0)},onFocus:function(){!D&&N.length>0&&!ee&&A(N[0])},onKeyDown:function(e){let t;switch(e.key){case" ":e.preventDefault(),x&&D&&U(D);break;case"ArrowUp":e.preventDefault(),t=j(),t&&(null==r||r(t),x&&e.shiftKey&&D?U(t,!0):x||B(t));break;case"ArrowDown":e.preventDefault(),t=I(),t&&(null==r||r(t),x&&e.shiftKey&&D?U(t,!0):x||B(t));break;case"Home":e.preventDefault(),t=R(),t&&(null==r||r(t),x&&e.shiftKey&&(e.ctrlKey||e.metaKey)&&D?$(n.slice(n.indexOf(t),n.indexOf(D)+1)):x||B(t));break;case"End":e.preventDefault(),t=W(),t&&(null==r||r(t),x&&e.shiftKey&&(e.ctrlKey||e.metaKey)&&D?$(n.slice(n.indexOf(D),n.indexOf(t)+1)):x||B(t));break;case"a":x&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),function(){const e=n.filter(k),t=N.length===e.length?[]:e;z(t),null==a||a(t)}())}null==i||i(e)},ref:(0,h.mergeRefs)(H,q),role:"listbox",tabIndex:C?0:-1,children:(0,o.jsx)(y,{"data-testid":"listbox-list",role:"presentation",children:n.map((e=>(0,o.jsxs)(_,{"aria-disabled":e.disabled,"aria-selected":x&&Z(e)?"true":void 0,"data-testid":`listitem-${e.value}`,disabled:e.disabled,focused:F(e),id:`${P}_${e.value}`,isMobile:V,onClick:e.disabled?void 0:ne(e),onMouseDown:te,ref:t=>{const n=O.current;t?n.set(e.value,t):n.delete(e.value)},role:"option",selected:Z(e),children:[x?(0,o.jsx)(w,{"aria-hidden":"true",disabled:e.disabled,checked:Z(e),children:(0,o.jsx)(b,{})}):null,(0,o.jsxs)(M,{children:[e.label||e.value,e.caption&&(0,o.jsx)(E,{disabled:e.disabled,isMobile:V,children:e.caption})]})]},e.value)))})})})),t.Listbox.displayName="Listbox";try{t.Listbox.displayName="Listbox",t.Listbox.__docgenInfo={description:"",displayName:"Listbox",props:{ariaLabelledBy:{defaultValue:null,description:"",name:"ariaLabelledBy",required:!1,type:{name:"string"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},options:{defaultValue:null,description:"{ value: string; label?: string; caption?: string; disabled?: boolean }[]",name:"options",required:!0,type:{name:"ListboxOption[]"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"The default selected option. You may specify an array of strings when using multiselect feature.",name:"defaultValue",required:!1,type:{name:"Value"}},focusable:{defaultValue:{value:!0},description:"Set to false to prevent the listbox from receiving focus",name:"focusable",required:!1,type:{name:"boolean"}},multiselect:{defaultValue:{value:!1},description:"Activates multiple selection feature",name:"multiselect",required:!1,type:{name:"boolean"}},focusedValue:{defaultValue:null,description:"Sets the current focused element in the listbox",name:"focusedValue",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Sets the selected value (controlled input)",name:"value",required:!1,type:{name:"Value"}},onChange:{defaultValue:null,description:"Callback function, invoked when an option is selected",name:"onChange",required:!1,type:{name:"((options: ListboxOption | ListboxOption[]) => void)"}},onKeyDown:{defaultValue:null,description:"Callback function, invoked when a key is pressed",name:"onKeyDown",required:!1,type:{name:"((event: KeyboardEvent<Element>) => void)"}},onFocusChange:{defaultValue:null,description:"Callback function, invoked when focused value changes",name:"onFocusChange",required:!1,type:{name:"((option?: ListboxOption) => void)"}},onOptionClick:{defaultValue:null,description:"Callback function, invoked when an option is clicked",name:"onOptionClick",required:!1,type:{name:"((option?: ListboxOption) => void)"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLDivElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/listbox/listbox.tsx#Listbox"]={docgenInfo:t.Listbox.__docgenInfo,name:"Listbox",path:"src/components/listbox/listbox.tsx#Listbox"})}catch(e){}},6152:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Lozenge=void 0;const r=n(3564),i=a(n(1608)),o=n(9752),l=n(569),u=i.default.div`
1490
1460
  align-items: center;
1491
1461
  background-color: ${function({$type:e,theme:t}){switch(e){case"success":return t.notifications["success-1.2"];case"disabled":case"default":default:return t.greys["light-grey"];case"alert":return t.notifications["alert-2.2"];case"warning":return t.notifications["warning-3.2"];case"info":return"#f9f7fb"}}};
1492
1462
  border: 1px solid ${function({$type:e,theme:t}){switch(e){case"success":return t.notifications["success-1.1"];case"disabled":return t.greys["mid-grey"];case"alert":return t.notifications["alert-2.1"];case"warning":return t.notifications["warning-3.1"];case"info":return t.notifications["info-1.1"];default:return t.greys["dark-grey"]}}};
@@ -1957,7 +1927,7 @@
1957
1927
  border-color: ${({theme:e})=>e.main["primary-1.1"]};
1958
1928
  }
1959
1929
  }
1960
- `;t.PasswordInput=e=>{var{id:t,name:n,label:a,hint:r,disabled:i,placeholder:s,value:c,defaultValue:m,validationErrorMessage:g,onBlur:_,onChange:M,onFocus:E}=e,k=o(e,["id","name","label","hint","disabled","placeholder","value","defaultValue","validationErrorMessage","onBlur","onChange","onFocus"]);const{t:C}=(0,p.useTranslation)("password-input"),[x,S]=(0,u.useState)(!1),T=void 0===g||""===g,H=(0,u.useMemo)((()=>t||(0,f.v4)()),[t]),P=(0,h.useDataAttributes)(k),V=(0,u.useCallback)((()=>{S(!x)}),[x]),q=(0,u.useCallback)((e=>{const t=e.target.value;null==M||M(t,e)}),[M]);return(0,l.jsx)(d.FieldContainer,{fieldId:H,label:a,hint:r,validationErrorMessage:null!=g?g:"",valid:T,children:(0,l.jsxs)(w,{children:[(0,l.jsx)(y,Object.assign({id:H,disabled:i,name:null!=n?n:"password",autoComplete:x?"off":"current-password",ariaInvalid:!T,onBlur:_,onChange:q,onFocus:E,placeholder:s,"data-testid":"password-input",type:x?"text":"password",defaultValue:m,value:c},P)),(0,l.jsx)(v.Tooltip,{desktopPlacement:"top",label:C(x?"hide-password":"show-password"),children:(0,l.jsx)(b,{$isValid:T,disabled:i,buttonType:"tertiary","aria-label":C("show-password"),iconName:x?"eyeOff":"eye","aria-pressed":x,"data-testid":"show-password-button",type:"button",onClick:V})})]})})};try{t.PasswordInput.displayName="PasswordInput",t.PasswordInput.__docgenInfo={description:"",displayName:"PasswordInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string"}},validationErrorMessage:{defaultValue:null,description:"",name:"validationErrorMessage",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((newPassword: string, event: ChangeEvent<HTMLInputElement>) => void)"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/password-input/password-input.tsx#PasswordInput"]={docgenInfo:t.PasswordInput.__docgenInfo,name:"PasswordInput",path:"src/components/password-input/password-input.tsx#PasswordInput"})}catch(e){}},5585:(e,t)=>{"use strict";function n(e){return(e.match(t.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX)||[]).length}function a(e){return n(e)>0}function r(e,t,n){if(t<0)return-1;const a=e.slice(t).indexOf(n);return a>=0?t+a:a}Object.defineProperty(t,"__esModule",{value:!0}),t.findNextInsertPositionFromPatternInputDiff=t.getPreviousPlaceholderIndex=t.getNextPlaceholderIndex=t.hasAnyDecimalChar=t.getDecimalCharCount=t.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX=void 0,t.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX=/\d/g,t.getDecimalCharCount=n,t.hasAnyDecimalChar=a,t.getNextPlaceholderIndex=r,t.getPreviousPlaceholderIndex=function(e,t,n){return t<0?-1:e.slice(0,t).lastIndexOf(n)},t.findNextInsertPositionFromPatternInputDiff=function(e,t,n){for(let i=0;i<e.length;i++)if(a(e[i])&&t[i]!==n){const e=r(t,i,n);return e>=0?e+1:e}return-1};try{t.getDecimalCharCount.displayName="getDecimalCharCount",t.getDecimalCharCount.__docgenInfo={description:"",displayName:"getDecimalCharCount",props:{toString:{defaultValue:null,description:"Returns a string representation of a string.",name:"toString",required:!1,type:{name:"() => string"}},charAt:{defaultValue:null,description:"Returns the character at the specified index.\n@param pos The zero-based index of the desired character.",name:"charAt",required:!0,type:{name:"(pos: number) => string"}},charCodeAt:{defaultValue:null,description:"Returns the Unicode value of the character at the specified location.\n@param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",name:"charCodeAt",required:!0,type:{name:"(index: number) => number"}},concat:{defaultValue:null,description:"Returns a string that contains the concatenation of two or more strings.\n@param strings The strings to append to the end of the string.",name:"concat",required:!0,type:{name:"(...strings: string[]) => string"}},indexOf:{defaultValue:null,description:"Returns the position of the first occurrence of a substring.\n@param searchString The substring to search for in the string\n@param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",name:"indexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the last occurrence of a substring in the string.\n@param searchString The substring to search for.\n@param position The index at which to begin searching. If omitted, the search begins at the end of the string.",name:"lastIndexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},localeCompare:{defaultValue:null,description:"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.\n@param that String to compare to target string\n@param that String to compare to target string\n@param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n@param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.",name:"localeCompare",required:!0,type:{name:"{ (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; }"}},match:{defaultValue:null,description:"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.\n@param matcher An object that supports being matched against.",name:"match",required:!0,type:{name:"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},replace:{defaultValue:null,description:"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.\n@param searchValue A string or regular expression to search for.\n@param replaceValue A string containing the text to replace. When the {@linkcode searchValue } is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue } is replaced.\n@param searchValue A string to search for.\n@param replacer A function that returns the replacement text.\n@param searchValue An object that supports searching for and replacing matches within a string.\n@param replaceValue The replacement text.\n@param searchValue A object can search for and replace matches within a string.\n@param replacer A function that returns the replacement text.",name:"replace",required:!0,type:{name:"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { ...; }, replaceValue: string): string; (searchValue: { ...; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},search:{defaultValue:null,description:"Finds the first substring match in a regular expression search.\n@param regexp The regular expression pattern and applicable flags.\n@param searcher An object which supports searching within a string.",name:"search",required:!0,type:{name:"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},slice:{defaultValue:null,description:"Returns a section of a string.\n@param start The index to the beginning of the specified portion of stringObj.\n@param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\nIf this value is not specified, the substring continues to the end of stringObj.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => string"}},split:{defaultValue:null,description:"Split a string into substrings using the specified separator and return them as an array.\n@param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n@param limit A value used to limit the number of elements returned in the array.\n@param splitter An object that can split a string.\n@param limit A value used to limit the number of elements returned in the array.",name:"split",required:!0,type:{name:"{ (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }"}},substring:{defaultValue:null,description:"Returns the substring at the specified location within a String object.\n@param start The zero-based index number indicating the beginning of the substring.\n@param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\nIf end is omitted, the characters from start through the end of the original string are returned.",name:"substring",required:!0,type:{name:"(start: number, end?: number | undefined) => string"}},toLowerCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to lowercase.",name:"toLowerCase",required:!0,type:{name:"() => string"}},toLocaleLowerCase:{defaultValue:null,description:"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",name:"toLocaleLowerCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},toUpperCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to uppercase.",name:"toUpperCase",required:!0,type:{name:"() => string"}},toLocaleUpperCase:{defaultValue:null,description:"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",name:"toLocaleUpperCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},trim:{defaultValue:null,description:"Removes the leading and trailing white space and line terminator characters from a string.",name:"trim",required:!0,type:{name:"() => string"}},length:{defaultValue:null,description:"Returns the length of a String object.",name:"length",required:!0,type:{name:"number"}},substr:{defaultValue:null,description:"Gets a substring beginning at the specified location and having the specified length.\n@deprecated A legacy feature for browser compatibility\n@param from The starting position of the desired substring. The index of the first character in the string is zero.\n@param length The number of characters to include in the returned substring.",name:"substr",required:!0,type:{name:"(from: number, length?: number | undefined) => string"}},valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => string"}},codePointAt:{defaultValue:null,description:"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.",name:"codePointAt",required:!0,type:{name:"(pos: number) => number | undefined"}},includes:{defaultValue:null,description:"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.\n@param searchString search string\n@param position If position is undefined, 0 is assumed, so as to search all of the String.",name:"includes",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},endsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.",name:"endsWith",required:!0,type:{name:"(searchString: string, endPosition?: number | undefined) => boolean"}},normalize:{defaultValue:null,description:'Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"',name:"normalize",required:!0,type:{name:'{ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; (form?: string | undefined): string; }'}},repeat:{defaultValue:null,description:"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.\n@param count number of copies to append",name:"repeat",required:!0,type:{name:"(count: number) => string"}},startsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.",name:"startsWith",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},anchor:{defaultValue:null,description:"Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n@deprecated A legacy feature for browser compatibility\n@param name",name:"anchor",required:!0,type:{name:"(name: string) => string"}},big:{defaultValue:null,description:"Returns a `<big>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"big",required:!0,type:{name:"() => string"}},blink:{defaultValue:null,description:"Returns a `<blink>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"blink",required:!0,type:{name:"() => string"}},bold:{defaultValue:null,description:"Returns a `<b>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"bold",required:!0,type:{name:"() => string"}},fixed:{defaultValue:null,description:"Returns a `<tt>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"fixed",required:!0,type:{name:"() => string"}},fontcolor:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the color attribute value\n@deprecated A legacy feature for browser compatibility",name:"fontcolor",required:!0,type:{name:"(color: string) => string"}},fontsize:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the size attribute value\n@deprecated A legacy feature for browser compatibility\n@deprecated A legacy feature for browser compatibility",name:"fontsize",required:!0,type:{name:"{ (size: number): string; (size: string): string; }"}},italics:{defaultValue:null,description:"Returns an `<i>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"italics",required:!0,type:{name:"() => string"}},link:{defaultValue:null,description:"Returns an `<a>` HTML element and sets the href attribute value\n@deprecated A legacy feature for browser compatibility",name:"link",required:!0,type:{name:"(url: string) => string"}},small:{defaultValue:null,description:"Returns a `<small>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"small",required:!0,type:{name:"() => string"}},strike:{defaultValue:null,description:"Returns a `<strike>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"strike",required:!0,type:{name:"() => string"}},sub:{defaultValue:null,description:"Returns a `<sub>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sub",required:!0,type:{name:"() => string"}},sup:{defaultValue:null,description:"Returns a `<sup>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sup",required:!0,type:{name:"() => string"}},padStart:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padStart",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},padEnd:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padEnd",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},trimEnd:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.",name:"trimEnd",required:!0,type:{name:"() => string"}},trimStart:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.",name:"trimStart",required:!0,type:{name:"() => string"}},trimLeft:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimStart` instead",name:"trimLeft",required:!0,type:{name:"() => string"}},trimRight:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimEnd` instead",name:"trimRight",required:!0,type:{name:"() => string"}},matchAll:{defaultValue:null,description:"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.",name:"matchAll",required:!0,type:{name:"(regexp: RegExp) => IterableIterator<RegExpMatchArray>"}},"__@iterator@47954":{defaultValue:null,description:"Iterator",name:"__@iterator@47954",required:!0,type:{name:"() => IterableIterator<string>"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => string | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/phone-input/phone-input-char-finder.tsx#getDecimalCharCount"]={docgenInfo:t.getDecimalCharCount.__docgenInfo,name:"getDecimalCharCount",path:"src/components/phone-input/phone-input-char-finder.tsx#getDecimalCharCount"})}catch(e){}try{t.hasAnyDecimalChar.displayName="hasAnyDecimalChar",t.hasAnyDecimalChar.__docgenInfo={description:"",displayName:"hasAnyDecimalChar",props:{toString:{defaultValue:null,description:"Returns a string representation of a string.",name:"toString",required:!1,type:{name:"() => string"}},charAt:{defaultValue:null,description:"Returns the character at the specified index.\n@param pos The zero-based index of the desired character.",name:"charAt",required:!0,type:{name:"(pos: number) => string"}},charCodeAt:{defaultValue:null,description:"Returns the Unicode value of the character at the specified location.\n@param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",name:"charCodeAt",required:!0,type:{name:"(index: number) => number"}},concat:{defaultValue:null,description:"Returns a string that contains the concatenation of two or more strings.\n@param strings The strings to append to the end of the string.",name:"concat",required:!0,type:{name:"(...strings: string[]) => string"}},indexOf:{defaultValue:null,description:"Returns the position of the first occurrence of a substring.\n@param searchString The substring to search for in the string\n@param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",name:"indexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the last occurrence of a substring in the string.\n@param searchString The substring to search for.\n@param position The index at which to begin searching. If omitted, the search begins at the end of the string.",name:"lastIndexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},localeCompare:{defaultValue:null,description:"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.\n@param that String to compare to target string\n@param that String to compare to target string\n@param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n@param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.",name:"localeCompare",required:!0,type:{name:"{ (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; }"}},match:{defaultValue:null,description:"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.\n@param matcher An object that supports being matched against.",name:"match",required:!0,type:{name:"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},replace:{defaultValue:null,description:"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.\n@param searchValue A string or regular expression to search for.\n@param replaceValue A string containing the text to replace. When the {@linkcode searchValue } is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue } is replaced.\n@param searchValue A string to search for.\n@param replacer A function that returns the replacement text.\n@param searchValue An object that supports searching for and replacing matches within a string.\n@param replaceValue The replacement text.\n@param searchValue A object can search for and replace matches within a string.\n@param replacer A function that returns the replacement text.",name:"replace",required:!0,type:{name:"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { ...; }, replaceValue: string): string; (searchValue: { ...; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},search:{defaultValue:null,description:"Finds the first substring match in a regular expression search.\n@param regexp The regular expression pattern and applicable flags.\n@param searcher An object which supports searching within a string.",name:"search",required:!0,type:{name:"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},slice:{defaultValue:null,description:"Returns a section of a string.\n@param start The index to the beginning of the specified portion of stringObj.\n@param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\nIf this value is not specified, the substring continues to the end of stringObj.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => string"}},split:{defaultValue:null,description:"Split a string into substrings using the specified separator and return them as an array.\n@param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n@param limit A value used to limit the number of elements returned in the array.\n@param splitter An object that can split a string.\n@param limit A value used to limit the number of elements returned in the array.",name:"split",required:!0,type:{name:"{ (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }"}},substring:{defaultValue:null,description:"Returns the substring at the specified location within a String object.\n@param start The zero-based index number indicating the beginning of the substring.\n@param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\nIf end is omitted, the characters from start through the end of the original string are returned.",name:"substring",required:!0,type:{name:"(start: number, end?: number | undefined) => string"}},toLowerCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to lowercase.",name:"toLowerCase",required:!0,type:{name:"() => string"}},toLocaleLowerCase:{defaultValue:null,description:"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",name:"toLocaleLowerCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},toUpperCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to uppercase.",name:"toUpperCase",required:!0,type:{name:"() => string"}},toLocaleUpperCase:{defaultValue:null,description:"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",name:"toLocaleUpperCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},trim:{defaultValue:null,description:"Removes the leading and trailing white space and line terminator characters from a string.",name:"trim",required:!0,type:{name:"() => string"}},length:{defaultValue:null,description:"Returns the length of a String object.",name:"length",required:!0,type:{name:"number"}},substr:{defaultValue:null,description:"Gets a substring beginning at the specified location and having the specified length.\n@deprecated A legacy feature for browser compatibility\n@param from The starting position of the desired substring. The index of the first character in the string is zero.\n@param length The number of characters to include in the returned substring.",name:"substr",required:!0,type:{name:"(from: number, length?: number | undefined) => string"}},valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => string"}},codePointAt:{defaultValue:null,description:"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.",name:"codePointAt",required:!0,type:{name:"(pos: number) => number | undefined"}},includes:{defaultValue:null,description:"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.\n@param searchString search string\n@param position If position is undefined, 0 is assumed, so as to search all of the String.",name:"includes",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},endsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.",name:"endsWith",required:!0,type:{name:"(searchString: string, endPosition?: number | undefined) => boolean"}},normalize:{defaultValue:null,description:'Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"',name:"normalize",required:!0,type:{name:'{ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; (form?: string | undefined): string; }'}},repeat:{defaultValue:null,description:"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.\n@param count number of copies to append",name:"repeat",required:!0,type:{name:"(count: number) => string"}},startsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.",name:"startsWith",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},anchor:{defaultValue:null,description:"Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n@deprecated A legacy feature for browser compatibility\n@param name",name:"anchor",required:!0,type:{name:"(name: string) => string"}},big:{defaultValue:null,description:"Returns a `<big>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"big",required:!0,type:{name:"() => string"}},blink:{defaultValue:null,description:"Returns a `<blink>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"blink",required:!0,type:{name:"() => string"}},bold:{defaultValue:null,description:"Returns a `<b>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"bold",required:!0,type:{name:"() => string"}},fixed:{defaultValue:null,description:"Returns a `<tt>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"fixed",required:!0,type:{name:"() => string"}},fontcolor:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the color attribute value\n@deprecated A legacy feature for browser compatibility",name:"fontcolor",required:!0,type:{name:"(color: string) => string"}},fontsize:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the size attribute value\n@deprecated A legacy feature for browser compatibility\n@deprecated A legacy feature for browser compatibility",name:"fontsize",required:!0,type:{name:"{ (size: number): string; (size: string): string; }"}},italics:{defaultValue:null,description:"Returns an `<i>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"italics",required:!0,type:{name:"() => string"}},link:{defaultValue:null,description:"Returns an `<a>` HTML element and sets the href attribute value\n@deprecated A legacy feature for browser compatibility",name:"link",required:!0,type:{name:"(url: string) => string"}},small:{defaultValue:null,description:"Returns a `<small>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"small",required:!0,type:{name:"() => string"}},strike:{defaultValue:null,description:"Returns a `<strike>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"strike",required:!0,type:{name:"() => string"}},sub:{defaultValue:null,description:"Returns a `<sub>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sub",required:!0,type:{name:"() => string"}},sup:{defaultValue:null,description:"Returns a `<sup>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sup",required:!0,type:{name:"() => string"}},padStart:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padStart",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},padEnd:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padEnd",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},trimEnd:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.",name:"trimEnd",required:!0,type:{name:"() => string"}},trimStart:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.",name:"trimStart",required:!0,type:{name:"() => string"}},trimLeft:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimStart` instead",name:"trimLeft",required:!0,type:{name:"() => string"}},trimRight:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimEnd` instead",name:"trimRight",required:!0,type:{name:"() => string"}},matchAll:{defaultValue:null,description:"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.",name:"matchAll",required:!0,type:{name:"(regexp: RegExp) => IterableIterator<RegExpMatchArray>"}},"__@iterator@47954":{defaultValue:null,description:"Iterator",name:"__@iterator@47954",required:!0,type:{name:"() => IterableIterator<string>"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => string | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/phone-input/phone-input-char-finder.tsx#hasAnyDecimalChar"]={docgenInfo:t.hasAnyDecimalChar.__docgenInfo,name:"hasAnyDecimalChar",path:"src/components/phone-input/phone-input-char-finder.tsx#hasAnyDecimalChar"})}catch(e){}},6029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeDigitOnMaskCharRemoval=t.removeNonDigits=t.formatFromPattern=void 0;const a=n(5585);t.formatFromPattern=function(e,t,n){return Array.from(n).reduce(((e,n)=>e.replace(t,n)),e)},t.removeNonDigits=function(e){return e.replace(/\D/g,"")},t.removeDigitOnMaskCharRemoval=function(e,t,n,r){const i=t.replace(a.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX,"_"),o=r?(0,a.getPreviousPlaceholderIndex)(i,n,"_"):(0,a.getNextPlaceholderIndex)(i,n,"_");if(-1===o)return e;const l=t.slice(0,o),u=(0,a.getDecimalCharCount)(l);return e.slice(0,u)+e.slice(u+1)};try{t.removeNonDigits.displayName="removeNonDigits",t.removeNonDigits.__docgenInfo={description:"",displayName:"removeNonDigits",props:{toString:{defaultValue:null,description:"Returns a string representation of a string.",name:"toString",required:!1,type:{name:"() => string"}},charAt:{defaultValue:null,description:"Returns the character at the specified index.\n@param pos The zero-based index of the desired character.",name:"charAt",required:!0,type:{name:"(pos: number) => string"}},charCodeAt:{defaultValue:null,description:"Returns the Unicode value of the character at the specified location.\n@param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",name:"charCodeAt",required:!0,type:{name:"(index: number) => number"}},concat:{defaultValue:null,description:"Returns a string that contains the concatenation of two or more strings.\n@param strings The strings to append to the end of the string.",name:"concat",required:!0,type:{name:"(...strings: string[]) => string"}},indexOf:{defaultValue:null,description:"Returns the position of the first occurrence of a substring.\n@param searchString The substring to search for in the string\n@param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",name:"indexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the last occurrence of a substring in the string.\n@param searchString The substring to search for.\n@param position The index at which to begin searching. If omitted, the search begins at the end of the string.",name:"lastIndexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},localeCompare:{defaultValue:null,description:"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.\n@param that String to compare to target string\n@param that String to compare to target string\n@param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n@param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.",name:"localeCompare",required:!0,type:{name:"{ (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; }"}},match:{defaultValue:null,description:"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.\n@param matcher An object that supports being matched against.",name:"match",required:!0,type:{name:"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},replace:{defaultValue:null,description:"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.\n@param searchValue A string or regular expression to search for.\n@param replaceValue A string containing the text to replace. When the {@linkcode searchValue } is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue } is replaced.\n@param searchValue A string to search for.\n@param replacer A function that returns the replacement text.\n@param searchValue An object that supports searching for and replacing matches within a string.\n@param replaceValue The replacement text.\n@param searchValue A object can search for and replace matches within a string.\n@param replacer A function that returns the replacement text.",name:"replace",required:!0,type:{name:"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { ...; }, replaceValue: string): string; (searchValue: { ...; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},search:{defaultValue:null,description:"Finds the first substring match in a regular expression search.\n@param regexp The regular expression pattern and applicable flags.\n@param searcher An object which supports searching within a string.",name:"search",required:!0,type:{name:"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},slice:{defaultValue:null,description:"Returns a section of a string.\n@param start The index to the beginning of the specified portion of stringObj.\n@param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\nIf this value is not specified, the substring continues to the end of stringObj.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => string"}},split:{defaultValue:null,description:"Split a string into substrings using the specified separator and return them as an array.\n@param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n@param limit A value used to limit the number of elements returned in the array.\n@param splitter An object that can split a string.\n@param limit A value used to limit the number of elements returned in the array.",name:"split",required:!0,type:{name:"{ (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }"}},substring:{defaultValue:null,description:"Returns the substring at the specified location within a String object.\n@param start The zero-based index number indicating the beginning of the substring.\n@param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\nIf end is omitted, the characters from start through the end of the original string are returned.",name:"substring",required:!0,type:{name:"(start: number, end?: number | undefined) => string"}},toLowerCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to lowercase.",name:"toLowerCase",required:!0,type:{name:"() => string"}},toLocaleLowerCase:{defaultValue:null,description:"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",name:"toLocaleLowerCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},toUpperCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to uppercase.",name:"toUpperCase",required:!0,type:{name:"() => string"}},toLocaleUpperCase:{defaultValue:null,description:"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",name:"toLocaleUpperCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},trim:{defaultValue:null,description:"Removes the leading and trailing white space and line terminator characters from a string.",name:"trim",required:!0,type:{name:"() => string"}},length:{defaultValue:null,description:"Returns the length of a String object.",name:"length",required:!0,type:{name:"number"}},substr:{defaultValue:null,description:"Gets a substring beginning at the specified location and having the specified length.\n@deprecated A legacy feature for browser compatibility\n@param from The starting position of the desired substring. The index of the first character in the string is zero.\n@param length The number of characters to include in the returned substring.",name:"substr",required:!0,type:{name:"(from: number, length?: number | undefined) => string"}},valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => string"}},codePointAt:{defaultValue:null,description:"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.",name:"codePointAt",required:!0,type:{name:"(pos: number) => number | undefined"}},includes:{defaultValue:null,description:"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.\n@param searchString search string\n@param position If position is undefined, 0 is assumed, so as to search all of the String.",name:"includes",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},endsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.",name:"endsWith",required:!0,type:{name:"(searchString: string, endPosition?: number | undefined) => boolean"}},normalize:{defaultValue:null,description:'Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"',name:"normalize",required:!0,type:{name:'{ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; (form?: string | undefined): string; }'}},repeat:{defaultValue:null,description:"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.\n@param count number of copies to append",name:"repeat",required:!0,type:{name:"(count: number) => string"}},startsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.",name:"startsWith",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},anchor:{defaultValue:null,description:"Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n@deprecated A legacy feature for browser compatibility\n@param name",name:"anchor",required:!0,type:{name:"(name: string) => string"}},big:{defaultValue:null,description:"Returns a `<big>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"big",required:!0,type:{name:"() => string"}},blink:{defaultValue:null,description:"Returns a `<blink>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"blink",required:!0,type:{name:"() => string"}},bold:{defaultValue:null,description:"Returns a `<b>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"bold",required:!0,type:{name:"() => string"}},fixed:{defaultValue:null,description:"Returns a `<tt>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"fixed",required:!0,type:{name:"() => string"}},fontcolor:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the color attribute value\n@deprecated A legacy feature for browser compatibility",name:"fontcolor",required:!0,type:{name:"(color: string) => string"}},fontsize:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the size attribute value\n@deprecated A legacy feature for browser compatibility\n@deprecated A legacy feature for browser compatibility",name:"fontsize",required:!0,type:{name:"{ (size: number): string; (size: string): string; }"}},italics:{defaultValue:null,description:"Returns an `<i>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"italics",required:!0,type:{name:"() => string"}},link:{defaultValue:null,description:"Returns an `<a>` HTML element and sets the href attribute value\n@deprecated A legacy feature for browser compatibility",name:"link",required:!0,type:{name:"(url: string) => string"}},small:{defaultValue:null,description:"Returns a `<small>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"small",required:!0,type:{name:"() => string"}},strike:{defaultValue:null,description:"Returns a `<strike>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"strike",required:!0,type:{name:"() => string"}},sub:{defaultValue:null,description:"Returns a `<sub>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sub",required:!0,type:{name:"() => string"}},sup:{defaultValue:null,description:"Returns a `<sup>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sup",required:!0,type:{name:"() => string"}},padStart:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padStart",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},padEnd:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padEnd",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},trimEnd:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.",name:"trimEnd",required:!0,type:{name:"() => string"}},trimStart:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.",name:"trimStart",required:!0,type:{name:"() => string"}},trimLeft:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimStart` instead",name:"trimLeft",required:!0,type:{name:"() => string"}},trimRight:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimEnd` instead",name:"trimRight",required:!0,type:{name:"() => string"}},matchAll:{defaultValue:null,description:"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.",name:"matchAll",required:!0,type:{name:"(regexp: RegExp) => IterableIterator<RegExpMatchArray>"}},"__@iterator@47954":{defaultValue:null,description:"Iterator",name:"__@iterator@47954",required:!0,type:{name:"() => IterableIterator<string>"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => string | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/phone-input/phone-input-value-formater.tsx#removeNonDigits"]={docgenInfo:t.removeNonDigits.__docgenInfo,name:"removeNonDigits",path:"src/components/phone-input/phone-input-value-formater.tsx#removeNonDigits"})}catch(e){}},1238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trimCharAfterMaxLength=t.getMaskFromSplitIndex=t.getValueFromSplitIndex=void 0;const a=n(5585);t.getValueFromSplitIndex=function(e,t){let n;return n=(0,a.hasAnyDecimalChar)(e)?-1===t?e:e.slice(0,t):"",n},t.getMaskFromSplitIndex=function(e,t,n){let r;return r=(0,a.hasAnyDecimalChar)(e)?-1===t?"":e.slice(t):n,r},t.trimCharAfterMaxLength=function(e,t){return e.substr(0,t)}},3690:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneInput=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(9752),d=n(1898),c=n(5585),m=n(6029),p=n(1238),f=l.default.div`
1930
+ `;t.PasswordInput=e=>{var{id:t,name:n,label:a,hint:r,disabled:i,placeholder:s,value:c,defaultValue:m,validationErrorMessage:g,onBlur:_,onChange:M,onFocus:E}=e,k=o(e,["id","name","label","hint","disabled","placeholder","value","defaultValue","validationErrorMessage","onBlur","onChange","onFocus"]);const{t:C}=(0,p.useTranslation)("password-input"),[x,S]=(0,u.useState)(!1),T=void 0===g||""===g,H=(0,u.useMemo)((()=>t||(0,f.v4)()),[t]),P=(0,h.useDataAttributes)(k),V=(0,u.useCallback)((()=>{S(!x)}),[x]),q=(0,u.useCallback)((e=>{const t=e.target.value;null==M||M(t,e)}),[M]);return(0,l.jsx)(d.FieldContainer,{fieldId:H,label:a,hint:r,validationErrorMessage:null!=g?g:"",valid:T,children:(0,l.jsxs)(w,{children:[(0,l.jsx)(y,Object.assign({id:H,disabled:i,name:null!=n?n:"password",autoComplete:x?"off":"current-password",ariaInvalid:!T,onBlur:_,onChange:q,onFocus:E,placeholder:s,"data-testid":"password-input",type:x?"text":"password",defaultValue:m,value:c},P)),(0,l.jsx)(v.Tooltip,{desktopPlacement:"top",label:C(x?"hide-password":"show-password"),children:(0,l.jsx)(b,{$isValid:T,disabled:i,buttonType:"tertiary","aria-label":C("show-password"),iconName:x?"eyeOff":"eye","aria-pressed":x,"data-testid":"show-password-button",type:"button",onClick:V})})]})})};try{t.PasswordInput.displayName="PasswordInput",t.PasswordInput.__docgenInfo={description:"",displayName:"PasswordInput",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string"}},validationErrorMessage:{defaultValue:null,description:"",name:"validationErrorMessage",required:!1,type:{name:"string"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((newPassword: string, event: ChangeEvent<HTMLInputElement>) => void)"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/password-input/password-input.tsx#PasswordInput"]={docgenInfo:t.PasswordInput.__docgenInfo,name:"PasswordInput",path:"src/components/password-input/password-input.tsx#PasswordInput"})}catch(e){}},5585:(e,t)=>{"use strict";function n(e){return(e.match(t.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX)||[]).length}function a(e){return n(e)>0}function r(e,t,n){if(t<0)return-1;const a=e.slice(t).indexOf(n);return a>=0?t+a:a}Object.defineProperty(t,"__esModule",{value:!0}),t.findNextInsertPositionFromPatternInputDiff=t.getPreviousPlaceholderIndex=t.getNextPlaceholderIndex=t.hasAnyDecimalChar=t.getDecimalCharCount=t.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX=void 0,t.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX=/\d/g,t.getDecimalCharCount=n,t.hasAnyDecimalChar=a,t.getNextPlaceholderIndex=r,t.getPreviousPlaceholderIndex=function(e,t,n){return t<0?-1:e.slice(0,t).lastIndexOf(n)},t.findNextInsertPositionFromPatternInputDiff=function(e,t,n){for(let i=0;i<e.length;i++)if(a(e[i])&&t[i]!==n){const e=r(t,i,n);return e>=0?e+1:e}return-1};try{t.getDecimalCharCount.displayName="getDecimalCharCount",t.getDecimalCharCount.__docgenInfo={description:"",displayName:"getDecimalCharCount",props:{toString:{defaultValue:null,description:"Returns a string representation of a string.",name:"toString",required:!1,type:{name:"() => string"}},charAt:{defaultValue:null,description:"Returns the character at the specified index.\n@param pos The zero-based index of the desired character.",name:"charAt",required:!0,type:{name:"(pos: number) => string"}},charCodeAt:{defaultValue:null,description:"Returns the Unicode value of the character at the specified location.\n@param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",name:"charCodeAt",required:!0,type:{name:"(index: number) => number"}},concat:{defaultValue:null,description:"Returns a string that contains the concatenation of two or more strings.\n@param strings The strings to append to the end of the string.",name:"concat",required:!0,type:{name:"(...strings: string[]) => string"}},indexOf:{defaultValue:null,description:"Returns the position of the first occurrence of a substring.\n@param searchString The substring to search for in the string\n@param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",name:"indexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the last occurrence of a substring in the string.\n@param searchString The substring to search for.\n@param position The index at which to begin searching. If omitted, the search begins at the end of the string.",name:"lastIndexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},localeCompare:{defaultValue:null,description:"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.\n@param that String to compare to target string\n@param that String to compare to target string\n@param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n@param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.",name:"localeCompare",required:!0,type:{name:"{ (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; }"}},match:{defaultValue:null,description:"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.\n@param matcher An object that supports being matched against.",name:"match",required:!0,type:{name:"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},replace:{defaultValue:null,description:"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.\n@param searchValue A string or regular expression to search for.\n@param replaceValue A string containing the text to replace. When the {@linkcode searchValue } is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue } is replaced.\n@param searchValue A string to search for.\n@param replacer A function that returns the replacement text.\n@param searchValue An object that supports searching for and replacing matches within a string.\n@param replaceValue The replacement text.\n@param searchValue A object can search for and replace matches within a string.\n@param replacer A function that returns the replacement text.",name:"replace",required:!0,type:{name:"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { ...; }, replaceValue: string): string; (searchValue: { ...; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},search:{defaultValue:null,description:"Finds the first substring match in a regular expression search.\n@param regexp The regular expression pattern and applicable flags.\n@param searcher An object which supports searching within a string.",name:"search",required:!0,type:{name:"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},slice:{defaultValue:null,description:"Returns a section of a string.\n@param start The index to the beginning of the specified portion of stringObj.\n@param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\nIf this value is not specified, the substring continues to the end of stringObj.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => string"}},split:{defaultValue:null,description:"Split a string into substrings using the specified separator and return them as an array.\n@param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n@param limit A value used to limit the number of elements returned in the array.\n@param splitter An object that can split a string.\n@param limit A value used to limit the number of elements returned in the array.",name:"split",required:!0,type:{name:"{ (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }"}},substring:{defaultValue:null,description:"Returns the substring at the specified location within a String object.\n@param start The zero-based index number indicating the beginning of the substring.\n@param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\nIf end is omitted, the characters from start through the end of the original string are returned.",name:"substring",required:!0,type:{name:"(start: number, end?: number | undefined) => string"}},toLowerCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to lowercase.",name:"toLowerCase",required:!0,type:{name:"() => string"}},toLocaleLowerCase:{defaultValue:null,description:"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",name:"toLocaleLowerCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},toUpperCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to uppercase.",name:"toUpperCase",required:!0,type:{name:"() => string"}},toLocaleUpperCase:{defaultValue:null,description:"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",name:"toLocaleUpperCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},trim:{defaultValue:null,description:"Removes the leading and trailing white space and line terminator characters from a string.",name:"trim",required:!0,type:{name:"() => string"}},length:{defaultValue:null,description:"Returns the length of a String object.",name:"length",required:!0,type:{name:"number"}},substr:{defaultValue:null,description:"Gets a substring beginning at the specified location and having the specified length.\n@deprecated A legacy feature for browser compatibility\n@param from The starting position of the desired substring. The index of the first character in the string is zero.\n@param length The number of characters to include in the returned substring.",name:"substr",required:!0,type:{name:"(from: number, length?: number | undefined) => string"}},valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => string"}},codePointAt:{defaultValue:null,description:"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.",name:"codePointAt",required:!0,type:{name:"(pos: number) => number | undefined"}},includes:{defaultValue:null,description:"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.\n@param searchString search string\n@param position If position is undefined, 0 is assumed, so as to search all of the String.",name:"includes",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},endsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.",name:"endsWith",required:!0,type:{name:"(searchString: string, endPosition?: number | undefined) => boolean"}},normalize:{defaultValue:null,description:'Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"',name:"normalize",required:!0,type:{name:'{ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; (form?: string | undefined): string; }'}},repeat:{defaultValue:null,description:"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.\n@param count number of copies to append",name:"repeat",required:!0,type:{name:"(count: number) => string"}},startsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.",name:"startsWith",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},anchor:{defaultValue:null,description:"Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n@deprecated A legacy feature for browser compatibility\n@param name",name:"anchor",required:!0,type:{name:"(name: string) => string"}},big:{defaultValue:null,description:"Returns a `<big>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"big",required:!0,type:{name:"() => string"}},blink:{defaultValue:null,description:"Returns a `<blink>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"blink",required:!0,type:{name:"() => string"}},bold:{defaultValue:null,description:"Returns a `<b>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"bold",required:!0,type:{name:"() => string"}},fixed:{defaultValue:null,description:"Returns a `<tt>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"fixed",required:!0,type:{name:"() => string"}},fontcolor:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the color attribute value\n@deprecated A legacy feature for browser compatibility",name:"fontcolor",required:!0,type:{name:"(color: string) => string"}},fontsize:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the size attribute value\n@deprecated A legacy feature for browser compatibility\n@deprecated A legacy feature for browser compatibility",name:"fontsize",required:!0,type:{name:"{ (size: number): string; (size: string): string; }"}},italics:{defaultValue:null,description:"Returns an `<i>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"italics",required:!0,type:{name:"() => string"}},link:{defaultValue:null,description:"Returns an `<a>` HTML element and sets the href attribute value\n@deprecated A legacy feature for browser compatibility",name:"link",required:!0,type:{name:"(url: string) => string"}},small:{defaultValue:null,description:"Returns a `<small>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"small",required:!0,type:{name:"() => string"}},strike:{defaultValue:null,description:"Returns a `<strike>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"strike",required:!0,type:{name:"() => string"}},sub:{defaultValue:null,description:"Returns a `<sub>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sub",required:!0,type:{name:"() => string"}},sup:{defaultValue:null,description:"Returns a `<sup>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sup",required:!0,type:{name:"() => string"}},padStart:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padStart",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},padEnd:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padEnd",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},trimEnd:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.",name:"trimEnd",required:!0,type:{name:"() => string"}},trimStart:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.",name:"trimStart",required:!0,type:{name:"() => string"}},trimLeft:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimStart` instead",name:"trimLeft",required:!0,type:{name:"() => string"}},trimRight:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimEnd` instead",name:"trimRight",required:!0,type:{name:"() => string"}},matchAll:{defaultValue:null,description:"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.",name:"matchAll",required:!0,type:{name:"(regexp: RegExp) => IterableIterator<RegExpMatchArray>"}},"__@iterator@47974":{defaultValue:null,description:"Iterator",name:"__@iterator@47974",required:!0,type:{name:"() => IterableIterator<string>"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => string | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/phone-input/phone-input-char-finder.tsx#getDecimalCharCount"]={docgenInfo:t.getDecimalCharCount.__docgenInfo,name:"getDecimalCharCount",path:"src/components/phone-input/phone-input-char-finder.tsx#getDecimalCharCount"})}catch(e){}try{t.hasAnyDecimalChar.displayName="hasAnyDecimalChar",t.hasAnyDecimalChar.__docgenInfo={description:"",displayName:"hasAnyDecimalChar",props:{toString:{defaultValue:null,description:"Returns a string representation of a string.",name:"toString",required:!1,type:{name:"() => string"}},charAt:{defaultValue:null,description:"Returns the character at the specified index.\n@param pos The zero-based index of the desired character.",name:"charAt",required:!0,type:{name:"(pos: number) => string"}},charCodeAt:{defaultValue:null,description:"Returns the Unicode value of the character at the specified location.\n@param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",name:"charCodeAt",required:!0,type:{name:"(index: number) => number"}},concat:{defaultValue:null,description:"Returns a string that contains the concatenation of two or more strings.\n@param strings The strings to append to the end of the string.",name:"concat",required:!0,type:{name:"(...strings: string[]) => string"}},indexOf:{defaultValue:null,description:"Returns the position of the first occurrence of a substring.\n@param searchString The substring to search for in the string\n@param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",name:"indexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the last occurrence of a substring in the string.\n@param searchString The substring to search for.\n@param position The index at which to begin searching. If omitted, the search begins at the end of the string.",name:"lastIndexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},localeCompare:{defaultValue:null,description:"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.\n@param that String to compare to target string\n@param that String to compare to target string\n@param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n@param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.",name:"localeCompare",required:!0,type:{name:"{ (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; }"}},match:{defaultValue:null,description:"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.\n@param matcher An object that supports being matched against.",name:"match",required:!0,type:{name:"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},replace:{defaultValue:null,description:"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.\n@param searchValue A string or regular expression to search for.\n@param replaceValue A string containing the text to replace. When the {@linkcode searchValue } is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue } is replaced.\n@param searchValue A string to search for.\n@param replacer A function that returns the replacement text.\n@param searchValue An object that supports searching for and replacing matches within a string.\n@param replaceValue The replacement text.\n@param searchValue A object can search for and replace matches within a string.\n@param replacer A function that returns the replacement text.",name:"replace",required:!0,type:{name:"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { ...; }, replaceValue: string): string; (searchValue: { ...; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},search:{defaultValue:null,description:"Finds the first substring match in a regular expression search.\n@param regexp The regular expression pattern and applicable flags.\n@param searcher An object which supports searching within a string.",name:"search",required:!0,type:{name:"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},slice:{defaultValue:null,description:"Returns a section of a string.\n@param start The index to the beginning of the specified portion of stringObj.\n@param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\nIf this value is not specified, the substring continues to the end of stringObj.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => string"}},split:{defaultValue:null,description:"Split a string into substrings using the specified separator and return them as an array.\n@param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n@param limit A value used to limit the number of elements returned in the array.\n@param splitter An object that can split a string.\n@param limit A value used to limit the number of elements returned in the array.",name:"split",required:!0,type:{name:"{ (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }"}},substring:{defaultValue:null,description:"Returns the substring at the specified location within a String object.\n@param start The zero-based index number indicating the beginning of the substring.\n@param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\nIf end is omitted, the characters from start through the end of the original string are returned.",name:"substring",required:!0,type:{name:"(start: number, end?: number | undefined) => string"}},toLowerCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to lowercase.",name:"toLowerCase",required:!0,type:{name:"() => string"}},toLocaleLowerCase:{defaultValue:null,description:"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",name:"toLocaleLowerCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},toUpperCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to uppercase.",name:"toUpperCase",required:!0,type:{name:"() => string"}},toLocaleUpperCase:{defaultValue:null,description:"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",name:"toLocaleUpperCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},trim:{defaultValue:null,description:"Removes the leading and trailing white space and line terminator characters from a string.",name:"trim",required:!0,type:{name:"() => string"}},length:{defaultValue:null,description:"Returns the length of a String object.",name:"length",required:!0,type:{name:"number"}},substr:{defaultValue:null,description:"Gets a substring beginning at the specified location and having the specified length.\n@deprecated A legacy feature for browser compatibility\n@param from The starting position of the desired substring. The index of the first character in the string is zero.\n@param length The number of characters to include in the returned substring.",name:"substr",required:!0,type:{name:"(from: number, length?: number | undefined) => string"}},valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => string"}},codePointAt:{defaultValue:null,description:"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.",name:"codePointAt",required:!0,type:{name:"(pos: number) => number | undefined"}},includes:{defaultValue:null,description:"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.\n@param searchString search string\n@param position If position is undefined, 0 is assumed, so as to search all of the String.",name:"includes",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},endsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.",name:"endsWith",required:!0,type:{name:"(searchString: string, endPosition?: number | undefined) => boolean"}},normalize:{defaultValue:null,description:'Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"',name:"normalize",required:!0,type:{name:'{ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; (form?: string | undefined): string; }'}},repeat:{defaultValue:null,description:"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.\n@param count number of copies to append",name:"repeat",required:!0,type:{name:"(count: number) => string"}},startsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.",name:"startsWith",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},anchor:{defaultValue:null,description:"Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n@deprecated A legacy feature for browser compatibility\n@param name",name:"anchor",required:!0,type:{name:"(name: string) => string"}},big:{defaultValue:null,description:"Returns a `<big>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"big",required:!0,type:{name:"() => string"}},blink:{defaultValue:null,description:"Returns a `<blink>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"blink",required:!0,type:{name:"() => string"}},bold:{defaultValue:null,description:"Returns a `<b>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"bold",required:!0,type:{name:"() => string"}},fixed:{defaultValue:null,description:"Returns a `<tt>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"fixed",required:!0,type:{name:"() => string"}},fontcolor:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the color attribute value\n@deprecated A legacy feature for browser compatibility",name:"fontcolor",required:!0,type:{name:"(color: string) => string"}},fontsize:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the size attribute value\n@deprecated A legacy feature for browser compatibility\n@deprecated A legacy feature for browser compatibility",name:"fontsize",required:!0,type:{name:"{ (size: number): string; (size: string): string; }"}},italics:{defaultValue:null,description:"Returns an `<i>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"italics",required:!0,type:{name:"() => string"}},link:{defaultValue:null,description:"Returns an `<a>` HTML element and sets the href attribute value\n@deprecated A legacy feature for browser compatibility",name:"link",required:!0,type:{name:"(url: string) => string"}},small:{defaultValue:null,description:"Returns a `<small>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"small",required:!0,type:{name:"() => string"}},strike:{defaultValue:null,description:"Returns a `<strike>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"strike",required:!0,type:{name:"() => string"}},sub:{defaultValue:null,description:"Returns a `<sub>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sub",required:!0,type:{name:"() => string"}},sup:{defaultValue:null,description:"Returns a `<sup>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sup",required:!0,type:{name:"() => string"}},padStart:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padStart",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},padEnd:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padEnd",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},trimEnd:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.",name:"trimEnd",required:!0,type:{name:"() => string"}},trimStart:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.",name:"trimStart",required:!0,type:{name:"() => string"}},trimLeft:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimStart` instead",name:"trimLeft",required:!0,type:{name:"() => string"}},trimRight:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimEnd` instead",name:"trimRight",required:!0,type:{name:"() => string"}},matchAll:{defaultValue:null,description:"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.",name:"matchAll",required:!0,type:{name:"(regexp: RegExp) => IterableIterator<RegExpMatchArray>"}},"__@iterator@47974":{defaultValue:null,description:"Iterator",name:"__@iterator@47974",required:!0,type:{name:"() => IterableIterator<string>"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => string | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/phone-input/phone-input-char-finder.tsx#hasAnyDecimalChar"]={docgenInfo:t.hasAnyDecimalChar.__docgenInfo,name:"hasAnyDecimalChar",path:"src/components/phone-input/phone-input-char-finder.tsx#hasAnyDecimalChar"})}catch(e){}},6029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeDigitOnMaskCharRemoval=t.removeNonDigits=t.formatFromPattern=void 0;const a=n(5585);t.formatFromPattern=function(e,t,n){return Array.from(n).reduce(((e,n)=>e.replace(t,n)),e)},t.removeNonDigits=function(e){return e.replace(/\D/g,"")},t.removeDigitOnMaskCharRemoval=function(e,t,n,r){const i=t.replace(a.MATCH_ALL_DECIMAL_CHAR_OCCURRENCE_REGEX,"_"),o=r?(0,a.getPreviousPlaceholderIndex)(i,n,"_"):(0,a.getNextPlaceholderIndex)(i,n,"_");if(-1===o)return e;const l=t.slice(0,o),u=(0,a.getDecimalCharCount)(l);return e.slice(0,u)+e.slice(u+1)};try{t.removeNonDigits.displayName="removeNonDigits",t.removeNonDigits.__docgenInfo={description:"",displayName:"removeNonDigits",props:{toString:{defaultValue:null,description:"Returns a string representation of a string.",name:"toString",required:!1,type:{name:"() => string"}},charAt:{defaultValue:null,description:"Returns the character at the specified index.\n@param pos The zero-based index of the desired character.",name:"charAt",required:!0,type:{name:"(pos: number) => string"}},charCodeAt:{defaultValue:null,description:"Returns the Unicode value of the character at the specified location.\n@param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.",name:"charCodeAt",required:!0,type:{name:"(index: number) => number"}},concat:{defaultValue:null,description:"Returns a string that contains the concatenation of two or more strings.\n@param strings The strings to append to the end of the string.",name:"concat",required:!0,type:{name:"(...strings: string[]) => string"}},indexOf:{defaultValue:null,description:"Returns the position of the first occurrence of a substring.\n@param searchString The substring to search for in the string\n@param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.",name:"indexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the last occurrence of a substring in the string.\n@param searchString The substring to search for.\n@param position The index at which to begin searching. If omitted, the search begins at the end of the string.",name:"lastIndexOf",required:!0,type:{name:"(searchString: string, position?: number | undefined) => number"}},localeCompare:{defaultValue:null,description:"Determines whether two strings are equivalent in the current locale.\nDetermines whether two strings are equivalent in the current or specified locale.\n@param that String to compare to target string\n@param that String to compare to target string\n@param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.\n@param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.",name:"localeCompare",required:!0,type:{name:"{ (that: string): number; (that: string, locales?: string | string[] | undefined, options?: CollatorOptions | undefined): number; }"}},match:{defaultValue:null,description:"Matches a string with a regular expression, and returns an array containing the results of that search.\nMatches a string or an object that supports being matched against, and returns an array\ncontaining the results of that search, or null if no matches are found.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.\n@param matcher An object that supports being matched against.",name:"match",required:!0,type:{name:"{ (regexp: string | RegExp): RegExpMatchArray | null; (matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null; }"}},replace:{defaultValue:null,description:"Replaces text in a string, using a regular expression or search string.\nPasses a string and {@linkcode replaceValue} to the `[Symbol.replace]` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.\nReplaces text in a string, using an object that supports replacement within a string.\n@param searchValue A string or regular expression to search for.\n@param replaceValue A string containing the text to replace. When the {@linkcode searchValue } is a `RegExp`, all matches are replaced if the `g` flag is set (or only those matches at the beginning, if the `y` flag is also present). Otherwise, only the first match of {@linkcode searchValue } is replaced.\n@param searchValue A string to search for.\n@param replacer A function that returns the replacement text.\n@param searchValue An object that supports searching for and replacing matches within a string.\n@param replaceValue The replacement text.\n@param searchValue A object can search for and replace matches within a string.\n@param replacer A function that returns the replacement text.",name:"replace",required:!0,type:{name:"{ (searchValue: string | RegExp, replaceValue: string): string; (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string; (searchValue: { ...; }, replaceValue: string): string; (searchValue: { ...; }, replacer: (substring: string, ...args: any[]) => string): string; }"}},search:{defaultValue:null,description:"Finds the first substring match in a regular expression search.\n@param regexp The regular expression pattern and applicable flags.\n@param searcher An object which supports searching within a string.",name:"search",required:!0,type:{name:"{ (regexp: string | RegExp): number; (searcher: { [Symbol.search](string: string): number; }): number; }"}},slice:{defaultValue:null,description:"Returns a section of a string.\n@param start The index to the beginning of the specified portion of stringObj.\n@param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.\nIf this value is not specified, the substring continues to the end of stringObj.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => string"}},split:{defaultValue:null,description:"Split a string into substrings using the specified separator and return them as an array.\n@param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.\n@param limit A value used to limit the number of elements returned in the array.\n@param splitter An object that can split a string.\n@param limit A value used to limit the number of elements returned in the array.",name:"split",required:!0,type:{name:"{ (separator: string | RegExp, limit?: number | undefined): string[]; (splitter: { [Symbol.split](string: string, limit?: number | undefined): string[]; }, limit?: number | undefined): string[]; }"}},substring:{defaultValue:null,description:"Returns the substring at the specified location within a String object.\n@param start The zero-based index number indicating the beginning of the substring.\n@param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.\nIf end is omitted, the characters from start through the end of the original string are returned.",name:"substring",required:!0,type:{name:"(start: number, end?: number | undefined) => string"}},toLowerCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to lowercase.",name:"toLowerCase",required:!0,type:{name:"() => string"}},toLocaleLowerCase:{defaultValue:null,description:"Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.",name:"toLocaleLowerCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},toUpperCase:{defaultValue:null,description:"Converts all the alphabetic characters in a string to uppercase.",name:"toUpperCase",required:!0,type:{name:"() => string"}},toLocaleUpperCase:{defaultValue:null,description:"Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.",name:"toLocaleUpperCase",required:!0,type:{name:"(locales?: string | string[] | undefined) => string"}},trim:{defaultValue:null,description:"Removes the leading and trailing white space and line terminator characters from a string.",name:"trim",required:!0,type:{name:"() => string"}},length:{defaultValue:null,description:"Returns the length of a String object.",name:"length",required:!0,type:{name:"number"}},substr:{defaultValue:null,description:"Gets a substring beginning at the specified location and having the specified length.\n@deprecated A legacy feature for browser compatibility\n@param from The starting position of the desired substring. The index of the first character in the string is zero.\n@param length The number of characters to include in the returned substring.",name:"substr",required:!0,type:{name:"(from: number, length?: number | undefined) => string"}},valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => string"}},codePointAt:{defaultValue:null,description:"Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point\nvalue of the UTF-16 encoded code point starting at the string element at position pos in\nthe String resulting from converting this object to a String.\nIf there is no element at that position, the result is undefined.\nIf a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.",name:"codePointAt",required:!0,type:{name:"(pos: number) => number | undefined"}},includes:{defaultValue:null,description:"Returns true if searchString appears as a substring of the result of converting this\nobject to a String, at one or more positions that are\ngreater than or equal to position; otherwise, returns false.\n@param searchString search string\n@param position If position is undefined, 0 is assumed, so as to search all of the String.",name:"includes",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},endsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nendPosition – length(this). Otherwise returns false.",name:"endsWith",required:!0,type:{name:"(searchString: string, endPosition?: number | undefined) => boolean"}},normalize:{defaultValue:null,description:'Returns the String value result of normalizing the string into the normalization form\nnamed by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"\n@param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default\nis "NFC"',name:"normalize",required:!0,type:{name:'{ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string; (form?: string | undefined): string; }'}},repeat:{defaultValue:null,description:"Returns a String value that is made from count copies appended together. If count is 0,\nthe empty string is returned.\n@param count number of copies to append",name:"repeat",required:!0,type:{name:"(count: number) => string"}},startsWith:{defaultValue:null,description:"Returns true if the sequence of elements of searchString converted to a String is the\nsame as the corresponding elements of this object (converted to a String) starting at\nposition. Otherwise returns false.",name:"startsWith",required:!0,type:{name:"(searchString: string, position?: number | undefined) => boolean"}},anchor:{defaultValue:null,description:"Returns an `<a>` HTML anchor element and sets the name attribute to the text value\n@deprecated A legacy feature for browser compatibility\n@param name",name:"anchor",required:!0,type:{name:"(name: string) => string"}},big:{defaultValue:null,description:"Returns a `<big>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"big",required:!0,type:{name:"() => string"}},blink:{defaultValue:null,description:"Returns a `<blink>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"blink",required:!0,type:{name:"() => string"}},bold:{defaultValue:null,description:"Returns a `<b>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"bold",required:!0,type:{name:"() => string"}},fixed:{defaultValue:null,description:"Returns a `<tt>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"fixed",required:!0,type:{name:"() => string"}},fontcolor:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the color attribute value\n@deprecated A legacy feature for browser compatibility",name:"fontcolor",required:!0,type:{name:"(color: string) => string"}},fontsize:{defaultValue:null,description:"Returns a `<font>` HTML element and sets the size attribute value\n@deprecated A legacy feature for browser compatibility\n@deprecated A legacy feature for browser compatibility",name:"fontsize",required:!0,type:{name:"{ (size: number): string; (size: string): string; }"}},italics:{defaultValue:null,description:"Returns an `<i>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"italics",required:!0,type:{name:"() => string"}},link:{defaultValue:null,description:"Returns an `<a>` HTML element and sets the href attribute value\n@deprecated A legacy feature for browser compatibility",name:"link",required:!0,type:{name:"(url: string) => string"}},small:{defaultValue:null,description:"Returns a `<small>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"small",required:!0,type:{name:"() => string"}},strike:{defaultValue:null,description:"Returns a `<strike>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"strike",required:!0,type:{name:"() => string"}},sub:{defaultValue:null,description:"Returns a `<sub>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sub",required:!0,type:{name:"() => string"}},sup:{defaultValue:null,description:"Returns a `<sup>` HTML element\n@deprecated A legacy feature for browser compatibility",name:"sup",required:!0,type:{name:"() => string"}},padStart:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the start (left) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padStart",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},padEnd:{defaultValue:null,description:'Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.\nThe padding is applied from the end (right) of the current string.\n@param maxLength The length of the resulting string once the current string has been padded.\nIf this parameter is smaller than the current string\'s length, the current string will be returned as it is.\n@param fillString The string to pad the current string with.\nIf this string is too long, it will be truncated and the left-most part will be applied.\nThe default value for this parameter is " " (U+0020).',name:"padEnd",required:!0,type:{name:"(maxLength: number, fillString?: string | undefined) => string"}},trimEnd:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.",name:"trimEnd",required:!0,type:{name:"() => string"}},trimStart:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.",name:"trimStart",required:!0,type:{name:"() => string"}},trimLeft:{defaultValue:null,description:"Removes the leading white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimStart` instead",name:"trimLeft",required:!0,type:{name:"() => string"}},trimRight:{defaultValue:null,description:"Removes the trailing white space and line terminator characters from a string.\n@deprecated A legacy feature for browser compatibility. Use `trimEnd` instead",name:"trimRight",required:!0,type:{name:"() => string"}},matchAll:{defaultValue:null,description:"Matches a string with a regular expression, and returns an iterable of matches\ncontaining the results of that search.\n@param regexp A variable name or string literal containing the regular expression pattern and flags.",name:"matchAll",required:!0,type:{name:"(regexp: RegExp) => IterableIterator<RegExpMatchArray>"}},"__@iterator@47974":{defaultValue:null,description:"Iterator",name:"__@iterator@47974",required:!0,type:{name:"() => IterableIterator<string>"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => string | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/phone-input/phone-input-value-formater.tsx#removeNonDigits"]={docgenInfo:t.removeNonDigits.__docgenInfo,name:"removeNonDigits",path:"src/components/phone-input/phone-input-value-formater.tsx#removeNonDigits"})}catch(e){}},1238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trimCharAfterMaxLength=t.getMaskFromSplitIndex=t.getValueFromSplitIndex=void 0;const a=n(5585);t.getValueFromSplitIndex=function(e,t){let n;return n=(0,a.hasAnyDecimalChar)(e)?-1===t?e:e.slice(0,t):"",n},t.getMaskFromSplitIndex=function(e,t,n){let r;return r=(0,a.hasAnyDecimalChar)(e)?-1===t?"":e.slice(t):n,r},t.trimCharAfterMaxLength=function(e,t){return e.substr(0,t)}},3690:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PhoneInput=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(9752),d=n(1898),c=n(5585),m=n(6029),p=n(1238),f=l.default.div`
1961
1931
  background: transparent;
1962
1932
  bottom: 1px;
1963
1933
  color: ${({theme:e})=>e.greys["dark-grey"]};
@@ -2851,7 +2821,7 @@
2851
2821
  `}};
2852
2822
 
2853
2823
  ${d.focus};
2854
- `;t.Tag=(0,l.forwardRef)((({className:e,iconName:t,onClick:n,onDelete:a,size:r="medium",value:i},u)=>{if(n&&a)throw new Error("Only one of onClick or onDelete can be provided.");const{t:d}=(0,s.useTranslation)("tag"),{isMobile:m}=(0,c.useDeviceContext)(),f=!(i.label.toLowerCase()===(null==t?void 0:t.toLowerCase())),h=(0,l.useCallback)((()=>{null==n||n(i)}),[n,i]),_=(0,l.useCallback)((e=>{e.stopPropagation(),null==a||a(i)}),[a,i]);return(0,o.jsxs)(w,{ref:u,as:n?"button":"span",className:e,onClick:h,type:n?"button":void 0,$isMobile:m,$tagSize:r,$clickable:!!n,$deletable:!!a,$hasIcon:!!t,children:[t&&(0,o.jsx)(v,{"aria-label":f?t:void 0,"aria-hidden":!f,"data-testid":`${i.label}-icon`,name:t,size:p(m),role:"img",$isMobile:m,$tagSize:r,focusable:void 0}),(0,o.jsx)(y,{$isMobile:m,$tagSize:r,children:i.label}),a&&(0,o.jsx)(b,{"data-testid":`${i.label}-delete-button`,type:"button","aria-label":d("deleteButtonAriaLabel",{label:i.label}),onClick:_,$tagSize:r,$isMobile:m,children:(0,o.jsx)(g,{size:p(m),"aria-hidden":"true"})})]})})),t.Tag.displayName="Tag";try{t.Tag.displayName="Tag",t.Tag.__docgenInfo={description:"",displayName:"Tag",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"alertCircle"'},{value:'"alertFilled"'},{value:'"alertTriangle"'},{value:'"alertOctagon"'},{value:'"arrowDown"'},{value:'"arrowLeft"'},{value:'"arrowRight"'},{value:'"arrowUp"'},{value:'"bell"'},{value:'"bento"'},{value:'"calendar"'},{value:'"caretDown"'},{value:'"caretRight"'},{value:'"check"'},{value:'"chevronDown"'},{value:'"chevronLeft"'},{value:'"chevronRight"'},{value:'"chevronUp"'},{value:'"chevronsLeft"'},{value:'"chevronsRight"'},{value:'"circle"'},{value:'"contracts"'},{value:'"copy"'},{value:'"edit"'},{value:'"equisoft"'},{value:'"externalLink"'},{value:'"eye"'},{value:'"eyeOff"'},{value:'"files"'},{value:'"helpCircle"'},{value:'"history"'},{value:'"home"'},{value:'"info"'},{value:'"link"'},{value:'"lightbulb"'},{value:'"mail"'},{value:'"mapPin"'},{value:'"megaphone"'},{value:'"menu"'},{value:'"minus"'},{value:'"moreHorizontal"'},{value:'"moreVertical"'},{value:'"organization"'},{value:'"open"'},{value:'"phone"'},{value:'"plusSign"'},{value:'"reorder"'},{value:'"search"'},{value:'"settings"'},{value:'"star"'},{value:'"transfer"'},{value:'"trash"'},{value:'"user"'},{value:'"users"'},{value:'"warningFilled"'},{value:'"x"'}]}},size:{defaultValue:{value:"medium"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"medium"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"TagValue"}},onClick:{defaultValue:null,description:"Mutually exclusive with onDelete",name:"onClick",required:!1,type:{name:"((tag: TagValue) => void)"}},onDelete:{defaultValue:null,description:"Mutually exclusive with onClick",name:"onDelete",required:!1,type:{name:"((tag: TagValue) => void)"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/tag/tag.tsx#Tag"]={docgenInfo:t.Tag.__docgenInfo,name:"Tag",path:"src/components/tag/tag.tsx#Tag"})}catch(e){}},4429:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(4182),c=n(964),m=n(3675),p=n(2662),f=l.default.textarea`
2824
+ `;t.Tag=(0,l.forwardRef)((({className:e,iconName:t,onClick:n,onDelete:a,size:r="medium",value:i},u)=>{if(n&&a)throw new Error("Only one of onClick or onDelete can be provided.");const{t:d}=(0,s.useTranslation)("tag"),{isMobile:m}=(0,c.useDeviceContext)(),f=!(i.label.toLowerCase()===(null==t?void 0:t.toLowerCase())),h=(0,l.useCallback)((()=>{null==n||n(i)}),[n,i]),_=(0,l.useCallback)((e=>{e.stopPropagation(),null==a||a(i)}),[a,i]);return(0,o.jsxs)(w,{ref:u,as:n?"button":"span",className:e,onClick:h,type:n?"button":void 0,$isMobile:m,$tagSize:r,$clickable:!!n,$deletable:!!a,$hasIcon:!!t,children:[t&&(0,o.jsx)(v,{"aria-label":f?t:void 0,"aria-hidden":!f,"data-testid":`${i.label}-icon`,name:t,size:p(m),role:"img",$isMobile:m,$tagSize:r,focusable:void 0}),(0,o.jsx)(y,{$isMobile:m,$tagSize:r,children:i.label}),a&&(0,o.jsx)(b,{"data-testid":`${i.label}-delete-button`,type:"button","aria-label":d("deleteButtonAriaLabel",{label:i.label}),onClick:_,$tagSize:r,$isMobile:m,children:(0,o.jsx)(g,{size:p(m),"aria-hidden":"true"})})]})})),t.Tag.displayName="Tag";try{t.Tag.displayName="Tag",t.Tag.__docgenInfo={description:"",displayName:"Tag",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},iconName:{defaultValue:null,description:"",name:"iconName",required:!1,type:{name:"enum",value:[{value:'"alertCircle"'},{value:'"alertFilled"'},{value:'"alertTriangle"'},{value:'"alertOctagon"'},{value:'"arrowDown"'},{value:'"arrowLeft"'},{value:'"arrowRight"'},{value:'"arrowUp"'},{value:'"bell"'},{value:'"bento"'},{value:'"calendar"'},{value:'"caretDown"'},{value:'"caretRight"'},{value:'"check"'},{value:'"chevronDown"'},{value:'"chevronLeft"'},{value:'"chevronRight"'},{value:'"chevronUp"'},{value:'"chevronsLeft"'},{value:'"chevronsRight"'},{value:'"circle"'},{value:'"contracts"'},{value:'"copy"'},{value:'"edit"'},{value:'"equisoft"'},{value:'"externalLink"'},{value:'"eye"'},{value:'"eyeOff"'},{value:'"files"'},{value:'"helpCircle"'},{value:'"history"'},{value:'"home"'},{value:'"info"'},{value:'"link"'},{value:'"lightbulb"'},{value:'"mail"'},{value:'"mapPin"'},{value:'"megaphone"'},{value:'"menu"'},{value:'"minus"'},{value:'"moreHorizontal"'},{value:'"moreVertical"'},{value:'"organization"'},{value:'"open"'},{value:'"phone"'},{value:'"plusSign"'},{value:'"reorder"'},{value:'"search"'},{value:'"settings"'},{value:'"star"'},{value:'"transfer"'},{value:'"trash"'},{value:'"user"'},{value:'"users"'},{value:'"warningFilled"'},{value:'"x"'}]}},size:{defaultValue:{value:"medium"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"small"'},{value:'"medium"'}]}},value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"TagValue"}},onClick:{defaultValue:null,description:"Mutually exclusive with onDelete",name:"onClick",required:!1,type:{name:"((tag: TagValue) => void)"}},onDelete:{defaultValue:null,description:"Mutually exclusive with onClick",name:"onDelete",required:!1,type:{name:"((tag: TagValue) => void)"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/tag/tag.tsx#Tag"]={docgenInfo:t.Tag.__docgenInfo,name:"Tag",path:"src/components/tag/tag.tsx#Tag"})}catch(e){}},4429:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextArea=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(4182),c=n(964),m=n(3675),p=n(2662),f=n(8478),h=l.default.textarea`
2855
2825
  ${e=>(0,m.inputsStyle)(e.theme)};
2856
2826
 
2857
2827
  min-height: 6.5rem;
@@ -2859,12 +2829,12 @@
2859
2829
  outline: none;
2860
2830
  overflow: auto;
2861
2831
  resize: vertical;
2862
- `,h=l.default.div`
2832
+ `,v=l.default.div`
2863
2833
  color: ${({valid:e,theme:t})=>e?`${t.greys["dark-grey"]}`:`${t.notifications["alert-2.1"]}`};
2864
2834
  font-size: 0.75rem;
2865
2835
  letter-spacing: 0.02rem;
2866
2836
  line-height: 1.25rem;
2867
- `;t.TextArea=e=>{var{className:t,noMargin:n,onBlur:r,onChange:l,onFocus:m,hint:v,defaultValue:g,disabled:y,label:b,placeholder:w,required:_,tooltip:M,validationErrorMessage:E,value:k,maxLength:C}=e,x=a(e,["className","noMargin","onBlur","onChange","onFocus","hint","defaultValue","disabled","label","placeholder","required","tooltip","validationErrorMessage","value","maxLength"]);const{t:S}=(0,s.useTranslation)("text-area"),[T,H]=(0,o.useState)(!0),[P,V]=(0,o.useState)(function(e,t){return e?e.length:t?t.length:0}(k,g)),q=(0,o.useMemo)(d.v4,[]),O=(0,o.useMemo)(d.v4,[]),L=(0,u.useDataAttributes)(x);function D(){return E||S(C&&P>C?"maxLengthValidationErrorMessage":"validationErrorMessage")}return(0,i.jsxs)(c.FieldContainer,{"data-testid":"container",className:t,noMargin:n,fieldId:q,label:b,required:_,tooltip:M,hint:v,valid:T,validationErrorMessage:D(),children:[(0,i.jsx)(f,Object.assign({"data-testid":"textarea",defaultValue:g,disabled:y,id:q,"aria-describedby":function(){let e="";return v&&(e+=` ${q}_hint`),!T&&D()&&(e+=` ${q}_invalid`),C&&(e+=` ${O}`),e.trim()||void 0}(),onBlur:function(e){(void 0===C||P<=C)&&H(e.currentTarget.checkValidity()),r&&r(e)},onChange:function(e){const t=e.currentTarget.value.length;V(t),C&&t>C?H(!1):T||H(!0),l&&l(e)},onFocus:function(e){m&&m(e)},placeholder:w,required:_,value:k},L)),C&&(0,i.jsxs)(h,{"data-testid":"char-counter","aria-live":"polite",id:O,valid:P<=C,children:[(0,i.jsx)(p.ScreenReaderOnlyText,{label:S("charactersScreenReader",{length:P,max:C})}),(0,i.jsx)("span",{"aria-hidden":"true",children:S("characters",{length:P,max:C})})]})]})};try{t.TextArea.displayName="TextArea",t.TextArea.__docgenInfo={description:"",displayName:"TextArea",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"number"}},validationErrorMessage:{defaultValue:{value:"This text area input is invalid"},description:"Message displayed in case of validation error",name:"validationErrorMessage",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Only use if you want to control input value externally",name:"value",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLTextAreaElement, Element>) => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((event: ChangeEvent<HTMLTextAreaElement>) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLTextAreaElement, Element>) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/text-area/text-area.tsx#TextArea"]={docgenInfo:t.TextArea.__docgenInfo,name:"TextArea",path:"src/components/text-area/text-area.tsx#TextArea"})}catch(e){}},3675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.responsiveInputsStyle=t.inputsStyle=void 0;const a=n(1608),r=n(4606);t.inputsStyle=(e,t=!1)=>a.css`
2837
+ `;t.TextArea=e=>{var{className:t,noMargin:n,onBlur:r,onChange:l,onFocus:m,hint:g,defaultValue:y,disabled:b,label:w,placeholder:_,required:M,tooltip:E,validationErrorMessage:k,value:C,maxLength:x}=e,S=a(e,["className","noMargin","onBlur","onChange","onFocus","hint","defaultValue","disabled","label","placeholder","required","tooltip","validationErrorMessage","value","maxLength"]);const{t:T}=(0,s.useTranslation)("text-area"),[H,P]=(0,o.useState)(!0),[V,q]=(0,o.useState)(function(e,t){return e?e.length:t?t.length:0}(C,y)),O=(0,o.useMemo)(d.v4,[]),L=(0,o.useMemo)(d.v4,[]),D=(0,u.useDataAttributes)(S);function A(){return k||T(x&&V>x?"maxLengthValidationErrorMessage":"validationErrorMessage")}const j=(0,f.useAriaConditionalIds)([{id:`${O}_hint`,include:!!g},{id:`${O}_invalid`,include:!H&&!!A()},{id:L,include:!!x}]);return(0,i.jsxs)(c.FieldContainer,{"data-testid":"container",className:t,noMargin:n,fieldId:O,label:w,required:M,tooltip:E,hint:g,valid:H,validationErrorMessage:A(),children:[(0,i.jsx)(h,Object.assign({"data-testid":"textarea",defaultValue:y,disabled:b,id:O,"aria-describedby":j,onBlur:function(e){(void 0===x||V<=x)&&P(e.currentTarget.checkValidity()),r&&r(e)},onChange:function(e){const t=e.currentTarget.value.length;q(t),x&&t>x?P(!1):H||P(!0),l&&l(e)},onFocus:function(e){m&&m(e)},placeholder:_,required:M,value:C},D)),x&&(0,i.jsxs)(v,{"data-testid":"char-counter","aria-live":"polite",id:L,valid:V<=x,children:[(0,i.jsx)(p.ScreenReaderOnlyText,{label:T("charactersScreenReader",{length:V,max:x})}),(0,i.jsx)("span",{"aria-hidden":"true",children:T("characters",{length:V,max:x})})]})]})};try{t.TextArea.displayName="TextArea",t.TextArea.__docgenInfo={description:"",displayName:"TextArea",props:{className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!0,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"number"}},validationErrorMessage:{defaultValue:{value:"This text area input is invalid"},description:"Message displayed in case of validation error",name:"validationErrorMessage",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"Only use if you want to control input value externally",name:"value",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLTextAreaElement, Element>) => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((event: ChangeEvent<HTMLTextAreaElement>) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLTextAreaElement, Element>) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/text-area/text-area.tsx#TextArea"]={docgenInfo:t.TextArea.__docgenInfo,name:"TextArea",path:"src/components/text-area/text-area.tsx#TextArea"})}catch(e){}},3675:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.responsiveInputsStyle=t.inputsStyle=void 0;const a=n(1608),r=n(4606);t.inputsStyle=(e,t=!1)=>a.css`
2868
2838
  background: ${e.greys.white};
2869
2839
  border: 1px solid ${e.greys["dark-grey"]};
2870
2840
  border-radius: var(--border-radius);
@@ -2925,9 +2895,9 @@
2925
2895
  }
2926
2896
 
2927
2897
  ${(0,r.focus)({theme:e},!0)}
2928
- `;try{t.responsiveInputsStyle.displayName="responsiveInputsStyle",t.responsiveInputsStyle.__docgenInfo={description:"",displayName:"responsiveInputsStyle",props:{theme:{defaultValue:null,description:"",name:"theme",required:!0,type:{name:"Theme"}},device:{defaultValue:null,description:"",name:"device",required:!0,type:{name:"DeviceContextProps"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/text-input/styles/inputs.tsx#responsiveInputsStyle"]={docgenInfo:t.responsiveInputsStyle.__docgenInfo,name:"responsiveInputsStyle",path:"src/components/text-input/styles/inputs.tsx#responsiveInputsStyle"})}catch(e){}},1898:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextInput=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(4182),c=n(9752),m=n(964),p=n(3675),f=l.default.input`
2929
- ${({theme:e,isMobile:t})=>(0,p.inputsStyle)(e,t)}
2930
- `;t.TextInput=(0,o.forwardRef)(((e,t)=>{var{ariaDescribedBy:n,ariaInvalid:r,className:l,defaultValue:p,disabled:h,hint:v,id:g,inputMode:y,label:b,tooltip:w,name:_,noMargin:M,pattern:E,placeholder:k,required:C,type:x,valid:S,validationErrorMessage:T,value:H,autoComplete:P,onBlur:V,onChange:q,onFocus:O,onKeyUp:L,onKeyDown:D,onMouseUp:A}=e,j=a(e,["ariaDescribedBy","ariaInvalid","className","defaultValue","disabled","hint","id","inputMode","label","tooltip","name","noMargin","pattern","placeholder","required","type","valid","validationErrorMessage","value","autoComplete","onBlur","onChange","onFocus","onKeyUp","onKeyDown","onMouseUp"]);const{isMobile:I}=(0,c.useDeviceContext)(),{t:R}=(0,s.useTranslation)("text-input"),[{validity:W},N]=(0,o.useState)({validity:null==S||S}),z=(0,o.useMemo)((()=>g||(0,d.v4)()),[g]),Z=(0,u.useDataAttributes)(j),F=(0,o.useMemo)((()=>`${n||""} ${W?"":`${z}_invalid`} ${v?`${z}_hint`:""}`.trim()),[z,n,W,v]),B=(0,o.useCallback)((e=>{void 0===S&&N({validity:e.currentTarget.checkValidity()}),V&&V(e)}),[V,S]),$=(0,o.useCallback)((()=>{void 0===S&&N({validity:!1})}),[S]),U=(0,o.useCallback)((e=>{q&&q(e)}),[q]),Y=(0,o.useCallback)((e=>{O&&O(e)}),[O]);return(0,o.useEffect)((()=>{void 0!==S&&N({validity:S})}),[S]),(0,i.jsx)(m.FieldContainer,{className:l,noMargin:M,fieldId:z,label:b,required:C,tooltip:w,valid:W,validationErrorMessage:T||R("validationErrorMessage"),hint:v,"data-testid":"field-container",children:(0,i.jsx)(f,Object.assign({"aria-describedby":F||void 0,"aria-invalid":r,autoComplete:P,"data-testid":"text-input",isMobile:I,defaultValue:p,disabled:h,id:z,inputMode:y,name:_,ref:t,onBlur:B,onChange:U,onFocus:Y,onMouseUp:A,onKeyUp:L,onKeyDown:D,onInvalid:$,pattern:E,placeholder:k,required:C,type:x||"text",value:H},Z))})})),t.TextInput.displayName="TextInput";try{t.TextInput.displayName="TextInput",t.TextInput.__docgenInfo={description:"",displayName:"TextInput",props:{ariaDescribedBy:{defaultValue:null,description:"",name:"ariaDescribedBy",required:!1,type:{name:"string"}},ariaInvalid:{defaultValue:null,description:"",name:"ariaInvalid",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},pattern:{defaultValue:null,description:"",name:"pattern",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"string"}},valid:{defaultValue:null,description:"",name:"valid",required:!1,type:{name:"boolean"}},validationErrorMessage:{defaultValue:null,description:"",name:"validationErrorMessage",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((event: ChangeEvent<HTMLInputElement>) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"((event: KeyboardEvent<HTMLInputElement>) => void)"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"((event: KeyboardEvent<HTMLInputElement>) => void)"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"((event: MouseEvent<HTMLInputElement, MouseEvent>) => void)"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | number | readonly string[]"}},inputMode:{defaultValue:null,description:"Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"search"'},{value:'"text"'},{value:'"none"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"string"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLInputElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/text-input/text-input.tsx#TextInput"]={docgenInfo:t.TextInput.__docgenInfo,name:"TextInput",path:"src/components/text-input/text-input.tsx#TextInput"})}catch(e){}},153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeWrapper=void 0;const a=n(3564),r=n(1608),i=n(1851),o=n(5471),l=n(9692);t.ThemeWrapper=({children:e,isolateStyles:t=!1,theme:n})=>{let u,s=n;return s?0===Object.entries(s).length&&s.constructor===Object&&(s=o.equisoftTheme):s=o.equisoftTheme,u=t?(0,a.jsx)(l.ShadowWrapper,{children:e}):e,(0,i.useStyle)(t),(0,a.jsx)(r.ThemeProvider,{theme:s,children:u})};try{t.ThemeWrapper.displayName="ThemeWrapper",t.ThemeWrapper.__docgenInfo={description:"",displayName:"ThemeWrapper",props:{isolateStyles:{defaultValue:{value:!1},description:"When true, components are mounted in the Shadow DOM",name:"isolateStyles",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/theme-wrapper/theme-wrapper.tsx#ThemeWrapper"]={docgenInfo:t.ThemeWrapper.__docgenInfo,name:"ThemeWrapper",path:"src/components/theme-wrapper/theme-wrapper.tsx#ThemeWrapper"})}catch(e){}},2246:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastContainer=void 0;const o=n(3564),l=n(8156),u=i(n(1608)),s=n(6502),d=n(3456),c=n(8077),m=n(524),p=n(9752),f=n(569),h=u.keyframes` /* stylelint-disable-line keyframes-name-pattern */
2898
+ `;try{t.responsiveInputsStyle.displayName="responsiveInputsStyle",t.responsiveInputsStyle.__docgenInfo={description:"",displayName:"responsiveInputsStyle",props:{theme:{defaultValue:null,description:"",name:"theme",required:!0,type:{name:"Theme"}},device:{defaultValue:null,description:"",name:"device",required:!0,type:{name:"DeviceContextProps"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/text-input/styles/inputs.tsx#responsiveInputsStyle"]={docgenInfo:t.responsiveInputsStyle.__docgenInfo,name:"responsiveInputsStyle",path:"src/components/text-input/styles/inputs.tsx#responsiveInputsStyle"})}catch(e){}},1898:function(e,t,n){"use strict";var a=this&&this.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TextInput=void 0;const i=n(3564),o=n(8156),l=r(n(1608)),u=n(4254),s=n(8077),d=n(9752),c=n(964),m=n(3675),p=n(8478),f=n(2347),h=l.default.input`
2899
+ ${({theme:e,isMobile:t})=>(0,m.inputsStyle)(e,t)}
2900
+ `;t.TextInput=(0,o.forwardRef)(((e,t)=>{var{ariaDescribedBy:n,ariaInvalid:r,className:l,defaultValue:m,disabled:v,hint:g,id:y,inputMode:b,label:w,tooltip:_,name:M,noMargin:E,pattern:k,placeholder:C,required:x,type:S,valid:T,validationErrorMessage:H,value:P,autoComplete:V,onBlur:q,onChange:O,onFocus:L,onKeyUp:D,onKeyDown:A,onMouseUp:j}=e,I=a(e,["ariaDescribedBy","ariaInvalid","className","defaultValue","disabled","hint","id","inputMode","label","tooltip","name","noMargin","pattern","placeholder","required","type","valid","validationErrorMessage","value","autoComplete","onBlur","onChange","onFocus","onKeyUp","onKeyDown","onMouseUp"]);const{isMobile:R}=(0,d.useDeviceContext)(),{t:W}=(0,s.useTranslation)("text-input"),[{validity:N},z]=(0,o.useState)({validity:null==T||T}),Z=(0,f.useId)(y),F=(0,u.useDataAttributes)(I),B=(0,p.useAriaConditionalIds)([{id:n},{id:`${Z}_invalid`,include:!N},{id:`${Z}_hint`,include:!!g}]),$=(0,o.useCallback)((e=>{void 0===T&&z({validity:e.currentTarget.checkValidity()}),q&&q(e)}),[q,T]),U=(0,o.useCallback)((()=>{void 0===T&&z({validity:!1})}),[T]),Y=(0,o.useCallback)((e=>{O&&O(e)}),[O]),K=(0,o.useCallback)((e=>{L&&L(e)}),[L]);return(0,o.useEffect)((()=>{void 0!==T&&z({validity:T})}),[T]),(0,i.jsx)(c.FieldContainer,{className:l,noMargin:E,fieldId:Z,label:w,required:x,tooltip:_,valid:N,validationErrorMessage:H||W("validationErrorMessage"),hint:g,"data-testid":"field-container",children:(0,i.jsx)(h,Object.assign({"aria-describedby":B||void 0,"aria-invalid":r,autoComplete:V,"data-testid":"text-input",isMobile:R,defaultValue:m,disabled:v,id:Z,inputMode:b,name:M,ref:t,onBlur:$,onChange:Y,onFocus:K,onMouseUp:j,onKeyUp:D,onKeyDown:A,onInvalid:U,pattern:k,placeholder:C,required:x,type:S||"text",value:P},F))})})),t.TextInput.displayName="TextInput";try{t.TextInput.displayName="TextInput",t.TextInput.__docgenInfo={description:"",displayName:"TextInput",props:{ariaDescribedBy:{defaultValue:null,description:"",name:"ariaDescribedBy",required:!1,type:{name:"string"}},ariaInvalid:{defaultValue:null,description:"",name:"ariaInvalid",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},noMargin:{defaultValue:null,description:"Disables default margin",name:"noMargin",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},label:{defaultValue:null,description:"",name:"label",required:!1,type:{name:"string"}},tooltip:{defaultValue:null,description:"",name:"tooltip",required:!1,type:{name:"TooltipProps"}},pattern:{defaultValue:null,description:"",name:"pattern",required:!1,type:{name:"string"}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"string"}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"boolean"}},type:{defaultValue:null,description:"",name:"type",required:!1,type:{name:"string"}},valid:{defaultValue:null,description:"",name:"valid",required:!1,type:{name:"boolean"}},validationErrorMessage:{defaultValue:null,description:"",name:"validationErrorMessage",required:!1,type:{name:"string"}},hint:{defaultValue:null,description:"",name:"hint",required:!1,type:{name:"string"}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"((event: ChangeEvent<HTMLInputElement>) => void)"}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"((event: FocusEvent<HTMLInputElement, Element>) => void)"}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"((event: KeyboardEvent<HTMLInputElement>) => void)"}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"((event: KeyboardEvent<HTMLInputElement>) => void)"}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"((event: MouseEvent<HTMLInputElement, MouseEvent>) => void)"}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"string"}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"string | number | readonly string[]"}},inputMode:{defaultValue:null,description:"Hints at the type of data that might be entered by the user while editing the element or its contents\n@see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute",name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"search"'},{value:'"text"'},{value:'"none"'},{value:'"tel"'},{value:'"url"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"string"}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"Ref<HTMLInputElement>"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"Key | null"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/text-input/text-input.tsx#TextInput"]={docgenInfo:t.TextInput.__docgenInfo,name:"TextInput",path:"src/components/text-input/text-input.tsx#TextInput"})}catch(e){}},153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeWrapper=void 0;const a=n(3564),r=n(1608),i=n(1851),o=n(5471),l=n(9692);t.ThemeWrapper=({children:e,isolateStyles:t=!1,theme:n})=>{let u,s=n;return s?0===Object.entries(s).length&&s.constructor===Object&&(s=o.equisoftTheme):s=o.equisoftTheme,u=t?(0,a.jsx)(l.ShadowWrapper,{children:e}):e,(0,i.useStyle)(t),(0,a.jsx)(r.ThemeProvider,{theme:s,children:u})};try{t.ThemeWrapper.displayName="ThemeWrapper",t.ThemeWrapper.__docgenInfo={description:"",displayName:"ThemeWrapper",props:{isolateStyles:{defaultValue:{value:!1},description:"When true, components are mounted in the Shadow DOM",name:"isolateStyles",required:!1,type:{name:"boolean"}},theme:{defaultValue:null,description:"",name:"theme",required:!1,type:{name:"Theme"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/theme-wrapper/theme-wrapper.tsx#ThemeWrapper"]={docgenInfo:t.ThemeWrapper.__docgenInfo,name:"ThemeWrapper",path:"src/components/theme-wrapper/theme-wrapper.tsx#ThemeWrapper"})}catch(e){}},2246:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ToastContainer=void 0;const o=n(3564),l=n(8156),u=i(n(1608)),s=n(6502),d=n(3456),c=n(8077),m=n(524),p=n(9752),f=n(569),h=u.keyframes` /* stylelint-disable-line keyframes-name-pattern */
2931
2901
  from {
2932
2902
  transform: translateX(-100%);
2933
2903
  }
@@ -3384,12 +3354,12 @@
3384
3354
  }
3385
3355
  `,h=(0,u.default)(d.Avatar)`
3386
3356
  margin-right: ${({isMobile:e})=>e?0:"var(--spacing-1x)"};
3387
- `;function v(e){return e.find((e=>!e.disabled))}t.getFirstFocusableItem=v,t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:u,onMenuVisibilityChanged:d,options:m,userEmail:g,username:y})=>{const{t:b}=(0,s.useTranslation)("user-profile"),{isMobile:w}=(0,c.useDeviceContext)(),_=v(m),M=(0,l.useRef)(null);return(0,o.jsx)(f,Object.assign({ariaLabel:e||b("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,hasCaret:!w,id:r,icon:(0,o.jsx)(h,{isMobile:w,username:y}),inverted:i,tag:u,isMobile:w},w?{}:{label:y},{onMenuVisibilityChanged:d,firstItemRef:M,render:e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.GroupItem,{id:"user-label",children:(0,o.jsx)(p.LabelItem,{label:y,description:g})}),(0,o.jsx)(p.GroupItem,{id:"user-actions",children:m.map((t=>(0,o.jsx)(p.NavItem,{"data-testid":`action-${t.value}`,ref:_===t?M:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,lozenge:t.lozenge,disabled:t.disabled,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value)))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"() => string"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => IterableIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => IterableIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => IterableIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@47954":{defaultValue:null,description:"Iterator",name:"__@iterator@47954",required:!0,type:{name:"() => IterableIterator<NavItemProps>"}},"__@unscopables@49732":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@49732",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 29 more ...; at?: boolean | undefined; }"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => NavItemProps | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},4797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hiddenStyle=void 0,t.hiddenStyle="\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px !important;\n overflow: hidden;\n padding:0 !important;\n position: absolute !important;\n width: 1px !important;\n"},3218:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VisuallyHidden=void 0;const r=n(3564),i=a(n(1608)),o=n(4797),l=i.default.span`
3357
+ `;function v(e){return e.find((e=>!e.disabled))}t.getFirstFocusableItem=v,t.UserProfile=({ariaLabel:e,buttonAriaLabel:t,className:n,defaultOpen:a=!1,id:r,inverted:i=!0,tag:u,onMenuVisibilityChanged:d,options:m,userEmail:g,username:y})=>{const{t:b}=(0,s.useTranslation)("user-profile"),{isMobile:w}=(0,c.useDeviceContext)(),_=v(m),M=(0,l.useRef)(null);return(0,o.jsx)(f,Object.assign({ariaLabel:e||b("ariaLabel"),buttonAriaLabel:t,className:n,"data-testid":"user-profile",defaultOpen:a,hasCaret:!w,id:r,icon:(0,o.jsx)(h,{isMobile:w,username:y}),inverted:i,tag:u,isMobile:w},w?{}:{label:y},{onMenuVisibilityChanged:d,firstItemRef:M,render:e=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.GroupItem,{id:"user-label",children:(0,o.jsx)(p.LabelItem,{label:y,description:g})}),(0,o.jsx)(p.GroupItem,{id:"user-actions",children:m.map((t=>(0,o.jsx)(p.NavItem,{"data-testid":`action-${t.value}`,ref:_===t?M:void 0,value:t.value,href:t.href,label:t.label,isHtmlLink:t.isHtmlLink,lozenge:t.lozenge,disabled:t.disabled,onClick:t.disabled?void 0:n=>{var a;null===(a=t.onClick)||void 0===a||a.call(t,n),e()}},t.value)))})]})}))};try{t.getFirstFocusableItem.displayName="getFirstFocusableItem",t.getFirstFocusableItem.__docgenInfo={description:"",displayName:"getFirstFocusableItem",props:{length:{defaultValue:null,description:"Gets or sets the length of the array. This is a number one higher than the highest index in the array.",name:"length",required:!0,type:{name:"number"}},toString:{defaultValue:null,description:"Returns a string representation of an array.",name:"toString",required:!1,type:{name:"() => string"}},toLocaleString:{defaultValue:null,description:"Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.",name:"toLocaleString",required:!1,type:{name:"() => string"}},pop:{defaultValue:null,description:"Removes the last element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"pop",required:!0,type:{name:"() => NavItemProps | undefined"}},push:{defaultValue:null,description:"Appends new elements to the end of an array, and returns the new length of the array.\n@param items New elements to add to the array.",name:"push",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},concat:{defaultValue:null,description:"Combines two or more arrays.\nThis method returns a new array without modifying any existing arrays.\n@param items Additional arrays and/or items to add to the end of the array.\n@param items Additional arrays and/or items to add to the end of the array.",name:"concat",required:!0,type:{name:"{ (...items: ConcatArray<NavItemProps>[]): NavItemProps[]; (...items: (NavItemProps | ConcatArray<NavItemProps>)[]): NavItemProps[]; }"}},join:{defaultValue:null,description:"Adds all the elements of an array into a string, separated by the specified separator string.\n@param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.",name:"join",required:!0,type:{name:"(separator?: string | undefined) => string"}},reverse:{defaultValue:null,description:"Reverses the elements in an array in place.\nThis method mutates the array and returns a reference to the same array.",name:"reverse",required:!0,type:{name:"() => NavItemProps[]"}},shift:{defaultValue:null,description:"Removes the first element from an array and returns it.\nIf the array is empty, undefined is returned and the array is not modified.",name:"shift",required:!0,type:{name:"() => NavItemProps | undefined"}},slice:{defaultValue:null,description:"Returns a copy of a section of an array.\nFor both start and end, a negative index can be used to indicate an offset from the end of the array.\nFor example, -2 refers to the second to last element of the array.\n@param start The beginning index of the specified portion of the array.\nIf start is undefined, then the slice begins at index 0.\n@param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.\nIf end is undefined, then the slice extends to the end of the array.",name:"slice",required:!0,type:{name:"(start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},sort:{defaultValue:null,description:"Sorts an array in place.\nThis method mutates the array and returns a reference to the same array.\n@param compareFn Function used to determine the order of the elements. It is expected to return\na negative value if the first argument is less than the second argument, zero if they're equal, and a positive\nvalue otherwise. If omitted, the elements are sorted in ascending, ASCII character order.\n```ts\n[11,2,22,1].sort((a, b) => a - b)\n```",name:"sort",required:!0,type:{name:"(compareFn?: ((a: NavItemProps, b: NavItemProps) => number) | undefined) => NavItemProps[]"}},splice:{defaultValue:null,description:"Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@returns An array containing the elements that were deleted.\n@param start The zero-based location in the array from which to start removing elements.\n@param deleteCount The number of elements to remove.\n@param items Elements to insert into the array in place of the deleted elements.\n@returns An array containing the elements that were deleted.",name:"splice",required:!0,type:{name:"{ (start: number, deleteCount?: number | undefined): NavItemProps[]; (start: number, deleteCount: number, ...items: NavItemProps[]): NavItemProps[]; }"}},unshift:{defaultValue:null,description:"Inserts new elements at the start of an array, and returns the new length of the array.\n@param items Elements to insert at the start of the array.",name:"unshift",required:!0,type:{name:"(...items: NavItemProps[]) => number"}},indexOf:{defaultValue:null,description:"Returns the index of the first occurrence of a value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.",name:"indexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},lastIndexOf:{defaultValue:null,description:"Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.\n@param searchElement The value to locate in the array.\n@param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.",name:"lastIndexOf",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => number"}},every:{defaultValue:null,description:"Determines whether all the members of an array satisfy the specified test.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The every method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value false, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"every",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): this is S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): boolean; }"}},some:{defaultValue:null,description:"Determines whether the specified callback function returns true for any element of an array.\n@param predicate A function that accepts up to three arguments. The some method calls\nthe predicate function for each element in the array until the predicate returns a value\nwhich is coercible to the Boolean value true, or until the end of the array.\n@param thisArg An object to which the this keyword can refer in the predicate function.\nIf thisArg is omitted, undefined is used as the this value.",name:"some",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any) => boolean"}},forEach:{defaultValue:null,description:"Performs the specified action for each element in an array.\n@param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"forEach",required:!0,type:{name:"(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => void, thisArg?: any) => void"}},map:{defaultValue:null,description:"Calls a defined callback function on each element of an array, and returns an array that contains the results.\n@param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.",name:"map",required:!0,type:{name:"<U>(callbackfn: (value: NavItemProps, index: number, array: NavItemProps[]) => U, thisArg?: any) => U[]"}},filter:{defaultValue:null,description:"Returns the elements of an array that meet the condition specified in a callback function.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.\n@param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.",name:"filter",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => value is S, thisArg?: any): S[]; (predicate: (value: NavItemProps, index: number, array: NavItemProps[]) => unknown, thisArg?: any): NavItemProps[]; }"}},reduce:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduce",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},reduceRight:{defaultValue:null,description:"Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.\n@param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.\n@param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.",name:"reduceRight",required:!0,type:{name:"{ (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps): NavItemProps; (callbackfn: (previousValue: NavItemProps, currentValue: NavItemProps, currentIndex: number, array: NavItemProps[]) => NavItemProps, initialValue: NavItemProps): NavIt..."}},find:{defaultValue:null,description:"Returns the value of the first element in the array where predicate is true, and undefined\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found, find\nimmediately returns that element value. Otherwise, find returns undefined.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"find",required:!0,type:{name:"{ <S extends NavItemProps>(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => value is S, thisArg?: any): S | undefined; (predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any): NavItemProps | undefined; }"}},findIndex:{defaultValue:null,description:"Returns the index of the first element in the array where predicate is true, and -1\notherwise.\n@param predicate find calls predicate once for each element of the array, in ascending\norder, until it finds one where predicate returns true. If such an element is found,\nfindIndex immediately returns that element index. Otherwise, findIndex returns -1.\n@param thisArg If provided, it will be used as the this value for each invocation of\npredicate. If it is not provided, undefined is used instead.",name:"findIndex",required:!0,type:{name:"(predicate: (value: NavItemProps, index: number, obj: NavItemProps[]) => unknown, thisArg?: any) => number"}},fill:{defaultValue:null,description:"Changes all array elements from `start` to `end` index to a static `value` and returns the modified array\n@param value value to fill array section with\n@param start index to start filling the array at. If start is negative, it is treated as\nlength+start where length is the length of the array.\n@param end index to stop filling the array at. If end is negative, it is treated as\nlength+end.",name:"fill",required:!0,type:{name:"(value: NavItemProps, start?: number | undefined, end?: number | undefined) => NavItemProps[]"}},copyWithin:{defaultValue:null,description:"Returns the this object after copying a section of the array identified by start and end\nto the same array starting at position target\n@param target If target is negative, it is treated as length+target where length is the\nlength of the array.\n@param start If start is negative, it is treated as length+start. If end is negative, it\nis treated as length+end.\n@param end If not specified, length of the this object is used as its default value.",name:"copyWithin",required:!0,type:{name:"(target: number, start: number, end?: number | undefined) => NavItemProps[]"}},entries:{defaultValue:null,description:"Returns an iterable of key, value pairs for every entry in the array",name:"entries",required:!0,type:{name:"() => IterableIterator<[number, NavItemProps]>"}},keys:{defaultValue:null,description:"Returns an iterable of keys in the array",name:"keys",required:!0,type:{name:"() => IterableIterator<number>"}},values:{defaultValue:null,description:"Returns an iterable of values in the array",name:"values",required:!0,type:{name:"() => IterableIterator<NavItemProps>"}},includes:{defaultValue:null,description:"Determines whether an array includes a certain element, returning true or false as appropriate.\n@param searchElement The element to search for.\n@param fromIndex The position in this array at which to begin searching for searchElement.",name:"includes",required:!0,type:{name:"(searchElement: NavItemProps, fromIndex?: number | undefined) => boolean"}},flatMap:{defaultValue:null,description:"Calls a defined callback function on each element of an array. Then, flattens the result into\na new array.\nThis is identical to a map followed by flat with depth 1.\n@param callback A function that accepts up to three arguments. The flatMap method calls the\ncallback function one time for each element in the array.\n@param thisArg An object to which the this keyword can refer in the callback function. If\nthisArg is omitted, undefined is used as the this value.",name:"flatMap",required:!0,type:{name:"<U, This = undefined>(callback: (this: This, value: NavItemProps, index: number, array: NavItemProps[]) => U | readonly U[], thisArg?: This | undefined) => U[]"}},flat:{defaultValue:null,description:"Returns a new array with all sub-array elements concatenated into it recursively up to the\nspecified depth.\n@param depth The maximum recursion depth",name:"flat",required:!0,type:{name:"<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]"}},"__@iterator@47974":{defaultValue:null,description:"Iterator",name:"__@iterator@47974",required:!0,type:{name:"() => IterableIterator<NavItemProps>"}},"__@unscopables@49748":{defaultValue:null,description:"Is an object whose properties have the value 'true'\nwhen they will be absent when used in a 'with' statement.",name:"__@unscopables@49748",required:!0,type:{name:"{ [x: number]: boolean | undefined; length?: boolean | undefined; toString?: boolean | undefined; toLocaleString?: boolean | undefined; pop?: boolean | undefined; push?: boolean | undefined; ... 29 more ...; at?: boolean | undefined; }"}},at:{defaultValue:null,description:"Takes an integer value and returns the item at that index,\nallowing for positive and negative integers.\nNegative integers count back from the last item in the array.",name:"at",required:!0,type:{name:"(index: number) => NavItemProps | undefined"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#getFirstFocusableItem"]={docgenInfo:t.getFirstFocusableItem.__docgenInfo,name:"getFirstFocusableItem",path:"src/components/user-profile/user-profile.tsx#getFirstFocusableItem"})}catch(e){}try{t.UserProfile.displayName="UserProfile",t.UserProfile.__docgenInfo={description:"",displayName:"UserProfile",props:{ariaLabel:{defaultValue:{value:"'User menu'"},description:"Sets nav's description",name:"ariaLabel",required:!1,type:{name:"string"}},buttonAriaLabel:{defaultValue:null,description:"",name:"buttonAriaLabel",required:!1,type:{name:"string"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},defaultOpen:{defaultValue:{value:!1},description:"Sets menu open by default",name:"defaultOpen",required:!1,type:{name:"boolean"}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},inverted:{defaultValue:{value:!0},description:"",name:"inverted",required:!1,type:{name:"boolean"}},tag:{defaultValue:null,description:"Set wrapper element tag",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"nav"'}]}},options:{defaultValue:null,description:"",name:"options",required:!0,type:{name:"NavItemProps[]"}},username:{defaultValue:null,description:"",name:"username",required:!0,type:{name:"string"}},userEmail:{defaultValue:null,description:"",name:"userEmail",required:!1,type:{name:"string"}},onMenuVisibilityChanged:{defaultValue:null,description:"",name:"onMenuVisibilityChanged",required:!1,type:{name:"((isOpen: boolean) => void)"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/user-profile/user-profile.tsx#UserProfile"]={docgenInfo:t.UserProfile.__docgenInfo,name:"UserProfile",path:"src/components/user-profile/user-profile.tsx#UserProfile"})}catch(e){}},4797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hiddenStyle=void 0,t.hiddenStyle="\n border: 0 !important;\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px !important;\n overflow: hidden;\n padding:0 !important;\n position: absolute !important;\n width: 1px !important;\n"},3218:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.VisuallyHidden=void 0;const r=n(3564),i=a(n(1608)),o=n(4797),l=i.default.span`
3388
3358
  ${o.hiddenStyle}
3389
- `;t.VisuallyHidden=({children:e})=>(0,r.jsx)(l,{"aria-hidden":"false",children:e});try{t.VisuallyHidden.displayName="VisuallyHidden",t.VisuallyHidden.__docgenInfo={description:"",displayName:"VisuallyHidden",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/visually-hidden/visuallyhidden.tsx#VisuallyHidden"]={docgenInfo:t.VisuallyHidden.__docgenInfo,name:"VisuallyHidden",path:"src/components/visually-hidden/visuallyhidden.tsx#VisuallyHidden"})}catch(e){}},4254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataAttributes=void 0;const a=n(8156);function r(e){return null!==e&&"object"==typeof e}function i(e){return r(e)?Object.keys(e).reduce(((t,n)=>(function(e){return null!==e.match(/data-/i)}(n)&&(t[n]=e[n]),t)),{}):{}}t.useDataAttributes=function(e){const[t,n]=(0,a.useState)((()=>i(e))),o=r(e)?[...Object.values(e)]:[e];return(0,a.useEffect)((()=>{n(i(e))}),o),t}},2347:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useId=void 0;const a=n(8156),r=n(4182);t.useId=function(e){return(0,a.useMemo)((()=>null!=e?e:(0,r.v4)()),[e])}},4199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useListCursor=void 0;const a=n(8156);t.useListCursor=function({elements:e,initialElement:t,predicate:n=(()=>!0)}){const[r,i]=(0,a.useState)(t),o=(0,a.useCallback)((()=>{const t=e.find(n);return t&&i(t),t}),[e,n]),l=(0,a.useCallback)((()=>{const t=[...e].reverse().find(n);return t&&i(t),t}),[e,n]),u=(0,a.useCallback)((()=>{if(void 0===r)return o();const t=e.indexOf(r),a=e.slice(0,t).reverse().find(n);return a&&i(a),a}),[e,n,o,r]),s=(0,a.useCallback)((()=>{if(void 0===r)return o();const t=e.indexOf(r),a=e.slice(t+1).find(n);return a&&i(a),a}),[e,n,o,r]);return{selectedElement:r,setSelectedElement:i,selectPrevious:u,selectNext:s,selectFirst:o,selectLast:l}}},3474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollIntoView=void 0;const a=n(8156);t.useScrollIntoView=function({container:e}){return{scrollIntoView:(0,a.useCallback)(((t,n=!1)=>{if(!e.current)return;const{offsetHeight:a,offsetTop:r}=t,{offsetHeight:i,scrollTop:o}=e.current,l=getComputedStyle(e.current),u=r-parseFloat(l.paddingTop),s=r-i+a+parseFloat(l.paddingBottom),d=s>o;u<o||d&&n?e.current.scrollTo(0,u):d&&e.current.scrollTo(0,s)}),[e])}}},6502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTheme=void 0;const a=n(8156),r=n(1608);t.useTheme=function(){return(0,a.useContext)(r.ThemeContext)}},3999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useToast=void 0;const a=n(8156),r=n(3456);t.useToast=function(){const{addToast:e,removeToast:t}=(0,r.useToasts)();return{showToast:(0,a.useCallback)(((t,n)=>e(t,n,!0)),[e]),hideToast:t}}},3456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useToasts=void 0;const a=n(8156),r=n(4812);t.useToasts=function(){return(0,a.useContext)(r.ToastContext)}},16:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createI18n=void 0;const r=a(n(8661)),i=n(4146);t.createI18n=function(e="en"){const t=r.default.createInstance();return t.init({defaultNS:"common",resources:i.Translations,lng:e,fallbackLng:e,interpolation:{escapeValue:!1},returnNull:!1}).catch(console.error),t}},4146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Translations=void 0,t.Translations={en:{avatar:{ariaLabel:"{{username}} avatar"},bento:{productsLabel:"Products",externalsLabel:"Resources"},common:{opensInNewTab:"opens in a new tab",opensInNewTabScreenReader:"(opens in a new tab)",error:"Error"},datepicker:{calendarButtonLabel:"Choose date",calendarButtonSelectedLabel:"Choose date. The selected date is",calendarContainerLabel:"Choose date",todayButtonAriaLabel:"Choose today's date",todayButtonLabel:"Today",validationErrorMessage:"Invalid date",monthPreviousButtonLabel:"Go to previous month",monthNextButtonLabel:"Go to next month",monthSelectLabel:"Select a month",yearSelectLabel:"Select a year"},"error-summary":{title:"The form contains one or more errors",message:"Please correct them to proceed to the next step."},"global-banner":{ignore:"Ignore"},"menu-button":{buttonAriaLabel:"Open menu"},modal:{closeButtonLabel:"Close dialog"},"modal-dialog":{cancelButtonLabel:"Cancel",confirmButtonLabel:"Confirm"},"money-input":{validationErrorMessage:"Invalid number"},"nav-menu-button":{ariaLabel:"Menu"},"numeric-input":{requiredValidationErrorMessage:"This field is required",maxValidationErrorMessage:"The value must be less than or equal to {{max}}",minValidationErrorMessage:"The value must be greater than or equal to {{min}}"},pagination:{pagination:"Pagination",results:"{{pageStartIndex}}–{{pageEndIndex}} of {{numberOfResults}} results"},"password-creation-input":{"password-strength":"Password strength: ","min-8-characters":"Minimum 8 characters","min-1-lower-case":"At least one lower case","min-1-upper-case":"At least one upper case","create-password":"Create password",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong","show-password":"Show password in plain text.","hide-password":"Hide password."},"password-input":{"show-password":"Show password in plain text.","hide-password":"Hide password."},"search-input":{label:"Search"},"sectional-banner":{Alert:"Alert",Warning:"Warning",Success:"Success",Info:"Information",Discovery:"Pro-tip",Neutral:"Information",dismissLabel:"Dismiss banner"},select:{inputAriaLabel:"Select an option",validationErrorMessage:"You must select an option"},"skip-link":{label:"Skip to main content"},"stepper-input":{validationErrorMessage:"Invalid number"},"stepper-buttons":{"increment-button-aria-label":"Increase number","decrement-button-aria-label":"Decrease number"},"tag-medium":{deleteButtonAriaLabel:"Remove tag {{label}}"},"text-area":{validationErrorMessage:"This text area is invalid",maxLengthValidationErrorMessage:"The number of characters exceeds the maximum allowed. You must shorten the description.",characters:"{{length}} / {{max}} characters",charactersScreenReader:"{{length}} of {{max}} characters available"},"text-input":{validationErrorMessage:"This input is invalid",required:"required"},toast:{dismissButtonLabel:"Dismiss notification"},"user-profile":{ariaLabel:"User menu"}},fr:{avatar:{ariaLabel:"Avatar de {{username}}"},bento:{productsLabel:"Produits",externalsLabel:"Ressources"},common:{opensInNewTab:"ouvre dans un nouvel onglet",opensInNewTabScreenReader:"(ouvre dans un nouvel onglet)",error:"Erreur"},datepicker:{calendarButtonLabel:"Choisissez une date",calendarButtonSelectedLabel:"Choisissez une date. La date sélectionnée est",calendarContainerLabel:"Choisissez une date",todayButtonAriaLabel:"Choisir la date d'aujourd'hui",todayButtonLabel:"Aujourd'hui",validationErrorMessage:"Date non valide",monthPreviousButtonLabel:"Aller au mois précédent",monthNextButtonLabel:"Aller au mois suivant",monthSelectLabel:"Choisissez un mois",yearSelectLabel:"Choisissez une année"},"error-summary":{title:"Le formulaire contient une ou plusieurs erreurs",message:"Veuillez les corriger avant de passer à l'étape suivante."},"global-banner":{ignore:"Ignorer"},"menu-button":{buttonAriaLabel:"Ouvrir le menu"},modal:{closeButtonLabel:"Fermer le dialogue"},"modal-dialog":{cancelButtonLabel:"Annuler",confirmButtonLabel:"Confirmer"},"money-input":{validationErrorMessage:"Ce nombre n'est pas valide"},"nav-menu-button":{ariaLabel:"Menu"},"numeric-input":{requiredValidationErrorMessage:"Ce champ est obligatoire",maxValidationErrorMessage:"La valeur doit être inférieure ou égale à {{max}}",minValidationErrorMessage:"La valeur doit être supérieure ou égale à {{min}}"},pagination:{pagination:"Pagination",results:"{{pageStartIndex}}–{{pageEndIndex}} de {{numberOfResults}} résultats"},"password-creation-input":{"password-strength":"Force du mot de passe : ","min-8-characters":"Minimum 8 caractères","min-1-lower-case":"Au moins une minuscule","min-1-upper-case":"Au moins une majuscule","create-password":"Créer un mot de passe",weak:"Faible",fair:"Raisonnable",good:"Bon",strong:"Fort","show-password":"Montrer le mot de passe.","hide-password":"Cacher le mot de passe."},"password-input":{"show-password":"Montrer le mot de passe.","hide-password":"Cacher le mot de passe."},"search-input":{label:"Rechercher"},"sectional-banner":{Alert:"Alerte",Warning:"Attention",Success:"Succès",Info:"Information",Discovery:"Truc de pro",Neutral:"Information",dismissLabel:"Rejeter la bannière"},select:{inputAriaLabel:"Choisissez une option",validationErrorMessage:"Vous devez choisir une option"},"skip-link":{label:"Passer au contenu principal"},"stepper-input":{validationErrorMessage:"Ce nombre n'est pas valide"},"stepper-buttons":{"increment-button-aria-label":"Augmenter le nombre","decrement-button-aria-label":"Diminuer le nombre"},"tag-medium":{deleteButtonAriaLabel:"Retirer l'étiquette {{label}}"},"text-area":{validationErrorMessage:"Cette zone texte n'est pas valide",maxLengthValidationErrorMessage:"Le nombre de caractères dépasse le maximum autorisé. Vous devez raccourcir la description.",characters:"{{length}} / {{max}} caractères",charactersScreenReader:"{{length}} sur {{max}} caractères disponibles"},"text-input":{validationErrorMessage:"Ce champ est invalide",required:"obligatoire"},toast:{dismissButtonLabel:"Rejeter la notification"},"user-profile":{ariaLabel:"Menu utilisateur"}}}},8077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTranslation=void 0;const a=n(8156),r=n(8904);function i(e){var t;const n=null===(t=e.options)||void 0===t?void 0:t.fallbackLng;return"string"==typeof n||Array.isArray(n)?n:"en"}t.useTranslation=function(e){const{i18n:t}=(0,r.useIntlContext)(),n=(0,a.useCallback)((()=>({t:t.getFixedT(t.language||i(t),e||void 0)})),[t,e]),[o,l]=(0,a.useState)(n()),u=(0,a.useCallback)((()=>{l(n())}),[l,n]);return(0,a.useEffect)((()=>(t.on("languageChanged",u),()=>t.off("languageChanged",u))),[t,u]),{i18n:t,t:o.t}}},7348:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalDialog=t.Modal=t.GlobalBanner=t.SideDrawer=t.SectionalBanner=t.Icon=t.DropdownMenuButton=t.GlobalHeader=t.Heading=t.ExternalLink=t.ErrorSummary=t.ChooserButtonGroup=t.CardLink=t.Card=t.Badge=t.Accordion=t.AccordionItem=t.Listbox=t.IntlProvider=t.useDeviceContext=t.DeviceContextProvider=t.ThemeWrapper=t.isLongEnough=t.hasAnUpperCaseLetter=t.hasALowerCaseLetter=t.ToggleSwitch=t.TextInput=t.TextArea=t.Tabs=t.StepperInput=t.SearchGlobal=t.SearchContextual=t.RadioButtonGroup=t.PhoneInput=t.PasswordInput=t.PasswordCreationInput=t.OptionButton=t.NumericInput=t.MoneyInput=t.DropdownList=t.Datepicker=t.CheckboxGroup=t.Checkbox=t.Avatar=t.ToggleButtonGroup=t.BentoMenuButton=t.DropdownNavigation=t.MenuButton=t.IconButton=t.Button=void 0,t.useTheme=t.injectMainCss=t.testTheme=t.equisoftTheme=t.Pagination=t.ProgressCircle=t.ProgressIndicator=t.RouteLink=t.Breadcrumb=t.useToast=t.UserProfile=t.useModal=t.Spinner=t.SkipLink=t.Status=t.RadioCardGroup=t.RadioCard=t.Lozenge=t.Tag=void 0;var i=n(8276);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return i.Button}});var o=n(524);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return o.IconButton}});var l=n(7698);Object.defineProperty(t,"MenuButton",{enumerable:!0,get:function(){return l.MenuButton}});var u=n(3680);Object.defineProperty(t,"DropdownNavigation",{enumerable:!0,get:function(){return u.DropdownNavigation}});var s=n(5422);Object.defineProperty(t,"BentoMenuButton",{enumerable:!0,get:function(){return s.BentoMenuButton}});var d=n(1589);Object.defineProperty(t,"ToggleButtonGroup",{enumerable:!0,get:function(){return d.ToggleButtonGroup}});var c=n(8643);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return c.Avatar}});var m=n(1212);Object.defineProperty(t,"Checkbox",{enumerable:!0,get:function(){return m.Checkbox}});var p=n(8248);Object.defineProperty(t,"CheckboxGroup",{enumerable:!0,get:function(){return p.CheckboxGroup}});var f=n(5592);Object.defineProperty(t,"Datepicker",{enumerable:!0,get:function(){return f.Datepicker}});var h=n(9685);Object.defineProperty(t,"DropdownList",{enumerable:!0,get:function(){return h.DropdownList}});var v=n(2408);Object.defineProperty(t,"MoneyInput",{enumerable:!0,get:function(){return v.MoneyInput}});var g=n(1190);Object.defineProperty(t,"NumericInput",{enumerable:!0,get:function(){return g.NumericInput}});var y=n(3320);Object.defineProperty(t,"OptionButton",{enumerable:!0,get:function(){return y.OptionButton}});var b=n(6750);Object.defineProperty(t,"PasswordCreationInput",{enumerable:!0,get:function(){return b.PasswordCreationInput}});var w=n(6555);Object.defineProperty(t,"PasswordInput",{enumerable:!0,get:function(){return w.PasswordInput}});var _=n(3690);Object.defineProperty(t,"PhoneInput",{enumerable:!0,get:function(){return _.PhoneInput}});var M=n(6967);Object.defineProperty(t,"RadioButtonGroup",{enumerable:!0,get:function(){return M.RadioButtonGroup}});var E=n(3783);Object.defineProperty(t,"SearchContextual",{enumerable:!0,get:function(){return E.SearchContextual}});var k=n(1732);Object.defineProperty(t,"SearchGlobal",{enumerable:!0,get:function(){return k.SearchGlobal}});var C=n(3484);Object.defineProperty(t,"StepperInput",{enumerable:!0,get:function(){return C.StepperInput}});var x=n(2485);Object.defineProperty(t,"Tabs",{enumerable:!0,get:function(){return x.Tabs}});var S=n(4429);Object.defineProperty(t,"TextArea",{enumerable:!0,get:function(){return S.TextArea}});var T=n(1898);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return T.TextInput}});var H=n(7872);Object.defineProperty(t,"ToggleSwitch",{enumerable:!0,get:function(){return H.ToggleSwitch}});var P=n(4148);Object.defineProperty(t,"hasALowerCaseLetter",{enumerable:!0,get:function(){return P.hasALowerCaseLetter}}),Object.defineProperty(t,"hasAnUpperCaseLetter",{enumerable:!0,get:function(){return P.hasAnUpperCaseLetter}}),Object.defineProperty(t,"isLongEnough",{enumerable:!0,get:function(){return P.hasMinLength}});var V=n(153);Object.defineProperty(t,"ThemeWrapper",{enumerable:!0,get:function(){return V.ThemeWrapper}});var q=n(9752);Object.defineProperty(t,"DeviceContextProvider",{enumerable:!0,get:function(){return q.DeviceContextProvider}}),Object.defineProperty(t,"useDeviceContext",{enumerable:!0,get:function(){return q.useDeviceContext}});var O=n(8904);Object.defineProperty(t,"IntlProvider",{enumerable:!0,get:function(){return O.IntlProvider}});var L=n(634);Object.defineProperty(t,"Listbox",{enumerable:!0,get:function(){return L.Listbox}});var D=n(9108);Object.defineProperty(t,"AccordionItem",{enumerable:!0,get:function(){return D.AccordionItem}}),Object.defineProperty(t,"Accordion",{enumerable:!0,get:function(){return D.Accordion}});var A=n(211);Object.defineProperty(t,"Badge",{enumerable:!0,get:function(){return A.Badge}});var j=n(3874);Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return j.Card}});var I=n(3665);Object.defineProperty(t,"CardLink",{enumerable:!0,get:function(){return I.CardLink}}),r(n(4143),t);var R=n(776);Object.defineProperty(t,"ChooserButtonGroup",{enumerable:!0,get:function(){return R.ChooserButtonGroup}});var W=n(9904);Object.defineProperty(t,"ErrorSummary",{enumerable:!0,get:function(){return W.ErrorSummary}});var N=n(1024);Object.defineProperty(t,"ExternalLink",{enumerable:!0,get:function(){return N.ExternalLink}});var z=n(6926);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return z.Heading}});var Z=n(6538);Object.defineProperty(t,"GlobalHeader",{enumerable:!0,get:function(){return Z.GlobalHeader}});var F=n(5233);Object.defineProperty(t,"DropdownMenuButton",{enumerable:!0,get:function(){return F.DropdownMenuButton}});var B=n(569);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return B.Icon}});var $=n(4013);Object.defineProperty(t,"SectionalBanner",{enumerable:!0,get:function(){return $.SectionalBanner}}),r(n(4571),t);var U=n(9162);Object.defineProperty(t,"SideDrawer",{enumerable:!0,get:function(){return U.SideDrawer}});var Y=n(4570);Object.defineProperty(t,"GlobalBanner",{enumerable:!0,get:function(){return Y.GlobalBanner}}),r(n(824),t),r(n(1260),t),r(n(6696),t);var K=n(7605);Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return K.Modal}});var G=n(9252);Object.defineProperty(t,"ModalDialog",{enumerable:!0,get:function(){return G.ModalDialog}});var X=n(8777);Object.defineProperty(t,"Tag",{enumerable:!0,get:function(){return X.Tag}});var J=n(6152);Object.defineProperty(t,"Lozenge",{enumerable:!0,get:function(){return J.Lozenge}});var Q=n(6965);Object.defineProperty(t,"RadioCard",{enumerable:!0,get:function(){return Q.RadioCard}});var ee=n(7238);Object.defineProperty(t,"RadioCardGroup",{enumerable:!0,get:function(){return ee.RadioCardGroup}});var te=n(7087);Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return te.Status}});var ne=n(6327);Object.defineProperty(t,"SkipLink",{enumerable:!0,get:function(){return ne.SkipLink}});var ae=n(1048);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return ae.Spinner}});var re=n(8305);Object.defineProperty(t,"useModal",{enumerable:!0,get:function(){return re.useModal}});var ie=n(6091);Object.defineProperty(t,"UserProfile",{enumerable:!0,get:function(){return ie.UserProfile}});var oe=n(3999);Object.defineProperty(t,"useToast",{enumerable:!0,get:function(){return oe.useToast}});var le=n(584);Object.defineProperty(t,"Breadcrumb",{enumerable:!0,get:function(){return le.Breadcrumb}}),r(n(4575),t);var ue=n(6343);Object.defineProperty(t,"RouteLink",{enumerable:!0,get:function(){return ue.RouteLink}}),r(n(9855),t);var se=n(2374);Object.defineProperty(t,"ProgressIndicator",{enumerable:!0,get:function(){return se.ProgressIndicator}});var de=n(9606);Object.defineProperty(t,"ProgressCircle",{enumerable:!0,get:function(){return de.ProgressCircle}});var ce=n(3328);Object.defineProperty(t,"Pagination",{enumerable:!0,get:function(){return ce.Pagination}});var me=n(3790);Object.defineProperty(t,"equisoftTheme",{enumerable:!0,get:function(){return me.equisoftTheme}});var pe=n(6536);Object.defineProperty(t,"testTheme",{enumerable:!0,get:function(){return pe.testTheme}});var fe=n(1851);Object.defineProperty(t,"injectMainCss",{enumerable:!0,get:function(){return fe.injectMainCss}});var he=n(6502);Object.defineProperty(t,"useTheme",{enumerable:!0,get:function(){return he.useTheme}}),r(n(5825),t)},6084:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFont=void 0;const r=n(8156),i=a(n(5199));t.useFont=function(e){(0,r.useEffect)((()=>e?(i.default.use(),()=>i.default.unuse()):()=>{}),[e])};try{t.useFont.displayName="useFont",t.useFont.__docgenInfo={description:"",displayName:"useFont",props:{valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/styles/font-loader.tsx#useFont"]={docgenInfo:t.useFont.__docgenInfo,name:"useFont",path:"src/styles/font-loader.tsx#useFont"})}catch(e){}},1851:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useStyle=t.mainCss=t.injectMainCss=void 0;const r=a(n(1549)),i=n(6084),o=n(6300);var l=n(6300);Object.defineProperty(t,"injectMainCss",{enumerable:!0,get:function(){return l.injectMainCss}}),t.mainCss=r.default.toString(),t.useStyle=function(e){(0,i.useFont)(e),(0,o.useMainCss)(e)}},6300:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectMainCss=t.useMainCss=void 0;const r=n(8156),i=a(n(4089));t.useMainCss=function(e){(0,r.useEffect)((()=>e?()=>{}:(i.default.use(),()=>i.default.unuse())),[e])},t.injectMainCss=function(){i.default.use()};try{t.useMainCss.displayName="useMainCss",t.useMainCss.__docgenInfo={description:"",displayName:"useMainCss",props:{valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/styles/style-loader.tsx#useMainCss"]={docgenInfo:t.useMainCss.__docgenInfo,name:"useMainCss",path:"src/styles/style-loader.tsx#useMainCss"})}catch(e){}},3790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equisoftTheme=void 0;const a=n(1452),r=n(2095),i=n(3309),o=n(5214);t.equisoftTheme={main:r.main,greys:a.greys,notifications:i.notifications,tokens:o.tokens}},1452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.greys=void 0,t.greys={white:"#FFFFFF","neutral-90":"#1B1C1E","colored-white":"#FAFAFA","light-grey":"#F1F2F2",grey:"#DBDEE1","mid-grey":"#B7BBC2","dark-grey":"#60666E",black:"#000000"}},5471:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(3790),t),r(n(5098),t)},2095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.main=void 0,t.main={"primary-1.1":"#006296","primary-1.2":"#84C6EA","primary-1.3":"#003A5A","primary-1.4":"#E0F0F9","primary-2":"#012639","primary-3":"#004E78","secondary-4.1":"#EF483E","secondary-4.2":"#F9B6B2","secondary-4.3":"#D41F14"}},3309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notifications=void 0,t.notifications={"info-1.1":"#006296","discovery-1.1":"#602FA0","neutral-1.1":"#878F9A","success-1.1":"#008533","success-1.2":"#F6FCF8","success-1.3":"#8ADDA9","alert-2.1":"#CD2C23","alert-2.2":"#FFFAFB","warning-3.1":"#F5A200","warning-3.2":"#FFF9F5","warning-3.3":"#FFB302","warning-3.4":"#A36D00"}},6536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testTheme=void 0;const a=n(1452),r=n(3309),i=n(5214);t.testTheme={main:{"primary-1.1":"#9EB3FF","primary-1.2":"#84B4E8","primary-1.3":"#8984E8","primary-2":"#282D40","primary-3":"#8EA1E6","primary-1.4":"#E0F0F9","secondary-4.1":"#B3974B","secondary-4.2":"#736130","secondary-4.3":"#FFD86B"},greys:a.greys,notifications:r.notifications,tokens:i.tokens}},5098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokens=void 0;const a=n(2095);t.tokens={"focus-box-shadow":`0 0 0 2px ${a.main["primary-1.2"]}`,"focus-box-shadow-inset":`inset 0 0 0 2px ${a.main["primary-1.2"]}`,"focus-border-box-shadow":` 0 0 0 1px ${a.main["primary-1.1"]}, 0 0 0 3px ${a.main["primary-1.2"]}`,"focus-border-box-shadow-inset":`inset 0 0 0 2px ${a.main["primary-1.2"]}, inset 0 0 0 3px ${a.main["primary-1.1"]}`,"focus-border":`${a.main["primary-1.1"]}`,"modal-overlay-background-color":"rgba(0, 0, 0, 0.75)","overlay-box-shadow":"0 10px 20px 0 rgba(0, 0, 0, 0.19)"}},9543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.breakpoints=void 0,t.breakpoints={mobile:480,desktop:1024}},4659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.menuDimensions=void 0,t.menuDimensions={maxWidth:"350px",minWidth:"200px"}},38:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unique=t.getPreviousElementInArray=t.getNextElementInArray=void 0,t.getNextElementInArray=function(e,t){return e.length===t+1?e[0]:e[t+1]},t.getPreviousElementInArray=function(e,t){return 0===t?e[e.length-1]:e[t-1]},t.unique=function(e){return[...new Set(e)]}},4606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focusVisibleReset=t.focus=void 0;const a=n(1608);t.focus=({theme:e},t=!1,n=void 0,a=!1)=>`\n ${void 0===n?"&:focus { outline: none; }":""}\n ${void 0===n?"&:focus":`${n}`} {\n outline: none;\n ${t?`border-color: ${e.tokens["focus-border"]};`:""}\n box-shadow: ${e.tokens["focus-box-shadow"]};\n ${t?"":`box-shadow: ${a?e.tokens["focus-border-box-shadow-inset"]:e.tokens["focus-border-box-shadow"]};`}\n }\n`,t.focusVisibleReset=(e,t=!1)=>a.css`
3359
+ `;t.VisuallyHidden=({children:e})=>(0,r.jsx)(l,{"aria-hidden":"false",children:e});try{t.VisuallyHidden.displayName="VisuallyHidden",t.VisuallyHidden.__docgenInfo={description:"",displayName:"VisuallyHidden",props:{}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/components/visually-hidden/visuallyhidden.tsx#VisuallyHidden"]={docgenInfo:t.VisuallyHidden.__docgenInfo,name:"VisuallyHidden",path:"src/components/visually-hidden/visuallyhidden.tsx#VisuallyHidden"})}catch(e){}},8478:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAriaConditionalIds=void 0,t.useAriaConditionalIds=function(e){return e.filter((e=>{var t;return e.id&&(null===(t=e.include)||void 0===t||t)})).map((e=>e.id)).join(" ")||void 0}},9072:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useClickOutside=void 0;const a=n(8156),r=n(9092);t.useClickOutside=function(e,t){(0,a.useEffect)((()=>{function n(n){(0,r.eventIsInside)(n,...e.map((e=>e.current)))||t()}return document.addEventListener("mousedown",n),()=>document.removeEventListener("mousedown",n)}),[t,e])}},4254:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useDataAttributes=void 0;const a=n(8156);function r(e){return null!==e&&"object"==typeof e}function i(e){return r(e)?Object.keys(e).reduce(((t,n)=>(function(e){return null!==e.match(/data-/i)}(n)&&(t[n]=e[n]),t)),{}):{}}t.useDataAttributes=function(e){const[t,n]=(0,a.useState)((()=>i(e))),o=r(e)?[...Object.values(e)]:[e];return(0,a.useEffect)((()=>{n(i(e))}),o),t}},2347:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useId=void 0;const a=n(8156),r=n(4182);t.useId=function(e){return(0,a.useMemo)((()=>null!=e?e:(0,r.v4)()),[e])}},4199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useListCursor=void 0;const a=n(8156);t.useListCursor=function({elements:e,initialElement:t,predicate:n=(()=>!0)}){const[r,i]=(0,a.useState)(t),o=(0,a.useCallback)((()=>{const t=e.find(n);return t&&i(t),t}),[e,n]),l=(0,a.useCallback)((()=>{const t=[...e].reverse().find(n);return t&&i(t),t}),[e,n]),u=(0,a.useCallback)((()=>{if(void 0===r)return o();const t=e.indexOf(r),a=e.slice(0,t).reverse().find(n);return a&&i(a),a}),[e,n,o,r]),s=(0,a.useCallback)((()=>{if(void 0===r)return o();const t=e.indexOf(r),a=e.slice(t+1).find(n);return a&&i(a),a}),[e,n,o,r]);return{selectedElement:r,setSelectedElement:i,selectPrevious:u,selectNext:s,selectFirst:o,selectLast:l}}},5358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useListSearch=void 0;const a=n(8156),r=n(5523);t.useListSearch=function({elements:e,focusedElement:t,onFoundElementChange:n,searchPropertyAccessor:i,predicate:o=(()=>!0),searchResetTimeout:l=500}){const u=(0,a.useRef)(void 0),s=(0,a.useRef)(""),d=(0,a.useCallback)(((e,t)=>e.filter((e=>i(e).toLowerCase().startsWith(t.toLowerCase())&&o(e)))),[o,i]),c=(0,a.useCallback)((n=>{const a=t?e.indexOf(t)+1:0,i=[...e.slice(a),...e.slice(0,a)],o=d(i,n)[0];return o||((0,r.allSameLetter)(n)?d(i,n[0])[0]:void 0)}),[d,t,e]);return{handleSearchInput:(0,a.useCallback)((e=>{void 0!==u.current&&clearTimeout(u.current),u.current=setTimeout((()=>{s.current=""}),l),s.current+=e,n&&n(c(s.current))}),[c,n,l])}}},3474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useScrollIntoView=void 0;const a=n(8156);t.useScrollIntoView=function({container:e}){return{scrollIntoView:(0,a.useCallback)(((t,n=!1)=>{if(!e.current)return;const{offsetHeight:a,offsetTop:r}=t,{offsetHeight:i,scrollTop:o}=e.current,l=getComputedStyle(e.current),u=r-parseFloat(l.paddingTop),s=r-i+a+parseFloat(l.paddingBottom),d=s>o;u<o||d&&n?e.current.scrollTo(0,u):d&&e.current.scrollTo(0,s)}),[e])}}},6502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTheme=void 0;const a=n(8156),r=n(1608);t.useTheme=function(){return(0,a.useContext)(r.ThemeContext)}},3999:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useToast=void 0;const a=n(8156),r=n(3456);t.useToast=function(){const{addToast:e,removeToast:t}=(0,r.useToasts)();return{showToast:(0,a.useCallback)(((t,n)=>e(t,n,!0)),[e]),hideToast:t}}},3456:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useToasts=void 0;const a=n(8156),r=n(4812);t.useToasts=function(){return(0,a.useContext)(r.ToastContext)}},16:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createI18n=void 0;const r=a(n(8661)),i=n(4146);t.createI18n=function(e="en"){const t=r.default.createInstance();return t.init({defaultNS:"common",resources:i.Translations,lng:e,fallbackLng:e,interpolation:{escapeValue:!1},returnNull:!1}).catch(console.error),t}},4146:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Translations=void 0,t.Translations={en:{avatar:{ariaLabel:"{{username}} avatar"},bento:{productsLabel:"Products",externalsLabel:"Resources"},common:{opensInNewTab:"opens in a new tab",opensInNewTabScreenReader:"(opens in a new tab)",error:"Error"},datepicker:{calendarButtonLabel:"Choose date",calendarButtonSelectedLabel:"Choose date. The selected date is",calendarContainerLabel:"Choose date",todayButtonAriaLabel:"Choose today's date",todayButtonLabel:"Today",validationErrorMessage:"Invalid date",monthPreviousButtonLabel:"Go to previous month",monthNextButtonLabel:"Go to next month",monthSelectLabel:"Select a month",yearSelectLabel:"Select a year"},"dropdown-list":{inputAriaLabel:"Select an option",validationErrorMessage:"You must select an option"},"error-summary":{title:"The form contains one or more errors",message:"Please correct them to proceed to the next step."},"global-banner":{ignore:"Ignore"},"menu-button":{buttonAriaLabel:"Open menu"},modal:{closeButtonLabel:"Close dialog"},"modal-dialog":{cancelButtonLabel:"Cancel",confirmButtonLabel:"Confirm"},"money-input":{validationErrorMessage:"Invalid number"},"nav-menu-button":{ariaLabel:"Menu"},"numeric-input":{requiredValidationErrorMessage:"This field is required",maxValidationErrorMessage:"The value must be less than or equal to {{max}}",minValidationErrorMessage:"The value must be greater than or equal to {{min}}"},pagination:{pagination:"Pagination",results:"{{pageStartIndex}}–{{pageEndIndex}} of {{numberOfResults}} results"},"password-creation-input":{"password-strength":"Password strength: ","min-8-characters":"Minimum 8 characters","min-1-lower-case":"At least one lower case","min-1-upper-case":"At least one upper case","create-password":"Create password",weak:"Weak",fair:"Fair",good:"Good",strong:"Strong","show-password":"Show password in plain text.","hide-password":"Hide password."},"password-input":{"show-password":"Show password in plain text.","hide-password":"Hide password."},"search-input":{label:"Search"},"sectional-banner":{Alert:"Alert",Warning:"Warning",Success:"Success",Info:"Information",Discovery:"Pro-tip",Neutral:"Information",dismissLabel:"Dismiss banner"},"skip-link":{label:"Skip to main content"},"stepper-input":{validationErrorMessage:"Invalid number"},"stepper-buttons":{"increment-button-aria-label":"Increase number","decrement-button-aria-label":"Decrease number"},"tag-medium":{deleteButtonAriaLabel:"Remove tag {{label}}"},"text-area":{validationErrorMessage:"This text area is invalid",maxLengthValidationErrorMessage:"The number of characters exceeds the maximum allowed. You must shorten the description.",characters:"{{length}} / {{max}} characters",charactersScreenReader:"{{length}} of {{max}} characters available"},"text-input":{validationErrorMessage:"This input is invalid",required:"required"},toast:{dismissButtonLabel:"Dismiss notification"},"user-profile":{ariaLabel:"User menu"}},fr:{avatar:{ariaLabel:"Avatar de {{username}}"},bento:{productsLabel:"Produits",externalsLabel:"Ressources"},common:{opensInNewTab:"ouvre dans un nouvel onglet",opensInNewTabScreenReader:"(ouvre dans un nouvel onglet)",error:"Erreur"},datepicker:{calendarButtonLabel:"Choisissez une date",calendarButtonSelectedLabel:"Choisissez une date. La date sélectionnée est",calendarContainerLabel:"Choisissez une date",todayButtonAriaLabel:"Choisir la date d'aujourd'hui",todayButtonLabel:"Aujourd'hui",validationErrorMessage:"Date non valide",monthPreviousButtonLabel:"Aller au mois précédent",monthNextButtonLabel:"Aller au mois suivant",monthSelectLabel:"Choisissez un mois",yearSelectLabel:"Choisissez une année"},"dropdown-list":{inputAriaLabel:"Choisissez une option",validationErrorMessage:"Vous devez choisir une option"},"error-summary":{title:"Le formulaire contient une ou plusieurs erreurs",message:"Veuillez les corriger avant de passer à l'étape suivante."},"global-banner":{ignore:"Ignorer"},"menu-button":{buttonAriaLabel:"Ouvrir le menu"},modal:{closeButtonLabel:"Fermer le dialogue"},"modal-dialog":{cancelButtonLabel:"Annuler",confirmButtonLabel:"Confirmer"},"money-input":{validationErrorMessage:"Ce nombre n'est pas valide"},"nav-menu-button":{ariaLabel:"Menu"},"numeric-input":{requiredValidationErrorMessage:"Ce champ est obligatoire",maxValidationErrorMessage:"La valeur doit être inférieure ou égale à {{max}}",minValidationErrorMessage:"La valeur doit être supérieure ou égale à {{min}}"},pagination:{pagination:"Pagination",results:"{{pageStartIndex}}–{{pageEndIndex}} de {{numberOfResults}} résultats"},"password-creation-input":{"password-strength":"Force du mot de passe : ","min-8-characters":"Minimum 8 caractères","min-1-lower-case":"Au moins une minuscule","min-1-upper-case":"Au moins une majuscule","create-password":"Créer un mot de passe",weak:"Faible",fair:"Raisonnable",good:"Bon",strong:"Fort","show-password":"Montrer le mot de passe.","hide-password":"Cacher le mot de passe."},"password-input":{"show-password":"Montrer le mot de passe.","hide-password":"Cacher le mot de passe."},"search-input":{label:"Rechercher"},"sectional-banner":{Alert:"Alerte",Warning:"Attention",Success:"Succès",Info:"Information",Discovery:"Truc de pro",Neutral:"Information",dismissLabel:"Rejeter la bannière"},"skip-link":{label:"Passer au contenu principal"},"stepper-input":{validationErrorMessage:"Ce nombre n'est pas valide"},"stepper-buttons":{"increment-button-aria-label":"Augmenter le nombre","decrement-button-aria-label":"Diminuer le nombre"},"tag-medium":{deleteButtonAriaLabel:"Retirer l'étiquette {{label}}"},"text-area":{validationErrorMessage:"Cette zone texte n'est pas valide",maxLengthValidationErrorMessage:"Le nombre de caractères dépasse le maximum autorisé. Vous devez raccourcir la description.",characters:"{{length}} / {{max}} caractères",charactersScreenReader:"{{length}} sur {{max}} caractères disponibles"},"text-input":{validationErrorMessage:"Ce champ est invalide",required:"obligatoire"},toast:{dismissButtonLabel:"Rejeter la notification"},"user-profile":{ariaLabel:"Menu utilisateur"}}}},8077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTranslation=void 0;const a=n(8156),r=n(8904);function i(e){var t;const n=null===(t=e.options)||void 0===t?void 0:t.fallbackLng;return"string"==typeof n||Array.isArray(n)?n:"en"}t.useTranslation=function(e){const{i18n:t}=(0,r.useIntlContext)(),n=(0,a.useCallback)((()=>({t:t.getFixedT(t.language||i(t),e||void 0)})),[t,e]),[o,l]=(0,a.useState)(n()),u=(0,a.useCallback)((()=>{l(n())}),[l,n]);return(0,a.useEffect)((()=>(t.on("languageChanged",u),()=>t.off("languageChanged",u))),[t,u]),{i18n:t,t:o.t}}},7348:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ModalDialog=t.Modal=t.GlobalBanner=t.SideDrawer=t.SectionalBanner=t.Icon=t.DropdownMenuButton=t.GlobalHeader=t.Heading=t.ExternalLink=t.ErrorSummary=t.ChooserButtonGroup=t.CardLink=t.Card=t.Badge=t.Accordion=t.AccordionItem=t.Listbox=t.IntlProvider=t.useDeviceContext=t.DeviceContextProvider=t.ThemeWrapper=t.isLongEnough=t.hasAnUpperCaseLetter=t.hasALowerCaseLetter=t.ToggleSwitch=t.TextInput=t.TextArea=t.Tabs=t.StepperInput=t.SearchGlobal=t.SearchContextual=t.RadioButtonGroup=t.PhoneInput=t.PasswordInput=t.PasswordCreationInput=t.OptionButton=t.NumericInput=t.MoneyInput=t.DropdownList=t.Datepicker=t.CheckboxGroup=t.Checkbox=t.Avatar=t.ToggleButtonGroup=t.BentoMenuButton=t.DropdownNavigation=t.MenuButton=t.IconButton=t.Button=void 0,t.useTheme=t.injectMainCss=t.testTheme=t.equisoftTheme=t.Pagination=t.ProgressCircle=t.ProgressIndicator=t.RouteLink=t.Breadcrumb=t.useToast=t.UserProfile=t.useModal=t.Spinner=t.SkipLink=t.Status=t.RadioCardGroup=t.RadioCard=t.Lozenge=t.Tag=void 0;var i=n(8276);Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return i.Button}});var o=n(524);Object.defineProperty(t,"IconButton",{enumerable:!0,get:function(){return o.IconButton}});var l=n(7698);Object.defineProperty(t,"MenuButton",{enumerable:!0,get:function(){return l.MenuButton}});var u=n(3680);Object.defineProperty(t,"DropdownNavigation",{enumerable:!0,get:function(){return u.DropdownNavigation}});var s=n(5422);Object.defineProperty(t,"BentoMenuButton",{enumerable:!0,get:function(){return s.BentoMenuButton}});var d=n(1589);Object.defineProperty(t,"ToggleButtonGroup",{enumerable:!0,get:function(){return d.ToggleButtonGroup}});var c=n(8643);Object.defineProperty(t,"Avatar",{enumerable:!0,get:function(){return c.Avatar}});var m=n(1212);Object.defineProperty(t,"Checkbox",{enumerable:!0,get:function(){return m.Checkbox}});var p=n(8248);Object.defineProperty(t,"CheckboxGroup",{enumerable:!0,get:function(){return p.CheckboxGroup}});var f=n(5592);Object.defineProperty(t,"Datepicker",{enumerable:!0,get:function(){return f.Datepicker}});var h=n(9685);Object.defineProperty(t,"DropdownList",{enumerable:!0,get:function(){return h.DropdownList}});var v=n(2408);Object.defineProperty(t,"MoneyInput",{enumerable:!0,get:function(){return v.MoneyInput}});var g=n(1190);Object.defineProperty(t,"NumericInput",{enumerable:!0,get:function(){return g.NumericInput}});var y=n(3320);Object.defineProperty(t,"OptionButton",{enumerable:!0,get:function(){return y.OptionButton}});var b=n(6750);Object.defineProperty(t,"PasswordCreationInput",{enumerable:!0,get:function(){return b.PasswordCreationInput}});var w=n(6555);Object.defineProperty(t,"PasswordInput",{enumerable:!0,get:function(){return w.PasswordInput}});var _=n(3690);Object.defineProperty(t,"PhoneInput",{enumerable:!0,get:function(){return _.PhoneInput}});var M=n(6967);Object.defineProperty(t,"RadioButtonGroup",{enumerable:!0,get:function(){return M.RadioButtonGroup}});var E=n(3783);Object.defineProperty(t,"SearchContextual",{enumerable:!0,get:function(){return E.SearchContextual}});var k=n(1732);Object.defineProperty(t,"SearchGlobal",{enumerable:!0,get:function(){return k.SearchGlobal}});var C=n(3484);Object.defineProperty(t,"StepperInput",{enumerable:!0,get:function(){return C.StepperInput}});var x=n(2485);Object.defineProperty(t,"Tabs",{enumerable:!0,get:function(){return x.Tabs}});var S=n(4429);Object.defineProperty(t,"TextArea",{enumerable:!0,get:function(){return S.TextArea}});var T=n(1898);Object.defineProperty(t,"TextInput",{enumerable:!0,get:function(){return T.TextInput}});var H=n(7872);Object.defineProperty(t,"ToggleSwitch",{enumerable:!0,get:function(){return H.ToggleSwitch}});var P=n(4148);Object.defineProperty(t,"hasALowerCaseLetter",{enumerable:!0,get:function(){return P.hasALowerCaseLetter}}),Object.defineProperty(t,"hasAnUpperCaseLetter",{enumerable:!0,get:function(){return P.hasAnUpperCaseLetter}}),Object.defineProperty(t,"isLongEnough",{enumerable:!0,get:function(){return P.hasMinLength}});var V=n(153);Object.defineProperty(t,"ThemeWrapper",{enumerable:!0,get:function(){return V.ThemeWrapper}});var q=n(9752);Object.defineProperty(t,"DeviceContextProvider",{enumerable:!0,get:function(){return q.DeviceContextProvider}}),Object.defineProperty(t,"useDeviceContext",{enumerable:!0,get:function(){return q.useDeviceContext}});var O=n(8904);Object.defineProperty(t,"IntlProvider",{enumerable:!0,get:function(){return O.IntlProvider}});var L=n(634);Object.defineProperty(t,"Listbox",{enumerable:!0,get:function(){return L.Listbox}});var D=n(9108);Object.defineProperty(t,"AccordionItem",{enumerable:!0,get:function(){return D.AccordionItem}}),Object.defineProperty(t,"Accordion",{enumerable:!0,get:function(){return D.Accordion}});var A=n(211);Object.defineProperty(t,"Badge",{enumerable:!0,get:function(){return A.Badge}});var j=n(3874);Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return j.Card}});var I=n(3665);Object.defineProperty(t,"CardLink",{enumerable:!0,get:function(){return I.CardLink}}),r(n(4143),t);var R=n(776);Object.defineProperty(t,"ChooserButtonGroup",{enumerable:!0,get:function(){return R.ChooserButtonGroup}});var W=n(9904);Object.defineProperty(t,"ErrorSummary",{enumerable:!0,get:function(){return W.ErrorSummary}});var N=n(1024);Object.defineProperty(t,"ExternalLink",{enumerable:!0,get:function(){return N.ExternalLink}});var z=n(6926);Object.defineProperty(t,"Heading",{enumerable:!0,get:function(){return z.Heading}});var Z=n(6538);Object.defineProperty(t,"GlobalHeader",{enumerable:!0,get:function(){return Z.GlobalHeader}});var F=n(5233);Object.defineProperty(t,"DropdownMenuButton",{enumerable:!0,get:function(){return F.DropdownMenuButton}});var B=n(569);Object.defineProperty(t,"Icon",{enumerable:!0,get:function(){return B.Icon}});var $=n(4013);Object.defineProperty(t,"SectionalBanner",{enumerable:!0,get:function(){return $.SectionalBanner}}),r(n(4571),t);var U=n(9162);Object.defineProperty(t,"SideDrawer",{enumerable:!0,get:function(){return U.SideDrawer}});var Y=n(4570);Object.defineProperty(t,"GlobalBanner",{enumerable:!0,get:function(){return Y.GlobalBanner}}),r(n(824),t),r(n(1260),t),r(n(6696),t);var K=n(7605);Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return K.Modal}});var G=n(9252);Object.defineProperty(t,"ModalDialog",{enumerable:!0,get:function(){return G.ModalDialog}});var X=n(8777);Object.defineProperty(t,"Tag",{enumerable:!0,get:function(){return X.Tag}});var J=n(6152);Object.defineProperty(t,"Lozenge",{enumerable:!0,get:function(){return J.Lozenge}});var Q=n(6965);Object.defineProperty(t,"RadioCard",{enumerable:!0,get:function(){return Q.RadioCard}});var ee=n(7238);Object.defineProperty(t,"RadioCardGroup",{enumerable:!0,get:function(){return ee.RadioCardGroup}});var te=n(7087);Object.defineProperty(t,"Status",{enumerable:!0,get:function(){return te.Status}});var ne=n(6327);Object.defineProperty(t,"SkipLink",{enumerable:!0,get:function(){return ne.SkipLink}});var ae=n(1048);Object.defineProperty(t,"Spinner",{enumerable:!0,get:function(){return ae.Spinner}});var re=n(8305);Object.defineProperty(t,"useModal",{enumerable:!0,get:function(){return re.useModal}});var ie=n(6091);Object.defineProperty(t,"UserProfile",{enumerable:!0,get:function(){return ie.UserProfile}});var oe=n(3999);Object.defineProperty(t,"useToast",{enumerable:!0,get:function(){return oe.useToast}});var le=n(584);Object.defineProperty(t,"Breadcrumb",{enumerable:!0,get:function(){return le.Breadcrumb}}),r(n(4575),t);var ue=n(6343);Object.defineProperty(t,"RouteLink",{enumerable:!0,get:function(){return ue.RouteLink}}),r(n(9855),t);var se=n(2374);Object.defineProperty(t,"ProgressIndicator",{enumerable:!0,get:function(){return se.ProgressIndicator}});var de=n(9606);Object.defineProperty(t,"ProgressCircle",{enumerable:!0,get:function(){return de.ProgressCircle}});var ce=n(3328);Object.defineProperty(t,"Pagination",{enumerable:!0,get:function(){return ce.Pagination}});var me=n(3790);Object.defineProperty(t,"equisoftTheme",{enumerable:!0,get:function(){return me.equisoftTheme}});var pe=n(6536);Object.defineProperty(t,"testTheme",{enumerable:!0,get:function(){return pe.testTheme}});var fe=n(1851);Object.defineProperty(t,"injectMainCss",{enumerable:!0,get:function(){return fe.injectMainCss}});var he=n(6502);Object.defineProperty(t,"useTheme",{enumerable:!0,get:function(){return he.useTheme}}),r(n(5825),t)},6084:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useFont=void 0;const r=n(8156),i=a(n(5199));t.useFont=function(e){(0,r.useEffect)((()=>e?(i.default.use(),()=>i.default.unuse()):()=>{}),[e])};try{t.useFont.displayName="useFont",t.useFont.__docgenInfo={description:"",displayName:"useFont",props:{valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/styles/font-loader.tsx#useFont"]={docgenInfo:t.useFont.__docgenInfo,name:"useFont",path:"src/styles/font-loader.tsx#useFont"})}catch(e){}},1851:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useStyle=t.mainCss=t.injectMainCss=void 0;const r=a(n(1549)),i=n(6084),o=n(6300);var l=n(6300);Object.defineProperty(t,"injectMainCss",{enumerable:!0,get:function(){return l.injectMainCss}}),t.mainCss=r.default.toString(),t.useStyle=function(e){(0,i.useFont)(e),(0,o.useMainCss)(e)}},6300:function(e,t,n){"use strict";var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectMainCss=t.useMainCss=void 0;const r=n(8156),i=a(n(4089));t.useMainCss=function(e){(0,r.useEffect)((()=>e?()=>{}:(i.default.use(),()=>i.default.unuse())),[e])},t.injectMainCss=function(){i.default.use()};try{t.useMainCss.displayName="useMainCss",t.useMainCss.__docgenInfo={description:"",displayName:"useMainCss",props:{valueOf:{defaultValue:null,description:"Returns the primitive value of the specified object.",name:"valueOf",required:!1,type:{name:"() => boolean"}}}},"undefined"!=typeof STORYBOOK_REACT_CLASSES&&(STORYBOOK_REACT_CLASSES["src/styles/style-loader.tsx#useMainCss"]={docgenInfo:t.useMainCss.__docgenInfo,name:"useMainCss",path:"src/styles/style-loader.tsx#useMainCss"})}catch(e){}},3790:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.equisoftTheme=void 0;const a=n(1452),r=n(2095),i=n(3309),o=n(5214);t.equisoftTheme={main:r.main,greys:a.greys,notifications:i.notifications,tokens:o.tokens}},1452:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.greys=void 0,t.greys={white:"#FFFFFF","neutral-90":"#1B1C1E","colored-white":"#FAFAFA","light-grey":"#F1F2F2",grey:"#DBDEE1","mid-grey":"#B7BBC2","dark-grey":"#60666E",black:"#000000"}},5471:function(e,t,n){"use strict";var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||a(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(3790),t),r(n(5098),t)},2095:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.main=void 0,t.main={"primary-1.1":"#006296","primary-1.2":"#84C6EA","primary-1.3":"#003A5A","primary-1.4":"#E0F0F9","primary-2":"#012639","primary-3":"#004E78","secondary-4.1":"#EF483E","secondary-4.2":"#F9B6B2","secondary-4.3":"#D41F14"}},3309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.notifications=void 0,t.notifications={"info-1.1":"#006296","discovery-1.1":"#602FA0","neutral-1.1":"#878F9A","success-1.1":"#008533","success-1.2":"#F6FCF8","success-1.3":"#8ADDA9","alert-2.1":"#CD2C23","alert-2.2":"#FFFAFB","warning-3.1":"#F5A200","warning-3.2":"#FFF9F5","warning-3.3":"#FFB302","warning-3.4":"#A36D00"}},6536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.testTheme=void 0;const a=n(1452),r=n(3309),i=n(5214);t.testTheme={main:{"primary-1.1":"#9EB3FF","primary-1.2":"#84B4E8","primary-1.3":"#8984E8","primary-2":"#282D40","primary-3":"#8EA1E6","primary-1.4":"#E0F0F9","secondary-4.1":"#B3974B","secondary-4.2":"#736130","secondary-4.3":"#FFD86B"},greys:a.greys,notifications:r.notifications,tokens:i.tokens}},5098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tokens=void 0;const a=n(2095);t.tokens={"focus-box-shadow":`0 0 0 2px ${a.main["primary-1.2"]}`,"focus-box-shadow-inset":`inset 0 0 0 2px ${a.main["primary-1.2"]}`,"focus-border-box-shadow":` 0 0 0 1px ${a.main["primary-1.1"]}, 0 0 0 3px ${a.main["primary-1.2"]}`,"focus-border-box-shadow-inset":`inset 0 0 0 2px ${a.main["primary-1.2"]}, inset 0 0 0 3px ${a.main["primary-1.1"]}`,"focus-border":`${a.main["primary-1.1"]}`,"modal-overlay-background-color":"rgba(0, 0, 0, 0.75)","overlay-box-shadow":"0 10px 20px 0 rgba(0, 0, 0, 0.19)"}},9543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.breakpoints=void 0,t.breakpoints={mobile:480,desktop:1024}},4659:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.menuDimensions=void 0,t.menuDimensions={maxWidth:"350px",minWidth:"200px"}},38:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unique=t.getPreviousElementInArray=t.getNextElementInArray=void 0,t.getNextElementInArray=function(e,t){return e.length===t+1?e[0]:e[t+1]},t.getPreviousElementInArray=function(e,t){return 0===t?e[e.length-1]:e[t-1]},t.unique=function(e){return[...new Set(e)]}},4606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.focusVisibleReset=t.focus=void 0;const a=n(1608);t.focus=({theme:e},t=!1,n=void 0,a=!1)=>`\n ${void 0===n?"&:focus { outline: none; }":""}\n ${void 0===n?"&:focus":`${n}`} {\n outline: none;\n ${t?`border-color: ${e.tokens["focus-border"]};`:""}\n box-shadow: ${e.tokens["focus-box-shadow"]};\n ${t?"":`box-shadow: ${a?e.tokens["focus-border-box-shadow-inset"]:e.tokens["focus-border-box-shadow"]};`}\n }\n`,t.focusVisibleReset=(e,t=!1)=>a.css`
3390
3360
  &:focus:not(:focus-visible) {
3391
3361
  ${t&&"border-color: inherit;"}
3392
3362
 
3393
3363
  box-shadow: none;
3394
3364
  }
3395
- `},4764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCurrency=void 0,t.formatCurrency=function(e,t,n,a="CAD"){return Intl.NumberFormat(n,{style:"currency",currency:a,minimumFractionDigits:t,maximumFractionDigits:t,currencyDisplay:"narrowSymbol"}).format(e)}},2219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRootDocument=void 0,t.getRootDocument=function(e){const t=null==e?void 0:e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:null}},9092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventIsInside=void 0,t.eventIsInside=function(e,...t){const n=e.composed?e.composedPath().filter((e=>e instanceof Node)):[];return t.filter(Boolean).some((t=>(null==t?void 0:t.contains(e.target))||e.composed&&n.some((e=>null==t?void 0:t.contains(e)))))}},1410:(e,t)=>{"use strict";function n(e){return"number"==typeof e&&Number.isFinite(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.truncateAtPrecision=t.isWithinPrecision=t.clamp=t.toInt=t.isNumber=void 0,t.isNumber=n,t.toInt=function(e,t){if(void 0===e)return t;const a=parseInt(e.toString(),10);return n(a)?a:t},t.clamp=function(e,t,n){return Math.min(Math.max(e,t),n)},t.isWithinPrecision=function(e,t){var n;return!(0===t&&e.includes(".")||t>0&&(null===(n=e.split(".")[1])||void 0===n?void 0:n.length)>t)},t.truncateAtPrecision=function(e,t){if(""===e||!e.includes("."))return e;const n=e.indexOf(".");return e.slice(0,0===t?n:n+t+1)}},6543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0,t.range=function(e,t){return new Array(t-e+1).fill(void 0).map(((t,n)=>n+e))}},1771:(e,t)=>{"use strict";function n(e,...t){t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRefs=t.setRefs=void 0,t.setRefs=n,t.mergeRefs=function(...e){return t=>{n(t,...e)}}},1834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLetterOrNumber=void 0;const n=/^[\p{L}\p{N}]$/iu;t.isLetterOrNumber=function(e){return n.test(e)}},2471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialsFromUsername=void 0,t.getInitialsFromUsername=function(e){const t=e.normalize("NFD").replace(/[^a-zA-Z\s]/g,"");if(0===t.length)return"";const n=t.split(/\s/);return 1===n.length&&t.length>0?t.substr(0,2).toUpperCase():n[0].charAt(0).toUpperCase()+n[n.length-1].charAt(0).toUpperCase()}},4182:(e,t)=>{"use strict";function n(e){const t=Number(e);return((t^globalThis.crypto.getRandomValues(new Uint8Array(1))[0])%16>>t/4).toString(16)}Object.defineProperty(t,"__esModule",{value:!0}),t.v4=void 0,t.v4=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n)}},3947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>m,default:()=>f});var a=n(8156),r=n(7111);function i(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var o,l,u=(void 0===o&&(o=0),function(){return++o}),s={},d={},c=["touchstart","touchmove"],m="ignore-react-onclickoutside";function p(e,t){var n=null;return-1!==c.indexOf(t)&&l&&(n={passive:!e.props.preventDefault}),n}const f=function(e,t){var n,o,c=e.displayName||e.name||"Component";return o=n=function(n){var o,m;function f(e){var a;return(a=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof a.__clickOutsideHandlerProp){var t=a.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+c+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else a.__clickOutsideHandlerProp(e)},a.__getComponentNode=function(){var e=a.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,r.findDOMNode)(e)},a.enableOnClickOutside=function(){if("undefined"!=typeof document&&!d[a._uid]){void 0===l&&(l=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),d[a._uid]=!0;var e=a.props.eventTypes;e.forEach||(e=[e]),s[a._uid]=function(e){var t;null!==a.componentNode&&(a.props.preventDefault&&e.preventDefault(),a.props.stopPropagation&&e.stopPropagation(),a.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&i(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,a.componentNode,a.props.outsideClickIgnoreClass)===document&&a.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,s[a._uid],p(a,e))}))}},a.disableOnClickOutside=function(){delete d[a._uid];var e=s[a._uid];if(e&&"undefined"!=typeof document){var t=a.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,p(a,t))})),delete s[a._uid]}},a.getRef=function(e){return a.instanceRef=e},a._uid=u(),a}m=n,(o=f).prototype=Object.create(m.prototype),o.prototype.constructor=o,o.__proto__=m;var h=f.prototype;return h.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},h.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+c+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},h.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},h.componentWillUnmount=function(){this.disableOnClickOutside()},h.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,a.createElement)(e,n)},f}(a.Component),n.displayName="OnClickOutside("+c+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:m,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o}},8661:e=>{"use strict";e.exports=n},8156:t=>{"use strict";t.exports=e},7111:e=>{"use strict";e.exports=r},6128:e=>{"use strict";e.exports=a},1608:e=>{"use strict";e.exports=t},2454:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.d(t,{Z:()=>a})}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,l),n.exports}return l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nc=void 0,l(7348)})()));
3365
+ `},4764:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCurrency=void 0,t.formatCurrency=function(e,t,n,a="CAD"){return Intl.NumberFormat(n,{style:"currency",currency:a,minimumFractionDigits:t,maximumFractionDigits:t,currencyDisplay:"narrowSymbol"}).format(e)}},2219:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRootDocument=void 0,t.getRootDocument=function(e){const t=null==e?void 0:e.getRootNode();return t instanceof ShadowRoot||t instanceof Document?t:null}},9092:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventIsInside=void 0,t.eventIsInside=function(e,...t){const n=e.composed?e.composedPath().filter((e=>e instanceof Node)):[];return t.filter(Boolean).some((t=>(null==t?void 0:t.contains(e.target))||e.composed&&n.some((e=>null==t?void 0:t.contains(e)))))}},1410:(e,t)=>{"use strict";function n(e){return"number"==typeof e&&Number.isFinite(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.truncateAtPrecision=t.isWithinPrecision=t.clamp=t.toInt=t.isNumber=void 0,t.isNumber=n,t.toInt=function(e,t){if(void 0===e)return t;const a=parseInt(e.toString(),10);return n(a)?a:t},t.clamp=function(e,t,n){return Math.min(Math.max(e,t),n)},t.isWithinPrecision=function(e,t){var n;return!(0===t&&e.includes(".")||t>0&&(null===(n=e.split(".")[1])||void 0===n?void 0:n.length)>t)},t.truncateAtPrecision=function(e,t){if(""===e||!e.includes("."))return e;const n=e.indexOf(".");return e.slice(0,0===t?n:n+t+1)}},6543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.range=void 0,t.range=function(e,t){return new Array(t-e+1).fill(void 0).map(((t,n)=>n+e))}},1771:(e,t)=>{"use strict";function n(e,...t){t.forEach((t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeRefs=t.setRefs=void 0,t.setRefs=n,t.mergeRefs=function(...e){return t=>{n(t,...e)}}},1834:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isLetterOrNumber=void 0;const n=/^[\p{L}\p{N}]$/iu;t.isLetterOrNumber=function(e){return n.test(e)}},5523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.allSameLetter=void 0,t.allSameLetter=function(e){const t=e.split("");return t.every((e=>e===t[0]))}},2471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getInitialsFromUsername=void 0,t.getInitialsFromUsername=function(e){const t=e.normalize("NFD").replace(/[^a-zA-Z\s]/g,"");if(0===t.length)return"";const n=t.split(/\s/);return 1===n.length&&t.length>0?t.substr(0,2).toUpperCase():n[0].charAt(0).toUpperCase()+n[n.length-1].charAt(0).toUpperCase()}},4182:(e,t)=>{"use strict";function n(e){const t=Number(e);return((t^globalThis.crypto.getRandomValues(new Uint8Array(1))[0])%16>>t/4).toString(16)}Object.defineProperty(t,"__esModule",{value:!0}),t.v4=void 0,t.v4=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,n)}},3947:(e,t,n)=>{"use strict";n.r(t),n.d(t,{IGNORE_CLASS_NAME:()=>m,default:()=>f});var a=n(8156),r=n(7111);function i(e,t,n){return e===t||(e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n))}var o,l,u=(void 0===o&&(o=0),function(){return++o}),s={},d={},c=["touchstart","touchmove"],m="ignore-react-onclickoutside";function p(e,t){var n=null;return-1!==c.indexOf(t)&&l&&(n={passive:!e.props.preventDefault}),n}const f=function(e,t){var n,o,c=e.displayName||e.name||"Component";return o=n=function(n){var o,m;function f(e){var a;return(a=n.call(this,e)||this).__outsideClickHandler=function(e){if("function"!=typeof a.__clickOutsideHandlerProp){var t=a.getInstance();if("function"!=typeof t.props.handleClickOutside){if("function"!=typeof t.handleClickOutside)throw new Error("WrappedComponent: "+c+" lacks a handleClickOutside(event) function for processing outside click events.");t.handleClickOutside(e)}else t.props.handleClickOutside(e)}else a.__clickOutsideHandlerProp(e)},a.__getComponentNode=function(){var e=a.getInstance();return t&&"function"==typeof t.setClickOutsideRef?t.setClickOutsideRef()(e):"function"==typeof e.setClickOutsideRef?e.setClickOutsideRef():(0,r.findDOMNode)(e)},a.enableOnClickOutside=function(){if("undefined"!=typeof document&&!d[a._uid]){void 0===l&&(l=function(){if("undefined"!=typeof window&&"function"==typeof window.addEventListener){var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}}),n=function(){};return window.addEventListener("testPassiveEventSupport",n,t),window.removeEventListener("testPassiveEventSupport",n,t),e}}()),d[a._uid]=!0;var e=a.props.eventTypes;e.forEach||(e=[e]),s[a._uid]=function(e){var t;null!==a.componentNode&&(a.props.preventDefault&&e.preventDefault(),a.props.stopPropagation&&e.stopPropagation(),a.props.excludeScrollbar&&(t=e,document.documentElement.clientWidth<=t.clientX||document.documentElement.clientHeight<=t.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&i(e,t,n))return!0;e=e.parentNode||e.host}return e}(e.composed&&e.composedPath&&e.composedPath().shift()||e.target,a.componentNode,a.props.outsideClickIgnoreClass)===document&&a.__outsideClickHandler(e))},e.forEach((function(e){document.addEventListener(e,s[a._uid],p(a,e))}))}},a.disableOnClickOutside=function(){delete d[a._uid];var e=s[a._uid];if(e&&"undefined"!=typeof document){var t=a.props.eventTypes;t.forEach||(t=[t]),t.forEach((function(t){return document.removeEventListener(t,e,p(a,t))})),delete s[a._uid]}},a.getRef=function(e){return a.instanceRef=e},a._uid=u(),a}m=n,(o=f).prototype=Object.create(m.prototype),o.prototype.constructor=o,o.__proto__=m;var h=f.prototype;return h.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},h.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent: "+c+" lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=this.__getComponentNode(),this.props.disableOnClickOutside||this.enableOnClickOutside()}},h.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},h.componentWillUnmount=function(){this.disableOnClickOutside()},h.render=function(){var t=this.props,n=(t.excludeScrollbar,function(e,t){if(null==e)return{};var n,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(r[n]=e[n]);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(t,["excludeScrollbar"]));return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,(0,a.createElement)(e,n)},f}(a.Component),n.displayName="OnClickOutside("+c+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:m,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},o}},8661:e=>{"use strict";e.exports=n},8156:t=>{"use strict";t.exports=e},7111:e=>{"use strict";e.exports=r},6128:e=>{"use strict";e.exports=a},1608:e=>{"use strict";e.exports=t},2454:(e,t,n)=>{"use strict";function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}n.d(t,{Z:()=>a})}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,l),n.exports}return l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.nc=void 0,l(7348)})()));